backend-bundle.min.js
1.3 MB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*!
* 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 ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach((function(e){_defineProperty(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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 _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function _typeof(t){return(_typeof="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(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,u=l.hasOwnProperty,h=u.toString,d=h.call(Object),f={},p=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,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,i){var n,r,o=(i=i||m).createElement("script");if(o.text=t,e)for(n in v)(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",_=function(t,e){return new _.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!p(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:x,constructor:_,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=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.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(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.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},_.extend=_.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||p(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&&(_.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[e],o=r&&!Array.isArray(i)?[]:r||_.isPlainObject(i)?i:{},r=!1,a[e]=_.extend(c,o,n)):void 0!==n&&(a[e]=n));return a},_.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=u.call(e,"constructor")&&e.constructor)&&h.call(i)===d)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){y(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(w(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&&(w(Object(t))?_.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(w(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:f}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=i[Symbol.iterator]),_.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,u,h,d,f,p,g,m,v,y,b,x="sizzle"+1*new Date,_=t.document,w=0,S=0,k=lt(),A=lt(),C=lt(),T=lt(),E=function(t,e){return t===e&&(h=!0),0},O={}.hasOwnProperty,P=[],L=P.pop,D=P.push,M=P.push,I=P.slice,N=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+R+"*\\]",H=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),Y=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]*"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),X=new RegExp(R+"|>"),V=new RegExp(H),U=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+H),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("^(?:"+j+")$","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")},Z=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\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?"�":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{M.apply(P=I.call(_.childNodes),_.childNodes),P[_.childNodes.length].nodeType}catch(t){M={apply:P.length?function(t,e){D.apply(t,I.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,u,h,p,v,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return n;if(!r&&(d(e),e=e||f,g)){if(11!==_&&(h=J.exec(t)))if(o=h[1]){if(9===_){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return n.push(c),n}else{if(h[2])return M.apply(n,e.getElementsByTagName(t)),n;if((o=h[3])&&i.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!T[t+" "]&&(!m||!m.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===_&&(X.test(t)||q.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((u=e.getAttribute("id"))?u=u.replace(nt,rt):e.setAttribute("id",u=x)),s=(p=a(t)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+bt(p[s]);v=p.join(",")}try{return M.apply(n,y.querySelectorAll(v)),n}catch(e){T(t,!0)}finally{u===x&&e.removeAttribute("id")}}}return l(t.replace(Y,"$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 ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(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 ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(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 vt(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!Z.test(e||i&&i.nodeName||"HTML")},d=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:_;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,g=!o(f),_!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=ut((function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ut((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=Q.test(f.getElementsByClassName),i.getById=ut((function(t){return p.appendChild(t).id=x,!f.getElementsByName||!f.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)},v=[],m=[],(i.qsa=Q.test(f.querySelectorAll))&&(ut((function(t){var e;p.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|"+j+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(e=f.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]")})),ut((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.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"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",H)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=Q.test(p.compareDocumentPosition),b=e||Q.test(p.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},E=e?function(t,e){if(t===e)return h=!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==f||t.ownerDocument==_&&b(_,t)?-1:e==f||e.ownerDocument==_&&b(_,e)?1:u?N(u,t)-N(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==f?-1:e==f?1:r?-1:o?1:u?N(u,t)-N(u,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]==_?-1:s[n]==_?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),i.matchesSelector&&g&&!T[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=f&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=f&&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(h=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(E),h){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return u=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:G,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 G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.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=k[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&k(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,u,h,d,f,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(c=(u=(h=(d=m)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[w,f,b];break}}else if(y&&(b=f=(c=(u=(h=(d=e)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===b)for(;(d=++f&&d&&d[g]||(b=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[w,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=N(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(Y,"$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===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.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 $.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]=ft(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=pt(e);function yt(){}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,u,h,d=[w,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(u=(h=e[x]||(e[x]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=u[o])&&c[0]===w&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=t(e,i,l))return!0}return!1}}function _t(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 wt(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,u,h,d=[],f=[],p=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:wt(g,d,t,s,l),v=i?r||(o?t:p||n)?[]:a:m;if(i&&i(m,v,s,l),n)for(c=wt(v,f),n(c,[],s,l),u=c.length;u--;)(h=c[u])&&(v[f[u]]=!(m[f[u]]=h));if(o){if(r||t){if(r){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(m[u]=h);r(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=r?N(o,h):d[u])>-1&&(o[c]=!(a[c]=h))}}else v=wt(v===a?v.splice(p,v.length):v),r?r(null,a,v,l):M.apply(a,v)}))}function kt(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],l=a?1:0,u=xt((function(t){return t===e}),s,!0),h=xt((function(t){return N(e,t)>-1}),s,!0),d=[function(t,i,n){var r=!a&&(n||i!==c)||((e=i).nodeType?u(t,i,n):h(t,i,n));return e=null,r}];l<o;l++)if(i=n.relative[t[l].type])d=[xt(_t(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&&_t(d),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(Y,"$1"),i,l<r&&kt(t.slice(l,r)),r<o&&kt(t=t.slice(r)),r<o&&bt(t))}d.push(i)}return _t(d)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,a=st.tokenize=function(t,e){var i,r,o,a,s,l,c,u=A[t+" "];if(u)return e?0:u.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=q.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(Y," ")}),s=s.slice(i.length)),n.filter)!(r=G[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):A(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=kt(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,u){var h,p,m,v=0,y="0",b=o&&[],x=[],_=c,S=o||r&&n.find.TAG("*",u),k=w+=null==_?1:Math.random()||.1,A=S.length;for(u&&(c=a==f||a||u);y!==A&&null!=(h=S[y]);y++){if(r&&h){for(p=0,a||h.ownerDocument==f||(d(h),s=!g);m=t[p++];)if(m(h,a||f,s)){l.push(h);break}u&&(w=k)}i&&((h=!m&&h)&&v--,o&&b.push(h))}if(v+=y,i&&y!==v){for(p=0;m=e[p++];)m(b,x,a,s);if(o){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=L.call(l));x=wt(x)}M.apply(l,x),u&&!o&&x.length>0&&v+e.length>1&&st.uniqueSort(l)}return u&&(w=k,c=_),b};return i?ct(o):o}(o,r))).selector=t}return s},l=st.select=function(t,e,i,r){var o,l,c,u,h,d="function"==typeof t&&t,f=!r&&a(t=d.selector||t);if(i=i||[],1===f.length){if((l=f[0]=f[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=G.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[u=c.type]);)if((h=n.find[u])&&(r=h(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return M.apply(i,r),i;break}}return(d||s(t,f))(r,e,!g,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=x.split("").sort(E).join("")===x,i.detectDuplicates=!!h,d(),i.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||ht(j,(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);_.find=S,_.expr=S.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=S.uniqueSort,_.text=S.getText,_.isXMLDoc=S.isXML,_.contains=S.contains,_.escapeSelector=S.escape;var k=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&_(t).is(i))break;n.push(t)}return n},A=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},C=_.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,i){return p(e)?_.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?_.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?_.grep(t,(function(t){return s.call(e,t)>-1!==i})):_.filter(e,t,i)}_.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?_.find.matchesSelector(n,t)?[n]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<n;e++)if(_.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)_.find(t,r[e],i);return n>1?_.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)?_(t):t||[],!1).length}});var P,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||P,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.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 _?e[0]:e,_.merge(this,_.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),E.test(n[1])&&_.isPlainObject(e))for(n in e)p(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):p(t)?void 0!==i.ready?i.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,P=_(m);var D=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],a="string"!=typeof t&&_(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&&_.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(_(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(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,e,i){return k(t,"parentNode",i)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,e,i){return k(t,"nextSibling",i)},prevUntil:function(t,e,i){return k(t,"previousSibling",i)},siblings:function(t){return A((t.parentNode||{}).firstChild,t)},children:function(t){return A(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(i,n){var r=_.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=_.filter(n,r)),this.length>1&&(M[t]||_.uniqueSort(r),D.test(t)&&r.reverse()),this.pushStack(r)}}));var N=/[^\x20\t\r\n\f]+/g;function j(t){return t}function R(t){throw t}function F(t,e,i,n){var r;try{t&&p(r=t.promise)?r.call(t).done(e).fail(i):t&&p(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(N)||[],(function(t,i){e[i]=!0})),e}(t):_.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){_.each(i,(function(i,n){p(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 _.each(arguments,(function(t,e){for(var i;(i=_.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--})),this},has:function(t){return t?_.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},_.extend({Deferred:function(e){var i=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.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 _.Deferred((function(e){_.each(i,(function(i,n){var r=p(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&p(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,p(c)?r?c.call(t,a(o,i,j,r),a(o,i,R,r)):(o++,c.call(t,a(o,i,j,r),a(o,i,R,r),a(o,i,j,i.notifyWith))):(n!==j&&(s=void 0,l=[t]),(r||i.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(t){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(t,u.stackTrace),e+1>=o&&(n!==R&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),t.setTimeout(u))}}return _.Deferred((function(t){i[0][3].add(a(0,t,p(r)?r:j,t.notifyWith)),i[1][3].add(a(0,t,p(e)?e:j)),i[2][3].add(a(0,t,p(n)?n:R))})).promise()},promise:function(t){return null!=t?_.extend(t,r):r}},o={};return _.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=_.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&&(F(t,a.done(s(i)).resolve,a.reject,!e),"pending"===a.state()||p(o[i]&&o[i].then)))return a.then();for(;i--;)F(o[i],s(i),a.reject);return a.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&z.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},_.readyException=function(e){t.setTimeout((function(){throw e}))};var H=_.Deferred();function B(){m.removeEventListener("DOMContentLoaded",B),t.removeEventListener("load",B),_.ready()}_.fn.ready=function(t){return H.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||H.resolveWith(m,[_]))}}),_.ready.then=H.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(_.ready):(m.addEventListener("DOMContentLoaded",B),t.addEventListener("load",B));var Y=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)Y(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,p(n)||(a=!0),c&&(a?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(_(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-/,q=/-([a-z])/g;function X(t,e){return e.toUpperCase()}function V(t){return t.replace(W,"ms-").replace(q,X)}var U=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function G(){this.expando=_.expando+G.uid++}G.uid=1,G.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[V(e)]=i;else for(n in e)r[V(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][V(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(V):(e=V(e))in n?[e]:e.match(N)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||_.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&&!_.isEmptyObject(e)}};var Z=new G,K=new G,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:$.test(t)?JSON.parse(t):t)}(i)}catch(t){}K.set(t,e,i)}else i=void 0;return i}_.extend({hasData:function(t){return K.hasData(t)||Z.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 Z.access(t,e,i)},_removeData:function(t,e){Z.remove(t,e)}}),_.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&&!Z.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=V(n.slice(5)),J(o,n,r[n]));Z.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){K.set(this,t)})):Y(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=K.get(o,t))||void 0!==(i=J(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)}))}}),_.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Z.get(t,e),i&&(!n||Array.isArray(i)?n=Z.access(t,e,_.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=_.queue(t,e),n=i.length,r=i.shift(),o=_._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,(function(){_.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Z.get(t,i)||Z.access(t,i,{empty:_.Callbacks("once memory").add((function(){Z.remove(t,[e+"queue",i])}))})}}),_.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?_.queue(this[0],t):void 0===e?this:this.each((function(){var i=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=_.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=Z.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 _.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(rt=function(t){return _.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"===_.css(t,"display")};function st(t,e,i,n){var r,o,a=20,s=n?function(){return n.cur()}:function(){return _.css(t,e,"")},l=s(),c=i&&i[3]||(_.cssNumber[e]?"":"px"),u=t.nodeType&&(_.cssNumber[e]||"px"!==c&&+l)&&et.exec(_.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)_.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,_.style(t,e,u+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,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=_.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),lt[n]=r,r)}function ut(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]=Z.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&at(n)&&(r[o]=ct(n))):"none"!==i&&(r[o]="none",Z.set(n,"display",i)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}_.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){at(this)?_(this).show():_(this).hide()}))}});var ht,dt,ft=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;ht=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ht.appendChild(dt),f.checkClone=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",f.option=!!ht.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 vt(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)?_.merge([t],i):i}function yt(t,e){for(var i=0,n=t.length;i<n;i++)Z.set(t[i],"globalEval",!e||Z.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,f.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,u,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===b(o))_.merge(d,o.nodeType?[o]:o);else if(bt.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(pt.exec(o)||["",""])[1].toLowerCase(),l=mt[s]||mt._default,a.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;_.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(n&&_.inArray(o,n)>-1)r&&r.push(o);else if(c=rt(o),a=vt(h.appendChild(o),"script"),c&&yt(a),i)for(u=0;o=a[u++];)gt.test(o.type||"")&&i.push(o);return h}var _t=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function St(){return!1}function kt(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function At(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)At(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 _().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),t.each((function(){_.event.add(this,e,r,n,i)}))}function Ct(t,e,i){i?(Z.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var n,o,a=Z.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=r.call(arguments),Z.set(this,e,a),n=i(this,e),this[e](),a!==(o=Z.get(this,e))||n?Z.set(this,e,!1):o={},a!==o)return t.stopImmediatePropagation(),t.preventDefault(),o&&o.value}else a.length&&(Z.set(this,e,{value:_.event.trigger(_.extend(a[0],_.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,e)&&_.event.add(t,e,wt)}_.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,c,u,h,d,f,p,g,m=Z.get(t);if(U(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&_.find.matchesSelector(nt,r),i.guid||(i.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)f=g=(s=_t.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=_.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=_.event.special[f]||{},u=_.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,p,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),_.event.global[f]=!0)},remove:function(t,e,i,n,r){var o,a,s,l,c,u,h,d,f,p,g,m=Z.hasData(t)&&Z.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(f=g=(s=_t.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=_.event.special[f]||{},d=l[f=(n?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!r&&g!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||_.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)_.event.remove(t,f+e[c],i,n,!0);_.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=_.event.fix(t),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=_.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=((_.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.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?_(r,this).index(c)>-1:_.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(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(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[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ft.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click",wt),!1},trigger:function(t){var e=this||t;return ft.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return ft.test(e.type)&&e.click&&T(e,"input")&&Z.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt: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&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},_.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},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){_.event.special[t]={setup:function(){return Ct(this,t,kt),!1},trigger:function(){return Ct(this,t),!0},_default:function(){return!0},delegateType:e}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||_.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),_.fn.extend({on:function(t,e,i,n){return At(this,t,e,i,n)},one:function(t,e,i,n){return At(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,_(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(){_.event.remove(this,t,i,e)}))}});var Tt=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Lt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Dt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Mt(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if(Z.hasData(t)&&(s=Z.get(t).events))for(r in Z.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)_.event.add(e,r,s[r][i]);K.hasData(t)&&(o=K.access(t),a=_.extend({},o),K.set(e,a))}}function It(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ft.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Nt(t,e,i,n){e=o(e);var r,a,s,l,c,u,h=0,d=t.length,g=d-1,m=e[0],v=p(m);if(v||d>1&&"string"==typeof m&&!f.checkClone&&Et.test(m))return t.each((function(r){var o=t.eq(r);v&&(e[0]=m.call(this,r,o.html())),Nt(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=_.map(vt(r,"script"),Lt)).length;h<d;h++)c=r,h!==g&&(c=_.clone(c,!0,!0),l&&_.merge(s,vt(c,"script"))),i.call(t[h],c,h);if(l)for(u=s[s.length-1].ownerDocument,_.map(s,Dt),h=0;h<l;h++)c=s[h],gt.test(c.type||"")&&!Z.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Ot,""),c,u))}return t}function jt(t,e,i){for(var n,r=e?_.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||_.cleanData(vt(n)),n.parentNode&&(i&&rt(n)&&yt(vt(n,"script")),n.parentNode.removeChild(n));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,a,s=t.cloneNode(!0),l=rt(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(a=vt(s),n=0,r=(o=vt(t)).length;n<r;n++)It(o[n],a[n]);if(e)if(i)for(o=o||vt(t),a=a||vt(s),n=0,r=o.length;n<r;n++)Mt(o[n],a[n]);else Mt(t,s);return(a=vt(s,"script")).length>0&&yt(a,!l&&vt(t,"script")),s},cleanData:function(t){for(var e,i,n,r=_.event.special,o=0;void 0!==(i=t[o]);o++)if(U(i)){if(e=i[Z.expando]){if(e.events)for(n in e.events)r[n]?_.event.remove(i,n):_.removeEvent(i,n,e.handle);i[Z.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),_.fn.extend({detach:function(t){return jt(this,t,!0)},remove:function(t){return jt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?_.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 Nt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)}))},prepend:function(){return Nt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Pt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Nt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Nt(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&&(_.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return Y(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[(pt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(_.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Nt(this,arguments,(function(e){var i=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var i,n=[],r=_(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),_(r[s])[e](i),a.apply(n,i.get());return this.pushStack(n)}}));var Rt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ft=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},zt=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},Ht=new RegExp(it.join("|"),"i");function Bt(t,e,i){var n,r,o,a,s=t.style;return(i=i||Ft(t))&&(""!==(a=i.getPropertyValue(e)||i[e])||rt(t)||(a=_.style(t,e)),!f.pixelBoxStyles()&&Rt.test(a)&&Ht.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 Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.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(u);var e=t.getComputedStyle(u);n="1%"!==e.top,l=12===i(e.marginLeft),u.style.right="60%",a=36===i(e.right),r=36===i(e.width),u.style.position="absolute",o=12===i(u.offsetWidth/3),nt.removeChild(c),u=null}}function i(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,c=m.createElement("div"),u=m.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(f,{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"],qt=m.createElement("div").style,Xt={};function Vt(t){var e=_.cssProps[t]||Xt[t];return e||(t in qt?t:Xt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Wt.length;i--;)if((t=Wt[i]+e)in qt)return t}(t)||t)}var Ut=/^(none|table(?!-c[ea]).+)/,Gt=/^--/,Zt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function $t(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Qt(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+=_.css(t,i+it[a],!0,r)),n?("content"===i&&(l-=_.css(t,"padding"+it[a],!0,r)),"margin"!==i&&(l-=_.css(t,"border"+it[a]+"Width",!0,r))):(l+=_.css(t,"padding"+it[a],!0,r),"padding"!==i?l+=_.css(t,"border"+it[a]+"Width",!0,r):s+=_.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 Jt(t,e,i){var n=Ft(t),r=(!f.boxSizingReliable()||i)&&"border-box"===_.css(t,"boxSizing",!1,n),o=r,a=Bt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(Rt.test(a)){if(!i)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===_.css(t,"boxSizing",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+Qt(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)}_.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=V(e),l=Gt.test(e),c=t.style;if(l||(e=Vt(s)),a=_.cssHooks[e]||_.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]||(_.cssNumber[s]?"":"px")),f.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=V(e);return Gt.test(e)||(e=Vt(s)),(a=_.cssHooks[e]||_.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}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,i,n){if(i)return!Ut.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Jt(t,e,n):zt(t,Zt,(function(){return Jt(t,e,n)}))},set:function(t,i,n){var r,o=Ft(t),a=!f.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===_.css(t,"boxSizing",!1,o),l=n?Qt(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Qt(t,e,"border",!1,o)-.5)),l&&(r=et.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=_.css(t,e)),$t(0,i,l)}}})),_.cssHooks.marginLeft=Yt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Bt(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.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&&(_.cssHooks[t+e].set=$t)})),_.fn.extend({css:function(t,e){return Y(this,(function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=Ft(t),r=e.length;a<r;a++)o[e[a]]=_.css(t,e[a],!1,n);return o}return void 0!==i?_.style(t,e,i):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=te,te.prototype={constructor:te,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(_.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=_.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=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[Vt(t.prop)]?t.elem[t.prop]=t.now:_.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)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=te.prototype.init,_.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,_.fx.interval),_.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=_.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:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},i),originalProperties:e,originalOptions:i,startTime:ee||ae(),duration:i.duration,tweens:[],createTween:function(e,i){var n=_.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}}),u=c.props;for(!function(t,e){var i,n,r,o,a;for(i in t)if(r=e[n=V(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=_.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}(u,c.opts.specialEasing);o<a;o++)if(n=ce.prefilters[o].call(c,t,u,c.opts))return p(n.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return _.map(u,le,c),p(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),_.fx.timer(_.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}_.Animation=_.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){p(t)?(e=t,t=["*"]):t=t.match(N);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,u,h="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&at(t),m=Z.get(t,"fxshow");for(n in i.queue||(null==(a=_._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--,_.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}f[n]=m&&m[n]||_.style(t,n)}if((l=!_.isEmptyObject(e))||!_.isEmptyObject(f))for(n in h&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Z.get(t,"display")),"none"===(u=_.css(t,"display"))&&(c?u=c:(ut([t],!0),c=t.style.display||c,u=_.css(t,"display"),ut([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(t,"float")&&(l||(d.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Z.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&ut([t],!0),d.done((function(){for(n in g||ut([t]),Z.remove(t,"fxshow"),f)_.style(t,n,f[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)}}),_.speed=function(t,e,i){var n=t&&"object"==typeof t?_.extend({},t):{complete:i||!i&&e||p(t)&&t,duration:t,easing:i&&e||e&&!p(e)&&e};return _.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in _.fx.speeds?n.duration=_.fx.speeds[n.duration]:n.duration=_.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&_.dequeue(this,n.queue)},n},_.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=_.isEmptyObject(t),o=_.speed(e,i,n),a=function(){var e=ce(this,_.extend({},t),o);(r||Z.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=_.timers,a=Z.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||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=Z.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=_.timers,a=n?n.length:0;for(i.finish=!0,_.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}))}}),_.each(["toggle","show","hide"],(function(t,e){var i=_.fn[e];_.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(se(e,!0),t,n,r)}})),_.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),_.timers=[],_.fx.tick=function(){var t,e=0,i=_.timers;for(ee=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||_.fx.stop(),ee=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ie||(ie=!0,oe())},_.fx.stop=function(){ie=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,i){return e=_.fx&&_.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",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ue,he=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return Y(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,i):(1===o&&_.isXMLDoc(t)||(r=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?ue:void 0)),void 0!==i?null===i?void _.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=_.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.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(N);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ue={set:function(t,e,i){return!1===e?_.removeAttr(t,i):t.setAttribute(i,i),i}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=he[e]||_.find.attr;he[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=he[a],he[a]=r,r=null!=i(t,e,n)?a:null,he[a]=o),r}}));var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(N)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}_.fn.extend({prop:function(t,e){return Y(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(e=_.propFix[e]||e,r=_.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=_.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(_.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)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,i,n,r,o,a,s,l=0;if(p(t))return this.each((function(e){_(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&&" "+pe(r)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(s=pe(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,o,a,s,l=0;if(p(t))return this.each((function(e){_(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&&" "+pe(r)+" "){for(a=0;o=e[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=pe(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):p(t)?this.each((function(i){_(this).toggleClass(t.call(this,i,ge(this),e),e)})):this.each((function(){var e,r,o,a;if(n)for(r=0,o=_(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))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Z.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+pe(ge(i))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;_.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=p(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,_(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ve,""):null==i?"":i:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:pe(_.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=_(i).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=_.makeArray(e),a=r.length;a--;)((n=r[a]).selected=_.inArray(_.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},f.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(e,i,n,r){var o,a,s,l,c,h,d,f,v=[n||m],y=u.call(e,"type")?e.type:e,b=u.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!ye.test(y+_.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[_.expando]?e:new _.Event(y,"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]:_.makeArray(i,[e]),d=_.event.special[y]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!g(n)){for(l=d.delegateType||y,ye.test(l+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(n.ownerDocument||m)&&v.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=v[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||y,(h=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&h.apply(a,i),(h=c&&a[c])&&h.apply&&U(a)&&(e.result=h.apply(a,i),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),i)||!U(n)||c&&p(n[y])&&!g(n)&&((s=n[c])&&(n[c]=null),_.event.triggered=y,e.isPropagationStopped()&&f.addEventListener(y,be),n[y](),e.isPropagationStopped()&&f.removeEventListener(y,be),_.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(t,e,i){var n=_.extend(new _.Event,i,{type:t,isSimulated:!0});_.event.trigger(n,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return _.event.trigger(t,e,i,!0)}}),f.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=Z.access(n,e);r||n.addEventListener(t,i,!0),Z.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=Z.access(n,e)-1;r?Z.access(n,e,r):(n.removeEventListener(t,i,!0),Z.remove(n,e))}}}));var xe=t.location,_e={guid:Date.now()},we=/\?/;_.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||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(t){return t.textContent})).join("\n"):e)),i};var Se=/\[\]$/,ke=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Ce=/^(?:input|select|textarea|keygen)/i;function Te(t,e,i,n){var r;if(Array.isArray(e))_.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)}_.param=function(t,e){var i,n=[],r=function(t,e){var i=p(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){r(this.name,this.value)}));else for(i in t)Te(i,t[i],e,r);return n.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Ce.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!ft.test(t))})).map((function(t,e){var i=_(this).val();return null==i?null:Array.isArray(i)?_.map(i,(function(t){return{name:e.name,value:t.replace(ke,"\r\n")}})):{name:e.name,value:i.replace(ke,"\r\n")}})).get()}});var Ee=/%20/g,Oe=/#.*$/,Pe=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)$/gm,De=/^(?:GET|HEAD)$/,Me=/^\/\//,Ie={},Ne={},je="*/".concat("*"),Re=m.createElement("a");function Fe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(N)||[];if(p(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ze(t,e,i,n){var r={},o=t===Ne;function a(s){var l;return r[s]=!0,_.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 He(t,e){var i,n,r=_.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&_.extend(!0,t,n),t}Re.href=xe.href,_.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:{"*":je,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":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,_.ajaxSettings),e):He(_.ajaxSettings,t)},ajaxPrefilter:Fe(Ie),ajaxTransport:Fe(Ne),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,r,o,a,s,l,c,u,h,d,f=_.ajaxSetup({},i),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?_(p):_.event,v=_.Deferred(),y=_.Callbacks("once memory"),b=f.statusCode||{},x={},w={},S="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Le.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=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.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),A(0,e),this}};if(v.promise(k),f.url=((e||f.url||xe.href)+"").replace(Me,xe.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(N)||[""],null==f.crossDomain){l=m.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Re.protocol+"//"+Re.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),ze(Ie,f,i,k),c)return k;for(h in(u=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!De.test(f.type),r=f.url.replace(Oe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ee,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(we.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Pe,"$1"),d=(we.test(r)?"&":"?")+"_="+_e.guid+++d),f.url=r+d),f.ifModified&&(_.lastModified[r]&&k.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&k.setRequestHeader("If-None-Match",_.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+je+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||c))return k.abort();if(S="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=ze(Ne,f,i,k)){if(k.readyState=1,u&&g.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(s=t.setTimeout((function(){k.abort("timeout")}),f.timeout));try{c=!1,n.send(x,A)}catch(t){if(c)throw t;A(-1,t)}}else A(-1,"No Transport");function A(e,i,a,l){var h,d,m,x,w,S=i;c||(c=!0,s&&t.clearTimeout(s),n=void 0,o=l||"",k.readyState=e>0?4:0,h=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]}(f,k,a)),!h&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,i,n){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.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],u.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}}(f,x,k,h),h?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(_.etag[r]=w)),204===e||"HEAD"===f.type?S="nocontent":304===e?S="notmodified":(S=x.state,d=x.data,h=!(m=x.error))):(m=S,!e&&S||(S="error",e<0&&(e=0))),k.status=e,k.statusText=(i||S)+"",h?v.resolveWith(p,[d,S,k]):v.rejectWith(p,[k,S,m]),k.statusCode(b),b=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[k,f,h?d:m]),y.fireWith(p,[k,S]),u&&(g.trigger("ajaxComplete",[k,f]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return _.get(t,e,i,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,i,n,r){return p(i)&&(r=r||n,n=i,i=void 0),_.ajax(_.extend({url:t,type:e,dataType:r,data:i,success:n},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,i){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,i)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=_(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 p(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(i){_(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Be={0:200,1223:204},Ye=_.ajaxSettings.xhr();f.cors=!!Ye&&"withCredentials"in Ye,f.ajax=Ye=!!Ye,_.ajaxTransport((function(e){var i,n;if(f.cors||Ye&&!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()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.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 _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=_("<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,qe=[],Xe=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||_.expando+"_"+_e.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(e,i,n){var r,o,a,s=!1!==e.jsonp&&(Xe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=p(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xe,"$1"+r):!1!==e.jsonp&&(e.url+=(we.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||_.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?_(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,qe.push(r)),a&&p(o)&&o(a[0]),a=o=void 0})),"script"})),f.createHTMLDocument=((We=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===We.childNodes.length),_.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(f.createHTMLDocument?((n=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(n)):e=m),o=!i&&[],(r=E.exec(t))?[e.createElement(r[1])]:(r=xt([t],e,o),o&&o.length&&_(o).remove(),_.merge([],r.childNodes)));var n,r,o},_.fn.load=function(t,e,i){var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=pe(t.slice(s)),t=t.slice(0,s)),p(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&_.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(n?_("<div>").append(_.parseHTML(t)).find(n):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,c=_.css(t,"position"),u=_(t),h={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=_.css(t,"top"),l=_.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(n=u.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),p(e)&&(e=e.call(t,i,_.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):u.css(h)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.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"===_.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"===_.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),r.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-_.css(n,"marginTop",!0),left:e.left-r.left-_.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||nt}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;_.fn[t]=function(n){return Y(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)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=Yt(f.pixelPosition,(function(t,i){if(i)return i=Bt(t,e),Rt.test(i)?_(t).position()[e]+"px":i}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){_.fn[n]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===o?"margin":"border");return Y(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?_.css(e,i,s):_.style(e,i,r,s)}),e,a?r:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,t)}})),_.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)}}),_.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){_.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Ve=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),p(t))return n=r.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||_.guid++,o},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=T,_.isFunction=p,_.isWindow=g,_.camelCase=V,_.type=b,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(Ve,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var Ue=t.jQuery,Ge=t.$;return _.noConflict=function(e){return t.$===_&&(t.$=Ge),e&&t.jQuery===_&&(t.jQuery=Ue),_},void 0===e&&(t.jQuery=t.$=_),_})),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?$:10===t?Q:$||Q}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 u=a(t);return u.host?s(u.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 u(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 h(t,e,i,n){return X(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:h("Height",e,i,n),width:h("Width",e,i,n)}}function f(t){return it({},t,{right:t.left+t.width,bottom:t.top+t.height})}function p(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,h=s.height||t.clientHeight||a.bottom-a.top,p=t.offsetWidth-c,g=t.offsetHeight-h;if(p||g){var m=e(t);p-=u(m,"x"),g-=u(m,"y"),a.width-=p,a.height-=g}return f(a)}function g(t,i){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],a=r(10),s="HTML"===i.nodeName,l=p(t),u=p(i),h=n(t),d=e(i),g=parseFloat(d.borderTopWidth,10),m=parseFloat(d.borderLeftWidth,10);o&&s&&(u.top=X(u.top,0),u.left=X(u.left,0));var v=f({top:l.top-u.top-g,left:l.left-u.left-m,width:l.width,height:l.height});if(v.marginTop=0,v.marginLeft=0,!a&&s){var y=parseFloat(d.marginTop,10),b=parseFloat(d.marginLeft,10);v.top-=g-y,v.bottom-=g-y,v.left-=m-b,v.right-=m-b,v.marginTop=y,v.marginLeft=b}return(a&&!o?i.contains(h):i===h&&"BODY"!==h.nodeName)&&(v=c(v,i)),v}function m(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=g(t,i),r=X(i.clientWidth,window.innerWidth||0),o=X(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 f(c)}function v(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&&v(r)}function y(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?y(t):s(t,e);if("viewport"===o)l=m(c,a);else{var u;"scrollParent"===o?"BODY"===(u=n(i(e))).nodeName&&(u=t.ownerDocument.documentElement):u="window"===o?t.ownerDocument.documentElement:o;var h=g(u,c,a);if("HTML"!==u.nodeName||v(c))l=h;else{var f=d(t.ownerDocument),p=f.height,b=f.width;l.top+=h.top-h.marginTop,l.bottom=p+h.top,l.left+=h.left-h.marginLeft,l.right=b+h.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 _(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})),u=0<c.length?c[0].key:l[0].key,h=t.split("-")[1];return u+(h?"-"+h:"")}function w(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?y(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 k(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 A(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[k(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=f(i.offsets.popper),i.offsets.reference=f(i.offsets.reference),i=n(i,e))})),i}function E(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=w(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=_(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=A(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 P(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 L(){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[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function D(t){var e=t.ownerDocument;return e?e.defaultView:window}function M(t,e,i,r){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(e,i,{passive:!0}),o||M(n(a.parentNode),e,i,r),r.push(a)}function I(t,e,i,r){i.updateBound=r,D(t).addEventListener("resize",i.updateBound,{passive:!0});var o=n(t);return M(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function N(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}function j(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return D(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 R(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function F(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&R(e[i])&&(n="px"),t.style[i]=e[i]+n}))}function z(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 H(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 f(s)[e]/100*o}return"vh"===a||"vw"===a?("vh"===a?X(document.documentElement.clientHeight,window.innerHeight||0):X(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(t,r,e,i)}))}))).forEach((function(t,e){t.forEach((function(i,n){R(i)&&(r[e]+=i*("-"===t[n-1]?-1:1))}))})),r}for(var Y=Math.min,W=Math.floor,q=Math.round,X=Math.max,V="undefined"!=typeof window&&"undefined"!=typeof document,U=["Edge","Trident","Firefox"],G=0,Z=0;Z<U.length;Z+=1)if(V&&0<=navigator.userAgent.indexOf(U[Z])){G=1;break}var K=V&&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()}),G))}},$=V&&!(!window.MSInputMethodContext||!document.documentMode),Q=V&&/MSIE 10/.test(navigator.userAgent),J=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=V&&/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]:{};J(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 E.call(this)}},{key:"destroy",value:function(){return L.call(this)}},{key:"enableEventListeners",value:function(){return N.call(this)}},{key:"disableEventListeners",value:function(){return j.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",u={start:et({},l,o[l]),end:et({},l,o[l]+o[c]-a[c])};t.offsets.popper=it({},a,u[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=R(+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=P("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 u=e.priority,h=t.offsets.popper,d={primary:function(t){var i=h[t];return h[t]<c[t]&&!e.escapeWithReference&&(i=X(h[t],c[t])),et({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=h[i];return h[t]>c[t]&&!e.escapeWithReference&&(n=Y(h[i],c[t]-("right"===t?h.width:h.height))),et({},i,n)}};return u.forEach((function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";h=it({},h,d[e](t))})),t.offsets.popper=h,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(!z(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),u=c?"height":"width",h=c?"Top":"Left",d=h.toLowerCase(),p=c?"left":"top",g=c?"bottom":"right",m=S(r)[u];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=f(t.offsets.popper);var v=l[d]+l[u]/2-m/2,y=e(t.instance.popper),b=parseFloat(y["margin"+h],10),x=parseFloat(y["border"+h+"Width"],10),_=v-t.offsets.popper[d]-b-x;return _=X(Y(s[u]-m,_),0),t.arrowElement=r,t.offsets.arrow=(et(n={},d,q(_)),et(n,p,""),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=k(n),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case at:a=[n,r];break;case st:a=H(n);break;case lt:a=H(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=k(n);var c=t.offsets.popper,u=t.offsets.reference,h=W,d="left"===n&&h(c.right)>h(u.left)||"right"===n&&h(c.left)<h(u.right)||"top"===n&&h(c.bottom)>h(u.top)||"bottom"===n&&h(c.top)<h(u.bottom),f=h(c.left)<h(i.left),p=h(c.right)>h(i.right),g=h(c.top)<h(i.top),m=h(c.bottom)>h(i.bottom),v="left"===n&&f||"right"===n&&p||"top"===n&&g||"bottom"===n&&m,y=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m);(d||v||b)&&(t.flipped=!0,(d||v)&&(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,A(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=k(e),t.offsets.popper=f(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!z(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,u=o(t.instance.popper),h=p(u),d={position:r.position},f=function(t,e){var i=t.offsets,n=i.popper,r=i.reference,o=q,a=function(t){return t},s=o(r.width),l=o(n.width),c=-1!==["left","right"].indexOf(t.placement),u=-1!==t.placement.indexOf("-"),h=e?c||u||s%2==l%2?o:W:a,d=e?o:a;return{left:h(1==s%2&&1==l%2&&!u&&e?n.left-1:n.left),top:d(n.top),bottom:d(n.bottom),right:h(n.right)}}(t,2>window.devicePixelRatio||!nt),g="bottom"===i?"top":"bottom",m="right"===n?"left":"right",v=P("transform");if(l="bottom"==g?"HTML"===u.nodeName?-u.clientHeight+f.bottom:-h.height+f.bottom:f.top,s="right"==m?"HTML"===u.nodeName?-u.clientWidth+f.right:-h.width+f.right:f.left,c&&v)d[v]="translate3d("+s+"px, "+l+"px, 0)",d[g]=0,d[m]=0,d.willChange="transform";else{var y="bottom"==g?-1:1,b="right"==m?-1:1;d[g]=l*y,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 F(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&&F(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,r){var o=w(r,e,t,i.positionFixed),a=_(i.placement,o,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",a),F(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 u="alert",h=r.default.fn[u],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[u]=d._jQueryInterface,r.default.fn[u].Constructor=d,r.default.fn[u].noConflict=function(){return r.default.fn[u]=h,d._jQueryInterface};var f=r.default.fn.button,p=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||p._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=p._jQueryInterface,r.default.fn.button.Constructor=p,r.default.fn.button.noConflict=function(){return r.default.fn.button=f,p._jQueryInterface};var g="carousel",m=r.default.fn[g],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={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({},v,t),c.typeCheckConfig(g,t,y),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),u=e||s&&this._getItemByDirection(t,s),h=this._getItemIndex(u),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"),u&&r.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var f=r.default.Event("slid.bs.carousel",{relatedTarget:u,direction:o,from:l,to:h});if(r.default(this._element).hasClass("slide")){r.default(u).addClass(n),c.reflow(u),r.default(s).addClass(i),r.default(u).addClass(i);var p=c.getTransitionDurationFromElement(s);r.default(s).one(c.TRANSITION_END,(function(){r.default(u).removeClass(i+" "+n).addClass("active"),r.default(s).removeClass("active "+n+" "+i),a._isSliding=!1,setTimeout((function(){return r.default(a._element).trigger(f)}),0)})).emulateTransitionEnd(p)}else r.default(s).removeClass("active"),r.default(u).addClass("active"),this._isSliding=!1,r.default(this._element).trigger(f);d&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var i=r.default(this).data("bs.carousel"),n=l({},v,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 v}}]),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 _="collapse",w=r.default.fn[_],S={toggle:!0,parent:""},k={toggle:"boolean",parent:"(string|element)"},A=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(_,t,k),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();A._jQueryInterface.call(t,i)}))})),r.default.fn[_]=A._jQueryInterface,r.default.fn[_].Constructor=A,r.default.fn[_].noConflict=function(){return r.default.fn[_]=w,A._jQueryInterface};var C="dropdown",T=r.default.fn[C],E=new RegExp("38|40|27"),O={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},P={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},L=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 u=r.default.Event("hide.bs.dropdown",l);r.default(a).trigger(u),u.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):!E.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 P}}]),t}();r.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',L._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",L._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",L._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),L._jQueryInterface.call(r.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),r.default.fn[C]=L._jQueryInterface,r.default.fn[C].Constructor=L,r.default.fn[C].noConflict=function(){return r.default.fn[C]=T,L._jQueryInterface};var D=r.default.fn.modal,M={backdrop:!0,keyboard:!0,focus:!0,show:!0},I={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},N=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({},M,t),c.typeCheckConfig("modal",t,I),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({},M,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 M}}]),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()}))}));N._jQueryInterface.call(r.default(e),o,this)})),r.default.fn.modal=N._jQueryInterface,r.default.fn.modal.Constructor=N,r.default.fn.modal.noConflict=function(){return r.default.fn.modal=D,N._jQueryInterface};var j=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],R=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,F=/^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 z(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===j.indexOf(i)||Boolean(t.nodeValue.match(R)||t.nodeValue.match(F));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 H="tooltip",B=r.default.fn[H],Y=new RegExp("(^|\\s)bs-tooltip\\S+","g"),W=["sanitize","whiteList","sanitizeFn"],q={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)"},X={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},V={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"},G=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,u=this._getAttachment(l);this.addAttachmentClass(u);var h=this._getContainer();r.default(a).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(a).appendTo(h),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,a,this._getPopperConfig(u)),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 f=c.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(c.TRANSITION_END,d).emulateTransitionEnd(f)}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=z(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 X[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(H,t,this.constructor.DefaultType),t.sanitize&&(t.template=z(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(Y);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 V}},{key:"NAME",get:function(){return H}},{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 q}}]),t}();r.default.fn[H]=G._jQueryInterface,r.default.fn[H].Constructor=G,r.default.fn[H].noConflict=function(){return r.default.fn[H]=B,G._jQueryInterface};var Z="popover",K=r.default.fn[Z],$=new RegExp("(^|\\s)bs-popover\\S+","g"),Q=l({},G.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>'}),J=l({},G.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($);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 Q}},{key:"NAME",get:function(){return Z}},{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 J}}]),n}(G);r.default.fn[Z]=et._jQueryInterface,r.default.fn[Z].Constructor=et,r.default.fn[Z].noConflict=function(){return r.default.fn[Z]=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 u=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,u):u()}}},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,ut={animation:"boolean",autohide:"boolean",delay:"number"},ht={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({},ht,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 ut}},{key:"Default",get:function(){return ht}}]),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=p,t.Carousel=x,t.Collapse=A,t.Dropdown=L,t.Modal=N,t.Popover=et,t.Scrollspy=at,t.Tab=lt,t.Toast=dt,t.Tooltip=G,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})),
/*!
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,u,h,d=this.waypoints[o][s],f=d.options.offset,p=d.triggerPoint,g=0,m=null==p;d.element!==d.element.window&&(g=d.adapter.offset()[a.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(a.contextDimension*f/100))),l=a.contextScroll-a.contextOffset,d.triggerPoint=Math.floor(g+l-f),c=p<a.oldScroll,u=d.triggerPoint>=a.oldScroll,h=!c&&!u,!m&&(c&&u)?(d.queueTrigger(a.backward),r[d.group.id]=d.group):(!m&&h||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,u=e.lang,h=void 0===u?void 0:u;if("stop"!==o){if(n(t),/[0-9]/.test(t.innerHTML)){var d=r(t.innerHTML,{duration:s||t.getAttribute("data-duration"),lang:h||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]*)/),u=[],h=0;h<l;h++)u.push("");for(var d=0;d<c.length;d++)if(/([0-9.][,.0-9]*[0-9]*)/.test(c[d])&&!/<[^>]+>/.test(c[d])){var f=c[d],p=/[0-9]+,[0-9]+/.test(f);f=f.replace(/,/g,"");for(var g=/^[0-9]+\.[0-9]+$/.test(f),m=g?(f.split(".")[1]||[]).length:0,v=u.length-1,y=l;y>=1;y--){var b=parseInt(f/l*y,10);g&&(b=parseFloat(f/l*y).toFixed(m),b=parseFloat(b).toLocaleString(s)),p&&(b=b.toLocaleString(s)),u[v--]+=b}}else for(var x=0;x<l;x++)u[x]+=c[d];return u[u.length]=t.toString(),u},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,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"),u=n.Symbol,h=l?u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(u,t)?c[t]=u[t]:c[t]=h("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),u=i(3),h=i(27),d=i(16),f=s.WeakMap;if(a){var p=new f,g=p.get,m=p.has,v=p.set;n=function(t,e){return v.call(p,t,e),e},r=function(t){return g.call(p,t)||{}},o=function(t){return m.call(p,t)}}else{var y=h("state");d[y]=!0,n=function(t,e){return c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}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,u=l.enforce,h=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),u(i).source=h.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,u,h,d,f,p=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in e){if(d=e[u],h=t.noTargetGet?(f=r(i,u))&&f.value:i[u],!c(g?u:p+(m?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(i,u,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"),u=0,h=Object.isExtensible||function(){return!0},d=function(t){a(t,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=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(!h(t))return"F";if(!e)return"E";d(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[c].weakData},onFreeze:function(t){return l&&f.REQUIRED&&h(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),u=i(2),h=i(4),d=i(60),f=i(36),p=i(78);t.exports=function(t,e,i){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),v=g?"set":"add",y=r[t],b=y&&y.prototype,x=y,_={},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&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!u(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 y||!(m||b.forEach&&!h((function(){(new y).entries().next()})))))x=i.getConstructor(e,t,g,v),s.REQUIRED=!0;else if(o(t,!0)){var S=new x,k=S[v](m?{}:-0,1)!=S,A=h((function(){S.has(1)})),C=d((function(t){new y(t)})),T=!m&&h((function(){for(var t=new y,e=5;e--;)t[v](e,e);return!t.has(-0)}));C||((x=e((function(e,i){c(e,x,t);var n=p(new y,e,x);return null!=i&&l(i,n[v],n,g),n}))).prototype=b,b.constructor=x),(A||T)&&(w("delete"),w("has"),g&&w("get")),(T||k)&&w(v),m&&b.clear&&delete b.clear}return _[t]=x,n({global:!0,forced:x!=y},_),f(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,u,h){var d,f,p,g,m,v,y,b=a(e,i,u?2:1);if(h)d=t;else{if("function"!=typeof(f=s(t)))throw TypeError("Target is not iterable");if(r(f)){for(p=0,g=o(t.length);g>p;p++)if((m=u?b(n(y=t[p])[0],y[1]):b(t[p]))&&m instanceof c)return m;return new c(!1)}d=f.call(t)}for(v=d.next;!(y=v.call(d)).done;)if("object"==typeof(m=l(d,b,y.value,u))&&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),u=i(27)("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},f=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}f=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 f.prototype[a[t]];return f()};s[u]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(h.prototype=r(t),i=new h,h.prototype=null,i[u]=t):i=f(),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),u=i(1),h=i(28),d=i(12),f=i(64),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v=function(){return this};t.exports=function(t,e,i,u,f,y,b){r(i,e,u);var x,_,w,S=function(t){if(t===f&&E)return E;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)}},k=e+" Iterator",A=!1,C=t.prototype,T=C[m]||C["@@iterator"]||f&&C[f],E=!g&&T||S(f),O="Array"==e&&C.entries||T;if(O&&(x=o(O.call(new t)),p!==Object.prototype&&x.next&&(h||o(x)===p||(a?a(x,p):"function"!=typeof x[m]&&l(x,m,v)),s(x,k,!0,!0),h&&(d[k]=v))),"values"==f&&T&&"values"!==T.name&&(A=!0,E=function(){return T.call(this)}),h&&!b||C[m]===E||l(C,m,E),d[e]=E,f)if(_={values:S("values"),keys:y?E:S("keys"),entries:S("entries")},b)for(w in _)!g&&!A&&w in C||c(C,w,_[w]);else n({target:e,proto:!0,forced:g||A},_);return _}},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"),u=o.values;for(var h in r){var d=n[h],f=d&&d.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(t){f[l]=u}if(f[c]||a(f,c,h),r[h])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(t){f[p]=o[p]}}}},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),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(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),u=i(84),h=i(6),d=i(18).fastKey,f=i(9),p=f.set,g=f.getterFor;t.exports={getConstructor:function(t,e,i,c){var u=t((function(t,n){s(t,u,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=n&&l(n,t[c],t,i)})),f=g(e),m=function(t,e,i){var n,r,o=f(t),a=v(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),h?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},v=function(t,e){var i,n=f(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(u.prototype,{clear:function(){for(var t=f(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,h?t.size=0:this.size=0},delete:function(t){var e=f(this),i=v(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),h?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=f(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!!v(this,t)}}),o(u.prototype,i?{get:function(t){var e=v(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)}}),h&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(t,e,i){var n=e+" Iterator",r=g(e),o=g(n);c(t,e,(function(t,e){p(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),u(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),u=i(28),h=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(n=r):d=!0),null==n&&(n={}),u||l(n,h)||s(n,h,(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 u=i[c];n(t,u)||s(t,u,l(e,u))}}},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),u=o(a,c);if(t&&i!=i){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===i)return t||u||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),u=i(9).enforce,h=i(50),d=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",p,l);if(h&&d){n=l.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m.delete,y=m.has,b=m.get,x=m.set;o(m,{delete:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),v.call(this,t)||e.frozen.delete(t)}return v.call(this,t)},has:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(c(t)&&!f(t)){var i=u(this);i.frozen||(i.frozen=new n),y.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),u=i(3),h=i(9),d=h.set,f=h.getterFor,p=c.find,g=c.findIndex,m=0,v=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};y.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 h=t((function(t,n){s(t,h,e),d(t,{type:e,id:m++,frozen:void 0}),null!=n&&l(n,t[c],t,i)})),p=f(e),g=function(t,e,i){var n=p(t),a=r(o(e),!0);return!0===a?v(n).set(e,i):a[n.id]=i,t};return n(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var i=r(t);return!0===i?v(e).delete(t):i&&u(i,e.id)&&delete i[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var i=r(t);return!0===i?v(e).has(t):i&&u(i,e.id)}}),n(h.prototype,i?{get:function(t){var e=p(this);if(a(t)){var i=r(t);return!0===i?v(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)}}),h}}},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,u=4==t,h=6==t,d=5==t||h;return function(f,p,g,m){for(var v,y,b=o(f),x=r(b),_=n(p,g,3),w=a(x.length),S=0,k=m||s,A=e?k(f,w):i?k(f,0):void 0;w>S;S++)if((d||S in x)&&(y=_(v=x[S],S,b),t))if(e)A[S]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:l.call(A,v)}else if(u)return!1;return h?-1:c||u?u:A}};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,u,h,d,f,p=r(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=c(p),x=0;if(y&&(v=n(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(i=new g(e=s(p.length));e>x;x++)f=y?v(p[x],x):p[x],l(i,x,f);else for(d=(h=b.call(p)).next,i=new g;!(u=d.call(h)).done;x++)f=y?o(h,v,[u.value,x],!0):u.value,l(i,x,f);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),u=Object.assign,h=Object.defineProperty;t.exports=!u||r((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(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!=u({},t)[i]||"abcdefghijklmnopqrst"!=o(u({},e)).join("")}))?function(t,e){for(var i=l(t),r=arguments.length,u=1,h=a.f,d=s.f;r>u;)for(var f,p=c(arguments[u++]),g=h?o(p).concat(h(p)):o(p),m=g.length,v=0;m>v;)f=g[v++],n&&!d.call(p,f)||(i[f]=p[f]);return i}:u},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)},u=i(66),h="object"==typeof self&&self&&self.Object===Object&&self,d=u.a||h||Function("return this")(),f=d.Symbol,p=Object.prototype,g=p.hasOwnProperty,m=p.toString,v=f?f.toStringTag:void 0,y=Object.prototype.toString,b=f?f.toStringTag:void 0,x=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,w=/^0o[0-7]+$/i,S=parseInt,k=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,v),i=t[v];try{t[v]=void 0;var n=!0}catch(t){}var r=m.call(t);return n&&(e?t[v]=i:delete t[v]),r}(t):function(t){return y.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=_.test(t);return i||w.test(t)?S(t.slice(2),i?2:8):x.test(t)?NaN:+t},A=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=k(i))==i?i:0),void 0!==e&&(e=(e=k(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}(k(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:A(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 E=function(){return d.Date.now()},O=Math.max,P=Math.min,L=function(t,e,i){var n,r,o,a,s,l,u=0,h=!1,d=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var i=n,o=r;return n=r=void 0,u=e,a=t.apply(o,i)}function g(t){var i=t-l;return void 0===l||i>=e||i<0||d&&t-u>=o}function m(){var t=E();if(g(t))return v(t);s=setTimeout(m,function(t){var i=e-(t-l);return d?P(i,o-(t-u)):i}(t))}function v(t){return s=void 0,f&&n?p(t):(n=r=void 0,a)}function y(){var t=E(),i=g(t);if(n=arguments,r=this,l=t,i){if(void 0===s)return function(t){return u=t,s=setTimeout(m,e),h?p(t):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,e),p(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=k(e)||0,c(i)&&(h=!!i.leading,o=(d="maxWait"in i)?O(k(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=r=s=void 0},y.flush=function(){return void 0===s?a:v(E())},y};function D(){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:L.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 M,I=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}(),N=new WeakMap;function j(){if(void 0!==M)return M;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 M=!!t&&{passive:!1}}function R(t){var e=N.get(t)||[];return N.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,j())}))}}function F(t){var e=function(t){return t.touches?t.touches[t.touches.length-1]:t}(t);return{x:e.clientX,y:e.clientY}}function z(t,e){return void 0===e&&(e=[]),e.some((function(e){return t===e}))}var H=["webkit","moz","ms","o"],B=new RegExp("^-(?!(?:"+H.join("|")+")-)");function Y(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,H.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,q=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=F(t)}return t.prototype.update=function(t){var e=this.velocity,i=this.updateTime,n=this.lastPosition,r=Date.now(),o=F(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}(),X=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 q(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 V=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)),Y(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 V(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){Y(this.element,{display:i<=e?"none":"block"}),this.thumb.update(t,e,i)},t}(),G=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([D(300)],t.prototype,"autoHideOnIdle",null),t}(),Z=new WeakMap;function K(t){return Math.pow(t-1,3)+1}var $,Q,J,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=R(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 $.TAB:return function(t){requestAnimationFrame((function(){t.scrollIntoView(document.activeElement,{offsetTop:t.size.container.height/2,onlyScrollIfNeeded:!0})}))}(t);case $.SPACE:return[0,200];case $.PAGE_UP:return[0,40-i.container.height];case $.PAGE_DOWN:return[0,i.container.height-40];case $.END:return[0,n.y-r.y];case $.HOME:return[0,-r.y];case $.LEFT:return[-40,0];case $.UP:return[0,-40];case $.RIGHT:return[40,0];case $.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=R(t),s=t.containerEl,l=t.track,c=l.xAxis,u=l.yAxis;function h(e,i){var n=t.size;return e===Q.X?i/(n.container.width+(c.thumb.realSize-c.thumb.displaySize))*n.content.width:e===Q.Y?i/(n.container.height+(u.thumb.realSize-u.thumb.displaySize))*n.content.height:0}function d(t){return z(t,[c.element,c.thumb.element])?Q.X:z(t,[u.element,u.thumb.element])?Q.Y:void 0}a(s,"click",(function(e){if(!i&&z(e.target,[c.element,u.element])){var n=e.target,r=d(n),o=n.getBoundingClientRect(),a=F(e),s=t.offset,l=t.limit;if(r===Q.X){var f=a.x-o.left-c.thumb.displaySize/2;t.setMomentum(A(h(r,f)-s.x,-s.x,l.x-s.x),0)}r===Q.Y&&(f=a.y-o.top-u.thumb.displaySize/2,t.setMomentum(0,A(h(r,f)-s.y,-s.y,l.y-s.y)))}})),a(s,"mousedown",(function(i){if(z(i.target,[c.thumb.element,u.thumb.element])){e=!0;var a=i.target,l=F(i),h=a.getBoundingClientRect();r=d(a),n={x:l.x-h.left,y:l.y-h.top},o=s.getBoundingClientRect(),Y(t.containerEl,{"-user-select":"none"})}})),a(window,"mousemove",(function(a){if(e){i=!0;var s=t.offset,l=F(a);if(r===Q.X){var c=l.x-n.x-o.left;t.setPosition(h(r,c),s.y)}r===Q.Y&&(c=l.y-n.y-o.top,t.setPosition(s.x,h(r,c)))}})),a(window,"mouseup blur",(function(){e=i=!1,Y(t.containerEl,{"-user-select":""})}))}function rt(t){R(t)(window,"resize",L(t.update.bind(t),300))}function ot(t){var e,i=R(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(A(a.x+r,0,s.x)-a.x,A(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=F(e),l=s.x,c=s.y,u={x:0,y:0};return 0===l&&0===c||(l>r-20?u.x=l-r+20:l<a+20&&(u.x=l-a-20),c>o-20?u.y=c-o+20:c<n+20&&(u.y=c-n-20),u.x*=2,u.y*=2),u}(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 X,o=R(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(!J||J===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(),J=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),J=null}))}function st(t){R(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=ut(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"}($||($={})),function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(Q||(Q={}));var lt={STANDARD:1,OTHERS:-3},ct=[1,28,500],ut=function(t){return ct[t]||ct[0]},ht=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 I(e),t.setAttribute("data-scrollbar","true"),t.setAttribute("tabindex","-1"),Y(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 G(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})),ht.set(t,this),requestAnimationFrame((function(){i._init()}))}return Object.defineProperty(t.prototype,"parent",{get:function(){for(var t=this.containerEl.parentElement;t;){var e=ht.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=A(e,0,a.x),i=A(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,Y(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,u=t.offset,h=t.limit;c.renderByPixels&&(e=Math.round(e),i=Math.round(i));var d=u.x,f=u.y,p=A(e,0,h.x)-d,g=A(i,0,h.y)-f,m=Date.now();cancelAnimationFrame(Z.get(t)),function e(){var i=Date.now()-m,r=n?s(Math.min(i/n,1)):1;if(t.setPosition(d+p*r,f+g*r),i>=n)"function"==typeof l&&l.call(t);else{var o=requestAnimationFrame(e);Z.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,u=n.offsetLeft,h=void 0===u?0:u,d=n.offsetBottom,f=void 0===d?0:d,p=t.containerEl,g=t.bounding,m=t.offset,v=t.limit;if(e&&p.contains(e)){var y=e.getBoundingClientRect();if(!s||!t.isVisible(e)){var b=o?y.top-g.top-c:y.bottom-g.bottom+f;t.setMomentum(y.left-g.left-h,A(b,-m.y,v.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=N.get(t);e&&(e.forEach((function(t){var e=t.elem,i=t.eventName,n=t.handler;e.removeEventListener(i,n,j())})),N.delete(t))}(this),this._listeners.clear(),this.setMomentum(0,0),cancelAnimationFrame(this._renderID),this._observer&&this._observer.disconnect(),ht.delete(this.containerEl);for(var i=Array.from(e.childNodes);t.firstChild;)t.removeChild(t.firstChild);i.forEach((function(e){t.appendChild(e)})),Y(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=A(t+n.x,0,r.x),a=A(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([D(100,{leading:!0})],t.prototype,"_updateDebounced",null),t}(),ft="smooth-scrollbar-style",pt=!1;function gt(){if(!pt&&"undefined"!=typeof window){var t=document.createElement("style");t.id=ft,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),pt=!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(),ht.has(t)?ht.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 ht.has(t)},e.get=function(t){return ht.get(t)},e.getAll=function(){return Array.from(ht.values())},e.destroy=function(t){var e=ht.get(t);e&&e.destroy()},e.destroyAll=function(){ht.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(pt&&"undefined"!=typeof window){var t=document.getElementById(ft);t&&t.parentNode&&(t.parentNode.removeChild(t),pt=!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=Vt.defaults.oLanguage,i=e.sDecimal;if(i&&Ht(i),t){var n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&i!==t&&Ht(t)}}function s(t){if(ue(t,"ordering","bSort"),ue(t,"orderMulti","bSortMulti"),ue(t,"orderClasses","bSortClasses"),ue(t,"orderCellsTop","bSortCellsTop"),ue(t,"order","aaSorting"),ue(t,"orderFixed","aaSortingFixed"),ue(t,"paging","bPaginate"),ue(t,"pagingType","sPaginationType"),ue(t,"pageLength","iDisplayLength"),ue(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(Vt.models.oSearch,t[e])}function l(t){ue(t,"orderable","bSortable"),ue(t,"orderData","aDataSort"),ue(t,"orderSequence","asSorting"),ue(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"==typeof e&&!Array.isArray(e)&&(t.aDataSort=[e])}function c(i){if(!Vt.__browser){var n={};Vt.__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,Vt.__browser),i.oScroll.iBarWidth=Vt.__browser.barWidth}function u(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 h(e,n){var r=Vt.defaults.column,o=e.aoColumns.length;r=t.extend({},Vt.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({},Vt.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(Vt.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),Lt(i,r,"sWidth","sWidthOrig"),r.iDataSort!==n&&(i.aDataSort=[r.iDataSort]),Lt(i,r,"aDataSort"));var u=i.mData,h=A(u),d=i.mRender?A(i.mRender):null;r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=t.isPlainObject(u)&&(r(u.sort)||r(u.type)||r(u.filter)),i._setter=null,i.fnGetData=function(t,e,i){var r=h(t,e,n,i);return d&&e?d(r,e,t,i):r},i.fnSetData=function(t,e,i){return C(u)(t,e,i)},"number"!=typeof u&&(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 f(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)&&ft(t),Nt(t,null,"column-sizing",[t])}function p(t,e){var i=v(t,"bVisible");return"number"==typeof i[e]?i[e]:null}function g(e,i){var n=v(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 v(e,i){var n=[];return t.map(e.aoColumns,(function(t,e){t[i]&&n.push(e)})),n}function y(t){var e,i,r,o,a,s,l,c,u,h=t.aoColumns,d=t.aoData,f=Vt.ext.type.detect;for(e=0,i=h.length;e<i;e++)if(u=[],!(l=h[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=f.length;r<o;r++){for(a=0,s=d.length;a<s&&(u[a]===n&&(u[a]=w(t,a,e,"type")),(c=f[r](u[a],t))||r===f.length-1)&&("html"!==c||Jt(u[a]));a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function b(e,i,r,o){var a,s,l,c,u,d,f=e.aoColumns;if(i)for(a=i.length-1;0<=a;a--){var p=(d=i[a]).targets!==n?d.targets:d.aTargets;for(Array.isArray(p)||(p=[p]),s=0,l=p.length;s<l;s++)if("number"==typeof p[s]&&0<=p[s]){for(;f.length<=p[s];)h(e);o(p[s],d)}else if("number"==typeof p[s]&&0>p[s])o(f.length+p[s],d);else if("string"==typeof p[s])for(c=0,u=f.length;c<u;c++)("_all"==p[s]||t(f[c].nTh).hasClass(p[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,{},Vt.models.oRow,{src:r?"dom":"data",idx:a});s._aData=i,e.aoData.push(s);for(var l=e.aoColumns,c=0,u=l.length;c<u;c++)l[c].sType=null;return e.aiDisplayMaster.push(a),(i=e.rowIdFn(i))!==n&&(e.aIds[i]=s),(r||!e.oFeatures.bDeferRender)&&D(e,a,r,o),a}function _(e,i){var n;return i instanceof t||(i=t(i)),i.map((function(t,i){return n=L(e,i),x(e,n.data,i,n.cells)}))}function w(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&&(Pt(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 k(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function A(e){if(t.isPlainObject(e)){var i={};return t.each(e,(function(t,e){e&&(i[t]=A(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=k(i)).length;s<l;s++){if(i=a[s].match(he),o=a[s].match(de),i){if(a[s]=a[s].replace(he,""),""!==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=k(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(he),s=r[l].match(de),a){if(r[l]=r[l].replace(he,""),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(he,"")]=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 E(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 P(t,e,i,r){var o,a=t.aoData[e],s=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=w(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=L(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;M(t,a)}}function L(t,e,i,r){var o,a,s,l=[],c=e.firstChild,u=0,h=t.aoColumns,d=t._rowReadObject,f=(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)))}}),p=function(t){i!==n&&i!==u||(a=h[u],s=t.innerHTML.trim(),a&&a._bAttrSrc?(C(a.mData._)(r,s),f(a.mData.sort,t),f(a.mData.type,t),f(a.mData.filter,t)):d?(a._setter||(a._setter=C(a.mData)),a._setter(r,s)):r[u]=s),u++};if(c)for(;c;)"TD"!=(o=c.nodeName.toUpperCase())&&"TH"!=o||(p(c),l.push(c)),c=c.nextSibling;else for(c=0,o=(l=e.anCells).length;c<o;c++)p(l[c]);return(e=e.firstChild?e:e.nTr)&&(e=e.getAttribute("id"))&&C(t.rowId)(r,e),{data:r,cells:l}}function D(e,n,r,o){var a,s,l,c,u,h=e.aoData[n],d=h._aData,f=[];if(null===h.nTr){for(a=r||i.createElement("tr"),h.nTr=a,h.anCells=f,a._DT_RowIndex=n,M(e,h),l=0,c=e.aoColumns.length;l<c;l++)s=e.aoColumns[l],(h=(u=!r)?i.createElement(s.sCellType):o[l])._DT_CellIndex={row:n,column:l},f.push(h),!u&&(!s.mRender&&s.mData===l||t.isPlainObject(s.mData)&&s.mData._===l+".display")||(h.innerHTML=w(e,n,l,"display")),s.sClass&&(h.className+=" "+s.sClass),s.bVisible&&!r?a.appendChild(h):!s.bVisible&&r&&h.parentNode.removeChild(h),s.fnCreatedCell&&s.fnCreatedCell.call(e.oInstance,h,w(e,n,l),d,n,l);Nt(e,"aoRowCreatedCallback",null,[a,d,n,f])}}function M(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 I(e){var i,n,r,o,a,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,u=e.oClasses,h=e.aoColumns;for(c&&(o=t("<tr/>").appendTo(s)),i=0,n=h.length;i<n;i++)a=h[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),kt(e,a.nTh,i))),a.sTitle!=r[0].innerHTML&&r.html(a.sTitle),Rt(e,"header")(e,r,a,u);if(c&&z(e.aoHeader,s),t(s).children("tr").attr("role","row"),t(s).children("tr").children("th, td").addClass(u.sHeaderTH),t(l).children("tr").children("th, td").addClass(u.sFooterTH),null!==l)for(i=0,n=(e=e.aoFooter[0]).length;i<n;i++)(a=h[i]).nTf=e[i].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}function N(e,i,r){var o,a,s,l,c=[],u=[],h=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=h-1;0<=s;s--)!e.aoColumns[s].bVisible&&!r&&c[o].splice(s,1);u.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=h=1,u[o][s]===n){for(e.appendChild(c[o][s].cell),u[o][s]=1;c[o+h]!==n&&c[o][s].cell==c[o+h][s].cell;)u[o+h][s]=1,h++;for(;c[o][s+l]!==n&&c[o][s].cell==c[o][s+l].cell;){for(r=0;r<h;r++)u[o+r][s+l]=1;l++}t(c[o][s].cell).attr("rowspan",h).attr("colspan",l)}}}}function j(e,i){var r=Nt(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,r))ht(e,!1);else{r=[];var o=0,a=e.asStripeClasses,s=a.length,l=e.oLanguage,c=e.iInitDisplayStart,u="ssp"==Ft(e),h=e.aiDisplay;e.bDrawing=!0,c!==n&&-1!==c&&(e._iDisplayStart=u?c:c>=e.fnRecordsDisplay()?0:c,e.iInitDisplayStart=-1);c=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,ht(e,!1);else if(u){if(!e.bDestroying&&!i)return void Y(e)}else e.iDraw++;if(0!==h.length)for(l=u?e.aoData.length:d,u=u?0:c;u<l;u++){var f=h[u],p=e.aoData[f];null===p.nTr&&D(e,f);var g=p.nTr;if(0!==s){var v=a[o%s];p._sRowStripe!=v&&(t(g).removeClass(p._sRowStripe).addClass(v),p._sRowStripe=v)}Nt(e,"aoRowCallback",null,[g,p._aData,o,u,f]),r.push(g),o++}else o=l.sZeroRecords,1==e.iDraw&&"ajax"==Ft(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];Nt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],T(e),c,d,h]),Nt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],T(e),c,d,h]),(a=t(e.nTBody)).children().detach(),a.append(t(r)),Nt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function R(t,e){var i=t.oFeatures,n=i.bFilter;i.bSort&&_t(t),n?U(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,j(t),t._drawHold=!1}function F(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,u,h,d=e.sDom.split(""),f=0;f<d.length;f++){if(a=null,"<"==(s=d[f])){if(l=t("<div/>")[0],"'"==(c=d[f+1])||'"'==c){for(u="",h=2;d[f+h]!=c;)u+=d[f+h],h++;"H"==u?u=i.sJUIHeader:"F"==u&&(u=i.sJUIFooter),-1!=u.indexOf(".")?(c=u.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u,f+=h}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=V(e);else if("r"==s&&r.bProcessing)a=ut(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!==Vt.ext.feature.length)for(h=0,c=(l=Vt.ext.feature).length;h<c;h++)if(s==l[h].cFeature){a=l[h].fnInit(e);break}a&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(a),o.append(a))}n.replaceWith(o),e.nHolding=null}function z(e,i){var n,r,o,a,s,l,c,u,h,d,f=t(i).children("tr");for(e.splice(0,e.length),o=0,l=f.length;o<l;o++)e.push([]);for(o=0,l=f.length;o<l;o++)for(r=(n=f[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){for(u=(u=1*r.getAttribute("colspan"))&&0!==u&&1!==u?u:1,h=(h=1*r.getAttribute("rowspan"))&&0!==h&&1!==h?h:1,a=0,s=e[o];s[a];)a++;for(c=a,d=1===u,s=0;s<u;s++)for(a=0;a<h;a++)e[o+a][c+s]={cell:r,unique:d},e[o+a].nTr=n}r=r.nextSibling}}function H(t,e,i){var n=[];i||(i=t.aoHeader,e&&z(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(Nt(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){Nt(e,null,"xhr",[e,t,e.jqXHR]),n(t)};if(t.isPlainObject(s)&&s.data){var u="function"==typeof(a=s.data)?a(i,e):a;i="function"==typeof a&&u?u:t.extend(!0,i,u);delete s.data}u={data:i,success:function(t){var i=t.error||t.sError;i&&Pt(e,0,i),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(i,n){var r=Nt(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,r)&&("parsererror"==n?Pt(e,0,"Invalid JSON response",1):4===i.readyState&&Pt(e,0,"Ajax error",7)),ht(e,!1)}},e.oAjaxData=i,Nt(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(u,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,i,c,e):(e.jqXHR=t.ajax(t.extend(u,s)),s.data=a)}function Y(t){t.iDraw++,ht(t,!0),B(t,W(t),(function(e){q(t,e)}))}function W(e){var i,n,r,o,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,u=e.aoPreSearchCols,h=[],d=xt(e);i=e._iDisplayStart,n=!1!==l.bPaginate?e._iDisplayLength:-1;var f=function(t,e){h.push({name:t,value:e})};f("sEcho",e.iDraw),f("iColumns",s),f("sColumns",re(a,"sName").join(",")),f("iDisplayStart",i),f("iDisplayLength",n);var p={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=u[i],n="function"==typeof r.mData?"function":r.mData,p.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),f("mDataProp_"+i,n),l.bFilter&&(f("sSearch_"+i,o.sSearch),f("bRegex_"+i,o.bRegex),f("bSearchable_"+i,r.bSearchable)),l.bSort&&f("bSortable_"+i,r.bSortable);return l.bFilter&&(f("sSearch",c.sSearch),f("bRegex",c.bRegex)),l.bSort&&(t.each(d,(function(t,e){p.order.push({column:e.col,dir:e.dir}),f("iSortCol_"+t,e.col),f("sSortDir_"+t,e.dir)})),f("iSortingCols",d.length)),null===(a=Vt.ext.legacy.ajax)?e.sAjaxSource?h:p:a?h:p}function q(t,e){var i=X(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(E(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(),j(t,!0),t._bInitComplete||ot(t,e),ht(t,!1)}function X(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?A(r)(i):i}function V(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,u=(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,j(e))}),h=(s=null!==e.searchDelay?e.searchDelay:"ssp"===Ft(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?ve(u,s):u).on("mouseup",(function(){setTimeout((function(){u.call(h[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{h[0]!==i.activeElement&&h.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(y(t),"ssp"!=Ft(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++)Z(t,o[e].sSearch,e,o[e].bEscapeRegex!==n?!o[e].bEscapeRegex:o[e].bRegex,o[e].bSmart,o[e].bCaseInsensitive);G(t)}else a(e);t.bFiltered=!0,Nt(t,null,"search",[t])}function G(e){for(var i,n,r=Vt.ext.search,o=e.aiDisplay,a=0,s=r.length;a<s;a++){for(var l=[],c=0,u=o.length;c<u;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 Z(t,e,i,n,r,o){if(""!==e){var a=[],s=t.aiDisplay;for(n=$(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=$(e,n,r,o);var a,s=t.oPreviousSearch.sSearch,l=t.aiDisplayMaster;o=[];if(0!==Vt.ext.search.length&&(i=!0),a=Q(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 $(e,i,n,r){return e=i?e:fe(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 Q(t){var e,i,n,r,o,a,s,l,c=t.aoColumns,u=Vt.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=w(t,i,n,"filter"),u[e.sType]&&(s=u[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(pe.innerHTML=s,s=ge?pe.textContent:pe.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 J(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(F(t),I(t),N(t,t.aoHeader),N(t,t.aoFooter),ht(t,!0),i.bAutoWidth&>(t),e=0,i=o.length;e<i;e++)(n=o[e]).sWidth&&(n.nTh.style.width=bt(n.sWidth));Nt(t,null,"preInit",[t]),R(t),("ssp"!=(o=Ft(t))||a)&&("ajax"==o?B(t,[],(function(i){var n=X(t,i);for(e=0;e<n.length;e++)x(t,n[e]);t.iInitDisplayStart=r,R(t),ht(t,!1),ot(t,i)})):(ht(t,!1),ot(t)))}else setTimeout((function(){rt(t)}),200)}function ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&f(t),Nt(t,null,"plugin-init",[t,e]),Nt(t,"aoInitComplete","init",[t,e])}function at(t,e){var i=parseInt(e,10);t._iDisplayLength=i,jt(t),Nt(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()),j(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=Vt.ext.pager[i],r="function"==typeof n,o=function(t){j(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++)Rt(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:Pt(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==n,t._iDisplayStart=n,e&&(Nt(t,null,"page",[t]),i&&j(t)),e}function ut(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 ht(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),Nt(e,null,"processing",[e,i])}function dt(e){(h=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=h.children("caption"),s=a.length?a[0]._captionSide:null,l=t(h[0].cloneNode(!1)),c=t(h[0].cloneNode(!1)),u=h.children("tfoot");u.length||(u=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(h.children("thead"))))).append(t("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:n?bt(n):null}).append(h)),u&&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(h.children("tfoot")))));var h,d=(h=l.children())[0],f=(o=h[1],u?h[2]:null);return n&&t(o).on("scroll.DT",(function(){var t=this.scrollLeft;d.scrollLeft=t,u&&(f.scrollLeft=t)})),t(o).css("max-height",r),i.bCollapse||t(o).css("height",r),e.nScrollHead=d,e.nScrollBody=o,e.nScrollFoot=f,e.aoDrawCallback.push({fn:ft,sName:"scrolling"}),l[0]}function ft(e){var i,r,o,a,s,l=(h=e.oScroll).sX,c=h.sXInner,u=h.sY,h=h.iBarWidth,d=t(e.nScrollHead),g=d[0].style,m=(y=d.children("div"))[0].style,v=y.children("table"),y=e.nScrollBody,b=t(y),x=y.style,_=t(e.nScrollFoot).children("div"),w=_.children("table"),S=t(e.nTHead),k=t(e.nTable),A=k[0],C=A.style,T=e.nTFoot?t(e.nTFoot):null,E=e.oBrowser,O=E.bScrollOversize,P=re(e.aoColumns,"nTh"),L=[],D=[],M=[],I=[],N=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};r=y.scrollHeight>y.clientHeight,e.scrollBarVis!==r&&e.scrollBarVis!==n?(e.scrollBarVis=r,f(e)):(e.scrollBarVis=r,k.children("thead, tfoot").remove(),T&&(o=T.clone().prependTo(k),i=T.find("tr"),o=o.find("tr")),a=S.clone().prependTo(k),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(H(e,a),(function(t,i){s=p(e,t),i.style.width=e.aoColumns[s].sWidth})),T&&pt((function(t){t.style.width=""}),o),d=k.outerWidth(),""===l?(C.width="100%",O&&(k.find("tbody").height()>y.offsetHeight||"scroll"==b.css("overflow-y"))&&(C.width=bt(k.outerWidth()-h)),d=k.outerWidth()):""!==c&&(C.width=bt(c),d=k.outerWidth()),pt(N,r),pt((function(e){M.push(e.innerHTML),L.push(bt(t(e).css("width")))}),r),pt((function(e,i){-1!==t.inArray(e,P)&&(e.style.width=L[i])}),S),t(r).height(0),T&&(pt(N,o),pt((function(e){I.push(e.innerHTML),D.push(bt(t(e).css("width")))}),o),pt((function(t,e){t.style.width=D[e]}),i),t(o).height(0)),pt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+M[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=L[e]}),r),T&&pt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+I[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=D[e]}),o),k.outerWidth()<d?(i=y.scrollHeight>y.offsetHeight||"scroll"==b.css("overflow-y")?d+h:d,O&&(y.scrollHeight>y.offsetHeight||"scroll"==b.css("overflow-y"))&&(C.width=bt(i-h)),(""===l||""!==c)&&Pt(e,1,"Possible column misalignment",6)):i="100%",x.width=bt(i),g.width=bt(i),T&&(e.nScrollFoot.style.width=bt(i)),!u&&O&&(x.height=bt(A.offsetHeight+h)),l=k.outerWidth(),v[0].style.width=bt(l),m.width=bt(l),c=k.height()>y.clientHeight||"scroll"==b.css("overflow-y"),m[u="padding"+(E.bScrollbarLeft?"Left":"Right")]=c?h+"px":"0px",T&&(w[0].style.width=bt(l),_[0].style.width=bt(l),_[0].style[u]=c?h+"px":"0px"),k.children("colgroup").insertBefore(k.children("thead")),b.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(y.scrollTop=0))}function pt(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=(_=i.oScroll).sY,l=_.sX,c=_.sXInner,u=a.length,h=v(i,"bVisible"),d=t("th",i.nTHead),g=o.getAttribute("width"),y=o.parentNode,b=!1,x=i.oBrowser,_=x.bScrollOversize;for((n=o.style.width)&&-1!==n.indexOf("%")&&(g=n),n=0;n<h.length;n++)null!==(r=a[h[n]]).sWidth&&(r.sWidth=mt(r.sWidthOrig,y),b=!0);if(_||!b&&!l&&!s&&u==m(i)&&u==d.length)for(n=0;n<u;n++)null!==(h=p(i,n))&&(a[h].sWidth=bt(d.eq(n).width()));else{(u=t(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var w=t("<tr/>").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),d=H(i,u.find("thead")[0]),n=0;n<h.length;n++)r=a[h[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<h.length;n++)r=a[b=h[n]],t(vt(i,b)).clone(!1).append(r.sContentPadding).appendTo(w);for(t("[name]",u).removeAttr("name"),r=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(y),l&&c?u.width(c):l?(u.css("width","auto"),u.removeAttr("width"),u.width()<y.clientWidth&&g&&u.width(y.clientWidth)):s?u.width(y.clientWidth):g&&u.width(g),n=s=0;n<h.length;n++)c=(y=t(d[n])).outerWidth()-y.width(),s+=y=x.bBounding?Math.ceil(d[n].getBoundingClientRect().width):y.outerWidth(),a[h[n]].sWidth=bt(y-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,ve((function(){f(i)})))},_?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 vt(e,i){var n=yt(e,i);if(0>n)return null;var r=e.aoData[n];return r.nTr?r.anCells[i]:t("<td/>").html(w(e,n,i,"display"))[0]}function yt(t,e){for(var i,n=-1,r=-1,o=0,a=t.aoData.length;o<a;o++)(i=(i=(i=w(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=[],u=e.aoColumns;i=e.aaSortingFixed,r=t.isPlainObject(i);var h=[];for(o=function(e){e.length&&!Array.isArray(e[0])?h.push(e):t.merge(h,e)},Array.isArray(i)&&o(i),r&&i.pre&&o(i.pre),o(e.aaSorting),r&&i.post&&o(i.post),e=0;e<h.length;e++)for(i=0,r=(o=u[l=h[e][0]].aDataSort).length;i<r;i++)s=u[a=o[i]].sType||"string",h[e]._idx===n&&(h[e]._idx=t.inArray(h[e][1],u[a].asSorting)),c.push({src:l,col:a,dir:h[e][1],index:h[e]._idx,type:s,formatter:Vt.ext.type.order[s+"-pre"]});return c}function _t(t){var e,i,n,r,o=[],a=Vt.ext.type.order,s=t.aoData,l=0,c=t.aiDisplayMaster;for(y(t),e=0,i=(r=xt(t)).length;e<i;e++)(n=r[e]).formatter&&l++,Ct(t,n.col);if("ssp"!=Ft(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,u=s[t]._aSortData,h=s[e]._aSortData;for(a=0;a<c;a++)if(0!==(i=(i=u[(l=r[a]).col])<(n=h[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,u=r.length,h=s[t]._aSortData,d=s[e]._aSortData;for(l=0;l<u;l++)if(i=h[(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 wt(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),R(e),"function"==typeof o&&o(e)}function kt(t,e,i,n){var r=t.aoColumns[i];Mt(e,{},(function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(ht(t,!0),setTimeout((function(){St(t,i,e.shiftKey,n),"ssp"!==Ft(t)&&ht(t,!1)}),0)):St(t,i,e.shiftKey,n))}))}function At(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=Vt.ext.order[n.sSortDataType];r&&(i=r.call(t.oInstance,t,e,g(t,e)));for(var o,a=Vt.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]:w(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:J(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,i){return{visible:t.bVisible,search:J(e.aoPreSearchCols[i])}}))};Nt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oSavedState=i,e.fnStateSaveCallback.call(e.oInstance,e,i)}}function Et(e,i,r){var o,a,s=e.aoColumns;i=function(i){if(i&&i.time){var l=Nt(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));Nt(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=Vt.settings;return-1!==(e=t.inArray(e,re(i,"nTable")))?i[e]:null}function Pt(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=Vt.ext).sErrMode||i.errMode,t&&Nt(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 Lt(e,i,r,o){Array.isArray(r)?t.each(r,(function(t,n){Array.isArray(n)?Lt(e,i,n[0],n[1]):Lt(e,i,n)})):(o===n&&(o=r),i[r]!==n&&(e[o]=i[r]))}function Dt(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 Mt(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 It(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function Nt(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 jt(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 Rt(e,i){var n=e.renderer,r=Vt.ext.renderer[i];return t.isPlainObject(n)&&n[i]?r[n[i]]||r._:"string"==typeof n&&r[n]||r._}function Ft(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function zt(t,e){var i=[],n=(i=Pe.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 Ht(e){t.each({num:function(t){return Le(t,e)},"num-fmt":function(t){return Le(t,e,Qt)},"html-num":function(t){return Le(t,e,Zt)},"html-num-fmt":function(t){return Le(t,e,Zt,Qt)}},(function(t,i){Yt.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(Yt.type.search[t+e]=Yt.type.search.html)}))}function Bt(t){return function(){var e=[Ot(this[Vt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Vt.ext.internal[t].apply(this,e)}}var Yt,Wt,qt,Xt,Vt=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[Yt.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)&&ft(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[Yt.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=Yt.fnVersionCheck;var i=this,r=e===n,u=this.length;for(var f in r&&(e={}),this.oApi=this.internal=Yt.internal,Vt.ext.internal)f&&(this[f]=Bt(f));return this.each((function(){var f,p={},g=1<u?Dt(p,e,!0):e,m=0,v=(p=this.getAttribute("id"),!1),y=Vt.defaults,w=t(this);if("table"!=this.nodeName.toLowerCase())Pt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(y),l(y.column),o(y,y,!0),o(y.column,y.column,!0),o(y,t.extend(g,w.data()),!0);var S=Vt.settings;m=0;for(f=S.length;m<f;m++){var k=S[m];if(k.nTable==this||k.nTHead&&k.nTHead.parentNode==this||k.nTFoot&&k.nTFoot.parentNode==this){var C=g.bRetrieve!==n?g.bRetrieve:y.bRetrieve;if(r||C)return k.oInstance;if(g.bDestroy!==n?g.bDestroy:y.bDestroy){k.oInstance.fnDestroy();break}return void Pt(k,0,"Cannot reinitialise DataTable",3)}if(k.sTableId==this.id){S.splice(m,1);break}}null!==p&&""!==p||(this.id=p="DataTables_Table_"+Vt.ext._unique++);var T=t.extend(!0,{},Vt.models.oSettings,{sDestroyWidth:w[0].style.width,sInstance:p,sTableId:p});T.nTable=this,T.oApi=i.internal,T.oInit=g,S.push(T),T.oInstance=1===i.length?i:w.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=Dt(t.extend(!0,{},y),g),Lt(T.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Lt(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"]]),Lt(T.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Lt(T.oLanguage,g,"fnInfoCallback"),It(T,"aoDrawCallback",g.fnDrawCallback,"user"),It(T,"aoServerParams",g.fnServerParams,"user"),It(T,"aoStateSaveParams",g.fnStateSaveParams,"user"),It(T,"aoStateLoadParams",g.fnStateLoadParams,"user"),It(T,"aoStateLoaded",g.fnStateLoaded,"user"),It(T,"aoRowCallback",g.fnRowCallback,"user"),It(T,"aoRowCreatedCallback",g.fnCreatedRow,"user"),It(T,"aoHeaderCallback",g.fnHeaderCallback,"user"),It(T,"aoFooterCallback",g.fnFooterCallback,"user"),It(T,"aoInitComplete",g.fnInitComplete,"user"),It(T,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),T.rowIdFn=A(g.rowId),c(T);var E=T.oClasses;t.extend(E,Vt.ext.classes,g.oClasses),w.addClass(E.sTable),T.iInitDisplayStart===n&&(T.iInitDisplayStart=g.iDisplayStart,T._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(T.bDeferLoading=!0,p=Array.isArray(g.iDeferLoading),T._iRecordsDisplay=p?g.iDeferLoading[0]:g.iDeferLoading,T._iRecordsTotal=p?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(y.oLanguage,e),t.extend(!0,O,e),Nt(T,null,"i18n",[T]),rt(T)},error:function(){rt(T)}}),v=!0):Nt(T,null,"i18n",[T]),null===g.asStripeClasses&&(T.asStripeClasses=[E.sStripeOdd,E.sStripeEven]);p=T.asStripeClasses;var P=w.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(p,(function(t){return P.hasClass(t)})))&&(t("tbody tr",this).removeClass(p.join(" ")),T.asDestroyStripes=p.slice()),p=[],0!==(S=this.getElementsByTagName("thead")).length&&(z(T.aoHeader,S[0]),p=H(T)),null===g.aoColumns)for(S=[],m=0,f=p.length;m<f;m++)S.push(null);else S=g.aoColumns;for(m=0,f=S.length;m<f;m++)h(T,p?p[m]:null);if(b(T,g.aoColumnDefs,S,(function(t,e){d(T,t,e)})),P.length){var L=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(P[0]).children("th, td").each((function(t,e){var i=T.aoColumns[t];if(i.mData===t){var r=L(e,"sort")||L(e,"order"),o=L(e,"filter")||L(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 D=T.oFeatures;p=function(){if(g.aaSorting===n){var e=T.aaSorting;for(m=0,f=e.length;m<f;m++)e[m][1]=T.aoColumns[m].asSorting[0]}At(T),D.bSort&&It(T,"aoDrawCallback",(function(){if(T.bSorted){var e=xt(T),i={};t.each(e,(function(t,e){i[e.src]=e.dir})),Nt(T,null,"order",[T,e,i]),wt(T)}})),It(T,"aoDrawCallback",(function(){(T.bSorted||"ssp"===Ft(T)||D.bDeferRender)&&At(T)}),"sc");e=w.children("caption").each((function(){this._captionSide=t(this).css("caption-side")}));var i=w.children("thead");0===i.length&&(i=t("<thead/>").appendTo(w)),T.nTHead=i[0];var r=w.children("tbody");if(0===r.length&&(r=t("<tbody/>").insertAfter(i)),T.nTBody=r[0],0===(i=w.children("tfoot")).length&&e.length>0&&(""!==T.oScroll.sX||""!==T.oScroll.sY)&&(i=t("<tfoot/>").appendTo(w)),0===i.length||0===i.children().length?w.addClass(E.sNoFooter):i.length>0&&(T.nTFoot=i[0],z(T.aoFooter,T.nTFoot)),g.aaData)for(m=0;m<g.aaData.length;m++)x(T,g.aaData[m]);else(T.bDeferLoading||"dom"==Ft(T))&&_(T,t(T.nTBody).children("tr"));T.aiDisplay=T.aiDisplayMaster.slice(),T.bInitialised=!0,!1===v&&rt(T)};g.bStateSave?(D.bStateSave=!0,It(T,"aoDrawCallback",Tt,"state_save"),Et(T,g,p)):p()}})),i=null,this},Ut={},Gt=/[\r\n\u2028]/g,Zt=/<.*?>/g,Kt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,$t=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Qt=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Jt=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(fe(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Ut[e],"."):t},ie=function(t,e,i){var n="string"==typeof t;return!!Jt(t)||(e&&n&&(t=ee(t,e)),i&&n&&(t=t.replace(Qt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ne=function(t,e,i){return!!Jt(t)||((Jt(t)||"string"==typeof t)&&!!ie(t.replace(Zt,""),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,"")}),Vt.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($t,"\\$1")}};var ue=function(t,e,i){t[e]!==n&&(t[i]=t[e])},he=/\[.*?\]$/,de=/\(\)$/,fe=Vt.util.escapeRegex,pe=t("<div>")[0],ge=pe.textContent!==n,me=/<.*?>/g,ve=Vt.util.throttle,ye=[],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=Vt.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,ye)},Vt.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,u,h,d=[],f=this.context,p=this.selector;for("string"==typeof t&&(r=i,i=e,e=t,t=!1),a=0,s=f.length;a<s;a++){var g=new Wt(f[a]);if("table"===e)(o=i.call(g,f[a],a))!==n&&d.push(o);else if("columns"===e||"rows"===e)(o=i.call(g,f[a],this[a],a))!==n&&d.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(h=this[a],"column-rows"===e&&(u=Ae(f[a],p.opts)),l=0,c=h.length;l<c;l++)o=h[l],(o="cell"===e?i.call(g,f[a],o.row,o.column,a,l):i.call(g,f[a],o,a,l,u))!==n&&d.push(o)}return d.length||r?((e=(t=new Wt(f,t?d.concat.apply([],d):d)).selector).rows=p.rows,e.cols=p.cols,e.opts=p.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 u(this,t,e,0,this.length,1)},reduceRight:be.reduceRight||function(t,e){return u(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=qt=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=ye;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 u=l.length;c<u;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=Xt=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()};qt("tables()",(function(t){return t!==n&&null!==t?new Wt(xe(t,this.context)):this})),qt("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new Wt(e[0]):t})),Xt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Xt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Xt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Xt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Xt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),qt("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?j(e):("string"==typeof t&&(t="full-hold"!==t),R(e,!1===t))}))})),qt("page()",(function(t){return t===n?this.page.info().page:this.iterator("table",(function(e){ct(e,t)}))})),qt("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"===Ft(t)}})),qt("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 _e=function(t,e,i){if(i){var n=new Wt(t);n.one("draw",(function(){i(n.ajax.json())}))}if("ssp"==Ft(t))R(t,e);else{ht(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),B(t,[],(function(i){E(t);for(var n=0,r=(i=X(t,i)).length;n<r;n++)x(t,i[n]);R(t,e),ht(t,!1)}))}};qt("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),qt("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),qt("ajax.reload()",(function(t,e){return this.iterator("table",(function(i){_e(i,!1===e,t)}))})),qt("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}))})),qt("ajax.url().load()",(function(t,e){return this.iterator("table",(function(i){_e(i,!1===e,t)}))}));var we=function(t,e,i,r,o){var a,s,l,c,u,h,d=[];for(l=typeof e,e&&"string"!==l&&"function"!==l&&e.length!==n||(e=[e]),l=0,c=e.length;l<c;l++)for(u=0,h=(s=e[l]&&e[l].split&&!e[l].match(/[\[\(:]/)?e[l].split(","):[e[l]]).length;u<h;u++)(a=i("string"==typeof s[u]?s[u].trim():s[u]))&&a.length&&(d=d.concat(a));if((t=Yt.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)},ke=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},Ae=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"==Ft(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};qt("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 we("row",e,(function(e){var i=te(e),s=r.aoData;if(null!==i&&!a)return[i];if(o||(o=Ae(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})),qt("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||n}),1)})),qt("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return oe(t.aoData,e,"_aData")}),1)})),Xt("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)})),Xt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,i){P(e,i,t)}))})),Xt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Xt("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)})),Xt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,i,r){var o,a,s,l,c,u=e.aoData,h=u[i];for(u.splice(i,1),o=0,a=u.length;o<a;o++)if(c=(s=u[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--,jt(e),(i=e.rowIdFn(h._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})),qt("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(_(t,i)[0]):o.push(x(t,i));return o}),1),n=this.rows(-1);return n.pop(),t.merge(n,i),n})),qt("row()",(function(t,e){return ke(this.rows(t,e))})),qt("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),P(e[0],this[0],"data"),this})),qt("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),qt("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()?_(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)})))}}};qt("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})),qt(["row().child.show()","row().child().show()"],(function(){return Te(this,!0),this})),qt(["row().child.hide()","row().child().hide()"],(function(){return Te(this,!1),this})),qt(["row().child.remove()","row().child().remove()"],(function(){return Ce(this),this})),qt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ee=/^([^:]+):(name|visIdx|visible)$/,Oe=function(t,e,i,n,r){i=[],n=0;for(var o=r.length;n<o;n++)i.push(w(t,r[n],e));return i};qt("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 we("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=Ae(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(Ee):"";if(c)switch(c[2]){case"visIdx":case"visible":if((i=parseInt(c[1],10))<0){var u=t.map(a,(function(t,e){return t.bVisible?e:null}));return[u[u.length+i]]}return[p(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})),Xt("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Xt("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Xt("columns().data()","column().data()",(function(){return this.iterator("column-rows",Oe,1)})),Xt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Xt("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)})),Xt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,i,n,r){return oe(t.aoData,r,"anCells",e)}),1)})),Xt("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],u=i.aoData;if(e!==n&&c.bVisible!==e){if(e){var h=t.inArray(!0,re(l,"bVisible"),r+1);for(o=0,a=u.length;o<a;o++)s=u[o].nTr,l=u[o].anCells,s&&s.insertBefore(l[r],l[h]||null)}else t(re(i.aoData,"anCells",r)).detach();c.bVisible=e}}));return e!==n&&this.iterator("table",(function(o){N(o,o.aoHeader),N(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",m(o)),Tt(o),r.iterator("column",(function(t,n){Nt(t,null,"column-visibility",[t,n,e,i])})),(i===n||i)&&r.columns.adjust()})),o})),Xt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,i){return"visible"===t?g(e,i):i}),1)})),qt("columns.adjust()",(function(){return this.iterator("table",(function(t){f(t)}),1)})),qt("column.index()",(function(t,e){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===t||"toData"===t)return p(i,e);if("fromData"===t||"toVisible"===t)return g(i,e)}})),qt("column()",(function(t,e){return ke(this.columns(t,e))})),qt("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,u,h,d=e,f=Se(r),p=i.aoData,g=Ae(i,f),m=se(oe(p,g,"anCells")),v=t(ce([],m)),y=i.aoColumns.length;return we("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<y;c++)u={row:o,column:c},r?(h=p[o],e(u,w(i,o,c),h.anCells?h.anCells[c]:null)&&a.push(u)):a.push(u);return a}return t.isPlainObject(e)?e.column!==n&&e.row!==n&&-1!==t.inArray(e.row,g)?[e]:[]:(r=v.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()).length||!e.nodeName?r:(h=t(e).closest("*[data-dt-row]")).length?[{row:h.data("dt-row"),column:h.data("dt-column")}]:[]}),i,f)}));var o,a,s,l,c=r?{page:r.page,order:r.order,search:r.search}:{},u=this.columns(i,c),h=this.rows(e,c);c=this.iterator("table",(function(t,e){var i=[];for(o=0,a=h[e].length;o<a;o++)for(s=0,l=u[e].length;s<l;s++)i.push({row:h[e][o],column:u[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})),Xt("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)})),qt("cells().data()",(function(){return this.iterator("cell",(function(t,e,i){return w(t,e,i)}),1)})),Xt("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)})),Xt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,i,n){return w(e,i,n,t)}),1)})),Xt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,i){return{row:e,column:i,columnVisible:g(t,i)}}),1)})),Xt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,i,n){P(e,i,t,n)}))})),qt("cell()",(function(t,e,i){return ke(this.cells(t,e,i))})),qt("cell().data()",(function(t){var e=this.context,i=this[0];return t===n?e.length&&i.length?w(e[0],i[0].row,i[0].column):n:(S(e[0],i[0].row,i[0].column,t),P(e[0],i[0].row,"data",i[0].column),this)})),qt("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()})))})),qt("order.listener()",(function(t,e,i){return this.iterator("table",(function(n){kt(n,t,e,i)}))})),qt("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)}))})),qt(["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}))})),qt("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)}))})),Xt("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))}))})),qt("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),qt("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),qt("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),qt("state.save()",(function(){return this.iterator("table",(function(t){Tt(t)}))})),Vt.versionCheck=Vt.fnVersionCheck=function(t){for(var e,i,n=Vt.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},Vt.isDataTable=Vt.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return e instanceof Vt.Api||(t.each(Vt.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)},Vt.tables=Vt.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map(Vt.settings,(function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable}));return i?new Wt(n):n},Vt.camelToHungarian=o,qt("$()",(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){qt(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}))})),qt("clear()",(function(){return this.iterator("table",(function(t){E(t)}))})),qt("settings()",(function(){return new Wt(this.context,this.context)})),qt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),qt("data()",(function(){return this.iterator("table",(function(t){return re(t.aoData,"_aData")})).flatten()})),qt("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,u=n.nTFoot,h=t(s),d=(l=t(l),t(n.nTableWrapper)),f=t.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,Nt(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&&(h.children("thead").detach(),h.append(c)),u&&s!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),n.aaSorting=[],n.aaSortingFixed=[],At(n),t(f).removeClass(n.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),l.children().detach(),l.append(f),h[c=i?"remove":"detach"](),d[c](),!i&&o&&(o.insertBefore(s,n.nTableReinsertBefore),h.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,Vt.settings))&&Vt.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){qt(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)}))}))})),qt("i18n()",(function(e,i,r){var o=this.context[0];return(e=A(e)(o.oLanguage))===n&&(e=i),r!==n&&t.isPlainObject(e)&&(e=e[r]!==n?e[r]:e._),e.replace("%d",r)})),Vt.version="1.10.25",Vt.settings=[],Vt.models={},Vt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Vt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Vt.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},Vt.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({},Vt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Vt.defaults),Vt.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(Vt.defaults.column),Vt.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"==Ft(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ft(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},Vt.ext=Yt={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:Vt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Vt.version},t.extend(Yt,{afnFiltering:Yt.search,aTypes:Yt.type.detect,ofnSearch:Yt.type.search,oSort:Yt.type.order,afnSortData:Yt.order,aoFeatures:Yt.feature,oApi:Yt.internal,oStdClasses:Yt.classes,oPagination:Yt.pager}),t.extend(Vt.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 Pe=Vt.ext.pager;t.extend(Pe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[zt(t,e)]},simple_numbers:function(t,e){return["previous",zt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",zt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",zt(t,e),"last"]},_numbers:zt,numbers_length:7}),t.extend(!0,Vt.ext.renderer,{pageButton:{_:function(e,r,o,a,s,l){var c,u,h,d=e.oClasses,f=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},g=0,m=function(i,n){var r,a,h,v,y=d.sPageButtonDisabled,b=function(t){ct(e,t.data.action,!0)};for(r=0,a=n.length;r<a;r++)if(v=n[r],Array.isArray(v))h=t("<"+(v.DT_el||"div")+"/>").appendTo(i),m(h,v);else{switch(c=null,u=v,h=e.iTabIndex,v){case"ellipsis":i.append('<span class="ellipsis">…</span>');break;case"first":c=f.sFirst,0===s&&(h=-1,u=u+" "+y);break;case"previous":c=f.sPrevious,0===s&&(h=-1,u=u+" "+y);break;case"next":c=f.sNext,0!==l&&s!==l-1||(h=-1,u=u+" "+y);break;case"last":c=f.sLast,0!==l&&s!==l-1||(h=-1,u=u+" "+y);break;default:c=e.fnFormatNumber(v+1),u=s===v?d.sPageButtonActive:""}null!==c&&(Mt(h=t("<a>",{class:d.sPageButton+" "+u,"aria-controls":e.sTableId,"aria-label":p[v],"data-dt-idx":g,tabindex:h,id:0===o&&"string"==typeof v?e.sTableId+"_"+v:null}).html(c).appendTo(i),{action:v},b),g++)}};try{h=t(r).find(i.activeElement).data("dt-idx")}catch(t){}m(t(r).empty(),a),h!==n&&t(r).find("[data-dt-idx="+h+"]").trigger("focus")}}}),t.extend(Vt.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)||Jt(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 Jt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Vt.ext.type.search,{html:function(t){return Jt(t)?t:"string"==typeof t?t.replace(Gt," ").replace(Zt,""):""},string:function(t){return Jt(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var Le=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(Yt.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Jt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Jt(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}}),Ht(""),t.extend(!0,Vt.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 De=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};return Vt.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)?De(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:De,filter:De}}},t.extend(Vt.ext.internal,{_fnExternApiFunc:Bt,_fnBuildAjax:B,_fnAjaxUpdate:Y,_fnAjaxParameters:W,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:X,_fnAddColumn:h,_fnColumnOptions:d,_fnAdjustColumnSizing:f,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:y,_fnApplyColumnDefs:b,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:x,_fnAddTr:_,_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:w,_fnSetCellData:S,_fnSplitObjNotation:k,_fnGetObjectDataFn:A,_fnSetObjectDataFn:C,_fnGetDataMaster:T,_fnClearTable:E,_fnDeleteIndex:O,_fnInvalidate:P,_fnGetRowElements:L,_fnCreateTr:D,_fnBuildHead:I,_fnDrawHead:N,_fnDraw:j,_fnReDraw:R,_fnAddOptionsHtml:F,_fnDetectHeader:z,_fnGetUniqueThs:H,_fnFeatureHtmlFilter:V,_fnFilterComplete:U,_fnFilterCustom:G,_fnFilterColumn:Z,_fnFilter:K,_fnFilterCreateSearch:$,_fnEscapeRegex:fe,_fnFilterData:Q,_fnFeatureHtmlInfo:et,_fnUpdateInfo:it,_fnInfoMacros:nt,_fnInitialise:rt,_fnInitComplete:ot,_fnLengthChange:at,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:ut,_fnProcessingDisplay:ht,_fnFeatureHtmlTable:dt,_fnScrollDraw:ft,_fnApplyToChildren:pt,_fnCalculateColumnWidths:gt,_fnThrottle:ve,_fnConvertToWidth:mt,_fnGetWidestNode:vt,_fnGetMaxLenString:yt,_fnStringToCss:bt,_fnSortFlatten:xt,_fnSort:_t,_fnSortAria:wt,_fnSortListener:St,_fnSortAttachListener:kt,_fnSortingClasses:At,_fnSortData:Ct,_fnSaveState:Tt,_fnLoadState:Et,_fnSettingsFromNode:Ot,_fnLog:Pt,_fnMap:Lt,_fnBindAction:Mt,_fnCallbackReg:It,_fnCallbackFire:Nt,_fnLengthOverflow:jt,_fnRenderer:Rt,_fnDataSource:Ft,_fnRowAttributes:M,_fnExtend:Dt,_fnCalculateEnd:function(){}}),t.fn.dataTable=Vt,Vt.$=t,t.fn.dataTableSettings=Vt.settings,t.fn.dataTableExt=Vt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Vt,(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 u,h,d,f=new r.Api(e),p=e.oClasses,g=e.oLanguage.oPaginate,m=e.oLanguage.oAria.paginate||{},v=0,y=function(i,n){var r,o,s,d,b=function(e){e.preventDefault(),!t(e.currentTarget).hasClass("disabled")&&f.page()!=e.data.action&&f.page(e.data.action).draw("page")};for(r=0,o=n.length;r<o;r++)if(d=n[r],Array.isArray(d))y(i,d);else{switch(h=u="",d){case"ellipsis":u="…",h="disabled";break;case"first":u=g.sFirst,h=d+(0<l?"":" disabled");break;case"previous":u=g.sPrevious,h=d+(0<l?"":" disabled");break;case"next":u=g.sNext,h=d+(l<c-1?"":" disabled");break;case"last":u=g.sLast,h=d+(l<c-1?"":" disabled");break;default:u=d+1,h=l===d?"active":""}u&&(s=t("<li>",{class:p.sPageButton+" "+h,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":v,tabindex:e.iTabIndex,class:"page-link"}).html(u)).appendTo(i),e.oApi._fnBindAction(s,{action:d},b),v++)}};try{d=t(o).find(i.activeElement).data("dt-idx")}catch(t){}y(t(o).empty().html('<ul class="pagination"/>').children("ul"),s),d!==n&&t(o).find("[data-dt-idx="+d+"]").trigger("focus")},r})),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).dragula=t()}((function(){return function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw(l=new Error("Cannot find module '"+a+"'")).code="MODULE_NOT_FOUND",l}l=i[a]={exports:{}},e[a][0].call(l.exports,(function(t){return r(e[a][1][t]||t)}),l,l.exports,t,e,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";var n={};function r(t){var e=n[t];return e?e.lastIndex=0:n[t]=e=new RegExp("(?:^|\\s)"+t+"(?:\\s|$)","g"),e}e.exports={add:function(t,e){var i=t.className;i.length?r(e).test(i)||(t.className+=" "+e):t.className=e},rm:function(t,e){t.className=t.className.replace(r(e)," ").trim()}}},{}],2:[function(t,e,i){(function(i){"use strict";var n=t("contra/emitter"),r=t("crossvent"),o=t("./classes"),a=document,s=a.documentElement;function l(t,e,n,o){i.navigator.pointerEnabled?r[e](t,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],o):i.navigator.msPointerEnabled?r[e](t,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],o):(r[e](t,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],o),r[e](t,n,o))}function c(t){return void 0!==t.touches?t.touches.length:void 0!==t.which&&0!==t.which?t.which:void 0!==t.buttons?t.buttons:void 0!==(t=t.button)?1&t?1:2&t?3:4&t?2:0:void 0}function u(t,e){return void 0!==i[e]?i[e]:(s.clientHeight?s:a.body)[t]}function h(t,e,i){var n=(t=t||{}).className||"";return t.className+=" gu-hide",i=a.elementFromPoint(e,i),t.className=n,i}function d(){return!1}function f(){return!0}function p(t){return t.width||t.right-t.left}function g(t){return t.height||t.bottom-t.top}function m(t){return t.parentNode===a?null:t.parentNode}function v(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||function t(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||t(m(e))))}(t)}function y(t){return t.nextElementSibling||function(){for(var e=t;(e=e.nextSibling)&&1!==e.nodeType;);return e}()}function b(t,e){e=(i=e).targetTouches&&i.targetTouches.length?i.targetTouches[0]:i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i;var i={pageX:"clientX",pageY:"clientY"};return t in i&&!(t in e)&&i[t]in e&&(t=i[t]),e[t]}e.exports=function(t,e){var i,x,_,w,S,k,A,C,T,E,O;1===arguments.length&&!1===Array.isArray(t)&&(e=t,t=[]);var P,L=null,D=e||{};void 0===D.moves&&(D.moves=f),void 0===D.accepts&&(D.accepts=f),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=t||[]),void 0===D.isContainer&&(D.isContainer=d),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=a.body);var M=n({containers:D.containers,start:function(t){(t=B(t))&&Y(t)},end:W,cancel:G,remove:U,destroy:function(){N(!0),X({})},canMove:function(t){return!!B(t)},dragging:!1});return!0===D.removeOnSpill&&M.on("over",(function(t){o.rm(t,"gu-hide")})).on("out",(function(t){M.dragging&&o.add(t,"gu-hide")})),N(),M;function I(t){return-1!==M.containers.indexOf(t)||D.isContainer(t)}function N(t){l(s,t=t?"remove":"add","mousedown",z),l(s,t,"mouseup",X)}function j(t){l(s,t?"remove":"add","mousemove",H)}function R(t){r[t=t?"remove":"add"](s,"selectstart",F),r[t](s,"click",F)}function F(t){P&&t.preventDefault()}function z(t){var e,i;k=t.clientX,A=t.clientY,1!==c(t)||t.metaKey||t.ctrlKey||(i=B(e=t.target))&&(P=i,j(),"mousedown"===t.type&&(v(e)?e.focus():t.preventDefault()))}function H(t){if(P)if(0!==c(t)){if(!(void 0!==t.clientX&&Math.abs(t.clientX-k)<=(D.slideFactorX||0)&&void 0!==t.clientY&&Math.abs(t.clientY-A)<=(D.slideFactorY||0))){if(D.ignoreInputTextSelection){var e=b("clientX",t)||0,n=b("clientY",t)||0;if(v(a.elementFromPoint(e,n)))return}n=P,j(!0),R(),W(),Y(n),n=function(t){return{left:(t=t.getBoundingClientRect()).left+u("scrollLeft","pageXOffset"),top:t.top+u("scrollTop","pageYOffset")}}(_),w=b("pageX",t)-n.left,S=b("pageY",t)-n.top,o.add(E||_,"gu-transit"),function(){if(!i){var t=_.getBoundingClientRect();(i=_.cloneNode(!0)).style.width=p(t)+"px",i.style.height=g(t)+"px",o.rm(i,"gu-transit"),o.add(i,"gu-mirror"),D.mirrorContainer.appendChild(i),l(s,"add","mousemove",Q),o.add(D.mirrorContainer,"gu-unselectable"),M.emit("cloned",i,_,"mirror")}}(),Q(t)}}else X({})}function B(t){if(!(M.dragging&&i||I(t))){for(var e=t;m(t)&&!1===I(m(t));){if(D.invalid(t,e))return;if(!(t=m(t)))return}var n=m(t);if(n&&!D.invalid(t,e)&&D.moves(t,n,e,y(t)))return{item:t,source:n}}}function Y(t){var e,i;e=t.item,i=t.source,("boolean"==typeof D.copy?D.copy:D.copy(e,i))&&(E=t.item.cloneNode(!0),M.emit("cloned",E,t.item,"copy")),x=t.source,_=t.item,C=T=y(t.item),M.dragging=!0,M.emit("drag",_,x)}function W(){var t;M.dragging&&V(t=E||_,m(t))}function q(){j(!(P=!1)),R(!0)}function X(t){var e,n;q(),M.dragging&&(e=E||_,n=b("clientX",t)||0,t=b("clientY",t)||0,(t=$(h(i,n,t),n,t))&&(E&&D.copySortSource||!E||t!==x)?V(e,t):(D.removeOnSpill?U:G)())}function V(t,e){var i=m(t);E&&D.copySortSource&&e===x&&i.removeChild(_),K(e)?M.emit("cancel",t,x,x):M.emit("drop",t,e,x,T),Z()}function U(){var t,e;M.dragging&&((e=m(t=E||_))&&e.removeChild(t),M.emit(E?"cancel":"remove",t,e,x),Z())}function G(t){var e,i,n;M.dragging&&(e=0<arguments.length?t:D.revertOnSpill,!1===(t=K(n=m(i=E||_)))&&e&&(E?n&&n.removeChild(E):x.insertBefore(i,C)),t||e?M.emit("cancel",i,x,x):M.emit("drop",i,n,x,T),Z())}function Z(){var t=E||_;q(),i&&(o.rm(D.mirrorContainer,"gu-unselectable"),l(s,"remove","mousemove",Q),m(i).removeChild(i),i=null),t&&o.rm(t,"gu-transit"),O&&clearTimeout(O),M.dragging=!1,L&&M.emit("out",t,L,x),M.emit("dragend",t),x=_=E=C=T=O=L=null}function K(t,e){return e=void 0!==e?e:i?T:y(E||_),t===x&&e===C}function $(t,e,i){for(var n=t;n&&!function(){if(!1===I(n))return!1;var r=J(n,t);r=tt(n,r,e,i);return!!K(n,r)||D.accepts(_,n,x,r)}();)n=m(n);return n}function Q(t){if(i){t.preventDefault();var e=b("clientX",t)||0,n=b("clientY",t)||0,r=e-w,o=n-S;i.style.left=r+"px",i.style.top=o+"px";var a=E||_,s=null!==(r=$(t=h(i,e,n),e,n))&&r!==L;if(!s&&null!==r||(L&&c("out"),L=r,s&&c("over")),o=m(a),r!==x||!E||D.copySortSource){var l;if(null!==(t=J(r,t)))l=tt(r,t,e,n);else{if(!0!==D.revertOnSpill||E)return void(E&&o&&o.removeChild(a));l=C,r=x}(null===l&&s||l!==a&&l!==y(a))&&(T=l,r.insertBefore(a,l),M.emit("shadow",a,r,x))}else o&&o.removeChild(a)}function c(t){M.emit(t,a,L,x)}}function J(t,e){for(var i=e;i!==t&&m(i)!==t;)i=m(i);return i===s?null:i}function tt(t,e,i,n){var r="horizontal"===D.direction;return(e!==t?function(){var t=e.getBoundingClientRect();return o(r?i>t.left+p(t)/2:n>t.top+g(t)/2)}:function(){var e,o,a,s=t.children.length;for(e=0;e<s;e++){if(a=(o=t.children[e]).getBoundingClientRect(),r&&a.left+a.width/2>i)return o;if(!r&&a.top+a.height/2>n)return o}return null})();function o(t){return t?y(e):e}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(t,e,i){e.exports=function(t,e){return Array.prototype.slice.call(t,e)}},{}],4:[function(t,e,i){"use strict";var n=t("ticky");e.exports=function(t,e,i){t&&n((function(){t.apply(i||null,e||[])}))}},{ticky:10}],5:[function(t,e,i){"use strict";var n=t("atoa"),r=t("./debounce");e.exports=function(t,e){var i=e||{},o={};return void 0===t&&(t={}),t.on=function(e,i){return o[e]?o[e].push(i):o[e]=[i],t},t.once=function(e,i){return i._once=!0,t.on(e,i),t},t.off=function(e,i){var n=arguments.length;if(1===n)delete o[e];else if(0===n)o={};else{if(!(e=o[e]))return t;e.splice(e.indexOf(i),1)}return t},t.emit=function(){var e=n(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var a=(o[e]||[]).slice(0);return function(){var o=n(arguments),s=this||t;if("error"===e&&!1!==i.throws&&!a.length)throw 1===o.length?o[0]:o;return a.forEach((function(n){i.async?r(n,o,s):n.apply(s,o),n._once&&t.off(e,n)})),t}},t}},{"./debounce":4,atoa:3}],6:[function(t,e,i){(function(i){"use strict";var n=t("custom-event"),r=t("./eventmap"),o=i.document,a=function(t,e,i,n){return t.addEventListener(e,i,n)},s=function(t,e,i,n){return t.removeEventListener(e,i,n)},l=[];function c(t,e,i){if(e=function(t,e,i){var n,r;for(n=0;n<l.length;n++)if((r=l[n]).element===t&&r.type===e&&r.fn===i)return n}(t,e,i))return i=l[e].wrapper,l.splice(e,1),i}i.addEventListener||(a=function(t,e,n){return t.attachEvent("on"+e,function(t,e,n){var r=c(t,e,n)||function(t,e){return function(n){var r=n||i.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,e.call(t,r)}}(t,n);return l.push({wrapper:r,element:t,type:e,fn:n}),r}(t,e,n))},s=function(t,e,i){if(i=c(t,e,i))return t.detachEvent("on"+e,i)}),e.exports={add:a,remove:s,fabricate:function(t,e,i){var a=-1===r.indexOf(e)?new n(e,{detail:i}):function(){var t;return o.createEvent?(t=o.createEvent("Event")).initEvent(e,!0,!0):o.createEventObject&&(t=o.createEventObject()),t}();t.dispatchEvent?t.dispatchEvent(a):t.fireEvent("on"+e,a)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(t,e,i){(function(t){"use strict";var i=[],n="",r=/^on/;for(n in t)r.test(n)&&i.push(n.slice(2));e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e,i){(function(t){var i=t.CustomEvent;e.exports=function(){try{var t=new i("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}}()?i:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var i=document.createEvent("CustomEvent");return e?i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):i.initCustomEvent(t,!1,!1,void 0),i}:function(t,e){var i=document.createEventObject();return i.type=t,e?(i.bubbles=Boolean(e.bubbles),i.cancelable=Boolean(e.cancelable),i.detail=e.detail):(i.bubbles=!1,i.cancelable=!1,i.detail=void 0),i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(t,e,i){var n,r;e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var t=s(d);u=!0;for(var e=c.length;e;){for(l=c,c=[];++h<e;)l&&l[h].run();h=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new p(t,e)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],10:[function(t,e,i){(function(t){var i="function"==typeof t?function(e){t(e)}:function(t){setTimeout(t,0)};e.exports=i}).call(this,t("timers").setImmediate)},{timers:11}],11:[function(t,e,i){(function(e,n){var r=t("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}i.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},i.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},i._unrefActive=i.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i.setImmediate="function"==typeof e?e:function(t){var e=l++,n=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,r((function(){s[e]&&(n?t.apply(null,n):t.call(null),i.clearImmediate(e))})),e},i.clearImmediate="function"==typeof n?n:function(t){delete s[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";var t,e;function i(){return t.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){for(var i in e)o(e,i)&&(t[i]=e[i]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return Se(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var i=f(t),n=e.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&n);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function g(t){var e=d(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}e=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var m=i.momentProperties=[],v=!1;function y(t,e){var i,n,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),m.length>0)for(i=0;i<m.length;i++)s(r=e[n=m[i]])||(t[n]=r);return t}function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,a,s,l=[];for(a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}_(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var S,k={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),k[t]||(_(e),k[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,e){var i,n=h({},t);for(i in e)o(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},h(n[i],t[i]),h(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)o(t,i)&&!o(e,i)&&r(t[i])&&(n[i]=h({},n[i]));return n}function E(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,S=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)o(t,e)&&i.push(e);return i};function O(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},M={};function I(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(M[t]=r),e&&(M[e[0]]=function(){return O(r.apply(this,arguments),e[1],e[2])}),i&&(M[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(e=j(e,t.localeData()),D[e]=D[e]||function(t){var e,i,n,r=t.match(P);for(e=0,i=r.length;e<i;e++)M[r[e]]?r[e]=M[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=C(r[n])?r[n].call(e,t):r[n];return o}}(e),D[e](t)):t.localeData().invalidDate()}function j(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;i>=0&&L.test(t);)t=t.replace(L,n),L.lastIndex=0,i-=1;return t}var R={};function F(t,e){var i=t.toLowerCase();R[i]=R[i+"s"]=R[e]=t}function z(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function H(t){var e,i,n={};for(i in t)o(t,i)&&(e=z(i))&&(n[e]=t[i]);return n}var B={};function Y(t,e){B[t]=e}function W(t){return t%4==0&&t%100!=0||t%400==0}function q(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function X(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=q(e)),i}function V(t,e){return function(n){return null!=n?(G(this,t,n),i.updateOffset(this,e),this):U(this,t)}}function U(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function G(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&W(t.year())&&1===t.month()&&29===t.date()?(i=X(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),xt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var Z,K=/\d/,$=/\d\d/,Q=/\d{3}/,J=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,it=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,ht=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function dt(t,e,i){Z[t]=C(e)?e:function(t,n){return t&&i?i:e}}function ft(t,e){return o(Z,t)?Z[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var gt={};function mt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=X(t)}),i=0;i<t.length;i++)gt[t[i]]=n}function vt(t,e){mt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function yt(t,e,i){null!=e&&o(gt,t)&>[t](e,i._a,i,t)}var bt;function xt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?W(t)?29:28:31-n%7%2}bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),I("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),F("month","M"),Y("month",8),dt("M",et),dt("MM",et,$),dt("MMM",(function(t,e){return e.monthsShortRegex(t)})),dt("MMMM",(function(t,e){return e.monthsRegex(t)})),mt(["M","MM"],(function(t,e){e[1]=X(t)-1})),mt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:f(i).invalidMonth=t}));var _t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),St=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kt=ht,At=ht;function Ct(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,a))?r:null:-1!==(r=bt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,a))||-1!==(r=bt.call(this._longMonthsParse,a))?r:null:-1!==(r=bt.call(this._longMonthsParse,a))||-1!==(r=bt.call(this._shortMonthsParse,a))?r:null}function Tt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=X(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),xt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Et(t){return null!=t?(Tt(this,t),i.updateOffset(this,!0),this):U(this,"Month")}function Ot(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=d([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=pt(n[e]),r[e]=pt(r[e]);for(e=0;e<24;e++)o[e]=pt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Pt(t){return W(t)?366:365}I("Y",0,0,(function(){var t=this.year();return t<=9999?O(t,4):"+"+t})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),F("year","y"),Y("year",1),dt("Y",lt),dt("YY",et,$),dt("YYYY",ot,J),dt("YYYYY",at,tt),dt("YYYYYY",at,tt),mt(["YYYYY","YYYYYY"],0),mt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):X(t)})),mt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),mt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return X(t)+(X(t)>68?1900:2e3)};var Lt=V("FullYear",!0);function Dt(t,e,i,n,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,r,o,a),s}function Mt(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function It(t,e,i){var n=7+e-i;return-((7+Mt(t,0,n).getUTCDay()-e)%7)+n-1}function Nt(t,e,i,n,r){var o,a,s=1+7*(e-1)+(7+i-n)%7+It(t,n,r);return s<=0?a=Pt(o=t-1)+s:s>Pt(t)?(o=t+1,a=s-Pt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function jt(t,e,i){var n,r,o=It(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+Rt(r=t.year()-1,e,i):a>Rt(t.year(),e,i)?(n=a-Rt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Rt(t,e,i){var n=It(t,e,i),r=It(t+1,e,i);return(Pt(t)-n+r)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),Y("week",5),Y("isoWeek",5),dt("w",et),dt("ww",et,$),dt("W",et),dt("WW",et,$),vt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=X(t)}));function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),dt("d",et),dt("e",et),dt("E",et),dt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),dt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),dt("dddd",(function(t,e){return e.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:f(i).invalidWeekday=t})),vt(["d","e","E"],(function(t,e,i,n){e[n]=X(t)}));var zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ht="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yt=ht,Wt=ht,qt=ht;function Xt(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,a))||-1!==(r=bt.call(this._shortWeekdaysParse,a))||-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,a))||-1!==(r=bt.call(this._weekdaysParse,a))||-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,a))||-1!==(r=bt.call(this._weekdaysParse,a))||-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:null}function Vt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)i=d([2e3,1]).day(e),n=pt(this.weekdaysMin(i,"")),r=pt(this.weekdaysShort(i,"")),o=pt(this.weekdays(i,"")),a.push(n),s.push(r),l.push(o),c.push(n),c.push(r),c.push(o);a.sort(t),s.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ut(){return this.hours()%12||12}function Gt(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Zt(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ut),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ut.apply(this)+O(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ut.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),Gt("a",!0),Gt("A",!1),F("hour","h"),Y("hour",13),dt("a",Zt),dt("A",Zt),dt("H",et),dt("h",et),dt("k",et),dt("HH",et,$),dt("hh",et,$),dt("kk",et,$),dt("hmm",it),dt("hmmss",nt),dt("Hmm",it),dt("Hmmss",nt),mt(["H","HH"],3),mt(["k","kk"],(function(t,e,i){var n=X(t);e[3]=24===n?0:n})),mt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),mt(["h","hh"],(function(t,e,i){e[3]=X(t),f(i).bigHour=!0})),mt("hmm",(function(t,e,i){var n=t.length-2;e[3]=X(t.substr(0,n)),e[4]=X(t.substr(n)),f(i).bigHour=!0})),mt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=X(t.substr(0,n)),e[4]=X(t.substr(n,2)),e[5]=X(t.substr(r)),f(i).bigHour=!0})),mt("Hmm",(function(t,e,i){var n=t.length-2;e[3]=X(t.substr(0,n)),e[4]=X(t.substr(n))})),mt("Hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=X(t.substr(0,n)),e[4]=X(t.substr(n,2)),e[5]=X(t.substr(r))}));var Kt=V("Hours",!0);var $t,Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_t,monthsShort:wt,week:{dow:0,doy:6},weekdays:zt,weekdaysMin:Bt,weekdaysShort:Ht,meridiemParse:/[ap]\.?m?\.?/i},Jt={},te={};function ee(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function ie(t){return t?t.toLowerCase().replace("_","-"):t}function ne(t){var e=null;if(void 0===Jt[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=$t._abbr,require("./locale/"+t),re(e)}catch(e){Jt[t]=null}return Jt[t]}function re(t,e){var i;return t&&((i=s(e)?ae(t):oe(t,e))?$t=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),$t._abbr}function oe(t,e){if(null!==e){var i,n=Qt;if(e.abbr=t,null!=Jt[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Jt[t]._config;else if(null!=e.parentLocale)if(null!=Jt[e.parentLocale])n=Jt[e.parentLocale]._config;else{if(null==(i=ne(e.parentLocale)))return te[e.parentLocale]||(te[e.parentLocale]=[]),te[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Jt[t]=new E(T(n,e)),te[t]&&te[t].forEach((function(t){oe(t.name,t.config)})),re(t),Jt[t]}return delete Jt[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return $t;if(!n(t)){if(e=ne(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ie(t[o]).split("-")).length,i=(i=ie(t[o+1]))?i.split("-"):null;e>0;){if(n=ne(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ee(r,i)>=e-1)break;e--}o++}return $t}(t)}function se(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>xt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}var le=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ue=/Z|[+-]\d\d(?::?\d\d)?/,he=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],de=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fe=/^\/?Date\((-?\d+)/i,pe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ge={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function me(t){var e,i,n,r,o,a,s=t._i,l=le.exec(s)||ce.exec(s);if(l){for(f(t).iso=!0,e=0,i=he.length;e<i;e++)if(he[e][1].exec(l[1])){r=he[e][0],n=!1!==he[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=de.length;e<i;e++)if(de[e][1].exec(l[3])){o=(l[2]||" ")+de[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ue.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),_e(t)}else t._isValid=!1}function ve(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function ye(t){var e,i,n,r,o,a,s,l,c=pe.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(i=c[4],n=c[3],r=c[2],o=c[5],a=c[6],s=c[7],l=[ve(i),wt.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),e=l,!function(t,e,i){return!t||Ht.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(i).weekdayMismatch=!0,i._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return ge[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(c[8],c[9],c[10]),t._d=Mt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function be(t,e,i){return null!=t?t:null!=e?e:i}function xe(t){var e,n,r,o,a,s=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,o,a,s,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,i=be(e.GG,t._a[0],jt(ke(),1,4).year),n=be(e.W,1),((r=be(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,c=jt(ke(),o,a),i=be(e.gg,t._a[0],c.year),n=be(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o);n<1||n>Rt(i,o,a)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=Nt(i,n,r,o,a),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=be(t._a[0],r[0]),(t._dayOfYear>Pt(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Mt(a,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Mt:Dt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function _e(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,a,s,l=""+t._i,c=l.length,u=0;for(r=j(t._f,t._locale).match(P)||[],e=0;e<r.length;e++)o=r[e],(n=(l.match(ft(o,t))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&f(t).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),M[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),yt(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=c-u,l.length>0&&f(t).unusedInput.push(l),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;if(null==i)return e;return null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(s=f(t).era)&&(t._a[0]=t._locale.erasConvertYear(s,t._a[0])),xe(t),se(t)}else ye(t);else me(t)}function we(t){var e=t._i,o=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===o&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new b(se(e)):(c(e)?t._d=e:n(o)?function(t){var e,i,n,r,o,a,s=!1;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,a=!1,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],_e(e),p(e)&&(a=!0),o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,s?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(s=!0));h(t,i||e)}(t):o?_e(t):function(t){var e=t._i;s(e)?t._d=new Date(i.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=fe.exec(t._i);null===e?(me(t),!1===t._isValid&&(delete t._isValid,ye(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):n(e)?(t._a=u(e.slice(0),(function(t){return parseInt(t,10)})),xe(t)):r(e)?function(t){if(!t._d){var e=H(t._i),i=void 0===e.day?e.date:e.day;t._a=u([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),xe(t)}}(t):l(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Se(t,e,i,o,s){var l,c={};return!0!==e&&!1!==e||(o=e,e=void 0),!0!==i&&!1!==i||(o=i,i=void 0),(r(t)&&a(t)||n(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=i,c._i=t,c._f=e,c._strict=o,(l=new b(se(we(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ke(t,e,i,n){return Se(t,e,i,n,!1)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ae=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),Ce=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}));function Te(t,e){var i,r;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return ke();for(i=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](i)||(i=e[r]);return i}var Ee=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Oe(t){var e=H(t),i=e.year||0,n=e.quarter||0,r=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,h=e.millisecond||0;this._isValid=function(t){var e,i,n=!1;for(e in t)if(o(t,e)&&(-1===bt.call(Ee,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<Ee.length;++i)if(t[Ee[i]]){if(n)return!1;parseFloat(t[Ee[i]])!==X(t[Ee[i]])&&(n=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=ae(),this._bubble()}function Pe(t){return t instanceof Oe}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function De(t,e){I(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+O(~~(t/60),2)+e+O(~~t%60,2)}))}De("Z",":"),De("ZZ",""),dt("Z",ut),dt("ZZ",ut),mt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ie(ut,t)}));var Me=/([\+\-]|\d\d)/gi;function Ie(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Me)||["-",0,0])[1]+X(i[2]))?0:"+"===i[0]?n:-n}function Ne(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(x(t)||c(t)?t.valueOf():ke(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):ke(t).local()}function je(t){return-Math.round(t._d.getTimezoneOffset())}function Re(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}i.updateOffset=function(){};var Fe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(t,e){var i,n,r,a=t,s=null;return Pe(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Fe.exec(t))?(i="-"===s[1]?-1:1,a={y:0,d:X(s[2])*i,h:X(s[3])*i,m:X(s[4])*i,s:X(s[5])*i,ms:X(Le(1e3*s[6]))*i}):(s=ze.exec(t))?(i="-"===s[1]?-1:1,a={y:Be(s[2],i),M:Be(s[3],i),w:Be(s[4],i),d:Be(s[5],i),h:Be(s[6],i),m:Be(s[7],i),s:Be(s[8],i)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=function(t,e){var i;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ne(e,t),t.isBefore(e)?i=Ye(t,e):((i=Ye(e,t)).milliseconds=-i.milliseconds,i.months=-i.months);return i}(ke(a.from),ke(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),n=new Oe(a),Pe(t)&&o(t,"_locale")&&(n._locale=t._locale),Pe(t)&&o(t,"_isValid")&&(n._isValid=t._isValid),n}function Be(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ye(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function We(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),qe(this,He(i,n),t),this}}function qe(t,e,n,r){var o=e._milliseconds,a=Le(e._days),s=Le(e._months);t.isValid()&&(r=null==r||r,s&&Tt(t,U(t,"Month")+s*n),a&&G(t,"Date",U(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,a||s))}He.fn=Oe.prototype,He.invalid=function(){return He(NaN)};var Xe=We(1,"add"),Ve=We(-1,"subtract");function Ue(t){return"string"==typeof t||t instanceof String}function Ge(t){return x(t)||c(t)||Ue(t)||l(t)||function(t){var e=n(t),i=!1;e&&(i=0===t.filter((function(e){return!l(e)&&Ue(t)})).length);return e&&i}(t)||function(t){var e,i,n=r(t)&&!a(t),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<l.length;e+=1)i=l[e],s=s||o(t,i);return n&&s}(t)||null==t}function Ze(t){var e,i=r(t)&&!a(t),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<s.length;e+=1)n=n||o(t,s[e]);return i&&n}function Ke(t,e){if(t.date()<e.date())return-Ke(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function $e(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ae(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qe=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Je(){return this._locale}var ti=1e3,ei=6e4,ii=36e5,ni=126227808e5;function ri(t,e){return(t%e+e)%e}function oi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-ni:new Date(t,e,i).valueOf()}function ai(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ni:Date.UTC(t,e,i)}function si(t,e){return e.erasAbbrRegex(t)}function li(){var t,e,i=[],n=[],r=[],o=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(pt(a[t].name)),i.push(pt(a[t].abbr)),r.push(pt(a[t].narrow)),o.push(pt(a[t].name)),o.push(pt(a[t].abbr)),o.push(pt(a[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ci(t,e){I(0,[t,t.length],0,e)}function ui(t,e,i,n,r){var o;return null==t?jt(this,n,r).year:(e>(o=Rt(t,n,r))&&(e=o),hi.call(this,t,e,i,n,r))}function hi(t,e,i,n,r){var o=Nt(t,e,i,n,r),a=Mt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),dt("N",si),dt("NN",si),dt("NNN",si),dt("NNNN",(function(t,e){return e.erasNameRegex(t)})),dt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),mt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?f(i).era=r:f(i).invalidEra=t})),dt("y",st),dt("yy",st),dt("yyy",st),dt("yyyy",st),dt("yo",(function(t,e){return e._eraYearOrdinalRegex||st})),mt(["y","yy","yyy","yyyy"],0),mt(["yo"],(function(t,e,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[0]=i._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ci("gggg","weekYear"),ci("ggggg","weekYear"),ci("GGGG","isoWeekYear"),ci("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),dt("G",lt),dt("g",lt),dt("GG",et,$),dt("gg",et,$),dt("GGGG",ot,J),dt("gggg",ot,J),dt("GGGGG",at,tt),dt("ggggg",at,tt),vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=X(t)})),vt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),I("Q",0,"Qo","quarter"),F("quarter","Q"),Y("quarter",7),dt("Q",K),mt("Q",(function(t,e){e[1]=3*(X(t)-1)})),I("D",["DD",2],"Do","date"),F("date","D"),Y("date",9),dt("D",et),dt("DD",et,$),dt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),mt(["D","DD"],2),mt("Do",(function(t,e){e[2]=X(t.match(et)[0])}));var di=V("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),Y("dayOfYear",4),dt("DDD",rt),dt("DDDD",Q),mt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=X(t)})),I("m",["mm",2],0,"minute"),F("minute","m"),Y("minute",14),dt("m",et),dt("mm",et,$),mt(["m","mm"],4);var fi=V("Minutes",!1);I("s",["ss",2],0,"second"),F("second","s"),Y("second",15),dt("s",et),dt("ss",et,$),mt(["s","ss"],5);var pi,gi,mi=V("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),Y("millisecond",16),dt("S",rt,K),dt("SS",rt,$),dt("SSS",rt,Q),pi="SSSS";pi.length<=9;pi+="S")dt(pi,st);function vi(t,e){e[6]=X(1e3*("0."+t))}for(pi="S";pi.length<=9;pi+="S")mt(pi,vi);gi=V("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var yi=b.prototype;function bi(t){return t}yi.add=Xe,yi.calendar=function(t,e){1===arguments.length&&(arguments[0]?Ge(arguments[0])?(t=arguments[0],e=void 0):Ze(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||ke(),r=Ne(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,ke(n)))},yi.clone=function(){return new b(this)},yi.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Ne(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=z(e)){case"year":o=Ke(this,n)/12;break;case"month":o=Ke(this,n);break;case"quarter":o=Ke(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:q(o)},yi.endOf=function(t){var e,n;if(void 0===(t=z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?ai:oi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ii-ri(e+(this._isUTC?0:this.utcOffset()*ei),ii)-1;break;case"minute":e=this._d.valueOf(),e+=ei-ri(e,ei)-1;break;case"second":e=this._d.valueOf(),e+=ti-ri(e,ti)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},yi.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=N(this,t);return this.localeData().postformat(e)},yi.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||ke(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yi.fromNow=function(t){return this.from(ke(),t)},yi.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||ke(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yi.toNow=function(t){return this.to(ke(),t)},yi.get=function(t){return C(this[t=z(t)])?this[t]():this},yi.invalidAt=function(){return f(this).overflow},yi.isAfter=function(t,e){var i=x(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},yi.isBefore=function(t,e){var i=x(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},yi.isBetween=function(t,e,i,n){var r=x(t)?t:ke(t),o=x(e)?e:ke(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i)))},yi.isSame=function(t,e){var i,n=x(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},yi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},yi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},yi.isValid=function(){return p(this)},yi.lang=Qe,yi.locale=$e,yi.localeData=Je,yi.max=Ce,yi.min=Ae,yi.parsingFlags=function(){return h({},f(this))},yi.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)o(t,e)&&i.push({unit:e,priority:B[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=H(t));for(i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(C(this[t=z(t)]))return this[t](e);return this},yi.startOf=function(t){var e,n;if(void 0===(t=z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?ai:oi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ri(e+(this._isUTC?0:this.utcOffset()*ei),ii);break;case"minute":e=this._d.valueOf(),e-=ri(e,ei);break;case"second":e=this._d.valueOf(),e-=ri(e,ti)}return this._d.setTime(e),i.updateOffset(this,!0),this},yi.subtract=Ve,yi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},yi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},yi.toDate=function(){return new Date(this.valueOf())},yi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?N(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(i,"Z")):N(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",i=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yi.toJSON=function(){return this.isValid()?this.toISOString():null},yi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yi.unix=function(){return Math.floor(this.valueOf()/1e3)},yi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yi.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},yi.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},yi.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},yi.eraYear=function(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()},yi.year=Lt,yi.isLeapYear=function(){return W(this.year())},yi.weekYear=function(t){return ui.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yi.isoWeekYear=function(t){return ui.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},yi.quarter=yi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},yi.month=Et,yi.daysInMonth=function(){return xt(this.year(),this.month())},yi.week=yi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},yi.isoWeek=yi.isoWeeks=function(t){var e=jt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},yi.weeksInYear=function(){var t=this.localeData()._week;return Rt(this.year(),t.dow,t.doy)},yi.weeksInWeekYear=function(){var t=this.localeData()._week;return Rt(this.weekYear(),t.dow,t.doy)},yi.isoWeeksInYear=function(){return Rt(this.year(),1,4)},yi.isoWeeksInISOWeekYear=function(){return Rt(this.isoWeekYear(),1,4)},yi.date=di,yi.day=yi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},yi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},yi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},yi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},yi.hour=yi.hours=Kt,yi.minute=yi.minutes=fi,yi.second=yi.seconds=mi,yi.millisecond=yi.milliseconds=gi,yi.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ie(ut,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=je(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?qe(this,He(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:je(this)},yi.utc=function(t){return this.utcOffset(0,t)},yi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(je(this),"m")),this},yi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},yi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ke(t).utcOffset():0,(this.utcOffset()-t)%60==0)},yi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yi.isLocal=function(){return!!this.isValid()&&!this._isUTC},yi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yi.isUtc=Re,yi.isUTC=Re,yi.zoneAbbr=function(){return this._isUTC?"UTC":""},yi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yi.dates=w("dates accessor is deprecated. Use date instead.",di),yi.months=w("months accessor is deprecated. Use month instead",Et),yi.years=w("years accessor is deprecated. Use year instead",Lt),yi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),yi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=we(e))._a?(t=e._isUTC?d(e._a):ke(e._a),this._isDSTShifted=this.isValid()&&function(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&X(t[n])!==X(e[n]))&&a++;return a+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var xi=E.prototype;function _i(t,e,i,n){var r=ae(),o=d().set(n,e);return r[i](o,t)}function wi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return _i(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=_i(t,n,i,"month");return r}function Si(t,e,i,n){"boolean"==typeof t?(l(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,l(e)&&(i=e,e=void 0),e=e||"");var r,o=ae(),a=t?o._week.dow:0,s=[];if(null!=i)return _i(e,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=_i(e,(r+a)%7,n,"day");return s}xi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n},xi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(P).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},xi.invalidDate=function(){return this._invalidDate},xi.ordinal=function(t){return this._ordinal.replace("%d",t)},xi.preparse=bi,xi.postformat=bi,xi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return C(r)?r(t,e,i,n):r.replace(/%d/i,t)},xi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)},xi.set=function(t){var e,i;for(i in t)o(t,i)&&(C(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},xi.eras=function(t,e){var n,r,o,a=this._eras||ae("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}}return a},xi.erasParse=function(t,e,i){var n,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if([o,a,s].indexOf(t)>=0)return l[n]},xi.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},xi.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||li.call(this),t?this._erasAbbrRegex:this._erasRegex},xi.erasNameRegex=function(t){return o(this,"_erasNameRegex")||li.call(this),t?this._erasNameRegex:this._erasRegex},xi.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||li.call(this),t?this._erasNarrowRegex:this._erasRegex},xi.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||St).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},xi.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[St.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},xi.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return Ct.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},xi.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ot.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=At),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},xi.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ot.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=kt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},xi.week=function(t){return jt(t,this._week.dow,this._week.doy).week},xi.firstDayOfYear=function(){return this._week.doy},xi.firstDayOfWeek=function(){return this._week.dow},xi.weekdays=function(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(i,this._week.dow):t?i[t.day()]:i},xi.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},xi.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},xi.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return Xt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},xi.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Yt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},xi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},xi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Vt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},xi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},xi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===X(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",re),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ae);var ki=Math.abs;function Ai(t,e,i,n){var r=He(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Ci(t){return t<0?Math.floor(t):Math.ceil(t)}function Ti(t){return 4800*t/146097}function Ei(t){return 146097*t/4800}function Oi(t){return function(){return this.as(t)}}var Pi=Oi("ms"),Li=Oi("s"),Di=Oi("m"),Mi=Oi("h"),Ii=Oi("d"),Ni=Oi("w"),ji=Oi("M"),Ri=Oi("Q"),Fi=Oi("y");function zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Hi=zi("milliseconds"),Bi=zi("seconds"),Yi=zi("minutes"),Wi=zi("hours"),qi=zi("days"),Xi=zi("months"),Vi=zi("years");var Ui=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var Ki=Math.abs;function $i(t){return(t>0)-(t<0)||+t}function Qi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,o,a,s,l=Ki(this._milliseconds)/1e3,c=Ki(this._days),u=Ki(this._months),h=this.asSeconds();return h?(t=q(l/60),e=q(t/60),l%=60,t%=60,i=q(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",o=$i(this._months)!==$i(h)?"-":"",a=$i(this._days)!==$i(h)?"-":"",s=$i(this._milliseconds)!==$i(h)?"-":"",r+"P"+(i?o+i+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+n+"S":"")):"P0D"}var Ji=Oe.prototype;return Ji.isValid=function(){return this._isValid},Ji.abs=function(){var t=this._data;return this._milliseconds=ki(this._milliseconds),this._days=ki(this._days),this._months=ki(this._months),t.milliseconds=ki(t.milliseconds),t.seconds=ki(t.seconds),t.minutes=ki(t.minutes),t.hours=ki(t.hours),t.months=ki(t.months),t.years=ki(t.years),this},Ji.add=function(t,e){return Ai(this,t,e,1)},Ji.subtract=function(t,e){return Ai(this,t,e,-1)},Ji.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=z(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Ti(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Ei(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Ji.asMilliseconds=Pi,Ji.asSeconds=Li,Ji.asMinutes=Di,Ji.asHours=Mi,Ji.asDays=Ii,Ji.asWeeks=Ni,Ji.asMonths=ji,Ji.asQuarters=Ri,Ji.asYears=Fi,Ji.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*X(this._months/12):NaN},Ji._bubble=function(){var t,e,i,n,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Ci(Ei(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=q(o/1e3),l.seconds=t%60,e=q(t/60),l.minutes=e%60,i=q(e/60),l.hours=i%24,a+=q(i/24),s+=r=q(Ti(a)),a-=Ci(Ei(r)),n=q(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},Ji.clone=function(){return He(this)},Ji.get=function(t){return t=z(t),this.isValid()?this[t+"s"]():NaN},Ji.milliseconds=Hi,Ji.seconds=Bi,Ji.minutes=Yi,Ji.hours=Wi,Ji.days=qi,Ji.weeks=function(){return q(this.days()/7)},Ji.months=Xi,Ji.years=Vi,Ji.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,o=Gi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},Gi,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),n=function(t,e,i,n){var r=He(t).abs(),o=Ui(r.as("s")),a=Ui(r.as("m")),s=Ui(r.as("h")),l=Ui(r.as("d")),c=Ui(r.as("M")),u=Ui(r.as("w")),h=Ui(r.as("y")),d=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||a<=1&&["m"]||a<i.m&&["mm",a]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(d=d||u<=1&&["w"]||u<i.w&&["ww",u]),(d=d||c<=1&&["M"]||c<i.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=e,d[3]=+t>0,d[4]=n,Zi.apply(null,d)}(this,!r,o,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},Ji.toISOString=Qi,Ji.toString=Qi,Ji.toJSON=Qi,Ji.locale=$e,Ji.localeData=Je,Ji.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qi),Ji.lang=Qe,I("X",0,0,"unix"),I("x",0,0,"valueOf"),dt("x",lt),dt("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),mt("x",(function(t,e,i){i._d=new Date(X(t))})),
//! moment.js
i.version="2.29.1",t=ke,i.fn=yi,i.min=function(){var t=[].slice.call(arguments,0);return Te("isBefore",t)},i.max=function(){var t=[].slice.call(arguments,0);return Te("isAfter",t)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(t){return ke(1e3*t)},i.months=function(t,e){return wi(t,e,"months")},i.isDate=c,i.locale=re,i.invalid=g,i.duration=He,i.isMoment=x,i.weekdays=function(t,e,i){return Si(t,e,i,"weekdays")},i.parseZone=function(){return ke.apply(null,arguments).parseZone()},i.localeData=ae,i.isDuration=Pe,i.monthsShort=function(t,e){return wi(t,e,"monthsShort")},i.weekdaysMin=function(t,e,i){return Si(t,e,i,"weekdaysMin")},i.defineLocale=oe,i.updateLocale=function(t,e){if(null!=e){var i,n,r=Qt;null!=Jt[t]&&null!=Jt[t].parentLocale?Jt[t].set(T(Jt[t]._config,e)):(null!=(n=ne(t))&&(r=n._config),e=T(r,e),null==n&&(e.abbr=t),(i=new E(e)).parentLocale=Jt[t],Jt[t]=i),re(t)}else null!=Jt[t]&&(null!=Jt[t].parentLocale?(Jt[t]=Jt[t].parentLocale,t===re()&&re(t)):null!=Jt[t]&&delete Jt[t]);return Jt[t]},i.locales=function(){return S(Jt)},i.weekdaysShort=function(t,e,i){return Si(t,e,i,"weekdaysShort")},i.normalizeUnits=z,i.relativeTimeRounding=function(t){return void 0===t?Ui:"function"==typeof t&&(Ui=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Gi[t]&&(void 0===e?Gi[t]:(Gi[t]=e,"s"===t&&(Gi.ss=e-1),!0))},i.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=yi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Choices=e():t.Choices=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="/public/assets/scripts/",i(i.s=5)}([function(t,e,i){var n;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)&&n.length){var a=r.apply(null,n);a&&t.push(a)}else if("object"===o)for(var s in n)i.call(n,s)&&n[s]&&t.push(s)}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},function(t,e,i){"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l((i=t,Array.isArray(i)?[]:{}),t,e):t;var i}function a(t,e,i){return t.concat(e).map((function(t){return o(t,i)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function l(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||a,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=o;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var n={};return i.isMergeableObject(t)&&s(t).forEach((function(e){n[e]=o(t[e],i)})),s(e).forEach((function(r){(function(t,e){try{return e in t&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}catch(t){return!1}})(t,r)||(i.isMergeableObject(e[r])&&t[r]?n[r]=function(t,e){if(!e.customMerge)return l;var i=e.customMerge(t);return"function"==typeof i?i:l}(r,i)(t[r],e[r],i):n[r]=o(e[r],i))})),n}(t,e,i):o(e,i)}l.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return l(t,i,e)}),{})};var c=l;t.exports=c},function(t,e,i){"use strict";(function(t,n){var r,o=i(4);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var a=Object(o.a)(r);e.a=a}).call(this,i(7),i(8)(t))},function(t,e,i){
/*!
* Fuse.js v3.4.2 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
var n;n=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="./src/index.js")}({"./src/bitap/bitap_matched_indices.js":
/*!********************************************!*\
!*** ./src/bitap/bitap_matched_indices.js ***!
\********************************************/
/*! no static exports found */function(t,e){t.exports=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,r=-1,o=0,a=t.length;o<a;o+=1){var s=t[o];s&&-1===n?n=o:s||-1===n||((r=o-1)-n+1>=e&&i.push([n,r]),n=-1)}return t[o-1]&&o-n>=e&&i.push([n,o-1]),i}},"./src/bitap/bitap_pattern_alphabet.js":
/*!*********************************************!*\
!*** ./src/bitap/bitap_pattern_alphabet.js ***!
\*********************************************/
/*! no static exports found */function(t,e){t.exports=function(t){for(var e={},i=t.length,n=0;n<i;n+=1)e[t.charAt(n)]=0;for(var r=0;r<i;r+=1)e[t.charAt(r)]|=1<<i-r-1;return e}},"./src/bitap/bitap_regex_search.js":
/*!*****************************************!*\
!*** ./src/bitap/bitap_regex_search.js ***!
\*****************************************/
/*! no static exports found */function(t,e){var i=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,r=new RegExp(e.replace(i,"\\$&").replace(n,"|")),o=t.match(r),a=!!o,s=[];if(a)for(var l=0,c=o.length;l<c;l+=1){var u=o[l];s.push([t.indexOf(u),u.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:s}}},"./src/bitap/bitap_score.js":
/*!**********************************!*\
!*** ./src/bitap/bitap_score.js ***!
\**********************************/
/*! no static exports found */function(t,e){t.exports=function(t,e){var i=e.errors,n=void 0===i?0:i,r=e.currentLocation,o=void 0===r?0:r,a=e.expectedLocation,s=void 0===a?0:a,l=e.distance,c=void 0===l?100:l,u=n/t.length,h=Math.abs(s-o);return c?u+h/c:h?1:u}},"./src/bitap/bitap_search.js":
/*!***********************************!*\
!*** ./src/bitap/bitap_search.js ***!
\***********************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ./bitap_score */"./src/bitap/bitap_score.js"),r=i(/*! ./bitap_matched_indices */"./src/bitap/bitap_matched_indices.js");t.exports=function(t,e,i,o){for(var a=o.location,s=void 0===a?0:a,l=o.distance,c=void 0===l?100:l,u=o.threshold,h=void 0===u?.6:u,d=o.findAllMatches,f=void 0!==d&&d,p=o.minMatchCharLength,g=void 0===p?1:p,m=s,v=t.length,y=h,b=t.indexOf(e,m),x=e.length,_=[],w=0;w<v;w+=1)_[w]=0;if(-1!==b){var S=n(e,{errors:0,currentLocation:b,expectedLocation:m,distance:c});if(y=Math.min(S,y),-1!==(b=t.lastIndexOf(e,m+x))){var k=n(e,{errors:0,currentLocation:b,expectedLocation:m,distance:c});y=Math.min(k,y)}}b=-1;for(var A=[],C=1,T=x+v,E=1<<x-1,O=0;O<x;O+=1){for(var P=0,L=T;P<L;)n(e,{errors:O,currentLocation:m+L,expectedLocation:m,distance:c})<=y?P=L:T=L,L=Math.floor((T-P)/2+P);T=L;var D=Math.max(1,m-L+1),M=f?v:Math.min(m+L,v)+x,I=Array(M+2);I[M+1]=(1<<O)-1;for(var N=M;N>=D;N-=1){var j=N-1,R=i[t.charAt(j)];if(R&&(_[j]=1),I[N]=(I[N+1]<<1|1)&R,0!==O&&(I[N]|=(A[N+1]|A[N])<<1|1|A[N+1]),I[N]&E&&(C=n(e,{errors:O,currentLocation:j,expectedLocation:m,distance:c}))<=y){if(y=C,(b=j)<=m)break;D=Math.max(1,2*m-b)}}if(n(e,{errors:O+1,currentLocation:m,expectedLocation:m,distance:c})>y)break;A=I}return{isMatch:b>=0,score:0===C?.001:C,matchedIndices:r(_,g)}}},"./src/bitap/index.js":
/*!****************************!*\
!*** ./src/bitap/index.js ***!
\****************************/
/*! no static exports found */function(t,e,i){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)}}var r=i(/*! ./bitap_regex_search */"./src/bitap/bitap_regex_search.js"),o=i(/*! ./bitap_search */"./src/bitap/bitap_search.js"),a=i(/*! ./bitap_pattern_alphabet */"./src/bitap/bitap_pattern_alphabet.js"),s=function(){function t(e,i){var n=i.location,r=void 0===n?0:n,o=i.distance,s=void 0===o?100:o,l=i.threshold,c=void 0===l?.6:l,u=i.maxPatternLength,h=void 0===u?32:u,d=i.isCaseSensitive,f=void 0!==d&&d,p=i.tokenSeparator,g=void 0===p?/ +/g:p,m=i.findAllMatches,v=void 0!==m&&m,y=i.minMatchCharLength,b=void 0===y?1:y;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:r,distance:s,threshold:c,maxPatternLength:h,isCaseSensitive:f,tokenSeparator:g,findAllMatches:v,minMatchCharLength:b},this.pattern=this.options.isCaseSensitive?e:e.toLowerCase(),this.pattern.length<=h&&(this.patternAlphabet=a(this.pattern))}var e,i;return e=t,(i=[{key:"search",value:function(t){if(this.options.isCaseSensitive||(t=t.toLowerCase()),this.pattern===t)return{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]};var e=this.options,i=e.maxPatternLength,n=e.tokenSeparator;if(this.pattern.length>i)return r(t,this.pattern,n);var a=this.options,s=a.location,l=a.distance,c=a.threshold,u=a.findAllMatches,h=a.minMatchCharLength;return o(t,this.pattern,this.patternAlphabet,{location:s,distance:l,threshold:c,findAllMatches:u,minMatchCharLength:h})}}])&&n(e.prototype,i),t}();t.exports=s},"./src/helpers/deep_value.js":
/*!***********************************!*\
!*** ./src/helpers/deep_value.js ***!
\***********************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ./is_array */"./src/helpers/is_array.js");t.exports=function(t,e){return function t(e,i,r){if(i){var o=i.indexOf("."),a=i,s=null;-1!==o&&(a=i.slice(0,o),s=i.slice(o+1));var l=e[a];if(null!=l)if(s||"string"!=typeof l&&"number"!=typeof l)if(n(l))for(var c=0,u=l.length;c<u;c+=1)t(l[c],s,r);else s&&t(l,s,r);else r.push(l.toString())}else r.push(e);return r}(t,e,[])}},"./src/helpers/is_array.js":
/*!*********************************!*\
!*** ./src/helpers/is_array.js ***!
\*********************************/
/*! no static exports found */function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}},"./src/index.js":
/*!**********************!*\
!*** ./src/index.js ***!
\**********************/
/*! no static exports found */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)}function r(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)}}var o=i(/*! ./bitap */"./src/bitap/index.js"),a=i(/*! ./helpers/deep_value */"./src/helpers/deep_value.js"),s=i(/*! ./helpers/is_array */"./src/helpers/is_array.js"),l=function(){function t(e,i){var n=i.location,r=void 0===n?0:n,o=i.distance,s=void 0===o?100:o,l=i.threshold,c=void 0===l?.6:l,u=i.maxPatternLength,h=void 0===u?32:u,d=i.caseSensitive,f=void 0!==d&&d,p=i.tokenSeparator,g=void 0===p?/ +/g:p,m=i.findAllMatches,v=void 0!==m&&m,y=i.minMatchCharLength,b=void 0===y?1:y,x=i.id,_=void 0===x?null:x,w=i.keys,S=void 0===w?[]:w,k=i.shouldSort,A=void 0===k||k,C=i.getFn,T=void 0===C?a:C,E=i.sortFn,O=void 0===E?function(t,e){return t.score-e.score}:E,P=i.tokenize,L=void 0!==P&&P,D=i.matchAllTokens,M=void 0!==D&&D,I=i.includeMatches,N=void 0!==I&&I,j=i.includeScore,R=void 0!==j&&j,F=i.verbose,z=void 0!==F&&F;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:r,distance:s,threshold:c,maxPatternLength:h,isCaseSensitive:f,tokenSeparator:g,findAllMatches:v,minMatchCharLength:b,id:_,keys:S,includeMatches:N,includeScore:R,shouldSort:A,getFn:T,sortFn:O,verbose:z,tokenize:L,matchAllTokens:M},this.setCollection(e)}var e,i;return e=t,(i=[{key:"setCollection",value:function(t){return this.list=t,t}},{key:"search",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(t,'"'));var i=this._prepareSearchers(t),n=i.tokenSearchers,r=i.fullSearcher,o=this._search(n,r),a=o.weights,s=o.results;return this._computeScore(a,s),this.options.shouldSort&&this._sort(s),e.limit&&"number"==typeof e.limit&&(s=s.slice(0,e.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=[];if(this.options.tokenize)for(var i=t.split(this.options.tokenSeparator),n=0,r=i.length;n<r;n+=1)e.push(new o(i[n],this.options));var a=new o(t,this.options);return{tokenSearchers:e,fullSearcher:a}}},{key:"_search",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,i=this.list,n={},r=[];if("string"==typeof i[0]){for(var o=0,a=i.length;o<a;o+=1)this._analyze({key:"",value:i[o],record:o,index:o},{resultMap:n,results:r,tokenSearchers:t,fullSearcher:e});return{weights:null,results:r}}for(var s={},l=0,c=i.length;l<c;l+=1)for(var u=i[l],h=0,d=this.options.keys.length;h<d;h+=1){var f=this.options.keys[h];if("string"!=typeof f){if(s[f.name]={weight:1-f.weight||1},f.weight<=0||f.weight>1)throw new Error("Key weight has to be > 0 and <= 1");f=f.name}else s[f]={weight:1};this._analyze({key:f,value:this.options.getFn(u,f),record:u,index:l},{resultMap:n,results:r,tokenSearchers:t,fullSearcher:e})}return{weights:s,results:r}}},{key:"_analyze",value:function(t,e){var i=t.key,n=t.arrayIndex,r=void 0===n?-1:n,o=t.value,a=t.record,l=t.index,c=e.tokenSearchers,u=void 0===c?[]:c,h=e.fullSearcher,d=void 0===h?[]:h,f=e.resultMap,p=void 0===f?{}:f,g=e.results,m=void 0===g?[]:g;if(null!=o){var v=!1,y=-1,b=0;if("string"==typeof o){this._log("\nKey: ".concat(""===i?"-":i));var x=d.search(o);if(this._log('Full text: "'.concat(o,'", score: ').concat(x.score)),this.options.tokenize){for(var _=o.split(this.options.tokenSeparator),w=[],S=0;S<u.length;S+=1){var k=u[S];this._log('\nPattern: "'.concat(k.pattern,'"'));for(var A=!1,C=0;C<_.length;C+=1){var T=_[C],E=k.search(T),O={};E.isMatch?(O[T]=E.score,v=!0,A=!0,w.push(E.score)):(O[T]=1,this.options.matchAllTokens||w.push(1)),this._log('Token: "'.concat(T,'", score: ').concat(O[T]))}A&&(b+=1)}y=w[0];for(var P=w.length,L=1;L<P;L+=1)y+=w[L];y/=P,this._log("Token score average:",y)}var D=x.score;y>-1&&(D=(D+y)/2),this._log("Score average:",D);var M=!this.options.tokenize||!this.options.matchAllTokens||b>=u.length;if(this._log("\nCheck Matches: ".concat(M)),(v||x.isMatch)&&M){var I=p[l];I?I.output.push({key:i,arrayIndex:r,value:o,score:D,matchedIndices:x.matchedIndices}):(p[l]={item:a,output:[{key:i,arrayIndex:r,value:o,score:D,matchedIndices:x.matchedIndices}]},m.push(p[l]))}}else if(s(o))for(var N=0,j=o.length;N<j;N+=1)this._analyze({key:i,arrayIndex:N,value:o[N],record:a,index:l},{resultMap:p,results:m,tokenSearchers:u,fullSearcher:d})}}},{key:"_computeScore",value:function(t,e){this._log("\n\nComputing score:\n");for(var i=0,n=e.length;i<n;i+=1){for(var r=e[i].output,o=r.length,a=1,s=1,l=0;l<o;l+=1){var c=t?t[r[l].key].weight:1,u=(1===c?r[l].score:r[l].score||.001)*c;1!==c?s=Math.min(s,u):(r[l].nScore=u,a*=u)}e[i].score=1===s?a:s,this._log(e[i])}}},{key:"_sort",value:function(t){this._log("\n\nSorting...."),t.sort(this.options.sortFn)}},{key:"_format",value:function(t){var e=[];if(this.options.verbose){var i=[];this._log("\n\nOutput:\n\n",JSON.stringify(t,(function(t,e){if("object"===n(e)&&null!==e){if(-1!==i.indexOf(e))return;i.push(e)}return e}))),i=null}var r=[];this.options.includeMatches&&r.push((function(t,e){var i=t.output;e.matches=[];for(var n=0,r=i.length;n<r;n+=1){var o=i[n];if(0!==o.matchedIndices.length){var a={indices:o.matchedIndices,value:o.value};o.key&&(a.key=o.key),o.hasOwnProperty("arrayIndex")&&o.arrayIndex>-1&&(a.arrayIndex=o.arrayIndex),e.matches.push(a)}}})),this.options.includeScore&&r.push((function(t,e){e.score=t.score}));for(var o=0,a=t.length;o<a;o+=1){var s=t[o];if(this.options.id&&(s.item=this.options.getFn(s.item,this.options.id)[0]),r.length){for(var l={item:s.item},c=0,u=r.length;c<u;c+=1)r[c](s,l);e.push(l)}else e.push(s.item)}return e}},{key:"_log",value:function(){var t;this.options.verbose&&(t=console).log.apply(t,arguments)}}])&&r(e.prototype,i),t}();t.exports=l}})},t.exports=n()},function(t,e,i){"use strict";function n(t){var e,i=t.Symbol;return"function"==typeof i?i.observable?e=i.observable:(e=i("observable"),i.observable=e):e="@@observable",e}i.d(e,"a",(function(){return n}))},function(t,e,i){t.exports=i(9)},function(t,e){window.delegateEvent=function(){var t,e;function i(e){var i=t.get(e.type);i&&i.forEach((function(t){return t(e)}))}return void 0===t&&(t=new Map),void 0===e&&(e=[]),{add:function(n,r){t.has(n)?t.get(n).push(r):t.set(n,[r]),-1===e.indexOf(n)&&(document.documentElement.addEventListener(n,i,!0),e.push(n))},remove:function(i,n){t.get(i)&&(t.set(i,t.get(i).filter((function(t){return t!==n}))),t.get(i).length||e.splice(e.indexOf(i),1))}}}()},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){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,i){"use strict";i.r(e);var n=i(3),r=i.n(n),o=i(1),a=i.n(o),s=(i(6),i(2)),l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function h(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(h)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var r=t,o=e,a=[],l=a,d=!1;function f(){l===a&&(l=a.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var e=!0;return f(),l.push(t),function(){if(e){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");e=!1,f();var i=l.indexOf(t);l.splice(i,1)}}}function m(t){if(!u(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,o=r(o,t)}finally{d=!1}for(var e=a=l,i=0;i<e.length;i++)(0,e[i])();return t}return m({type:c.INIT}),(n={dispatch:m,subscribe:g,getState:p,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");r=t,m({type:c.REPLACE})}})[s.a]=function(){var t,e=g;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function i(){t.next&&t.next(p())}return i(),{unsubscribe:e(i)}}})[s.a]=function(){return this},t},n}function d(t,e){var i=e&&e.type;return"Given "+(i&&'action "'+String(i)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}var f,p=[],g=[],m=[],v={loading:!1},y=function(t){for(var e="",i=0;i<t;i++)e+=(0,36,Math.floor(36*Math.random()+0)).toString(36);return e},b=function(t){return Object.prototype.toString.call(t).slice(8,-1)},x=function(t,e){return null!=e&&b(e)===t},_=function(t,e){for(var i=t;i;){if(i.hasAttribute(e))return i;i=i.parentElement}return null},w=function(t){return x("String",t)?t.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,"""):t},S=(f=document.createElement("div"),function(t){var e=t.trim();f.innerHTML=e;for(var i=f.children[0];f.firstChild;)f.removeChild(f.firstChild);return i}),k=function(t,e){return t.score-e.score},A=function t(e,i){var n=i.indexOf(".");return n>-1?t(e[i.substring(0,n)],i.substr(n+1)):e[i]},C=function(t){return JSON.parse(JSON.stringify(t))},T=function(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:c.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===i(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+c.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],u=t[l],h=c(u,e);if(void 0===h){var f=d(l,e);throw new Error(f)}r[l]=h,n=n||h!==u}return n?r:t}}({items:function(t,e){switch(void 0===t&&(t=p),e.type){case"ADD_ITEM":return[].concat(t,[{id:e.id,choiceId:e.choiceId,groupId:e.groupId,value:e.value,label:e.label,active:!0,highlighted:!1,customProperties:e.customProperties,placeholder:e.placeholder||!1,keyCode:null}]).map((function(t){var e=t;return e.highlighted=!1,e}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===e.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":return t.map((function(t){var i=t;return i.id===e.id&&(i.highlighted=e.highlighted),i}));default:return t}},groups:function(t,e){switch(void 0===t&&(t=g),e.type){case"ADD_GROUP":return[].concat(t,[{id:e.id,value:e.value,active:e.active,disabled:e.disabled}]);case"CLEAR_CHOICES":return[];default:return t}},choices:function(t,e){switch(void 0===t&&(t=m),e.type){case"ADD_CHOICE":return[].concat(t,[{id:e.id,elementId:e.elementId,groupId:e.groupId,value:e.value,label:e.label||e.value,disabled:e.disabled||!1,selected:!1,active:!0,score:9999,customProperties:e.customProperties,placeholder:e.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return e.activateOptions?t.map((function(t){var i=t;return i.active=e.active,i})):e.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt(e.choiceId,10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":return e.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt(e.choiceId,10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":return t.map((function(t){var i=t;return i.active=e.results.some((function(t){var e=t.item,n=t.score;return e.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":return t.map((function(t){var i=t;return i.active=e.active,i}));case"CLEAR_CHOICES":return m;default:return t}},general:function(t,e){switch(void 0===t&&(t=v),e.type){case"SET_IS_LOADING":return{loading:e.isLoading};default:return t}}}),E=function(t,e){var i=t;if("CLEAR_ALL"===e.type)i=void 0;else if("RESET_TO"===e.type)return C(e.state);return T(i,e)};function O(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)}}var P=function(){function t(){this._store=h(E,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var e,i,n=t.prototype;return n.subscribe=function(t){this._store.subscribe(t)},n.dispatch=function(t){this._store.dispatch(t)},n.isLoading=function(){return this.state.general.loading},n.getChoiceById=function(t){return!!t&&this.activeChoices.find((function(e){return e.id===parseInt(t,10)}))},n.getGroupById=function(t){return this.groups.find((function(e){return e.id===parseInt(t,10)}))},e=t,(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(t){return!0===t.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(t){return!0===t.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(t){return!0===t.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var t=this.groups,e=this.choices;return t.filter((function(t){var i=!0===t.active&&!1===t.disabled,n=e.some((function(t){return!0===t.active&&!1===t.disabled}));return i&&n}),[])}}])&&O(e.prototype,i),t}(),L=function(){function t(t){var e=t.element,i=t.type,n=t.classNames;Object.assign(this,{element:e,type:i,classNames:n}),this.isActive=!1}var e=t.prototype;return e.distanceFromTopWindow=function(){return this.dimensions=this.element.getBoundingClientRect(),this.position=Math.ceil(this.dimensions.top+window.pageYOffset+this.element.offsetHeight),this.position},e.getChild=function(t){return this.element.querySelector(t)},e.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}(),D=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.position;Object.assign(this,{element:e,classNames:n,type:i,position:r}),this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var e=t.prototype;return e.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.shouldFlip=function(t,e){var i,n;if(void 0===e&&(i=document.body,n=document.documentElement,e=Math.max(i.scrollHeight,i.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)),void 0===t)return!1;var r=!1;return"auto"===this.position?r=t>=e:"top"===this.position&&(r=!0),r},e.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},e.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.focus=function(){this.isFocussed||this.element.focus()},e.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.wrap=function(t){!function(t,e){void 0===e&&(e=document.createElement("div")),t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e),e.appendChild(t)}(t,this.element)},e.unwrap=function(t){this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element)},e.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e._onFocus=function(){this.isFocussed=!0},e._onBlur=function(){this.isFocussed=!1},t}();function M(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)}}var I=function(){function t(t){var e=t.element,i=t.type,n=t.classNames,r=t.placeholderValue;Object.assign(this,{element:e,type:i,classNames:n,placeholderValue:r}),this.element=e,this.classNames=n,this.isFocussed=this.element===document.activeElement,this.isDisabled=!1,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var e,i,n=t.prototype;return n.addEventListeners=function(){this.element.addEventListener("input",this._onInput),this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur),this.element.form&&this.element.form.addEventListener("reset",this._onFormReset)},n.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur),this.element.form&&this.element.form.removeEventListener("reset",this._onFormReset)},n.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},n.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},n.focus=function(){this.isFocussed||this.element.focus()},n.blur=function(){this.isFocussed&&this.element.blur()},n.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},n.setWidth=function(t){var e=this,i=function(t){e.element.style.width=t};if(this._placeholderValue){var n=this.element.value.length>=this._placeholderValue.length/1.25;(this.element.value&&n||t)&&this.calcWidth(i)}else this.calcWidth(i)},n.calcWidth=function(t){return function(t,e){var i=t.value||t.placeholder,n=t.offsetWidth;if(i){var r=S("<span>"+w(i)+"</span>");if(r.style.position="absolute",r.style.padding="0",r.style.top="-9999px",r.style.left="-9999px",r.style.width="auto",r.style.whiteSpace="pre",document.body.contains(t)&&window.getComputedStyle){var o=window.getComputedStyle(t);o&&(r.style.fontSize=o.fontSize,r.style.fontFamily=o.fontFamily,r.style.fontWeight=o.fontWeight,r.style.fontStyle=o.fontStyle,r.style.letterSpacing=o.letterSpacing,r.style.textTransform=o.textTransform,r.style.paddingLeft=o.paddingLeft,r.style.paddingRight=o.paddingRight)}document.body.appendChild(r),requestAnimationFrame((function(){i&&r.offsetWidth!==t.offsetWidth&&(n=r.offsetWidth+4),document.body.removeChild(r),e.call(void 0,n+"px")}))}else e.call(void 0,n+"px")}(this.element,t)},n.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},n.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},n._onInput=function(){"select-one"!==this.type&&this.setWidth()},n._onPaste=function(t){t.target===this.element&&this.preventPaste&&t.preventDefault()},n._onFocus=function(){this.isFocussed=!0},n._onBlur=function(){this.isFocussed=!1},e=t,(i=[{key:"placeholder",set:function(t){this.element.placeholder=t}},{key:"value",set:function(t){this.element.value=t},get:function(){return w(this.element.value)}}])&&M(e.prototype,i),t}(),N={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilterFn:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sortFn:function(t,e){var i=(""+(t.label||t.value)).toLowerCase(),n=(""+(e.label||e.value)).toLowerCase();return i<n?-1:i>n?1:0},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'+w(t)+'"</b>'},maxItemText:function(t){return"Only "+t+" values can be added"},itemComparer:function(t,e){return t===e},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",hiddenState:"is-hidden",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},j="removeItem",R="highlightItem",F=function(){function t(t){var e=t.element;Object.assign(this,{element:e}),this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight,this.hasChildren=!!this.element.children}var e=t.prototype;return e.clear=function(){this.element.innerHTML=""},e.append=function(t){this.element.appendChild(t)},e.getChild=function(t){return this.element.querySelector(t)},e.scrollToTop=function(){this.element.scrollTop=0},e.scrollToChoice=function(t,e){var i=this;if(t){var n=this.element.offsetHeight,r=t.offsetHeight,o=t.offsetTop+r,a=this.element.scrollTop+n,s=e>0?this.element.scrollTop+o-a:t.offsetTop;requestAnimationFrame((function(t){i._animateScroll(t,s,e)}))}},e._scrollDown=function(t,e,i){var n=(i-t)/e,r=n>1?n:1;this.element.scrollTop=t+r},e._scrollUp=function(t,e,i){var n=(t-i)/e,r=n>1?n:1;this.element.scrollTop=t-r},e._animateScroll=function(t,e,i){var n=this,r=this.element.scrollTop,o=!1;i>0?(this._scrollDown(r,4,e),r<e&&(o=!0)):(this._scrollUp(r,4,e),r>e&&(o=!0)),o&&requestAnimationFrame((function(){n._animateScroll(t,e,i)}))},t}();function z(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)}}var H=function(){function t(t){var e=t.element,i=t.classNames;if(Object.assign(this,{element:e,classNames:i}),!function(t){return t instanceof Element}(e))throw new TypeError("Invalid element passed");this.isDisabled=!1}var e,i,n=t.prototype;return n.conceal=function(){this.element.classList.add(this.classNames.input),this.element.classList.add(this.classNames.hiddenState),this.element.tabIndex="-1";var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("aria-hidden","true"),this.element.setAttribute("data-choice","active")},n.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.classList.remove(this.classNames.hiddenState),this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("aria-hidden"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},n.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},n.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},n.triggerEvent=function(t,e){!function(t,e,i){void 0===i&&(i=null);var n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}(this.element,t,e)},e=t,(i=[{key:"value",get:function(){return this.element.value},set:function(t){this.element.value=t}}])&&z(e.prototype,i),t}();function B(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)}}var Y=function(t){var e,i,n,r;function o(e){var i,n=e.element,r=e.classNames,o=e.delimiter;return(i=t.call(this,{element:n,classNames:r})||this).delimiter=o,i}return i=t,(e=o).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n=o,(r=[{key:"value",set:function(t){var e=t.map((function(t){return t.value})).join(this.delimiter);this.element.setAttribute("value",e),this.element.value=e},get:function(){return this.element.value}}])&&B(n.prototype,r),o}(H);function W(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)}}var q=function(t){var e,i,n,r;function o(e){var i,n=e.element,r=e.classNames,o=e.template;return(i=t.call(this,{element:n,classNames:r})||this).template=o,i}return i=t,(e=o).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,o.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},n=o,(r=[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(t){var e=this,i=document.createDocumentFragment();t.forEach((function(t){return n=t,r=e.template(n),void i.appendChild(r);var n,r})),this.appendDocFragment(i)}}])&&W(n.prototype,r),o}(H),X=i(0),V=i.n(X),U={containerOuter:function(t,e,i,n,r,o){var a=n?'tabindex="0"':"",s=i?'role="listbox"':"",l="";return i&&r&&(s='role="combobox"',l='aria-autocomplete="list"'),S('\n <div\n class="'+t.containerOuter+'"\n data-type="'+o+'"\n '+s+"\n "+a+"\n "+l+'\n aria-haspopup="true"\n aria-expanded="false"\n dir="'+e+'"\n >\n </div>\n ')},containerInner:function(t){return S('\n <div class="'+t.containerInner+'"></div>\n ')},itemList:function(t,e){var i,n=V()(t.list,((i={})[t.listSingle]=e,i[t.listItems]=!e,i));return S('\n <div class="'+n+'"></div>\n ')},placeholder:function(t,e){return S('\n <div class="'+t.placeholder+'">\n '+e+"\n </div>\n ")},item:function(t,e,i){var n,r,o=e.active?'aria-selected="true"':"",a=e.disabled?'aria-disabled="true"':"",s=V()(t.item,((n={})[t.highlightedState]=e.highlighted,n[t.itemSelectable]=!e.highlighted,n[t.placeholder]=e.placeholder,n));return i?(s=V()(t.item,((r={})[t.highlightedState]=e.highlighted,r[t.itemSelectable]=!e.disabled,r[t.placeholder]=e.placeholder,r)),S('\n <div\n class="'+s+'"\n data-item\n data-id="'+e.id+'"\n data-value="'+e.value+"\"\n data-custom-properties='"+e.customProperties+"'\n data-deletable\n "+o+"\n "+a+"\n >\n "+e.label+'\x3c!--\n --\x3e<button\n type="button"\n class="'+t.button+'"\n data-button\n aria-label="Remove item: \''+e.value+"'\"\n >\n Remove item\n </button>\n </div>\n ")):S('\n <div\n class="'+s+'"\n data-item\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n '+o+"\n "+a+"\n >\n "+e.label+"\n </div>\n ")},choiceList:function(t,e){var i=e?"":'aria-multiselectable="true"';return S('\n <div\n class="'+t.list+'"\n dir="ltr"\n role="listbox"\n '+i+"\n >\n </div>\n ")},choiceGroup:function(t,e){var i,n=e.disabled?'aria-disabled="true"':"",r=V()(t.group,((i={})[t.itemDisabled]=e.disabled,i));return S('\n <div\n class="'+r+'"\n data-group\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n role="group"\n '+n+'\n >\n <div class="'+t.groupHeading+'">'+e.value+"</div>\n </div>\n ")},choice:function(t,e,i){var n,r=e.groupId>0?'role="treeitem"':'role="option"',o=V()(t.item,t.itemChoice,((n={})[t.itemDisabled]=e.disabled,n[t.itemSelectable]=!e.disabled,n[t.placeholder]=e.placeholder,n));return S('\n <div\n class="'+o+'"\n data-select-text="'+i+'"\n data-choice\n data-id="'+e.id+'"\n data-value="'+e.value+'"\n '+(e.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable")+'\n id="'+e.elementId+'"\n '+r+"\n >\n "+e.label+"\n </div>\n ")},input:function(t,e){var i=V()(t.input,t.inputCloned);return S('\n <input\n type="text"\n class="'+i+'"\n autocomplete="off"\n autocapitalize="off"\n spellcheck="false"\n role="textbox"\n aria-autocomplete="list"\n aria-label="'+e+'"\n >\n ')},dropdown:function(t){var e=V()(t.list,t.listDropdown);return S('\n <div\n class="'+e+'"\n aria-expanded="false"\n >\n </div>\n ')},notice:function(t,e,i){var n;void 0===i&&(i="");var r=V()(t.item,t.itemChoice,((n={})[t.noResults]="no-results"===i,n[t.noChoices]="no-choices"===i,n));return S('\n <div class="'+r+'">\n '+e+"\n </div>\n ")},option:function(t){return S('\n <option value="'+t.value+'" '+(t.active?"selected":"")+" "+(t.disabled?"disabled":"")+" "+(t.customProperties?"data-custom-properties="+t.customProperties:"")+">"+t.label+"</option>\n ")}},G=function(t){return void 0===t&&(t=!0),{type:"ACTIVATE_CHOICES",active:t}},Z=function(t,e){return{type:"HIGHLIGHT_ITEM",id:t,highlighted:e}},K=function(t,e,i,n){return{type:"ADD_GROUP",value:t,id:e,active:i,disabled:n}},$=function(){function t(e,i){var n=this;if(void 0===e&&(e="[data-choice]"),void 0===i&&(i={}),x("String",e)){var r=Array.from(document.querySelectorAll(e));if(r.length>1)return this._generateInstances(r,i)}this.config=a.a.all([N,t.userDefaults,i],{arrayMerge:function(t,e){return[].concat(e)}});var o=function(t,e){var i=Object.keys(t).sort(),n=Object.keys(e).sort();return i.filter((function(t){return n.indexOf(t)<0}))}(this.config,N);o.length&&console.warn("Unknown config option(s) passed",o.join(", ")),["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto");var s=x("String",e)?document.querySelector(e):e;if(s){if(this._isTextElement="text"===s.type,this._isSelectOneElement="select-one"===s.type,this._isSelectMultipleElement="select-multiple"===s.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this._isTextElement?this.passedElement=new Y({element:s,classNames:this.config.classNames,delimiter:this.config.delimiter}):this._isSelectElement&&(this.passedElement=new q({element:s,classNames:this.config.classNames,template:function(t){return n.config.templates.option(t)}})),!this.passedElement)return console.error("Passed element was of an invalid type");this.initialised=!1,this._store=new P(this.render),this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(t,e){var i=t.id||t.name&&t.name+"-"+y(2)||y(4);return e+"-"+i.replace(/(:|\.|\[|\]|,)/g,"")}(this.passedElement.element,"choices-"),this._direction=this.passedElement.element.getAttribute("dir")||"ltr",this._idNames={itemChoice:"item-choice"},this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.config.silent||(!0===this.config.shouldSortItems&&this._isSelectOneElement&&console.warn("shouldSortElements: Type of passed element is 'select-one', falling back to false."),"active"===this.passedElement.element.getAttribute("data-choice")&&console.warn("Trying to initialise Choices on element already initialised")),this.init()}else this.config.silent||console.error("Could not find passed element or passed element was of an invalid type")}var e=t.prototype;return e.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=C(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&x("Function",t)&&t.call(this)}},e.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._isSelectElement&&(this.passedElement.options=this._presetChoices),this.clearStore(),this.config.templates=null,this.initialised=!1)},e.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.highlightItem=function(t,e){if(void 0===e&&(e=!0),!t)return this;var i=t.id,n=t.groupId,r=void 0===n?-1:n,o=t.value,a=void 0===o?"":o,s=t.label,l=void 0===s?"":s,c=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(Z(i,!0)),e&&this.passedElement.triggerEvent(R,{id:i,value:a,label:l,groupValue:c&&c.value?c.value:null}),this},e.unhighlightItem=function(t){if(!t)return this;var e=t.id,i=t.groupId,n=void 0===i?-1:i,r=t.value,o=void 0===r?"":r,a=t.label,s=void 0===a?"":a,l=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(Z(e,!1)),this.passedElement.triggerEvent(R,{id:e,value:o,label:s,groupValue:l&&l.value?l.value:null}),this},e.highlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.highlightItem(e)})),this},e.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(e){return t.unhighlightItem(e)})),this},e.removeActiveItemsByValue=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.value===t})).forEach((function(t){return e._removeItem(t)})),this},e.removeActiveItems=function(t){var e=this;return this._store.activeItems.filter((function(e){return e.id!==t})).forEach((function(t){return e._removeItem(t)})),this},e.removeHighlightedItems=function(t){var e=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(i){e._removeItem(i),t&&e._triggerChange(i.value)})),this},e.showDropdown=function(t){var e=this;return this.dropdown.isActive||requestAnimationFrame((function(){e.dropdown.show(),e.containerOuter.open(e.dropdown.distanceFromTopWindow()),!t&&e._canSearch&&e.input.focus(),e.passedElement.triggerEvent("showDropdown",{})})),this},e.hideDropdown=function(t){var e=this;return this.dropdown.isActive?(requestAnimationFrame((function(){e.dropdown.hide(),e.containerOuter.close(),!t&&e._canSearch&&(e.input.removeActiveDescendant(),e.input.blur()),e.passedElement.triggerEvent("hideDropdown",{})})),this):this},e.getValue=function(t){void 0===t&&(t=!1);var e=this._store.activeItems.reduce((function(e,i){var n=t?i.value:i;return e.push(n),e}),[]);return this._isSelectOneElement?e[0]:e},e.setValue=function(t){var e=this;return this.initialised?([].concat(t).forEach((function(t){return e._setChoiceOrItem(t)})),this):this},e.setChoiceByValue=function(t){var e=this;return!this.initialised||this._isTextElement||(x("Array",t)?t:[t]).forEach((function(t){return e._findAndSelectChoiceByValue(t)})),this},e.setChoices=function(t,e,i,n){var r=this;return void 0===t&&(t=[]),void 0===e&&(e=""),void 0===i&&(i=""),void 0===n&&(n=!1),this._isSelectElement&&e?(n&&this.clearChoices(),this.containerOuter.removeLoadingState(),this._setLoading(!0),t.forEach((function(t){t.choices?r._addGroup({group:t,id:t.id||null,valueKey:e,labelKey:i}):r._addChoice({value:t[e],label:t[i],isSelected:t.selected,isDisabled:t.disabled,customProperties:t.customProperties,placeholder:t.placeholder})})),this._setLoading(!1),this):this},e.clearChoices=function(){this._store.dispatch({type:"CLEAR_CHOICES"})},e.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},e.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(G(!0))),this},e.ajax=function(t){var e=this;return this.initialised&&this._isSelectElement&&t?(requestAnimationFrame((function(){return e._handleLoadingState(!0)})),t(this._ajaxCallback()),this):this},e._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,e=this._isSelectElement,i=this._currentState.items!==this._prevState.items;t&&(e&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},e._renderChoices=function(){var t=this,e=this._store,i=e.activeGroups,n=e.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var o=n.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));o.length>=1&&(r=this._createChoicesFragment(o,r)),r=this._createGroupsFragment(i,n,r)}else n.length>=1&&(r=this._createChoicesFragment(n,r));if(r.childNodes&&r.childNodes.length>0){var a=this._store.activeItems,s=this._canAddItem(a,this.input.value);s.response?(this.choiceList.append(r),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",s.notice))}else{var l,c;this._isSearching?(c=x("Function",this.config.noResultsText)?this.config.noResultsText():this.config.noResultsText,l=this._getTemplate("notice",c,"no-results")):(c=x("Function",this.config.noChoicesText)?this.config.noChoicesText():this.config.noChoicesText,l=this._getTemplate("notice",c,"no-choices")),this.choiceList.append(l)}},e._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var e=this._createItemsFragment(t);e.childNodes&&this.itemList.append(e)},e._createGroupsFragment=function(t,e,i){var n=this,r=i||document.createDocumentFragment();return this.config.shouldSort&&t.sort(this.config.sortFn),t.forEach((function(t){var i=function(t){return e.filter((function(e){return n._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===n.config.renderSelectedChoices||!e.selected)}))}(t);if(i.length>=1){var o=n._getTemplate("choiceGroup",t);r.appendChild(o),n._createChoicesFragment(i,r,!0)}})),r},e._createChoicesFragment=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=e||document.createDocumentFragment(),o=this.config,a=o.renderSelectedChoices,s=o.searchResultLimit,l=o.renderChoiceLimit,c=this._isSearching?k:this.config.sortFn,u=function(t){if("auto"!==a||n._isSelectOneElement||!t.selected){var e=n._getTemplate("choice",t,n.config.itemSelectText);r.appendChild(e)}},h=t;"auto"!==a||this._isSelectOneElement||(h=t.filter((function(t){return!t.selected})));var d=h.reduce((function(t,e){return e.placeholder?t.placeholderChoices.push(e):t.normalChoices.push(e),t}),{placeholderChoices:[],normalChoices:[]}),f=d.placeholderChoices,p=d.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(c);var g=h.length,m=[].concat(f,p);this._isSearching?g=s:l>0&&!i&&(g=l);for(var v=0;v<g;v+=1)m[v]&&u(m[v]);return r},e._createItemsFragment=function(t,e){var i=this;void 0===e&&(e=null);var n=this.config,r=n.shouldSortItems,o=n.sortFn,a=n.removeItemButton,s=e||document.createDocumentFragment();return r&&!this._isSelectOneElement&&t.sort(o),this._isTextElement?this.passedElement.value=t:this.passedElement.options=t,t.forEach((function(t){return function(t){var e=i._getTemplate("item",t,a);s.appendChild(e)}(t)})),s},e._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent("change",{value:t})},e._selectPlaceholderChoice=function(){var t=this._store.placeholderChoice;t&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value))},e._handleButtonAction=function(t,e){if(t&&e&&this.config.removeItems&&this.config.removeItemButton){var i=e.parentNode.getAttribute("data-id"),n=t.find((function(t){return t.id===parseInt(i,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},e._handleItemAction=function(t,e,i){var n=this;if(void 0===i&&(i=!1),t&&e&&this.config.removeItems&&!this._isSelectOneElement){var r=e.getAttribute("data-id");t.forEach((function(t){t.id!==parseInt(r,10)||t.highlighted?!i&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},e._handleChoiceAction=function(t,e){if(t&&e){var i=e.getAttribute("data-id"),n=this._store.getChoiceById(i),r=t[0]&&t[0].keyCode?t[0].keyCode:null,o=this.dropdown.isActive;n.keyCode=r,this.passedElement.triggerEvent("choice",{choice:n}),!n||n.selected||n.disabled||this._canAddItem(t,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}},e._handleBackspace=function(t){if(this.config.removeItems&&t){var e=t[t.length-1],i=t.some((function(t){return t.highlighted}));this.config.editItems&&!i&&e?(this.input.value=e.value,this.input.setWidth(),this._removeItem(e),this._triggerChange(e.value)):(i||this.highlightItem(e,!1),this.removeHighlightedItems(!0))}},e._setLoading=function(t){this._store.dispatch(function(t){return{type:"SET_IS_LOADING",isLoading:t}}(t))},e._handleLoadingState=function(t){void 0===t&&(t=!0);var e=this.itemList.getChild("."+this.config.classNames.placeholder);t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?e?e.innerHTML=this.config.loadingText:(e=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(e)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?e.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},e._handleSearch=function(t){if(t&&this.input.isFocussed){var e=this._store.choices,i=this.config,n=i.searchFloor,r=i.searchChoices,o=e.some((function(t){return!t.active}));if(t&&t.length>=n){var a=r?this._searchChoices(t):0;this.passedElement.triggerEvent("search",{value:t,resultCount:a})}else o&&(this._isSearching=!1,this._store.dispatch(G(!0)))}},e._canAddItem=function(t,e){var i=!0,n=x("Function",this.config.addItemText)?this.config.addItemText(e):this.config.addItemText;if(!this._isSelectOneElement){var r=function(t,e,i){return void 0===i&&(i="value"),t.some((function(t){return x("String",e)?t[i]===e.trim():t[i]===e}))}(t,e);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(i=!1,n=x("Function",this.config.maxItemText)?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&i&&(i=!1,n=x("Function",this.config.uniqueItemText)?this.config.uniqueItemText(e):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&x("Function",this.config.addItemFilterFn)&&!this.config.addItemFilterFn(e)&&(i=!1,n=x("Function",this.config.customAddItemText)?this.config.customAddItemText(e):this.config.customAddItemText)}return{response:i,notice:n}},e._ajaxCallback=function(){var t=this;return function(e,i,n){if(e&&i){var r=x("Object",e)?[e]:e;r&&x("Array",r)&&r.length?(t._handleLoadingState(!1),t._setLoading(!0),r.forEach((function(e){e.choices?t._addGroup({group:e,id:e.id||null,valueKey:i,labelKey:n}):t._addChoice({value:A(e,i),label:A(e,n),isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),t._setLoading(!1),t._isSelectOneElement&&t._selectPlaceholderChoice()):t._handleLoadingState(!1)}}},e._searchChoices=function(t){var e=x("String",t)?t.trim():t,i=x("String",this._currentValue)?this._currentValue.trim():this._currentValue;if(e.length<1&&e===i+" ")return 0;var n=this._store.searchableChoices,o=e,a=[].concat(this.config.searchFields),s=Object.assign(this.config.fuseOptions,{keys:a}),l=new r.a(n,s).search(o);return this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(t){return{type:"FILTER_CHOICES",results:t}}(l)),l.length},e._addEventListeners=function(){window.delegateEvent.add("keyup",this._onKeyUp),window.delegateEvent.add("keydown",this._onKeyDown),window.delegateEvent.add("click",this._onClick),window.delegateEvent.add("touchmove",this._onTouchMove),window.delegateEvent.add("touchend",this._onTouchEnd),window.delegateEvent.add("mousedown",this._onMouseDown),window.delegateEvent.add("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus),this.containerOuter.element.addEventListener("blur",this._onBlur)),this.input.element.addEventListener("focus",this._onFocus),this.input.element.addEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset),this.input.addEventListeners()},e._removeEventListeners=function(){window.delegateEvent.remove("keyup",this._onKeyUp),window.delegateEvent.remove("keydown",this._onKeyDown),window.delegateEvent.remove("click",this._onClick),window.delegateEvent.remove("touchmove",this._onTouchMove),window.delegateEvent.remove("touchend",this._onTouchEnd),window.delegateEvent.remove("mousedown",this._onMouseDown),window.delegateEvent.remove("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e._onKeyDown=function(t){var e,i=t.target,n=t.keyCode,r=t.ctrlKey,o=t.metaKey;if(i===this.input.element||this.containerOuter.element.contains(i)){var a=this._store.activeItems,s=this.input.isFocussed,l=this.dropdown.isActive,c=this.itemList.hasChildren,u=String.fromCharCode(n),h=r||o;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(u)&&this.showDropdown();var d=((e={})[65]=this._onAKey,e[13]=this._onEnterKey,e[27]=this._onEscapeKey,e[38]=this._onDirectionKey,e[33]=this._onDirectionKey,e[40]=this._onDirectionKey,e[34]=this._onDirectionKey,e[8]=this._onDeleteKey,e[46]=this._onDeleteKey,e);d[n]&&d[n]({event:t,target:i,keyCode:n,metaKey:o,activeItems:a,hasFocusedInput:s,hasActiveDropdown:l,hasItems:c,hasCtrlDownKeyPressed:h})}},e._onKeyUp=function(t){var e=t.target,i=t.keyCode;if(e===this.input.element){var n=this.input.value,r=this._store.activeItems,o=this._canAddItem(r,n);if(this._isTextElement)if(o.notice&&n){var a=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=a.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var s=(46===i||8===i)&&!e.value,l=!this._isTextElement&&this._isSearching,c=this._canSearch&&o.response;s&&l?(this._isSearching=!1,this._store.dispatch(G(!0))):c&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled}},e._onAKey=function(t){var e=t.hasItems;t.hasCtrlDownKeyPressed&&e&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e._onEnterKey=function(t){var e=t.event,i=t.target,n=t.activeItems,r=t.hasActiveDropdown,o=i.hasAttribute("data-button");if(this._isTextElement&&i.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(o&&(this._handleButtonAction(n,i),e.preventDefault()),r){var s=this.dropdown.getChild("."+this.config.classNames.highlightedState);s&&(n[0]&&(n[0].keyCode=13),this._handleChoiceAction(n,s)),e.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e._onEscapeKey=function(t){t.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},e._onDirectionKey=function(t){var e=t.event,i=t.hasActiveDropdown,n=t.keyCode,r=t.metaKey;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var o,a=40===n||34===n?1:-1;if(r||34===n||33===n)o=a>0?Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")).pop():this.dropdown.element.querySelector("[data-choice-selectable]");else{var s=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);o=s?function(t,e,i){if(void 0===i&&(i=1),t){var n=t.parentNode.parentNode,r=Array.from(n.querySelectorAll(e)),o=r.indexOf(t);return r[o+(i>0?1:-1)]}}(s,"[data-choice-selectable]",a):this.dropdown.element.querySelector("[data-choice-selectable]")}o&&(function(t,e,i){if(void 0===i&&(i=1),t)return i>0?e.scrollTop+e.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=e.scrollTop}(o,this.choiceList.element,a)||this.choiceList.scrollToChoice(o,a),this._highlightChoice(o)),e.preventDefault()}},e._onDeleteKey=function(t){var e=t.event,i=t.target,n=t.hasFocusedInput,r=t.activeItems;!n||i.value||this._isSelectOneElement||(this._handleBackspace(r),e.preventDefault())},e._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e._onTouchEnd=function(t){var e=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(e)&&((e===this.containerOuter.element||e===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},e._onMouseDown=function(t){var e=t.target,i=t.shiftKey;if(this.choiceList.element.contains(e)&&navigator.userAgent.match(/Trident/)&&navigator.userAgent.match(/rv[ :]11/)&&(this._isScrollingOnIe=!0),this.containerOuter.element.contains(e)&&e!==this.input.element){var n=this._store.activeItems,r=i,o=_(e,"data-button"),a=_(e,"data-item"),s=_(e,"data-choice");o?this._handleButtonAction(n,o):a?this._handleItemAction(n,a,r):s&&this._handleChoiceAction(n,s),t.preventDefault()}},e._onMouseOver=function(t){var e=t.target;(e===this.dropdown||this.dropdown.element.contains(e))&&e.hasAttribute("data-choice")&&this._highlightChoice(e)},e._onClick=function(t){var e=t.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e._onFocus=function(t){var e=this,i=t.target;this.containerOuter.element.contains(i)&&{text:function(){i===e.input.element&&e.containerOuter.addFocusState()},"select-one":function(){e.containerOuter.addFocusState(),i===e.input.element&&e.showDropdown(!0)},"select-multiple":function(){i===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())}}[this.passedElement.element.type]()},e._onBlur=function(t){var e=this,i=t.target;if(this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var n=this._store.activeItems.some((function(t){return t.highlighted}));({text:function(){i===e.input.element&&(e.containerOuter.removeFocusState(),n&&e.unhighlightAll(),e.hideDropdown(!0))},"select-one":function(){e.containerOuter.removeFocusState(),(i===e.input.element||i===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},"select-multiple":function(){i===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),n&&e.unhighlightAll())}})[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},e._highlightChoice=function(t){var e=this;void 0===t&&(t=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var n=t;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(t){t.classList.remove(e.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),n?this._highlightPosition=i.indexOf(n):(n=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(n=i[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent("highlightChoice",{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},e._addItem=function(t){var e=t.value,i=t.label,n=void 0===i?null:i,r=t.choiceId,o=void 0===r?-1:r,a=t.groupId,s=void 0===a?-1:a,l=t.customProperties,c=void 0===l?null:l,u=t.placeholder,h=void 0!==u&&u,d=t.keyCode,f=void 0===d?null:d,p=x("String",e)?e.trim():e,g=f,m=c,v=this._store.items,y=n||p,b=parseInt(o,10)||-1,_=s>=0?this._store.getGroupById(s):null,w=v?v.length+1:1;return this.config.prependValue&&(p=this.config.prependValue+p.toString()),this.config.appendValue&&(p+=this.config.appendValue.toString()),this._store.dispatch(function(t){return{type:"ADD_ITEM",value:t.value,label:t.label,id:t.id,choiceId:t.choiceId,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}}({value:p,label:y,id:w,choiceId:b,groupId:s,customProperties:c,placeholder:h,keyCode:g})),this._isSelectOneElement&&this.removeActiveItems(w),this.passedElement.triggerEvent("addItem",{id:w,value:p,label:y,customProperties:m,groupValue:_&&_.value?_.value:void 0,keyCode:g}),this},e._removeItem=function(t){if(!t||!x("Object",t))return this;var e=t.id,i=t.value,n=t.label,r=t.choiceId,o=t.groupId,a=o>=0?this._store.getGroupById(o):null;return this._store.dispatch(function(t,e){return{type:"REMOVE_ITEM",id:t,choiceId:e}}(e,r)),a&&a.value?this.passedElement.triggerEvent(j,{id:e,value:i,label:n,groupValue:a.value}):this.passedElement.triggerEvent(j,{id:e,value:i,label:n}),this},e._addChoice=function(t){var e=t.value,i=t.label,n=void 0===i?null:i,r=t.isSelected,o=void 0!==r&&r,a=t.isDisabled,s=void 0!==a&&a,l=t.groupId,c=void 0===l?-1:l,u=t.customProperties,h=void 0===u?null:u,d=t.placeholder,f=void 0!==d&&d,p=t.keyCode,g=void 0===p?null:p;if(null!=e){var m=this._store.choices,v=n||e,y=m?m.length+1:1,b=this._baseId+"-"+this._idNames.itemChoice+"-"+y;this._store.dispatch(function(t){return{type:"ADD_CHOICE",value:t.value,label:t.label,id:t.id,groupId:t.groupId,disabled:t.disabled,elementId:t.elementId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}}({value:e,label:v,id:y,groupId:c,disabled:s,elementId:b,customProperties:h,placeholder:f,keyCode:g})),o&&this._addItem({value:e,label:v,choiceId:y,customProperties:h,placeholder:f,keyCode:g})}},e._addGroup=function(t){var e=this,i=t.group,n=t.id,r=t.valueKey,o=void 0===r?"value":r,a=t.labelKey,s=void 0===a?"label":a,l=x("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),c=n||Math.floor((new Date).valueOf()*Math.random()),u=!!i.disabled&&i.disabled;l?(this._store.dispatch(K(i.label,c,!0,u)),l.forEach((function(t){var i=t.disabled||t.parentNode&&t.parentNode.disabled;e._addChoice({value:t[o],label:x("Object",t)?t[s]:t.innerHTML,isSelected:t.selected,isDisabled:i,groupId:c,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch(K(i.label,i.id,!1,i.disabled))},e._getTemplate=function(t){var e;if(!t)return null;for(var i=this.config,n=i.templates,r=i.classNames,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return(e=n[t]).call.apply(e,[this,r].concat(a))},e._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,e={};t&&x("Function",t)&&(e=t.call(this,S)),this.config.templates=a()(U,e)},e._createElements=function(){this.containerOuter=new D({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new D({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new I({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type}),this.choiceList=new F({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new F({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new L({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth(!0)),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement?this._addPredefinedChoices():this._isTextElement&&this._addPredefinedItems()},e._addPredefinedChoices=function(){var t=this,e=this.passedElement.optionGroups;if(this._highlightPosition=0,this._isSearching=!1,this._setLoading(!0),e&&e.length){var i=this.passedElement.placeholderOption;i&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))}else{var n=this.passedElement.options,r=this.config.sortFn,o=this._presetChoices;n.forEach((function(t){o.push({value:t.value,label:t.innerHTML,selected:t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:t.hasAttribute("placeholder"),customProperties:t.getAttribute("data-custom-properties")})})),this.config.shouldSort&&o.sort(r);var a=o.some((function(t){return t.selected}));o.forEach((function(e,i){return function(e,i){var n=e.value,r=e.label,o=e.customProperties,s=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=t._isSelectOneElement&&!a&&0===i,c=!!l||e.selected,u=!l&&e.disabled;t._addChoice({value:n,label:r,isSelected:c,isDisabled:u,customProperties:o,placeholder:s})}else t._addChoice({value:n,label:r,isSelected:e.selected,isDisabled:e.disabled,customProperties:o,placeholder:s})}(e,i)}))}this._setLoading(!1)},e._addPredefinedItems=function(){var t=this;this._presetItems.forEach((function(e){return function(e){var i=b(e);"Object"===i&&e.value?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):"String"===i&&t._addItem({value:e})}(e)}))},e._setChoiceOrItem=function(t){var e=this;({object:function(){t.value&&(e._isTextElement?e._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):e._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){e._isTextElement?e._addItem({value:t}):e._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[b(t).toLowerCase()]()},e._findAndSelectChoiceByValue=function(t){var e=this,i=this._store.choices.find((function(i){return e.config.itemComparer(i.value,t)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},e._generateInstances=function(e,i){return e.reduce((function(e,n){return e.push(new t(n,i)),e}),[this])},e._generatePlaceholderValue=function(){return!this._isSelectOneElement&&!!this.config.placeholder&&(this.config.placeholderValue||this.passedElement.element.getAttribute("placeholder"))},t}();$.userDefaults={},e.default=$}]).default})),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e():t.CircleProgress=e()}("undefined"!=typeof self?self:void 0,(function(){function t(e,i,n,r,o){var a,s="string"==typeof e?t.easings[e]:e;requestAnimationFrame((function t(e){e-=a=a||e,e=Math.min(e,r);var l=s(e,i,n,r);o(l),e<r?requestAnimationFrame(t):o(i+n)}))}!function(){try{if("undefined"==typeof SVGElement||Boolean(SVGElement.prototype.innerHTML))return}catch(t){return}function t(e){switch(e.nodeType){case 1:return function(e){var i="";return i+="<"+e.tagName,e.hasAttributes()&&[].forEach.call(e.attributes,(function(t){i+=" "+t.name+'="'+t.value+'"'})),i+=">",e.hasChildNodes()&&[].forEach.call(e.childNodes,(function(e){i+=t(e)})),i+="</"+e.tagName+">"}(e);case 3:return e.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");case 8:return"\x3c!--"+e.nodeValue+"--\x3e"}}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var e="";return[].forEach.call(this.childNodes,(function(i){e+=t(i)})),e},set:function(t){for(;this.firstChild;)this.removeChild(this.firstChild);try{var e=new DOMParser;e.async=!1;var i="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+t+"</svg>",n=e.parseFromString(i,"text/xml").documentElement;[].forEach.call(n.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,!0))}.bind(this))}catch(t){throw new Error("Error parsing markup string")}}}),Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}})}();var e,i,n,r,o,a,s=(e=function(t,e,n,r){var o,a;if(r=r||document,a=Object.create(i),"string"==typeof t&&(t=r.querySelector(t)),t)return(o=r.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("version","1.1"),e&&o.setAttribute("width",e),n&&o.setAttribute("height",n),e&&n&&o.setAttribute("viewBox","0 0 "+e+" "+n),t.appendChild(o),a.svg=o,a},i={element:function(t,e,i,r){var o=n(this,t,e,r);return i&&(o.el.innerHTML=i),o}},n=function(t,e,i,n,o){var a;return o=o||document,(a=Object.create(r)).el=o.createElementNS("http://www.w3.org/2000/svg",e),a.attr(i),(n?n.el||n:t.svg).appendChild(a.el),a},r={attr:function(t,e){if(void 0===t)return this;if("object"!==_typeof(t))return void 0===e?this.el.getAttributeNS(null,t):(this.el.setAttribute(t,e),this);for(var i in t)this.attr(i,t[i]);return this},content:function(t){return this.el.innerHTML=t,this}},e);return t.easings={linear:function(t,e,i,n){return i*t/n+e},easeInQuad:function(t,e,i,n){return i*(t/=n)*t+e},easeOutQuad:function(t,e,i,n){return-i*(t/=n)*(t-2)+e},easeInOutQuad:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,n){return i*(t/=n)*t*t+e},easeOutCubic:function(t,e,i,n){return t/=n,i*(--t*t*t+1)+e},easeInOutCubic:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,n){return i*(t/=n)*t*t*t+e},easeOutQuart:function(t,e,i,n){return t/=n,-i*(--t*t*t*t-1)+e},easeInOutQuart:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,n){return i*(t/=n)*t*t*t*t+e},easeOutQuint:function(t,e,i,n){return t/=n,i*(--t*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,n){return-i*Math.cos(t/n*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,n){return i*Math.sin(t/n*(Math.PI/2))+e},easeInOutSine:function(t,e,i,n){return-i/2*(Math.cos(Math.PI*t/n)-1)+e},easeInExpo:function(t,e,i,n){return i*Math.pow(2,10*(t/n-1))+e},easeOutExpo:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))+e},easeInOutExpo:function(t,e,i,n){return(t/=n/2)<1?i/2*Math.pow(2,10*(t-1))+e:(t--,i/2*(2-Math.pow(2,-10*t))+e)},easeInCirc:function(t,e,i,n){return t/=n,-i*(Math.sqrt(1-t*t)-1)+e},easeOutCirc:function(t,e,i,n){return t/=n,t--,i*Math.sqrt(1-t*t)+e},easeInOutCirc:function(t,e,i,n){return(t/=n/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+e:(t-=2,i/2*(Math.sqrt(1-t*t)+1)+e)}},o={polarToCartesian:function(t,e){return{x:t*Math.cos(e*Math.PI/180),y:t*Math.sin(e*Math.PI/180)}}},(a=function(){function e(t){var i,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document;if(_classCallCheck(this,e),"string"==typeof t&&(t=r.querySelector(t)),!t)throw new Error("CircleProgress: you must pass the container element as the first argument");if(t.circleProgress)return t.circleProgress;(t.circleProgress=this).doc=r,t.setAttribute("role","progressbar"),this.el=t,n=_objectSpread(_objectSpread({},e.defaults),n),Object.defineProperty(this,"_attrs",{value:{},enumerable:!1}),i="valueOnCircle"===n.textFormat?16:8,this.graph={paper:s(t,100,100),angle:0},this.graph.paper.svg.setAttribute("class","circle-progress"),this.graph.circle=this.graph.paper.element("circle").attr({class:"circle-progress-circle",cx:50,cy:50,r:50-i/2,fill:"none",stroke:"#ddd","stroke-width":i}),this.graph.sector=this.graph.paper.element("path").attr({d:e._makeSectorPath(50,50,50-i/2,0,0),class:"circle-progress-value",fill:"none",stroke:"#00E699","stroke-width":i}),this.graph.text=this.graph.paper.element("text",{class:"circle-progress-text",x:50,y:50,font:"16px Arial, sans-serif","text-anchor":"middle",fill:"#999"}),this._initText(),this.attr(["indeterminateText","textFormat","startAngle","clockwise","animation","animationDuration","constrain","min","max","value"].filter((function(t){return t in n})).map((function(t){return[t,n[t]]})))}return _createClass(e,[{key:"value",get:function(){return this._attrs.value},set:function(t){this.attr("value",t)}},{key:"min",get:function(){return this._attrs.min},set:function(t){this.attr("min",t)}},{key:"max",get:function(){return this._attrs.max},set:function(t){this.attr("max",t)}},{key:"startAngle",get:function(){return this._attrs.startAngle},set:function(t){this.attr("startAngle",t)}},{key:"clockwise",get:function(){return this._attrs.clockwise},set:function(t){this.attr("clockwise",t)}},{key:"constrain",get:function(){return this._attrs.constrain},set:function(t){this.attr("constrain",t)}},{key:"indeterminateText",get:function(){return this._attrs.indeterminateText},set:function(t){this.attr("indeterminateText",t)}},{key:"textFormat",get:function(){return this._attrs.textFormat},set:function(t){this.attr("textFormat",t)}},{key:"animation",get:function(){return this._attrs.animation},set:function(t){this.attr("animation",t)}},{key:"animationDuration",get:function(){return this._attrs.animationDuration},set:function(t){this.attr("animationDuration",t)}}]),_createClass(e,[{key:"attr",value:function(t,e){var i=this;if("string"==typeof t)return 1===arguments.length?this._attrs[t]:(this._set(arguments[0],e),this._updateGraph(),this);if("object"!==_typeof(t))throw new TypeError('Wrong argument passed to attr. Expected object, got "'.concat(_typeof(t),'"'));return Array.isArray(t)||(t=Object.keys(t).map((function(e){return[e,t[e]]}))),t.forEach((function(t){return i._set(t[0],t[1])})),this._updateGraph(),this}},{key:"_set",value:function(t,e){var i,n={value:"aria-valuenow",min:"aria-valuemin",max:"aria-valuemax"};if(void 0===(e=this._formatValue(t,e)))throw new TypeError("Failed to set the ".concat(t," property on CircleProgress: The provided value is non-finite."));this._attrs[t]!==e&&("min"===t&&e>=this.max||"max"===t&&e<=this.min||("value"===t&&void 0!==e&&this.constrain&&(null!=this.min&&e<this.min&&(e=this.min),null!=this.max&&e>this.max&&(e=this.max)),this._attrs[t]=e,t in n&&(void 0!==e?this.el.setAttribute(n[t],e):this.el.removeAttribute(n[t])),-1!==["min","max","constrain"].indexOf(t)&&(this.value>this.max||this.value<this.min)&&(this.value=Math.min(this.max,Math.max(this.min,this.value))),"textFormat"===t&&(this._initText(),i="valueOnCircle"===e?16:8,this.graph.sector.attr("stroke-width",i),this.graph.circle.attr("stroke-width",i))))}},{key:"_formatValue",value:function(e,i){switch(e){case"value":case"min":case"max":i=parseFloat(i),isFinite(i)||(i=void 0);break;case"startAngle":i=parseFloat(i),i=isFinite(i)?Math.max(0,Math.min(360,i)):void 0;break;case"clockwise":case"constrain":i=!!i;break;case"indeterminateText":i=""+i;break;case"textFormat":if("function"!=typeof i&&-1===["valueOnCircle","horizontal","vertical","percent","value","none"].indexOf(i))throw new Error('Failed to set the "textFormat" property on CircleProgress: the provided value "'.concat(i,'" is not a legal textFormat identifier.'));break;case"animation":if("string"!=typeof i&&"function"!=typeof i)throw new TypeError('Failed to set "animation" property on CircleProgress: the value must be either string or function, '.concat(_typeof(i)," passed."));if("string"==typeof i&&"none"!==i&&!t.easings[i])throw new Error('Failed to set "animation" on CircleProgress: the provided value '.concat(i," is not a legal easing function name."))}return i}},{key:"_valToAngle",value:function(){var t;return this._isIndeterminate()?0:0===this.max?this.value?360:0:(t=(this.value-this.min)/this.max*360,Math.min(360,Math.max(0,t)))}},{key:"_isIndeterminate",value:function(){return!("number"==typeof this.value&&"number"==typeof this.max&&"number"==typeof this.min)}},{key:"_positionValueText",value:function(t){var e=o.polarToCartesian(this._getRadius(),t);this.graph.textVal.attr({x:50+e.x,y:50+e.y})}},{key:"_initText",value:function(){switch(this.graph.text.content(""),this.textFormat){case"valueOnCircle":this.graph.textVal=this.graph.paper.element("tspan",{x:0,y:0,class:"circle-progress-text-value","font-size":"12",fill:"valueOnCircle"===this.textFormat?"#fff":"#888"},"",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{x:50,y:50,class:"circle-progress-text-max","font-size":"22","font-weight":"bold",fill:"#ddd"},"",this.graph.text),this.graph.text.el.hasAttribute("dominant-baseline")||this.graph.textMax.attr("dy","0.4em");break;case"horizontal":this.graph.textVal=this.graph.paper.element("tspan",{class:"circle-progress-text-value"},"",this.graph.text),this.graph.textSeparator=this.graph.paper.element("tspan",{class:"circle-progress-text-separator"},"/",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{class:"circle-progress-text-max"},"",this.graph.text);break;case"vertical":this.graph.text.el.hasAttribute("dominant-baseline")&&this.graph.text.attr("dominant-baseline","text-after-edge"),this.graph.textVal=this.graph.paper.element("tspan",{class:"circle-progress-text-value",x:50,dy:"-0.2em"},"",this.graph.text),this.graph.textSeparator=this.graph.paper.element("tspan",{class:"circle-progress-text-separator",x:50,dy:"0.1em","font-family":"Arial, sans-serif"},"___",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{class:"circle-progress-text-max",x:50,dy:"1.2em"},"",this.graph.text)}"vertical"!==this.textFormat&&(this.graph.text.el.hasAttribute("dominant-baseline")?this.graph.text.attr("dominant-baseline","central"):this.graph.text.attr("dy","0.4em"))}},{key:"_updateGraph",value:function(){var i,n,r,o=this,a=this.startAngle-90;this._isIndeterminate()?"valueOnCircle"===this.textFormat&&this._positionValueText(a):(i=this._valToAngle(this.value),n=this._getRadius(),r=this.clockwise,this.graph.circle.attr("r",n),"none"!==this.animation&&i!==this.graph.angle?t(this.animation,this.graph.angle,i-this.graph.angle,this.animationDuration,(function(t){o.graph.sector.attr("d",e._makeSectorPath(50,50,n,a,t,r))})):this.graph.sector.attr("d",e._makeSectorPath(50,50,n,a,i,r)),this.graph.angle=i,"valueOnCircle"===this.textFormat&&this._positionValueText((2*a+i)/2)),"function"==typeof this.textFormat?this.graph.text.content(this.textFormat(this.value,this.max)):"value"===this.textFormat?this.graph.text.el.textContent=void 0!==this.value?this.value:this.indeterminateText:"percent"===this.textFormat?this.graph.text.el.textContent=(void 0!==this.value&&null!=this.max?Math.round(this.value/this.max*100):this.indeterminateText)+"%":"none"===this.textFormat?this.graph.text.el.textContent="":(this.graph.textVal.el.textContent=void 0!==this.value?this.value:this.indeterminateText,this.graph.textMax.el.textContent=void 0!==this.max?this.max:this.indeterminateText)}},{key:"_getRadius",value:function(){return 50-Math.max(parseFloat(this.doc.defaultView.getComputedStyle(this.graph.circle.el,null)["stroke-width"]),parseFloat(this.doc.defaultView.getComputedStyle(this.graph.sector.el,null)["stroke-width"]))/2}}],[{key:"_makeSectorPath",value:function(t,e,i,n,r,a){0<r&&r<.3?r=0:359.999<r&&(r=359.999);var s=n+r*(2*(a=!!a)-1),l=o.polarToCartesian(i,n),c=o.polarToCartesian(i,s),u=t+l.x,h=t+c.x;return["M",u,e+l.y,"A",i,i,0,+(180<r),+a,h,e+c.y].join(" ")}}]),e}()).defaults={startAngle:0,min:0,max:1,constrain:!0,indeterminateText:"?",clockwise:!0,textFormat:"horizontal",animation:"easeInOutCubic",animationDuration:600},a})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,(function(t){"use strict";function e(t){for(var e,i,n=1,r=arguments.length;n<r;n++)for(e in i=arguments[n])t[e]=i[e];return t}var i=Object.create||function(t){return n.prototype=t,new n};function n(){}function r(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var o=0;function a(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function s(t,e,i){var n,r,o=function(){n=!1,r&&(a.apply(i,r),r=!1)},a=function(){n?r=arguments:(t.apply(i,arguments),setTimeout(o,e),n=!0)};return a}function l(t,e,i){var n=e[1],r=e[0],o=n-r;return t===n&&i?t:((t-r)%o+o)%o+r}function c(){return!1}function u(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return h(t).split(/\s+/)}function f(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function p(t,e,i){var n=[];for(var r in t)n.push(encodeURIComponent(i?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var g=/\{ *([\w_-]+) *\}/g;function m(t,e){return t.replace(g,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var _=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-_));return _=e+i,window.setTimeout(t,i)}var S=window.requestAnimationFrame||x("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function A(t,e,i){if(!i||S!==w)return S.call(window,r(t,e));t.call(e)}function C(t){t&&k.call(window,t)}var T={extend:e,create:i,bind:r,lastId:o,stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:h,splitWords:d,setOptions:f,getParamString:p,template:m,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:A,cancelAnimFrame:C};function E(){}E.extend=function(t){function n(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var r=n.__super__=this.prototype,o=i(r);for(var a in(o.constructor=n).prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(n[a]=this[a]);return t.statics&&(e(n,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(i(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},n},E.include=function(t){return e(this.prototype,t),this},E.mergeOptions=function(t){return e(this.prototype.options,t),this},E.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var O={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var r=0,o=(t=d(t)).length;r<o;r++)this._on(t[r],e,i);return this},off:function(t,e,i){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else for(var r=0,o=(t=d(t)).length;r<o;r++)this._off(t[r],e,i);else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var r={fn:e,ctx:i},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===e&&o[a].ctx===i)return;o.push(r)},_off:function(t,e,i){var n,r,o;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(r=0,o=n.length;r<o;r++){var a=n[r];if(a.ctx===i&&a.fn===e)return a.fn=c,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(r,1)}}else{for(r=0,o=n.length;r<o;r++)n[r].fn=c;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var r=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,r)}this._firingCount--}}return n&&this._propagateEvent(r),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,i){if("object"==typeof t){for(var n in t)this.once(n,t[n],e);return this}var o=r((function(){this.off(t,e,i).off(t,o,i)}),this);return this.on(t,e,i).on(t,o,i)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};O.addEventListener=O.on,O.removeEventListener=O.clearAllEventListeners=O.off,O.addOneTimeEventListener=O.once,O.fireEvent=O.fire,O.hasEventListeners=O.listens;var P=E.extend(O);function D(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var M=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function I(t,e,i){return t instanceof D?t:v(t)?new D(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new D(t.x,t.y):new D(t,e,i)}function N(t,e){if(t)for(var i=e?[t,e]:t,n=0,r=i.length;n<r;n++)this.extend(i[n])}function j(t,e){return!t||t instanceof N?t:new N(t,e)}function R(t,e){if(t)for(var i=e?[t,e]:t,n=0,r=i.length;n<r;n++)this.extend(i[n])}function F(t,e){return t instanceof R?t:new R(t,e)}function z(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function H(t,e,i){return t instanceof z?t:v(t)&&"object"!=typeof t[0]?3===t.length?new z(t[0],t[1],t[2]):2===t.length?new z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new z(t,e,i)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new D(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new D(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=M(this.x),this.y=M(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},N.prototype={extend:function(t){return t=I(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new D((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new D(this.min.x,this.max.y)},getTopRight:function(){return new D(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t=("number"==typeof t[0]||t instanceof D?I:j)(t))instanceof N?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>=e.x&&n.x<=i.x,a=r.y>=e.y&&n.y<=i.y;return o&&a},overlaps:function(t){t=j(t);var e=this.min,i=this.max,n=t.min,r=t.max,o=r.x>e.x&&n.x<i.x,a=r.y>e.y&&n.y<i.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},R.prototype={extend:function(t){var e,i,n=this._southWest,r=this._northEast;if(t instanceof z)i=e=t;else{if(!(t instanceof R))return t?this.extend(H(t)||F(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||r?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),r.lat=Math.max(i.lat,r.lat),r.lng=Math.max(i.lng,r.lng)):(this._southWest=new z(e.lat,e.lng),this._northEast=new z(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,r=Math.abs(e.lng-i.lng)*t;return new R(new z(e.lat-n,e.lng-r),new z(i.lat+n,i.lng+r))},getCenter:function(){return new z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof z||"lat"in t?H:F)(t);var e,i,n=this._southWest,r=this._northEast;return t instanceof R?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=r.lat&&e.lng>=n.lng&&i.lng<=r.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&n.lat<=i.lat,a=r.lng>=e.lng&&n.lng<=i.lng;return o&&a},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&n.lat<i.lat,a=r.lng>e.lng&&n.lng<i.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var B,Y={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new N(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!(z.prototype={equals:function(t,e){return!!t&&(t=H(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,H(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new z(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new z(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,r=e.lng-i.lng;if(0==n&&0==r)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new R(new z(o.lat-n,o.lng-r),new z(a.lat-n,a.lng-r))}},W=e({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,r=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),s=o*o+Math.cos(n)*Math.cos(r)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),q=6378137,X={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),r=Math.sin(n*e);return new D(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new N([-(B=q*Math.PI),-B],[B,B])};function V(t,e,i,n){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function U(t,e,i,n){return new V(t,e,i,n)}V.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new D((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var G,Z=e({},W,{code:"EPSG:3857",projection:X,transformation:U(G=.5/(Math.PI*X.R),.5,-G,.5)}),K=e({},Z,{code:"EPSG:900913"});function $(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){for(var i,n,r,o,a="",s=0,l=t.length;s<l;s++){for(i=0,n=(r=t[s]).length;i<n;i++)a+=(i?"L":"M")+(o=r[i]).x+" "+o.y;a+=e?Pt?"z":"x":""}return a||"M0 0"}var J=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Dt("webkit"),rt=Dt("android"),ot=Dt("android 2")||Dt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=rt&&Dt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!it&&Dt("chrome"),ut=Dt("gecko")&&!nt&&!lt&&!tt,ht=!ct&&Dt("safari"),dt=Dt("phantom"),ft="OTransition"in J,pt=0===navigator.platform.indexOf("Win"),gt=tt&&"transition"in J,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in J,yt=!window.L_DISABLE_3D&&(gt||mt||vt)&&!ft&&!dt,bt="undefined"!=typeof orientation||Dt("mobile"),xt=bt&&nt,_t=bt&&mt,wt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!wt),kt=!window.L_NO_TOUCH&&(St||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),At=bt&<,Ct=bt&&ut,Tt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Et=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),Ot=!!document.createElement("canvas").getContext,Pt=!(!document.createElementNS||!$("svg").createSVGRect),Lt=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Dt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Mt={ie:tt,ielt9:et,edge:it,webkit:nt,android:rt,android23:ot,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:ht,phantom:dt,opera12:ft,win:pt,ie3d:gt,webkit3d:mt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:xt,mobileWebkit3d:_t,msPointer:wt,pointer:St,touch:kt,mobileOpera:At,mobileGecko:Ct,retina:Tt,passiveEvents:Et,canvas:Ot,svg:Pt,vml:Lt},It=wt?"MSPointerDown":"pointerdown",Nt=wt?"MSPointerMove":"pointermove",jt=wt?"MSPointerUp":"pointerup",Rt=wt?"MSPointerCancel":"pointercancel",Ft={},zt=!1;function Ht(t,e,i,n){function o(t){qt(t,s)}var a,s,l,c,u,h,d,f;function p(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||qt(t,c)}return"touchstart"===e?(u=t,h=i,d=n,f=r((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Re(t),qt(t,h)})),u["_leaflet_touchstart"+d]=f,u.addEventListener(It,f,!1),zt||(document.addEventListener(It,Bt,!0),document.addEventListener(Nt,Yt,!0),document.addEventListener(jt,Wt,!0),document.addEventListener(Rt,Wt,!0),zt=!0)):"touchmove"===e?(c=i,(l=t)["_leaflet_touchmove"+n]=p,l.addEventListener(Nt,p,!1)):"touchend"===e&&(s=i,(a=t)["_leaflet_touchend"+n]=o,a.addEventListener(jt,o,!1),a.addEventListener(Rt,o,!1)),this}function Bt(t){Ft[t.pointerId]=t}function Yt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Wt(t){delete Ft[t.pointerId]}function qt(t,e){for(var i in t.touches=[],Ft)t.touches.push(Ft[i]);t.changedTouches=[t],e(t)}var Xt,Vt,Ut,Gt,Zt,Kt,$t=wt?"MSPointerDown":St?"pointerdown":"touchstart",Qt=wt?"MSPointerUp":St?"pointerup":"touchend",Jt="_leaflet_",te=me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ie="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function ne(t){return"string"==typeof t?document.getElementById(t):t}function re(t,e){var i,n=t.style[e]||t.currentStyle&&t.currentStyle[e];return n&&"auto"!==n||!document.defaultView||(n=(i=document.defaultView.getComputedStyle(t,null))?i[e]:null),"auto"===n?null:n}function oe(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ce(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ue(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=pe(t);return 0<i.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function he(t,e){var i;if(void 0!==t.classList)for(var n=d(e),r=0,o=n.length;r<o;r++)t.classList.add(n[r]);else ue(t,e)||fe(t,((i=pe(t))?i+" ":"")+e)}function de(t,e){void 0!==t.classList?t.classList.remove(e):fe(t,h((" "+pe(t)+" ").replace(" "+e+" "," ")))}function fe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ge(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function me(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ve(t,e,i){var n=e||new D(0,0);t.style[te]=(gt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ye(t,e){t._leaflet_pos=e,yt?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function be(t){return t._leaflet_pos||new D(0,0)}function xe(){Te(window,"dragstart",Re)}function _e(){Oe(window,"dragstart",Re)}function we(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Se(),Kt=(Zt=t).style.outline,t.style.outline="none",Te(window,"keydown",Se))}function Se(){Zt&&(Zt.style.outline=Kt,Kt=Zt=void 0,Oe(window,"keydown",Se))}function ke(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Ae(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}Gt="onselectstart"in document?(Ut=function(){Te(window,"selectstart",Re)},function(){Oe(window,"selectstart",Re)}):(Vt=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Ut=function(){var t;Vt&&(t=document.documentElement.style,Xt=t[Vt],t[Vt]="none")},function(){Vt&&(document.documentElement.style[Vt]=Xt,Xt=void 0)});var Ce={TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ie,get:ne,getStyle:re,create:oe,remove:ae,empty:se,toFront:le,toBack:ce,hasClass:ue,addClass:he,removeClass:de,setClass:fe,getClass:pe,setOpacity:ge,testProp:me,setTransform:ve,setPosition:ye,getPosition:be,disableTextSelection:Ut,enableTextSelection:Gt,disableImageDrag:xe,enableImageDrag:_e,preventOutline:we,restoreOutline:Se,getSizedParentNode:ke,getScale:Ae};function Te(t,e,i,n){if("object"==typeof e)for(var r in e)De(t,r,e[r],i);else for(var o=0,a=(e=d(e)).length;o<a;o++)De(t,e[o],i,n);return this}var Ee="_leaflet_events";function Oe(t,e,i,n){if("object"==typeof e)for(var r in e)Me(t,r,e[r],i);else if(e)for(var o=0,a=(e=d(e)).length;o<a;o++)Me(t,e[o],i,n);else{for(var s in t[Ee])Me(t,s,t[Ee][s]);delete t[Ee]}return this}function Pe(){return St&&!it&&!ht}var Le={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function De(t,e,i,n){var r=e+a(i)+(n?"_"+a(n):"");if(t[Ee]&&t[Ee][r])return this;var o,s,l,c,u,h,d=function(e){return i.call(n||t,e||window.event)},f=d;function p(t){if(St){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var e=Date.now(),i=e-(c||e);u=t.touches?t.touches[0]:t,h=0<i&&i<=250,c=e}function g(t){if(h&&!u.cancelBubble){if(St){if("mouse"===t.pointerType)return;var e,i,n={};for(i in u)e=u[i],n[i]=e&&e.bind?e.bind(u):e;u=n}u.type="dblclick",u.button=0,s(u),c=null}}St&&0===e.indexOf("touch")?Ht(t,e,d,r):kt&&"dblclick"===e&&!Pe()?(s=d,h=!1,(o=t)[Jt+$t+(l=r)]=p,o[Jt+Qt+l]=g,o[Jt+"dblclick"+l]=s,o.addEventListener($t,p,!!Et&&{passive:!1}),o.addEventListener(Qt,g,!!Et&&{passive:!1}),o.addEventListener("dblclick",s,!1)):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Le[e]||e,d,!!Et&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(d=function(e){e=e||window.event,Xe(t,e)&&f(e)},t.addEventListener(Le[e],d,!1)):t.addEventListener(e,f,!1):"attachEvent"in t&&t.attachEvent("on"+e,d),t[Ee]=t[Ee]||{},t[Ee][r]=d}function Me(t,e,i,n){var r,o,s,l,c,u,h,d,f=e+a(i)+(n?"_"+a(n):""),p=t[Ee]&&t[Ee][f];if(!p)return this;St&&0===e.indexOf("touch")?(d=(u=t)["_leaflet_"+(h=e)+f],"touchstart"===h?u.removeEventListener(It,d,!1):"touchmove"===h?u.removeEventListener(Nt,d,!1):"touchend"===h&&(u.removeEventListener(jt,d,!1),u.removeEventListener(Rt,d,!1))):kt&&"dblclick"===e&&!Pe()?(s=(r=t)[Jt+$t+(o=f)],l=r[Jt+Qt+o],c=r[Jt+"dblclick"+o],r.removeEventListener($t,s,!!Et&&{passive:!1}),r.removeEventListener(Qt,l,!!Et&&{passive:!1}),r.removeEventListener("dblclick",c,!1)):"removeEventListener"in t?t.removeEventListener(Le[e]||e,p,!1):"detachEvent"in t&&t.detachEvent("on"+e,p),t[Ee][f]=null}function Ie(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,qe(t),this}function Ne(t){return De(t,"wheel",Ie),this}function je(t){return Te(t,"mousedown touchstart dblclick",Ie),De(t,"click",We),this}function Re(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Fe(t){return Re(t),Ie(t),this}function ze(t,e){if(!e)return new D(t.clientX,t.clientY);var i=Ae(e),n=i.boundingClientRect;return new D((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var He=pt&&ct?2*window.devicePixelRatio:ut?window.devicePixelRatio:1;function Be(t){return it?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ye={};function We(t){Ye[t.type]=!0}function qe(t){var e=Ye[t.type];return Ye[t.type]=!1,e}function Xe(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var Ve={on:Te,off:Oe,stopPropagation:Ie,disableScrollPropagation:Ne,disableClickPropagation:je,preventDefault:Re,stop:Fe,getMousePosition:ze,getWheelDelta:Be,fakeStop:We,skipped:qe,isExternalTarget:Xe,addListener:Te,removeListener:Oe},Ue=P.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=be(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=A(this._animate,this),this._step()},_step:function(t){var e=new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),ye(this._el,i),this.fire("step")},_complete:function(){C(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ge=P.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(H(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&yt&&!At&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Te(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(H(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(yt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(yt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),r=this.getSize().divideBy(2),o=(t instanceof D?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/n),a=this.containerPointToLatLng(r.add(o));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var i=I(e.paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,i.add(n));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var o=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),r),s=this.project(t.getNorthEast(),r);return{center:this.unproject(a.add(s).divideBy(2).add(o),r),zoom:r}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){return e=e||{},(t=I(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Ue,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(he(this._mapPane,"leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var i},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!yt)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),a=this._zoom;t=H(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),c=r.distanceTo(n)||1,u=1.42,h=u*u;function d(t){var e=(l*l-s*s+(t?-1:1)*h*h*c*c)/(2*(t?l:s)*h*c),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var g=d(0);function m(t){return s*(p(g)*(f(e=g+u*t)/p(e))-f(g))/h;var e}var v=Date.now(),y=(d(1)-g)/u,b=i.duration?1e3*i.duration:1e3*y*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o,l,h=(Date.now()-v)/b,d=(o=h,(1-Math.pow(1-o,1.5))*y);h<=1?(this._flyToFrame=A(i,this),this._move(this.unproject(n.add(r.subtract(n).multiplyBy(m(d)/c)),a),this.getScaleZoom(s/(l=d,s*(p(g)/p(g+u*l))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return(t=F(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,F(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i,n,r=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=I(e.paddingBottomRight||e.padding||[0,0]),a=this.getCenter(),s=this.project(a),l=this.project(t),c=this.getPixelBounds(),u=c.getSize().divideBy(2),h=j([c.min.add(r),c.max.subtract(o)]);return h.contains(l)||(this._enforcingBounds=!0,i=s.subtract(l),n=I(l.x+i.x,l.y+i.y),(l.x<h.min.x||l.x>h.max.x)&&(n.x=s.x-i.x,0<i.x?n.x+=u.x-r.x:n.x-=u.x-o.x),(l.y<h.min.y||l.y>h.max.y)&&(n.y=s.y-i.y,0<i.y?n.y+=u.y-r.y:n.y-=u.y-o.y),this.panTo(this.unproject(n),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=i.divideBy(2).round(),a=n.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,n,t):navigator.geolocation.getCurrentPosition(i,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e,i=new z(t.coords.latitude,t.coords.longitude),n=i.toBounds(2*t.coords.accuracy),r=this._locateOptions;r.setView&&(e=this.getBoundsZoom(n),this.setView(i,r.maxZoom?Math.min(e,r.maxZoom):e));var o={latlng:i,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(C(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=oe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t),i=I(i||[0,0]);var n=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),c=j(this.project(s,n),this.project(a,n)).getSize(),u=yt?this.options.zoomSnap:1,h=l.x/c.x,d=l.y/c.y,f=e?Math.max(h,d):Math.min(h,d);n=this.getScaleZoom(f,n);return u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(r,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(H(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ne(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Te(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt,he(t,"leaflet-container"+(kt?" leaflet-touch":"")+(Tt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ht?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=re(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ye(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(he(t.markerPane,"leaflet-zoom-hide"),he(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){ye(this._mapPane,new D(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return C(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ye(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?Oe:Te;e((this._targets[a(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),yt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){C(this._resizeRequest),this._resizeRequest=A((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((i=this._targets[a(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(r&&!Xe(o,t))break;if(n.push(i),r)break}if(o===this._container)break;o=o.parentNode}return n.length||s||r||!Xe(o,t)||(n=[this]),n},_handleDOMEvent:function(t){var e;this._loaded&&!qe(t)&&("mousedown"!==(e=t.type)&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||we(t.target||t.srcElement),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){var r;if("click"===t.type&&((r=e({},t)).type="preclick",this._fireDOMEvent(r,r.type,n)),!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,i))).length){var o=n[0];"contextmenu"===i&&o.listens(i,!0)&&Re(t);var a,s={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=o.getLatLng&&(!o._radius||o._radius<=10),s.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?o.getLatLng():this.layerPointToLatLng(s.layerPoint));for(var l=0;l<n.length;l++)if(n[l].fire(i,s,!0),s.originalEvent._stopped||!1===n[l].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return be(this._mapPane)||new D(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return j([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),r=this.getSize().divideBy(2),o=new N(n.subtract(r),n.add(r)),a=this._getBoundsOffset(o,i,e);return a.round().equals([0,0])?t:this.unproject(n.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new N(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=j(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),r=n.min.subtract(t.min),o=n.max.subtract(t.max);return new D(this._rebound(r.x,-o.x),this._rebound(r.y,-o.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=yt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){de(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,i=this._proxy.style[e];ve(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ve(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(r)||(A((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,he(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&de(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),A((function(){this._moveEnd(!0)}),this))}});function Ze(t){return new Ke(t)}var Ke=E.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return he(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ae(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});Ge.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=oe("div",e+"control-container",this._container);function n(n,r){var o=e+n+" "+e+r;t[n+r]=oe("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $e=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in f(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ke.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){he(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(he(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):de(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return de(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),je(e),Ne(e);var n=this._section=oe("section",t+"-list");i&&(this._map.on("click",this.collapse,this),rt||Te(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var r=this._layersLink=oe("a",t+"-toggle",e);r.href="#",r.title="Layers",kt?(Te(r,"click",Fe),Te(r,"click",this.expand,this)):Te(r,"focus",this.expand,this),i||this.expand(),this._baseLayersList=oe("div",t+"-base",n),this._separator=oe("div",t+"-separator",n),this._overlaysList=oe("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(r((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];for(var t,e,i,n=0,r=0;r<this._layers.length;r++)i=this._layers[r],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,n+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<n,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+a(this),n),this._layerControlInputs.push(e),e.layerId=a(t.layer),Te(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");return i.appendChild(o),o.appendChild(e),o.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],r=[];this._handlingClick=!0;for(var o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),r=i.length-1;0<=r;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Qe=Ke.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=oe("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,r){var o=oe("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),je(o),Te(o,"click",Fe),Te(o,"click",r,this),Te(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";de(this._zoomInButton,e),de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||he(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||he(this._zoomInButton,e)}});Ge.mergeOptions({zoomControl:!0}),Ge.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Qe,this.addControl(this.zoomControl))}));var Je=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=oe("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=oe("div",e,i)),t.imperial&&(this._iScale=oe("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,r=3.2808399*t;5280<r?(e=r/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(r),this._updateScale(this._iScale,n+" ft",n/r))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(10<=i?10:5<=i?5:3<=i?3:2<=i?2:1)}}),ti=Ke.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=oe("div","leaflet-control-attribution"),je(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});Ge.mergeOptions({attributionControl:!0}),Ge.addInitHook((function(){this.options.attributionControl&&(new ti).addTo(this)})),Ke.Layers=$e,Ke.Zoom=Qe,Ke.Scale=Je,Ke.Attribution=ti,Ze.layers=function(t,e,i){return new $e(t,e,i)},Ze.zoom=function(t){return new Qe(t)},Ze.scale=function(t){return new Je(t)},Ze.attribution=function(t){return new ti(t)};var ei=E.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});ei.addTo=function(t,e){return t.addHandler(e,this),this};var ii,ni={Events:O},ri=kt?"touchstart mousedown":"mousedown",oi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ai={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},si=P.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Te(this._dragStartTarget,ri,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(si._dragging===this&&this.finishDrag(),Oe(this._dragStartTarget,ri,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;!t._simulated&&this._enabled&&(this._moved=!1,ue(this._element,"leaflet-zoom-anim")||si._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((si._dragging=this)._preventOutline&&we(this._element),xe(),Ut(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=ke(this._element),this._startPoint=new D(e.clientX,e.clientY),this._parentScale=Ae(i),Te(document,ai[t.type],this._onMove,this),Te(document,oi[t.type],this._onUp,this))))},_onMove:function(t){var e,i;!t._simulated&&this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:((i=new D((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Re(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=be(this._element).subtract(i),he(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),he(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,C(this._animRequest),this._lastEvent=t,this._animRequest=A(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ye(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in de(document.body,"leaflet-dragging"),this._lastTarget&&(de(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ai)Oe(document,ai[t],this._onMove,this),Oe(document,oi[t],this._onUp,this);_e(),Gt(),this._moved&&this._moving&&(C(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,si._dragging=!1}});function li(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function t(e,i,n,r,o){var a,s,l,c=0;for(s=r+1;s<=o-1;s++)c<(l=fi(e[s],e[r],e[o],!0))&&(a=s,c=l);n<c&&(i[a]=1,t(e,i,n,r,a),t(e,i,n,a,o))}(t,n,e,0,i-1);var r,o=[];for(r=0;r<i;r++)n[r]&&o.push(t[r]);return o}(t=function(t,e){for(var i=[t[0]],n=1,r=0,o=t.length;n<o;n++)(function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n})(t[n],t[r])>e&&(i.push(t[n]),r=n);return r<o-1&&i.push(t[o-1]),i}(t,i),i)}function ci(t,e,i){return Math.sqrt(fi(t,e,i,!0))}function ui(t,e,i,n,r){var o,a,s,l=n?ii:di(t,i),c=di(e,i);for(ii=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=di(a=hi(t,e,o=l||c,i,r),i),o===l?(t=a,l=s):(e=a,c=s)}}function hi(t,e,i,n,r){var o,a,s=e.x-t.x,l=e.y-t.y,c=n.min,u=n.max;return 8&i?(o=t.x+s*(u.y-t.y)/l,a=u.y):4&i?(o=t.x+s*(c.y-t.y)/l,a=c.y):2&i?(o=u.x,a=t.y+l*(u.x-t.x)/s):1&i&&(o=c.x,a=t.y+l*(c.x-t.x)/s),new D(o,a,r)}function di(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function fi(t,e,i,n){var r,o=e.x,a=e.y,s=i.x-o,l=i.y-a,c=s*s+l*l;return 0<c&&(1<(r=((t.x-o)*s+(t.y-a)*l)/c)?(o=i.x,a=i.y):0<r&&(o+=s*r,a+=l*r)),s=t.x-o,l=t.y-a,n?s*s+l*l:new D(o,a)}function pi(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function gi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),pi(t)}var mi={simplify:li,pointToSegmentDistance:ci,closestPointOnSegment:function(t,e,i){return fi(t,e,i)},clipSegment:ui,_getEdgeIntersection:hi,_getBitCode:di,_sqClosestPointOnSegment:fi,isFlat:pi,_flat:gi};function vi(t,e,i){for(var n,r,o,a,s,l,c,u=[1,4,2,8],h=0,d=t.length;h<d;h++)t[h]._code=di(t[h],e);for(o=0;o<4;o++){for(l=u[o],n=[],h=0,r=(d=t.length)-1;h<d;r=h++)a=t[h],s=t[r],a._code&l?s._code&l||((c=hi(s,a,l,e,i))._code=di(c,e),n.push(c)):(s._code&l&&((c=hi(s,a,l,e,i))._code=di(c,e),n.push(c)),n.push(a));t=n}return t}var yi,bi={clipPolygon:vi},xi={project:function(t){return new D(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new N([-180,-90],[180,90])},_i={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-a)/(1+a),o/2);n=-i*Math.log(Math.max(s,1e-10));return new D(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),a=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&1e-7<Math.abs(c);l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*i,t.x*i/n)}},wi={LonLat:xi,Mercator:_i,SphericalMercator:X},Si=e({},W,{code:"EPSG:3395",projection:_i,transformation:U(yi=.5/(Math.PI*_i.R),.5,-yi,.5)}),ki=e({},W,{code:"EPSG:4326",projection:xi,transformation:U(1/180,1,-1/180,.5)}),Ai=e({},Y,{projection:xi,transformation:U(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});Y.Earth=W,Y.EPSG3395=Si,Y.EPSG3857=Z,Y.EPSG900913=K,Y.EPSG4326=ki,Y.Simple=Ai;var Ci=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",(function(){i.off(e,this)}),this)),this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this}))}});Ge.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?v(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var r=this._zoomBoundLayers[n].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ti=Ci.extend({initialize:function(t,e){var i,n;if(f(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:a}),Ei=Ti.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ti.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ti.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Oi=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var r=I(n),o=I("shadow"===e&&i.shadowAnchor||i.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Tt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Pi=Oi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Pi.imagePath||(Pi.imagePath=this._detectIconPath()),(this.options.imagePath||Pi.imagePath)+Oi.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=re(t,"background-image")||re(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Li=ei.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new si(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),he(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&de(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e,i=this._marker,n=i._map,r=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,a=be(i._icon),s=n.getPixelBounds(),l=n.getPixelOrigin(),c=j(s.min._subtract(l).add(o),s.max._subtract(l).subtract(o));c.contains(a)||(e=I((Math.max(c.max.x,a.x)-c.max.x)/(s.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(s.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(s.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(s.min.y-c.min.y)).multiplyBy(r),n.panBy(e,{animate:!1}),this._draggable._newPos._add(e),this._draggable._startPos._add(e),ye(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=A(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(C(this._panRequest),this._panRequest=A(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=be(e._icon),r=e._map.layerPointToLatLng(n);i&&ye(i,n),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Di=Ci.extend({options:{icon:new Pi,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=H(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),he(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(he(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ye(this._icon,t),this._shadow&&ye(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){var t;this.options.interactive&&(he(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Li&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Li(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ge(this._icon,t),this._shadow&&ge(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Mi=Ci.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Ii=Mi.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=H(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=H(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Mi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new N(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Ni=Ii.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),f(this,i),this._latlng=H(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Mi.prototype.setStyle,_project:function(){var t,e,i,n,r,o,a,s,l=this._latlng.lng,c=this._latlng.lat,u=this._map,h=u.options.crs;h.distance===W.distance?(t=Math.PI/180,e=this._mRadius/W.R/t,i=u.project([c+e,l]),n=u.project([c-e,l]),r=i.add(n).divideBy(2),o=u.unproject(r).lat,a=Math.acos((Math.cos(e*t)-Math.sin(c*t)*Math.sin(o*t))/(Math.cos(c*t)*Math.cos(o*t)))/t,!isNaN(a)&&0!==a||(a=e/Math.cos(Math.PI/180*c)),this._point=r.subtract(u.getPixelOrigin()),this._radius=isNaN(a)?0:r.x-u.project([o,l-a]).x,this._radiusY=r.y-i.y):(s=h.unproject(h.project(this._latlng).subtract([this._mRadius,0])),this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(s).x),this._updateBounds()}}),ji=Mi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,r=null,o=fi,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var h=o(t,e=l[c-1],i=l[c],!0);h<n&&(n=h,r=o(t,e,i))}return r&&(r.distance=Math.sqrt(n)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,r,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=t=0;t<l-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(n=t=0;t<l-1;t++)if(r=s[t],o=s[t+1],e<(n+=i=r.distanceTo(o)))return a=(n-e)/i,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=H(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new R,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return pi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=pi(t),n=0,r=t.length;n<r;n++)i?(e[n]=H(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new D(t,t);this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n,r,o=t[0]instanceof z,a=t.length;if(o){for(r=[],n=0;n<a;n++)r[n]=this._map.latLngToLayerPoint(t[n]),i.extend(r[n]);e.push(r)}else for(n=0;n<a;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,i,n,r,o=this._parts,a=0,s=0,l=this._rings.length;a<l;a++)for(e=0,i=(r=this._rings[a]).length;e<i-1;e++)(n=ui(r[e],r[e+1],t,e,!0))&&(o[s]=o[s]||[],o[s].push(n[0]),n[1]===r[e+1]&&e!==i-2||(o[s].push(n[1]),s++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=li(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,r,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,r=(a=(s=this._parts[i]).length)-1;n<a;r=n++)if((e||0!==n)&&ci(t,s[r],s[n])<=l)return!0;return!1}});ji._flat=gi;var Ri=ji.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,r,o,a,s,l,c=this._rings[0],u=c.length;if(!u)return null;for(t=o=a=s=0,e=u-1;t<u;e=t++)i=c[t],n=c[e],r=i.y*n.x-n.y*i.x,a+=(i.x+n.x)*r,s+=(i.y+n.y)*r,o+=3*r;return l=0===o?c[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=ji.prototype._convertLatLngs.call(this,t),i=e.length;return 2<=i&&e[0]instanceof z&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){ji.prototype._setLatLngs.call(this,t),pi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return pi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new D(e,e);t=new N(t.min.subtract(i),t.max.add(i));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,r=0,o=this._rings.length;r<o;r++)(n=vi(this._rings[r],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,r,o,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,s=this._parts.length;r<s;r++)for(o=0,a=(l=(e=this._parts[r]).length)-1;o<l;a=o++)i=e[o],n=e[a],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||ji.prototype._containsPoint.call(this,t,!0)}}),Fi=Ei.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,r=v(t)?t:t.features;if(r){for(e=0,i=r.length;e<i;e++)((n=r[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=zi(t,o);return a?(a.feature=Vi(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function zi(t,e){var i,n,r,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Bi;if(!s&&!a)return null;switch(a.type){case"Point":return Hi(c,t,i=u(s),e);case"MultiPoint":for(r=0,o=s.length;r<o;r++)i=u(s[r]),l.push(Hi(c,t,i,e));return new Ei(l);case"LineString":case"MultiLineString":return n=Yi(s,"LineString"===a.type?0:1,u),new ji(n,e);case"Polygon":case"MultiPolygon":return n=Yi(s,"Polygon"===a.type?1:2,u),new Ri(n,e);case"GeometryCollection":for(r=0,o=a.geometries.length;r<o;r++){var h=zi({geometry:a.geometries[r],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new Ei(l);default:throw new Error("Invalid GeoJSON object.")}}function Hi(t,e,i,n){return t?t(e,i):new Di(i,n&&n.markersInheritOptions&&n)}function Bi(t){return new z(t[1],t[0],t[2])}function Yi(t,e,i){for(var n,r=[],o=0,a=t.length;o<a;o++)n=e?Yi(t[o],e-1,i):(i||Bi)(t[o]),r.push(n);return r}function Wi(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function qi(t,e,i,n){for(var r=[],o=0,a=t.length;o<a;o++)r.push(e?qi(t[o],e-1,i,n):Wi(t[o],n));return!e&&i&&r.push(r[0]),r}function Xi(t,i){return t.feature?e({},t.feature,{geometry:i}):Vi(i)}function Vi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Ui={toGeoJSON:function(t){return Xi(this,{type:"Point",coordinates:Wi(this.getLatLng(),t)})}};function Gi(t,e){return new Fi(t,e)}Di.include(Ui),Ni.include(Ui),Ii.include(Ui),ji.include({toGeoJSON:function(t){var e=!pi(this._latlngs);return Xi(this,{type:(e?"Multi":"")+"LineString",coordinates:qi(this._latlngs,e?1:0,!1,t)})}}),Ri.include({toGeoJSON:function(t){var e=!pi(this._latlngs),i=e&&!pi(this._latlngs[0]),n=qi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Xi(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ti.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),Xi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){var r,o;e.toGeoJSON&&(r=e.toGeoJSON(t),i?n.push(r.geometry):"FeatureCollection"===(o=Vi(r)).type?n.push.apply(n,o.features):n.push(o))})),i?Xi(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Zi=Gi,Ki=Ci.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=F(e),f(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(he(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&ce(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ve(this._image,i,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ye(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){ge(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),$i=Ki.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=r(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=0<i.length?n:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;a<this._url.length;a++){var s=oe("source");s.src=this._url[a],e.appendChild(s)}}}}),Qi=Ki.extend({_initImage:function(){var t=this._image=this._url;he(t,"leaflet-image-layer"),this._zoomAnimated&&he(t,"leaflet-zoom-animated"),this.options.className&&he(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),Ji=Ci.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){f(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ge(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ge(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(ge(this._container,0),this._removeTimeout=setTimeout(r(ae,void 0,this._container),200)):ae(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=H(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&le(this._container),this},bringToBack:function(){return this._map&&ce(this._container),this},_prepareOpen:function(t,e,i){if(e instanceof Ci||(i=e,e=t),e instanceof Ei)for(var n in t._layers){e=t._layers[n];break}if(!i)if(e.getCenter)i=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");i=e.getLatLng()}return this._source=e,this.update(),i},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,i,n,r;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),i=this._getAnchor(),this._zoomAnimated?ye(this._container,t.add(i)):e=e.add(t).add(i),n=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=n+"px",this._container.style.left=r+"px")},_getAnchor:function(){return[0,0]}}),tn=Ji.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Ji.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Mi||this._source.on("preclick",Ie))},onRemove:function(t){Ji.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Mi||this._source.off("preclick",Ie))},getEvents:function(){var t=Ji.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",i=this._container=oe("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=oe("div",e+"-content-wrapper",i);this._contentNode=oe("div",e+"-content",n),je(i),Ne(this._contentNode),Te(i,"contextmenu",Ie),this._tipContainer=oe("div",e+"-tip-container",i),this._tip=oe("div",e+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=oe("a",e+"-close-button",i)).href="#close",t.innerHTML="×",Te(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&r<n?(e.height=r+"px",he(t,o)):de(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ye(this._container,e.add(i))},_adjustPan:function(){var t,e,i,n,r,o,a,s,l,c,u,h;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,e=parseInt(re(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,(r=new D(this._containerLeft,-i-this._containerBottom))._add(be(this._container)),o=t.layerPointToContainerPoint(r),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),h=u=0,o.x+n+l.x>c.x&&(u=o.x+n-c.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+i+l.y>c.y&&(h=o.y+i-c.y+l.y),o.y-h-s.y<0&&(h=o.y-s.y),(u||h)&&t.fire("autopanstart").panBy([u,h]))},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ge.mergeOptions({closePopupOnClick:!0}),Ge.include({openPopup:function(t,e,i){return t instanceof tn||(t=new tn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Ci.include({bindPopup:function(t,e){return t instanceof tn?(f(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new tn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Fe(t),e instanceof Mi?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var en=Ji.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Ji.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Ji.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Ji.prototype.getEvents.call(this);return kt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,n=this._container,r=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),a=this.options.direction,s=n.offsetWidth,l=n.offsetHeight,c=I(this.options.offset),u=this._getAnchor(),h="top"===a?(e=s/2,l):"bottom"===a?(e=s/2,0):(e="center"===a?s/2:"right"===a?0:"left"===a?s:o.x<r.x?(a="right",0):(a="left",s+2*(c.x+u.x)),l/2);t=t.subtract(I(e,h,!0)).add(c).add(u),de(n,"leaflet-tooltip-right"),de(n,"leaflet-tooltip-left"),de(n,"leaflet-tooltip-top"),de(n,"leaflet-tooltip-bottom"),he(n,"leaflet-tooltip-"+a),ye(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ge(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ge.include({openTooltip:function(t,e,i){return t instanceof en||(t=new en(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Ci.include({bindTooltip:function(t,e){return t instanceof en?(f(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new en(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var e,i;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),kt&&(i.click=this._openTooltip)),this[e](i),this._tooltipHandlersAdded=!t)},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(he(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(de(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var nn=Oi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e,i=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;return n.html instanceof Element?(se(i),i.appendChild(n.html)):i.innerHTML=!1!==n.html?n.html:"",n.bgPos&&(e=I(n.bgPos),i.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});Oi.Default=Pi;var rn=Ci.extend({options:{tileSize:256,opacity:1,updateWhenIdle:bt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ce(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof D?t:new D(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),r=0,o=i.length;r<o;r++)e=i[r].style.zIndex,i[r]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){ge(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var r,o=this._tiles[n];o.current&&o.loaded&&(r=Math.min(1,(t-o.loaded)/200),ge(o.el,r),r<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0))}i&&!this._noPrune&&this._pruneTiles(),e&&(C(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ae(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],r=this._map;return n||((n=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,r.getCenter(),r.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)(i=this._tiles[t]).current&&!i.active&&(e=i.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var r=Math.floor(t/2),o=Math.floor(e/2),a=i-1,s=new D(+r,+o);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n<a&&this._retainParent(r,o,a,n))},_retainChildren:function(t,e,i,n){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new D(r,o);a.z=i+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(r,o,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var r=Math.round(e),o=(r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r),this.options.updateWhenZooming&&r!==this._tileZoom);n&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),r=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();yt?ve(t.el,r,n):ye(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new N(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(n),o=r.getCenter(),a=[],s=this.options.keepBuffer,l=new N(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new D(u.x,u.y))||(this._tiles[c].current=!1)}if(1<Math.abs(i-this._tileZoom))this._setView(t,i);else{for(var h=r.min.y;h<=r.max.y;h++)for(var d=r.min.x;d<=r.max.x;d++){var f,p=new D(d,h);p.z=this._tileZoom,this._isValidTile(p)&&((f=this._tiles[this._tileCoordsToKey(p)])?f.current=!0:a.push(p))}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;d<a.length;d++)this._addTile(a[d],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),r=n.add(i);return[e.unproject(n,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new R(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new D(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){he(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,et&&this.options.opacity<1&&ge(t,this.options.opacity),rt&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&A(r(this._tileReady,this,t,null,o)),ye(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(ge(i.el,0),C(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(he(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?A(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new D(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),on=rn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=f(this,e)).detectRetina&&Tt&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),rt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Te(i,"load",r(this._tileOnLoad,this,e,i)),Te(i,"error",r(this._tileOnError,this,e,i)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i,n={r:Tt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(i=this._globalTileRange.max.y-t.y,this.options.tms&&(n.y=i),n["-y"]=i),m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){et?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=b,ae(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",b),rn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==b))return rn.prototype._tileReady.call(this,t,e,i)}});function an(t,e){return new on(t,e)}var sn=on.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var r in i)r in this.options||(n[r]=i[r]);var o=(i=f(this,i)).detectRetina&&Tt?2:1,a=this.getTileSize();n.width=a.x*o,n.height=a.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,on.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=j(i.project(e[0]),i.project(e[1])),r=n.min,o=n.max,a=(1.3<=this._wmsVersion&&this._crs===ki?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=on.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});on.WMS=sn,an.wms=function(t,e){return new sn(t,e)};var ln=Ci.extend({options:{padding:.1,tolerance:0},initialize:function(t){f(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&he(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=be(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=r.multiplyBy(-i).add(n).add(r).subtract(a);yt?ve(this._container,s,i):ye(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cn=ln.extend({getEvents:function(){var t=ln.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ln.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Te(t,"mousemove",this._onMouseMove,this),Te(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Te(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest),delete this._ctx,ae(this._container),Oe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,i,n;this._map._animatingZoom&&this._bounds||(ln.prototype._update.call(this),t=this._bounds,e=this._container,i=t.getSize(),n=Tt?2:1,ye(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Tt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){ln.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[a(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,i=t.options.dashArray.split(/[, ]+/),n=[],r=0;r<i.length;r++){if(e=Number(i[r]),isNaN(e))return;n.push(e)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||A(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,e,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,r,o,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),i=0;i<s;i++){for(n=0,r=a[i].length;n<r;n++)o=a[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,i,n,r;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(r=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,r)),i.beginPath(),i.arc(e.x,e.y/r,n,0,2*Math.PI,!1),1!=r&&i.restore(),this._fillStroke(i,t))},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"!==t.type)&&this._map._draggableMoved(e)||(i=e));i&&(We(t),this._fireEvent([i],t))},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(de(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(he(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t)))},_bringToBack:function(t){var e,i,n=t._order;n&&(e=n.next,(i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)))}});function un(t){return Ot?new cn(t):null}var hn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),dn={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ln.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hn("shape");he(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,r=t._container;r.stroked=!!n.stroke,r.filled=!!n.fill,n.stroke?(e=e||(t._stroke=hn("stroke")),r.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=v(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(r.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=hn("fill")),r.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(r.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){ce(t._container)}},fn=Lt?hn:$,pn=ln.extend({getEvents:function(){var t=ln.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=fn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=fn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Oe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(ln.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ye(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=fn("path");t.options.className&&he(e,t.options.className),t.options.interactive&&he(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){ce(t._path)}});function gn(t){return Pt||Lt?new pn(t):null}Lt&&pn.include(dn),Ge.include({getRenderer:function(t){var e=(e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&un(t)||gn(t)}});var mn=Ri.extend({initialize:function(t,e){Ri.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});pn.create=fn,pn.pointsToPath=Q,Fi.geometryToLayer=zi,Fi.coordsToLatLng=Bi,Fi.coordsToLatLngs=Yi,Fi.latLngToCoords=Wi,Fi.latLngsToCoords=qi,Fi.getFeature=Xi,Fi.asFeature=Vi,Ge.mergeOptions({boxZoom:!0});var vn=ei.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Ut(),xe(),this._startPoint=this._map.mouseEventToContainerPoint(t),Te(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),he(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();ye(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ae(this._box),de(this._container,"leaflet-crosshair")),Gt(),_e(),Oe(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var e;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0),e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Ge.addInitHook("addHandler","boxZoom",vn),Ge.mergeOptions({doubleClickZoom:!0});var yn=ei.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,r=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});Ge.addInitHook("addHandler","doubleClickZoom",yn),Ge.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var bn=ei.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new si(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),he(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){de(this._map._container,"leaflet-grab"),de(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=F(this._map.options.maxBounds),this._offsetLimit=j(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,r=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,a=Math.abs(r+i)<Math.abs(o+i)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e,i,n,r,o,a,s,l,c,u=this._map,h=u.options,d=!h.inertia||this._times.length<2;u.fire("dragend",t),d?u.fire("moveend"):(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,n=h.easeLinearity,o=(r=e.multiplyBy(n/i)).distanceTo([0,0]),a=Math.min(h.inertiaMaxSpeed,o),s=r.multiplyBy(a/o),l=a/(h.inertiaDeceleration*n),(c=s.multiplyBy(-l/2).round()).x||c.y?(c=u._limitOffset(c,u.options.maxBounds),A((function(){u.panBy(c,{duration:l,easeLinearity:n,noMoveStart:!0,animate:!0})}))):u.fire("moveend"))}});Ge.addInitHook("addHandler","dragging",bn),Ge.mergeOptions({keyboard:!0,keyboardPanDelta:80});var xn=ei.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Te(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Oe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,e,i,n;this._focused||(t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(n,i))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},i=this.keyCodes,n=0,r=i.left.length;n<r;n++)e[i.left[n]]=[-1*t,0];for(n=0,r=i.right.length;n<r;n++)e[i.right[n]]=[t,0];for(n=0,r=i.down.length;n<r;n++)e[i.down[n]]=[0,t];for(n=0,r=i.up.length;n<r;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,r=i.zoomIn.length;n<r;n++)e[i.zoomIn[n]]=t;for(n=0,r=i.zoomOut.length;n<r;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Oe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(e=this._panKeys[i],t.shiftKey&&(e=I(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Fe(t)}}});Ge.addInitHook("addHandler","keyboard",xn),Ge.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var _n=ei.extend({addHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Oe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Be(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),n),Fe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(r/i)*i:r,a=t._limitZoom(e+(0<this._delta?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Ge.addInitHook("addHandler","scrollWheelZoom",_n),Ge.mergeOptions({tap:!0,tapTolerance:15});var wn=ei.extend({addHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Re(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new D(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&he(i,"leaflet-active"),this._holdTimeout=setTimeout(r((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Te(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){var e,i;clearTimeout(this._holdTimeout),Oe(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches&&((i=(e=t.changedTouches[0]).target)&&i.tagName&&"a"===i.tagName.toLowerCase()&&de(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new D(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});!kt||St&&!ht||Ge.addInitHook("addHandler","tap",wn),Ge.mergeOptions({touchZoom:kt&&!ot,bounceAtZoomLimits:!0});var Sn=ei.extend({addHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,i,n=this._map;!t.touches||2!==t.touches.length||n._animatingZoom||this._zooming||(e=n.mouseEventToContainerPoint(t.touches[0]),i=n.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.touchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(i)._divideBy(2))),this._startDist=e.distanceTo(i),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend",this._onTouchEnd,this),Re(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&1<o)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{var a=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),C(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=A(s,this,!0),Re(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,C(this._animRequest),Oe(document,"touchmove",this._onTouchMove,this),Oe(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ge.addInitHook("addHandler","touchZoom",Sn),Ge.BoxZoom=vn,Ge.DoubleClickZoom=yn,Ge.Drag=bn,Ge.Keyboard=xn,Ge.ScrollWheelZoom=_n,Ge.Tap=wn,Ge.TouchZoom=Sn,t.version="1.7.1",t.Control=Ke,t.control=Ze,t.Browser=Mt,t.Evented=P,t.Mixin=ni,t.Util=T,t.Class=E,t.Handler=ei,t.extend=e,t.bind=r,t.stamp=a,t.setOptions=f,t.DomEvent=Ve,t.DomUtil=Ce,t.PosAnimation=Ue,t.Draggable=si,t.LineUtil=mi,t.PolyUtil=bi,t.Point=D,t.point=I,t.Bounds=N,t.bounds=j,t.Transformation=V,t.transformation=U,t.Projection=wi,t.LatLng=z,t.latLng=H,t.LatLngBounds=R,t.latLngBounds=F,t.CRS=Y,t.GeoJSON=Fi,t.geoJSON=Gi,t.geoJson=Zi,t.Layer=Ci,t.LayerGroup=Ti,t.layerGroup=function(t,e){return new Ti(t,e)},t.FeatureGroup=Ei,t.featureGroup=function(t,e){return new Ei(t,e)},t.ImageOverlay=Ki,t.imageOverlay=function(t,e,i){return new Ki(t,e,i)},t.VideoOverlay=$i,t.videoOverlay=function(t,e,i){return new $i(t,e,i)},t.SVGOverlay=Qi,t.svgOverlay=function(t,e,i){return new Qi(t,e,i)},t.DivOverlay=Ji,t.Popup=tn,t.popup=function(t,e){return new tn(t,e)},t.Tooltip=en,t.tooltip=function(t,e){return new en(t,e)},t.Icon=Oi,t.icon=function(t){return new Oi(t)},t.DivIcon=nn,t.divIcon=function(t){return new nn(t)},t.Marker=Di,t.marker=function(t,e){return new Di(t,e)},t.TileLayer=on,t.tileLayer=an,t.GridLayer=rn,t.gridLayer=function(t){return new rn(t)},t.SVG=pn,t.svg=gn,t.Renderer=ln,t.Canvas=cn,t.canvas=un,t.Path=Mi,t.CircleMarker=Ii,t.circleMarker=function(t,e){return new Ii(t,e)},t.Circle=Ni,t.circle=function(t,e,i){return new Ni(t,e,i)},t.Polyline=ji,t.polyline=function(t,e){return new ji(t,e)},t.Polygon=Ri,t.polygon=function(t,e){return new Ri(t,e)},t.Rectangle=mn,t.rectangle=function(t,e){return new mn(t,e)},t.Map=Ge,t.map=function(t,e){return new Ge(t,e)};var kn=window.L;t.noConflict=function(){return window.L=kn,this},window.L=t})),function(){"use strict";function t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function e(t){return t[t.length-1]}function i(t,...e){return e.forEach((e=>{t.includes(e)||t.push(e)})),t}function n(t,e){return t?t.split(e):[]}function r(t,e,i){return(void 0===e||t>=e)&&(void 0===i||t<=i)}function o(t,e,i){return t<e?e:t>i?i:t}function a(t,e,i={},n=0,r=""){r+=`<${Object.keys(i).reduce(((t,e)=>{let r=i[e];return"function"==typeof r&&(r=r(n)),`${t} ${e}="${r}"`}),t)}></${t}>`;const o=n+1;return o<e?a(t,e,i,o,r):r}function s(t){return t.replace(/>\s+/g,">").replace(/\s+</,"<")}function l(t){return new Date(t).setHours(0,0,0,0)}function c(){return(new Date).setHours(0,0,0,0)}function u(...t){switch(t.length){case 0:return c();case 1:return l(t[0])}const e=new Date(0);return e.setFullYear(...t),e.setHours(0,0,0,0)}function h(t,e){const i=new Date(t);return i.setDate(i.getDate()+e)}function d(t,e){const i=new Date(t),n=i.getMonth()+e;let r=n%12;r<0&&(r+=12);const o=i.setMonth(n);return i.getMonth()!==r?i.setDate(0):o}function f(t,e){const i=new Date(t),n=i.getMonth(),r=i.setFullYear(i.getFullYear()+e);return 1===n&&2===i.getMonth()?i.setDate(0):r}function p(t,e){return(t-e+7)%7}function g(t,e,i=0){const n=new Date(t).getDay();return h(t,p(e,i)-p(n,i))}function m(t,e){const i=new Date(t).getFullYear();return Math.floor(i/e)*e}const v=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,y=/[\s!-/:-@[-`{-~年月日]+/;let b={};const x={y:(t,e)=>new Date(t).setFullYear(parseInt(e,10)),m(t,e,i){const n=new Date(t);let r=parseInt(e,10)-1;if(isNaN(r)){if(!e)return NaN;const t=e.toLowerCase(),n=e=>e.toLowerCase().startsWith(t);if(r=i.monthsShort.findIndex(n),r<0&&(r=i.months.findIndex(n)),r<0)return NaN}return n.setMonth(r),n.getMonth()!==w(r)?n.setDate(0):n.getTime()},d:(t,e)=>new Date(t).setDate(parseInt(e,10))},_={d:t=>t.getDate(),dd:t=>S(t.getDate(),2),D:(t,e)=>e.daysShort[t.getDay()],DD:(t,e)=>e.days[t.getDay()],m:t=>t.getMonth()+1,mm:t=>S(t.getMonth()+1,2),M:(t,e)=>e.monthsShort[t.getMonth()],MM:(t,e)=>e.months[t.getMonth()],y:t=>t.getFullYear(),yy:t=>S(t.getFullYear(),2).slice(-2),yyyy:t=>S(t.getFullYear(),4)};function w(t){return t>-1?t%12:w(t+12)}function S(t,e){return t.toString().padStart(e,"0")}function k(t){if("string"!=typeof t)throw new Error("Invalid date format.");if(t in b)return b[t];const i=t.split(v),n=t.match(new RegExp(v,"g"));if(0===i.length||!n)throw new Error("Invalid date format.");const r=n.map((t=>_[t])),o=Object.keys(x).reduce(((t,e)=>(n.find((t=>"D"!==t[0]&&t[0].toLowerCase()===e))&&t.push(e),t)),[]);return b[t]={parser(t,e){const i=t.split(y).reduce(((t,e,i)=>{if(e.length>0&&n[i]){const r=n[i][0];"M"===r?t.m=e:"D"!==r&&(t[r]=e)}return t}),{});return o.reduce(((t,n)=>{const r=x[n](t,i[n],e);return isNaN(r)?t:r}),c())},formatter:(t,n)=>r.reduce(((e,r,o)=>e+`${i[o]}${r(t,n)}`),"")+e(i)}}function A(t,e,i){if(t instanceof Date||"number"==typeof t){const e=l(t);return isNaN(e)?void 0:e}if(t){if("today"===t)return c();if(e&&e.toValue){const n=e.toValue(t,e,i);return isNaN(n)?void 0:l(n)}return k(e).parser(t,i)}}function C(t,e,i){if(isNaN(t)||!t&&0!==t)return"";const n="number"==typeof t?new Date(t):t;return e.toDisplay?e.toDisplay(n,e,i):k(e).formatter(n,i)}const T=new WeakMap,{addEventListener:E,removeEventListener:O}=EventTarget.prototype;function P(t,e){let i=T.get(t);i||(i=[],T.set(t,i)),e.forEach((t=>{E.call(...t),i.push(t)}))}function L(t){let e=T.get(t);e&&(e.forEach((t=>{O.call(...t)})),T.delete(t))}if(!Event.prototype.composedPath){const t=(e,i=[])=>{let n;return i.push(e),e.parentNode?n=e.parentNode:e.host?n=e.host:e.defaultView&&(n=e.defaultView),n?t(n,i):i};Event.prototype.composedPath=function(){return t(this.target)}}function D(t,e,i,n=0){const r=t[n];return e(r)?r:r!==i&&r.parentElement?D(t,e,i,n+1):void 0}function M(t,e){const i="function"==typeof e?e:t=>t.matches(e);return D(t.composedPath(),i,t.currentTarget)}const I={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},N={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},j=document.createRange();function R(t){return j.createContextualFragment(t)}function F(t){"none"!==t.style.display&&(t.style.display&&(t.dataset.styleDisplay=t.style.display),t.style.display="none")}function z(t){"none"===t.style.display&&(t.dataset.styleDisplay?(t.style.display=t.dataset.styleDisplay,delete t.dataset.styleDisplay):t.style.display="")}function H(t){t.firstChild&&(t.removeChild(t.firstChild),H(t))}const{language:B,format:Y,weekStart:W}=N;function q(t,e){return t.length<6&&e>=0&&e<7?i(t,e):t}function X(t){return(t+6)%7}function V(t,e,i,n){const r=A(t,e,i);return void 0!==r?r:n}function U(t,e,i=3){const n=parseInt(t,10);return n>=0&&n<=i?n:e}function G(e,n){const r=Object.assign({},e),o={},a=n.constructor.locales;let{format:s,language:l,locale:c,maxDate:h,maxView:d,minDate:f,pickLevel:p,startView:g,weekStart:m}=n.config||{};if(r.language){let t;if(r.language!==l&&(a[r.language]?t=r.language:(t=r.language.split("-")[0],void 0===a[t]&&(t=!1))),delete r.language,t){l=o.language=t;const e=c||a[B];c=Object.assign({format:Y,weekStart:W},a[B]),l!==B&&Object.assign(c,a[l]),o.locale=c,s===e.format&&(s=o.format=c.format),m===e.weekStart&&(m=o.weekStart=c.weekStart,o.weekEnd=X(c.weekStart))}}if(r.format){const t="function"==typeof r.format.toDisplay,e="function"==typeof r.format.toValue,i=v.test(r.format);(t&&e||i)&&(s=o.format=r.format),delete r.format}let y=f,b=h;if(void 0!==r.minDate&&(y=null===r.minDate?u(0,0,1):V(r.minDate,s,c,y),delete r.minDate),void 0!==r.maxDate&&(b=null===r.maxDate?void 0:V(r.maxDate,s,c,b),delete r.maxDate),b<y?(f=o.minDate=b,h=o.maxDate=y):(f!==y&&(f=o.minDate=y),h!==b&&(h=o.maxDate=b)),r.datesDisabled&&(o.datesDisabled=r.datesDisabled.reduce(((t,e)=>{const n=A(e,s,c);return void 0!==n?i(t,n):t}),[]),delete r.datesDisabled),void 0!==r.defaultViewDate){const t=A(r.defaultViewDate,s,c);void 0!==t&&(o.defaultViewDate=t),delete r.defaultViewDate}if(void 0!==r.weekStart){const t=Number(r.weekStart)%7;isNaN(t)||(m=o.weekStart=t,o.weekEnd=X(t)),delete r.weekStart}if(r.daysOfWeekDisabled&&(o.daysOfWeekDisabled=r.daysOfWeekDisabled.reduce(q,[]),delete r.daysOfWeekDisabled),r.daysOfWeekHighlighted&&(o.daysOfWeekHighlighted=r.daysOfWeekHighlighted.reduce(q,[]),delete r.daysOfWeekHighlighted),void 0!==r.maxNumberOfDates){const t=parseInt(r.maxNumberOfDates,10);t>=0&&(o.maxNumberOfDates=t,o.multidate=1!==t),delete r.maxNumberOfDates}r.dateDelimiter&&(o.dateDelimiter=String(r.dateDelimiter),delete r.dateDelimiter);let x=p;void 0!==r.pickLevel&&(x=U(r.pickLevel,2),delete r.pickLevel),x!==p&&(p=o.pickLevel=x);let _=d;void 0!==r.maxView&&(_=U(r.maxView,d),delete r.maxView),_=p>_?p:_,_!==d&&(d=o.maxView=_);let w=g;if(void 0!==r.startView&&(w=U(r.startView,w),delete r.startView),w<p?w=p:w>d&&(w=d),w!==g&&(o.startView=w),r.prevArrow){const t=R(r.prevArrow);t.childNodes.length>0&&(o.prevArrow=t.childNodes),delete r.prevArrow}if(r.nextArrow){const t=R(r.nextArrow);t.childNodes.length>0&&(o.nextArrow=t.childNodes),delete r.nextArrow}if(void 0!==r.disableTouchKeyboard&&(o.disableTouchKeyboard="ontouchstart"in document&&!!r.disableTouchKeyboard,delete r.disableTouchKeyboard),r.orientation){const t=r.orientation.toLowerCase().split(/\s+/g);o.orientation={x:t.find((t=>"left"===t||"right"===t))||"auto",y:t.find((t=>"top"===t||"bottom"===t))||"auto"},delete r.orientation}if(void 0!==r.todayBtnMode){switch(r.todayBtnMode){case 0:case 1:o.todayBtnMode=r.todayBtnMode}delete r.todayBtnMode}return Object.keys(r).forEach((e=>{void 0!==r[e]&&t(N,e)&&(o[e]=r[e])})),o}const Z=s('<div class="datepicker">\n <div class="datepicker-picker">\n <div class="datepicker-header">\n <div class="datepicker-title"></div>\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% prev-btn"></button>\n <button type="button" class="%buttonClass% view-switch"></button>\n <button type="button" class="%buttonClass% next-btn"></button>\n </div>\n </div>\n <div class="datepicker-main"></div>\n <div class="datepicker-footer">\n <div class="datepicker-controls">\n <button type="button" class="%buttonClass% today-btn"></button>\n <button type="button" class="%buttonClass% clear-btn"></button>\n </div>\n </div>\n </div>\n</div>'),K=s(`<div class="days">\n <div class="days-of-week">${a("span",7,{class:"dow"})}</div>\n <div class="datepicker-grid">${a("span",42)}</div>\n</div>`),$=s(`<div class="calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">${a("span",6,{class:"week"})}</div>\n</div>`);class Q{constructor(t,e){Object.assign(this,e,{picker:t,element:R('<div class="datepicker-view"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}init(t){void 0!==t.pickLevel&&(this.isMinView=this.id===t.pickLevel),this.setOptions(t),this.updateFocus(),this.updateSelection()}performBeforeHook(t,e,n){let r=this.beforeShow(new Date(n));switch(typeof r){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){if(!1===r.enabled&&(t.classList.add("disabled"),i(this.disabled,e)),r.classes){const n=r.classes.split(/\s+/);t.classList.add(...n),n.includes("disabled")&&i(this.disabled,e)}r.content&&function(t,e){H(t),e instanceof DocumentFragment?t.appendChild(e):"string"==typeof e?t.appendChild(R(e)):"function"==typeof e.forEach&&e.forEach((e=>{t.appendChild(e)}))}(t,r.content)}}}class J extends Q{constructor(t){super(t,{id:0,name:"days",cellClass:"day"})}init(t,e=!0){if(e){const t=R(K).firstChild;this.dow=t.firstChild,this.grid=t.lastChild,this.element.appendChild(t)}super.init(t)}setOptions(e){let i;if(t(e,"minDate")&&(this.minDate=e.minDate),t(e,"maxDate")&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,i=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),void 0!==e.todayHighlight&&(this.todayHighlight=e.todayHighlight),void 0!==e.weekStart&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,i=!0),e.locale){const t=this.locale=e.locale;this.dayNames=t.daysMin,this.switchLabelFormat=t.titleFormat,i=!0}if(void 0!==e.beforeShowDay&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),void 0!==e.calendarWeeks)if(e.calendarWeeks&&!this.calendarWeeks){const t=R($).firstChild;this.calendarWeeks={element:t,dow:t.firstChild,weeks:t.lastChild},this.element.insertBefore(t,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);void 0!==e.showDaysOfWeek&&(e.showDaysOfWeek?(z(this.dow),this.calendarWeeks&&z(this.calendarWeeks.dow)):(F(this.dow),this.calendarWeeks&&F(this.calendarWeeks.dow))),i&&Array.from(this.dow.children).forEach(((t,e)=>{const i=(this.weekStart+e)%7;t.textContent=this.dayNames[i],t.className=this.daysOfWeekDisabled.includes(i)?"dow disabled":"dow"}))}updateFocus(){const t=new Date(this.picker.viewDate),e=t.getFullYear(),i=t.getMonth(),n=u(e,i,1),r=g(n,this.weekStart,this.weekStart);this.first=n,this.last=u(e,i+1,0),this.start=r,this.focused=this.picker.viewDate}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t,e&&(this.range=e.dates)}render(){this.today=this.todayHighlight?c():void 0,this.disabled=[...this.datesDisabled];const t=C(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){const t=g(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach(((e,i)=>{e.textContent=function(t){const e=g(t,4,1),i=g(new Date(e).setMonth(0,4),4,1);return Math.round((e-i)/6048e5)+1}(h(t,7*i))}))}Array.from(this.grid.children).forEach(((t,e)=>{const n=t.classList,r=h(this.start,e),o=new Date(r),a=o.getDay();if(t.className=`datepicker-cell ${this.cellClass}`,t.dataset.date=r,t.textContent=o.getDate(),r<this.first?n.add("prev"):r>this.last&&n.add("next"),this.today===r&&n.add("today"),(r<this.minDate||r>this.maxDate||this.disabled.includes(r))&&n.add("disabled"),this.daysOfWeekDisabled.includes(a)&&(n.add("disabled"),i(this.disabled,r)),this.daysOfWeekHighlighted.includes(a)&&n.add("highlighted"),this.range){const[t,e]=this.range;r>t&&r<e&&n.add("range"),r===t&&n.add("range-start"),r===e&&n.add("range-end")}this.selected.includes(r)&&n.add("selected"),r===this.focused&&n.add("focused"),this.beforeShow&&this.performBeforeHook(t,r,r)}))}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((i=>{const n=Number(i.dataset.date),r=i.classList;n>t&&n<e&&r.add("range"),n===t&&r.add("range-start"),n===e&&r.add("range-end"),this.selected.includes(n)&&r.add("selected"),n===this.focused&&r.add("focused")}))}refreshFocus(){const t=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[t].classList.add("focused")}}function tt(t,e){if(!t||!t[0]||!t[1])return;const[[i,n],[r,o]]=t;return i>e||r<e?void 0:[i===e?n:-1,r===e?o:12]}class et extends Q{constructor(t){super(t,{id:1,name:"months",cellClass:"month"})}init(t,e=!0){e&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(R(a("span",12,{"data-month":t=>t})))),super.init(t)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),t(e,"minDate"))if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if(t(e,"maxDate"))if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=u(this.maxYear,this.maxMonth+1,0)}void 0!==e.beforeShowMonth&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const t=new Date(this.picker.viewDate);this.year=t.getFullYear(),this.focused=t.getMonth()}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce(((t,e)=>{const n=new Date(e),r=n.getFullYear(),o=n.getMonth();return void 0===t[r]?t[r]=[o]:i(t[r],o),t}),{}),e&&e.dates&&(this.range=e.dates.map((t=>{const e=new Date(t);return isNaN(e)?void 0:[e.getFullYear(),e.getMonth()]})))}render(){this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);const t=this.selected[this.year]||[],e=this.year<this.minYear||this.year>this.maxYear,i=this.year===this.minYear,n=this.year===this.maxYear,r=tt(this.range,this.year);Array.from(this.grid.children).forEach(((o,a)=>{const s=o.classList,l=u(this.year,a,1);if(o.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(o.dataset.date=l),o.textContent=this.monthNames[a],(e||i&&a<this.minMonth||n&&a>this.maxMonth)&&s.add("disabled"),r){const[t,e]=r;a>t&&a<e&&s.add("range"),a===t&&s.add("range-start"),a===e&&s.add("range-end")}t.includes(a)&&s.add("selected"),a===this.focused&&s.add("focused"),this.beforeShow&&this.performBeforeHook(o,a,l)}))}refresh(){const t=this.selected[this.year]||[],[e,i]=tt(this.range,this.year)||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach(((n,r)=>{const o=n.classList;r>e&&r<i&&o.add("range"),r===e&&o.add("range-start"),r===i&&o.add("range-end"),t.includes(r)&&o.add("selected"),r===this.focused&&o.add("focused")}))}refreshFocus(){this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[this.focused].classList.add("focused")}}class it extends Q{constructor(t,e){super(t,e)}init(t,e=!0){var i;e&&(this.navStep=10*this.step,this.beforeShowOption=`beforeShow${i=this.cellClass,[...i].reduce(((t,e,i)=>t+(i?e:e.toUpperCase())),"")}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(R(a("span",12)))),super.init(t)}setOptions(e){if(t(e,"minDate")&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=m(e.minDate,this.step),this.minDate=u(this.minYear,0,1))),t(e,"maxDate")&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=m(e.maxDate,this.step),this.maxDate=u(this.maxYear,11,31))),void 0!==e[this.beforeShowOption]){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const t=new Date(this.picker.viewDate),e=m(t,this.navStep),i=e+9*this.step;this.first=e,this.last=i,this.start=e-this.step,this.focused=m(t,this.step)}updateSelection(){const{dates:t,rangepicker:e}=this.picker.datepicker;this.selected=t.reduce(((t,e)=>i(t,m(e,this.step))),[]),e&&e.dates&&(this.range=e.dates.map((t=>{if(void 0!==t)return m(t,this.step)})))}render(){this.disabled=[],this.picker.setViewSwitchLabel(`${this.first}-${this.last}`),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach(((t,e)=>{const i=t.classList,n=this.start+e*this.step,r=u(n,0,1);if(t.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(t.dataset.date=r),t.textContent=t.dataset.year=n,0===e?i.add("prev"):11===e&&i.add("next"),(n<this.minYear||n>this.maxYear)&&i.add("disabled"),this.range){const[t,e]=this.range;n>t&&n<e&&i.add("range"),n===t&&i.add("range-start"),n===e&&i.add("range-end")}this.selected.includes(n)&&i.add("selected"),n===this.focused&&i.add("focused"),this.beforeShow&&this.performBeforeHook(t,n,r)}))}refresh(){const[t,e]=this.range||[];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach((t=>{t.classList.remove("range","range-start","range-end","selected","focused")})),Array.from(this.grid.children).forEach((i=>{const n=Number(i.textContent),r=i.classList;n>t&&n<e&&r.add("range"),n===t&&r.add("range-start"),n===e&&r.add("range-end"),this.selected.includes(n)&&r.add("selected"),n===this.focused&&r.add("focused")}))}refreshFocus(){const t=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach((t=>{t.classList.remove("focused")})),this.grid.children[t].classList.add("focused")}}function nt(t,e){const i={date:t.getDate(),viewDate:new Date(t.picker.viewDate),viewId:t.picker.currentView.id,datepicker:t};t.element.dispatchEvent(new CustomEvent(e,{detail:i}))}function rt(t,e){const{minDate:i,maxDate:n}=t.config,{currentView:r,viewDate:a}=t.picker;let s;switch(r.id){case 0:s=d(a,e);break;case 1:s=f(a,e);break;default:s=f(a,e*r.navStep)}s=o(s,i,n),t.picker.changeFocus(s).render()}function ot(t){const e=t.picker.currentView.id;e!==t.config.maxView&&t.picker.changeView(e+1).render()}function at(t){t.config.updateOnBlur?t.update({autohide:!0}):(t.refresh("input"),t.hide())}function st(t,e){const i=t.picker,n=new Date(i.viewDate),r=i.currentView.id,o=1===r?d(n,e-n.getMonth()):f(n,e-n.getFullYear());i.changeFocus(o).changeView(r-1).render()}function lt(t){const e=t.picker,i=c();if(1===t.config.todayBtnMode){if(t.config.autohide)return void t.setDate(i);t.setDate(i,{render:!1}),e.update()}e.viewDate!==i&&e.changeFocus(i),e.changeView(0).render()}function ct(t){t.setDate({clear:!0})}function ut(t){ot(t)}function ht(t){rt(t,-1)}function dt(t){rt(t,1)}function ft(t,e){const i=M(e,".datepicker-cell");if(!i||i.classList.contains("disabled"))return;const{id:n,isMinView:r}=t.picker.currentView;r?t.setDate(Number(i.dataset.date)):st(t,Number(1===n?i.dataset.month:i.dataset.year))}function pt(t){t.inline||t.config.disableTouchKeyboard||t.inputField.focus()}function gt(e,i){if(void 0!==i.title&&(i.title?(e.controls.title.textContent=i.title,z(e.controls.title)):(e.controls.title.textContent="",F(e.controls.title))),i.prevArrow){const t=e.controls.prevBtn;H(t),i.prevArrow.forEach((e=>{t.appendChild(e.cloneNode(!0))}))}if(i.nextArrow){const t=e.controls.nextBtn;H(t),i.nextArrow.forEach((e=>{t.appendChild(e.cloneNode(!0))}))}if(i.locale&&(e.controls.todayBtn.textContent=i.locale.today,e.controls.clearBtn.textContent=i.locale.clear),void 0!==i.todayBtn&&(i.todayBtn?z(e.controls.todayBtn):F(e.controls.todayBtn)),t(i,"minDate")||t(i,"maxDate")){const{minDate:t,maxDate:i}=e.datepicker.config;e.controls.todayBtn.disabled=!r(c(),t,i)}void 0!==i.clearBtn&&(i.clearBtn?z(e.controls.clearBtn):F(e.controls.clearBtn))}function mt(t){const{dates:i,config:n}=t;return o(i.length>0?e(i):n.defaultViewDate,n.minDate,n.maxDate)}function vt(t,e){const i=new Date(t.viewDate),n=new Date(e),{id:r,year:o,first:a,last:s}=t.currentView,l=n.getFullYear();switch(t.viewDate=e,l!==i.getFullYear()&&nt(t.datepicker,"changeYear"),n.getMonth()!==i.getMonth()&&nt(t.datepicker,"changeMonth"),r){case 0:return e<a||e>s;case 1:return l!==o;default:return l<a||l>s}}function yt(t){return window.getComputedStyle(t).direction}class bt{constructor(t){this.datepicker=t;const e=Z.replace(/%buttonClass%/g,t.config.buttonClass),i=this.element=R(e).firstChild,[n,r,o]=i.firstChild.children,a=n.firstElementChild,[s,l,c]=n.lastElementChild.children,[u,h]=o.firstChild.children,d={title:a,prevBtn:s,viewSwitch:l,nextBtn:c,todayBtn:u,clearBtn:h};this.main=r,this.controls=d;const f=t.inline?"inline":"dropdown";i.classList.add(`datepicker-${f}`),gt(this,t.config),this.viewDate=mt(t),P(t,[[i,"click",pt.bind(null,t),{capture:!0}],[r,"click",ft.bind(null,t)],[d.viewSwitch,"click",ut.bind(null,t)],[d.prevBtn,"click",ht.bind(null,t)],[d.nextBtn,"click",dt.bind(null,t)],[d.todayBtn,"click",lt.bind(null,t)],[d.clearBtn,"click",ct.bind(null,t)]]),this.views=[new J(this),new et(this),new it(this,{id:2,name:"years",cellClass:"year",step:1}),new it(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.config.container.appendChild(this.element)}setOptions(t){gt(this,t),this.views.forEach((e=>{e.init(t,!1)})),this.currentView.render()}detach(){this.datepicker.config.container.removeChild(this.element)}show(){if(this.active)return;this.element.classList.add("active"),this.active=!0;const t=this.datepicker;if(!t.inline){const e=yt(t.inputField);e!==yt(t.config.container)?this.element.dir=e:this.element.dir&&this.element.removeAttribute("dir"),this.place(),t.config.disableTouchKeyboard&&t.inputField.blur()}nt(t,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,nt(this.datepicker,"hide"))}place(){const{classList:t,style:e}=this.element,{config:i,inputField:n}=this.datepicker,r=i.container,{width:o,height:a}=this.element.getBoundingClientRect(),{left:s,top:l,width:c}=r.getBoundingClientRect(),{left:u,top:h,width:d,height:f}=n.getBoundingClientRect();let p,g,m,{x:v,y:y}=i.orientation;r===document.body?(p=window.scrollY,g=u+window.scrollX,m=h+p):(p=r.scrollTop,g=u-s,m=h-l+p),"auto"===v&&(g<0?(v="left",g=10):v=g+o>c||"rtl"===yt(n)?"right":"left"),"right"===v&&(g-=o-d),"auto"===y&&(y=m-a<p?"bottom":"top"),"top"===y?m-=a:m+=f,t.remove("datepicker-orient-top","datepicker-orient-bottom","datepicker-orient-right","datepicker-orient-left"),t.add(`datepicker-orient-${y}`,`datepicker-orient-${v}`),e.top=m?`${m}px`:m,e.left=g?`${g}px`:g}setViewSwitchLabel(t){this.controls.viewSwitch.textContent=t}setPrevBtnDisabled(t){this.controls.prevBtn.disabled=t}setNextBtnDisabled(t){this.controls.nextBtn.disabled=t}changeView(t){const e=this.currentView,i=this.views[t];return i.id!==e.id&&(this.currentView=i,this._renderMethod="render",nt(this.datepicker,"changeView"),this.main.replaceChild(i.element,e.element)),this}changeFocus(t){return this._renderMethod=vt(this,t)?"render":"refreshFocus",this.views.forEach((t=>{t.updateFocus()})),this}update(){const t=mt(this.datepicker);return this._renderMethod=vt(this,t)?"render":"refresh",this.views.forEach((t=>{t.updateFocus(),t.updateSelection()})),this}render(t=!0){const e=t&&this._renderMethod||"render";delete this._renderMethod,this.currentView[e]()}}function xt(t,e,i,n,o,a){if(r(t,o,a)){if(n(t)){return xt(e(t,i),e,i,n,o,a)}return t}}function _t(t,e,i,n){const r=t.picker,o=r.currentView,a=o.step||1;let s,l,c=r.viewDate;switch(o.id){case 0:c=n?h(c,7*i):e.ctrlKey||e.metaKey?f(c,i):h(c,i),s=h,l=t=>o.disabled.includes(t);break;case 1:c=d(c,n?4*i:i),s=d,l=t=>{const e=new Date(t),{year:i,disabled:n}=o;return e.getFullYear()===i&&n.includes(e.getMonth())};break;default:c=f(c,i*(n?4:1)*a),s=f,l=t=>o.disabled.includes(m(t,a))}c=xt(c,s,i<0?-a:a,l,o.minDate,o.maxDate),void 0!==c&&r.changeFocus(c).render()}function wt(t,e){if("Tab"===e.key)return void at(t);const i=t.picker,{id:n,isMinView:r}=i.currentView;if(i.active)if(t.editMode)switch(e.key){case"Escape":i.hide();break;case"Enter":t.exitEditMode({update:!0,autohide:t.config.autohide});break;default:return}else switch(e.key){case"Escape":i.hide();break;case"ArrowLeft":if(e.ctrlKey||e.metaKey)rt(t,-1);else{if(e.shiftKey)return void t.enterEditMode();_t(t,e,-1,!1)}break;case"ArrowRight":if(e.ctrlKey||e.metaKey)rt(t,1);else{if(e.shiftKey)return void t.enterEditMode();_t(t,e,1,!1)}break;case"ArrowUp":if(e.ctrlKey||e.metaKey)ot(t);else{if(e.shiftKey)return void t.enterEditMode();_t(t,e,-1,!0)}break;case"ArrowDown":if(e.shiftKey&&!e.ctrlKey&&!e.metaKey)return void t.enterEditMode();_t(t,e,1,!0);break;case"Enter":r?t.setDate(i.viewDate):i.changeView(n-1).render();break;case"Backspace":case"Delete":return void t.enterEditMode();default:return void(1!==e.key.length||e.ctrlKey||e.metaKey||t.enterEditMode())}else switch(e.key){case"ArrowDown":case"Escape":i.show();break;case"Enter":t.update();break;default:return}e.preventDefault(),e.stopPropagation()}function St(t){t.config.showOnFocus&&!t._showing&&t.show()}function kt(t,e){const i=e.target;(t.picker.active||t.config.showOnClick)&&(i._active=i===document.activeElement,i._clicking=setTimeout((()=>{delete i._active,delete i._clicking}),2e3))}function At(t,e){const i=e.target;i._clicking&&(clearTimeout(i._clicking),delete i._clicking,i._active&&t.enterEditMode(),delete i._active,t.config.showOnClick&&t.show())}function Ct(t,e){e.clipboardData.types.includes("text/plain")&&t.enterEditMode()}function Tt(t,e){const i=t.element;if(i!==document.activeElement)return;const n=t.picker.element;M(e,(t=>t===i||t===n))||at(t)}function Et(t,e){return t.map((t=>C(t,e.format,e.locale))).join(e.dateDelimiter)}function Ot(t,e,i=!1){const{config:n,dates:o,rangepicker:a}=t;if(0===e.length)return i?[]:void 0;const s=a&&t===a.datepickers[1];let l=e.reduce(((t,e)=>{let i=A(e,n.format,n.locale);if(void 0===i)return t;if(n.pickLevel>0){const t=new Date(i);i=1===n.pickLevel?s?t.setMonth(t.getMonth()+1,0):t.setDate(1):s?t.setFullYear(t.getFullYear()+1,0,0):t.setMonth(0,1)}return!r(i,n.minDate,n.maxDate)||t.includes(i)||n.datesDisabled.includes(i)||n.daysOfWeekDisabled.includes(new Date(i).getDay())||t.push(i),t}),[]);return 0!==l.length?(n.multidate&&!i&&(l=l.reduce(((t,e)=>(o.includes(e)||t.push(e),t)),o.filter((t=>!l.includes(t))))),n.maxNumberOfDates&&l.length>n.maxNumberOfDates?l.slice(-1*n.maxNumberOfDates):l):void 0}function Pt(t,e=3,i=!0){const{config:n,picker:r,inputField:o}=t;if(2&e){const t=r.active?n.pickLevel:n.startView;r.update().changeView(t).render(i)}1&e&&o&&(o.value=Et(t.dates,n))}function Lt(t,e,i){let{clear:n,render:r,autohide:o}=i;void 0===r&&(r=!0),r?void 0===o&&(o=t.config.autohide):o=!1;const a=Ot(t,e,n);a&&(a.toString()!==t.dates.toString()?(t.dates=a,Pt(t,r?3:1),nt(t,"changeDate")):Pt(t,1),o&&t.hide())}class Dt{constructor(t,e={},i){t.datepicker=this,this.element=t;const r=this.config=Object.assign({buttonClass:e.buttonClass&&String(e.buttonClass)||"button",container:document.body,defaultViewDate:c(),maxDate:void 0,minDate:void 0},G(N,this));this._options=e,Object.assign(r,G(e,this));const o=this.inline="INPUT"!==t.tagName;let a,s;if(o)r.container=t,s=n(t.dataset.date,r.dateDelimiter),delete t.dataset.date;else{const i=e.container?document.querySelector(e.container):null;i&&(r.container=i),a=this.inputField=t,a.classList.add("datepicker-input"),s=n(a.value,r.dateDelimiter)}if(i){const t=i.inputs.indexOf(a),e=i.datepickers;if(t<0||t>1||!Array.isArray(e))throw Error("Invalid rangepicker object.");e[t]=this,Object.defineProperty(this,"rangepicker",{get:()=>i})}this.dates=[];const l=Ot(this,s);l&&l.length>0&&(this.dates=l),a&&(a.value=Et(this.dates,r));const u=this.picker=new bt(this);if(o)this.show();else{const t=Tt.bind(null,this);P(this,[[a,"keydown",wt.bind(null,this)],[a,"focus",St.bind(null,this)],[a,"mousedown",kt.bind(null,this)],[a,"click",At.bind(null,this)],[a,"paste",Ct.bind(null,this)],[document,"mousedown",t],[document,"touchstart",t],[window,"resize",u.place.bind(u)]])}}static formatDate(t,e,i){return C(t,e,i&&I[i]||I.en)}static parseDate(t,e,i){return A(t,e,i&&I[i]||I.en)}static get locales(){return I}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(t){const e=this.picker,i=G(t,this);Object.assign(this._options,t),Object.assign(this.config,i),e.setOptions(i),Pt(this,3)}show(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}destroy(){return this.hide(),L(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}getDate(t){const e=t?e=>C(e,t,this.config.locale):t=>new Date(t);return this.config.multidate?this.dates.map(e):this.dates.length>0?e(this.dates[0]):void 0}setDate(...t){const i=[...t],n={},r=e(t);"object"!=typeof r||Array.isArray(r)||r instanceof Date||!r||Object.assign(n,i.pop());Lt(this,Array.isArray(i[0])?i[0]:i,n)}update(t){if(this.inline)return;const e={clear:!0,autohide:!(!t||!t.autohide)};Lt(this,n(this.inputField.value,this.config.dateDelimiter),e)}refresh(t,e=!1){let i;t&&"string"!=typeof t&&(e=t,t=void 0),i="picker"===t?2:"input"===t?1:3,Pt(this,i,!e)}enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit"))}exitEditMode(t){if(this.inline||!this.editMode)return;const e=Object.assign({update:!1},t);delete this.editMode,this.inputField.classList.remove("in-edit"),e.update&&this.update(e)}}function Mt(t){const e=Object.assign({},t);return delete e.inputs,delete e.allowOneSidedRange,delete e.maxNumberOfDates,e}function It(t,e,i,n){P(t,[[i,"changeDate",e]]),new Dt(i,n,t)}function Nt(t,e){if(t._updating)return;t._updating=!0;const i=e.target;if(void 0===i.datepicker)return;const n=t.datepickers,r={render:!1},o=t.inputs.indexOf(i),a=0===o?1:0,s=n[o].dates[0],l=n[a].dates[0];void 0!==s&&void 0!==l?0===o&&s>l?(n[0].setDate(l,r),n[1].setDate(s,r)):1===o&&s<l&&(n[0].setDate(s,r),n[1].setDate(l,r)):t.allowOneSidedRange||void 0===s&&void 0===l||(r.clear=!0,n[a].setDate(n[o].dates,r)),n[0].picker.update().render(),n[1].picker.update().render(),delete t._updating}window.Datepicker=Dt,window.DateRangePicker=class{constructor(t,e={}){const i=Array.isArray(e.inputs)?e.inputs:Array.from(t.querySelectorAll("input"));if(i.length<2)return;t.rangepicker=this,this.element=t,this.inputs=i.slice(0,2),this.allowOneSidedRange=!!e.allowOneSidedRange;const n=Nt.bind(null,this),r=Mt(e),o=[];Object.defineProperty(this,"datepickers",{get:()=>o}),It(this,n,this.inputs[0],r),It(this,n,this.inputs[1],r),Object.freeze(o),o[0].dates.length>0?Nt(this,{target:this.inputs[0]}):o[1].dates.length>0&&Nt(this,{target:this.inputs[1]})}get dates(){return 2===this.datepickers.length?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}setOptions(t){this.allowOneSidedRange=!!t.allowOneSidedRange;const e=Mt(t);this.datepickers[0].setOptions(e),this.datepickers[1].setOptions(e)}destroy(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),L(this),delete this.element.rangepicker}getDates(t){const e=t?e=>C(e,t,this.datepickers[0].config.locale):t=>new Date(t);return this.dates.map((t=>void 0===t?t:e(t)))}setDates(t,e){const[i,n]=this.datepickers,r=this.dates;this._updating=!0,i.setDate(t),n.setDate(e),delete this._updating,n.dates[0]!==r[1]?Nt(this,{target:this.inputs[1]}):i.dates[0]!==r[0]&&Nt(this,{target:this.inputs[0]})}}}(),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),u=i(52),h=i(11),d=i(29),f=i(30),p=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:u.default,Attributor:{Attribute:h.default,Class:d.default,Style:f.default,Store:p.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=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)i=u.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?i=u.block:t&a.LEVEL&a.INLINE&&(i=u.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={},u={};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(u[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,u,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<f;++d)if(null!=(e=arguments[d]))for(i in e)n=c(h,i),h!==(r=c(e,i))&&(p&&r&&(s(r)||(o=a(r)))?(o?(o=!1,u=n&&a(n)?n:[]):u=n&&s(n)?n:{},l(h,{name:i,newValue:t(p,u,r)})):void 0!==r&&l(h,{name:i,newValue:r}));return 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)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,u.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},u=n(i(2)),h=n(i(4)),d=n(i(0)),f=n(i(14)),p=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 h.default).insert(this.value(),(0,u.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(v.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 v=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 h.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 f.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);v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[p.default,d.default.Embed,g.default],e.bubbleFormats=s,e.BlockEmbed=m,e.default=v},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 u=Math.min(e.peekLength(),i.peekLength()),h=e.next(u),d=i.next(u);if("number"==typeof d.retain){var f={};"number"==typeof h.retain?f.retain=u:f.insert=h.insert;var p=a.attributes.compose(h.attributes,d.attributes,"number"==typeof h.retain);if(p&&(f.attributes=p),c.push(f),!i.hasNext()&&r(c.ops[c.ops.length-1],f)){var g=new l(e.rest());return c.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof h.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),u=a.iterator(this.ops),h=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(h.peekLength(),e),o.push(h.next(i));break;case n.DELETE:i=Math.min(e,u.peekLength()),u.next(i),o.delete(i);break;case n.EQUAL:i=Math.min(u.peekLength(),h.peekLength(),e);var s=u.next(i),l=h.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)),u=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);u.allowedChildren=[u,c.default.Embed,l.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},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!==k.DEFAULTS.theme){if(e.theme=k.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=w.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=k.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,{},k.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 f.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,u=[g.default.events.TEXT_CHANGE,a,o,e];if((s=this.emitter).emit.apply(s,[g.default.events.EDITOR_CHANGE].concat(u)),e!==g.default.sources.SILENT)(l=this.emitter).emit.apply(l,u)}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":u(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 f.default){var a=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==g.default.sources.USER)})),s=h(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=h(l,2);r=c[0],o=c[1]}return new y.Range(r,o-r)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var u="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},h=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 f=n(i(4)),p=n(i(57)),g=n(i(9)),m=n(i(7)),v=n(i(0)),y=i(22),b=n(y),x=n(i(2)),_=n(i(10)),w=n(i(32)),S=(0,_.default)("quill"),k=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=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.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"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||v.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?v.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=h(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 f.default;if(null==n)return o;if(v.default.query(t,v.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),u=h(c,4);return t=u[0],e=u[1],o=u[2],r=u[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),u=h(c,4);return t=u[0],e=u[1],o=u[2],r=u[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=h(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=h(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),u=h(c,4);return t=u[0],o=u[2],r=u[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=h(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 f.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=h(r,4);e=o[0],i=o[1],n=o[3],this.selection.setRange(new y.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 f.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 f.default(t),e.editor.applyDelta(t,i)}),i,!0)}}]),t}();k.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},k.events=g.default.events,k.sources=g.default.sources,k.version="1.3.7",k.imports={delta:f.default,parchment:v.default,"core/module":m.default,"core/theme":w.default},e.expandConfig=a,e.overload=l,e.default=k},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,u;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 h=a(t),d=a(e)}catch(t){return!1}if(h.length!=d.length)return!1;for(h.sort(),d.sort(),c=h.length-1;c>=0;c--)if(h[c]!=d[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!l(t[u],e[u],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},u=n(i(4)),h=n(i(0)),d=n(i(3)),f=n(i(5)),p=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}(f.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 u.default)}},{key:"format",value:function(t,i){if(t!==this.statics.blotName||!i){var n=this.descendant(p.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!=h.default.query(n,h.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(p.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(h.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=h.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof h.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,u=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=u},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,u){"object"==typeof s&&(l=s.depth,c=s.prototype,u=s.includeNonEnumerable,s=s.circular);var h=[],d=[],f="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,p){if(null===l)return null;if(0===p)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,p-1))}),(function(t){e(i(t,p-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(f&&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 v=h.indexOf(l);if(-1!=v)return d[v];h.push(l),d.push(g)}for(var y in t(l,r)&&l.forEach((function(t,e){var n=i(e,p-1),r=i(t,p-1);g.set(n,r)})),t(l,o)&&l.forEach((function(t){var e=i(t,p-1);g.add(e)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(g[y]=i(l[y],p-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(l);for(y=0;y<x.length;y++){var _=x[y];(!(S=Object.getOwnPropertyDescriptor(l,_))||S.enumerable||u)&&(g[_]=i(l[_],p-1),S.enumerable||Object.defineProperty(g,_,{enumerable:!1}))}}if(u){var w=Object.getOwnPropertyNames(l);for(y=0;y<w.length;y++){var S,k=w[y];(S=Object.getOwnPropertyDescriptor(l,k))&&S.enumerable||(g[k]=i(l[k],p-1),Object.defineProperty(g,k,{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)),u=n(i(21)),h=n(i(12)),d=n(i(9)),f=(0,n(i(10)).default)("quill:selection"),p=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 p(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),u=s(c,2);n=u[0],l=u[1];var h=document.createRange();if(e>0){h.setStart(n,l);var d=this.scroll.leaf(t+e),f=s(d,2);if(a=f[0],l=f[1],null==a)return null;var p=a.position(l,!0),g=s(p,2);return n=g[0],l=g[1],h.setEnd(n,l),h.getBoundingClientRect()}var m="left",v=void 0;return n instanceof Text?(l<n.data.length?(h.setStart(n,l),h.setEnd(n,l+1)):(h.setStart(n,l-1),h.setEnd(n,l),m="right"),v=h.getBoundingClientRect()):(v=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.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 f.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 p(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],u=l[1],h=c.position(u,0!==i),d=s(h,2);o=d[0],u=d[1],n.push(o,u)})),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(f.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),f.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,h.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,u.default)(this.lastRange),(0,u.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=p,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}),u=new l("color","color",{scope:s.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=c,e.ColorStyle=u},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!(p(r,1)[0]instanceof _.default.Embed&&(t===T.keys.LEFT?e?this.quill.setSelection(i.index-1,i.length+1,w.default.sources.USER):this.quill.setSelection(i.index-1,w.default.sources.USER):e?this.quill.setSelection(i.index,i.length+1,w.default.sources.USER):this.quill.setSelection(i.index+i.length+1,w.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=p(i,1)[0],r={};if(0===e.offset){var o=this.quill.getLine(t.index-1),a=p(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,w.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index-c,c,r,w.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=p(o,1)[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),l=p(s,1)[0];if(l){var c=a.formats(),u=this.quill.getFormat(t.index,1);n=x.default.attributes.diff(c,u)||{},r=l.length()}}this.quill.deleteText(t.index,i,w.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index+r-1,i,n,w.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,w.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index,1,i,w.default.sources.USER),this.quill.setSelection(t.index,w.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 _.default.query(i,_.default.Scope.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t}),{});this.quill.insertText(t.index,"\n",n,w.default.sources.USER),this.quill.setSelection(t.index+1,w.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],w.default.sources.USER))}))}function u(t){return{key:T.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var i=_.default.query("code-block"),n=e.index,r=e.length,o=this.quill.scroll.descendant(i,n),a=p(o,2),s=a[0],l=a[1];if(null!=s){var c=this.quill.getIndex(s),u=s.newlineIndex(l,!0)+1,h=s.newlineIndex(c+l+r),d=s.domNode.textContent.slice(u,h).split("\n");l=0,d.forEach((function(e,o){t?(s.insertAt(u+l,i.TAB),l+=i.TAB.length,0===o?n+=i.TAB.length:r+=i.TAB.length):e.startsWith(i.TAB)&&(s.deleteAt(u+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(w.default.sources.USER),this.quill.setSelection(n,r,w.default.sources.SILENT)}}}}function h(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,i){this.quill.format(t,!i.format[t],w.default.sources.USER)}}}function d(t){if("string"==typeof t||"number"==typeof t)return d({key:t});if("object"===(void 0===t?"undefined":f(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 f="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},p=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)),v=n(i(12)),y=n(i(2)),b=n(i(4)),x=n(i(20)),_=n(i(0)),w=n(i(6)),S=n(i(10)),k=n(i(7)),A=(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 A.warn("Attempted to add invalid keyboard binding",n);"function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),n=(0,y.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=p(a,2),l=s[0],c=s[1],u=t.quill.getLeaf(o.index),h=p(u,2),d=h[0],g=h[1],m=0===o.length?[d,g]:t.quill.getLeaf(o.index+o.length),y=p(m,2),b=y[0],x=y[1],w=d instanceof _.default.Text?d.value().slice(0,g):"",S=b instanceof _.default.Text?b.value().slice(x):"",k={collapsed:0===o.length,empty:0===o.length&&l.length()<=1,format:t.quill.getFormat(o),offset:c,prefix:w,suffix:S};r.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===f(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,v.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix)||null!=e.suffix&&!e.suffix.test(k.suffix)||!0===e.handler.call(t,o,k))}))&&i.preventDefault()}}}}))}}]),e}(k.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:h("bold"),italic:h("italic"),underline:h("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",w.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",w.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",w.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":u(!0),"outdent code-block":u(!1),"remove tab":{key:T.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,w.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,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,w.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,w.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,w.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=p(e,2),n=i[0],r=i[1],o=(0,y.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,w.default.sources.USER),this.quill.setSelection(t.index+1,w.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=p(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,w.default.sources.USER),this.quill.setSelection(t.index+1,w.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=p(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," ",w.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,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,w.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=p(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,w.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 u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof l.default?(n=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,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 h=[o,a].map((function(t){return Math.max(0,Math.min(n.data.length,t-1))})),d=r(h,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),u=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=u,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},u=n(i(2)),h=n(i(4)),d=n(i(9)),f=n(i(25)),p=n(i(32)),g=n(i(41)),m=n(i(42)),v=n(i(16)),y=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"],_=[!1,"serif","monospace"],w=["1","2","3",!1],S=["small",!1,"large","huge"],k=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,_):t.classList.contains("ql-header")?s(t,w):t.classList.contains("ql-size")&&s(t,S)),new v.default(t)}));this.quill.on(d.default.events.EDITOR_CHANGE,(function(){i.pickers.forEach((function(t){t.update()}))}))}}]),e}(p.default);k.DEFAULTS=(0,u.default)(!0,{},p.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 h.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 A=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){f.default.match(e,"enter")?(t.save(),e.preventDefault()):f.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}(y.default);e.BaseTooltip=A,e.default=k},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)),u=i(65),h=n(u),d=i(35),f=i(24),p=i(37),g=i(38),m=n(i(39)),v=n(i(66)),y=n(i(15)),b=n(i(67)),x=n(i(68)),_=n(i(69)),w=n(i(70)),S=n(i(71)),k=i(13),A=n(k),C=n(i(72)),T=n(i(73)),E=n(i(74)),O=n(i(26)),P=n(i(16)),L=n(i(41)),D=n(i(42)),M=n(i(43)),I=n(i(107)),N=n(i(108));r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.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":f.ColorStyle,"formats/font":p.FontClass,"formats/size":g.SizeClass,"formats/blockquote":l.default,"formats/code-block":A.default,"formats/header":c.default,"formats/list":h.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":v.default,"formats/link":y.default,"formats/script":b.default,"formats/strike":x.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":S.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":T.default,"modules/toolbar":E.default,"themes/bubble":I.default,"themes/snow":N.default,"ui/icons":O.default,"ui/picker":P.default,"ui/icon-picker":D.default,"ui/color-picker":L.default,"ui/tooltip":M.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)),u=n(i(31)),h=n(i(33)),d=n(i(5)),f=n(i(59)),p=n(i(8)),g=n(i(60)),m=n(i(61)),v=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":u.default,"blots/embed":h.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":g.default,"modules/history":m.default,"modules/keyboard":v.default}),r.default.register(s.default,l.default,u.default,d.default,f.default,p.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,u=0;c.length>0;u+=1){if(u>=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?[[p,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),h=n(t=t.substring(0,t.length-r),e=e.substring(0,e.length-r));return o&&h.unshift([p,o]),l&&h.push([p,l]),c(h),null!=i&&(h=u(h,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]===p&&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]===f&&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}(h)}function n(t,e){var n;if(!t)return[[f,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=[[f,o.substring(0,s)],[p,a],[f,o.substring(s+a.length)]],t.length>e.length&&(n[0][0]=n[2][0]=d),n;if(1==a.length)return[[d,t],[f,e]];var c=l(t,e);if(c){var u=c[0],h=c[1],g=c[2],m=c[3],v=c[4],y=i(u,g),b=i(h,m);return y.concat([[p,v]],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),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[a+1]=0,c[a+1]=0;for(var h=i-n,p=h%2!=0,g=0,m=0,v=0,y=0,b=0;b<r;b++){for(var x=-b+g;x<=b-m;x+=2){for(var _=a+x,w=(T=x==-b||x!=b&&l[_-1]<l[_+1]?l[_+1]:l[_-1]+1)-x;T<i&&w<n&&t.charAt(T)==e.charAt(w);)T++,w++;if(l[_]=T,T>i)m+=2;else if(w>n)g+=2;else if(p){if((A=a+h-x)>=0&&A<s&&-1!=c[A])if(T>=(k=i-c[A]))return o(t,e,T,w)}}for(var S=-b+v;S<=b-y;S+=2){for(var k,A=a+S,C=(k=S==-b||S!=b&&c[A-1]<c[A+1]?c[A+1]:c[A-1]+1)-S;k<i&&C<n&&t.charAt(i-k-1)==e.charAt(n-C-1);)k++,C++;if(c[A]=k,k>i)y+=2;else if(C>n)v+=2;else if(!p){if((_=a+h-S)>=0&&_<s&&-1!=l[_]){var T;w=a+(T=l[_])-_;if(T>=(k=i-k))return o(t,e,T,w)}}}}return[[d,t],[f,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),u=i(s,l);return c.concat(u)}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)),u=-1,h="";-1!=(u=e.indexOf(c,u+1));){var d=a(t.substring(i),e.substring(u)),f=s(t.substring(0,i),e.substring(0,u));h.length<f+d&&(h=e.substring(u-f,u)+e.substring(u,u+d),n=t.substring(0,i-f),r=t.substring(i+d),o=e.substring(0,u-f),l=e.substring(u+d))}return 2*h.length>=t.length?[n,r,o,l,h]: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,u,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(o=f?d&&d[4].length>f[4].length?d:f:d,t.length>e.length?(l=o[0],c=o[1],u=o[2],h=o[3]):(u=o[0],h=o[1],l=o[2],c=o[3]),[l,c,u,h,o[4]]):null}function c(t){t.push([p,""]);for(var e,i=0,n=0,r=0,o="",l="";i<t.length;)switch(t[i][0]){case f:r++,l+=t[i][1],i++;break;case d:n++,o+=t[i][1],i++;break;case p:n+r>1?(0!==n&&0!==r&&(0!==(e=a(l,o))&&(i-n-r>0&&t[i-n-r-1][0]==p?t[i-n-r-1][1]+=l.substring(0,e):(t.splice(0,0,[p,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,[f,l]):0===r?t.splice(i-n,n+r,[d,o]):t.splice(i-n-r,n+r,[d,o],[f,l]),i=i-n-r+(n?1:0)+(r?1:0)+1):0!==i&&t[i-1][0]==p?(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 u=!1;for(i=1;i<t.length-1;)t[i-1][0]==p&&t[i+1][0]==p&&(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),u=!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),u=!0)),i++;u&&c(t)}function u(t,e){var i=function(t,e){if(0===e)return[p,t];for(var i=0,n=0;n<t.length;n++){var r=t[n];if(r[0]===d||r[0]===p){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]!==p)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return n.splice(r,2,a,o),h(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]),h(n,r,3)}return t}function h(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,f=1,p=0,g=i;g.INSERT=f,g.DELETE=d,g.EQUAL=p,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)),u=n(i(0)),h=n(i(13)),d=n(i(31)),f=i(3),p=n(f),g=n(i(14)),m=n(i(21)),v=n(i(12)),y=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 h=r.insert;h.endsWith("\n")&&i&&(i=!1,h=h.slice(0,-1)),t>=n&&!h.endsWith("\n")&&(i=!0),e.scroll.insertAt(t,h);var d=e.scroll.line(t),g=a(d,2),m=g[0],v=g[1],b=(0,y.default)({},(0,f.bubbleFormats)(m));if(m instanceof p.default){var x=m.descendant(u.default.Leaf,v),_=a(x,1)[0];b=(0,y.default)(b,(0,f.bubbleFormats)(_))}l=c.default.attributes.diff(b,l)||{}}else if("object"===o(r.insert)){var w=Object.keys(r.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,r.insert[w])}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 h.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 p.default?i.push(e):e instanceof u.default.Leaf&&n.push(e)})):(i=this.scroll.lines(t,e),n=this.scroll.descendants(u.default.Leaf,t,e));var o=[i,n].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var i=t.shift();if(null==i)return e;e=r((0,f.bubbleFormats)(i),e)}return e}));return y.default.apply(y.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===p.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,u=new l.default;null!=o&&(c=o instanceof h.default?o.newlineIndex(s)-s+1:o.length()-s,u=o.delta().slice(s,s+c-1).insert("\n"));var d=this.getContents(t,e+c).diff((new l.default).insert(i).concat(u)),f=(new l.default).retain(t).concat(d);return this.applyDelta(f)}},{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)&&u.default.find(e[0].target)){var r=u.default.find(e[0].target),o=(0,f.bubbleFormats)(r),a=r.offset(this.scroll),s=e[0].oldValue.replace(d.default.CONTENTS,""),c=(new l.default).insert(s),h=(new l.default).insert(r.value());t=(new l.default).retain(a).concat(c.diff(h,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,v.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,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,i),!0;case 4:return u.fn.call(u.context,e,i,n),!0;case 5:return u.fn.call(u.context,e,i,n,r),!0;case 6:return u.fn.call(u.context,e,i,n,r,o),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,i);break;case 4:u[c].fn.call(u[c].context,e,i,n);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[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=[],u=s.length;l<u;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 h.default||t instanceof u.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)),u=i(3),h=n(u),d=n(i(14)),f=n(i(13)),p=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),h=o(c,1)[0];if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,i),null!=h&&a!==h&&l>0){if(a instanceof u.BlockEmbed||h instanceof u.BlockEmbed)return void this.optimize();if(a instanceof f.default){var p=a.newlineIndex(a.length(),!0);if(p>-1&&(a=a.split(p+1))===h)return void this.optimize()}else if(h instanceof f.default){var g=h.newlineIndex(0);g>-1&&h.split(g+1)}var m=h.children.head instanceof d.default?null:h.children.head;a.moveChildren(h,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=[h.default,u.BlockEmbed,p.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[M]||[]).reduce((function(t,e){return e(r,t)}),o)),n.concat(o)}),new x.default):new x.default}function u(t,e,i){return o(i,t,!0)}function h(t,e){var i=_.default.Attributor.Attribute.keys(t),n=_.default.Attributor.Class.keys(t),r=_.default.Attributor.Style.keys(t),a={};return i.concat(n).concat(r).forEach((function(e){var i=_.default.query(e,_.default.Scope.ATTRIBUTE);null!=i&&(a[i.attrName]=i.value(t),a[i.attrName])||(null==(i=N[e])||i.attrName!==e&&i.keyName!==e||(a[i.attrName]=i.value(t)||void 0),null==(i=j[e])||i.attrName!==e&&i.keyName!==e||(i=j[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=_.default.query(t);if(null==i)return e;if(i.prototype instanceof _.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 f(t,e){return s(e,"\n")||(l(t)||e.length()>0&&t.nextSibling&&l(t.nextSibling))&&e.insert("\n"),e}function p(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},v=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")},y=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)),_=n(i(0)),w=n(i(6)),S=n(i(10)),k=n(i(7)),A=i(34),C=i(35),T=n(i(13)),E=i(24),O=i(36),P=i(37),L=i(38),D=(0,S.default)("quill:clipboard"),M="__ql-matcher",I=[[Node.TEXT_NODE,g],[Node.TEXT_NODE,f],["br",function(t,e){return s(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,f],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,h],[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=_.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"===(_.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",u.bind(u,"bold")],["i",u.bind(u,"italic")],["style",function(){return new x.default}]],N=[A.AlignAttribute,O.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),j=[A.AlignStyle,C.BackgroundStyle,E.ColorStyle,O.DirectionStyle,P.FontStyle,L.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),R=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=[],I.concat(n.options.matchers).forEach((function(t){var e=v(t,2),r=e[0],o=e[1];(i.matchVisual||o!==p)&&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),y(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=v(n,2),a=o[0],l=o[1],u=c(this.container,a,l);return s(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new x.default).retain(u.length()-1).delete(1))),D.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,w.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(),w.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(w.default.sources.SILENT),setTimeout((function(){n=n.concat(e.convert()).delete(i.length),e.quill.updateContents(n,w.default.sources.USER),e.quill.setSelection(n.length()-i.length,w.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=v(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[M]=t[M]||[],t[M].push(a)}))}})),[e,i]}}]),e}(k.default);R.DEFAULTS={matchers:[],matchVisual:!0},e.default=R,e.matchAttributor=h,e.matchBlot=d,e.matchNewline=f,e.matchSpacing=p,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)),u=n(i(3)),h=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!==f.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}(u.default);d.blotName="list-item",d.tagName="LI";var f=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}(h.default);f.blotName="list",f.scope=c.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[d],e.ListItem=d,e.default=f},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"],u=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);u.blotName="image",u.tagName="IMG",e.default=u},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"],u=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);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",e.default=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)}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)),u=n(i(6)),h=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 f=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(){u.default.register(d,!0)}}]),e}(h.default);e.FormulaBlot=d,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 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)),u=n(i(6)),h=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 f=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),p=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(u.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(){u.default.register(f,!0),u.default.register(d,!0)}}]),s(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(u.default.sources.SILENT),null!=e&&this.quill.setSelection(e,u.default.sources.SILENT)}}}]),e}(h.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=f,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)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)),u=n(i(0)),h=n(i(6)),d=n(i(10)),f=n(i(7)),p=(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(h.default.events.EDITOR_CHANGE,(function(t,e){t===h.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(h.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=s(t,1)[0];o.update(e)})),o):(n=p.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 p.warn("ignoring attaching to disabled format",i,t);if(null==u.default.query(i))return void p.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(u.default.query(i).prototype instanceof u.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)),h.default.sources.USER)}else e.quill.format(i,r,h.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}(f.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!=u.default.query(e,u.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,h.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",h.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",t,h.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,h.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,h.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,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",t,h.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)),u=n(i(9)),h=i(44),d=n(h),f=i(22),p=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 v(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),p.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 v=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(u.default.events.EDITOR_CHANGE,(function(t,e,i,r){if(t===u.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===u.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 f.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(u.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}(h.BaseTooltip);v.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=v,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}}(),u=n(i(2)),h=n(i(9)),d=i(44),f=n(d),p=n(i(15)),g=i(22),m=n(i(26)),v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,i){r(this,e),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=v);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}(f.default);y.DEFAULTS=(0,u.default)(!0,{},f.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,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(h.default.events.SELECTION_CHANGE,(function(e,i,n){if(null!=e){if(0===e.length&&n===h.default.sources.USER){var r=t.quill.scroll.descendant(p.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=p.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=y}]).default})),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).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(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(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 u(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){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=l(t);if(e){var r=l(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return u(this,i)}}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(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 f(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 p=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),10),a=parseInt(i[1],10),s=parseInt(i[2],10);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 i.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(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:"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 Null]"===Object.prototype.toString.call(e))return null;if("[object Date]"===Object.prototype.toString.call(e))return e;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,null),i=t.clientHeight,n=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{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 parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{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}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],n=2*Math.PI/e,r=0;r<e;r++){var o={};o.x=t*Math.sin(r*n),o.y=-t*Math.cos(r*n),i.push(o)}return i}},{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:"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)}},{key:"sanitizeDom",value:function(t){return t.replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\"/g,""")}}]),i}(),g=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:"animateMarker",value:function(t,e,i,n,r,o){e||(e=0),t.attr({r:e,width:e,height:e}).animate(n,r).attr({r:i,width:i.width,height:i.height}).afterAll((function(){o()}))}},{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(){return r()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,n=t.j,r=t.fill,o=t.pathFrom,a=t.pathTo,s=t.speed,l=t.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(e,i,n,"line"!==c.config.chart.type||c.globals.comboCharts?r:"stroke",o,a,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){t.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"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,a,s){var l=this,c=this.w;r||(r=t.attr("pathFrom")),o||(o=t.attr("pathTo"));var u=function(t){return"radar"===c.config.chart.type&&(a=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=u()),c.globals.shouldAnimate||(a=1),t.plot(r).animate(1,c.globals.easing,s).plot(r).animate(a,c.globals.easing,s).plot(o).afterAll((function(){p.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==n&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),m=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&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var n=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var n=this,r=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:o}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{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),p.isIE()&&"radialBar"===c.config.chart.type||(a=Array.isArray(a)?a[i]:a,t.filter((function(t){var e;e=p.isSafari()||p.isFirefox()||p.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"),this._scaleFilterSize(t.filterer.node)),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)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),v=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,s=this.w,l=s.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:r,"stroke-dasharray":o,"stroke-width":a});return l}},{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,u=this.w,h=u.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,opacity:a,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",o),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]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",r=this.w,o=r.globals.dom.Paper.polygon(t).attr({fill:n,stroke:e,"stroke-width":i});return o}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;t<0&&(t=0);var n=i.globals.dom.Paper.circle(2*t);return null!==e&&n.attr(e),n}},{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,u=t.strokeOpacity,h=void 0===u?1:u,d=t.classes,f=t.strokeLinecap,p=void 0===f?null:f,g=t.strokeDashArray,m=void 0===g?0:g,v=this.w;return null===p&&(p=v.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(i).attr({fill:s,"fill-opacity":c,stroke:r,"stroke-opacity":h,"stroke-linecap":p,"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,i=e.globals.dom.Paper.group();return null!==t&&i.attr(t),i}},{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=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";s&&(l="a");var c=[l,t,e,i,n,r,o,a].join(" ");return c}},{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,u=t.fill,h=t.animationDelay,d=t.initialSpeed,f=t.dataChangeSpeed,p=t.className,v=t.shouldClipToGrid,y=void 0===v||v,b=t.bindEventsOnPaths,x=void 0===b||b,_=t.drawShadow,w=void 0===_||_,S=this.w,k=new m(this.ctx),A=new g(this.ctx),C=this.w.config.chart.animations.enabled,T=C&&this.w.config.chart.animations.dynamicAnimation.enabled,E=!!(C&&!S.globals.resized||T&&S.globals.dataChanged&&S.globals.shouldAnimate);E?e=r:(e=o,S.globals.animationEnded=!0);var O,P=S.config.stroke.dashArray;O=Array.isArray(P)?P[n]:S.config.stroke.dashArray;var L=this.drawPath({d:e,stroke:s,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:O});if(L.attr("index",n),y&&L.attr({"clip-path":"url(#gridRectMask".concat(S.globals.cuid,")")}),"none"!==S.config.states.normal.filter.type)k.getDefaultFilter(L,n);else if(S.config.chart.dropShadow.enabled&&w&&(!S.config.chart.dropShadow.enabledOnSeries||S.config.chart.dropShadow.enabledOnSeries&&-1!==S.config.chart.dropShadow.enabledOnSeries.indexOf(n))){var D=S.config.chart.dropShadow;k.dropShadow(L,D,n)}x&&(L.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,L)),L.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,L)),L.node.addEventListener("mousedown",this.pathMouseDown.bind(this,L))),L.attr({pathTo:o,pathFrom:r});var M={el:L,j:i,realIndex:n,pathFrom:r,pathTo:o,fill:u,strokeWidth:l,delay:h};return!C||S.globals.resized||S.globals.dataChanged?!S.globals.resized&&S.globals.dataChanged||A.showDelayedElements():A.animatePathsGradually(a(a({},M),{},{speed:d})),S.globals.dataChanged&&T&&E&&A.animatePathsGradually(a(a({},M),{},{speed:f})),L}},{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,o=this.w,a=o.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})}));return a}},{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,u=this.w;e.length<9&&0===e.indexOf("#")&&(e=p.hexToRgba(e,n)),i.length<9&&0===i.indexOf("#")&&(i=p.hexToRgba(i,r));var h=0,d=1,f=1,g=null;null!==s&&(h=void 0!==s[0]?s[0]/100:0,d=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"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(o=null===l||0===l.length?u.globals.dom.Paper.gradient(m?"radial":"linear",(function(t){t.at(h,e,n),t.at(d,i,r),t.at(f,i,r),null!==g&&t.at(g,e,n)})):u.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 v=u.globals.gridWidth/2,y=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?o.attr({gradientUnits:"userSpaceOnUse",cx:v,cy:y,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(1,0).to(0,1);return o}},{key:"drawText",value:function(t){var e,i=t.x,n=t.y,r=t.text,o=t.textAnchor,a=t.fontSize,s=t.fontFamily,l=t.fontWeight,c=t.foreColor,u=t.opacity,h=t.cssClass,d=void 0===h?"":h,f=t.isPlainText,p=void 0===f||f,g=this.w;return void 0===r&&(r=""),o||(o="start"),c&&c.length||(c=g.config.chart.foreColor),s=s||g.config.chart.fontFamily,l=l||"regular",(e=Array.isArray(r)?g.globals.dom.Paper.text((function(t){for(var e=0;e<r.length;e++)0===e?t.tspan(r[e]):t.tspan(r[e]).newLine()})):p?g.globals.dom.Paper.plain(r):g.globals.dom.Paper.text((function(t){return t.tspan(r)}))).attr({x:i,y:n,"text-anchor":o,"dominant-baseline":"auto","font-size":a,"font-family":s,"font-weight":l,fill:c,class:"apexcharts-text "+d}),e.node.style.fontFamily=s,e.node.style.opacity=u,e}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0,r=null;if("square"===i.shape||"rect"===i.shape){var o=void 0===i.pRadius?n/2:i.pRadius;null!==e&&n||(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.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),r=s}else"circle"!==i.shape&&i.shape||(p.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.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new m(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.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 m(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:i}),this.ctx.events.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 m(this.ctx),r=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10),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,u=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),n.getDefaultFilter(t,r)}))};u(l),u(c)}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.events.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("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var n=e.length-3;n>0;n-=3)if(t.getSubStringLength(0,n)<=i/1.1)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}(),y=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{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.annoCtx.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(!t||!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,u=r.top-n.top-s,h=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,u,r.width+o+a,r.height+s+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&h.node.classList.add(e.id),h}},{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:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var 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}}]),t}(),b=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i,this.invertAxis=this.annoCtx.invertAxis}return n(t,[{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.maxY:n.globals.maxX,a=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=(t.x-r)/(a/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(s=(o-t.x)/(a/n.globals.gridWidth));var l=t.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(s=this.annoCtx.helpers.getStringX(t.x));var c=t.strokeDashArray;if(p.isNumber(s)){if(null===t.x2||void 0===t.x2){var u=this.annoCtx.graphics.drawLine(s+t.offsetX,0+t.offsetY,s+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth);e.appendChild(u.node),t.id&&u.node.classList.add(t.id)}else{var h=(t.x2-r)/(a/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(h=(o-t.x2)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(h=this.annoCtx.helpers.getStringX(t.x2)),h<s){var d=s;s=h,h=d}var f=this.annoCtx.graphics.drawRect(s+t.offsetX,0+t.offsetY,h-s,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,c);f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}var g="top"===t.label.position?4:n.globals.gridHeight,m=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),v=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:g+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?m.width/2-12:-m.width/2:0),text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});v.attr({rel:i}),e.appendChild(v.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((function(e,n){t.addXaxisAnnotation(e,i.node,n)})),i}}]),t}(),x=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++)void 0!==t.globals.series[r][i]&&(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.config.series[t].data.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:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{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 u=0;u<r.minYArr.length;u++)r.yRange.push(Math.abs(r.minYArr[u]-r.maxYArr[u])),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 h=0;h<r.yRange.length;h++)o.push(r.yRange[h]/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,i=this.w;return i.globals.seriesLog=t.map((function(t,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?t.map((function(t){return null===t?null:e.getLogVal(t,n)})):t})),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getLogVal",value:function(t,e){var i=this.w;return(Math.log(t)-Math.log(i.globals.minYArr[e]))/(Math.log(i.globals.maxYArr[e])-Math.log(i.globals.minYArr[e]))}},{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=0,n=0;return t.length&&void 0!==t[0].type&&t.forEach((function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||i++,void 0!==t.type&&n++})),n>1&&(e=!0),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),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 t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var n,r=this.w,o=t.strokeDashArray,a=this._getY1Y2("y1",t),s=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),a+t.offsetY,t.borderColor,o,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((n=this._getY1Y2("y2",t))>a){var c=a;a=n,n=c}var u=this.annoCtx.graphics.drawRect(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),a-n,0,t.fillColor,t.opacity,1,t.borderColor,o);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),e.appendChild(u.node),t.id&&u.node.classList.add(t.id)}var h="right"===t.label.position?r.globals.gridWidth:0,d=this.annoCtx.graphics.drawText({x:h+t.label.offsetX,y:(n||a)+t.label.offsetY-3,text:s,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});d.attr({rel:i}),e.appendChild(d.node)}},{key:"_getY1Y2",value:function(t,e){var i,n="y1"===t?e.y:e.y2,r=this.w;if(this.annoCtx.invertAxis){var o=r.globals.labels.indexOf(n);r.config.xaxis.convertedCatToNumeric&&(o=r.globals.categoryLabels.indexOf(n));var a=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");a&&(i=parseFloat(a.getAttribute("y")))}else{var s;s=r.config.yaxis[e.yAxisIndex].logarithmic?(n=new x(this.annoCtx.ctx).getLogVal(n,e.yAxisIndex))/r.globals.yLogRatio[e.yAxisIndex]:(n-r.globals.minYArr[e.yAxisIndex])/(r.globals.yRange[e.yAxisIndex]/r.globals.gridHeight),i=r.globals.gridHeight-s,r.config.yaxis[e.yAxisIndex]&&r.config.yaxis[e.yAxisIndex].reversed&&(i=s)}return i}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,n){t.addYaxisAnnotation(e,i.node,n)})),i}}]),t}(),w=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{key:"addPointAnnotation",value:function(t,e,i){var n=this.w,r=0,o=0,a=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var s=parseFloat(t.y);if("string"==typeof t.x){var l=n.globals.labels.indexOf(t.x);n.config.xaxis.convertedCatToNumeric&&(l=n.globals.categoryLabels.indexOf(t.x)),r=this.annoCtx.helpers.getStringX(t.x),null===t.y&&(s=n.globals.series[t.seriesIndex][l])}else r=(t.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var c,u=[],h=0,d=0;d<=t.seriesIndex;d++){var f=n.config.yaxis[d].seriesName;if(f)for(var g=d+1;g<=t.seriesIndex;g++)n.config.yaxis[g].seriesName===f&&-1===u.indexOf(f)&&(h++,u.push(f))}if(n.config.yaxis[t.yAxisIndex].logarithmic)c=(s=new x(this.annoCtx.ctx).getLogVal(s,t.yAxisIndex))/n.globals.yLogRatio[t.yAxisIndex];else{var m=t.yAxisIndex+h;c=(s-n.globals.minYArr[m])/(n.globals.yRange[m]/n.globals.gridHeight)}if(o=n.globals.gridHeight-c-parseFloat(t.label.style.fontSize)-t.marker.size,a=n.globals.gridHeight-c,n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(o=c+parseFloat(t.label.style.fontSize)+t.marker.size,a=c),p.isNumber(r)){var v={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},y=this.annoCtx.graphics.drawMarker(r+t.marker.offsetX,a+t.marker.offsetY,v);e.appendChild(y.node);var b=t.label.text?t.label.text:"",_=this.annoCtx.graphics.drawText({x:r+t.label.offsetX,y:o+t.label.offsetY,text:b,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(_.attr({rel:i}),e.appendChild(_.node),t.customSVG.SVG){var w=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});w.attr({transform:"translate(".concat(r+t.customSVG.offsetX,", ").concat(o+t.customSVG.offsetY,")")}),w.node.innerHTML=t.customSVG.SVG,e.appendChild(w.node)}if(t.image.path){var S=t.image.width?t.image.width:20,k=t.image.height?t.image.height:20;this.annoCtx.addImage({x:r+t.image.offsetX-S/2,y:o+t.image.offsetY-k/2,width:S,height:k,path:t.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,n){t.addPointAnnotation(e,i.node,n)})),i}}]),t}(),S={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",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},k=function(){function t(){e(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,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",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},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,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return n(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[S],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries: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,mouseLeave:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,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,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},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:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},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}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{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,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,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",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},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:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},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,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],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:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!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:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,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?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:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,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}(),A=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.graphics=new v(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new y(this),this.xAxisAnnotations=new b(this),this.yAxisAnnotations=new _(this),this.pointsAnnotations=new w(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return n(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.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&&t.globals.dataPoints>1&&a[s].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:a[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,n=t.y,r=t.text,o=t.textAnchor,a=t.foreColor,s=t.fontSize,l=t.fontFamily,c=t.fontWeight,u=t.cssClass,h=t.backgroundColor,d=t.borderWidth,f=t.strokeDashArray,p=t.borderRadius,g=t.borderColor,m=t.appendTo,v=void 0===m?".apexcharts-annotations":m,y=t.paddingLeft,b=void 0===y?4:y,x=t.paddingRight,_=void 0===x?4:x,w=t.paddingBottom,S=void 0===w?2:w,k=t.paddingTop,A=void 0===k?2:k,C=this.w,T=this.graphics.drawText({x:i,y:n,text:r,textAnchor:o||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||C.config.chart.fontFamily,foreColor:a||C.config.chart.foreColor,cssClass:u}),E=C.globals.dom.baseEl.querySelector(v);E&&E.appendChild(T.node);var O=T.bbox();if(r){var P=this.graphics.drawRect(O.x-b,O.y-A,O.width+b+_,O.height+S+A,p,h||"transparent",1,d,g,f);E.insertBefore(P.node,T.node)}}},{key:"addImage",value:function(t,e){var i=this.w,n=t.path,r=t.x,o=void 0===r?0:r,a=t.y,s=void 0===a?0:a,l=t.width,c=void 0===l?20:l,u=t.height,h=void 0===u?20:u,d=t.appendTo,f=void 0===d?".apexcharts-annotations":d,p=i.globals.dom.Paper.image(n);p.size(c,h).move(o,s);var g=i.globals.dom.baseEl.querySelector(f);g&&g.appendChild(p.node)}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),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:"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,u=new k,h=Object.assign({},"xaxis"===r?u.xAxisAnnotation:"yaxis"===r?u.yAxisAnnotation:u.pointAnnotation),d=p.extend(h,e);switch(r){case"xaxis":this.addXaxisAnnotation(d,l,c);break;case"yaxis":this.addYaxisAnnotation(d,l,c);break;case"point":this.addPointAnnotation(d,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),g=this.helpers.addBackgroundToAnno(f,d);return g&&l.insertBefore(g.node,f),i&&s.globals.memory.methodsToExec.push({context:a,id:d.id?d.id:p.randomId(),method:o,label:"addAnnotation",params:e}),n}},{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=p.listToArray(i),Array.prototype.forEach.call(i,(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)})),Array.prototype.forEach.call(n,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),C=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,10),r=parseInt(e.globals.gridHeight,10),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");v.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",a),v.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.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||"treemap"===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];void 0!==e.globals.seriesColors[this.seriesIndex]&&(a=e.globals.seriesColors[this.seriesIndex]),"function"==typeof a&&(a=a({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,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;t.color&&(a=t.color);var c=a;if(-1===a.indexOf("rgb")?a.length<9&&(c=p.hexToRgba(a,l)):a.indexOf("rgba")>-1&&(l=p.getOpacityFromRGBA(a)),t.opacity&&(l=t.opacity),"pattern"===s&&(n=this.handlePatternFill(n,a,l,c)),"gradient"===s&&(r=this.handleGradientFill(a,l,this.seriesIndex)),"image"===s){var u=o.fill.image.src,h=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?t.seriesNumber<u.length?u[t.seriesNumber]:u[0]:u,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(h)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(h,")")}else i="gradient"===s?r:"pattern"===s?n:c;return 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?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?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 v(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 Array.isArray(r.fill.pattern.style)?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){var n,r=this.w.config,o=this.opts,a=new v(this.ctx),s=new p,l=r.fill.gradient.type,c=t,u=void 0===r.fill.gradient.opacityFrom?e:Array.isArray(r.fill.gradient.opacityFrom)?r.fill.gradient.opacityFrom[i]:r.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(u=p.getOpacityFromRGBA(c));var h=void 0===r.fill.gradient.opacityTo?e:Array.isArray(r.fill.gradient.opacityTo)?r.fill.gradient.opacityTo[i]:r.fill.gradient.opacityTo;if(void 0===r.fill.gradient.gradientToColors||0===r.fill.gradient.gradientToColors.length)n="dark"===r.fill.gradient.shade?s.shadeColor(-1*parseFloat(r.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?p.rgb2hex(t):t):s.shadeColor(parseFloat(r.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?p.rgb2hex(t):t);else if(r.fill.gradient.gradientToColors[o.seriesNumber]){var d=r.fill.gradient.gradientToColors[o.seriesNumber];n=d,d.indexOf("rgba")>-1&&(h=p.getOpacityFromRGBA(d))}else n=t;if(r.fill.gradient.inverseColors){var f=c;c=n,n=f}return c.indexOf("rgb")>-1&&(c=p.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=p.rgb2hex(n)),a.drawGradient(l,c,n,u,h,o.size,r.fill.gradient.stops,r.fill.gradient.colorStops,i)}}]),t}(),T=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,n){var r,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.w,s=e,l=t,c=null,u=new v(this.ctx);if((a.globals.markers.size[e]>0||o)&&(c=u.group({class:o?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var h=0;h<l.x.length;h++){var d=i;1===i&&0===h&&(d=0),1===i&&1===h&&(d=1);var f="apexcharts-marker";"line"!==a.config.chart.type&&"area"!==a.config.chart.type||a.globals.comboCharts||a.config.tooltip.intersect||(f+=" no-pointer-events");var g=Array.isArray(a.config.markers.size)?a.globals.markers.size[e]>0:a.config.markers.size>0;if(g||o){p.isNumber(l.y[h])?f+=" w".concat(p.randomId()):f="apexcharts-nullpoint";var y=this.getMarkerConfig(f,e,d);a.config.series[s].data[d]&&(a.config.series[s].data[d].fillColor&&(y.pointFillColor=a.config.series[s].data[d].fillColor),a.config.series[s].data[d].strokeColor&&(y.pointStrokeColor=a.config.series[s].data[d].strokeColor)),n&&(y.pSize=n),(r=u.drawMarker(l.x[h],l.y[h],y)).attr("rel",d),r.attr("j",d),r.attr("index",e),r.node.setAttribute("default-marker-size",y.pSize);var b=new m(this.ctx);b.setSelectionFilter(r,e,d),this.addEvents(r),c&&c.add(r)}else void 0===a.globals.pointsArray[e]&&(a.globals.pointsArray[e]=[]),a.globals.pointsArray[e].push([l.x[h],l.y[h]])}return c}},{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;return 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,r.pointShape=t.shape)})),{pSize:o,pRadius:a.radius,width:Array.isArray(a.width)?a.width[e]:a.width,height:Array.isArray(a.height)?a.height[e]:a.height,pointStrokeWidth:Array.isArray(a.strokeWidth)?a.strokeWidth[e]:a.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:r.pointShape||(Array.isArray(a.shape)?a.shape[e]:a.shape),class:t,pointStrokeOpacity:Array.isArray(a.strokeOpacity)?a.strokeOpacity[e]:a.strokeOpacity,pointStrokeDashArray:Array.isArray(a.strokeDashArray)?a.strokeDashArray[e]:a.strokeDashArray,pointFillOpacity:Array.isArray(a.fillOpacity)?a.fillOpacity[e]:a.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=this.w,i=new v(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:Array.isArray(n)?n[t]:n,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),E=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 v(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,")")),Array.isArray(a.x))for(var u=0;u<a.x.length;u++){var h=e+1,d=!0;0===e&&0===u&&(h=0),0===e&&1===u&&(h=1);var f=0,p=n.globals.markers.size[o];if(s!==1/0){p=n.globals.seriesZ[o][h]/s;var g=n.config.plotOptions.bubble;g.minBubbleRadius&&p<g.minBubbleRadius&&(p=g.minBubbleRadius),g.maxBubbleRadius&&p>g.maxBubbleRadius&&(p=g.maxBubbleRadius)}n.config.chart.animations.enabled||(f=p);var m=a.x[u],y=a.y[u];if(f=f||0,null!==y&&void 0!==n.globals.series[o][h]||(d=!1),d){var b=this.drawPoint(m,y,f,p,o,h,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,r,o,a){var s,l=this.w,c=r,u=new g(this.ctx),h=new m(this.ctx),d=new C(this.ctx),f=new T(this.ctx),p=new v(this.ctx),y=f.getMarkerConfig("apexcharts-marker",c),b=d.fillPath({seriesNumber:r,dataPointIndex:o,patternUnits:"objectBoundingBox",value:l.globals.series[r][a]});if("circle"===y.shape?s=p.drawCircle(i):"square"!==y.shape&&"rect"!==y.shape||(s=p.drawRect(0,0,y.width-y.pointStrokeWidth/2,y.height-y.pointStrokeWidth/2,y.pRadius)),l.config.series[c].data[o]&&l.config.series[c].data[o].fillColor&&(b=l.config.series[c].data[o].fillColor),s.attr({x:t-y.width/2-y.pointStrokeWidth/2,y:e-y.height/2-y.pointStrokeWidth/2,cx:t,cy:e,fill:b,"fill-opacity":y.pointFillOpacity,stroke:y.pointStrokeColor,r:n,"stroke-width":y.pointStrokeWidth,"stroke-dasharray":y.pointStrokeDashArray,"stroke-opacity":y.pointStrokeOpacity}),l.config.chart.dropShadow.enabled){var x=l.config.chart.dropShadow;h.dropShadow(s,x,r)}if(!this.initialAnim||l.globals.dataChanged||l.globals.resized)l.globals.animationEnded=!0;else{var _=l.config.chart.animations.speed;u.animateMarker(s,0,"circle"===y.shape?n:{width:y.width,height:y.height},_,l.globals.easing,(function(){window.setTimeout((function(){u.animationCompleted(s)}),100)}))}if(l.globals.dataChanged&&"circle"===y.shape)if(this.dynamicAnim){var w,S,k,A,E=l.config.chart.animations.dynamicAnimation.speed;null!=(A=l.globals.previousPaths[r]&&l.globals.previousPaths[r][a])&&(w=A.x,S=A.y,k=void 0!==A.r?A.r:n);for(var O=0;O<l.globals.collapsedSeries.length;O++)l.globals.collapsedSeries[O].index===r&&(E=1,n=0);0===t&&0===e&&(n=0),u.animateCircle(s,{cx:w,cy:S,r:k},{cx:t,cy:e,r:n},E,l.globals.easing)}else s.attr({r:n});return s.attr({rel:o,j:o,index:r,"default-marker-size":n}),h.setSelectionFilter(s,r,o),f.addEvents(s),s.node.classList.add("apexcharts-marker"),s}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),O=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 v(this.ctx).getTextRects(i,a),u=c.width,h=c.height;e<0&&(e=0),e>s.globals.gridHeight+h&&(e=s.globals.gridHeight+h/2),void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:t,y:e,width:u,height:h});var d=s.globals.dataLabelsRects[n].length-2,f=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 p=s.globals.dataLabelsRects[n][f];(t>p.x+p.width+2||e>p.y+p.height+2||t+u<p.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=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=this.w,a=new v(this.ctx),s=o.config.dataLabels,l=0,c=0,u=i,h=null;if(!s.enabled||!Array.isArray(t.x))return h;h=a.group({class:"apexcharts-data-labels"});for(var d=0;d<t.x.length;d++)if(l=t.x[d]+s.offsetX,c=t.y[d]+s.offsetY+r,!isNaN(l)){1===i&&0===d&&(u=0),1===i&&1===d&&(u=1);var f=o.globals.series[e][u],p="",g=function(t){return o.config.dataLabels.formatter(t,{ctx:n.ctx,seriesIndex:e,dataPointIndex:u,w:o})};if("bubble"===o.config.chart.type){p=g(f=o.globals.seriesZ[e][u]),c=t.y[d];var m=new E(this.ctx),y=m.centerTextInBubble(c,e,u);c=y.y}else void 0!==f&&(p=g(f));this.plotDataLabelsText({x:l,y:c,text:p,i:e,j:u,parent:h,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels})}return h}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new v(this.ctx),n=t.x,r=t.y,o=t.i,a=t.j,s=t.text,l=t.textAnchor,c=t.fontSize,u=t.parent,h=t.dataLabelsConfig,d=t.color,f=t.alwaysDrawDataLabel,p=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var g={x:n,y:r,drawnextLabel:!0};p&&(g=this.dataLabelsCorrection(n,r,s,o,a,f,parseInt(h.style.fontSize,10))),e.globals.zoomed||(n=g.x,r=g.y),g.textRects&&(n<-10-g.textRects.width||n>e.globals.gridWidth+g.textRects.width+10)&&(s="");var y=e.globals.dataLabels.style.colors[o];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(y=e.globals.dataLabels.style.colors[a]),"function"==typeof y&&(y=y({series:e.globals.series,seriesIndex:o,dataPointIndex:a,w:e})),d&&(y=d);var b=h.offsetX,x=h.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,x=0),g.drawnextLabel){var _=i.drawText({width:100,height:parseInt(h.style.fontSize,10),x:n+b,y:r+x,foreColor:y,textAnchor:l||h.textAnchor,text:s,fontSize:c||h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight||"normal"});if(_.attr({class:"apexcharts-datalabel",cx:n,cy:r}),h.dropShadow.enabled){var w=h.dropShadow;new m(this.ctx).dropShadow(_,w)}u.add(_),void 0===e.globals.lastDrawnDataLabelsIndexes[o]&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(a)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,n=i.config.dataLabels.background,r=n.padding,o=n.padding/2,a=e.width,s=e.height,l=new v(this.ctx).drawRect(e.x-r,e.y-o/2,a+2*r,s+o,n.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new m(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var n=e[i],r=n.getBBox(),o=null;if(r.width&&r.height&&(o=this.addBackgroundToDataLabel(n,r)),o){n.parentNode.insertBefore(o.node,n);var a=n.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?o.attr({fill:a}):o.animate().attr({fill:a}),n.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<e.length;n++)i&&i.insertBefore(e[n],i.nextSibling)}}]),t}(),P=function(){function t(i){e(this,t),this.w=i.w,this.barCtx=i}return n(t,[{key:"handleBarDataLabels",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,u=t.barWidth,h=t.barYPosition,d=t.visibleSeries,f=t.renderedPath,p=this.w,g=new v(this.barCtx.ctx),m=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth,y=e+parseFloat(u*d),b=i+parseFloat(c*d);p.globals.isXNumeric&&!p.globals.isBarHorizontal&&(y=e+parseFloat(u*(d+1)),b=i+parseFloat(c*(d+1))-m);var x,_=e,w=i,S=p.config.dataLabels,k=this.barCtx.barOptions.dataLabels;void 0!==h&&this.barCtx.isTimelineBar&&(b=h,w=h);var A=S.offsetX,C=S.offsetY,T={width:0,height:0};if(p.config.dataLabels.enabled){var E=this.barCtx.series[o][a];T=g.getTextRects(p.globals.yLabelFormatters[0](E),parseFloat(S.style.fontSize))}var O={x:e,y:i,i:o,j:a,renderedPath:f,bcx:y,bcy:b,barHeight:c,barWidth:u,textRects:T,strokeWidth:m,dataLabelsX:_,dataLabelsY:w,barDataLabelsConfig:k,offX:A,offY:C};return x=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(O):this.calculateColumnsDataLabelsPosition(O),f.attr({cy:x.bcy,cx:x.bcx,j:a,val:l[o][a],barHeight:c,barWidth:u}),this.drawCalculatedDataLabels({x:x.dataLabelsX,y:x.dataLabelsY,val:this.barCtx.isTimelineBar?[n,r]:l[o][a],i:s,j:a,barWidth:u,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,u=t.dataLabelsY,h=t.barDataLabelsConfig,d=t.strokeWidth,f=t.offX,p=t.offY;l=Math.abs(l);var 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+f:a-m+s/2+f,g&&(e=e+c.height/2-d/2-2);var v=this.barCtx.series[n][r]<0,y=o;switch(this.barCtx.isReversed&&(y=o-l+(v?2*l:0),o-=l),h.position){case"center":u=g?v?y+l/2+p:y+l/2-p:v?y-l/2+c.height/2+p:y+l/2+c.height/2-p;break;case"bottom":u=g?v?y+l+p:y+l-p:v?y-l+c.height+d+p:y+l-c.height/2+d-p;break;case"top":u=g?v?y+p:y-p:v?y-c.height/2-p:y+c.height+p}return i.config.chart.stacked||(u<0?u=0+d:u+c.height/3>i.globals.gridHeight&&(u=i.globals.gridHeight-d)),{bcx:a,bcy:o,dataLabelsX:e,dataLabelsY:u}}},{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,u=t.strokeWidth,h=t.barDataLabelsConfig,d=t.offX,f=t.offY,p=e.globals.gridHeight/e.globals.dataPoints;s=Math.abs(s);var g=o-(this.barCtx.isTimelineBar?0:p)+a/2+l.height/2+f-3,m=this.barCtx.series[n][r]<0,v=i;switch(this.barCtx.isReversed&&(v=i+s-(m?2*s:0),i=e.globals.gridWidth-s),h.position){case"center":c=m?v+s/2-d:Math.max(l.width/2,v-s/2)+d;break;case"bottom":c=m?v+s-u-Math.round(l.width/2)-d:v-s+u+Math.round(l.width/2)+d;break;case"top":c=m?v-u+Math.round(l.width/2)-d:v-u-Math.round(l.width/2)+d}return e.config.chart.stacked||(c<0?c=c+l.width+u:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-u)),{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,u=t.dataLabelsConfig,h=this.w,d="rotate(0)";"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(e,", ").concat(i,")"));var f=new O(this.barCtx.ctx),p=new v(this.barCtx.ctx),g=u.formatter,m=null,y=h.globals.collapsedSeriesIndices.indexOf(r)>-1;if(u.enabled&&!y){m=p.group({class:"apexcharts-data-labels",transform:d});var b="";void 0!==n&&(b=g(n,{seriesIndex:r,dataPointIndex:o,w:h}));var x=h.globals.series[r][o]<0,_=h.config.plotOptions.bar.dataLabels.position;"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&("top"===_&&(u.textAnchor=x?"end":"start"),"center"===_&&(u.textAnchor="middle"),"bottom"===_&&(u.textAnchor=x?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(b,parseFloat(u.style.fontSize)).width&&(b=""),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(c>0&&s.width/1.6>c||c<0&&s.width/1.6<c)&&(b=""):s.height/1.6>l&&(b=""));var w=a({},u);this.barCtx.isHorizontal&&n<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),f.plotDataLabelsText({x:e,y:i,text:b,i:r,j:o,parent:m,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}}]),t}(),L=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.legendInactiveClass="legend-mouseover-inactive"}return n(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(p.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);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:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",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],n=this.w,r=p.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),n.config.series=r,t&&(e&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"),10)-1,o=null,a=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),a=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var s=0;s<n.length;s++)n[s].classList.add(this.legendInactiveClass);null!==o&&(i.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,n=this.w,r=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(t){for(var e=0;e<r.length;e++)r[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var a=parseInt(e.getAttribute("rel"),10)-1;o("add"),function(t){for(var e=0;e<r.length;e++){var n=parseInt(r[e].getAttribute("val"),10);n>=t.from&&n<=t.to&&r[e].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[a])}else"mouseout"===t.type&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",i=this.w,n=0;if(i.config.series.length>1)for(var r=i.config.series.map((function(e,n){var r=!1;return t&&(r="bar"===i.config.series[n].type||"column"===i.config.series[n].type),e.data&&e.data.length>0&&!r?n:-1})),o="asc"===e?0:r.length-1;"asc"===e?o<r.length:o>=0;"asc"===e?o++:o--)if(-1!==r[o]){n=r[o];break}return n}},{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=[],["line","area","bar","rangebar","candlestick","radar"].forEach((function(i){for(var n,r=(n=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"))),o=0;o<r.length;o++)e(r,o,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var n=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),n=[],r=function(t){var e=function(e){return i[t].getAttribute(e)},r={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};n.push({rect:r,color:i[t].getAttribute("color")})},o=0;o<i.length;o++)r(o);t.globals.previousPaths.push(n)},r=0;r<i.length;r++)n(r);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var n=0;n<i.length;n++){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),o=[],a=0;a<r.length;a++)o.push({x:r[a].getAttribute("cx"),y:r[a].getAttribute("cy"),r:r[a].getAttribute("r")});e.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new v(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,10)+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"});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){return t.length>0?t:[]}))}}]),t}(),D=function(){function t(i){e(this,t),this.w=i.w,this.barCtx=i}return n(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.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.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=t.length-1,e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(){var t,e,i,n,r,o,a,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isTimelineBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)r=(i=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(r=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),e=(i-r*this.barCtx.seriesLen)/2;else{if(n=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(n=l.globals.gridWidth/l.globals.dataPoints),o=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var h=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(h=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/h>0&&(n=l.globals.minXDiff/h),(o=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}a=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(n-o*this.barCtx.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:n,barHeight:r,barWidth:o,zeroH:a,zeroW:s}}},{key:"getPathFillColor",value:function(t,e,i,n){var r=this.w,o=new C(this.barCtx.ctx),a=null,s=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.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.barCtx.barOptions.distributed?s:n,dataPointIndex:i,color:a,value:t[e][i]})}},{key:"getStrokeWidth",value:function(t,e,i){var n=0,r=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,n=t.x1,r=t.x2,o=t.y1,a=t.y2,s=t.elSeries,l=this.w,c=new v(this.barCtx.ctx),u=new L(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e-=this.barCtx.barOptions.colors.backgroundBarColors.length);var h=this.barCtx.barOptions.colors.backgroundBarColors[e],d=c.drawRect(void 0!==n?n:0,void 0!==o?o:0,void 0!==r?r:l.globals.gridWidth,void 0!==a?a:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,h,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(d),d.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,n=t.yRatio,r=t.y1,o=t.y2,a=t.strokeWidth,s=t.series,l=t.realIndex,c=t.i,u=t.j,h=t.w,d=new v(this.barCtx.ctx);(a=Array.isArray(a)?a[l]:a)||(a=0);var f={barWidth:e,strokeWidth:a,yRatio:n,barXPosition:i,y1:r,y2:o},p=this.getRoundedBars(h,f,s,c,u),g=i,m=i+e,y=d.move(g,r),b=d.move(g,r),x=d.line(m-a,r);return h.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,u,!1)),y=y+d.line(g,p.y2)+p.pathWithRadius+d.line(m-a,p.y2)+x+x+"z",b=b+d.line(g,r)+x+x+x+x+x+d.line(g,r),h.config.chart.stacked&&(this.barCtx.yArrj.push(p.y2),this.barCtx.yArrjF.push(Math.abs(r-p.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][u])),{pathTo:y,pathFrom:b}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,n=t.x1,r=t.x2,o=t.strokeWidth,a=t.series,s=t.realIndex,l=t.i,c=t.j,u=t.w,h=new v(this.barCtx.ctx);(o=Array.isArray(o)?o[s]:o)||(o=0);var d={barHeight:i,strokeWidth:o,barYPosition:e,x2:r,x1:n},f=this.getRoundedBars(u,d,a,l,c),p=h.move(n,e),g=h.move(n,e);u.globals.previousPaths.length>0&&(g=this.barCtx.getPreviousPath(s,c,!1));var m=e,y=e+i,b=h.line(n,y-o);return p=p+h.line(f.x2,m)+f.pathWithRadius+h.line(f.x2,y-o)+b+b+"z",g=g+h.line(n,m)+b+b+b+b+b+h.line(n,m),u.config.chart.stacked&&(this.barCtx.xArrj.push(f.x2),this.barCtx.xArrjF.push(Math.abs(n-f.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:p,pathFrom:g}}},{key:"getRoundedBars",value:function(t,e,i,n,r){var o=new v(this.barCtx.ctx),a=t.config.plotOptions.bar.borderRadius;if(t.config.chart.stacked&&i.length>1&&n!==this.barCtx.radiusOnSeriesNumber&&(a=0),this.barCtx.isHorizontal){var s="",l=e.x2;if(Math.abs(e.x1-e.x2)<a&&(a=Math.abs(e.x1-e.x2)),void 0!==i[n][r]||null!==i[n][r]){var c=this.barCtx.isReversed?i[n][r]>0:i[n][r]<0;c&&(a*=-1),l-=a,s=o.quadraticCurve(l+a,e.barYPosition,l+a,e.barYPosition+(c?-1*a:a))+o.line(l+a,e.barYPosition+e.barHeight-e.strokeWidth-(c?-1*a:a))+o.quadraticCurve(l+a,e.barYPosition+e.barHeight-e.strokeWidth,l,e.barYPosition+e.barHeight-e.strokeWidth)}return{pathWithRadius:s,x2:l}}var u="",h=e.y2;if(Math.abs(e.y1-e.y2)<a&&(a=Math.abs(e.y1-e.y2)),void 0!==i[n][r]||null!==i[n][r]){var d=i[n][r]<0;d&&(a*=-1),h+=a,u=o.quadraticCurve(e.barXPosition,h-a,e.barXPosition+(d?-1*a:a),h-a)+o.line(e.barXPosition+e.barWidth-e.strokeWidth-(d?-1*a:a),h-a)+o.quadraticCurve(e.barXPosition+e.barWidth-e.strokeWidth,h-a,e.barXPosition+e.barWidth-e.strokeWidth,h)}return{pathWithRadius:u,y2:h}}},{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.barCtx.zeroSerieses.push(n)}for(var a=e.length-1;a>=0;a--)this.barCtx.zeroSerieses.indexOf(a)>-1&&a===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var s=e.length-1;s>=0;s--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?e:null;return null!=t&&(n=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?e:null;return null!=t&&(n=e-t/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(t,e,i,n,o){var a=this,s=this.w,l=[];return s.globals.seriesGoals[n]&&s.globals.seriesGoals[n][o]&&Array.isArray(s.globals.seriesGoals[n][o])&&s.globals.seriesGoals[n][o].forEach((function(n){var o;l.push((r(o={},t,"x"===t?a.getXForValue(n.value,e,!1):a.getYForValue(n.value,i,!1)),r(o,"attrs",n),o))})),l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,n=t.goalX,r=t.goalY,o=t.barWidth,a=t.barHeight,s=new v(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach((function(t){c=s.drawLine(t.x,i,t.x,i+a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,0,t.attrs.strokeWidth?t.attrs.strokeWidth:2),l.add(c)})):Array.isArray(r)&&r.forEach((function(t){c=s.drawLine(e,t.y,e+o,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,0,t.attrs.strokeWidth?t.attrs.strokeWidth:2),l.add(c)})),l}}]),t}(),M=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.initialXRatio=n.initialXRatio,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,this.barHelpers=new D(this)}return n(t,[{key:"draw",value:function(t,e){var i=this.w,n=new v(this.ctx),r=new x(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.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 s=0,l=0;s<t.length;s++,l++){var c,u,h,d,f=void 0,g=void 0,m=[],y=[],b=i.globals.comboCharts?e[s]:s,_=n.group({class:"apexcharts-series",rel:s+1,seriesName:p.escapeString(i.globals.seriesNames[b]),"data:realIndex":b});this.ctx.series.addCollapsedClassToSeries(_,b),t[s].length>0&&(this.visibleI=this.visibleI+1);var w=0,S=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var k=this.barHelpers.initialPositions();g=k.y,w=k.barHeight,u=k.yDivision,d=k.zeroW,f=k.x,S=k.barWidth,c=k.xDivision,h=k.zeroH,this.horizontal||y.push(f+S/2);for(var A=n.group({class:"apexcharts-datalabels","data:realIndex":b}),C=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),T=0;T<i.globals.dataPoints;T++){var E=this.barHelpers.getStrokeWidth(s,T,b),O=null,P={indexes:{i:s,j:T,realIndex:b,bc:l},x:f,y:g,strokeWidth:E,elSeries:_};this.isHorizontal?(O=this.drawBarPaths(a(a({},P),{},{barHeight:w,zeroW:d,yDivision:u})),S=this.series[s][T]/this.invertedYRatio):(O=this.drawColumnPaths(a(a({},P),{},{xDivision:c,barWidth:S,zeroH:h})),w=this.series[s][T]/this.yRatio[this.yaxisIndex]);var L=this.barHelpers.drawGoalLine({barXPosition:O.barXPosition,barYPosition:O.barYPosition,goalX:O.goalX,goalY:O.goalY,barHeight:w,barWidth:S});L&&C.add(L),g=O.y,f=O.x,T>0&&y.push(f+S/2),m.push(g);var D=this.barHelpers.getPathFillColor(t,s,T,b);this.renderSeries({realIndex:b,pathFill:D,j:T,i:s,pathFrom:O.pathFrom,pathTo:O.pathTo,strokeWidth:E,elSeries:_,x:f,y:g,series:t,barHeight:w,barWidth:S,elDataLabelsWrap:A,elGoalsMarkers:C,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=y,i.globals.seriesYvalues[b]=m,o.add(_)}return o}},{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,u=t.x,h=t.y,d=t.y1,f=t.y2,p=t.series,g=t.barHeight,y=t.barWidth,b=t.barYPosition,x=t.elDataLabelsWrap,_=t.elGoalsMarkers,w=t.visibleSeries,S=t.type,k=this.w,A=new v(this.ctx);n||(n=this.barOptions.distributed?k.globals.stroke.colors[r]:k.globals.stroke.colors[e]),k.config.series[o].data[r]&&k.config.series[o].data[r].strokeColor&&(n=k.config.series[o].data[r].strokeColor),this.isNullValue&&(i="none");var C=r/k.config.chart.animations.animateGradually.delay*(k.config.chart.animations.speed/k.globals.dataPoints)/2.4,T=A.renderPaths({i:o,j:r,realIndex:e,pathFrom:a,pathTo:s,stroke:n,strokeWidth:l,strokeLineCap:k.config.stroke.lineCap,fill:i,animationDelay:C,initialSpeed:k.config.chart.animations.speed,dataChangeSpeed:k.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(S,"-area")});T.attr("clip-path","url(#gridRectMask".concat(k.globals.cuid,")"));var E=k.config.forecastDataPoints;E.count>0&&r>=k.globals.dataPoints-E.count&&(T.node.setAttribute("stroke-dasharray",E.dashArray),T.node.setAttribute("stroke-width",E.strokeWidth),T.node.setAttribute("fill-opacity",E.fillOpacity)),void 0!==d&&void 0!==f&&(T.attr("data-range-y1",d),T.attr("data-range-y2",f)),new m(this.ctx).setSelectionFilter(T,e,r),c.add(T);var O=new P(this).handleBarDataLabels({x:u,y:h,y1:d,y2:f,i:o,j:r,series:p,realIndex:e,barHeight:g,barWidth:y,barYPosition:b,renderedPath:T,visibleSeries:w});return null!==O&&x.add(O),c.add(x),_&&c.add(_),c}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,n=t.strokeWidth,r=t.zeroW,o=t.x,a=t.y,s=t.yDivision,l=t.elSeries,c=this.w,u=e.i,h=e.j;c.globals.isXNumeric&&(a=(c.globals.seriesX[u][h]-c.globals.minX)/this.invertedXRatio-i);var d=a+i*this.visibleI;o=this.barHelpers.getXForValue(this.series[u][h],r);var f=this.barHelpers.getBarpaths({barYPosition:d,barHeight:i,x1:r,x2:o,strokeWidth:n,series:this.series,realIndex:e.realIndex,i:u,j:h,w:c});return c.globals.isXNumeric||(a+=s),this.barHelpers.barBackground({j:h,i:u,y1:d-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x:o,y:a,goalX:this.barHelpers.getGoalValues("x",r,null,u,h),barYPosition:d}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,r=t.xDivision,o=t.barWidth,a=t.zeroH,s=t.strokeWidth,l=t.elSeries,c=this.w,u=e.realIndex,h=e.i,d=e.j,f=e.bc;if(c.globals.isXNumeric){var p=u;c.globals.seriesX[u].length||(p=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[p][d]-c.globals.minX)/this.xRatio-o*this.seriesLen/2}var g=i+o*this.visibleI;n=this.barHelpers.getYForValue(this.series[h][d],a);var m=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:o,y1:a,y2:n,strokeWidth:s,series:this.series,realIndex:e.realIndex,i:h,j:d,w:c});return c.globals.isXNumeric||(i+=r),this.barHelpers.barBackground({bc:f,j:d,i:h,x1:g-s/2-o*this.visibleI,x2:o*this.seriesLen+s/2,elSeries:l}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:i,y:n,goalY:this.barHelpers.getGoalValues("y",null,a,h,d),barXPosition:g}}},{key:"getPreviousPath",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,10)===parseInt(t,10)&&void 0!==n.globals.previousPaths[r].paths[e]&&(i=n.globals.previousPaths[r].paths[e].d)}return i}}]),t}(),I=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:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(d(i.months)),o=[""].concat(d(i.shortMonths)),a=[""].concat(d(i.days)),s=[""].concat(d(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=n?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(n?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var h=n?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(h))).replace(/(^|[^\\])d/g,"$1"+h);var f=n?t.getUTCHours():t.getHours(),p=f>12?f-12:0===f?12:f;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var g=n?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(g))).replace(/(^|[^\\])m/g,"$1"+g);var m=n?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);var v=n?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=f<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-t.getTimezoneOffset(),_=n||!x?"Z":x>0?"+":"-";if(!n){var w=(x=Math.abs(x))%60;_+=l(Math.floor(x/60))+":"+l(w)}e=e.replace(/(^|[^\\])K/g,"$1"+_);var S=(n?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(a[0],"g"),a[S])).replace(new RegExp(s[0],"g"),s[S])).replace(new RegExp(r[0],"g"),r[u])).replace(new RegExp(o[0],"g"),o[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var n=this.w;void 0!==n.config.xaxis.min&&(t=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(e=n.config.xaxis.max);var r=this.getDate(t),o=this.getDate(e),a=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(a[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(s[0],10)}}},{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=p.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}(),N=function(t){s(r,t);var i=h(r);function r(){return e(this,r),i.apply(this,arguments)}return n(r,[{key:"draw",value:function(t,e){var i=this.w,n=new v(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<t.length;o++){var s,l,c,u=void 0,h=void 0,d=void 0,f=i.globals.comboCharts?e[o]:o,g=n.group({class:"apexcharts-series",seriesName:p.escapeString(i.globals.seriesNames[f]),rel:o+1,"data:realIndex":f});t[o].length>0&&(this.visibleI=this.visibleI+1);var m=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=f);var b=this.barHelpers.initialPositions();h=b.y,c=b.zeroW,u=b.x,y=b.barWidth,s=b.xDivision,l=b.zeroH;for(var x=n.group({class:"apexcharts-datalabels","data:realIndex":f}),_=n.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),w=0;w<i.globals.dataPoints;w++){var S=this.barHelpers.getStrokeWidth(o,w,f),k=this.seriesRangeStart[o][w],A=this.seriesRangeEnd[o][w],C=null,T=null,E={x:u,y:h,strokeWidth:S,elSeries:g};if(d=b.yDivision,m=b.barHeight,this.isHorizontal){T=h+m*this.visibleI;var O=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(O=1);var P=(d-m*O)/2;if(void 0===i.config.series[o].data[w])break;if(this.isTimelineBar&&i.config.series[o].data[w].x){var L=this.detectOverlappingBars({i:o,j:w,barYPosition:T,srty:P,barHeight:m,yDivision:d,initPositions:b});m=L.barHeight,T=L.barYPosition}y=(C=this.drawRangeBarPaths(a({indexes:{i:o,j:w,realIndex:f},barHeight:m,barYPosition:T,zeroW:c,yDivision:d,y1:k,y2:A},E))).barWidth}else m=(C=this.drawRangeColumnPaths(a({indexes:{i:o,j:w,realIndex:f},zeroH:l,barWidth:y,xDivision:s},E))).barHeight;var D=this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:T,goalX:C.goalX,goalY:C.goalY,barHeight:m,barWidth:y});D&&_.add(D),h=C.y,u=C.x;var M=this.barHelpers.getPathFillColor(t,o,w,f),I=i.globals.stroke.colors[f];this.renderSeries({realIndex:f,pathFill:M,lineFill:I,j:w,i:o,x:u,y:h,y1:k,y2:A,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:S,elSeries:g,series:t,barHeight:m,barYPosition:T,barWidth:y,elDataLabelsWrap:x,elGoalsMarkers:_,visibleSeries:this.visibleI,type:"rangebar"})}r.add(g)}return r}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,n=t.barYPosition,r=t.srty,o=t.barHeight,a=t.yDivision,s=t.initPositions,l=this.w,c=[],u=l.config.series[e].data[i].rangeName,h=l.config.series[e].data[i].x,d=l.globals.labels.indexOf(h),f=l.globals.seriesRangeBarTimeline[e].findIndex((function(t){return t.x===h&&t.overlaps.length>0}));return n=l.config.plotOptions.bar.rangeBarGroupRows?r+a*d:r+o*this.visibleI+a*d,f>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBarTimeline[e][f].overlaps).indexOf(u)>-1&&(n=(o=s.barHeight/c.length)*this.visibleI+a*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+c.indexOf(u))+a*d),{barYPosition:n,barHeight:o}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.strokeWidth,t.xDivision),r=t.barWidth,o=t.zeroH,a=this.w,s=e.i,l=e.j,c=this.yRatio[this.yaxisIndex],u=e.realIndex,h=this.getRangeValue(u,l),d=Math.min(h.start,h.end),f=Math.max(h.start,h.end);a.globals.isXNumeric&&(i=(a.globals.seriesX[s][l]-a.globals.minX)/this.xRatio-r/2);var p=i+r*this.visibleI;void 0===this.series[s][l]||null===this.series[s][l]?d=o:(d=o-d/c,f=o-f/c);var g=Math.abs(f-d),m=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:r,y1:d,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:u,j:l,w:a});return a.globals.isXNumeric||(i+=n),{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:i,y:f,goalY:this.barHelpers.getGoalValues("y",null,o,s,l),barXPosition:p}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,n=t.y1,r=t.y2,o=t.yDivision,a=t.barHeight,s=t.barYPosition,l=t.zeroW,c=this.w,u=l+n/this.invertedYRatio,h=l+r/this.invertedYRatio,d=Math.abs(h-u),f=this.barHelpers.getBarpaths({barYPosition:s,barHeight:a,x1:u,x2:h,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=o),{pathTo:f.pathTo,pathFrom:f.pathFrom,barWidth:d,x:h,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}},{key:"getTooltipValues",value: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],u=a.config.series[i].name?a.config.series[i].name:"",h=a.config.tooltip.y.formatter,d=a.config.tooltip.y.title.formatter,f={w:a,seriesIndex:i,dataPointIndex:n,start:s,end:l};"function"==typeof d&&(u=d(u,f)),Number.isFinite(r)&&Number.isFinite(o)&&(s=r,l=o,a.config.series[i].data[n].x&&(c=a.config.series[i].data[n].x+":"),"function"==typeof h&&(c=h(c,f)));var p="",g="",m=a.globals.colors[i];if(void 0===a.config.tooltip.x.formatter)if("datetime"===a.config.xaxis.type){var v=new I(e);p=v.formatDate(v.getDate(s),a.config.tooltip.x.format),g=v.formatDate(v.getDate(l),a.config.tooltip.x.format)}else p=s,g=l;else p=a.config.tooltip.x.formatter(s),g=a.config.tooltip.x.formatter(l);return{start:s,end:l,startVal:p,endVal:g,ylabel:c,color:m,seriesName:u}}},{key:"buildCustomTooltipHTML",value:function(t){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t.color+'">'+(t.seriesName||"")+'</span></div><div> <span class="category">'+t.ylabel+' </span> <span class="value start-value">'+t.start+'</span> <span class="separator">-</span> <span class="value end-value">'+t.end+"</span></div></div>"}}]),r}(M),j=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].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,p.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},axisTicks:{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"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,n=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,n=e.dataPointIndex,r=e.w;return t._getBoxTooltip(r,i,n,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,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},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=new N(t.ctx,null),i=e.getTooltipValues(t),n=i.color,r=i.seriesName,o=i.ylabel,a=i.startVal,s=i.endVal;return e.buildCustomTooltipHTML({color:n,seriesName:r,ylabel:o,start:a,end:s})}(t):function(t){var e=new N(t.ctx,null),i=e.getTooltipValues(t),n=i.color,r=i.seriesName,o=i.ylabel,a=i.start,s=i.end;return e.buildCustomTooltipHTML({color:n,seriesName:r,ylabel:o,start:a,end:s})}(t)}},xaxis:{tickPlacement:"between",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 p.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(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return p.isNumber(t)?Math.floor(t):t};var n=t.xaxis.labels.formatter,r=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(r=i.map((function(t){return Array.isArray(t)?t:String(t)}))),r&&r.length&&(t.xaxis.labels.formatter=function(t){return p.isNumber(t)?n(r[Math.floor(t)-1]):n(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",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:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!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:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{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"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},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"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},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:!1,style:{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:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},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]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,n,r){var o=t.globals.seriesCandleO[e][i],a=t.globals.seriesCandleH[e][i],s=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==r?'<div class="apexcharts-custom-tooltip">\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+a+"</span></div>"+(s?"<div>".concat(n[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),R=function(){function i(t){e(this,i),this.opts=t}return n(i,[{key:"init",value:function(e){var i=e.responsiveOverride,n=this.opts,r=new k,o=new j(n);this.chartType=n.chart.type,"histogram"===this.chartType&&(n.chart.type="bar",n=p.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},n)),n=this.extendYAxis(n),n=this.extendAnnotations(n);var a=r.init(),s={};if(n&&"object"===t(n)){var l={};l=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?o[n.chart.type]():o.line(),n.chart.brush&&n.chart.brush.enabled&&(l=o.brush(l)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=o.stacked100(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},i||(n.xaxis.convertedCatToNumeric=!1),((n=this.checkForCatToNumericXAxis(this.chartType,l,n)).chart.sparkline&&n.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=o.sparkline(l)),s=p.extend(a,l)}var c=p.extend(s,window.Apex);return a=p.extend(c,n),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var n=new j(i),r="bar"===t&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,o="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,a="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,s=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return r||o||!a||"between"===s||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new k;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=p.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[p.extend(i.yAxis,t.yaxis)]:t.yaxis=p.extendArray(t.yaxis,i.yAxis);var n=!1;t.yaxis.forEach((function(t){t.logarithmic&&(n=!0)}));var r=t.series;return e&&!r&&(r=e.config.series),n&&r.length!==t.yaxis.length&&r.length&&(t.yaxis=r.map((function(e,n){if(e.name||(r[n].name="series-".concat(n+1)),t.yaxis[n])return t.yaxis[n].seriesName=r[n].name,t.yaxis[n];var o=p.extend(i.yAxis,t.yaxis[0]);return o.show=!1,o}))),n&&r.length>1&&r.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),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 k;return t.annotations.yaxis=p.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new k;return t.annotations.xaxis=p.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new k;return t.annotations.points=p.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.chart.background||(t.chart.background="#424242"),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("bar"===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&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," 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}(),F=function(){function t(){e(this,t)}return n(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBarTimeline=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.xaxisLabelsCount=0,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!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.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{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,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 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,mousedown:!1,lastClientPosition:{},visibleXRange:void 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,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,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,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=p.extend({},t),e.initialSeries=p.clone(t.series),e.lastXAxis=p.clone(e.initialConfig.xaxis),e.lastYAxis=p.clone(e.initialConfig.yaxis),e}}]),t}(),z=function(){function t(i){e(this,t),this.opts=i}return n(t,[{key:"init",value:function(){var t=new R(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new F).init(t)}}}]),t}(),H=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new x(this.ctx)}return n(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new L(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 L(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="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,o=0;o<t[e].data.length;o++)if(void 0!==t[e].data[o][1]&&(Array.isArray(t[e].data[o][1])&&4===t[e].data[o][1].length&&!r?this.twoDSeries.push(p.parseNumber(t[e].data[o][1][3])):t[e].data[o].length>=5?this.twoDSeries.push(p.parseNumber(t[e].data[o][4])):this.twoDSeries.push(p.parseNumber(t[e].data[o][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var a=new Date(t[e].data[o][0]);a=new Date(a).getTime(),this.twoDSeriesX.push(a)}else this.twoDSeriesX.push(t[e].data[o][0]);for(var s=0;s<t[e].data.length;s++)void 0!==t[e].data[s][2]&&(this.threeDSeries.push(t[e].data[s][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,n=this.w.globals,r=new I(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(p.parseNumber(t[e].data[a].y[t[e].data[a].y.length-1])):this.twoDSeries.push(p.parseNumber(t[e].data[a].y))),void 0!==t[e].data[a].goals&&Array.isArray(t[e].data[a].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[a].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var s=0;s<t[o].data.length;s++){var l="string"==typeof t[o].data[s].x,c=Array.isArray(t[o].data[s].x),u=!c&&!!r.isValidDate(t[o].data[s].x.toString());if(l||u)if(l||i.xaxis.convertedCatToNumeric){var h=n.isBarHorizontal&&n.isRangeData;"datetime"!==i.xaxis.type||h?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[s].x)):this.twoDSeriesX.push(r.parseDate(t[o].data[s].x))}else"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)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(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 d=0;d<t[e].data.length;d++)this.threeDSeries.push(t[e].data[d].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),n.seriesRangeBarTimeline.forEach((function(t,e){t&&t.forEach((function(t,e){t.y.forEach((function(e,i){for(var n=0;n<t.y.length;n++)if(i!==n){var r=e.y1,o=e.y2,a=t.y[n].y1;r<=t.y[n].y2&&a<=o&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[n].rangeName)<0&&t.overlaps.push(t.y[n].rangeName))}}))}))})),r}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=n.o,i.seriesCandleH[e]=n.h,i.seriesCandleM[e]=n.m,i.seriesCandleL[e]=n.l,i.seriesCandleC[e]=n.c,n}},{key:"handleRangeDataFormat",value:function(t,e,i){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,overlaps:[],y:[]}})),a="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",s=new L(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=p.randomId(),s=e[i].data[t].x,l={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1],rangeName:a};e[i].data[t].rangeName=a;var c=o.findIndex((function(t){return t.x===s}));o[c].y.push(l),n.push(l.y1),r.push(l.y2)},u=0;u<e[i].data.length;u++)c(u)}return{start:n,end:r,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var n=this.w,r="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[i].type,o=[],a=[],s=[],l=[],c=[];if("array"===t)if(r&&6===e[i].data[0].length||!r&&5===e[i].data[0].length)for(var u=0;u<e[i].data.length;u++)o.push(e[i].data[u][1]),a.push(e[i].data[u][2]),r?(s.push(e[i].data[u][3]),l.push(e[i].data[u][4]),c.push(e[i].data[u][5])):(l.push(e[i].data[u][3]),c.push(e[i].data[u][4]));else for(var h=0;h<e[i].data.length;h++)Array.isArray(e[i].data[h][1])&&(o.push(e[i].data[h][1][0]),a.push(e[i].data[h][1][1]),r?(s.push(e[i].data[h][1][2]),l.push(e[i].data[h][1][3]),c.push(e[i].data[h][1][4])):(l.push(e[i].data[h][1][2]),c.push(e[i].data[h][1][3])));else if("xy"===t)for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d].y)&&(o.push(e[i].data[d].y[0]),a.push(e[i].data[d].y[1]),r?(s.push(e[i].data[d].y[2]),l.push(e[i].data[d].y[3]),c.push(e[i].data[d].y[4])):(l.push(e[i].data[d].y[2]),c.push(e[i].data[d].y[3])));return{o:o,h:a,m:s,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,r=this.w.globals,o=new I(i),a=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();r.isTimelineBar="rangeBar"===n.chart.type&&"datetime"===n.xaxis.type;for(var s=function(){for(var t=0;t<a.length;t++)if("string"==typeof a[t]){if(!o.isValidDate(a[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(o.parseDate(a[t]))}else e.twoDSeriesX.push(a[t])},l=0;l<t.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[l].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==t[l].type&&"rangeArea"!==t[l].type||(r.isRangeData=!0,this.handleRangeData(t,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,l):this.isFormatXY()&&this.handleFormatXY(t,l),"candlestick"!==n.chart.type&&"candlestick"!==t[l].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==t[l].type||this.handleCandleStickBoxData(t,l),r.series.push(this.twoDSeries),r.labels.push(this.twoDSeriesX),r.seriesX.push(this.twoDSeriesX),r.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(r.isXNumeric=!0);else{"datetime"===n.xaxis.type?(r.isXNumeric=!0,s(),r.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(r.isXNumeric=!0,a.length>0&&(this.twoDSeriesX=a,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var c=t[l].data.map((function(t){return p.parseNumber(t)}));r.series.push(c)}r.seriesZ.push(this.threeDSeries),void 0!==t[l].name?r.seriesNames.push(t[l].name):r.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==t[l].color?r.seriesColors.push(t[l].color):r.seriesColors.push(void 0)}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;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():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}))),e.xaxis.convertedCatToNumeric&&(new j(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,n=[];if(e.axisCharts){if(e.series.length>0)for(var r=0;r<e.series[e.maxValsInArrayIndex].length;r++)n.push(r+1);e.seriesX=[];for(var o=0;o<t.length;o++)e.seriesX.push(n);e.isXNumeric=!0}if(0===n.length){n=e.axisCharts?[]:e.series.map((function(t,e){return e+1}));for(var a=0;a<t.length;a++)e.seriesX.push(n)}e.labels=n,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=n.map((function(t){return i.xaxis.labels.formatter(t)}))),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,n=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?this.parseDataAxisCharts(t):this.parseDataNonAxisCharts(t),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var r=new L(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);for(var o=this.coreUtils.getCategoryLabels(n.labels),a=0;a<o.length;a++)if(Array.isArray(o[a])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map((function(i,n){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index}))}}]),t}(),B=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,n){var r=this.w;if("datetime"===r.config.xaxis.type&&void 0===r.config.xaxis.labels.formatter&&void 0===r.config.tooltip.x.formatter){var o=new I(this.ctx);return o.formatDate(o.getDate(e),r.config.tooltip.x.format)}return t(e,i,n)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var n=this.w;return p.isNumber(t)&&(t=0!==n.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:n.globals.yValueDecimal):n.globals.maxYArr[i]-n.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(p.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(p.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,n){void 0!==i.labels.formatter?e.globals.yLabelFormatters[n]=i.labels.formatter:e.globals.yLabelFormatters[n]=function(r){return e.globals.xyCharts?Array.isArray(r)?r.map((function(e){return t.defaultYFormatter(e,i,n)})):t.defaultYFormatter(r,i,n):r}})),e.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}(),Y=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=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",a=this.w,s=void 0===t[n]?"":t[n],l=s,c=a.globals.xLabelFormatter,u=a.config.xaxis.labels.formatter,h=!1,d=new B(this.ctx),f=s;l=d.xLabelFormat(c,s,f,{i:n,dateFormatter:new I(this.ctx).formatDate,w:a}),void 0!==u&&(l=u(s,t[n],{i:n,dateFormatter:new I(this.ctx).formatDate,w:a}));var p=function(t){var i=null;return e.forEach((function(t){"month"===t.unit?i="year":"day"===t.unit?i="month":"hour"===t.unit?i="day":"minute"===t.unit&&(i="hour")})),i===t};e.length>0?(h=p(e[n].unit),i=e[n].position,l=e[n].value):"datetime"===a.config.xaxis.type&&void 0===u&&(l=""),void 0===l&&(l=""),l=Array.isArray(l)?l:l.toString();var g=new v(this.ctx),m={};m=a.globals.rotateXLabels?g.getTextRects(l,parseInt(o,10),null,"rotate(".concat(a.config.xaxis.labels.rotate," 0 0)"),!1):g.getTextRects(l,parseInt(o,10));var y=!a.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(l)&&(0===l.indexOf("NaN")||0===l.toLowerCase().indexOf("invalid")||l.toLowerCase().indexOf("infinity")>=0||r.indexOf(l)>=0&&y)&&(l=""),{x:i,text:l,textRect:m,isBold:h}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var n=this.w,r=n.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(n.globals.gridWidth/120)),r>i||t%Math.round(i/(r+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,n,r){var o=this.w;if(0===t&&o.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&o.globals.skipLastTimelinelabel&&(e.text=""),o.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var a=r[r.length-1];e.x<a.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+a.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new x(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,n,r,o,a){var s=this.w,l=new v(this.ctx),c=s.globals.translateY;if(n.show&&e>0){!0===s.config.yaxis[r].opposite&&(t+=n.width);for(var u=e;u>=0;u--){var h=c+e/10+s.config.yaxis[r].labels.offsetY-1;s.globals.isBarHorizontal&&(h=o*u),"heatmap"===s.config.chart.type&&(h+=o/2);var d=l.drawLine(t+i.offsetX-n.width+n.offsetX,h+n.offsetY,t+i.offsetX+n.offsetX,h+n.offsetY,n.color);a.add(d),c+=o}}}}]),t}(),W=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),n=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",n*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+n)}},{key:"fixSvgStringForIe11",value:function(t){if(!p.isIE11())return t;var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].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(t){var e=this;return new Promise((function(i){var n=e.w,r=t?t.scale||t.width/n.globals.svgWidth:1;e.cleanup();var o=document.createElement("canvas");o.width=n.globals.svgWidth*r,o.height=parseInt(n.globals.dom.elWrap.style.height,10)*r;var a="transparent"===n.config.chart.background?"#fff":n.config.chart.background,s=o.getContext("2d");s.fillStyle=a,s.fillRect(0,0,o.width*r,o.height*r);var l=e.getSvgString(r);if(window.canvg&&p.isIE11()){var c=window.canvg.Canvg.fromString(s,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var u=o.msToBlob();c.stop(),i({blob:u})}else{var h="data:image/svg+xml,"+encodeURIComponent(l),d=new Image;d.crossOrigin="anonymous",d.onload=function(){if(s.drawImage(d,0,0),o.msToBlob){var t=o.msToBlob();i({blob:t})}else{var e=o.toDataURL("image/png");i({imgURI:e})}},d.src=h}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,n=e.blob;n?navigator.msSaveOrOpenBlob(n,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,n=t.columnDelimiter,r=t.lineDelimiter,o=void 0===r?"\n":r,a=this.w,s=[],l=[],c="data:text/csv;charset=utf-8,\ufeff",u=new H(this.ctx),h=new Y(this.ctx),d=function(t){var i="";if(a.globals.axisCharts){if("category"===a.config.xaxis.type||a.config.xaxis.convertedCatToNumeric)if(a.globals.isBarHorizontal){var r=a.globals.yLabelFormatters[0],o=new L(e.ctx).getActiveConfigSeriesIndex();i=r(a.globals.labels[t],{seriesIndex:o,dataPointIndex:t,w:a})}else i=h.getLabel(a.globals.labels,a.globals.timescaleLabels,0,t).text;"datetime"===a.config.xaxis.type&&(a.config.xaxis.categories.length?i=a.config.xaxis.categories[t]:a.config.labels.length&&(i=a.config.labels[t]))}else i=a.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),p.isNumber(i)?i:i.split(n).join("")};s.push(a.config.chart.toolbar.export.csv.headerCategory),i.map((function(t,e){var i=t.name?t.name:"series-".concat(e);a.globals.axisCharts&&s.push(i.split(n).join("")?i.split(n).join(""):"series-".concat(e))})),a.globals.axisCharts||(s.push(a.config.chart.toolbar.export.csv.headerValue),l.push(s.join(n))),i.map((function(t,e){a.globals.axisCharts?function(t,e){if(s.length&&0===e&&l.push(s.join(n)),t.data&&t.data.length)for(var r=0;r<t.data.length;r++){s=[];var o=d(r);if(o||(u.isFormatXY()?o=i[e].data[r].x:u.isFormat2DArray()&&(o=i[e].data[r]?i[e].data[r][0]:"")),0===e){s.push((h=o,"datetime"===a.config.xaxis.type&&String(h).length>=10?a.config.chart.toolbar.export.csv.dateFormatter(o):p.isNumber(o)?o:o.split(n).join("")));for(var c=0;c<a.globals.series.length;c++)s.push(a.globals.series[c][r])}("candlestick"===a.config.chart.type||t.type&&"candlestick"===t.type)&&(s.pop(),s.push(a.globals.seriesCandleO[e][r]),s.push(a.globals.seriesCandleH[e][r]),s.push(a.globals.seriesCandleL[e][r]),s.push(a.globals.seriesCandleC[e][r])),("boxPlot"===a.config.chart.type||t.type&&"boxPlot"===t.type)&&(s.pop(),s.push(a.globals.seriesCandleO[e][r]),s.push(a.globals.seriesCandleH[e][r]),s.push(a.globals.seriesCandleM[e][r]),s.push(a.globals.seriesCandleL[e][r]),s.push(a.globals.seriesCandleC[e][r])),"rangeBar"===a.config.chart.type&&(s.pop(),s.push(a.globals.seriesRangeStart[e][r]),s.push(a.globals.seriesRangeEnd[e][r])),s.length&&l.push(s.join(n))}var h}(t,e):((s=[]).push(a.globals.labels[e].split(n).join("")),s.push(a.globals.series[e]),l.push(s.join(n)))})),c+=l.join(o),this.triggerDownload(encodeURI(c),a.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var n=document.createElement("a");n.href=t,n.download=(e||this.w.globals.chartID)+i,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),t}(),q=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.axesUtils=new Y(i),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight+1,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,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.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return n(t,[{key:"drawXaxis",value:function(){var t,e=this,i=this.w,n=new v(this.ctx),r=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(i.config.xaxis.offsetX,", ").concat(i.config.xaxis.offsetY,")")}),o=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")});r.add(o);for(var a=i.globals.padHorizontal,s=[],l=0;l<this.xaxisLabels.length;l++)s.push(this.xaxisLabels[l]);var c=s.length;if(i.globals.isXNumeric){var u=c>1?c-1:c;t=i.globals.gridWidth/u,a=a+t/2+i.config.xaxis.labels.offsetX}else t=i.globals.gridWidth/s.length,a=a+t+i.config.xaxis.labels.offsetX;for(var h=function(r){var l=a-t/2+i.config.xaxis.labels.offsetX;0===r&&1===c&&t/2===a&&1===i.globals.dataPoints&&(l=i.globals.gridWidth/2);var u=e.axesUtils.getLabel(s,i.globals.timescaleLabels,l,r,e.drawnLabels,e.xaxisFontSize),h=28;if(i.globals.rotateXLabels&&(h=22),(u=void 0!==i.config.xaxis.tickAmount&&"dataPoints"!==i.config.xaxis.tickAmount&&"datetime"!==i.config.xaxis.type?e.axesUtils.checkLabelBasedOnTickamount(r,u,c):e.axesUtils.checkForOverflowingLabels(r,u,c,e.drawnLabels,e.drawnLabelsRects)).text&&i.globals.xaxisLabelsCount++,i.config.xaxis.labels.show){var d=n.drawText({x:u.x,y:e.offY+i.config.xaxis.labels.offsetY+h-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:u.text,textAnchor:"middle",fontWeight:u.isBold?600:i.config.xaxis.labels.style.fontWeight,fontSize:e.xaxisFontSize,fontFamily:e.xaxisFontFamily,foreColor:Array.isArray(e.xaxisForeColors)?i.config.xaxis.convertedCatToNumeric?e.xaxisForeColors[i.globals.minX+r-1]:e.xaxisForeColors[r]:e.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass});o.add(d);var f=document.createElementNS(i.globals.SVGNS,"title");f.textContent=Array.isArray(u.text)?u.text.join(" "):u.text,d.node.appendChild(f),""!==u.text&&(e.drawnLabels.push(u.text),e.drawnLabelsRects.push(u))}a+=t},d=0;d<=c-1;d++)h(d);if(void 0!==i.config.xaxis.title.text){var f=n.group({class:"apexcharts-xaxis-title"}),p=n.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+i.globals.xAxisLabelsHeight+i.config.xaxis.title.offsetY,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass});f.add(p),r.add(f)}if(i.config.xaxis.axisBorder.show){var g=i.globals.barPadForNumericAxis,m=n.drawLine(i.globals.padHorizontal+i.config.xaxis.axisBorder.offsetX-g,this.offY,this.xaxisBorderWidth+g,this.offY,i.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);r.add(m)}return r}},{key:"drawXaxisInversed",value:function(t){var e,i,n=this,r=this.w,o=new v(this.ctx),a=r.config.yaxis[0].opposite?r.globals.translateYAxisX[t]:0,s=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});s.add(l);var c=[];if(r.config.yaxis[t].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);e=r.globals.gridHeight/c.length,i=-e/2.2;var h=r.globals.yLabelFormatters[0],d=r.config.yaxis[0].labels;if(d.show)for(var f=function(a){var s=void 0===c[a]?"":c[a];s=h(s,{seriesIndex:t,dataPointIndex:a,w:r});var u=n.axesUtils.getYAxisForeColor(d.style.colors,t),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(d.style.fontSize,10));var p=o.drawText({x:d.offsetX-15,y:i+e+d.offsetY-f,text:s,textAnchor:n.yaxis.opposite?"start":"end",foreColor:Array.isArray(u)?u[a]:u,fontSize:d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+d.style.cssClass});l.add(p);var g=document.createElementNS(r.globals.SVGNS,"title");if(g.textContent=Array.isArray(s)?s.join(" "):s,p.node.appendChild(g),0!==r.config.yaxis[t].labels.rotate){var m=o.rotateAroundCenter(p.node);p.node.setAttribute("transform","rotate(".concat(r.config.yaxis[t].labels.rotate," 0 ").concat(m.y,")"))}i+=e},p=0;p<=c.length-1;p++)f(p);if(void 0!==r.config.yaxis[0].title.text){var g=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),m=o.drawText({x:0,y:r.globals.gridHeight/2,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});g.add(m),s.add(g)}var y=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(y=r.globals.gridWidth);var b=r.config.xaxis.axisBorder;if(b.show){var x=o.drawLine(r.globals.padHorizontal+b.offsetX+y,1+b.offsetY,r.globals.padHorizontal+b.offsetX+y,r.globals.gridHeight+b.offsetY,b.color,0);s.add(x)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,c.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,e,s),s}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,n=t;if(!(t<0||t-2>i.globals.gridWidth)){var r=this.offY+i.config.xaxis.axisTicks.offsetY,o=r+i.config.xaxis.axisTicks.height;if("top"===i.config.xaxis.position&&(o=r-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var a=new v(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.timescaleLabels.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 v(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 tspan");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&&Array.prototype.forEach.call(l,(function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))}))}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),r=0;r<n.length;r++){var o=n[r].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(o,(function(t){e.placeTextWithEllipsis(t,t.textContent,i)}))}}();if(r.length>0){var c=r[r.length-1].getBBox(),u=r[0].getBBox();c.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),u.x+u.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var h=0;h<o.length;h++)e.placeTextWithEllipsis(o[h],o[h].textContent,t.config.yaxis[0].labels.maxWidth-2*parseFloat(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}(),X=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new Y(i),this.isTimelineBar="datetime"===n.config.xaxis.type&&n.globals.seriesRangeBarTimeline.length,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.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 v(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=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new v(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.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var o=t.config.chart.type,a=0,s=0;("bar"===o||"rangeBar"===o||"candlestick"===o||"boxPlot"===o||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(a=t.config.grid.padding.left,s=t.config.grid.padding.right,e.barPadForNumericAxis>a&&(a=e.barPadForNumericAxis,s=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-n/2-a-2,-n/2,e.gridWidth+n+s+a+4,e.gridHeight+n,0,"#fff"),new x(this).getLargestMarkerSize();var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elForecastMask),c.appendChild(e.dom.elNonForecastMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,n=t.y1,r=t.x2,o=t.y2,a=t.xCount,s=t.parent,l=this.w;0===e&&l.globals.skipFirstTimelinelabel||e===a-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type||(l.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:n,x2:r,y2:o,parent:s}),new q(this.ctx).drawXaxisTicks(i,this.elg))}},{key:"_drawGridLine",value:function(t){var e=t.x1,i=t.y1,n=t.x2,r=t.y2,o=t.parent,a=this.w,s=o.node.classList.contains("apexcharts-gridlines-horizontal"),l=a.config.grid.strokeDashArray,c=a.globals.barPadForNumericAxis,u=new v(this).drawLine(e-(s?c:0),i,n+(s?c:0),r,a.config.grid.borderColor,l);u.node.classList.add("apexcharts-gridline"),o.add(u)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,n=t.y1,r=t.x2,o=t.y2,a=t.type,s=this.w,l=new v(this.ctx),c=s.globals.barPadForNumericAxis;if("column"!==a||"datetime"!==s.config.xaxis.type){var u=s.config.grid[a].colors[e],h=l.drawRect(i-("row"===a?c:0),n,r+("row"===a?2*c:0),o,0,u,s.config.grid[a].opacity);this.elg.add(h),h.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),h.node.classList.add("apexcharts-grid-".concat(a))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,n=t.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var o,a=r.globals.padHorizontal,s=r.globals.gridHeight;r.globals.timescaleLabels.length?function(t){for(var n=t.xC,r=t.x1,o=t.y1,a=t.x2,s=t.y2,l=0;l<n;l++)r=e.xaxisLabels[l].position,a=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:r,y1:o,x2:a,y2:s,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:a,y1:0,x2:o,y2:s}):(r.globals.isXNumeric&&(i=r.globals.xAxisScale.result.length),r.config.xaxis.convertedCatToNumeric&&(i=r.globals.xaxisLabelsCount),function(t){var n=t.xC,o=t.x1,a=t.y1,s=t.x2,l=t.y2;if(void 0!==r.config.xaxis.tickAmount&&"dataPoints"!==r.config.xaxis.tickAmount)r.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach((function(t,n){var r=t.getBBox();e._drawGridLines({i:n,x1:r.x+r.width/2,y1:a,x2:r.x+r.width/2,y2:l,xCount:i,parent:e.elgridLinesV})}));else for(var c=0;c<n+(r.globals.isXNumeric?0:1);c++)0===c&&1===n&&1===r.globals.dataPoints&&(s=o=r.globals.gridWidth/2),e._drawGridLines({i:c,x1:o,y1:a,x2:s,y2:l,xCount:i,parent:e.elgridLinesV}),s=o+=r.globals.gridWidth/(r.globals.isXNumeric?n-1:n)}({xC:i,x1:a,y1:0,x2:o,y2:s}))}if(r.config.grid.yaxis.lines.show){var l=0,c=0,u=r.globals.gridWidth,h=n+1;this.isTimelineBar&&(h=r.globals.labels.length);for(var d=0;d<h+(this.isTimelineBar?1:0);d++)this._drawGridLine({x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=r.globals.gridHeight/(this.isTimelineBar?h:n)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var n,r=i.globals.padHorizontal,o=i.globals.gridHeight,a=0;a<e+1;a++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:r,y1:0,x2:n,y2:o,parent:this.elgridLinesV}),new q(this.ctx).drawXaxisTicks(r,this.elg),n=r=r+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var s=0,l=0,c=i.globals.gridWidth,u=0;u<i.globals.dataPoints+1;u++)this._drawGridLine({x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new v(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,n=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,r=0;r<t.globals.series.length&&(void 0!==t.globals.yAxisScale[r]&&(n=t.globals.yAxisScale[r].result.length-1),!(n>2));r++);return!t.globals.isBarHorizontal||this.isTimelineBar?(i=this.xaxisLabels.length,this.isTimelineBar&&(n=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:n})):(i=n,n=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:n})),this.drawGridBands(i,n),{el:this.elg,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var n=0,r=i.globals.gridHeight/e,o=i.globals.gridWidth,a=0,s=0;a<e;a++,s++)s>=i.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:n,x2:o,y2:r,type:"row"}),n+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,u=i.globals.padHorizontal+i.globals.gridWidth/l,h=i.globals.gridHeight,d=0,f=0;d<t;d++,f++)f>=i.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:u,y2:h,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),V=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0,o=this.w,a=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,n,a))&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!p.isNumber(t)&&!p.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE){t=0,e=i;var s=this.linearScale(t,e,i);return s}t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var l=[];a<1&&r&&("candlestick"===o.config.chart.type||"candlestick"===o.config.series[n].type||"boxPlot"===o.config.chart.type||"boxPlot"===o.config.series[n].type||o.globals.isRangeData)&&(e*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var u=a/c,h=Math.floor(p.log10(u)),d=Math.pow(10,h),f=Math.round(u/d);f<1&&(f=1);var g=f*d,m=g*Math.floor(t/g),v=g*Math.ceil(e/g),y=m;if(r&&a>2){for(;l.push(y),!((y+=g)>v););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var b=t;(l=[]).push(b);for(var x=Math.abs(e-t)/i,_=0;_<=i;_++)b+=x,l.push(b);return l[l.length-2]>=e&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,n,r))&&(i=this.w.globals.dataPoints-1);var o=r/i;i===Number.MAX_VALUE&&(i=10,o=1);for(var a=[],s=t;i>=0;)a.push(s),s+=o,i-=1;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(t){for(var e=[],i=Math.ceil(Math.log10(t))+1,n=0;n<i;n++)e.push(Math.pow(10,n));return{result:e,niceMin:e[0],niceMax:e[e.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var n=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var r=this.w.config.yaxis[e].labels.formatter(1);p.isNumber(Number(r))&&!p.isFloat(r)&&(n=Math.ceil(i))}return n<t?n:t}},{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);if(o.logarithmic&&a<=5&&(n.invalidLogScale=!0),o.logarithmic&&a>5)n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.logarithmicScale(i);else if(i!==-Number.MAX_VALUE&&p.isNumber(i))if(n.allSeriesCollapsed=!1,void 0===o.min&&void 0===o.max||o.forceNiceScale){var s=void 0===r.yaxis[t].max&&void 0===r.yaxis[t].min||r.yaxis[t].forceNiceScale;n.yAxisScale[t]=this.niceScale(e,i,o.tickAmount?o.tickAmount:a<5&&a>1?a+1:5,t,s)}else n.yAxisScale[t]=this.linearScale(e,i,o.tickAmount,t);else n.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,e){var i=this.w,n=i.globals,r=i.config.xaxis,o=Math.abs(e-t);return e!==-Number.MAX_VALUE&&p.isNumber(e)?n.xAxisScale=this.linearScale(t,e,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,0):n.xAxisScale=this.linearScale(0,5,5),n.xAxisScale}},{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(e,a){var s=a;i.series.forEach((function(t,i){t.name===e.seriesName&&(s=i,a!==i?o.push({index:i,similarIndex:a,alreadyExists:!0}):o.push({index:i}))}));var l=n[s],c=r[s];t.setYScaleForIndex(a,l,c)})),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 u=[],h=[];t.forEach((function(t,i){l.forEach((function(n,r){n.indexOf(i)>-1&&(void 0===u[r]&&(u[r]=[],h[r]=[]),u[r].push({key:i,value:t}),h[r].push({key:i,value:e[i]}))}))}));var d=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),f=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);u.forEach((function(t,e){t.forEach((function(t,i){d[e]=Math.min(t.value,d[e])}))})),h.forEach((function(t,e){t.forEach((function(t,i){f[e]=Math.max(t.value,f[e])}))})),t.forEach((function(t,e){h.forEach((function(t,i){var a=d[i],s=f[i];r.chart.stacked&&(s=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(s+=t.value),a!==Number.MIN_VALUE&&(a+=u[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,u,h=n.globals.minYArr[a],d=n.globals.maxYArr[a],f=n.globals.stackedSeriesTotals;n.globals.series.forEach((function(a,l){var p=a[s];o?(p=f[s],c=u=p,f.forEach((function(t,e){r[e]<=i.xaxis.max&&r[e]>=i.xaxis.min&&(t>u&&null!==t&&(u=t),a[e]<c&&null!==a[e]&&(c=a[e]))}))):(c=u=p,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>u&&null!==a&&(u=a),o<c&&null!==o&&(c=o)}}))),void 0===c&&void 0===u&&(c=h,u=d),(u*=u<0?.9:1.1)<0&&u<d&&(u=d),(c*=c<0?1.1:.9)<0&&c>h&&(c=h),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?u:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?u:t.max)}))})),e}}]),t}(),U=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.scales=new V(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,u=l;"candlestick"===r.chart.type?(c=o.seriesCandleL,u=o.seriesCandleH):"boxPlot"===r.chart.type?(c=o.seriesCandleO,u=o.seriesCandleC):o.isRangeData&&(c=o.seriesRangeStart,u=o.seriesRangeEnd);for(var h=t;h<n;h++){o.dataPoints=Math.max(o.dataPoints,l[h].length);for(var d=0;d<o.series[h].length;d++){var f=l[h][d];null!==f&&p.isNumber(f)?(void 0!==u[h][d]&&(a=Math.max(a,u[h][d])),void 0!==c[h][d]&&(e=Math.min(e,c[h][d]),i=Math.max(i,c[h][d])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==o.seriesCandleC[h][d]&&(a=Math.max(a,o.seriesCandleO[h][d]),a=Math.max(a,o.seriesCandleH[h][d]),a=Math.max(a,o.seriesCandleL[h][d]),a=Math.max(a,o.seriesCandleC[h][d]),"boxPlot"===this.w.config.chart.type&&(a=Math.max(a,o.seriesCandleM[h][d]))),!r.series[h].type||"candlestick"===r.series[h].type&&"boxPlot"===r.series[h].type||(a=Math.max(a,o.series[h][d]),e=Math.min(e,o.series[h][d])),i=a),o.seriesGoals[h]&&o.seriesGoals[h][d]&&Array.isArray(o.seriesGoals[h][d])&&o.seriesGoals[h][d].forEach((function(t){s!==Number.MIN_VALUE&&(s=Math.min(s,t.value),e=s),a=Math.max(a,t.value),i=a})),p.isFloat(f)&&(f=p.noExponents(f),o.yValueDecimal=Math.max(o.yValueDecimal,f.toString().split(".")[1].length)),s>c[h][d]&&c[h][d]<0&&(s=c[h][d])):o.hasNullValues=!0}}return"rangeBar"===r.chart.type&&o.seriesRangeStart.length&&o.isBarHorizontal&&"datetime"===r.xaxis.type&&(s=e),"bar"===r.chart.type&&(s<0&&a<0&&(a=0),s===Number.MIN_VALUE&&(s=0)),{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&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var a=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(a=0),t.minY=i-5*a/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*a/100}return e.yaxis.forEach((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.isMultipleYAxis?t.maxYArr[i]: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.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),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,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&p.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var n;if(void 0===e.xaxis.tickAmount?(n=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(n=t.dataPoints-1),n>t.dataPoints&&0!==t.dataPoints&&(n=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(n=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(n=t.maxX-t.minX-1)):n=e.xaxis.tickAmount,t.xTickAmount=n,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var r=[],o=t.minX-1;o<t.maxX;o++)r.push(o+1);t.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(1,n,n),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,n-1),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.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]&&p.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]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new I(this.ctx);if("datetime"===e.xaxis.type){var n=i.getDate(t.minX);n.setUTCDate(n.getDate()-2),t.minX=new Date(n).getTime();var r=i.getDate(t.maxX);r.setUTCDate(r.getDate()+2),t.maxX=new Date(r).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach((function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var n=e.slice();n.sort((function(t,e){return t-e})),n.forEach((function(e,i){if(i>0){var r=e-n[i-1];r>0&&(t.minXDiff=Math.min(r,t.minXDiff))}})),1===t.dataPoints&&t.minXDiff===Number.MAX_VALUE&&(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this.w.globals,e=[],i=[];if(t.series.length)for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++)for(var r=0,o=0,a=0;a<t.series.length;a++)null!==t.series[a][n]&&p.isNumber(t.series[a][n])&&(t.series[a][n]>0?r=r+parseFloat(t.series[a][n])+1e-4:o+=parseFloat(t.series[a][n])),a===t.series.length-1&&(e.push(r),i.push(o));for(var s=0;s<e.length;s++)t.maxY=Math.max(t.maxY,e[s]),t.minY=Math.min(t.minY,i[s])}}]),t}(),G=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.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===n.config.xaxis.position&&(this.xAxisoffX=n.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Y(i)}return n(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,n=new v(this.ctx),r=i.config.yaxis[t].labels.style,o=r.fontSize,a=r.fontFamily,s=r.fontWeight,l=n.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=n.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=i.globals.yAxisScale[t].result.length-1,h=i.globals.gridHeight/u,d=i.globals.translateY,f=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var g="";if(i.config.yaxis[t].labels.show)for(var m=function(l){var m=p[l];m=f(m,l,i);var v=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(v*=-1);var y=e.axesUtils.getYAxisForeColor(r.colors,t),b=n.drawText({x:v,y:d+u/10+i.config.yaxis[t].labels.offsetY+1,text:m,textAnchor:i.config.yaxis[t].opposite?"start":"end",fontSize:o,fontFamily:a,fontWeight:s,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});l===u&&(g=b),c.add(b);var x=document.createElementNS(i.globals.SVGNS,"title");if(x.textContent=Array.isArray(m)?m.join(" "):m,b.node.appendChild(x),0!==i.config.yaxis[t].labels.rotate){var _=n.rotateAroundCenter(g.node),w=n.rotateAroundCenter(b.node);b.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(_.x," ").concat(w.y,")"))}d+=h},y=u;y>=0;y--)m(y);if(void 0!==i.config.yaxis[t].title.text){var b=n.group({class:"apexcharts-yaxis-title"}),x=0;i.config.yaxis[t].opposite&&(x=i.globals.translateYAxisX[t]);var _=n.drawText({x:x,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});b.add(_),l.add(b)}var w=i.config.yaxis[t].axisBorder,S=31+w.offsetX;if(i.config.yaxis[t].opposite&&(S=-31-w.offsetX),w.show){var k=n.drawLine(S,i.globals.translateY+w.offsetY-2,S,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(k)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(S,u,w,i.config.yaxis[t].axisTicks,t,h,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new v(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(),u=e.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),o=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var h=u.length;if(e.config.xaxis.labels.show)for(var d=h?0:o;h?d<h:d>=0;h?d++:d--){var f=c[d];f=l(f,d,e);var p=e.globals.gridWidth+e.globals.padHorizontal-(s-a+e.config.xaxis.labels.offsetX);if(u.length){var g=this.axesUtils.getLabel(c,u,p,d,this.drawnLabels,this.xaxisFontSize);p=g.x,f=g.text,this.drawnLabels.push(g.text),0===d&&e.globals.skipFirstTimelinelabel&&(f=""),d===c.length-1&&e.globals.skipLastTimelinelabel&&(f="")}var m=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});r.add(m),m.tspan(f);var y=document.createElementNS(e.globals.SVGNS,"title");y.textContent=f,m.node.appendChild(y),s+=a}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new v(this.ctx),n=e.config.xaxis.axisBorder;if(n.show){var r=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(r-=15);var o=i.drawLine(e.globals.padHorizontal+r+n.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);t.add(o)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new v(this.ctx);if(void 0!==e.config.xaxis.title.text){var n=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});n.add(r),t.add(n)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new v(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);s.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate: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=18,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,u=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+u+20),i.globals.translateYAxisX[l]=r-s.labels.offsetX+20):(n=i.globals.translateX-o,c||(o=o+u+20),i.globals.translateYAxisX[l]=n+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=p.listToArray(e)).forEach((function(e,i){var n=t.config.yaxis[i];if(n&&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=p.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}(),Z=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.documentEvent=p.bind(this.documentEvent,this)}return n(t,[{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:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,n=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.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):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(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.ctx.events.fireEvent("click",[t,i,n]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var n=e.globals.dom.baseEl.querySelector(".apexcharts-menu");n&&n.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&n.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),K=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{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=p.extend(S,i);this.w.globals.locale=n.options}}]),t}(),$=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawAxis",value:function(t,e){var i,n,r=this.w.globals,o=this.w.config,a=new q(this.ctx),s=new G(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))}))))}}]),t}(),Q=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 v(this.ctx),i=new m(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,u=n.stops,h=r.enabled,d=r.left,f=r.top,g=r.blur,y=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,u,null));var _=e.drawRect();1===t.config.xaxis.crosshairs.width&&(_=e.drawLine());var w=t.globals.gridHeight;(!p.isNumber(w)||w<0)&&(w=0);var S=t.config.xaxis.crosshairs.width;(!p.isNumber(S)||S<0)&&(S=0),_.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:w,width:S,height:w,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}),h&&(_=i.dropShadow(_,{left:d,top:f,blur:g,color:y,opacity:b})),t.globals.dom.elGraphical.add(_)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new v(this.ctx),i=t.config.yaxis[0].crosshairs,n=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var r=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(r)}var o=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(o)}}]),t}(),J=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 R({}),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=x.extendArrayProps(o,i.globals.initialConfig,i);t=p.extend(s,t),t=p.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<r.length;l++)a<r[l].breakpoint&&(t=x.extendArrayProps(o,r[l].options,i),t=p.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var s=x.extendArrayProps(o,t,i);s=p.extend(i.config,s),a(s=p.extend(s,t))}else a({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new R(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),tt=function(){function t(i){e(this,t),this.ctx=i,this.colors=[],this.w=i.w;var n=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===n.config.chart.type&&n.config.plotOptions.treemap.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.distributed,this.isBarDistributed=n.config.plotOptions.bar.distributed&&("bar"===n.config.chart.type||"rangeBar"===n.config.chart.type)}return n(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this,e=this.w,i=new p;if(e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode)),void 0===e.config.colors?e.globals.colors=this.predefined():(e.globals.colors=e.config.colors,Array.isArray(e.config.colors)&&e.config.colors.length>0&&"function"==typeof e.config.colors[0]&&(e.globals.colors=e.config.series.map((function(i,n){var r=e.config.colors[n];return r||(r=e.config.colors[0]),"function"==typeof r?(t.isColorFn=!0,r({value:e.globals.axisCharts?e.globals.series[n][0]?e.globals.series[n][0]:0:e.globals.series[n],seriesIndex:n,dataPointIndex:n,w:e})):r})))),e.globals.seriesColors.map((function(t,i){t&&(e.globals.colors[i]=t)})),e.config.theme.monochrome.enabled){var n=[],r=e.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=e.globals.series[0].length*e.globals.series.length);for(var o=e.config.theme.monochrome.color,a=1/(r/e.config.theme.monochrome.shadeIntensity),s=e.config.theme.monochrome.shadeTo,l=0,c=0;c<r;c++){var u=void 0;"dark"===s?(u=i.shadeColor(-1*l,o),l+=a):(u=i.shadeColor(l,o),l+=a),n.push(u)}e.globals.colors=n.slice()}var h=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),["fill","stroke"].forEach((function(i){void 0===e.config[i].colors?e.globals[i].colors=t.isColorFn?e.config.colors:h:e.globals[i].colors=e.config[i].colors.slice(),t.pushExtraColors(e.globals[i].colors)})),void 0===e.config.dataLabels.style.colors?e.globals.dataLabels.style.colors=h:e.globals.dataLabels.style.colors=e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50),void 0===e.config.plotOptions.radar.polygons.fill.colors?e.globals.radarPolygons.fill.colors=["dark"===e.config.theme.mode?"#424242":"none"]:e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20),void 0===e.config.markers.colors?e.globals.markers.colors=h:e.globals.markers.colors=e.config.markers.colors.slice(),this.pushExtraColors(e.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=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.colorScale.inverse),i&&n.globals.series.length&&(r=n.globals.series[n.globals.maxValsInArrayIndex].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}(),et=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,10)+i.margin/2,void 0!==i.text){var a=new v(this.ctx).drawText({x:n,y:r,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(a)}}}]),t}(),it=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{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");t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},p.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var n=e.map((function(t,e){return Array.isArray(t)?t.length:1})),r=Math.max.apply(Math,d(n));i=e[n.indexOf(r)]}return i}}]),t}(),nt=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();t={width:n.width,height:n.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var r=e.globals.xLabelFormatter,o=p.getLargestStringFromArr(i),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);e.globals.isBarHorizontal&&(a=o=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var s=new B(this.dCtx.ctx),l=o;o=s.xLabelFormat(r,o,l,{i:void 0,dateFormatter:new I(this.dCtx.ctx).formatDate,w:e}),a=s.xLabelFormat(r,a,l,{i:void 0,dateFormatter:new I(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===o||""===String(o).trim())&&(a=o="1");var c=new v(this.dCtx.ctx),u=c.getTextRects(o,e.config.xaxis.labels.style.fontSize),h=u;if(o!==a&&(h=c.getTextRects(a,e.config.xaxis.labels.style.fontSize)),(t={width:u.width>=h.width?u.width:h.width,height:u.height>=h.height?u.height:h.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var d=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};u=d(o),o!==a&&(h=d(a)),t.height=(u.height>h.height?u.height:h.height)/1.5,t.width=u.width>h.width?u.width:h.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var n=new v(this.dCtx.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:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.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 v(this.dCtx.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:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,n=i.globals,r=i.config,o=r.xaxis.type,a=t.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var s=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,s){(function(t){return-1!==n.collapsedSeriesIndices.indexOf(t)})(s)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var s=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+a/1.75-e.dCtx.yAxisWidthRight,c=s.position-a/1.75+e.dCtx.yAxisWidthLeft,u="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>n.svgWidth-n.translateX-u&&(n.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==r.chart.type&&"candlestick"!==r.chart.type&&"rangeBar"!==r.chart.type&&"boxPlot"!==r.chart.type?10:a/1.75)&&(n.skipFirstTimelinelabel=!0)}else"datetime"===o?e.dCtx.gridPad.right<a&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"!==o&&e.dCtx.gridPad.right<a/2-e.dCtx.yAxisWidthRight&&!n.rotateXLabels&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=a/2+1)}(t)};r.yaxis.forEach((function(t,i){s?(e.dCtx.gridPad.left<a&&(e.dCtx.xPadLeft=a/2+1),e.dCtx.xPadRight=a/2+1):l(t,i)}))}}]),t}(),rt=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],n=10,r=new Y(this.dCtx.ctx);return e.config.yaxis.map((function(o,a){var s=e.globals.yAxisScale[a],l=0;if(!r.isYAxisHidden(a)&&o.labels.show&&void 0!==o.labels.minWidth&&(l=o.labels.minWidth),!r.isYAxisHidden(a)&&o.labels.show&&s.result.length){var c=e.globals.yLabelFormatters[a],u=s.niceMin===Number.MIN_VALUE?0:s.niceMin,h=String(u).length>String(s.niceMax).length?u:s.niceMax,d=c(h,{seriesIndex:a,dataPointIndex:-1,w:e}),f=d;if(void 0!==d&&0!==d.length||(d=h),e.globals.isBarHorizontal){n=0;var g=e.globals.labels.slice();d=c(d=p.getLargestStringFromArr(g),{seriesIndex:a,dataPointIndex:-1,w:e}),f=t.dCtx.dimHelpers.getLargestStringFromMultiArr(d,g)}var m=new v(t.dCtx.ctx),y="rotate(".concat(o.labels.rotate," 0 0)"),b=m.getTextRects(d,o.labels.style.fontSize,o.labels.style.fontFamily,y,!1),x=b;d!==f&&(x=m.getTextRects(f,o.labels.style.fontSize,o.labels.style.fontFamily,y,!1)),i.push({width:(l>x.width||l>b.width?l:x.width>b.width?x.width:b.width)+n,height:x.height>b.height?x.height:b.height})}else i.push({width:0,height:0})})),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 v(t.dCtx.ctx),o="rotate(".concat(e.title.rotate," 0 0)"),a=r.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,o,!1);i.push({width:a.width,height:a.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,n=0,r=t.globals.yAxisScale.length>1?10:0,o=new Y(this.dCtx.ctx),a=function(a,s){var l=t.config.yaxis[s].floating,c=0;a.width>0&&!l?(c=a.width+r,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(s)&&(c=c-a.width-r)):c=l||o.isYAxisHidden(s)?0:5,t.config.yaxis[s].opposite?n+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map((function(t,e){a(t,e)})),t.globals.yTitleCoords.map((function(t,e){a(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=n,e}}]),t}(),ot=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},n=e.config.chart.type,r=0,o=i(n)?e.config.series.length:1;if(e.globals.comboBarCount>0&&(o=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){i(t.type)&&(o-=1)})),e.config.chart.stacked&&(o=1),(i(n)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&o>0){var a,s,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),a=l/t,e.globals.minXDiff&&e.globals.minXDiff/a>0&&(s=e.globals.minXDiff/a),s>t/2&&(s/=2),(r=s/o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),r=r/(o>1?1:1.5)+5,e.globals.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,n=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?n+=e.config[i].margin:n+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(n+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-r.height-o.height-n,i.translateY=i.translateY+r.height+o.height+n}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,n=new Y(this.dCtx.ctx);i.config.yaxis.map((function(r,o){-1!==i.globals.ignoreYAxisIndexes.indexOf(o)||r.floating||n.isYAxisHidden(o)||(r.opposite&&(i.globals.translateX=i.globals.translateX-(e[o].width+t[o].width)-parseInt(i.config.yaxis[o].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),at=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new it(this),this.dimYAxis=new rt(this),this.dimXAxis=new nt(this),this.dimGrid=new ot(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return n(t,[{key:"plotCoords",value:function(){var t=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.gridHeight=t.gridHeight-this.gridPad.top-this.gridPad.bottom,t.gridWidth=t.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var e=this.dimGrid.gridPadForColumnsInNumericAxis(t.gridWidth);t.gridWidth=t.gridWidth-2*e,t.translateX=t.translateX+this.gridPad.left+this.xPadLeft+(e>0?e+4:0),t.translateY=t.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,n=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();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:r[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,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,10)/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-a.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(s=0,l=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(s=0,l=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);var u=function(){i.translateX=s,i.gridHeight=i.svgHeight-t.lgRect.height-l-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-s};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,u();break;case"top":i.translateY=this.lgRect.height+c,u();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-s;break;case"right":i.translateY=c,i.translateX=s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-s-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,n),new G(this.ctx).setYAxisXPosition(n,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,n=0;t.config.legend.show&&!t.config.legend.floating&&(n=20);var r="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",o=i.plotOptions[r].offsetY,a=i.plotOptions[r].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=o,void(e.translateX=a+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=o-10,e.translateX=a+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+o+10,e.translateX=a+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-n,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=a+this.lgRect.width+n;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-n-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=o,e.translateX=a+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*(i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO)+(i.globals.rotateXLabels?22:10),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);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)}}]),t}(),st=function(){function t(i){e(this,t),this.w=i.w,this.lgCtx=i}return n(t,[{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.apexcharts-align-left, .apexcharts-legend.position-top.apexcharts-align-left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.position-bottom.apexcharts-align-center, .apexcharts-legend.position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.position-bottom.apexcharts-align-right, .apexcharts-legend.position-top.apexcharts-align-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 border-style: solid;\n }\t\n \t\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n display: inline-block;\t\n }\t\n .apexcharts-legend-series.apexcharts-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 .apexcharts-inactive-legend {\t\n opacity: 0.45;\t\n }");return t.appendChild(e),t}},{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:"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:"toggleDataSeries",value:function(t,e){var i=this,n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;var r=null,o=null;n.globals.risingSeries=[],n.globals.axisCharts?(r=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=parseInt(r.getAttribute("data:realIndex"),10)):(r=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),o=parseInt(r.getAttribute("rel"),10)-1),e?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,o)})):this.hideSeries({seriesEl:r,realIndex:o})}else{var a=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),s=n.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=n.config.plotOptions.pie.donut.labels;new v(this.lgCtx.ctx).pathMouseDown(a.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(a.members[0].node,l)}a.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,n=this.w,r=p.clone(n.config.series);if(n.globals.axisCharts){var o=!1;if(n.config.yaxis[i]&&n.config.yaxis[i].show&&n.config.yaxis[i].showAlways&&(o=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(n.globals.ancillaryCollapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){n.globals.collapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(i);var a=n.globals.risingSeries.indexOf(i);n.globals.risingSeries.splice(a,1)}}else n.globals.collapsedSeries.push({index:i,data:r[i]}),n.globals.collapsedSeriesIndices.push(i);for(var s=e.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"));n.globals.allSeriesCollapsed=n.globals.collapsedSeries.length===n.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w,r=p.clone(n.config.series);if(t.length>0){for(var o=0;o<t.length;o++)t[o].index===i&&(n.globals.axisCharts?(r[i].data=t[o].data.slice(),t.splice(o,1),e.splice(o,1),n.globals.risingSeries.push(i)):(r[i]=t[o].data,t.splice(o,1),e.splice(o,1),n.globals.risingSeries.push(i)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach((function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n].data=[])})):t.forEach((function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n]=0)})),t}}]),t}(),lt=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),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new st(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||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),p.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,n=e.globals.seriesNames,r=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var o=e.config.plotOptions.heatmap.colorScale.ranges;n=o.map((function(t){return t.name?t.name:t.from+" - "+t.to})),r=o.map((function(t){return t.color}))}else this.isBarsDistributed&&(n=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(n=e.config.legend.customLegendItems);for(var a=e.globals.legendFormatter,s=e.config.legend.inverseOrder,l=s?n.length-1:0;s?l>=0:l<=n.length-1;s?l--:l++){var c=a(n[l],{seriesIndex:l,w:e}),u=!1,h=!1;if(e.globals.collapsedSeries.length>0)for(var d=0;d<e.globals.collapsedSeries.length;d++)e.globals.collapsedSeries[d].index===l&&(u=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<e.globals.ancillaryCollapsedSeriesIndices.length;f++)e.globals.ancillaryCollapsedSeriesIndices[f]===l&&(h=!0);var g=document.createElement("span");g.classList.add("apexcharts-legend-marker");var m=e.config.legend.markers.offsetX,y=e.config.legend.markers.offsetY,b=e.config.legend.markers.height,_=e.config.legend.markers.width,w=e.config.legend.markers.strokeWidth,S=e.config.legend.markers.strokeColor,k=e.config.legend.markers.radius,A=g.style;A.background=r[l],A.color=r[l],A.setProperty("background",r[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(A.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(A.background=e.globals.seriesColors[l],A.color=e.globals.seriesColors[l]),A.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",A.width=Array.isArray(_)?parseFloat(_[l])+"px":parseFloat(_)+"px",A.left=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",A.top=(Array.isArray(y)?parseFloat(y[l]):parseFloat(y))+"px",A.borderWidth=Array.isArray(w)?w[l]:w,A.borderColor=Array.isArray(S)?S[l]:S,A.borderRadius=Array.isArray(k)?parseFloat(k[l])+"px":parseFloat(k)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(g.innerHTML=e.config.legend.markers.customHTML[l]()):g.innerHTML=e.config.legend.markers.customHTML()),v.setAttrs(g,{rel:l+1,"data:collapsed":u||h}),(u||h)&&g.classList.add("apexcharts-inactive-legend");var C=document.createElement("div"),T=document.createElement("span");T.classList.add("apexcharts-legend-text"),T.innerHTML=Array.isArray(c)?p.sanitizeDom(c.join(" ")):p.sanitizeDom(c);var E=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:e.config.legend.labels.colors;E||(E=e.config.chart.foreColor),T.style.color=E,T.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",T.style.fontWeight=e.config.legend.fontWeight,T.style.fontFamily=i||e.config.chart.fontFamily,v.setAttrs(T,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":u||h}),C.appendChild(g),C.appendChild(T);var O=new x(this.ctx);e.config.legend.showForZeroSeries||0===O.getSeriesTotalByIndex(l)&&O.seriesHaveSameValues(l)&&!O.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&C.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||O.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&C.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(C),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("position-"+e.config.legend.position),C.classList.add("apexcharts-legend-series"),C.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",v.setAttrs(C,{rel:l+1,seriesName:p.escapeString(n[l]),"data:collapsed":u||h}),(u||h)&&C.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||C.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{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 at(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.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=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(n.style.left="auto",n.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){n.style[t]&&(n.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new at(this.ctx),n=i.dimHelpers.getTitleSubtitleCoords("title"),r=i.dimHelpers.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-10),this.setLegendWrapXY(20,o)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.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||this.isBarsDistributed){if(i){var n=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new L(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new L(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,n="true"===t.target.getAttribute("data:collapsed"),r=this.w.config.chart.events.legendClick;"function"==typeof r&&r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var o=this.w.config.legend.markers.onClick;"function"==typeof o&&t.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,n)}}}]),t}(),ct=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return n(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},n=i();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=e.config.chart.toolbar.offsetY+"px",n.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(n),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(i());var o=[],a=function(i,n,r){var a=i.toLowerCase();t.t[a]&&e.config.chart.zoom.enabled&&o.push({el:n,icon:"string"==typeof t.t[a]?t.t[a]:r,title:t.localeValues[i],class:"apexcharts-".concat(a,"-icon")})};a("zoomIn",this.elZoomIn,'<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'),a("zoomOut",this.elZoomOut,'<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');var s=function(i){t.t[i]&&e.config.chart[i].enabled&&o.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<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>':'<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:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};s("zoom"),s("selection"),this.t.pan&&e.config.chart.zoom.enabled&&o.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:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),a("reset",this.elZoomReset,'<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>'),this.t.download&&o.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 l=0;l<this.elCustomIcons.length;l++)o.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});o.forEach((function(t,e){t.index&&p.moveIndexInArray(o,e,t.index)}));for(var c=0;c<o.length;c++)v.setAttrs(o[c].el,{class:o[c].class,title:o[c].title}),o[c].el.innerHTML=o[c].icon,n.appendChild(o[c].el);this._createHamburgerMenu(n),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),v.setAttrs(this.elMenu,{class:"apexcharts-menu"});var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||e.splice(2,1);for(var i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,v.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),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.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))}));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:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,n="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[n]=!e.w.globals[n],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)}))}},{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:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(e){e&&e.classList.remove(t.selectedClass)}))}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,n=(this.maxX+e)/2,r=this._getNewMinXMaxX(i,n);t.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),n=this.maxX-(e-this.maxX),r=this._getNewMinXMaxX(i,n);t.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var n={min:t,max:e},r=this.getBeforeZoomRange(n);r&&(n=r.xaxis);var o={xaxis:n},a=p.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(a=new V(this.ctx).autoScaleY(this.ctx,a,{xaxis:n})),i.config.chart.group||(o.yaxis=a),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,a)}}else this.handleZoomReset()}},{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(){var t=this;window.setTimeout((function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new W(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach((function(t){var e=t.w;if(e.globals.lastXAxis.min=void 0,e.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var n=t.ctx.series.emptyCollapsedSeries(p.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(n,e.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}(),ut=function(t){s(r,t);var i=h(r);function r(t){var n;return e(this,r),(n=i.call(this,t)).ctx=t,n.w=t.w,n.dragged=!1,n.graphics=new v(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.moveDirection="none",n}return n(r,[{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("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-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,a=i.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1);var s=e.target.classList;if(!(s.contains("apexcharts-selection-rect")||s.contains("apexcharts-legend-marker")||s.contains("apexcharts-legend-text")||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 l=n.gridRect.getBoundingClientRect();n.startX=n.clientX-l.left,n.startY=n.clientY-l.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 c=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-c.left,n.endY=n.clientY-c.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.panEnabled&&i.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),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({points:"l, r",pointSize:8,pointType:"rect"}).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=void 0===o?0:o,s=t.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,h=this.selectionRect;if(this.dragged||null!==c.globals.selection){var d={transform:"translate("+a+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),u.attr({x:e,y:i,width:n,height:r,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),v.setAttrs(u.node,d)),c.globals.selectionEnabled&&(h.attr({x:e,y:i,width:n>0?n:0,height:r>0?r:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),v.setAttrs(h.node,d))}}},{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=!1,u=!1,h=o.clientX-a.left-s,d=o.clientY-a.top-l;return Math.abs(h+s)>r.globals.gridWidth?h=r.globals.gridWidth-s:o.clientX-a.left<0&&(h=s),s>o.clientX-a.left&&(c=!0,h=Math.abs(h)),l>o.clientY-a.top&&(u=!0,d=Math.abs(d)),e="x"===n?{x:c?s-h:s,y:0,width:h,height:r.globals.gridHeight}:"y"===n?{x:0,y:u?l-d:l,width:r.globals.gridWidth,height:d}:{x:c?s-h:s,y:u?l-d:l,width:h,height: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);var s=function(t){return parseFloat(o.node.getAttribute(t))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};n.globals.selection=l,"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={xaxis:{min:n.globals.xAxisScale.niceMin+(e.left-t.left)*r.xRatio,max:n.globals.xAxisScale.niceMin+(e.right-t.left)*r.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*r.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(e.top-t.top)*r.yRatio[0]}};n.config.chart.events.selection(i.ctx,a),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(i.ctx,a)}),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=void 0,u=void 0;n.globals.isTimelineBar?(c=n.globals.yAxisScale[0].niceMin+r.startX*o.invertedYRatio,u=n.globals.yAxisScale[0].niceMin+r.endX*o.invertedYRatio):(c=n.globals.xAxisScale.niceMin+r.startX*o.xRatio,u=n.globals.xAxisScale.niceMin+r.endX*o.xRatio);var h=[],d=[];if(n.config.yaxis.forEach((function(t,e){h.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*r.startY),d.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*r.endY)})),r.dragged&&(r.dragX>10||r.dragY>10)&&c!==u)if(n.globals.zoomEnabled){var f=p.clone(n.globals.initialConfig.yaxis),g=p.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=n.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==i&&"x"!==i||(g={min:c,max:u}),"xy"!==i&&"y"!==i||f.forEach((function(t,e){f[e].min=d[e],f[e].max=h[e]})),n.config.chart.zoom.autoScaleYaxis){var m=new V(r.ctx);f=m.autoScaleY(r.ctx,f,{xaxis:g})}if(a){var v=a.getBeforeZoomRange(g,f);v&&(g=v.xaxis?v.xaxis:g,f=v.yaxis?v.yaxis:f)}var y={xaxis:g};n.config.chart.group||(y.yaxis=f),r.ctx.updateHelpers._updateOptions(y,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&a.zoomCallback(g,f)}else if(n.globals.selectionEnabled){var b,x=null;b={min:c,max:u},"xy"!==i&&"y"!==i||(x=p.clone(n.config.yaxis)).forEach((function(t,e){x[e].min=d[e],x[e].max=h[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=t.context,i=this.w,n=e;if(void 0!==i.globals.lastClientPosition.x){var r=i.globals.lastClientPosition.x-n.clientX,o=i.globals.lastClientPosition.y-n.clientY;Math.abs(r)>Math.abs(o)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(o)&&r<0?this.moveDirection="right":Math.abs(o)>Math.abs(r)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(r)&&o<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:n.clientX,y:n.clientY};var a=i.globals.isTimelineBar?i.globals.minY:i.globals.minX,s=i.globals.isTimelineBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||n.panScrolled(a,s)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,n=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+n,i=t.globals.maxX+n):"right"===this.moveDirection&&(e=t.globals.minX-n,i=t.globals.maxX-n),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,n=this.xyRatios,r=p.clone(i.globals.initialConfig.yaxis),o=n.xRatio,a=i.globals.minX,s=i.globals.maxX;i.globals.isTimelineBar&&(o=n.invertedYRatio,a=i.globals.minY,s=i.globals.maxY),"left"===this.moveDirection?(t=a+i.globals.gridWidth/15*o,e=s+i.globals.gridWidth/15*o):"right"===this.moveDirection&&(t=a-i.globals.gridWidth/15*o,e=s-i.globals.gridWidth/15*o),i.globals.isTimelineBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=a,e=s);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(r=new V(this.ctx).autoScaleY(this.ctx,r,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=r),this.updateScrolledChart(c,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var n=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),r}(ct),ht=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=this.w,a=o.globals.gridWidth,s=o.globals.gridHeight,l=a/(o.globals.dataPoints-1),c=s/o.globals.dataPoints,u=i.getBoundingClientRect(),h=this.hasBars();!o.globals.comboCharts&&!h||o.config.xaxis.convertedCatToNumeric||(l=a/o.globals.dataPoints);var d=n-u.left-o.globals.barPadForNumericAxis,f=r-u.top;d<0||f<0||d>o.globals.gridWidth||f>o.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var g=Math.round(d/l),m=Math.floor(f/c);h&&!o.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(d/l),g-=1);for(var v,y=null,b=null,x=[],_=0;_<o.globals.seriesXvalues.length;_++)x.push([o.globals.seriesXvalues[_][0]-1e-6].concat(o.globals.seriesXvalues[_]));return x=x.map((function(t){return t.filter((function(t){return t}))})),v=o.globals.seriesYvalues.map((function(t){return t.filter((function(t){return p.isNumber(t)}))})),o.globals.isXNumeric&&(y=(b=this.closestInMultiArray(d,f,x,v)).index,g=b.j,null!==y&&(x=o.globals.seriesXvalues[y],g=(b=this.closestInArray(d,x)).index)),o.globals.capturedSeriesIndex=null===y?-1:y,(!g||g<1)&&(g=0),o.globals.capturedDataPointIndex=g,{capturedSeries:y,j:o.globals.isBarHorizontal?m:g,hoverX:d,hoverY:f}}},{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],u=Math.abs(t-c),h=Math.abs(e-l),d=h+u;return n.map((function(r,o){r.map((function(r,l){var c=Math.abs(e-n[o][l]),f=Math.abs(t-i[o][l]),p=f+c;p<d&&(d=p,u=f,h=c,a=o,s=l)}))})),{index:a,j:s}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=t.map((function(t,e){return t.length>0?e:-1})),n=0;n<i.length;n++)if(-1!==i[n]){e=i[n];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 d(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=d(t)).sort((function(t,e){return Number(e.getAttribute("data:realIndex"))<Number(t.getAttribute("data:realIndex"))?0:-1}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{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-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{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("apexcharts-active"),n[r].style.display=e.config.tooltip.items.display):(n[r].classList.remove("apexcharts-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 ht(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,u=t.e,h=this.w;void 0!==h.config.tooltip.custom?this.handleCustomTooltip({i:o,j:s,y1:l,y2:c,w:h}):this.toggleActiveInactiveSeries(i);var d=this.getValuesToPrint({i:o,j:s});this.printLabels({i:o,j:s,values:d,ttItems:n,shared:i,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,n=t.i,r=t.j,o=t.values,s=t.ttItems,l=t.shared,c=t.e,u=this.w,h=[],d=function(t){return u.globals.seriesGoals[t]&&u.globals.seriesGoals[t][r]&&Array.isArray(u.globals.seriesGoals[t][r])},f=o.xVal,p=o.zVal,g=o.xAxisTTVal,m="",v=u.globals.colors[n];null!==r&&u.config.plotOptions.bar.distributed&&(v=u.globals.colors[r]);for(var y=function(t,o){var y=i.getFormatters(n);m=i.getSeriesName({fn:y.yLbTitleFormatter,index:n,seriesIndex:n,j:r}),"treemap"===u.config.chart.type&&(m=y.yLbTitleFormatter(String(u.config.series[n].data[r].x),{series:u.globals.series,seriesIndex:n,dataPointIndex:r,w:u}));var b=u.config.tooltip.inverseOrder?o:t;if(u.globals.axisCharts){var x=function(t){return y.yLbFormatter(u.globals.series[t][r],{series:u.globals.series,seriesIndex:t,dataPointIndex:r,w:u})};l?(y=i.getFormatters(b),m=i.getSeriesName({fn:y.yLbTitleFormatter,index:b,seriesIndex:n,j:r}),v=u.globals.colors[b],e=x(b),d(b)&&(h=u.globals.seriesGoals[b][r].map((function(t){return{attrs:t,val:y.yLbFormatter(t.value,{seriesIndex:b,dataPointIndex:r,w:u})}})))):(c&&c.target&&c.target.getAttribute("fill")&&(v=c.target.getAttribute("fill")),e=x(n),d(n)&&Array.isArray(u.globals.seriesGoals[n][r])&&(h=u.globals.seriesGoals[n][r].map((function(t){return{attrs:t,val:y.yLbFormatter(t.value,{seriesIndex:n,dataPointIndex:r,w:u})}}))))}null===r&&(e=y.yLbFormatter(u.globals.series[n],a(a({},u),{},{seriesIndex:n,dataPointIndex:n}))),i.DOMHandling({i:n,t:b,j:r,ttItems:s,values:{val:e,goalVals:h,xVal:f,xAxisTTVal:g,zVal:p},seriesName:m,shared:l,pColor:v})},b=0,x=u.globals.series.length-1;b<u.globals.series.length;b++,x--)y(b,x)}},{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){t.i;var e=t.t,i=t.j,n=t.ttItems,r=t.values,o=t.seriesName,a=t.shared,s=t.pColor,l=this.w,c=this.ttCtx;Object.keys(r).forEach((function(t){"string"==typeof r[t]&&(r[t]=p.sanitizeDom(r[t]))}));var u=r.val,h=r.goalVals,d=r.xVal,f=r.xAxisTTVal,g=r.zVal,m=null;m=n[e].children,l.config.tooltip.fillSeriesColor&&(n[e].style.backgroundColor=s,m[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=d),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=""!==f?f:d);var v=n[e].querySelector(".apexcharts-tooltip-text-y-label");v&&(v.innerHTML=o?p.sanitizeDom(o):"");var y=n[e].querySelector(".apexcharts-tooltip-text-y-value");y&&(y.innerHTML=void 0!==u?u:""),m[0]&&m[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]),m[0].style.backgroundColor=s),l.config.tooltip.marker.show||(m[0].style.display="none");var b=n[e].querySelector(".apexcharts-tooltip-text-goals-label"),x=n[e].querySelector(".apexcharts-tooltip-text-goals-value");if(h.length&&l.globals.seriesGoals[e]){var _=function(){var t="<div >",e="<div>";h.forEach((function(i,n){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")})),b.innerHTML=t+"</div>",x.innerHTML=e+"</div>"};a?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?_():(b.innerHTML="",x.innerHTML=""):_()}else b.innerHTML="",x.innerHTML="";null!==g&&(n[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,n[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==g?g:""),a&&m[0]&&(null==u||l.globals.collapsedSeriesIndices.indexOf(e)>-1?m[0].parentNode.style.display="none":m[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("apexcharts-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="",s=null,l=null,c={series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n},u=n.globals.ttZFormatter;null===i?l=n.globals.series[e]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(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 o=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new B(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new I(this.ctx).formatDate,w:this.w}):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](h,c):n.globals.xLabelFormatter(h,c),void 0!==n.config.tooltip.x.formatter&&(o=n.globals.ttKeyFormatter(h,c)),n.globals.seriesZ.length>0&&n.globals.seriesZ[e].length>0&&(s=u(n.globals.seriesZ[e][i],n)),a="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(h,c):o,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(a)?a.join(" "):a,zVal:s}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,r=t.y2,o=t.w,a=this.ttCtx.getElTooltip(),s=o.config.tooltip.custom;Array.isArray(s)&&s[e]&&(s=s[e]),a.innerHTML=s({ctx:this.ctx,series:o.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:r,w:o})}}]),t}(),ft=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),null!==r&&(r.setAttribute("x",o),r.setAttribute("x1",o),r.setAttribute("x2",o),r.setAttribute("y2",n.globals.gridHeight),r.classList.add("apexcharts-active")),o<0&&(o=0),o>n.globals.gridWidth&&(o=n.globals.gridWidth),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&&v.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&v.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("apexcharts-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 v(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"),10),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("apexcharts-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("apexcharts-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 u=r.getElGrid(),h=u.getBoundingClientRect();c=r.e.clientY+n.globals.translateY-h.top-a.ttHeight/2}else n.globals.isBarHorizontal?c-=a.ttHeight:(a.ttHeight/2+c>n.globals.gridHeight&&(c=n.globals.gridHeight-a.ttHeight+n.globals.translateY),c<0&&(c=0));isNaN(l)||(l+=n.globals.translateX,o.style.left=l+"px",o.style.top=c+"px")}},{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"),10)===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=o.tooltipUtil.getHoverMarkerSize(e),l=r.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=a[e][t][0],n=a[e][t][1]?a[e][t][1]:0;var c=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&n<r.globals.gridHeight&&n>0&&(c.setAttribute("r",s),c.setAttribute("cx",i),c.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 L(this.ctx).getActiveConfigSeriesIndex(!0);var s=i.tooltipUtil.getHoverMarkerSize(e);a[e]&&(r=a[e][t][0],o=a[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<n.globals.series.length;c++){var u=a[c];if(n.globals.comboCharts&&void 0===u&&l.splice(c,0,null),u&&u.length){var h=a[c][t][1];l[c].setAttribute("cx",r),null!==h&&!isNaN(h)&&h<n.globals.gridHeight&&h>0?(l[c]&&l[c].setAttribute("r",s),l[c]&&l[c].setAttribute("cy",h)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(r),!i.fixedTooltip){var d=o||n.globals.gridHeight;this.moveTooltip(r,d,s)}}},{key:"moveStickyTooltipOverBars",value:function(t){var e=this.w,i=this.ttCtx,n=e.globals.columnSeries?e.globals.columnSeries.length:e.globals.series.length,r=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;e.globals.isBarHorizontal&&(r=new L(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']")),a=o?parseFloat(o.getAttribute("cx")):0,s=o?parseFloat(o.getAttribute("cy")):0,l=o?parseFloat(o.getAttribute("barWidth")):0,c=o?parseFloat(o.getAttribute("barHeight")):0,u=i.getElGrid().getBoundingClientRect();if(e.globals.isXNumeric?(a-=n%2!=0?l/2:0,o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"))&&e.globals.comboCharts&&(a-=l/2)):e.globals.isBarHorizontal||(a=i.xAxisTicksPositions[t-1]+i.dataPointsDividedWidth/2,isNaN(a)&&(a=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2)),e.globals.isBarHorizontal?s+=c/3:s=i.e.clientY-u.top-i.tooltipRect.ttHeight/2,e.globals.isBarHorizontal||this.moveXCrosshairs(a),!i.fixedTooltip){var h=s||e.globals.gridHeight;this.moveTooltip(a,h)}}}]),t}(),pt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx,this.tooltipPosition=new ft(i)}return n(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new v(this.ctx),i=new T(this.ctx),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=d(n),t.config.chart.stacked&&n.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var r=0;r<n.length;r++){var o=n[r].querySelector(".apexcharts-series-markers-wrap");if(null!==o){var a=void 0,s="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||(s+=" no-pointer-events");var l=i.getMarkerConfig(s,r);(a=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(a.node),o.appendChild(c)}}}},{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(),l=s.getBoundingClientRect();o=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(o,a,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,n=this.ttCtx,r=t,o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),a=e.config.markers.hover.size,s=0;s<o.length;s++){var l=o[s].getAttribute("rel"),c=o[s].getAttribute("index");if(void 0===a&&(a=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),r===parseInt(l,10)){i.newPointSize(r,o[s]);var u=o[s].getAttribute("cx"),h=o[s].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(u),n.fixedTooltip||i.tooltipPosition.moveTooltip(u,h,a)}else i.oldPointSize(o[s])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size,r=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==r.getAttribute("default-marker-size")){var o=parseInt(r.getAttribute("index"),10);void 0===n&&(n=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),n<0&&(n=0),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"));p.isNumber(i)&&i>=0?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:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,n=t.x,r=t.y,o=t.type,a=this.ttCtx,s=this.w;if(e.target.classList.contains("apexcharts-".concat(o,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),u=this.getAttr(e,"cx"),h=this.getAttr(e,"cy"),d=this.getAttr(e,"width"),f=this.getAttr(e,"height");if(a.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:e}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,n=u+a.tooltipRect.ttWidth/2+d,r=h+a.tooltipRect.ttHeight/2-f/2,a.tooltipPosition.moveXCrosshairs(u+d/2),n>s.globals.gridWidth/2&&(n=u-a.tooltipRect.ttWidth/2+d),a.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();n=s.globals.clientX-p.left-a.tooltipRect.ttWidth/2,r=s.globals.clientY-p.top-a.tooltipRect.ttHeight-5}}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"),10),u=parseInt(r.paths.getAttribute("cy"),10),h=parseFloat(r.paths.getAttribute("val"));if(i=parseInt(r.paths.getAttribute("rel"),10),e=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var d=p.findAncestor(r.paths,"apexcharts-series");d&&(e=parseInt(d.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:i,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:n}),"mouseup"===n.type&&l.markerClick(n,e,i),s.globals.capturedSeriesIndex=e,s.globals.capturedDataPointIndex=i,o=c,a=u+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}h<0&&(a=u),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,u=0,h=this.getBarTooltipXY({e:n,opt:r});e=h.i;var d=h.barHeight,f=h.j;o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=f,o.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||!o.config.tooltip.shared?(c=h.x,u=h.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(u)?u=o.globals.svgHeight-a.tooltipRect.ttHeight:u<0&&(u=0);var p=parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),g=o.globals.isMultipleYAxis?o.config.yaxis[p]&&o.config.yaxis[p].reversed:o.config.yaxis[0].reversed;if(c+a.tooltipRect.ttWidth>o.globals.gridWidth&&!g?c-=a.tooltipRect.ttWidth:c<0&&(c=0),a.w.config.tooltip.followCursor){var m=a.getElGrid().getBoundingClientRect();u=a.e.clientY-m.top}null===a.tooltip&&(a.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?a.tooltipPosition.moveXCrosshairs(l+i/2):a.tooltipPosition.moveXCrosshairs(l)),!a.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&a.tooltipUtil.hasBars())&&(g&&(c-=a.tooltipRect.ttWidth)<0&&(c=0),s.style.left=c+o.globals.translateX+"px",!g||o.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||(u=u+d-2*(o.globals.series[e][f]<0?d:0)),a.tooltipRect.ttHeight+u>o.globals.gridHeight?(u=o.globals.gridHeight-a.tooltipRect.ttHeight+o.globals.translateY,s.style.top=u+"px"):s.style.top=u+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,u=0,h=e.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var d=e.target,f=d.getBoundingClientRect(),p=i.elGrid.getBoundingClientRect(),g=f.height;u=f.height;var m=f.width,v=parseInt(d.getAttribute("cx"),10),y=parseInt(d.getAttribute("cy"),10);c=parseFloat(d.getAttribute("barWidth"));var b="touchmove"===e.type?e.touches[0].clientX:e.clientX;r=parseInt(d.getAttribute("j"),10),a=parseInt(d.parentNode.getAttribute("rel"),10)-1;var x=d.getAttribute("data-range-y1"),_=d.getAttribute("data-range-y2");n.globals.comboCharts&&(a=parseInt(d.parentNode.getAttribute("data:realIndex"),10)),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:a,j:r,y1:x?parseInt(x,10):null,y2:_?parseInt(_,10):null,shared:!o.showOnIntersect&&n.config.tooltip.shared,e:e}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(s=b-p.left+15,l=y-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-m/2:v-o.dataPointsDividedWidth+m/2,l=e.clientY-p.top-o.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((s=v)<o.xyRatios.baseLineInvertedY&&(s=v-o.tooltipRect.ttWidth),l=y-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-m/2:v-o.dataPointsDividedWidth+m/2,l=y)}return{x:s,y:l,barHeight:u,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:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;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+" apexcharts-theme-"+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;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+t.config.tooltip.theme),o.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=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,10),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.yaxisTooltips[t]){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}(),vt=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 ht(this),this.tooltipLabels=new dt(this),this.tooltipPosition=new ft(this),this.marker=new pt(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.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.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("apexcharts-theme-".concat(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 q(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"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,i=this.w,n=[],r=this.getElTooltip(),o=function(o){var a=document.createElement("div");a.classList.add("apexcharts-tooltip-series-group"),a.style.order=i.config.tooltip.inverseOrder?t-o:o+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(o)<0&&a.classList.add("apexcharts-tooltip-series-group-hidden");var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=i.globals.colors[o],a.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(n),l.appendChild(e)})),a.appendChild(l),r.appendChild(a),n.push(a)},a=0;a<t;a++)o(a);return n}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),n=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),r="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,o=t.globals.dom.Paper.node,a=this.getElGrid();a&&(this.seriesBound=a.getBoundingClientRect());var s,l=[],c=[],u={hoverArea:o,elGrid:a,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(r?s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var h=0;h<s.length;h++)l.push(s[h].getAttribute("cy")),c.push(s[h].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],u);else if(n&&!t.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var d=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(d,u)}if(this.showOnIntersect){var f=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{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,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(o=o+t.globals.svgWidth-n+10),s.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:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,n=function(n){var r={paths:t[n],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[n].addEventListener(e,i.seriesHover.bind(i,r),{capture:!1,passive:!0})}))},r=0;r<t.length;r++)n(r)}},{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.tooltipUtil.hasBars()||o.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new L(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=t.e,r=t.opt,o=this.w,a=r.elGrid.getBoundingClientRect(),s="touchmove"===n.type?n.touches[0].clientX:n.clientX,l="touchmove"===n.type?n.touches[0].clientY:n.clientY;if(this.clientY=l,this.clientX=s,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,l<a.top||l>a.top+a.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var c=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(r)}var u=this.getElTooltip(),h=this.getElXCrosshairs(),d=o.globals.xyCharts||"bar"===o.config.chart.type&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===n.type||"touchmove"===n.type||"mouseup"===n.type){null!==h&&h.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),d&&!this.showOnIntersect)this.handleStickyTooltip(n,s,l,r);else if("heatmap"===o.config.chart.type||"treemap"===o.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:n,opt:r,x:e,y:i,type:o.config.chart.type});e=p.x,i=p.y,u.style.left=e+"px",u.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:r,x:e,y:i});if(this.yaxisTooltips.length)for(var g=0;g<o.config.yaxis.length;g++)this.axesTooltip.drawYaxisTooltipText(g,l,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(r)}}},{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("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o,10)-1,shared:!1});var l=r.globals.clientX-s.left-n.ttWidth/2,c=r.globals.clientY-s.top-n.ttHeight-10;if(a.style.left=l+"px",a.style.top=c+"px",r.config.legend.tooltipHoverFormatter){var u=o-1,h=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:r});this.legendLabels[u].innerHTML=h}}else"mouseout"!==e.type&&"touchend"!==e.type||(a.classList.remove("apexcharts-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})))}},{key:"handleStickyTooltip",value:function(t,e,i,n){var r=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:e,clientY:i}),a=o.j,s=o.capturedSeries;o.hoverX<0||o.hoverX>r.globals.gridWidth?this.handleMouseOut(n):null!==s?this.handleStickyCapturedSeries(t,s,n,a):(this.tooltipUtil.isXoverlap(a)||r.globals.isBarHorizontal)&&this.create(t,this,0,a,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(t,e,i,n){var r=this.w;null===r.globals.series[e][n]?this.handleMouseOut(i):void 0!==r.globals.series[e][n]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,n,i.ttItems):this.create(t,this,e,n,i.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&this.create(t,this,0,n,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new v(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("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){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("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{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.events.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.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(a.config.legend.tooltipHoverFormatter){var u=a.config.legend.tooltipHoverFormatter,h=Array.from(this.legendLabels);h.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var d=0;d<h.length;d++){var f=h[d],p=parseInt(f.getAttribute("i"),10),g=decodeURIComponent(f.getAttribute("data:default-text")),m=u(g,{seriesIndex:o?p:i,dataPointIndex:n,w:a});if(o)f.innerHTML=a.globals.collapsedSeriesIndices.indexOf(p)<0?m:g;else if(f.innerHTML=p===i?m:g,i===p)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.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var y=new v(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++)y.pathMouseEnter(b[x])}}else s.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:r,i:i,j:n}),this.tooltipUtil.hasBars()&&s.tooltipPosition.moveStickyTooltipOverBars(n),l&&s.tooltipPosition.moveMarkers(i,n)}}]),t}(),yt=function(t){s(r,t);var i=h(r);function r(){return e(this,r),i.apply(this,arguments)}return n(r,[{key:"draw",value:function(t,e){var i=this,n=this.w;this.graphics=new v(this.ctx),this.bar=new M(this.ctx,this.xyRatios);var r=new x(this.ctx,n);t=r.getLogSeries(t),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===n.config.chart.stackType&&(t=n.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 o=0;o<t.length;o++)t[o].length>0&&(this.totalItems+=t[o].length);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),l=0,c=0,u=function(r,o){var u=void 0,h=void 0,d=void 0,f=void 0,g=[],m=[],v=n.globals.comboCharts?e[r]:r;i.yRatio.length>1&&(i.yaxisIndex=v),i.isReversed=n.config.yaxis[i.yaxisIndex]&&n.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[v]),rel:r+1,"data:realIndex":v});i.ctx.series.addCollapsedClassToSeries(y,v);var b=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),x=0,_=0,w=i.initialPositions(l,c,u,h,d,f);c=w.y,x=w.barHeight,h=w.yDivision,f=w.zeroW,l=w.x,_=w.barWidth,u=w.xDivision,d=w.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[],1===i.prevY.length&&i.prevY[0].every((function(t){return isNaN(t)}))&&(i.prevY[0]=i.prevY[0].map((function(t){return d})),i.prevYF[0]=i.prevYF[0].map((function(t){return 0})));for(var S=0;S<n.globals.dataPoints;S++){var k=i.barHelpers.getStrokeWidth(r,S,v),A={indexes:{i:r,j:S,realIndex:v,bc:o},strokeWidth:k,x:l,y:c,elSeries:y},C=null;i.isHorizontal?(C=i.drawStackedBarPaths(a(a({},A),{},{zeroW:f,barHeight:x,yDivision:h})),_=i.series[r][S]/i.invertedYRatio):(C=i.drawStackedColumnPaths(a(a({},A),{},{xDivision:u,barWidth:_,zeroH:d})),x=i.series[r][S]/i.yRatio[i.yaxisIndex]),c=C.y,l=C.x,g.push(l),m.push(c);var T=i.barHelpers.getPathFillColor(t,r,S,v);y=i.renderSeries({realIndex:v,pathFill:T,j:S,i:r,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:k,elSeries:y,x:l,y:c,series:t,barHeight:x,barWidth:_,elDataLabelsWrap:b,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=m,i.prevY.push(i.yArrj),i.prevYF.push(i.yArrjF),i.prevYVal.push(i.yArrjVal),i.prevX.push(i.xArrj),i.prevXF.push(i.xArrjF),i.prevXVal.push(i.xArrjVal),s.add(y)},h=0,d=0;h<t.length;h++,d++)u(h,d);return s}},{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,10)/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&&l.globals.dataPoints>1?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:s*parseInt(l.config.plotOptions.bar.columnWidth,10)/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:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,n=t.barHeight,r=t.strokeWidth,o=t.zeroW,a=t.x,s=t.y,l=t.yDivision,c=t.elSeries,u=this.w,h=s,d=i.i,f=i.j,p=0,g=0;g<this.prevXF.length;g++)p+=this.prevXF[g][f];if(d>0){var m=o;this.prevXVal[d-1][f]<0?m=this.series[d][f]>=0?this.prevX[d-1][f]+p-2*(this.isReversed?p:0):this.prevX[d-1][f]:this.prevXVal[d-1][f]>=0&&(m=this.series[d][f]>=0?this.prevX[d-1][f]:this.prevX[d-1][f]-p+2*(this.isReversed?p:0)),e=m}else e=o;a=null===this.series[d][f]?e:e+this.series[d][f]/this.invertedYRatio-2*(this.isReversed?this.series[d][f]/this.invertedYRatio:0);var v=this.barHelpers.getBarpaths({barYPosition:h,barHeight:n,x1:e,x2:a,strokeWidth:r,series:this.series,realIndex:i.realIndex,i:d,j:f,w:u});return this.barHelpers.barBackground({j:f,i:d,y1:h,y2:n,elSeries:c}),s+=l,{pathTo:v.pathTo,pathFrom:v.pathFrom,x:a,y:s}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,r=t.xDivision,o=t.barWidth,a=t.zeroH,s=(t.strokeWidth,t.elSeries),l=this.w,c=e.i,u=e.j,h=e.bc;if(l.globals.isXNumeric){var d=l.globals.seriesX[c][u];d||(d=0),i=(d-l.globals.minX)/this.xRatio-o/2}for(var f,p=i,g=0,m=0;m<this.prevYF.length;m++)g+=isNaN(this.prevYF[m][u])?0:this.prevYF[m][u];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][u]===l.globals.seriesX[c][u]){var v,y,b=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var x=1;x<b;x++)if(!isNaN(this.prevY[c-x][u])){y=this.prevY[c-x][u];break}for(var _=1;_<b;_++){if(this.prevYVal[c-_][u]<0){v=this.series[c][u]>=0?y-g+2*(this.isReversed?g:0):y;break}if(this.prevYVal[c-_][u]>=0){v=this.series[c][u]>=0?y:y+g-2*(this.isReversed?g:0);break}}void 0===v&&(v=l.globals.gridHeight),f=this.prevYF[0].every((function(t){return 0===t}))&&this.prevYF.slice(1,c).every((function(t){return t.every((function(t){return isNaN(t)}))}))?l.globals.gridHeight-a:v}else f=l.globals.gridHeight-a;n=f-this.series[c][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][u]/this.yRatio[this.yaxisIndex]:0);var w=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:o,y1:f,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:e.realIndex,i:c,j:u,w:l});return this.barHelpers.barBackground({bc:h,j:u,i:c,x1:p,x2:o,elSeries:s}),i+=r,{pathTo:w.pathTo,pathFrom:w.pathFrom,x:l.globals.isXNumeric?i-r:i,y:n}}}]),r}(M),bt=function(t){s(r,t);var i=h(r);function r(){return e(this,r),i.apply(this,arguments)}return n(r,[{key:"draw",value:function(t,e){var i=this,n=this.w,r=new v(this.ctx),o=new C(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot;var a=new x(this.ctx,n);t=a.getLogSeries(t),this.series=t,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var s=r.group({class:"apexcharts-".concat(n.config.chart.type,"-series apexcharts-plot-series")}),l=function(a){i.isBoxPlot="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[a].type;var l,c,u,h,d=void 0,f=void 0,g=[],m=[],v=n.globals.comboCharts?e[a]:a,y=r.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[v]),rel:a+1,"data:realIndex":v});t[a].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=v);var b=i.barHelpers.initialPositions();f=b.y,u=b.barHeight,d=b.x,h=b.barWidth,l=b.xDivision,c=b.zeroH,m.push(d+h/2);for(var x=r.group({class:"apexcharts-datalabels","data:realIndex":v}),_=function(e){var r=i.barHelpers.getStrokeWidth(a,e,v),s=i.drawBoxPaths({indexes:{i:a,j:e,realIndex:v},x:d,y:f,xDivision:l,barWidth:h,zeroH:c,strokeWidth:r,elSeries:y});f=s.y,d=s.x,e>0&&m.push(d+h/2),g.push(f),s.pathTo.forEach((function(l,c){var p=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?s.color[c]:n.globals.stroke.colors[a],g=o.fillPath({seriesNumber:v,dataPointIndex:e,color:s.color[c],value:t[a][e]});i.renderSeries({realIndex:v,pathFill:g,lineFill:p,j:e,i:a,pathFrom:s.pathFrom,pathTo:l,strokeWidth:r,elSeries:y,x:d,y:f,series:t,barHeight:u,barWidth:h,elDataLabelsWrap:x,visibleSeries:i.visibleI,type:n.config.chart.type})}))},w=0;w<n.globals.dataPoints;w++)_(w);n.globals.seriesXvalues[v]=m,n.globals.seriesYvalues[v]=g,s.add(y)},c=0;c<t.length;c++)l(c);return s}},{key:"drawBoxPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.y,t.xDivision),r=t.barWidth,o=t.zeroH,a=t.strokeWidth,s=this.w,l=new v(this.ctx),c=e.i,u=e.j,h=!0,d=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[this.yaxisIndex],m=e.realIndex,y=this.getOHLCValue(m,u),b=o,x=o;y.o>y.c&&(h=!1);var _=Math.min(y.o,y.c),w=Math.max(y.o,y.c),S=y.m;s.globals.isXNumeric&&(i=(s.globals.seriesX[m][u]-s.globals.minX)/this.xRatio-r/2);var k=i+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(_=o,w=o):(_=o-_/g,w=o-w/g,b=o-y.h/g,x=o-y.l/g,S=o-y.m/g);var A=l.move(k,o),C=l.move(k+r/2,_);return s.globals.previousPaths.length>0&&(C=this.getPreviousPath(m,u,!0)),A=this.isBoxPlot?[l.move(k,_)+l.line(k+r/2,_)+l.line(k+r/2,b)+l.line(k+r/4,b)+l.line(k+r-r/4,b)+l.line(k+r/2,b)+l.line(k+r/2,_)+l.line(k+r,_)+l.line(k+r,S)+l.line(k,S)+l.line(k,_+a/2),l.move(k,S)+l.line(k+r,S)+l.line(k+r,w)+l.line(k+r/2,w)+l.line(k+r/2,x)+l.line(k+r-r/4,x)+l.line(k+r/4,x)+l.line(k+r/2,x)+l.line(k+r/2,w)+l.line(k,w)+l.line(k,S)+"z"]:[l.move(k,w)+l.line(k+r/2,w)+l.line(k+r/2,b)+l.line(k+r/2,w)+l.line(k+r,w)+l.line(k+r,_)+l.line(k+r/2,_)+l.line(k+r/2,x)+l.line(k+r/2,_)+l.line(k,_)+l.line(k,w-a/2)],C+=l.move(k,_),s.globals.isXNumeric||(i+=n),{pathTo:A,pathFrom:C,x:i,y:w,barXPosition:k,color:this.isBoxPlot?p:h?[d]:[f]}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),r}(M),xt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,n){var r=this.w,o=1,a=r.config.plotOptions[t].shadeIntensity,s=this.determineColor(t,e,i);r.globals.hasNegs||n?o=r.config.plotOptions[t].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*a):(1-s.percent/100)*(1.25*a):s.percent<=0?1-(1+s.percent/100)*a:(1-s.percent/100)*a:(o=1-s.percent/100,"treemap"===t&&(o=(1-s.percent/100)*(1.25*a)));var l=s.color,c=new p;return r.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?p.hexToRgba(c.shadeColor(-1*o,s.color),r.config.fill.opacity):p.hexToRgba(c.shadeColor(o,s.color),r.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(t,e,i){var n=this.w,r=n.globals.series[e][i],o=n.config.plotOptions[t],a=o.colorScale.inverse?i:e;n.config.plotOptions[t].distributed&&(a=i);var s=n.globals.colors[a],l=null,c=Math.min.apply(Math,d(n.globals.series[e])),u=Math.max.apply(Math,d(n.globals.series[e]));o.distributed||"heatmap"!==t||(c=n.globals.minY,u=n.globals.maxY),void 0!==o.colorScale.min&&(c=o.colorScale.min<n.globals.minY?o.colorScale.min:n.globals.minY,u=o.colorScale.max>n.globals.maxY?o.colorScale.max:n.globals.maxY);var h=Math.abs(u)+Math.abs(c),f=100*r/(0===h?h-1e-6:h);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map((function(t,e){if(r>=t.from&&r<=t.to){s=t.color,l=t.foreColor?t.foreColor:null,c=t.from,u=t.to;var i=Math.abs(u)+Math.abs(c);f=100*r/(0===i?i-1e-6:i)}})),{color:s,foreColor:l,percent:f}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,n=t.y,r=t.i,o=t.j,a=t.colorProps,s=t.fontSize,l=this.w.config.dataLabels,c=new v(this.ctx),u=new O(this.ctx),h=null;if(l.enabled){h=c.group({class:"apexcharts-data-labels"});var d=l.offsetX,f=l.offsetY,p=i+d,g=n+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:g,text:e,i:r,j:o,color:a.foreColor,parent:h,fontSize:s,dataLabelsConfig:l})}return h}},{key:"addListeners",value:function(t){var e=new v(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),_t=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new xt(i),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new v(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.negRange=this.helpers.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 u=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:p.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),e.config.chart.dropShadow.enabled){var h=e.config.chart.dropShadow;new m(this.ctx).dropShadow(u,h,c)}for(var d=0,f=e.config.plotOptions.heatmap.shadeIntensity,g=0;g<l[c].length;g++){var y=this.helpers.getShadeColor(e.config.chart.type,c,g,this.negRange),b=y.color,x=y.colorProps;"image"===e.config.fill.type&&(b=new C(this.ctx).fillPath({seriesNumber:c,dataPointIndex:g,opacity:e.globals.hasNegs?x.percent<0?1-(1+x.percent/100):f+x.percent/100:x.percent/100,patternID:p.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:r,height:e.config.fill.image.height?e.config.fill.image.height:o}));var _=this.rectRadius,w=i.drawRect(d,a,r,o,_);if(w.attr({cx:d,cy:a}),w.node.classList.add("apexcharts-heatmap-rect"),u.add(w),w.attr({fill:b,i:c,index:c,j:g,val:l[c][g],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?b:e.globals.stroke.colors[0],color:b}),this.helpers.addListeners(w),e.config.chart.animations.enabled&&!e.globals.dataChanged){var S=1;e.globals.resized||(S=e.config.chart.animations.speed),this.animateHeatMap(w,d,a,r,o,S)}if(e.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){k=this.dynamicAnim.speed;var A=e.globals.previousPaths[c]&&e.globals.previousPaths[c][g]&&e.globals.previousPaths[c][g].color;A||(A="rgba(255, 255, 255, 0)"),this.animateHeatColor(w,p.isColorHex(A)?A:p.rgb2hex(A),p.isColorHex(b)?b:p.rgb2hex(b),k)}}var T=(0,e.config.dataLabels.formatter)(e.globals.series[c][g],{value:e.globals.series[c][g],seriesIndex:c,dataPointIndex:g,w:e}),E=this.helpers.calculateDataLabels({text:T,x:d+r/2,y:a+o/2,i:c,j:g,colorProps:x,series:l});null!==E&&u.add(E),d+=r}a+=o,n.add(u)}var O=e.globals.yAxisScale[0].result.slice();e.config.yaxis[0].reversed?O.unshift(""):O.push(""),e.globals.yAxisScale[0].result=O;var P=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-P/2,n}},{key:"animateHeatMap",value:function(t,e,i,n,r,o){var a=new g(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}(),wt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawYAxisTexts",value:function(t,e,i,n){var r=this.w,o=r.config.yaxis[0],a=r.globals.yLabelFormatters[0];return new v(this.ctx).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:Array.isArray(o.labels.style.colors)?o.labels.style.colors[i]:o.labels.style.colors})}}]),t}(),St=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.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,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new v(this.ctx);if(this.ret=n.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var r=0,o=0;o<t.length;o++)r+=p.negToZero(t[o]);var a=[],s=n.group();0===r&&(r=1e-5),t.forEach((function(t){e.maxY=Math.max(e.maxY,t)})),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<t.length;l++){var c=this.fullAngle*p.negToZero(t[l])/r;a.push(c),"polarArea"===this.chartType?(a[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var u,h=0,d=0;d<i.globals.previousPaths.length;d++)h+=p.negToZero(i.globals.previousPaths[d]);for(var f=0;f<i.globals.previousPaths.length;f++)u=this.fullAngle*p.negToZero(i.globals.previousPaths[f])/h,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0);var g=i.config.plotOptions.pie.customScale,m=i.globals.gridWidth/2,y=i.globals.gridHeight/2,b=m-i.globals.gridWidth/2*g,x=y-i.globals.gridHeight/2*g;if("donut"===this.chartType){var _=n.drawCircle(this.donutSize);_.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),s.add(_)}var w=this.drawArcs(a,t);if(this.sliceLabels.forEach((function(t){w.add(t)})),s.attr({transform:"translate(".concat(b,", ").concat(x,") scale(").concat(g,")")}),s.add(w),this.ret.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});this.ret.add(S)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,n=new m(this.ctx),r=new v(this.ctx),o=new C(this.ctx),a=r.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var h=0;h<t.length;h++){var d=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:p.escapeString(i.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});a.add(d),l=u,c=(s=c)+t[h],u=l+this.prevSectorAngleArr[h];var f=c<s?this.fullAngle+c-s:c-s,g=o.fillPath({seriesNumber:h,size:this.sliceSizes[h],value:e[h]}),y=this.getChangedPath(l,u),b=r.drawPath({d:y,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[h]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h)});if(b.attr({index:0,j:h}),n.setSelectionFilter(b,0,h),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;n.dropShadow(b,x,h)}this.addListeners(b,this.donutDataLabels),v.setAttrs(b.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":e[h]});var _={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?_=p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(_=p.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),d.add(b);var w=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(w=f/this.fullAngle*i.config.chart.animations.speed)&&(w=1),this.animDur=w+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:this.sliceSizes[h],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:h,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:this.sliceSizes[h],endAngle:c,startAngle:s,i:h,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:w}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&b.click(this.pieClicked.bind(this,h)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(h)>-1&&this.pieClicked(h),i.config.dataLabels.enabled){var S=_.x,k=_.y,A=100*f/this.fullAngle+"%";if(0!==f&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[h]){var T=i.config.dataLabels.formatter;void 0!==T&&(A=T(i.globals.seriesPercent[h][0],{seriesIndex:h,w:i}));var E=i.globals.dataLabels.style.colors[h],O=r.group({class:"apexcharts-datalabels"}),P=r.drawText({x:S,y:k,text:A,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:E});if(O.add(P),i.config.dataLabels.dropShadow.enabled){var L=i.config.dataLabels.dropShadow;n.dropShadow(P,L)}P.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(P.node.classList.add("apexcharts-pie-label-delay"),P.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 v(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?this.fullAngle+e.endAngle-e.startAngle: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?this.fullAngle+e.prevEndAngle-e.prevStartAngle: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 g(this.ctx),u=o.size;(isNaN(e)||isNaN(r))&&(e=i,r=n,o.dur=0);var h=n,d=i,f=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(a=s.getPiePath({me:s,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:u}),t.attr({d:a})),0!==o.dur?t.animate(o.dur,l.globals.easing,o.animBeginArr[o.i]).afterAll((function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),o.i===l.config.series.length-1&&c.animationCompleted(t)})).during((function(l){h=f+(n-f)*l,o.animateStartingPos&&(h=r+(n-r)*l,d=e-r+(i-(e-r))*l),a=s.getPiePath({me:s,startAngle:d,angle:h,size:u}),t.node.setAttribute("data:pathOrig",a),t.attr({d:a})})):(a=s.getPiePath({me:s,startAngle:d,angle:n,size:u}),o.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",a),t.attr({d:a,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this,r=n.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),o=i.globals.dom.Paper.select(".apexcharts-".concat(n.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==o.attr("data:pieClicked")){var a=i.globals.dom.baseEl.getElementsByClassName("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)})),o.attr("data:pieClicked","true");var s=parseInt(o.attr("data:startAngle"),10),l=parseInt(o.attr("data:angle"),10);e=n.getPiePath({me:n,startAngle:s,angle:l,size:r}),360!==l&&o.plot(e)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var c=o.attr("data:pathOrig");o.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=i,a=Math.PI*(o-90)/180,s=n+i;Math.ceil(s)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(s=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(s)>this.fullAngle&&(s-=this.fullAngle);var l=Math.PI*(s-90)/180,c=e.centerX+r*Math.cos(a),u=e.centerY+r*Math.sin(a),h=e.centerX+r*Math.cos(l),d=e.centerY+r*Math.sin(l),f=p.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),g=p.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),m=n>180?1:0,v=["M",c,u,"A",r,r,0,m,1,h,d];return"donut"===e.chartType?[].concat(v,["L",f.x,f.y,"A",e.donutSize,e.donutSize,0,m,0,g.x,g.y,"L",c,u,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(v,["L",e.centerX,e.centerY,"L",c,u]).join(" "):[].concat(v).join(" ")}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new V(this.ctx),n=new v(this.ctx),r=new wt(this.ctx),o=n.group(),a=n.group(),s=i.niceScale(0,Math.ceil(this.maxY),e.config.yaxis[0].tickAmount,0,!0),l=s.result.reverse(),c=s.result.length;this.maxY=s.niceMax;for(var u=e.globals.radialSize,h=u/(c-1),d=0;d<c-1;d++){var f=n.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var p=r.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,d,l[d]);a.add(p)}o.add(f),u-=h}this.drawSpokes(t),t.add(o),t.add(a)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,n=new v(this.ctx),r=n.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),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;var u=t.name.fontSize,h=t.name.fontFamily,d=t.value.fontWeight;s=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",g="";if(o?(a=t.total.color,u=t.total.fontSize,h=t.total.fontFamily,d=t.total.fontWeight,g=t.total.label,p=t.total.formatter(i)):1===i.globals.series.length&&(p=f(i.globals.series[0],i),g=i.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,i)),t.name.show){var m=n.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:a,fontSize:u,fontWeight:d,fontFamily:h});m.node.classList.add("apexcharts-datalabel-label"),r.add(m)}if(t.value.show){var y=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=n.drawText({x:l,y:c+y,text:p,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),r.add(b)}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"),10)-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));var l=e===t.total.label;e=t.name.formatter(e,l,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"),10)-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:"drawSpokes",value:function(t){var e=this,i=this.w,n=new v(this.ctx),r=i.config.plotOptions.polarArea.spokes;if(0!==r.strokeWidth){for(var o=[],a=360/i.globals.series.length,s=0;s<i.globals.series.length;s++)o.push(p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+a*s));o.forEach((function(i,o){var a=n.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(r.connectorColors)?r.connectorColors[o]:r.connectorColors);t.add(a)}))}}},{key:"revertDataLabelsInner",value:function(t,e,i){var n=this,r=this.w,o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),a=!1,s=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,r=t.printLabel;Array.prototype.forEach.call(s,(function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(a=!0),r&&n.printDataLabelsInner(t,e))}))};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&r.globals.series.length>1)a&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(r));else if(l({makeSliceOut:!1,printLabel:!0}),!a)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var c=r.globals.selectedDataPoints[0],u=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(u,e)}else o&&r.globals.selectedDataPoints.length&&0===r.globals.selectedDataPoints[0].length&&(o.style.opacity=0);else o&&r.globals.series.length>1&&(o.style.opacity=0)}}]),t}(),kt=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 v(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.gridHeight+1.5*n.globals.goldenPadding:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.coreUtils=new x(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/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 C(this.ctx),r=[],o=new O(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var s=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=s+i.config.plotOptions.radar.offsetX,u=l+i.config.plotOptions.radar.offsetY,h=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(u||0,")")}),d=[],f=null,g=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,s){var l=t.length===i.globals.dataPoints,c=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:p.escapeString(i.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});e.dataRadiusOfPercent[s]=[],e.dataRadius[s]=[],e.angleArr[s]=[],t.forEach((function(t,i){var n=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[s][i]=t/n,e.dataRadius[s][i]=e.dataRadiusOfPercent[s][i]*e.size,e.angleArr[s][i]=i*e.disAngle})),d=e.getDataPointsPos(e.dataRadius[s],e.angleArr[s]);var u=e.createPaths(d,{x:0,y:0});f=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),g=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":s}),i.globals.delayedElements.push({el:f.node,index:s});var h={i:s,realIndex:s,animationDelay:s,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[s],strokeLineCap:i.config.stroke.lineCap},v=null;i.globals.previousPaths.length>0&&(v=e.getPreviousPath(s));for(var y=0;y<u.linePathsTo.length;y++){var b=e.graphics.renderPaths(a(a({},h),{},{pathFrom:null===v?u.linePathsFrom[y]:v,pathTo:u.linePathsTo[y],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[s]:e.strokeWidth,fill:"none",drawShadow:!1}));c.add(b);var x=n.fillPath({seriesNumber:s}),_=e.graphics.renderPaths(a(a({},h),{},{pathFrom:null===v?u.areaPathsFrom[y]:v,pathTo:u.areaPathsTo[y],strokeWidth:0,fill:x,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var w=new m(e.ctx),S=i.config.chart.dropShadow;w.dropShadow(_,Object.assign({},S,{noUserSpaceOnUse:!0}),s)}c.add(_)}t.forEach((function(t,n){var r=new T(e.ctx).getMarkerConfig("apexcharts-marker",s,n),l=e.graphics.drawMarker(d[n].x,d[n].y,r);l.attr("rel",n),l.attr("j",n),l.attr("index",s),l.node.setAttribute("default-marker-size",r.pSize);var u=e.graphics.group({class:"apexcharts-series-markers"});u&&u.add(l),f.add(u),c.add(f);var h=i.config.dataLabels;if(h.enabled){var p=h.formatter(i.globals.series[s][n],{seriesIndex:s,dataPointIndex:n,w:i});o.plotDataLabelsText({x:d[n].x,y:d[n].y,text:p,textAnchor:"middle",i:s,j:s,parent:g,offsetCorrection:!1,dataLabelsConfig:a({},h)})}c.add(g)})),r.push(c)})),this.drawPolygons({parent:h}),i.config.xaxis.labels.show){var v=this.drawXAxisTexts();h.add(v)}return r.forEach((function(t){h.add(t)})),h.add(this.yaxisLabels),h}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,n=t.parent,r=new wt(this.ctx),o=i.globals.yAxisScale[0].result.reverse(),a=o.length,s=[],l=this.size/(a-1),c=0;c<a;c++)s[c]=l*c;s.reverse();var u=[],h=[];s.forEach((function(t,i){var n=p.getPolygonPos(t,e.dataPointsLen),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+" "})),u.push(r)})),u.forEach((function(t,r){var o=e.polygons.strokeColors,a=e.polygons.strokeWidth,s=e.graphics.drawPolygon(t,Array.isArray(o)?o[r]:o,Array.isArray(a)?a[r]:a,i.globals.radarPolygons.fill.colors[r]);n.add(s)})),h.forEach((function(t){n.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var n=r.drawYAxisTexts(t.x,t.y,i,o[i]);e.yaxisLabels.add(n)}))}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),r=p.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach((function(o,s){var l=e.config.xaxis.labels.formatter,c=new O(t.ctx);if(r[s]){var u=t.getTextPos(r[s],t.size),h=l(o,{seriesIndex:-1,dataPointIndex:s,w:e});c.plotDataLabelsText({x:u.newX,y:u.newY,text:h,textAnchor:u.textAnchor,i:s,j:s,parent:n,color:Array.isArray(i.style.colors)&&i.style.colors[s]?i.style.colors[s]:"#a8a8a8",dataLabelsConfig:a({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),n}},{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:"getTextPos",value:function(t,e){var i="middle",n=t.x,r=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",n+=10):t.x<0&&(i="end",n-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?r-=10:t.y>0&&(r+=10)),{textAnchor:i,newX:n,newY:r}}},{key:"getPreviousPath",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,10)===parseInt(t,10)&&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}}]),t}(),At=function(t){s(r,t);var i=h(r);function r(t){var n;e(this,r),(n=i.call(this,t)).ctx=t,n.w=t.w,n.animBeginArr=[0],n.animDur=0;var o=n.w;return n.startAngle=o.config.plotOptions.radialBar.startAngle,n.endAngle=o.config.plotOptions.radialBar.endAngle,n.totalAngle=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle),n.trackStartAngle=o.config.plotOptions.radialBar.track.startAngle,n.trackEndAngle=o.config.plotOptions.radialBar.track.endAngle,n.radialDataLabels=o.config.plotOptions.radialBar.dataLabels,n.trackStartAngle||(n.trackStartAngle=n.startAngle),n.trackEndAngle||(n.trackEndAngle=n.endAngle),360===n.endAngle&&(n.endAngle=359.99),n.margin=parseInt(o.config.plotOptions.radialBar.track.margin,10),n}return n(r,[{key:"draw",value:function(t){var e=this.w,i=new v(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.chart.sparkline.enabled||(s=s-e.config.stroke.width-e.config.chart.dropShadow.blur);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 u=this.drawArcs({size:s,centerX:a,centerY:o,colorArr:l,series:t}),h=360;e.config.plotOptions.radialBar.startAngle<0&&(h=this.totalAngle);var d=(360-h)/360;if(e.globals.radialSize=s-s*d,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=f*d}return r.add(u.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),n.add(r),n}},{key:"drawTracks",value:function(t){var e=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-tracks"}),r=new m(this.ctx),o=new C(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,u=o.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),h=this.trackStartAngle,d=this.trackEndAngle;Math.abs(d)+Math.abs(h)>=360&&(d=360-Math.abs(this.startAngle)-.1);var f=i.drawPath({d:"",stroke:u,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;r.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:t.centerX,centerY:t.centerY,endAngle:d,startAngle:h,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 v(this.ctx),n=new C(this.ctx),r=new m(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,10)/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 u=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:s||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var h=e.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(u,h)}var d=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(d=0);var f=null;this.radialDataLabels.show&&(f=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:d})),"back"===e.config.plotOptions.radialBar.hollow.position&&(o.add(u),f&&o.add(f));var g=!1;e.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var y=g?t.series.length-1:0;g?y>=0:y<t.series.length;g?y--:y++){var b=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:p.escapeString(e.globals.seriesNames[y])});o.add(b),b.attr({rel:y+1,"data:realIndex":y}),this.ctx.series.addCollapsedClassToSeries(b,y),t.size=t.size-a-this.margin;var x=n.fillPath({seriesNumber:y,size:t.size,value:t.series[y]}),_=this.startAngle,w=void 0,S=p.negToZero(t.series[y]>100?100:t.series[y])/100,k=Math.round(this.totalAngle*S)+this.startAngle,A=void 0;e.globals.dataChanged&&(w=this.startAngle,A=Math.round(this.totalAngle*p.negToZero(e.globals.previousPaths[y])/100)+w),Math.abs(k)+Math.abs(_)>=360&&(k-=.01),Math.abs(A)+Math.abs(w)>=360&&(A-=.01);var T=k-_,E=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[y]:e.config.stroke.dashArray,O=i.drawPath({d:"",stroke:x,strokeWidth:a,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+y,strokeDashArray:E});if(v.setAttrs(O.node,{"data:angle":T,"data:value":t.series[y]}),e.config.chart.dropShadow.enabled){var P=e.config.chart.dropShadow;r.dropShadow(O,P,y)}r.setSelectionFilter(O,0,y),this.addListeners(O,this.radialDataLabels),b.add(O),O.attr({index:0,j:y});var L=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(L=(k-_)/360*e.config.chart.animations.speed,this.animDur=L/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(L=(k-_)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=L/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(O,{centerX:t.centerX,centerY:t.centerY,endAngle:k,startAngle:_,prevEndAngle:A,prevStartAngle:w,size:t.size,i:y,totalItems:2,animBeginArr:this.animBeginArr,dur:L,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:o,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(t){var e=new v(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 C(this.ctx),a=p.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 u=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(u)}else{var h=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(h)}}return n}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}}]),r}(St),Ct=function(){function t(i){e(this,t),this.w=i.w,this.lineCtx=i}return n(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if("line"===i.config.chart.type&&("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new x(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var n=e[t].slice();n[n.length-1]=n[n.length-1]+1e-6,e[t]=n}return e}},{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=this.w,c=[],u=[];if(0===a){var h=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(h=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(h),u.push(p.isNumber(e[o][0])?s+l.config.markers.offsetY:null),c.push(n+l.config.markers.offsetX),u.push(p.isNumber(e[o][a+1])?r+l.config.markers.offsetY:null)}else c.push(n+l.config.markers.offsetX),u.push(p.isNumber(e[o][a+1])?r+l.config.markers.offsetY:null);return{x:c,y:u}}},{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,10)===parseInt(n,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,e=r.globals.previousPaths[o].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,i=r.globals.previousPaths[o].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[o].paths[1]&&(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.prevY,r=t.lineYPosition,o=this.w;if(void 0!==i[e][0])n=(r=o.config.chart.stacked&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(o.config.chart.stacked&&e>0&&void 0===i[e][0])for(var a=e-1;a>=0;a--)if(null!==i[a][0]&&void 0!==i[a][0]){n=r=this.lineCtx.prevSeriesY[a][0];break}return{prevY:n,lineYPosition:r}}}]),t}(),Tt=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 E(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ct(this),this.markers=new T(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return n(t,[{key:"draw",value:function(t,e,i){var n=this.w,r=new v(this.ctx),o=n.globals.comboCharts?e:n.config.chart.type,a=r.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),s=new x(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio);for(var l=[],c=0;c<t.length;c++){t=this.lineHelpers.sameValueSeriesFix(c,t);var u=n.globals.comboCharts?i[c]:c;this._initSerieVariables(t,c,u);var h=[],d=[],f=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(f=(n.globals.seriesX[u][0]-n.globals.minX)/this.xRatio),d.push(f);var p,g=f,m=g,y=this.zeroY;y=this.lineHelpers.determineFirstPrevY({i:c,series:t,prevY:y,lineYPosition:0}).prevY,h.push(y),p=y;var b=this._calculatePathsFrom({series:t,i:c,realIndex:u,prevX:m,prevY:y}),_=this._iterateOverDataPoints({series:t,realIndex:u,i:c,x:f,y:1,pX:g,pY:p,pathsFrom:b,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:d,yArrj:h});this._handlePaths({type:o,realIndex:u,i:c,paths:_}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(n.config.chart.stacked)for(var w=l.length;w>0;w--)a.add(l[w-1]);else for(var S=0;S<l.length;S++)a.add(l[S]);return a}},{key:"_initSerieVariables",value:function(t,e,i){var n=this.w,r=new v(this.ctx);this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[i]:n.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[i])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===n.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,n,r,o=t.series,a=t.i,s=t.realIndex,l=t.prevX,c=t.prevY,u=this.w,h=new v(this.ctx);if(null===o[a][0]){for(var d=0;d<o[a].length;d++)if(null!==o[a][d]){l=this.xDivision*d,c=this.zeroY-o[a][d]/this.yRatio[this.yaxisIndex],e=h.move(l,c),i=h.move(l,this.areaBottomY);break}}else e=h.move(l,c),i=h.move(l,this.areaBottomY)+h.line(l,c);if(n=h.move(-1,this.zeroY)+h.line(-1,this.zeroY),r=h.move(-1,this.zeroY)+h.line(-1,this.zeroY),u.globals.previousPaths.length>0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:r,realIndex:s});n=f.pathFromLine,r=f.pathFromArea}return{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:n,pathFromArea:r}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,n=t.i,r=t.paths,o=this.w,s=new v(this.ctx),l=new C(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[i]=r.xArrj,o.globals.seriesYvalues[i]=r.yArrj;var c=o.config.forecastDataPoints;if(c.count>0){var u=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-c.count-1],h=s.drawRect(u,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(h.node);var d=s.drawRect(0,0,u,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var f={i:n,realIndex:i,animationDelay:n,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=l.fillPath({seriesNumber:i}),g=0;g<r.areaPaths.length;g++){var m=s.renderPaths(a(a({},f),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(m)}if(o.config.stroke.show&&!this.pointsChart){var y;y="line"===e?l.fillPath({seriesNumber:i,i:n}):o.globals.stroke.colors[i];for(var b=0;b<r.linePaths.length;b++){var x=a(a({},f),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[b],stroke:y,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:"none"}),_=s.renderPaths(x);if(this.elSeries.add(_),c.count>0){var w=s.renderPaths(x);w.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&w.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(w),w.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),_.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){for(var e=t.series,i=t.realIndex,n=t.i,r=t.x,o=t.y,a=t.pX,s=t.pY,l=t.pathsFrom,c=t.linePaths,u=t.areaPaths,h=t.seriesIndex,d=t.lineYPosition,f=t.xArrj,g=t.yArrj,m=this.w,y=new v(this.ctx),b=this.yRatio,x=l.prevY,_=l.linePath,w=l.areaPath,S=l.pathFromLine,k=l.pathFromArea,A=p.isNumber(m.globals.minYArr[i])?m.globals.minYArr[i]:m.globals.minY,C=m.globals.dataPoints>1?m.globals.dataPoints-1:m.globals.dataPoints,T=0;T<C;T++){var E=void 0===e[n][T+1]||null===e[n][T+1];if(m.globals.isXNumeric){var O=m.globals.seriesX[i][T+1];void 0===m.globals.seriesX[i][T+1]&&(O=m.globals.seriesX[i][C-1]),r=(O-m.globals.minX)/this.xRatio}else r+=this.xDivision;d=m.config.chart.stacked&&n>0&&m.globals.collapsedSeries.length<m.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<m.globals.series.length;i++)if(m.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(n-1)][T+1]:this.zeroY,o=E?d-A/b[this.yaxisIndex]+2*(this.isReversed?A/b[this.yaxisIndex]:0):d-e[n][T+1]/b[this.yaxisIndex]+2*(this.isReversed?e[n][T+1]/b[this.yaxisIndex]:0),f.push(r),g.push(o);var P=this.lineHelpers.calculatePoints({series:e,x:r,y:o,realIndex:i,i:n,j:T,prevY:x}),L=this._createPaths({series:e,i:n,realIndex:i,j:T,x:r,y:o,pX:a,pY:s,linePath:_,areaPath:w,linePaths:c,areaPaths:u,seriesIndex:h});u=L.areaPaths,c=L.linePaths,a=L.pX,s=L.pY,w=L.areaPath,_=L.linePath,this.appendPathFrom&&(S+=y.line(r,this.zeroY),k+=y.line(r,this.zeroY)),this.handleNullDataPoints(e,P,n,T,i),this._handleMarkersAndLabels({pointsPos:P,series:e,x:r,y:o,prevY:x,i:n,j:T,realIndex:i})}return{yArrj:g,xArrj:f,pathFromArea:k,areaPaths:u,pathFromLine:S,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.pointsPos,i=(t.series,t.x,t.y,t.prevY,t.i),n=t.j,r=t.realIndex,o=this.w,a=new O(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:r,pointsPos:e,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var s=this.markers.plotChartMarkers(e,r,n+1);null!==s&&this.elPointsMain.add(s)}var l=a.drawDataLabel(e,r,n+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(t){var e=t.series,i=t.i,n=t.realIndex,r=t.j,o=t.x,a=t.y,s=t.pX,l=t.pY,c=t.linePath,u=t.areaPath,h=t.linePaths,d=t.areaPaths,f=t.seriesIndex,p=this.w,g=new v(this.ctx),m=p.config.stroke.curve,y=this.areaBottomY;if(Array.isArray(p.config.stroke.curve)&&(m=Array.isArray(f)?p.config.stroke.curve[f[i]]:p.config.stroke.curve[i]),"smooth"===m){var b=.35*(o-s);p.globals.hasNullValues?(null!==e[i][r]&&(null!==e[i][r+1]?(c=g.move(s,l)+g.curve(s+b,l,o-b,a,o+1,a),u=g.move(s+1,l)+g.curve(s+b,l,o-b,a,o+1,a)+g.line(o,y)+g.line(s,y)+"z"):(c=g.move(s,l),u=g.move(s,l)+"z")),h.push(c),d.push(u)):(c+=g.curve(s+b,l,o-b,a,o,a),u+=g.curve(s+b,l,o-b,a,o,a)),s=o,l=a,r===e[i].length-2&&(u=u+g.curve(s,l,o,a,o,y)+g.move(o,a)+"z",p.globals.hasNullValues||(h.push(c),d.push(u)))}else{if(null===e[i][r+1]){c+=g.move(o,a);var x=p.globals.isXNumeric?(p.globals.seriesX[n][r]-p.globals.minX)/this.xRatio:o-this.xDivision;u=u+g.line(x,y)+g.move(o,a)+"z"}null===e[i][r]&&(c+=g.move(o,a),u+=g.move(o,y)),"stepline"===m?(c=c+g.line(o,null,"H")+g.line(null,a,"V"),u=u+g.line(o,null,"H")+g.line(null,a,"V")):"straight"===m&&(c+=g.line(o,a),u+=g.line(o,a)),r===e[i].length-2&&(u=u+g.line(o,y)+g.move(o,a)+"z",h.push(c),d.push(u))}return{linePaths:h,areaPaths:d,pX:s,pY:l,linePath:c,areaPath:u}}},{key:"handleNullDataPoints",value:function(t,e,i,n,r){var o=this.w;if(null===t[i][n]&&o.config.markers.showNullDataPoints||1===t[i].length){var a=this.markers.plotChartMarkers(e,r,n+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);null!==a&&this.elPointsMain.add(a)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,n,r){this.xoffset=e,this.yoffset=i,this.height=r,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],n=this.xoffset,r=this.yoffset,a=o(t)/this.height,s=o(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([n,r,n+a,r+t[e]/a]),r+=t[e]/a;else for(e=0;e<t.length;e++)i.push([n,r,n+t[e]/s,r+s]),n+=t[e]/s;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var n=e/this.height,r=this.width-n;i=new t(this.xoffset+n,this.yoffset,r,this.height)}else{var o=e/this.width,a=this.height-o;i=new t(this.xoffset,this.yoffset+o,this.width,a)}return i}}function e(e,n,r,a,s){return a=void 0===a?0:a,s=void 0===s?0:s,function(t){var e,i,n=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)n.push(t[e][i]);return n}(i(function(t,e){var i,n=[],r=e/o(t);for(i=0;i<t.length;i++)n[i]=t[i]*r;return n}(e,n*r),[],new t(a,s,n,r),[]))}function i(t,e,r,a){var s,l,c;if(0!==t.length)return s=r.shortestEdge(),function(t,e,i){var r;return 0===t.length||((r=t.slice()).push(e),n(t,i)>=n(r,i))}(e,l=t[0],s)?(e.push(l),i(t.slice(1),e,r,a)):(c=r.cutArea(o(e),a),a.push(r.getCoordinates(e)),i(t,[],c,a)),a;a.push(r.getCoordinates(e))}function n(t,e){var i=Math.min.apply(Math,t),n=Math.max.apply(Math,t),r=o(t);return Math.max(Math.pow(e,2)*n/Math.pow(r,2),Math.pow(r,2)/(Math.pow(e,2)*i))}function r(t){return t&&t.constructor===Array}function o(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function a(t){var e,i=0;if(r(t[0]))for(e=0;e<t.length;e++)i+=a(t[e]);else i=o(t);return i}return function t(i,n,o,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var c,u,h=[],d=[];if(r(i[0])){for(u=0;u<i.length;u++)h[u]=a(i[u]);for(c=e(h,n,o,s,l),u=0;u<i.length;u++)d.push(t(i[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else d=e(i,n,o,s,l);return d}}();var Et,Ot,Pt=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new xt(i),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new v(this.ctx),r=new C(this.ctx),o=n.group({class:"apexcharts-treemap"});if(i.globals.noData)return o;var a=[];return t.forEach((function(t){var e=t.map((function(t){return Math.abs(t)}));a.push(e)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(t,i){t.data.forEach((function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)}))})),window.TreemapSquared.generate(a,i.globals.gridWidth,i.globals.gridHeight).forEach((function(a,s){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:p.escapeString(i.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new m(e.ctx).dropShadow(o,c,s)}var u=n.group({class:"apexcharts-data-labels"});a.forEach((function(o,a){var c=o[0],u=o[1],h=o[2],d=o[3],f=n.drawRect(c,u,h-c,d-u,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?g:i.globals.stroke.colors[s]);f.attr({cx:c,cy:u,index:s,i:s,j:a,width:h-c,height:d-u});var p=e.helpers.getShadeColor(i.config.chart.type,s,a,e.negRange),g=p.color;void 0!==i.config.series[s].data[a]&&i.config.series[s].data[a].fillColor&&(g=i.config.series[s].data[a].fillColor);var m=r.fillPath({color:g,seriesNumber:s,dataPointIndex:a});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:m}),e.helpers.addListeners(f);var v={x:c+(h-c)/2,y:u+(d-u)/2,width:0,height:0},y={x:c,y:u,width:h-c,height:d-u};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var b=1;i.globals.resized||(b=i.config.chart.animations.speed),e.animateTreemap(f,v,y,b)}if(i.globals.dataChanged){var x=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(x=e.dynamicAnim.speed,i.globals.previousPaths[s]&&i.globals.previousPaths[s][a]&&i.globals.previousPaths[s][a].rect&&(v=i.globals.previousPaths[s][a].rect),e.animateTreemap(f,v,y,x))}var _=e.getFontSize(o),w=i.config.dataLabels.formatter(e.labels[s][a],{value:i.globals.series[s][a],seriesIndex:s,dataPointIndex:a,w:i}),S=e.helpers.calculateDataLabels({text:w,x:(c+h)/2,y:(u+d)/2+e.strokeWidth/2+_/3,i:s,j:a,colorProps:p,fontSize:_,series:t});i.config.dataLabels.enabled&&S&&e.rotateToFitLabel(S,w,c,u,h,d),l.add(f),null!==S&&l.add(S)})),l.add(u),o.add(l)})),o}},{key:"getFontSize",value:function(t){var e,i,n=this.w,r=function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=e[i].length;return n}(this.labels)/function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=1;return n}(this.labels);return e=(t[2]-t[0])*(t[3]-t[1]),i=Math.pow(e,.5),Math.min(i/r,parseInt(n.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,n,r,o){var a=new v(this.ctx),s=a.getTextRects(e);if(s.width+5>r-i&&s.width<=o-n){var l=a.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}},{key:"animateTreemap",value:function(t,e,i,n){var r=new g(this.ctx);r.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},n,(function(){r.animationCompleted(t)}))}}]),t}(),Lt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}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.timescaleLabels=[],[];var r=new I(this.ctx),o=(e-t)/864e5;this.determineInterval(o),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,o<.00011574074074074075?n.globals.disableZoomIn=!0:o>5e4&&(n.globals.disableZoomOut=!0);var s=r.getTimeUnitsfromTimestamp(t,e,this.utc),l=n.globals.gridWidth/o,c=l/24,u=c/60,h=u/60,d=Math.floor(24*o),f=Math.floor(1440*o),p=Math.floor(86400*o),g=Math.floor(o),m=Math.floor(o/30),v=Math.floor(o/365),y={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},b={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:h,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:d,numberOfDays:g,numberOfMonths:m,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=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(a({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?a(a({},e),{},{value:t.value}):"minute"===t.unit?a(a({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?a(a({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return x.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),x.length>r&&(e=Math.floor(x.length/r));var a=!1,s=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(a=!0);break;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_fives":o%5!=0&&(s=!0);break;case"seconds_tens":o%10!=0&&(s=!0);break;case"seconds_fives":o%5!=0&&(s=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===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);i.globals.timescaleLabels=r.slice(),new at(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{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 I(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var u=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);s=(l.determineDaysOfYear(e.minYear)-u+1)*r,a=e.minYear+1,this.timeScaleArray.push({position:s,value:a,unit:c,year:a,month:p.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:s,value:a,unit:c,year:n,month:p.monthMod(i+1)});for(var h=a,d=s,f=0;f<o;f++)h++,d=l.determineDaysOfYear(h-1)*r+d,this.timeScaleArray.push({position:d,value:h,unit:c,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 I(this.ctx),u="month",h=0;if(e.minDate>1){l=(c.determineDaysOfMonths(n+1,e.minYear)-i+1)*o,s=p.monthMod(n+1);var d=r+h,f=p.monthMod(s),g=s;0===s&&(u="year",g=d,f=1,d+=h+=1),this.timeScaleArray.push({position:l,value:g,unit:u,year:d,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:r,month:p.monthMod(n)});for(var m=s+1,v=l,y=0,b=1;y<a;y++,b++){0===(m=p.monthMod(m))?(u="year",h+=1):u="month";var x=this._getYear(r,m,h);v=c.determineDaysOfMonths(m,x)*o+v;var _=0===m?x:m;this.timeScaleArray.push({position:v,value:_,unit:u,year:x,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 I(this.ctx),s="day",l=e.minDate+1,c=l,u=function(t,e,i){return t>a.determineDaysOfMonths(e+1,i)?(c=1,s="month",d=e+=1,e):e},h=(24-e.minHour)*r,d=l,f=u(c,i,n);0===e.minHour&&1===e.minDate?(h=0,d=p.monthMod(e.minMonth),s="month",c=e.minDate,o++):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(h=0,l=e.minDate,d=l,f=u(c=l,i,n)),this.timeScaleArray.push({position:h,value:d,unit:s,year:this._getYear(n,f,0),month:p.monthMod(f),day:c});for(var g=h,m=0;m<o;m++){s="day",f=u(c+=1,f,this._getYear(n,f,0));var v=this._getYear(n,f,0);g=24*r+g;var y=1===c?p.monthMod(f):c;this.timeScaleArray.push({position:g,value:y,unit:s,year:v,month:p.monthMod(f),day:y})}}},{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 I(this.ctx),l="hour",c=function(t,e){return t>s.determineDaysOfMonths(e+1,r)&&(m=1,e+=1),{month:e,date:m}},u=function(t,e){return t>s.determineDaysOfMonths(e+1,r)?e+=1:e},h=60-(e.minMinute+e.minSecond/60),d=h*o,f=e.minHour+1,g=f+1;60===h&&(d=0,g=(f=e.minHour)+1);var m=i,v=u(m,n);this.timeScaleArray.push({position:d,value:f,unit:l,day:m,hour:g,year:r,month:p.monthMod(v)});for(var y=d,b=0;b<a;b++){l="hour",g>=24&&(g=0,l="day",v=c(m+=1,v).month,v=u(m,v));var x=this._getYear(r,v,0);y=0===g&&0===b?h*o:60*o+y;var _=0===g?m:g;this.timeScaleArray.push({position:y,value:_,unit:l,hour:g,day:m,year:x,month:p.monthMod(v)}),g++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,n=t.currentMinute,r=t.currentHour,o=t.currentDate,a=t.currentMonth,s=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,u=t.numberOfMinutes,h=n+1,d=o,f=a,g=s,m=r,v=(60-i-e/1e3)*c,y=0;y<u;y++)h>=60&&(h=0,24===(m+=1)&&(m=0)),this.timeScaleArray.push({position:v,value:h,unit:"minute",hour:m,minute:h,day:d,year:this._getYear(g,f,0),month:p.monthMod(f)}),v+=l,h++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,n=t.currentMinute,r=t.currentHour,o=t.currentDate,a=t.currentMonth,s=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,u=i+1,h=n,d=o,f=a,g=s,m=r,v=(1e3-e)/1e3*l,y=0;y<c;y++)u>=60&&(u=0,++h>=60&&(h=0,24==++m&&(m=0))),this.timeScaleArray.push({position:v,value:u,unit:"second",hour:m,minute:h,second:u,day:d,year:this._getYear(g,f,0),month:p.monthMod(f)}),v+=l,u++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),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),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var n=t.value.toString(),r=new I(e.ctx),o=e.createRawDateString(t,n),a=r.getDate(r.parseDate(o));if(e.utc||(a=r.getDate(r.parseDateWithTimezone(o))),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),"second"===t.unit&&(s=l.second),n=r.formatDate(a,s)}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,i=this,n=new v(this.ctx),r=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(r=!0,e=n.getTextRects(t[0].value).width);var o=0,a=t.map((function(a,s){if(s>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=r?e:n.getTextRects(t[o].value).width,c=t[o].position;return a.position>c+l+10?(o=s,a):null}return a}));return a.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Dt=function(){function t(i,n){e(this,t),this.ctx=n,this.w=n.w,this.el=i}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","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),v.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.elAnnotations=t.dom.Paper.group().attr({class:"apexcharts-annotations"}),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:[]},u={series:[],i:[]},h={series:[],i:[]};r.series.map((function(e,d){var f=0;void 0!==t[d].type?("column"===t[d].type||"bar"===t[d].type?(r.series.length>1&&n.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(d),f++,i.globals.columnSeries=c.series):"area"===t[d].type?(a.series.push(e),a.i.push(d),f++):"line"===t[d].type?(o.series.push(e),o.i.push(d),f++):"scatter"===t[d].type?(s.series.push(e),s.i.push(d)):"bubble"===t[d].type?(l.series.push(e),l.i.push(d),f++):"candlestick"===t[d].type?(u.series.push(e),u.i.push(d),f++):"boxPlot"===t[d].type?(h.series.push(e),h.i.push(d),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),f>1&&(r.comboCharts=!0)):(o.series.push(e),o.i.push(d))}));var d=new Tt(this.ctx,e),f=new bt(this.ctx,e);this.ctx.pie=new St(this.ctx);var p=new At(this.ctx);this.ctx.rangeBar=new N(this.ctx,e);var g=new kt(this.ctx),m=[];if(r.comboCharts){if(a.series.length>0&&m.push(d.draw(a.series,"area",a.i)),c.series.length>0)if(i.config.chart.stacked){var v=new yt(this.ctx,e);m.push(v.draw(c.series,c.i))}else this.ctx.bar=new M(this.ctx,e),m.push(this.ctx.bar.draw(c.series,c.i));if(o.series.length>0&&m.push(d.draw(o.series,"line",o.i)),u.series.length>0&&m.push(f.draw(u.series,u.i)),h.series.length>0&&m.push(f.draw(h.series,h.i)),s.series.length>0){var y=new Tt(this.ctx,e,!0);m.push(y.draw(s.series,"scatter",s.i))}if(l.series.length>0){var b=new Tt(this.ctx,e,!0);m.push(b.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":m=d.draw(r.series,"line");break;case"area":m=d.draw(r.series,"area");break;case"bar":n.chart.stacked?m=new yt(this.ctx,e).draw(r.series):(this.ctx.bar=new M(this.ctx,e),m=this.ctx.bar.draw(r.series));break;case"candlestick":case"boxPlot":m=new bt(this.ctx,e).draw(r.series);break;case"rangeBar":m=this.ctx.rangeBar.draw(r.series);break;case"heatmap":m=new _t(this.ctx,e).draw(r.series);break;case"treemap":m=new Pt(this.ctx,e).draw(r.series);break;case"pie":case"donut":case"polarArea":m=this.ctx.pie.draw(r.series);break;case"radialBar":m=p.draw(r.series);break;case"radar":m=g.draw(r.series);break;default:m=d.draw(r.series)}return m}},{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=p.getDimensions(this.el),n=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?p.isNumber(i[0])&&(0===i[0].width&&(i=p.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==n&&""!==n||(t.svgWidth=parseInt(e.chart.width,10));var r=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===r){var o=p.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),v.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==r){var a=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+a+"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+")"};v.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,n=t.config.chart.sparkline.enabled?1:15;n+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new lt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*t.globals.radialSize;if(r&&!t.config.chart.sparkline.enabled){var a=p.getBoundingClientRect(r);o=a.bottom;var s=a.bottom-a.top;o=Math.max(2.05*t.globals.radialSize,s)}var l=o+e.translateY+i+n;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),e.dom.elWrap.style.height=l+"px",v.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px"}},{key:"coreCalculations",value:function(){new U(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new F,n=this.w.globals;i.initGlobalVars(n),n.seriesXvalues=e(),n.seriesYvalues=e()}},{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:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new Q(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new Q(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Lt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new x(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{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,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,n){i.forEach((function(t){var i=ApexCharts.getChartByID(t),r=p.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var o=new V(i);r=o.autoScaleY(i,r,n)}var s=i.w.config.yaxis.reduce((function(t,e,n){return[].concat(d(t),[a(a({},i.w.config.yaxis[n]),{},{min:r[0].min,max:r[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:s},!1,!1,!1,!1)}))}}}}]),t}(),Mt=function(){function i(t){e(this,i),this.ctx=t,this.w=t.w}return n(i,[{key:"_updateOptions",value:function(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=[this.ctx];o&&(s=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(s=[this.ctx],this.ctx.w.globals.isExecCalled=!1),s.forEach((function(o){var s=o.w;return s.globals.shouldAnimate=r,n||(s.globals.resized=!0,s.globals.dataChanged=!0,r&&o.series.getPreviousPaths()),e&&"object"===t(e)&&(o.config=new R(e),e=x.extendArrayProps(o.config,e,s),o.w.globals.chartID!==i.ctx.w.globals.chartID&&delete e.series,s.config=p.extend(s.config,e),a&&(s.globals.lastXAxis=e.xaxis?p.clone(e.xaxis):[],s.globals.lastYAxis=e.yaxis?p.clone(e.yaxis):[],s.globals.initialConfig=p.extend({},s.config),s.globals.initialSeries=p.clone(s.config.series))),o.update(e)}))}},{key:"_updateSeries",value:function(t,e){var i,n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&this.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(i=t.map((function(t,e){return n._extendSeries(t,e)}))).length&&(i=[{data:[]}]),o.config.series=i):o.config.series=t.slice(),r&&(o.globals.initialSeries=p.clone(o.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(t,e){var i=this.w,n=i.config.series[e];return a(a({},i.config.series[e]),{},{name:t.name?t.name:n&&n.name,color:t.color?t.color:n&&n.color,type:t.type?t.type:n&&n.type,data:t.data?t.data:n&&n.data})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null,r=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"'], ").concat(r," circle[j='").concat(e,"'], ").concat(r," rect[j='").concat(e,"']")).members[0]:void 0===e&&(n=i.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),n?(new v(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new j(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){var e=this.w;return e.config.chart.stacked&&"100%"===e.config.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,n=i.globals.lastXAxis,r=i.globals.lastYAxis;t&&t.xaxis&&(n=t.xaxis),t&&t.yaxis&&(r=t.yaxis),i.config.xaxis.min=n.min,i.config.xaxis.max=n.max;i.config.yaxis.map((function(t,n){i.globals.zoomed||void 0!==r[n]?function(t){void 0!==r[t]&&(i.config.yaxis[t].min=r[t].min,i.config.yaxis[t].max=r[t].max)}(n):void 0!==e.ctx.opts.yaxis[n]&&(t.min=e.ctx.opts.yaxis[n].min,t.max=e.ctx.opts.yaxis[n].max)}))}}]),i}();Et="undefined"!=typeof window?window:void 0,Ot=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"+h(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;e=(t=[].slice.call(arguments)).pop();for(var i=t.length-1;i>=0;i--)if(t[i])for(var r in e)t[i].prototype[r]=e[r];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[h(t.nodeName)]?new(n[h(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){for(var i=t.length,n=[],r=0;r<i;r++)n.push(e(t[r]));return n},filter:function(t,e){for(var i=t.length,n=[],r=0;r<i;r++)e(t[r])&&n.push(t[r]);return n},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,{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)}}),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;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]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},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();return i.x,i.y,this},at:function(t){if(!this.destination)return this;for(var e=this.value,i=this.destination.value,r=[],o=new n.PathArray,a=0,s=e.length;a<s;a++){r[a]=[e[a][0]];for(var l=1,c=e[a].length;l<c;l++)r[a][l]=e[a][l]+(i[a][l]-e[a][l])*t;"A"===r[a][0]&&(r[a][4]=+(0!=r[a][4]),r[a][5]=+(0!=r[a][5]))}return o.value=r,o},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,u=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(u>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=f(this,t,e);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(t){this.writeDataToDom();var e=m(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)},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},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=this.situation;if(e.init)return this;for(var i in e.animations){t=this.target()[i](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[i])||(e.animations[i]=[e.animations[i]]);for(var r=t.length;r--;)e.animations[i][r]instanceof n.Number&&(t[r]=new n.Number(t[r])),e.animations[i][r]=t[r].morph(e.animations[i][r])}for(var i in e.attrs)e.attrs[i]=new n.MorphObj(this.target().attr(i),e.attrs[i]);for(var i in e.styles)e.styles[i]=new n.MorphObj(this.target().style(i),e.styles[i]);return e.initialTransformation=this.target().matrixify(),e.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()},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()},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=this,i=this.target(),r=this.situation;for(var o in r.animations)t=[].concat(r.animations[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t})),i[o].apply(i,t);for(var o in r.attrs)t=[o].concat(r.attrs[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t})),i.attr.apply(i,t);for(var o in r.styles)t=[o].concat(r.styles[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(r.ease(e.pos),e.pos):t})),i.style.apply(i,t);if(r.transforms.length){t=r.initialTransformation,o=0;for(var a=r.transforms.length;o<a;o++){var s=r.transforms[o];s instanceof n.Matrix?t=s.relative?t.multiply((new n.Matrix).morph(s).at(r.ease(this.pos))):t.morph(s).at(r.ease(this.pos)):(s.relative||s.undo(t.extract()),t=t.multiply(s.at(r.ease(this.pos))))}i.matrix(t)}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}}}),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},plot:function(t,e,i,n){return 4==arguments.length?this.plot([t,e,i,n]):this.add("plot",new(this.target().morphArray)(t))}}),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)}}),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.Matrix=n.invent({create:function(e){var i=g([1,0,0,1,0,0]);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:i;for(var r=b.length-1;r>=0;--r)this[b[r]]=null!=e[b[r]]?e[b[r]]:i[b[r]]},extend:{extract:function(){var t=p(this,0,1),e=(p(this,1,0),180/Math.PI*Math.atan2(t.y,t.x)-90);return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,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},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))},native:function(){for(var t=n.parser.native.createSVGMatrix(),e=b.length-1;e>=0;e--)t[b[e]]=this[b[e]];return t},toString:function(){return"matrix("+y(this.a)+","+y(this.b)+","+y(this.c)+","+y(this.d)+","+y(this.e)+","+y(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}}}),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(var o in e)this.attr(o,e[o]);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;return"object"!==t(e)?(r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r):(r=new n.Matrix(this),i=!!i||!!e.relative,null!=e.a&&(r=i?r.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",r))}}),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)}}),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.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(var r in e)this.style(r,e[r]);else{if(!n.regex.isCss.test(e))return this.node.style[u(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[u(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){for(var i=this.children(),r=0,o=i.length;r<o;r++)i[r]instanceof n.Element&&t.apply(i[r],[r,i]),e&&i[r]instanceof n.Container&&i[r].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({parent:n.Container,construct:{}}),["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||{passive:!0})},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(var l in n.listeners[r][o][a])n.off(t,[o,a].join("."),l);delete n.listeners[r][o][a]}}else if(a)for(var c in n.listeners[r])for(var s in n.listeners[r][c])a===s&&n.off(t,[c,a].join("."));else if(o){if(n.listeners[r][o]){for(var s in n.listeners[r][o])n.off(t,[o,s].join("."));delete n.listeners[r][o]}}else{for(var c in n.listeners[r])n.off(t,c);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)}},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},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=m(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),n.extend(n.Element,{}),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.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=f(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=f(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=f(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}},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)},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,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)}}});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 u(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function h(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 f(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 p(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){for(var i=t.childNodes.length-1;i>=0;i--)t.childNodes[i]instanceof e.SVGElement&&m(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 y(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||n.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var i=l[t].length-1;i>=0;i--)null!=e[l[t][i]]&&this.attr(l.prefix(t,l[t][i]),e[l[t][i]]);return this},n.extend(n.Element,n.FX,e)})),n.extend(n.Element,n.FX,{translate:function(t,e){return this.transform({x:t,y: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)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),n.Set=n.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);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}},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,{}),n.extend(n.Element,{remember:function(e,i){if("object"===t(arguments[0]))for(var n in e)this.remember(n,e[n]);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 b="abcdef".split("");if("function"!=typeof e.CustomEvent){var x=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};x.prototype=e.Event.prototype,n.CustomEvent=x}else n.CustomEvent=e.CustomEvent;return n},"function"==typeof define&&define.amd?define((function(){return Ot(Et,Et.document)})):"object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module?module.exports=Et.document?Ot(Et,Et.document):function(t){return Ot(t,t.document)}:Et.SVG=Ot(Et,Et.document),
/*! svg.filter.js - v2.0.2 - 2016-02-24
* https://github.com/wout/svg.filter.js
* Copyright (c) 2016 Wout Fierens; Licensed MIT */
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",o(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(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(" ")}function a(){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])}}})),a(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:{}})})),a(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:{}})})),a(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 u=t.slice(r,o||c),h=a.slice(s,l||c),d=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[d]=e.call(f,u[d]),h[d]=e.call(p,h[d]),u[d][0]!=h[d][0]||"M"==u[d][0]||"A"==u[d][0]&&(u[d][4]!=h[d][4]||u[d][5]!=h[d][5])?(Array.prototype.splice.apply(u,[d,1].concat(n.call(f,u[d]))),Array.prototype.splice.apply(h,[d,1].concat(n.call(p,h[d])))):(u[d]=i.call(f,u[d]),h[d]=i.call(p,h[d])),++d!=u.length||d!=h.length;)d==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),d==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:h}}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,u,h,d,f,p,g,m,v,y,b,x,_,w,S,k,A,C,T,E=Math.abs(e[1]),O=Math.abs(e[2]),P=e[3]%360,L=e[4],D=e[5],M=e[6],I=e[7],N=new SVG.Point(t),j=new SVG.Point(M,I),R=[];if(0===E||0===O||N.x===j.x&&N.y===j.y)return[["C",N.x,N.y,j.x,j.y,j.x,j.y]];for((n=(i=new SVG.Point((N.x-j.x)/2,(N.y-j.y)/2).transform((new SVG.Matrix).rotate(P))).x*i.x/(E*E)+i.y*i.y/(O*O))>1&&(E*=n=Math.sqrt(n),O*=n),r=(new SVG.Matrix).rotate(P).scale(1/E,1/O).rotate(-P),N=N.transform(r),s=(o=[(j=j.transform(r)).x-N.x,j.y-N.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,L===D&&(l*=-1),c=new SVG.Point((j.x+N.x)/2+l*-o[1],(j.y+N.y)/2+l*o[0]),u=new SVG.Point(N.x-c.x,N.y-c.y),h=new SVG.Point(j.x-c.x,j.y-c.y),d=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(d*=-1),f=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(f*=-1),D&&d>f&&(f+=2*Math.PI),!D&&d<f&&(f-=2*Math.PI),v=[],y=d,p=(f-d)/(g=Math.ceil(2*Math.abs(d-f)/Math.PI)),m=4*Math.tan(p/4)/3,w=0;w<=g;w++)x=Math.cos(y),b=Math.sin(y),_=new SVG.Point(c.x+x,c.y+b),v[w]=[new SVG.Point(_.x+m*b,_.y-m*x),_,new SVG.Point(_.x-m*b,_.y+m*x)],y+=p;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),r=(new SVG.Matrix).rotate(P).scale(E,O).rotate(-P),w=0,S=v.length;w<S;w++)v[w][0]=v[w][0].transform(r),v[w][1]=v[w][1].transform(r),v[w][2]=v[w][2].transform(r);for(w=1,S=v.length;w<S;w++)k=(_=v[w-1][2]).x,A=_.y,C=(_=v[w][0]).x,T=_.y,M=(_=v[w][1]).x,I=_.y,R.push(["C",k,A,C,T,M,I]);return R}(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(u.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(u.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 u=t(i,o,s,n,a,l);i=i.slice(0,o).concat(u.start,!1===s?[]:i.slice(s)),n=n.slice(0,a).concat(u.dest,!1===l?[]:n.slice(l)),o=!1!==s&&o+u.start.length,a=!1!==l&&a+u.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(),
/*! svg.draggable.js - v2.2.2 - 2019-01-08
* https://github.com/svgdotjs/svg.draggable.js
* Copyright (c) 2019 Wout Fierens; Licensed MIT */
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},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var n="string"!=typeof t?t:e[t];return i?n/2:n},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var n=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==e[r]&&(this.options[r]=e[r]);var o=["points","pointsExclude"];for(var r in o){var a=this.options[o[r]];"string"==typeof a?a=a.length>0?a.split(/\s*,\s*/i):[]:"boolean"==typeof a&&"points"===o[r]&&(a=a?n:[]),this.options[o[r]]=a}this.options.points=[n,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),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.drawPoints()),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.drawPoints=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),o=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r);this.pointSelection.set.add(o)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},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,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map((function(i,n){var r=t.pointCoords(i,e);t.rectSelection.set.get(n+1).center(r.x,r.y)})),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.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.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(t,r){var o=e.pointCoords(t,i),a=e.drawPoint(o.x,o.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",n(t)).on("touchstart",n(t));e.rectSelection.set.add(a)})),this.rectSelection.set.each((function(){this.addClass(e.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var r=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})},o=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r);this.rectSelection.set.add(o)}},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:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),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\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\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\n\n.apexcharts-inner {\n position: relative;\n}\n\n.apexcharts-text tspan {\n font-family: inherit;\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-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 display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-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-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px;\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.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0;\n}\n\n.apexcharts-tooltip-box 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.apexcharts-theme-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,\n.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\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,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-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\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-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.apexcharts-theme-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,\n.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\n.apexcharts-yaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-top: -6px;\n}\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,\n.apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-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\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-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.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n position: relative;\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoomout-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\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\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-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.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\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee;\n}\n\n.apexcharts-theme-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-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.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 .apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n pointer-events: none;\n}\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\n/* Resize generated styles */\n\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,\n.resize-triggers>div,\n.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}'),function(){function t(t){var e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,r=i?i.firstElementChild:null;n&&(n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight),r&&(r.style.width=i.offsetWidth+1+"px",r.style.height=i.offsetHeight+1+"px"),i&&(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(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(a=!0),!1===a)for(var h=0;h<l.length;h++)if(void 0!==u.style[l[h]+"AnimationName"]){s=c[h];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__.parentNode&&(t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={});var It=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new g(this.ctx),this.ctx.axes=new $(this.ctx),this.ctx.core=new Dt(this.ctx.el,this.ctx),this.ctx.config=new R({}),this.ctx.data=new H(this.ctx),this.ctx.grid=new X(this.ctx),this.ctx.graphics=new v(this.ctx),this.ctx.coreUtils=new x(this.ctx),this.ctx.crosshairs=new Q(this.ctx),this.ctx.events=new Z(this.ctx),this.ctx.exports=new W(this.ctx),this.ctx.localization=new K(this.ctx),this.ctx.options=new k,this.ctx.responsive=new J(this.ctx),this.ctx.series=new L(this.ctx),this.ctx.theme=new tt(this.ctx),this.ctx.formatters=new B(this.ctx),this.ctx.titleSubtitle=new et(this.ctx),this.ctx.legend=new lt(this.ctx),this.ctx.toolbar=new ct(this.ctx),this.ctx.dimensions=new at(this.ctx),this.ctx.updateHelpers=new Mt(this.ctx),this.ctx.zoomPanSelection=new ut(this.ctx),this.ctx.w.globals.tooltip=new vt(this.ctx)}}]),t}(),Nt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,n=this.w.globals.dom.Paper.node;n.parentNode&&n.parentNode.parentNode&&!i&&(n.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach((function(t){r.removeEventListener(t,e.ctx.events.documentEvent)}));var o=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elAnnotations=null,o.elLegendWrap=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),t}();return function(){function t(i,n){e(this,t),this.opts=n,this.ctx=this,this.w=new z(n).init(),this.el=i,this.w.globals.cuid=p.randomId(),this.w.globals.chartID=this.w.config.chart.id?p.escapeString(this.w.config.chart.id):this.w.globals.cuid,new It(this).initModules(),this.create=p.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return n(t,[{key:"render",value:function(){var t=this;return new Promise((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.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeHandler);var r=t.create(t.w.config.series,{});if(!r)return e(t);t.mount(r).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(r)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new It(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new j(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var r=x.checkComboSeries(t);n.comboCharts=r.comboCharts,n.comboBarCount=r.comboBarCount;var o=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new T(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var a=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(t,a),l=new O(this);l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:s,xyRatios:a,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,n=i.w;return new Promise((function(r,o){if(null===i.el)return o(new Error("Not enough data to display or target element not found"));(null===e||n.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==n.config.chart.type&&i.axes.drawAxis(n.config.chart.type,e.xyRatios),i.grid=new X(i);var a=i.grid.drawGrid();i.annotations=new A(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&a&&n.globals.dom.elGraphical.add(a.el);var s=new q(t.ctx),l=new G(t.ctx);if(null!==a&&(s.xAxisLabelCorrections(a.xAxisTickWidth),l.setYAxisTextAlignments(),n.config.yaxis.map((function(t,e){-1===n.globals.ignoreYAxisIndexes.indexOf(e)&&l.yAxisTitleRotate(e,t.opposite)}))),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)n.globals.dom.elGraphical.add(e.elGraph[c]);else n.globals.dom.elGraphical.add(e.elGraph);if("front"===n.config.grid.position&&a&&n.globals.dom.elGraphical.add(a.el),"front"===n.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===n.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"front"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),!n.globals.noData){if(n.config.tooltip.enabled&&!n.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),n.globals.axisCharts&&(n.globals.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.globals.isTimelineBar))(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var u=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(t){u[t]=!1}))}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),n.globals.axisCharts||n.globals.noData||i.core.resizeNonAxisCharts(),r(i)}))}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((function(e,i){e.id===p.escapeString(t)&&Apex._chartInstances.splice(i,1)})),new Nt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,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.w;return a.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),a.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,n,r,o)}},{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.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._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.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,e,i)}},{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(null!==t[r]&&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=p.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise((function(i,n){new Nt(e.ctx).clear({isUpdating:!0});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.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)})).catch((function(t){n(t)}))}))}},{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:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{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:"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,e=new U(this.ctx);return e.getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new U(this.ctx);return e.getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new W(this.ctx).dataURI(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&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.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=p.escapeString(t),i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var n=null;if(-1!==i.publicMethods.indexOf(e)){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];n=i[e].apply(i,o)}return n}}},{key:"merge",value:function(t,e){return p.extend(t,e)}}]),t}()}));