vendor: 4,402 bytes, lines 1-25
1/*! 2 * jQuery JavaScript Library v3.6.0 3 * https://jquery.com/ 4 * 5 * Includes Sizzle.js 6 * https://sizzlejs.com/ 7 * 8 * Copyright OpenJS Foundation and other contributors 9 * Released under the MIT license 10 * https://jquery.org/license 11 * 12 * Date: 2021-03-02T17:08Z 13 */ 14!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,a=i.slice,o=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},r=i.push,s=i.indexOf,l={},c=l.toString,h=l.hasOwnProperty,d=h.toString,u=d.call(Object),p={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},g=function(t){return null!=t&&t===t.window},m=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,i){var n,a,o=(i=i||m).createElement("script");if(o.text=t,e)for(n in v)(a=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,a);i.head.appendChild(o).parentNode.removeChild(o)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var x="3.6.0",w=function(t,e){return new w.fn.init(t,e)};function _(t){var e=!!t&&"length"in t&&t.length,i=y(t);return!f(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var t,e,i,n,a,o,r=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[s]||{},s++),"object"==typeof r||f(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(c&&n&&(w.isPlainObject(n)||(a=Array.isArray(n)))?(i=r[e],o=a&&!Array.isArray(i)?[]:a||w.isPlainObject(i)?i:{},a=!1,r[e]=w.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==c.call(t))&&(!(e=n(t))||"function"==typeof(i=h.call(e,"constructor")&&e.constructor)&&d.call(i)===u)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){b(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(_(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(_(Object(t))?w.merge(i,"string"==typeof t?[t]:t):r.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,a=t.length;n<i;n++)t[a++]=e[n];return t.length=a,t},grep:function(t,e,i){for(var n=[],a=0,o=t.length,r=!i;a<o;a++)!e(t[a],a)!==r&&n.push(t[a]);return n},map:function(t,e,i){var n,a,r=0,s=[];if(_(t))for(n=t.length;r<n;r++)null!=(a=e(t[r],r,i))&&s.push(a);else for(r in t)null!=(a=e(t[r],r,i))&&s.push(a);return o(s)},guid:1,support:p}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var C= 15/*! 16 * Sizzle CSS Selector Engine v2.3.6 17 * https://sizzlejs.com/ 18 * 19 * Copyright JS Foundation and other contributors 20 * Released under the MIT license 21 * https://js.foundation/ 22 * 23 * Date: 2021-02-16 24 */ 25function(t){var e,i,n,a,o,r,s,l,c,h,d,u,p,f,g,m,v,b,y,x="sizzle"+1*ne
25w Date,w=t.document,_=0,C=0,S=lt(),k=lt(),A=lt(),T=lt(),E=function(t,e){return t===e&&(d=!0),0},L={}.hasOwnProperty,D=[],P=D.pop,M=D.push,I=D.push,O=D.slice,z=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+R+"*\\]",B=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",j=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]*"),X=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(R+"|>"),$=new RegExp(B),G=new RegExp("^"+F+"$"),q={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},U=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,at=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){u()},rt=xt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(D=O.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(t){I={apply:D.length?function(t,e){M.apply(t,O.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,a){var o,s,c,h,d,f,v,b=e&&e.ownerDocument,w=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return n;if(!a&&(u(e),e=e||p,g)){if(11!==w&&(d=Q.exec(t)))if(o=d[1]){if(9===w){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(b&&(c=b.getElementById(o))&&y(e,c)&&c.id===o)return n.push(c),n}else{if(d[2])return I.apply(n,e.getElementsByTagName(t)),n;if((o=d[3])&&i.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!T[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,b=e,1===w&&(V.test(t)||X.test(t))){for((b=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((h=e.getAttribute("id"))?h=h.replace(nt,at):e.setAttribute("id",h=x)),s=(f=r(t)).length;s--;)f[s]=(h?"#"+h:":scope")+" "+yt(f[s]);v=f.join(",")}try{return I.apply(n,b.querySelectorAll(v)),n}catch(e){T(t,!0)}finally{h===x&&e.removeAttribute("id")}}}return l(t.replace(Y,"$1"),e,n,a)}function lt(){var t=[];return function e(i,a){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=a}}function ct(t){return t[x]=!0,t}function ht(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var i=t.split("|"),a=i.length;a--;)n.attrHandle[i[a]]=e}function ut(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(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 a,o=t([],i.length,e),r=o.length;r--;)i[a=o[r]]&&(i[a]=!(n[a]=i[a]))}))}))}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!U.test(e||i&&i.nodeName||"HTML")},u=st.setDocument=function(t){var e,a,r=t?t.ownerDocument||t:w;return r!=p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,g=!o(p),w!=p&&(a=p.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ot,!1):a.attachEvent&&a.attachEvent("onunload",ot)),i.scope=ht((function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ht((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ht((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=ht((function(t){return f.appendChild(t).id=x,!p.getElementsByName||!p.getElementsByName(x).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,a,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(a=e.getElementsByName(t),n=0;o=a[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=[],a=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[a++];)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=J.test(p.querySelectorAll))&&(ht((function(t){var e;f.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ht((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ht((function(t){i.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),v.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.j
vendor: 15,121 bytes, line 25
25oin("|")),e=J.test(f.compareDocumentPosition),y=e||J.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return d=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==w&&y(w,t)?-1:e==p||e.ownerDocument==w&&y(w,e)?1:h?z(h,t)-z(h,e):0:4&n?-1:1)}:function(t,e){if(t===e)return d=!0,0;var i,n=0,a=t.parentNode,o=e.parentNode,r=[t],s=[e];if(!a||!o)return t==p?-1:e==p?1:a?-1:o?1:h?z(h,t)-z(h,e):0;if(a===o)return ut(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;r[n]===s[n];)n++;return n?ut(r[n],s[n]):r[n]==w?-1:s[n]==w?1:0},p):p},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(u(t),i.matchesSelector&&g&&!T[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=b.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return st(e,p,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=p&&u(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=p&&u(t);var a=n.attrHandle[e.toLowerCase()],o=a&&L.call(n.attrHandle,e.toLowerCase())?a(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,at)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],a=0,o=0;if(d=!i.detectDuplicates,h=!i.sortStable&&t.slice(0),t.sort(E),d){for(;e=t[o++];)e===t[o]&&(a=n.push(o));for(;a--;)t.splice(n[a],1)}return h=null,t},a=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+=a(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=a(e);return i},n=st.selectors={cacheLength:50,createPseudo:ct,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&$.test(i)&&(e=r(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=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&S(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 a=st.attr(n,t);return null==a?"!="===e:!e||(a+="","="===e?a===i:"!="===e?a!==i:"^="===e?i&&0===a.indexOf(i):"*="===e?i&&a.indexOf(i)>-1:"$="===e?i&&a.slice(-i.length)===i:"~="===e?(" "+a.replace(j," ")+" ").indexOf(i)>-1:"|="===e&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,a){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===a?function(t){return!!t.parentNode}:function(e,i,l){var c,h,d,u,p,f,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),b=!l&&!s,y=!1;if(m){if(o){for(;g;){for(u=e;u=u[g];)if(s?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&b){for(y=(p=(c=(h=(d=(u=m)[x]||(u[x]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===_&&c[1])&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(y=p=0)||f.pop();)if(1===u.nodeType&&++y&&u===e){h[t]=[_,p,y];break}}else if(b&&(y=p=(c=(h=(d=(u=e)[x]||(u[x]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]||[])[0]===_&&c[1]),!1===y)for(;(u=++p&&u&&u[g]||(y=p=0)||f.pop())&&((s?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++y||(b&&((h=(d=u[x]||(u[x]={}))[u.uniqueID]||(d[u.uniqueID]={}))[t]=[_,y]),u!==e)););return(y-=a)===n||y%n==0&&y/n>=0}}},PSEUDO:function(t,e){var i,a=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return a[x]?a(e):a.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,o=a(t,e),r=o.length;r--;)t[n=z(t,o[r])]=!(i[n]=o[r])})):function(t){return a(t,0,i)}):a}},pseudos:{not:ct((function(t){var e=[],i=[],n=s(t.replace(Y,"$1"));return n[x]?ct((function(t,e,i,a){for(var o,r=n(t,null,a,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))})):function(t,a,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||a(e)).indexOf(t)>-1}})),lang:ct((function(t){return G.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Z.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}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ft(e);function bt(){}function yt(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,a=e.next,o=a||n,r=i&&"parentNode"===o,s=C++;return e.first?function(e,i,a){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,a);return!1}:function(e,i,l){var c,h,d,u=[_,s];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(h=(d=e[x]||(e[x]={}))[e.uniqueID]||(d[e.uniqueID]={}),a&&a===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=h[o])&&c[0]===_&&c[1]===s)return u[2]=c[2];if(h[o]=u,u[2]=t(e,i,l))return!0}return!1}}function wt(t){return t.length>1?function(e,i,n){for(var a=t.length;a--;)if(!t[a](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,a){for(var o,r=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,n,a)||(r.push(o),c&&e.push(s)));return r}function Ct(t,e,i,n,a,o){return n&&!n[x]&&(n=Ct(n)),a&&!a[x]&&(a=Ct(a,o)),ct((function(o,r,s,l){var c,h,d,u=[],p=[],f=r.length,g=o||function(t,e,i){for(var n=0,a=e.length;n<a;n++)st(t,e[n],i);return i}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?g:_t(g,u,t,s,l),v=i?a||(o?t:f||n)?[]:r:m;if(i&&i(m,v,s,l),n)for(c=_t(v,p),n(c,[],s,l),h=c.length;h--;)(d=c[h])&&(v[p[h]]=!(m[p[h]]=d));if(o){if(a||t){if(a){for(c=[],h=v.length;h--;)(d=v[h])&&c.push(m[h]=d);a(null,v=[],c,l)}for(h=v.length;h--;)(d=v[h])&&(c=a?z(o,d):u[h])>-1&&(o[c]=!(r[c]=d))}}else v=_t(v===r?v.splice(f,v.length):v),a?a(null,r,v,l):I.apply(r,v)}))}function St(t){for(var e,i,a,o=t.length,r=n.relative[t[0].type],s=r||n.relative[" "],l=r?1:0,h=xt((function(t){return t===e}),s,!0),d=xt((function(t){return z(e,t)>-1}),s,!0),u=[function(t,i,n){var a=!r&&(n||i!==c)||((e=i).nodeType?h(t,i,n):d(t,i,n));return e=null,a}];l<o;l++)if(i=n.relative[t[l].type])u=[xt(wt(u),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[x]){for(a=++l;a<o&&!n.relative[t[a].type];a++);return Ct(l>1&&wt(u),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(Y,"$1"),i,l<a&&St(t.slice(l,a)),a<o&&St(t=t.slice(a)),a<o&&yt(t))}u.push(i)}return wt(u)}return bt.prototype=n.filters=n.pseudos,n.setFilters=new bt,r=st.tokenize=function(t,e){var i,a,o,r,s,l,c,h=k[t+" "];if(h)return e?0:h.slice(0);for(s=t,l=[],c=n.preFilter;s;){for(r in i&&!(a=W.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),i=!1,(a=X.exec(s))&&(i=a.shift(),o.push({value:i,type:a[0].replace(Y," ")}),s=s.slice(i.length)),n.filter)!(a=q[r].exec(s))||c[r]&&!(a=c[r](a))||(i=a.shift(),o.push({value:i,type:r,matches:a}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):k(t,l).slice(0)},s=st.compile=function(t,e){var i,a=[],o=[],s=A[t+" "];if(!s){for(e||(e=r(t)),i=e.length;i--;)(s=St(e[i]))[x]?a.push(s):o.push(s);s=A(t,function(t,e){var i=e.length>0,a=t.length>0,o=function(o,r,s,l,h){var d,f,m,v=0,b="0",y=o&&[],x=[],w=c,C=o||a&&n.find.TAG("*",h),S=_+=null==w?1:Math.random()||.1,k=C.length;for(h&&(c=r==p||r||h);b!==k&&null!=(d=C[b]);b++){if(a&&d){for(f=0,r||d.ownerDocument==p||(u(d),s=!g);m=t[f++];)if(m(d,r||p,s)){l.push(d);break}h&&(_=S)}i&&((d=!m&&d)&&v--,o&&y.push(d))}if(v+=b,i&&b!==v){for(f=0;m=e[f++];)m(y,x,r,s);if(o){if(v>0)for(;b--;)y[b]||x[b]||(x[b]=P.call(l));x=_t(x)}I.apply(l,x),h&&!o&&x.length>0&&v+e.length>1&&st.uniqueSort(l)}return h&&(_=S,c=w),y};return i?ct(o):o}(o,a)),s.selector=t}return s},l=st.select=function(t,e,i,a){var o,l,c,h,d,u="function"==typeof t&&t,p=!a&&r(t=u.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=q.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[h=c.type]);)if((d=n.find[h])&&(a=d(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=a.length&&yt(l)))return I.apply(i,a),i;break}}return(u||s(t,p))(a,e,!g,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=x.split("").sort(E).join("")===x,i.detectDuplicates=!!d,u(),i.sortDetached=ht((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ht((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ht((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ht((function(t){return null==t.getAttribute("disabled")}))||dt(N,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),st}(t);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var S=function(t,e,i){for(var n=[],a=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&w(t).is(i))break;n.push(t)}return n},k=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},A=w.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 L(t,e,i){return f(e)?w.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?w.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?w.grep(t,(function(t){return s.call(e,t)>-1!==i})):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,i,n=this.length,a=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<n;e++)if(w.contains(a[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,a[e],i);return n>1?w.uniqueSort(i):i},filter:function(t){return this.pushStack(L(this,t||[],!1))},not:function(t){return this.pushStack(L(this,t||[],!0))},is:function(t){return!!L(this,"string"==typeof t&&A.test(t)?w(t):t||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,i){var n,a;if(!t)return this;if(i=i||D,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:P.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),E.test(n[1])&&w.isPlainObject(e))for(n in e)f(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(a=m.getElementById(n[2]))&&(this[0]=a,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,D=w(m);var M=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,a=this.length,o=[],r="string"!=typeof t&&w(t);if(!A.test(t))for(;n<a;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&w.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(w(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")}
vendor: 17,547 bytes, line 25
25,parentsUntil:function(t,e,i){return S(t,"parentNode",i)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,i){return S(t,"nextSibling",i)},prevUntil:function(t,e,i){return S(t,"previousSibling",i)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(i,n){var a=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=w.filter(n,a)),this.length>1&&(I[t]||w.uniqueSort(a),M.test(t)&&a.reverse()),this.pushStack(a)}}));var z=/[^\x20\t\r\n\f]+/g;function N(t){return t}function R(t){throw t}function F(t,e,i,n){var a;try{t&&f(a=t.promise)?a.call(t).done(e).fail(i):t&&f(a=t.then)?a.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(z)||[],(function(t,i){e[i]=!0})),e}(t):w.extend({},t);var e,i,n,a,o=[],r=[],s=-1,l=function(){for(a=a||t.once,n=e=!0;r.length;s=-1)for(i=r.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,a&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(s=o.length-1,r.push(i)),function e(i){w.each(i,(function(i,n){f(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==y(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return w.each(arguments,(function(t,e){for(var i;(i=w.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--})),this},has:function(t){return t?w.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return a=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return a=r=[],i||e||(o=i=""),this},locked:function(){return!!a},fireWith:function(t,i){return a||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},w.extend({Deferred:function(e){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(e){w.each(i,(function(i,n){var a=f(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=a&&a.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,a?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,a){var o=0;function r(e,i,n,a){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<o)){if((t=n.apply(s,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,f(c)?a?c.call(t,r(o,i,N,a),r(o,i,R,a)):(o++,c.call(t,r(o,i,N,a),r(o,i,R,a),r(o,i,N,i.notifyWith))):(n!==N&&(s=void 0,l=[t]),(a||i.resolveWith)(s,l))}},h=a?c:function(){try{c()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,h.stackTrace),e+1>=o&&(n!==R&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?h():(w.Deferred.getStackHook&&(h.stackTrace=w.Deferred.getStackHook()),t.setTimeout(h))}}return w.Deferred((function(t){i[0][3].add(r(0,t,f(a)?a:N,t.notifyWith)),i[1][3].add(r(0,t,f(e)?e:N)),i[2][3].add(r(0,t,f(n)?n:R))})).promise()},promise:function(t){return null!=t?w.extend(t,a):a}},o={};return w.each(i,(function(t,e){var r=e[2],s=e[5];a[e[1]]=r.add,s&&r.add((function(){n=s}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),r.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=r.fireWith})),a.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),o=a.call(arguments),r=w.Deferred(),s=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?a.call(arguments):i,--e||r.resolveWith(n,o)}};if(e<=1&&(F(t,r.done(s(i)).resolve,r.reject,!e),"pending"===r.state()||f(o[i]&&o[i].then)))return r.then();for(;i--;)F(o[i],s(i),r.reject);return r.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&H.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},w.readyException=function(e){t.setTimeout((function(){throw e}))};var B=w.Deferred();function j(){m.removeEventListener("DOMContentLoaded",j),t.removeEventListener("load",j),w.ready()}w.fn.ready=function(t){return B.then(t).catch((function(t){w.readyException(t)})),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||B.resolveWith(m,[w]))}}),w.ready.then=B.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",j),t.addEventListener("load",j));var Y=function(t,e,i,n,a,o,r){var s=0,l=t.length,c=null==i;if("object"===y(i))for(s in a=!0,i)Y(t,e,s,i[s],!0,o,r);else if(void 0!==n&&(a=!0,f(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(w(t),i)})),e))for(;s<l;s++)e(t[s],i,r?n:n.call(t[s],s,e(t[s],i)));return a?t:c?e.call(t):l?e(t[0],i):o},W=/^-ms-/,X=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function $(t){return t.replace(W,"ms-").replace(X,V)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function q(){this.expando=w.expando+q.uid++}q.uid=1,q.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,a=this.cache(t);if("string"==typeof e)a[$(e)]=i;else for(n in e)a[$(n)]=e[n];return a},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][$(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($):(e=$(e))in n?[e]:e.match(z)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var U=new q,Z=new q,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Q(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:K.test(t)?JSON.parse(t):t)}(i)}catch(t){}Z.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return Z.hasData(t)||U.hasData(t)},data:function(t,e,i){return Z.access(t,e,i)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,i){return U.access(t,e,i)},_removeData:function(t,e){U.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,a,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(a=Z.get(o),1===o.nodeType&&!U.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=$(n.slice(5)),Q(o,n,a[n]));U.set(o,"hasDataAttrs",!0)}return a}return"object"==typeof t?this.each((function(){Z.set(this,t)})):Y(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=Z.get(o,t))||void 0!==(i=Q(o,t))?i:void 0;this.each((function(){Z.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=U.get(t,e),i&&(!n||Array.isArray(i)?n=U.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,a=i.shift(),o=w._queueHooks(t,e);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===e&&i.unshift("inprogress"),delete o.stop,a.call(t,(function(){w.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return U.get(t,i)||U.access(t,i,{empty:w.Callbacks("once memory").add((function(){U.remove(t,[e+"queue",i])}))})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each((function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){w.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,a=w.Deferred(),o=this,r=this.length,s=function(){--n||a.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=U.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),a.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=m.documentElement,at=function(t){return w.contains(t.ownerDocument,t)},ot={composed:!0};nt.getRootNode&&(at=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var rt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===w.css(t,"display")};function st(t,e,i,n){var a,o,r=20,s=n?function(){return n.cur()}:function(){return w.css(t,e,"")},l=s(),c=i&&i[3]||(w.cssNumber[e]?"":"px"),h=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;r--;)w.style(t,e,h+c),(1-o)*(1-(o=s()/l||.5))<=0&&(r=0),h/=o;h*=2,w.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,a=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=a)),a}var lt={};function ct(t){var e,i=t.ownerDocument,n=t.nodeName,a=lt[n];return a||(e=i.body.appendChild(i.createElement(n)),a=w.css(e,"display"),e.parentNode.removeChild(e),"none"===a&&(a="block"),lt[n]=a,a)}function ht(t,e){for(var i,n,a=[],o=0,r=t.length;o<r;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(a[o]=U.get(n,"display")||null,a[o]||(n.style.display="")),""===n.style.display&&rt(n)&&(a[o]=ct(n))):"none"!==i&&(a[o]="none",U.set(n,"display",i)));for(o=0;o<r;o++)null!=a[o]&&(t[o].style.display=a[o]);return t}w.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){rt(this)?w(this).show():w(this).hide()}))}});var dt,ut,pt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;dt=m.createDocumentFragment().appendChild(m.createElement("div")),(ut=m.createElement("input")).setAttribute("type","radio"),ut.setAttribute("checked","checked"),ut.setAttribute("name","t"),dt.appendChild(ut),p.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",p.option=!!dt.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)?w.merge([t],i):i}function bt(t,e){for(var i=0,n=t.length;i<n;i++)U.set(t[i],"globalEval",!e||U.get(e[i],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,p.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function xt(t,e,i,n,a){for(var o,r,s,l,c,h,d=e.createDocumentFragment(),u=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===y(o))w.merge(u,o.nodeType?[o]:o);else if(yt.test(o)){for(r=r||d.appendChild(e.createElement("div")),s=(ft.exec(o)||["",""])[1].toLowerCase(),l=mt[s]||mt._default,r.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;w.merge(u,r.childNodes),(r=d.firstChild).textContent=""}else u.push(e.createTextNode(o));for(d.textContent="",p=0;o=u[p++];)if(n&&w.inArray(o,n)>-1)a&&a.push(o);else if(c=at(o),r=vt(d.appendChild(o),"script"),c&&bt(r),i)for(h=0;o=r[h++];)gt.test(o.type||"")&&i.push(o);return d}var wt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function Ct(){return!1}function St(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,i,n,a,o){var r,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)kt(t,s,i,n,e[s],o);return t}if(null==n&&null==a?(a=i,n=i=void 0):null==a&&("string"==typeof i?(a=n,n=void 0):(a=n,n=i,i=void 0)),!1===a)a=Ct;else if(!a)return t;return 1===o&&(r=a,a=function(t){return w().off(t),r.apply(this,arguments)},a.guid=r.guid||(r.guid=w.guid++)),t.each((function(){w.event.add(this,e,a,n,i)}))}function At(t,e,i){i?(U.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,o,r=U.get(this,e);if(1&t.isTrigger&&this[e]){if(r.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),U.set(this,e,r),n=i(this,e),this[e](),r!==(o=U.get(this,e))||n?U.set(this,e,!1):o={},r!==o)return t.stopImmediatePropagation(),t.preventDefault(),o&&o.value}else r.length&&(U.set(this,e,{value:w.event.trigger(w.extend(r[0],w.Event.prototype),r.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===U.get(t,e)&&w.event.add(t,e,_t)}w.event={global:{},add:function(t,e,i,n,a){var o,r,s,l,c,h,d,u,p,f,g,m=U.get(t);if(G(t))for(i.handler&&(i=(o=i).handler,a=o.selector),a&&w.find.matchesSelector(nt,a),i.guid||(i.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(z)||[""]).length;c--;)p=g=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=w.event.special[p]||{},p=(a?d.delegateType:d.bindType)||p,d=w.event.special[p]||{},h=w.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),a?u.splice(u.delegateCount++,0,h):u.push(h),w.event.global[p]=!0)},remove:function(t,e,i,n,a){var o,r,s,l,c,h,d,u,p,f,g,m=U.hasData(t)&&U.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(z)||[""]).length;c--;)if(p=g=(s=wt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},u=l[p=(n?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)h=u[o],!a&&g!==h.origType||i&&i.guid!==h.guid||s&&!s.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(u.splice(o,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));r&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||w.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[c],i,n,!0);w.isEmptyObject(l)&&U.remove(t,"handle events")}},dispatch:function(t){var e,i,n,a,o,r,s=new Array(arguments.length),l=w.event.fix(t),c=(U.get(this,"events")||Object.create(null))[l.type]||[],h=w.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(r=w.event.handlers.call(this,l,c),e=0;(a=r[e++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,i=0;(o=a.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((w.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,a,o,r,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=[],r={},i=0;i<l;i++)void 0===r[a=(n=e[i]).selector+" "]&&(r[a]=n.needsContext?w(a,this).index(c)>-1:w.find(a,this,null,[c]).length),r[a]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:f(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return pt.test(e.type)&&e.click&&T(e,"input")&&At(e,"click",_t),!1},trigger:function(t){var e=this||t;return pt.test(e.type)&&e.click&&T(e,"input")&&At(e,"click"),!0},_default:function(t){var e=t.target;return pt.test(e.type)&&e.click&&T(e,"input")&&U.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 1,674 bytes, line 25
25,w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:Ct,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return At(this,t,St),!1},trigger:function(){return At(this,t),!0},_default:function(){return!0},delegateType:e}}
vendor: 38,436 bytes, line 25
25)),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,a=t.relatedTarget,o=t.handleObj;return a&&(a===n||w.contains(n,a))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),w.fn.extend({on:function(t,e,i,n){return kt(this,t,e,i,n)},one:function(t,e,i,n){return kt(this,t,e,i,n,1)},off:function(t,e,i){var n,a;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(a in t)this.off(a,e,t[a]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Ct),this.each((function(){w.event.remove(this,t,i,e)}))}});var Tt=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Dt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var i,n,a,o,r,s;if(1===e.nodeType){if(U.hasData(t)&&(s=U.get(t).events))for(a in U.remove(e,"handle events"),s)for(i=0,n=s[a].length;i<n;i++)w.event.add(e,a,s[a][i]);Z.hasData(t)&&(o=Z.access(t),r=w.extend({},o),Z.set(e,r))}}function Ot(t,e){var i=e.nodeName.toLowerCase();"input"===i&&pt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function zt(t,e,i,n){e=o(e);var a,r,s,l,c,h,d=0,u=t.length,g=u-1,m=e[0],v=f(m);if(v||u>1&&"string"==typeof m&&!p.checkClone&&Et.test(m))return t.each((function(a){var o=t.eq(a);v&&(e[0]=m.call(this,a,o.html())),zt(o,e,i,n)}));if(u&&(r=(a=xt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===a.childNodes.length&&(a=r),r||n)){for(l=(s=w.map(vt(a,"script"),Pt)).length;d<u;d++)c=a,d!==g&&(c=w.clone(c,!0,!0),l&&w.merge(s,vt(c,"script"))),i.call(t[d],c,d);if(l)for(h=s[s.length-1].ownerDocument,w.map(s,Mt),d=0;d<l;d++)c=s[d],gt.test(c.type||"")&&!U.access(c,"globalEval")&&w.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):b(c.textContent.replace(Lt,""),c,h))}return t}function Nt(t,e,i){for(var n,a=e?w.filter(e,t):t,o=0;null!=(n=a[o]);o++)i||1!==n.nodeType||w.cleanData(vt(n)),n.parentNode&&(i&&at(n)&&bt(vt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,a,o,r,s=t.cloneNode(!0),l=at(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(r=vt(s),n=0,a=(o=vt(t)).length;n<a;n++)Ot(o[n],r[n]);if(e)if(i)for(o=o||vt(t),r=r||vt(s),n=0,a=o.length;n<a;n++)It(o[n],r[n]);else It(t,s);return(r=vt(s,"script")).length>0&&bt(r,!l&&vt(t,"script")),s},cleanData:function(t){for(var e,i,n,a=w.event.special,o=0;void 0!==(i=t[o]);o++)if(G(i)){if(e=i[U.expando]){if(e.events)for(n in e.events)a[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[U.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Dt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Dt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(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 w.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[(ft.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(w.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 zt(this,arguments,(function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){w.fn[t]=function(t){for(var i,n=[],a=w(t),o=a.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),w(a[s])[e](i),r.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)},Ht=function(t,e,i){var n,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];for(a in n=i.call(t),e)t.style[a]=o[a];return n},Bt=new RegExp(it.join("|"),"i");function jt(t,e,i){var n,a,o,r,s=t.style;return(i=i||Ft(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||at(t)||(r=w.style(t,e)),!p.pixelBoxStyles()&&Rt.test(r)&&Bt.test(e)&&(n=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=i.width,s.width=n,s.minWidth=a,s.maxWidth=o)),void 0!==r?r+"":r}function Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(c).appendChild(h);var e=t.getComputedStyle(h);n="1%"!==e.top,l=12===i(e.marginLeft),h.style.right="60%",r=36===i(e.right),a=36===i(e.width),h.style.position="absolute",o=12===i(h.offsetWidth/3),nt.removeChild(c),h=null}}function i(t){return Math.round(parseFloat(t))}var n,a,o,r,s,l,c=m.createElement("div"),h=m.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===h.style.backgroundClip,w.extend(p,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,i,n,a;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),a=t.getComputedStyle(i),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===i.offsetHeight,nt.removeChild(e)),s}}))}();var Wt=["Webkit","Moz","ms"],Xt=m.createElement("div").style,Vt={};function $t(t){var e=w.cssProps[t]||Vt[t];return e||(t in Xt?t:Vt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Wt.length;i--;)if((t=Wt[i]+e)in Xt)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,Ut={position:"absolute",visibility:"hidden",display:"block"},Zt={letterSpacing:"0",fontWeight:"400"};function Kt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Jt(t,e,i,n,a,o){var r="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=w.css(t,i+it[r],!0,a)),n?("content"===i&&(l-=w.css(t,"padding"+it[r],!0,a)),"margin"!==i&&(l-=w.css(t,"border"+it[r]+"Width",!0,a))):(l+=w.css(t,"padding"+it[r],!0,a),"padding"!==i?l+=w.css(t,"border"+it[r]+"Width",!0,a):s+=w.css(t,"border"+it[r]+"Width",!0,a));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function Qt(t,e,i){var n=Ft(t),a=(!p.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),o=a,r=jt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(Rt.test(r)){if(!i)return r;r="auto"}return(!p.boxSizingReliable()&&a||!p.reliableTrDimensions()&&T(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(a="border-box"===w.css(t,"boxSizing",!1,n),(o=s in t)&&(r=t[s])),(r=parseFloat(r)||0)+Jt(t,e,i||(a?"border":"content"),o,n,r)+"px"}function te(t,e,i,n,a){return new te.prototype.init(t,e,i,n,a)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=jt(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 a,o,r,s=$(e),l=qt.test(e),c=t.style;if(l||(e=$t(s)),r=w.cssHooks[e]||w.cssHooks[s],void 0===i)return r&&"get"in r&&void 0!==(a=r.get(t,!1,n))?a:c[e];"string"===(o=typeof i)&&(a=et.exec(i))&&a[1]&&(i=st(t,e,a),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=a&&a[3]||(w.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var a,o,r,s=$(e);return qt.test(e)||(e=$t(s)),(r=w.cssHooks[e]||w.cssHooks[s])&&"get"in r&&(a=r.get(t,!0,i)),void 0===a&&(a=jt(t,e,n)),"normal"===a&&e in Zt&&(a=Zt[e]),""===i||i?(o=parseFloat(a),!0===i||isFinite(o)?o||0:a):a}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!Gt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,n):Ht(t,Ut,(function(){return Qt(t,e,n)}))},set:function(t,i,n){var a,o=Ft(t),r=!p.scrollboxSize()&&"absolute"===o.position,s=(r||n)&&"border-box"===w.css(t,"boxSizing",!1,o),l=n?Jt(t,e,n,s,o):0;return s&&r&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Jt(t,e,"border",!1,o)-.5)),l&&(a=et.exec(i))&&"px"!==(a[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),Kt(0,i,l)}}})),w.cssHooks.marginLeft=Yt(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-Ht(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,a={},o="string"==typeof i?i.split(" "):[i];n<4;n++)a[t+it[n]+e]=o[n]||o[n-2]||o[0];return a}},"margin"!==t&&(w.cssHooks[t+e].set=Kt)})),w.fn.extend({css:function(t,e){return Y(this,(function(t,e,i){var n,a,o={},r=0;if(Array.isArray(e)){for(n=Ft(t),a=e.length;r<a;r++)o[e[r]]=w.css(t,e[r],!1,n);return o}return void 0!==i?w.style(t,e,i):w.css(t,e)}),t,e,arguments.length>1)}}),w.Tween=te,te.prototype={constructor:te,init:function(t,e,i,n,a,o){this.elem=t,this.prop=i,this.easing=a||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(w.cssNumber[i]?"":"px")},cur:function(){var t=te.propHooks[this.prop];return t&&t.get?t.get(this):te.propHooks._default.get(this)},run:function(t){var e,i=te.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):te.propHooks._default.set(this),this}},te.prototype.init.prototype=te.prototype,te.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[$t(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},te.propHooks.scrollTop=te.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=te.prototype.init,w.fx.step={};var ee,ie,ne=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function oe(){ie&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(oe):t.setTimeout(oe,w.fx.interval),w.fx.tick())}function re(){return t.setTimeout((function(){ee=void 0})),ee=Date.now()}function se(t,e){var i,n=0,a={height:t};for(e=e?1:0;n<4;n+=2-e)a["margin"+(i=it[n])]=a["padding"+i]=t;return e&&(a.opacity=a.width=t),a}function le(t,e,i){for(var n,a=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),o=0,r=a.length;o<r;o++)if(n=a[o].call(i,e,t))return n}function ce(t,e,i){var n,a,o=0,r=ce.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var e=ee||re(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(n);return s.notifyWith(t,[c,n,i]),n<1&&r?i:(r||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:ee||re(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(a)return this;for(a=!0;i<n;i++)c.tweens[i].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var i,n,a,o,r;for(i in t)if(a=e[n=$(i)],o=t[i],Array.isArray(o)&&(a=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=w.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=a);else e[n]=a}(h,c.opts.specialEasing);o<r;o++)if(n=ce.prefilters[o].call(c,t,h,c.opts))return f(n.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return w.map(h,le,c),f(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(ce,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return st(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){f(t)?(e=t,t=["*"]):t=t.match(z);for(var i,n=0,a=t.length;n<a;n++)i=t[n],ce.tweeners[i]=ce.tweeners[i]||[],ce.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,a,o,r,s,l,c,h,d="width"in e||"height"in e,u=this,p={},f=t.style,g=t.nodeType&&rt(t),m=U.get(t,"fxshow");for(n in i.queue||(null==(r=w._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,s=r.empty.fire,r.empty.fire=function(){r.unqueued||s()}),r.unqueued++,u.always((function(){u.always((function(){r.unqueued--,w.queue(t,"fx").length||r.empty.fire()}))}))),e)if(a=e[n],ne.test(a)){if(delete e[n],o=o||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||w.style(t,n)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(n in d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=U.get(t,"display")),"none"===(h=w.css(t,"display"))&&(c?h=c:(ht([t],!0),c=t.style.display||c,h=w.css(t,"display"),ht([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===w.css(t,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=U.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&ht([t],!0),u.done((function(){for(n in g||ht([t]),U.remove(t,"fxshow"),p)w.style(t,n,p[n])}))),l=le(g?m[n]:0,n,u),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||f(t)&&t,duration:t,easing:i&&e||e&&!f(e)&&e};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){f(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(t,e,i,n){return this.filter(rt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var a=w.isEmptyObject(t),o=w.speed(e,i,n),r=function(){var e=ce(this,w.extend({},t),o);(a||U.get(this,"finish"))&&e.stop(!0)};return r.finish=r,a||!1===o.queue?this.each(r):this.queue(o.queue,r)},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,a=null!=t&&t+"queueHooks",o=w.timers,r=U.get(this);if(a)r[a]&&r[a].stop&&n(r[a]);else for(a in r)r[a]&&r[a].stop&&ae.test(a)&&n(r[a]);for(a=o.length;a--;)o[a].elem!==this||null!=t&&o[a].queue!==t||(o[a].anim.stop(i),e=!1,o.splice(a,1));!e&&i||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=U.get(this),n=i[t+"queue"],a=i[t+"queueHooks"],o=w.timers,r=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),a&&a.stop&&a.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<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,a){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(se(e,!0),t,n,a)}})),w.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(ee=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),ee=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ie||(ie=!0,oe())},w.fx.stop=function(){ie=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,i){return e=w.fx&&w.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var a=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(a)}}))},function(){var t=m.createElement("input"),e=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var he,de=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return Y(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}),w.extend({attr:function(t,e,i){var n,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,i):(1===o&&w.isXMLDoc(t)||(a=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?he:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:(t.setAttribute(e,i+""),i):a&&"get"in a&&null!==(n=a.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&T(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,a=e&&e.match(z);if(a&&1===t.nodeType)for(;i=a[n++];)t.removeAttribute(i)}}),he={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=de[e]||w.find.attr;de[e]=function(t,e,n){var a,o,r=e.toLowerCase();return n||(o=de[r],de[r]=a,a=null!=i(t,e,n)?r:null,de[r]=o),a}}));var ue=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function fe(t){return(t.match(z)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(z)||[]}w.fn.extend({prop:function(t,e){return Y(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,i){var n,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,a=w.propHooks[e]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:t[e]=i:a&&"get"in a&&null!==(n=a.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(t){var e,i,n,a,o,r,s,l=0;if(f(t))return this.each((function(e){w(this).addClass(t.call(this,e,ge(this)))}));if((e=me(t)).length)for(;i=this[l++];)if(a=ge(i),n=1===i.nodeType&&" "+fe(a)+" "){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");a!==(s=fe(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,a,o,r,s,l=0;if(f(t))return this.each((function(e){w(this).removeClass(t.call(this,e,ge(this)))}));if(!arguments.length)return this.attr("class","");if((e=me(t)).length)for(;i=this[l++];)if(a=ge(i),n=1===i.nodeType&&" "+fe(a)+" "){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a!==(s=fe(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):f(t)?this.each((function(i){w(this).toggleClass(t.call(this,i,ge(this),e),e)})):this.each((function(){var e,a,o,r;if(n)for(a=0,o=w(this),r=me(t);e=r[a++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=ge(this))&&U.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":U.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+fe(ge(i))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;w.fn.extend({val:function(t){var e,i,n,a=this[0];return arguments.length?(n=f(t),this.each((function(i){var a;1===this.nodeType&&(null==(a=n?t.call(this,i,w(this).val()):t)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=w.map(a,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,a,"value")||(this.value=a))}))):a?(e=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(ve,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:fe(w.text(t))}},select:{get:function(t){var e,i,n,a=t.options,o=t.selectedIndex,r="select-one"===t.type,s=r?null:[],l=r?o+1:a.length;for(n=o<0?l:r?o:0;n<l;n++)if(((i=a[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(e=w(i).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var i,n,a=t.options,o=w.makeArray(e),r=a.length;r--;)((n=a[r]).selected=w.inArray(w.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},p.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),p.focusin="onfocusin"in t;var be=/^(?:focusinfocus|focusoutblur)$/,ye=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(e,i,n,a){var o,r,s,l,c,d,u,p,v=[n||m],b=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(r=p=s=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!be.test(b+w.event.triggered)&&(b.indexOf(".")>-1&&(y=b.split("."),b=y.shift(),y.sort()),c=b.indexOf(":")<0&&"on"+b,(e=e[w.expando]?e:new w.Event(b,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:w.makeArray(i,[e]),u=w.event.special[b]||{},a||!u.trigger||!1!==u.trigger.apply(n,i))){if(!a&&!u.noBubble&&!g(n)){for(l=u.delegateType||b,be.test(l+b)||(r=r.parentNode);r;r=r.parentNode)v.push(r),s=r;s===(n.ownerDocument||m)&&v.push(s.defaultView||s.parentWindow||t)}for(o=0;(r=v[o++])&&!e.isPropagationStopped();)p=r,e.type=o>1?l:u.bindType||b,(d=(U.get(r,"events")||Object.create(null))[e.type]&&U.get(r,"handle"))&&d.apply(r,i),(d=c&&r[c])&&d.apply&&G(r)&&(e.result=d.apply(r,i),!1===e.result&&e.preventDefault());return e.type=b,a||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(v.pop(),i)||!G(n)||c&&f(n[b])&&!g(n)&&((s=n[c])&&(n[c]=null),w.event.triggered=b,e.isPropagationStopped()&&p.addEventListener(b,ye),n[b](),e.isPropagationStopped()&&p.removeEventListener(b,ye),w.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,a=U.access(n,e);a||n.addEventListener(t,i,!0),U.access(n,e,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,a=U.access(n,e)-1;a?U.access(n,e,a):(n.removeEventListener(t,i,!0),U.remove(n,e))}}}));var xe=t.location,we={guid:Date.now()},_e=/\?/;w.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||w.error("Invalid XML: "+(n?w.map(n.childNodes,(function(t){return t.textContent})).join("\n"):e)),i};var Ce=/\[\]$/,Se=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Te(t,e,i,n){var a;if(Array.isArray(e))w.each(e,(function(e,a){i||Ce.test(t)?n(t,a):Te(t+"["+("object"==typeof a&&null!=a?e:"")+"]",a,i,n)}));else if(i||"object"!==y(e))n(t,e);else for(a in e)Te(t+"["+a+"]",e[a],i,n)}w.param=function(t,e){var i,n=[],a=function(t,e){var i=f(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){a(this.name,this.value)}));else for(i in t)Te(i,t[i],e,a);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ae.test(this.nodeName)&&!ke.test(t)&&(this.checked||!pt.test(t))})).map((function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(t){return{name:e.name,value:t.replace(Se,"\r\n")}})):{name:e.name,value:i.replace(Se,"\r\n")}})).get()}});var Ee=/%20/g,Le=/#.*$/,De=/([?&])_=[^&]*/,Pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Ie=/^\/\//,Oe={},ze={},Ne="*/".concat("*"),Re=m.createElement("a");function Fe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,a=0,o=e.toLowerCase().match(z)||[];if(f(i))for(;n=o[a++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function He(t,e,i,n){var a={},o=t===ze;function r(s){var l;return a[s]=!0,w.each(t[s]||[],(function(t,s){var c=s(e,i,n);return"string"!=typeof c||o||a[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!a["*"]&&r("*")}function Be(t,e){var i,n,a=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((a[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}Re.href=xe.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Be(Be(t,w.ajaxSettings),e):Be(w.ajaxSettings,t)},ajaxPrefilter:Fe(Oe),ajaxTransport:Fe(ze),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var n,a,o,r,s,l,c,h,d,u,p=w.ajaxSetup({},i),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),b=w.Callbacks("once memory"),y=p.statusCode||{},x={},_={},C="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!r)for(r={};e=Pe.exec(o);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return n&&n.abort(e),k(0,e),this}};if(v.promise(S),p.url=((e||p.url||xe.href)+"").replace(Ie,xe.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Re.protocol+"//"+Re.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),He(Oe,p,i,S),c)return S;for(d in(h=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Me.test(p.type),a=p.url.replace(Le,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ee,"+")):(u=p.url.slice(a.length),p.data&&(p.processData||"string"==typeof p.data)&&(a+=(_e.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(a=a.replace(De,"$1"),u=(_e.test(a)?"&":"?")+"_="+we.guid+++u),p.url=a+u),p.ifModified&&(w.lastModified[a]&&S.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&S.setRequestHeader("If-None-Match",w.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ne+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||c))return S.abort();if(C="abort",b.add(p.complete),S.done(p.success),S.fail(p.error),n=He(ze,p,i,S)){if(S.readyState=1,h&&g.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(s=t.setTimeout((function(){S.abort("timeout")}),p.timeout));try{c=!1,n.send(x,k)}catch(t){if(c)throw t;k(-1,t)}}else k(-1,"No Transport");function k(e,i,r,l){var d,u,m,x,_,C=i;c||(c=!0,s&&t.clearTimeout(s),n=void 0,o=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,r&&(x=function(t,e,i){for(var n,a,o,r,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(a in s)if(s[a]&&s[a].test(n)){l.unshift(a);break}if(l[0]in i)o=l[0];else{for(a in i){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,S,r)),!d&&w.inArray("script",p.dataTypes)>-1&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(t,e,i,n){var a,o,r,s,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(a in c)if((s=a.split(" "))[1]===o&&(r=c[l+" "+s[0]]||c["* "+s[0]])){!0===r?r=c[a]:!0!==c[a]&&(o=s[0],h.unshift(s[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,x,S,d),d?(p.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=_),(_=S.getResponseHeader("etag"))&&(w.etag[a]=_)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,u=x.data,d=!(m=x.error))):(m=C,!e&&C||(C="error",e<0&&(e=0))),S.status=e,S.statusText=(i||C)+"",d?v.resolveWith(f,[u,C,S]):v.rejectWith(f,[S,C,m]),S.statusCode(y),y=void 0,h&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,p,d?u:m]),b.fireWith(f,[S,C]),h&&(g.trigger("ajaxComplete",[S,p]),--w.active||w.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,i,n,a){return f(i)&&(a=a||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:a,data:i,success:n},w.isPlainObject(t)&&t))}})),w.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(f(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return f(t)?this.each((function(e){w(this).wrapInner(t.call(this,e))})):this.each((function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(i){w(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var je={0:200,1223:204},Ye=w.ajaxSettings.xhr();p.cors=!!Ye&&"withCredentials"in Ye,p.ajax=Ye=!!Ye,w.ajaxTransport((function(e){var i,n;if(p.cors||Ye&&!e.crossDomain)return{send:function(a,o){var r,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)s[r]=e.xhrFields[r];for(r in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(r,a[r]);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(je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),w.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,a){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&a("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){i&&i()}}}));var We,Xe=[],Ve=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||w.expando+"_"+we.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(e,i,n){var a,o,r,s=!1!==e.jsonp&&(Ve.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=f(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ve,"$1"+a):!1!==e.jsonp&&(e.url+=(_e.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return r||w.error(a+" was not called"),r[0]},e.dataTypes[0]="json",o=t[a],t[a]=function(){r=arguments},n.always((function(){void 0===o?w(t).removeProp(a):t[a]=o,e[a]&&(e.jsonpCallback=i.jsonpCallback,Xe.push(a)),r&&f(o)&&o(r[0]),r=o=void 0})),"script"})),p.createHTMLDocument=((We=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
25",2===We.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(p.createHTMLDocument?((n=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(n)):e=m),o=!i&&[],(a=E.exec(t))?[e.createElement(a[1])]:(a=xt([t],e,o),o&&o.length&&w(o).remove(),w.merge([],a.childNodes)));var n,a,o},w.fn.load=function(t,e,i){var n,a,o,r=this,s=t.indexOf(" ");return s>-1&&(n=fe(t.slice(s)),t=t.slice(0,s)),f(e)?(i=e,e=void 0):e&&"object"==typeof e&&(a="POST"),r.length>0&&w.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done((function(t){o=arguments,r.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,(function(e){return t===e.elem})).length},w.offset={setOffset:function(t,e,i){var n,a,o,r,s,l,c=w.css(t,"position"),h=w(t),d={};"static"===c&&(t.style.position="relative"),s=h.offset(),o=w.css(t,"top"),l=w.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(r=(n=h.position()).top,a=n.left):(r=parseFloat(o)||0,a=parseFloat(l)||0),f(e)&&(e=e.call(t,i,w.extend({},s))),null!=e.top&&(d.top=e.top-s.top+r),null!=e.left&&(d.left=e.left-s.left+a),"using"in e?e.using.call(t,d):h.css(d)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){w.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],a={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((a=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),a.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-a.top-w.css(n,"marginTop",!0),left:e.left-a.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||nt}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return Y(this,(function(t,n,a){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===a)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:a,i?a:o.pageYOffset):t[n]=a}),t,n,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Yt(p.pixelPosition,(function(t,i){if(i)return i=jt(t,e),Rt.test(i)?w(t).position()[e]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){w.fn[n]=function(a,o){var r=arguments.length&&(i||"boolean"!=typeof a),s=i||(!0===a||!0===o?"margin":"border");return Y(this,(function(e,i,a){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===a?w.css(e,i,s):w.style(e,i,a,s)}),e,r?a:void 0,r)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}})),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){w.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var $e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),f(t))return n=a.call(arguments,2),o=function(){return t.apply(e||this,n.concat(a.call(arguments)))},o.guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=f,w.isWindow=g,w.camelCase=$,w.type=y,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace($e,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ge=t.jQuery,qe=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=qe),e&&t.jQuery===w&&(t.jQuery=Ge),w},void 0===e&&(t.jQuery=t.$=w),w})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Popper={})}(this,(function(t){"use strict";function e(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function i(t){return t instanceof e(t).Element||t instanceof Element}function n(t){return t instanceof e(t).HTMLElement||t instanceof HTMLElement}function a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof e(t).ShadowRoot||t instanceof ShadowRoot)}var o=Math.max,r=Math.min,s=Math.round;function l(t,e){void 0===e&&(e=!1);var i=t.getBoundingClientRect(),a=1,o=1;if(n(t)&&e){var r=t.offsetHeight,l=t.offsetWidth;l>0&&(a=s(i.width)/l||1),r>0&&(o=s(i.height)/r||1)}return{width:i.width/a,height:i.height/o,top:i.top/o,right:i.right/a,bottom:i.bottom/o,left:i.left/a,x:i.left/a,y:i.top/o}}function c(t){var i=e(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}
vendor: 4,327 bytes, line 25
25function h(t){return t?(t.nodeName||"").toLowerCase():null}function d(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}function u(t){return l(d(t)).left+c(t).scrollLeft}function p(t){return e(t).getComputedStyle(t)}function f(t){var e=p(t),i=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function g(t,i,a){void 0===a&&(a=!1);var o,r,p=n(i),g=n(i)&&function(t){var e=t.getBoundingClientRect(),i=s(e.width)/t.offsetWidth||1,n=s(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(i),m=d(i),v=l(t,g),b={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(p||!p&&!a)&&(("body"!==h(i)||f(m))&&(b=(o=i)!==e(o)&&n(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:c(o)),n(i)?((y=l(i,!0)).x+=i.clientLeft,y.y+=i.clientTop):m&&(y.x=u(m))),{x:v.left+b.scrollLeft-y.x,y:v.top+b.scrollTop-y.y,width:v.width,height:v.height}}function m(t){var e=l(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function v(t){return"html"===h(t)?t:t.assignedSlot||t.parentNode||(a(t)?t.host:null)||d(t)}function b(t){return["html","body","#document"].indexOf(h(t))>=0?t.ownerDocument.body:n(t)&&f(t)?t:b(v(t))}function y(t,i){var n;void 0===i&&(i=[]);var a=b(t),o=a===(null==(n=t.ownerDocument)?void 0:n.body),r=e(a),s=o?[r].concat(r.visualViewport||[],f(a)?a:[]):a,l=i.concat(s);return o?l:l.concat(y(v(s)))}function x(t){return["table","td","th"].indexOf(h(t))>=0}function w(t){return n(t)&&"fixed"!==p(t).position?t.offsetParent:null}function _(t){for(var i=e(t),o=w(t);o&&x(o)&&"static"===p(o).position;)o=w(o);return o&&("html"===h(o)||"body"===h(o)&&"static"===p(o).position)?i:o||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&n(t)&&"fixed"===p(t).position)return null;var i=v(t);for(a(i)&&(i=i.host);n(i)&&["html","body"].indexOf(h(i))<0;){var o=p(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}(t)||i}var C="top",S="bottom",k="right",A="left",T="auto",E=[C,S,k,A],L="start",D="end",P="viewport",M="popper",I=E.reduce((function(t,e){return t.concat([e+"-"+L,e+"-"+D])}),[]),O=[].concat(E,[T]).reduce((function(t,e){return t.concat([e,e+"-"+L,e+"-"+D])}),[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function N(t){var e=new Map,i=new Set,n=[];function a(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&a(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||a(t)})),n}function R(t){return t.split("-")[0]}function F(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&a(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function H(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function B(t,n){return n===P?H(function(t){var i=e(t),n=d(t),a=i.visualViewport,o=n.clientWidth,r=n.clientHeight,s=0,l=0;return a&&(o=a.width,r=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,l=a.offsetTop)),{width:o,height:r,x:s+u(t),y:l}}(t)):i(n)?function(t){var e=l(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(n):H(function(t){var e,i=d(t),n=c(t),a=null==(e=t.ownerDocument)?void 0:e.body,r=o(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=o(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+u(t),h=-n.scrollTop;return"rtl"===p(a||i).direction&&(l+=o(i.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:h}}(d(t)))}function j(t,e,a){var s="clippingParents"===e?function(t){var e=y(v(t)),a=["absolute","fixed"].indexOf(p(t).position)>=0&&n(t)?_(t):t;return i(a)?e.filter((function(t){return i(t)&&F(t,a)&&"body"!==h(t)})):[]}(t):[].concat(e),l=[].concat(s,[a]),c=l[0],d=l.reduce((function(e,i){var n=B(t,i);
vendor: 12,061 bytes, line 25
25return e.top=o(n.top,e.top),e.right=r(n.right,e.right),e.bottom=r(n.bottom,e.bottom),e.left=o(n.left,e.left),e}),B(t,c));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Y(t){return t.split("-")[1]}function W(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function X(t){var e,i=t.reference,n=t.element,a=t.placement,o=a?R(a):null,r=a?Y(a):null,s=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case C:e={x:s,y:i.y-n.height};break;case S:e={x:s,y:i.y+i.height};break;case k:e={x:i.x+i.width,y:l};break;case A:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?W(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case L:e[c]=e[c]-(i[h]/2-n[h]/2);break;case D:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function V(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function G(t,e){void 0===e&&(e={});var n=e,a=n.placement,o=void 0===a?t.placement:a,r=n.boundary,s=void 0===r?"clippingParents":r,c=n.rootBoundary,h=void 0===c?P:c,u=n.elementContext,p=void 0===u?M:u,f=n.altBoundary,g=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,b=V("number"!=typeof v?v:$(v,E)),y=p===M?"reference":M,x=t.rects.popper,w=t.elements[g?y:p],_=j(i(w)?w:w.contextElement||d(t.elements.popper),s,h),A=l(t.elements.reference),T=X({reference:A,element:x,strategy:"absolute",placement:o}),L=H(Object.assign({},x,T)),D=p===M?L:A,I={top:_.top-D.top+b.top,bottom:D.bottom-_.bottom+b.bottom,left:_.left-D.left+b.left,right:D.right-_.right+b.right},O=t.modifiersData.offset;if(p===M&&O){var z=O[o];Object.keys(I).forEach((function(t){var e=[k,S].indexOf(t)>=0?1:-1,i=[C,S].indexOf(t)>=0?"y":"x";I[t]+=z[i]*e}))}return I}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Z(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,a=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?q:o;return function(t,e,n){void 0===n&&(n=r);var o,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],h=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;u(),l.options=Object.assign({},r,l.options,o),l.scrollParents={reference:i(t)?y(t):t.contextElement?y(t.contextElement):[],popper:y(e)};var s,h,p=function(t){var e=N(t);return z.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((s=[].concat(a,l.options.modifiers),h=s.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(h).map((function(t){return h[t]}))));return l.orderedModifiers=p.filter((function(t){return t.enabled})),l.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,a=t.effect;if("function"==typeof a){var o=a({state:l,name:e,instance:d,options:n});c.push(o||function(){})}})),d.update()},forceUpdate:function(){if(!h){var t=l.elements,e=t.reference,i=t.popper;if(U(e,i)){l.rects={reference:g(e,_(i),"fixed"===l.options.strategy),popper:m(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var a=l.orderedModifiers[n],o=a.fn,r=a.options,s=void 0===r?{}:r,c=a.name;"function"==typeof o&&(l=o({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(l)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){u(),h=!0}};if(!U(t,e))return d;function u(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(n).then((function(t){!h&&n.onFirstUpdate&&n.onFirstUpdate(t)})),d}}var K={passive:!0},J={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var i=t.state,n=t.instance,a=t.options,o=a.scroll,r=void 0===o||o,s=a.resize,l=void 0===s||s,c=e(i.elements.popper),h=[].concat(i.scrollParents.reference,i.scrollParents.popper);return r&&h.forEach((function(t){t.addEventListener("scroll",n.update,K)})),l&&c.addEventListener("resize",n.update,K),function(){r&&h.forEach((function(t){t.removeEventListener("scroll",n.update,K)})),l&&c.removeEventListener("resize",n.update,K)}},data:{}},Q={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=X({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var i,n=t.popper,a=t.popperRect,o=t.placement,r=t.variation,l=t.offsets,c=t.position,h=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,g=t.isFixed,m=l.x,v=void 0===m?0:m,b=l.y,y=void 0===b?0:b,x="function"==typeof f?f({x:v,y:y}):{x:v,y:y};v=x.x,y=x.y;var w=l.hasOwnProperty("x"),T=l.hasOwnProperty("y"),E=A,L=C,P=window;if(u){var M=_(n),I="clientHeight",O="clientWidth";M===e(n)&&"static"!==p(M=d(n)).position&&"absolute"===c&&(I="scrollHeight",O="scrollWidth"),(o===C||(o===A||o===k)&&r===D)&&(L=S,y-=(g&&M===P&&P.visualViewport?P.visualViewport.height:M[I])-a.height,y*=h?1:-1),o!==A&&(o!==C&&o!==S||r!==D)||(E=k,v-=(g&&M===P&&P.visualViewport?P.visualViewport.width:M[O])-a.width,v*=h?1:-1)}var z,N=Object.assign({position:c},u&&tt),R=!0===f?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:s(e*n)/n||0,y:s(i*n)/n||0}}({x:v,y:y}):{x:v,y:y};return v=R.x,y=R.y,h?Object.assign({},N,((z={})[L]=T?"0":"",z[E]=w?"0":"",z.transform=(P.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",z)):Object.assign({},N,((i={})[L]=T?y+"px":"",i[E]=w?v+"px":"",i.transform="",i))}var it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,a=void 0===n||n,o=i.adaptive,r=void 0===o||o,s=i.roundOffsets,l=void 0===s||s,c={placement:R(e.placement),variation:Y(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},nt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},a=e.attributes[t]||{},o=e.elements[t];n(o)&&h(o)&&(Object.assign(o.style,i),Object.keys(a).forEach((function(t){var e=a[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var a=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});n(a)&&h(a)&&(Object.assign(a.style,r),Object.keys(o).forEach((function(t){a.removeAttribute(t)})))}))}},requires:["computeStyles"]},at={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,a=i.offset,o=void 0===a?[0,0]:a,r=O.reduce((function(t,i){return t[i]=function(t,e,i){var n=R(t),a=[A,C].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],s=o[1];return r=r||0,s=(s||0)*a,[A,k].indexOf(n)>=0?{x:s,y:r}:{x:r,y:s}}(i,e.rects,o),t}),{}),s=r[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var st={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,(function(t){return st[t]}))}function ct(t,e){void 0===e&&(e={});var i=e,n=i.placement,a=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?O:l,h=Y(n),d=h?s?I:I.filter((function(t){return Y(t)===h})):E,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var p=u.reduce((function(e,i){return e[i]=G(t,{placement:i,boundary:a,rootBoundary:o,padding:r})[R(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}var ht={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=i.mainAxis,o=void 0===a||a,r=i.altAxis,s=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=R(m),b=l||(v!==m&&f?function(t){if(R(t)===T)return[];var e=rt(t);return[lt(t),e,lt(e)]}(m):[rt(m)]),y=[m].concat(b).reduce((function(t,i){return t.concat(R(i)===T?ct(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),x=e.rects.reference,w=e.rects.popper,_=new Map,E=!0,D=y[0],P=0;P<y.length;P++){var M=y[P],I=R(M),O=Y(M)===L,z=[C,S].indexOf(I)>=0,N=z?"width":"height",F=G(e,{placement:M,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),H=z?O?k:A:O?S:C;x[N]>w[N]&&(H=rt(H));var B=rt(H),j=[];if(o&&j.push(F[I]<=0),s&&j.push(F[H]<=0,F[B]<=0),j.every((function(t){return t}))){D=M,E=!1;break}_.set(M,j)}if(E)for(var W=function(t){var e=y.find((function(e){var i=_.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return D=e,"break"},X=f?3:1;X>0&&"break"!==W(X);X--);e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dt(t,e,i){return o(t,r(e,i))}var ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,a=i.mainAxis,s=void 0===a||a,l=i.altAxis,c=void 0!==l&&l,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,p=i.padding,f=i.tether,g=void 0===f||f,v=i.tetherOffset,b=void 0===v?0:v,y=G(e,{boundary:h,rootBoundary:d,padding:p,altBoundary:u}),x=R(e.placement),w=Y(e.placement),T=!w,E=W(x),D="x"===E?"y":"x",P=e.modifiersData.popperOffsets,M=e.rects.reference,I=e.rects.popper,O="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,z="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(P){if(s){var H,B="y"===E?C:A,j="y"===E?S:k,X="y"===E?"height":"width",V=P[E],$=V+y[B],q=V-y[j],U=g?-I[X]/2:0,Z=w===L?M[X]:I[X],K=w===L?-I[X]:-M[X],J=e.elements.arrow,Q=g&&J?m(J):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[B],it=tt[j],nt=dt(0,M[X],Q[X]),at=T?M[X]/2-U-nt-et-z.mainAxis:Z-nt-et-z.mainAxis,ot=T?-M[X]/2+U+nt+it+z.mainAxis:K+nt+it+z.mainAxis,rt=e.elements.arrow&&_(e.elements.arrow),st=rt?"y"===E?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(H=null==N?void 0:N[E])?H:0,ct=V+ot-lt,ht=dt(g?r($,V+at-lt-st):$,V,g?o(q,ct):q);P[E]=ht,F[E]=ht-V}if(c){var ut,pt="x"===E?C:A,ft="x"===E?S:k,gt=P[D],mt="y"===D?"height":"width",vt=gt+y[pt],bt=gt-y[ft],yt=-1!==[C,A].indexOf(x),xt=null!=(ut=null==N?void 0:N[D])?ut:0,wt=yt?vt:gt-M[mt]-I[mt]-xt+z.altAxis,_t=yt?gt+M[mt]+I[mt]-xt-z.altAxis:bt,Ct=g&&yt?function(t,e,
25i){var n=dt(t,e,i);return n>i?i:n}(wt,gt,_t):dt(g?wt:vt,gt,g?_t:bt);P[D]=Ct,F[D]=Ct-gt}e.modifiersData[n]=F}},requiresIfExists:["offset"]},pt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,a=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,s=R(i.placement),l=W(s),c=[A,k].indexOf(s)>=0?"height":"width";if(o&&r){var h=function(t,e){return V("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:$(t,E))}(a.padding,i),d=m(o),u="y"===l?C:A,p="y"===l?S:k,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],v=_(o),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-g/2,x=h[u],w=b-d[c]-h[p],T=b/2-d[c]/2+y,L=dt(x,T,w),D=l;i.modifiersData[n]=((e={})[D]=L,e.centerOffset=L-T,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&F(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function gt(t){return[C,k,S,A].some((function(e){return t[e]>=0}))}var mt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,a=e.rects.popper,o=e.modifiersData.preventOverflow,r=G(e,{elementContext:"reference"}),s=G(e,{altBoundary:!0}),l=ft(r,n),c=ft(s,a,o),h=gt(l),d=gt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},vt=Z({defaultModifiers:[J,Q,it,nt]}),bt=[J,Q,it,nt,at,ht,ut,pt,mt],yt=Z({defaultModifiers:bt});t.applyStyles=nt,t.arrow=pt,t.computeStyles=it,t.createPopper=yt,t.createPopperLite=vt,t.defaultModifiers=bt,t.detectOverflow=G,t.eventListeners=J,t.flip=ht,t.hide=mt,t.offset=at,t.popperGenerator=Z,t.popperOffsets=Q,t.preventOverflow=ut,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";const e=function(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}(t),i="transitionend",n=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},a=t=>{const e=n(t);return e&&document.querySelector(e)?e:null},o=t=>{const e=n(t);return e?document.querySelector(e):null},r=t=>{t.dispatchEvent(new Event(i))},s=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),l=t=>s(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,c=t=>{if(!s(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},p=t=>{t.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,g=[],m=()=>"rtl"===document.documentElement.dir,v=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(g.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of g)t()})),g.push(e)):e()},b=t=>{"function"==typeof t&&t()},y=(t,e,n=!0)=>
vendor: 7,241 bytes, line 25
25{if(!n)return void b(t);const a=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),a=Number.parseFloat(i);return n||a?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let o=!1;const s=({target:n})=>{n===e&&(o=!0,e.removeEventListener(i,s),b(t))};e.addEventListener(i,s),setTimeout((()=>{o||r(e)}),a)},x=(t,e,i,n)=>{const a=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[a-1]:t[0]:(o+=i?1:-1,n&&(o=(o+a)%a),t[Math.max(0,Math.min(o,a-1))])},w=/[^.]*(?=\..*)\.|.*/,_=/\..*/,C=/::\d+$/,S={};let k=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},T=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function E(t,e){return e&&`${e}::${k++}`||t.uidEvent||k++}function L(t){const e=E(t);return t.uidEvent=e,S[e]=S[e]||{},S[e]}function D(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function P(t,e,i){const n="string"==typeof e,a=n?i:e||i;let o=z(t);return T.has(o)||(o=t),[n,a,o]}function M(t,e,i,n,a){if("string"!=typeof e||!t)return;let[o,r,s]=P(e,i,n);if(e in A){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=L(t),c=l[s]||(l[s]={}),h=D(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&a);const d=E(r,e.replace(w,"")),u=o?function(t,e,i){return function n(a){const o=t.querySelectorAll(e);for(let{target:r}=a;r&&r!==this;r=r.parentNode)for(const s of o)if(s===r)return R(a,{delegateTarget:r}),n.oneOff&&N.off(t,a.type,e,i),i.apply(r,[a])}}(t,i,r):function(t,e){return function i(n){return R(n,{delegateTarget:t}),i.oneOff&&N.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=a,u.uidEvent=d,c[d]=u,t.addEventListener(s,u,o)}function I(t,e,i,n,a){const o=D(e[i],n,a);o&&(t.removeEventListener(i,o,Boolean(a)),delete e[i][o.uidEvent])}function O(t,e,i,n){const a=e[i]||{};for(const o of Object.keys(a))if(o.includes(n)){const n=a[o];I(t,e,i,n.callable,n.delegationSelector)}}function z(t){return t=t.replace(_,""),A[t]||t}const N={on(t,e,i,n){M(t,e,i,n,!1)},one(t,e,i,n){M(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[a,o,r]=P(e,i,n),s=r!==e,l=L(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))O(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(C,"");if(!s||e.includes(n)){const e=c[i];I(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;I(t,l,r,o,a?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=f();let a=null,o=!0,r=!0,s=!1;e!==z(e)&&n&&(a=n.Event(e,i),n(t).trigger(a),o=!a.isPropagationStopped(),r=!a.isImmediatePropagationStopped(),s=a.isDefaultPrevented());let l=new Event(e,{bubbles:o,cancelable:!0});return l=R(l,i),s&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function R(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}const F=new Map,H={set(t,e,i){F.has(t)||F.set(t,new Map);const n=F.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>F.has(t)&&F.get(t).get(e)||null,remove(t,e){if(!F.has(t))return;const i=F.get(t);i.delete(e),0===i.size&&F.delete(t)}};function B(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function j(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const Y={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${j(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${j(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=B(t.dataset[n])}return e},getDataAttribute:(t,e)=>B(t.getAttribute(`data-bs-${j(e)}`))};class W{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=s(e)?Y.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...s(e)?Y.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const a=e[n],o=t[n],r=s(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(a).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${a}".`)}var i}}class X extends W{constructor(t,e){super(),(t=l(t))&&(this._element=t,this._config=this._getConfig(e),H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){y(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return H.get(l(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.0"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const V=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;N.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),h(this))return;const a=o(this)||this.closest(`.${n}`);t.getOrCreateInstance(a)[e]()}))};class $ extends X{static get NAME(){return"alert"}close(){if(N.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),N.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=$.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
25amed "${t}"`);e[t](this)}}))}}V($,"close"),v($);const G='[data-bs-toggle="button"]';class q extends X{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=q.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}N.on(document,"click.bs.button.data-api",G,(t=>{t.preventDefault();const e=t.target.closest(G);q.getOrCreateInstance(e).toggle()})),v(q);const U={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!h(t)&&c(t)))}},Z={endCallback:null,leftCallback:null,rightCallback:null},K={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class J extends W{constructor(t,e){super(),this._element=t,t&&J.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Z}static get DefaultType(){return K}static get NAME(){return"swipe"}dispose(){N.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),b(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&b(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(N.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),N.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classList.add("pointer-event")):(N.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),N.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),N.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Q="next",tt="prev",et="left",it="right",nt="slid.bs.carousel",at="carousel",ot="active",rt={ArrowLeft:it,ArrowRight:et},st={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},lt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ct extends X{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===at&&this.cycle()}static get Default(){return st}static get DefaultType(){return lt}static get NAME(){return"carousel"}next(){this._slide(Q)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(tt)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?N.one(this._element,nt,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void N.one(this._element,nt,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Q:tt;this._slide(n,e[t])}
25dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&N.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(N.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),N.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&J.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of U.find(".carousel-item img",this._element))N.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(et)),rightCallback:()=>this._slide(this._directionToOrder(it)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new J(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=rt[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=U.findOne(".active",this._indicatorsElement);e.classList.remove(ot),e.removeAttribute("aria-current");const i=U.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ot),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===Q,a=e||x(this._getItems(),i,n,this._config.wrap);if(a===i)return;const o=this._getItemIndex(a),r=e=>N.trigger(this._element,e,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!a)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=a;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";a.classList.add(c),p(a),i.classList.add(l),a.classList.add(l),this._queueCallback((()=>{a.classList.remove(l,c),a.classList.add(ot),i.classList.remove(ot,c,l),this._isSliding=!1,r(nt)}),i,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return U.findOne(".active.carousel-item",this._element)}_getItems(){return U.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return m()?t===et?tt:Q:t===et?Q:tt}_orderToDirection(t){return m()?t===tt?et:it:t===tt?it:et}static jQueryInterface(t){return this.each((function(){const e=ct.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}N.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=o(this);if(!e||!e.classList.contains(at))return;t.preventDefault();const i=ct.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===Y.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),N.on(window,"load.bs.carousel.data-api",(()=>{const t=U.find('[data-bs-ride="carousel"]');for(const e of t)ct.getOrCreateInstance(e)})),v(ct);const ht="show",dt="collapse",ut="collapsing",pt='[data-bs-toggle="collapse"]',ft={parent:null,toggle:!0},gt={parent:"(null|element)",toggle:"boolean"};class mt extends X{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=U.find(pt);for(const t of i){const e=a(t),i=U.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ft}static get DefaultType(){return gt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>mt.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(N.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(dt),this._element.classList.add(ut),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ut),this._element.classList.add(dt,ht),this._element.style[e]="",N.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}
25hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,p(this._element),this._element.classList.add(ut),this._element.classList.remove(dt,ht);for(const t of this._triggerArray){const e=o(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ut),this._element.classList.add(dt),N.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ht)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=l(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(pt);for(const e of t){const t=o(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(":scope .collapse .collapse",this._config.parent);return U.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=mt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}N.on(document,"click.bs.collapse.data-api",pt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=a(this),i=U.find(e);for(const t of i)mt.getOrCreateInstance(t,{toggle:!1}).toggle()})),v(mt);const vt="dropdown",bt="ArrowUp",yt="ArrowDown",xt="click.bs.dropdown.data-api",wt="keydown.bs.dropdown.data-api",_t="show",Ct='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',St=`${Ct}.show`,kt=".dropdown-menu",At=m()?"top-end":"top-start",Tt=m()?"top-start":"top-end",Et=m()?"bottom-end":"bottom-start",Lt=m()?"bottom-start":"bottom-end",Dt=m()?"left-start":"right-start",Pt=m()?"right-start":"left-start",Mt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},It={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ot extends X{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.findOne(kt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Mt}static get DefaultType(){return It}static get NAME(){return vt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(h(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!N.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
25navbar-nav"))for(const t of[].concat(...document.body.children))N.on(t,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_t),this._element.classList.add(_t),N.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(h(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!N.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(_t),this._element.classList.remove(_t),this._element.setAttribute("aria-expanded","false"),Y.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!s(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${vt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:s(this._config.reference)?t=l(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=e.createPopper(t,this._menu,i)}_isShown(){return this._menu.classList.contains(_t)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Dt;if(t.classList.contains("dropstart"))return Pt;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Tt:At:e?Lt:Et}
25_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Y.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>c(t)));i.length&&x(i,e,t===yt,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Ot.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=U.find(St);for(const i of e){const e=Ot.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),a=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!a||"outside"===e._config.autoClose&&a)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[bt,yt].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const a=U.findOne(Ct,t.delegateTarget.parentNode),o=Ot.getOrCreateInstance(a);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}}N.on(document,wt,Ct,Ot.dataApiKeydownHandler),N.on(document,wt,kt,Ot.dataApiKeydownHandler),N.on(document,xt,Ot.clearMenus),N.on(document,"keyup.bs.dropdown.data-api",Ot.clearMenus),N.on(document,xt,Ct,(function(t){t.preventDefault(),Ot.getOrCreateInstance(this).toggle()})),v(Ot);const zt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Nt=".sticky-top",Rt="padding-right",Ft="margin-right";class Ht{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Rt,(e=>e+t)),this._setElementAttributes(zt,Rt,(e=>e+t)),this._setElementAttributes(Nt,Ft,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Rt),this._resetElementAttributes(zt,Rt),this._resetElementAttributes(Nt,Ft)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const a=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(a))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&Y.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=Y.getDataAttribute(t,e);null!==i?(Y.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(s(t))e(t);else for(const i of U.find(t,this._element))e(i)}}const Bt="show",jt="mousedown.bs.backdrop",Yt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Wt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xt extends W{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Yt}static get DefaultType(){return Wt}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void b(t);this._append();const e=this._getElement();this._config.isAnimated&&p(e),e.classList.add(Bt),this._emulateAnimation((()=>{b(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Bt),this._emulateAnimation((()=>{this.dispose(),b(t)}))):b(t)}dispose(){this._isAppended&&(N.off(this._element,jt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=l(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),N.on(t,jt,(()=>{b(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){y(t,this._getElement(),this._config.isAnimated)}}const Vt=".bs.focustrap",$t="backward",Gt={autofocus:!0,trapElement:null},qt={autofocus:"boolean",trapElement:"element"};class Ut extends W{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Gt}static get DefaultType(){return qt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),N.off(document,Vt),N.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),N.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Vt))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=U.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===$t?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?$t:"forward")}}const Zt="hidden.bs.modal",Kt="show.bs.modal",Jt="modal-open",Qt="show",te="modal-static",ee={backdrop:!0,focus:!0,keyboard:!0},ie={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ne extends X{constructor(t,e){super(t,e),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ht,this._addEventListeners()}static get Default(){return ee}static get DefaultType(){return ie}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||N.trigger(this._element,Kt,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Jt),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(N.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Qt),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])N.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ut({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=U.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),p(this._element),this._element.classList.add(Qt),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){N.on(this._element,"keydown.dismiss.bs.modal",(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),N.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),N.on(this._element,"mousedown.dismiss.bs.modal",(t=>{t.target===t.currentTarget&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Jt),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,Zt)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(te)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(te),this._queueCallback((()=>{this._element.classList.remove(te),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=m()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=m()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=ne.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method n
25amed "${t}"`);i[t](e)}}))}}N.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=o(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),N.one(e,Kt,(t=>{t.defaultPrevented||N.one(e,Zt,(()=>{c(this)&&this.focus()}))}));const i=U.findOne(".modal.show");i&&ne.getInstance(i).hide(),ne.getOrCreateInstance(e).toggle(this)})),V(ne),v(ne);const ae="show",oe="showing",re="hiding",se=".offcanvas.show",le="hidePrevented.bs.offcanvas",ce="hidden.bs.offcanvas",he={backdrop:!0,keyboard:!0,scroll:!1},de={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ue extends X{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return he}static get DefaultType(){return de}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||N.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ht).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(oe),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ae),this._element.classList.remove(oe),N.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(N.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(re),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(ae,re),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ht).reset(),N.trigger(this._element,ce)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Xt({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():N.trigger(this._element,le)}:null})}_initializeFocusTrap(){return new Ut({trapElement:this._element})}_addEventListeners(){N.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():N.trigger(this._element,le))}))}static jQueryInterface(t){return this.each((function(){const e=ue.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}N.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=o(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this))return;N.one(e,ce,(()=>{c(this)&&this.focus()}));const i=U.findOne(se);i&&i!==e&&ue.getInstance(i).hide(),ue.getOrCreateInstance(e).toggle(this)})),N.on(window,"load.bs.offcanvas.data-api",(()=>{for(const t of U.find(se))ue.getOrCreateInstance(t).show()})),N.on(window,"resize.bs.offcanvas",(()=>{for(const t of U.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&ue.getOrCreateInstance(t).hide()})),V(ue),v(ue);const pe=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fe=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ge=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,me=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!pe.has(i)||Boolean(fe.test(t.nodeValue)||ge.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},ve={"*":["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:[]},be={allowList:ve,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ye={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},xe={entry:"(string|element|function|null)",selector:"(string|element)"};class we extends W{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return be}static get DefaultType(){return ye}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>
vendor: 4,287 bytes, line 25
25this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},xe)}_setContent(t,e,i){const n=U.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?s(e)?this._putElementInTemplate(l(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),a=[].concat(...n.body.querySelectorAll("*"));for(const t of a){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),a=[].concat(e["*"]||[],e[i]||[]);for(const e of n)me(e,a)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const _e=new Set(["sanitize","allowList","sanitizeFn"]),Ce="fade",Se="show",ke=".modal",Ae="hide.bs.modal",Te="hover",Ee="focus",Le={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},De={allowList:ve,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Pe={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Me extends X{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return De}static get DefaultType(){return Pe}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled){if(t){const e=this._initializeOnDelegatedTarget(t);return e._activeTrigger.click=!e._activeTrigger.click,void(e._isWithActiveTrigger()?e._enter():e._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(ke),Ae,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=N.trigger(this._element,this.constructor.eventName("show")),e=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this.tip&&(this.tip.remove(),this.tip=null);const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),N.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update(
25):this._popper=this._createPopper(i),i.classList.add(Se),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.on(t,"mouseover",u);this._queueCallback((()=>{const t=this._isHovered;this._isHovered=!1,N.trigger(this._element,this.constructor.eventName("shown")),t&&this._leave()}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(N.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;const t=this._getTipElement();if(t.classList.remove(Se),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))N.off(t,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=!1,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||t.remove(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ce,Se),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Ce),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new we({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._config.originalTitle}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ce)}_isShown(){return this.tip&&this.tip.classList.contains(Se)}_createPopper(t){const i="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,n=Le[i.toUpperCase()];return e.createPopper(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)N.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>this.toggle(t)));else if("manual"!==e){const t=e===Te?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Te?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");N.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ee:Te]=!0,e._enter()})),N.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Ee:Te]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(ke),Ae,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._config.originalTitle;t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=Y.getDataAttributes(this._element);for(const t of Object.keys(e))_e.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:l(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.originalTitle=this._element.getAttribute("title")||"","number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=Me.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
25amed "${t}"`);e[t]()}}))}}v(Me);const Ie={...Me.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Oe={...Me.DefaultType,content:"(null|string|element|function)"};class ze extends Me{static get Default(){return Ie}static get DefaultType(){return Oe}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=ze.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}v(ze);const Ne="click.bs.scrollspy",Re="active",Fe="[href]",He={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null},Be={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element"};class je extends X{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return He}static get DefaultType(){return Be}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=l(t.target)||document.body,t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(N.off(this._config.target,Ne),N.on(this._config.target,Ne,Fe,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:[.1,.5,1],rootMargin:this._getRootMargin()};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,a=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&t){if(i(o),!n)return}else a||t||i(o)}}_getRootMargin(){return this._config.offset?`${this._config.offset}px 0px -30%`:this._config.rootMargin}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=U.find(Fe,this._config.target);for(const e of t){if(!e.hash||h(e))continue;const t=U.findOne(e.hash,this._element);c(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Re),this._activateParents(t),N.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))U.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Re);else for(const e of U.parents(t,".nav, .list-group"))for(const t of U.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(Re)}_clearActiveClass(t){t.classList.remove(Re);const e=U.find("[href].active",t);for(const t of e)t.classList.remove(Re)}static jQueryInterface(t){return this.each((function(){const e=je.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
25amed "${t}"`);e[t]()}}))}}N.on(window,"load.bs.scrollspy.data-api",(()=>{for(const t of U.find('[data-bs-spy="scroll"]'))je.getOrCreateInstance(t)})),v(je);const Ye="ArrowLeft",We="ArrowRight",Xe="ArrowUp",Ve="ArrowDown",$e="active",Ge="fade",qe="show",Ue='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ze=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Ue}`;class Ke extends X{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),N.on(this._element,"keydown.bs.tab",(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?N.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;N.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add($e),this._activate(o(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),N.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(qe)}),t,t.classList.contains(Ge)))}_deactivate(t,e){t&&(t.classList.remove($e),t.blur(),this._deactivate(o(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),N.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(qe)}),t,t.classList.contains(Ge)))}
25_keydown(t){if(![Ye,We,Xe,Ve].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[We,Ve].includes(t.key),i=x(this._getChildren().filter((t=>!h(t))),t.target,e,!0);i&&Ke.getOrCreateInstance(i).show()}_getChildren(){return U.find(Ze,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=o(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const a=U.findOne(t,i);a&&a.classList.toggle(n,e)};n(".dropdown-toggle",$e),n(".dropdown-menu",qe),n(".dropdown-item",$e),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains($e)}_getInnerElement(t){return t.matches(Ze)?t:U.findOne(Ze,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ke.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}N.on(document,"click.bs.tab",Ue,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this)||Ke.getOrCreateInstance(this).show()})),N.on(window,"load.bs.tab",(()=>{for(const t of U.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))Ke.getOrCreateInstance(t)})),v(Ke);const Je="hide",Qe="show",ti="showing",ei={animation:"boolean",autohide:"boolean",delay:"number"},ii={animation:!0,autohide:!0,delay:5e3};class ni extends X{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ii}static get DefaultType(){return ei}static get NAME(){return"toast"}show(){N.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Je),p(this._element),this._element.classList.add(Qe,ti),this._queueCallback((()=>{this._element.classList.remove(ti),N.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(N.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(ti),this._queueCallback((()=>{this._element.classList.add(Je),this._element.classList.remove(ti,Qe),N.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Qe),super.dispose()}isShown(){return this._element.classList.contains(Qe)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),N.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),N.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),N.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ni.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
25amed "${t}"`);e[t](this)}}))}}return V(ni),v(ni),{Alert:$,Button:q,Carousel:ct,Collapse:mt,Dropdown:Ot,Modal:ne,Offcanvas:ue,Popover:ze,ScrollSpy:je,Tab:Ke,Toast:ni,Tooltip:Me}})), 26/*! 27Waypoints - 4.0.1 28Copyright © 2011-2016 Caleb Troughton 29Licensed under the MIT license. 30https://github.com/imakewebthings/waypoints/blob/master/licenses.txt 31*/ 32function(){"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 a=0,o=i.length;a<o;a++)i[a][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,a=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],a=n.newScroll>n.oldScroll?n.forward:n.backward;for(var o in this.waypoints[i]){var r=this.waypoints[i][o];if(null!==r.triggerPoint){var s=n.oldScroll<r.triggerPoint,l=n.newScroll>=r.triggerPoint;(s&&l||!s&&!l)&&(r.queueTrigger(a),t[r.group.id]=r.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}}
32,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,a=t.length;n<a;n++)t[n].destroy()},o.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),a={};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 r=t[o];for(var s in this.waypoints[o]){var l,c,h,d,u=this.waypoints[o][s],p=u.options.offset,f=u.triggerPoint,g=0,m=null==f;u.element!==u.element.window&&(g=u.adapter.offset()[r.offsetProp]),"function"==typeof p?p=p.apply(u):"string"==typeof p&&(p=parseFloat(p),u.options.offset.indexOf("%")>-1&&(p=Math.ceil(r.contextDimension*p/100))),l=r.contextScroll-r.contextOffset,u.triggerPoint=Math.floor(g+l-p),c=f<r.oldScroll,h=u.triggerPoint>=r.oldScroll,d=!c&&!h,!m&&(c&&h)?(u.queueTrigger(r.backward),a[u.group.id]=u.group):(!m&&d||m&&r.oldScroll>=u.triggerPoint)&&(u.queueTrigger(r.forward),a[u.group.id]=u.group)}}return n.requestAnimationFrame((function(){for(var t in a)a[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(){a&&a(),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 a(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}a.prototype.add=function(t){this.waypoints.push(t)},a.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},a.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],a="up"===i||"left"===i;n.sort(a?e:t);for(var o=0,r=n.length;o<r;o+=1){var s=n[o];(s.options.continuous||o===n.length-1)&&s.trigger([i])}}this.clearTriggerQueues()},a.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]},a.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},a.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},a.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},a.prototype.first=function(){return this.waypoints[0]},a.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},a.findOrCreate=function(t){return i[t.axis][t.name]||new a(t)},n.Group=a}(),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 a=e.extend({},n,{element:this});"string"==typeof a.context&&(a.context=e(this).closest(a.context)[0]),i.push(new t(a))})),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&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flatpickr=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};function e(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),a=0;for(e=0;e<i;e++)for(var o=arguments[e],r=0,s=o.length;r<s;r++,a++)n[a]=o[r];return n}var i=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var i=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
32ox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},a={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},r=function(t){return!0===t?1:0};function s(t,e){var i;return function(){var n=this,a=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(n,a)}),e)}}var l=function(t){return t instanceof Array?t:[t]};function c(t,e,i){if(!0===i)return t.classList.add(e);t.classList.remove(e)}function h(t,e,i){var n=window.document.createElement(t);return e=e||"",i=i||"",n.className=e,void 0!==i&&(n.textContent=i),n}function d(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function u(t,e){return e(t)?t:t.parentNode?u(t.parentNode,e):void 0}function p(t,e){var i=h("div","numInputWrapper"),n=h("input","numInput "+t),a=h("span","arrowUp"),o=h("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(var r in e)n.setAttribute(r,e[r]);return i.appendChild(n),i.appendChild(a),i.appendChild(o),i}function f(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var g=function(){},m=function(t,e,i){return i.months[e?"shorthand":"longhand"][t]},v={D:g,F:function(t,e,i){t.setMonth(i.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,i){t.setHours(t.getHours()%12+12*r(new RegExp(i.amPM[1],"i").test(e)))},M:function(t,e,i){t.setMonth(i.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,i){var n=parseInt(e),a=new Date(t.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+i.firstDayOfWeek),a},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:g,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:g,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},b={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},y={Z:function(t){return t.toISOString()}
vendor: 18,540 bytes, line 32
32,D:function(t,e,i){return e.weekdays.shorthand[y.w(t,e,i)]},F:function(t,e,i){return m(y.n(t,e,i)-1,!1,e)},G:function(t,e,i){return o(y.h(t,e,i))},H:function(t){return o(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[r(t.getHours()>11)]},M:function(t,e){return m(t.getMonth(),!0,e)},S:function(t){return o(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,i){return i.getWeek(t)},Y:function(t){return o(t.getFullYear(),4)},d:function(t){return o(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return o(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return o(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},x=function(t){var e=t.config,i=void 0===e?n:e,o=t.l10n,r=void 0===o?a:o,s=t.isMobile,l=void 0!==s&&s;return function(t,e,n){var a=n||r;return void 0===i.formatDate||l?e.split("").map((function(e,n,o){return y[e]&&"\\"!==o[n-1]?y[e](t,a,i):"\\"!==e?e:""})).join(""):i.formatDate(t,e,a)}},w=function(t){var e=t.config,i=void 0===e?n:e,o=t.l10n,r=void 0===o?a:o;return function(t,e,a,o){if(0===t||t){var s,l=o||r,c=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var h=e||(i||n).dateFormat,d=String(t).trim();if("today"===d)s=new Date,a=!0;else if(i&&i.parseDate)s=i.parseDate(t,h);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(t);else{for(var u=void 0,p=[],f=0,g=0,m="";f<h.length;f++){var y=h[f],x="\\"===y,w="\\"===h[f-1]||x;if(b[y]&&!w){m+=b[y];var _=new RegExp(m).exec(t);_&&(u=!0)&&p["Y"!==y?"push":"unshift"]({fn:v[y],val:_[++g]})}else x||(m+=".")}s=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach((function(t){var e=t.fn,i=t.val;return s=e(s,i,l)||s})),s=u?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===a&&s.setHours(0,0,0,0),s;i.errorHandler(new Error("Invalid date provided: "+c))}}};function _(t,e,i){return void 0===i&&(i=!0),!1!==i?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var C=function(t,e,i){return 3600*t+60*e+i};function S(t){var e=t.defaultHour,i=t.defaultMinute,n=t.defaultSeconds;if(void 0!==t.minDate){var a=t.minDate.getHours(),o=t.minDate.getMinutes(),r=t.minDate.getSeconds();e<a&&(e=a),e===a&&i<o&&(i=o),e===a&&i===o&&n<r&&(n=t.minDate.getSeconds())}if(void 0!==t.maxDate){var s=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,s))===s&&(i=Math.min(l,i)),e===s&&i===l&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:i,seconds:n}}function k(g,v){var y={config:t(t({},n),T.defaultConfig),l10n:a};function k(){var t;return(null===(t=y.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function A(t){return t.bind(y)}function E(){var t=y.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==y.calendarContainer&&(y.calendarContainer.style.visibility="hidden",y.calendarContainer.style.display="block"),void 0!==y.daysContainer){var e=(y.days.offsetWidth+1)*t.showMonths;y.daysContainer.style.width=e+"px",y.calendarContainer.style.width=e+(void 0!==y.weekWrapper?y.weekWrapper.offsetWidth:0)+"px",y.calendarContainer.style.removeProperty("visibility"),y.calendarContainer.style.removeProperty("display")}}))}function L(t){if(0===y.selectedDates.length){var e=void 0===y.config.minDate||_(new Date,y.config.minDate)>=0?new Date:new Date(y.config.minDate.getTime()),i=S(y.config);e.setHours(i.hours,i.minutes,i.seconds,e.getMilliseconds()),y.selectedDates=[e],y.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,i=f(t),n=i;void 0!==y.amPM&&i===y.amPM&&(y.amPM.textContent=y.l10n.amPM[r(y.amPM.textContent===y.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),s=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),h=c+l*(t.delta||(e?38===t.which?1:-1:0));if(void 0!==n.value&&2===n.value.length){var d=n===y.hourElement,u=n===y.minuteElement;h<a?(h=s+h+r(!d)+(r(d)&&r(!y.amPM)),u&&F(void 0,-1,y.hourElement)):h>s&&(h=n===y.hourElement?h-s-r(!y.amPM):a,u&&F(void 0,1,y.hourElement)),y.amPM&&d&&(1===l?h+c===23:Math.abs(h-c)>l)&&(y.amPM.textContent=y.l10n.amPM[r(y.amPM.textContent===y.l10n.amPM[0])]),n.value=o(h)}}(t);var n=y._input.value;D(),_t(),y._input.value!==n&&y._debouncedChange()}function D(){if(void 0!==y.hourElement&&void 0!==y.minuteElement){var t,e,i=(parseInt(y.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(y.minuteElement.value,10)||0)%60,a=void 0!==y.secondElement?(parseInt(y.secondElement.value,10)||0)%60:0;void 0!==y.amPM&&(t=i,e=y.amPM.textContent,i=t%12+12*r(e===y.l10n.amPM[1]));var o=void 0!==y.config.minTime||y.config.minDate&&y.minDateHasTime&&y.latestSelectedDateObj&&0===_(y.latestSelectedDateObj,y.config.minDate,!0),s=void 0!==y.config.maxTime||y.config.maxDate&&y.maxDateHasTime&&y.latestSelectedDateObj&&0===_(y.latestSelectedDateObj,y.config.maxDate,!0);if(void 0!==y.config.maxTime&&void 0!==y.config.minTime&&y.config.minTime>y.config.maxTime){var l=C(y.config.minTime.getHours(),y.config.minTime.getMinutes(),y.config.minTime.getSeconds()),c=C(y.config.maxTime.getHours(),y.config.maxTime.getMinutes(),y.config.maxTime.getSeconds()),h=C(i,n,a);if(h>c&&h<l){var d=function(t){var e=Math.floor(t/3600),i=(t-3600*e)/60;return[e,i,t-3600*e-60*i]}(l);i=d[0],n=d[1],a=d[2]}}else{if(s){var u=void 0!==y.config.maxTime?y.config.maxTime:y.config.maxDate;(i=Math.min(i,u.getHours()))===u.getHours()&&(n=Math.min(n,u.getMinutes())),n===u.getMinutes()&&(a=Math.min(a,u.getSeconds()))}if(o){var p=void 0!==y.config.minTime?y.config.minTime:y.config.minDate;(i=Math.max(i,p.getHours()))===p.getHours()&&n<p.getMinutes()&&(n=p.getMinutes()),n===p.getMinutes()&&(a=Math.max(a,p.getSeconds()))}}M(i,n,a)}}function P(t){var e=t||y.latestSelectedDateObj;e&&e instanceof Date&&M(e.getHours(),e.getMinutes(),e.getSeconds())}function M(t,e,i){void 0!==y.latestSelectedDateObj&&y.latestSelectedDateObj.setHours(t%24,e,i||0,0),y.hourElement&&y.minuteElement&&!y.isMobile&&(y.hourElement.value=o(y.config.time_24hr?t:(12+t)%12+12*r(t%12==0)),y.minuteElement.value=o(e),void 0!==y.amPM&&(y.amPM.textContent=y.l10n.amPM[r(t>=12)]),void 0!==y.secondElement&&(y.secondElement.value=o(i)))}function I(t){var e=f(t),i=parseInt(e.value)+(t.delta||0);(i/1e3>1||"Enter"===t.key&&!/[^\d]/.test(i.toString()))&&Q(i)}function O(t,e,i,n){return e instanceof Array?e.forEach((function(e){return O(t,e,i,n)})):t instanceof Array?t.forEach((function(t){return O(t,e,i,n)})):(t.addEventListener(e,i,n),void y._handlers.push({remove:function(){return t.removeEventListener(e,i,n)}}))}function z(){vt("onChange")}function N(t,e){var i=void 0!==t?y.parseDate(t):y.latestSelectedDateObj||(y.config.minDate&&y.config.minDate>y.now?y.config.minDate:y.config.maxDate&&y.config.maxDate<y.now?y.config.maxDate:y.now),n=y.currentYear,a=y.currentMonth;try{void 0!==i&&(y.currentYear=i.getFullYear(),y.currentMonth=i.getMonth())}catch(t){t.message="Invalid date supplied: "+i,y.config.errorHandler(t)}e&&y.currentYear!==n&&(vt("onYearChange"),V()),!e||y.currentYear===n&&y.currentMonth===a||vt("onMonthChange"),y.redraw()}function R(t){var e=f(t);~e.className.indexOf("arrow")&&F(t,e.classList.contains("arrowUp")?1:-1)}function F(t,e,i){var n=t&&f(t),a=i||n&&n.parentNode&&n.parentNode.firstChild,o=bt("increment");o.delta=e,a&&a.dispatchEvent(o)}function H(t,e,i,n){var a=tt(e,!0),o=h("span",t,e.getDate().toString());return o.dateObj=e,o.$i=n,o.setAttribute("aria-label",y.formatDate(e,y.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===_(e,y.now)&&(y.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),a?(o.tabIndex=-1,yt(e)&&(o.classList.add("selected"),y.selectedDateElem=o,"range"===y.config.mode&&(c(o,"startRange",y.selectedDates[0]&&0===_(e,y.selectedDates[0],!0)),c(o,"endRange",y.selectedDates[1]&&0===_(e,y.selectedDates[1],!0)),"nextMonthDay"===t&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===y.config.mode&&function(t){return!("range"!==y.config.mode||y.selectedDates.length<2)&&_(t,y.selectedDates[0])>=0&&_(t,y.selectedDates[1])<=0}(e)&&!yt(e)&&o.classList.add("inRange"),y.weekNumbers&&1===y.config.showMonths&&"prevMonthDay"!==t&&n%7==6&&y.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+y.config.getWeek(e)+"</span>"),vt("onDayCreate",o),o}function B(t){t.focus(),"range"===y.config.mode&&at(t)}function j(t){for(var e=t>0?0:y.config.showMonths-1,i=t>0?y.config.showMonths:-1,n=e;n!=i;n+=t)for(var a=y.daysContainer.children[n],o=t>0?0:a.children.length-1,r=t>0?a.children.length:-1,s=o;s!=r;s+=t){var l=a.children[s];if(-1===l.className.indexOf("hidden")&&tt(l.dateObj))return l}}function Y(t,e){var i=k(),n=et(i||document.body),a=void 0!==t?t:n?i:void 0!==y.selectedDateElem&&et(y.selectedDateElem)?y.selectedDateElem:void 0!==y.todayDateElem&&et(y.todayDateElem)?y.todayDateElem:j(e>0?1:-1);void 0===a?y._input.focus():n?function(t,e){for(var i=-1===t.className.indexOf("Month")?t.dateObj.getMonth():y.currentMonth,n=e>0?y.config.showMonths:-1,a=e>0?1:-1,o=i-y.currentMonth;o!=n;o+=a)for(var r=y.daysContainer.children[o],s=i-y.currentMonth===o?t.$i+e:e<0?r.children.length-1:0,l=r.children.length,c=s;c>=0&&c<l&&c!=(e>0?l:-1);c+=a){var h=r.children[c];if(-1===h.className.indexOf("hidden")&&tt(h.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return B(h)}y.changeMonth(a),Y(j(a),0)}(a,e):B(a)}function W(t,e){for(var i=(new Date(t,e,1).getDay()-y.l10n.firstDayOfWeek+7)%7,n=y.utils.getDaysInMonth((e-1+12)%12,t),a=y.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),r=y.config.showMonths>1,s=r?"prevMonthDay hidden":"prevMonthDay",l=r?"nextMonthDay hidden":"nextMonthDay",c=n+1-i,d=0;c<=n;c++,d++)o.appendChild(H("flatpickr-day "+s,new Date(t,e-1,c),0,d));for(c=1;c<=a;c++,d++)o.appendChild(H("flatpickr-day",new Date(t,e,c),0,d));for(var u=a+1;u<=42-i&&(1===y.config.showMonths||d%7!=0);u++,d++)o.appendChild(H("flatpickr-day "+l,new Date(t,e+1,u%a),0,d));var p=h("div","dayContainer");return p.appendChild(o),p}function X(){if(void 0!==y.daysContainer){d(y.daysContainer),y.weekNumbers&&d(y.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<y.config.showMonths;e++){var i=new Date(y.currentYear,y.currentMonth,1);i.setMonth(y.currentMonth+e),t.appendChild(W(i.getFullYear(),i.getMonth()))}y.daysContainer.appendChild(t),y.days=y.daysContainer.firstChild,"range"===y.config.mode&&1===y.selectedDates.length&&at()}}function V(){if(!(y.config.showMonths>1||"dropdown"!==y.config.monthSelectorType)){var t=function(t){return!(void 0!==y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&t<y.config.minDate.getMonth()||void 0!==y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()&&t>y.config.maxDate.getMonth())};y.monthsDropdownContainer.tabIndex=-1,y.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var i=h("option","flatpickr-monthDropdown-month");i.value=new Date(y.currentYear,e).getMonth().toString(),i.textContent=m(e,y.config.shorthandCurrentMonth,y.l10n),i.tabIndex=-1,y.currentMonth===e&&(i.selected=!0),y.monthsDropdownContainer.appendChild(i)}}}function $(){var t,e=h("div","flatpickr-month"),i=window.document.createDocumentFragment();y.config.showMonths>1||"static"===y.config.monthSelectorType?t=h("span","cur-month"):(y.monthsDropdownContainer=h("select","flatpickr-monthDropdown-months"),y.monthsDropdownContainer.setAttribute("aria-label",y.l10n.monthAriaLabel),O(y.monthsDropdownContainer,"change",(function(t){var e=f(t),i=parseInt(e.value,10);y.changeMonth(i-y.currentMonth),vt("onMonthChange")})),V(),t=y.monthsDropdownContainer);var n=p("cur-year",{tabindex:"-1"}),a=n.getElementsByTagName("input")[0];a.setAttribute("aria-label",y.l10n.yearAriaLabel),y.config.minDate&&a.setAttribute("min",y.config.minDate.getFullYear().toString()),y.config.maxDate&&(a.setAttribute("max",y.config.maxDate.getFullYear().toString()),a.disabled=!!y.config.minDate&&y.config.minDate.getFullYear()===y.config.maxDate.getFullYear());var o=h("div","flatpickr-current-month");return o.appendChild(t),o.appendChild(n),i.appendChild(o),e.appendChild(i),{container:e,yearElement:a,monthElement:t}}function G(){d(y.monthNav),y.monthNav.appendChild(y.prevMonthNav),y.config.showMonths&&(y.yearElements=[],y.monthElements=[]);for(var t=y.config.showMonths;t--;){var e=$();y.yearElements.push(e.yearElement),y.monthElements.push(e.monthElement),y.monthNav.appendChild(e.container)}y.monthNav.appendChild(y.nextMonthNav)}function q(){y.weekdayContainer?d(y.weekdayContainer):y.weekdayContainer=h("div","flatpickr-weekdays");for(var t=y.config.showMonths;t--;){var e=h("div","flatpickr-weekdaycontainer");y.weekdayContainer.appendChild(e)}return U(),y.weekdayContainer}function U(){if(y.weekdayContainer){var t=y.l10n.firstDayOfWeek,i=e(y.l10n.weekdays.shorthand);t>0&&t<i.length&&(i=e(i.splice(t,i.length),i.splice(0,t)));for(var n=y.config.showMonths;n--;)y.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+i.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Z(t,e){void 0===e&&(e=!0);var i=e?t:t-y.currentMonth;i<0&&!0===y._hidePrevMonthArrow||i>0&&!0===y._hideNextMonthArrow||(y.currentMonth+=i,(y.currentMonth<0||y.currentMonth>11)&&(y.currentYear+=y.currentMonth>11?1:-1,y.currentMonth=(y.currentMonth+12)%12,vt("onYearChange"),V()),X(),vt("onMonthChange"),xt())}function K(t){return y.calendarContainer.contains(t)}function J(t){if(y.isOpen&&!y.config.inline){var e=f(t),i=K(e),n=!(e===y.input||e===y.altInput||y.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(y.input)||~t.path.indexOf(y.altInput))||i||K(t.relatedTarget)),a=!y.config.ignoredFocusElements.some((function(t){return t.contains(e)}));n&&a&&(y.config.allowInput&&y.setDate(y._input.value,!1,y.config.altInput?y.config.altFormat:y.config.dateFormat),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&""!==y.input.value&&void 0!==y.input.value&&L(),y.close(),y.config&&"range"===y.config.mode&&1===y.selectedDates.length&&y.clear(!1))}}function Q(t){if(!(!t||y.config.minDate&&t<y.config.minDate.getFullYear()||y.config.maxDate&&t>y.config.maxDate.getFullYear())){var e=t,i=y.currentYear!==e;y.currentYear=e||y.currentYear,y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth=Math.min(y.config.maxDate.getMonth(),y.currentMonth):y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&(y.currentMonth=Math.max(y.config.minDate.getMonth(),y.currentMonth)),i&&(y.redraw(),vt("onYearChange"),V())}}function tt(t,e){var i;void 0===e&&(e=!0);var n=y.parseDate(t,void 0,e);if(y.config.minDate&&n&&_(n,y.config.minDate,void 0!==e?e:!y.minDateHasTime)<0||y.config.maxDate&&n&&_(n,y.config.maxDate,void 0!==e?e:!y.maxDateHasTime)>0)return!1;if(!y.config.enable&&0===y.config.disable.length)return!0;if(void 0===n)return!1;for(var a=!!y.config.enable,o=null!==(i=y.config.enable)&&void 0!==i?i:y.config.disable,r=0,s=void 0;r<o.length;r++){if("function"==typeof(s=o[r])&&s(n))return a;if(s instanceof Date&&void 0!==n&&s.getTime()===n.getTime())return a;if("string"==typeof s){var l=y.parseDate(s,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof s&&void 0!==n&&s.from&&s.to&&n.getTime()>=s.from.getTime()&&n.getTime()<=s.to.getTime())return a}return!a}function et(t){return void 0!==y.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&y.daysContainer.contains(t)}function it(t){var e=t.target===y._input,i=y._input.value.trimEnd()!==wt();!e||!i||t.relatedTarget&&K(t.relatedTarget)||y.setDate(y._input.value,!0,t.target===y.altInput?y.config.altFormat:y.config.dateFormat)}function nt(t){var e=f(t),i=y.config.wrap?g.contains(e):e===y._input,n=y.config.allowInput,a=y.isOpen&&(!n||!i),o=y.config.inline&&i&&!n;if(13===t.keyCode&&i){if(n)return y.setDate(y._input.value,!0,e===y.altInput?y.config.altFormat:y.config.dateFormat),y.close(),e.blur();y.open()}else if(K(e)||a||o){var r=!!y.timeContainer&&y.timeContainer.contains(e);switch(t.keyCode){case 13:r?(t.preventDefault(),L(),dt()):ut(t);break;case 27:t.preventDefault(),dt();break;case 8:case 46:i&&!y.config.allowInput&&(t.preventDefault(),y.clear());break;case 37:case 39:if(r||i)y.hourElement&&y.hourElement.focus();else{t.preventDefault();var s=k();if(void 0!==y.daysContainer&&(!1===n||s&&et(s))){var l=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),Z(l),Y(j(1),0)):Y(void 0,l)}}break;case 38:case 40:t.preventDefault();var c=40===t.keyCode?1:-1;y.daysContainer&&void 0!==e.$i||e===y.input||e===y.altInput?t.ctrlKey?(t.stopPropagation(),Q(y.currentYear-c),Y(j(1),0)):r||Y(void 0,7*c):e===y.currentYearElement?Q(y.currentYear-c):y.config.enableTime&&(!r&&y.hourElement&&y.hourElement.focus(),L(t),y._debouncedChange());break;case 9:if(r){var h=[y.hourElement,y.minuteElement,y.secondElement,y.amPM].concat(y.pluginElements).filter((function(t){return t})),d=h.indexOf(e);if(-1!==d){var u=h[d+(t.shiftKey?-1:1)];t.preventDefault(),(u||y._input).focus()}}else!y.config.noCalendar&&y.daysContainer&&y.daysContainer.contains(e)&&t.shiftKey&&(t.preventDefault(),y._input.focus())}}if(void 0!==y.amPM&&e===y.amPM)switch(t.key){case y.l10n.amPM[0].charAt(0):case y.l10n.amPM[0].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[0],D(),_t();break;case y.l10n.amPM[1].charAt(0):case y.l10n.amPM[1].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[1],D(),_t()}(i||K(e))&&vt("onKeyDown",t)}function at(t,e){if(void 0===e&&(e="flatpickr-day"),1===y.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var i=t?t.dateObj.getTime():y.days.firstElementChild.dateObj.getTime(),n=y.parseDate(y.selectedDates[0],void 0,!0).getTime(),a=Math.min(i,y.selectedDates[0].getTime()),o=Math.max(i,y.selectedDates[0].getTime()),r=!1,s=0,l=0,c=a;c<o;c+=864e5)tt(new Date(c),!0)||(r=r||c>a&&c<o,c<n&&(!s||c>s)?s=c:c>n&&(!l||c<l)&&(l=c));Array.from(y.rContainer.querySelectorAll("*:nth-child(-n+"+y.config.showMonths+") >
32 ."+e)).forEach((function(e){var a,o,c,h=e.dateObj.getTime(),d=s>0&&h<s||l>0&&h>l;if(d)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));r&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(i<=y.selectedDates[0].getTime()?"startRange":"endRange"),n<i&&h===n?e.classList.add("startRange"):n>i&&h===n&&e.classList.add("endRange"),h>=s&&(0===l||h<=l)&&(o=n,c=i,(a=h)>Math.min(o,c)&&a<Math.max(o,c))&&e.classList.add("inRange")))}))}}function ot(){!y.isOpen||y.config.static||y.config.inline||ct()}function rt(t){return function(e){var i=y.config["_"+t+"Date"]=y.parseDate(e,y.config.dateFormat),n=y.config["_"+("min"===t?"max":"min")+"Date"];void 0!==i&&(y["min"===t?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),y.selectedDates&&(y.selectedDates=y.selectedDates.filter((function(t){return tt(t)})),y.selectedDates.length||"min"!==t||P(i),_t()),y.daysContainer&&(ht(),void 0!==i?y.currentYearElement[t]=i.getFullYear().toString():y.currentYearElement.removeAttribute(t),y.currentYearElement.disabled=!!n&&void 0!==i&&n.getFullYear()===i.getFullYear())}}function st(){return y.config.wrap?g.querySelector("[data-input]"):g}function lt(){"object"!=typeof y.config.locale&&void 0===T.l10ns[y.config.locale]&&y.config.errorHandler(new Error("flatpickr: invalid locale "+y.config.locale)),y.l10n=t(t({},T.l10ns.default),"object"==typeof y.config.locale?y.config.locale:"default"!==y.config.locale?T.l10ns[y.config.locale]:void 0),b.D="("+y.l10n.weekdays.shorthand.join("|")+")",b.l="("+y.l10n.weekdays.longhand.join("|")+")",b.M="("+y.l10n.months.shorthand.join("|")+")",b.F="("+y.l10n.months.longhand.join("|")+")",b.K="("+y.l10n.amPM[0]+"|"+y.l10n.amPM[1]+"|"+y.l10n.amPM[0].toLowerCase()+"|"+y.l10n.amPM[1].toLowerCase()+")",void 0===t(t({},v),JSON.parse(JSON.stringify(g.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(y.config.time_24hr=y.l10n.time_24hr),y.formatDate=x(y),y.parseDate=w({config:y.config,l10n:y.l10n})}function ct(t){if("function"!=typeof y.config.position){if(void 0!==y.calendarContainer){vt("onPreCalendarPosition");var e=t||y._positionElement,i=Array.prototype.reduce.call(y.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),n=y.calendarContainer.offsetWidth,a=y.config.position.split(" "),o=a[0],r=a.length>1?a[1]:null,s=e.getBoundingClientRect(),l=window.innerHeight-s.bottom,h="above"===o||"below"!==o&&l<i&&s.top>i,d=window.pageYOffset+s.top+(h?-i-2:e.offsetHeight+2);if(c(y.calendarContainer,"arrowTop",!h),c(y.calendarContainer,"arrowBottom",h),!y.config.inline){var u=window.pageXOffset+s.left,p=!1,f=!1;"center"===r?(u-=(n-s.width)/2,p=!0):"right"===r&&(u-=n-s.width,f=!0),c(y.calendarContainer,"arrowLeft",!p&&!f),c(y.calendarContainer,"arrowCenter",p),c(y.calendarContainer,"arrowRight",f);var g=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=u+n>window.document.body.offsetWidth,v=g+n>window.document.body.offsetWidth;if(c(y.calendarContainer,"rightMost",m),!y.config.static)if(y.calendarContainer.style.top=d+"px",m)if(v){var b=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(i.cssRules){try{i.cssRules}catch(t){continue}t=i;break}}return null!=t?t:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===b)return;var x=window.document.body.offsetWidth,w=Math.max(0,x/2-n/2),_=b.cssRules.length,C="{left:"+s.left+"px;right:auto;}";c(y.calendarContainer,"rightMost",!1),c(y.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,_),y.calendarContainer.style.left=w+"px",y.calendarContainer.style.right="auto"}else y.calendarContainer.style.left="auto",y.calendarContainer.style.right=g+"px";else y.calendarContainer.style.left=u+"px",y.calendarContainer.style.right="auto"}}}else y.config.position(y,t)}function ht(){y.config.noCalendar||y.isMobile||(V(),xt(),X())}function dt(){y._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(y.close,0):y.close()}function ut(t){t.preventDefault(),t.stopPropagation();var e=u(f(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var i=e,n=y.latestSelectedDateObj=new Date(i.dateObj.getTime()),a=(n.getMonth()<y.currentMonth||n.getMonth()>y.currentMonth+y.config.showMonths-1)&&"range"!==y.config.mode;if(y.selectedDateElem=i,"single"===y.config.mode)y.selectedDates=[n];else if("multiple"===y.config.mode){var o=yt(n);o?y.selectedDates.splice(parseInt(o),1):y.selectedDates.push(n)}else"range"===y.config.mode&&(2===y.selectedDates.length&&y.clear(!1,!1),y.latestSelectedDateObj=n,y.selectedDates.push(n),0!==_(n,y.selectedDates[0],!0)&&y.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(D(),a){var r=y.currentYear!==n.getFullYear();y.currentYear=n.getFullYear(),y.currentMonth=n.getMonth(),r&&(vt("onYearChange"),V()),vt("onMonthChange")}
vendor: 18,844 bytes, line 32
32if(xt(),X(),_t(),a||"range"===y.config.mode||1!==y.config.showMonths?void 0!==y.selectedDateElem&&void 0===y.hourElement&&y.selectedDateElem&&y.selectedDateElem.focus():B(i),void 0!==y.hourElement&&void 0!==y.hourElement&&y.hourElement.focus(),y.config.closeOnSelect){var s="single"===y.config.mode&&!y.config.enableTime,l="range"===y.config.mode&&2===y.selectedDates.length&&!y.config.enableTime;(s||l)&&dt()}z()}}y.parseDate=w({config:y.config,l10n:y.l10n}),y._handlers=[],y.pluginElements=[],y.loadedPlugins=[],y._bind=O,y._setHoursFromDate=P,y._positionCalendar=ct,y.changeMonth=Z,y.changeYear=Q,y.clear=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!0),y.input.value="",void 0!==y.altInput&&(y.altInput.value=""),void 0!==y.mobileInput&&(y.mobileInput.value=""),y.selectedDates=[],y.latestSelectedDateObj=void 0,!0===e&&(y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth()),!0===y.config.enableTime){var i=S(y.config);M(i.hours,i.minutes,i.seconds)}y.redraw(),t&&vt("onChange")},y.close=function(){y.isOpen=!1,y.isMobile||(void 0!==y.calendarContainer&&y.calendarContainer.classList.remove("open"),void 0!==y._input&&y._input.classList.remove("active")),vt("onClose")},y.onMouseOver=at,y._createElement=h,y.createDay=H,y.destroy=function(){void 0!==y.config&&vt("onDestroy");for(var t=y._handlers.length;t--;)y._handlers[t].remove();if(y._handlers=[],y.mobileInput)y.mobileInput.parentNode&&y.mobileInput.parentNode.removeChild(y.mobileInput),y.mobileInput=void 0;else if(y.calendarContainer&&y.calendarContainer.parentNode)if(y.config.static&&y.calendarContainer.parentNode){var e=y.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else y.calendarContainer.parentNode.removeChild(y.calendarContainer);y.altInput&&(y.input.type="text",y.altInput.parentNode&&y.altInput.parentNode.removeChild(y.altInput),delete y.altInput),y.input&&(y.input.type=y.input._type,y.input.classList.remove("flatpickr-input"),y.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete y[t]}catch(t){}}))},y.isEnabled=tt,y.jumpToDate=N,y.updateValue=_t,y.open=function(t,e){if(void 0===e&&(e=y._positionElement),!0===y.isMobile){if(t){t.preventDefault();var i=f(t);i&&i.blur()}return void 0!==y.mobileInput&&(y.mobileInput.focus(),y.mobileInput.click()),void vt("onOpen")}if(!y._input.disabled&&!y.config.inline){var n=y.isOpen;y.isOpen=!0,n||(y.calendarContainer.classList.add("open"),y._input.classList.add("active"),vt("onOpen"),ct(e)),!0===y.config.enableTime&&!0===y.config.noCalendar&&(!1!==y.config.allowInput||void 0!==t&&y.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return y.hourElement.select()}),50))}},y.redraw=ht,y.set=function(t,e){if(null!==t&&"object"==typeof t)for(var n in Object.assign(y.config,t),t)void 0!==pt[n]&&pt[n].forEach((function(t){return t()}));else y.config[t]=e,void 0!==pt[t]?pt[t].forEach((function(t){return t()})):i.indexOf(t)>-1&&(y.config[t]=l(e));y.redraw(),_t(!0)},y.setDate=function(t,e,i){if(void 0===e&&(e=!1),void 0===i&&(i=y.config.dateFormat),0!==t&&!t||t instanceof Array&&0===t.length)return y.clear(e);ft(t,i),y.latestSelectedDateObj=y.selectedDates[y.selectedDates.length-1],y.redraw(),N(void 0,e),P(),0===y.selectedDates.length&&y.clear(!1),_t(e),e&&vt("onChange")},y.toggle=function(t){if(!0===y.isOpen)return y.close();y.open(t)};var pt={locale:[lt,U],showMonths:[G,E,q],minDate:[N],maxDate:[N],positionElement:[mt],clickOpens:[function(){!0===y.config.clickOpens?(O(y._input,"focus",y.open),O(y._input,"click",y.open)):(y._input.removeEventListener("focus",y.open),y._input.removeEventListener("click",y.open))}]};function ft(t,e){var i=[];if(t instanceof Array)i=t.map((function(t){return y.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)i=[y.parseDate(t,e)];else if("string"==typeof t)switch(y.config.mode){case"single":case"time":i=[y.parseDate(t,e)];break;case"multiple":i=t.split(y.config.conjunction).map((function(t){return y.parseDate(t,e)}));break;case"range":i=t.split(y.l10n.rangeSeparator).map((function(t){return y.parseDate(t,e)}))}else y.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));y.selectedDates=y.config.allowInvalidPreload?i:i.filter((function(t){return t instanceof Date&&tt(t,!1)})),"range"===y.config.mode&&y.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function gt(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?y.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:y.parseDate(t.from,void 0),to:y.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function mt(){y._positionElement=y.config.positionElement||y._input}function vt(t,e){if(void 0!==y.config){var i=y.config[t];if(void 0!==i&&i.length>0)for(var n=0;i[n]&&n<i.length;n++)i[n](y.selectedDates,y.input.value,y,e);"onChange"===t&&(y.input.dispatchEvent(bt("change")),y.input.dispatchEvent(bt("input")))}}function bt(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function yt(t){for(var e=0;e<y.selectedDates.length;e++){var i=y.selectedDates[e];if(i instanceof Date&&0===_(i,t))return""+e}return!1}function xt(){y.config.noCalendar||y.isMobile||!y.monthNav||(y.yearElements.forEach((function(t,e){var i=new Date(y.currentYear,y.currentMonth,1);i.setMonth(y.currentMonth+e),y.config.showMonths>1||"static"===y.config.monthSelectorType?y.monthElements[e].textContent=m(i.getMonth(),y.config.shorthandCurrentMonth,y.l10n)+" ":y.monthsDropdownContainer.value=i.getMonth().toString(),t.value=i.getFullYear().toString()})),y._hidePrevMonthArrow=void 0!==y.config.minDate&&(y.currentYear===y.config.minDate.getFullYear()?y.currentMonth<=y.config.minDate.getMonth():y.currentYear<y.config.minDate.getFullYear()),y._hideNextMonthArrow=void 0!==y.config.maxDate&&(y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth+1>y.config.maxDate.getMonth():y.currentYear>y.config.maxDate.getFullYear()))}function wt(t){var e=t||(y.config.altInput?y.config.altFormat:y.config.dateFormat);return y.selectedDates.map((function(t){return y.formatDate(t,e)})).filter((function(t,e,i){return"range"!==y.config.mode||y.config.enableTime||i.indexOf(t)===e})).join("range"!==y.config.mode?y.config.conjunction:y.l10n.rangeSeparator)}function _t(t){void 0===t&&(t=!0),void 0!==y.mobileInput&&y.mobileFormatStr&&(y.mobileInput.value=void 0!==y.latestSelectedDateObj?y.formatDate(y.latestSelectedDateObj,y.mobileFormatStr):""),y.input.value=wt(y.config.dateFormat),void 0!==y.altInput&&(y.altInput.value=wt(y.config.altFormat)),!1!==t&&vt("onValueUpdate")}function Ct(t){var e=f(t),i=y.prevMonthNav.contains(e),n=y.nextMonthNav.contains(e);i||n?Z(i?-1:1):y.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?y.changeYear(y.currentYear+1):e.classList.contains("arrowDown")&&y.changeYear(y.currentYear-1)}return function(){y.element=y.input=g,y.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=t(t({},JSON.parse(JSON.stringify(g.dataset||{}))),v),o={};y.config.parseDate=a.parseDate,y.config.formatDate=a.formatDate,Object.defineProperty(y.config,"enable",{get:function(){return y.config._enable},set:function(t){y.config._enable=gt(t)}}),Object.defineProperty(y.config,"disable",{get:function(){return y.config._disable},set:function(t){y.config._disable=gt(t)}});var r="time"===a.mode;if(!a.dateFormat&&(a.enableTime||r)){var s=T.defaultConfig.dateFormat||n.dateFormat;o.dateFormat=a.noCalendar||r?"H:i"+(a.enableSeconds?":S":""):s+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||r)&&!a.altFormat){var c=T.defaultConfig.altFormat||n.altFormat;o.altFormat=a.noCalendar||r?"h:i"+(a.enableSeconds?":S K":" K"):c+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(y.config,"minDate",{get:function(){return y.config._minDate},set:rt("min")}),Object.defineProperty(y.config,"maxDate",{get:function(){return y.config._maxDate},set:rt("max")});var h=function(t){return function(e){y.config["min"===t?"_minTime":"_maxTime"]=y.parseDate(e,"H:i:S")}};Object.defineProperty(y.config,"minTime",{get:function(){return y.config._minTime},set:h("min")}),Object.defineProperty(y.config,"maxTime",{get:function(){return y.config._maxTime},set:h("max")}),"time"===a.mode&&(y.config.noCalendar=!0,y.config.enableTime=!0),Object.assign(y.config,o,a);for(var d=0;d<e.length;d++)y.config[e[d]]=!0===y.config[e[d]]||"true"===y.config[e[d]];for(i.filter((function(t){return void 0!==y.config[t]})).forEach((function(t){y.config[t]=l(y.config[t]||[]).map(A)})),y.isMobile=!y.config.disableMobile&&!y.config.inline&&"single"===y.config.mode&&!y.config.disable.length&&!y.config.enable&&!y.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=0;d<y.config.plugins.length;d++){var u=y.config.plugins[d](y)||{};for(var p in u)i.indexOf(p)>-1?y.config[p]=l(u[p]).map(A).concat(y.config[p]):void 0===a[p]&&(y.config[p]=u[p])}a.altInputClass||(y.config.altInputClass=st().className+" "+y.config.altInputClass),vt("onParseConfig")}(),lt(),y.input=st(),y.input?(y.input._type=y.input.type,y.input.type="text",y.input.classList.add("flatpickr-input"),y._input=y.input,y.config.altInput&&(y.altInput=h(y.input.nodeName,y.config.altInputClass),y._input=y.altInput,y.altInput.placeholder=y.input.placeholder,y.altInput.disabled=y.input.disabled,y.altInput.required=y.input.required,y.altInput.tabIndex=y.input.tabIndex,y.altInput.type="text",y.input.setAttribute("type","hidden"),!y.config.static&&y.input.parentNode&&y.input.parentNode.insertBefore(y.altInput,y.input.nextSibling)),y.config.allowInput||y._input.setAttribute("readonly","readonly"),mt()):y.config.errorHandler(new Error("Invalid input element specified")),function(){y.selectedDates=[],y.now=y.parseDate(y.config.now)||new Date;var t=y.config.defaultDate||("INPUT"!==y.input.nodeName&&"TEXTAREA"!==y.input.nodeName||!y.input.placeholder||y.input.value!==y.input.placeholder?y.input.value:null);t&&ft(t,y.config.dateFormat),y._initialDate=y.selectedDates.length>0?y.selectedDates[0]:y.config.minDate&&y.config.minDate.getTime()>y.now.getTime()?y.config.minDate:y.config.maxDate&&y.config.maxDate.getTime()<y.now.getTime()?y.config.maxDate:y.now,y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth(),y.selectedDates.length>0&&(y.latestSelectedDateObj=y.selectedDates[0]),void 0!==y.config.minTime&&(y.config.minTime=y.parseDate(y.config.minTime,"H:i")),void 0!==y.config.maxTime&&(y.config.maxTime=y.parseDate(y.config.maxTime,"H:i")),y.minDateHasTime=!!y.config.minDate&&(y.config.minDate.getHours()>0||y.config.minDate.getMinutes()>0||y.config.minDate.getSeconds()>0),y.maxDateHasTime=!!y.config.maxDate&&(y.config.maxDate.getHours()>0||y.config.maxDate.getMinutes()>0||y.config.maxDate.getSeconds()>0)}(),y.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=y.currentMonth),void 0===e&&(e=y.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:y.l10n.daysInMonth[t]}},y.isMobile||function(){var t=window.document.createDocumentFragment();if(y.calendarContainer=h("div","flatpickr-calendar"),y.calendarContainer.tabIndex=-1,!y.config.noCalendar){if(t.appendChild((y.monthNav=h("div","flatpickr-months"),y.yearElements=[],y.monthElements=[],y.prevMonthNav=h("span","flatpickr-prev-month"),y.prevMonthNav.innerHTML=y.config.prevArrow,y.nextMonthNav=h("span","flatpickr-next-month"),y.nextMonthNav.innerHTML=y.config.nextArrow,G(),Object.defineProperty(y,"_hidePrevMonthArrow",{get:function(){return y.__hidePrevMonthArrow},set:function(t){y.__hidePrevMonthArrow!==t&&(c(y.prevMonthNav,"flatpickr-disabled",t),y.__hidePrevMonthArrow=t)}}),Object.defineProperty(y,"_hideNextMonthArrow",{get:function(){return y.__hideNextMonthArrow},set:function(t){y.__hideNextMonthArrow!==t&&(c(y.nextMonthNav,"flatpickr-disabled",t),y.__hideNextMonthArrow=t)}}),y.currentYearElement=y.yearElements[0],xt(),y.monthNav)),y.innerContainer=h("div","flatpickr-innerContainer"),y.config.weekNumbers){var e=function(){y.calendarContainer.classList.add("hasWeeks");var t=h("div","flatpickr-weekwrapper");t.appendChild(h("span","flatpickr-weekday",y.l10n.weekAbbreviation));var e=h("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),i=e.weekWrapper,n=e.weekNumbers;y.innerContainer.appendChild(i),y.weekNumbers=n,y.weekWrapper=i}y.rContainer=h("div","flatpickr-rContainer"),y.rContainer.appendChild(q()),y.daysContainer||(y.daysContainer=h("div","flatpickr-days"),y.daysContainer.tabIndex=-1),X(),y.rContainer.appendChild(y.daysContainer),y.innerContainer.appendChild(y.rContainer),t.appendChild(y.innerContainer)}y.config.enableTime&&t.appendChild(function(){y.calendarContainer.classList.add("hasTime"),y.config.noCalendar&&y.calendarContainer.classList.add("noCalendar");var t=S(y.config);y.timeContainer=h("div","flatpickr-time"),y.timeContainer.tabIndex=-1;var e=h("span","flatpickr-time-separator",":"),i=p("flatpickr-hour",{"aria-label":y.l10n.hourAriaLabel});y.hourElement=i.getElementsByTagName("input")[0];var n=p("flatpickr-minute",{"aria-label":y.l10n.minuteAriaLabel});if(y.minuteElement=n.getElementsByTagName("input")[0],y.hourElement.tabIndex=y.minuteElement.tabIndex=-1,y.hourElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getHours():y.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),y.minuteElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getMinutes():t.minutes),y.hourElement.setAttribute("step",y.config.hourIncrement.toString()),y.minuteElement.setAttribute("step",y.config.minuteIncrement.toString()),y.hourElement.setAttribute("min",y.config.time_24hr?"0":"1"),y.hourElement.setAttribute("max",y.config.time_24hr?"23":"12"),y.hourElement.setAttribute("maxlength","2"),y.minuteElement.setAttribute("min","0"),y.minuteElement.setAttribute("max","59"),y.minuteElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(i),y.timeContainer.appendChild(e),y.timeContainer.appendChild(n),y.config.time_24hr&&y.timeContainer.classList.add("time24hr"),y.config.enableSeconds){y.timeContainer.classList.add("hasSeconds");var a=p("flatpickr-second");y.secondElement=a.getElementsByTagName("input")[0],y.secondElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getSeconds():t.seconds),y.secondElement.setAttribute("step",y.minuteElement.getAttribute("step")),y.secondElement.setAttribute("min","0"),y.secondElement.setAttribute("max","59"),y.secondElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(h("span","flatpickr-time-separator",":")),y.timeContainer.appendChild(a)}return y.config.time_24hr||(y.amPM=h("span","flatpickr-am-pm",y.l10n.amPM[r((y.latestSelectedDateObj?y.hourElement.value:y.config.defaultHour)>11)]),y.amPM.title=y.l10n.toggleTitle,y.amPM.tabIndex=-1,y.timeContainer.appendChild(y.amPM)),y.timeContainer}()),c(y.calendarContainer,"rangeMode","range"===y.config.mode),c(y.calendarContainer,"animate",!0===y.config.animate),c(y.calendarContainer,"multiMonth",y.config.showMonths>1),y.calendarContainer.appendChild(t);var a=void 0!==y.config.appendTo&&void 0!==y.config.appendTo.nodeType;if((y.config.inline||y.config.static)&&(y.calendarContainer.classList.add(y.config.inline?"inline":"static"),y.config.inline&&(!a&&y.element.parentNode?y.element.parentNode.insertBefore(y.calendarContainer,y._input.nextSibling):void 0!==y.config.appendTo&&y.config.appendTo.appendChild(y.calendarContainer)),y.config.static)){var s=h("div","flatpickr-wrapper");y.element.parentNode&&y.element.parentNode.insertBefore(s,y.element),s.appendChild(y.element),y.altInput&&s.appendChild(y.altInput),s.appendChild(y.calendarContainer)}y.config.static||y.config.inline||(void 0!==y.config.appendTo?y.config.appendTo:window.document.body).appendChild(y.calendarContainer)}(),function(){if(y.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(y.element.querySelectorAll("[data-"+t+"]"),(function(e){return O(e,"click",y[t])}))})),y.isMobile)!function(){var t=y.config.enableTime?y.config.noCalendar?"time":"datetime-local":"date";y.mobileInput=h("input",y.input.className+" flatpickr-mobile"),y.mobileInput.tabIndex=1,y.mobileInput.type=t,y.mobileInput.disabled=y.input.disabled,y.mobileInput.required=y.input.required,y.mobileInput.placeholder=y.input.placeholder,y.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",y.selectedDates.length>0&&(y.mobileInput.defaultValue=y.mobileInput.value=y.formatDate(y.selectedDates[0],y.mobileFormatStr)),y.config.minDate&&(y.mobileInput.min=y.formatDate(y.config.minDate,"Y-m-d")),y.config.maxDate&&(y.mobileInput.max=y.formatDate(y.config.maxDate,"Y-m-d")),y.input.getAttribute("step")&&(y.mobileInput.step=String(y.input.getAttribute("step"))),y.input.type="hidden",void 0!==y.altInput&&(y.altInput.type="hidden");try{y.input.parentNode&&y.input.parentNode.insertBefore(y.mobileInput,y.input.nextSibling)}catch(t){}O(y.mobileInput,"change",(function(t){y.setDate(f(t).value,!1,y.mobileFormatStr),vt("onChange"),vt("onClose")}))}();else{var t=s(ot,50);if(y._debouncedChange=s(z,300),y.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&O(y.daysContainer,"mouseover",(function(t){"range"===y.config.mode&&at(f(t))})),O(y._input,"keydown",nt),void 0!==y.calendarContainer&&O(y.calendarContainer,"keydown",nt),y.config.inline||y.config.static||O(window,"resize",t),void 0!==window.ontouchstart?O(window.document,"touchstart",J):O(window.document,"mousedown",J),O(window.document,"focus",J,{capture:!0}),!0===y.config.clickOpens&&(O(y._input,"focus",y.open),O(y._input,"click",y.open)),void 0!==y.daysContainer&&(O(y.monthNav,"click",Ct),O(y.monthNav,["keyup","increment"],I),O(y.daysContainer,"click",ut)),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement){O(y.timeContainer,["increment"],L),O(y.timeContainer,"blur",L,{capture:!0}),O(y.timeContainer,"click",R),O([y.hourElement,y.minuteElement],["focus","click"],(function(t){return f(t).select()}
32)),void 0!==y.secondElement&&O(y.secondElement,"focus",(function(){return y.secondElement&&y.secondElement.select()})),void 0!==y.amPM&&O(y.amPM,"click",(function(t){L(t)}))}y.config.allowInput&&O(y._input,"blur",it)}}(),(y.selectedDates.length||y.config.noCalendar)&&(y.config.enableTime&&P(y.config.noCalendar?y.latestSelectedDateObj:void 0),_t(!1)),E();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!y.isMobile&&e&&ct(),vt("onReady")}(),y}function A(t,e){for(var i=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),n=[],a=0;a<i.length;a++){var o=i[a];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=k(o,e||{}),n.push(o._flatpickr)}catch(t){console.error(t)}}return 1===n.length?n[0]:n}"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var n=function(e){e&&Object.keys(e).forEach((function(i){return t[i]=e[i]}))},a=0,o=e;a<o.length;a++){var r=o[a];n(r)}return t}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return A(this,t)},HTMLElement.prototype.flatpickr=function(t){return A([this],t)});var T=function(t,e){return"string"==typeof t?A(window.document.querySelectorAll(t),e):t instanceof Node?A([t],e):A(t,e)};return T.defaultConfig={},T.l10ns={en:t({},a),default:t({},a)},T.localize=function(e){T.l10ns.default=t(t({},T.l10ns.default),e)},T.setDefaults=function(e){T.defaultConfig=t(t({},T.defaultConfig),e)},T.parseDate=w({}),T.formatDate=x({}),T.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return A(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=T),T})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e,i,n,a,o,r,s,l,c,h,d,u,p,f,g=((_=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:_)&&_.requirejs||(_?i=_:_={},l={},c={},h={},d={},u=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/,r=function(t,e){var i,n,a=x(t),o=a[0];e=e[1];return t=a[1],o&&(i=y(o=v(o,e))),o?t=i&&i.normalize?i.normalize(t,(n=e,function(t){return v(t,n)})):v(t,e):(o=(a=x(t=v(t,e)))[0],t=a[1],o&&(i=y(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:i}},s={require:function(t){return b(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:(e=t,function(){return h&&h.config&&h.config[e]||{}})};var e}},a=function(t,e,i,a){var o,h,u,p,f,g=[],v=typeof i,x=w(a=a||t);if("undefined"==v||"function"==v){for(e=!e.length&&i.length?["require","exports","module"]:e,p=0;p<e.length;p+=1)if("require"===(h=(u=r(e[p],x)).f))g[p]=s.require(t);else if("exports"===h)g[p]=s.exports(t),f=!0;else if("module"===h)o=g[p]=s.module(t);else if(m(l,h)||m(c,h)||m(d,h))g[p]=y(h);else{if(!u.p)throw new Error(t+" missing "+h);u.p.load(u.n,b(a,!0),function(t){return function(e){l[t]=e}}(h),{}),g[p]=l[h]}v=i?i.apply(l[t],g):void 0,t&&(o&&o.exports!==n&&o.exports!==l[t]?l[t]=o.exports:v===n&&f||(l[t]=v))}else t&&(l[t]=i)},e=i=o=function(t,e,i,l,c){if("string"==typeof t)return s[t]?s[t](e):y(r(t,w(e)).f);if(!t.splice){if((h=t).deps&&o(h.deps,h.callback),!e)return;e.splice?(t=e,e=i,i=null):t=n}return e=e||function(){},"function"==typeof i&&(i=l,l=c),l?a(n,t,e,i):setTimeout((function(){a(n,t,e,i)}),4),o},o.config=function(t){return o(t)},e._defined=l,(g=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),m(l,t)||m(c,t)||(c[t]=[t,e,i])}).amd={jQuery:!0},_.requirejs=e,_.require=i,_.define=g),_.define("almond",(function(){})),_.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),_.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e,i=t.prototype,n=[];for(e in i)"function"==typeof i[e]&&"constructor"!==e&&n.push(e);return n}function n(){this.listeners={}}e.Extend=function(t,e){var i,n={}.hasOwnProperty;function a(){this.constructor=t}for(i in e)n.call(e,i)&&(t[i]=e[i]);return a.prototype=e.prototype,t.prototype=new a,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),a=i(t);function o(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,a=t.prototype.constructor;0<n&&(i.call(arguments,t.prototype.constructor),a=e.prototype.constructor),a.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var r=0;r<a.length;r++){var s=a[r];o.prototype[s]=t.prototype[s]}for(var l=0;l<n.length;l++){var c=n[l];o.prototype[c]=function(t){var i=function(){};t in o.prototype&&(i=o.prototype[t]);var n=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}}(c)}return o},n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1
32);this.listeners=this.listeners||{},0===(i=null==i?[]:i).length&&i.push({}),(i[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var a=0;a<i.length;a++){var o=i[a];(o=o.substring(0,1).toLowerCase()+o.substring(1))in n||(n[o]={}),a==i.length-1&&(n[o]=t[e]),n=n[o]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),a=i.style.overflowX,o=i.style.overflowY;return(a!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===a||"scroll"===o||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.__cache={};var a=0;return e.GetUniqueElementId=function(t){var i=t.getAttribute("data-select2-id");return null!=i||(i=t.id?"select2-data-"+t.id:"select2-data-"+(++a).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",i)),i},e.StoreData=function(t,i,n){t=e.GetUniqueElementId(t),e.__cache[t]||(e.__cache[t]={}),e.__cache[t][i]=n},e.GetData=function(i,n){var a=e.GetUniqueElementId(i);return n?e.__cache[a]&&null!=e.__cache[a][n]?e.__cache[a][n]:t(i).data(n):e.__cache[a]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e.copyNonInternalCssClasses=function(t,e){var i=(i=t.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0===t.indexOf("select2-")}));e=(e=e.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0!==t.indexOf("select2-")})),e=i.concat(e);t.setAttribute("class",e.join(" "))},e})),_.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),a=this.options.get("translations").get(e.message);n.append(i(a(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i];n=this.option(n);e.push(n)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option--selectable"),e=t.filter(".select2-results__option--selected");(0<e.length?e:t).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var a=n.map((function(t){return t.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=t(this),n=e.GetData(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&-1<a.indexOf(o)?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))}))}))},i.prototype.showLoading=function(t){this.hideLoading(),t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},(t=this.option(t)).className+=" loading-results",this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable");var a,o={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(a in(null!=i.element&&r.call(i.element,":disabled")||null==i.element&&i.disabled)&&(o["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==i.id&&n.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(o.role="group",o["aria-label"]=i.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),o){var s=o[a];n.setAttribute(a,s)}
32if(i.children){var l=t(n),c=document.createElement("strong");c.className="select2-results__group",this.template(i,c);for(var h=[],d=0;d<i.children.length;d++){var u=i.children[d];u=this.option(u);h.push(u)}(r=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(h),l.append(c),l.append(r)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var a=this,o=i.id+"-results";this.$results.attr("id",o),i.on("results:all",(function(t){a.clear(),a.append(t.data),i.isOpen()&&(a.setClasses(),a.highlightFirstItem())})),i.on("results:append",(function(t){a.append(t.data),i.isOpen()&&a.setClasses()})),i.on("query",(function(t){a.hideMessages(),a.showLoading(t)})),i.on("select",(function(){i.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),i.on("open",(function(){a.$results.attr("aria-expanded","true"),a.$results.attr("aria-hidden","false"),a.setClasses(),a.ensureHighlightVisible()})),i.on("close",(function(){a.$results.attr("aria-expanded","false"),a.$results.attr("aria-hidden","true"),a.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=a.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t,i=a.getHighlightedResults();0!==i.length&&(t=e.GetData(i[0],"data"),i.hasClass("select2-results__option--selected")?a.trigger("close",{}):a.trigger("select",{data:t}))})),i.on("results:previous",(function(){var t,e=a.getHighlightedResults(),i=a.$results.find(".select2-results__option--selectable"),n=i.index(e);n<=0||(t=n-1,0===e.length&&(t=0),(n=i.eq(t)).trigger("mouseenter"),e=a.$results.offset().top,i=n.offset().top,n=a.$results.scrollTop()+(i-e),0===t?a.$results.scrollTop(0):i-e<0&&a.$results.scrollTop(n))})),i.on("results:next",(function(){var t,e=a.getHighlightedResults(),i=a.$results.find(".select2-results__option--selectable"),n=i.index(e)+1;n>=i.length||((t=i.eq(n)).trigger("mouseenter"),e=a.$results.offset().top+a.$results.outerHeight(!1),i=t.offset().top+t.outerHeight(!1),t=a.$results.scrollTop()+i-e,0===n?a.$results.scrollTop(0):e<i&&a.$results.scrollTop(t))})),i.on("results:focus",(function(t){t.element[0].classList.add("select2-results__option--highlighted"),t.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(t){a.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=a.$results.scrollTop(),i=a.$results.get(0).scrollHeight-e+t.deltaY;e=0<t.deltaY&&e-t.deltaY<=0,i=t.deltaY<0&&i<=a.$results.height();e?(a.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):i&&(a.$results.scrollTop(a.$results.get(0).scrollHeight-a.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var n=t(this),o=e.GetData(this,"data");n.hasClass("select2-results__option--selected")?a.options.get("multiple")?a.trigger("unselect",{originalEvent:i,data:o}):a.trigger("close",{}):a.trigger("select",{originalEvent:i,data:o})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var n=e.GetData(this,"data");a.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),a.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t,e,i,n,a=this.getHighlightedResults();0!==a.length&&(t=this.$results.find(".select2-results__option--selectable").index(a),n=this.$results.offset().top,e=a.offset().top,i=this.$results.scrollTop()+(e-n),n=e-n,i-=2*a.outerHeight(!1),t<=2?this.$results.scrollTop(0):(n>this.$results.outerHeight()||n<0)&&this.$results.scrollTop(i))},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),a=this.options.get("escapeMarkup");null==(e=n(e,i))?i.style.display="none":"string"==typeof e?i.innerHTML=a(e):t(i).append(e)},i})),_.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),_.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,
32i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i},n.prototype.bind=function(t,e){var n=this,a=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",a),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),_.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function a(){a.__super__.constructor.apply(this,arguments)}return i.Extend(a,e),a.prototype.render=function(){var t=a.__super__.render.call(this);return t[0].classList.add("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},a.prototype.bind=function(t,e){var i=this;a.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.attr("aria-controls",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},a.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},a.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},a.prototype.selectionContainer=function(){return t("<span></span>")},a.prototype.update=function(t){var e,i;0!==t.length?(i=t[0],e=this.$selection.find(".select2-selection__rendered"),t=this.display(i,e),e.empty().append(t),(i=i.title||i.text)?e.attr("title",i):e.removeAttr("title")):this.clear()},a}
32)),_.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,a){var o=this;n.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){var n;o.isDisabled()||(n=t(this).parent(),n=i.GetData(n[0],"data"),o.trigger("unselect",{originalEvent:e,data:n}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(t){o.isDisabled()||t.stopPropagation()}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",a=0;a<t.length;a++){var o=t[a],r=this.selectionContainer(),s=this.display(o,r),l=n+i.generateChars(4)+"-";o.id?l+=o.id:l+=i.generateChars(4),r.find(".select2-selection__choice__display").append(s).attr("id",l);var c=o.title||o.text;c&&r.attr("title",c),s=this.options.get("translations").get("removeItem"),(c=r.find(".select2-selection__choice__remove")).attr("title",s()),c.attr("aria-label",s()),c.attr("aria-describedby",l),i.StoreData(r[0],"data",o),e.push(r)}this.$selection.find(".select2-selection__rendered").append(e)}},n})),_.define("select2/selection/placeholder",[],(function(){function t(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e?{id:"",text:e}:e},t.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice"),e=e.title||e.text||i.text(),this.$selection.find(".select2-selection__rendered").attr("title",e),i},t.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||i)return t.call(this,e);this.clear(),e=this.createPlaceholder(this.placeholder),this.$selection.find(".select2-selection__rendered").append(e)},t})),_.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var a=i.GetData(n[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var r={data:a};if(this.trigger("clear",r),r.prevented)this.$element.val(o);else{for(var s=0;s<a.length;s++)if(r={data:a[s]},this.trigger("unselect",r),r.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){var a,o;e.call(this,n),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===n.length||(a=this.$selection.find(".select2-selection__rendered").attr("id"),o=this.options.get("translations").get("removeAllItems"),(e=t('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>')).attr("title",o()),e.attr("aria-label",o()),e.attr("aria-describedby",a),i.StoreData(e[0],"data",n),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"))},n})),_.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,
32i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=this.options.get("translations").get("search"),n=t('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');return this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),e=e.call(this),this._transferTabIndex(),e.append(this.$searchContainer),e},n.prototype.bind=function(t,n,a){var o=this,r=n.id+"-results",s=n.id+"-container";t.call(this,n,a),o.$search.attr("aria-describedby",s),n.on("open",(function(){o.$search.attr("aria-controls",r),o.$search.trigger("focus")})),n.on("close",(function(){o.$search.val(""),o.resizeSearch(),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),n.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),n.on("disable",(function(){o.$search.prop("disabled",!0)})),n.on("focus",(function(t){o.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){var n;t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which!==i.BACKSPACE||""!==o.$search.val()||0<(n=o.$selection.find(".select2-selection__choice").last()).length&&(n=e.GetData(n[0],"data"),o.searchRemoveChoice(n),t.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&&t.stopPropagation()}));var l=(n=document.documentMode)&&n<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){var e;l&&"input"===t.type?o.$selection.off("input.search input.searchcheck"):(e=t.which)!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&o.handleSearch(t)}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){var t;this.resizeSearch(),this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";""===this.$search.attr("placeholder")&&(t=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",t)},n})),_.define("select2/selection/selectionCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this);return-1!==(e=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(e=e.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(e),i},e})),_.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var a=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){var n;-1!==o.indexOf(e)&&(i=i||{},n=t.Event("select2:"+e,{params:i}),a.$element.trigger(n),-1!==r.indexOf(e)&&(i.prevented=n.isDefaultPrevented()))}))},e})),_.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){var n;return t in i._cache||(n=e(t),i._cache[t]=n),new i(i._cache[t])},i})),_.define("select2/diacritics",[],(function(){return{"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Å":"OE","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"
32V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½
":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á»
":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È
":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹
":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Å":"oe","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê
":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","áº
":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï
","Ï":"Ï
","ΰ":"Ï
","Ï":"Ï","Ï":"Ï","â":"'"}})),_.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){return e=e.id+"-result-",e+=t.generateChars(4),null!=i.id?e+="-"+i.id.toString():e+="-"+t.generateChars(4),e},e})),_.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,
32i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=this;t(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(t){return e.item(i(t))})))},n.prototype.select=function(t){var e,i=this;if(t.selected=!0,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(e){var n=[];(t=[t]).push.apply(t,e);for(var a=0;a<t.length;a++){var o=t[a].id;-1===n.indexOf(o)&&n.push(o)}i.$element.val(n),i.$element.trigger("input").trigger("change")})):(e=t.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],a=0;a<i.length;a++){var o=i[a].id;o!==t.id&&-1===n.indexOf(o)&&n.push(o)}e.$element.val(n),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;(this.container=t).on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],a=this;this.$element.children().each((function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=i(this),e=a.item(e),null!==(e=a.matches(t,e))&&n.push(e))})),e({results:n})},n.prototype.addOptions=function(t){this.$element.append(t)},n.prototype.option=function(t){var n;return t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title),(t=this._normalizeItem(t)).element=n,e.StoreData(n,"data",t),i(n)},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;var a=t[0];if("option"===a.tagName.toLowerCase())n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if("optgroup"===a.tagName.toLowerCase()){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var o=t.children("option"),r=[],s=0;s<o.length;s++){var l=i(o[s]);l=this.item(l);r.push(l)}n.children=r}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),_.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){for(var e=this,n=this.$element.find("option"),a=n.map((function(){return e.item(i(this)).id})).get(),o=[],r=0;r<t.length;r++){var s,l,c=this._normalizeItem(t[r]);0<=a.indexOf(c.id)?(s=n.filter(function(t){return function(){return i(this).val()==t.id}}(c)),l=this.item(s),l=i.extend(!0,{},c,l),l=this.option(l),s.replaceWith(l)):(l=this.option(c),c.children&&(c=this.convertToOptions(c.children),l.append(c)),o.push(l))}return o},n})),_.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,
32i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){return(t=i.ajax(t)).then(e),t.fail(n),t}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var a=i.extend({type:"GET"},this.ajaxOptions);function o(){var i=a.transport(a,(function(i){i=n.processResults(i,t),n.options.get("debug")&&window.console&&console.error&&(i&&i.results&&Array.isArray(i.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(i)}),(function(){"status"in i&&(0===i.status||"0"===i.status)||n.trigger("results:message",{message:"errorLoading"})}));n._request=i}"function"==typeof a.url&&(a.url=a.url.call(this.$element,t)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},n})),_.define("select2/data/tags",["jquery"],(function(t){function e(t,e,i){var n=i.get("tags"),a=i.get("createTag");if(void 0!==a&&(this.createTag=a),void 0!==(a=i.get("insertTag"))&&(this.insertTag=a),t.call(this,e,i),Array.isArray(n))for(var o=0;o<n.length;o++){var r=n[o];r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(t,e,i){var n=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(a,o){for(var r=a.results,s=0;s<r.length;s++){var l=r[s],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!o&&(a.data=r,void i(a))}if(o)return!0;var h,d=n.createTag(e);null!=d&&((h=n.option(d)).attr("data-select2-tag","true"),n.addOptions([h]),n.insertTag(r,d)),a.results=r,i(a)})):t.call(this,e,i)},e.prototype.createTag=function(t,e){return null==e.term||""===(e=e.term.trim())?null:{id:e,text:e}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),_.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var a=this;i.term=i.term||"";var o=this.tokenizer(i,this.options,(function(e){var i,n=a._normalizeItem(e);a.$element.find("option").filter((function(){return t(this).val()===n.id})).length||((i=a.option(n)).attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([i])),i=n,a.trigger("select",{data:i})}));o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),i.term=o.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,a){for(var o=n.get("tokenSeparators")||[],r=i.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<r.length;){var c=r[s];-1!==o.indexOf(c)?(c=r.substr(0,s),null!=(c=l(t.extend({},i,{term:c})))?(a(c),r=r.substr(s+1)||"",s=0):s++):s++}return{term:r}},e})),_.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),_.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}
32return t.prototype.query=function(t,e,i){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),_.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){t=null!=t?t.length:0,0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),_.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),_.define("select2/dropdown/search",["jquery"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("translations").get("search");e=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),i.prepend(e),i},e.prototype.bind=function(e,i,n){var a=this,o=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){a.trigger("keypress",t),a._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){a.handleSearch(t)})),i.on("open",(function(){a.$search.attr("tabindex",0),a.$search.attr("aria-controls",o),a.$search.trigger("focus"),window.setTimeout((function(){a.$search.trigger("focus")}),0)})),i.on("close",(function(){a.$search.attr("tabindex",-1),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.val(""),a.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||a.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(a.showSearch(t)?a.$searchContainer[0].classList.remove("select2-search--hide"):a.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?a.$search.attr("aria-activedescendant",t.data._resultId):a.$search.removeAttr("aria-activedescendant")}))},e.prototype.handleSearch=function(t){var e;this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e})),_.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e?{id:"",text:e}:e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;0<=n;n--){var a=e[n];this.placeholder.id===a.id&&i.splice(n,1)}return i},t})),_.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())}
32,e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),_.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e[0].classList.remove("select2"),e[0].classList.add("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>");e=e.call(this);return i.append(e),this.$dropdownContainer=i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){var i;this._containerResultsHandlersBound||(i=this,e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0)},i.prototype._attachPositioningHandler=function(i,n){var a=this,o="scroll.
32select2."+n.id,r="resize.select2."+n.id,s="orientationchange.select2."+n.id;(n=this.$container.parents().filter(e.hasScroll)).each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),n.on(o,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(o+" "+r+" "+s,(function(t){a._positionDropdown(),a._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var a="scroll.select2."+n.id,o="resize.select2."+n.id;n="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(a),t(window).off(a+" "+o+" "+n)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),a=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),h=l<o.top-s;e=c>o.bottom+s,l={left:o.left,top:r.bottom};"static"===(c=this.$dropdownParent).css("position")&&(c=c.offsetParent()),o={top:0,left:0},(t.contains(document.body,c[0])||c[0].isConnected)&&(o=c.offset()),l.top-=o.top,l.left-=o.left,i||n||(a="below"),e||!h||i?!h&&e&&i&&(a="below"):a="above",("above"==a||i&&"below"!==a)&&(l.top=r.top-o.top-s),null!=a&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+a),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+a)),this.$dropdownContainer.css(l)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),_.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var i=0,n=0;n<e.length;n++){var a=e[n];a.children?i+=t(a.children):i++}return i}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),_.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}(n=this.getHighlightedResults()).length<1||null!=(n=t.GetData(n[0],"data")).element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n})},e})),_.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),_.define("select2/dropdown/dropdownCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this);return-1!==(e=this.options.get("dropdownCssClass")||"").indexOf(":all:")&&(e=e.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(e),i},e})),_.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(t){function e(){}return e.prototype.highlightFirstItem=function(e){if(0<(i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)")).length){var i,n=i.first();if((i=t.GetData(n[0],"data").element)&&i.getAttribute&&"true"===i.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e})),_.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum;t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),_.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(t,e,
vendor: 2,020 bytes, line 32
32i,n,a,o,r,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,A,T,E,L,D){function P(){this.reset()}return P.prototype.apply=function(h){var d;null==(h=t.extend(!0,{},this.defaults,h)).dataAdapter&&(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=u,0<h.minimumInputLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,v)),0<h.maximumInputLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,b)),0<h.maximumSelectionLength&&(h.dataAdapter=c.Decorate(h.dataAdapter,y)),h.tags&&(h.dataAdapter=c.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=c.Decorate(h.dataAdapter,m))),null==h.resultsAdapter&&(h.resultsAdapter=e,null!=h.ajax&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,C)),null!=h.placeholder&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,_)),h.selectOnClose&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,A)),h.tags&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,L))),null==h.dropdownAdapter&&(h.multiple?h.dropdownAdapter=x:(d=c.Decorate(x,w),h.dropdownAdapter=d),0!==h.minimumResultsForSearch&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,k)),h.closeOnSelect&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,T)),null!=h.dropdownCssClass&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,E)),h.dropdownAdapter=c.Decorate(h.dropdownAdapter,S)),null==h.selectionAdapter&&(h.multiple?h.selectionAdapter=n:h.selectionAdapter=i,null!=h.placeholder&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,a)),h.allowClear&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,o)),h.multiple&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,r)),null!=h.selectionCssClass&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,s)),h.selectionAdapter=c.Decorate(h.selectionAdapter,l)),h.language=this._resolveLanguage(h.language),h.language.push("en");for(var D=[],P=0;P<h.language.length;P++){var M=h.language[P];-1===D.indexOf(M)&&D.push(M)}return h.language=D,h.translations=this._processTranslations(h.language,h.debug),h},P.prototype.reset=function(){function e(t){return t.replace(/[^\u
320000-\u007E]/g,(function(t){return d[t]||t}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function i(n,a){if(null==n.term||""===n.term.trim())return a;if(a.children&&0<a.children.length){for(var o=t.extend(!0,{},a),r=a.children.length-1;0<=r;r--)null==i(n,a.children[r])&&o.children.splice(r,1);return 0<o.children.length?o:i(n,o)}var s=e(a.text).toUpperCase(),l=e(n.term).toUpperCase();return-1<s.indexOf(l)?a:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},P.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,a=e.prop("lang");e=e.closest("[lang]").prop("lang"),e=Array.prototype.concat.call(this._resolveLanguage(a),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(e));return t.language=e,t},P.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];for(var i,n=Array.isArray(e)?e:[e],a=[],o=0;o<n.length;o++)a.push(n[o]),"string"==typeof n[o]&&0<n[o].indexOf("-")&&(i=n[o].split("-")[0],a.push(i));return a},P.prototype._processTranslations=function(e,i){for(var n=new h,a=0;a<e.length;a++){var o=new h,r=e[a];if("string"==typeof r)try{o=h.loadPath(r)}catch(e){try{r=this.defaults.amdLanguageBase+r,o=h.loadPath(r)}catch(e){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(r)?new h(r):r;n.extend(o)}return n},P.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i,n=c._convertData(n),t.extend(!0,this.defaults,n)},new P})),_.define("select2/options",["jquery","./defaults","./utils"],(function(t,e,i){function n(t,i){this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=e.applyFromElement(this.options,i)),this.options=e.apply(this.options)}return n.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var a={};function o(t,e){return e.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var s=e[0].attributes[r].name,l="data-";s.substr(0,l.length)==l&&(s=s.substring(l.length),l=i.GetData(e[0],s),a[s.replace(/-([a-z])/g,o)]=l)}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(a=t.extend(!0,{},e[0].dataset,a));var c,h=t.extend(!0,{},i.GetData(e[0]),a);for(c in h=i._convertData(h))-1<n.indexOf(c)||(t.isPlainObject(this.options[c])?t.extend(this.options[c],h[c]):this.options[c]=h[c]);return this},n.prototype.get=function(t){return this.options[t]},n.prototype.set=function(t,e){this.options[t]=e},n})),_.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,
32i,n){var a=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),a.__super__.constructor.call(this);var o=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1"),n=this.options.get("dataAdapter"),this.dataAdapter=new n(t,this.options),o=this.render(),this._placeContainer(o),n=this.options.get("selectionAdapter"),this.selection=new n(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o),n=this.options.get("dropdownAdapter"),this.dropdown=new n(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o),o=this.options.get("resultsAdapter"),this.results=new o(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var r=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){r.trigger("selection:update",{data:t})})),t[0].classList.add("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(a,i.Observable),a.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},a.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},a.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e)return(n=t.outerWidth(!1))<=0?"auto":n+"px";if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;if("string"!=typeof(t=t.attr("style")))return null;for(var a=t.split(";"),o=0,r=a.length;o<r;o+=1){var s=a[o].replace(/\s/g,"").match(i);if(null!==s&&1<=s.length)return s[1]}return null},a.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},a.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(e){t._syncA(),t._syncS(e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},a.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerSelectionEvents=function(){var t=this,e=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,n){-1===e.indexOf(i)&&t.trigger(i,n)}))},a.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){t.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){t.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){t.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){t.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER||i===n.TAB?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},a.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},a.prototype._isChangeMutation=function(t){var e=this;if(t.addedNodes&&0<t.addedNodes.length){for(var i=0;i<t.addedNodes.length;i++)if(t.addedNodes[i].selected)return!0}else{if(t.removedNodes&&0<t.removedNodes.length)return!0;
32if(Array.isArray(t))return t.some((function(t){return e._isChangeMutation(t)}))}return!1},a.prototype._syncSubtree=function(t){t=this._isChangeMutation(t);var e=this;t&&this.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))},a.prototype.trigger=function(t,e){var i=a.__super__.trigger;if(void 0===e&&(e={}),t in(o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"})){var n=o[t],o={prevented:!1,name:t,args:e};if(i.call(this,n,o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},a.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},a.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},a.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},a.prototype.isEnabled=function(){return!this.isDisabled()},a.prototype.isDisabled=function(){return this.options.get("disabled")},a.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},a.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},a.prototype.focus=function(t){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},a.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),t=!(t=null==t||0===t.length?[!0]:t)[0],this.$element.prop("disabled",t)},a.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},a.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();t=t[0],Array.isArray(t)&&(t=t.map((function(t){return t.toString()}))),this.$element.val(t).trigger("input").trigger("change")},a.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},a.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},a})),_.define("jquery-mousewheel",["jquery"],(function(t){return t})),_.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,a){var o;return null==t.fn.select2&&(o=["open","close","destroy"],t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var n,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=a.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,r)})),-1<o.indexOf(e)?this:n}),null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:_.define,require:_.require});function m(t,e){return u.call(t,e)}function v(t,e){var i,n,a,o,r,s,l,c,d,u,p=e&&e.split("/"),g=h.map,m=g&&g["*"]||{};if(t){for(e=(t=t.split("/")).length-1,h.nodeIdCompat&&f.test(t[e])&&(t[e]=t[e].replace(f,"")),"."===t[0].charAt(0)&&p&&(t=p.slice(0,p.length-1).concat(t)),c=0;c<t.length;
32c++)"."===(u=t[c])?(t.splice(c,1),--c):".."===u&&(0===c||1===c&&".."===t[2]||".."===t[c-1]||0<c&&(t.splice(c-1,2),c-=2));t=t.join("/")}if((p||m)&&g){for(c=(i=t.split("/")).length;0<c;--c){if(n=i.slice(0,c).join("/"),p)for(d=p.length;0<d;--d)if(a=(a=g[p.slice(0,d).join("/")])&&a[n]){o=a,r=c;break}if(o)break;!s&&m&&m[n]&&(s=m[n],l=c)}!o&&s&&(o=s,r=l),o&&(i.splice(0,r,o),t=i.join("/"))}return t}function b(t,e){return function(){var i=p.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(n,i.concat([t,e]))}}function y(t){var e;if(m(c,t)&&(e=c[t],delete c[t],d[t]=!0,a.apply(n,e)),!m(l,t)&&!m(d,t))throw new Error("No "+t);return l[t]}function x(t){var e,i=t?t.indexOf("!"):-1;return-1<i&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function w(t){return t?x(t):[]}var _=g.require("jquery.select2");return t.fn.select2.amd=g,_})),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 a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.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 a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));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),a=i(51),o=i(3),r=i(29),s=i(56),l=i(76),c=a("wks"),h=n.Symbol,d=l?h:h&&h.withoutSetter||r;t.exports=function(t){return o(c,t)||(s&&o(h,t)?c[t]=h[t]:c[t]=d("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),a=i(46),o=i(7),r=i(25),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=r(e,!0),o(i),a)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),a=i(5),o=i(14);t.exports=n?function(t,e,i){return a.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n,a,o,r=i(50),s=i(0),l=i(2),c=i(8),h=i(3),d=i(27),u=i(16),p=s.WeakMap;if(r){var f=new p,g=f.get,m=f.has,v=f.set;n=function(t,e){return v.call(f,t,e),e},a=function(t){return g.call(f,t)||{}},o=function(t){return m.call(f,t)}}else{var b=d("state");u[b]=!0,n=function(t,e){return c(t,b,e),e},a=function(t){return h(t,b)?t[b]:{}},o=function(t){return h(t,b)}}t.exports={set:n,get:a,has:o,enforce:function(t){return o(t)?a(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=a(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),a=i(8),o=i(3),r=i(26),s=i(48),l=i(9),c=l.get,h=l.enforce,d=String(String).split("String");
vendor: 4,306 bytes, line 32
32(t.exports=function(t,e,i,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof e||o(i,"name")||a(i,"name",e),h(i).source=d.join("string"==typeof e?e:"")),t!==n?(l?!u&&t[e]&&(c=!0):delete t[e],c?t[e]=i:a(t,e,i)):c?t[e]=i:r(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),a=i(44).f,o=i(8),r=i(11),s=i(26),l=i(70),c=i(54);t.exports=function(t,e){var i,h,d,u,p,f=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[f]||s(f,{}):(n[f]||{}).prototype)for(h in e){if(u=e[h],d=t.noTargetGet?(p=a(i,h))&&p.value:i[h],!c(g?h:f+(m?".":"#")+h,t.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(t.sham||d&&d.sham)&&o(u,"sham",!0),r(i,h,u,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),a=i(24);t.exports=function(t){return n(a(t))}},function(t,e){t.exports={}},function(t,e,i){var n=i(31),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},function(t,e,i){var n=i(16),a=i(2),o=i(3),r=i(5).f,s=i(29),l=i(75),c=s("meta"),h=0,d=Object.isExtensible||function(){return!0},u=function(t){r(t,c,{value:{objectID:"O"+ ++h,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!d(t))return"F";if(!e)return"E";u(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!d(t))return!0;if(!e)return!1;u(t)}return t[c].weakData},onFreeze:function(t){return l&&p.REQUIRED&&d(t)&&!o(t,c)&&u(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,a){return t.call(e,i,n,a)}}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),a=i(0),o=i(54),r=i(11),s=i(18),l=i(33),c=i(35),h=i(2),d=i(4),u=i(60),p=i(36),f=i(78);t.exports=function(t,e,i){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),v=g?"set":"add",b=a[t],y=b&&b.prototype,x=b,w={},_=function(t){var e=y[t];r(y,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!h(t))&&e.call(this,0===t?0:t)}:function(t,i){return e.call(this,0===t?0:t,i),this})};if(o(t,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))x=i.getConstructor(e,t,g,v),s.REQUIRED=!0;else if(o(t,!0)){var C=new x,S=C[v](m?{}:-0,1)!=C,k=d((function(){C.has(1)})),A=u((function(t){new b(t)})),T=!m&&d((function(){for(var t=new b,e=5;e--;)t[v](e,e);return!t.has(-0)}));A||((x=e((function(e,i){c(e,x,t);var n=f(new b,e,x);return null!=i&&l(i,n[v],n,g),n}))).prototype=y,y.constructor=x),(k||T)&&(_("delete"),_("has"),g&&_("get")),(T||S)&&_(v),m&&y.clear&&delete y.clear}return w[t]=x,n({global:!0,forced:x!=b},w),p(x,t),m||i.setStrong(x,t,g),x}},function(t,e,i){var n=i(4),a=i(23),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(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,a;if(e&&"function"==typeof(i=t.toString)&&!n(a=i.call(t)))return a;if("function"==typeof(i=t.valueOf)&&!n(a=i.call(t)))return a;if(!e&&"function"==typeof(i=t.toString)&&!n(a=i.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){var n=i(0),a=i(8);t.exports=function(t,e){try{a(n,t,e)}catch(i){n[t]=e}return e}},function(t,e,i){var n=i(51),a=i(29),o=n("keys");t.exports=function(t){return o[t]||(o[t]=a(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)}}
vendor: 4,202 bytes, line 32
32,function(t,e,i){var n=i(10),a=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(a[t]):n[t]&&n[t][e]||a[t]&&a[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),a=i(55),o=i(17),r=i(19),s=i(57),l=i(59),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,i,h,d){var u,p,f,g,m,v,b,y=r(e,i,h?2:1);if(d)u=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(a(p)){for(f=0,g=o(t.length);g>f;f++)if((m=h?y(n(b=t[f])[0],b[1]):y(t[f]))&&m instanceof c)return m;return new c(!1)}u=p.call(t)}for(v=u.next;!(b=v.call(u)).done;)if("object"==typeof(m=l(u,y,b.value,h))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(t){return new c(!0,t)}},function(t,e,i){var n={};n[i(1)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},function(t,e,i){var n=i(5).f,a=i(3),o=i(1)("toStringTag");t.exports=function(t,e,i){t&&!a(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n,a=i(7),o=i(80),r=i(32),s=i(16),l=i(81),c=i(47),h=i(27)("IE_PROTO"),d=function(){},u=function(t){return"<script>"+t+"<\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}p=n?function(t){t.write(u("")),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(u("document.F=Object")),t.close(),t.F}();for(var t=r.length;t--;)delete p.prototype[r[t]];return p()};s[h]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(d.prototype=a(t),i=new d,d.prototype=null,i[h]=t):i=p(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(11);t.exports=function(t,e,i){for(var a in e)n(t,a,e[a],i);return t}},function(t,e,i){"use strict";var n=i(13),a=i(82),o=i(65),r=i(61),s=i(36),l=i(8),c=i(11),h=i(1),d=i(28),u=i(12),p=i(64),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=h("iterator"),v=function(){return this};t.exports=function(t,e,i,h,p,b,y){a(i,e,h);var x,w,_,C=function(t){if(t===p&&E)return E;if(!g&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},S=e+" Iterator",k=!1,A=t.prototype,T=A[m]||A["@@iterator"]||p&&A[p],E=!g&&T||C(p),L="Array"==e&&A.entries||T;if(L&&(x=o(L.call(new t)),f!==Object.prototype&&x.next&&(d||o(x)===f||(r?r(x,f):"function"!=typeof x[m]&&l(x,m,v)),s(x,S,!0,!0),d&&(u[S]=v))),"values"==p&&T&&"values"!==T.name&&(k=!0,E=function(){return T.call(this)}),d&&!y||A[m]===E||l(A,m,E),u[e]=E,p)if(w={values:C("values"),keys:b?E:C("keys"),entries:C("entries")},y)for(_ in w)!g&&!k&&_ in A||c(A,_,w[_]);else n({target:e,proto:!0,forced:g||k},w);return w}},function(t,e,i){var n=i(34),a=i(11),o=i(85);n||a(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,i){"use strict";var n=i(86).charAt,a=i(9),o=i(39),r=a.set,s=a.getterFor("String Iterator");o(String,"String",(function(t){r(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),i=e.string,a=e.index;return a>=i.length?{value:void 0,done:!0}:(t=n(i,a),e.index+=t.length,{value:t,done:!1})}))},function(t,e,i){var n=i(0),a=i(87),o=i(88),r=i(8),s=i(1),l=s("iterator"),c=s("toStringTag"),h=o.values;for(var d in a){var u=n[d],p=u&&u.prototype;if(p){if(p[l]!==h)try{r(p,l,h)}catch(t){p[l]=h}if(p[c]||r(p,c,d),a[d])for(var f in o)if(p[f]!==o[f])try{r(p,f,o[f])}catch(t){p[f]=o[f]}}}},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(6),a=i(45),o=i(14),r=i(15),s=i(25),l=i(3),c=i(46),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=r(t),e=s(e,!0),c)try{return h(t,e)}catch(t){}if(l(t,e))return o(!a.f.call(t,e),t[e])}}
vendor: 15,482 bytes, lines 32-35
32,function(t,e,i){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!n.call({1:2},1);e.f=o?function(t){var e=a(this,t);return!!e&&e.enumerable}:n},function(t,e,i){var n=i(6),a=i(4),o=i(47);t.exports=!n&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(0),a=i(2),o=n.document,r=a(o)&&a(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(49),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return a.call(t)}),t.exports=n.inspectSource},function(t,e,i){var n=i(0),a=i(26),o=n["__core-js_shared__"]||a("__core-js_shared__",{});t.exports=o},function(t,e,i){var n=i(0),a=i(48),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(a(o))},function(t,e,i){var n=i(28),a=i(49);(t.exports=function(t,e){return a[t]||(a[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),a=i(15),o=i(73).indexOf,r=i(16);t.exports=function(t,e){var i,s=a(t),l=0,c=[];for(i in s)!n(r,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),a=/#|\.prototype\./,o=function(t,e){var i=s[r(t)];return i==c||i!=l&&("function"==typeof e?n(e):!!e)},r=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},function(t,e,i){var n=i(1),a=i(12),o=n("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||r[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),a=i(12),o=i(1)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[n(t)]}},function(t,e,i){var n=i(34),a=i(23),o=i(1)("toStringTag"),r="Arguments"==a(function(){return arguments}());t.exports=n?a: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:r?a(e):"Object"==(n=a(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,i){var n=i(7);t.exports=function(t,e,i,a){try{return a?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"),a=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){a=!0}};r[n]=function(){return this},Array.from(r,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)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),a=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),a(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},function(t,e,i){"use strict";var n=i(5).f,a=i(37),o=i(38),r=i(19),s=i(35),l=i(33),c=i(39),h=i(84),d=i(6),u=i(18).fastKey,p=i(9),f=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,i,c){var h=t((function(t,n){s(t,h,e),f(t,{type:e,index:a(null),first:void 0,last:void 0,size:0}),d||(t.size=0),null!=n&&l(n,t[c],t,i)})),p=g(e),m=function(t,e,i){var n,a,o=p(t),r=v(t,e);return r?r.value=i:(o.last=r={index:a=u(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=r),n&&(n.next=r),d?o.size++:t.size++,"F"!==a&&(o.index[a]=r)),t},v=function(t,e){var i,n=p(t),a=u(e);if("F"!==a)return n.index[a];for(i=n.first;i;i=i.next)if(i.key==e)return i};return o(h.prototype,{clear:function(){for(var t=p(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=p(this),i=v(this,t);if(i){var n=i.next,a=i.previous;delete e.index[i.index],i.removed=!0,a&&(a.next=n),n&&(n.previous=a),e.first==i&&(e.first=n),e.last==i&&(e.last=a),d?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=p(this),n=r(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(h.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)}}),d&&n(h.prototype,"size",{get:function(){return p(this).size}}),h},setStrong:function(t,e,i){var n=e+" Iterator",a=g(e),o=g(n);c(t,e,(function(t,e){f(this,{type:n,target:t,state:a(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){var n=i(52),a=i(32);t.exports=Object.keys||function(t){return n(t,a)}},function(t,e,i){"use strict";var n,a,o,r=i(65),s=i(8),l=i(3),c=i(1),h=i(28),d=c("iterator"),u=!1;[].keys&&("next"in(o=[].keys())?(a=r(r(o)))!==Object.prototype&&(n=a):u=!0),null==n&&(n={}),h||l(n,d)||s(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:u}},function(t,e,i){var n=i(3),a=i(20),o=i(27),r=i(83),s=o("IE_PROTO"),l=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=a(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),a=i(62);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),a)},function(t,e,i){var n=i(3),a=i(71),o=i(44),r=i(5);t.exports=function(t,e){for(var i=a(e),s=r.f,l=o.f,c=0;c<i.length;c++){var h=i[c];n(t,h)||s(t,h,l(e,h))}}},function(t,e,i){var n=i(30),a=i(72),o=i(53),r=i(7);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(52),a=i(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},function(t,e,i){var n=i(15),a=i(17),o=i(74),r=function(t){return function(e,i,r){var s,l=n(e),c=a(l.length),h=o(r,c);if(t&&i!=i){for(;c>h;)if((s=l[h++])!=s)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},function(t,e,i){var n=i(31),a=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?a(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),a=i(61);t.exports=function(t,e,i){var o,r;return a&&"function"==typeof(o=e.constructor)&&o!==i&&n(r=o.prototype)&&r!==i.prototype&&a(t,r),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),a=i(5),o=i(7),r=i(63);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=r(e),s=n.length,l=0;s>l;)a.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,a=i(37),o=i(14),r=i(36),s=i(12),l=function(){return this};t.exports=function(t,e,i){var c=e+" Iterator";return t.prototype=a(n,{next:o(1,i)}),r(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),a=i(5),o=i(1),r=i(6),s=o("species");t.exports=function(t){var e=n(t),i=a.f;r&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(34),a=i(58);t.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(t,e,i){var n=i(31),a=i(24),o=function(t){return function(e,i){var o,r,s=String(a(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||(r=s.charCodeAt(l+1))<56320||r>57343?t?s.charAt(l):o:t?s.slice(l,l+2):r-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),a=i(89),o=i(12),r=i(9),s=i(39),l=r.set,c=r.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,a("keys"),a("values"),a("entries")},function(t,e,i){var n=i(1),a=i(37),o=i(5),r=n("unscopables"),s=Array.prototype;null==s[r]&&o.f(s,r,{configurable:!0,value:a(null)}),t.exports=function(t){s[r][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),a=i(62);t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),a)},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,a=i(0),o=i(38),r=i(18),s=i(21),l=i(94),c=i(2),h=i(9).enforce,d=i(50),u=!a.ActiveXObject&&"ActiveXObject"in a,p=Object.isExtensible,f=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",f,l);if(d&&u){n=l.getConstructor(f,"WeakMap",!0),r.REQUIRED=!0;var m=g.prototype,v=m.delete,b=m.has,y=m.get,x=m.set;o(m,{delete:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),v.call(this,t)||e.frozen.delete(t)}return v.call(this,t)},has:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),b.call(this,t)||e.frozen.has(t)}return b.call(this,t)},get:function(t){if(c(t)&&!p(t)){var e=h(this);return e.frozen||(e.frozen=new n),b.call(this,t)?y.call(this,t):e.frozen.get(t)}return y.call(this,t)},set:function(t,e){if(c(t)&&!p(t)){var i=h(this);i.frozen||(i.frozen=new n),b.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),a=i(18).getWeakData,o=i(7),r=i(2),s=i(35),l=i(33),c=i(95),h=i(3),d=i(9),u=d.set,p=d.getterFor,f=c.find,g=c.findIndex,m=0,v=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},y=function(t,e){return f(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var i=y(this,t);i?i[1]=e:this.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 d=t((function(t,n){s(t,d,e),u(t,{type:e,id:m++,frozen:void 0}),null!=n&&l(n,t[c],t,i)})),f=p(e),g=function(t,e,i){var n=f(t),r=a(o(e),!0);return!0===r?v(n).set(e,i):r[n.id]=i,t};return n(d.prototype,{delete:function(t){var e=f(this);if(!r(t))return!1;var i=a(t);return!0===i?v(e).delete(t):i&&h(i,e.id)&&delete i[e.id]},has:function(t){var e=f(this);if(!r(t))return!1;var i=a(t);return!0===i?v(e).has(t):i&&h(i,e.id)}}),n(d.prototype,i?{get:function(t){var e=f(this);if(r(t)){var i=a(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)}}),d}}},function(t,e,i){var n=i(19),a=i(22),o=i(20),r=i(17),s=i(96),l=[].push,c=function(t){var e=1==t,i=2==t,c=3==t,h=4==t,d=6==t,u=5==t||d;return function(p,f,g,m){for(var v,b,y=o(p),x=a(y),w=n(f,g,3),_=r(x.length),C=0,S=m||s,k=e?S(p,_):i?S(p,0):void 0;_>C;C++)if((u||C in x)&&(b=w(v=x[C],C,y),t))if(e)k[C]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return C;case 2:l.call(k,v)}else if(h)return!1;return d?-1:c||h?h:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e,i){var n=i(2),a=i(97),o=i(1)("species");t.exports=function(t,e){var i;return a(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!a(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),a=i(100);n({target:"Array",stat:!0,forced:!i(60)((function(t){Array.from(t)}))},{from:a})},function(t,e,i){"use strict";var n=i(19),a=i(20),o=i(59),r=i(55),s=i(17),l=i(101),c=i(57);t.exports=function(t){var e,i,h,d,u,p,f=a(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,y=c(f),x=0;if(b&&(v=n(v,m>2?arguments[2]:void 0,2)),null==y||g==Array&&r(y))for(i=new g(e=s(f.length));e>x;x++)p=b?v(f[x],x):f[x],l(i,x,p);else for(u=(d=y.call(f)).next,i=new g;!(h=u.call(d)).done;x++)p=b?o(d,v,[h.value,x],!0):h.value,l(i,x,p);return i.length=x,i}},function(t,e,i){"use strict";var n=i(25),a=i(5),o=i(14);t.exports=function(t,e,i){var r=n(e);r in t?a.f(t,r,o(0,i)):t[r]=i}},function(t,e,i){i(103);var n=i(10);t.exports=n.Object.assign},function(t,e,i){var n=i(13),a=i(104);n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(t,e,i){"use strict";var n=i(6),a=i(4),o=i(63),r=i(53),s=i(45),l=i(20),c=i(22),h=Object.assign,d=Object.defineProperty;t.exports=!h||a((function(){if(n&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=h({},t)[i]||"abcdefghijklmnopqrst"!=o(h({},e)).join("")}))?function(t,e){for(var i=l(t),a=arguments.length,h=1,d=r.f,u=s.f;a>h;)for(var p,f=c(arguments[h++]),g=d?o(f).concat(d(f)):o(f),m=g.length,v=0;m>v;)p=g[v++],n&&!u.call(f,p)||(i[p]=f[p]);return i}:h},function(t,e,i){"use strict";i.r(e);var n={};i.r(n),i.d(n,"keyboardHandler",(function(){return it})),i.d(n,"mouseHandler",(function(){return nt})),i.d(n,"resizeHandler",(function(){return at})),i.d(n,"selectHandler",(function(){return ot})),i.d(n,"touchHandler",(function(){return rt})),i.d(n,"wheelHandler",(function(){return st})); 33/*! ***************************************************************************** 34Copyright (c) Microsoft Corporation. All rights reserved. 35Licensed under the Apache License, Version 2.0 (the "License");
35 you may not use 36this file except in compliance with the License. You may obtain a copy of the 37License at http://www.apache.org/licenses/LICENSE-2.0 38 39THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 40KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 41WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 42MERCHANTABLITY OR NON-INFRINGEMENT. 43 44See the Apache Version 2.0 License for specific language governing permissions 45and limitations under the License. 46***************************************************************************** */ 47var a=function(t,e){return(a=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 a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};function r(t,e,i,n){var a,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r}i(68),i(90),i(92),i(98),i(102);var s=/\s/,l=/^\s+/,c=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},h=i(66),d="object"==typeof self&&self&&self.Object===Object&&self,u=h.a||d||Function("return this")(),p=u.Symbol,f=Object.prototype,g=f.hasOwnProperty,m=f.toString,v=p?p.toStringTag:void 0,b=Object.prototype.toString,y=p?p.toStringTag:void 0,x=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,_=/^0o[0-7]+$/i,C=parseInt,S=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]":y&&y 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 a=m.call(t);return n&&(e?t[v]=i:delete t[v]),a}(t):function(t){return b.call(t)}(t)}(t)}(t))return NaN;if(c(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=c(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e}(t)+1).replace(l,""):t}(t);var i=w.test(t);return i||_.test(t)?C(t.slice(2),i?2:8):x.test(t)?NaN:+t},k=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=S(i))==i?i:0),void 0!==e&&(e=(e=S(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}(S(t),e,i)};function A(t,e){return void 0===t&&(t=-1/0),void 0===e&&(e=1/0),function(i,n){var a="_"+n;Object.defineProperty(i,n,{get:function(){return this[a]},set:function(i){Object.defineProperty(this,a,{value:k(i,t,e),enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}}function T(t,e){var i="_"+e;Object.defineProperty(t,e,{get:function(){return this[i]},set:function(t){Object.defineProperty(this,i,{value:!!t,enumerable:!1,writable:!0,configurable:!0})},enumerable:!0,configurable:!0})}var E=function(){return u.Date.now()},L=Math.max,D=Math.min,P=function(t,e,i){var n,a,o,r,s,l,h=0,d=!1,u=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var i=n,o=a;return n=a=void 0,h=e,r=t.apply(o,i)}function g(t){var i=t-l;return void 0===l||i>=e||i<0||u&&t-h>=o}function m(){var t=E();if(g(t))return v(t);s=setTimeout(m,function(t){var i=e-(t-l);return u?D(i,o-(t-h)):i}(t))}function v(t){return s=void 0,p&&n?f(t):(n=a=void 0,r)}function b(){var t=E(),i=g(t);if(n=arguments,a=this,l=t,i){if(void 0===s)return function(t){return h=t,s=setTimeout(m,e),d?f(t):r}(l);if(u)return clearTimeout(s),s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),r}return e=S(e)||0,c(i)&&(d=!!i.leading,o=(u="maxWait"in i)?L(S(i.maxWait)||0,e):o,p="trailing"in i?!!i.trailing:p),b.cancel=function(){void 0!==s&&clearTimeout(s),h=0,n=l=a=s=void 0},b.flush=function(){return void 0===s?r:v(E())},b};function M(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,i,n){var a=n.value;return{get:function(){return this.hasOwnProperty(i)||Object.defineProperty(this,i,{value:P.apply(void 0,function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),a=0;for(e=0;e<i;e++)for(var o=arguments[e],r=0,s=o.length;r<s;r++,a++)n[a]=o[r];return n}([a],t))}),this[i]}}}}var I,O=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}),r([A(0,1)],t.prototype,"damping",void 0),r([A(0,1/0)],t.prototype,"thumbMinSize",void 0),r([T],t.prototype,"renderByPixels",void 0),r([T],t.prototype,"alwaysShowTracks",void 0),r([T],t.prototype,"continuousScrolling",void 0),t}(),z=new WeakMap;function N(){if(void 0!==I)return I;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 I=!!t&&{passive:!1}}function R(t){var e=z.get(t)||[];return z.set(t,e),function(t,i,n){function a(t){t.defaultPrevented||n(t)}i.split(/\s+/g).forEach((function(i){e.push({elem:t,eventName:i,handler:a}),t.addEventListener(i,a,N())}))}}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 H(t,e){return void 0===e&&(e=[]),e.some((function(e){return t===e}))}var B=["webkit","moz","ms","o"],j=new RegExp("^-(?!(?:"+B.join("|")+")-)");function Y(t,e){e=function(t){var e={};return Object.keys(t).forEach((function(i){if(j.test(i)){var n=t[i];i=i.replace(/^-/,""),e[i]=n,B.forEach((function(t){e["-"+t+"-"+i]=n}))}else e[i]=t[i]})),e}(e),Object.keys(e).forEach((function(i){var n=i.replace(/^-/,"").replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}));t.style[n]=e[i]}))}var W,X=function(){function t(t){this.velocityMultiplier=/Android/.test(navigator.userAgent)?window.devicePixelRatio:1,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,a=Date.now(),o=F(t),r={x:-(o.x-n.x),y:-(o.y-n.y)},s=a-i||16.7,l=r.x/s*16.7,c=r.y/s*16.7;e.x=l*this.velocityMultiplier,e.y=c*this.velocityMultiplier,this.delta=r,this.updateTime=a,this.lastPosition=o},t}(),V=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.getEasingDistance=function(t){var e=1-t,i={x:0,y:0},n=this.getVelocity();
47return Object.keys(n).forEach((function(t){for(var a=Math.abs(n[t])<=10?0:n[t];0!==a;)i[t]+=a,a=a*e|0})),i},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){this._has(t)&&this._delete(t);var e=new X(t);this._touchList[t.identifier]=e},t.prototype._renew=function(t){this._has(t)&&this._touchList[t.identifier].update(t)},t.prototype._delete=function(t){delete this._touchList[t.identifier]},t.prototype._has=function(t){return this._touchList.hasOwnProperty(t.identifier)},t.prototype._setActiveID=function(t){this._activeTouchID=t[t.length-1].identifier},t.prototype._getActiveTracker=function(){return this._touchList[this._activeTouchID]},t}();!function(t){t.X="x",t.Y="y"}(W||(W={}));var $=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}(),G=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 $(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}(),q=function(){function t(t){this._scrollbar=t;var e=t.options.thumbMinSize;this.xAxis=new G(W.X,e),this.yAxis=new G(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())},r([M(300)],t.prototype,"autoHideOnIdle",null),t}(),U=new WeakMap;function Z(t){return Math.pow(t-1,3)+1}var K,J,Q,tt=function(){function t(t,e){var i=this.constructor;this.scrollbar=t,this.name=i.pluginName,this.options=o(o({},i.defaultOptions),e)}return t.prototype.onInit=function(){},t.prototype.onDestroy=function(){},t.prototype.onUpdate=function(){},t.prototype.onRender=function(t){},t.prototype.transformDelta=function(t,e){return o({},t)},t.pluginName="",t.defaultOptions={},t}(),et={order:new Set,constructors:{}};function it(t){var e=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 a=function(t,e){var i=t.size,n=t.limit,a=t.offset;switch(e){case K.TAB:return function(t){requestAnimationFrame((function(){t.scrollIntoView(document.activeElement,{offsetTop:t.size.container.height/2,onlyScrollIfNeeded:!0})}))}(t);case K.SPACE:return[0,200];case K.PAGE_UP:return[0,40-i.container.height];case K.PAGE_DOWN:return[0,i.container.height-40];case K.END:return[0,n.y-a.y];case K.HOME:return[0,-a.y];case K.LEFT:return[-40,0];case K.UP:return[0,-40];case K.RIGHT:return[40,0];case K.DOWN:return[0,40];default:return null}}(t,e.keyCode||e.which);if(a){var o=a[0],r=a[1];t.addTransformableMomentum(o,r,e,(function(i){i?e.preventDefault():(t.containerEl.blur(),t.parent&&t.parent.containerEl.focus())}))}}}))}
47function nt(t){var e,i,n,a,o,r=R(t),s=t.containerEl,l=t.track,c=l.xAxis,h=l.yAxis;function d(e,i){var n=t.size,a=t.limit,o=t.offset;if(e===J.X){var r=n.container.width+(c.thumb.realSize-c.thumb.displaySize);return k(i/r*n.content.width,0,a.x)-o.x}if(e===J.Y){var s=n.container.height+(h.thumb.realSize-h.thumb.displaySize);return k(i/s*n.content.height,0,a.y)-o.y}return 0}function u(t){return H(t,[c.element,c.thumb.element])?J.X:H(t,[h.element,h.thumb.element])?J.Y:void 0}r(s,"click",(function(e){if(!i&&H(e.target,[c.element,h.element])){var n=e.target,a=u(n),o=n.getBoundingClientRect(),r=F(e);if(a===J.X){var s=r.x-o.left-c.thumb.displaySize/2;t.setMomentum(d(a,s),0)}a===J.Y&&(s=r.y-o.top-h.thumb.displaySize/2,t.setMomentum(0,d(a,s)))}})),r(s,"mousedown",(function(i){if(H(i.target,[c.thumb.element,h.thumb.element])){e=!0;var r=i.target,l=F(i),d=r.getBoundingClientRect();a=u(r),n={x:l.x-d.left,y:l.y-d.top},o=s.getBoundingClientRect(),Y(t.containerEl,{"-user-select":"none"})}})),r(window,"mousemove",(function(r){if(e){i=!0;var s=F(r);if(a===J.X){var l=s.x-n.x-o.left;t.setMomentum(d(a,l),0)}a===J.Y&&(l=s.y-n.y-o.top,t.setMomentum(0,d(a,l)))}})),r(window,"mouseup blur",(function(){e=i=!1,Y(t.containerEl,{"-user-select":""})}))}function at(t){R(t)(window,"resize",P(t.update.bind(t),300))}function ot(t){var e,i=R(t),n=t.containerEl,a=t.contentEl,o=!1;i(window,"mousemove",(function(i){o&&(cancelAnimationFrame(e),function i(n){var a=n.x,o=n.y;if(a||o){var r=t.offset,s=t.limit;t.setMomentum(k(r.x+a,0,s.x)-r.x,k(r.y+o,0,s.y)-r.y),e=requestAnimationFrame((function(){i({x:a,y:o})}))}}(function(t,e){var i=t.bounding,n=i.top,a=i.right,o=i.bottom,r=i.left,s=F(e),l=s.x,c=s.y,h={x:0,y:0};return 0===l&&0===c||(l>a-20?h.x=l-a+20:l<r+20&&(h.x=l-r-20),c>o-20?h.y=c-o+20:c<n+20&&(h.y=c-n-20),h.x*=2,h.y*=2),h}(t,i)))})),i(a,"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 rt(t){var e,i=t.options.delegateTo||t.containerEl,n=new V,a=R(t),o=0;a(i,"touchstart",(function(i){n.track(i),t.setMomentum(0,0),0===o&&(e=t.options.damping,t.options.damping=Math.max(e,.5)),o++})),a(i,"touchmove",(function(e){if(!Q||Q===t){n.update(e);var i=n.getDelta(),a=i.x,o=i.y;t.addTransformableMomentum(a,o,e,(function(i){i&&e.cancelable&&(e.preventDefault(),Q=t)}))}})),a(i,"touchcancel touchend",(function(i){var a=n.getEasingDistance(e);t.addTransformableMomentum(a.x,a.y,i),0==--o&&(t.options.damping=e),n.release(i),Q=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=ht(t.deltaMode);return{x:t.deltaX/lt.STANDARD*e,y:t.deltaY/lt.STANDARD*e}}return"wheelDeltaX"in t?{x:t.wheelDeltaX/lt.OTHERS,y:t.wheelDeltaY/lt.OTHERS}:{x:0,y:t.wheelDelta/lt.OTHERS}}(e),n=i.x,a=i.y;t.addTransformableMomentum(n,a,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"}(K||(K={})),function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(J||(J={}));var lt={STANDARD:1,OTHERS:-3},ct=[1,28,500],ht=function(t){return ct[t]||ct[0]},dt=new Map,ut=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 O(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 q(this),this.size=this.getSize(),this._plugins=function(t,e){return Array.from(et.order).filter((function(t){return!1!==e[t]})).map((function(i){var n=new(0,et.constructors[i])(t,e[i]);return e[i]=n.options,n}))}(this,this.options.plugins);var a=t.scrollLeft,o=t.scrollTop;t.scrollLeft=t.scrollTop=0,this.setPosition(a,o,{withoutCallbacks:!0});var r=window.ResizeObserver;"function"==typeof r&&(this._observer=new r((function(){i.update()})),this._observer.observe(n)),dt.set(t,this),requestAnimationFrame((function(){i._init()}))}return Object.defineProperty(t.prototype,"parent",{get:function(){for(var t=this.containerEl.parentElement;t;){var e=dt.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,n=getComputedStyle(e),a=["paddingTop","paddingBottom","paddingLeft","paddingRight"].map((function(t){return n[t]?parseFloat(n[t]):0})),o=a[0]+a[1],r=a[2]+a[3];return{container:{width:e.clientWidth,height:e.clientHeight},content:{width:i.offsetWidth-i.clientWidth+i.scrollWidth+r,height:i.offsetHeight-i.clientHeight+i.scrollHeight+o}}}(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(),a={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=a,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(),a=Math.max(i.top,n.top),o=Math.max(i.left,n.left),r=Math.min(i.right,n.right);return a<Math.min(i.bottom,n.bottom)&&o<r}(this,t)}
47,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 a=function(t,e,i){var n=t.options,a=t.offset,r=t.limit,s=t.track,l=t.contentEl;return n.renderByPixels&&(e=Math.round(e),i=Math.round(i)),e=k(e,0,r.x),i=k(i,0,r.y),e!==a.x&&s.xAxis.show(),i!==a.y&&s.yAxis.show(),n.alwaysShowTracks||s.autoHideOnIdle(),e===a.x&&i===a.y?null:(a.x=e,a.y=i,Y(l,{"-transform":"translate3d("+-e+"px, "+-i+"px, 0)"}),s.update(),{offset:o({},a),limit:o({},r)})}(this,t,e);a&&!i.withoutCallbacks&&this._listeners.forEach((function(t){t.call(n,a)}))},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,a){void 0===n&&(n=0);var o=void 0===a?{}:a,r=o.easing,s=void 0===r?Z:r,l=o.callback,c=t.options,h=t.offset,d=t.limit;c.renderByPixels&&(e=Math.round(e),i=Math.round(i));var u=h.x,p=h.y,f=k(e,0,d.x)-u,g=k(i,0,d.y)-p,m=Date.now();cancelAnimationFrame(U.get(t)),function e(){var i=Date.now()-m,a=n?s(Math.min(i/n,1)):1;if(t.setPosition(u+f*a,p+g*a),i>=n)"function"==typeof l&&l.call(t);else{var o=requestAnimationFrame(e);U.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,a=n.alignToTop,o=void 0===a||a,r=n.onlyScrollIfNeeded,s=void 0!==r&&r,l=n.offsetTop,c=void 0===l?0:l,h=n.offsetLeft,d=void 0===h?0:h,u=n.offsetBottom,p=void 0===u?0:u,f=t.containerEl,g=t.bounding,m=t.offset,v=t.limit;if(e&&f.contains(e)){var b=e.getBoundingClientRect();if(!s||!t.isVisible(e)){var y=o?b.top-g.top-c:b.bottom-g.bottom+p;t.setMomentum(b.left-g.left-d,k(y,-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 a=this._plugins.reduce((function(t,e){return e.transformDelta(t,i)||t}),{x:t,y:e}),o=!this._shouldPropagateMomentum(a.x,a.y);o&&this.addMomentum(a.x,a.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=z.get(t);e&&(e.forEach((function(t){var e=t.elem,i=t.eventName,n=t.handler;e.removeEventListener(i,n,N())})),z.delete(t))}(this),this._listeners.clear(),this.setMomentum(0,0),cancelAnimationFrame(this._renderID),this._observer&&this._observer.disconnect(),dt.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,a=this.limit;if(!i.continuousScrolling)return!1;0===a.x&&0===a.y&&this._updateDebounced();var o=k(t+n.x,0,a.x),r=k(e+n.y,0,a.y),s=!0;return(s=(s=s&&o===n.x)&&r===n.y)&&(n.x===a.x||0===n.x||n.y===a.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,a=i[t],o=n[t];if(Math.abs(o)<=.1)return{momentum:0,position:a+o};var r=o*(1-e.damping);return e.renderByPixels&&(r|=0),{momentum:r,position:a+o-r}},r([M(100,{leading:!0})],t.prototype,"_updateDebounced",null),t}(),pt="smooth-scrollbar-style",ft=!1;function gt(){if(!ft&&"undefined"!=typeof window){var t=document.createElement("style");t.id=pt,t.textContent="\n[data-scrollbar] {\n display: block;\n position: relative;\n}\n\n.scroll-content {\n display: flow-root;\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;
47\n -ms-user-select: none;\n user-select: none;\n -webkit-transition: opacity 0.5s 0.5s ease-out;\n transition: opacity 0.5s 0.5s ease-out;\n}\n.scrollbar-track.show,\n.scrollbar-track:hover {\n opacity: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n}\n\n.scrollbar-track-x {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n}\n.scrollbar-track-y {\n top: 0;\n right: 0;\n width: 8px;\n height: 100%;\n}\n.scrollbar-thumb {\n position: absolute;\n top: 0;\n left: 0;\n width: 8px;\n height: 8px;\n background: rgba(0, 0, 0, .5);\n border-radius: 4px;\n}\n",document.head&&document.head.appendChild(t),ft=!0}}i.d(e,"ScrollbarPlugin",(function(){return tt}));var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return function(t,e){function i(){this.constructor=t}a(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(),dt.has(t)?dt.get(t):new ut(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 dt.has(t)},e.get=function(t){return dt.get(t)},e.getAll=function(){return Array.from(dt.values())},e.destroy=function(t){var e=dt.get(t);e&&e.destroy()},e.destroyAll=function(){dt.forEach((function(t){t.destroy()}))},e.use=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach((function(t){var e=t.pluginName;if(!e)throw new TypeError("plugin name is required");et.order.add(e),et.constructors[e]=t}))}.apply(void 0,t)},e.attachStyle=function(){return gt()},e.detachStyle=function(){return function(){if(ft&&"undefined"!=typeof window){var t=document.getElementById(pt);t&&t.parentNode&&(t.parentNode.removeChild(t),ft=!1)}}()},e.version="8.7.4",e.ScrollbarPlugin=tt,e}(ut);e.default=mt}]).default})), 48/*! 49 DataTables 1.10.18 50 ©2008-2018 SpryMedia Ltd - datatables.net/license 51*/ 52function(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 a(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]&&a(e[t]))})),e._hungarianMap=o}function o(e,i,r){var s;e._hungarianMap||a(e),t.each(i,(function(a){(s=e._hungarianMap[a])===n||!r&&i[s]!==n||("o"===s.charAt(0)?(i[s]||(i[s]={}),t.extend(!0,i[s],i[a]),o(e[s],i[s],r)):i[s]=i[a])}))}function r(t){var e=$t.defaults.oLanguage,i=e.sDecimal;if(i&&Bt(i),t){var n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Pt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Pt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&i!==t&&Bt(t)}}function s(t){if(ce(t,"ordering","bSort"),ce(t,"orderMulti","bSortMulti"),ce(t,"orderClasses","bSortClasses"),ce(t,"orderCellsTop","bSortCellsTop"),ce(t,"order","aaSorting"),ce(t,"orderFixed","aaSortingFixed"),ce(t,"paging","bPaginate"),ce(t,"pagingType","sPaginationType"),ce(t,"pageLength","iDisplayLength"),ce(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($t.models.oSearch,t[e])}function l(e){ce(e,"orderable","bSortable"),ce(e,"orderData","aDataSort"),ce(e,"orderSequence","asSorting"),ce(e,"orderDataType","sortDataType");var i=e.aDataSort;"number"==typeof i&&!t.isArray(i)&&(e.aDataSort=[i])}
52function c(i){if(!$t.__browser){var n={};$t.__browser=n;var a=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=a.children(),r=o.children();n.barWidth=o[0].offsetWidth-o[0].clientWidth,n.bScrollOversize=100===r[0].offsetWidth&&100!==o[0].clientWidth,n.bScrollbarLeft=1!==Math.round(r.offset().left),n.bBounding=!!a[0].getBoundingClientRect().width,a.remove()}t.extend(i.oBrowser,$t.__browser),i.oScroll.iBarWidth=$t.__browser.barWidth}function h(t,e,i,a,o,r){var s,l=!1;for(i!==n&&(s=i,l=!0);a!==o;)t.hasOwnProperty(a)&&(s=l?e(s,t[a],a,t):t[a],l=!0,a+=r);return s}function d(e,n){var a=$t.defaults.column,o=e.aoColumns.length;a=t.extend({},$t.models.oColumn,a,{nTh:n||i.createElement("th"),sTitle:a.sTitle?a.sTitle:n?n.innerHTML:"",aDataSort:a.aDataSort?a.aDataSort:[o],mData:a.mData?a.mData:o,idx:o});e.aoColumns.push(a),(a=e.aoPreSearchCols)[o]=t.extend({},$t.models.oSearch,a[o]),u(e,o,t(n).data())}function u(e,i,a){i=e.aoColumns[i];var r=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])}a!==n&&null!==a&&(l(a),o($t.defaults.column,a),a.mDataProp!==n&&!a.mData&&(a.mData=a.mDataProp),a.sType&&(i._sManualType=a.sType),a.className&&!a.sClass&&(a.sClass=a.className),a.sClass&&s.addClass(a.sClass),t.extend(i,a),Pt(i,a,"sWidth","sWidthOrig"),a.iDataSort!==n&&(i.aDataSort=[a.iDataSort]),Pt(i,a,"aDataSort"));var h=i.mData,d=k(h),u=i.mRender?k(i.mRender):null;a=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=t.isPlainObject(h)&&(a(h.sort)||a(h.type)||a(h.filter)),i._setter=null,i.fnGetData=function(t,e,i){var a=d(t,e,n,i);return u&&e?u(a,e,t,i):a},i.fnSetData=function(t,e,i){return A(h)(t,e,i)},"number"!=typeof h&&(e._rowReadObject=!0),e.oFeatures.bSort||(i.bSortable=!1,s.addClass(r.sSortableNone)),e=-1!==t.inArray("asc",i.asSorting),a=-1!==t.inArray("desc",i.asSorting),i.bSortable&&(e||a)?e&&!a?(i.sSortingClass=r.sSortableAsc,i.sSortingClassJUI=r.sSortJUIAscAllowed):!e&&a?(i.sSortingClass=r.sSortableDesc,i.sSortingClassJUI=r.sSortJUIDescAllowed):(i.sSortingClass=r.sSortable,i.sSortingClassJUI=r.sSortJUI):(i.sSortingClass=r.sSortableNone,i.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;gt(t);for(var i=0,n=e.length;i<n;i++)e[i].nTh.style.width=e[i].sWidth}(""!==(e=t.oScroll).sY||""!==e.sX)&&pt(t),zt(t,null,"column-sizing",[t])}function f(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;
52return 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 b(t){var e,i,a,o,r,s,l,c,h,d=t.aoColumns,u=t.aoData,p=$t.ext.type.detect;for(e=0,i=d.length;e<i;e++)if(h=[],!(l=d[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(a=0,o=p.length;a<o;a++){for(r=0,s=u.length;r<s&&(h[r]===n&&(h[r]=_(t,r,e,"type")),(c=p[a](h[r],t))||a===p.length-1)&&"html"!==c;r++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function y(e,i,a,o){var r,s,l,c,h,u,p=e.aoColumns;if(i)for(r=i.length-1;0<=r;r--){var f=(u=i[r]).targets!==n?u.targets:u.aTargets;for(t.isArray(f)||(f=[f]),s=0,l=f.length;s<l;s++)if("number"==typeof f[s]&&0<=f[s]){for(;p.length<=f[s];)d(e);o(f[s],u)}else if("number"==typeof f[s]&&0>f[s])o(p.length+f[s],u);else if("string"==typeof f[s])for(c=0,h=p.length;c<h;c++)("_all"==f[s]||t(p[c].nTh).hasClass(f[s]))&&o(c,u)}if(a)for(r=0,e=a.length;r<e;r++)o(r,a[r])}function x(e,i,a,o){var r=e.aoData.length,s=t.extend(!0,{},$t.models.oRow,{src:a?"dom":"data",idx:r});s._aData=i,e.aoData.push(s);for(var l=e.aoColumns,c=0,h=l.length;c<h;c++)l[c].sType=null;return e.aiDisplayMaster.push(r),(i=e.rowIdFn(i))!==n&&(e.aIds[i]=s),(a||!e.oFeatures.bDeferRender)&&M(e,r,a,o),r}function w(e,i){var n;return i instanceof t||(i=t(i)),i.map((function(t,i){return n=P(e,i),x(e,n.data,i,n.cells)}))}function _(t,e,i,a){var o=t.iDraw,r=t.aoColumns[i],s=t.aoData[e]._aData,l=r.sDefaultContent,c=r.fnGetData(s,a,{settings:t,row:e,col:i});if(c===n)return t.iDrawError!=o&&null===l&&(Dt(t,0,"Requested unknown parameter "+("function"==typeof r.mData?"{function}":"'"+r.mData+"'")+" for row "+e+", column "+i,4),t.iDrawError=o),l;if(c!==s&&null!==c||null===l||a===n){if("function"==typeof c)return c.call(s)}else c=l;return null===c&&"display"==a?"":c}function C(t,e,i,n){t.aoColumns[i].fnSetData(t.aoData[e]._aData,n,{settings:t,row:e,col:i})}function S(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function k(e){if(t.isPlainObject(e)){var i={};return t.each(e,(function(t,e){e&&(i[t]=k(e))})),function(t,e,a,o){var r=i[e]||i._;return r!==n?r(t,e,a,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,i,n,a){return e(t,i,n,a)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var a=function(e,i,o){var r,s;if(""!==o)for(var l=0,c=(s=S(o)).length;l<c;l++){if(o=s[l].match(he),r=s[l].match(de),o){if(s[l]=s[l].replace(he,""),""!==s[l]&&(e=e[s[l]]),r=[],s.splice(0,l+1),s=s.join("."),t.isArray(e))for(l=0,c=e.length;l<c;l++)r.push(a(e[l],i,s));e=""===(e=o[0].substring(1,o[0].length-1))?r:r.join(e);break}if(r)s[l]=s[l].replace(de,""),e=e[s[l]]();else{if(null===e||e[s[l]]===n)return n;e=e[s[l]]}}return e};return function(t,i){return a(t,i,e)}}return function(t){return t[e]}}function A(e){if(t.isPlainObject(e))return A(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(e,a,o){var r;r=(o=S(o))[o.length-1];for(var s,l,c=0,h=o.length-1;c<h;c++){if(s=o[c].match(he),l=o[c].match(de),s){if(o[c]=o[c].replace(he,""),e[o[c]]=[],(r=o.slice()).splice(0,c+1),s=r.join("."),t.isArray(a))for(l=0,h=a.length;l<h;l++)i(r={},a[l],s),e[o[c]].push(r);else e[o[c]]=a;return}l&&(o[c]=o[c].replace(de,""),e=e[o[c]](a)),null!==e[o[c]]&&e[o[c]]!==n||(e[o[c]]={}),e=e[o[c]]}r.match(de)?e[r.replace(de,"")](a):e[r.replace(he,"")]=a};return function(t,n){return i(t,n,e)}}return function(t,i){t[e]=i}}function T(t){return ae(t.aoData,"_aData")}function E(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function L(t,e,i){for(var a=-1,o=0,r=t.length;o<r;o++)t[o]==e?a=o:t[o]>e&&t[o]--;-1!=a&&i===n&&t.splice(a,1)}function D(t,e,i,a){var o,r=t.aoData[e],s=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=_(t,e,n,"display")};if("dom"!==i&&(i&&"auto"!==i||"dom"!==r.src)){var l=r.anCells;if(l)if(a!==n)s(l[a],a);else for(i=0,o=l.length;i<o;i++)s(l[i],i)}else r._aData=P(t,r,a,a===n?n:r._aData).data;if(r._aSortData=null,r._aFilterData=null,s=t.aoColumns,a!==n)s[a].sType=null;else{for(i=0,o=s.length;i<o;i++)s[i].sType=null;I(t,r)}}function P(e,i,a,o){var r,s,l,c=[],h=i.firstChild,d=0,u=e.aoColumns,p=e._rowReadObject,f=(o=o!==n?o:p?{}:[],function(t,e){if("string"==typeof t){var i=t.indexOf("@");-1!==i&&(i=t.substring(i+1),A(t)(o,e.getAttribute(i)))}}),g=function(e){a!==n&&a!==d||(s=u[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc?(A(s.mData._)(o,l),f(s.mData.sort,e),f(s.mData.type,e),f(s.mData.filter,e)):p?(s._setter||(s._setter=A(s.mData)),s._setter(o,l)):o[d]=l),d++};if(h)for(;h;)"TD"!=(r=h.nodeName.toUpperCase())&&"TH"!=r||(g(h),c.push(h)),h=h.nextSibling;else for(h=0,r=(c=i.anCells).length;h<r;h++)g(c[h]);return(i=i.firstChild?i:i.nTr)&&(i=i.getAttribute("id"))&&A(e.rowId)(o,i),{data:o,cells:c}}function M(e,n,a,o){var r,s,l,c,h,d=e.aoData[n],u=d._aData,p=[];if(null===d.nTr){for(r=a||i.createElement("tr"),d.nTr=r,d.anCells=p,r._DT_RowIndex=n,I(e,d),c=0,h=e.aoColumns.length;c<h;c++)l=e.aoColumns[c],(s=a?o[c]:i.createElement(l.sCellType))._DT_CellIndex={row:n,column:c}
52,p.push(s),a&&!l.mRender&&l.mData===c||t.isPlainObject(l.mData)&&l.mData._===c+".display"||(s.innerHTML=_(e,n,c,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!a?r.appendChild(s):!l.bVisible&&a&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,s,_(e,n,c),u,n,c);zt(e,"aoRowCreatedCallback",null,[r,u,n,p])}d.nTr.setAttribute("role","row")}function I(e,i){var n=i.nTr,a=i._aData;if(n){var o=e.rowIdFn(a);o&&(n.id=o),a.DT_RowClass&&(o=a.DT_RowClass.split(" "),i.__rowc=i.__rowc?le(i.__rowc.concat(o)):o,t(n).removeClass(i.__rowc.join(" ")).addClass(a.DT_RowClass)),a.DT_RowAttr&&t(n).attr(a.DT_RowAttr),a.DT_RowData&&t(n).data(a.DT_RowData)}}function O(e){var i,n,a,o,r,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,h=e.oClasses,d=e.aoColumns;for(c&&(o=t("<tr/>").appendTo(s)),i=0,n=d.length;i<n;i++)r=d[i],a=t(r.nTh).addClass(r.sClass),c&&a.appendTo(o),e.oFeatures.bSort&&(a.addClass(r.sSortingClass),!1!==r.bSortable&&(a.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),St(e,r.nTh,i))),r.sTitle!=a[0].innerHTML&&a.html(r.sTitle),Rt(e,"header")(e,a,r,h);if(c&&H(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(h.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(h.sFooterTH),null!==l)for(i=0,n=(e=e.aoFooter[0]).length;i<n;i++)(r=d[i]).nTf=e[i].cell,r.sClass&&t(r.nTf).addClass(r.sClass)}function z(e,i,a){var o,r,s,l,c=[],h=[],d=e.aoColumns.length;if(i){for(a===n&&(a=!1),o=0,r=i.length;o<r;o++){for(c[o]=i[o].slice(),c[o].nTr=i[o].nTr,s=d-1;0<=s;s--)!e.aoColumns[s].bVisible&&!a&&c[o].splice(s,1);h.push([])}for(o=0,r=c.length;o<r;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=d=1,h[o][s]===n){for(e.appendChild(c[o][s].cell),h[o][s]=1;c[o+d]!==n&&c[o][s].cell==c[o+d][s].cell;)h[o+d][s]=1,d++;for(;c[o][s+l]!==n&&c[o][s].cell==c[o][s+l].cell;){for(a=0;a<d;a++)h[o+a][s+l]=1;l++}t(c[o][s].cell).attr("rowspan",d).attr("colspan",l)}}}}function N(e){var i=zt(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,i))dt(e,!1);else{i=[];var a=0,o=e.asStripeClasses,r=o.length,s=e.oLanguage,l=e.iInitDisplayStart,c="ssp"==Ft(e),h=e.aiDisplay;e.bDrawing=!0,l!==n&&-1!==l&&(e._iDisplayStart=c?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1);l=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,dt(e,!1);else if(c){if(!e.bDestroying&&!Y(e))return}else e.iDraw++;if(0!==h.length)for(s=c?e.aoData.length:d,c=c?0:l;c<s;c++){var u=h[c],p=e.aoData[u];null===p.nTr&&M(e,u);var f=p.nTr;if(0!==r){var g=o[a%r];p._sRowStripe!=g&&(t(f).removeClass(p._sRowStripe).addClass(g),p._sRowStripe=g)}zt(e,"aoRowCallback",null,[f,p._aData,a,c,u]),i.push(f),a++}else a=s.sZeroRecords,1==e.iDraw&&"ajax"==Ft(e)?a=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(a=s.sEmptyTable),i[0]=t("<tr/>",{class:r?o[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(a))[0];zt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],T(e),l,d,h]),zt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],T(e),l,d,h]),(o=t(e.nTBody)).children().detach(),o.append(t(i)),zt(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&&wt(t),n?G(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,N(t),t._drawHold=!1}function F(e){var i=e.oClasses,n=t(e.nTable),a=(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 r,s,l,c,h,d,u=e.sDom.split(""),p=0;p<u.length;p++){if(r=null,"<"==(s=u[p])){if(l=t("<div/>")[0],"'"==(c=u[p+1])||'"'==c){for(h="",d=2;u[p+d]!=c;)h+=u[p+d],d++;"H"==h?h=i.sJUIHeader:"F"==h&&(h=i.sJUIFooter),-1!=h.indexOf(".")?(c=h.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==h.charAt(0)?l.id=h.substr(1,h.length-1):l.className=h,p+=d}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&a.bPaginate&&a.bLengthChange)r=st(e);else if("f"==s&&a.bFilter)r=$(e);else if("r"==s&&a.bProcessing)r=ht(e);else if("t"==s)r=ut(e);else if("i"==s&&a.bInfo)r=et(e);else if("p"==s&&a.bPaginate)r=lt(e);else if(0!==$t.ext.feature.length)for(d=0,c=(l=$t.ext.feature).length;d<c;d++)if(s==l[d].cFeature){r=l[d].fnInit(e);break}r&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(r),o.append(r))}n.replaceWith(o),e.nHolding=null}function H(e,i){var n,a,o,r,s,l,c,h,d,u,p=t(i).children("tr");for(e.splice(0,e.length),o=0,l=p.length;o<l;
52o++)e.push([]);for(o=0,l=p.length;o<l;o++)for(a=(n=p[o]).firstChild;a;){if("TD"==a.nodeName.toUpperCase()||"TH"==a.nodeName.toUpperCase()){for(h=(h=1*a.getAttribute("colspan"))&&0!==h&&1!==h?h:1,d=(d=1*a.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,r=0,s=e[o];s[r];)r++;for(c=r,u=1===h,s=0;s<h;s++)for(r=0;r<d;r++)e[o+r][c+s]={cell:a,unique:u},e[o+r].nTr=n}a=a.nextSibling}}function B(t,e,i){var n=[];i||(i=t.aoHeader,e&&H(i=[],e));e=0;for(var a=i.length;e<a;e++)for(var o=0,r=i[e].length;o<r;o++)!i[e][o].unique||n[o]&&t.bSortCellsTop||(n[o]=i[e][o].cell);return n}function j(e,i,n){if(zt(e,"aoServerParams","serverParams",[i]),i&&t.isArray(i)){var a={},o=/(.*?)\[\]$/;t.each(i,(function(t,e){var i=e.name.match(o);i?(i=i[0],a[i]||(a[i]=[]),a[i].push(e.value)):a[e.name]=e.value})),i=a}var r,s=e.ajax,l=e.oInstance,c=function(t){zt(e,null,"xhr",[e,t,e.jqXHR]),n(t)};if(t.isPlainObject(s)&&s.data){var h="function"==typeof(r=s.data)?r(i,e):r;i="function"==typeof r&&h?h:t.extend(!0,i,h);delete s.data}h={data:i,success:function(t){var i=t.error||t.sError;i&&Dt(e,0,i),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(i,n){var a=zt(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,a)&&("parsererror"==n?Dt(e,0,"Invalid JSON response",1):4===i.readyState&&Dt(e,0,"Ajax error",7)),dt(e,!1)}},e.oAjaxData=i,zt(e,null,"preXhr",[e,i]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(i,(function(t,e){return{name:e,value:t}})),c,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(h,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(l,i,c,e):(e.jqXHR=t.ajax(t.extend(h,s)),s.data=r)}function Y(t){return!t.bAjaxDataGet||(t.iDraw++,dt(t,!0),j(t,W(t),(function(e){X(t,e)})),!1)}function W(e){var i,n,a,o,r=e.aoColumns,s=r.length,l=e.oFeatures,c=e.oPreviousSearch,h=e.aoPreSearchCols,d=[],u=xt(e);i=e._iDisplayStart,n=!1!==l.bPaginate?e._iDisplayLength:-1;var p=function(t,e){d.push({name:t,value:e})};p("sEcho",e.iDraw),p("iColumns",s),p("sColumns",ae(r,"sName").join(",")),p("iDisplayStart",i),p("iDisplayLength",n);var f={draw:e.iDraw,columns:[],order:[],start:i,length:n,search:{value:c.sSearch,regex:c.bRegex}};for(i=0;i<s;i++)a=r[i],o=h[i],n="function"==typeof a.mData?"function":a.mData,f.columns.push({data:n,name:a.sName,searchable:a.bSearchable,orderable:a.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),p("mDataProp_"+i,n),l.bFilter&&(p("sSearch_"+i,o.sSearch),p("bRegex_"+i,o.bRegex),p("bSearchable_"+i,a.bSearchable)),l.bSort&&p("bSortable_"+i,a.bSortable);return l.bFilter&&(p("sSearch",c.sSearch),p("bRegex",c.bRegex)),l.bSort&&(t.each(u,(function(t,e){f.order.push({column:e.col,dir:e.dir}),p("iSortCol_"+t,e.col),p("sSortDir_"+t,e.dir)})),p("iSortingCols",u.length)),null===(r=$t.ext.legacy.ajax)?e.sAjaxSource?d:f:r?d:f}function X(t,e){var i=V(t,e),a=e.sEcho!==n?e.sEcho:e.draw,o=e.iTotalRecords!==n?e.iTotalRecords:e.recordsTotal,r=e.iTotalDisplayRecords!==n?e.iTotalDisplayRecords:e.recordsFiltered;if(a){if(1*a<t.iDraw)return;t.iDraw=1*a}for(E(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(r,10),a=0,o=i.length;a<o;a++)x(t,i[a]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,N(t),t._bInitComplete||ot(t,e),t.bAjaxDataGet=!0,dt(t,!1)}function V(e,i){var a=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==n?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===a?i.aaData||i[a]:""!==a?k(a)(i):i}function $(e){var n=e.oClasses,a=e.sTableId,o=e.oLanguage,r=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+n.sFilterInput+'"/>',c=(c=o.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,h=(n=t("<div/>",{id:s.f?null:a+"_filter",class:n.sFilter}).append(t("<label/>").append(c)),s=function(){var t=this.value?this.value:"";t!=r.sSearch&&(G(e,{sSearch:t,bRegex:r.bRegex,bSmart:r.bSmart,bCaseInsensitive:r.bCaseInsensitive}),e._iDisplayStart=0,N(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===Ft(e)?400:0,t("input",n).val(r.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?me(s,l):s).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",a));return t(e.nTable).on("search.dt.DT",(function(t,n){if(e===n)try{h[0]!==i.activeElement&&h.val(r.sSearch)}catch(t){}})),n[0]}function G(t,e,i){var a=t.oPreviousSearch,o=t.aoPreSearchCols,r=function(t){a.sSearch=t.sSearch,a.bRegex=t.bRegex,a.bSmart=t.bSmart,a.bCaseInsensitive=t.bCaseInsensitive};
52if(b(t),"ssp"!=Ft(t)){for(Z(t,e.sSearch,i,e.bEscapeRegex!==n?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),r(e),e=0;e<o.length;e++)U(t,o[e].sSearch,e,o[e].bEscapeRegex!==n?!o[e].bEscapeRegex:o[e].bRegex,o[e].bSmart,o[e].bCaseInsensitive);q(t)}else r(e);t.bFiltered=!0,zt(t,null,"search",[t])}function q(e){for(var i,n,a=$t.ext.search,o=e.aiDisplay,r=0,s=a.length;r<s;r++){for(var l=[],c=0,h=o.length;c<h;c++)n=o[c],i=e.aoData[n],a[r](e,i._aFilterData,n,i._aData,c)&&l.push(n);o.length=0,t.merge(o,l)}}function U(t,e,i,n,a,o){if(""!==e){var r=[],s=t.aiDisplay;for(n=K(e,n,a,o),a=0;a<s.length;a++)e=t.aoData[s[a]]._aFilterData[i],n.test(e)&&r.push(s[a]);t.aiDisplay=r}}function Z(t,e,i,n,a,o){n=K(e,n,a,o),o=t.oPreviousSearch.sSearch;var r,s=t.aiDisplayMaster;a=[];if(0!==$t.ext.search.length&&(i=!0),r=J(t),0>=e.length)t.aiDisplay=s.slice();else{for((r||i||o.length>e.length||0!==e.indexOf(o)||t.bSorted)&&(t.aiDisplay=s.slice()),e=t.aiDisplay,i=0;i<e.length;i++)n.test(t.aoData[e[i]]._sFilterRow)&&a.push(e[i]);t.aiDisplay=a}}function K(e,i,n,a){return e=i?e:ue(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,a?"i":"")}function J(t){var e,i,n,a,o,r,s,l,c=t.aoColumns,h=$t.ext.type.search;for(e=!1,i=0,a=t.aoData.length;i<a;i++)if(!(l=t.aoData[i])._aFilterData){for(r=[],n=0,o=c.length;n<o;n++)(e=c[n]).bSearchable?(s=_(t,i,n,"filter"),h[e.sType]&&(s=h[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(pe.innerHTML=s,s=fe?pe.textContent:pe.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),r.push(s);l._aFilterData=r,l._sFilterRow=r.join(" "),e=!0}return e}function Q(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var i=e.sTableId,n=e.aanFeatures.i,a=t("<div/>",{class:e.oClasses.sInfo,id:n?null:i+"_info"});return n||(e.aoDrawCallback.push({fn:it,sName:"information"}),a.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",i+"_info")),a[0]}function it(e){var i=e.aanFeatures.i;if(0!==i.length){var n=e.oLanguage,a=e._iDisplayStart+1,o=e.fnDisplayEnd(),r=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?n.sInfo:n.sInfoEmpty;s!==r&&(l+=" "+n.sInfoFiltered),l=nt(e,l+=n.sInfoPostFix),null!==(n=n.fnInfoCallback)&&(l=n.call(e.oInstance,e,a,o,r,s,l)),t(i).html(l)}}function nt(t,e){var i=t.fnFormatNumber,n=t._iDisplayStart+1,a=t._iDisplayLength,o=t.fnRecordsDisplay(),r=-1===a;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,r?1:Math.ceil(n/a))).replace(/_PAGES_/g,i.call(t,r?1:Math.ceil(o/a)))}function at(t){var e,i,n,a=t.iInitDisplayStart,o=t.aoColumns;i=t.oFeatures;var r=t.bDeferLoading;if(t.bInitialised){for(F(t),O(t),z(t,t.aoHeader),z(t,t.aoFooter),dt(t,!0),i.bAutoWidth&>(t),e=0,i=o.length;e<i;e++)(n=o[e]).sWidth&&(n.nTh.style.width=yt(n.sWidth));zt(t,null,"preInit",[t]),R(t),("ssp"!=(o=Ft(t))||r)&&("ajax"==o?j(t,[],(function(i){var n=V(t,i);for(e=0;e<n.length;e++)x(t,n[e]);t.iInitDisplayStart=a,R(t),dt(t,!1),ot(t,i)})):(dt(t,!1),ot(t)))}else setTimeout((function(){at(t)}),200)}function ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),zt(t,null,"plugin-init",[t,e]),zt(t,"aoInitComplete","init",[t,e])}function rt(t,e){var i=parseInt(e,10);t._iDisplayLength=i,Nt(t),zt(t,null,"length",[t,i])}function st(e){for(var i=e.oClasses,n=e.sTableId,a=e.aLengthMenu,o=(r=t.isArray(a[0]))?a[0]:a,r=(a=r?a[1]:a,t("<select/>",{name:n+"_length","aria-controls":n,class:i.sLengthSelect})),s=0,l=o.length;s<l;s++)r[0][s]=new Option("number"==typeof a[s]?e.fnFormatNumber(a[s]):a[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_",r[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(){rt(e,t(this).val()),N(e)})),t(e.nTable).on("length.dt.DT",(function(i,n,a){e===n&&t("select",c).val(a)})),c[0]}function lt(e){var i=e.sPaginationType,n=$t.ext.pager[i],a="function"==typeof n,o=function(t){N(t)},r=(i=t("<div/>
52").addClass(e.oClasses.sPaging+i)[0],e.aanFeatures);return a||n.fnInit(e,i,o),r.p||(i.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(a){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=r.p.length;c<e;c++)Rt(t,"pageButton")(t,r.p[c],c,l,i,s)}else n.fnUpdate(t,o)},sName:"pagination"})),i}function ct(t,e,i){var n=t._iDisplayStart,a=t._iDisplayLength,o=t.fnRecordsDisplay();return 0===o||-1===a?n=0:"number"==typeof e?(n=e*a)>o&&(n=0):"first"==e?n=0:"previous"==e?0>(n=0<=a?n-a:0)&&(n=0):"next"==e?n+a<o&&(n+=a):"last"==e?n=Math.floor((o-1)/a)*a:Dt(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==n,t._iDisplayStart=n,e&&(zt(t,null,"page",[t]),i&&N(t)),e}function ht(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function dt(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),zt(e,null,"processing",[e,i])}function ut(e){(d=t(e.nTable)).attr("role","grid");var i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;var n=i.sX,a=i.sY,o=e.oClasses,r=d.children("caption"),s=r.length?r[0]._captionSide:null,l=t(d[0].cloneNode(!1)),c=t(d[0].cloneNode(!1)),h=d.children("tfoot");h.length||(h=null),l=t("<div/>",{class:o.sScrollWrapper}).append(t("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?n?yt(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?r:null).append(d.children("thead"))))).append(t("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:n?yt(n):null}).append(d)),h&&l.append(t("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:n?n?yt(n):null:"100%"}).append(t("<div/>",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?r:null).append(d.children("tfoot")))));var d,u=(d=l.children())[0],p=(o=d[1],h?d[2]:null);return n&&t(o).on("scroll.DT",(function(){var t=this.scrollLeft;u.scrollLeft=t,h&&(p.scrollLeft=t)})),t(o).css(a&&i.bCollapse?"max-height":"height",a),e.nScrollHead=u,e.nScrollBody=o,e.nScrollFoot=p,e.aoDrawCallback.push({fn:pt,sName:"scrolling"}),l[0]}function pt(e){var i,a,o,r,s,l=(d=e.oScroll).sX,c=d.sXInner,h=d.sY,d=d.iBarWidth,u=t(e.nScrollHead),g=u[0].style,m=(b=u.children("div"))[0].style,v=b.children("table"),b=e.nScrollBody,y=t(b),x=b.style,w=t(e.nScrollFoot).children("div"),_=w.children("table"),C=t(e.nTHead),S=t(e.nTable),k=S[0],A=k.style,T=e.nTFoot?t(e.nTFoot):null,E=e.oBrowser,L=E.bScrollOversize,D=ae(e.aoColumns,"nTh"),P=[],M=[],I=[],O=[],z=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};a=b.scrollHeight>b.clientHeight,e.scrollBarVis!==a&&e.scrollBarVis!==n?(e.scrollBarVis=a,p(e)):(e.scrollBarVis=a,S.children("thead, tfoot").remove(),T&&(o=T.clone().prependTo(S),i=T.find("tr"),o=o.find("tr")),r=C.clone().prependTo(S),C=C.find("tr"),a=r.find("tr"),r.find("th, td").removeAttr("tabindex"),l||(x.width="100%",u[0].style.width="100%"),t.each(B(e,r),(function(t,i){s=f(e,t),i.style.width=e.aoColumns[s].sWidth})),T&&ft((function(t){t.style.width=""}),o),u=S.outerWidth(),""===l?(A.width="100%",L&&(S.find("tbody").height()>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=yt(S.outerWidth()-d)),u=S.outerWidth()):""!==c&&(A.width=yt(c),u=S.outerWidth()),ft(z,a),ft((function(e){I.push(e.innerHTML),P.push(yt(t(e).css("width")))}),a),ft((function(e,i){-1!==t.inArray(e,D)&&(e.style.width=P[i])}),C),t(a).height(0),T&&(ft(z,o),ft((function(e){O.push(e.innerHTML),M.push(yt(t(e).css("width")))}),o),ft((function(t,e){t.style.width=M[e]}),i),t(o).height(0)),ft((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=P[e]}),a),T&&ft((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+O[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=M[e]}),o),S.outerWidth()<u?(i=b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y")?u+d:u,L&&(b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=yt(i-d)),(""===l||""!==c)&&Dt(e,1,"Possible column misalignment",6)):i="100%",x.width=yt(i),g.width=yt(i),T&&(e.nScrollFoot.style.width=yt(i)),!h&&L&&(x.height=yt(k.offsetHeight+d)),l=S.outerWidth(),v[0].style.width=yt(l),m.width=yt(l),c=S.height()>b.clientHeight||"scroll"==y.css("overflow-y"),m[h="padding"+(E.bScrollbarLeft?"Left":"Right")]=c?d+"px":"0px",T&&(_[0].style.width=yt(l),w[0].style.width=yt(l),w[0].style[h]=c?d+"px":"0px"),S.children("colgroup").insertBefore(S.children("thead")),y.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(b.scrollTop=0))}function ft(t,e,i){for(var n,a,o=0,r=0,s=e.length;r<s;){for(n=e[r].firstChild,a=i?i[r].firstChild:null;n;)1===n.nodeType&&(i?t(n,a,o):t(n,o),o++),n=n.nextSibling,a=i?a.nextSibling:null;r++}}function gt(i){var n,a,o=i.nTable,r=i.aoColumns,s=(w=i.oScroll).sY,l=w.sX,c=w.sXInner,h=r.length,d=v(i,"bVisible"),u=t("th",i.nTHead),g=o.getAttribute("width"),b=o.parentNode,
52y=!1,x=i.oBrowser,w=x.bScrollOversize;for((n=o.style.width)&&-1!==n.indexOf("%")&&(g=n),n=0;n<d.length;n++)null!==(a=r[d[n]]).sWidth&&(a.sWidth=mt(a.sWidthOrig,b),y=!0);if(w||!y&&!l&&!s&&h==m(i)&&h==u.length)for(n=0;n<h;n++)null!==(d=f(i,n))&&(r[d].sWidth=yt(u.eq(n).width()));else{(h=t(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var _=t("<tr/>").appendTo(h.find("tbody"));for(h.find("thead, tfoot").remove(),h.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),h.find("tfoot th, tfoot td").css("width",""),u=B(i,h.find("thead")[0]),n=0;n<d.length;n++)a=r[d[n]],u[n].style.width=null!==a.sWidthOrig&&""!==a.sWidthOrig?yt(a.sWidthOrig):"",a.sWidthOrig&&l&&t(u[n]).append(t("<div/>").css({width:a.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(n=0;n<d.length;n++)a=r[y=d[n]],t(vt(i,y)).clone(!1).append(a.sContentPadding).appendTo(_);for(t("[name]",h).removeAttr("name"),a=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(h).appendTo(b),l&&c?h.width(c):l?(h.css("width","auto"),h.removeAttr("width"),h.width()<b.clientWidth&&g&&h.width(b.clientWidth)):s?h.width(b.clientWidth):g&&h.width(g),n=s=0;n<d.length;n++)c=(b=t(u[n])).outerWidth()-b.width(),s+=b=x.bBounding?Math.ceil(u[n].getBoundingClientRect().width):b.outerWidth(),r[d[n]].sWidth=yt(b-c);o.style.width=yt(s),a.remove()}g&&(o.style.width=yt(g)),!g&&!l||i._reszEvt||(o=function(){t(e).on("resize.DT-"+i.sInstance,me((function(){p(i)})))},w?setTimeout(o,1e3):o(),i._reszEvt=!0)}function mt(e,n){if(!e)return 0;var a=t("<div/>").css("width",yt(e)).appendTo(n||i.body),o=a[0].offsetWidth;return a.remove(),o}function vt(e,i){var n=bt(e,i);if(0>n)return null;var a=e.aoData[n];return a.nTr?a.anCells[i]:t("<td/>").html(_(e,n,i,"display"))[0]}function bt(t,e){for(var i,n=-1,a=-1,o=0,r=t.aoData.length;o<r;o++)(i=(i=(i=_(t,o,e,"display")+"").replace(ge,"")).replace(/ /g," ")).length>n&&(n=i.length,a=o);return a}function yt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function xt(e){var i,a,o,r,s,l,c=[],h=e.aoColumns;i=e.aaSortingFixed,a=t.isPlainObject(i);var d=[];for(o=function(e){e.length&&!t.isArray(e[0])?d.push(e):t.merge(d,e)},t.isArray(i)&&o(i),a&&i.pre&&o(i.pre),o(e.aaSorting),a&&i.post&&o(i.post),e=0;e<d.length;e++)for(i=0,a=(o=h[l=d[e][0]].aDataSort).length;i<a;i++)s=h[r=o[i]].sType||"string",d[e]._idx===n&&(d[e]._idx=t.inArray(d[e][1],h[r].asSorting)),c.push({src:l,col:r,dir:d[e][1],index:d[e]._idx,type:s,formatter:$t.ext.type.order[s+"-pre"]});return c}function wt(t){var e,i,n,a,o=[],r=$t.ext.type.order,s=t.aoData,l=0,c=t.aiDisplayMaster;for(b(t),e=0,i=(a=xt(t)).length;e<i;e++)(n=a[e]).formatter&&l++,At(t,n.col);if("ssp"!=Ft(t)&&0!==a.length){for(e=0,i=c.length;e<i;e++)o[c[e]]=e;l===a.length?c.sort((function(t,e){var i,n,r,l,c=a.length,h=s[t]._aSortData,d=s[e]._aSortData;for(r=0;r<c;r++)if(0!==(i=(i=h[(l=a[r]).col])<(n=d[l.col])?-1:i>n?1:0))return"asc"===l.dir?i:-i;return(i=o[t])<(n=o[e])?-1:i>n?1:0})):c.sort((function(t,e){var i,n,l,c,h=a.length,d=s[t]._aSortData,u=s[e]._aSortData;for(l=0;l<h;l++)if(i=d[(c=a[l]).col],n=u[c.col],0!==(i=(c=r[c.type+"-"+c.dir]||r["string-"+c.dir])(i,n)))return i;return(i=o[t])<(n=o[e])?-1:i>n?1:0}))}t.bSorted=!0}function _t(t){for(var e,i,n=t.aoColumns,a=xt(t),o=(t=t.oLanguage.oAria,0),r=n.length;o<r;o++){var s=(i=n[o]).asSorting;e=i.sTitle.replace(/<.*?>/g,"");var l=i.nTh;l.removeAttribute("aria-sort"),i.bSortable&&(0<a.length&&a[0].col==o?(l.setAttribute("aria-sort","asc"==a[0].dir?"ascending":"descending"),i=s[a[0].index+1]||s[0]):i=s[0],e+="asc"===i?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function Ct(e,i,a,o){var r=e.aaSorting,s=e.aoColumns[i].asSorting,l=function(e,i){var a=e._idx;return a===n&&(a=t.inArray(e[1],s)),a+1<s.length?a+1:i?null:0};"number"==typeof r[0]&&(r=e.aaSorting=[r]),a&&e.oFeatures.bSortMulti?-1!==(a=t.inArray(i,ae(r,"0")))?(null===(i=l(r[a],!0))&&1===r.length&&(i=0),null===i?r.splice(a,1):(r[a][1]=s[i],r[a]._idx=i)):(r.push([i,s[0],0]),r[r.length-1]._idx=0):r.length&&r[0][0]==i?(i=l(r[0]),r.length=1,r[0][1]=s[i],r[0]._idx=i):(r.length=0,r.push([i,s[0]]),r[0]._idx=0),R(e),"function"==typeof o&&o(e)}function St(t,e,i,n){var a=t.aoColumns[i];It(e,{}
52,(function(e){!1!==a.bSortable&&(t.oFeatures.bProcessing?(dt(t,!0),setTimeout((function(){Ct(t,i,e.shiftKey,n),"ssp"!==Ft(t)&&dt(t,!1)}),0)):Ct(t,i,e.shiftKey,n))}))}function kt(e){var i,n,a=e.aLastSort,o=e.oClasses.sSortColumn,r=xt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,i=a.length;s<i;s++)n=a[s].src,t(ae(e.aoData,"anCells",n)).removeClass(o+(2>s?s+1:3));for(s=0,i=r.length;s<i;s++)n=r[s].src,t(ae(e.aoData,"anCells",n)).addClass(o+(2>s?s+1:3))}e.aLastSort=r}function At(t,e){var i,n=t.aoColumns[e],a=$t.ext.order[n.sSortDataType];a&&(i=a.call(t.oInstance,t,e,g(t,e)));for(var o,r=$t.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]||a)&&(o=a?i[s]:_(t,s,e,"sort"),n._aSortData[e]=r?r(o):o)}function Tt(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var i={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Q(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,i){return{visible:t.bVisible,search:Q(e.aoPreSearchCols[i])}}))};zt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oSavedState=i,e.fnStateSaveCallback.call(e.oInstance,e,i)}}function Et(e,i,a){var o,r,s=e.aoColumns;i=function(i){if(i&&i.time){var l=zt(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,r=i.columns.length;o<r;o++)(l=i.columns[o]).visible!==n&&(s[o].bVisible=l.visible),l.search!==n&&t.extend(e.aoPreSearchCols[o],tt(l.search));zt(e,"aoStateLoaded","stateLoaded",[e,i])}}a()};if(e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,i);l!==n&&i(l)}else a()}function Lt(e){var i=$t.settings;return-1!==(e=t.inArray(e,ae(i,"nTable")))?i[e]:null}function Dt(t,i,n,a){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,a&&(n+=". For more information about this error, please see http://datatables.net/tn/"+a),i)e.console&&console.log&&console.log(n);else if(i=(i=$t.ext).sErrMode||i.errMode,t&&zt(t,null,"error",[t,a,n]),"alert"==i)alert(n);else{if("throw"==i)throw Error(n);"function"==typeof i&&i(t,a,n)}}function Pt(e,i,a,o){t.isArray(a)?t.each(a,(function(n,a){t.isArray(a)?Pt(e,i,a[0],a[1]):Pt(e,i,a)})):(o===n&&(o=a),i[a]!==n&&(e[o]=i[a]))}function Mt(e,i,n){var a,o;for(o in i)i.hasOwnProperty(o)&&(a=i[o],t.isPlainObject(a)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],a)):e[o]=n&&"data"!==o&&"aaData"!==o&&t.isArray(a)?a.slice():a);return e}function It(e,i,n){t(e).on("click.DT",i,(function(i){t(e).blur(),n(i)})).on("keypress.DT",i,(function(t){13===t.which&&(t.preventDefault(),n(t))})).on("selectstart.DT",(function(){return!1}))}function Ot(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function zt(e,i,n,a){var o=[];return i&&(o=t.map(e[i].slice().reverse(),(function(t){return t.fn.apply(e.oInstance,a)}))),null!==n&&(i=t.Event(n+".dt"),t(e.nTable).trigger(i,a),o.push(i.result)),o}function Nt(t){var e=t._iDisplayStart,i=t.fnDisplayEnd(),n=t._iDisplayLength;e>
52=i&&(e=i-n),e-=e%n,(-1===n||0>e)&&(e=0),t._iDisplayStart=e}function Rt(e,i){var n=e.renderer,a=$t.ext.renderer[i];return t.isPlainObject(n)&&n[i]?a[n[i]]||a._:"string"==typeof n&&a[n]||a._}function Ft(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Ht(t,e){var i=[],n=(i=Ee.numbers_length,Math.floor(i/2));return e<=i?i=re(0,e):t<=n?((i=re(0,i-2)).push("ellipsis"),i.push(e-1)):(t>=e-1-n?i=re(e-(i-2),e):((i=re(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 Bt(e){t.each({num:function(t){return Le(t,e)},"num-fmt":function(t){return Le(t,e,Jt)},"html-num":function(t){return Le(t,e,Ut)},"html-num-fmt":function(t){return Le(t,e,Ut,Jt)}},(function(t,i){Yt.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(Yt.type.search[t+e]=Yt.type.search.html)}))}function jt(t){return function(){var e=[Lt(this[$t.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return $t.ext.internal[t].apply(this,e)}}var Yt,Wt,Xt,Vt,$t=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?Lt(this[Yt.iApiIndex]):this)},this.fnAddData=function(e,i){var a=this.api(!0),o=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?a.rows.add(e):a.row.add(e);return(i===n||i)&&a.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],a=i.oScroll;t===n||t?e.draw(!1):(""!==a.sX||""!==a.sY)&&pt(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===n||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var a=this.api(!0),o=(t=a.rows(t)).settings()[0],r=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,r),(i===n||i)&&a.draw(),r},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,a,o,r){o=this.api(!0),null===e||e===n?o.search(t,i,a,r):o.column(e).search(t,i,a,r),o.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t!==n){var a=t.nodeName?t.nodeName.toLowerCase():"";return e!==n||"td"==a||"th"==a?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 Lt(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,a,o){var r=this.api(!0);return i===n||null===i?r.row(e).data(t):r.cell(e,i).data(t),(o===n||o)&&r.columns.adjust(),(a===n||a)&&r.draw(),0},this.fnVersionCheck=Yt.fnVersionCheck;var i=this,a=e===n,h=this.length;for(var p in a&&(e={}),this.oApi=this.internal=Yt.internal,$t.ext.internal)p&&(this[p]=jt(p));return this.each((function(){var p,f={},g=1<h?Mt(f,e,!0):e,m=0,v=(f=this.getAttribute("id"),!1),b=$t.defaults,_=t(this);if("table"!=this.nodeName.toLowerCase())Dt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(b),l(b.column),o(b,b,!0),o(b.column,b.column,!0),o(b,t.extend(g,_.data()));var C=$t.settings;m=0;for(p=C.length;m<p;m++){var S=C[m];if(S.nTable==this||S.nTHead&&S.nTHead.parentNode==this||S.nTFoot&&S.nTFoot.parentNode==this){var A=g.bRetrieve!==n?g.bRetrieve:b.bRetrieve;if(a||A)return S.oInstance;if(g.bDestroy!==n?g.bDestroy:b.bDestroy){S.oInstance.fnDestroy();break}return void Dt(S,0,"Cannot reinitialise DataTable",3)}if(S.sTableId==this.id){C.splice(m,1);break}}null!==f&&""!==f||(this.id=f="DataTables_Table_"+$t.ext._unique++);var T=t.extend(!0,{},$t.models.oSettings,{sDestroyWidth:_[0].style.width,sInstance:f,sTableId:f});T.nTable=this,T.oApi=i.internal,T.oInit=g,C.push(T),T.oInstance=1===i.length?i:_.dataTable(),s(g),r(g.oLanguage),g.aLe
vendor: 8,970 bytes, line 52
52ngthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Mt(t.extend(!0,{},b),g),Pt(T.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Pt(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"]]),Pt(T.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Pt(T.oLanguage,g,"fnInfoCallback"),Ot(T,"aoDrawCallback",g.fnDrawCallback,"user"),Ot(T,"aoServerParams",g.fnServerParams,"user"),Ot(T,"aoStateSaveParams",g.fnStateSaveParams,"user"),Ot(T,"aoStateLoadParams",g.fnStateLoadParams,"user"),Ot(T,"aoStateLoaded",g.fnStateLoaded,"user"),Ot(T,"aoRowCallback",g.fnRowCallback,"user"),Ot(T,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Ot(T,"aoHeaderCallback",g.fnHeaderCallback,"user"),Ot(T,"aoFooterCallback",g.fnFooterCallback,"user"),Ot(T,"aoInitComplete",g.fnInitComplete,"user"),Ot(T,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),T.rowIdFn=k(g.rowId),c(T);var E=T.oClasses;t.extend(E,$t.ext.classes,g.oClasses),_.addClass(E.sTable),T.iInitDisplayStart===n&&(T.iInitDisplayStart=g.iDisplayStart,T._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(T.bDeferLoading=!0,f=t.isArray(g.iDeferLoading),T._iRecordsDisplay=f?g.iDeferLoading[0]:g.iDeferLoading,T._iRecordsTotal=f?g.iDeferLoading[1]:g.iDeferLoading);var L=T.oLanguage;t.extend(!0,L,g.oLanguage),L.sUrl&&(t.ajax({dataType:"json",url:L.sUrl,success:function(e){r(e),o(b.oLanguage,e),t.extend(!0,L,e),at(T)},error:function(){at(T)}}),v=!0),null===g.asStripeClasses&&(T.asStripeClasses=[E.sStripeOdd,E.sStripeEven]);f=T.asStripeClasses;var D=_.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(f,(function(t){return D.hasClass(t)})))&&(t("tbody tr",this).removeClass(f.join(" ")),T.asDestroyStripes=f.slice()),f=[],0!==(C=this.getElementsByTagName("thead")).length&&(H(T.aoHeader,C[0]),f=B(T)),null===g.aoColumns)for(C=[],m=0,p=f.length;m<p;m++)C.push(null);else C=g.aoColumns;for(m=0,p=C.length;m<p;m++)d(T,f?f[m]:null);if(y(T,g.aoColumnDefs,C,(function(t,e){u(T,t,e)})),D.length){var P=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(D[0]).children("th, td").each((function(t,e){var i=T.aoColumns[t];if(i.mData===t){var a=P(e,"sort")||P(e,"order"),o=P(e,"filter")||P(e,"search");null===a&&null===o||(i.mData={_:t+".display",sort:null!==a?t+".@data-"+a:n,type:null!==a?t+".@data-"+a:n,filter:null!==o?t+".@data-"+o:n},u(T,t))}}))}var M=T.oFeatures;f=function(){if(g.aaSorting===n){var e=T.aaSorting;for(m=0,p=e.length;m<p;m++)e[m][1]=T.aoColumns[m].asSorting[0]}kt(T),M.bSort&&Ot(T,"aoDrawCallback",(function(){if(T.bSorted){var e=xt(T),i={};t.each(e,(function(t,e){i[e.src]=e.dir})),zt(T,null,"order",[T,e,i]),_t(T)}})),Ot(T,"aoDrawCallback",(function(){(T.bSorted||"ssp"===Ft(T)||M.bDeferRender)&&kt(T)}),"sc");e=_.children("caption").each((function(){this._captionSide=t(this).css("caption-side")}));var i=_.children("thead");if(0===i.length&&(i=t("<thead/>").appendTo(_)),T.nTHead=i[0],0===(i=_.children("tbody")).length&&(i=t("<tbody/>").appendTo(_)),T.nTBody=i[0],0===(i=_.children("tfoot")).length&&e.length>0&&(""!==T.oScroll.sX||""!==T.oScroll.sY)&&(i=t("<tfoot/>").appendTo(_)),0===i.length||0===i.children().length?_.addClass(E.sNoFooter):i.length>0&&(T.nTFoot=i[0],H(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))&&w(T,t(T.nTBody).children("tr"));T.aiDisplay=T.aiDisplayMaster.slice(),T.bInitialised=!0,!1===v&&at(T)};g.bStateSave?(M.bStateSave=!0,Ot(T,"aoDrawCallback",Tt,"state_save"),Et(T,g,f)):f()}})),i=null,this},Gt={},qt=/[\r\n]/g,Ut=/<.*?>/g,Zt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Kt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Jt=/[',$£â¬Â¥%\u2009\u202F\u20BD\u20a9\u20BArfkÉÎ]/gi,Qt=function(t){return!t||!0===t||"-"===t},te=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ee=function(t,e){return Gt[e]||(Gt[e]=RegExp(ue(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Gt[e],"."):t},ie=function(t,e,i){var n="string"==typeof t;return!!Qt(t)||(e&&n&&(t=ee(t,e)),i&&n&&(t=t.replace(Jt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ne=function(t,e,i){return!!Qt(t)||((Qt(t)||"string"==typeof t)&&!!ie(t.replace(Ut,""),e,i)||null)},ae=function(t,e,i){var a=[],o=0,r=t.length;if(i!==n)for(;o<r;o++)t[o]&&t[o][e]&&a.push(t[o][e][i]);else for(;o<r;o++)t[o]&&a.push(t[o][e]);return a},oe=function(t,e,i,a){var o=[],r=0,s=e.length;if(a!==n)for(;r<s;r++)t[e[r]][i]&&o.push(t[e[r]][i][a]);else for(;r<s;r++)o.push(t[e[r]][i]);return o},re=function(t,e){var i,a=[];e===n?(e=0,i=t):(i=e,e=t);for(var o=e;o<i;o++)a.push(o);return a},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,a=e.length;n<a;n++){if(e[n]===i){e=!1;break t}i=e[n]}e=!0}if(e)return t.slice();e=[];a=t.length;var o,r=0;n=0;t:for(;n<a;n++){for(i=t[n],o=0;o<r;o++)if(e[o]===i)continue t;e.push(i),r++}return e};$t.util={throttle:function(t,e){var i,a,o=e!==n?e:200;return function(){var e=this,r=+new Date,s=arguments;i&&r<i+o?(clearTimeout(a),a=setTimeout((function(){i=n,t.apply(e,s)}),o)):(i=r,t.apply(e,s))}},escapeRegex:function(t){return t.replace(Kt,"\\$1")}};var ce=function(t,e,i){t[e]!==n&&(t[i]=t[e])},he=/\[.*?\]$/,de=/\(\)$/,ue=$t.util.escapeRegex,pe=t("<div>")[0],fe=pe.textContent!==n,ge=/<.*?>/g,me=$t.util.throttle,ve=[],be=Array.prototype;Wt=function(e,i){if(!(this instanceof Wt))return new Wt(e,i);var n=[],a=function(e){(e=function(e){var i,n,a=$t.settings,o=t.map(a,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(i=t.inArray(e,o))?[a[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))?a[i]:null})).toArray():void 0):[]}(e))&&(n=n.concat(e))};if(t.isArray(e))for(var o=0,r=e.length;o<r;o++)a(e[o]);else a(e);this.context=le(n),i&&t.merge(this,i),this.selector={rows:null,cols:null,opts:null},Wt.extend(this,this,ve)},$t.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,a){var o,r,s,l,c,h,d,u=[],p=this.context,f=this.selector;for("string"==typeof t&&(a=i,i=e,e=t,t=!1),r=0,s=p.length;r<s;r++){var g=new Wt(p[r]);if("table"===e)(o=i.call(g,p[r],r))!==n&&u.push(o);else if("columns"===e||"rows"===e)(o=i.call(g,p[r],this[r],r))!==n&&u.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[r],"column-rows"===e&&(h=Ce(p[r],f.opts)),l=0,c=d.length;l<c;l++)o=d[l],(o="cell"===e?i.call(g,p[r],o.row,o.column,r,l):i.call(g,p[r],o,r,l,h))!==n&&u.push(o)}return u.length||a?((e=(t=new Wt(p,t?u.concat.apply([],u):u)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,t):this},lastIndexOf:be.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(be.map)e=be.map.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)e.push(t.call(this,this[i],i));return new Wt(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:be.pop,push:be.push,reduce:be.reduce||function(t,e){return h(this,t,e,0,this.length,1)},reduceRight:be.reduceRight||function(t,e){return h(this,t,e,this.length-1,-1,-1)},reverse:be.reverse,selector:null,shift:be.shift,slice:function(){return new Wt(this.context,this)},sort:be.sort,splice:be.splice,toArray:function(){return be.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new Wt(this.context,le(this))},unshift:be.unshift}),Wt.extend=function(e,i,n){if(n.length&&i&&(i instanceof Wt||i.__dt_wrapper)){var a,o,r,s=function(t,e,
52i){return function(){var n=e.apply(t,arguments);return Wt.extend(n,n,i.methodExt),n}};for(a=0,o=n.length;a<o;a++)i[(r=n[a]).name]="function"==typeof r.val?s(e,r.val,r):t.isPlainObject(r.val)?{}:r.val,i[r.name].__dt_wrapper=!0,Wt.extend(e,i[r.name],r.propExt)}},Wt.register=Xt=function(e,i){if(t.isArray(e))for(var n=0,a=e.length;n<a;n++)Wt.register(e[n],i);else{var o,r,s=e.split("."),l=ve;for(n=0,a=s.length;n<a;n++){var c;o=(r=-1!==s[n].indexOf("()"))?s[n].replace("()",""):s[n];t:{c=0;for(var h=l.length;c<h;c++)if(l[c].name===o){c=l[c];break t}c=null}c||(c={name:o,val:{},methodExt:[],propExt:[]},l.push(c)),n===a-1?c.val=i:l=r?c.methodExt:c.propExt}}},Wt.registerPlural=Vt=function(e,i,a){Wt.register(e,a),Wt.register(i,(function(){var e=a.apply(this,arguments);return e===this?this:e instanceof Wt?e.length?t.isArray(e[0])?new Wt(e.context,e[0]):e[0]:n:e}))},Xt("tables()",(function(e){var i;if(e){i=Wt;var n=this.context;if("number"==typeof e)e=[n[e]];else{var a=t.map(n,(function(t){return t.nTable}));e=t(a).filter(e).map((function(){var e=t.inArray(this,a);return n[e]})).toArray()}i=new i(e)}else i=this;return i})),Xt("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new Wt(e[0]):t})),Vt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Vt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Vt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Vt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Vt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),Xt("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?N(e):("string"==typeof t&&(t="full-hold"!==t),R(e,!1===t))}))})),Xt("page()",(function(t){return t===n?this.page.info().page:this.iterator("table",(function(e){ct(e,t)}))})),Xt("page.info()",(function(){if(0===this.context.length)return n;var t=this.context[0],e=t._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,a=t.fnRecordsDisplay(),o=-1===i;return{page:o?0:Math.floor(e/i),pages:o?1:Math.ceil(a/i),start:e,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:a,serverSide:"ssp"===Ft(t)}})),Xt("page.len()",(function(t){return t===n?0!==this.context.length?this.context[0]._iDisplayLength:n:this.iterator("table",(function(e){rt(e,t)}))}));var ye=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{dt(t,!0);var a=t.jqXHR;a&&4!==a.readyState&&a.abort(),j(t,[],(function(i){E(t);for(var n=0,a=(i=V(t,i)).length;n<a;n++)x(t,i[n]);R(t,e),dt(t,!1)}))}};Xt("ajax.json()",(function(){var t=this.context;if(0<t.length)return t[0].json})),Xt("ajax.params()",(function(){var t=this.context;if(0<t.length)return t[0].oAjaxData})),Xt("ajax.reload()",(function(t,e){return this.iterator("table",(function(i){ye(i,!1===e,t)}))})),Xt("ajax.url()",(function(e){var i=this.context;return e===n?0===i.length?n:(i=i[0]).ajax?t.isPlainObject(i.ajax)?i.ajax.url:i.ajax:i.sAjaxSource:this.iterator("table",(function(i){t.isPlainObject(i.ajax)?i.ajax.url=e:i.ajax=e}))})),Xt("ajax.url().load()",(function(t,e){return this.iterator("table",(function(i){ye(i,!1===e,t)}))}));var xe=function(e,i,a,o,r){var s,l,c,h,d,u,p=[];for(c=typeof i,i&&"string"!==c&&"function"!==c&&i.length!==n||(i=[i]),c=0,h=i.length;c<h;c++)for(d=0,u=(l=i[c]&&i[c].split&&!i[c].match(/[\[\(:]/)?i[c].split(","):[i[c]]).length;d<u;d++)(s=a("string"==typeof l[d]?t.trim(l[d]):l[d]))&&s.length&&(p=p.concat(s));if((e=Yt.selector[e]).length)for(c=0,h=e.length;c<h;c++)p=e[c](o,r,p);return le(p)},we=function(e){return e||(e={}),e.filter&&e.search===n&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},_e=function(t){for(var e=0,i=t.length;e<i;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Ce=function(e,i){var n,a,o,r=[],s=e.aiDisplay;o=e.aiDisplayMaster;var l=i.search;if(n=i.order,a=i.page,"ssp"==Ft(e))return"removed"===l?[]:re(0,o.length);if("current"==a)for(n=e._iDisplayStart,a=e.fnDisplayEnd();n<a;n++)r.push(s[n]);else if("current"==n||"applied"==n){if("none"==l)r=o.slice();else if("applied"==l)r=s.slice();else if("removed"==l){var c={};for(n=0,a=s.length;n<a;n++)c[s[n]]=null;r=t.map(o,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==n||"original"==n)for(n=0,a=e.aoData.length;n<a;n++)"none"==l?r.push(n):(-1===(o=t.inArray(n,s))&&"removed"==l||0<=o&&"applied"==l)&&r.push(n);return r};Xt("rows()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=we(i);var a=this.iterator("table",(function(a){var o,r=i;return xe("row",e,(function(e){var i=te(e),s=a.aoData;if(null!==i&&!r)return[i];if(o||(o=Ce(a,r)),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?[l.row]:[]:(i=t(e).closest("*[data-dt-row]")).length?[i.data("dt-row")]:[]}return"string"==typeof e&&"#"===e.charAt(0)&&(i=a.aIds[e.replace(/^#/,"")])!==n?[i.idx]:(i=se(oe(a.aoData,o,"nTr")),t(i).filter(e).map((function(){return this._DT_RowIndex})).toArray())}),a,r)}),1);return a.selector.rows=e,a.selector.opts=i,a})),Xt("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||n}),1)})),Xt("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return oe(t.aoData,e,"_aData")}),1)})),Vt("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)})),Vt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,i){D(e,i,t)}))})),Vt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Vt("rows().ids()","row().id()",(function(t){for(var e=[],i=this.context,n=0,a=i.length;n<a;n++)for(var o=0,r=this[n].length;o<r;o++){var s=i[n].rowIdFn(i[n].aoData[this[n][o]]._aData);e.push((!0===t?"#":"")+s)}return new Wt(i,e)})),Vt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,i,a){var o,r,s,l,c,h=e.aoData,d=h[i];for(h.splice(i,1),o=0,r=h.length;o<r;o++)if(c=(s=h[o]).anCells,null!==s.nTr&&(s.nTr._DT_RowIndex=o),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=o;L(e.aiDisplayMaster,i),L(e.aiDisplay,i),L(t[a],i,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,Nt(e),(i=e.rowIdFn(d._aData))!==n&&delete e.aIds[i]})),this.iterator("table",(function(t){for(var e=0,i=t.aoData.length;e<i;e++)t.aoData[e].idx=e})),this})),Xt("rows.add()",(function(e){var i=this.iterator("table",(function(t){var i,n,a,o=[];for(n=0,a=e.length;n<a;n++)(i=e[n]).nodeName&&"TR"===i.nodeName.toUpperCase()?o.push(w(t,i)[0]):o.push(x(t,i));return o}
52),1),n=this.rows(-1);return n.pop(),t.merge(n,i),n})),Xt("row()",(function(t,e){return _e(this.rows(t,e))})),Xt("row().data()",(function(e){var i=this.context;if(e===n)return i.length&&this.length?i[0].aoData[this[0]]._aData:n;var a=i[0].aoData[this[0]];return a._aData=e,t.isArray(e)&&a.nTr.id&&A(i[0].rowId)(e,a.nTr.id),D(i[0],this[0],"data"),this})),Xt("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),Xt("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var i=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?w(t,e)[0]:x(t,e)}));return this.row(i[0])}));var Se=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)},ke=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 a=i[0],o=new Wt(a),r=a.aoData;o.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<ae(r,"_details").length&&(o.on("draw.dt.DT_details",(function(t,e){a===e&&o.rows({page:"current"}).eq(0).each((function(t){(t=r[t])._detailsShow&&t._details.insertAfter(t.nTr)}))})),o.on("column-visibility.dt.DT_details",(function(t,e){if(a===e)for(var i,n=m(e),o=0,s=r.length;o<s;o++)(i=r[o])._details&&i._details.children("td[colspan]").attr("colspan",n)})),o.on("destroy.dt.DT_details",(function(t,e){if(a===e)for(var i=0,n=r.length;i<n;i++)r[i]._details&&Se(o,i)})))}}};Xt("row().child()",(function(e,i){var a=this.context;if(e===n)return a.length&&this.length?a[0].aoData[this[0]]._details:n;if(!0===e)this.child.show();else if(!1===e)Se(this);else if(a.length&&this.length){var o=a[0],r=(a=a[0].aoData[this[0]],[]),s=function(e,i){if(t.isArray(e)||e instanceof t)for(var n=0,a=e.length;n<a;n++)s(e[n],i);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?r.push(e):(n=t("<tr><td/></tr>").addClass(i),t("td",n).addClass(i).html(e)[0].colSpan=m(o),r.push(n[0]))};s(e,i),a._details&&a._details.detach(),a._details=t(r),a._detailsShow&&a._details.insertAfter(a.nTr)}return this})),Xt(["row().child.show()","row().child().show()"],(function(){return ke(this,!0),this})),Xt(["row().child.hide()","row().child().hide()"],(function(){return ke(this,!1),this})),Xt(["row().child.remove()","row().child().remove()"],(function(){return Se(this),this})),Xt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ae=/^([^:]+):(name|visIdx|visible)$/,Te=function(t,e,i,n,a){i=[],n=0;for(var o=a.length;n<o;n++)i.push(_(t,a[n],e));return i};Xt("columns()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=we(i);var a=this.iterator("table",(function(n){var a=e,o=i,r=n.aoColumns,s=ae(r,"sName"),l=ae(r,"nTh");return xe("column",a,(function(e){var i=te(e);if(""===e)return re(r.length);if(null!==i)return[i>=0?i:r.length+i];if("function"==typeof e){var a=Ce(n,o);return t.map(r,(function(t,i){return e(i,Te(n,i,0,0,a),l[i])?i:null}))}var c="string"==typeof e?e.match(Ae):"";if(c)switch(c[2]){case"visIdx":case"visible":if((i=parseInt(c[1],10))<0){var h=t.map(r,(function(t,e){return t.bVisible?e:null}));return[h[h.length+i]]}return[f(n,i)];case"name":return t.map(s,(function(t,e){return t===c[1]?e:null}));default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(i=t(l).filter(e).map((function(){return t.inArray(this,l)})).toArray()).length||!e.nodeName?i:(i=t(e).closest("*[data-dt-column]")).length?[i.data("dt-column")]:[]}),n,o)}),1);return a.selector.cols=e,a.selector.opts=i,a})),Vt("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Vt("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Vt("columns().data()","column().data()",(function(){return this.iterator("column-rows",Te,1)})),Vt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Vt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,i,n,a,o){return oe(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",i)}),1)})),Vt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,
vendor: 15,141 bytes, line 52
52i,n,a){return oe(t.aoData,a,"anCells",e)}),1)})),Vt("columns().visible()","column().visible()",(function(e,i){var a=this.iterator("column",(function(i,a){if(e===n)return i.aoColumns[a].bVisible;var o,r,s,l=i.aoColumns,c=l[a],h=i.aoData;if(e!==n&&c.bVisible!==e){if(e){var d=t.inArray(!0,ae(l,"bVisible"),a+1);for(o=0,r=h.length;o<r;o++)s=h[o].nTr,l=h[o].anCells,s&&s.insertBefore(l[a],l[d]||null)}else t(ae(i.aoData,"anCells",a)).detach();c.bVisible=e,z(i,i.aoHeader),z(i,i.aoFooter),i.aiDisplay.length||t(i.nTBody).find("td[colspan]").attr("colspan",m(i)),Tt(i)}}));return e!==n&&(this.iterator("column",(function(t,n){zt(t,null,"column-visibility",[t,n,e,i])})),(i===n||i)&&this.columns.adjust()),a})),Vt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,i){return"visible"===t?g(e,i):i}),1)})),Xt("columns.adjust()",(function(){return this.iterator("table",(function(t){p(t)}),1)})),Xt("column.index()",(function(t,e){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===t||"toData"===t)return f(i,e);if("fromData"===t||"toVisible"===t)return g(i,e)}})),Xt("column()",(function(t,e){return _e(this.columns(t,e))})),Xt("cells()",(function(e,i,a){if(t.isPlainObject(e)&&(e.row===n?(a=e,e=null):(a=i,i=null)),t.isPlainObject(i)&&(a=i,i=null),null===i||i===n)return this.iterator("table",(function(i){var o,r,s,l,c,h,d,u=e,p=we(a),f=i.aoData,g=Ce(i,p),m=se(oe(f,g,"anCells")),v=t([].concat.apply([],m)),b=i.aoColumns.length;return xe("cell",u,(function(e){var a="function"==typeof e;if(null===e||e===n||a){for(r=[],s=0,l=g.length;s<l;s++)for(o=g[s],c=0;c<b;c++)h={row:o,column:c},a?(d=f[o],e(h,_(i,o,c),d.anCells?d.anCells[c]:null)&&r.push(h)):r.push(h);return r}return t.isPlainObject(e)?e.column!==n&&e.row!==n&&-1!==t.inArray(e.row,g)?[e]:[]:(a=v.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray(),a.length||!e.nodeName?a:(d=t(e).closest("*[data-dt-row]")).length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[])}),i,p)}));var o,r,s,l,c,h=this.columns(i),d=this.rows(e);this.iterator("table",(function(t,e){for(o=[],r=0,s=d[e].length;r<s;r++)for(l=0,c=h[e].length;l<c;l++)o.push({row:d[e][r],column:h[e][l]})}),1);var u=this.cells(o,a);return t.extend(u.selector,{cols:i,rows:e,opts:a}),u})),Vt("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,i){return(t=t.aoData[e])&&t.anCells?t.anCells[i]:n}),1)})),Xt("cells().data()",(function(){return this.iterator("cell",(function(t,e,i){return _(t,e,i)}),1)})),Vt("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)})),Vt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,i,n){return _(e,i,n,t)}),1)})),Vt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,i){return{row:e,column:i,columnVisible:g(t,i)}}),1)})),Vt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,i,n){D(e,i,t,n)}))})),Xt("cell()",(function(t,e,i){return _e(this.cells(t,e,i))})),Xt("cell().data()",(function(t){var e=this.context,i=this[0];return t===n?e.length&&i.length?_(e[0],i[0].row,i[0].column):n:(C(e[0],i[0].row,i[0].column,t),D(e[0],i[0].row,"data",i[0].column),this)})),Xt("order()",(function(e,i){var a=this.context;return e===n?0!==a.length?a[0].aaSorting:n:("number"==typeof e?e=[[e,i]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),Xt("order.listener()",(function(t,e,i){return this.iterator("table",(function(n){St(n,t,e,i)}))})),Xt("order.fixed()",(function(e){if(!e){var i=(i=this.context).length?i[0].aaSortingFixed:n;return t.isArray(i)?{pre:i}:i}return this.iterator("table",(function(i){i.aaSortingFixed=t.extend(!0,{},e)}))})),Xt(["columns().order()","column().order()"],(function(e){var i=this;return this.iterator("table",(function(n,a){var o=[];t.each(i[a],(function(t,i){o.push([i,e])})),n.aaSorting=o}))})),Xt("search()",(function(e,i,a,o){var r=this.context;return e===n?0!==r.length?r[0].oPreviousSearch.sSearch:n:this.iterator("table",(function(n){n.oFeatures.bFilter&&G(n,t.extend({},n.oPreviousSearch,{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===a||a,bCaseInsensitive:null===o||o}),1)}))})),Vt("columns().search()","column().search()",(function(e,i,a,o){return this.iterator("column",(function(r,s){var l=r.aoPreSearchCols;if(e===n)return l[s].sSearch;r.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===a||a,bCaseInsensitive:null===o||o}),G(r,r.oPreviousSearch,1))}))})),Xt("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),Xt("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),Xt("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),Xt("state.save()",(function(){return this.iterator("table",(function(t){Tt(t)}))})),$t.versionCheck=$t.fnVersionCheck=function(t){for(var e,i,n=$t.version.split("."),a=0,o=(t=t.split(".")).length;a<o;a++)if((e=parseInt(n[a],10)||0)!==(i=parseInt(t[a],10)||0))return e>i;return!0},$t.isDataTable=$t.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return e instanceof $t.Api||(t.each($t.settings,(function(e,a){var o=a.nScrollHead?t("table",a.nScrollHead)[0]:null,r=a.nScrollFoot?t("table",a.nScrollFoot)[0]:null;a.nTable!==i&&o!==i&&r!==i||(n=!0)})),n)},$t.tables=$t.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map($t.settings,(function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable}));return i?new Wt(n):n},$t.camelToHungarian=o,Xt("$()",(function(e,i){var n=this.rows(i).nodes();n=t(n);return t([].concat(n.filter(e).toArray(),n.find(e).toArray()))})),t.each(["on","one","off"],(function(e,i){Xt(i+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var n=t(this.tables().nodes());return n[i].apply(n,e),this}))})),Xt("clear()",(function(){return this.iterator("table",(function(t){E(t)}))})),Xt("settings()",(function(){return new Wt(this.context,this.context)})),Xt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),Xt("data()",(function(){return this.iterator("table",(function(t){return ae(t.aoData,"_aData")})).flatten()})),Xt("destroy()",(function(i){return i=i||!1,this.iterator("table",(function(n){var a,o=n.nTableWrapper.parentNode,r=n.oClasses,s=n.nTable,l=n.nTBody,c=n.nTHead,h=n.nTFoot,d=t(s),u=(l=t(l),t(n.nTableWrapper)),p=t.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,zt(n,"aoDestroyCallback","destroy",[n]),i||new Wt(n).columns().visible(!0),u.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+n.sInstance),s!=c.parentNode&&(d.children("thead").detach(),d.append(c)),h&&s!=h.parentNode&&(d.children("tfoot").detach(),d.append(h)),n.aaSorting=[],n.aaSortingFixed=[],kt(n),t(p).removeClass(n.asStripeClasses.join(" ")),t("th, td",c).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),l.children().detach(),l.append(p),d[c=i?"remove":"detach"](),u[c](),!i&&o&&(o.insertBefore(s,n.nTableReinsertBefore),d.css("width",n.sDestroyWidth).removeClass(r.sTable),(a=n.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(n.asDestroyStripes[e%a])}))),-1!==(o=t.inArray(n,$t.settings))&&$t.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){Xt(e+"s().every()",(function(t){var i=this.selector.opts,a=this;return this.iterator(e,(function(o,r,s,l,c){t.call(a[e](r,"cell"===e?s:i,"cell"===e?i:n),r,s,l,c)}))}))})),Xt("i18n()",(function(e,i,a){var o=this.context[0];return(e=k(e)(o.oLanguage))===n&&(e=i),a!==n&&t.isPlainObject(e)&&(e=e[a]!==n?e[a]:e._),e.replace("%d",a)})),$t.version="1.10.18",$t.settings=[],$t.models={},$t.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},$t.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},$t.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},$t.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){}},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({},$t.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},a($t.defaults),$t.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},a($t.defaults.column),$t.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,bAjaxDataGet:!0,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,a=this.oFeatures,o=a.bPaginate;return a.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},$t.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:$t.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:$t.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($t.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_asc_disabled",sSortableDesc:"sorting_desc_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 Ee=$t.ext.pager;t.extend(Ee,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Ht(t,e)]},simple_numbers:function(t,e){return["previous",Ht(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Ht(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Ht(t,e),"last"]},_numbers:Ht,numbers_length:7}),t.extend(!0,$t.ext.renderer,{pageButton:{_:function(e,a,o,r,s,l){var c,h,d,u=e.oClasse
52s,p=e.oLanguage.oPaginate,f=e.oLanguage.oAria.paginate||{},g=0,m=function(i,n){var a,r,d,v,b=function(t){ct(e,t.data.action,!0)};for(a=0,r=n.length;a<r;a++)if(v=n[a],t.isArray(v))d=t("<"+(v.DT_el||"div")+"/>").appendTo(i),m(d,v);else{switch(c=null,h="",v){case"ellipsis":i.append('<span class="ellipsis">…</span>');break;case"first":c=p.sFirst,h=v+(s>0?"":" "+u.sPageButtonDisabled);break;case"previous":c=p.sPrevious,h=v+(s>0?"":" "+u.sPageButtonDisabled);break;case"next":c=p.sNext,h=v+(s<l-1?"":" "+u.sPageButtonDisabled);break;case"last":c=p.sLast,h=v+(s<l-1?"":" "+u.sPageButtonDisabled);break;default:c=v+1,h=s===v?u.sPageButtonActive:""}null!==c&&(It(d=t("<a>",{class:u.sPageButton+" "+h,"aria-controls":e.sTableId,"aria-label":f[v],"data-dt-idx":g,tabindex:e.iTabIndex,id:0===o&&"string"==typeof v?e.sTableId+"_"+v:null}).html(c).appendTo(i),{action:v},b),g++)}};try{d=t(a).find(i.activeElement).data("dt-idx")}catch(t){}m(t(a).empty(),r),d!==n&&t(a).find("[data-dt-idx="+d+"]").focus()}}}),t.extend($t.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)&&!Zt.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Qt(t)?"date":null},function(t,e){var i=e.oLanguage.sDecimal;return ie(t,i,!0)?"num-fmt"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ne(t,i)?"html-num"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ne(t,i,!0)?"html-num-fmt"+i:null},function(t){return Qt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend($t.ext.type.search,{html:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," ").replace(Ut,""):""},string:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," "):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 Qt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Qt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Bt(""),t.extend(!0,$t.ext.renderer,{header:{_:function(e,i,n,a){t(e.nTable).on("order.dt.DT",(function(t,o,r,s){e===o&&(t=n.idx,i.removeClass(n.sSortingClass+" "+a.sSortAsc+" "+a.sSortDesc).addClass("asc"==s[t]?a.sSortAsc:"desc"==s[t]?a.sSortDesc:n.sSortingClass))}))},jqueryui:function(e,i,n,a){t("<div/>").addClass(a.sSortJUIWrapper).append(i.contents()).append(t("<span/>").addClass(a.sSortIcon+" "+n.sSortingClassJUI)).appendTo(i),t(e.nTable).on("order.dt.DT",(function(t,o,r,s){e===o&&(t=n.idx,i.removeClass(a.sSortAsc+" "+a.sSortDesc).addClass("asc"==s[t]?a.sSortAsc:"desc"==s[t]?a.sSortDesc:n.sSortingClass),i.find("span."+a.sSortIcon).removeClass(a.sSortJUIAsc+" "+a.sSortJUIDesc+" "+a.sSortJUI+" "+a.sSortJUIAscAllowed+" "+a.sSortJUIDescAllowed).addClass("asc"==s[t]?a.sSortJUIAsc:"desc"==s[t]?a.sSortJUIDesc:n.sSortingClassJUI))}))}}});var De=function(t){return"string"==typeof t?t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};return $t.render={number:function(t,e,i,n,a){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var r=0>o?"-":"",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):"",r+(n||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(a||""))}}},text:function(){return{display:De}}},t.extend($t.ext.internal,{_fnExternApiFunc:jt,_fnBuildAjax:j,_fnAjaxUpdate:Y,_fnAjaxParameters:W,_fnAjaxUpdateDraw:X,_fnAjaxDataSrc:V,_fnAddColumn:d,_fnColumnOptions:u,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:b,_fnApplyColumnDefs:y,_fnHungarianMap:a,_fnCamelToHungarian:o,_fnLanguageCompat:r,_fnBrowserDetect:c,_fnAddData:x,_fnAddTr:w,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==n?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,i,n){return t.inArray(n,e.aoData[i].anCells)},_fnGetCellData:_,_fnSetCellData:C,_fnSplitObjNotation:S,_fnGetObjectDataFn:k,_fnSetObjectDataFn:A,_fnGetDataMaster:T,_fnClearTable:E,_fnDeleteIndex:L,_fnInvalidate:D,_fnGetRowElements:P,_fnCreateTr:M,_fnBuildHead:O,_fnDrawHead:z,_fnDraw:N,_fnReDraw:R,_fnAddOptionsHtml:F,_fnDetectHeader:H,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:$,_fnFilterComplete:G,_fnFilterCustom:q,_fnFilterColumn:U,_fnFilter:Z,_fnFilterCreateSearch:K,_fnEscapeRegex:ue,_fnFilterData:J,_fnFeatureHtmlInfo:et,_fnUpdateInfo:it,_fnInfoMacros:nt,_fnInitialise:at,_fnInitComplete:ot,_fnLengthChange:rt,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:ht,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ut,_fnScrollDraw:pt,_fnApplyToChildren:ft,_fnCalculateColumnWidths:gt,_fnThrottle:me,_fnConvertToWidth:mt,_fnGetWidestNode:vt,_fnGetMaxLenString:bt,_fnStringToCss:yt,_fnSortFlatten:xt,_fnSort:wt,_fnSortAria:_t,_fnSortListener:Ct,_fnSortAttachListener:St,_fnSortingClasses:kt,_fnSortData:At,_fnSaveState:Tt,_fnLoadState:Et,_fnSettingsFromNode:Lt,_fnLog:
52Dt,_fnMap:Pt,_fnBindAction:It,_fnCallbackReg:Ot,_fnCallbackFire:zt,_fnLengthOverflow:Nt,_fnRenderer:Rt,_fnDataSource:Ft,_fnRowAttributes:I,_fnExtend:Mt,_fnCalculateEnd:function(){}}),t.fn.dataTable=$t,$t.$=t,t.fn.dataTableSettings=$t.settings,t.fn.dataTableExt=$t.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each($t,(function(e,i){t.fn.DataTable[e]=i})),t.fn.dataTable})),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).Swiper=e()}(this,(function(){"use strict";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)}}function e(){return(e=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)}function i(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function n(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(a){void 0===t[a]?t[a]=e[a]:i(e[a])&&i(t[a])&&Object.keys(e[a]).length>0&&n(t[a],e[a])}))}var a={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function o(){var t="undefined"!=typeof document?document:{};return n(t,a),t}var r={document:a,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function s(){var t="undefined"!=typeof window?window:{};return n(t,r),t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(){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}}function d(t,e,i){return(d=h()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var a=new(Function.bind.apply(t,n));return i&&c(a,i.prototype),a}).apply(null,arguments)}function u(t){var e="function"==typeof Map?new Map:void 0;return(u=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)})(t)}var p=function(t){var e,i;function n(e){var i,n,a;return n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i=t.call.apply(t,[this].concat(e))||this),a=n.__proto__,Object.defineProperty(n,"__proto__",{get:function(){return a}
vendor: 4,908 bytes, line 52
52,set:function(t){a.__proto__=t}}),i}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n}(u(Array));function f(t){void 0===t&&(t=[]);var e=[];return t.forEach((function(t){Array.isArray(t)?e.push.apply(e,f(t)):e.push(t)})),e}function g(t,e){return Array.prototype.filter.call(t,e)}function m(t,e){var i=s(),n=o(),a=[];if(!e&&t instanceof p)return t;if(!t)return new p(a);if("string"==typeof t){var r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){var l="div";0===r.indexOf("<li")&&(l="ul"),0===r.indexOf("<tr")&&(l="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(l="tr"),0===r.indexOf("<tbody")&&(l="table"),0===r.indexOf("<option")&&(l="select");var c=n.createElement(l);c.innerHTML=r;for(var h=0;h<c.childNodes.length;h+=1)a.push(c.childNodes[h])}else a=function(t,e){if("string"!=typeof t)return[t];for(var i=[],n=e.querySelectorAll(t),a=0;a<n.length;a+=1)i.push(n[a]);return i}(t.trim(),e||n)}else if(t.nodeType||t===i||t===n)a.push(t);else if(Array.isArray(t)){if(t instanceof p)return t;a=t}return new p(function(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(a))}m.fn=p.prototype;var v,b,y,x={addClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).add.apply(e,n)})),this},removeClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).remove.apply(e,n)})),this},hasClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=f(e.map((function(t){return t.split(" ")})));return g(this,(function(t){return n.filter((function(e){return t.classList.contains(e)})).length>0})).length>0},toggleClass:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=f(e.map((function(t){return t.split(" ")})));this.forEach((function(t){n.forEach((function(e){t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(var n in t)this[i][n]=t[n],this[i].setAttribute(n,t[n]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?t+"ms":t;return this},on:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],a=e[1],o=e[2],r=e[3];function s(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),m(e).is(a))o.apply(e,i);else for(var n=m(e).parents(),r=0;r<n.length;r+=1)m(n[r]).is(a)&&o.apply(n[r],i)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),o.apply(this,e)}"function"==typeof e[1]&&(n=e[0],o=e[1],r=e[2],a=void 0),r||(r=!1);for(var c,h=n.split(" "),d=0;d<this.length;d+=1){var u=this[d];if(a)for(c=0;c<h.length;c+=1){var p=h[c];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[p]||(u.dom7LiveListeners[p]=[]),u.dom7LiveListeners[p].push({listener:o,proxyListener:s}),u.addEventListener(p,s,r)}else for(c=0;c<h.length;c+=1){var f=h[c];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:o,proxyListener:l}),u.addEventListener(f,l,r)}}return this},off:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],a=e[1],o=e[2],r=e[3];"function"==typeof e[1]&&(n=e[0],o=e[1],r=e[2],a=void 0),r||(r=!1);for(var s=n.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],h=0;h<this.length;h+=1){var d=this[h],u=void 0;if(!a&&d.dom7Listeners?u=d.dom7Listeners[c]:a&&d.dom7LiveListeners&&(u=d.dom7LiveListeners[c]),u&&u.length)for(var p=u.length-1;p>=0;p-=1){var f=u[p];o&&f.listener===o||o&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===o?(d.removeEventListener(c,f.proxyListener,r),u.splice(p,1)):o||(d.removeEventListener(c,f.proxyListener,r),u.splice(p,1))}}return this},trigger:function(){for(var t=s(),e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];for(var a=i[0].split(" "),o=i[1],r=0;r<a.length;r+=1)for(var l=a[r],c=0;c<this.length;c+=1){var h=this[c];if(t.CustomEvent){var d=new t.CustomEvent(l,{detail:o,bubbles:!0,cancelable:!0});h.dom7EventData=i.filter((function(t,e){return e>0})),h.dispatchEvent(d),h.dom7EventData=[],delete h.dom7EventData}}return this},transitionEnd:function(t){var e=this;return t&&e.on("transitionend",(function i(n){n.target===this&&(t.call(this,n),e.off("transitionend",i))}
52)),this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var t=s();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var t=s(),e=o(),i=this[0],n=i.getBoundingClientRect(),a=e.body,r=i.clientTop||a.clientTop||0,l=i.clientLeft||a.clientLeft||0,c=i===t?t.scrollY:i.scrollTop,h=i===t?t.scrollX:i.scrollLeft;return{top:n.top+c-r,left:n.left+h-l}}return null},css:function(t,e){var i,n=s();if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var a in t)this[i].style[a]=t[a];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},each:function(t){return t?(this.forEach((function(e,i){t.apply(e,[e,i])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){var e,i,n=s(),a=o(),r=this[0];if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(e=m(t),i=0;i<e.length;i+=1)if(e[i]===r)return!0;return!1}if(t===a)return r===a;if(t===n)return r===n;if(t.nodeType||t instanceof p){for(e=t.nodeType?[t]:t,i=0;i<e.length;i+=1)if(e[i]===r)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e=this.length;if(t>e-1)return m([]);if(t<0){var i=e+t;return m(i<0?[]:[this[i]])}return m([this[t]])},append:function(){for(var t,e=o(),i=0;i<arguments.length;i+=1){t=i<0||arguments.length<=i?void 0:arguments[i];for(var n=0;n<this.length;n+=1)if("string"==typeof t){var a=e.createElement("div");for(a.innerHTML=t;a.firstChild;)this[n].appendChild(a.firstChild)}else if(t instanceof p)for(var r=0;r<t.length;r+=1)this[n].appendChild(t[r]);else this[n].appendChild(t)}return this},prepend:function(t){var e,i,n=o();for(e=0;e<this.length;e+=1)if("string"==typeof t){var a=n.createElement("div");for(a.innerHTML=t,i=a.childNodes.length-1;i>=0;i-=1)this[e].insertBefore(a.childNodes[i],this[e].childNodes[0])}else if(t instanceof p)for(i=0;i<t.length;i+=1)this[e].insertBefore(t[i],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&m(this[0].nextElementSibling).is(t)?m([this[0].nextElementSibling]):m([]):this[0].nextElementSibling?m([this[0].nextElementSibling]):m([]):m([])},nextAll:function(t){var e=[],i=this[0];if(!i)return m([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;t?m(n).is(t)&&e.push(n):e.push(n),i=n}return m(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&m(e.previousElementSibling).is(t)?m([e.previousElementSibling]):m([]):e.previousElementSibling?m([e.previousElementSibling]):m([])}return m([])},prevAll:function(t){var e=[],i=this[0];if(!i)return m([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;t?m(n).is(t)&&e.push(n):e.push(n),i=n}return m(e)},parent:function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?m(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return m(e)},parents:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)t?m(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return m(e)},closest:function(t){var e=this;return void 0===t?m([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(t),a=0;a<n.length;
vendor: 16,090 bytes, line 52
52a+=1)e.push(n[a]);return m(e)},children:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].children,a=0;a<n.length;a+=1)t&&!m(n[a]).is(t)||e.push(n[a]);return m(e)},filter:function(t){return m(g(this,t))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function w(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function _(){return Date.now()}function C(t,e){void 0===e&&(e="x");var i,n,a,o=s(),r=function(t){var e,i=s();return i.getComputedStyle&&(e=i.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}(t);return o.WebKitCSSMatrix?((n=r.transform||r.webkitTransform).split(",").length>6&&(n=n.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),a=new o.WebKitCSSMatrix("none"===n?"":n)):i=(a=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(n=o.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=o.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0}function S(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function k(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function A(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],i=1;i<arguments.length;i+=1){var n=i<0||arguments.length<=i?void 0:arguments[i];if(null!=n&&!k(n))for(var a=Object.keys(Object(n)).filter((function(t){return e.indexOf(t)<0})),o=0,r=a.length;o<r;o+=1){var s=a[o],l=Object.getOwnPropertyDescriptor(n,s);void 0!==l&&l.enumerable&&(S(t[s])&&S(n[s])?n[s].__swiper__?t[s]=n[s]:A(t[s],n[s]):!S(t[s])&&S(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:A(t[s],n[s])):t[s]=n[s])}}return t}function T(t,e){Object.keys(e).forEach((function(i){S(e[i])&&Object.keys(e[i]).forEach((function(n){"function"==typeof e[i][n]&&(e[i][n]=e[i][n].bind(t))})),t[i]=e[i]}))}function E(t){return void 0===t&&(t=""),"."+t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function L(t,e,i,n){var a=o();return i&&Object.keys(n).forEach((function(i){if(!e[i]&&!0===e.auto){var o=a.createElement("div");o.className=n[i],t.append(o),e[i]=o}})),e}function D(){return v||(v=function(){var t=s(),e=o();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),v}function P(t){return void 0===t&&(t={}),b||(b=function(t){var e=(void 0===t?{}:t).userAgent,i=D(),n=s(),a=n.navigator.platform,o=e||n.navigator.userAgent,r={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,h=o.match(/(Android);?[\s\/]+([\d.]+)?/),d=o.match(/(iPad).*OS\s([\d_]+)/),u=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===a,g="MacIntel"===a;return!d&&g&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(l+"x"+c)>=0&&((d=o.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),g=!1),h&&!f&&(r.os="android",r.android=!0),(d||p||u)&&(r.os="ios",r.ios=!0),r}(t)),b}function M(){return y||(y=function(){var t,e=s();return{isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),y}Object.keys(x).forEach((function(t){Object.defineProperty(m.fn,t,{value:x[t],writable:!0})}));var I={name:"resize",create:function(){var t=this;A(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver((function(e){var i=t.width,n=t.height,a=i,o=n;e.forEach((function(e){var i=e.contentBoxSize,n=e.contentRect,r=e.target;r&&r!==t.el||(a=n?n.width:(i[0]||i).inlineSize,o=n?n.height:(i[0]||i).blockSize)})),a===i&&o===n||t.resize.resizeHandler()})),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var e=s();t.params.resizeObserver&&void 0!==s().ResizeObserver?t.resize.createObserver():(e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var e=s();t.resize.removeObserver(),e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}},O={attach:function(t,e){void 0===e&&(e={});var i=s(),n=this,a=new(i.MutationObserver||i.WebkitMutationObserver)((function(t){if(1!==t.length){var e=function(){n.emit("observerUpdate",t[0])};i.requestAnimationFrame?i.requestAnimationFrame(e):i.setTimeout(e,0)}else n.emit("observerUpdate",t[0])}));a.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),n.observer.observers.push(a)},init:function(){var t=this;if(t.support.observer&&t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),i=0;i<e.length;i+=1)t.observer.attach(e[i]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(t){t.disconnect()})),this.observer.observers=[]}},z={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){T(this,{observer:e({},O,{observers:[]})})},on:{init:function(t){t.observer.init()},destroy:function(t){t.observer.destroy()}}};function N(t){var e=this,i=o(),n=s(),a=e.touchEventsData,r=e.params,l=e.touches;if(e.enabled&&(!e.animating||!r.preventInteractionOnTransition)){var c=t;c.originalEvent&&(c=c.originalEvent);var h=m(c.target);if(("wrapper"!==r.touchEventsTarget||h.closest(e.wrapperEl).length)&&(a.isTouchEvent="touchstart"===c.type,(a.isTouchEvent||!("which"in c)||3!==c.which)&&!(!a.isTouchEvent&&"button"in c&&c.button>0||a.isTouched&&a.isMoved))){r.noSwipingClass&&""!==r.noSwipingClass&&c.target&&c.target.shadowRoot&&t.path&&t.path[0]&&(h=m(t.path[0]));var d=r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass,u=!(!c.target||!c.target.shadowRoot);if(r.noSwiping&&(u?function(t,e){return void 0===e&&(e=this),function e(i){return i&&i!==o()&&i!==s()?(i.assignedSlot&&(i=i.assignedSlot),i.closest(t)||e(i.getRootNode().host)):null}(e)}(d,c.target):h.closest(d)[0]))e.allowClick=!0;else if(!r.swipeHandler||h.closest(r.swipeHandler)[0]){l.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,l.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;var p=l.currentX,f=l.currentY,g=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,v=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(g&&(p<=v||p>=n.innerWidth-v)){if("prevent"!==g)return;t.preventDefault()}if(A(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=p,l.startY=f,a.touchStartTime=_(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==c.type){var b=!0;h.is(a.focusableElements)&&(b=!1),i.activeElement&&m(i.activeElement).is(a.focusableElements)&&i.activeElement!==h[0]&&i.activeElement.blur();var y=b&&e.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!y||h[0].isContentEditable||c.preventDefault()}e.emit("touchStart",c)}}}}function R(t){var e=o(),i=this,n=i.touchEventsData,a=i.params,r=i.touches,s=i.rtlTranslate;if(i.enabled){var l=t;if(l.originalEvent&&(l=l.originalEvent),n.isTouched){if(!n.isTouchEvent||"touchmove"===l.type){var c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),h="touchmove"===l.type?c.pageX:l.pageX,d="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=h,void(r.startY=d);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(A(r,{startX:h,startY:d,currentX:h,currentY:d}),n.touchStartTime=_()));if(n.isTouchEvent&&a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(d<r.startY&&i.translate<=i.maxTranslate()||d>r.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(h<r.startX&&i.translate<=i.maxTranslate()||h>r.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&m(l.target).is(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){r.currentX=h,r.currentY=d;var u,p=r.currentX-r.startX,f=r.currentY-r.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(f,2))<i.params.threshold))if(void 0===n.isScrolling&&(i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:p*p+f*f>=25&&(u=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,n.isScrolling=i.isHorizontal()?u>a.touchAngle:90-u>a.touchAngle)),n.isScrolling&&i.emit("touchMoveOpposite",l),void 0===n.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){i.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation(),n.isMoved||(a.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!a.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),n.isMoved=!0;var g=i.isHorizontal()?p:f;r.diff=g,g*=a.touchRatio,s&&(g=-g),i.swipeDirection=g>0?"prev":"next",n.currentTranslate=g+n.startTranslate;var v=!0,b=a.resistanceRatio;if(a.touchReleaseOnEdges&&(b=0),g>0&&n.currentTranslate>i.minTranslate()?(v=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+g,b))):g<0&&n.currentTranslate<i.maxTranslate()&&(v=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-g,b))),v&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),a.threshold>0){if(!(Math.abs(g)>a.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode||a.watchSlidesProgress||a.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&(0===n.velocities.length&&n.velocities.push({position:r[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[i.isHorizontal()?"currentX":"currentY"],time:_()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",l)}}function F(t){var e=this,i=e.touchEventsData,n=e.params,a=e.touches,o=e.rtlTranslate,r=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid;if(e.enabled){var c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,d=_(),u=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap click",c),u<300&&d-i.lastClickTime<300&&e.emit("doubleTap doubleClick",c)),i.lastClickTime=_(),w((function(){e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===a.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=n.followFinger?o?e.translate:-e.translate:-i.currentTranslate,!n.cssMode)if(n.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),f=i.velocities.pop(),g=p.position-f.position,m=p.time-f.time;e.velocity=g/m,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(m>150||_()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var v=1e3*n.freeModeMomentumRatio,b=e.velocity*v,y=e.translate+b;o&&(y=-y);var x,C,S=!1,k=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;if(y<e.maxTranslate())n.freeModeMomentumBounce?(y+e.maxTranslate()<-k&&(y=e.maxTranslate()-k),x=e.maxTranslate(),S=!0,i.allowMomentumBounce=!0):y=e.maxTranslate(),n.loop&&n.centeredSlides&&(C=!0);else if(y>e.minTranslate())n.freeModeMomentumBounce?(y-e.minTranslate()>k&&(y=e.minTranslate()+k),x=e.minTranslate(),S=!0,i.allowMomentumBounce=!0):y=e.minTranslate(),n.loop&&n.centeredSlides&&(C=!0);else if(n.freeModeSticky){for(var A,T=0;T<l.length;T+=1)if(l[T]>-y){A=T;break}y=-(y=Math.abs(l[A]-y)<Math.abs(l[A-1]-y)||"next"===e.swipeDirection?l[A]:l[A-1])}if(C&&e.once("transitionEnd",(function(){e.loopFix()})),0!==e.velocity){if(v=o?Math.abs((-y-e.translate)/e.velocity):Math.abs((y-e.translate)/e.velocity),n.freeModeSticky){var E=Math.abs((o?-y:y)-e.translate),L=e.slidesSizesGrid[e.activeIndex];v=E<L?n.speed:E<2*L?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&S?(e.updateProgress(x),e.setTransition(v),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating=!0,r.transitionEnd((function(){e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),setTimeout((function(){e.setTranslate(x),r.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(e.updateProgress(y),e.setTransition(v),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,r.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(y)),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(n.freeModeSticky)return void e.slideToClosest();n.freeMode&&e.emit("_freeModeNoMomentumRelease")}(!n.freeModeMomentum||u>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var D=0,P=e.slidesSizesGrid[0],M=0;M<s.length;M+=M<n.slidesPerGroupSkip?1:n.slidesPerGroup){var I=M<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==s[M+I]?h>=s[M]&&h<s[M+I]&&(D=M,P=s[M+I]-s[M]):h>=s[M]&&(D=M,P=s[s.length-1]-s[s.length-2])}var O=(h-s[D])/P,z=D<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(O>=n.longSwipesRatio?e.slideTo(D+z):e.slideTo(D)),"prev"===e.swipeDirection&&(O>1-n.longSwipesRatio?e.slideTo(D+z):e.slideTo(D))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);
52!e.navigation||c.target!==e.navigation.nextEl&&c.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(D+z),"prev"===e.swipeDirection&&e.slideTo(D)):c.target===e.navigation.nextEl?e.slideTo(D+z):e.slideTo(D)}}}}function H(){var t=this,e=t.params,i=t.el;if(!i||0!==i.offsetWidth){e.breakpoints&&t.setBreakpoint();var n=t.allowSlideNext,a=t.allowSlidePrev,o=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=a,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}}function B(t){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function j(){var t=this,e=t.wrapperEl,i=t.rtlTranslate;if(t.enabled){t.previousTranslate=t.translate,t.isHorizontal()?t.translate=i?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var n=t.maxTranslate()-t.minTranslate();(0===n?0:(t.translate-t.minTranslate())/n)!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var Y=!1;function W(){}var X={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1},V={modular:{useParams:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(i){var n=e.modules[i];n.params&&A(t,n.params)}))},useModules:function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(i){var n=e.modules[i],a=t[i]||{};n.on&&e.on&&Object.keys(n.on).forEach((function(t){e.on(t,n.on[t])})),n.create&&n.create.bind(e)(a)}))}}
vendor: 37,307 bytes, line 52
52,eventsEmitter:{on:function(t,e,i){var n=this;if("function"!=typeof e)return n;var a=i?"unshift":"push";return t.split(" ").forEach((function(t){n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][a](e)})),n},once:function(t,e,i){var n=this;if("function"!=typeof e)return n;function a(){n.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];e.apply(n,o)}return a.__emitterProxy=e,n.on(t,a,i)},onAny:function(t,e){var i=this;if("function"!=typeof t)return i;var n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny:function(t){var e=this;if(!e.eventsAnyListeners)return e;var i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off:function(t,e){var i=this;return i.eventsListeners?(t.split(" ").forEach((function(t){void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach((function(n,a){(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&i.eventsListeners[t].splice(a,1)}))})),i):i},emit:function(){var t,e,i,n=this;if(!n.eventsListeners)return n;for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],e=o.slice(1,o.length),i=n):(t=o[0].events,e=o[0].data,i=o[0].context||n),e.unshift(i);var s=Array.isArray(t)?t:t.split(" ");return s.forEach((function(t){n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach((function(n){n.apply(i,[t].concat(e))})),n.eventsListeners&&n.eventsListeners[t]&&n.eventsListeners[t].forEach((function(t){t.apply(i,e)}))})),n}},update:{updateSize:function(){var t,e,i=this,n=i.$el;t=void 0!==i.params.width&&null!==i.params.width?i.params.width:n[0].clientWidth,e=void 0!==i.params.height&&null!==i.params.height?i.params.height:n[0].clientHeight,0===t&&i.isHorizontal()||0===e&&i.isVertical()||(t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),e=e-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),A(i,{width:t,height:e,size:i.isHorizontal()?t:e}))},updateSlides:function(){var t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}var n=t.params,a=t.$wrapperEl,o=t.size,r=t.rtlTranslate,s=t.wrongRTL,l=t.virtual&&n.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,h=a.children("."+t.params.slideClass),d=l?t.virtual.slides.length:h.length,u=[],p=[],f=[],g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(t));var m=n.slidesOffsetAfter;"function"==typeof m&&(m=n.slidesOffsetAfter.call(t));var v=t.snapGrid.length,b=t.slidesGrid.length,y=n.spaceBetween,x=-g,w=0,_=0;if(void 0!==o){var C,S;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*o),t.virtualSize=-y,r?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),n.slidesPerColumn>1&&(C=Math.floor(d/n.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(C=Math.max(C,n.slidesPerView*n.slidesPerColumn)));for(var k,T,E,L=n.slidesPerColumn,D=C/L,P=Math.floor(d/n.slidesPerColumn),M=0;M<d;M+=1){S=0;var I=h.eq(M);if(n.slidesPerColumn>1){var O=void 0,z=void 0,N=void 0;if("row"===n.slidesPerColumnFill&&n.slidesPerGroup>1){var R=Math.floor(M/(n.slidesPerGroup*n.slidesPerColumn)),F=M-n.slidesPerColumn*n.slidesPerGroup*R,H=0===R?n.slidesPerGroup:Math.min(Math.ceil((d-R*L*n.slidesPerGroup)/L),n.slidesPerGroup);O=(z=F-(N=Math.floor(F/H))*H+R*n.slidesPerGroup)+N*C/L,I.css({"-webkit-box-ordinal-group":O,"-moz-box-ordinal-group":O,"-ms-flex-order":O,"-webkit-order":O,order:O})}else"column"===n.slidesPerColumnFill?(N=M-(z=Math.floor(M/L))*L,(z>P||z===P&&N===L-1)&&(N+=1)>=L&&(N=0,z+=1)):z=M-(N=Math.floor(M/D))*D;I.css(e("margin-top"),0!==N?n.spaceBetween&&n.spaceBetween+"px":"")}if("none"!==I.css("display")){if("auto"===n.slidesPerView){var B=getComputedStyle(I[0]),j=I[0].style.transform,Y=I[0].style.webkitTransform;if(j&&(I[0].style.transform="none"),Y&&(I[0].style.webkitTransform="none"),n.roundLengths)S=t.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var W=i(B,"width"),X=i(B,"padding-left"),V=i(B,"padding-right"),$=i(B,"margin-left"),G=i(B,"margin-right"),q=B.getPropertyValue("box-sizing");if(q&&"border-box"===q)S=W+$+G;else{var U=I[0],Z=U.clientWidth;S=W+X+V+$+G+(U.offsetWidth-Z)}}j&&(I[0].style.transform=j),Y&&(I[0].style.webkitTransform=Y),n.roundLengths&&(S=Math.floor(S))}else S=(o-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),h[M]&&(h[M].style[e("width")]=S+"px");h[M]&&(h[M].swiperSlideSize=S),f.push(S),n.centeredSlides?(x=x+S/2+w/2+y,0===w&&0!==M&&(x=x-o/2-y),0===M&&(x=x-o/2-y),Math.abs(x)<.001&&(x=0),n.roundLengths&&(x=Math.floor(x)),_%n.slidesPerGroup==0&&u.push(x),p.push(x)):(n.roundLengths&&(x=Math.floor(x)),(_-Math.min(t.params.slidesPerGroupSkip,_))%t.params.slidesPerGroup==0&&u.push(x),p.push(x),x=x+S+y),t.virtualSize+=S+y,w=S,_+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+m,r&&s&&("slide"===n.effect||"coverflow"===n.effect)&&a.css({width:t.virtualSize+n.spaceBetween+"px"}),n.setWrapperSize&&a.css(((T={})[e("width")]=t.virtualSize+n.spaceBetween+"px",T)),n.slidesPerColumn>1&&(t.virtualSize=(S+n.spaceBetween)*C,t.virtualSize=Math.ceil(t.virtualSize/n.slidesPerColumn)-n.spaceBetween,a.css(((E={})[e("width")]=t.virtualSize+n.spaceBetween+"px",E)),n.centeredSlides)){k=[];for(var K=0;K<u.length;K+=1){var J=u[K];n.roundLengths&&(J=Math.floor(J)),u[K]<t.virtualSize+u[0]&&k.push(J)}u=k}if(!n.centeredSlides){k=[];for(var Q=0;Q<u.length;Q+=1){var tt=u[Q];n.roundLengths&&(tt=Math.floor(tt)),u[Q]<=t.virtualSize-o&&k.push(tt)}u=k,Math.floor(t.virtualSize-o)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-o)}if(0===u.length&&(u=[0]),0!==n.spaceBetween){var et,it=t.isHorizontal()&&r?"marginLeft":e("marginRight");h.filter((function(t,e){return!n.cssMode||e!==h.length-1})).css(((et={})[it]=y+"px",et))}if(n.centeredSlides&&n.centeredSlidesBounds){var nt=0;f.forEach((function(t){nt+=t+(n.spaceBetween?n.spaceBetween:0)}));var at=(nt-=n.spaceBetween)-o;u=u.map((function(t){return t<0?-g:t>at?at+m:t}))}if(n.centerInsufficientSlides){var ot=0;if(f.forEach((function(t){ot+=t+(n.spaceBetween?n.spaceBetween:0)})),(ot-=n.spaceBetween)<o){var rt=(o-ot)/2;u.forEach((function(t,e){u[e]=t-rt})),p.forEach((function(t,e){p[e]=t+rt}))}}A(t,{slides:h,snapGrid:u,slidesGrid:p,slidesSizesGrid:f}),d!==c&&t.emit("slidesLengthChange"),u.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==b&&t.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesOffset()}},updateAutoHeight:function(t){var e,i=this,n=[],a=i.virtual&&i.params.virtual.enabled,o=0;"number"==typeof t?i.setTransition(t):!0===t&&i.setTransition(i.params.speed);var r=function(t){return a?i.slides.filter((function(e){return parseInt(e.getAttribute("data-swiper-slide-index"),10)===t}))[0]:i.slides.eq(t)[0]};if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)if(i.params.centeredSlides)i.visibleSlides.each((function(t){n.push(t)}));else for(e=0;e<Math.ceil(i.params.slidesPerView);e+=1){var s=i.activeIndex+e;if(s>i.slides.length&&!a)break;n.push(r(s))}else n.push(r(i.activeIndex));for(e=0;e<n.length;e+=1)if(void 0!==n[e]){var l=n[e].offsetHeight;o=l>o?l:o}o&&i.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this,i=e.params,n=e.slides,a=e.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&e.updateSlidesOffset();var o=-t;a&&(o=t),n.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var r=0;r<n.length;r+=1){var s=n[r],l=(o+(i.centeredSlides?e.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){var c=-(o-s.swiperSlideOffset),h=c+e.slidesSizesGrid[r];(c>=0&&c<e.size-1||h>1&&h<=e.size||c<=0&&h>=e.size)&&(e.visibleSlides.push(s),e.visibleSlidesIndexes.push(r),n.eq(r).addClass(i.slideVisibleClass))}s.progress=a?-l:l}e.visibleSlides=m(e.visibleSlides)}},updateProgress:function(t){var e=this;if(void 0===t){var i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}var n=e.params,a=e.maxTranslate()-e.minTranslate(),o=e.progress,r=e.isBeginning,s=e.isEnd,l=r,c=s;0===a?(o=0,r=!0,s=!0):(r=(o=(t-e.minTranslate())/a)<=0,s=o>=1),A(e,{progress:o,isBeginning:r,isEnd:s}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),s&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!s)&&e.emit("fromEdge"),e.emit("progress",o)},updateSlidesClasses:function(){var t,e=this,i=e.slides,n=e.params,a=e.$wrapperEl,o=e.activeIndex,r=e.realIndex,s=e.virtual&&n.virtual.enabled;i.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(t=s?e.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+o+'"]'):i.eq(o)).addClass(n.slideActiveClass),n.loop&&(t.hasClass(n.slideDuplicateClass)?a.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass):a.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass));var l=t.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=i.eq(0)).addClass(n.slideNextClass);var c=t.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=i.eq(-1)).addClass(n.slidePrevClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?a.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):a.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?a.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):a.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(t){var e,i=this,n=i.rtlTranslate?i.translate:-i.translate,a=i.slidesGrid,o=i.snapGrid,r=i.params,s=i.activeIndex,l=i.realIndex,c=i.snapIndex,h=t;if(void 0===h){for(var d=0;d<a.length;d+=1)void 0!==a[d+1]?n>=a[d]&&n<a[d+1]-(a[d+1]-a[d])/2?h=d:n>=a[d]&&n<a[d+1]&&(h=d+1):n>=a[d]&&(h=d);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(o.indexOf(n)>=0)e=o.indexOf(n);else{var u=Math.min(r.slidesPerGroupSkip,h);e=u+Math.floor((h-u)/r.slidesPerGroup)}if(e>=o.length&&(e=o.length-1),h!==s){var p=parseInt(i.slides.eq(h).attr("data-swiper-slide-index")||h,10);A(i,{snapIndex:e,realIndex:p,previousIndex:s,activeIndex:h}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&i.emit("slideChange")}else e!==c&&(i.snapIndex=e,i.emit("snapIndexChange"))},updateClickedSlide:function(t){var e,i=this,n=i.params,a=m(t.target).closest("."+n.slideClass)[0],o=!1;if(a)for(var r=0;r<i.slides.length;r+=1)if(i.slides[r]===a){o=!0,e=r;break}if(!a||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(m(a).attr("data-swiper-slide-index"),10):i.clickedIndex=e,n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},translate:{getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this,i=e.params,n=e.rtlTranslate,a=e.translate,o=e.$wrapperEl;if(i.virtualTranslate)return n?-a:a;if(i.cssMode)return a;var r=C(o[0],t);return n&&(r=-r),r||0},setTranslate:function(t,e){var i=this,n=i.rtlTranslate,a=i.params,o=i.$wrapperEl,r=i.wrapperEl,s=i.progress,l=0,c=0;i.isHorizontal()?l=n?-t:t:c=t,a.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),a.cssMode?r[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:a.virtualTranslate||o.transform("translate3d("+l+"px, "+c+"px, 0px)"),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c;var h=i.maxTranslate()-i.minTranslate();(0===h?0:(t-i.minTranslate())/h)!==s&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,i,n,a){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===n&&(n=!0);var o=this,r=o.params,s=o.wrapperEl;if(o.animating&&r.preventInteractionOnTransition)return!1;var l,c=o.minTranslate(),h=o.maxTranslate();if(l=n&&t>c?c:n&&t<h?h:t,o.updateProgress(l),r.cssMode){var d,u=o.isHorizontal();return 0===e?s[u?"scrollLeft":"scrollTop"]=-l:s.scrollTo?s.scrollTo(((d={})[u?"left":"top"]=-l,d.behavior="smooth",d)):s[u?"scrollLeft":"scrollTop"]=-l,!0}return 0===e?(o.setTransition(0),o.setTranslate(l),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(l),i&&(o.emit("beforeTransitionStart",e,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,i&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){var i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var i=this,n=i.activeIndex,a=i.params,o=i.previousIndex;if(!a.cssMode){a.autoHeight&&i.updateAutoHeight();var r=e;if(r||(r=n>o?"next":n<o?"prev":"reset"),i.emit("transitionStart"),t&&n!==o){if("reset"===r)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===r?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}},transitionEnd:function(t,e){void 0===t&&(t=!0);var i=this,n=i.activeIndex,a=i.previousIndex,o=i.params;if(i.animating=!1,!o.cssMode){i.setTransition(0);var r=e;if(r||(r=n>a?"next":n<a?"prev":"reset"),i.emit("transitionEnd"),t&&n!==a){if("reset"===r)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===r?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}}},slide:{slideTo:function(t,e,i,n,a){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if("string"==typeof t){var o=parseInt(t,10);if(!isFinite(o))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=o}var r=this,s=t;s<0&&(s=0);var l=r.params,c=r.snapGrid,h=r.slidesGrid,d=r.previousIndex,u=r.activeIndex,p=r.rtlTranslate,f=r.wrapperEl,g=r.enabled;if(r.animating&&l.preventInteractionOnTransition||!g&&!n&&!a)return!1;var m=Math.min(r.params.slidesPerGroupSkip,s),v=m+Math.floor((s-m)/r.params.slidesPerGroup);v>=c.length&&(v=c.length-1),(u||l.initialSlide||0)===(d||0)&&i&&r.emit("beforeSlideChangeStart");var b,y=-c[v];if(r.updateProgress(y),l.normalizeSlideIndex)for(var x=0;x<h.length;x+=1){var w=-Math.floor(100*y),_=Math.floor(100*h[x]),C=Math.floor(100*h[x+1]);void 0!==h[x+1]?w>=_&&w<C-(C-_)/2?s=x:w>=_&&w<C&&(s=x+1):w>=_&&(s=x)}if(r.initialized&&s!==u){if(!r.allowSlideNext&&y<r.translate&&y<r.minTranslate())return!1;if(!r.allowSlidePrev&&y>r.translate&&y>r.maxTranslate()&&(u||0)!==s)return!1}if(b=s>u?"next":s<u?"prev":"reset",p&&-y===r.translate||!p&&y===r.translate)return r.updateActiveIndex(s),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(y),"reset"!==b&&(r.transitionStart(i,b),r.transitionEnd(i,b)),!1;if(l.cssMode){var S,k=r.isHorizontal(),A=-y;return p&&(A=f.scrollWidth-f.offsetWidth-A),0===e?f[k?"scrollLeft":"scrollTop"]=A:f.scrollTo?f.scrollTo(((S={})[k?"left":"top"]=A,S.behavior="smooth",S)):f[k?"scrollLeft":"scrollTop"]=A,!0}return 0===e?(r.setTransition(0),r.setTranslate(y),r.updateActiveIndex(s),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,b),r.transitionEnd(i,b)):(r.setTransition(e),r.setTranslate(y),r.updateActiveIndex(s),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,b),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,b))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);var a=this,o=t;return a.params.loop&&(o+=a.loopedSlides),a.slideTo(o,e,i,n)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this,a=n.params,o=n.animating;if(!n.enabled)return n;var r=n.activeIndex<a.slidesPerGroupSkip?1:a.slidesPerGroup;if(a.loop){if(o&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(n.activeIndex+r,t,e,i)},slidePrev:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this,a=n.params,o=n.animating,r=n.snapGrid,s=n.slidesGrid,l=n.rtlTranslate;if(!n.enabled)return n;if(a.loop){if(o&&a.loopPreventsSlide)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var h,d=c(l?n.translate:-n.translate),u=r.map((function(t){return c(t)})),p=r[u.indexOf(d)-1];return void 0===p&&a.cssMode&&r.forEach((function(t){!p&&d>=t&&(p=t)})),void 0!==p&&(h=s.indexOf(p))<0&&(h=n.activeIndex-1),n.slideTo(h,t,e,i)},slideReset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===n&&(n=.5);var a=this,o=a.activeIndex,r=Math.min(a.params.slidesPerGroupSkip,o),s=r+Math.floor((o-r)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[s]){var c=a.snapGrid[s];l-c>(a.snapGrid[s+1]-c)*n&&(o+=a.params.slidesPerGroup)}else{var h=a.snapGrid[s-1];l-h<=(a.snapGrid[s]-h)*n&&(o-=a.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,a.slidesGrid.length-1),a.slideTo(o,t,e,i)},slideToClickedSlide:function(){var t,e=this,i=e.params,n=e.$wrapperEl,a="auto"===i.slidesPerView?e.slidesPerViewDynamic():i.slidesPerView,o=e.clickedIndex;if(i.loop){if(e.animating)return;t=parseInt(m(e.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?o<e.loopedSlides-a/2||o>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),o=n.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),w((function(){e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-a?(e.loopFix(),o=n.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),w((function(){e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(){var t=this,e=o(),i=t.params,n=t.$wrapperEl;n.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var a=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var r=i.slidesPerGroup-a.length%i.slidesPerGroup;if(r!==i.slidesPerGroup){for(var s=0;s<r;s+=1){var l=m(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);n.append(l)}a=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=a.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>a.length&&(t.loopedSlides=a.length);var c=[],h=[];a.each((function(e,i){var n=m(e);i<t.loopedSlides&&h.push(e),i<a.length&&i>=a.length-t.loopedSlides&&c.push(e),n.attr("data-swiper-slide-index",i)}));for(var d=0;d<h.length;d+=1)n.append(m(h[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var u=c.length-1;u>=0;u-=1)n.prepend(m(c[u].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var t=this;t.emit("beforeLoopFix");var e,i=t.activeIndex,n=t.slides,a=t.loopedSlides,o=t.allowSlidePrev,r=t.allowSlideNext,s=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-s[i]-t.getTranslate();i<a?(e=n.length-3*a+i,e+=a,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):i>=n.length-a&&(e=-n.length+i+a,e+=a,t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=o,t.allowSlideNext=r,t.emit("loopFix")},loopDestroy:function(){var t=this,e=t.$wrapperEl,i=t.params,n=t.slides;e.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var i=e.el;i.style.cursor="move",i.style.cursor=t?"-webkit-grabbing":"-webkit-grab",i.style.cursor=t?"-moz-grabbin":"-moz-grab",i.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}},manipulation:{appendSlide:function(t){var e=this,i=e.$wrapperEl,n=e.params;if(n.loop&&e.loopDestroy(),"object"==typeof t&&"length"in t)for(var a=0;a<t.length;a+=1)t[a]&&i.append(t[a]);else i.append(t);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update()},prependSlide:function(t){var e=this,i=e.params,n=e.$wrapperEl,a=e.activeIndex;i.loop&&e.loopDestroy();var o=a+1;if("object"==typeof t&&"length"in t){for(var r=0;r<t.length;r+=1)t[r]&&n.prepend(t[r]);o=a+t.length}else n.prepend(t);i.loop&&e.loopCreate(),i.observer&&e.support.observer||e.update(),e.slideTo(o,0,!1)},addSlide:function(t,e){var i=this,n=i.$wrapperEl,a=i.params,o=i.activeIndex;a.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+a.slideClass));var r=i.slides.length;if(t<=0)i.prependSlide(e);else if(t>=r)i.appendSlide(e);else{for(var s=o>t?o+1:o,l=[],c=r-1;c>=t;c-=1){var h=i.slides.eq(c);h.remove(),l.unshift(h)}if("object"==typeof e&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&n.append(e[d]);s=o>t?o+e.length:o}else n.append(e);for(var u=0;u<l.length;u+=1)n.append(l[u]);a.loop&&i.loopCreate(),a.observer&&i.support.observer||i.update(),a.loop?i.slideTo(s+i.loopedSlides,0,!1):i.slideTo(s,0,!1)}},removeSlide:function(t){var e=this,i=e.params,n=e.$wrapperEl,a=e.activeIndex;i.loop&&(a-=e.loopedSlides,e.loopDestroy(),e.slides=n.children("."+i.slideClass));var o,r=a;if("object"==typeof t&&"length"in t){for(var s=0;s<t.length;s+=1)o=t[s],e.slides[o]&&e.slides.eq(o).remove(),o<r&&(r-=1);r=Math.max(r,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<r&&(r-=1),r=Math.max(r,0);i.loop&&e.loopCreate(),i.observer&&e.support.observer||e.update(),i.loop?e.slideTo(r+e.loopedSlides,0,!1):e.slideTo(r,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},events:{attachEvents:function(){var t=this,e=o(),i=t.params,n=t.touchEvents,a=t.el,r=t.wrapperEl,s=t.device,l=t.support;t.onTouchStart=N.bind(t),t.onTouchMove=R.bind(t),t.onTouchEnd=F.bind(t),i.cssMode&&(t.onScroll=j.bind(t)),t.onClick=B.bind(t);var c=!!i.nested;if(!l.touch&&l.pointerEvents)a.addEventListener(n.start,t.onTouchStart,!1),e.addEventListener(n.move,t.onTouchMove,c),e.addEventListener(n.end,t.onTouchEnd,!1);else{if(l.touch){var h=!("touchstart"!==n.start||!l.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(n.start,t.onTouchStart,h),a.addEventListener(n.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),a.addEventListener(n.end,t.onTouchEnd,h),n.cancel&&a.addEventListener(n.cancel,t.onTouchEnd,h),Y||(e.addEventListener("touchstart",W),Y=!0)}(i.simulateTouch&&!s.ios&&!s.android||i.simulateTouch&&!l.touch&&s.ios)&&(a.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,c),e.addEventListener("mouseup",t.onTouchEnd,!1))}(i.preventClicks||i.preventClicksPropagation)&&a.addEventListener("click",t.onClick,!0),i.cssMode&&r.addEventListener("scroll",t.onScroll),i.updateOnWindowResize?t.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",H,!0):t.on("observerUpdate",H,!0)},detachEvents:function(){var t=this,e=o(),i=t.params,n=t.touchEvents,a=t.el,r=t.wrapperEl,s=t.device,l=t.support,c=!!i.nested;if(!l.touch&&l.pointerEvents)a.removeEventListener(n.start,t.onTouchStart,!1),e.removeEventListener(n.move,t.onTouchMove,c),e.removeEventListener(n.end,t.onTouchEnd,!1);else{if(l.touch){var h=!("onTouchStart"!==n.start||!l.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(n.start,t.onTouchStart,h),a.removeEventListener(n.move,t.onTouchMove,c),a.removeEventListener(n.end,t.onTouchEnd,h),n.cancel&&a.removeEventListener(n.cancel,t.onTouchEnd,h)}(i.simulateTouch&&!s.ios&&!s.android||i.simulateTouch&&!l.touch&&s.ios)&&(a.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,c),e.removeEventListener("mouseup",t.onTouchEnd,!1))}(i.preventClicks||i.preventClicksPropagation)&&a.removeEventListener("click",t.onClick,!0),i.cssMode&&r.removeEventListener("scroll",t.onScroll),t.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",H)}},breakpoints:{setBreakpoint:function(){var t=this,e=t.activeIndex,i=t.initialized,n=t.loopedSlides,a=void 0===n?0:n,o=t.params,r=t.$el,s=o.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var l=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(l&&t.currentBreakpoint!==l){var c=l in s?s[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(t){var e=c[t];void 0!==e&&(c[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")}));var h=c||t.originalParams,d=o.slidesPerColumn>1,u=h.slidesPerColumn>1,p=o.enabled;d&&!u?(r.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!d&&u&&(r.addClass(o.containerModifierClass+"multirow"),(h.slidesPerColumnFill&&"column"===h.slidesPerColumnFill||!h.slidesPerColumnFill&&"column"===o.slidesPerColumnFill)&&r.addClass(o.containerModifierClass+"multirow-column"),t.emitContainerClasses());var f=h.direction&&h.direction!==o.direction,g=o.loop&&(h.slidesPerView!==o.slidesPerView||f);f&&i&&t.changeDirection(),A(t.params,h);var m=t.params.enabled;A(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!m?t.disable():!p&&m&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",h),g&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-a+t.loopedSlides,0,!1)),t.emit("breakpoint",h)}}},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),t&&("container"!==e||i)){var n=!1,a=s(),o="window"===e?a.innerHeight:i.clientHeight,r=Object.keys(t).map((function(t){if("string"==typeof t&&0===t.indexOf("@")){var e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));r.sort((function(t,e){return parseInt(t.value,10)-parseInt(e.value,10)}));for(var l=0;l<r.length;l+=1){var c=r[l],h=c.point,d=c.value;"window"===e?a.matchMedia("(min-width: "+d+"px)").matches&&(n=h):d<=i.clientWidth&&(n=h)}return n||"max"}}},checkOverflow:{checkOverflow:function(){var t=this,e=t.params,i=t.isLocked,n=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&n?t.isLocked=n<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,i!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),i&&i!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}},classes:{addClasses:function(){var t,e,i,n=this,a=n.classNames,o=n.params,r=n.rtl,s=n.$el,l=n.device,c=n.support,h=(t=["initialized",o.direction,{"pointer-events":c.pointerEvents&&!c.touch},{"free-mode":o.freeMode},{autoheight:o.autoHeight},{rtl:r},{multirow:o.slidesPerColumn>1},{"multirow-column":o.slidesPerColumn>1&&"column"===o.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode}],e=o.containerModifierClass,i=[],t.forEach((function(t){"object"==typeof t?Object.keys(t).forEach((function(n){t[n]&&i.push(e+n)})):"string"==typeof t&&i.push(e+t)})),i);a.push.apply(a,h),s.addClass([].concat(a).join(" ")),n.emitContainerClasses()},removeClasses:function(){var t=this,e=t.$el,i=t.classNames;e.removeClass(i.join(" ")),t.emitContainerClasses()}},images:{loadImage:function(t,e,i,n,a,o){var r,l=s();function c(){o&&o()}m(t).parent("picture")[0]||t.complete&&a?c():e?((r=new l.Image).onload=c,r.onerror=c,n&&(r.sizes=n),i&&(r.srcset=i),e&&(r.src=e)):c()},preloadImages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},$={},G=function(){function e(){for(var t,i,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];if(1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?i=a[0]:(t=a[0],i=a[1]),i||(i={}),i=A({},i),t&&!i.el&&(i.el=t),i.el&&m(i.el).length>1){var r=[];return m(i.el).each((function(t){var n=A({},i,{el:t});r.push(new e(n))})),r}var s=this;s.__swiper__=!0,s.support=D(),s.device=P({userAgent:i.userAgent}),s.browser=M(),s.eventsListeners={},s.eventsAnyListeners=[],void 0===s.modules&&(s.modules={}),Object.keys(s.modules).forEach((function(t){var e=s.modules[t];if(e.params){var n=Object.keys(e.params)[0],a=e.params[n];if("object"!=typeof a||null===a)return;if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===i[n]&&(i[n]={auto:!0}),!(n in i)||!("enabled"in a))return;!0===i[n]&&(i[n]={enabled:!0}),"object"!=typeof i[n]||"enabled"in i[n]||(i[n].enabled=!0),i[n]||(i[n]={enabled:!1})}}));var l,c,h=A({},X);return s.useParams(h),s.params=A({},h,$,i),s.originalParams=A({},s.params),s.passedParams=A({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach((function(t){s.on(t,s.params.on[t])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=m,A(s,{enabled:s.params.enabled,el:t,classNames:[],slides:m(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===s.params.direction},isVertical:function(){return"vertical"===s.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],s.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),s.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},s.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:_(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.useModules(),s.emit("_swiper"),s.params.init&&s.init(),s}var i,n,a=e.prototype;return a.enable=function(){var t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))},a.disable=function(){var t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))},a.setProgress=function(t,e){var i=this;t=Math.min(Math.max(t,0),1);var n=i.minTranslate(),a=(i.maxTranslate()-n)*t+n;i.translateTo(a,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()},a.emitContainerClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=t.el.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)}));t.emit("_containerClasses",e.join(" "))}},a.getSlideClasses=function(t){var e=this;return t.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)})).join(" ")},a.emitSlidesClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=[];t.slides.each((function(i){var n=t.getSlideClasses(i);e.push({slideEl:i,classNames:n}),t.emit("_slideClass",i,n)})),t.emit("_slideClasses",e)}},a.slidesPerViewDynamic=function(){var t=this,e=t.params,i=t.slides,n=t.slidesGrid,a=t.size,o=t.activeIndex,r=1;if(e.centeredSlides){for(var s,l=i[o].swiperSlideSize,c=o+1;c<i.length;c+=1)i[c]&&!s&&(r+=1,(l+=i[c].swiperSlideSize)>a&&(s=!0));for(var h=o-1;h>=0;h-=1)i[h]&&!s&&(r+=1,(l+=i[h].swiperSlideSize)>a&&(s=!0))}else for(var d=o+1;d<i.length;d+=1)n[d]-n[o]<a&&(r+=1);return r},a.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,i=t.params;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(n(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||n(),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function n(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}},a.changeDirection=function(t,e){void 0===e&&(e=!0);var i=this,n=i.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(""+i.params.containerModifierClass+n).addClass(""+i.params.containerModifierClass+t),i.emitContainerClasses(),i.params.direction=t,i.slides.each((function(e){"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i},a.mount=function(t){var e=this;if(e.mounted)return!0;var i=m(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;var n=function(){return"."+(e.params.wrapperClass||"").trim().split(" ").join(".")},a=function(){if(t&&t.shadowRoot&&t.shadowRoot.querySelector){var e=m(t.shadowRoot.querySelector(n()));return e.children=function(t){return i.children(t)},e}return i.children(n())}();if(0===a.length&&e.params.createElements){var r=o().createElement("div");a=m(r),r.className=e.params.wrapperClass,i.append(r),i.children("."+e.params.slideClass).each((function(t){a.append(t)}))}return A(e,{$el:i,el:t,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===a.css("display")}),!0},a.init=function(t){var e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(
52),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e},a.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var i,n=this,a=n.params,o=n.$el,r=n.$wrapperEl,s=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),a.loop&&n.loopDestroy(),e&&(n.removeClasses(),o.removeAttr("style"),r.removeAttr("style"),s&&s.length&&s.removeClass([a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(t){n.off(t)})),!1!==t&&(n.$el[0].swiper=null,i=n,Object.keys(i).forEach((function(t){try{i[t]=null}catch(t){}try{delete i[t]}catch(t){}}))),n.destroyed=!0),null},e.extendDefaults=function(t){A($,t)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var i=t.name||Object.keys(e.prototype.modules).length+"_"+_();e.prototype.modules[i]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},i=e,n=[{key:"extendedDefaults",get:function(){return $}},{key:"defaults",get:function(){return X}}],null&&t(i.prototype,null),n&&t(i,n),e}();Object.keys(V).forEach((function(t){Object.keys(V[t]).forEach((function(e){G.prototype[e]=V[t][e]}))})),G.use([I,z]);var q={update:function(t){var e=this,i=e.params,n=i.slidesPerView,a=i.slidesPerGroup,o=i.centeredSlides,r=e.params.virtual,s=r.addSlidesBefore,l=r.addSlidesAfter,c=e.virtual,h=c.from,d=c.to,u=c.slides,p=c.slidesGrid,f=c.renderSlide,g=c.offset;e.updateActiveIndex();var m,v,b,y=e.activeIndex||0;m=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(v=Math.floor(n/2)+a+l,b=Math.floor(n/2)+a+s):(v=n+(a-1)+l,b=a+s);var x=Math.max((y||0)-b,0),w=Math.min((y||0)+v,u.length-1),_=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);function C(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(A(e.virtual,{from:x,to:w,offset:_,slidesGrid:e.slidesGrid}),h===x&&d===w&&!t)return e.slidesGrid!==p&&_!==g&&e.slides.css(m,_+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:_,from:x,to:w,slides:function(){for(var t=[],e=x;e<=w;e+=1)t.push(u[e]);return t}()}),void(e.params.virtual.renderExternalUpdate&&C());var S=[],k=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var T=h;T<=d;T+=1)(T<x||T>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+T+'"]').remove();for(var E=0;E<u.length;E+=1)E>=x&&E<=w&&(void 0===d||t?k.push(E):(E>d&&k.push(E),E<h&&S.push(E)));k.forEach((function(t){e.$wrapperEl.append(f(u[t],t))})),S.sort((function(t,e){return e-t})).forEach((function(t){e.$wrapperEl.prepend(f(u[t],t))})),e.$wrapperEl.children(".swiper-slide").css(m,_+"px"),C()},renderSlide:function(t,e){var i=this,n=i.params.virtual;if(n.cache&&i.virtual.cache[e])return i.virtual.cache[e];var a=n.renderSlide?m(n.renderSlide.call(i,t,e)):m('<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",e),n.cache&&(i.virtual.cache[e]=a),a},appendSlide:function(t){var e=this;if("object"==typeof t&&"length"in t)for(var i=0;i<t.length;i+=1)t[i]&&e.virtual.slides.push(t[i]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide:function(t){var e=this,i=e.activeIndex,n=i+1,a=1;if(Array.isArray(t)){for(var o=0;o<t.length;o+=1)t[o]&&e.virtual.slides.unshift(t[o]);n=i+t.length,a=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){var r=e.virtual.cache,s={};Object.keys(r).forEach((function(t){var e=r[t],i=e.attr("data-swiper-slide-index");i&&e.attr("data-swiper-slide-index",parseInt(i,10)+1),s[parseInt(t,10)+a]=e})),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(n,0)},removeSlide:function(t){var e=this;if(null!=t){var i=e.activeIndex;if(Array.isArray(t))for(var n=t.length-1;n>=0;
52n-=1)e.virtual.slides.splice(t[n],1),e.params.virtual.cache&&delete e.virtual.cache[t[n]],t[n]<i&&(i-=1),i=Math.max(i,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<i&&(i-=1),i=Math.max(i,0);e.virtual.update(!0),e.slideTo(i,0)}},removeAllSlides:function(){var t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}},U={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){T(this,{virtual:e({},q,{slides:this.params.virtual.slides,cache:{}})})},on:{beforeInit:function(t){if(t.params.virtual.enabled){t.classNames.push(t.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};A(t.params,e),A(t.originalParams,e),t.params.initialSlide||t.virtual.update()}},setTranslate:function(t){t.params.virtual.enabled&&t.virtual.update()}}},Z={handle:function(t){var e=this;if(e.enabled){var i=s(),n=o(),a=e.rtlTranslate,r=t;r.originalEvent&&(r=r.originalEvent);var l=r.keyCode||r.charCode,c=e.params.keyboard.pageUpDown,h=c&&33===l,d=c&&34===l,u=37===l,p=39===l,f=38===l,g=40===l;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&g||d))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&u||e.isVertical()&&f||h))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||n.activeElement&&n.activeElement.nodeName&&("input"===n.activeElement.nodeName.toLowerCase()||"textarea"===n.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(h||d||u||p||f||g)){var m=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;var v=e.$el,b=v[0].clientWidth,y=v[0].clientHeight,x=i.innerWidth,w=i.innerHeight,_=e.$el.offset();a&&(_.left-=e.$el[0].scrollLeft);for(var C=[[_.left,_.top],[_.left+b,_.top],[_.left,_.top+y],[_.left+b,_.top+y]],S=0;S<C.length;S+=1){var k=C[S];if(k[0]>=0&&k[0]<=x&&k[1]>=0&&k[1]<=w){if(0===k[0]&&0===k[1])continue;m=!0}}if(!m)return}e.isHorizontal()?((h||d||u||p)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((d||p)&&!a||(h||u)&&a)&&e.slideNext(),((h||u)&&!a||(d||p)&&a)&&e.slidePrev()):((h||d||f||g)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(d||g)&&e.slideNext(),(h||f)&&e.slidePrev()),e.emit("keyPress",l)}}},enable:function(){var t=this,e=o();t.keyboard.enabled||(m(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this,e=o();t.keyboard.enabled&&(m(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},K={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){T(this,{keyboard:e({enabled:!1},Z)})},on:{init:function(t){t.params.keyboard.enabled&&t.keyboard.enable()},destroy:function(t){t.keyboard.enabled&&t.keyboard.disable()}}},J={lastScrollTime:_(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return s().navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t=o(),e="onwheel",i=e in t;if(!i){var n=t.createElement("div");n.setAttribute(e,"return;"),i="function"==typeof n.onwheel}return!i&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(i=t.implementation.hasFeature("Events.wheel","3.0")),i}()?"wheel":"mousewheel"},normalize:function(t){var e=0,i=0,n=0,a=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,a=10*i,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(n=t.deltaX),t.shiftKey&&!n&&(n=a,a=0),(n||a)&&t.deltaMode&&(1===t.deltaMode?(n*=40,a*=40):(n*=800,a*=800)),n&&!e&&(e=n<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:a}},handleMouseEnter:function(){this.enabled&&(this.mouseEntered=!0)},handleMouseLeave:function(){this.enabled&&(this.mouseEntered=!1)},handle:function(t){var e=t,i=this;if(i.enabled){var n=i.params.mousewheel;i.params.cssMode&&e.preventDefault();var a=i.$el;if("container"!==i.params.mousewheel.eventsTarget&&(a=m(i.params.mousewheel.eventsTarget)),!i.mouseEntered&&!a[
520].contains(e.target)&&!n.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var o=0,r=i.rtlTranslate?-1:1,s=J.normalize(e);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=-s.pixelX*r}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=-s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*r:-s.pixelY;if(0===o)return!0;n.invert&&(o=-o);var l=i.getTranslate()+o*n.sensitivity;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),(!!i.params.loop||!(l===i.minTranslate()||l===i.maxTranslate()))&&i.params.nested&&e.stopPropagation(),i.params.freeMode){var c={time:_(),delta:Math.abs(o),direction:Math.sign(o)},h=i.mousewheel.lastEventBeforeSnap,d=h&&c.time<h.time+500&&c.delta<=h.delta&&c.direction===h.direction;if(!d){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var u=i.getTranslate()+o*n.sensitivity,p=i.isBeginning,f=i.isEnd;if(u>=i.minTranslate()&&(u=i.minTranslate()),u<=i.maxTranslate()&&(u=i.maxTranslate()),i.setTransition(0),i.setTranslate(u),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!p&&i.isBeginning||!f&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var g=i.mousewheel.recentWheelEvents;g.length>=15&&g.shift();var v=g.length?g[g.length-1]:void 0,b=g[0];if(g.push(c),v&&(c.delta>v.delta||c.direction!==v.direction))g.splice(0);else if(g.length>=15&&c.time-b.time<500&&b.delta-c.delta>=1&&c.delta<=6){var y=o>0?.8:.2;i.mousewheel.lastEventBeforeSnap=c,g.splice(0),i.mousewheel.timeout=w((function(){i.slideToClosest(i.params.speed,!0,void 0,y)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=w((function(){i.mousewheel.lastEventBeforeSnap=c,g.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)}),500))}if(d||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),u===i.minTranslate()||u===i.maxTranslate())return!0}}else{var x={time:_(),delta:Math.abs(o),direction:Math.sign(o),raw:t},C=i.mousewheel.recentWheelEvents;C.length>=2&&C.shift();var S=C.length?C[C.length-1]:void 0;if(C.push(x),S?(x.direction!==S.direction||x.delta>S.delta||x.time>S.time+150)&&i.mousewheel.animateSlider(x):i.mousewheel.animateSlider(x),i.mousewheel.releaseScroll(x))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}},animateSlider:function(t){var e=this,i=s();return!(this.params.mousewheel.thresholdDelta&&t.delta<this.params.mousewheel.thresholdDelta||this.params.mousewheel.thresholdTime&&_()-e.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime||!(t.delta>=6&&_()-e.mousewheel.lastScrollTime<60)&&(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new i.Date).getTime(),1))},releaseScroll:function(t){var e=this,i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1},enable:function(){var t=this,e=J.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(i=m(t.params.mousewheel.eventsTarget)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this,e=J.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(i=m(t.params.mousewheel.eventsTarget)),i.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},Q={toggleEl:function(t,e){t[e?"addClass":"removeClass"](this.params.navigation.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=e)},update:function(){var t=this,e=t.params.navigation,i=t.navigation.toggleEl;if(!t.params.loop){var n=t.navigation,a=n.$nextEl,o=n.$prevEl;o&&o.length>0&&(t.isBeginning?i(o,!0):i(o,!1),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](e.lockClass)),a&&a.length>0&&(t.isEnd?i(a,!0):i(a,!1),t.params.watchOverflow&&t.enabled&&a[t.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(t){var e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick:function(t){var e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init:function(){var t,e,i=this,n=i.params.navigation;i.params.navigation=L(i.$el,i.params.navigation,i.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),(n.nextEl||n.prevEl)&&(n.nextEl&&(t=m(n.nextEl),i.params.uniqueNavElements&&"string"==typeof n.nextEl&&t.length>1&&1===i.$el.find(n.nextEl).length&&(t=i.$el.find(n.nextEl))),n.prevEl&&(e=m(n.prevEl),i.params.uniqueNavElements&&"string"==typeof n.prevEl&&e.length>1&&1===i.$el.find(n.prevEl).length&&(e=i.$el.find(n.prevEl))),t&&t.length>0&&t.on("click",i.navigation.onNextClick),e&&e.length>0&&e.on("click",i.navigation.onPrevClick),A(i.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}),i.enabled||(t&&t.addClass(n.lockClass),e&&e.addClass(n.lockClass)))},destroy:function(){var t=this,e=t.navigation,i=e.$nextEl,n=e.$prevEl;
vendor: 10,435 bytes, line 52
52i&&i.length&&(i.off("click",t.navigation.onNextClick),i.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",t.navigation.onPrevClick),n.removeClass(t.params.navigation.disabledClass))}},tt={update:function(){var t=this,e=t.rtl,i=t.params.pagination;if(i.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el,r=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((n=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>a-1-2*t.loopedSlides&&(n-=a-2*t.loopedSlides),n>r-1&&(n-=r),n<0&&"bullets"!==t.params.paginationType&&(n=r+n)):n=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var s,l,c,h=t.pagination.bullets;if(i.dynamicBullets&&(t.pagination.bulletSize=h.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=n-t.previousIndex,t.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),s=n-t.pagination.dynamicBulletIndex,c=((l=s+(Math.min(h.length,i.dynamicMainBullets)-1))+s)/2),h.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),o.length>1)h.each((function(t){var e=m(t),a=e.index();a===n&&e.addClass(i.bulletActiveClass),i.dynamicBullets&&(a>=s&&a<=l&&e.addClass(i.bulletActiveClass+"-main"),a===s&&e.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),a===l&&e.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))}));else{var d=h.eq(n),u=d.index();if(d.addClass(i.bulletActiveClass),i.dynamicBullets){for(var p=h.eq(s),f=h.eq(l),g=s;g<=l;g+=1)h.eq(g).addClass(i.bulletActiveClass+"-main");if(t.params.loop)if(u>=h.length-i.dynamicMainBullets){for(var v=i.dynamicMainBullets;v>=0;v-=1)h.eq(h.length-v).addClass(i.bulletActiveClass+"-main");h.eq(h.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else p.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),f.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else p.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),f.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){var b=Math.min(h.length,i.dynamicMainBullets+4),y=(t.pagination.bulletSize*b-t.pagination.bulletSize)/2-c*t.pagination.bulletSize,x=e?"right":"left";h.css(t.isHorizontal()?x:"top",y+"px")}}if("fraction"===i.type&&(o.find(E(i.currentClass)).text(i.formatFractionCurrent(n+1)),o.find(E(i.totalClass)).text(i.formatFractionTotal(r))),"progressbar"===i.type){var w;w=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var _=(n+1)/r,C=1,S=1;"horizontal"===w?C=_:S=_,o.find(E(i.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+C+") scaleY("+S+")").transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(o.html(i.renderCustom(t,n+1,r)),t.emit("paginationRender",o[0])):t.emit("paginationUpdate",o[0]),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el,a="";if("bullets"===e.type){var o=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&!t.params.loop&&o>i&&(o=i);for(var r=0;r<o;r+=1)e.renderBullet?a+=e.renderBullet.call(t,r,e.bulletClass):a+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(a),t.pagination.bullets=n.find(E(e.bulletClass))}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(a)),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(a)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t=this;t.params.pagination=L(t.$el,t.params.pagination,t.params.createElements,{el:"swiper-pagination"});var e=t.params.pagination;if(e.el){var i=m(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click",E(e.bulletClass),(function(e){e.preventDefault();var i=m(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)})),A(t.pagination,{$el:i,el:i[0]}),t.enabled||i.addClass(e.lockClass))}},destroy:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i=t.pagination.$el;i.removeClass(e.hiddenClass),i.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&i.off("click",E(e.bulletClass))}}},et={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,i=t.rtlTranslate,n=t.progress,a=e.dragSize,o=e.trackSize,r=e.$dragEl,s=e.$el,l=t.params.scrollbar,c=a,h=(o-a)*n;i?(h=-h)>0?(c=a-h,h=0):-h+a>o&&(c=o+h):h<0?(c=a+h,h=0):h+a>o&&(c=o-h),t.isHorizontal()?(r.transform("translate3d("+h+"px, 0, 0)"),r[0].style.width=c+"px"):(r.transform("translate3d(0px, "+h+"px, 0)"),r[0].style.height=c+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(t){var e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,i=e.$dragEl,n=e.$el;i[0].style.width="",i[0].style.height="";var a,o=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,r=t.size/t.virtualSize,s=r*(o/t.size);a="auto"===t.params.scrollbar.dragSize?o*r:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=a+"px":i[0].style.height=a+"px",n[0].style.display=r>=1?"none":"",t.params.scrollbar.hide&&(n[0].style.opacity=0),A(e,{trackSize:o,divider:r,moveDivider:s,dragSize:a}),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,i=this,n=i.scrollbar,a=i.rtlTranslate,o=n.$el,r=n.dragSize,s=n.trackSize,l=n.dragStartPos;e=(n.getPointerPosition(t)-o.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:r/2))/(s-r),e=Math.max(Math.min(e,1),0),a&&(e=1-e);var c=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*e;i.updateProgress(c),i.setTranslate(c),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(t){var e=this,i=e.params.scrollbar,n=e.scrollbar,a=e.$wrapperEl,o=n.$el,r=n.$dragEl;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===r[0]||t.target===r?n.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),a.transition(100),r.transition(100),n.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),i.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this,i=e.scrollbar,n=e.$wrapperEl,a=i.$el,o=i.$dragEl;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,i.setDragPosition(t),n.transition(0),a.transition(0),o.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this,i=e.params.scrollbar,n=e.scrollbar,a=e.$wrapperEl,o=n.$el;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),a.transition("")),i.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=w((function(){o.css("opacity",0),o.transition(400)}),1e3)),e.emit("scrollbarDragEnd",t),i.snapOnRelease&&e.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=o(),i=t.scrollbar,n=t.touchEventsTouch,a=t.touchEventsDesktop,r=t.params,s=t.support,l=i.$el[0],c=!(!s.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},h=!(!s.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};l&&(s.touch?(l.addEventListener(n.start,t.scrollbar.onDragStart,c),l.addEventListener(n.move,t.scrollbar.onDragMove,c),l.addEventListener(n.end,t.scrollbar.onDragEnd,h)):(l.addEventListener(a.start,t.scrollbar.onDragStart,c),e.addEventListener(a.move,t.scrollbar.onDragMove,c),e.addEventListener(a.end,t.scrollbar.onDragEnd,h)))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=o(),i=t.scrollbar,n=t.touchEventsTouch,a=t.touchEventsDesktop,r=t.params,s=t.support,l=i.$el[0],c=!(!s.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},h=!(!s.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};l&&(s.touch?(l.removeEventListener(n.start,t.scrollbar.onDragStart,c),l.removeEventListener(n.move,t.scrollbar.onDragMove,c),l.removeEventListener(n.end,t.scrollbar.onDragEnd,h)):(l.removeEventListener(a.start,t.scrollbar.onDragStart,c),e.removeEventListener(a.move,t.scrollbar.onDragMove,c),e.removeEventListener(a.end,t.scrollbar.onDragEnd,h)))}}
52,init:function(){var t=this,e=t.scrollbar,i=t.$el;t.params.scrollbar=L(i,t.params.scrollbar,t.params.createElements,{el:"swiper-scrollbar"});var n=t.params.scrollbar;if(n.el){var a=m(n.el);t.params.uniqueNavElements&&"string"==typeof n.el&&a.length>1&&1===i.find(n.el).length&&(a=i.find(n.el));var o=a.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=m('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(o)),A(e,{$el:a,el:a[0],$dragEl:o,dragEl:o[0]}),n.draggable&&e.enableDraggable(),a&&a[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}},destroy:function(){this.scrollbar.disableDraggable()}},it={setTransform:function(t,e){var i=this.rtl,n=m(t),a=i?-1:1,o=n.attr("data-swiper-parallax")||"0",r=n.attr("data-swiper-parallax-x"),s=n.attr("data-swiper-parallax-y"),l=n.attr("data-swiper-parallax-scale"),c=n.attr("data-swiper-parallax-opacity");if(r||s?(r=r||"0",s=s||"0"):this.isHorizontal()?(r=o,s="0"):(s=o,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*e*a+"%":r*e*a+"px",s=s.indexOf("%")>=0?parseInt(s,10)*e+"%":s*e+"px",null!=c){var h=c-(c-1)*(1-Math.abs(e));n[0].style.opacity=h}if(null==l)n.transform("translate3d("+r+", "+s+", 0px)");else{var d=l-(l-1)*(1-Math.abs(e));n.transform("translate3d("+r+", "+s+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,n=t.progress,a=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,n)})),i.each((function(e,i){var o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(i/2)-n*(a.length-1)),o=Math.min(Math.max(o,-1),1),m(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,o)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){var i=m(e),n=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;0===t&&(n=0),i.transition(n)}))}},nt={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,a=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-e,2)+Math.pow(a-i,2))},onGestureStart:function(t){var e=this,i=e.support,n=e.params.zoom,a=e.zoom,o=a.gesture;if(a.fakeGestureTouched=!1,a.fakeGestureMoved=!1,!i.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;a.fakeGestureTouched=!0,o.scaleStart=nt.getDistanceBetweenTouches(t)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=m(t.target).closest("."+e.params.slideClass),0===o.$slideEl.length&&(o.$slideEl=e.slides.eq(e.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent("."+n.containerClass),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl&&o.$imageEl.transition(0),e.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange:function(t){var e=this,i=e.support,n=e.params.zoom,a=e.zoom,o=a.gesture;if(!i.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;a.fakeGestureMoved=!0,o.scaleMove=nt.getDistanceBetweenTouches(t)}o.$imageEl&&0!==o.$imageEl.length?(i.gestures?a.scale=t.scale*a.currentScale:a.scale=o.scaleMove/o.scaleStart*a.currentScale,a.scale>o.maxRatio&&(a.scale=o.maxRatio-1+Math.pow(a.scale-o.maxRatio+1,.5)),a.scale<n.minRatio&&(a.scale=n.minRatio+1-Math.pow(n.minRatio-a.scale+1,.5)),o.$imageEl.transform("translate3d(0,0,0) scale("+a.scale+")")):"gesturechange"===t.type&&a.onGestureStart(t)},onGestureEnd:function(t){var e=this,i=e.device,n=e.support,a=e.params.zoom,o=e.zoom,r=o.gesture;if(!n.gestures){if(!o.fakeGestureTouched||!o.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!i.android)return;o.fakeGestureTouched=!1,o.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(o.scale=Math.max(Math.min(o.scale,r.maxRatio),a.minRatio),r.$imageEl.transition(e.params.speed).transform("translate3d(0,
520,0) scale("+o.scale+")"),o.currentScale=o.scale,o.isScaling=!1,1===o.scale&&(r.$slideEl=void 0))},onTouchStart:function(t){var e=this.device,i=this.zoom,n=i.gesture,a=i.image;n.$imageEl&&0!==n.$imageEl.length&&(a.isTouched||(e.android&&t.cancelable&&t.preventDefault(),a.isTouched=!0,a.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,a.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this,i=e.zoom,n=i.gesture,a=i.image,o=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(e.allowClick=!1,a.isTouched&&n.$slideEl)){a.isMoved||(a.width=n.$imageEl[0].offsetWidth,a.height=n.$imageEl[0].offsetHeight,a.startX=C(n.$imageWrapEl[0],"x")||0,a.startY=C(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0));var r=a.width*i.scale,s=a.height*i.scale;if(!(r<n.slideWidth&&s<n.slideHeight)){if(a.minX=Math.min(n.slideWidth/2-r/2,0),a.maxX=-a.minX,a.minY=Math.min(n.slideHeight/2-s/2,0),a.maxY=-a.minY,a.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,a.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!a.isMoved&&!i.isScaling){if(e.isHorizontal()&&(Math.floor(a.minX)===Math.floor(a.startX)&&a.touchesCurrent.x<a.touchesStart.x||Math.floor(a.maxX)===Math.floor(a.startX)&&a.touchesCurrent.x>a.touchesStart.x))return void(a.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(a.minY)===Math.floor(a.startY)&&a.touchesCurrent.y<a.touchesStart.y||Math.floor(a.maxY)===Math.floor(a.startY)&&a.touchesCurrent.y>a.touchesStart.y))return void(a.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),a.isMoved=!0,a.currentX=a.touchesCurrent.x-a.touchesStart.x+a.startX,a.currentY=a.touchesCurrent.y-a.touchesStart.y+a.startY,a.currentX<a.minX&&(a.currentX=a.minX+1-Math.pow(a.minX-a.currentX+1,.8)),a.currentX>a.maxX&&(a.currentX=a.maxX-1+Math.pow(a.currentX-a.maxX+1,.8)),a.currentY<a.minY&&(a.currentY=a.minY+1-Math.pow(a.minY-a.currentY+1,.8)),a.currentY>a.maxY&&(a.currentY=a.maxY-1+Math.pow(a.currentY-a.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=a.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=a.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(a.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(a.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(a.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(a.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=a.touchesCurrent.x,o.prevPositionY=a.touchesCurrent.y,o.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+a.currentX+"px, "+a.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,n=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var a=300,o=300,r=n.x*a,s=i.currentX+r,l=n.y*o,c=i.currentY+l;0!==n.x&&(a=Math.abs((s-i.currentX)/n.x)),0!==n.y&&(o=Math.abs((c-i.currentY)/n.y));var h=Math.max(a,o);i.currentX=s,i.currentY=c;var d=i.width*t.scale,u=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-u/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this,e=t.zoom,i=e.gesture;i.$slideEl&&t.previousIndex!==t.activeIndex&&(i.$imageEl&&i.$imageEl.transform("translate3d(0,0,0) scale(1)"),i.$imageWrapEl&&i.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,i.$slideEl=void 0,i.$imageEl=void 0,i.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,n,a,o,r,l,c,h,d,u,p,f,g,v,b,y=this,x=s(),w=y.zoom,_=y.params.zoom,C=w.gesture,S=w.image;C.$slideEl||(t&&t.target&&(C.$slideEl=m(t.target).closest("."+y.params.slideClass)),C.$slideEl||(y.params.virtual&&y.params.virtual.enabled&&y.virtual?C.$slideEl=y.$wrapperEl.children("."+y.params.slideActiveClass):C.$slideEl=y.slides.eq(y.activeIndex)),C.$imageEl=C.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),C.$imageWrapEl=C.$imageEl.parent("."+_.containerClass)),C.$imageEl&&0!==C.$imageEl.length&&C.$imageWrapEl&&0!==C.$imageWrapEl.length&&(C.$slideEl.addClass(""+_.zoomedSlideClass),void 0===S.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,i="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=S.touchesStart.x,i=S.touchesStart.y),w.scale=C.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,w.currentScale=C.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,t?(v=C.$slideEl[0].offsetWidth,b=C.$slideEl[0].offsetHeight,n=C.$slideEl.offset().left+x.scrollX+v/2-e,a=C.$slideEl.offset().top+x.scrollY+b/2-i,l=C.$imageEl[0].offsetWidth,c=C.$imageEl[0].offsetHeight,h=l*w.scale,d=c*w.scale,f=-(u=Math.min(v/2-h/2,0)),g=-(p=Math.min(b/2-d/2,0)),(o=n*w.scale)<u&&(o=u),o>f&&(o=f),(r=a*w.scale)<p&&(r=p),r>g&&(r=g)):(o=0,r=0),C.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+r+"px,0)"),C.$imageEl.transition(300).transform("translate3d(0,
520,0) scale("+w.scale+")"))},out:function(){var t=this,e=t.zoom,i=t.params.zoom,n=e.gesture;n.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?n.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):n.$slideEl=t.slides.eq(t.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent("."+i.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&n.$imageWrapEl&&0!==n.$imageWrapEl.length&&(e.scale=1,e.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+i.zoomedSlideClass),n.$slideEl=void 0)},toggleGestures:function(t){var e=this,i=e.zoom,n=i.slideSelector,a=i.passiveListener;e.$wrapperEl[t]("gesturestart",n,i.onGestureStart,a),e.$wrapperEl[t]("gesturechange",n,i.onGestureChange,a),e.$wrapperEl[t]("gestureend",n,i.onGestureEnd,a)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var t=this,e=t.support,i=t.zoom;if(!i.enabled){i.enabled=!0;var n=!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},a=!e.passiveListener||{passive:!1,capture:!0},o="."+t.params.slideClass;t.zoom.passiveListener=n,t.zoom.slideSelector=o,e.gestures?(t.$wrapperEl.on(t.touchEvents.start,t.zoom.enableGestures,n),t.$wrapperEl.on(t.touchEvents.end,t.zoom.disableGestures,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,i.onGestureStart,n),t.$wrapperEl.on(t.touchEvents.move,o,i.onGestureChange,a),t.$wrapperEl.on(t.touchEvents.end,o,i.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,i.onGestureEnd,n)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,i.onTouchMove,a)}},disable:function(){var t=this,e=t.zoom;if(e.enabled){var i=t.support;t.zoom.enabled=!1;var n=!("touchstart"!==t.touchEvents.start||!i.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},a=!i.passiveListener||{passive:!1,capture:!0},o="."+t.params.slideClass;i.gestures?(t.$wrapperEl.off(t.touchEvents.start,t.zoom.enableGestures,n),t.$wrapperEl.off(t.touchEvents.end,t.zoom.disableGestures,n)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,e.onGestureStart,n),t.$wrapperEl.off(t.touchEvents.move,o,e.onGestureChange,a),t.$wrapperEl.off(t.touchEvents.end,o,e.onGestureEnd,n),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,e.onGestureEnd,n)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,a)}}},at={loadInSlide:function(t,e){void 0===e&&(e=!0);var i=this,n=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),o=a.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||o.push(a[0]),0!==o.length&&o.each((function(t){var o=m(t);o.addClass(n.loadingClass);var r=o.attr("data-background"),s=o.attr("data-src"),l=o.attr("data-srcset"),c=o.attr("data-sizes"),h=o.parent("picture");i.loadImage(o[0],s||r,l,c,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(r?(o.css("background-image",'url("'+r+'")'),o.removeAttr("data-background")):(l&&(o.attr("srcset",l),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),h.length&&h.children("source").each((function(t){var e=m(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))})),s&&(o.attr("src",s),o.removeAttr("data-src"))),o.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),i.params.loop&&e){var t=a.attr("data-swiper-slide-index");if(a.hasClass(i.params.slideDuplicateClass)){var d=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(d.index(),!1)}else{var u=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');
52i.lazy.loadInSlide(u.index(),!1)}}i.emit("lazyImageReady",a[0],o[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,n=t.slides,a=t.activeIndex,o=t.virtual&&i.virtual.enabled,r=i.lazy,s=i.slidesPerView;function l(t){if(o){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(n[t])return!0;return!1}function c(t){return o?m(t).attr("data-swiper-slide-index"):m(t).index()}if("auto"===s&&(s=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each((function(e){var i=o?m(e).attr("data-swiper-slide-index"):m(e).index();t.lazy.loadInSlide(i)}));else if(s>1)for(var h=a;h<a+s;h+=1)l(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(a);if(r.loadPrevNext)if(s>1||r.loadPrevNextAmount&&r.loadPrevNextAmount>1){for(var d=r.loadPrevNextAmount,u=s,p=Math.min(a+u+Math.max(d,u),n.length),f=Math.max(a-Math.max(u,d),0),g=a+s;g<p;g+=1)l(g)&&t.lazy.loadInSlide(g);for(var v=f;v<a;v+=1)l(v)&&t.lazy.loadInSlide(v)}else{var b=e.children("."+i.slideNextClass);b.length>0&&t.lazy.loadInSlide(c(b));var y=e.children("."+i.slidePrevClass);y.length>0&&t.lazy.loadInSlide(c(y))}},checkInViewOnLoad:function(){var t=s(),e=this;if(e&&!e.destroyed){var i=e.params.lazy.scrollingElement?m(e.params.lazy.scrollingElement):m(t),n=i[0]===t,a=n?t.innerWidth:i[0].offsetWidth,o=n?t.innerHeight:i[0].offsetHeight,r=e.$el.offset(),l=!1;e.rtlTranslate&&(r.left-=e.$el[0].scrollLeft);for(var c=[[r.left,r.top],[r.left+e.width,r.top],[r.left,r.top+e.height],[r.left+e.width,r.top+e.height]],h=0;h<c.length;h+=1){var d=c[h];if(d[0]>=0&&d[0]<=a&&d[1]>=0&&d[1]<=o){if(0===d[0]&&0===d[1])continue;l=!0}}var u=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};l?(e.lazy.load(),i.off("scroll",e.lazy.checkInViewOnLoad,u)):e.lazy.scrollHandlerAttached||(e.lazy.scrollHandlerAttached=!0,i.on("scroll",e.lazy.checkInViewOnLoad,u))}}},ot={LinearSpline:function(t,e){var i,n,a,o,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(n=-1,i=t.length;i-n>1;)t[a=i+n>>1]<=e?n=a:i=a;return i}(this.x,t),o=r-1,(t-this.x[o])*(this.y[r]-this.y[o])/(this.x[r]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(t){var e=this;e.controller.spline||(e.controller.spline=e.params.loop?new ot.LinearSpline(e.slidesGrid,t.slidesGrid):new ot.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,n,a=this,o=a.controller.control,r=a.constructor;function s(t){var e=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(t),n=-a.controller.spline.interpolate(-e)),n&&"container"!==a.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(a.maxTranslate()-a.minTranslate()),n=(e-a.minTranslate())*i+t.minTranslate()),a.params.controller.inverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setTranslate(n,a),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var l=0;l<o.length;l+=1)o[l]!==e&&o[l]instanceof r&&s(o[l]);else o instanceof r&&e!==o&&s(o)},setTransition:function(t,e){var i,n=this,a=n.constructor,o=n.controller.control;function r(e){e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&w((function(){e.updateAutoHeight()})),e.$wrapperEl.transitionEnd((function(){o&&(e.params.loop&&"slide"===n.params.controller.by&&e.loopFix(),e.transitionEnd())})))}if(Array.isArray(o))for(i=0;i<o.length;i+=1)o[i]!==e&&o[i]instanceof a&&r(o[i]);else o instanceof a&&e!==o&&r(o)}},rt={getRandomNumber:function(t){return void 0===t&&(t=16),"x".repeat(t).replace(/x/g,(function(){return Math.round(16*Math.random()).toString(16)}))},makeElFocusable:function(t){return t.attr("tabIndex","0"),t},makeElNotFocusable:function(t){return t.attr("tabIndex","-1"),t},addElRole:function(t,e){return t.attr("role",e),t},addElRoleDescription:function(t,e){return t.attr("aria-roledescription",e),t},addElControls:function(t,e){return t.attr("aria-controls",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},addElId:function(t,e){return t.attr("id",e),t},addElLive:function(t,e){return t.attr("aria-live",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterOrSpaceKey:function(t){if(13===t.keyCode||32===t.keyCode){var e=this,i=e.params.a11y,n=m(t.target);e.navigation&&e.navigation.$nextEl&&n.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(i.lastSlideMessage):e.a11y.notify(i.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&n.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(i.firstSlideMessage):e.a11y.notify(i.prevSlideMessage)),e.pagination&&n.is(E(e.params.pagination.bulletClass))&&n[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){var t=this;if(!t.params.loop&&t.navigation){var e=t.navigation,i=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(t.isBeginning?(t.a11y.disableEl(n),t.a11y.makeElNotFocusable(n)):(t.a11y.enableEl(n),t.a11y.makeElFocusable(n))),i&&i.length>0&&(t.isEnd?(t.a11y.disableEl(i),t.a11y.makeElNotFocusable(i)):(t.a11y.enableEl(i),t.a11y.makeElFocusable(i)))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i){var n=m(i);t.a11y.makeElFocusable(n),t.params.pagination.renderBullet||(t.a11y.addElRole(n,"button"),t.a11y.addElLabel(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,n.index()+1)))}))},init:function(){var t=this,e=t.params.a11y;t.$el.append(t.a11y.liveRegion);var i=t.$el;e.containerRoleDescriptionMessage&&t.a11y.addElRoleDescription(i,e.containerRoleDescriptionMessage),e.containerMessage&&t.a11y.addElLabel(i,e.containerMessage);var n=t.$wrapperEl,a=n.attr("id")||"swiper-wrapper-"+t.a11y.getRandomNumber(16),o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";t.a11y.addElId(n,a),t.a11y.addElLive(n,o),e.itemRoleDescriptionMessage&&t.a11y.addElRoleDescription(m(t.slides),e.itemRoleDescriptionMessage),t.a11y.addElRole(m(t.slides),e.slideRole);var r,s,l=t.params.loop?t.slides.filter((function(e){return!e.classList.contains(t.params.slideDuplicateClass)})).length:t.slides.length;t.slides.each((function(i,n){var a=m(i),o=t.params.loop?parseInt(a.attr("data-swiper-slide-index"),10):n,r=e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,l);t.a11y.addElLabel(a,r)})),t.navigation&&t.navigation.$nextEl&&(r=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(s=t.navigation.$prevEl),r&&r.length&&(t.a11y.makeElFocusable(r),"BUTTON"!==r[0].tagName&&(t.a11y.addElRole(r,"button"),r.on("key
52down",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(r,e.nextSlideMessage),t.a11y.addElControls(r,a)),s&&s.length&&(t.a11y.makeElFocusable(s),"BUTTON"!==s[0].tagName&&(t.a11y.addElRole(s,"button"),s.on("keydown",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(s,e.prevSlideMessage),t.a11y.addElControls(s,a)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",E(t.params.pagination.bulletClass),t.a11y.onEnterOrSpaceKey)},destroy:function(){var t,e,i=this;i.a11y.liveRegion&&i.a11y.liveRegion.length>0&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(t=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(e=i.navigation.$prevEl),t&&t.off("keydown",i.a11y.onEnterOrSpaceKey),e&&e.off("keydown",i.a11y.onEnterOrSpaceKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown",E(i.params.pagination.bulletClass),i.a11y.onEnterOrSpaceKey)}},st={init:function(){var t=this,e=s();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);var i=t.history;i.initialized=!0,i.paths=st.getPathValues(t.params.url),(i.paths.key||i.paths.value)&&(i.scrollToSlide(0,i.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",t.history.setHistoryPopState))}},destroy:function(){var t=s();this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){var t=this;t.history.paths=st.getPathValues(t.params.url),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues:function(t){var e=s(),i=(t?new URL(t):e.location).pathname.slice(1).split("/").filter((function(t){return""!==t})),n=i.length;return{key:i[n-2],value:i[n-1]}},setHistory:function(t,e){var i=this,n=s();if(i.history.initialized&&i.params.history.enabled){var a;a=i.params.url?new URL(i.params.url):n.location;var o=i.slides.eq(e),r=st.slugify(o.attr("data-history"));if(i.params.history.root.length>0){var l=i.params.history.root;"/"===l[l.length-1]&&(l=l.slice(0,l.length-1)),r=l+"/"+t+"/"+r}else a.pathname.includes(t)||(r=t+"/"+r);var c=n.history.state;c&&c.value===r||(i.params.history.replaceState?n.history.replaceState({value:r},null,r):n.history.pushState({value:r},null,r))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){var n=this;if(e)for(var a=0,o=n.slides.length;a<o;a+=1){var r=n.slides.eq(a);if(st.slugify(r.attr("data-history"))===e&&!r.hasClass(n.params.slideDuplicateClass)){var s=r.index();n.slideTo(s,t,i)}}else n.slideTo(0,t,i)}},lt={onHashChange:function(){var t=this,e=o();t.emit("hashChange");var i=e.location.hash.replace("#","");if(i!==t.slides.eq(t.activeIndex).attr("data-hash")){var n=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+i+'"]').index();if(void 0===n)return;t.slideTo(n)}},setHash:function(){var t=this,e=s(),i=o();if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),t.emit("hashSet");else{var n=t.slides.eq(t.activeIndex),a=n.attr("data-hash")||n.attr("data-history");i.location.hash=a||"",t.emit("hashSet")}},init:function(){var t=this,e=o(),i=s();if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var n=e.location.hash.replace("#","");if(n)for(var a=0,r=t.slides.length;a<r;a+=1){var l=t.slides.eq(a);if((l.attr("data-hash")||l.attr("data-history"))===n&&!l.hasClass(t.params.slideDuplicateClass)){var c=l.index();t.slideTo(c,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&m(i).on("hashchange",t.hashNavigation.onHashChange)}},destroy:function(){var t=s();this.params.hashNavigation.watchState&&m(t).off("hashchange",this.hashNavigation.onHashChange)}},ct={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=w((function(){var e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,
52!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&t.autoplay.run()}),i)},start:function(){var t=this;return void 0===t.autoplay.timeout&&!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0)},stop:function(){var t=this;return!!t.autoplay.running&&void 0!==t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0)},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((function(t){e.$wrapperEl[0].addEventListener(t,e.autoplay.onTransitionEnd)})):(e.autoplay.paused=!1,e.autoplay.run())))},onVisibilityChange:function(){var t=this,e=o();"hidden"===e.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===e.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(t){var e=this;e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((function(t){e.$wrapperEl[0].removeEventListener(t,e.autoplay.onTransitionEnd)})),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())},onMouseEnter:function(){var t=this;t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause(),["transitionend","webkitTransitionEnd"].forEach((function(e){t.$wrapperEl[0].removeEventListener(e,t.autoplay.onTransitionEnd)}))},onMouseLeave:function(){var t=this;t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,t.autoplay.run())},attachMouseEvents:function(){var t=this;t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",t.autoplay.onMouseEnter),t.$el.on("mouseleave",t.autoplay.onMouseLeave))},detachMouseEvents:function(){var t=this;t.$el.off("mouseenter",t.autoplay.onMouseEnter),t.$el.off("mouseleave",t.autoplay.onMouseLeave)}},ht={setTranslate:function(){for(var t=this,e=t.slides,i=0;i<e.length;i+=1){var n=t.slides.eq(i),a=-n[0].swiperSlideOffset;t.params.virtualTranslate||(a-=t.translate);var o=0;t.isHorizontal()||(o=a,a=0);var r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:r}).transform("translate3d("+a+"px, "+o+"px, 0px)")}},setTransition:function(t){var e=this,i=e.slides,n=e.$wrapperEl;if(i.transition(t),e.params.virtualTranslate&&0!==t){var a=!1;i.transitionEnd((function(){if(!a&&e&&!e.destroyed){a=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)n.trigger(t[i])}}))}}},dt={setTranslate:function(){var t,e=this,i=e.$el,n=e.$wrapperEl,a=e.slides,o=e.width,r=e.height,s=e.rtlTranslate,l=e.size,c=e.browser,h=e.params.cubeEffect,d=e.isHorizontal(),u=e.virtual&&e.params.virtual.enabled,p=0;h.shadow&&(d?(0===(t=n.find(".swiper-cube-shadow")).length&&(t=m('<div class="swiper-cube-shadow"></div>'),n.append(t)),t.css({height:o+"px"})):0===(t=i.find(".swiper-cube-shadow")).length&&(t=m('<div class="swiper-cube-shadow"></div>'),i.append(t)));for(var f=0;f<a.length;f+=1){var g=a.eq(f),v=f;u&&(v=parseInt(g.attr("data-swiper-slide-index"),10));var b=90*v,y=Math.floor(b/360);s&&(b=-b,y=Math.floor(-b/360));var x=Math.max(Math.min(g[0].progress,1),-1),w=0,_=0,C=0;v%4==0?(w=4*-y*l,C=0):(v-1)%4==0?(w=0,C=4*-y*l):(v-2)%4==0?(w=l+4*y*l,C=l):(v-3)%4==0&&(w=-l,C=3*l+4*l*y),s&&(w=-w),d||(_=w,w=0);var S="rotateX("+(d?0:-b)+"deg) rotateY("+(d?b:0)+"deg) translate3d("+w+"px, "+_+"px, "+C+"px)";if(x<=1&&x>-1&&(p=90*v+90*x,s&&(p=90*-v-90*x)),g.transform(S),h.slideShadows){var k=d?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),A=d?g.f
52ind(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===k.length&&(k=m('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),g.append(k)),0===A.length&&(A=m('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),g.append(A)),k.length&&(k[0].style.opacity=Math.max(-x,0)),A.length&&(A[0].style.opacity=Math.max(x,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),h.shadow)if(d)t.transform("translate3d(0px, "+(o/2+h.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var T=Math.abs(p)-90*Math.floor(Math.abs(p)/90),E=1.5-(Math.sin(2*T*Math.PI/360)/2+Math.cos(2*T*Math.PI/360)/2),L=h.shadowScale,D=h.shadowScale/E,P=h.shadowOffset;t.transform("scale3d("+L+", 1, "+D+") translate3d(0px, "+(r/2+P)+"px, "+-r/2/D+"px) rotateX(-90deg)")}var M=c.isSafari||c.isWebView?-l/2:0;n.transform("translate3d(0px,0,"+M+"px) rotateX("+(e.isHorizontal()?0:p)+"deg) rotateY("+(e.isHorizontal()?-p:0)+"deg)")},setTransition:function(t){var e=this,i=e.$el;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&i.find(".swiper-cube-shadow").transition(t)}},ut={setTranslate:function(){for(var t=this,e=t.slides,i=t.rtlTranslate,n=0;n<e.length;n+=1){var a=e.eq(n),o=a[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(a[0].progress,1),-1));var r=-180*o,s=0,l=-a[0].swiperSlideOffset,c=0;if(t.isHorizontal()?i&&(r=-r):(c=l,l=0,s=-r,r=0),a[0].style.zIndex=-Math.abs(Math.round(o))+e.length,t.params.flipEffect.slideShadows){var h=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),d=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=m('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===d.length&&(d=m('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(d)),h.length&&(h[0].style.opacity=Math.max(-o,0)),d.length&&(d[0].style.opacity=Math.max(o,0))}a.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+s+"deg) rotateY("+r+"deg)")}},setTransition:function(t){var e=this,i=e.slides,n=e.activeIndex,a=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;i.eq(n).transitionEnd((function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)a.trigger(t[i])}}))}}},pt={setTranslate:function(){for(var t=this,e=t.width,i=t.height,n=t.slides,a=t.slidesSizesGrid,o=t.params.coverflowEffect,r=t.isHorizontal(),s=t.translate,l=r?e/2-s:i/2-s,c=r?o.rotate:-o.rotate,h=o.depth,d=0,u=n.length;d<u;d+=1){var p=n.eq(d),f=a[d],g=(l-p[0].swiperSlideOffset-f/2)/f*o.modifier,v=r?c*g:0,b=r?0:c*g,y=-h*Math.abs(g),x=o.stretch;"string"==typeof x&&-1!==x.indexOf("%")&&(x=parseFloat(o.stretch)/100*f);var w=r?0:x*g,_=r?x*g:0,C=1-(1-o.scale)*Math.abs(g);Math.abs(_)<.001&&(_=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0),Math.abs(v)<.001&&(v=0),Math.abs(b)<.001&&(b=0),Math.abs(C)<.001&&(C=0);var S="translate3d("+_+"px,"+w+"px,"+y+"px) rotateX("+b+"deg) rotateY("+v+"deg) scale("+C+")";if(p.transform(S),p[0].style.zIndex=1-Math.abs(Math.round(g)),o.slideShadows){var k=r?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),A=r?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===k.length&&(k=m('<div class="swiper-slide-shadow-'+(r?"left":"top")+'"></div>'),p.append(k)),0===A.length&&(A=m('<div class="swiper-slide-shadow-'+(r?"right":"bottom")+'"></div>'),p.append(A)),k.length&&(k[0].style.opacity=g>0?g:0),A.length&&(A[0].style.opacity=-g>0?-g:0)}}},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},ft={init:function(){var t=this,e=t.params.thumbs;if(t.thumbs.initialized)return!1;t.thumbs.initialized=!0;var i=t.constructor;return e.swiper instanceof i?(t.thumbs.swiper=e.swiper,A(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),A(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):S(e.swiper)&&(t.thumbs.swiper=new i(A({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick),!0},onThumbClick:function(){var t=this,e=t.thumbs.swiper;if(e){var i=e.clickedIndex,n=e.clickedSlide;if(!(n&&m(n).hasClass(t.params.thumbs.slideThumbActiveClass)||null==i)){var a;if(a=e.params.loop?parseInt(m(e.clickedSlide).attr("data-swiper-slide-index"),10):i,t.params.loop){var o=t.activeIndex;t.slides.eq(o).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,o=t.activeIndex);var r=t.slides.eq(o).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),s=t.slides.eq(o).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===r?s:void 0===s?r:s-o<o-r?s:r}t.slideTo(a)}}},update:function(t){var e=this,i=e.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,a=e.params.thumbs.autoScrollOffset,o=a&&!i.params.loop;if(e.realIndex!==i.realIndex||o){var r,s,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);var c=i.slides.eq(l).prevAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index(),h=i.slides.eq(l).nextAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index();r=void 0===c?h:void 0===h?c:h-l==l-c?i.params.slidesPerGroup>1?h:l:h-l<l-c?h:c,s=e.activeIndex>e.previousIndex?"next":"prev"}else s=(r=e.realIndex)>e.previousIndex?"next":"prev";o&&(r+="next"===s?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>l?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>l&&i.params.slidesPerGroup,i.slideTo(r,t?0:void 0))}var d=1,u=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),i.slides.removeClass(u),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(var p=0;p<d;p+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(e.realIndex+p)+'"]').addClass(u);else for(var f=0;f<d;f+=1)i.slides.eq(e.realIndex+f).addClass(u)}}},gt=[U,K,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){T(this,{mousewheel:{enabled:!1,lastScrollTime:_(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:J.enable,disable:J.disable,handle:J.handle,handleMouseEnter:J.handleMouseEnter,handleMouseLeave:J.handleMouseLeave,animateSlider:J.animateSlider,releaseScroll:J.releaseScroll}})},on:{init:function(t){!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy:function(t){t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){T(this,{navigation:e({},Q)})},on:{init:function(t){t.navigation.init(),t.navigation.update()},toEdge:function(t){t.navigation.update()},fromEdge:function(t){t.navigation.update()},destroy:function(t){t.navigation.destroy()},"enable disable":function(t){var e=t.navigation,i=e.$nextEl,n=e.$prevEl;i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)},click:function(t,e){var i=t.navigation,n=i.$nextEl,a=i.$prevEl,o=e.target;if(t.params.navigation.hideOnClick&&!m(o).is(a)&&!m(o).is(n)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===o||t.pagination.el.contains(o)))return;var r;n?r=n.hasClass(t.params.navigation.hiddenClass):a&&(r=a.hasClass(t.params.navigation.hiddenClass)),!0===r?t.emit("navigationShow"):t.emit("navigationHide"),n&&n.toggleClass(t.params.navigation.hiddenClass),a&&a.toggleClass(t.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){T(this,{pagination:e({dynamicBulletIndex:0},tt)})},on:{init:function(t){t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange:function(t){(t.params.loop||void 0===t.snapIndex)&&t.pagination.update()},snapIndexChange:function(t){t.params.loop||t.pagination.update()},slidesLengthChange:function(t){t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange:function(t){t.params.loop||(t.pagination.render(),t.pagination.update())},destroy:function(t){t.pagination.destroy()},"enable disable":function(t){var e=t.pagination.$el;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)},click:function(t,e){var i=e.target;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!m(i).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow"):t.emit("paginationHide"),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){T(this,{scrollbar:e({isTouched:!1,timeout:null,dragTimeout:null},et)})},on:{init:function(t){t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update:function(t){t.scrollbar.updateSize()},resize:function(t){t.scrollbar.updateSize()},observerUpdate:function(t){t.scrollbar.updateSize()},setTranslate:function(t){t.scrollbar.setTranslate()},setTransition:function(t,e){t.scrollbar.setTransition(e)},"enable disable":function(t){var e=t.scrollbar.$el;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)},destroy:function(t){t.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){T(this,{parallax:e({},it)})},on:{beforeInit:function(t){t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition:function(t,e){t.params.parallax.enabled&&t.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this;T(t,{zoom:e({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},nt)});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var n=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,a=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,n,a)}i=e}})},on:{init:function(t){t.params.zoom.enabled&&t.zoom.enable()},destroy:function(t){t.zoom.disable()},touchStart:function(t,e){t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(t,e){t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(t,e){!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}
52,create:function(){T(this,{lazy:e({initialImageLoaded:!1},at)})},on:{beforeInit:function(t){t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init:function(t){t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&(t.params.lazy.checkInView?t.lazy.checkInViewOnLoad():t.lazy.load())},scroll:function(t){t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},"scrollbarDragMove resize _freeModeNoMomentumRelease":function(t){t.params.lazy.enabled&&t.lazy.load()},transitionStart:function(t){t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd:function(t){t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange:function(t){var e=t.params,i=e.lazy,n=e.cssMode,a=e.watchSlidesVisibility,o=e.watchSlidesProgress,r=e.touchReleaseOnEdges,s=e.resistanceRatio;i.enabled&&(n||(a||o)&&(r||0===s))&&t.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){T(this,{controller:e({control:this.params.controller.control},ot)})},on:{update:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate:function(t,e,i){t.controller.control&&t.controller.setTranslate(e,i)},setTransition:function(t,e,i){t.controller.control&&t.controller.setTransition(e,i)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}},create:function(){T(this,{a11y:e({},rt,{liveRegion:m('<span class="'+this.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function(t){t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate:function(t){t.params.a11y.enabled&&t.a11y.updatePagination()},destroy:function(t){t.params.a11y.enabled&&t.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,root:"",replaceState:!1,key:"slides"}},create:function(){T(this,{history:e({},st)})},on:{init:function(t){t.params.history.enabled&&t.history.init()},destroy:function(t){t.params.history.enabled&&t.history.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange:function(t){t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){T(this,{hashNavigation:e({initialized:!1},lt)})},on:{init:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange:function(t){t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}},create:function(){T(this,{autoplay:e({},ct,{running:!1,paused:!1})})},on:{init:function(t){t.params.autoplay.enabled&&(t.autoplay.start(),o().addEventListener("visibilitychange",t.autoplay.onVisibilityChange),t.autoplay.attachMouseEvents())}
52,beforeTransitionStart:function(t,e,i){t.autoplay.running&&(i||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(e):t.autoplay.stop())},sliderFirstMove:function(t){t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd:function(t){t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy:function(t){t.autoplay.detachMouseEvents(),t.autoplay.running&&t.autoplay.stop(),o().removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){T(this,{fadeEffect:e({},ht)})},on:{beforeInit:function(t){if("fade"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};A(t.params,e),A(t.originalParams,e)}},setTranslate:function(t){"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition:function(t,e){"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){T(this,{cubeEffect:e({},dt)})},on:{beforeInit:function(t){if("cube"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};A(t.params,e),A(t.originalParams,e)}},setTranslate:function(t){"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition:function(t,e){"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){T(this,{flipEffect:e({},ut)})},on:{beforeInit:function(t){if("flip"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};A(t.params,e),A(t.originalParams,e)}},setTranslate:function(t){"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition:function(t,e){"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){T(this,{coverflowEffect:e({},pt)})},on:{beforeInit:function(t){"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate:function(t){"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition:function(t,e){"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){T(this,{thumbs:e({swiper:null,initialized:!1},ft)})},on:{beforeInit:function(t){var e=t.params.thumbs;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange:function(t){t.thumbs.swiper&&t.thumbs.update()},update:function(t){t.thumbs.swiper&&t.thumbs.update()},resize:function(t){t.thumbs.swiper&&t.thumbs.update()},observerUpdate:function(t){t.thumbs.swiper&&t.thumbs.update()},setTransition:function(t,e){var i=t.thumbs.swiper;i&&i.setTransition(e)},beforeDestroy:function(t){var e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}}];return G.use(gt),G})),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 a(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 r(t,e,i={},n=0,a=""){a+=`<${Object.keys(i).reduce(((t,e)=>{let a=i[e];return"function"==typeof a&&(a=a(n)),`${t} ${e}="${a}"`}),t)}></${t}>`;const o=n+1;return o<e?r(t,e,i,o,a):a}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 h(...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 d(t,e){const i=new Date(t);return i.setDate(i.getDate()+e)}function u(t,e){const i=new Date(t),n=i.getMonth()+e;let a=n%12;a<0&&(a+=12);const o=i.setMonth(n);return i.getMonth()!==a?i.setDate(0):o}function p(t,e){const i=new Date(t),n=i.getMonth(),a=i.setFullYear(i.getFullYear()+e);return 1===n&&2===i.getMonth()?i.setDate(0):a}function f(t,e){return(t-e+7)%7}function g(t,e,i=0){const n=new Date(t).getDay();return d(t,f(e,i)-f(n,i))}function m(t,e){const i=new Date(t).getFullYear();return Math.floor(i/e)*e}function v(t,e,i){if(1!==e&&2!==e)return t;const n=new Date(t);return 1===e?i?n.setMonth(n.getMonth()+1,0):n.setDate(1):i?n.setFullYear(n.getFullYear()+1,0,0):n.setMonth(0,1),n.setHours(0,0,0,0)}const b=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,y=/[\s!-/:-@[-`{-~å¹´ææ¥]+/;let x={};const w={y:(t,e)=>new Date(t).setFullYear(parseInt(e,10)),m(t,e,i){const n=new Date(t);let a=parseInt(e,10)-1;if(isNaN(a)){if(!e)return NaN;const t=e.toLowerCase(),n=e=>e.toLowerCase().startsWith(t);if(a=i.monthsShort.findIndex(n),a<0&&(a=i.months.findIndex(n)),a<0)return NaN}return n.setMonth(a),n.getMonth()!==C(a)?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 C(t){return t>-1?t%12:C(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 x)return x[t];const i=t.split(b),n=t.match(new RegExp(b,"g"));if(0===i.length||!n)throw new Error("Invalid date format.");const a=n.map((t=>_[t])),o=Object.keys(w).reduce(((t,e)=>(n.find((t=>"D"!==t[0]&&t[0].toLowerCase()===e))&&t.push(e),t)),[]);return x[t]={parser(t,e){const i=t.split(y).reduce(((t,e,i)=>{if(e.length>0&&n[i]){const a=n[i][0];"M"===a?t.m=e:"D"!==a&&(t[a]=e)}return t}),{});return o.reduce(((t,n)=>{const a=w[n](t,i[n],e);return isNaN(a)?t:a}),c())},formatter:(t,n)=>a.reduce(((e,a,o)=>e+`${i[o]}${a(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 T(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 E=document.createRange();function L(t){return E.createContextualFragment(t)}function D(t){return t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:void 0)}function P(t){return t.getRootNode().activeElement===t}function M(t){"none"!==t.style.display&&(t.style.display&&(t.dataset.styleDisplay=t.style.display),t.style.display="none")}function I(t){"none"===t.style.display&&(t.dataset.styleDisplay?(t.style.display=t.dataset.styleDisplay,delete t.dataset.styleDisplay):t.style.display="")}function O(t){t.firstChild&&(t.removeChild(t.firstChild),O(t))}const z=new WeakMap,{addEventListener:N,removeEventListener:R}=EventTarget.prototype;function F(t,e){let i=z.get(t);i||(i=[],z.set(t,i)),e.forEach((t=>{N.call(...t),i.push(t)}))}function H(t){let e=z.get(t);e&&(e.forEach((t=>{R.call(...t)})),z.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 B(t,e,i){const[n,...a]=t;return e(n)?n:n!==i&&"HTML"!==n.tagName&&0!==a.length?B(a,e,i):void 0}function j(t,e){const i="function"==typeof e?e:t=>t instanceof Element&&t.matches(e);return B(t.composedPath(),i,t.currentTarget)}const Y={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
52ay","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"}},W={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},{language:X,format:V,weekStart:$}=W;function G(t,e){return t.length<6&&e>=0&&e<7?i(t,e):t}function q(t){return(t+6)%7}function U(t,e,i,n){const a=A(t,e,i);return void 0!==a?a:n}function Z(t,e,i=3){const n=parseInt(t,10);return n>=0&&n<=i?n:e}function K(e,n){const a=Object.assign({},e),o={},r=n.constructor.locales,s=n.rangeSideIndex;let{format:l,language:c,locale:d,maxDate:u,maxView:p,minDate:f,pickLevel:g,startView:m,weekStart:y}=n.config||{};if(a.language){let t;if(a.language!==c&&(r[a.language]?t=a.language:(t=a.language.split("-")[0],void 0===r[t]&&(t=!1))),delete a.language,t){c=o.language=t;const e=d||r[X];d=Object.assign({format:V,weekStart:$},r[X]),c!==X&&Object.assign(d,r[c]),o.locale=d,l===e.format&&(l=o.format=d.format),y===e.weekStart&&(y=o.weekStart=d.weekStart,o.weekEnd=q(d.weekStart))}}if(a.format){const t="function"==typeof a.format.toDisplay,e="function"==typeof a.format.toValue,i=b.test(a.format);(t&&e||i)&&(l=o.format=a.format),delete a.format}let x=g;void 0!==a.pickLevel&&(x=Z(a.pickLevel,2),delete a.pickLevel),x!==g&&(x>g&&(void 0===a.minDate&&(a.minDate=f),void 0===a.maxDate&&(a.maxDate=u)),a.datesDisabled||(a.datesDisabled=[]),g=o.pickLevel=x);let w=f,_=u;if(void 0!==a.minDate){const t=h(0,0,1);w=null===a.minDate?t:U(a.minDate,l,d,w),w!==t&&(w=v(w,g,!1)),delete a.minDate}if(void 0!==a.maxDate&&(_=null===a.maxDate?void 0:U(a.maxDate,l,d,_),void 0!==_&&(_=v(_,g,!0)),delete a.maxDate),_<w?(f=o.minDate=_,u=o.maxDate=w):(f!==w&&(f=o.minDate=w),u!==_&&(u=o.maxDate=_)),a.datesDisabled&&(o.datesDisabled=a.datesDisabled.reduce(((t,e)=>{const n=A(e,l,d);return void 0!==n?i(t,v(n,g,s)):t}),[]),delete a.datesDisabled),void 0!==a.defaultViewDate){const t=A(a.defaultViewDate,l,d);void 0!==t&&(o.defaultViewDate=t),delete a.defaultViewDate}if(void 0!==a.weekStart){const t=Number(a.weekStart)%7;isNaN(t)||(y=o.weekStart=t,o.weekEnd=q(t)),delete a.weekStart}if(a.daysOfWeekDisabled&&(o.daysOfWeekDisabled=a.daysOfWeekDisabled.reduce(G,[]),delete a.daysOfWeekDisabled),a.daysOfWeekHighlighted&&(o.daysOfWeekHighlighted=a.daysOfWeekHighlighted.reduce(G,[]),delete a.daysOfWeekHighlighted),void 0!==a.maxNumberOfDates){const t=parseInt(a.maxNumberOfDates,10);t>=0&&(o.maxNumberOfDates=t,o.multidate=1!==t),delete a.maxNumberOfDates}a.dateDelimiter&&(o.dateDelimiter=String(a.dateDelimiter),delete a.dateDelimiter);let C=p;void 0!==a.maxView&&(C=Z(a.maxView,p),delete a.maxView),C=g>C?g:C,C!==p&&(p=o.maxView=C);let S=m;if(void 0!==a.startView&&(S=Z(a.startView,S),delete a.startView),S<g?S=g:S>p&&(S=p),S!==m&&(o.startView=S),a.prevArrow){const t=L(a.prevArrow);t.childNodes.length>0&&(o.prevArrow=t.childNodes),delete a.prevArrow}if(a.nextArrow){const t=L(a.nextArrow);t.childNodes.length>0&&(o.nextArrow=t.childNodes),delete a.nextArrow}if(void 0!==a.disableTouchKeyboard&&(o.disableTouchKeyboard="ontouchstart"in document&&!!a.disableTouchKeyboard,delete a.disableTouchKeyboard),a.orientation){const t=a.orientation.toLowerCase().split(/\s+/g);o.orientation={x:t.find((t=>
52"left"===t||"right"===t))||"auto",y:t.find((t=>"top"===t||"bottom"===t))||"auto"},delete a.orientation}if(void 0!==a.todayBtnMode){switch(a.todayBtnMode){case 0:case 1:o.todayBtnMode=a.todayBtnMode}delete a.todayBtnMode}return Object.keys(a).forEach((e=>{void 0!==a[e]&&t(W,e)&&(o[e]=a[e])})),o}const J=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>'),Q=s(`<div class="days">\n <div class="days-of-week">${r("span",7,{class:"dow"})}</div>\n <div class="datepicker-grid">${r("span",42)}</div>\n</div>`),tt=s(`<div class="calendar-weeks">\n <div class="days-of-week"><span class="dow"></span></div>\n <div class="weeks">${r("span",6,{class:"week"})}</div>\n</div>`);class et{constructor(t,e){Object.assign(this,e,{picker:t,element:L('<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 a=this.beforeShow(new Date(n));switch(typeof a){case"boolean":a={enabled:a};break;case"string":a={classes:a}}if(a){if(!1===a.enabled&&(t.classList.add("disabled"),i(this.disabled,e)),a.classes){const n=a.classes.split(/\s+/);t.classList.add(...n),n.includes("disabled")&&i(this.disabled,e)}a.content&&function(t,e){O(t),e instanceof DocumentFragment?t.appendChild(e):"string"==typeof e?t.appendChild(L(e)):"function"==typeof e.forEach&&e.forEach((e=>{t.appendChild(e)}))}(t,a.content)}}}class it extends et{constructor(t){super(t,{id:0,name:"days",cellClass:"day"})}init(t,e=!0){if(e){const t=L(Q).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=L(tt).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?(I(this.dow),this.calendarWeeks&&I(this.calendarWeeks.dow)):(M(this.dow),this.calendarWeeks&&M(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=h(e,i,1),a=g(n,this.weekStart,this.weekStart);this.first=n,this.last=h(e,i+1,0),this.start=a,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=T(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);
52Array.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}(d(t,7*i))}))}Array.from(this.grid.children).forEach(((t,e)=>{const n=t.classList,a=d(this.start,e),o=new Date(a),r=o.getDay();if(t.className=`datepicker-cell ${this.cellClass}`,t.dataset.date=a,t.textContent=o.getDate(),a<this.first?n.add("prev"):a>this.last&&n.add("next"),this.today===a&&n.add("today"),(a<this.minDate||a>this.maxDate||this.disabled.includes(a))&&n.add("disabled"),this.daysOfWeekDisabled.includes(r)&&(n.add("disabled"),i(this.disabled,a)),this.daysOfWeekHighlighted.includes(r)&&n.add("highlighted"),this.range){const[t,e]=this.range;a>t&&a<e&&n.add("range"),a===t&&n.add("range-start"),a===e&&n.add("range-end")}this.selected.includes(a)&&n.add("selected"),a===this.focused&&n.add("focused"),this.beforeShow&&this.performBeforeHook(t,a,a)}))}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),a=i.classList;n>t&&n<e&&a.add("range"),n===t&&a.add("range-start"),n===e&&a.add("range-end"),this.selected.includes(n)&&a.add("selected"),n===this.focused&&a.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 nt(t,e){if(!t||!t[0]||!t[1])return;const[[i,n],[a,o]]=t;return i>e||a<e?void 0:[i===e?n:-1,a===e?o:12]}class at extends et{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(L(r("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=h(this.maxYear,this.maxMonth+1,0)}this.isMinView?e.datesDisabled&&(this.datesDisabled=e.datesDisabled):this.datesDisabled=[],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),a=n.getFullYear(),o=n.getMonth();return void 0===t[a]?t[a]=[o]:i(t[a],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.datesDisabled.reduce(((t,e)=>{const i=new Date(e);return this.year===i.getFullYear()&&t.push(i.getMonth()),t}),[]),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,a=nt(this.range,this.year);Array.from(this.grid.children).forEach(((o,r)=>{const s=o.classList,l=h(this.year,r,1);if(o.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(o.dataset.date=l),o.textContent=this.monthNames[r],(e||i&&r<this.minMonth||n&&r>this.maxMonth||this.disabled.includes(r))&&s.add("disabled"),a){const[t,e]=a;r>t&&r<e&&s.add("range"),r===t&&s.add("range-start"),r===e&&s.add("range-end")}t.includes(r)&&s.add("selected"),r===this.focused&&s.add("focused"),this.beforeShow&&this.performBeforeHook(o,r,l)}))}refresh(){const t=this.selected[this.year]||[],[e,i]=nt(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")}
52)),Array.from(this.grid.children).forEach(((n,a)=>{const o=n.classList;a>e&&a<i&&o.add("range"),a===e&&o.add("range-start"),a===i&&o.add("range-end"),t.includes(a)&&o.add("selected"),a===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 ot extends et{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(L(r("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=h(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=h(this.maxYear,11,31))),this.isMinView?e.datesDisabled&&(this.datesDisabled=e.datesDisabled):this.datesDisabled=[],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.datesDisabled.map((t=>new Date(t).getFullYear())),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,a=h(n,0,1);if(t.className=`datepicker-cell ${this.cellClass}`,this.isMinView&&(t.dataset.date=a),t.textContent=t.dataset.year=n,0===e?i.add("prev"):11===e&&i.add("next"),(n<this.minYear||n>this.maxYear||this.disabled.includes(n))&&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,a)}))}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),a=i.classList;n>t&&n<e&&a.add("range"),n===t&&a.add("range-start"),n===e&&a.add("range-end"),this.selected.includes(n)&&a.add("selected"),n===this.focused&&a.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 rt(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 st(t,e){const{minDate:i,maxDate:n}=t.config,{currentView:a,viewDate:r}=t.picker;let s;switch(a.id){case 0:s=u(r,e);break;case 1:s=p(r,e);break;default:s=p(r,e*a.navStep)}s=o(s,i,n),t.picker.changeFocus(s).render()}function lt(t){const e=t.picker.currentView.id;e!==t.config.maxView&&t.picker.changeView(e+1).render()}function ct(t){t.config.updateOnBlur?t.update({revert:!0}):t.refresh("input"),t.hide()}function ht(t,e){const i=t.picker,n=new Date(i.viewDate),a=i.currentView.id,o=1===a?u(n,e-n.getMonth()):p(n,e-n.getFullYear());i.changeFocus(o).changeView(a-1).render()}function dt(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 ut(t){t.setDate({clear:!0})}function pt(t){lt(t)}function ft(t){st(t,-1)}function gt(t){st(t,1)}function mt(t,e){const i=j(e,".datepicker-cell");if(!i||i.classList.contains("disabled"))return;const{id:n,isMinView:a}=t.picker.currentView;a?t.setDate(Number(i.dataset.date)):ht(t,Number(1===n?i.dataset.month:i.dataset.year))}function vt(t){t.preventDefault()}const bt=["left","top","right","bottom"].reduce(((t,e)=>(t[e]=`datepicker-orient-${e}`,t)),{}),yt=t=>t?`${t}px`:t;function xt(e,i){if(void 0!==i.title&&(i.title?(e.controls.title.textContent=i.title,I(e.controls.title)):(e.controls.title.textContent="",M(e.controls.title))),i.prevArrow){const t=e.controls.prevBtn;O(t),i.prevArrow.forEach((e=>{t.appendChild(e.cloneNode(!0))}))}if(i.nextArrow){const t=e.controls.nextBtn;O(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?I(e.controls.todayBtn):M(e.controls.todayBtn)),t(i,"minDate")||t(i,"maxDate")){const{minDate:t,maxDate:i}=e.datepicker.config;e.controls.todayBtn.disabled=!a(c(),t,i)}void 0!==i.clearBtn&&(i.clearBtn?I(e.controls.clearBtn):M(e.controls.clearBtn))}function wt(t){const{dates:i,config:n}=t;return o(i.length>0?e(i):n.defaultViewDate,n.minDate,n.maxDate)}function _t(t,e){const i=new Date(t.viewDate),n=new Date(e),{id:a,year:o,first:r,last:s}=t.currentView,l=n.getFullYear();switch(t.viewDate=e,l!==i.getFullYear()&&rt(t.datepicker,"changeYear"),n.getMonth()!==i.getMonth()&&rt(t.datepicker,"changeMonth"),a){case 0:return e<r||e>s;case 1:return l!==o;default:return l<r||l>s}}function Ct(t){return window.getComputedStyle(t).direction}function St(t){const e=D(t);if(e!==document.body&&e)return"visible"!==window.getComputedStyle(e).overflow?e:St(e)}class kt{constructor(t){const{config:e}=this.datepicker=t,i=J.replace(/%buttonClass%/g,e.buttonClass),n=this.element=L(i).firstChild,[a,o,r]=n.firstChild.children,s=a.firstElementChild,[l,c,h]=a.lastElementChild.children,[d,u]=r.firstChild.children,p={title:s,prevBtn:l,viewSwitch:c,nextBtn:h,todayBtn:d,clearBtn:u};this.main=o,this.controls=p;const f=t.inline?"inline":"dropdown";n.classList.add(`datepicker-${f}`),xt(this,e),this.viewDate=wt(t),F(t,[[n,"mousedown",vt],[o,"click",mt.bind(null,t)],[p.viewSwitch,"click",pt.bind(null,t)],[p.prevBtn,"click",ft.bind(null,t)],[p.nextBtn,"click",gt.bind(null,t)],[p.todayBtn,"click",dt.bind(null,t)],[p.clearBtn,"click",ut.bind(null,t)]]),this.views=[new it(this),new at(this),new ot(this,{id:2,name:"years",cellClass:"year",step:1}),new ot(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[e.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),e.container?e.container.appendChild(this.element):t.inputField.after(this.element)}setOptions(t){xt(this,t),this.views.forEach((e=>{e.init(t,!1)})),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:t,element:e}=this;if(t.inline)e.classList.add("active");else{const i=Ct(t.inputField);i!==Ct(D(e))?e.dir=i:e.dir&&e.removeAttribute("dir"),e.style.visiblity="hidden",e.classList.add("active"),this.place(),e.style.visiblity="",t.config.disableTouchKeyboard&&t.inputField.blur()}this.active=!0,rt(t,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,rt(this.datepicker,"hide"))}place(){const{classList:t,offsetParent:e,style:i}=this.element,{config:n,inputField:a}=this.datepicker,{width:o,height:r}=this.element.getBoundingClientRect(),{left:s,top:l,right:c,bottom:h,width:d,height:u}=a.getBoundingClientRect();let{x:p,y:f}=n.orientation,g=s,m=l;if(e!==document.body&&e){const t=e.getBoundingClientRect();g-=t.left-e.scrollLeft,m-=t.top-e.scrollTop}else g+=window.scrollX,m+=window.scrollY;const v=St(a);let b=0,y=0,{clientWidth:x,clientHeight:w}=document.documentElement;if(v){const t=v.getBoundingClientRect();t.top>0&&(y=t.top),t.left>0&&(b=t.left),t.right<x&&(x=t.right),t.bottom<w&&(w=t.bottom)}let _=0;"auto"===p&&(s<b?(p="left",_=b-s):s+o>x?(p="right",x<c&&(_=x-c)):p="rtl"===Ct(a)?c-o<b?"left":"right":"left"),"right"===p&&(g+=d-o),g+=_,"auto"===f&&(f=l-r>y&&h+r>w?"top":"bottom"),"top"===f?m-=r:m+=u,t.remove(...Object.values(bt)),t.add(bt[p],bt[f]),i.left=yt(g),i.top=yt(m)}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",rt(this.datepicker,"changeView"),this.main.replaceChild(i.element,e.element)),this}changeFocus(t){return this._renderMethod=_t(this,t)?"render":"refreshFocus",this.views.forEach((t=>{t.updateFocus()})),this}update(){const t=wt(this.datepicker);return this._renderMethod=_t(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 At(t,e,i,n,o,r){if(a(t,o,r)){if(n(t)){return At(e(t,i),e,i,n,o,r)}return t}}function Tt(t,e,i,n){const a=t.picker,o=a.currentView,r=o.step||1;let s,l,c=a.viewDate;switch(o.id){case 0:c=n?d(c,7*i):e.ctrlKey||e.metaKey?p(c,i):d(c,i),s=d,l=t=>o.disabled.includes(t);break;case 1:c=u(c,n?4*i:i),s=u,l=t=>{const e=new Date(t),{year:i,disabled:n}=o;return e.getFullYear()===i&&n.includes(e.getMonth())};break;
52default:c=p(c,i*(n?4:1)*r),s=p,l=t=>o.disabled.includes(m(t,r))}c=At(c,s,i<0?-r:r,l,o.minDate,o.maxDate),void 0!==c&&a.changeFocus(c).render()}function Et(t,e){const i=e.key;if("Tab"===i)return void ct(t);const n=t.picker,{id:a,isMinView:o}=n.currentView;if(n.active){if(t.editMode)return void("Enter"===i?t.exitEditMode({update:!0,autohide:t.config.autohide}):"Escape"===i&&n.hide());if("ArrowLeft"===i)if(e.ctrlKey||e.metaKey)st(t,-1);else{if(e.shiftKey)return void t.enterEditMode();Tt(t,e,-1,!1)}else if("ArrowRight"===i)if(e.ctrlKey||e.metaKey)st(t,1);else{if(e.shiftKey)return void t.enterEditMode();Tt(t,e,1,!1)}else if("ArrowUp"===i)if(e.ctrlKey||e.metaKey)lt(t);else{if(e.shiftKey)return void t.enterEditMode();Tt(t,e,-1,!0)}else if("ArrowDown"===i){if(e.shiftKey&&!e.ctrlKey&&!e.metaKey)return void t.enterEditMode();Tt(t,e,1,!0)}else{if("Enter"!==i)return void("Escape"===i?n.hide():"Backspace"!==i&&"Delete"!==i&&(1!==i.length||e.ctrlKey||e.metaKey)||t.enterEditMode());if(o)return void t.setDate(n.viewDate);n.changeView(a-1).render()}}
52else{if("ArrowDown"!==i)return void("Enter"===i?t.update():"Escape"===i&&n.show());n.show()}e.preventDefault()}function Lt(t){t.config.showOnFocus&&!t._showing&&t.show()}function Dt(t,e){const i=e.target;(t.picker.active||t.config.showOnClick)&&(i._active=P(i),i._clicking=setTimeout((()=>{delete i._active,delete i._clicking}),2e3))}function Pt(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 Mt(t,e){e.clipboardData.types.includes("text/plain")&&t.enterEditMode()}function It(t,e){const{element:i,picker:n}=t;if(!n.active&&!P(i))return;const a=n.element;j(e,(t=>t===i||t===a))||ct(t)}function Ot(t,e){return t.map((t=>T(t,e.format,e.locale))).join(e.dateDelimiter)}function zt(t,e,i=!1){const{config:n,dates:o,rangeSideIndex:r}=t;if(0===e.length)return i?[]:void 0;let s=e.reduce(((t,e)=>{let i=A(e,n.format,n.locale);return void 0===i||(i=v(i,n.pickLevel,r),!a(i,n.minDate,n.maxDate)||t.includes(i)||n.datesDisabled.includes(i)||!(n.pickLevel>0)&&n.daysOfWeekDisabled.includes(new Date(i).getDay())||t.push(i)),t}),[]);return 0!==s.length?(n.multidate&&!i&&(s=s.reduce(((t,e)=>(o.includes(e)||t.push(e),t)),o.filter((t=>!s.includes(t))))),n.maxNumberOfDates&&s.length>n.maxNumberOfDates?s.slice(-1*n.maxNumberOfDates):s):void 0}function Nt(t,e=3,i=!0){const{config:n,picker:a,inputField:o}=t;if(2&e){const t=a.active?n.pickLevel:n.startView;a.update().changeView(t).render(i)}1&e&&o&&(o.value=Ot(t.dates,n))}function Rt(t,e,i){let{clear:n,render:a,autohide:o,revert:r}=i;void 0===a&&(a=!0),a?void 0===o&&(o=t.config.autohide):o=!1;const s=zt(t,e,n);(s||r)&&(s&&s.toString()!==t.dates.toString()?(t.dates=s,Nt(t,a?3:1),rt(t,"changeDate")):Nt(t,1),o&&t.hide())}class Ft{constructor(t,e={},i){t.datepicker=this,this.element=t;const a=this.config=Object.assign({buttonClass:e.buttonClass&&String(e.buttonClass)||"button",container:null,defaultViewDate:c(),maxDate:void 0,minDate:void 0},K(W,this)),o=this.inline="INPUT"!==t.tagName;let r,s;if(o?a.container=t:(e.container&&(a.container=e.container instanceof HTMLElement?e.container:document.querySelector(e.container)),r=this.inputField=t,r.classList.add("datepicker-input")),i){const t=i.inputs.indexOf(r),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}),Object.defineProperty(this,"rangeSideIndex",{get:()=>t})}this._options=e,Object.assign(a,K(e,this)),o?(s=n(t.dataset.date,a.dateDelimiter),delete t.dataset.date):s=n(r.value,a.dateDelimiter),this.dates=[];const l=zt(this,s);l&&l.length>0&&(this.dates=l),r&&(r.value=Ot(this.dates,a));const h=this.picker=new kt(this);if(o)this.show();else{const t=It.bind(null,this);F(this,[[r,"keydown",Et.bind(null,this)],[r,"focus",Lt.bind(null,this)],[r,"mousedown",Dt.bind(null,this)],[r,"click",Pt.bind(null,this)],[r,"paste",Mt.bind(null,this)],[document,"mousedown",t],[document,"touchstart",t],[window,"resize",h.place.b
52ind(h)]])}}static formatDate(t,e,i){return T(t,e,i&&Y[i]||Y.en)}static parseDate(t,e,i){return A(t,e,i&&Y[i]||Y.en)}static get locales(){return Y}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=K(t,this);Object.assign(this._options,t),Object.assign(this.config,i),e.setOptions(i),Nt(this,3)}show(){if(this.inputField){if(this.inputField.disabled)return;P(this.inputField)||this.config.disableTouchKeyboard||(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(),H(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}getDate(t){const e=t?e=>T(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={},a=e(t);"object"!=typeof a||Array.isArray(a)||a instanceof Date||!a||Object.assign(n,i.pop());Rt(this,Array.isArray(i[0])?i[0]:i,n)}update(t){if(this.inline)return;const e=Object.assign(t||{},{clear:!0,render:!0});Rt(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,Nt(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 Ht(t){const e=Object.assign({},t);return delete e.inputs,delete e.allowOneSidedRange,delete e.maxNumberOfDates,e}function Bt(t,e,i,n){F(t,[[i,"changeDate",e]]),new Ft(i,n,t)}function jt(t,e){if(t._updating)return;t._updating=!0;const i=e.target;if(void 0===i.datepicker)return;const n=t.datepickers,a={render:!1},o=t.inputs.indexOf(i),r=0===o?1:0,s=n[o].dates[0],l=n[r].dates[0];void 0!==s&&void 0!==l?0===o&&s>l?(n[0].setDate(l,a),n[1].setDate(s,a)):1===o&&s<l&&(n[0].setDate(s,a),n[1].setDate(l,a)):t.allowOneSidedRange||void 0===s&&void 0===l||(a.clear=!0,n[r].setDate(n[o].dates,a)),n[0].picker.update().render(),n[1].picker.update().render(),delete t._updating}window.Datepicker=Ft,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=jt.bind(null,this),a=Ht(e),o=[];Object.defineProperty(this,"datepickers",{get:()=>o}),Bt(this,n,this.inputs[0],a),Bt(this,n,this.inputs[1],a),Object.freeze(o),o[0].dates.length>0?jt(this,{target:this.inputs[0]}):o[1].dates.length>0&&jt(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=Ht(t);this.datepickers[0].setOptions(e),this.datepickers[1].setOptions(e)}destroy(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),H(this),delete this.element.rangepicker}getDates(t){const e=t?e=>T(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,a=this.dates;this._updating=!0,i.setDate(t),n.setDate(e),delete this._updating,n.dates[0]!==a[1]?jt(this,{target:this.inputs[1]}):i.dates[0]!==a[0]&&jt(this,{target:this.inputs[0]})}}}(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}
52function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,i){return(l=s()?Reflect.construct:function(t,e,i){var n=[null];return n.push.apply(n,e),n=new(Function.bind.apply(t,n)),i&&r(n,i.prototype),n}).apply(null,arguments)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t,e,i){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){if(t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e),t)return(e=Object.getOwnPropertyDescriptor(t,e)).get?e.get.call(i):e.value})(t,e,i||t)}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){return Object.keys(t).map((function(e){return t[e]}))}function p(t){return Array.prototype.slice.call(t)}function f(t,e){e='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===G.indexOf(e)&&(G.push(e),V(e))}function g(t){return t&&"function"==typeof t.toPromise}function m(t){return g(t)?t.toPromise():Promise.resolve(t)}function v(t){return t&&Promise.resolve(t)===t}function b(e){return e instanceof Element||"object"===t(e)&&e.jquery}function y(){return document.body.querySelector(".".concat(K.container))}function x(t){var e=y();return e?e.querySelector(t):null}function w(t){return x(".".concat(t))}function _(){return w(K.popup)}function C(){return w(K.icon)}function S(){return w(K.title)}function k(){return w(K.content)}function A(){return w(K["html-container"])}function T(){return w(K.image)}function E(){return w(K["progress-steps"])}function L(){return w(K["validation-message"])}function D(){return x(".".concat(K.actions," .").concat(K.confirm))}function P(){return x(".".concat(K.actions," .").concat(K.deny))}function M(){return x(".".concat(K.loader))}function I(){return x(".".concat(K.actions," .").concat(K.cancel))}function O(){return w(K.actions)}function z(){return w(K.header)}function N(){return w(K.footer)}function R(){return w(K["timer-progress-bar"])}function F(){return w(K.close)}function H(){var t=p(_().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0})),e=p(_().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(t.concat(e)).filter((function(t){return yt(t)}))}function B(){return!Q()&&!document.body.classList.contains(K["no-backdrop"])}function j(t,e){t.textContent="",e&&(p((e=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),p(e.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)})))}function Y(t,e){if(e){for(var i=e.split(/\s+/),n=0;n<i.length;n++)if(!t.classList.contains(i[n]))return;return 1}}function W(e,i,n){var a,o;if(o=i,p((a=e).classList).forEach((function(t){-1===u(K).indexOf(t)&&-1===u(J).indexOf(t)&&-1===u(o.showClass).indexOf(t)&&a.classList.remove(t)})),i.customClass&&i.customClass[n]){if("string"!=typeof i.customClass[n]&&!i.customClass[n].forEach)return V("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(t(i.customClass[n]),'"'));mt(e,i.customClass[n])}}var X="SweetAlert2:",V=function(e){console.warn("".concat(X," ").concat("object"===t(e)?e.join(" "):e))},$=function(t){console.error("".concat(X," ").concat(t))},G=[],q=function(t){return"function"==typeof t?t():t},U=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Z=function(t){var e,i={};for(e in t)i[t[e]]="swal2-"+t[e];return i},K=Z(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","to
52p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),J=Z(["success","warning","info","question","error"]),Q=function(){return document.body.classList.contains(K["toast-shown"])},tt={previousBodyPadding:null};function et(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return bt(t,K[e]);case"checkbox":return t.querySelector(".".concat(K.checkbox," input"));case"radio":return t.querySelector(".".concat(K.radio," input:checked"))||t.querySelector(".".concat(K.radio," input:first-child"));case"range":return t.querySelector(".".concat(K.range," input"));default:return bt(t,K.input)}}function it(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function nt(t,e,i){t&&e&&(e="string"==typeof e?e.split(/\s+/).filter(Boolean):e).forEach((function(e){t.forEach?t.forEach((function(t){i?t.classList.add(e):t.classList.remove(e)})):i?t.classList.add(e):t.classList.remove(e)}))}function at(t,e,i){(i=i==="".concat(parseInt(i))?parseInt(i):i)||0===parseInt(i)?t.style[e]="number"==typeof i?"".concat(i,"px"):i:t.style.removeProperty(e)}function ot(t){t.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"}function rt(t){t.style.display="none"}function st(t,e,i,n){(e=t.querySelector(e))&&(e.style[i]=n)}function lt(t,e,i){e?ot(t,i):rt(t)}function ct(t){return!!(t.scrollHeight>t.clientHeight)}function ht(t){var e=window.getComputedStyle(t);t=parseFloat(e.getPropertyValue("animation-duration")||"0"),e=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<t||0<e}function dt(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=R();yt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))}function ut(){return"undefined"==typeof window||"undefined"==typeof document}function pt(t){ii.isVisible()&>!==t.target.value&&ii.resetValidationMessage(),gt=t.target.value}function ft(e,i){e instanceof HTMLElement?i.appendChild(e):"object"===t(e)?wt(e,i):e&&j(i,e)}var gt,mt=function(t,e){nt(t,e,!0)},vt=function(t,e){nt(t,e,!1)},bt=function(t,e){for(var i=0;i<t.childNodes.length;i++)if(Y(t.childNodes[i],e))return t.childNodes[i]},yt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},xt='\n <div aria-labelledby="'.concat(K.title,'" aria-describedby="').concat(K.content,'" class="').concat(K.popup,'" tabindex="-1">\n <div class="').concat(K.header,'">\n <ul class="').concat(K["progress-steps"],'"></ul>\n <div class="').concat(K.icon,'"></div>\n <img class="').concat(K.image,'" />\n <h2 class="').concat(K.title,'" id="').concat(K.title,'"></h2>\n <button type="button" class="').concat(K.close,'"></button>\n </div>\n <div class="').concat(K.content,'">\n <div id="').concat(K.content,'" class="').concat(K["html-container"],'"></div>\n <input class="').concat(K.input,'" />\n <input type="file" class="').concat(K.file,'" />\n <div class="').concat(K.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(K.select,'"></select>\n <div class="').concat(K.radio,'"></div>\n <label for="').concat(K.checkbox,'" class="').concat(K.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(K.label,'"></span>\n </label>\n <textarea class="').concat(K.textarea,'"></textarea>\n <div class="').concat(K["validation-message"],'" id="').concat(K["validation-message"],'"></div>\n </div>\n <div class="').concat(K.actions,'">\n <div class="').concat(K.loader,'"></div>\n <button type="button" class="').concat(K.confirm,'"></button>\n <button type="button" class="').concat(K.deny,'"></button>\n <button type="button" class="').concat(K.cancel,'"></button>\n </div>\n <div class="').concat(K.footer,'"></div>\n <div class="').concat(K["timer-progress-bar-container"],'">\n <div class="').concat(K["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),wt=function(t,e){t.jquery?_t(e,t):j(e,t.toString())},_t=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Ct=function(){if(ut())return!1;var t,e=document.createElement("div"),i={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&void 0!==e.style[t])return i[t];return!1}();function St(t,e,i){lt(t,i["show".concat(d(e),"Button")],"inline-block"),j(t,i["".concat(e,"ButtonText")]),t.setAttribute("aria-label",i["".concat(e,"ButtonAriaLabel")]),t.className=K[e],W(t,i,"".concat(e,"Button")),mt(t,i["".concat(e,"ButtonClass")])}function kt(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function At(t,e,i){var n,a;i.inputLabel&&(t.id=K.input,n=document.createElement("label"),a=K["input-label"],n.setAttribute("for",t.id),n.className=a,mt(n,i.customClass.inputLabel),n.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",n))}var Tt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Et=["input","file","range","select","radio","checkbox","textarea"],Lt=function(t){return t=K[t]||K.input,bt(k(),t)},Dt={};function Pt(t,e){var i,n,a,o=A();W(o,e,"htmlContainer"),e.html?(ft(e.html,o),ot(o,"block")):e.text?(o.textContent=e.text,ot(o,"block")):rt(o),i=e,n=k(),t=Tt.innerParams.get(t),a=!t||i.input!==t.input,Et.forEach((function(t){var e=K[t],o=bt(n,e);(function(t,e){var i=et(k(),t);
52if(i)for(var n in function(t){for(var e=0;e<t.attributes.length;e++){var i=t.attributes[e].name;-1===["type","value","style"].indexOf(i)&&t.removeAttribute(i)}}(i),e)"range"===t&&"placeholder"===n||i.setAttribute(n,e[n])})(t,i.inputAttributes),o.className=e,a&&rt(o)})),i.input&&(a&&function(t){if(!Dt[t.input])return $('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Lt(t.input),i=Dt[t.input](e,t);ot(i),setTimeout((function(){it(i)}))}(i),function(t){var e=Lt(t.input);t.customClass&&mt(e,t.customClass.input)}(i)),W(k(),e,"content")}function Mt(){return y()&&y().getAttribute("data-queue-step")}function It(t,e){var i=E();if(!e.progressSteps||0===e.progressSteps.length)return rt(i),0;ot(i),i.textContent="";var n=parseInt(void 0===e.currentProgressStep?Mt():e.currentProgressStep);n>=e.progressSteps.length&&V("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,a){var o;o=t,t=document.createElement("li"),mt(t,K["progress-step"]),j(t,o);i.appendChild(t),a===n&&mt(t,K["active-progress-step"]),a!==e.progressSteps.length-1&&(t=e,a=document.createElement("li"),mt(a,K["progress-step-line"]),t.progressStepsDistance&&(a.style.width=t.progressStepsDistance),i.appendChild(a))}))}function Ot(t,e){var i,n,a;a=e,i=y(),n=_(),a.toast?(at(i,"width",a.width),n.style.width="100%"):at(n,"width",a.width),at(n,"padding",a.padding),a.background&&(n.style.background=a.background),rt(L()),Yt(n,a),function(t,e){var i,n,a=y();a&&(n=a,"string"==typeof(i=e.backdrop)?n.style.background=i:i||mt([document.documentElement,document.body],K["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&V('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),n=a,(i=e.position)in K?mt(n,K[i]):(V('The "position" parameter is not valid, defaulting to "center"'),mt(n,K.center)),i=a,!(n=e.grow)||"string"!=typeof n||(n="grow-".concat(n))in K&&mt(i,K[n]),W(a,e,"container"),(e=document.body.getAttribute("data-swal2-queue-step"))&&(a.setAttribute("data-queue-step",e),document.body.removeAttribute("data-swal2-queue-step")))}(0,e),function(t,e){var i,n=z();W(n,e,"header"),It(0,e),i=t,n=e,t=Tt.innerParams.get(i),i=C(),t&&n.icon===t.icon?(Ft(i,n),Nt(i,n)):n.icon||n.iconHtml?n.icon&&-1===Object.keys(J).indexOf(n.icon)?($('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(n.icon,'"')),rt(i)):(ot(i),Ft(i,n),Nt(i,n),mt(i,n.showClass.icon)):rt(i),function(t){var e=T();if(!t.imageUrl)return rt(e);ot(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),at(e,"width",t.imageWidth),at(e,"height",t.imageHeight),e.className=K.image,W(e,t,"image")}(e),n=e,lt(i=S(),n.title||n.titleText,"block"),n.title&&ft(n.title,i),n.titleText&&(i.innerText=n.titleText),W(i,n,"title"),n=e,j(e=F(),n.closeButtonHtml),W(e,n,"closeButton"),lt(e,n.showCloseButton),e.setAttribute("aria-label",n.closeButtonAriaLabel)}(t,e),Pt(t,e),function(t,e){var i=O(),n=M(),a=D(),o=P(),r=I();e.showConfirmButton||e.showDenyButton||e.showCancelButton||rt(i),W(i,e,"actions"),St(a,"confirm",e),St(o,"deny",e),St(r,"cancel",e),function(t,e,i,n){if(!n.buttonsStyling)return vt([t,e,i],K.styled);mt([t,e,i],K.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.denyButtonColor&&(e.style.backgroundColor=n.denyButtonColor),n.cancelButtonColor&&(i.style.backgroundColor=n.cancelButtonColor)}(a,o,r,e),e.reverseButtons&&(i.insertBefore(r,n),i.insertBefore(o,n),i.insertBefore(a,n)),j(n,e.loaderHtml),W(n,e,"loader")}(0,e),a=e,lt(t=N(),a.footer),a.footer&&ft(a.footer,t),W(t,a,"footer"),"function"==typeof e.didRender?e.didRender(_()):"function"==typeof e.onRender&&e.onRender(_())}function zt(){return D()&&D().click()}Dt.text=Dt.email=Dt.password=Dt.number=Dt.tel=Dt.url=function(e,i){return"string"==typeof i.inputValue||"number"==typeof i.inputValue?e.value=i.inputValue:v(i.inputValue)||V('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(i.inputValue),'"')),At(e,e,i),kt(e,i),e.type=i.input,e},Dt.file=function(t,e){return At(t,t,e),kt(t,e),t},Dt.range=function(t,e){var i=t.querySelector("input"),n=t.querySelector("output");return i.value=e.inputValue,i.type=e.input,n.value=e.inputValue,At(i,t,e),t},Dt.select=function(t,e){var i;return t.textContent="",e.inputPlaceholder&&(j(i=document.createElement("option"),e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)),At(t,t,e),t},Dt.radio=function(t){return t.textContent="",t},Dt.checkbox=function(t,e){var i=et(k(),"checkbox");return i.value=1,i.id=K.checkbox,i.checked=Boolean(e.inputValue),j(i=t.querySelector("span"),e.inputPlaceholder),t},Dt.textarea=function(t,e){function i(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)}var n;return t.value=e.inputValue,kt(t,e),At(t,t,e),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(_()).width),new MutationObserver((function(){var e=t.offsetWidth+i(_())+i(k());_().style.width=n<e?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})),t};var Nt=function(t,e){for(var i in J)e.icon!==i&&vt(t,J[i]);mt(t,J[e.icon]),Ht(t,e),Rt(),W(t,e,"icon")},Rt=function(){for(var t=_(),e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),n=0;n<i.length;n++)i[n].style.backgroundColor=e},Ft=function(t,e){t.textContent="",e.iconHtml?j(t,Bt(e.iconHtml)):"success"===e.icon?j(t,'\n <div class="swal2-success-circular-line-left"></div>
52\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===e.icon?j(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):j(t,Bt({question:"?",warning:"!",info:"i"}[e.icon]))},Ht=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var i=0,n=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];i<n.length;i++)st(t,n[i],"backgroundColor",e.iconColor);st(t,".swal2-success-ring","borderColor",e.iconColor)}},Bt=function(t){return'<div class="'.concat(K["icon-content"],'">').concat(t,"</div>")},jt=[],Yt=function(t,e){t.className="".concat(K.popup," ").concat(yt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],K["toast-shown"]),mt(t,K.toast)):mt(t,K.modal),W(t,e,"popup"),"string"==typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,K["icon-".concat(e.icon)])};function Wt(t){(e=_())||ii.fire();var e=_(),i=O(),n=M();!t&&yt(D())&&(t=D()),ot(i),t&&(rt(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),mt([e,i],K.loading),ot(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function Xt(){if($t.timeout)return function(){var t=R(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width);i=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")}(),$t.timeout.stop()}function Vt(){if($t.timeout){var t=$t.timeout.start();return dt(t),t}}var $t={},Gt=!1,qt={};function Ut(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var i in qt){var n=e.getAttribute(i);if(n)return void qt[i].fire({template:n})}}function Zt(t){return Object.prototype.hasOwnProperty.call(Qt,t)}function Kt(t){return ee[t]}function Jt(t){for(var e in t)Zt(i=e)||V('Unknown parameter "'.concat(i,'"')),t.toast&&(i=e,-1!==ie.indexOf(i)&&V('The parameter "'.concat(i,'" is incompatible with toasts'))),Kt(e)&&f(e,Kt(e));var i}var Qt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose
52:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},te=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ee={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ie=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ne=Object.freeze({isValidParameter:Zt,isUpdatableParameter:function(t){return-1!==te.indexOf(t)},isDeprecatedParameter:Kt,argsToParams:function(e){var i={};return"object"!==t(e[0])||b(e[0])?["title","html","icon"].forEach((function(n,a){"string"==typeof(a=e[a])||b(a)?i[n]=a:void 0!==a&&$("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(t(a)))})):a(i,e[0]),i},isVisible:function(){return yt(_())},clickConfirm:zt,clickDeny:function(){return P()&&P().click()},clickCancel:function(){return I()&&I().click()},getContainer:y,getPopup:_,getTitle:S,getContent:k,getHtmlContainer:A,getImage:T,getIcon:C,getInputLabel:function(){return w(K["input-label"])},getCloseButton:F,getActions:O,getConfirmButton:D,getDenyButton:P,getCancelButton:I,getLoader:M,getHeader:z,getFooter:N,getTimerProgressBar:R,getFocusableElements:H,getValidationMessage:L,isLoading:function(){return _().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return l(this,e)},mixin:function(t){return function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(p,i);var l,d,u=(l=p,d=s(),function(){var t,e=o(l);return c(this,d?(t=o(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function p(){return e(this,p),u.apply(this,arguments)}return n(p,[{key:"_main",value:function(e,i){return h(o(p.prototype),"_main",this).call(this,e,a({},t,i))}}]),p}(this)},queue:function(t){f("Swal.queue()","async/await");var e=this;function i(t,e){jt=[],t(e)}jt=t;var n=[];return new Promise((function(t){!function a(o,r){o<jt.length?(document.body.setAttribute("data-swal2-queue-step",o),e.fire(jt[o]).then((function(e){void 0!==e.value?(n.push(e.value),a(o+1,r)):i(t,{dismiss:e.dismiss})}))):i(t,{value:n})}(0)}))},getQueueStep:Mt,insertQueueStep:function(t,e){return e&&e<jt.length?jt.splice(e,0,t):jt.push(t)},deleteQueueStep:function(t){void 0!==jt[t]&&jt.splice(t,1)},showLoading:Wt,enableLoading:Wt,getTimerLeft:function(){return $t.timeout&&$t.timeout.getTimerLeft()},stopTimer:Xt,resumeTimer:Vt,toggleTimer:function(){var t=$t.timeout;return t&&(t.running?Xt:Vt)()},increaseTimer:function(t){if($t.timeout)return dt(t=$t.timeout.increase(t),!0),t},isTimerRunning:function(){return $t.timeout&&$t.timeout.isRunning()},bindClickHandler:function(){qt[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Gt||(document.body.addEventListener("click",Ut),Gt=!0)}});function ae(){var t,e;Tt.innerParams.get(this)&&(rt((t=Tt.domCache.get(this)).loader),
52(e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"))).length?ot(e[0],"inline-block"):yt(D())||yt(P())||yt(I())||rt(t.actions),vt([t.popup,t.actions],K.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}function oe(){return!!window.MSInputMethodContext&&!!document.documentMode}function re(){var t=y(),e=_();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var se=function(t){var e=t.target,i=y();return!(le(t)||ce(t)||e!==i&&(ct(i)||"INPUT"===e.tagName||ct(k())&&k().contains(e)))},le=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},ce=function(t){return t.touches&&1<t.touches.length},he={swalPromiseResolve:new WeakMap};function de(t,e,i,n){Q()?ge(t,n):(function(t){return new Promise((function(e){if(!t)return e();var i=window.scrollX,n=window.scrollY;$t.restoreFocusTimeout=setTimeout((function(){$t.previousActiveElement&&$t.previousActiveElement.focus?($t.previousActiveElement.focus(),$t.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),void 0!==i&&void 0!==n&&window.scrollTo(i,n)}))}(i).then((function(){return ge(t,n)})),$t.keydownTarget.removeEventListener("keydown",$t.keydownHandler,{capture:$t.keydownListenerCapture}),$t.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),B()&&(null!==tt.previousBodyPadding&&(document.body.style.paddingRight="".concat(tt.previousBodyPadding,"px"),tt.previousBodyPadding=null),Y(document.body,K.iosfix)&&
52(e=parseInt(document.body.style.top,10),vt(document.body,K.iosfix),document.body.style.top="",document.body.scrollTop=-1*e),"undefined"!=typeof window&&oe()&&window.removeEventListener("resize",re),p(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),vt([document.documentElement,document.body],[K.shown,K["height-auto"],K["no-backdrop"],K["toast-shown"]])}function ue(t){var e,i,n,o=_();o&&(t=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:a({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)}(t),(e=Tt.innerParams.get(this))&&!Y(o,e.hideClass.popup)&&(i=he.swalPromiseResolve.get(this),vt(o,e.showClass.popup),mt(o,e.hideClass.popup),n=y(),vt(n,e.showClass.backdrop),mt(n,e.hideClass.backdrop),function(t,e,i){var n=y(),a=Ct&&ht(e),o=i.onClose,r=i.onAfterClose,s=i.willClose,l=i.didClose;pe(e,s,o),a?fe(t,e,n,i.returnFocus,l||r):de(t,n,i.returnFocus,l||r)}(this,o,e),i(t)))}var pe=function(t,e,i){null!==e&&"function"==typeof e?e(t):null!==i&&"function"==typeof i&&i(t)},fe=function(t,e,i,n,a){$t.swalCloseEventFinishedCallback=de.bind(null,t,i,n,a),e.addEventListener(Ct,(function(t){t.target===e&&($t.swalCloseEventFinishedCallback(),delete $t.swalCloseEventFinishedCallback)}))},ge=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function me(t,e,i){var n=Tt.domCache.get(t);e.forEach((function(t){n[t].disabled=i}))}function ve(t,e){if(!t)return!1;if("radio"===t.type)for(var i=t.parentNode.parentNode.querySelectorAll("input"),n=0;n<i.length;n++)i[n].disabled=e;else t.disabled=e}var be=function(){function t(i,n){e(this,t),this.callback=i,this.remaining=n,this.running=!1,this.start()}return n(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),ye={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function xe(t){var e,i;(e=t).inputValidator||Object.keys(ye).forEach((function(t){e.input===t&&(e.inputValidator=ye[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&V("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=q(t.animation),(i=t).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(V('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),function(t){var e,i,n,a,o,r=!!(a=y())&&(a.parentNode.removeChild(a),vt([document.documentElement,document.body],[K["no-backdrop"],K["toast-shown"],K["has-column"]]),!0);ut()?$("SweetAlert2 requires document to initialize"):((o=document.createElement("div")).className=K.container,r&&mt(o,K["no-transition"]),j(o,xt),(a="string"==typeof(e=t.target)?document.querySelector(e):e).appendChild(o),r=t,(e=_()).setAttribute("role",r.toast?"alert":"dialog"),e.setAttribute("aria-live",r.toast?"polite":"assertive"),r.toast||e.setAttribute("aria-modal","true"),o=a,"rtl"===window.getComputedStyle(o).direction&&mt(y(),K.rtl),t=k(),r=bt(t,K.input),e=bt(t,K.file),i=t.querySelector(".".concat(K.range," input")),n=t.querySelector(".".concat(K.range," output")),a=bt(t,K.select),o=t.querySelector(".".concat(K.checkbox," input")),t=bt(t,K.textarea),r.oninput=pt,e.onchange=pt,a.onchange=pt,o.onchange=pt,t.oninput=pt,i.onin
52put=function(t){pt(t),n.value=i.value},i.onchange=function(t){pt(t),i.nextSibling.value=i.value})}(t)}function we(t){var e=_();t.target===e&&(t=y(),e.removeEventListener(Ct,we),t.style.overflowY="auto")}function _e(t,e){t.closePopup({isConfirmed:!0,value:e})}function Ce(t,e,i){var n=H();if(n.length)return(e+=i)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();_().focus()}var Se=["swal-title","swal-html","swal-footer"],ke=function(t,e){p(t.attributes).forEach((function(i){-1===e.indexOf(i.name)&&V(['Unrecognized attribute "'.concat(i.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},Ae=function(t,e){"function"==typeof e.didOpen?setTimeout((function(){return e.didOpen(t)})):"function"==typeof e.onOpen&&setTimeout((function(){return e.onOpen(t)}))},Te=function(t,e){Ct&&ht(e)?(t.style.overflowY="hidden",e.addEventListener(Ct,we)):t.style.overflowY="auto"},Ee=function(t,e,i){var n;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!Y(document.body,K.iosfix)&&
52(n=document.body.scrollTop,document.body.style.top="".concat(-1*n,"px"),mt(document.body,K.iosfix),function(){var t,e=y();e.ontouchstart=function(e){t=se(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}}(),navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||_().scrollHeight>window.innerHeight-44&&(y().style.paddingBottom="".concat(44,"px"))),"undefined"!=typeof window&&oe()&&(re(),window.addEventListener("resize",re)),e&&"hidden"!==i&&null===tt.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(tt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(tt.previousBodyPadding+function(){var t=document.createElement("div");t.className=K["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout((function(){t.scrollTop=0}))},Le=function(t,e,i){mt(t,i.showClass.backdrop),e.style.setProperty("opacity","0","important"),ot(e),setTimeout((function(){mt(e,i.showClass.popup),e.style.removeProperty("opacity")}),10),mt([document.documentElement,document.body],K.shown),i.heightAuto&&i.backdrop&&!i.toast&&mt([document.documentElement,document.body],K["height-auto"])},De=function(e,i){function n(t){return Pe[i.input](a,Me(t),i)}var a=k();g(i.inputOptions)||v(i.inputOptions)?(Wt(D()),m(i.inputOptions).then((function(t){e.hideLoading(),n(t)}))):"object"===t(i.inputOptions)?n(i.inputOptions):$("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(i.inputOptions)))},Pe={select:function(t,e,i){function n(t,e,n){var a=document.createElement("option");a.value=n,j(a,e),a.selected=Ie(n,i.inputValue),t.appendChild(a)}var a=bt(t,K.select);e.forEach((function(t){var e,i=t[0];t=t[1];Array.isArray(t)?((e=document.createElement("optgroup")).label=i,e.disabled=!1,a.appendChild(e),t.forEach((function(t){return n(e,t[1],t[0])}))):n(a,t,i)})),a.focus()},radio:function(t,e,i){var n=bt(t,K.radio);e.forEach((function(t){var e=t[0],a=t[1],o=document.createElement("input");t=document.createElement("label");o.type="radio",o.name=K.radio,o.value=e,Ie(e,i.inputValue)&&(o.checked=!0),j(e=document.createElement("span"),a),e.className=K.label,t.appendChild(o),t.appendChild(e),n.appendChild(t)})),(e=n.querySelectorAll("input")).length&&e[0].focus()}},Me=function e(i){var n=[];return"undefined"!=typeof Map&&i instanceof Map?i.forEach((function(i,a){"object"===t(i)&&(i=e(i)),n.push([a,i])}
52)):Object.keys(i).forEach((function(a){var o=i[a];"object"===t(o)&&(o=e(o)),n.push([a,o])})),n},Ie=function(t,e){return e&&e.toString()===t.toString()},Oe=function(t,e,i){var n=function(t,e){var i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return function(t){return t.checked?1:0}(i);case"radio":return function(t){return t.checked?t.value:null}(i);case"file":return function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null}(i);default:return e.inputAutoTrim?i.value.trim():i.value}}(t,e);e.inputValidator?ze(t,e,n):t.getInput().checkValidity()?("deny"===i?Ne:Re)(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},ze=function(t,e,i){t.disableInput(),Promise.resolve().then((function(){return m(e.inputValidator(i,e.validationMessage))})).then((function(n){t.enableButtons(),t.enableInput(),n?t.showValidationMessage(n):Re(t,e,i)}))},Ne=function(t,e,i){e.showLoaderOnDeny&&Wt(P()),e.preDeny?Promise.resolve().then((function(){return m(e.preDeny(i,e.validationMessage))})).then((function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?i:e})})):t.closePopup({isDenied:!0,value:i})},Re=function(t,e,i){e.showLoaderOnConfirm&&Wt(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return m(e.preConfirm(i,e.validationMessage))})).then((function(e){yt(L())||!1===e?t.hideLoading():_e(t,void 0===e?i:e)}))):_e(t,i)},Fe=["ArrowRight","ArrowDown","Right","Down"],He=["ArrowLeft","ArrowUp","Left","Up"],Be=["Escape","Esc"],je=function(t,e,i){e.isComposing||e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML&&-1===["textarea","file"].indexOf(i.input)&&(zt(),e.preventDefault())},Ye=function(t,e){for(var i=t.target,n=H(),a=-1,o=0;o<n.length;o++)if(i===n[o]){a=o;break}t.shiftKey?Ce(0,a,-1):Ce(0,a,1),t.stopPropagation(),t.preventDefault()},We=function(t){-1!==[D(),P(),I()].indexOf(document.activeElement)&&(t=-1!==Fe.indexOf(t)?"nextElementSibling":"previousElementSibling",(t=document.activeElement[t])&&t.focus())},Xe=function(t,e,i){q(e.allowEscapeKey)&&(t.preventDefault(),i(U.esc))},Ve=!1;function $e(e,i){var n=function(e){return(e="string"==typeof e.template?document.querySelector(e.template):e.template)?(function(t){var e=Se.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);p(t.querySelectorAll("*")).forEach((function(i){i.parentNode===t&&(i=i.tagName.toLowerCase(),-1===e.indexOf(i)&&V("Unrecognized element <".concat(i,">")))}))}(e=e.content||e),a(function(e){var i={};return p(e.querySelectorAll("swal-param")).forEach((function(e){ke(e,["name","value"]);var n=e.getAttribute("name");e=e.getAttribute("value"),"boolean"==typeof Qt[n]&&"false"===e&&(e=!1),"object"===t(Qt[n])&&(e=JSON.parse(e)),i[n]=e})),i}(e),function(t){var e={};return p(t.querySelectorAll("swal-button")).forEach((function(t){ke(t,["type","color","aria-label"]);var i=t.getAttribute("type");e["".concat(i,"ButtonText")]=t.innerHTML,e["show".concat(d(i),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(i,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(i,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e}(e),function(t){var e={};return(t=t.querySelector("swal-image"))&&(ke(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt"))),e}(e),function(t){var e={};return(t=t.querySelector("swal-icon"))&&(ke(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e}(e),function(t){var e={},i=t.querySelector("swal-input");return i&&(ke(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value"))),(t=t.querySelectorAll("swal-input-option")).length&&(e.inputOptions={},p(t).forEach((function(t){ke(t,["value"]);var i=t.getAttribute("value");t=t.innerHTML,e.inputOptions[i]=t}))),e}(e),function(t,e){var i,n={};for(i in e){var a=e[i],o=t.querySelector(a);o&&(ke(o,[]),n[a.replace(/^swal-/,"")]=o.innerHTML.trim())}return n}(e,Se))):{}}(e);return(n=a({},Qt,i,n,e)).showClass=a({},Qt.showClass,n.showClass),n.hideClass=a({},Qt.hideClass,n.hideClass),!1===e.animation&&(n.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},n.hideClass={}),n}function Ge(t,e,i){return new Promise((function(n){function a(e){t.closePopup({isDismissed:!0,dismiss:e})}var o,r,s,l;he.swalPromiseResolve.set(t,n),e.confirmButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.input?Oe(e,n,"confirm"):Re(e,n,!0));var e,n},e.denyButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.returnInputValueOnDeny?Oe(e,n,"deny"):Ne(e,n,!1));var e,n},e.cancelButton.onclick=function(){return e=a,t.disableButtons(),void e(U.cancel);var e},e.closeButton.onclick=function(){return a(U.close)}
52,o=t,l=e,n=a,Tt.innerParams.get(o).toast?function(t,e,i){e.popup.onclick=function(){var e=Tt.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||i(U.close)}}(o,l,n):(function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ve=!0)}}}(l),function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(Ve=!0)}}}(l),function(t,e,i){e.container.onclick=function(n){var a=Tt.innerParams.get(t);Ve?Ve=!1:n.target===e.container&&q(a.allowOutsideClick)&&i(U.backdrop)}}(o,l,n)),r=t,l=i,s=a,(n=$t).keydownTarget&&n.keydownHandlerAdded&&(n.keydownTarget.removeEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!1),l.toast||(n.keydownHandler=function(t){return function(t,e,i){var n=Tt.innerParams.get(t);n&&(n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?je(t,e,n):"Tab"===e.key?Ye(e,n):-1!==[].concat(Fe,He).indexOf(e.key)?We(e.key):-1!==Be.indexOf(e.key)&&Xe(e,n,i))}(r,t,s)}
52,n.keydownTarget=l.keydownListenerCapture?window:_(),n.keydownListenerCapture=l.keydownListenerCapture,n.keydownTarget.addEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!0),l=t,"select"===(n=i).input||"radio"===n.input?De(l,n):-1!==["text","email","number","tel","textarea"].indexOf(n.input)&&(g(n.inputValue)||v(n.inputValue))&&function(t,e){var i=t.getInput();rt(i),m(e.inputValue).then((function(n){i.value="number"===e.input?parseFloat(n)||0:"".concat(n),ot(i),i.focus(),t.hideLoading()})).catch((function(e){$("Error in inputValue promise: ".concat(e)),i.value="",ot(i),i.focus(),t.hideLoading()}))}(l,n),function(t){var e=y(),i=_();"function"==typeof t.willOpen?t.willOpen(i):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(i);var n=window.getComputedStyle(document.body).overflowY;Le(e,i,t),setTimeout((function(){Te(e,i)}),10),B()&&(Ee(e,t.scrollbarPadding,n),p(document.body.children).forEach((function(t){t===y()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,y())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),Q()||$t.previousActiveElement||($t.previousActiveElement=document.activeElement),Ae(i,t),vt(e,K["no-transition"])}(i),Ue($t,i,a),Ze(e,i),setTimeout((function(){e.container.scrollTop=0}))}))}
52function qe(t){var e={popup:_(),container:y(),content:k(),actions:O(),confirmButton:D(),denyButton:P(),cancelButton:I(),loader:M(),closeButton:F(),validationMessage:L(),progressSteps:E()};return Tt.domCache.set(t,e),e}var Ue=function(t,e,i){var n=R();rt(n),e.timer&&(t.timeout=new be((function(){i("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(ot(n),setTimeout((function(){t.timeout&&t.timeout.running&&dt(e.timer)}))))},Ze=function(t,e){if(!e.toast)return q(e.allowEnterKey)?void(Ke(t,e)||Ce(0,-1,1)):Je()},Ke=function(t,e){return e.focusDeny&&yt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&yt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!yt(t.confirmButton)||(t.confirmButton.focus(),0))},Je=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Qe,ti=function(t){for(var e in t)t[e]=new WeakMap},ei=(Z=Object.freeze({hideLoading:ae,disableLoading:ae,getInput:function(t){var e=Tt.innerParams.get(t||this);return(t=Tt.domCache.get(t||this))?et(t.content,e.input):null},close:ue,closePopup:ue,closeModal:ue,closeToast:ue,enableButtons:function(){me(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){me(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return ve(this.getInput(),!1)},disableInput:function(){return ve(this.getInput(),!0)},showValidationMessage:function(t){var e=Tt.domCache.get(this),i=Tt.innerParams.get(this);j(e.validationMessage,t),e.validationMessage.className=K["validation-message"],i.customClass&&i.customClass.validationMessage&&mt(e.validationMessage,i.customClass.validationMessage),ot(e.validationMessage),(e=this.getInput())&&(e.setAttribute("aria-invalid",!0),e.setAttribute("aria-describedBy",K["validation-message"]),it(e),mt(e,K.inputerror))},resetValidationMessage:function(){var t=Tt.domCache.get(this);t.validationMessage&&rt(t.validationMessage),(t=this.getInput())&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),vt(t,K.inputerror))},getProgressSteps:function(){return Tt.domCache.get(this).progressSteps},_main:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Jt(a({},e,t)),$t.currentInstance&&$t.currentInstance._destroy(),$t.currentInstance=this,xe(t=$e(t,e)),Object.freeze(t),$t.timeout&&($t.timeout.stop(),delete $t.timeout),clearTimeout($t.restoreFocusTimeout),e=qe(this),Ot(this,t),Tt.innerParams.set(this,t),Ge(this,e,t)},update:function(t){var e=_(),i=Tt.innerParams.get(this);if(!e||Y(e,i.hideClass.popup))return V("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var n={};Object.keys(t).forEach((function(e){ii.isUpdatableParameter(e)?n[e]=t[e]:V('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),Ot(this,i=a({},i,n)),Tt.innerParams.set(this,i),Object.defineProperties(this,{params:{value:a({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Tt.domCache.get(this),e=Tt.innerParams.get(this);e&&(t.popup&&$t.swalCloseEventFinishedCallback&&($t.swalCloseEventFinishedCallback(),delete $t.swalCloseEventFinishedCallback),$t.deferDisposalTimer&&(clearTimeout($t.deferDisposalTimer),delete $t.deferDisposalTimer),function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()}(e),function(t){delete t.params,delete $t.keydownHandler,delete $t.keydownTarget,ti(Tt),ti(he)}(this))}}),function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&$("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Qe=this;for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];var o=Object.freeze(this.constructor.argsToParams(n));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}}),o=this._main(this.params),Tt.promise.set(this,o)}}return n(t,[{key:"then",value:function(t){return Tt.promise.get(this).then(t)}},{key:"finally",value:function(t){return Tt.promise.get(this).finally(t)}}]),t}());
52a(ei.prototype,Z),a(ei,ne),Object.keys(Z).forEach((function(t){ei[t]=function(){if(Qe)return Qe[t].apply(Qe,arguments)}})),ei.DismissReason=U,ei.version="10.16.9";var ii=ei;return ii.default=ii})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t,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(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 e(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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 o(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),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 s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=l(t);if(e){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return h(this,i)}}function u(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(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 p(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}}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 g=function(){function t(){n(this,t)}return o(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),n=t<0?0:255,a=t<0?-1*t:t,o=parseInt(i[0].slice(4),10),r=parseInt(i[1],10),s=parseInt(i[2],10);return"rgb("+(Math.round((n-o)*a)+o)+","+(Math.round((n-r)*a)+r)+","+(Math.round((n-s)*a)+s)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),n=t<0?0:255,a=t<0?-1*t:t,o=i>>16,r=i>>8&255,s=255&i;return"#"+(16777216+65536*(Math.round((n-o)*a)+o)+256*(Math.round((n-r)*a)+r)+(Math.round((n-s)*a)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===i(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{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 a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}return e});var n=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(a){i.isObject(e[a])&&a in t?n[a]=i.extend(t[a],e[a]):Object.assign(n,r({},a,e[a]))}
52)),n}},{key:"extendArray",value:function(e,i){var n=[];return e.map((function(e){n.push(t.extend(i,e))})),n}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(e){if(t.is("Array",e)){for(var n=[],a=0;a<e.length;a++)n[a]=this.clone(e[a]);return n}if(t.is("Null",e))return null;if(t.is("Date",e))return e;if("object"===i(e)){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=this.clone(e[r]));return o}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?"-":"",a=e[0].replace(".",""),o=Number(e[1])+1;if(o<0){for(i=n+"0.";o++;)i+="0";return i+a.replace(/^-/,"")}for(o-=a.length;o--;)i+="0";return a+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,a=0;a<e;a++){var o={};o.x=t*Math.sin(a*n),o.y=-t*Math.cos(a*n),i.push(o)}return i}},{key:"polarToCartesian",value:function(t,e,i,n){var a=(n-90)*Math.PI/180;return{x:t+i*Math.cos(a),y:e+i*Math.sin(a)}}},{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)}}]),t}(),m=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return o(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":default: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}}this.w.globals.easing=t}}}
52,{key:"animateLine",value:function(t,e,i,n){t.attr(e).animate(n).attr(i)}},{key:"animateMarker",value:function(t,e,i,n,a,o){e||(e=0),t.attr({r:e,width:e,height:e}).animate(n,a).attr({r:i,width:i.width,height:i.height}).afterAll((function(){o()}))}},{key:"animateCircle",value:function(t,e,i,n,a){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(n,a).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,n,a){t.attr(e).animate(n).attr(i).afterAll((function(){return a()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,n=t.j,a=t.fill,o=t.pathFrom,r=t.pathTo,s=t.speed,l=t.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(e,i,n,"line"!==c.config.chart.type||c.globals.comboCharts?a:"stroke",o,r,s,l*h)}},{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,a,o,r,s){var l=this,c=this.w;a||(a=t.attr("pathFrom")),o||(o=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=h()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=h()),c.globals.shouldAnimate||(r=1),t.plot(a).animate(1,c.globals.easing,s).plot(a).animate(r,c.globals.easing,s).plot(o).afterAll((function(){g.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}(),v=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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,a=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=a.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,a=this.w,o=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=a.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,a=i.top,o=i.left,r=i.color,s=i.opacity,l=t.flood(Array.isArray(r)?r[e]:r,s).composite(t.sourceAlpha,"in").offset(o,a).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,a=e.left,o=e.blur,r=e.color,s=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),g.isIE()&&"radialBar"===c.config.chart.type||(r=Array.isArray(r)?r[i]:r,t.filter((function(t){var e;e=g.isSafari()||g.isFirefox()||g.isIE()?t.flood(r,s).composite(t.sourceAlpha,"in").offset(a,n).gaussianBlur(o):t.flood(r,s).composite(t.sourceAlpha,"in").offset(a,n).gaussianBlur(o).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}}
52,{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 a=n.config.states.active.filter;"none"!==a&&this.applyFilter(t,e,a.type,a.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}(),b=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawLine",value:function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt",l=this.w,c=l.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:a,"stroke-dasharray":o,"stroke-width":r,"stroke-linecap":s});return c}},{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,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w,d=h.globals.dom.Paper.rect();return d.attr({x:t,y:e,width:i>0?i:0,height:n>0?n:0,rx:a,ry:a,opacity:r,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",o),d}},{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",a=this.w,o=a.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,a=void 0===n?"#a8a8a8":n,o=t.strokeWidth,r=void 0===o?1:o,s=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,p=t.strokeLinecap,f=void 0===p?null:p,g=t.strokeDashArray,m=void 0===g?0:g,v=this.w;return null===f&&(f=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:a,"stroke-opacity":d,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":m,class:u})}},{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,a,o){return["C",t,e,i,n,a,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,a,o,r){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";s&&(l="a");var c=[l,t,e,i,n,a,o,r].join(" ");return c}},{key:"renderPaths",value:function(t){var i,n=t.j,a=t.realIndex,o=t.pathFrom,r=t.pathTo,s=t.stroke,l=t.strokeWidth,c=t.strokeLinecap,h=t.fill,d=t.animationDelay,u=t.initialSpeed,p=t.dataChangeSpeed,f=t.className,g=t.shouldClipToGrid,b=void 0===g||g,y=t.bindEventsOnPaths,x=void 0===y||y,w=t.drawShadow,_=void 0===w||w,C=this.w,S=new v(this.ctx),k=new m(this.ctx),A=this.w.config.chart.animations.enabled,T=A&&this.w.config.chart.animations.dynamicAnimation.enabled,E=!!(A&&!C.globals.resized||T&&C.globals.dataChanged&&C.globals.shouldAnimate);E?i=o:(i=r,C.globals.animationEnded=!0);var L,D=C.config.stroke.dashArray;L=Array.isArray(D)?D[a]:C.config.stroke.dashArray;var P=this.drawPath({d:i,stroke:s,strokeWidth:l,fill:h,fillOpacity:1,classes:f,strokeLinecap:c,strokeDashArray:L});if(P.attr("index",a),b&&P.attr({"clip-path":"url(#gridRectMask".concat(C.globals.cuid,")")}),"none"!==C.config.states.normal.filter.type)S.getDefaultFilter(P,a);else if(C.config.chart.dropShadow.enabled&&_&&(!C.config.chart.dropShadow.enabledOnSeries||C.config.chart.dropShadow.enabledOnSeries&&-1!==C.config.chart.dropShadow.enabledOnSeries.indexOf(a))){var M=C.config.chart.dropShadow;S.dropShadow(P,M,a)}x&&(P.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,P)),P.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,P)),P.node.addEventListener("mousedown",this.pathMouseDown.bind(this,P))),P.attr({pathTo:r,pathFrom:o});var I={el:P,j:n,realIndex:a,pathFrom:o,pathTo:r,fill:h,strokeWidth:l,delay:d};return!A||C.globals.resized||C.globals.dataChanged?!C.globals.resized&&C.globals.dataChanged||k.showDelayedElements():k.animatePathsGradually(e(e({},I),{},{speed:u})),C.globals.dataChanged&&T&&E&&k.animatePathsGradually(e(e({},I),{},{speed:p})),P}}
52,{key:"drawPattern",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.w,r=o.globals.dom.Paper.pattern(e,i,(function(o){"horizontalLines"===t?o.line(0,0,i,0).stroke({color:n,width:a+1}):"verticalLines"===t?o.line(0,0,0,e).stroke({color:n,width:a+1}):"slantedLines"===t?o.line(0,0,e,i).stroke({color:n,width:a}):"squares"===t?o.rect(e,i).fill("none").stroke({color:n,width:a}):"circles"===t&&o.circle(e).fill("none").stroke({color:n,width:a})}));return r}},{key:"drawGradient",value:function(t,e,i,n,a){var o,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=g.hexToRgba(e,n)),i.length<9&&0===i.indexOf("#")&&(i=g.hexToRgba(i,a));var d=0,u=1,p=1,f=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,u=void 0!==s[1]?s[1]/100:1,p=void 0!==s[2]?s[2]/100:1,f=void 0!==s[3]?s[3]/100:null);var m=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(o=null===l||0===l.length?h.globals.dom.Paper.gradient(m?"radial":"linear",(function(t){t.at(d,e,n),t.at(u,i,a),t.at(p,i,a),null!==f&&t.at(f,e,n)}
52)):h.globals.dom.Paper.gradient(m?"radial":"linear",(function(t){(Array.isArray(l[c])?l[c]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),m){var v=h.globals.gridWidth/2,b=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?o.attr({gradientUnits:"userSpaceOnUse",cx:v,cy:b,r:r}):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:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,n=t.fontSize,a=t.fontFamily,o=this.getTextRects(e,n,a),r=o.width/e.length,s=Math.floor(i/r);return i<o.width?e.slice(0,s-3)+"...":e}},{key:"drawText",value:function(t){var i=this,n=t.x,a=t.y,o=t.text,r=t.textAnchor,s=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.foreColor,d=t.opacity,u=t.maxWidth,p=t.cssClass,f=void 0===p?"":p,g=t.isPlainText,m=void 0===g||g,v=this.w;void 0===o&&(o="");var b=o;r||(r="start"),h&&h.length||(h=v.config.chart.foreColor),l=l||v.config.chart.fontFamily,c=c||"regular";var y,x={maxWidth:u,fontSize:s=s||"11px",fontFamily:l};return Array.isArray(o)?y=v.globals.dom.Paper.text((function(t){for(var n=0;n<o.length;n++)b=o[n],u&&(b=i.getTextBasedOnMaxWidth(e({text:o[n]},x))),0===n?t.tspan(b):t.tspan(b).newLine()})):(u&&(b=this.getTextBasedOnMaxWidth(e({text:o},x))),y=m?v.globals.dom.Paper.plain(o):v.globals.dom.Paper.text((function(t){return t.tspan(b)}))),y.attr({x:n,y:a,"text-anchor":r,"dominant-baseline":"auto","font-size":s,"font-family":l,"font-weight":c,fill:h,class:"apexcharts-text "+f}),y.node.style.fontFamily=l,y.node.style.opacity=d,y}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0,a=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 r=1.2*n+o,s=this.drawRect(r,r,r,r,o);s.attr({x:t-r/2,y:e-r/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}),a=s}else"circle"!==i.shape&&i.shape||(g.isNumber(e)||(n=0,e=0),a=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 a}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new v(this.ctx),a=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:a,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:a,dataPointIndex:o,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var r=i.config.states.hover.filter;n.applyFilter(t,a,r.type,r.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,n=new v(this.ctx),a=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:a,dataPointIndex:o,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:a,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,a)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,n=new v(this.ctx),a=parseInt(t.node.getAttribute("index"),10),o=parseInt(t.node.getAttribute("j"),10),r="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[a].indexOf(o)>-1){var s=i.globals.selectedDataPoints[a].indexOf(o);i.globals.selectedDataPoints[a].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,h=function(t){Array.prototype.forEach.call(t,(function(t){t.n
52ode.setAttribute("selected","false"),n.getDefaultFilter(t,a)}))};h(l),h(c)}t.node.setAttribute("selected","true"),r="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(o)}if("true"===r){var d=i.config.states.active.filter;if("none"!==d)n.applyFilter(t,a,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;n.applyFilter(t,a,u.type,u.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?n.getDefaultFilter(t,a):(u=i.config.states.hover.filter,n.applyFilter(t,a,u.type,u.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:o,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:o,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,n){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w,r=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});n&&r.attr("transform",n),o.globals.dom.Paper.add(r);var s=r.bbox();return a||(s=r.node.getBoundingClientRect()),r.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(e){n(this,t),this.ctx=e,this.w=e.w}return o(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,a=0;a<t.globals.series.length;a++)void 0!==t.globals.series[a][i]&&(n+=t.globals.series[a][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.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach((function(t){e=Math.max(e,t.size)})),e>0&&(e+=t.config.markers.hover.sizeOffset+1),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,a){for(var o=0,r=0;r<n.length;r++)i.globals.seriesX[a][r]>t&&i.globals.seriesX[a][r]<e&&(o+=n[r]);return o}
52))}},{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 a=0;a<e.length;a++){var o=t.globals.stackedSeriesTotals[a],r=0;o&&(r=100*e[a]/o),n.push(r)}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,a=this.w.globals,o=[],r=0,s=[],l=.1,c=0;if(a.yRange=[],a.isMultipleYAxis)for(var h=0;h<a.minYArr.length;h++)a.yRange.push(Math.abs(a.minYArr[h]-a.maxYArr[h])),s.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var d=0;d<a.yRange.length;d++)o.push(a.yRange[d]/a.gridHeight);if(e=a.xRange/a.gridWidth,i=Math.abs(a.initialMaxX-a.initialMinX)/a.gridWidth,t=a.yRange/a.gridWidth,n=a.xRange/a.gridHeight,(r=a.zRange/a.gridHeight*16)||(r=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),a.isMultipleYAxis){s=[];for(var u=0;u<o.length;u++)s.push(-a.minYArr[u]/o[u])}else s.push(-a.minY/o[0]),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(l=-a.minY/t,c=a.minX/e);return{yRatio:o,invertedYRatio:t,zRatio:r,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(i.config.yaxis[n].logBase,t,n)})):t})),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(0===e)return 0;var n=this.w,a=0===n.globals.minYArr[i]?-1:this.getBaseLog(t,n.globals.minYArr[i]),o=(0===n.globals.maxYArr[i]?0:this.getBaseLog(t,n.globals.maxYArr[i]))-a;return e<1?e/o:(this.getBaseLog(t,e)-a)/o}},{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,a){if(i.config.yaxis[a]&&e.w.config.yaxis[a].logarithmic){var o,r=-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&&(r=Math.max(t,r),s=Math.min(t,s))}))})),o=Math.pow(n.yRange[a],Math.abs(s-r)/n.yRange[a]),n.yLogRatio[a]=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>0&&(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}(),x=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e}return o(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,a=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==a){var o=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-o.height+4),"top"===t.label.position?a.setAttribute("y",parseFloat(a.getAttribute("y"))+o.width):a.setAttribute("y",parseFloat(a.getAttribute("y"))-o.width);var r=this.annoCtx.graphics.rotateAroundCenter(a),s=r.x,l=r.y;a.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=t.getBoundingClientRect(),o=e.label.style.padding.left,r=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,r=e.label.style.padding.bottom);var c=a.left-n.left-o,h=a.top-n.top-s,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,a.width+o+r,a.height+s+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}}
52,{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,n,a){var o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(n,"']"));if(o){var r=o.parentNode,s=t.addBackgroundToAnno(o,i);s&&(r.insertBefore(s.node,o),i.label.mouseEnter&&s.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&s.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)))}};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:"getY1Y2",value:function(t,e){var i,n="y1"===t?e.y:e.y2,a=this.w;if(this.annoCtx.invertAxis){var o=a.globals.labels.indexOf(n);a.config.xaxis.convertedCatToNumeric&&(o=a.globals.categoryLabels.indexOf(n));var r=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");r&&(i=parseFloat(r.getAttribute("y")))}else{var s;s=a.config.yaxis[e.yAxisIndex].logarithmic?(n=new y(this.annoCtx.ctx).getLogVal(n,e.yAxisIndex))/a.globals.yLogRatio[e.yAxisIndex]:(n-a.globals.minYArr[e.yAxisIndex])/(a.globals.yRange[e.yAxisIndex]/a.globals.gridHeight),i=a.globals.gridHeight-s,a.config.yaxis[e.yAxisIndex]&&a.config.yaxis[e.yAxisIndex].reversed&&(i=s)}return i}},{key:"getX1X2",value:function(t,e){var i=this.w,n=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,a=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,o=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,r=(e.x-n)/(o/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(r=(a-e.x)/(o/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(r=this.getStringX(e.x));var s=(e.x2-n)/(o/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(s=(a-e.x2)/(o/i.globals.gridWidth)),"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(s=this.getStringX(e.x2)),"x1"===t?r:s}},{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),a=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return a&&(i=parseFloat(a.getAttribute("x"))),i}}]),t}(),w=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new x(this.annoCtx)}return o(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var n,a=this.w,o=this.helpers.getX1X2("x1",t),r=t.label.text,s=t.strokeDashArray;if(g.isNumber(o)){if(null===t.x2||void 0===t.x2){var l=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,a.globals.gridHeight+t.offsetY,t.borderColor,s,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((n=this.helpers.getX1X2("x2",t))<o){var c=o;o=n,n=c}var h=this.annoCtx.graphics.drawRect(o+t.offsetX,0+t.offsetY,n-o,a.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,s);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d="top"===t.label.position?4:a.globals.gridHeight,u=this.annoCtx.graphics.getTextRects(r,parseFloat(t.label.style.fontSize)),p=this.annoCtx.graphics.drawText({x:o+t.label.offsetX,y:d+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?u.width/2-12:-u.width/2:0),text:r,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:"")});p.attr({rel:i}),e.appendChild(p.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}(),_=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new x(this.annoCtx)}
52return o(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var n,a=this.w,o=t.strokeDashArray,r=this.helpers.getY1Y2("y1",t),s=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,r+t.offsetY,this._getYAxisAnnotationWidth(t),r+t.offsetY,t.borderColor,o,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((n=this.helpers.getY1Y2("y2",t))>r){var c=r;r=n,n=c}var h=this.annoCtx.graphics.drawRect(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),r-n,0,t.fillColor,t.opacity,1,t.borderColor,o);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),e.appendChild(h.node),t.id&&h.node.classList.add(t.id)}var d="right"===t.label.position?a.globals.gridWidth:0,u=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(null!=n?n:r)+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:"")});u.attr({rel:i}),e.appendChild(u.node)}},{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}(),C=function(){function t(e){n(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new x(this.annoCtx)}return o(t,[{key:"addPointAnnotation",value:function(t,e,i){this.w;var n=this.helpers.getX1X2("x1",t),a=this.helpers.getY1Y2("y1",t);if(g.isNumber(n)){var o={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:"")},r=this.annoCtx.graphics.drawMarker(n+t.marker.offsetX,a+t.marker.offsetY,o);e.appendChild(r.node);var s=t.label.text?t.label.text:"",l=this.annoCtx.graphics.drawText({x:n+t.label.offsetX,y:a+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,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-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(l.attr({rel:i}),e.appendChild(l.node),t.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});c.attr({transform:"translate(".concat(n+t.customSVG.offsetX,", ").concat(a+t.customSVG.offsetY,")")}),c.node.innerHTML=t.customSVG.SVG,e.appendChild(c.node)}if(t.image.path){var h=t.image.width?t.image.width:20,d=t.image.height?t.image.height:20;r=this.annoCtx.addImage({x:n+t.image.offsetX-h/2,y:a+t.image.offsetY-d/2,width:h,height:d,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&r.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&r.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t))}}},{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(){n(this,t),this.yAxis={show:!0,showAlways:!1,show
vendor: 4,971 bytes, line 52
52ForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,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={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 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,mouseEnter:void 0,mouseLeave:void 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={id:void 0,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,mouseEnter:void 0,mouseLeave:void 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.xAxisAnnotation={id:void 0,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,mouseEnter:void 0,mouseLeave:void 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 o(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"}}
vendor: 4,138 bytes, line 52
52,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}}
52,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,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:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",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"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},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(e){n(this,t),this.ctx=e,this.w=e.w,this.graphics=new b(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new x(this),this.xAxisAnnotations=new w(this),this.yAxisAnnotations=new _(this),this.pointsAnnotations=new C(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 o(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(),a=t.config.chart.animations.enabled,o=[e,i,n],r=[i.node,e.node,n.node],s=0;s<3;s++)t.globals.dom.elGraphical.add(o[s]),!a||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&r[s].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:r[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)}))}}
52,{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,a=t.text,o=t.textAnchor,r=t.foreColor,s=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.cssClass,d=t.backgroundColor,u=t.borderWidth,p=t.strokeDashArray,f=t.borderRadius,g=t.borderColor,m=t.appendTo,v=void 0===m?".apexcharts-annotations":m,b=t.paddingLeft,y=void 0===b?4:b,x=t.paddingRight,w=void 0===x?4:x,_=t.paddingBottom,C=void 0===_?2:_,S=t.paddingTop,k=void 0===S?2:S,A=this.w,T=this.graphics.drawText({x:i,y:n,text:a,textAnchor:o||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||A.config.chart.fontFamily,foreColor:r||A.config.chart.foreColor,cssClass:h}),E=A.globals.dom.baseEl.querySelector(v);E&&E.appendChild(T.node);var L=T.bbox();if(a){var D=this.graphics.drawRect(L.x-y,L.y-k,L.width+y+w,L.height+C+k,f,d||"transparent",1,u,g,p);E.insertBefore(D.node,T.node)}}},{key:"addImage",value:function(t,e){var i=this.w,n=t.path,a=t.x,o=void 0===a?0:a,r=t.y,s=void 0===r?0:r,l=t.width,c=void 0===l?20:l,h=t.height,d=void 0===h?20:h,u=t.appendTo,p=void 0===u?".apexcharts-annotations":u,f=i.globals.dom.Paper.image(n);f.size(c,d).move(o,s);var g=i.globals.dom.baseEl.querySelector(p);return g&&g.appendChild(f.node),f}},{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,a=t.type,o=t.contextMethod,r=n,s=r.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),c=l.childNodes.length+1,h=new k,d=Object.assign({},"xaxis"===a?h.xAxisAnnotation:"yaxis"===a?h.yAxisAnnotation:h.pointAnnotation),u=g.extend(d,e);switch(a){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(p,u);return f&&l.insertBefore(f.node,p),i&&s.globals.memory.methodsToExec.push({context:r,id:u.id?u.id:g.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=g.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}(),T=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return o(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,n=parseInt(e.globals.gridWidth,10),a=parseInt(e.globals.gridHeight,10),o=n>a?n:a,r=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");b.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",r),b.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type||"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,a,o=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var r=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(r=e.globals.seriesColors[this.seriesIndex]),"function"==typeof r&&(r=r({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&&(r=t.color);var c=r;if(-1===r.indexOf("rgb")?r.length<9&&(c=g.hexToRgba(r,l)):r.indexOf("rgba")>-1&&(l=g.getOpacityFromRGBA(r)),t.opacity&&(l=t.opacity),"pattern"===s&&(n=this.handlePatternFill(n,r,l,c)),"gradient"===s&&(a=this.handleGradientFill(r,l,this.seriesIndex)),"image"===s){var h=o.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?t.seriesNumber<h.length?h[t.seriesNumber]:h[0]:h,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(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===s?a:"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}}
52,{key:"handlePatternFill",value:function(t,e,i,n){var a=this.w.config,o=this.opts,r=new b(this.ctx),s=void 0===a.fill.pattern.strokeWidth?Array.isArray(a.stroke.width)?a.stroke.width[this.seriesIndex]:a.stroke.width:Array.isArray(a.fill.pattern.strokeWidth)?a.fill.pattern.strokeWidth[this.seriesIndex]:a.fill.pattern.strokeWidth,l=e;return Array.isArray(a.fill.pattern.style)?void 0!==a.fill.pattern.style[o.seriesNumber]?r.drawPattern(a.fill.pattern.style[o.seriesNumber],a.fill.pattern.width,a.fill.pattern.height,l,s,i):n:r.drawPattern(a.fill.pattern.style,a.fill.pattern.width,a.fill.pattern.height,l,s,i)}},{key:"handleGradientFill",value:function(t,e,i){var n,a=this.w.config,o=this.opts,r=new b(this.ctx),s=new g,l=a.fill.gradient.type,c=t,h=void 0===a.fill.gradient.opacityFrom?e:Array.isArray(a.fill.gradient.opacityFrom)?a.fill.gradient.opacityFrom[i]:a.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(h=g.getOpacityFromRGBA(c));var d=void 0===a.fill.gradient.opacityTo?e:Array.isArray(a.fill.gradient.opacityTo)?a.fill.gradient.opacityTo[i]:a.fill.gradient.opacityTo;if(void 0===a.fill.gradient.gradientToColors||0===a.fill.gradient.gradientToColors.length)n="dark"===a.fill.gradient.shade?s.shadeColor(-1*parseFloat(a.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?g.rgb2hex(t):t):s.shadeColor(parseFloat(a.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?g.rgb2hex(t):t);else if(a.fill.gradient.gradientToColors[o.seriesNumber]){var u=a.fill.gradient.gradientToColors[o.seriesNumber];n=u,u.indexOf("rgba")>-1&&(d=g.getOpacityFromRGBA(u))}else n=t;if(a.fill.gradient.inverseColors){var p=c;c=n,n=p}return c.indexOf("rgb")>-1&&(c=g.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=g.rgb2hex(n)),r.drawGradient(l,c,n,h,d,o.size,a.fill.gradient.stops,a.fill.gradient.colorStops,i)}}]),t}(),E=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w}return o(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 a,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.w,s=e,l=t,c=null,h=new b(this.ctx),d=r.config.markers.discrete&&r.config.markers.discrete.length;if((r.globals.markers.size[e]>0||o||d)&&(c=h.group({class:o||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(l.x))for(var u=0;u<l.x.length;u++){var p=i;1===i&&0===u&&(p=0),1===i&&1===u&&(p=1);var f="apexcharts-marker";"line"!==r.config.chart.type&&"area"!==r.config.chart.type||r.globals.comboCharts||r.config.tooltip.intersect||(f+=" no-pointer-events");var m=Array.isArray(r.config.markers.size)?r.globals.markers.size[e]>0:r.config.markers.size>0;if(m||o||d){g.isNumber(l.y[u])?f+=" w".concat(g.randomId()):f="apexcharts-nullpoint";var y=this.getMarkerConfig({cssClass:f,seriesIndex:e,dataPointIndex:p});r.config.series[s].data[p]&&(r.config.series[s].data[p].fillColor&&(y.pointFillColor=r.config.series[s].data[p].fillColor),r.config.series[s].data[p].strokeColor&&(y.pointStrokeColor=r.config.series[s].data[p].strokeColor)),n&&(y.pSize=n),(a=h.drawMarker(l.x[u],l.y[u],y)).attr("rel",p),a.attr("j",p),a.attr("index",e),a.node.setAttribute("default-marker-size",y.pSize);var x=new v(this.ctx);x.setSelectionFilter(a,e,p),this.addEvents(a),c&&c.add(a)}else void 0===r.globals.pointsArray[e]&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([l.x[u],l.y[u]])}return c}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,n=t.dataPointIndex,a=void 0===n?null:n,o=t.finishRadius,r=void 0===o?null:o,s=this.w,l=this.getMarkerStyle(i),c=s.globals.markers.size[i],h=s.config.markers;return null!==a&&h.discrete.length&&h.discrete.map((function(t){t.seriesIndex===i&&t.dataPointIndex===a&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,c=t.size,l.pointShape=t.shape)})),{pSize:null===r?c:r,pRadius:h.radius,width:Array.isArray(h.width)?h.width[i]:h.width,height:Array.isArray(h.height)?h.height[i]:h.height,pointStrokeWidth:Array.isArray(h.strokeWidth)?h.strokeWidth[i]:h.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(h.shape)?h.shape[i]:h.shape),class:e,pointStrokeOpacity:Array.isArray(h.strokeOpacity)?h.strokeOpacity[i]:h.strokeOpacity,pointStrokeDashArray:Array.isArray(h.strokeDashArray)?h.strokeDashArray[i]:h.strokeDashArray,pointFillOpacity:Array.isArray(h.fillOpacity)?h.fillOpacity[i]:h.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new b(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}(),L=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}
52return o(t,[{key:"draw",value:function(t,e,i){var n=this.w,a=new b(this.ctx),o=i.realIndex,r=i.pointsPos,s=i.zRatio,l=i.elParent,c=a.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(r.x))for(var h=0;h<r.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var p=0,f=n.globals.markers.size[o];if(s!==1/0){f=n.globals.seriesZ[o][d]/s;var g=n.config.plotOptions.bubble;g.minBubbleRadius&&f<g.minBubbleRadius&&(f=g.minBubbleRadius),g.maxBubbleRadius&&f>g.maxBubbleRadius&&(f=g.maxBubbleRadius)}n.config.chart.animations.enabled||(p=f);var m=r.x[h],v=r.y[h];if(p=p||0,null!==v&&void 0!==n.globals.series[o][d]||(u=!1),u){var y=this.drawPoint(m,v,p,f,o,d,e);c.add(y)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,a,o,r){var s=this.w,l=a,c=new m(this.ctx),h=new v(this.ctx),d=new T(this.ctx),u=new E(this.ctx),p=new b(this.ctx),f=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:o,finishRadius:"bubble"===s.config.chart.type||s.globals.comboCharts&&s.config.series[a]&&"bubble"===s.config.series[a].type?n:null});n=f.pSize;var g,y=d.fillPath({seriesNumber:a,dataPointIndex:o,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:s.globals.series[a][r]});if("circle"===f.shape?g=p.drawCircle(i):"square"!==f.shape&&"rect"!==f.shape||(g=p.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),s.config.series[l].data[o]&&s.config.series[l].data[o].fillColor&&(y=s.config.series[l].data[o].fillColor),g.attr({x:t-f.width/2-f.pointStrokeWidth/2,y:e-f.height/2-f.pointStrokeWidth/2,cx:t,cy:e,fill:y,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:n,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),s.config.chart.dropShadow.enabled){var x=s.config.chart.dropShadow;h.dropShadow(g,x,a)}if(!this.initialAnim||s.globals.dataChanged||s.globals.resized)s.globals.animationEnded=!0;else{var w=s.config.chart.animations.speed;c.animateMarker(g,0,"circle"===f.shape?n:{width:f.width,height:f.height},w,s.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(g)}),100)}))}if(s.globals.dataChanged&&"circle"===f.shape)if(this.dynamicAnim){var _,C,S,k,A=s.config.chart.animations.dynamicAnimation.speed;null!=(k=s.globals.previousPaths[a]&&s.globals.previousPaths[a][r])&&(_=k.x,C=k.y,S=void 0!==k.r?k.r:n);for(var L=0;L<s.globals.collapsedSeries.length;L++)s.globals.collapsedSeries[L].index===a&&(A=1,n=0);0===t&&0===e&&(n=0),c.animateCircle(g,{cx:_,cy:C,r:S},{cx:t,cy:e,r:n},A,s.globals.easing)}else g.attr({r:n});return g.attr({rel:o,j:o,index:a,"default-marker-size":n}),h.setSelectionFilter(g,a,o),u.addEvents(g),g.node.classList.add("apexcharts-marker"),g}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),D=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"dataLabelsCorrection",value:function(t,e,i,n,a,o,r){var s=this.w,l=!1,c=new b(this.ctx).getTextRects(i,r),h=c.width,d=c.height;e<0&&(e=0),e>s.globals.gridHeight+d&&(e=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:t,y:e,width:h,height:d});var u=s.globals.dataLabelsRects[n].length-2,p=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==s.globals.dataLabelsRects[n][u]){var f=s.globals.dataLabelsRects[n][p];(t>f.x+f.width+2||e>f.y+f.height+2||t+h<f.x)&&(l=!0)}return(0===a||o)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t,e,i){var n=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,o=this.w,r=new b(this.ctx),s=o.config.dataLabels,l=0,c=0,h=i,d=null;if(!s.enabled||!Array.isArray(t.x))return d;d=r.group({class:"apexcharts-data-labels"});for(var u=0;u<t.x.length;u++)if(l=t.x[u]+s.offsetX,c=t.y[u]+s.offsetY+a,!isNaN(l)){1===i&&0===u&&(h=0),1===i&&1===u&&(h=1);var p=o.globals.series[e][h],f="",g=function(t){return o.config.dataLabels.formatter(t,{ctx:n.ctx,seriesIndex:e,dataPointIndex:h,w:o})};if("bubble"===o.config.chart.type){f=g(p=o.globals.seriesZ[e][h]),c=t.y[u];var m=new L(this.ctx),v=m.centerTextInBubble(c,e,h);c=v.y}else void 0!==p&&(f=g(p));this.plotDataLabelsText({x:l,y:c,text:f,i:e,j:h,parent:d,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new b(this.ctx),n=t.x,a=t.y,o=t.i,r=t.j,s=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,f
52=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(o)<0)){var g={x:n,y:a,drawnextLabel:!0,textRects:null};f&&(g=this.dataLabelsCorrection(n,a,s,o,r,p,parseInt(d.style.fontSize,10))),e.globals.zoomed||(n=g.x,a=g.y),g.textRects&&(n<-10-g.textRects.width||n>e.globals.gridWidth+g.textRects.width+10)&&(s="");var m=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)&&(m=e.globals.dataLabels.style.colors[r]),"function"==typeof m&&(m=m({series:e.globals.series,seriesIndex:o,dataPointIndex:r,w:e})),u&&(m=u);var y=d.offsetX,x=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(y=0,x=0),g.drawnextLabel){var w=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+y,y:a+x,foreColor:m,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(w.attr({class:"apexcharts-datalabel",cx:n,cy:a}),d.dropShadow.enabled){var _=d.dropShadow;new v(this.ctx).dropShadow(w,_)}h.add(w),void 0===e.globals.lastDrawnDataLabelsIndexes[o]&&(e.globals.lastDrawnDataLabelsIndexes[o]=[]),e.globals.lastDrawnDataLabelsIndexes[o].push(r)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,n=i.config.dataLabels.background,a=n.padding,o=n.padding/2,r=e.width,s=e.height,l=new b(this.ctx).drawRect(e.x-a,e.y-o/2,r+2*a,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 v(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],a=n.getBBox(),o=null;if(a.width&&a.height&&(o=this.addBackgroundToDataLabel(n,a)),o){n.parentNode.insertBefore(o.node,n);var r=n.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?o.attr({fill:r}):o.animate().attr({fill:r}),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(e){n(this,t),this.w=e.w,this.barCtx=e}return o(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,n=t.y1,a=t.y2,o=t.i,r=t.j,s=t.realIndex,l=t.series,c=t.barHeight,h=t.barWidth,d=t.barYPosition,u=t.visibleSeries,p=t.renderedPath,f=this.w,g=new b(this.barCtx.ctx),m=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth,v=e+parseFloat(h*u),y=i+parseFloat(c*u);f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(v=e+parseFloat(h*(u+1)),y=i+parseFloat(c*(u+1))-m);var x,w=e,_=i,C=f.config.dataLabels,S=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isRangeBar&&(y=d,_=d);var k=C.offsetX,A=C.offsetY,T={width:0,height:0};if(f.config.dataLabels.enabled){var E=this.barCtx.series[o][r];T=g.getTextRects(f.globals.yLabelFormatters[0](E),parseFloat(C.style.fontSize))}var L={x:e,y:i,i:o,j:r,renderedPath:p,bcx:v,bcy:y,barHeight:c,barWidth:h,textRects:T,strokeWidth:m,dataLabelsX:w,dataLabelsY:_,barDataLabelsConfig:S,offX:k,offY:A};return x=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(L):this.calculateColumnsDataLabelsPosition(L),p.attr({cy:x.bcy,cx:x.bcx,j:r,val:l[o][r],barHeight:c,barWidth:h}),this.drawCalculatedDataLabels({x:x.dataLabelsX,y:x.dataLabelsY,val:this.barCtx.isRangeBar?[n,a]:l[o][r],i:s,j:r,barWidth:h,barHeight:c,textRects:T,dataLabelsConfig:C})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,n=t.i,a=t.j,o=t.y,r=t.bcx,s=t.barWidth,l=t.barHeight,c=t.textRects,h=t.dataLabelsY,d=t.barDataLabelsConfig,u=t.strokeWidth,p=t.offX,f=t.offY;l=Math.abs(l);var g="vertical"===i.config.plotOptions.bar.dataLabels.orientation;r-=u/2;var m=i.globals.gridWidth/i.globals.dataPoints;e=i.globals.isXNumeric?r-s/2+p:r-m+s/2+p,g&&(e=e+c.height/2-u/2-2);var v=this.barCtx.series[n][a]<0,b=o;switch(this.barCtx.isReversed&&(b=o-l+(v?2*l:0),o-=l),d.position){case"center":h=g?v?b+l/2+f:b+l/2-f:v?b-l/2+c.height/2+f:b+l/2+c.height/2-f;break;case"bottom":h=g?v?b+l+f:b+l-f:v?b-l+c.height+u+f:b+l-c.height/2+u-f;break;case"top":h=g?v?b+f:b-f:v?b-c.height/2-f:b+c.height+f}return i.config.chart.stacked||(h<0?h=0+u:h+c.height/3>i.globals.gridHeight&&(h=i.globals.gridHeight-u)),{bcx:r,bcy:o,dataLabelsX:e,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,n=t.i,a=t.j,o=t.bcy,r=t.barHeight,s=t.barWidth,l=t.textRects,c=t.dataLabelsX,h=t.strokeWidth,d=t.barDataLabelsConfig,u=t.offX,p=t.offY,f=e.globals.gridHeight/e.globals.dataPoints;s=Math.abs(s);var g=o-(this.barCtx.isRangeBar?0:f)+r/2+l.height/2+p-3,m=this.barCtx.series[n][a]<0,v=i;switch(this.barCtx.isReversed&&(v=i+s-(m?2*s:0),i=e.globals.gridWidth-s),d.position){case"center":c=m?v+s/2-u:Math.max(l.width/2,v-s/2)+u;break;case"bottom":c=m?v+s-h-Math.round(l.width/2)-u:v-s+h+Math.round(l.width/2)+u;break;case"top":c=m?v-h+Math.round(l.width/2)-u:v-h-Math.round(l.width/2)+u}return e.config.chart.stacked||(c<0?c=c+l.width+h:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-h)),{bcx:i,bcy:o,dataLabelsX:c,dataLabelsY:g}}},{key:"drawCalculatedDataLabels",value:function(t){var i=t.x,n=t.y,a=t.val,o=t.i,r=t.j,s=t.textRects,l=t.barHeight,c=t.barWidth,h=t.dataLabelsConfig,d=this.w,u="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(i,", ").concat(n,")"));var p=new D(this.barCtx.ctx),f=new b(this.barCtx.ctx),g=h.formatter,m=null,v=d.globals.collapsedSeriesIndices.indexOf(o)>-1;if(h.enabled&&!v){m=f.group({class:"apexcharts-data-labels",transform:u});var y="";void 0!==a&&(y=g(a,{seriesIndex:o,dataPointIndex:r,w:d}));var x=d.globals.series[o][r]<0,w=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===w&&(h.textAnchor=x?"end":"start"),"center"===w&&(h.textAnchor="middle"),"bottom"===w&&(h.textAnchor=x?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<f.getTextRects(y,parseFloat(h.style.fontSize)).width&&(y=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?s.width/1.6>Math.abs(c)&&(y=""):s.height/1.6>Math.abs(l)&&(y=""));var _=e({},h);this.barCtx.isHorizontal&&a<0&&("start"===h.textAnchor?_.textAnchor="end":"end"===h.textAnchor&&(_.textAnchor="start")),p.plotDataLabelsText({x:i,y:n,text:y,i:o,j:r,parent:m,dataLabelsConfig:_,alwaysDrawDataLabel:!0,offsetCorrection:!0}
52)}return m}}]),t}(),M=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return o(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(g.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,a=g.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),n.config.series=a,t&&(e&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,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;e||(e=t.target);var n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var a=parseInt(e.getAttribute("rel"),10)-1,o=null,r=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(o=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']"))):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']")):o=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+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!==r&&r.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,a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(t){for(var e=0;e<a.length;e++)a[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"),10)-1;o("add"),function(t){for(var e=0;e<a.length;e++){var n=parseInt(a[e].getAttribute("val"),10);n>=t.from&&n<=t.to&&a[e].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[r])}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 a=i.config.series.map((function(e,n){var a=!1;return t&&(a="bar"===i.config.series[n].type||"column"===i.config.series[n].type),e.data&&e.data.length>0&&!a?n:-1})),o="asc"===e?0:a.length-1;"asc"===e?o<a.length:o>=0;"asc"===e?o++:o--)if(-1!==a[o]){n=a[o];break}return n}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,n){for(var a=e[i].childNodes,o={type:n,paths:[],realIndex:e[
52i].getAttribute("data:realIndex")},r=0;r<a.length;r++)if(a[r].hasAttribute("pathTo")){var s=a[r].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,a=(n=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"))),o=0;o<a.length;o++)e(a,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=[],a=function(t){var e=function(e){return i[t].getAttribute(e)},a={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};n.push({rect:a,color:i[t].getAttribute("color")})},o=0;o<i.length;o++)a(o);t.globals.previousPaths.push(n)},a=0;a<i.length;a++)n(a);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 a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),o=[],r=0;r<a.length;r++)o.push({x:a[r].getAttribute("cx"),y:a[r].getAttribute("cy"),r:a[r].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 b(this.ctx),n=t.globals.svgWidth/2,a=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?a=50:"bottom"===e.verticalAlign&&(a=t.globals.svgHeight-50),n+=e.offsetX,a=a+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var r=i.drawText({x:n,y:a,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(r)}}},{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}(),I=function(){function t(e){n(this,t),this.w=e.w,this.barCtx=e}return o(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,a,o,r,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)a=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(a=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*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-a*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 d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(n=l.globals.minXDiff/d),(o=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}r=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:a,barWidth:o,zeroH:r,zeroW:s}}}
52,{key:"getPathFillColor",value:function(t,e,i,n){var a=this.w,o=new T(this.barCtx.ctx),r=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&&(r=n.color)})),a.config.series[e].data[i]&&a.config.series[e].data[i].fillColor&&(r=a.config.series[e].data[i].fillColor),o.fillPath({seriesNumber:this.barCtx.barOptions.distributed?s:n,dataPointIndex:i,color:r,value:t[e][i]})}},{key:"getStrokeWidth",value:function(t,e,i){var n=0,a=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a.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,a=t.x2,o=t.y1,r=t.y2,s=t.elSeries,l=this.w,c=new b(this.barCtx.ctx),h=new M(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],u=c.drawRect(void 0!==n?n:0,void 0!==o?o:0,void 0!==a?a:l.globals.gridWidth,void 0!==r?r:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,n=t.yRatio,a=t.y1,o=t.y2,r=t.strokeWidth,s=t.series,l=t.realIndex,c=t.i,h=t.j,d=t.w,u=new b(this.barCtx.ctx);(r=Array.isArray(r)?r[l]:r)||(r=0);var p={barWidth:e,strokeWidth:r,yRatio:n,barXPosition:i,y1:a,y2:o},f=this.getRoundedBars(d,p,s,c,h),g=i,m=i+e,v=u.move(g,a),y=u.move(g,a),x=u.line(m-r,a);return d.globals.previousPaths.length>0&&(y=this.barCtx.getPreviousPath(l,h,!1)),v=v+u.line(g,f.y2)+f.pathWithRadius+u.line(m-r,f.y2)+x+x+"z",y=y+u.line(g,a)+x+x+x+x+x+u.line(g,a),d.config.chart.stacked&&(this.barCtx.yArrj.push(f.y2),this.barCtx.yArrjF.push(Math.abs(a-f.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][h])),{pathTo:v,pathFrom:y}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,n=t.x1,a=t.x2,o=t.strokeWidth,r=t.series,s=t.realIndex,l=t.i,c=t.j,h=t.w,d=new b(this.barCtx.ctx);(o=Array.isArray(o)?o[s]:o)||(o=0);var u={barHeight:i,strokeWidth:o,barYPosition:e,x2:a,x1:n},p=this.getRoundedBars(h,u,r,l,c),f=d.move(n,e),g=d.move(n,e);h.globals.previousPaths.length>0&&(g=this.barCtx.getPreviousPath(s,c,!1));var m=e,v=e+i,y=d.line(n,v-o);return f=f+d.line(p.x2,m)+p.pathWithRadius+d.line(p.x2,v-o)+y+y+"z",g=g+d.line(n,m)+y+y+y+y+y+d.line(n,m),h.config.chart.stacked&&(this.barCtx.xArrj.push(p.x2),this.barCtx.xArrjF.push(Math.abs(n-p.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:f,pathFrom:g}}},{key:"getRoundedBars",value:function(t,e,i,n,a){var o=new b(this.barCtx.ctx),r=0,s=t.config.plotOptions.bar.borderRadius,l=Array.isArray(s);if(r=l?s[n>s.length-1?s.length-1:n]:s,t.config.chart.stacked&&i.length>1&&n!==this.barCtx.radiusOnSeriesNumber&&!l&&(r=0),this.barCtx.isHorizontal){var c="",h=e.x2;if(Math.abs(e.x1-e.x2)<r&&(r=Math.abs(e.x1-e.x2)),void 0!==i[n][a]||null!==i[n][a]){var d=this.barCtx.isReversed?i[n][a]>0:i[n][a]<0;d&&(r*=-1),h-=r,c=o.quadraticCurve(h+r,e.barYPosition,h+r,e.barYPosition+(d?-1*r:r))+o.line(h+r,e.barYPosition+e.barHeight-e.strokeWidth-(d?-1*r:r))+o.quadraticCurve(h+r,e.barYPosition+e.barHeight-e.strokeWidth,h,e.barYPosition+e.barHeight-e.strokeWidth)}return{pathWithRadius:c,x2:h}}var u="",p=e.y2;if(Math.abs(e.y1-e.y2)<r&&(r=Math.abs(e.y1-e.y2)),void 0!==i[n][a]||null!==i[n][a]){var f=i[n][a]<0;f&&(r*=-1),p+=r,u=o.quadraticCurve(e.barXPosition,p-r,e.barXPosition+(f?-1*r:r),p-r)+o.line(e.barXPosition+e.barWidth-e.strokeWidth-(f?-1*r:r),p-r)+o.quadraticCurve(e.barXPosition+e.barWidth-e.strokeWidth,p-r,e.barXPosition+e.barWidth-e.strokeWidth,p)}return{pathWithRadius:u,y2:p}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,n=0;n<e.length;n++){for(var a=0,o=0;o<e[i.globals.maxValsInArrayIndex].length;o++)a+=e[n][o];0===a&&this.barCtx.zeroSerieses.push(n)}for(var r=e.length-1;r>=0;r--)this.barCtx.zeroSerieses.indexOf(r)>-1&&r===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}}
52,{key:"getGoalValues",value:function(t,e,i,n,a){var o=this,s=this.w,l=[];return s.globals.seriesGoals[n]&&s.globals.seriesGoals[n][a]&&Array.isArray(s.globals.seriesGoals[n][a])&&s.globals.seriesGoals[n][a].forEach((function(n){var a;l.push((r(a={},t,"x"===t?o.getXForValue(n.value,e,!1):o.getYForValue(n.value,i,!1)),r(a,"attrs",n),a))})),l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,n=t.goalX,a=t.goalY,o=t.barWidth,r=t.barHeight,s=new b(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach((function(t){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:r/2,n=i+e+r/2;c=s.drawLine(t.x,n-2*e,t.x,n,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(c)})):Array.isArray(a)&&a.forEach((function(t){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:o/2,n=e+i+o/2;c=s.drawLine(n-2*i,t.y,n,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(c)})),l}}]),t}(),O=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isRangeBar=a.globals.seriesRangeBar.length&&this.isHorizontal,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.initialXRatio=i.initialXRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new I(this)}return o(t,[{key:"draw",value:function(t,i){var n=this.w,a=new b(this.ctx),o=new y(this.ctx,n);t=o.getLogSeries(t),this.series=t,this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var r=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.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,h,d,u,p=void 0,f=void 0,m=[],v=[],x=n.globals.comboCharts?i[s]:s,w=a.group({class:"apexcharts-series",rel:s+1,seriesName:g.escapeString(n.globals.seriesNames[x]),"data:realIndex":x});this.ctx.series.addCollapsedClassToSeries(w,x),t[s].length>0&&(this.visibleI=this.visibleI+1);var _=0,C=0;this.yRatio.length>1&&(this.yaxisIndex=x),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var S=this.barHelpers.initialPositions();f=S.y,_=S.barHeight,h=S.yDivision,u=S.zeroW,p=S.x,C=S.barWidth,c=S.xDivision,d=S.zeroH,this.horizontal||v.push(p+C/2);for(var k=a.group({class:"apexcharts-datalabels","data:realIndex":x}),A=a.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),T=0;T<n.globals.dataPoints;T++){var E=this.barHelpers.getStrokeWidth(s,T,x),L=null,D={indexes:{i:s,j:T,realIndex:x,bc:l},x:p,y:f,strokeWidth:E,elSeries:w};this.isHorizontal?(L=this.drawBarPaths(e(e({},D),{},{barHeight:_,zeroW:u,yDivision:h})),C=this.series[s][T]/this.invertedYRatio):(L=this.drawColumnPaths(e(e({},D),{},{xDivision:c,barWidth:C,zeroH:d})),_=this.series[s][T]/this.yRatio[this.yaxisIndex]);var P=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:_,barWidth:C});P&&A.add(P),f=L.y,p=L.x,T>0&&v.push(p+C/2),m.push(f);var M=this.barHelpers.getPathFillColor(t,s,T,x);this.renderSeries({realIndex:x,pathFill:M,j:T,i:s,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:E,elSeries:w,x:p,y:f,series:t,barHeight:_,barWidth:C,elDataLabelsWrap:k,elGoalsMarkers:A,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[x]=v,n.globals.seriesYvalues[x]=m,r.add(w)}return r}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,n=t.lineFill,a=t.j,o=t.i,r=t.pathFrom,s=t.pathTo,l=t.strokeWidth,c=t.elSeries,h=t.x,d=t.y,u=t.y1,p=t.y2,f=t.series,g=t.barHeight,m=t.barWidth,y=t.barYPosition,x=t.elDataLabelsWrap,w=t.elGoalsMarkers,_=t.visibleSeries,C=t.type,S=this.w,k=new b(this.ctx);
52n||(n=this.barOptions.distributed?S.globals.stroke.colors[a]:S.globals.stroke.colors[e]),S.config.series[o].data[a]&&S.config.series[o].data[a].strokeColor&&(n=S.config.series[o].data[a].strokeColor),this.isNullValue&&(i="none");var A=a/S.config.chart.animations.animateGradually.delay*(S.config.chart.animations.speed/S.globals.dataPoints)/2.4,T=k.renderPaths({i:o,j:a,realIndex:e,pathFrom:r,pathTo:s,stroke:n,strokeWidth:l,strokeLineCap:S.config.stroke.lineCap,fill:i,animationDelay:A,initialSpeed:S.config.chart.animations.speed,dataChangeSpeed:S.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(C,"-area")});T.attr("clip-path","url(#gridRectMask".concat(S.globals.cuid,")"));var E=S.config.forecastDataPoints;E.count>0&&a>=S.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!==u&&void 0!==p&&(T.attr("data-range-y1",u),T.attr("data-range-y2",p)),new v(this.ctx).setSelectionFilter(T,e,a),c.add(T);var L=new P(this).handleBarDataLabels({x:h,y:d,y1:u,y2:p,i:o,j:a,series:f,realIndex:e,barHeight:g,barWidth:m,barYPosition:y,renderedPath:T,visibleSeries:_});return null!==L&&x.add(L),c.add(x),w&&c.add(w),c}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,n=t.strokeWidth,a=t.zeroW,o=t.x,r=t.y,s=t.yDivision,l=t.elSeries,c=this.w,h=e.i,d=e.j;c.globals.isXNumeric&&(r=(c.globals.seriesX[h][d]-c.globals.minX)/this.invertedXRatio-i);var u=r+i*this.visibleI;o=this.barHelpers.getXForValue(this.series[h][d],a);var p=this.barHelpers.getBarpaths({barYPosition:u,barHeight:i,x1:a,x2:o,strokeWidth:n,series:this.series,realIndex:e.realIndex,i:h,j:d,w:c});return c.globals.isXNumeric||(r+=s),this.barHelpers.barBackground({j:d,i:h,y1:u-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:o,y:r,goalX:this.barHelpers.getGoalValues("x",a,null,h,d),barYPosition:u}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,a=t.xDivision,o=t.barWidth,r=t.zeroH,s=t.strokeWidth,l=t.elSeries,c=this.w,h=e.realIndex,d=e.i,u=e.j,p=e.bc;if(c.globals.isXNumeric){var f=h;c.globals.seriesX[h].length||(f=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[f][u]-c.globals.minX)/this.xRatio-o*this.seriesLen/2}var g=i+o*this.visibleI;n=this.barHelpers.getYForValue(this.series[d][u],r);var m=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:o,y1:r,y2:n,strokeWidth:s,series:this.series,realIndex:e.realIndex,i:d,j:u,w:c});return c.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:p,j:u,i:d,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,r,d,u),barXPosition:g}}},{key:"getPreviousPath",value:function(t,e){for(var i,n=this.w,a=0;a<n.globals.previousPaths.length;a++){var o=n.globals.previousPaths[a];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(t,10)&&void 0!==n.globals.previousPaths[a].paths[e]&&(i=n.globals.previousPaths[a].paths[e].d)}return i}}]),t}(),z=function(){function t(e){n(this,t),this.ctx=e,this.w=e.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 o(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,a=["\0"].concat(u(i.months)),o=["�"].concat(u(i.shortMonths)),r=["�"].concat(u(i.days)),s=["�"].concat(u(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 h=(n?t.getUTCMonth():t.getMonth())+1;
52e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=n?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var p=n?t.getUTCHours():t.getHours(),f=p>12?p-12:0===p?12:p;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);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 b=p<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var y=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var x=-t.getTimezoneOffset(),w=n||!x?"Z":x>0?"+":"-";if(!n){var _=(x=Math.abs(x))%60;w+=l(Math.floor(x/60))+":"+l(_)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var C=(n?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(r[0],"g"),r[C])).replace(new RegExp(s[0],"g"),s[C])).replace(new RegExp(a[0],"g"),a[h])).replace(new RegExp(o[0],"g"),o[h])).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 a=this.getDate(t),o=this.getDate(e),r=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(s[2],10),minMonth:
52parseInt(r[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(r[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=g.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(a,t);var i=d(a);function a(){return n(this,a),i.apply(this,arguments)}return o(a,[{key:"draw",value:function(t,i){var n=this.w,a=new b(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var o=a.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),r=0;r<t.length;r++){var s,l,c,h=void 0,d=void 0,u=void 0,p=n.globals.comboCharts?i[r]:r,f=a.group({class:"apexcharts-series",seriesName:g.escapeString(n.globals.seriesNames[p]),rel:r+1,"data:realIndex":p});this.ctx.series.addCollapsedClassToSeries(f,p),t[r].length>0&&(this.visibleI=this.visibleI+1);var m=0,v=0;this.yRatio.length>1&&(this.yaxisIndex=p);var y=this.barHelpers.initialPositions();d=y.y,c=y.zeroW,h=y.x,v=y.barWidth,s=y.xDivision,l=y.zeroH;for(var x=a.group({class:"apexcharts-datalabels","data:realIndex":p}),w=a.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),_=0;_<n.globals.dataPoints;_++){var C=this.barHelpers.getStrokeWidth(r,_,p),S=this.seriesRangeStart[r][_],k=this.seriesRangeEnd[r][_],A=null,T=null,E={x:h,y:d,strokeWidth:C,elSeries:f};if(u=y.yDivision,m=y.barHeight,this.isHorizontal){T=d+m*this.visibleI;var L=this.seriesLen;n.config.plotOptions.bar.rangeBarGroupRows&&(L=1);var D=(u-m*L)/2;if(void 0===n.config.series[r].data[_])break;if(n.config.series[r].data[_].x){var P=this.detectOverlappingBars({i:r,j:_,barYPosition:T,srty:D,barHeight:m,yDivision:u,initPositions:y});m=P.barHeight,T=P.barYPosition}v=(A=this.drawRangeBarPaths(e({indexes:{i:r,j:_,realIndex:p},barHeight:m,barYPosition:T,zeroW:c,yDivision:u,y1:S,y2:k},E))).barWidth}else m=(A=this.drawRangeColumnPaths(e({indexes:{i:r,j:_,realIndex:p},zeroH:l,barWidth:v,xDivision:s},E))).barHeight;var M=this.barHelpers.drawGoalLine({barXPosition:A.barXPosition,barYPosition:T,goalX:A.goalX,goalY:A.goalY,barHeight:m,barWidth:v});M&&w.add(M),d=A.y,h=A.x;var I=this.barHelpers.getPathFillColor(t,r,_,p),O=n.globals.stroke.colors[p];this.renderSeries({realIndex:p,pathFill:I,lineFill:O,j:_,i:r,x:h,y:d,y1:S,y2:k,pathFrom:A.pathFrom,pathTo:A.pathTo,strokeWidth:C,elSeries:f,series:t,barHeight:m,barYPosition:T,barWidth:v,elDataLabelsWrap:x,elGoalsMarkers:w,visibleSeries:this.visibleI,type:"rangebar"})}o.add(f)}return o}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,n=t.barYPosition,a=t.srty,o=t.barHeight,r=t.yDivision,s=t.initPositions,l=this.w,c=[],h=l.config.series[e].data[i].rangeName,d=l.config.series[e].data[i].x,u=l.globals.labels.indexOf(d),p=l.globals.seriesRangeBar[e].findIndex((function(t){return t.x===d&&t.overlaps.length>0}));return n=l.config.plotOptions.bar.rangeBarGroupRows?a+r*u:a+o*this.visibleI+r*u,p>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBar[e][p].overlaps).indexOf(h)>-1&&(n=(o=s.barHeight/c.length)*this.visibleI+r*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+c.indexOf(h))+r*u),{barYPosition:n,barHeight:o}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x;t.strokeWidth;var n=t.xDivision,a=t.barWidth,o=t.zeroH,r=this.w,s=e.i,l=e.j,c=this.yRatio[this.yaxisIndex],h=e.realIndex,d=this.getRangeValue(h,l),u=Math.min(d.start,d.end),p=Math.max(d.start,d.end);r.globals.isXNumeric&&(i=(r.globals.seriesX[s][l]-r.globals.minX)/this.xRatio-a/2);var f=i+a*this.visibleI;void 0===this.series[s][l]||null===this.series[s][l]?u=o:(u=o-u/c,p=o-p/c);var g=Math.abs(p-u),m=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:a,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:h,j:l,w:r});return r.globals.isXNumeric||(i+=n),{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,o,s,l),barXPosition:f}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,n=t.y1,a=t.y2,o=t.yDivision,r=t.barHeight,s=t.barYPosition,l=t.zeroW,c=this.w,h=l+n/this.invertedYRatio,d=l+a/this.invertedYRatio,u=Math.abs(d-h),p=this.barHelpers.getBarpaths({barYPosition:s,barHeight:r,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=o),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:u,x:d,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,a=t.y1,o=t.y2,r=t.w,s=r.globals.seriesRangeStart[i][n],l=r.globals.seriesRangeEnd[i][n],c=r.globals.labels[n],h=r.config.series[i].name?r.config.series[i].name:"",d=r.config.tooltip.y.formatter,u=r.config.tooltip.y.title.formatter,p={w:r,seriesIndex:i,dataPointIndex:n,start:s,end:l};"function"==typeof u&&(h=u(h,p)),Number.isFinite(a)&&Number.isFinite(o)&&
52(s=a,l=o,r.config.series[i].data[n].x&&(c=r.config.series[i].data[n].x+":"),"function"==typeof d&&(c=d(c,p)));var f="",g="",m=r.globals.colors[i];if(void 0===r.config.tooltip.x.formatter)if("datetime"===r.config.xaxis.type){var v=new z(e);f=v.formatDate(v.getDate(s),r.config.tooltip.x.format),g=v.formatDate(v.getDate(l),r.config.tooltip.x.format)}else f=s,g=l;else f=r.config.tooltip.x.formatter(s),g=r.config.tooltip.x.formatter(l);return{start:s,end:l,startVal:f,endVal:g,ylabel:c,color:m,seriesName:h}}},{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>"}}]),a}(O),R=function(){function t(e){n(this,t),this.opts=e}return o(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,g.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,a=e.w;return t._getBoxTooltip(a,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,a=e.w;return t._getBoxTooltip(a,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,a=e.w,o=a.globals.seriesRangeStart[i][n];return a.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,a=i.seriesName,o=i.ylabel,r=i.startVal,s=i.endVal;return e.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:o,start:r,end:s})}(t):function(t){var e=new N(t.ctx,null),i=e.getTooltipValues(t),n=i.color,a=i.seriesName,o=i.ylabel,r=i.start,s=i.end;return e.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:o,start:r,end:s})}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},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 g.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}}
52,{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 g.isNumber(t)?Math.floor(t):t};var n=t.xaxis.labels.formatter,a=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(a=i.map((function(t){return Array.isArray(t)?t:String(t)}))),a&&a.length&&(t.xaxis.labels.formatter=function(t){return g.isNumber(t)?n(a[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,a){var o=t.globals.seriesCandleO[e][i],r=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!==a?'<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">')+r+"</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}(),F=function(){function t(e){n(this,t),this.opts=e}return o(t,[{key:"init",value:function(t){var e=t.responsiveOverride,n=this.opts,a=new k,o=new R(n);this.chartType=n.chart.type,"histogram"===this.chartType&&(n.chart.type="bar",n=g.extend({plotOptions:{bar:{columnWidth:"99.99%"}}}
52,n)),n=this.extendYAxis(n),n=this.extendAnnotations(n);var r=a.init(),s={};if(n&&"object"===i(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||{},e||(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=g.extend(r,l)}var c=g.extend(s,window.Apex);return r=g.extend(c,n),this.handleUserInputErrors(r)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var n=new R(i),a=("bar"===t||"boxPlot"===t)&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,o="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,r="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,s=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return a||o||!r||"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=g.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[g.extend(i.yAxis,t.yaxis)]:t.yaxis=g.extendArray(t.yaxis,i.yAxis);var n=!1;t.yaxis.forEach((function(t){t.logarithmic&&(n=!0)}));var a=t.series;return e&&!a&&(a=e.config.series),n&&a.length!==t.yaxis.length&&a.length&&(t.yaxis=a.map((function(e,n){if(e.name||(a[n].name="series-".concat(n+1)),t.yaxis[n])return t.yaxis[n].seriesName=a[n].name,t.yaxis[n];var o=g.extend(i.yAxis,t.yaxis[0]);return o.show=!1,o}))),n&&a.length>1&&a.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=g.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=g.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=g.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}}]),t}(),H=function(){function t(){n(this,t)}return o(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBar=[],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.hasGroups=!1,t.groups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvi
52ded=!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,xAxisGroupLabelsHeight: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=g.extend({},t),e.initialSeries=g.clone(t.series),e.lastXAxis=g.clone(e.initialConfig.xaxis),e.lastYAxis=g.clone(e.initialConfig.yaxis),e}}]),t}(),B=function(){function t(e){n(this,t),this.opts=e}return o(t,[{key:"init",value:function(){var t=new F(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new H).init(t)}}}]),t}(),j=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new y(this.ctx)}return o(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new M(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 M(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,a="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&&!a?this.twoDSeries.push(g.parseNumber(t[e].data[o][1][3])):t[e].data[o].length>=5?this.twoDSeries.push(g.parseNumber(t[e].data[o][4])):this.twoDSeries.push(g.parseNumber(t[e].data[o][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var r=new Date(t[e].data[o][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}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,a=new z(this.ctx),o=e;n.collapsedSeriesIndices.indexOf(e)>-1&&(o=this.activeSeriesIndex);for(var r=0;r<t[e].data.length;r++)void 0!==t[e].data[r].y&&(Array.isArray(t[e].data[r].y)?this.twoDSeries.push(g.parseNumber(t[e].data[r].y[t[e].data[r].y.length-1])):this.twoDSeries.push(g.parseNumber(t[e].data[r].y))),void 0!==t[e].data[r].goals&&Array.isArray(t[e].data[r].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[r].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),h=!c&&!!a.isValidDate(t[o].data[s].x.toString());if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=n.isBarHorizontal&&n.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[o].data[s].x)):this.twoDSeriesX.push(a.parseDate(t[o].data[s].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(a.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 u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart.push(n.start),i.seriesRangeEnd.push(n.end),i.seriesRangeBar.push(n.rangeUniques),i.seriesRangeBar.forEach((function(t,e){t&&t.forEach((function(t,e){t.y.forEac
52h((function(e,i){for(var n=0;n<t.y.length;n++)if(i!==n){var a=e.y1,o=e.y2,r=t.y[n].y1;a<=t.y[n].y2&&r<=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))}}))}))})),n}},{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=[],a=[],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:[]}})),r="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",s=new M(this.ctx).getActiveConfigSeriesIndex();if("array"===t){if(2!==e[s].data[0][1].length)throw new Error(r);for(var l=0;l<e[i].data.length;l++)n.push(e[i].data[l][1][0]),a.push(e[i].data[l][1][1])}else if("xy"===t){if(2!==e[s].data[0].y.length)throw new Error(r);for(var c=function(t){var r=g.randomId(),s=e[i].data[t].x,l={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1],rangeName:r};e[i].data[t].rangeName=r;var c=o.findIndex((function(t){return t.x===s}));o[c].y.push(l),n.push(l.y1),a.push(l.y2)},h=0;h<e[i].data.length;h++)c(h)}return{start:n,end:a,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var n=this.w,a="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[i].type,o=[],r=[],s=[],l=[],c=[];if("array"===t)if(a&&6===e[i].data[0].length||!a&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)o.push(e[i].data[h][1]),r.push(e[i].data[h][2]),a?(s.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(o.push(e[i].data[d][1][0]),r.push(e[i].data[d][1][1]),a?(s.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(o.push(e[i].data[u].y[0]),r.push(e[i].data[u].y[1]),a?(s.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:o,h:r,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,a=this.w.globals,o=new z(i),r=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();a.isRangeBar="rangeBar"===n.chart.type&&a.isBarHorizontal,a.hasGroups="category"===n.xaxis.type&&n.xaxis.group.groups.length>0,a.hasGroups&&(a.groups=n.xaxis.group.groups);for(var s=function(){for(var t=0;t<r.length;t++)if("string"==typeof r[t]){if(!o.isValidDate(r[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(o.parseDate(r[t]))}else e.twoDSeriesX.push(r[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||(a.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),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,l!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{"datetime"===n.xaxis.type?(a.isXNumeric=!0,s(),a.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(a.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var c=t[l].data.map((function(t){return g.parseNumber(t)}));a.series.push(c)}
52a.seriesZ.push(this.threeDSeries),void 0!==t[l].name?a.seriesNames.push(t[l].name):a.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==t[l].color?a.seriesColors.push(t[l].color):a.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.seriesRangeBar.length&&(i.seriesRangeBar.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 R(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)if(this.isFormatXY())for(var a=i.series.map((function(t,e){return t.data.filter((function(t,e,i){return i.findIndex((function(e){return e.x===t.x}))===e}))})),o=a.reduce((function(t,e,i,n){return n[t].length>e.length?t:i}),0),r=0;r<a[o].length;r++)n.push(r+1);else for(var s=0;s<e.series[e.maxValsInArrayIndex].length;s++)n.push(s+1);e.seriesX=[];for(var l=0;l<t.length;l++)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 c=0;c<t.length;c++)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 a=new M(this.ctx);n.series=a.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),r=0;r<o.length;r++)if(Array.isArray(o[r])){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}(),Y=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return o(t,[{key:"xLabelFormat",value:function(t,e,i,n){var a=this.w;if("datetime"===a.config.xaxis.type&&void 0===a.config.xaxis.labels.formatter&&void 0===a.config.tooltip.x.formatter){var o=new z(this.ctx);return o.formatDate(o.getDate(e),a.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 g.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(g.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(g.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(a){return e.globals.xyCh
52arts?Array.isArray(a)?a.map((function(e){return t.defaultYFormatter(e,i,n)})):t.defaultYFormatter(a,i,n):a}})),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}(),W=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"getLabel",value:function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",r=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=this.w,l=void 0===t[n]?"":t[n],c=l,h=s.globals.xLabelFormatter,d=s.config.xaxis.labels.formatter,u=!1,p=new Y(this.ctx),f=l;r&&(c=p.xLabelFormat(h,l,f,{i:n,dateFormatter:new z(this.ctx).formatDate,w:s}),void 0!==d&&(c=d(l,t[n],{i:n,dateFormatter:new z(this.ctx).formatDate,w:s})));var g=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?(u=g(e[n].unit),i=e[n].position,c=e[n].value):"datetime"===s.config.xaxis.type&&void 0===d&&(c=""),void 0===c&&(c=""),c=Array.isArray(c)?c:c.toString();var m=new b(this.ctx),v={};v=s.globals.rotateXLabels&&r?m.getTextRects(c,parseInt(o,10),null,"rotate(".concat(s.config.xaxis.labels.rotate," 0 0)"),!1):m.getTextRects(c,parseInt(o,10));var y=!s.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(c)&&(0===c.indexOf("NaN")||0===c.toLowerCase().indexOf("invalid")||c.toLowerCase().indexOf("infinity")>=0||a.indexOf(c)>=0&&y)&&(c=""),{x:i,text:c,textRect:v,isBold:u}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var n=this.w,a=n.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(n.globals.gridWidth/120)),a>i||t%Math.round(i/(a+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,n,a){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 r=a[a.length-1];e.x<r.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+r.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 y(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,a,o,r){var s=this.w,l=new b(this.ctx),c=s.globals.translateY;if(n.show&&e>0){!0===s.config.yaxis[a].opposite&&(t+=n.width);for(var h=e;h>=0;h--){var d=c+e/10+s.config.yaxis[a].labels.offsetY-1;s.globals.isBarHorizontal&&(d=o*h),"heatmap"===s.config.chart.type&&(d+=o/2);var u=l.drawLine(t+i.offsetX-n.width+n.offsetX,d+n.offsetY,t+i.offsetX+n.offsetX,d+n.offsetY,n.color);r.add(u),c+=o}}}}]),t}(),X=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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(!g.isIE11())return t.replace(/ /g," ");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.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);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,a=t?t.scale||t.width/n.globals.svgWidth:1;e.cleanup();var o=document.createElement("canvas");o.width=n.globals.svgWidth*a,o.height=parseInt(n.globals.dom.elWrap.style.height,10)*a;var r="transparent"===n.config.chart.background?"#fff":n.config.chart.background,s=o.getContext("2d");s.fillStyle=r,s.fillRect(0,0,o.width*a,o.height*a);var l=e.getSvgString(a);if(window.canvg&&g.isIE11()){var c=window.canvg.Canvg.fromString(s,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var h=o.msToBlob();c.stop(),i({blob:h})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(s.drawImage(u,0,0),o.msToBlob){var t=o.msToBlob();i({blob:t})}else{var e=o.toDataURL("image/png");i({imgURI:e})}},u.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.f
52ilename,".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,a=t.lineDelimiter,o=void 0===a?"\n":a,r=this.w,s=[],l=[],c="",h=new j(this.ctx),d=new W(this.ctx),u=function(t){var i="";if(r.globals.axisCharts){if("category"===r.config.xaxis.type||r.config.xaxis.convertedCatToNumeric)if(r.globals.isBarHorizontal){var a=r.globals.yLabelFormatters[0],o=new M(e.ctx).getActiveConfigSeriesIndex();i=a(r.globals.labels[t],{seriesIndex:o,dataPointIndex:t,w:r})}else i=d.getLabel(r.globals.labels,r.globals.timescaleLabels,0,t).text;"datetime"===r.config.xaxis.type&&(r.config.xaxis.categories.length?i=r.config.xaxis.categories[t]:r.config.labels.length&&(i=r.config.labels[t]))}else i=r.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),g.isNumber(i)?i:i.split(n).join("")};s.push(r.config.chart.toolbar.export.csv.headerCategory),i.map((function(t,e){var i=t.name?t.name:"series-".concat(e);r.globals.axisCharts&&s.push(i.split(n).join("")?i.split(n).join(""):"series-".concat(e))})),r.globals.axisCharts||(s.push(r.config.chart.toolbar.export.csv.headerValue),l.push(s.join(n))),i.map((function(t,e){r.globals.axisCharts?function(t,e){if(s.length&&0===e&&l.push(s.join(n)),t.data&&t.data.length)for(var a=0;a<t.data.length;a++){s=[];var o=u(a);if(o||(h.isFormatXY()?o=i[e].data[a].x:h.isFormat2DArray()&&(o=i[e].data[a]?i[e].data[a][0]:"")),0===e){s.push((d=o,"datetime"===r.config.xaxis.type&&String(d).length>=10?r.config.chart.toolbar.export.csv.dateFormatter(o):g.isNumber(o)?o:o.split(n).join("")));for(var c=0;c<r.globals.series.length;c++)s.push(r.globals.series[c][a])}("candlestick"===r.config.chart.type||t.type&&"candlestick"===t.type)&&(s.pop(),s.push(r.globals.seriesCandleO[e][a]),s.push(r.globals.seriesCandleH[e][a]),s.push(r.globals.seriesCandleL[e][a]),s.push(r.globals.seriesCandleC[e][a])),("boxPlot"===r.config.chart.type||t.type&&"boxPlot"===t.type)&&(s.pop(),s.push(r.globals.seriesCandleO[e][a]),s.push(r.globals.seriesCandleH[e][a]),s.push(r.globals.seriesCandleM[e][a]),s.push(r.globals.seriesCandleL[e][a]),s.push(r.globals.seriesCandleC[e][a])),"rangeBar"===r.config.chart.type&&(s.pop(),s.push(r.globals.seriesRangeStart[e][a]),s.push(r.globals.seriesRangeEnd[e][a])),s.length&&l.push(s.join(n))}var d}(t,e):((s=[]).push(r.globals.labels[e].split(n).join("")),s.push(r.globals.series[e]),l.push(s.join(n)))})),c+=l.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+c),r.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}(),V=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.axesUtils=new W(e),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return o(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new b(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),n=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(n);for(var a=[],o=0;o<this.xaxisLabels.length;o++)a.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,e,n,a,t.globals.isXNumeric,(function(t,e){return e})),t.globals.hasGroups){var r=t.globals.groups;a=[];for(var s=0;s<r.length;s++)a.push(r[s].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,
52n,a,!1,(function(t,e){return r[t].cols*e}),l)}if(void 0!==t.config.xaxis.title.text){var c=e.group({class:"apexcharts-xaxis-title"}),h=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+t.globals.xAxisLabelsHeight+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});c.add(h),i.add(c)}if(t.config.xaxis.axisBorder.show){var d=t.globals.barPadForNumericAxis,u=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);i.add(u)}return i}},{key:"drawXAxisLabelAndGroup",value:function(t,e,i,n,a,o){var r,s=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],h=[],d=this.w,u=l.xaxisFontSize||this.xaxisFontSize,p=l.xaxisFontFamily||this.xaxisFontFamily,f=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,v=d.globals.padHorizontal,b=n.length,y="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(a){var x=y>1?y-1:y;r=d.globals.gridWidth/x,v=v+o(0,r)/2+d.config.xaxis.labels.offsetX}else r=d.globals.gridWidth/y,v=v+o(0,r)+d.config.xaxis.labels.offsetX;for(var w=function(a){var l=v-o(a,r)/2+d.config.xaxis.labels.offsetX;0===a&&1===b&&r/2===v&&1===y&&(l=d.globals.gridWidth/2);var x=s.axesUtils.getLabel(n,d.globals.timescaleLabels,l,a,c,u,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),t||(w=w+parseFloat(u)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),x=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(a,x,b):s.axesUtils.checkForOverflowingLabels(a,x,b,c,h),t&&x.text&&d.globals.xaxisLabelsCount++,d.config.xaxis.labels.show){var _=e.drawText({x:x.x,y:s.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:x.text,textAnchor:"middle",fontWeight:x.isBold?600:g,fontSize:u,fontFamily:p,foreColor:Array.isArray(f)?t&&d.config.xaxis.convertedCatToNumeric?f[d.globals.minX+a-1]:f[a]:f,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(i.add(_),t){var C=document.createElementNS(d.globals.SVGNS,"title");C.textContent=Array.isArray(x.text)?x.text.join(" "):x.text,_.node.appendChild(C),""!==x.text&&(c.push(x.text),h.push(x))}}a<b-1&&(v+=o(a+1,r))},_=0;_<=b-1;_++)w(_)}},{key:"drawXaxisInversed",value:function(t){var e,i,n=this,a=this.w,o=new b(this.ctx),r=a.config.yaxis[0].opposite?a.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("+r+", 0)"});s.add(l);var c=[];if(a.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);e=a.globals.gridHeight/c.length,i=-e/2.2;var d=a.globals.yLabelFormatters[0],u=a.config.yaxis[0].labels;if(u.show)for(var p=function(r){var s=void 0===c[r]?"":c[r];s=d(s,{seriesIndex:t,dataPointIndex:r,w:a});var h=n.axesUtils.getYAxisForeColor(u.style.colors,t),p=0;Array.isArray(s)&&(p=s.length/2*parseInt(u.style.fontSize,10));var f=o.drawText({x:u.offsetX-15,y:i+e+u.offsetY-p,text:s,textAnchor:n.yaxis.opposite?"start":"end",foreColor:Array.isArray(h)?h[r]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass});l.add(f);var g=document.createElementNS(a.globals.SVGNS,"title");if(g.textContent=Array.isArray(s)?s.join(" "):s,f.node.appendChild(g),0!==a.config.yaxis[t].labels.rotate){var m=o.rotateAroundCenter(f.node);f.node.setAttribute("transform","rotate(".concat(a.config.yaxis[t].labels.rotate," 0 ").concat(m.y,")"))}i+=e},f=0;f<=c.length-1;f++)p(f);
52if(void 0!==a.config.yaxis[0].title.text){var g=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+r+", 0)"}),m=o.drawText({x:0,y:a.globals.gridHeight/2,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});g.add(m),s.add(g)}var v=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(v=a.globals.gridWidth);var y=a.config.xaxis.axisBorder;if(y.show){var x=o.drawLine(a.globals.padHorizontal+y.offsetX+v,1+y.offsetY,a.globals.padHorizontal+y.offsetX+v,a.globals.gridHeight+y.offsetY,y.color,0);s.add(x)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(v,c.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,e,s),s}},{key:"drawXaxisTicks",value:function(t,e,i){var n=this.w,a=t;if(!(t<0||t-2>n.globals.gridWidth)){var o=this.offY+n.config.xaxis.axisTicks.offsetY;if(e=e+o+n.config.xaxis.axisTicks.height,"top"===n.config.xaxis.position&&(e=o-n.config.xaxis.axisTicks.height),n.config.xaxis.axisTicks.show){var r=new b(this.ctx).drawLine(t+n.config.xaxis.axisTicks.offsetX,o+n.config.xaxis.offsetY,a+n.config.xaxis.axisTicks.offsetX,e+n.config.xaxis.offsetY,n.config.xaxis.axisTicks.color);i.add(r),r.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 a=0;a<i;a++)n=this.xaxisLabels[a].position,e.push(n);else for(var o=i,r=0;r<o;r++){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 b(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),a=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 r=0;r<n.length;r++){var s=e.rotateAroundCenter(n[r]);s.y=s.y-1,s.x=s.x+1,n[r].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),n[r].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=n[r].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),a=0;a<n.length;a++){var o=n[a].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(a.length>0){var c=a[a.length-1].getBBox(),h=a[0].getBBox();c.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),h.x+h.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var d=0;d<o.length;d++)e.placeTextWithEllipsis(o[d],o[d].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),t}(),$=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new W(e),this.isRangeBar=i.globals.seriesRangeBar.length,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return o(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new b(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"),a=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(a),t.add(n),t}}
52,{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 b(this.ctx),n=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var a=0;t.config.stroke.width.forEach((function(t){a=Math.max(a,t)})),n=a}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,r=0,s=0;("bar"===o||"rangeBar"===o||"candlestick"===o||"boxPlot"===o||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(r=t.config.grid.padding.left,s=t.config.grid.padding.right,e.barPadForNumericAxis>r&&(r=e.barPadForNumericAxis,s=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-n/2-r-2,-n/2,e.gridWidth+n+s+r+4,e.gridHeight+n,0,"#fff");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,a=t.x2,o=t.y2,r=t.xCount,s=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===r-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:a,y2:o,parent:s});var c=0;if(l.globals.hasGroups&&"between"===l.config.xaxis.tickPlacement){var h=l.globals.groups;if(h){for(var d=0,u=0;d<e&&u<h.length;u++)d+=h[u].cols;d===e&&(c=.6*l.globals.xAxisLabelsHeight)}}new V(this.ctx).drawXaxisTicks(i,c,this.elg)}}},{key:"_drawGridLine",value:function(t){var e=t.x1,i=t.y1,n=t.x2,a=t.y2,o=t.parent,r=this.w,s=o.node.classList.contains("apexcharts-gridlines-horizontal"),l=r.config.grid.strokeDashArray,c=r.globals.barPadForNumericAxis,h=new b(this).drawLine(e-(s?c:0),i,n+(s?c:0),a,r.config.grid.borderColor,l);h.node.classList.add("apexcharts-gridline"),o.add(h)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,n=t.y1,a=t.x2,o=t.y2,r=t.type,s=this.w,l=new b(this.ctx),c=s.globals.barPadForNumericAxis;if("column"!==r||"datetime"!==s.config.xaxis.type){var h=s.config.grid[r].colors[e],d=l.drawRect(i-("row"===r?c:0),n,a+("row"===r?2*c:0),o,0,h,s.config.grid[r].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(r))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,n=t.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var o,r=a.globals.padHorizontal,s=a.globals.gridHeight;a.globals.timescaleLabels.length?function(t){for(var n=t.xC,a=t.x1,o=t.y1,r=t.x2,s=t.y2,l=0;l<n;l++)a=e.xaxisLabels[l].position,r=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:a,y1:o,x2:r,y2:s,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:r,y1:0,x2:o,y2:s}):(a.globals.isXNumeric&&(i=a.globals.xAxisScale.result.length),a.config.xaxis.convertedCatToNumeric&&(i=a.globals.xaxisLabelsCount),function(t){var n=t.xC,o=t.x1,r=t.y1,s=t.x2,l=t.y2;if(void 0!==a.config.xaxis.tickAmount&&"dataPoints"!==a.config.xaxis.tickAmount&&"on"===a.config.xaxis.tickPlacement)a.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach((function(t,n){var a=t.getBBox();
52e._drawGridLines({i:n,x1:a.x+a.width/2,y1:r,x2:a.x+a.width/2,y2:l,xCount:i,parent:e.elgridLinesV})}));else for(var c=0;c<n+(a.globals.isXNumeric?0:1);c++)0===c&&1===n&&1===a.globals.dataPoints&&(s=o=a.globals.gridWidth/2),e._drawGridLines({i:c,x1:o,y1:r,x2:s,y2:l,xCount:i,parent:e.elgridLinesV}),s=o+=a.globals.gridWidth/(a.globals.isXNumeric?n-1:n)}({xC:i,x1:r,y1:0,x2:o,y2:s}))}if(a.config.grid.yaxis.lines.show){var l=0,c=0,h=a.globals.gridWidth,d=n+1;this.isRangeBar&&(d=a.globals.labels.length);for(var u=0;u<d+(this.isRangeBar?1:0);u++)this._drawGridLine({x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=a.globals.gridHeight/(this.isRangeBar?d: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,a=i.globals.padHorizontal,o=i.globals.gridHeight,r=0;r<e+1;r++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:a,y1:0,x2:n,y2:o,parent:this.elgridLinesV}),new V(this.ctx).drawXaxisTicks(a,0,this.elg),n=a=a+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var s=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)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 b(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,a=0;a<t.globals.series.length&&(void 0!==t.globals.yAxisScale[a]&&(n=t.globals.yAxisScale[a].result.length-1),!(n>2));a++);return!t.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(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,a=i.globals.gridHeight/e,o=i.globals.gridWidth,r=0,s=0;r<e;r++,s++)s>=i.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:n,x2:o,y2:a,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,h=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,u=0,p=0;u<t;u++,p++)p>=i.config.grid.column.colors.length&&(p=0),this._drawGridBandRect({c:p,x1:c,y1:0,x2:h,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),G=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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,a=arguments.length>4?arguments[4]:void 0,o=this.w,r=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,n,r))&&(i=o.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!g.isNumber(t)&&!g.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=[];r<1&&a&&("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 h=r/c,d=Math.floor(g.log10(h)),u=Math.pow(10,d),p=Math.round(h/u);p<1&&(p=1);var f=p*u,m=f*Math.floor(t/f),v=f*Math.ceil(e/f),b=m;if(a&&r>2){for(;l.push(b),!((b+=f)>v););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var y=t;(l=[]).push(y);for(var x=Math.abs(e-t)/i,w=0;w<=i;w++)y+=x,l.push(y);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,a=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,n,a))&&(i=this.w.globals.dataPoints-1);var o=a/i;i===Number.MAX_VALUE&&(i=10,o=1);for(var r=[],s=t;i>=0;)r.push(s),s+=o,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}}
52,{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var n=[],a=Math.ceil(Math.log(e)/Math.log(i)+1),o=Math.floor(Math.log(t)/Math.log(i));o<a;o++)n.push(Math.pow(i,o));return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var n=[],a=Math.log(e)/Math.log(i),o=Math.log(t)/Math.log(i),r=a-o,s=Math.round(r),l=r/s,c=0,h=o;c<s;c++,h+=l)n.push(Math.pow(i,h));return n.push(Math.pow(i,a)),{result:n,niceMin:t,niceMax:e}}},{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 a=this.w.config.yaxis[e].labels.formatter(1);g.isNumber(Number(a))&&!g.isFloat(a)&&(n=Math.ceil(i))}return n<t?n:t}},{key:"setYScaleForIndex",value:function(t,e,i){var n=this.w.globals,a=this.w.config,o=n.isBarHorizontal?a.xaxis:a.yaxis[t];void 0===n.yAxisScale[t]&&(n.yAxisScale[t]=[]);var r=Math.abs(i-e);if(o.logarithmic&&r<=5&&(n.invalidLogScale=!0),o.logarithmic&&r>5)n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.logarithmicScale(e,i,o.logBase),n.yAxisScale[t]=o.forceNiceScale?this.logarithmicScaleNice(e,i,o.logBase):this.logarithmicScale(e,i,o.logBase);else if(i!==-Number.MAX_VALUE&&g.isNumber(i))if(n.allSeriesCollapsed=!1,void 0===o.min&&void 0===o.max||o.forceNiceScale){var s=void 0===a.yaxis[t].max&&void 0===a.yaxis[t].min||a.yaxis[t].forceNiceScale;n.yAxisScale[t]=this.niceScale(e,i,o.tickAmount?o.tickAmount:r<5&&r>1?r+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,a=i.config.xaxis,o=Math.abs(e-t);return e!==-Number.MAX_VALUE&&g.isNumber(e)?n.xAxisScale=this.linearScale(t,e,a.tickAmount?a.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([]),a=e.maxYArr.concat([]),o=[];i.yaxis.forEach((function(e,r){var s=r;i.series.forEach((function(t,i){t.name===e.seriesName&&(s=i,r!==i?o.push({index:i,similarIndex:r,alreadyExists:!0}):o.push({index:i}))}));var l=n[s],c=a[s];t.setYScaleForIndex(r,l,c)})),this.sameScaleInMultipleAxes(n,a,o)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var n=this,a=this.w.config,o=this.w.globals,r=[];i.forEach((function(t){t.alreadyExists&&(void 0===r[t.index]&&(r[t.index]=[]),r[t.index].push(t.index),r[t.index].push(t.similarIndex))})),o.yAxisSameScaleIndices=r,r.forEach((function(t,e){r.forEach((function(i,n){var a,o;e!==n&&(a=t,o=i,a.filter((function(t){return-1!==o.indexOf(t)}))).length>0&&(r[e]=r[e].concat(r[n]))}))}));var s=r.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));r=r.filter((function(t){return!!t}));var l=s.slice(),c=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return c.indexOf(JSON.stringify(t))===e}));var h=[],d=[];t.forEach((function(t,i){l.forEach((function(n,a){n.indexOf(i)>-1&&(void 0===h[a]&&(h[a]=[],d[a]=[]),h[a].push({key:i,value:t}),d[a].push({key:i,value:e[i]}))}))}));var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),p=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);h.forEach((function(t,e){t.forEach((function(t,i){u[e]=Math.min(t.value,u[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){p[e]=Math.max(t.value,p[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var r=u[i],s=p[i];a.chart.stacked&&(s=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(s+=t.value),r!==Number.MIN_VALUE&&(r+=h[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==a.yaxis[e].min&&(r="function"==typeof a.yaxis[e].min?a.yaxis[e].min(o.minY):a.yaxis[e].min),void 0!==a.yaxis[e].max&&(s="function"==typeof a.yaxis[e].max?a.yaxis[e].max(o.maxY):a.yaxis[e].max),n.setYScaleForIndex(e,r,s))}))}))}))}}
52,{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 a=n.globals.seriesX[0],o=n.config.chart.stacked;return e.forEach((function(t,r){for(var s=0,l=0;l<a.length;l++)if(a[l]>=i.xaxis.min){s=l;break}var c,h,d=n.globals.minYArr[r],u=n.globals.maxYArr[r],p=n.globals.stackedSeriesTotals;n.globals.series.forEach((function(r,l){var f=r[s];o?(f=p[s],c=h=f,p.forEach((function(t,e){a[e]<=i.xaxis.max&&a[e]>=i.xaxis.min&&(t>h&&null!==t&&(h=t),r[e]<c&&null!==r[e]&&(c=r[e]))}))):(c=h=f,r.forEach((function(t,e){if(a[e]<=i.xaxis.max&&a[e]>=i.xaxis.min){var o=t,r=t;n.globals.series.forEach((function(i,n){null!==t&&(o=Math.min(i[e],o),r=Math.max(i[e],r))})),r>h&&null!==r&&(h=r),o<c&&null!==o&&(c=o)}}))),void 0===c&&void 0===h&&(c=d,h=u),(h*=h<0?.9:1.1)<0&&h<u&&(h=u),(c*=c<0?1.1:.9)<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?h:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?h:t.max)}))})),e}}]),t}(),q=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.scales=new G(e)}return o(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,a=this.w.config,o=this.w.globals,r=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===n&&(n=t+1);var l=o.series,c=l,h=l;"candlestick"===a.chart.type?(c=o.seriesCandleL,h=o.seriesCandleH):"boxPlot"===a.chart.type?(c=o.seriesCandleO,h=o.seriesCandleC):o.isRangeData&&(c=o.seriesRangeStart,h=o.seriesRangeEnd);for(var d=t;d<n;d++){o.dataPoints=Math.max(o.dataPoints,l[d].length),o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter((function(t){return void 0!==t})).length);for(var u=0;u<o.series[d].length;u++){var p=l[d][u];null!==p&&g.isNumber(p)?(void 0!==h[d][u]&&(r=Math.max(r,h[d][u]),e=Math.min(e,h[d][u])),void 0!==c[d][u]&&(e=Math.min(e,c[d][u]),i=Math.max(i,c[d][u])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==o.seriesCandleC[d][u]&&(r=Math.max(r,o.seriesCandleO[d][u]),r=Math.max(r,o.seriesCandleH[d][u]),r=Math.max(r,o.seriesCandleL[d][u]),r=Math.max(r,o.seriesCandleC[d][u]),"boxPlot"===this.w.config.chart.type&&(r=Math.max(r,o.seriesCandleM[d][u]))),!a.series[d].type||"candlestick"===a.series[d].type&&"boxPlot"===a.series[d].type||(r=Math.max(r,o.series[d][u]),e=Math.min(e,o.series[d][u])),i=r),o.seriesGoals[d]&&o.seriesGoals[d][u]&&Array.isArray(o.seriesGoals[d][u])&&o.seriesGoals[d][u].forEach((function(t){s!==Number.MIN_VALUE&&(s=Math.min(s,t.value),e=s),r=Math.max(r,t.value),i=r})),g.isFloat(p)&&(p=g.noExponents(p),o.yValueDecimal=Math.max(o.yValueDecimal,p.toString().split(".")[1].length)),s>c[d][u]&&c[d][u]<0&&(s=c[d][u])):o.hasNullValues=!0}}return"rangeBar"===a.chart.type&&o.seriesRangeStart.length&&o.isBarHorizontal&&(s=e),"bar"===a.chart.type&&(s<0&&r<0&&(r=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:r,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 a=this.getMinYMaxY(n,i,null,n+1);t.minYArr.push(a.minY),t.maxYArr.push(a.maxY),i=a.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 r=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(r=0),t.minY=i-5*r/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*r/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.noLabelsProvi
52ded||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]&&g.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 a=[],o=t.minX-1;o<t.maxX;o++)a.push(o+1);t.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.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]&&g.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 z(this.ctx);if("datetime"===e.xaxis.type){var n=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()-2):n.setDate(n.getDate()-2),t.minX=new Date(n).getTime();var a=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),t.maxX=new Date(a).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 a=e-n[i-1];a>0&&(t.minXDiff=Math.min(a,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 a=0,o=0,r=0;r<t.series.length;r++)null!==t.series[r][n]&&g.isNumber(t.series[r][n])&&(t.series[r][n]>0?a=a+parseFloat(t.series[r][n])+1e-4:o+=parseFloat(t.series[r][n])),r===t.series.length-1&&(e.push(a),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}(),U=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new W(e)}return o(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,n=new b(this.ctx),a=i.config.yaxis[t].labels.style,o=a.fontSize,r=a.fontFamily,s=a.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 h=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/h,u=i.globals.translateY,p=i.globals.yLabelFormatters[t],f=i.globals.yAxisScale[t].result.slice();
52f=this.axesUtils.checkForReversedLabels(t,f);var g="";if(i.config.yaxis[t].labels.show)for(var m=function(l){var m=f[l];m=p(m,l,i);var v=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(v*=-1);var b=e.axesUtils.getYAxisForeColor(a.colors,t),y=n.drawText({x:v,y:u+h/10+i.config.yaxis[t].labels.offsetY+1,text:m,textAnchor:i.config.yaxis[t].opposite?"start":"end",fontSize:o,fontFamily:r,fontWeight:s,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(b)?b[l]:b,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+a.cssClass});l===h&&(g=y),c.add(y);var x=document.createElementNS(i.globals.SVGNS,"title");if(x.textContent=Array.isArray(m)?m.join(" "):m,y.node.appendChild(x),0!==i.config.yaxis[t].labels.rotate){var w=n.rotateAroundCenter(g.node),_=n.rotateAroundCenter(y.node);y.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(w.x," ").concat(_.y,")"))}u+=d},v=h;v>=0;v--)m(v);if(void 0!==i.config.yaxis[t].title.text){var y=n.group({class:"apexcharts-yaxis-title"}),x=0;i.config.yaxis[t].opposite&&(x=i.globals.translateYAxisX[t]);var w=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});y.add(w),l.add(y)}var _=i.config.yaxis[t].axisBorder,C=31+_.offsetX;if(i.config.yaxis[t].opposite&&(C=-31-_.offsetX),_.show){var S=n.drawLine(C,i.globals.translateY+_.offsetY-2,C,i.globals.gridHeight+i.globals.translateY+_.offsetY+2,_.color,0,_.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(C,h,_,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new b(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(a);var o=e.globals.yAxisScale[t].result.length-1,r=e.globals.gridWidth/o+.1,s=r+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),h=e.globals.timescaleLabels;h.length>0&&(this.xaxisLabels=h.slice(),o=(c=h.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=h.length;if(e.config.xaxis.labels.show)for(var u=d?0:o;d?u<d:u>=0;d?u++:u--){var p=c[u];p=l(p,u,e);var f=e.globals.gridWidth+e.globals.padHorizontal-(s-r+e.config.xaxis.labels.offsetX);if(h.length){var g=this.axesUtils.getLabel(c,h,f,u,this.drawnLabels,this.xaxisFontSize);f=g.x,p=g.text,this.drawnLabels.push(g.text),0===u&&e.globals.skipFirstTimelinelabel&&(p=""),u===c.length-1&&e.globals.skipLastTimelinelabel&&(p="")}var m=i.drawText({x:f,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:p,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});a.add(m),m.tspan(p);var v=document.createElementNS(e.globals.SVGNS,"title");v.textContent=p,m.node.appendChild(v),s+=r}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new b(this.ctx),n=e.config.xaxis.axisBorder;if(n.show){var a=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(a-=15);var o=i.drawLine(e.globals.padHorizontal+a+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 b(this.ctx);if(void 0!==e.config.xaxis.title.text){var n=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=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(a),t.add(n)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new b(this.ctx),a={width:0,height:0},o={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==r&&(a=r.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,a,o,e);s.setAttribute("x",l.xPos-(e?10:0))}
52if(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 a=this.w,o=0,r=0,s=10;return void 0===a.config.yaxis[t].title.text||t<0?{xPos:r,padd:0}:(n?(r=e.width+a.config.yaxis[t].title.offsetX+i.width/2+s/2,0===(o+=1)&&(r-=s/2)):(r=-1*e.width+a.config.yaxis[t].title.offsetX+s/2+i.width/2,a.globals.isBarHorizontal&&(s=25,r=-1*e.width-a.config.yaxis[t].title.offsetX-s)),{xPos:r,padd:s})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,n=0,a=0,o=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(s,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===t[l].width,h=t[l].width+e[l].width;s.opposite?i.globals.isBarHorizontal?(a=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=a-s.labels.offsetX):(a=i.globals.gridWidth+i.globals.translateX+r,c||(r=r+h+20),i.globals.translateYAxisX[l]=a-s.labels.offsetX+20):(n=i.globals.translateX-o,c||(o=o+h+20),i.globals.translateYAxisX[l]=n+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=g.listToArray(e)).forEach((function(e,i){var n=t.config.yaxis[i];if(n&&void 0!==n.labels.align){var a=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=g.listToArray(o);var r=a.getBoundingClientRect();"left"===n.labels.align?(o.forEach((function(t,e){t.setAttribute("text-anchor","start")})),n.opposite||a.setAttribute("transform","translate(-".concat(r.width,", 0)"))):"center"===n.labels.align?(o.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),a.setAttribute("transform","translate(".concat(r.width/2*(n.opposite?1:-1),", 0)"))):"right"===n.labels.align&&(o.forEach((function(t,e){t.setAttribute("text-anchor","end")})),n.opposite&&a.setAttribute("transform","translate(".concat(r.width,", 0)")))}}))}}]),t}(),Z=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.documentEvent=g.bind(this.documentEvent,this)}return o(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],a=n.length,o=0;o<a;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(e){n(this,t),this.ctx=e,this.w=e.w}return o(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=g.extend(S,i);this.w.globals.locale=n.options}}]),t}(),J=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawAxis",value:function(t,e){var i,n,a=this.w.globals,o=this.w.config,r=new V(this.ctx),s=new U(this.ctx);
52a.axisCharts&&"radar"!==t&&(a.isBarHorizontal?(n=s.drawYaxisInversed(0),i=r.drawXaxisInversed(0),a.dom.elGraphical.add(i),a.dom.elGraphical.add(n)):(i=r.drawXaxis(),a.dom.elGraphical.add(i),o.yaxis.map((function(t,e){-1===a.ignoreYAxisIndexes.indexOf(e)&&(n=s.drawYaxis(e),a.dom.Paper.add(n))}))))}}]),t}(),Q=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new b(this.ctx),i=new v(this.ctx),n=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,o=t.config.xaxis.crosshairs.fill.type,r=n.colorFrom,s=n.colorTo,l=n.opacityFrom,c=n.opacityTo,h=n.stops,d=a.enabled,u=a.left,p=a.top,f=a.blur,m=a.color,y=a.opacity,x=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===o&&(x=e.drawGradient("vertical",r,s,l,c,null,h,null));var w=e.drawRect();1===t.config.xaxis.crosshairs.width&&(w=e.drawLine());var _=t.globals.gridHeight;(!g.isNumber(_)||_<0)&&(_=0);var C=t.config.xaxis.crosshairs.width;(!g.isNumber(C)||C<0)&&(C=0),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:_,width:C,height:_,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}),d&&(w=i.dropShadow(w,{left:u,top:p,blur:f,color:m,opacity:y})),t.globals.dom.elGraphical.add(w)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new b(this.ctx),i=t.config.yaxis[0].crosshairs,n=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var a=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,
52i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(a)}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}(),tt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,n=i.config;if(0!==n.responsive.length){var a=n.responsive.slice();a.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var o=new F({}),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a[0].breakpoint,r=window.innerWidth>0?window.innerWidth:screen.width;if(r>n){var s=y.extendArrayProps(o,i.globals.initialConfig,i);t=g.extend(s,t),t=g.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<a.length;l++)r<a[l].breakpoint&&(t=y.extendArrayProps(o,a[l].options,i),t=g.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var s=y.extendArrayProps(o,t,i);s=g.extend(i.config,s),r(s=g.extend(s,t))}else r({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new F(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),et=function(){function t(e){n(this,t),this.ctx=e,this.colors=[],this.w=e.w;var i=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===i.config.chart.type&&i.config.plotOptions.treemap.distributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.distributed,this.isBarDistributed=i.config.plotOptions.bar.distributed&&("bar"===i.config.chart.type||"rangeBar"===i.config.chart.type)}return o(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this,e=this.w,i=new g;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 a=e.config.colors[n];return a||(a=e.config.colors[0]),"function"==typeof a?(t.isColorFn=!0,a({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})):a})))),e.globals.seriesColors.map((function(t,i){t&&(e.globals.colors[i]=t)})),e.config.theme.monochrome.enabled){var n=[],a=e.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(a=e.globals.series[0].length*e.globals.series.length);for(var o=e.config.theme.monochrome.color,r=1/(a/e.config.theme.monochrome.shadeIntensity),s=e.config.theme.monochrome.shadeTo,l=0,c=0;c<a;c++){var h=void 0;"dark"===s?(h=i.shadeColor(-1*l,o),l+=r):(h=i.shadeColor(l,o),l+=r),n.push(h)}e.globals.colors=n.slice()}var d=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:d: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=d: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=d: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,a=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&&(a=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),t.length<a)for(var o=a-t.length,r=0;r<o;r++)t.push(t[r])}},{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":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#F
52F9800"];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"]}return this.colors}}]),t}(),it=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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,a=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,a=a+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var r=new b(this.ctx).drawText({x:n,y:a,text:i.text,textAnchor:o,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(r)}}}]),t}(),nt=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,n=0,a="title"===t?e.config.title.floating:e.config.subtitle.floating,o=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==o&&!a){var r=o.getBoundingClientRect();i=r.width,n=e.globals.axisCharts?r.height+5:r.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({},g.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})),a=Math.max.apply(Math,u(n));i=e[n.indexOf(a)]}return i}}]),t}(),at=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return o(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 a=e.globals.xLabelFormatter,o=g.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i);e.globals.isBarHorizontal&&(r=o=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var s=new Y(this.dCtx.ctx),l=o;o=s.xLabelFormat(a,o,l,{i:void 0,dateFormatter:new z(this.dCtx.ctx).formatDate,w:e}),r=s.xLabelFormat(a,r,l,{i:void 0,dateFormatter:new z(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===o||""===String(o).trim())&&(r=o="1");var c=new b(this.dCtx.ctx),h=c.getTextRects(o,e.config.xaxis.labels.style.fontSize),d=h;if(o!==r&&(d=c.getTextRects(r,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>
52e.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 u=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)};h=u(o),o!==r&&(d=u(r)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasGroups)return{width:0,height:0};var i,n=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,a=e.globals.groups.map((function(t){return t.title})),o=g.getLargestStringFromArr(a),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,a),s=new b(this.dCtx.ctx),l=s.getTextRects(o,n),c=l;return o!==r&&(c=s.getTextRects(r,n)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var n=new b(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 b(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,a=i.config,o=a.xaxis.type,r=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+r/1.75-e.dCtx.yAxisWidthRight,c=s.position-r/1.75+e.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>n.svgWidth-n.translateX-h&&(n.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==a.chart.type&&"candlestick"!==a.chart.type&&"rangeBar"!==a.chart.type&&"boxPlot"!==a.chart.type?10:r/1.75)&&(n.skipFirstTimelinelabel=!0)}else"datetime"===o?e.dCtx.gridPad.right<r&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"!==o&&e.dCtx.gridPad.right<r/2-e.dCtx.yAxisWidthRight&&!n.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=r/2+1)}(t)};a.yaxis.forEach((function(t,i){s?(e.dCtx.gridPad.left<r&&(e.dCtx.xPadLeft=r/2+1),e.dCtx.xPadRight=r/2+1):l(t,i)}))}}]),t}(),ot=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return o(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],n=10,a=new W(this.dCtx.ctx);return e.config.yaxis.map((function(o,r){var s=e.globals.yAxisScale[r],l=0;if(!a.isYAxisHidden(r)&&o.labels.show&&void 0!==o.labels.minWidth&&(l=o.labels.minWidth),!a.isYAxisHidden(r)&&o.labels.show&&s.result.length){var c=e.globals.yLabelFormatters[r],h=s.niceMin===Number.MIN_VALUE?0:s.niceMin,d=String(h).length>String(s.niceMax).length?h:s.niceMax,u=c(d,{seriesIndex:r,dataPointIndex:-1,w:e}),p=u;if(void 0!==u&&0!==u.length||(u=d),e.globals.isBarHorizontal){n=0;var f=e.globals.labels.slice();u=c(u=g.getLargestStringFromArr(f),{seriesIndex:r,dataPointIndex:-1,w:e}),p=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,f)}var m=new b(t.dCtx.ctx),v="rotate(".concat(o.labels.rotate," 0 0)"),y=m.getTextRects(u,o.labels.style.fontSize,o.labels.style.fontFamily,v,!1),x=y;u!==p&&(x=m.getTextRects(p,o.labels.style.fontSize,o.labels.style.fontFamily,v,!1)),i.push({width:(l>x.width||l>y.width?l:x.width>y.width?x.width:y.width)+n,height:x.height>y.height?x.height:y.height})}else i.push({width:0,height:0})})),i}}
52,{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 a=new b(t.dCtx.ctx),o="rotate(".concat(e.title.rotate," 0 0)"),r=a.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,o,!1);i.push({width:r.width,height:r.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,n=0,a=t.globals.yAxisScale.length>1?10:0,o=new W(this.dCtx.ctx),r=function(r,s){var l=t.config.yaxis[s].floating,c=0;r.width>0&&!l?(c=r.width+a,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(s)&&(c=c-r.width-a)):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){r(t,e)})),t.globals.yTitleCoords.map((function(t,e){r(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}(),rt=function(){function t(e){n(this,t),this.w=e.w,this.dCtx=e}return o(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,a=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 r,s,l=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);l<=3&&(l=e.globals.dataPoints),r=l/t,e.globals.minXDiff&&e.globals.minXDiff/r>0&&(s=e.globals.minXDiff/r),s>t/2&&(s/=2),(a=s/o*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(a=1),a=a/(o>1?1:1.5)+5,e.globals.barPadForNumericAxis=a}return a}},{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 a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-a.height-o.height-n,i.translateY=i.translateY+a.height+o.height+n}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,n=new W(this.dCtx.ctx);i.config.yaxis.map((function(a,o){-1!==i.globals.ignoreYAxisIndexes.indexOf(o)||a.floating||n.isYAxisHidden(o)||(a.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}(),st=function(){function t(e){n(this,t),this.ctx=e,this.w=e.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 nt(this),this.dimYAxis=new ot(this),this.dimXAxis=new at(this),this.dimGrid=new rt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return o(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(e){var i=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,a,o=[],r=!0,s=!1;try{for(i=i.call(t);!(r=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);r=!0);}catch(t){s=!0,a=t}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return o}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),n=i[0],a=i[1];t.gridPad[n]=Math.max(a,t.w.globals.markers.largestSize/1.5)})),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var n=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*n,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(n>0?n+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,n=this.dimYAxis.getyAxisLabelsCoords(),a=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:a[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,s,r),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 l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-s.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-o.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var h=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,c=0,h=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(o);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-c-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(h=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=h,d();break;case"top":i.translateY=this.lgRect.height+h,d();break;case"left":i.translateY=h,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=h,i.translateX=l,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,n),new U(this.ctx).setYAxisXPosition(n,a)}},{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 a="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",o=i.plotOptions[a].offsetY,r=i.plotOptions[a].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=r+(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=r+(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=r+(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=r+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=r+10;break;default:throw new Error("Legend position not supported")}}}
52,{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var n=this.w,a=n.globals.hasGroups?2:1,o=i.height+t.height+e.height,r=n.globals.isMultiLineX?1.2:n.globals.LINE_HEIGHT_RATIO,s=n.globals.rotateXLabels?22:10,l=n.globals.rotateXLabels&&"bottom"===n.config.legend.position?10:0;this.xAxisHeight=o*r+a*s+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>n.config.xaxis.labels.maxHeight&&(this.xAxisHeight=n.config.xaxis.labels.maxHeight),n.config.xaxis.labels.minHeight&&this.xAxisHeight<n.config.xaxis.labels.minHeight&&(this.xAxisHeight=n.config.xaxis.labels.minHeight),n.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,h=0;n.config.yaxis.forEach((function(t){c+=t.labels.minWidth,h+=t.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),t}(),lt=function(){function t(e){n(this,t),this.w=e.w,this.lgCtx=e}return o(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.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n flex-wrap: wrap\t\n }\t\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n flex-direction: column;\t\n bottom: 0;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n justify-content: flex-start;\t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n justify-content: center; \t\n }\t\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-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.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-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 a=null,o=null;n.globals.risingSeries=[],n.globals.axisCharts?(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),o=parseInt(a.getAttribute("data:realIndex"),10)):(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),o=parseInt(a.getAttribute("rel"),10)-1),e?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}
52].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,o)})):this.hideSeries({seriesEl:a,realIndex:o})}else{var r=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 b(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,l)}r.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,n=this.w,a=g.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:a[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(i))),!o){n.globals.collapsedSeries.push({index:i,data:a[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(i);var r=n.globals.risingSeries.indexOf(i);n.globals.risingSeries.splice(r,1)}}else n.globals.collapsedSeries.push({index:i,data:a[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,a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w,a=g.clone(n.config.series);if(t.length>0){for(var o=0;o<t.length;o++)t[o].index===i&&(n.globals.axisCharts?(a[i].data=t[o].data.slice(),t.splice(o,1),e.splice(o,1),n.globals.risingSeries.push(i)):(a[i]=t[o].data,t.splice(o,1),e.splice(o,1),n.globals.risingSeries.push(i)));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,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}(),ct=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.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 lt(this)}return o(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(),g.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,a=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})),a=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 r=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=r(n[l],{seriesIndex:l,w:e}),h=!1,d=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u<e.globals.collapsedSeries.length;u++)e.globals.collapsedSeries[u].index===l&&(h=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<e.globals.ancillaryCollapsedSeriesIndices.length;p++)e.globals.ancillaryCollapsedSeriesIndices[p]===l&&(d=!0);var f=document.createElement("span");f.classList.add("apexcharts-legend-marker");var m=e.config.legend.markers.offsetX,v=e.config.legend.markers.offsetY,x=e.config.legend.markers.height,w=e.config.legend.markers.width,_=e.config.legend.markers.strokeWidth,C=e.config.legend.markers.strokeColor,S=e.config.legend.markers.radius,k=f.style;k.background=a[l],k.color=a[l],k.setProperty("background",a[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(k.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(k.background=e.globals.seriesColors[l],k.color=e.globals.seriesColors[l]),k.height=Array.isArray(x)?parseFloat(x[l])+"px":parseFloat(x)+"px",k.width=Array.isArray(w)?parseFloat(w[l])+"px":parseFloat(w)+"px",k.left=(Array.isArray(m)?parseFloat(m[l]):parseFloat(m))+"px",k.top=(Array.isArray(v)?parseFloat(v[l]):parseFloat(v))+"px",k.borderWidth=Array.isArray(_)?_[l]:_,k.borderColor=Array.isArray(C)?C[l]:C,k.borderRadius=Array.isArray(S)?parseFloat(S[l])+"px":parseFloat(S)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(f.innerHTML=e.config.legend.markers.customHTML[l]()):f.innerHTML=e.config.legend.markers.customHTML()),b.setAttrs(f,{rel:l+1,"data:collapsed":h||d}),(h||d)&&f.classList.add("apexcharts-inactive-legend");var A=document.createElement("div"),T=document.createElement("span");T.classList.add("apexcharts-legend-text"),T.innerHTML=Array.isArray(c)?c.join(" "):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,b.setAttrs(T,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":h||d}),A.appendChild(f),A.appendChild(T);var L=new y(this.ctx);e.config.legend.showForZeroSeries||0===L.getSeriesTotalByIndex(l)&&L.seriesHaveSameValues(l)&&!L.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&A.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||L.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&A.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(A),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),A.classList.add("apexcharts-legend-series"),A.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":"",b.setAttrs(A,{rel:l+1,seriesName:g.escapeString(n[l]),"data:collapsed":h||d}),(h||d)&&A.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||A.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"),a=n.getBoundingClientRect(),o=0,r=0;if("bottom"===i.config.legend.position)r+=i.globals.svgHeight-a.height/2;else if("top"===i.config.legend.position){var s=new st(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;r=r+(l>0?l-10:0)+(c>0?c-10:0)}n.style.position="absolute",o=o+t+i.config.legend.offsetX,r=r+e+i.config.legend.offsetY,n.style.left=o+"px",n.style.top=r+"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 st(this.ctx),n=i.dimHelpers.getTitleSubtitleCoords("title"),a=i.dimHelpers.getTitleSubtitleCoords("subtitle"),o=0;"bottom"===t.config.legend.position?o=-e.clwh/1.8:"top"===t.config.legend.position&&(o=n.height+a.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 M(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new M(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"),a=this.w.config.chart.events.legendClick;"function"==typeof a&&a(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}(),ht=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return o(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 a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(i());var o=[],r=function(i,n,a){var r=i.toLowerCase();t.t[r]&&e.config.chart.zoom.enabled&&o.push({el:n,icon:"string"==typeof t.t[r]?t.t[r]:a,title:t.localeValues[i],class:"apexcharts-".concat(r,"-icon")})};r("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'),r("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
520-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"}),r("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&&g.moveIndexInArray(o,e,t.index)}));for(var c=0;c<o.length;c++)b.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),b.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,b.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().forEac
52h((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.isRangeBar&&(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,a=this._getNewMinXMaxX(i,n);t.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(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),a=this._getNewMinXMaxX(i,n);t.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.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},a=this.getBeforeZoomRange(n);a&&(n=a.xaxis);var o={xaxis:n},r=g.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(r=new G(this.ctx).autoScaleY(this.ctx,r,{xaxis:n})),i.config.chart.group||(o.yaxis=r),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,r)}}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 X(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(g.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}(),dt=function(t){s(i,t);var e=d(i);function i(t){var a;return n(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.dragged=!1,a.graphics=new b(a.ctx),a.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],a.clientX=0,a.clientY=0,a.startX=0,a.endX=0,a.dragX=0,a.startY=0,a.endY=0,a.dragY=0,a.moveDirection="none",a}return o(i,[{key:"init",value:function(t){var e=this,i=t.xyRatios,n=this.w,a=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,a.svgMouseEvents.bind(a,i),{capture:!1,passive:!0})}
52))}},{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,a=this.ctx.toolbar,o=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,r=i.config.chart.toolbar.autoSelected;if(e.shiftKey?(this.shiftWasPressed=!0,a.enableZoomPanFromToolbar("pan"===r?"zoom":"pan")):this.shiftWasPressed&&(a.enableZoomPanFromToolbar(r),this.shiftWasPressed=!1),e.target){var s,l=e.target.classList;if(e.target.parentNode&&null!==e.target.parentNode&&(s=e.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||s&&s.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 c=n.gridRect.getBoundingClientRect();n.startX=n.clientX-c.left,n.startY=n.clientY-c.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 h=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-h.left,n.endY=n.clientY-h.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,a=t.height,o=t.translateX,r=void 0===o?0:o,s=t.translateY,l=void 0===s?0:s,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+r+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),h.attr({x:e,y:i,width:n,height:a,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}),b.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:n>
520?n:0,height:a>0?a: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}),b.setAttrs(d.node,u))}}},{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,a=this.w,o=i,r=this.gridRect.getBoundingClientRect(),s=o.startX-1,l=o.startY,c=!1,h=!1,d=o.clientX-r.left-s,u=o.clientY-r.top-l;return Math.abs(d+s)>a.globals.gridWidth?d=a.globals.gridWidth-s:o.clientX-r.left<0&&(d=s),s>o.clientX-r.left&&(c=!0,d=Math.abs(d)),l>o.clientY-r.top&&(h=!0,u=Math.abs(u)),e="x"===n?{x:c?s-d:s,y:0,width:d,height:a.globals.gridHeight}:"y"===n?{x:0,y:h?l-u:l,width:a.globals.gridWidth,height:u}:{x:c?s-d:s,y:h?l-u:l,width:d,height:u},o.drawSelectionRect(e),o.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,n=this.w,a=this.xyRatios,o=this.selectionRect,r=0;"resizing"===t&&(r=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(),r={xaxis:{min:n.globals.xAxisScale.niceMin+(e.left-t.left)*a.xRatio,max:n.globals.xAxisScale.niceMin+(e.right-t.left)*a.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*a.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(e.top-t.top)*a.yRatio[0]}};n.config.chart.events.selection(i.ctx,r),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(i.ctx,r)}),r))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,n=this.w,a=e,o=this.xyRatios,r=this.ctx.toolbar;if(a.startX>a.endX){var s=a.startX;a.startX=a.endX,a.endX=s}if(a.startY>a.endY){var l=a.startY;a.startY=a.endY,a.endY=l}var c=void 0,h=void 0;n.globals.isRangeBar?(c=n.globals.yAxisScale[0].niceMin+a.startX*o.invertedYRatio,h=n.globals.yAxisScale[0].niceMin+a.endX*o.invertedYRatio):(c=n.globals.xAxisScale.niceMin+a.startX*o.xRatio,h=n.globals.xAxisScale.niceMin+a.endX*o.xRatio);var d=[],u=[];if(n.config.yaxis.forEach((function(t,e){d.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*a.startY),u.push(n.globals.yAxisScale[e].niceMax-o.yRatio[e]*a.endY)})),a.dragged&&(a.dragX>10||a.dragY>10)&&c!==h)if(n.globals.zoomEnabled){var p=g.clone(n.globals.initialConfig.yaxis),f=g.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),h=Math.floor(h),c<1&&(c=1,h=n.globals.dataPoints),h-c<2&&(h=c+1)),"xy"!==i&&"x"!==i||(f={min:c,max:h}),"xy"!==i&&"y"!==i||p.forEach((function(t,e){p[e].min=u[e],p[e].max=d[e]})),n.config.chart.zoom.autoScaleYaxis){var m=new G(a.ctx);p=m.autoScaleY(a.ctx,p,{xaxis:f})}if(r){var v=r.getBeforeZoomRange(f,p);v&&(f=v.xaxis?v.xaxis:f,p=v.yaxis?v.yaxis:p)}var b={xaxis:f};n.config.chart.group||(b.yaxis=p),a.ctx.updateHelpers._updateOptions(b,!1,a.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&r.zoomCallback(f,p)}else if(n.globals.selectionEnabled){var y,x=null;y={min:c,max:h},"xy"!==i&&"y"!==i||(x=g.clone(n.config.yaxis)).forEach((function(t,e){x[e].min=u[e],x[e].max=d[e]})),n.globals.selection=a.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(a.ctx,{xaxis:y,yaxis:x})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,n=e;if(void 0!==i.globals.lastClientPosition.x){var a=i.globals.lastClientPosition.x-n.clientX,o=i.globals.lastClientPosition.y-n.clientY;Math.abs(a)>Math.abs(o)&&a>0?this.moveDirection="left":Math.abs(a)>Math.abs(o)&&a<0?this.moveDirection="right":Math.abs(o)>Math.abs(a)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(a)&&o<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:n.clientX,y:n.clientY};var r=i.globals.isRangeBar?i.globals.minY:i.globals.minX,s=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||n.panScrolled(r,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,a=g.clone(i.globals.initialConfig.yaxis),o=n.xRatio,r=i.globals.minX,s=i.globals.maxX;i.globals.isRangeBar&&(o=n.invertedYRatio,r=i.globals.minY,s=i.globals.maxY),"left"===this.moveDirection?(t=r+i.globals.gridWidth/15*o,e=s+i.globals.gridWidth/15*o):"right"===this.moveDirection&&(t=r-i.globals.gridWidth/15*o,e=s-i.globals.gridWidth/15*o),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=r,e=s);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(a=new G(this.ctx).autoScaleY(this.ctx,a,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=a),this.updateScrolledChart(c,t,e)}}
52,{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}})}}]),i}(ht),ut=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return o(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,n=t.clientX,a=t.clientY,o=this.w,r=i.getBoundingClientRect(),s=r.width,l=r.height,c=s/(o.globals.dataPoints-1),h=l/o.globals.dataPoints,d=this.hasBars();!o.globals.comboCharts&&!d||o.config.xaxis.convertedCatToNumeric||(c=s/o.globals.dataPoints);var u=n-r.left-o.globals.barPadForNumericAxis,p=a-r.top;u<0||p<0||u>s||p>l?(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 f=Math.round(u/c),m=Math.floor(p/h);d&&!o.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(u/c),f-=1);var v=null,b=null,y=[],x=[];if(o.globals.seriesXvalues.forEach((function(t){y.push([t[0]+1e-6].concat(t))})),o.globals.seriesYvalues.forEach((function(t){x.push([t[0]+1e-6].concat(t))})),y=y.map((function(t){return t.filter((function(t){return g.isNumber(t)}))})),x=x.map((function(t){return t.filter((function(t){return g.isNumber(t)}))})),o.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),_=u*(w.width/s),C=p*(w.height/l);v=(b=this.closestInMultiArray(_,C,y,x)).index,f=b.j,null!==v&&(y=o.globals.seriesXvalues[v],f=(b=this.closestInArray(_,y)).index)}return o.globals.capturedSeriesIndex=null===v?-1:v,(!f||f<1)&&(f=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=m:o.globals.capturedDataPointIndex=f,{capturedSeries:v,j:o.globals.isBarHorizontal?m:f,hoverX:u,hoverY:p}}},{key:"closestInMultiArray",value:function(t,e,i,n){var a=this.w,o=0,r=null,s=-1;a.globals.series.length>1?o=this.getFirstActiveXArray(i):r=0;var l=i[o][0],c=Math.abs(t-l);if(i.forEach((function(e){e.forEach((function(e,i){var n=Math.abs(t-e);n<c&&(c=n,s=i)}))})),-1!==s){var h=n[o][s],d=Math.abs(e-h);r=o,n.forEach((function(t,i){var n=Math.abs(e-t[s]);n<d&&(d=n,r=i)}))}return{index:r,j:s}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,n=t.map((function(t,e){return t.length>0?e:-1})),a=0;a<n.length;a++)if(-1!==n[a]&&-1===e.globals.collapsedSeriesIndices.indexOf(a)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(a)){i=n[a];break}return i}},{key:"closestInArray",value:function(t,e){for(var i=e[0],n=null,a=Math.abs(t-i),o=0;o<e.length;o++){var r=Math.abs(t-e[o]);r<a&&(a=r,n=o)}return{index:n}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter((function(t){return void 0!==t[0]}));if(i.length>0)for(var n=0;n<i.length-1;n++)void 0!==i[n][t]&&void 0!==i[n+1][t]&&i[n][t]!==i[n+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return u(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"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=u(t)).sort((function(t,e){var i=Number(t.getAttribute("data:realIndex")),n=Number(e.getAttribute("data:realIndex"));return n<i?1:n>i?-1:0}));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,a=0;a<n.length;a++)"enable"===t?(n[a].classList.add("apexcharts-active"),n[a].style.display=e.config.tooltip.items.display):(n[a].classList.remove("apexcharts-active"),n[a].style.display="none")}}]),t}(),pt=function(){function t(e){n(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new ut(e)}return o(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,n=t.ttItems,a=t.i,o=void 0===a?0:a,r=t.j,s=void 0===r?null:r,l=t.y1,c=t.y2,h=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:o,j:s,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var u=this.getValuesToPrint({i:o,j:s});this.printLabels({i:o,j:s,values:u,ttItems:n,shared:i,e:h});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var i,n=this,a=t.i,o=t.j,r=t.values,s=t.ttItems,l=t.shared,c=t.e,h=this.w,d=[],u=function(t){return h.globals.seriesGoals[t]&&h.globals.seriesGoals[t][o]&&Array.isArray(h.globals.seriesGoals[t][o])},p=r.xVal,f=r.zVal,g=r.xAxisTTVal,m="",v=h.globals.colors[a];null!==o&&h.config.plotOptions.bar.distributed&&(v=h.globals.colors[o]);for(var b=function(t,r){var b=n.getFormatters(a);
52m=n.getSeriesName({fn:b.yLbTitleFormatter,index:a,seriesIndex:a,j:o}),"treemap"===h.config.chart.type&&(m=b.yLbTitleFormatter(String(h.config.series[a].data[o].x),{series:h.globals.series,seriesIndex:a,dataPointIndex:o,w:h}));var y=h.config.tooltip.inverseOrder?r:t;if(h.globals.axisCharts){var x=function(t){return b.yLbFormatter(h.globals.series[t][o],{series:h.globals.series,seriesIndex:t,dataPointIndex:o,w:h})};if(l)b=n.getFormatters(y),m=n.getSeriesName({fn:b.yLbTitleFormatter,index:y,seriesIndex:a,j:o}),v=h.globals.colors[y],i=x(y),u(y)&&(d=h.globals.seriesGoals[y][o].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:y,dataPointIndex:o,w:h})}})));else{var w,_=null==c||null===(w=c.target)||void 0===w?void 0:w.getAttribute("fill");_&&(v=-1!==_.indexOf("url")?document.querySelector(_.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):_),i=x(a),u(a)&&Array.isArray(h.globals.seriesGoals[a][o])&&(d=h.globals.seriesGoals[a][o].map((function(t){return{attrs:t,val:b.yLbFormatter(t.value,{seriesIndex:a,dataPointIndex:o,w:h})}})))}}null===o&&(i=b.yLbFormatter(h.globals.series[a],e(e({},h),{},{seriesIndex:a,dataPointIndex:a}))),n.DOMHandling({i:a,t:y,j:o,ttItems:s,values:{val:i,goalVals:d,xVal:p,xAxisTTVal:g,zVal:f},seriesName:m,shared:l,pColor:v})},y=0,x=h.globals.series.length-1;y<h.globals.series.length;y++,x--)b(y,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,a=t.j,o=this.w;return e(String(o.globals.seriesNames[i]),{series:o.globals.series,seriesIndex:n,dataPointIndex:a,w:o})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,n=t.ttItems,a=t.values,o=t.seriesName,r=t.shared,s=t.pColor,l=this.w,c=this.ttCtx,h=a.val,d=a.goalVals,u=a.xVal,p=a.xAxisTTVal,f=a.zVal,g=null;g=n[e].children,l.config.tooltip.fillSeriesColor&&(n[e].style.backgroundColor=s,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==p?p:u);var m=n[e].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=o||"");var v=n[e].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==h?h:""),g[0]&&g[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]),g[0].style.backgroundColor=s),l.config.tooltip.marker.show||(g[0].style.display="none");var b=n[e].querySelector(".apexcharts-tooltip-text-goals-label"),y=n[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var x=function(){var t="<div >",e="<div>";d.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>",y.innerHTML=e+"</div>"};r?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?x():(b.innerHTML="",y.innerHTML=""):x()}else b.innerHTML="",y.innerHTML="";null!==f&&(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!==f?f:""),r&&g[0]&&(null==h||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?g[0].parentNode.style.display="none":g[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,a=this.ctx.series.filteredSeriesX(),o="",r="",s=null,l=null,c={series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n},h=n.globals.ttZFormatter;null===i?l=n.globals.series[e]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(o=a[e][i],0===a[e].length&&(o=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):o=void 0!==n.globals.labels[i]?n.globals.labels[i]:"";var d=o;return o=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new Y(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new z(this.ctx).formatDate,w:this.w}
52):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](d,c):n.globals.xLabelFormatter(d,c),void 0!==n.config.tooltip.x.formatter&&(o=n.globals.ttKeyFormatter(d,c)),n.globals.seriesZ.length>0&&n.globals.seriesZ[e].length>0&&(s=h(n.globals.seriesZ[e][i],n)),r="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(d,c):o,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:s}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,a=t.y2,o=t.w,r=this.ttCtx.getElTooltip(),s=o.config.tooltip.custom;Array.isArray(s)&&s[e]&&(s=s[e]),r.innerHTML=s({ctx:this.ctx,series:o.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:a,w:o})}}]),t}(),ft=function(){function t(e){n(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return o(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,a=i.getElXCrosshairs(),o=t-i.xcrosshairsWidth/2,r=n.globals.labels.slice().length;if(null!==e&&(o=n.globals.gridWidth/r*e),null===a||n.globals.isBarHorizontal||(a.setAttribute("x",o),a.setAttribute("x1",o),a.setAttribute("x2",o),a.setAttribute("y2",n.globals.gridHeight),a.classList.add("apexcharts-active")),o<0&&(o=0),o>n.globals.gridWidth&&(o=n.globals.gridWidth),i.isXAxisTooltipEnabled){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&&b.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&b.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var n,a=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 b(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=a+"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),a=e.globals.translateY+n,o=i.yaxisTTEls[t].getBoundingClientRect().height,r=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(r-=26),a-=o/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=a+"px",i.yaxisTTEls[t].style.left=r+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,a=this.ttCtx,o=a.getElTooltip(),r=a.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-r.ttWidth-s-10),l>n.globals.gridWidth-r.ttWidth-10&&(l=n.globals.gridWidth-r.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var h=a.getElGrid(),d=h.getBoundingClientRect();c=a.e.clientY+n.globals.translateY-d.top-r.ttHeight/2}else n.globals.isBarHorizontal||(r.ttHeight/2+c>n.globals.gridHeight&&(c=n.globals.gridHeight-r.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 a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),o=0;o<a.length;o++)parseInt(a[o].getAttribute("rel"),10)===e&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(e,a[o]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,n,a=this.w,o=this.ttCtx,r=a.globals.pointsArray,s=o.tooltipUtil.getHoverMarkerSize(e),l=a.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=r[e][t][0],n=r[e][t][1]?r[e][t][1]:0;var c=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&n<a.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,a=0,o=0,r=n.globals.pointsArray;e=new M(this.ctx).getActiveConfigSeriesIndex(!0);var s=i.tooltipUtil.getHoverMarkerSize(e);r[e]&&(a=r[e][t][0],o=r[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<n.globals.series.length;c++){var h=r[c];if(n.globals.comboCharts&&void 0===h&&l.splice(c,0,null),h&&h.length){var d=r[c][t][1];l[c].setAttribute("cx",a),null!==d&&!isNaN(d)&&d<n.globals.gridHeight+s&&d+s>0?(l[c]&&l[c].setAttribute("r",s),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(a),!i.fixedTooltip){var u=o||n.globals.gridHeight;this.moveTooltip(a,u,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,a=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;e.globals.isBarHorizontal&&(a=new M(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"']")),r=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,h=i.getElGrid().getBoundingClientRect(),d=o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area");if(e.globals.isXNumeric?(o&&!d&&(r-=n%2!=0?l/2:0),o&&d&&e.globals.comboCharts&&(r-=l/2)):e.globals.isBarHorizontal||(r=i.xAxisTicksPositions[t
52-1]+i.dataPointsDividedWidth/2,isNaN(r)&&(r=i.xAxisTicksPositions[t]-i.dataPointsDividedWidth/2)),e.globals.isBarHorizontal?(s>e.globals.gridHeight/2&&(s-=i.tooltipRect.ttHeight),(s=s+e.config.grid.padding.top+c/3)+c>e.globals.gridHeight&&(s=e.globals.gridHeight-c)):e.config.tooltip.followCursor?s=i.e.clientY-h.top-i.tooltipRect.ttHeight/2:s+i.tooltipRect.ttHeight+15>e.globals.gridHeight&&(s=e.globals.gridHeight),s<-10&&(s=-10),e.globals.isBarHorizontal||this.moveXCrosshairs(r),!i.fixedTooltip){var u=s||e.globals.gridHeight;this.moveTooltip(r,u)}}}]),t}(),gt=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new ft(e)}return o(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new b(this.ctx),i=new E(this.ctx),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=u(n),t.config.chart.stacked&&n.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var a=0;a<n.length;a++){var o=n[a].querySelector(".apexcharts-series-markers-wrap");if(null!==o){var r=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({cssClass:s,seriesIndex:Number(o.getAttribute("data:realIndex"))});(r=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(r.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,a=this.w;"bubble"!==a.config.chart.type&&this.newPointSize(t,e);var o=e.getAttribute("cx"),r=e.getAttribute("cy");if(null!==i&&null!==n&&(o=i,r=n),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if("radar"===a.config.chart.type){var s=this.ttCtx.getElGrid(),l=s.getBoundingClientRect();o=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(o,r,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,n=this.ttCtx,a=t,o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=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===r&&(r=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),a===parseInt(l,10)){i.newPointSize(a,o[s]);var h=o[s].getAttribute("cx"),d=o[s].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),n.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,r)}else i.oldPointSize(o[s])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size,a=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){var o=parseInt(a.getAttribute("index"),10);void 0===n&&(n=i.globals.markers.size[o]+i.config.markers.hover.sizeOffset),n<0&&(n=0),a.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"));g.isNumber(i)&&i>=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),mt=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e}return o(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,a=t.y,o=t.type,r=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"),h=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),p=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:e}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,n=h+r.tooltipRect.ttWidth/2+u,a=d+r.tooltipRect.ttHeight/2-p/2,r.tooltipPosition.moveXCrosshairs(h+u/2),n>s.globals.gridWidth/2&&(n=h-r.tooltipRect.ttWidth/2+u),r.w.config.tooltip.followCursor){var f=s.globals.dom.elWrap.getBoundingClientRect();n=s.globals.clientX-f.left-(n>s.globals.gridWidth/2?r.tooltipRect.ttWidth:0),a=s.globals.clientY-f.top-(a>s.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:n,y:a}}},{key:"handleMarkerTooltip",value:function(t){var e,i,n=t.e,a=t.opt,o=t.x,r=t.y,s=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var c=parseInt(a.paths.getAttribute("cx"),10),h=
52parseInt(a.paths.getAttribute("cy"),10),d=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel"),10),e=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=g.findAncestor(a.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:a.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,r=h+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();r=l.e.clientY+s.globals.translateY-p.top}d<0&&(r=h),l.marker.enlargeCurrentPoint(i,a.paths,o,r)}return{x:o,y:r}}},{key:"handleBarTooltip",value:function(t){var e,i,n=t.e,a=t.opt,o=this.w,r=this.ttCtx,s=r.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:n,opt:a});e=d.i;var u=d.barHeight,p=d.j;o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=p,o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!o.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(o.config.stroke.width)?o.config.stroke.width[e]:o.config.stroke.width,l=c):o.globals.comboCharts||o.config.tooltip.shared||(l/=2),isNaN(h)?h=o.globals.svgHeight-r.tooltipRect.ttHeight:h<0&&(h=0);var f=parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),g=o.globals.isMultipleYAxis?o.config.yaxis[f]&&o.config.yaxis[f].reversed:o.config.yaxis[0].reversed;if(c+r.tooltipRect.ttWidth>o.globals.gridWidth&&!g?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var m=r.getElGrid().getBoundingClientRect();h=r.e.clientY-m.top}null===r.tooltip&&(r.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(l+i/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(g&&(c-=r.tooltipRect.ttWidth)<0&&(c=0),!g||o.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||(h=h+u-2*(o.globals.series[e][p]<0?u:0)),r.tooltipRect.ttHeight+h>o.globals.gridHeight?h=o.globals.gridHeight-r.tooltipRect.ttHeight+o.globals.translateY:(h=h+o.globals.translateY-r.tooltipRect.ttHeight/2)<0&&(h=0),s.style.left=c+o.globals.translateX+"px",s.style.top=h+"px")}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,n=this.w,a=null,o=this.ttCtx,r=0,s=0,l=0,c=0,h=0,d=e.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var u=e.target,p=u.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),g=p.height;h=p.height;var m=p.width,v=parseInt(u.getAttribute("cx"),10),b=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var y="touchmove"===e.type?e.touches[0].clientX:e.clientX;a=parseInt(u.getAttribute("j"),10),r=parseInt(u.parentNode.getAttribute("rel"),10)-1;var x=u.getAttribute("data-range-y1"),w=u.getAttribute("data-range-y2");n.globals.comboCharts&&(r=parseInt(u.parentNode.getAttribute("data:realIndex"),10)),o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:a,y1:x?parseInt(x,10):null,y2:w?parseInt(w,10):null,shared:!o.showOnIntersect&&n.config.tooltip.shared,e:e}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(s=y-f.left+15,l=b-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-m/2:v-o.dataPointsDividedWidth+m/2,l=e.clientY-f.top-o.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((s=v)<o.xyRatios.baseLineInvertedY&&(s=v-o.tooltipRect.ttWidth),l=b-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-m/2:v-o.dataPointsDividedWidth+m/2,l=b)}return{x:s,y:l,barHeight:h,barWidth:c,i:r,j:a}}}]),t}(),vt=function(){function t(e){n(this,t),this.w=e.w,this.ttCtx=e}return o(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",a=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),a.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 a="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){
52n===i&&(a+=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",a+" 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 a=parseFloat(n.getAttribute("barWidth"));e.xcrosshairsWidth=a}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 r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}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,a=this.w,o=a.globals.yLabelFormatters[t];if(n.yaxisTooltips[t]){var r=n.getElGrid().getBoundingClientRect(),s=(e-r.top)*i.yRatio[t],l=a.globals.maxYArr[t]-a.globals.minYArr[t],c=a.globals.minYArr[t]+(l-s);n.tooltipPosition.moveYCrosshairs(e-r.top),n.yaxisTooltipText[t].innerHTML=o(c),n.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),bt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new ut(this),this.tooltipLabels=new pt(this),this.tooltipPosition=new ft(this),this.marker=new gt(this),this.intersect=new mt(this),this.axesTooltip=new vt(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=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return o(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{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.isXAxisTooltipEnabled=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"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),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 V(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 a=e.globals.series.length;
52(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,n=[],a=this.getElTooltip(),o=function(o){var r=document.createElement("div");r.classList.add("apexcharts-tooltip-series-group"),r.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&&r.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],r.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)})),r.appendChild(l),a.appendChild(r),n.push(r)},r=0;r<t;r++)o(r);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),a="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,o=t.globals.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());var s,l=[],c=[],h={hoverArea:o,elGrid:r,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(a?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 d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),c.push(s[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],h);else if(n&&!t.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),n=i.width+10,a=i.height+10,o=this.tConfig.fixed.offsetX,r=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&&(r=r+t.globals.svgHeight-a-10),e.style.left=o+"px",e.style.top=r+"px",{x:o,y:r,ttWidth:n,ttHeight:a}}},{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 a={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.onSeriesHover.bind(i,a),{capture:!1,passive:!0})}
52))},a=0;a<t.length;a++)n(a)}},{key:"onSeriesHover",value:function(t,e){var i=this,n=Date.now()-this.lastHoverTime;n>=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(t,e)}),100-n))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var n=[],a=this.w;a.config.chart.group&&(n=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||0===a.globals.dataPoints)||(n.length?n.forEach((function(n){var a=i.getElTooltip(n),o={paths:t.paths,tooltipEl:a,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,a=t.e,o=e.w,r=this.getElTooltip();r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=a,!i.tooltipUtil.hasBars()||o.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new M(e).toggleSeriesOnHover(a,a.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),o.globals.axisCharts?i.axisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,n=t.e,a=t.opt,o=this.w,r=a.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<r.top||l>r.top+r.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var c=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(a)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=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){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),u&&!this.showOnIntersect)this.handleStickyTooltip(n,s,l,a);else if("heatmap"===o.config.chart.type||"treemap"===o.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:n,opt:a,x:e,y:i,type:o.config.chart.type});e=f.x,i=f.y,h.style.left=e+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:a,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);a.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,n=t.tooltipRect,a=this.w,o=i.paths.getAttribute("rel"),r=this.getElTooltip(),s=a.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){r.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(o,10)-1,shared:!1});var l=a.globals.clientX-s.left-n.ttWidth/2,c=a.globals.clientY-s.top-n.ttHeight-10;if(r.style.left=l+"px",r.style.top=c+"px",a.config.legend.tooltipHoverFormatter){var h=o-1,d=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:a});this.legendLabels[h].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(r.classList.remove("apexcharts-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEac
52h((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})))}},{key:"handleStickyTooltip",value:function(t,e,i,n){var a=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:e,clientY:i}),r=o.j,s=o.capturedSeries,l=n.elGrid.getBoundingClientRect();o.hoverX<0||o.hoverX>l.width?this.handleMouseOut(n):null!==s?this.handleStickyCapturedSeries(t,s,n,r):(this.tooltipUtil.isXoverlap(r)||a.globals.isBarHorizontal)&&this.create(t,this,0,r,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(t,e,i,n){var a=this.w;this.tConfig.shared||null!==a.globals.series[e][n]?void 0!==a.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):this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new b(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.isXAxisTooltipEnabled&&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")}
52e.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,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,r=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(r.config.legend.tooltipHoverFormatter){var h=r.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var u=0;u<d.length;u++){var p=d[u],f=parseInt(p.getAttribute("i"),10),g=decodeURIComponent(p.getAttribute("data:default-text")),m=h(g,{seriesIndex:o?f:i,dataPointIndex:n,w:r});if(o)p.innerHTML=r.globals.collapsedSeriesIndices.indexOf(f)<0?m:g;else if(p.innerHTML=f===i?m:g,i===f)break}}if(o){if(s.tooltipLabels.drawSeriesTexts({ttItems:a,i:i,j:n,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(r.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 v=new b(this.ctx),y=r.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var x=0;x<y.length;x++)v.pathMouseEnter(y[x])}}else s.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:a,i:i,j:n}),this.tooltipUtil.hasBars()&&s.tooltipPosition.moveStickyTooltipOverBars(n),l&&s.tooltipPosition.moveMarkers(i,n)}}]),t}(),yt=function(t){s(a,t);var i=d(a);function a(){return n(this,a),i.apply(this,arguments)}return o(a,[{key:"draw",value:function(t,i){var n=this,a=this.w;this.graphics=new b(this.ctx),this.bar=new O(this.ctx,this.xyRatios);var o=new y(this.ctx,a);t=o.getLogSeries(t),this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===a.config.chart.stackType&&(t=a.globals.seriesPercent.slice()),this.series=t,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var r=0;r<t.length;r++)t[r].length>0&&(this.totalItems+=t[r].length);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),l=0,c=0,h=function(o,r){var h=void 0,d=void 0,u=void 0,p=void 0,f=[],m=[],v=a.globals.comboCharts?i[o]:o;n.yRatio.length>1&&(n.yaxisIndex=v),n.isReversed=a.config.yaxis[n.yaxisIndex]&&a.config.yaxis[n.yaxisIndex].reversed;var b=n.graphics.group({class:"apexcharts-series",seriesName:g.escapeString(a.globals.seriesNames[v]),rel:o+1,"data:realIndex":v});n.ctx.series.addCollapsedClassToSeries(b,v);var y=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),x=0,w=0,_=n.initialPositions(l,c,h,d,u,p);c=_.y,x=_.barHeight,d=_.yDivision,p=_.zeroW,l=_.x,w=_.barWidth,h=_.xDivision,u=_.zeroH,n.yArrj=[],n.yArrjF=[],n.yArrjVal=[],n.xArrj=[],n.xArrjF=[],n.xArrjVal=[],1===n.prevY.length&&n.prevY[0].every((function(t){return isNaN(t)}))&&(n.prevY[0]=n.prevY[0].map((function(t){return u})),n.prevYF[0]=n.prevYF[0].map((function(t){return 0})));for(var C=0;C<a.globals.dataPoints;C++){var S=n.barHelpers.getStrokeWidth(o,C,v),k={indexes:{i:o,j:C,realIndex:v,bc:r},strokeWidth:S,x:l,y:c,elSeries:b},A=null;n.isHorizontal?(A=n.drawStackedBarPaths(e(e({},k),{},{zeroW:p,barHeight:x,yDivision:d})),w=n.series[o][C]/n.invertedYRatio):(A=n.drawStackedColumnPaths(e(e({},k),{},{xDivision:h,barWidth:w,zeroH:u})),x=n.series[o][C]/n.yRatio[n.yaxisIndex]),c=A.y,l=A.x,f.push(l),m.push(c);var T=n.barHelpers.getPathFillColor(t,o,C,v);b=n.renderSeries({realIndex:v,pathFill:T,j:C,i:o,pathFrom:A.pathFrom,pathTo:A.pathTo,strokeWidth:S,elSeries:b,x:l,y:c,series:t,barHeight:x,barWidth:w,elDataLabelsWrap:y,type:"bar",visibleSeries:0})}a.globals.seriesXvalues[v]=f,a.globals.seriesYvalues[v]=m,n.prevY.push(n.yArrj),n.prevYF.push(n.yArrjF),n.prevYVal.push(n.yArrjVal),n.prevX.push(n.xArrj),n.prevXF.push(n.xArrjF),n.prevXVal.push(n.xArrjVal),s.add(b)},d=0,u=0;d<t.length;d++,u++)h(d,u);return s}}
52,{key:"initialPositions",value:function(t,e,i,n,a,o){var r,s,l=this.w;return this.isHorizontal?(r=(r=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-r)/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,a=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:r,barWidth:s,zeroH:a,zeroW:o}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,n=t.barHeight,a=t.strokeWidth,o=t.zeroW,r=t.x,s=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=s,u=i.i,p=i.j,f=0,g=0;g<this.prevXF.length;g++)f+=this.prevXF[g][p];if(u>0){var m=o;this.prevXVal[u-1][p]<0?m=this.series[u][p]>=0?this.prevX[u-1][p]+f-2*(this.isReversed?f:0):this.prevX[u-1][p]:this.prevXVal[u-1][p]>=0&&(m=this.series[u][p]>=0?this.prevX[u-1][p]:this.prevX[u-1][p]-f+2*(this.isReversed?f:0)),e=m}else e=o;r=null===this.series[u][p]?e:e+this.series[u][p]/this.invertedYRatio-2*(this.isReversed?this.series[u][p]/this.invertedYRatio:0);var v=this.barHelpers.getBarpaths({barYPosition:d,barHeight:n,x1:e,x2:r,strokeWidth:a,series:this.series,realIndex:i.realIndex,i:u,j:p,w:h});return this.barHelpers.barBackground({j:p,i:u,y1:d,y2:n,elSeries:c}),s+=l,{pathTo:v.pathTo,pathFrom:v.pathFrom,x:r,y:s}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,a=t.xDivision,o=t.barWidth,r=t.zeroH;t.strokeWidth;var s=t.elSeries,l=this.w,c=e.i,h=e.j,d=e.bc;if(l.globals.isXNumeric){var u=l.globals.seriesX[c][h];u||(u=0),i=(u-l.globals.minX)/this.xRatio-o/2}for(var p,f=i,g=0,m=0;m<this.prevYF.length;m++)g+=isNaN(this.prevYF[m][h])?0:this.prevYF[m][h];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][h]===l.globals.seriesX[c][h]){var v,b,y=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var x=1;x<y;x++)if(!isNaN(this.prevY[c-x][h])){b=this.prevY[c-x][h];break}for(var w=1;w<y;w++){if(this.prevYVal[c-w][h]<0){v=this.series[c][h]>=0?b-g+2*(this.isReversed?g:0):b;break}if(this.prevYVal[c-w][h]>=0){v=this.series[c][h]>=0?b:b+g-2*(this.isReversed?g:0);break}}void 0===v&&(v=l.globals.gridHeight),p=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-r:v}else p=l.globals.gridHeight-r;n=p-this.series[c][h]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][h]/this.yRatio[this.yaxisIndex]:0);var _=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:o,y1:p,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:e.realIndex,i:c,j:h,w:l});return this.barHelpers.barBackground({bc:d,j:h,i:c,x1:f,x2:o,elSeries:s}),i+=a,{pathTo:_.pathTo,pathFrom:_.pathFrom,x:l.globals.isXNumeric?i-a:i,y:n}}}]),a}(O),xt=function(t){s(a,t);var i=d(a);function a(){return n(this,a),i.apply(this,arguments)}return o(a,[{key:"draw",value:function(t,i){var n=this,a=this.w,o=new b(this.ctx),r=new T(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=a.config.plotOptions.bar.horizontal;var s=new y(this.ctx,a);t=s.getLogSeries(t),this.series=t,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var l=o.group({class:"apexcharts-".concat(a.config.chart.type,"-series apexcharts-plot-series")}),c=function(s){n.isBoxPlot="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[s].type;var c,h,d,u,p,f,m=void 0,v=void 0,b=[],y=[],x=a.globals.comboCharts?i[s]:s,w=o.group({class:"apexcharts-series",seriesName:g.escapeString(a.globals.seriesNames[x]),rel:s+1,"data:realIndex":x});n.ctx.series.addCollapsedClassToSeries(w,x),t[s].length>0&&(n.visibleI=n.visibleI+1),n.yRatio.length>1&&(n.yaxisIndex=x);var _=n.barHelpers.initialPositions();v=_.y,p=_.barHeight,h=_.yDivision,u=_.zeroW,m=_.x,f=_.barWidth,c=_.xDivision,d=_.zeroH,y.push(m+f/2);for(var C=o.group({class:"apexcharts-datalabels","data:realIndex":x}),S=function(i){var o=n.barHelpers.getStrokeWidth(s,i,x),l=null,g={indexes:{i:s,j:i,realIndex:x},x:m,y:v,strokeWidth:o,elSeries:w};l=n.isHorizontal?n.drawHorizontalBoxPaths(e(e({},g),{},{yDivision:h,barHeight:p,zeroW:u})):n.drawVerticalBoxPaths(e(e({},g),{},{xDivision:c,barWidth:f,zeroH:d})),v=l.y,m=l.x,i>0&&y.push(m+f/2),b.push(v),l.pathTo.forEach((function(e,c){var h=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?l.color[c]:a.globals.stroke.colors[s],d=r.fillPath({seriesNumber:x,dataPointIndex:i,color:l.color[c],value:t[s][i]});n.renderSeries({realIndex:x,pathFill:d,lineFill:h,j:i,i:s,pathFrom:l.pathFrom,pathTo:e,strokeWidth:o,elSeries:w,x:m,y:v,series:t,barHeight:p,barWidth:f,elDataLabelsWrap:C,visibleSeries:n.visibleI,type:a.config.chart.type})}))},k=0;k<a.globals.dataPoints;k++)S(k);a.globals.seriesXvalues[x]=y,a.globals.seriesYvalues[x]=b,l.add(w)},h=0;h<t.length;h++)c(h);return l}},{key:"drawVerticalBoxPaths",value:function(t){var e=t.indexes,i=t.x;t.y;var n=t.xDivision,a=t.barWidth,o=t.zeroH,r=t.strokeWidth,s=this.w,l=new b(this.ctx),c=e.i,h=e.j,d=!0,u=s.config.plotOptions.candlestick.colors.upward,p=s.config.plotOptions.candlestick.colors.downward,f="";this.isBoxPlot&&(f=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[this.yaxisIndex],m=e.realIndex,v=this.getOHLCValue(m,h),y=o,x=o;v.o>v.c&&(d=!1);var w=Math.min(v.o,v.c),_=Math.max(v.o,v.c),C=v.m;s.globals.isXNumeric&&(i=(s.globals.seriesX[m][h]-s.globals.minX)/this.xRatio-a/2);var S=i+a*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(w=o,_=o):(w=o-w/g,_=o-_/g,y=o-v.h/g,x=o-v.l/g,C=o-v.m/g);var k=l.move(S,o),A=l.move(S+a/2,w);return s.globals.previousPaths.length>0&&(A=this.getPreviousPath(m,h,!0)),k=this.isBoxPlot?[l.move(S,w)+l.line(S+a/2,w)+l.line(S+a/2,y)+l.line(S+a/4,y)+l.line(S+a-a/4,y)+l.line(S+a/2,y)+l.line(S+a/2,w)+l.line(S+a,w)+l.line(S+a,C)+l.line(S,C)+l.line(S,w+r/2),l.move(S,C
52)+l.line(S+a,C)+l.line(S+a,_)+l.line(S+a/2,_)+l.line(S+a/2,x)+l.line(S+a-a/4,x)+l.line(S+a/4,x)+l.line(S+a/2,x)+l.line(S+a/2,_)+l.line(S,_)+l.line(S,C)+"z"]:[l.move(S,_)+l.line(S+a/2,_)+l.line(S+a/2,y)+l.line(S+a/2,_)+l.line(S+a,_)+l.line(S+a,w)+l.line(S+a/2,w)+l.line(S+a/2,x)+l.line(S+a/2,w)+l.line(S,w)+l.line(S,_-r/2)],A+=l.move(S,w),s.globals.isXNumeric||(i+=n),{pathTo:k,pathFrom:A,x:i,y:_,barXPosition:S,color:this.isBoxPlot?f:d?[u]:[p]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,n=t.yDivision,a=t.barHeight,o=t.zeroW,r=t.strokeWidth,s=this.w,l=new b(this.ctx),c=e.i,h=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,p=e.realIndex,f=this.getOHLCValue(p,h),g=o,m=o,v=Math.min(f.o,f.c),y=Math.max(f.o,f.c),x=f.m;s.globals.isXNumeric&&(i=(s.globals.seriesX[p][h]-s.globals.minX)/this.invertedXRatio-a/2);var w=i+a*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(v=o,y=o):(v=o+v/u,y=o+y/u,g=o+f.h/u,m=o+f.l/u,x=o+f.m/u);var _=l.move(o,w),C=l.move(v,w+a/2);return s.globals.previousPaths.length>0&&(C=this.getPreviousPath(p,h,!0)),_=[l.move(v,w)+l.line(v,w+a/2)+l.line(g,w+a/2)+l.line(g,w+a/2-a/4)+l.line(g,w+a/2+a/4)+l.line(g,w+a/2)+l.line(v,w+a/2)+l.line(v,w+a)+l.line(x,w+a)+l.line(x,w)+l.line(v+r/2,w),l.move(x,w)+l.line(x,w+a)+l.line(y,w+a)+l.line(y,w+a/2)+l.line(m,w+a/2)+l.line(m,w+a-a/4)+l.line(m,w+a/4)+l.line(m,w+a/2)+l.line(y,w+a/2)+l.line(y,w)+l.line(x,w)+"z"],C+=l.move(v,w),s.globals.isXNumeric||(i+=n),{pathTo:_,pathFrom:C,x:y,y:i,barYPosition:w,color:d}}},{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]}}}]),a}(O),wt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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 a=this.w,o=1,r=a.config.plotOptions[t].shadeIntensity,s=this.determineColor(t,e,i);a.globals.hasNegs||n?o=a.config.plotOptions[t].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*r):(1-s.percent/100)*(1.25*r):s.percent<=0?1-(1+s.percent/100)*r:(1-s.percent/100)*r:(o=1-s.percent/100,"treemap"===t&&(o=(1-s.percent/100)*(1.25*r)));var l=s.color,c=new g;return a.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?g.hexToRgba(c.shadeColor(-1*o,s.color),a.config.fill.opacity):g.hexToRgba(c.shadeColor(o,s.color),a.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(t,e,i){var n=this.w,a=n.globals.series[e][i],o=n.config.plotOptions[t],r=o.colorScale.inverse?i:e;o.distributed&&"treemap"===n.config.chart.type&&(r=i);var s=n.globals.colors[r],l=null,c=Math.min.apply(Math,u(n.globals.series[e])),h=Math.max.apply(Math,u(n.globals.series[e]));o.distributed||"heatmap"!==t||(c=n.globals.minY,h=n.globals.maxY),void 0!==o.colorScale.min&&(c=o.colorScale.min<n.globals.minY?o.colorScale.min:n.globals.minY,h=o.colorScale.max>n.globals.maxY?o.colorScale.max:n.globals.maxY);var d=Math.abs(h)+Math.abs(c),p=100*a/(0===d?d-1e-6:d);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map((function(t,e){if(a>=t.from&&a<=t.to){s=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);p=100*a/(0===i?i-1e-6:i)}})),{color:s,foreColor:l,percent:p}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,n=t.y,a=t.i,o=t.j,r=t.colorProps,s=t.fontSize,l=this.w.config.dataLabels,c=new b(this.ctx),h=new D(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,p=l.offsetY,f=i+u,g=n+parseFloat(l.style.fontSize)/3+p;h.plotDataLabelsText({x:f,y:g,text:e,i:a,j:o,color:r.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new b(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(e,i){n(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new wt(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return o(t,[{key:"draw",value:function(t){var e=this.w,i=new b(this.ctx),n=i.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var a=e.globals.gridWidth/e.globals.dataPoints,o=e.globals.gridHeight/e.globals.series.length,r=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 h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:g.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new v(this.ctx).dropShadow(h,d,c)}for(var u=0,p=e.config.plotOptions.heatmap.shadeIntensity,f=0;f<l[c].length;f++){var m=this.helpers.getShadeColor(e.config.chart.type,c,f,this.negRange),y=m.color,x=m.colorProps;"image"===e.config.fill.type&&(y=new T(this.ctx).fillPath({seriesNumber:c,dataPointIndex:f,opacity:e.globals.hasNegs?x.percent<0?1-(1+x.percent/100):p+x.percent/100:x.percent/100,patternID:g.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:a,height:e.config.fill.image.height?e.config.fill.image.height:o}));var w=this.rectRadius,_=i.drawRect(u,r,a,o,w);if(_.attr({cx:u,cy:r}),_.node.classList.add("apexcharts-heatmap-rect"),h.add(_),_.attr({fill:y,i:c,index:c,j:f,val:l[c][f],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?y:e.globals.stroke.colors[0],color:y}),this.helpers.addListeners(_),e.config.chart.animations.enabled&&!e.globals.dataChanged){var C=1;e.globals.resized||(C=e.config.chart.animations.speed),this.animateHeatMap(_,u,r,a,o,C)}if(e.globals.dataChanged){var S=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){S=this.dynamicAnim.speed;var k=e.globals.previousPaths[c]&&e.globals.previousPaths[c][f]&&e.globals.previousPaths[c][f].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(_,g.isColorHex(k)?k:g.rgb2hex(k),g.isColorHex(y)?y:g.rgb2hex(y),S)}}var A=(0,e.config.dataLabels.formatter)(e.globals.series[c][f],{value:e.globals.series[c][f],seriesIndex:c,dataPointIndex:f,w:e}),E=this.helpers.calculateDataLabels({text:A,x:u+a/2,y:r+o/2,i:c,j:f,colorProps:x,series:l});null!==E&&h.add(E),u+=a}r+=o,n.add(h)}var L=e.globals.yAxisScale[0].result.slice();e.config.yaxis[0].reversed?L.unshift(""):L.push(""),e.globals.yAxisScale[0].result=L;var D=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-D/2,n}}
52,{key:"animateHeatMap",value:function(t,e,i,n,a,o){var r=new m(this.ctx);r.animateRect(t,{x:e+n/2,y:i+a/2,width:0,height:0},{x:e,y:i,width:n,height:a},o,(function(){r.animationCompleted(t)}))}},{key:"animateHeatColor",value:function(t,e,i,n){t.attr({fill:e}).animate(n).attr({fill:i})}}]),t}(),Ct=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"drawYAxisTexts",value:function(t,e,i,n){var a=this.w,o=a.config.yaxis[0],r=a.globals.yLabelFormatters[0];return new b(this.ctx).drawText({x:t+o.labels.offsetX,y:e+o.labels.offsetY,text:r(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(e){n(this,t),this.ctx=e,this.w=e.w;var i=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!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return o(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new b(this.ctx);if(this.ret=n.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var a=0,o=0;o<t.length;o++)a+=g.negToZero(t[o]);var r=[],s=n.group();0===a&&(a=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*g.negToZero(t[l])/a;r.push(c),"polarArea"===this.chartType?(r[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 h,d=0,u=0;u<i.globals.previousPaths.length;u++)d+=g.negToZero(i.globals.previousPaths[u]);for(var p=0;p<i.globals.previousPaths.length;p++)h=this.fullAngle*g.negToZero(i.globals.previousPaths[p])/d,this.prevSectorAngleArr.push(h)}this.donutSize<0&&(this.donutSize=0);var f=i.config.plotOptions.pie.customScale,m=i.globals.gridWidth/2,v=i.globals.gridHeight/2,y=m-i.globals.gridWidth/2*f,x=v-i.globals.gridHeight/2*f;if("donut"===this.chartType){var w=n.drawCircle(this.donutSize);w.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),s.add(w)}var _=this.drawArcs(r,t);
52if(this.sliceLabels.forEach((function(t){_.add(t)})),s.attr({transform:"translate(".concat(y,", ").concat(x,") scale(").concat(f,")")}),s.add(_),this.ret.add(s),this.donutDataLabels.show){var C=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:y,translateY:x});this.ret.add(C)}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 v(this.ctx),a=new b(this.ctx),o=new T(this.ctx),r=a.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:g.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});r.add(u),l=h,c=(s=c)+t[d],h=l+this.prevSectorAngleArr[d];var p=c<s?this.fullAngle+c-s:c-s,f=o.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),m=this.getChangedPath(l,h),y=a.drawPath({d:m,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:f,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(y.attr({index:0,j:d}),n.setSelectionFilter(y,0,d),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;n.dropShadow(y,x,d)}this.addListeners(y,this.donutDataLabels),b.setAttrs(y.node,{"data:angle":p,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var w={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?w=g.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(s+p/2)%this.fullAngle):"donut"===this.chartType&&(w=g.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(s+p/2)%this.fullAngle)),u.add(y);var _=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(_=p/this.fullAngle*i.config.chart.animations.speed)&&(_=1),this.animDur=_+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(y,{size:this.sliceSizes[d],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(y,{size:this.sliceSizes[d],endAngle:c,startAngle:s,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:_}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&y.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var C=w.x,S=w.y,k=100*p/this.fullAngle+"%";if(0!==p&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var A=i.config.dataLabels.formatter;
52void 0!==A&&(k=A(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var E=i.globals.dataLabels.style.colors[d],L=a.group({class:"apexcharts-datalabels"}),D=a.drawText({x:C,y:S,text:k,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:E});if(L.add(D),i.config.dataLabels.dropShadow.enabled){var P=i.config.dataLabels.dropShadow;n.dropShadow(D,P)}D.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(D.node.classList.add("apexcharts-pie-label-delay"),D.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(L)}}}return r}},{key:"addListeners",value:function(t,e){var i=new b(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,a=n,o=e.startAngle,r=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(o=e.prevEndAngle,a=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(n+r>this.fullAngle?e.endAngle=e.endAngle-(n+r):n+r<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(n+r)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(t,o,r,n,a,e)}},{key:"animateArc",value:function(t,e,i,n,a,o){var r,s=this,l=this.w,c=new m(this.ctx),h=o.size;(isNaN(e)||isNaN(a))&&(e=i,a=n,o.dur=0);var d=n,u=i,p=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(r=s.getPiePath({me:s,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:h}),t.attr({d:r})),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){d=p+(n-p)*l,o.animateStartingPos&&(d=a+(n-a)*l,u=e-a+(i-(e-a))*l),r=s.getPiePath({me:s,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",r),t.attr({d:r})})):(r=s.getPiePath({me:s,startAngle:u,angle:n,size:h}),o.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",r),t.attr({d:r,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this,a=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 r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(r,(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:a}),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,a=t.size,o=i,r=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+a*Math.cos(r),h=e.centerY+a*Math.sin(r),d=e.centerX+a*Math.cos(l),u=e.centerY+a*Math.sin(l),p=g.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),f=g.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),m=n>180?1:0,v=["M",c,h,"A",a,a,0,m,1,d,u];return"donut"===e.chartType?[].concat(v,["L",p.x,p.y,"A",e.donutSize,e.donutSize,0,m,0,f.x,f.y,"L",c,h,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(v,["L",e.centerX,e.centerY,"L",c,h]).join(" "):[].concat(v).join(" ")}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new G(this.ctx),n=new b(this.ctx),a=new Ct(this.ctx),o=n.group(),r=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 h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var p=n.drawCircle(h);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.r
52ings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var f=a.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);r.add(f)}o.add(p),h-=d}this.drawSpokes(t),t.add(o),t.add(r)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,n=new b(this.ctx),a=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;a.node.style.opacity=e.opacity;var r,s,l=e.centerX,c=e.centerY;r=void 0===t.name.color?i.globals.colors[0]:t.name.color;var h=t.name.fontSize,d=t.name.fontFamily,u=t.name.fontWeight;s=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var p=t.value.formatter,f="",g="";if(o?(r=t.total.color,h=t.total.fontSize,d=t.total.fontFamily,u=t.total.fontWeight,g=t.total.label,f=t.total.formatter(i)):1===i.globals.series.length&&(f=p(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:r,fontSize:h,fontWeight:u,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),a.add(m)}if(t.value.show){var v=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,y=n.drawText({x:l,y:c+v,text:f,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});y.node.classList.add("apexcharts-datalabel-value"),a.add(y)}return a}},{key:"printInnerLabels",value:function(t,e,i,n){var a,o=this.w;n?a=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&&(a=t.total.color);var r=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!==r&&(r.textContent=e),null!==s&&(s.textContent=i),null!==r&&(r.style.fill=a)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,n=t.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,a,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 b(this.ctx),a=i.config.plotOptions.polarArea.spokes;if(0!==a.strokeWidth){for(var o=[],r=360/i.globals.series.length,s=0;s<i.globals.series.length;s++)o.push(g.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+r*s));o.forEach((function(i,o){var r=n.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(a.connectorColors)?a.connectorColors[o]:a.connectorColors);t.add(r)}))}}},{key:"revertDataLabelsInner",value:function(t,e,i){var n=this,a=this.w,o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),r=!1,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,a=t.printLabel;Array.prototype.forEach.call(s,(function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(r=!0),a&&n.printDataLabelsInner(t,e))}))};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&a.globals.series.length>1)r&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(a));else if(l({makeSliceOut:!1,printLabel:!0}),!r)if(a.globals.selectedDataPoints.length&&a.globals.series.length>1)if(a.globals.selectedDataPoints[0].length>0){var c=a.globals.selectedDataPoints[0],h=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(h,e)}else o&&a.globals.selectedDataPoints.length&&0===a.globals.selectedDataPoints[0].length&&(o.style.opacity=0);else o&&a.globals.series.length>1&&(o.style.opacity=0)}}]),t}(),kt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.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 i=this.w;this.graphics=new b(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight+1.5*i.globals.goldenPadding:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.coreUtils=new y(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return o(t,[{key:"draw",value:function(t){var i=this,n=this.w,a=new T(this.ctx),o=[],r=new D(this.ctx);t.length&&(this.dataPointsLen=t[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var s=n.globals.gridWidth/2,l=n.globals.gridHeight/2,c=s+n.config.plotOptions.radar.offsetX,h=l+n.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(h||0,")")}),u=[],p=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,s){var l=t.length===n.globals.dataPoints,c=i.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:g.escapeString(n.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});i.dataRadiusOfPercent[s]=[],i.dataRadius[s]=[],i.angleArr[s]=[],t.forEach((function(t,e){var n=Math.abs(i.maxValue-i.minValue);t+=Math.abs(i.minValue),i.isLog&&(t=i.coreUtils.getLogVal(t,0)),i.dataRadiusOfPercent[s][e]=t/n,i.dataRadius[s][e]=i.dataRadiusOfPercent[s][e]*i.size,i.angleArr[s][e]=e*i.disAngle})),u=i.getDataPointsPos(i.dataRadius[s],i.angleArr[s]);var h=i.createPaths(u,{x:0,y:0});p=i.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":s}),n.globals.delayedElements.push({el:p.node,index:s});var d={i:s,realIndex:s,animationDelay:s,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[s],strokeLineCap:n.config.stroke.lineCap},m=null;n.globals.previousPaths.length>0&&(m=i.getPreviousPath(s));for(var b=0;b<h.linePathsTo.length;b++){var y=i.graphics.renderPaths(e(e({},d),{},{pathFrom:null===m?h.linePathsFrom[b]:m,pathTo:h.linePathsTo[b],strokeWidth:Array.isArray(i.strokeWidth)?i.strokeWidth[s]:i.strokeWidth,fill:"none",drawShadow:!1}));c.add(y);var x=a.fillPath({seriesNumber:s}),w=i.graphics.renderPaths(e(e({},d),{},{pathFrom:null===m?h.areaPathsFrom[b]:m,pathTo:h.areaPathsTo[b],strokeWidth:0,fill:x,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var _=new v(i.ctx),C=n.config.chart.dropShadow;_.dropShadow(w,Object.assign({},C,{noUserSpaceOnUse:!0}),s)}c.add(w)}t.forEach((function(t,a){var o=new E(i.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:a}),l=i.graphics.drawMarker(u[a].x,u[a].y,o);l.attr("rel",a),l.attr("j",a),l.attr("index",s),l.node.setAttribute("default-marker-size",o.pSize);var h=i.graphics.group({class:"apexcharts-series-markers"});h&&h.add(l),p.add(h),c.add(p);var d=n.config.dataLabels;if(d.enabled){var g=d.formatter(n.globals.series[s][a],{seriesIndex:s,dataPointIndex:a,w:n});r.plotDataLabelsText({x:u[a].x,y:u[a].y,text:g,textAnchor:"middle",i:s,j:s,parent:f,offsetCorrection:!1,dataLabelsConfig:e({},d)})}c.add(f)})),o.push(c)})),this.drawPolygons({parent:d}),n.config.xaxis.labels.show){var m=this.drawXAxisTexts();d.add(m)}return o.forEach((function(t){d.add(t)})),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,n=t.parent,a=new Ct(this.ctx),o=i.globals.yAxisScale[0].result.reverse(),r=o.length,s=[],l=this.size/(r-1),c=0;c<r;c++)s[c]=l*c;s.reverse();var h=[],d=[];
52s.forEach((function(t,i){var n=g.getPolygonPos(t,e.dataPointsLen),a="";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);d.push(o)}0===n&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),a+=t.x+","+t.y+" "})),h.push(a)})),h.forEach((function(t,a){var o=e.polygons.strokeColors,r=e.polygons.strokeWidth,s=e.graphics.drawPolygon(t,Array.isArray(o)?o[a]:o,Array.isArray(r)?r[a]:r,i.globals.radarPolygons.fill.colors[a]);n.add(s)})),d.forEach((function(t){n.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var n=a.drawYAxisTexts(t.x,t.y,i,o[i]);e.yaxisLabels.add(n)}))}},{key:"drawXAxisTexts",value:function(){var t=this,i=this.w,n=i.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),o=g.getPolygonPos(this.size,this.dataPointsLen);return i.globals.labels.forEach((function(r,s){var l=i.config.xaxis.labels.formatter,c=new D(t.ctx);if(o[s]){var h=t.getTextPos(o[s],t.size),d=l(r,{seriesIndex:-1,dataPointIndex:s,w:i});c.plotDataLabelsText({x:h.newX,y:h.newY,text:d,textAnchor:h.textAnchor,i:s,j:s,parent:a,color:Array.isArray(n.style.colors)&&n.style.colors[s]?n.style.colors[s]:"#a8a8a8",dataLabelsConfig:e({textAnchor:h.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1})}})),a}},{key:"createPaths",value:function(t,e){var i=this,n=[],a=[],o=[],r=[];if(t.length){a=[this.graphics.move(e.x,e.y)],r=[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:a,linePathsTo:n,areaPathsFrom:r,areaPathsTo:o}}},{key:"getTextPos",value:function(t,e){var i="middle",n=t.x,a=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?a-=10:t.y>0&&(a+=10)),{textAnchor:i,newX:n,newY:a}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,n=0;n<e.globals.previousPaths.length;n++){var a=e.globals.previousPaths[n];a.paths.length>0&&parseInt(a.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=[],a=0;a<i;a++){var o={};o.x=t[a]*Math.sin(e[a]),o.y=-t[a]*Math.cos(e[a]),n.push(o)}return n}}]),t}(),At=function(t){s(i,t);var e=d(i);function i(t){var a;n(this,i),(a=e.call(this,t)).ctx=t,a.w=t.w,a.animBeginArr=[0],a.animDur=0;var o=a.w;return a.startAngle=o.config.plotOptions.radialBar.startAngle,a.endAngle=o.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle),a.trackStartAngle=o.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=o.config.plotOptions.radialBar.track.endAngle,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),360===a.endAngle&&(a.endAngle=359.99),a.margin=parseInt(o.config.plotOptions.radialBar.track.margin,10),a}return o(i,[{key:"draw",value:function(t){var e=this.w,i=new b(this.ctx),n=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return n;var a=i.group(),o=this.defaultSize/2,r=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:r,centerY:o,colorArr:l,series:t});a.add(c)}var h=this.drawArcs({size:s,centerX:r,centerY:o,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=s-s*u,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*u}return a.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),n.add(a),n}},{key:"drawTracks",value:function(t){var e=this.w,i=new b(this.ctx),n=i.group({class:"apexcharts-tracks"}),a=new v(this.ctx),o=new T(this.ctx),r=this.getStrokeWidth(t);t.size=t.size-r/2;
52for(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-r-this.margin;var c=e.config.plotOptions.radialBar.track,h=o.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:h,strokeWidth:r*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var f=c.dropShadow;a.dropShadow(p,f)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,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 b(this.ctx),n=new T(this.ctx),a=new v(this.ctx),o=i.group(),r=this.getStrokeWidth(t);t.size=t.size-r/2;var s=e.config.plotOptions.radialBar.hollow.background,l=t.size-r*t.series.length-this.margin*t.series.length-r*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 h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:s||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(u=0);var p=null;this.radialDataLabels.show&&(p=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:u})),"back"===e.config.plotOptions.radialBar.hollow.position&&(o.add(h),p&&o.add(p));var f=!1;e.config.plotOptions.radialBar.inverseOrder&&(f=!0);for(var m=f?t.series.length-1:0;f?m>=0:m<t.series.length;f?m--:m++){var y=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:g.escapeString(e.globals.seriesNames[m])});o.add(y),y.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(y,m),t.size=t.size-r-this.margin;var x=n.fillPath({seriesNumber:m,size:t.size,value:t.series[m]}),w=this.startAngle,_=void 0,C=g.negToZero(t.series[m]>100?100:t.series[m])/100,S=Math.round(this.totalAngle*C)+this.startAngle,k=void 0;e.globals.dataChanged&&(_=this.startAngle,k=Math.round(this.totalAngle*g.negToZero(e.globals.previousPaths[m])/100)+_),Math.abs(S)+Math.abs(w)>=360&&(S-=.01),Math.abs(k)+Math.abs(_)>=360&&(k-=.01);var A=S-w,E=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[m]:e.config.stroke.dashArray,L=i.drawPath({d:"",stroke:x,strokeWidth:r,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:E});if(b.setAttrs(L.node,{"data:angle":A,"data:value":t.series[m]}),e.config.chart.dropShadow.enabled){var D=e.config.chart.dropShadow;a.dropShadow(L,D,m)}a.setSelectionFilter(L,0,m),this.addListeners(L,this.radialDataLabels),y.add(L),L.attr({index:0,j:m});var P=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(P=e.config.chart.animations.speed),e.globals.dataChanged&&(P=e.config.chart.animations.dynamicAnimation.speed),this.animDur=P/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:w,prevEndAngle:k,prevStartAngle:_,size:t.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:P,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:o,elHollow:h,dataLabels:p}}},{key:"drawHollow",value:function(t){var e=new b(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 a=this.w,o=new T(this.ctx),r=g.randomId(),s=a.config.plotOptions.radialBar.hollow.image;if(a.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:i,height:i,image:s,patternID:"pattern".concat(a.globals.cuid).concat(r)}),n="url(#pattern".concat(a.globals.cuid).concat(r,")");else{var l=a.config.plotOptions.radialBar.hollow.imageWidth,c=a.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=a.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-e.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(h)}else{var d=a.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-l/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));e.add(d)}}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}}]),i}(St),Tt=function(){function t(e){n(this,t),this.w=e.w,this.lineCtx=e}return o(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 y(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,a=t.y,o=t.i,r=t.j,s=t.prevY,l=this.w,c=[],h=[];if(0===r){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),h.push(g.isNumber(e[o][0])?s+l.config.markers.offsetY:null),c.push(n+l.config.markers.offsetX),h.push(g.isNumber(e[o][r+1])?a+l.config.markers.offsetY:null)}else c.push(n+l.config.markers.offsetX),h.push(g.isNumber(e[o][r+1])?a+l.config.markers.offsetY:null);return{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,n=t.realIndex,a=this.w,o=0;o<a.globals.previousPaths.length;o++){var r=a.globals.previousPaths[o];("line"===r.type||"area"===r.type)&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(n,10)&&("line"===r.type?(this.lineCtx.appendPathFrom=!1,e=a.globals.previousPaths[o].paths[0].d):"area"===r.type&&(this.lineCtx.appendPathFrom=!1,i=a.globals.previousPaths[o].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[o].paths[1]&&(e=a.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,a=t.lineYPosition,o=this.w;if(void 0!==i[e][0])n=(a=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 r=e-1;r>=0;r--)if(null!==i[r][0]&&void 0!==i[r][0]){n=a=this.lineCtx.prevSeriesY[r][0];break}return{prevY:n,lineYPosition:a}}}]),t}(),Et=function(){function t(e,i,a){n(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new L(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Tt(this),this.markers=new E(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}
52return o(t,[{key:"draw",value:function(t,e,i){var n=this.w,a=new b(this.ctx),o=n.globals.comboCharts?e:n.config.chart.type,r=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),s=new y(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 h=n.globals.comboCharts?i[c]:c;this._initSerieVariables(t,c,h);var d=[],u=[],p=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(p=(n.globals.seriesX[h][0]-n.globals.minX)/this.xRatio),u.push(p);var f,g=p,m=g,v=this.zeroY;v=this.lineHelpers.determineFirstPrevY({i:c,series:t,prevY:v,lineYPosition:0}).prevY,d.push(v),f=v;var x=this._calculatePathsFrom({series:t,i:c,realIndex:h,prevX:m,prevY:v}),w=this._iterateOverDataPoints({series:t,realIndex:h,i:c,x:p,y:1,pX:g,pY:f,pathsFrom:x,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:u,yArrj:d});this._handlePaths({type:o,realIndex:h,i:c,paths:w}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(n.config.chart.stacked)for(var _=l.length;_>0;_--)r.add(l[_-1]);else for(var C=0;C<l.length;C++)r.add(l[C]);return r}},{key:"_initSerieVariables",value:function(t,e,i){var n=this.w,a=new b(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=a.group({class:"apexcharts-series",seriesName:g.escapeString(n.globals.seriesNames[i])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=a.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,a,o=t.series,r=t.i,s=t.realIndex,l=t.prevX,c=t.prevY,h=this.w,d=new b(this.ctx);if(null===o[r][0]){for(var u=0;u<o[r].length;u++)if(null!==o[r][u]){l=this.xDivision*u,c=this.zeroY-o[r][u]/this.yRatio[this.yaxisIndex],e=d.move(l,c),i=d.move(l,this.areaBottomY);break}}else e=d.move(l,c),i=d.move(l,this.areaBottomY)+d.line(l,c);if(n=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),a=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),h.globals.previousPaths.length>0){var p=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:a,realIndex:s});n=p.pathFromLine,a=p.pathFromArea}return{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:n,pathFromArea:a}}},{key:"_handlePaths",value:function(t){var i=t.type,n=t.realIndex,a=t.i,o=t.paths,r=this.w,s=new b(this.ctx),l=new T(this.ctx);this.prevSeriesY.push(o.yArrj),r.globals.seriesXvalues[n]=o.xArrj,r.globals.seriesYvalues[n]=o.yArrj;var c=r.config.forecastDataPoints;if(c.count>0){var h=r.globals.seriesXvalues[n][r.globals.seriesXvalues[n].length-c.count-1],d=s.drawRect(h,0,r.globals.gridWidth,r.globals.gridHeight,0);r.globals.dom.elForecastMask.appendChild(d.node);var u=s.drawRect(0,0,h,r.globals.gridHeight,0);r.globals.dom.elNonForecastMask.appendChild(u.node)}this.pointsChart||r.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var p={i:a,realIndex:n,animationDelay:a,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(i)};if("area"===i)for(var f=l.fillPath({seriesNumber:n}),g=0;g<o.areaPaths.length;g++){var m=s.renderPaths(e(e({},p),{},{pathFrom:o.pathFromArea,pathTo:o.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(m)}if(r.config.stroke.show&&!this.pointsChart){var v=null;if("line"===i)v=l.fillPath({seriesNumber:n,i:a});else if("solid"===r.config.stroke.fill.type)v=r.globals.stroke.colors[n];else{var y=r.config.fill;r.config.fill=r.config.stroke.fill,v=l.fillPath({seriesNumber:n,i:a}),r.config.fill=y}for(var x=0;x<o.linePaths.length;x++){var w=e(e({},p),{},{pathFrom:o.pathFromLine,pathTo:o.linePaths[x],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:r.config.stroke.lineCap,fill:"none"}),_=s.renderPaths(w);if(this.elSeries.add(_),c.count>0){var C=s.renderPaths(w);C.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&C.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(C),C.attr("clip-path","url(#forecastMask".concat(r.globals.cuid,")")),_.attr("clip-path","url(#nonForecastMask".concat(r.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){for(var e=t.series,i=t.realIndex,n=t.i,a=t.x,o=t.y,r=t.pX,s=t.pY,l=t.pathsFrom,c=t.linePaths,h=t.areaPaths,d=t.seriesIndex,u=t.lineYPosition,p=t.xArrj,f=t.yArrj,m=this.w,v=new b(this.ctx),y=this.yRatio,x=l.prevY,
52w=l.linePath,_=l.areaPath,C=l.pathFromLine,S=l.pathFromArea,k=g.isNumber(m.globals.minYArr[i])?m.globals.minYArr[i]:m.globals.minY,A=m.globals.dataPoints>1?m.globals.dataPoints-1:m.globals.dataPoints,T=0;T<A;T++){var E=void 0===e[n][T+1]||null===e[n][T+1];if(m.globals.isXNumeric){var L=m.globals.seriesX[i][T+1];void 0===m.globals.seriesX[i][T+1]&&(L=m.globals.seriesX[i][A-1]),a=(L-m.globals.minX)/this.xRatio}else a+=this.xDivision;u=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?u-k/y[this.yaxisIndex]+2*(this.isReversed?k/y[this.yaxisIndex]:0):u-e[n][T+1]/y[this.yaxisIndex]+2*(this.isReversed?e[n][T+1]/y[this.yaxisIndex]:0),p.push(a),f.push(o);var D=this.lineHelpers.calculatePoints({series:e,x:a,y:o,realIndex:i,i:n,j:T,prevY:x}),P=this._createPaths({series:e,i:n,realIndex:i,j:T,x:a,y:o,pX:r,pY:s,linePath:w,areaPath:_,linePaths:c,areaPaths:h,seriesIndex:d});h=P.areaPaths,c=P.linePaths,r=P.pX,s=P.pY,_=P.areaPath,w=P.linePath,this.appendPathFrom&&(C+=v.line(a,this.zeroY),S+=v.line(a,this.zeroY)),this.handleNullDataPoints(e,D,n,T,i),this._handleMarkersAndLabels({pointsPos:D,series:e,x:a,y:o,prevY:x,i:n,j:T,realIndex:i})}return{yArrj:f,xArrj:p,pathFromArea:S,areaPaths:h,pathFromLine:C,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.pointsPos;t.series,t.x,t.y,t.prevY;var i=t.i,n=t.j,a=t.realIndex,o=this.w,r=new D(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:a,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,a,n+1);null!==s&&this.elPointsMain.add(s)}var l=r.drawDataLabel(e,a,n+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(t){var e=t.series,i=t.i,n=t.realIndex,a=t.j,o=t.x,r=t.y,s=t.pX,l=t.pY,c=t.linePath,h=t.areaPath,d=t.linePaths,u=t.areaPaths,p=t.seriesIndex,f=this.w,g=new b(this.ctx),m=f.config.stroke.curve,v=this.areaBottomY;if(Array.isArray(f.config.stroke.curve)&&(m=Array.isArray(p)?f.config.stroke.curve[p[i]]:f.config.stroke.curve[i]),"smooth"===m){var y=.35*(o-s);f.globals.hasNullValues?(null!==e[i][a]&&(null!==e[i][a+1]?(c=g.move(s,l)+g.curve(s+y,l,o-y,r,o+1,r),h=g.move(s+1,l)+g.curve(s+y,l,o-y,r,o+1,r)+g.line(o,v)+g.line(s,v)+"z"):(c=g.move(s,l),h=g.move(s,l)+"z")),d.push(c),u.push(h)):(c+=g.curve(s+y,l,o-y,r,o,r),h+=g.curve(s+y,l,o-y,r,o,r)),s=o,l=r,a===e[i].length-2&&(h=h+g.curve(s,l,o,r,o,v)+g.move(o,r)+"z",f.globals.hasNullValues||(d.push(c),u.push(h)))}else{if(null===e[i][a+1]){c+=g.move(o,r);var x=f.globals.isXNumeric?(f.globals.seriesX[n][a]-f.globals.minX)/this.xRatio:o-this.xDivision;h=h+g.line(x,v)+g.move(o,r)+"z"}null===e[i][a]&&(c+=g.move(o,r),h+=g.move(o,v)),"stepline"===m?(c=c+g.line(o,null,"H")+g.line(null,r,"V"),h=h+g.line(o,null,"H")+g.line(null,r,"V")):"straight"===m&&(c+=g.line(o,r),h+=g.line(o,r)),a===e[i].length-2&&(h=h+g.line(o,v)+g.move(o,r)+"z",d.push(c),u.push(h))}return{linePaths:d,areaPaths:u,pX:s,pY:l,linePath:c,areaPath:h}}},{key:"handleNullDataPoints",value:function(t,e,i,n,a){var o=this.w;if(null===t[i][n]&&o.config.markers.showNullDataPoints||1===t[i].length){var r=this.markers.plotChartMarkers(e,a,n+1,this.strokeWidth-o.config.markers.strokeWidth/2,!0);null!==r&&this.elPointsMain.add(r)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,n,a){this.xoffset=e,this.yoffset=i,this.height=a,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],n=this.xoffset,a=this.yoffset,r=o(t)/this.height,s=o(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([n,a,n+r,a+t[e]/r]),a+=t[e]/r;else for(e=0;e<t.length;e++)i.push([n,a,n+t[e]/s,a+s]),n+=t[e]/s;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var n=e/this.height,a=this.width-n;i=new t(this.xoffset+n,this.yoffset,a,this.height)}else{var o=e/this.width,r=this.height-o;i=new t(this.xoffset,this.yoffset+o,this.width,r)}return i}}function e(e,n,a,r,s){return r=void 0===r?0:r,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=[],a=e/o(t);for(i=0;i<t.length;i++)n[i]=t[i]*a;return n}(e,n*a),[],new t(r,s,n,a),[]))}function i(t,e,a,r){var s,l,c;
52if(0!==t.length)return s=a.shortestEdge(),function(t,e,i){var a;return 0===t.length||((a=t.slice()).push(e),n(t,i)>=n(a,i))}(e,l=t[0],s)?(e.push(l),i(t.slice(1),e,a,r)):(c=a.cutArea(o(e),r),r.push(a.getCoordinates(e)),i(t,[],c,r)),r;r.push(a.getCoordinates(e))}function n(t,e){var i=Math.min.apply(Math,t),n=Math.max.apply(Math,t),a=o(t);return Math.max(Math.pow(e,2)*n/Math.pow(a,2),Math.pow(a,2)/(Math.pow(e,2)*i))}function a(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 r(t){var e,i=0;if(a(t[0]))for(e=0;e<t.length;e++)i+=r(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,h,d=[],u=[];if(a(i[0])){for(h=0;h<i.length;h++)d[h]=r(i[h]);for(c=e(d,n,o,s,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,n,o,s,l);return u}}();var Lt,Dt,Pt=function(){function t(e,i){n(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new wt(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return o(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new b(this.ctx),a=new T(this.ctx),o=n.group({class:"apexcharts-treemap"});if(i.globals.noData)return o;var r=[];return t.forEach((function(t){var e=t.map((function(t){return Math.abs(t)}));r.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(r,i.globals.gridWidth,i.globals.gridHeight).forEach((function(r,s){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:g.escapeString(i.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new v(e.ctx).dropShadow(o,c,s)}var h=n.group({class:"apexcharts-data-labels"});r.forEach((function(o,r){var c=o[0],h=o[1],d=o[2],u=o[3],p=n.drawRect(c,h,d-c,u-h,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?g:i.globals.stroke.colors[s]);p.attr({cx:c,cy:h,index:s,i:s,j:r,width:d-c,height:u-h});var f=e.helpers.getShadeColor(i.config.chart.type,s,r,e.negRange),g=f.color;void 0!==i.config.series[s].data[r]&&i.config.series[s].data[r].fillColor&&(g=i.config.series[s].data[r].fillColor);var m=a.fillPath({color:g,seriesNumber:s,dataPointIndex:r});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:m}),e.helpers.addListeners(p);var v={x:c+(d-c)/2,y:h+(u-h)/2,width:0,height:0},b={x:c,y:h,width:d-c,height:u-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var y=1;i.globals.resized||(y=i.config.chart.animations.speed),e.animateTreemap(p,v,b,y)}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][r]&&i.globals.previousPaths[s][r].rect&&(v=i.globals.previousPaths[s][r].rect),e.animateTreemap(p,v,b,x))}var w=e.getFontSize(o),_=i.config.dataLabels.formatter(e.labels[s][r],{value:i.globals.series[s][r],seriesIndex:s,dataPointIndex:r,w:i}),C=e.helpers.calculateDataLabels({text:_,x:(c+d)/2,y:(h+u)/2+e.strokeWidth/2+w/3,i:s,j:r,colorProps:f,fontSize:w,series:t});i.config.dataLabels.enabled&&C&&e.rotateToFitLabel(C,_,c,h,d,u),l.add(p),null!==C&&l.add(C)})),l.add(h),o.add(l)})),o}},{key:"getFontSize",value:function(t){var e,i,n=this.w,a=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/a,parseInt(n.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,n,a,o){var r=new b(this.ctx),s=r.getTextRects(e);if(s.width+5>a-i&&s.width<=o-n){var l=r.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}}
52,{key:"animateTreemap",value:function(t,e,i,n){var a=new m(this.ctx);a.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(){a.animationCompleted(t)}))}}]),t}(),Mt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return o(t,[{key:"calculateTimeScaleTicks",value:function(t,i){var n=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var o=new z(this.ctx),r=(i-t)/864e5;this.determineInterval(r),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,r<.00011574074074074075?a.globals.disableZoomIn=!0:r>5e4&&(a.globals.disableZoomOut=!0);var s=o.getTimeUnitsfromTimestamp(t,i,this.utc),l=a.globals.gridWidth/r,c=l/24,h=c/60,d=h/60,u=Math.floor(24*r),p=Math.floor(1440*r),f=Math.floor(86400*r),g=Math.floor(r),m=Math.floor(r/30),v=Math.floor(r/365),b={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},y={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:h,secondsWidthOnXAxis:d,numberOfSeconds:f,numberOfMinutes:p,numberOfHours:u,numberOfDays:g,numberOfMonths:m,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes_fives":case"minutes":this.generateMinuteScale(y);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(y)}var x=this.timeScaleArray.map((function(t){var i={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?e(e({},i),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?e(e({},i),{},{value:t.value}):"minute"===t.unit?e(e({},i),{},{value:t.value,minute:t.value}):"second"===t.unit?e(e({},i),{},{value:t.value,minute:t.minute,second:t.second}):t}));return x.filter((function(t){var e=1,i=Math.ceil(a.globals.gridWidth/120),o=t.value;void 0!==a.config.xaxis.tickAmount&&(i=a.config.xaxis.tickAmount),x.length>i&&(e=Math.floor(x.length/i));var r=!1,s=!1;switch(n.tickInterval){case"years":"year"===t.unit&&(r=!0);break;case"half_year":e=7,"year"===t.unit&&(r=!0);break;case"months":e=1,"year"===t.unit&&(r=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(r=!0),30===o&&(s=!0);break;case"months_days":e=10,"month"===t.unit&&(r=!0),30===o&&(s=!0);break;case"week_days":e=8,"month"===t.unit&&(r=!0);break;case"days":e=1,"month"===t.unit&&(r=!0);break;case"hours":"day"===t.unit&&(r=!0);break;case"minutes_fives":case"seconds_fives":o%5!=0&&(s=!0);break;case"seconds_tens":o%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}else if((o%e==0||r)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,n=this.formatDates(t),a=this.removeOverlappingTS(n);i.globals.timescaleLabels=a.slice(),new st(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,a=t.daysWidthOnXAxis,o=t.numberOfYears,r=e.minYear,s=0,l=new z(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);s=(l.determineDaysOfYear(e.minYear)-h+1)*a,r=e.minYear+1,this.timeScaleArray.push({position:s,value:r,unit:c,year:r,month:g.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:s,value:r,unit:c,year:n,month:g.monthMod(i+1)});for(var d=r,u=s,p=0;p<o;p++)d++,u=l.determineDaysOfYear(d-1)*a+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,n=t.currentMonth,a=t.currentYear,o=t.daysWidthOnXAxis,r=t.numberOfMonths,s=n,l=0,c=new z(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(n+1,e.minYear)-i+1)*o,s=g.monthMod(n+1);var u=a+d,p=g.monthMod(s),f=s;0===s&&(h="year",f=u,p=1,u+=d+=1),this.timeScaleArray.push({position:l,value:f,unit:h,year:u,month:p})}else this.timeScaleArray.push({position:l,value:s,unit:h,year:a,month:g.monthMod(n)});for(var m=s+1,v=l,b=0,y=1;b<r;b++,y++){0===(m=g.monthMod(m))?(h="year",d+=1):h="month";var x=this._getYear(a,m,d);v=c.determineDaysOfMonths(m,x)*o+v;var w=0===m?x:m;this.timeScaleArray.push({position:v,value:w,unit:h,year:x,month:0===m?1:m}),m++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,a=t.hoursWidthOnXAxis,o=t.numberOfDays,r=new z(this.ctx),s="day",l=e.minDate+1,c=l,h=function(t,e,
52i){return t>r.determineDaysOfMonths(e+1,i)?(c=1,s="month",u=e+=1,e):e},d=(24-e.minHour)*a,u=l,p=h(c,i,n);0===e.minHour&&1===e.minDate?(d=0,u=g.monthMod(e.minMonth),s="month",c=e.minDate,o++):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,u=l,p=h(c=l,i,n)),this.timeScaleArray.push({position:d,value:u,unit:s,year:this._getYear(n,p,0),month:g.monthMod(p),day:c});for(var f=d,m=0;m<o;m++){s="day",p=h(c+=1,p,this._getYear(n,p,0));var v=this._getYear(n,p,0);f=24*a+f;var b=1===c?g.monthMod(p):c;this.timeScaleArray.push({position:f,value:b,unit:s,year:v,month:g.monthMod(p),day:b})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,n=t.currentMonth,a=t.currentYear,o=t.minutesWidthOnXAxis,r=t.numberOfHours,s=new z(this.ctx),l="hour",c=function(t,e){return t>s.determineDaysOfMonths(e+1,a)&&(m=1,e+=1),{month:e,date:m}},h=function(t,e){return t>s.determineDaysOfMonths(e+1,a)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*o,p=e.minHour+1,f=p+1;60===d&&(u=0,f=(p=e.minHour)+1);var m=i,v=h(m,n);this.timeScaleArray.push({position:u,value:p,unit:l,day:m,hour:f,year:a,month:g.monthMod(v)});for(var b=u,y=0;y<r;y++){l="hour",f>=24&&(f=0,l="day",v=c(m+=1,v).month,v=h(m,v));var x=this._getYear(a,v,0);b=0===f&&0===y?d*o:60*o+b;var w=0===f?m:f;this.timeScaleArray.push({position:b,value:w,unit:l,hour:f,day:m,year:x,month:g.monthMod(v)}),f++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,n=t.currentMinute,a=t.currentHour,o=t.currentDate,r=t.currentMonth,s=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,h=t.numberOfMinutes,d=n+1,u=o,p=r,f=s,m=a,v=(60-i-e/1e3)*c,b=0;b<h;b++)d>=60&&(d=0,24===(m+=1)&&(m=0)),this.timeScaleArray.push({position:v,value:d,unit:"minute",hour:m,minute:d,day:u,year:this._getYear(f,p,0),month:g.monthMod(p)}),v+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,n=t.currentMinute,a=t.currentHour,o=t.currentDate,r=t.currentMonth,s=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,h=i+1,d=n,u=o,p=r,f=s,m=a,v=(1e3-e)/1e3*l,b=0;b<c;b++)h>=60&&(h=0,++d>=60&&(d=0,24==++m&&(m=0))),this.timeScaleArray.push({position:v,value:h,unit:"second",hour:m,minute:d,second:h,day:u,year:this._getYear(f,p,0),month:g.monthMod(p)}),v+=l,h++}},{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(),a=new z(e.ctx),o=e.createRawDateString(t,n),r=a.getDate(a.parseDate(o));if(e.utc||(r=a.getDate(a.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=a.formatDate(r,s)}else n=a.formatDate(r,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 b(this.ctx),a=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(a=!0,e=n.getTextRects(t[0].value).width);var o=0,r=t.map((function(r,s){if(s>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=a?e:n.getTextRects(t[o].value).width,c=t[o].position;return r.position>c+l+10?(o=s,r):null}return r}));return r.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),It=function(){function t(e,i){n(this,t),this.ctx=i,this.w=i.w,this.el=e}return o(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||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),b.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"}
52),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,a=i.globals,o={series:[],i:[]},r={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]};a.series.map((function(e,u){var p=0;void 0!==t[u].type?("column"===t[u].type||"bar"===t[u].type?(a.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(u),p++,i.globals.columnSeries=c.series):"area"===t[u].type?(r.series.push(e),r.i.push(u),p++):"line"===t[u].type?(o.series.push(e),o.i.push(u),p++):"scatter"===t[u].type?(s.series.push(e),s.i.push(u)):"bubble"===t[u].type?(l.series.push(e),l.i.push(u),p++):"candlestick"===t[u].type?(h.series.push(e),h.i.push(u),p++):"boxPlot"===t[u].type?(d.series.push(e),d.i.push(u),p++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),p>1&&(a.comboCharts=!0)):(o.series.push(e),o.i.push(u))}));var u=new Et(this.ctx,e),p=new xt(this.ctx,e);this.ctx.pie=new St(this.ctx);var f=new At(this.ctx);this.ctx.rangeBar=new N(this.ctx,e);var g=new kt(this.ctx),m=[];
52if(a.comboCharts){if(r.series.length>0&&m.push(u.draw(r.series,"area",r.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 O(this.ctx,e),m.push(this.ctx.bar.draw(c.series,c.i));if(o.series.length>0&&m.push(u.draw(o.series,"line",o.i)),h.series.length>0&&m.push(p.draw(h.series,h.i)),d.series.length>0&&m.push(p.draw(d.series,d.i)),s.series.length>0){var b=new Et(this.ctx,e,!0);m.push(b.draw(s.series,"scatter",s.i))}if(l.series.length>0){var y=new Et(this.ctx,e,!0);m.push(y.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":m=u.draw(a.series,"line");break;case"area":m=u.draw(a.series,"area");break;case"bar":n.chart.stacked?m=new yt(this.ctx,e).draw(a.series):(this.ctx.bar=new O(this.ctx,e),m=this.ctx.bar.draw(a.series));break;case"candlestick":case"boxPlot":m=new xt(this.ctx,e).draw(a.series);break;case"rangeBar":m=this.ctx.rangeBar.draw(a.series);break;case"heatmap":m=new _t(this.ctx,e).draw(a.series);break;case"treemap":m=new Pt(this.ctx,e).draw(a.series);break;case"pie":case"donut":case"polarArea":m=this.ctx.pie.draw(a.series);break;case"radialBar":m=f.draw(a.series);break;case"radar":m=g.draw(a.series);break;default:m=u.draw(a.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=g.getDimensions(this.el),n=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?g.isNumber(i[0])&&(0===i[0].width&&(i=g.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 a=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===a){var o=g.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),b.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==a){var r=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+r+"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+")"};b.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 ct(this.ctx).legendHelpers.getLegendBBox().clwh+10);var a=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*t.globals.radialSize;if(a&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var r=g.getBoundingClientRect(a);o=r.bottom;var s=r.bottom-r.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),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",b.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new q(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new H,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 Mt(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 y(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,i=this.w;if(i.config.chart.brush.enabled&&"function"!=typeof i.config.chart.events.selection){var n=i.config.chart.brush.targets||[i.config.chart.brush.target];
52n.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)})})),i.config.chart.events.selection=function(t,a){n.forEach((function(t){var n=ApexCharts.getChartByID(t),o=g.clone(i.config.yaxis);if(i.config.chart.brush.autoScaleYaxis&&1===n.w.globals.series.length){var r=new G(n);o=r.autoScaleY(n,o,a)}var s=n.w.config.yaxis.reduce((function(t,i,a){return[].concat(u(t),[e(e({},n.w.config.yaxis[a]),{},{min:o[0].min,max:o[0].max})])}),[]);n.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max},yaxis:s},!1,!1,!1,!1)}))}}}}]),t}(),Ot=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(t,[{key:"_updateOptions",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(s){var l=[e.ctx];o&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach((function(o,c){var h=o.w;if(h.globals.shouldAnimate=a,n||(h.globals.resized=!0,h.globals.dataChanged=!0,a&&o.series.getPreviousPaths()),t&&"object"===i(t)&&(o.config=new F(t),t=y.extendArrayProps(o.config,t,h),o.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,h.config=g.extend(h.config,t),r&&(h.globals.lastXAxis=t.xaxis?g.clone(t.xaxis):[],h.globals.lastYAxis=t.yaxis?g.clone(t.yaxis):[],h.globals.initialConfig=g.extend({},h.config),h.globals.initialSeries=g.clone(h.config.series),t.series))){for(var d=0;d<h.globals.collapsedSeriesIndices.length;d++){var u=h.config.series[h.globals.collapsedSeriesIndices[d]];h.globals.collapsedSeries[d].data=h.globals.axisCharts?u.data.slice():u}for(var p=0;p<h.globals.ancillaryCollapsedSeriesIndices.length;p++){var f=h.config.series[h.globals.ancillaryCollapsedSeriesIndices[p]];h.globals.ancillaryCollapsedSeries[p].data=h.globals.axisCharts?f.data.slice():f}o.series.emptyCollapsedSeries(h.config.series)}return o.update(t).then((function(){c===l.length-1&&s(o)}))}))}))}},{key:"_updateSeries",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(a){var o,r=i.w;return r.globals.shouldAnimate=e,r.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(o=t.map((function(t,e){return i._extendSeries(t,e)}))).length&&(o=[{data:[]}]),r.config.series=o):r.config.series=t.slice(),n&&(r.globals.initialSeries=g.clone(r.config.series)),i.ctx.update().then((function(){a(i.ctx)}))}))}},{key:"_extendSeries",value:function(t,i){var n=this.w,a=n.config.series[i];return e(e({},n.config.series[i]),{},{name:t.name?t.name:a&&a.name,color:t.color?t.color:a&&a.color,type:t.type?t.type:a&&a.type,data:t.data?t.data:a&&a.data})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null,a=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(a," path[j='").concat(e,"'], ").concat(a," circle[j='").concat(e,"'], ").concat(a," rect[j='").concat(e,"']")).members[0]:void 0===e&&(n=i.globals.dom.Paper.select("".concat(a," 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 b(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 R(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,a=i.globals.lastYAxis;t&&t.xaxis&&(n=t.xaxis),t&&t.yaxis&&(a=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!==a[n]?function(t){void 0!==a[t]&&(i.config.yaxis[t].min=a[t].min,i.config.yaxis[t].max=a[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)}))}}]),t}();Lt="undefined"!=typeof window?window:void 0,Dt=function(t,e){var n=(void 0!==this?this:t).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.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(t){return"Svgjs"+d(t)+n.did++},n.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},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 a in e)t[i].prototype[a]=e[a];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(e){return e?e.instance?e.instance:((i="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new n.Nested:new n.Doc:"linearGradient"==e.nodeName?new n.Gradient("linear"):"radialGradient"==e.nodeName?new n.Gradient("radial"):n[d(e.nodeName)]?new(n[d(e.nodeName)]):new n.Element(e)).type=e.nodeName,i.node=e,e.instance=i,i instanceof n.Doc&&i.namespace().defs(),i.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),i):null;var i},n.prepare=function(){var t=e.getElementsByTagName("body")[0],i=(t?new n.Doc(t):n.adopt(e.documentElement).nested()).size(2,0);n.parser={body:t||e.documentElement,draw:i.style("opacity:0;position:absolute;
52left:-100%;top:-100%;overflow:hidden").node,poly:i.polyline().node,path:i.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},e.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=[],a=0;a<i;a++)n.push(e(t[a]));return n},filter:function(t,e){for(var i=t.length,n=[],a=0;a<i;a++)e(t[a])&&n.push(t[a]);return n},filterSVGElements:function(e){return this.filter(e,(function(e){return e instanceof t.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(t){var e,a;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?n.regex.isRgb.test(t)?(e=n.regex.rgb.exec(t.replace(n.regex.whitespace,"")),this.r=parseInt(e[1]),this.g=parseInt(e[2]),this.b=parseInt(e[3])):n.regex.isHex.test(t)&&(e=n.regex.hex.exec(4==(a=t).length?["#",a.substring(1,2),a.substring(1,2),a.substring(2,3),a.substring(2,3),a.substring(3,4),a.substring(3,4)].join(""):a),this.r=parseInt(e[1],16),this.g=parseInt(e[2],16),this.b=parseInt(e[3],16)):"object"===i(t)&&(this.r=t.r,this.g=t.g,this.b=t.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(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 a={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(""),r=0,s=o.length;r<s;++r)a[o[r]]=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,r=e.length;o<r;++o)e[o]=e[o]+(o%2?i.y:i.x);if(a&&"function"==typeof a[t])return a[t](e,i,n)}}(o[r].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]&&
52(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,a=[],o=new n.PathArray,r=0,s=e.length;r<s;r++){a[r]=[e[r][0]];for(var l=1,c=e[r].length;l<c;l++)a[r][l]=e[r][l]+(i[r][l]-e[r][l])*t;"A"===a[r][0]&&(a[r][4]=+(0!=a[r][4]),a[r][5]=+(0!=a[r][5]))}return o.value=a,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=[],r=new n.Point,s=new n.Point,l=0,h=t.length;do{n.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),o.push(a[e].call(null,t.slice(l,l+=i[e.toUpperCase()]).map(parseFloat),r,s))}while(h>l);return o},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(n.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof n.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new n.Number(t),new n.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new n.Number(t),new n.Number(this-t,this.unit||t.unit)},times:function(t){return t=new n.Number(t),new n.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new n.Number(t),new n.Number(this/t,this.unit||t.unit)},to:function(t){var e=new n.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new n.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new n.Number(this.destination).minus(this).times(t).plus(this):this}}}),n.Element=n.invent({create:function(t){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var i=p(this,t,e);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(t){this.writeDataToDom();var e=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(e){var i=this;if(!i.node.parentNode)return null;if(i=n.adopt(i.node.parentNode),!e)return i;for(;i&&i.node instanceof t.SVGElement;){if("string"==typeof e?i.matches(e):i instanceof e)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 i=e.createElement("svg");if(!(t&&this instanceof n.Parent))return i.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),i.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");i.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var a=0,o=i.firstChild.childNodes.length;a<o;a++)this.node.appendChild(i.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(t,e,a){"object"===i(t)&&(e=t.ease,a=t.delay,t=t.duration);var o=new n.Situation({duration:t||1e3,delay:a||0,ease:n.easing[e||"-"]||e});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}
52,startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.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 a=t.length;a--;)e.animations[i][a]instanceof n.Number&&(t[a]=new n.Number(t[a])),e.animations[i][a]=t[a].morph(e.animations[i][a])}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 a=this.situation.ease(this.pos);for(var o in this.situation.once)o>this.lastPos&&o<=a&&(this.situation.once[o].call(this.target(),this.pos,a),delete this.situation.once[o]);return this.active&&this.target().fire("during",{pos:this.pos,eased:a,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=a,this):this},eachAt:function(){var t,e=this,i=this.target(),a=this.situation;for(var o in a.animations)t=[].concat(a.animations[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i[o].apply(i,t);for(var o in a.attrs)t=[o].concat(a.attrs[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i.attr.apply(i,t);for(var o in a.styles)t=[o].concat(a.styles[o]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i.style.apply(i,t);if(a.transforms.length){t=a.initialTransformation,o=0;for(var r=a.transforms.length;o<r;o++){var s=a.transforms[o];s instanceof n.Matrix?t=s.relative?t.multiply((new n.Matrix).morph(s).at(a.ease(this.pos))):t.morph(s).at(a.ease(this.pos)):(s.relative||s.und
52o(t.extract()),t=t.multiply(s.at(a.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(t,e,n){if("object"===i(t))for(var a in t)this.attr(a,t[a]);else this.add(t,e,"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(t,e,a,o){if(!("object"!==i(t)||t instanceof n.Element))return n.Box.call(this,null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height);4==arguments.length&&(this.x=t,this.y=e,this.width=a,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 i;try{if(!e.documentElement.contains){for(var a=t.node;a.parentNode;)a=a.parentNode;if(a!=e)throw new Error("Element not in the dom")}i=t.node.getBBox()}catch(e){if(t instanceof n.Shape){n.parser.draw||n.prepare();var o=t.clone(n.parser.draw.instance).show();o&&o.node&&"function"==typeof o.node.getBBox&&(i=o.node.getBBox()),o&&"function"==typeof o.remove&&o.remove()}else i={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}n.Box.call(this,i)}},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(t){var e=g([1,0,0,1,0,0]);t=null===t?e:t instanceof n.Element?t.matrixify():"string"==typeof t?g(t.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?g([].slice.call(arguments)):Array.isArray(t)?g(t):t&&"object"===i(t)?t:e;for(var a=y.length-1;a>=0;--a)this[y[a]]=null!=t[y[a]]?t[y[a]]:e[y[a]]},extend:{extract:function(){var t=f(this,0,1);f(this,1,0);var e=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=y.length-1;e>=0;e--)t[y[e]]=this[y[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new n.Matrix(e)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(t,e){var n;n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===i(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{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(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=n.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===i(t))for(var o in t)this.attr(o,t[o]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?n.defaults.attrs[t]:n.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(n.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof n.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new n.Number(e):n.Color.isColor(e)?e=new n.Color(e):Array.isArray(e)&&(e=new n.Array(e)),"leading"==t?this.leading&&this.leading(e):"str
52ing"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),n.extend(n.Element,{transform:function(t,e){var a;return"object"!==i(t)?(a=new n.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new n.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new n.Matrix(t)):new n.Matrix(t)),this.attr("transform",a))}}),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(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var n=0,a=this.arguments.length;n<a;++n)this[this.arguments[n]]=t[n];else if(t&&"object"===i(t))for(n=0,a=this.arguments.length;n<a;++n)this[this.arguments[n]]=t[this.arguments[n]];this.inversed=!1,!0===e&&(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(t,e){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===i(t))for(var a in t)this.style(a,t[a]);else{if(!n.regex.isCss.test(t))return this.node.style[h(t)];for(t=t.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));e=t.pop();)this.style(e[0],e[1])}else this.node.style[h(t)]=null===e||n.regex.isBlank.test(e)?"":e;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(),a=0,o=i.length;a<o;a++)i[a]instanceof n.Element&&t.apply(i[a],[a,i]),e&&i[a]instanceof n.Container&&i[a].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,a,o){var r=i.bind(a||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]=r,t.addEventListener(l,r,o||{passive:!0})}
52,n.off=function(t,e,i){var a=n.handlerMap.indexOf(t),o=e&&e.split(".")[0],r=e&&e.split(".")[1],s="";if(-1!=a)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[a][o]&&n.listeners[a][o][r||"*"]&&(t.removeEventListener(o,n.listeners[a][o][r||"*"][i],!1),delete n.listeners[a][o][r||"*"][i])}else if(r&&o){if(n.listeners[a][o]&&n.listeners[a][o][r]){for(var l in n.listeners[a][o][r])n.off(t,[o,r].join("."),l);delete n.listeners[a][o][r]}}else if(r)for(var c in n.listeners[a])for(var s in n.listeners[a][c])r===s&&n.off(t,[c,r].join("."));else if(o){if(n.listeners[a][o]){for(var s in n.listeners[a][o])n.off(t,[o,s].join("."));delete n.listeners[a][o]}}else{for(var c in n.listeners[a])n.off(t,c);delete n.listeners[a],delete n.handlerMap[a]}},n.extend(n.Element,{on:function(t,e,i,a){return n.on(this.node,t,e,i,a),this},off:function(t,e){return n.off(this.node,t,e),this},fire:function(e,i){return e instanceof t.Event?this.node.dispatchEvent(e):this.node.dispatchEvent(e=new n.CustomEvent(e,{detail:i,cancelable:!0})),this._event=e,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?e.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()}
52,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=p(this,t,e);return this.rx(new n.Number(i.width).divide(2)).ry(new n.Number(i.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,a){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:a}:new n.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=p(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,i,a){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=t?[t,e,i,a]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(t){return this.put(new n.Polyline).plot(t||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(t){return this.put(new n.Polygon).plot(t||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new n.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=p(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new n.PathArray(t))},clear:function(){return delete this._array,this}},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(e){if(!e)return this;var i=this,a=new t.Image;return n.on(a,"load",(function(){n.off(a);var t=i.parent(n.Pattern);null!==t&&(0==i.width()&&0==i.height()&&i.size(a.width,a.height),t&&0==t.width()&&0==t.height()&&t.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.
52call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:e}))})),n.on(a,"error",(function(t){n.off(a),"function"==typeof i._error&&i._error.call(i,t)})),this.attr("href",a.src=this.src=e,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,a=e.length;i<a;++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,a=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+=a:(this.attr("dy",a+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(e.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,a){return i+a.replace(n.regex.dots," .")}function h(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function u(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function p(t,e,i){if(null==e||null==i){var n=t.bbox();null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)}return{width:e,height:i}}function f(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function g(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function m(e){for(var i=e.childNodes.length-1;i>=0;i--)e.childNodes[i]instanceof t.SVGElement&&m(e.childNodes[i]);return n.adopt(e).id(n.eid(e.nodeName))}function v(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};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)}
52,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(t,e){if("object"===i(arguments[0]))for(var n in t)this.remember(n,t[n]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=e}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 i=e.getElementById(function(t){var e=(t||"").toString().match(n.regex.reference);if(e)return e[1]}(t)||t);return n.adopt(i)},n.select=function(t,i){return new n.Set(n.utils.map((i||e).querySelectorAll(t),(function(t){return n.adopt(t)})))},n.extend(n.Parent,{select:function(t){return n.select(t,this.node)}});var y="abcdef".split("");if("function"!=typeof t.CustomEvent){var x=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var n=e.createEvent("CustomEvent");return n.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),n};x.prototype=t.Event.prototype,n.CustomEvent=x}else n.CustomEvent=t.CustomEvent;return n},"function"==typeof define&&define.amd?define((function(){return Dt(Lt,Lt.document)})):"object"===("undefined"==typeof exports?"undefined":i(exports))&&"undefined"!=typeof module?module.exports=Lt.document?Dt(Lt,Lt.document):function(t){return Dt(t,t.document)}:Lt.SVG=Dt(Lt,Lt.document), 53/*! svg.filter.js - v2.0.2 - 2016-02-24 54 * https://github.com/wout/svg.filter.js 55 * Copyright (c) 2016 Wout Fierens; Licensed MIT */ 56function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"Backgroun
56dImage",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,a){return this.put(new SVG.DisplacementMapEffect(t,e,i,n,a))},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,a){return this.put(new SVG.TurbulenceEffect(t,e,i,n,a))},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)}
56,turbulence:function(t,e,i,n,a){return this.parent()&&this.parent().turbulence(t,e,i,n,a).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=a(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=a(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,a){this.attr({in:t,in2:e,scale:i,xChannelSelector:n,yChannelSelector:a})},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,a){this.attr({numOctaves:e,seed:i,stitchTiles:n,baseFrequency:t,type:a})}},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,a,o){this.attr({x:t,y:e,z:i,pointsAtX:n,pointsAtY:a,pointsAtZ:o})},mergeNode:function(t){this.attr("in",t)}};function a(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 r(){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])}}})),r(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:{}})})),r(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:{}})})),r(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,a,o,r,s,l,c){for(var h=t.slice(a,o||c),d=r.slice(s,l||c),u=0,p={pos:[0,0],start:[0,0]},f={pos:[0,0],start:[0,0]};h[u]=e.call(p,h[u]),d[u]=e.call(f,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(n.call(p,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(n.call(f,d[u])))):(h[u]=i.call(p,h[u]),d[u]=i.call(f,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),u==d.length&&d.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]);return{start:h,dest:d}}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;
56case"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,a,o,r,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,A,T,E=Math.abs(e[1]),L=Math.abs(e[2]),D=e[3]%360,P=e[4],M=e[5],I=e[6],O=e[7],z=new SVG.Point(t),N=new SVG.Point(I,O),R=[];if(0===E||0===L||z.x===N.x&&z.y===N.y)return[["C",z.x,z.y,N.x,N.y,N.x,N.y]];for((n=(i=new SVG.Point((z.x-N.x)/2,(z.y-N.y)/2).transform((new SVG.Matrix).rotate(D))).x*i.x/(E*E)+i.y*i.y/(L*L))>1&&(E*=n=Math.sqrt(n),L*=n),a=(new SVG.Matrix).rotate(D).scale(1/E,1/L).rotate(-D),z=z.transform(a),s=(o=[(N=N.transform(a)).x-z.x,N.y-z.y])[0]*o[0]+o[1]*o[1],r=Math.sqrt(s),o[0]/=r,o[1]/=r,l=s<4?Math.sqrt(1-s/4):0,P===M&&(l*=-1),c=new SVG.Point((N.x+z.x)/2+l*-o[1],(N.y+z.y)/2+l*o[0]),h=new SVG.Point(z.x-c.x,z.y-c.y),d=new SVG.Point(N.x-c.x,N.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),M&&u>p&&(p+=2*Math.PI),!M&&u<p&&(p-=2*Math.PI),v=[],b=u,f=(p-u)/(g=Math.ceil(2*Math.abs(u-p)/Math.PI)),m=4*Math.tan(f/4)/3,_=0;_<=g;_++)x=Math.cos(b),y=Math.sin(b),w=new SVG.Point(c.x+x,c.y+y),v[_]=[new SVG.Point(w.x+m*y,w.y-m*x),w,new SVG.Point(w.x-m*y,w.y+m*x)],b+=f;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),a=(new SVG.Matrix).rotate(D).scale(E,L).rotate(-D),_=0,C=v.length;_<C;_++)v[_][0]=v[_][0].transform(a),v[_][1]=v[_][1].transform(a),v[_][2]=v[_][2].transform(a);for(_=1,C=v.length;_<C;_++)S=(w=v[_-1][2]).x,k=w.y,A=(w=v[_][0]).x,T=w.y,I=(w=v[_][1]).x,O=w.y,R.push(["C",S,k,A,T,I,O]);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 a(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,r=0,s=!1,l=!1;!1!==o||!1!==r;){var c;s=a(i,!1!==o&&o+1),l=a(n,!1!==r&&r+1),!1===o&&(o=0==(c=new SVG.PathArray(h.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===r&&(r=0==(c=new SVG.PathArray(h.dest).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var h=t(i,o,s,n,r,l);i=i.slice(0,o).concat(h.start,!1===s?[]:i.slice(s)),n=n.slice(0,r).concat(h.dest,!1===l?[]:n.slice(l)),o=!1!==s&&o+h.start.length,r=!1!==l&&r+h.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(), 57/*! svg.draggable.js - v2.2.2 - 2019-01-08 58 * https://github.com/svgdotjs/svg.draggable.js 59 * Copyright (c) 2019 Wout Fierens; Licensed MIT */ 60function(){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,a=this.startPoints.box.y+i.y-this.startPoints.point.y,o=this.constraint,r=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,a,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(a):!1!==l.y&&this.el.y(l.y)}else"object"==typeof o&&(null!=o.minX&&n<o.minX?r=(n=o.minX)-this.startPoints.box.x:null!=o.maxX&&n>o.maxX-e.width&&(r=(n=o.maxX-e.width)-this.startPoints.box.x),null!=o.minY&&a<o.minY?s=(a=o.minY)-this.startPoints.box.y:null!=o.maxY&&a>o.maxY-e.height&&(s=(a=o.maxY-e.height)-this.startPoints.box.y),null!=o.snapToGri
60d&&(n-=n%o.snapToGrid,a-=a%o.snapToGrid,r-=r%o.snapToGrid,s-=s%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:s},!0):this.el.move(n,a));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 a in this.el.selectize.defaults)this.options[a]=this.el.selectize.defaults[a],void 0!==e[a]&&(this.options[a]=e[a]);var o=["points","pointsExclude"];for(var a in o){var r=this.options[o[a]];"string"==typeof r?r=r.length>0?r.split(/\s*,\s*/i):[]:"boolean"==typeof r&&"points"===o[a]&&(r=r?n:[]),this.options[o[a]]=r}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 a=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,a=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:n,y:a,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",a).on("mousedown",a);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 a=t.pointCoords(i,e);t.rectSelection.set.get(n+1).center(a.x,a.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,a=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:n,y:a,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,a){var o=e.pointCoords(t,i),r=e.drawPoint(o.x,o.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",n(t)).on("touchstart",n(t));
60e.rectSelection.set.add(r)})),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 a=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,n=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:n,event:t})},o=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a);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.snapToGri
60d(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,a=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),r=this.parameters.rotation+180*(o-a)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(r-r%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,a=i.y-this.parameters.p.y;this.lastUpdateCall=[n,a],this.calc(n,a),this.el.fire("resizing",{dx:n,dy:a,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")}
60,t.prototype.snapToGrid=function(t,e,i,n){var a;return void 0!==n?a=[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:(i=null==i?3:i,a=[(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&&(a[0]-=this.options.snapToGrid),e<0&&(a[1]-=this.options.snapToGrid),t-=Math.abs(a[0])<this.options.snapToGrid/2?a[0]:a[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(a[1])<this.options.snapToGrid/2?a[1]:a[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,n)},t.prototype.constraintToBox=function(t,e,i,n){var a,o,r=this.options.constraint||{};return void 0!==n?(a=i,o=n):(a=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!==r.minX&&a+t<r.minX&&(t=r.minX-a),void 0!==r.maxX&&a+t>r.maxX&&(t=r.maxX-a),void 0!==r.minY&&o+e<r.minY&&(e=r.minY-o),void 0!==r.maxY&&o+e>r.maxY&&(e=r.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,a=this.parameters.box.width+t[0],o=this.parameters.box.height-t[1],r=a/o;return r<n?(i[1]=a/n-this.parameters.box.height,e&&(i[1]=-i[1])):r>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)}(),void 0===window.Apex&&(window.Apex={});var zt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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 m(this.ctx),this.ctx.axes=new J(this.ctx),this.ctx.core=new It(this.ctx.el,this.ctx),this.ctx.config=new F({}),this.ctx.data=new j(this.ctx),this.ctx.grid=new $(this.ctx),this.ctx.graphics=new b(this.ctx),this.ctx.coreUtils=new y(this.ctx),this.ctx.crosshairs=new Q(this.ctx),this.ctx.events=new Z(this.ctx),this.ctx.exports=new X(this.ctx),this.ctx.localization=new K(this.ctx),this.ctx.options=new k,this.ctx.responsive=new tt(this.ctx),this.ctx.series=new M(this.ctx),this.ctx.theme=new et(this.ctx),this.ctx.formatters=new Y(this.ctx),this.ctx.titleSubtitle=new it(this.ctx),this.ctx.legend=new ct(this.ctx),this.ctx.toolbar=new ht(this.ctx),this.ctx.dimensions=new st(this.ctx),this.ctx.updateHelpers=new Ot(this.ctx),this.ctx.zoomPanSelection=new dt(this.ctx),this.ctx.w.globals.tooltip=new bt(this.ctx)}}]),t}(),Nt=function(){function t(e){n(this,t),this.ctx=e,this.w=e.w}return o(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 a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach((function(t){a.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}(),Rt=new WeakMap;return function(){function t(e,i){n(this,t),this.opts=i,this.ctx=this,this.w=new B(i).init(),this.el=e,this.w.globals.cuid=g.randomId(),this.w.globals.chartID=this.w.config.chart.id?g.escapeString(this.w.config.chart.id):this.w.globals.cuid,new zt(this).initModules(),this.create=g.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return o(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);
60var n=t.w.config.chart.events.beforeMount;if("function"==typeof n&&n(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1,n=t.getBoundingClientRect();"none"!==t.style.display&&0!==n.width||(i=!0);var a=new ResizeObserver((function(n){i&&e.call(t,n),i=!0}));t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach((function(t){return a.observe(t)})):a.observe(t),Rt.set(e,a)}(t.el.parentNode,t.parentResizeHandler),!t.css){var a=t.el.getRootNode&&t.el.getRootNode(),o=g.is("ShadowRoot",a),r=t.el.ownerDocument,s=r.getElementById("apexcharts-css");!o&&s||(t.css=document.createElement("style"),t.css.id="apexcharts-css",t.css.textContent='.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-title:empty,\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}
60\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}',o?a.prepend(t.css):r.head.appendChild(t.css))}var l=t.create(t.w.config.series,{});if(!l)return e(t);t.mount(l).then((function(){"function"==typeof t.w.config.chart.events.mou
60nted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(l)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new zt(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new R(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 a=y.checkComboSeries(t);n.comboCharts=a.comboCharts,n.comboBarCount=a.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 E(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(),new y(this).getLargestMarkerSize(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(t,r),l=new D(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:r,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(a,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 $(i);var r=i.grid.drawGrid();i.annotations=new A(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&r&&n.globals.dom.elGraphical.add(r.el);var s=new V(t.ctx),l=new U(t.ctx);if(null!==r&&(s.xAxisLabelCorrections(r.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&&r&&n.globals.dom.elGraphical.add(r.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.isRangeBar))(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 h=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(t){h[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(),a(i)}))}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=Rt.get(t))&&(e.disconnect(),Rt.delete(t));var i=this.w.config.chart.id;
60i&&Apex._chartInstances.forEach((function(t,e){t.id===g.escapeString(i)&&Apex._chartInstances.splice(e,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],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w;return r.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)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,n,a,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(),a=0;a<n.length;a++)if(null!==t[a]&&void 0!==t[a])for(var o=0;o<t[a].data.length;o++)n[a].data.push(t[a].data[o]);return i.w.config.series=n,e&&(i.w.globals.initialSeries=g.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 a=e.create(e.w.config.series,t);if(!a)return i(e);e.mount(a).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:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{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 q(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 q(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 X(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=g.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 a=arguments.length,o=new Array(a>2?a-2:0),r=2;r<a;r++)o[r-2]=arguments[r];n=i[e].apply(i,o)}return n}}},{key:"merge",value:function(t,e){return g.extend(t,e)}}]),t}()})),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,a=arguments.length;n<a;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 a(t,e){var i=Array.prototype.slice;
60if(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 r(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function s(t,e,i){var n,a,o=function(){n=!1,a&&(r.apply(i,a),a=!1)},r=function(){n?a=arguments:(t.apply(i,arguments),setTimeout(o,e),n=!0)};return r}function l(t,e,i){var n=e[1],a=e[0],o=n-a;return t===n&&i?t:((t-a)%o+o)%o+a}function c(){return!1}function h(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return d(t).split(/\s+/)}function p(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 f(t,e,i){var n=[];for(var a in t)n.push(encodeURIComponent(i?a.toUpperCase():a)+"="+encodeURIComponent(t[a]));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 b(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function _(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var C=window.requestAnimationFrame||x("RequestAnimationFrame")||_,S=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,e,i){if(!i||C!==_)return C.call(window,a(t,e));t.call(e)}function A(t){t&&S.call(window,t)}var T={extend:e,create:i,bind:a,lastId:o,stamp:r,throttle:s,wrapNum:l,falseFn:c,formatNum:h,trim:d,splitWords:u,setOptions:p,getParamString:f,template:m,isArray:v,indexOf:b,emptyImageUrl:y,requestFn:C,cancelFn:S,requestAnimFrame:k,cancelAnimFrame:A};function E(){}E.extend=function(t){function n(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var a=n.__super__=this.prototype,o=i(a);for(var r in(o.constructor=n).prototype=o,this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);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;
vendor: 9,922 bytes, line 60
60e++)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){a.callInitHooks&&a.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 D={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var a=0,o=(t=u(t)).length;a<o;a++)this._on(t[a],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 a=0,o=(t=u(t)).length;a<o;a++)this._off(t[a],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 a={fn:e,ctx:i},o=n,r=0,s=o.length;r<s;r++)if(o[r].fn===e&&o[r].ctx===i)return;o.push(a)},_off:function(t,e,i){var n,a,o;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(a=0,o=n.length;a<o;a++){var r=n[a];if(r.ctx===i&&r.fn===e)return r.fn=c,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(a,1)}}else{for(a=0,o=n.length;a<o;a++)n[a].fn=c;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var a=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 r=0,s=o.length;r<s;r++){var l=o[r];l.fn.call(l.ctx||this,a)}this._firingCount--}}return n&&this._propagateEvent(a),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=a((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[r(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[r(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)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var P=E.extend(D);function M(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var I=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function O(t,e,i){return t instanceof M?t:v(t)?new M(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,i)}function z(t,e){if(t)for(var i=e?[t,e]:t,n=0,a=i.length;n<a;n++)this.extend(i[n])}function N(t,e){return!t||t instanceof z?t:new z(t,e)}function R(t,e){if(t)for(var i=e?[t,e]:t,n=0,a=i.length;n<a;n++)this.extend(i[n])}function F(t,e){return t instanceof R?t:new R(t,e)}function H(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 B(t,e,i){return t instanceof H?t:v(t)&&"object"!=typeof t[0]?3===t.length?new H(t[0],t[1],t[2]):2===t.length?new H(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new H(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new H(t,e,i)}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(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 M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(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=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=O(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}},z.prototype={extend:function(t){return t=O(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 M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new M(this.min.x,this.max.y)},getTopRight:function(){return new M(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 M?O:N)(t))instanceof z?(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=N(t);var e=this.min,i=this.max,n=t.min,a=t.max,o=a.x>=e.x&&n.x<=i.x,r=a.y>=e.y&&n.y<=i.y;return o&&r},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,a=t.max,o=a.x>e.x&&n.x<i.x,r=a.y>e.y&&n.y<i.y;return o&&r},isValid:function(){return!(!this.min||!this.max)}},R.prototype={extend:function(t){var e,i,n=this._southWest,a=this._northEast;if(t instanceof H)i=e=t;else{if(!(t instanceof R))return t?this.extend(B(t)||F(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||a?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),a.lat=Math.max(i.lat,a.lat),a.lng=Math.max(i.lng,a.lng)):(this._southWest=new H(e.lat,e.lng),this._northEast=new H(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,a=Math.abs(e.lng-i.lng)*t;return new R(new H(e.lat-n,e.lng-a),new H(i.lat+n,i.lng+a))},getCenter:function(){return new H((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 H(this.getNorth(),this.getWest())},getSouthEast:function(){return new H(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 H||"lat"in t?B:F)(t);var e,i,n=this._southWest,a=this._northEast;return t instanceof R?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=a.lat&&e.lng>=n.lng&&i.lng<=a.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),a=t.getNorthEast(),o=a.lat>=e.lat&&n.lat<=i.lat,r=a.lng>=e.lng&&n.lng<=i.lng;return o&&r},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),a=t.getNorthEast(),o=a.lat>e.lat&&n.lat<i.lat,r=a.lng>e.lng&&n.lng<i.lng;return o&&r},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 j,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 z(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!(H.prototype={equals:function(t,e){return!!t&&(t=B(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("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,B(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 H(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new H(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,a=e.lng-i.lng;if(0==n&&0==a)return t;
60var o=t.getSouthWest(),r=t.getNorthEast();return new R(new H(o.lat-n,o.lng-a),new H(r.lat-n,r.lng-a))}},W=e({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,a=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),s=o*o+Math.cos(n)*Math.cos(a)*r*r,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),X=6378137,V={R:X,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),a=Math.sin(n*e);return new M(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new H((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new z([-(j=X*Math.PI),-j],[j,j])};function $(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 G(t,e,i,n){return new $(t,e,i,n)}$.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 M((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var q,U=e({},W,{code:"EPSG:3857",projection:V,transformation:G(q=.5/(Math.PI*V.R),.5,-q,.5)}),Z=e({},U,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){for(var i,n,a,o,r="",s=0,l=t.length;s<l;s++){for(i=0,n=(a=t[s]).length;i<n;i++)r+=(i?"L":"M")+(o=a[i]).x+" "+o.y;r+=e?Dt?"z":"x":""}return r||"M0 0"}var Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Mt("webkit"),at=Mt("android"),ot=Mt("android 2")||Mt("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=at&&Mt("Google")&&rt<537&&!("AudioNode"in window),lt=!!window.opera,ct=!it&&Mt("chrome"),ht=Mt("gecko")&&!nt&&!lt&&!tt,dt=!ct&&Mt("safari"),ut=Mt("phantom"),pt="OTransition"in Q,ft=0===navigator.platform.indexOf("Win"),gt=tt&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in Q,bt=!window.L_DISABLE_3D&&(gt||mt||vt)&&!pt&&!ut,yt="undefined"!=typeof orientation||Mt("mobile"),xt=yt&&nt,wt=yt&&mt,_t=!window.PointerEvent&&window.MSPointerEvent,Ct=!(!window.PointerEvent&&!_t),St=!window.L_NO_TOUCH&&(Ct||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),kt=yt&<,At=yt&&ht,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}(),Lt=!!document.createElement("canvas").getContext,Dt=!(!document.createElementNS||!K("svg").createSVGRect),Pt=!Dt&&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 Mt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var It={ie:tt,ielt9:et,edge:it,webkit:nt,android:at,android23:ot,androidStock:st,opera:lt,chrome:ct,gecko:ht,safari:dt,phantom:ut,opera12:pt,win:ft,ie3d:gt,webkit3d:mt,gecko3d:vt,any3d:bt,mobile:yt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:_t,pointer:Ct,touch:St,mobileOpera:kt,mobileGecko:At,retina:Tt,passiveEvents:Et,canvas:Lt,svg:Dt,vml:Pt},Ot=_t?"MSPointerDown":"pointerdown",zt=_t?"MSPointerMove":"pointermove",Nt=_t?"MSPointerUp":"pointerup",Rt=_t?"MSPointerCancel":"pointercancel",Ft={},Ht=!1;function Bt(t,e,i,n){function o(t){Xt(t,s)}var r,s,l,c,h,d,u,p;function f(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Xt(t,c)}return"touchstart"===e?(h=t,d=i,u=n,p=a((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Re(t),Xt(t,d)})),h["_leaflet_touchstart"+u]=p,h.addEventListener(Ot,p,!1),Ht||(document.addEventListener(Ot,jt,!0),document.addEventListener(zt,Yt,!0),document.addEventListener(Nt,Wt,!0),document.addEventListener(Rt,Wt,!0),Ht=!0)):"touchmove"===e?(c=i,(l=t)["_leaflet_touchmove"+n]=f,l.addEventListener(zt,f,!1)):"touchend"===e&&(s=i,(r=t)["_leaflet_touchend"+n]=o,r.addEventListener(Nt,o,!1),r.addEventListener(Rt,o,!1)),this}function jt(t){Ft[t.pointerId]=t}function Yt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Wt(t){delete Ft[t.pointerId]}function Xt(t,e){for(var i in t.touches=[],Ft)t.touches.push(Ft[i]);t.changedTouches=[t],e(t)}var Vt,$t,Gt,qt,Ut,Zt,Kt=_t?"MSPointerDown":Ct?"pointerdown":"touchstart",Jt=_t?"MSPointerUp":Ct?"pointerup":"touchend",Qt="_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 ae(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 re(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 he(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=fe(t);return 0<i.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function de(t,e){var i;if(void 0!==t.classList)for(var n=u(e),a=0,o=n.length;a<o;a++)t.classList.add(n[a]);else he(t,e)||pe(t,((i=fe(t))?i+" ":"")+e)}function ue(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,d((" "+fe(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function fe(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 M(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 be(t,e){t._leaflet_pos=e,bt?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ye(t){return t._leaflet_pos||new M(0,0)}function xe(){Te(window,"dragstart",Re)}function we(){Le(window,"dragstart",Re)}function _e(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ce(),Zt=(Ut=t).style.outline,t.style.outline="none",Te(window,"keydown",Ce))}function Ce(){Ut&&(Ut.style.outline=Zt,Zt=Ut=void 0,Le(window,"keydown",Ce))}function Se(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function ke(t){var e=t.getBoundingClientRect();
60return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}qt="onselectstart"in document?(Gt=function(){Te(window,"selectstart",Re)},function(){Le(window,"selectstart",Re)}):($t=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Gt=function(){var t;$t&&(t=document.documentElement.style,Vt=t[$t],t[$t]="none")},function(){$t&&(document.documentElement.style[$t]=Vt,Vt=void 0)});var Ae={TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ie,get:ne,getStyle:ae,create:oe,remove:re,empty:se,toFront:le,toBack:ce,hasClass:he,addClass:de,removeClass:ue,setClass:pe,getClass:fe,setOpacity:ge,testProp:me,setTransform:ve,setPosition:be,getPosition:ye,disableTextSelection:Gt,enableTextSelection:qt,disableImageDrag:xe,enableImageDrag:we,preventOutline:_e,restoreOutline:Ce,getSizedParentNode:Se,getScale:ke};function Te(t,e,i,n){if("object"==typeof e)for(var a in e)Me(t,a,e[a],i);else for(var o=0,r=(e=u(e)).length;o<r;o++)Me(t,e[o],i,n);return this}var Ee="_leaflet_events";function Le(t,e,i,n){if("object"==typeof e)for(var a in e)Ie(t,a,e[a],i);else if(e)for(var o=0,r=(e=u(e)).length;o<r;o++)Ie(t,e[o],i,n);else{for(var s in t[Ee])Ie(t,s,t[Ee][s]);delete t[Ee]}return this}function De(){return Ct&&!it&&!dt}
60var Pe={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Me(t,e,i,n){var a=e+r(i)+(n?"_"+r(n):"");if(t[Ee]&&t[Ee][a])return this;var o,s,l,c,h,d,u=function(e){return i.call(n||t,e||window.event)},p=u;function f(t){if(Ct){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var e=Date.now(),i=e-(c||e);h=t.touches?t.touches[0]:t,d=0<i&&i<=250,c=e}function g(t){if(d&&!h.cancelBubble){if(Ct){if("mouse"===t.pointerType)return;var e,i,n={};for(i in h)e=h[i],n[i]=e&&e.bind?e.bind(h):e;h=n}h.type="dblclick",h.button=0,s(h),c=null}}Ct&&0===e.indexOf("touch")?Bt(t,e,u,a):St&&"dblclick"===e&&!De()?(s=u,d=!1,(o=t)[Qt+Kt+(l=a)]=f,o[Qt+Jt+l]=g,o[Qt+"dblclick"+l]=s,o.addEventListener(Kt,f,!!Et&&{passive:!1}),o.addEventListener(Jt,g,!!Et&&{passive:!1}),o.addEventListener("dblclick",s,!1)):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Pe[e]||e,u,!!Et&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(u=function(e){e=e||window.event,Ve(t,e)&&p(e)},t.addEventListener(Pe[e],u,!1)):t.addEventListener(e,p,!1):"attachEvent"in t&&t.attachEvent("on"+e,u),t[Ee]=t[Ee]||{},t[Ee][a]=u}function Ie(t,e,i,n){var a,o,s,l,c,h,d,u,p=e+r(i)+(n?"_"+r(n):""),f=t[Ee]&&t[Ee][p];if(!f)return this;Ct&&0===e.indexOf("touch")?(u=(h=t)["_leaflet_"+(d=e)+p],"touchstart"===d?h.removeEventListener(Ot,u,!1):"touchmove"===d?h.removeEventListener(zt,u,!1):"touchend"===d&&(h.removeEventListener(Nt,u,!1),h.removeEventListener(Rt,u,!1))):St&&"dblclick"===e&&!De()?(s=(a=t)[Qt+Kt+(o=p)],l=a[Qt+Jt+o],c=a[Qt+"dblclick"+o],a.removeEventListener(Kt,s,!!Et&&{passive:!1}),a.removeEventListener(Jt,l,!!Et&&{passive:!1}),a.removeEventListener("dblclick",c,!1)):"removeEventListener"in t?t.removeEventListener(Pe[e]||e,f,!1):"detachEvent"in t&&t.detachEvent("on"+e,f),t[Ee][p]=null}function Oe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Xe(t),this}function ze(t){return Me(t,"wheel",Oe),this}function Ne(t){return Te(t,"mousedown touchstart dblclick",Oe),Me(t,"click",We),this}function Re(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Fe(t){return Re(t),Oe(t),this}function He(t,e){if(!e)return new M(t.clientX,t.clientY);var i=ke(e),n=i.boundingClientRect;return new M((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Be=ft&&ct?2*window.devicePixelRatio:ht?window.devicePixelRatio:1;function je(t){return it?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Be: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 Xe(t){var e=Ye[t.type];return Ye[t.type]=!1,e}function Ve(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 $e={on:Te,off:Le,stopPropagation:Oe,disableScrollPropagation:ze,disableClickPropagation:Ne,preventDefault:Re,stop:Fe,getMousePosition:He,getWheelDelta:je,fakeStop:We,skipped:Xe,isExternalTarget:Ve,addListener:Te,removeListener:Le},Ge=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=ye(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=k(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(),be(this._el,i),this.fire("step")},_complete:function(){A(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),qe=P.extend({options:{crs:U,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=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=a(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(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&bt&&!kt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Te(this._proxy,ie,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
60,setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(B(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||(bt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(bt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),a=this.getSize().divideBy(2),o=(t instanceof M?t:this.latLngToContainerPoint(t)).subtract(a).multiplyBy(1-1/n),r=this.containerPointToLatLng(a.add(o));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var i=O(e.paddingTopLeft||e.padding||[0,0]),n=O(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,i.add(n));if((a="number"==typeof e.maxZoom?Math.min(e.maxZoom,a):a)===1/0)return{center:t.getCenter(),zoom:a};
60var o=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),a),s=this.project(t.getNorthEast(),a);return{center:this.unproject(r.add(s).divideBy(2).add(o),a),zoom:a}},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=O(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Ge,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(de(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||!bt)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),a=this.project(t),o=this.getSize(),r=this._zoom;t=B(t),e=void 0===e?r:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(r,e),c=a.distanceTo(n)||1,h=1.42,d=h*h;function u(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var g=u(0);function m(t){return s*(f(g)*(p(e=g+h*t)/f(e))-p(g))/d;var e}var v=Date.now(),b=(u(1)-g)/h,y=i.duration?1e3*i.duration:1e3*b*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o,l,d=(Date.now()-v)/y,u=(o=d,(1-Math.pow(1-o,1.5))*b);d<=1?(this._flyToFrame=k(i,this),this._move(this.unproject(n.add(a.subtract(n).multiplyBy(m(u)/c)),r),this.getScaleZoom(s/(l=u,s*(f(g)/f(g+h*l))),r),{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,a=O((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=O(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),s=this.project(r),l=this.project(t),c=this.getPixelBounds(),h=c.getSize().divideBy(2),d=N([c.min.add(a),c.max.subtract(o)]);return d.contains(l)||(this._enforcingBounds=!0,i=s.subtract(l),n=O(l.x+i.x,l.y+i.y),(l.x<d.min.x||l.x>d.max.x)&&(n.x=s.x-i.x,0<i.x?n.x+=h.x-a.x:n.x-=h.x-o.x),(l.y<d.min.y||l.y>d.max.y)&&(n.y=s.y-i.y,0<i.y?n.y+=h.y-a.y:n.y-=h.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(),r=n.divideBy(2).round(),s=o.subtract(r);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(a(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()}
60,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=a(this._handleGeolocationResponse,this),n=a(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 H(t.coords.latitude,t.coords.longitude),n=i.toBounds(2*t.coords.accuracy),a=this._locateOptions;a.setView&&(e=this.getBoundsZoom(n),this.setView(i,a.maxZoom?Math.min(e,a.maxZoom):e));var o={latlng:i,bounds:n,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(o[r]=t.coords[r]);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(),re(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(A(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)re(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=O(i||[0,0]);var n=this.getZoom()||0,a=this.getMinZoom(),o=this.getMaxZoom(),r=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(i),c=N(this.project(s,n),this.project(r,n)).getSize(),h=bt?this.options.zoomSnap:1,d=l.x/c.x,u=l.y/c.y,p=e?Math.max(d,u):Math.min(d,u);n=this.getScaleZoom(p,n);return h&&(n=Math.round(n/(h/100))*(h/100),n=e?Math.ceil(n/h)*h:Math.floor(n/h)*h),Math.max(a,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(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 z(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(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(O(t),e)},layerPointToLatLng:function(t){var e=O(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return He(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=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&bt,de(t,"leaflet-container"+(St?" leaflet-touch":"")+(Tt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(dt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ae(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),be(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(de(t.markerPane,"leaflet-zoom-hide"),de(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){be(this._mapPane,new M(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}
60,_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 A(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){be(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?Le:Te;e((this._targets[r(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),bt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){A(this._resizeRequest),this._resizeRequest=k((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=[],a="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((i=this._targets[r(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(a&&!Ve(o,t))break;if(n.push(i),a)break}if(o===this._container)break;o=o.parentNode}return n.length||s||a||!Ve(o,t)||(n=[this]),n},_handleDOMEvent:function(t){var e;this._loaded&&!Xe(t)&&("mousedown"!==(e=t.type)&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||_e(t.target||t.srcElement),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){var a;if("click"===t.type&&((a=e({},t)).type="preclick",this._fireDOMEvent(a,a.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 r,s={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(r=o.getLatLng&&(!o._radius||o._radius<=10),s.containerPoint=r?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=r?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!==b(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 ye(this._mapPane)||new M(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);
60return N([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),a=this.getSize().divideBy(2),o=new z(n.subtract(a),n.add(a)),r=this._getBoundsOffset(o,i,e);return r.round().equals([0,0])?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new z(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),a=n.min.subtract(t.min),o=n.max.subtract(t.max);return new M(this._rebound(a.x,-o.x),this._rebound(a.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=bt?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(){ue(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(){re(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),a=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(a)||(k((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,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ue(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),k((function(){this._moveEnd(!0)}),this))}});function Ue(t){return new Ze(t)}var Ze=E.extend({options:{position:"topright"},initialize:function(t){p(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 de(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&&(re(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()}});qe.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 6,588 bytes, line 60
60,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=oe("div",e+"control-container",this._container);function n(n,a){var o=e+n+" "+e+a;t[n+a]=oe("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)re(this._controlCorners[t]);re(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ke=Ze.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 p(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 Ze.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(r(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){de(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?(de(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ue(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ue(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),Ne(e),ze(e);var n=this._section=oe("section",t+"-list");i&&(this._map.on("click",this.collapse,this),at||Te(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var a=this._layersLink=oe("a",t+"-toggle",e);a.href="#",a.title="Layers",St?(Te(a,"click",Fe),Te(a,"click",this.expand,this)):Te(a,"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]&&r(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(a((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,a=0;a<this._layers.length;a++)i=this._layers[a],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(r(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_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),Te(e,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var o=document.createElement("div");return i.appendChild(o),o.appendChild(e),o.appendChild(a),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],a=[];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||a.push(e);for(o=0;o<a.length;o++)this._map.hasLayer(a[o])&&this._map.removeLayer(a[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(),a=i.length-1;0<=a;a--)t=i[a],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()}}),Je=Ze.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))}
60,_createButton:function(t,e,i,n,a){var o=oe("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Ne(o),Te(o,"click",Fe),Te(o,"click",a,this),Te(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ue(this._zoomInButton,e),ue(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||de(this._zoomInButton,e)}});qe.mergeOptions({zoomControl:!0}),qe.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Je,this.addControl(this.zoomControl))}));var Qe=Ze.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,a=3.2808399*t;5280<a?(e=a/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(a),this._updateScale(this._iScale,n+" ft",n/a))},_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=Ze.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=oe("div","leaflet-control-attribution"),Ne(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(" | ")}}});qe.mergeOptions({attributionControl:!0}),qe.addInitHook((function(){this.options.attributionControl&&(new ti).addTo(this)})),Ze.Layers=Ke,Ze.Zoom=Je,Ze.Scale=Qe,Ze.Attribution=ti,Ue.layers=function(t,e,i){return new Ke(t,e,i)},Ue.zoom=function(t){return new Je(t)},Ue.scale=function(t){return new Qe(t)},Ue.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:D},ai=St?"touchstart mousedown":"mousedown",oi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},ri={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},si=P.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Te(this._dragStartTarget,ai,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(si._dragging===this&&this.finishDrag(),Le(this._dragStartTarget,ai,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;!t._simulated&&this._enabled&&(this._moved=!1,he(this._element,"leaflet-zoom-anim")||si._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((si._dragging=this)._preventOutline&&_e(this._element),xe(),Gt(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,i=Se(this._element),this._startPoint=new M(e.clientX,e.clientY),this._parentScale=ke(i),Te(document,ri[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 M((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=ye(this._element).subtract(i),de(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),de(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,A(this._animRequest),this._lastEvent=t,this._animRequest=k(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),be(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in ue(document.body,"leaflet-dragging"),this._lastTarget&&(ue(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ri)Le(document,ri[t],this._onMove,this),Le(document,oi[t],this._onUp,this);we(),qt(),this._moved&&this._moving&&(A(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,a,o){var r,s,l,c=0;for(s=a+1;s<=o-1;s++)c<(l=pi(e[s],e[a],e[o],!0))&&(r=s,c=l);n<c&&(i[r]=1,t(e,i,n,a,r),t(e,i,n,r,o))}(t,n,e,0,i-1);var a,o=[];for(a=0;a<i;a++)n[a]&&o.push(t[a]);return o}(t=function(t,e){for(var i=[t[0]],n=1,a=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[a])>e&&(i.push(t[n]),a=n);return a<o-1&&i.push(t[o-1]),i}(t,i),i)}function ci(t,e,i){return Math.sqrt(pi(t,e,i,!0))}function hi(t,e,i,n,a){var o,r,s,l=n?ii:ui(t,i),c=ui(e,i);for(ii=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=ui(r=di(t,e,o=l||c,i,a),i),o===l?(t=r,l=s):(e=r,c=s)}}function di(t,e,i,n,a){var o,r,s=e.x-t.x,l=e.y-t.y,c=n.min,h=n.max;return 8&i?(o=t.x+s*(h.y-t.y)/l,r=h.y):4&i?(o=t.x+s*(c.y-t.y)/l,r=c.y):2&i?(o=h.x,r=t.y+l*(h.x-t.x)/s):1&i&&(o=c.x,r=t.y+l*(c.x-t.x)/s),new M(o,r,a)}function ui(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 pi(t,e,i,n){var a,o=e.x,r=e.y,s=i.x-o,l=i.y-r,c=s*s+l*l;return 0<c&&(1<(a=((t.x-o)*s+(t.y-r)*l)/c)?(o=i.x,r=i.y):0<a&&(o+=s*a,r+=l*a)),s=t.x-o,l=t.y-r,n?s*s+l*l:new M(o,r)}function fi(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."),fi(t)}var mi={simplify:li,pointToSegmentDistance:ci,closestPointOnSegment:function(t,e,
vendor: 19,489 bytes, line 60
60i){return pi(t,e,i)},clipSegment:hi,_getEdgeIntersection:di,_getBitCode:ui,_sqClosestPointOnSegment:pi,isFlat:fi,_flat:gi};function vi(t,e,i){for(var n,a,o,r,s,l,c,h=[1,4,2,8],d=0,u=t.length;d<u;d++)t[d]._code=ui(t[d],e);for(o=0;o<4;o++){for(l=h[o],n=[],d=0,a=(u=t.length)-1;d<u;a=d++)r=t[d],s=t[a],r._code&l?s._code&l||((c=di(s,r,l,e,i))._code=ui(c,e),n.push(c)):(s._code&l&&((c=di(s,r,l,e,i))._code=ui(c,e),n.push(c)),n.push(r));t=n}return t}var bi,yi={clipPolygon:vi},xi={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new H(t.y,t.x)},bounds:new z([-180,-90],[180,90])},wi={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,a=this.R_MINOR/i,o=Math.sqrt(1-a*a),r=o*Math.sin(n),s=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),o/2);n=-i*Math.log(Math.max(s,1e-10));return new M(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,a=this.R_MINOR/n,o=Math.sqrt(1-a*a),r=Math.exp(-t.y/n),s=Math.PI/2-2*Math.atan(r),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(r*e)-s;return new H(s*i,t.x*i/n)}},_i={LonLat:xi,Mercator:wi,SphericalMercator:V},Ci=e({},W,{code:"EPSG:3395",projection:wi,transformation:G(bi=.5/(Math.PI*wi.R),.5,-bi,.5)}),Si=e({},W,{code:"EPSG:4326",projection:xi,transformation:G(1/180,1,-1/180,.5)}),ki=e({},Y,{projection:xi,transformation:G(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=Ci,Y.EPSG3857=U,Y.EPSG900913=Z,Y.EPSG4326=Si,Y.Simple=ki;var Ai=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[r(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[r(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}))}});qe.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(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=r(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&&r(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[r(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=r(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 a=this._zoomBoundLayers[n].options;t=void 0===a.minZoom?t:Math.min(t,a.minZoom),e=void 0===a.maxZoom?e:Math.max(e,a.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=Ai.extend({initialize:function(t,e){var i,n;if(p(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:r}),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}}),Li=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(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 a=O(n),o=O("shadow"===e&&i.shadowAnchor||i.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),a&&(t.style.width=a.x+"px",t.style.height=a.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"]}}),Di=Li.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 Di.imagePath||(Di.imagePath=this._detectIconPath()),(this.options.imagePath||Di.imagePath)+Li.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ae(t,"background-image")||ae(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Pi=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(),de(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&&ue(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,a=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=ye(i._icon),s=n.getPixelBounds(),l=n.getPixelOrigin(),c=N(s.min._subtract(l).add(o),s.max._subtract(l).subtract(o));c.contains(r)||(e=O((Math.max(c.max.x,r.x)-c.max.x)/(s.max.x-c.max.x)-(Math.min(c.min.x,r.x)-c.min.x)/(s.min.x-c.min.x),(Math.max(c.max.y,r.y)-c.max.y)/(s.max.y-c.max.y)-(Math.min(c.min.y,r.y)-c.min.y)/(s.min.y-c.min.y)).multiplyBy(a),n.panBy(e,{animate:!1}),this._draggable._newPos._add(e),this._draggable._startPos._add(e),be(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(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&&(A(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=ye(e._icon),a=e._map.layerPointToLatLng(n);i&&be(i,n),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){A(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Mi=Ai.extend({options:{icon:new Di,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){p(this,e),this._latlng=B(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=B(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||"")),de(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var a=t.icon.createShadow(this._shadow),o=!1;a!==this._shadow&&(this._removeShadow(),o=!0),a&&(de(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),re(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&re(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&be(this._icon,t),this._shadow&&be(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&&(de(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Pi&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Pi(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}}),Ii=Ai.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 p(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}}),Oi=Ii.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(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 Ii.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 z(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()}}),zi=Oi.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),p(this,i),this._latlng=B(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:Ii.prototype.setStyle,_project:function(){var t,e,i,n,a,o,r,s,l=this._latlng.lng,c=this._latlng.lat,h=this._map,d=h.options.crs;d.distance===W.distance?(t=Math.PI/180,e=this._mRadius/W.R/t,i=h.project([c+e,l]),n=h.project([c-e,l]),a=i.add(n).divideBy(2),o=h.unproject(a).lat,r=Math.acos((Math.cos(e*t)-Math.sin(c*t)*Math.sin(o*t))/(Math.cos(c*t)*Math.cos(o*t)))/t,!isNaN(r)&&0!==r||(r=e/Math.cos(Math.PI/180*c)),this._point=a.subtract(h.getPixelOrigin()),this._radius=isNaN(r)?0:a.x-h.project([o,l-r]).x,this._radiusY=a.y-i.y):(s=d.unproject(d.project(this._latlng).subtract([this._mRadius,0])),this._point=h.latLngToLayerPoint(this._latlng),this._radius=this._point.x-h.latLngToLayerPoint(s).x),this._updateBounds()}}),Ni=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(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,a=null,o=pi,r=0,s=this._parts.length;r<s;r++)for(var l=this._parts[r],c=1,h=l.length;c<h;c++){var d=o(t,e=l[c-1],i=l[c],!0);d<n&&(n=d,a=o(t,e,i))}return a&&(a.distance=Math.sqrt(n)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,a,o,r,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(a=s[t],o=s[t+1],e<(n+=i=a.distanceTo(o)))return r=(n-e)/i,this._map.layerPointToLatLng([o.x-r*(o.x-a.x),o.y-r*(o.y-a.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(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 fi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=fi(t),n=0,a=t.length;n<a;n++)i?(e[n]=B(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new z;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 M(t,t);this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n,a,o=t[0]instanceof H,r=t.length;if(o){for(a=[],n=0;n<r;n++)a[n]=this._map.latLngToLayerPoint(t[n]),i.extend(a[n]);e.push(a)}else for(n=0;n<r;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,a,o=this._parts,r=0,s=0,l=this._rings.length;r<l;r++)for(e=0,i=(a=this._rings[r]).length;e<i-1;e++)(n=hi(a[e],a[e+1],t,e,!0))&&(o[s]=o[s]||[],o[s].push(n[0]),n[1]===a[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,a,o,r,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,a=(r=(s=this._parts[i]).length)-1;n<r;a=n++)if((e||0!==n)&&ci(t,s[a],s[n])<=l)return!0;return!1}});Ni._flat=gi;var Ri=Ni.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
60,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,a,o,r,s,l,c=this._rings[0],h=c.length;if(!h)return null;for(t=o=r=s=0,e=h-1;t<h;e=t++)i=c[t],n=c[e],a=i.y*n.x-n.y*i.x,r+=(i.x+n.x)*a,s+=(i.y+n.y)*a,o+=3*a;return l=0===o?c[0]:[r/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=Ni.prototype._convertLatLngs.call(this,t),i=e.length;return 2<=i&&e[0]instanceof H&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Ni.prototype._setLatLngs.call(this,t),fi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new M(e,e);t=new z(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,a=0,o=this._rings.length;a<o;a++)(n=vi(this._rings[a],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,a,o,r,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,s=this._parts.length;a<s;a++)for(o=0,r=(l=(e=this._parts[a]).length)-1;o<l;r=o++)i=e[o],n=e[r],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||Ni.prototype._containsPoint.call(this,t,!0)}}),Fi=Ei.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,a=v(t)?t:t.features;if(a){for(e=0,i=a.length;e<i;e++)((n=a[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 r=Hi(t,o);return r?(r.feature=$i(t),r.defaultOptions=r.options,this.resetStyle(r),o.onEachFeature&&o.onEachFeature(t,r),this.addLayer(r)):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 Hi(t,e){var i,n,a,o,r="Feature"===t.type?t.geometry:t,s=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||ji;if(!s&&!r)return null;switch(r.type){case"Point":return Bi(c,t,i=h(s),e);case"MultiPoint":for(a=0,o=s.length;a<o;a++)i=h(s[a]),l.push(Bi(c,t,i,e));return new Ei(l);case"LineString":case"MultiLineString":return n=Yi(s,"LineString"===r.type?0:1,h),new Ni(n,e);case"Polygon":case"MultiPolygon":return n=Yi(s,"Polygon"===r.type?1:2,h),new Ri(n,e);case"GeometryCollection":for(a=0,o=r.geometries.length;a<o;a++){var d=Hi({geometry:r.geometries[a],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Ei(l);default:throw new Error("Invalid GeoJSON object.")}}function Bi(t,e,i,n){return t?t(e,i):new Mi(i,n&&n.markersInheritOptions&&n)}function ji(t){return new H(t[1],t[0],t[2])}function Yi(t,e,i){for(var n,a=[],o=0,r=t.length;o<r;o++)n=e?Yi(t[o],e-1,i):(i||ji)(t[o]),a.push(n);return a}function Wi(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function Xi(t,e,i,n){for(var a=[],o=0,r=t.length;o<r;o++)a.push(e?Xi(t[o],e-1,i,n):Wi(t[o],n));return!e&&i&&a.push(a[0]),a}function Vi(t,i){return t.feature?e({},t.feature,{geometry:i}):$i(i)}function $i(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Gi={toGeoJSON:function(t){return Vi(this,{type:"Point",coordinates:Wi(this.getLatLng(),t)})}};function qi(t,e){return new Fi(t,e)}Mi.include(Gi),zi.include(Gi),Oi.include(Gi),Ni.include({toGeoJSON:function(t){var e=!fi(this._latlngs);return Vi(this,{type:(e?"Multi":"")+"LineString",coordinates:Xi(this._latlngs,e?1:0,!1,t)})}}),Ri.include({toGeoJSON:function(t){var e=!fi(this._latlngs),i=e&&!fi(this._latlngs[0]),n=Xi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Vi(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)})),Vi(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 a,o;e.toGeoJSON&&(a=e.toGeoJSON(t),i?n.push(a.geometry):"FeatureCollection"===(o=$i(a)
vendor: 5,196 bytes, line 60
60).type?n.push.apply(n,o.features):n.push(o))})),i?Vi(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Ui=qi,Zi=Ai.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),p(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(de(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){re(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");de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=a(this.fire,this,"load"),e.onerror=a(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 z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();be(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)}}),Ki=Zi.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(de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=a(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 r=0;r<this._url.length;r++){var s=oe("source");s.src=this._url[r],e.appendChild(s)}}}}),Ji=Zi.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),this.options.className&&de(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),Qi=Ai.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(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(a(re,void 0,this._container),200)):re(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(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}
60,_prepareOpen:function(t,e,i){if(e instanceof Ai||(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,a;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=O(this.options.offset),i=this._getAnchor(),this._zoomAnimated?be(this._container,t.add(i)):e=e.add(t).add(i),n=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=n+"px",this._container.style.left=a+"px")},_getAnchor:function(){return[0,0]}}),tn=Qi.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){Qi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",Oe))},onRemove:function(t){Qi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",Oe))},getEvents:function(){var t=Qi.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),Ne(i),ze(this._contentNode),Te(i,"contextmenu",Oe),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,a=this.options.maxHeight,o="leaflet-popup-scrolled";a&&a<n?(e.height=a+"px",de(t,o)):ue(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();be(this._container,e.add(i))},_adjustPan:function(){var t,e,i,n,a,o,r,s,l,c,h,d;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,e=parseInt(ae(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,(a=new M(this._containerLeft,-i-this._containerBottom))._add(ye(this._container)),o=t.layerPointToContainerPoint(a),r=O(this.options.autoPanPadding),s=O(this.options.autoPanPaddingTopLeft||r),l=O(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),d=h=0,o.x+n+l.x>c.x&&(h=o.x+n-c.x+l.x),o.x-h-s.x<0&&(h=o.x-s.x),o.y+i+l.y>c.y&&(d=o.y+i-c.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(h||d)&&t.fire("autopanstart").panBy([h,d]))},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});qe.mergeOptions({closePopupOnClick:!0}),qe.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}}),Ai.include({bindPopup:function(t,e){return t instanceof tn?(p(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 Ii?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)}
vendor: 36,562 bytes, line 60
60,_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var en=Qi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Qi.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){Qi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return St&&!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,a=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),r=this.options.direction,s=n.offsetWidth,l=n.offsetHeight,c=O(this.options.offset),h=this._getAnchor(),d="top"===r?(e=s/2,l):"bottom"===r?(e=s/2,0):(e="center"===r?s/2:"right"===r?0:"left"===r?s:o.x<a.x?(r="right",0):(r="left",s+2*(c.x+h.x)),l/2);t=t.subtract(O(e,d,!0)).add(c).add(h),ue(n,"leaflet-tooltip-right"),ue(n,"leaflet-tooltip-left"),ue(n,"leaflet-tooltip-top"),ue(n,"leaflet-tooltip-bottom"),de(n,"leaflet-tooltip-"+r),be(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 O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});qe.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}}),Ai.include({bindTooltip:function(t,e){return t instanceof en?(p(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),St&&(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&&(de(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&&(ue(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=Li.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=O(n.bgPos),i.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});Li.Default=Di;var an=Ai.extend({options:{tileSize:256,opacity:1,updateWhenIdle:yt,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){p(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(),re(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 M?t:new M(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),a=0,o=i.length;a<o;a++)e=i[a].style.zIndex,i[a]!==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 a,o=this._tiles[n];o.current&&o.loaded&&(a=Math.min(1,(t-o.loaded)/200),ge(o.el,a),a<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0))}i&&!this._noPrune&&this._pruneTiles(),e&&(A(this._fadeFrame),this._fadeFrame=k(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)):(re(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],a=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=a.project(a.unproject(a.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,a.getCenter(),a.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)re(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 a=Math.floor(t/2),o=Math.floor(e/2),r=i-1,s=new M(+a,+o);s.z=+r;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),n<r&&this._retainParent(a,o,r,n))},_retainChildren:function(t,e,i,n){for(var a=2*t;a<2*t+2;a++)for(var o=2*e;o<2*e+2;o++){var r=new M(a,o);r.z=i+1;var s=this._tileCoordsToKey(r),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(a,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 a=Math.round(e),o=(a=void 0!==this.options.maxZoom&&a>this.options.maxZoom||void 0!==this.options.minZoom&&a<this.options.minZoom?void 0:this._clampZoom(a),this.options.updateWhenZooming&&a!==this._tileZoom);n&&!o||(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==a&&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),a=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();bt?ve(t.el,a,n):be(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),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),a=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new z(a.subtract(o),a.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),a=this._pxBoundsToTileRange(n),o=a.getCenter(),r=[],s=this.options.keepBuffer,l=new z(a.getBottomLeft().subtract([s,-s]),a.getTopRight().add([s,-s]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;h.z===this._tileZoom&&l.contains(new M(h.x,h.y))||(this._tiles[c].current=!1)}if(1<Math.abs(i-this._tileZoom))this._setView(t,i);else{for(var d=a.min.y;d<=a.max.y;d++)for(var u=a.min.x;u<=a.max.x;u++){var p,f=new M(u,d);f.z=this._tileZoom,this._isValidTile(f)&&((p=this._tiles[this._tileCoordsToKey(f)])?p.current=!0:r.push(f))}if(r.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(u=0;u<r.length;u++)this._addTile(r[u],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),a=n.add(i);return[e.unproject(n,t.z),e.unproject(a,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 M(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(re(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(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),at&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&k(a(this._tileReady,this,t,null,o)),be(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),A(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(de(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?k(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(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 z(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=an.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=p(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("")),at||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",a(this._tileOnLoad,this,e,i)),Te(i,"error",a(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(a(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=y,re(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",y),an.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return an.prototype._tileReady.call(this,t,e,i)}});function rn(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 a in i)a in this.options||(n[a]=i[a]);var o=(i=p(this,i)).detectRetina&&Tt?2:1,r=this.getTileSize();n.width=r.x*o,n.height=r.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=N(i.project(e[0]),i.project(e[1])),a=n.min,o=n.max,r=(1.3<=this._wmsVersion&&this._crs===Si?[a.y,a.x,o.y,o.x]:[a.x,a.y,o.x,o.y]).join(","),s=on.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});on.WMS=sn,rn.wms=function(t,e){return new sn(t,e)};var ln=Ai.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&de(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=ye(this._container),a=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=this._map.project(t,e).subtract(o),s=a.multiplyBy(-i).add(n).add(a).subtract(r);bt?ve(this._container,s,i):be(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 z(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(){A(this._redrawRequest),delete this._ctx,re(this._container),Le(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,be(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[r(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[r(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=[],a=0;a<i.length;a++){if(e=Number(i[a]),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||k(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new z,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,a,o,r=t._parts,s=r.length,l=this._ctx;if(s){for(l.beginPath(),i=0;i<s;i++){for(n=0,a=r[i].length;n<a;n++)o=r[i][n],l[n?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){var e,i,n,a;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(a=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,a)),i.beginPath(),i.arc(e.x,e.y/a,n,0,2*Math.PI,!1),1!=a&&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),a=this._drawFirst;a;a=a.next)(e=a.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&&(ue(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&&(de(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(a((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 hn(t){return Lt?new cn(t):null}var dn=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">')}}}(),un={_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=dn("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=dn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(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;re(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,a=t._container;a.stroked=!!n.stroke,a.filled=!!n.fill,n.stroke?(e=e||(t._stroke=dn("stroke")),a.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&&(a.removeChild(e),t._stroke=null),n.fill?(i=i||(t._fill=dn("fill")),a.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(a.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)}},pn=Pt?dn:K,fn=ln.extend({getEvents:function(){var t=ln.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){re(this._container),Le(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)),be(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=pn("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){re(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(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,J(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 ",a=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,a)},_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 Dt||Pt?new fn(t):null}Pt&&fn.include(un),qe.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&&hn(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()]}});fn.create=pn,fn.pointsToPath=J,Fi.geometryToLayer=Hi,Fi.coordsToLatLng=ji,Fi.coordsToLatLngs=Yi,Fi.latLngToCoords=Wi,Fi.latLngsToCoords=Xi,Fi.getFeature=Vi,Fi.asFeature=$i,qe.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(){Le(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){re(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(),Gt(),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),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),i=e.getSize();be(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(re(this._box),ue(this._container,"leaflet-crosshair")),qt(),we(),Le(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(a(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()}});qe.addInitHook("addHandler","boxZoom",vn),qe.mergeOptions({doubleClickZoom:!0});var bn=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,a=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});qe.addInitHook("addHandler","doubleClickZoom",bn),qe.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yn=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))),de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ue(this._map._container,"leaflet-grab"),ue(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=N(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,a=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,r=Math.abs(a+i)<Math.abs(o+i)?a:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e,i,n,a,o,r,s,l,c,h=this._map,d=h.options,u=!d.inertia||this._times.length<2;h.fire("dragend",t),u?h.fire("moveend"):(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,n=d.easeLinearity,o=(a=e.multiplyBy(n/i)).distanceTo([0,0]),r=Math.min(d.inertiaMaxSpeed,o),s=a.multiplyBy(r/o),l=r/(d.inertiaDeceleration*n),(c=s.multiplyBy(-l/2).round()).x||c.y?(c=h._limitOffset(c,h.options.maxBounds),k((function(){h.panBy(c,{duration:l,easeLinearity:n,noMoveStart:!0,animate:!0})}
60))):h.fire("moveend"))}});qe.addInitHook("addHandler","dragging",yn),qe.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(),Le(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,a=i.left.length;n<a;n++)e[i.left[n]]=[-1*t,0];for(n=0,a=i.right.length;n<a;n++)e[i.right[n]]=[t,0];for(n=0,a=i.down.length;n<a;n++)e[i.down[n]]=[0,t];for(n=0,a=i.up.length;n<a;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},i=this.keyCodes,n=0,a=i.zoomIn.length;n<a;n++)e[i.zoomIn[n]]=t;for(n=0,a=i.zoomOut.length;n<a;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Le(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=O(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)}}});qe.addInitHook("addHandler","keyboard",xn),qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wn=ei.extend({addHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Le(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=je(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(a(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),a=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(a/i)*i:a,r=t._limitZoom(e+(0<this._delta?o:-o))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});qe.addInitHook("addHandler","scrollWheelZoom",wn),qe.mergeOptions({tap:!0,tapTolerance:15});var _n=ei.extend({addHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Le(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 M(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&de(i,"leaflet-active"),this._holdTimeout=setTimeout(a((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),Le(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()&&ue(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 M(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)}});
vendor: 4,065 bytes, line 60
60!St||Ct&&!dt||qe.addInitHook("addHandler","tap",_n),qe.mergeOptions({touchZoom:St&&!ot,bounceAtZoomLimits:!0});var Cn=ei.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),Le(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 r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),A(this._animRequest);var s=a(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=k(s,this,!0),Re(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,A(this._animRequest),Le(document,"touchmove",this._onTouchMove,this),Le(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}});qe.addInitHook("addHandler","touchZoom",Cn),qe.BoxZoom=vn,qe.DoubleClickZoom=bn,qe.Drag=yn,qe.Keyboard=xn,qe.ScrollWheelZoom=wn,qe.Tap=_n,qe.TouchZoom=Cn,t.version="1.7.1",t.Control=Ze,t.control=Ue,t.Browser=It,t.Evented=P,t.Mixin=ni,t.Util=T,t.Class=E,t.Handler=ei,t.extend=e,t.bind=a,t.stamp=r,t.setOptions=p,t.DomEvent=$e,t.DomUtil=Ae,t.PosAnimation=Ge,t.Draggable=si,t.LineUtil=mi,t.PolyUtil=yi,t.Point=M,t.point=O,t.Bounds=z,t.bounds=N,t.Transformation=$,t.transformation=G,t.Projection=_i,t.LatLng=H,t.latLng=B,t.LatLngBounds=R,t.latLngBounds=F,t.CRS=Y,t.GeoJSON=Fi,t.geoJSON=qi,t.geoJson=Ui,t.Layer=Ai,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=Zi,t.imageOverlay=function(t,e,i){return new Zi(t,e,i)},t.VideoOverlay=Ki,t.videoOverlay=function(t,e,i){return new Ki(t,e,i)},t.SVGOverlay=Ji,t.svgOverlay=function(t,e,i){return new Ji(t,e,i)},t.DivOverlay=Qi,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=Li,t.icon=function(t){return new Li(t)},t.DivIcon=nn,t.divIcon=function(t){return new nn(t)},t.Marker=Mi,t.marker=function(t,e){return new Mi(t,e)},t.TileLayer=on,t.tileLayer=rn,t.GridLayer=an,t.gridLayer=function(t){return new an(t)},t.SVG=fn,t.svg=gn,t.Renderer=ln,t.Canvas=cn,t.canvas=hn,t.Path=Ii,t.CircleMarker=Oi,t.circleMarker=function(t,e){return new Oi(t,e)},t.Circle=zi,t.circle=function(t,e,i){return new zi(t,e,i)},t.Polyline=Ni,t.polyline=function(t,e){return new Ni(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=qe,t.map=function(t,e){return new qe(t,e)};var Sn=window.L;t.noConflict=function(){return window.L=Sn,this},window.L=t}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.