110 lines
2.0 MiB
110 lines
2.0 MiB
/*!
|
||
* jQuery JavaScript Library v3.6.0
|
||
* https://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright OpenJS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://jquery.org/license
|
||
*
|
||
* Date: 2021-03-02T17:08Z
|
||
*/
|
||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var i=[],n=Object.getPrototypeOf,a=i.slice,r=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},s=i.push,o=i.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),f={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,i){var n,a,r=(i=i||g).createElement("script");if(r.text=e,t)for(n in v)(a=t[n]||t.getAttribute&&t.getAttribute(n))&&r.setAttribute(n,a);i.head.appendChild(r).parentNode.removeChild(r)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var x="3.6.0",_=function(e,t){return new _.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,i=b(e);return!p(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:x,constructor:_,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,i){return e.call(t,i,t)})))},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(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},_.extend=_.fn.extend=function(){var e,t,i,n,a,r,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||p(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(c&&n&&(_.isPlainObject(n)||(a=Array.isArray(n)))?(i=s[t],r=a&&!Array.isArray(i)?[]:a||_.isPlainObject(i)?i:{},a=!1,s[t]=_.extend(c,r,n)):void 0!==n&&(s[t]=n));return s},_.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e))&&(!(t=n(e))||"function"==typeof(i=u.call(t,"constructor")&&t.constructor)&&d.call(i)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){y(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(w(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(w(Object(e))?_.merge(i,"string"==typeof e?[e]:e):s.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,a=e.length;n<i;n++)e[a++]=t[n];return e.length=a,e},grep:function(e,t,i){for(var n=[],a=0,r=e.length,s=!i;a<r;a++)!t(e[a],a)!==s&&n.push(e[a]);return n},map:function(e,t,i){var n,a,s=0,o=[];if(w(e))for(n=e.length;s<n;s++)null!=(a=t(e[s],s,i))&&o.push(a);else for(s in e)null!=(a=t(e[s],s,i))&&o.push(a);return r(o)},guid:1,support:f}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=i[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var k=
|
||
/*!
|
||
* Sizzle CSS Selector Engine v2.3.6
|
||
* https://sizzlejs.com/
|
||
*
|
||
* Copyright JS Foundation and other contributors
|
||
* Released under the MIT license
|
||
* https://js.foundation/
|
||
*
|
||
* Date: 2021-02-16
|
||
*/
|
||
function(e){var t,i,n,a,r,s,o,l,c,u,d,h,f,p,m,g,v,y,b,x="sizzle"+1*new Date,_=e.document,w=0,k=0,M=le(),L=le(),S=le(),A=le(),T=function(e,t){return e===t&&(d=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,O=D.push,P=D.push,Y=D.slice,I=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",H="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\[[\\x20\\t\\r\\n\\f]*("+H+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+N+"*\\]",R=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(N+"+","g"),B=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]*"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp(N+"|>"),X=new RegExp(R),U=new RegExp("^"+H+"$"),$={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){h()},se=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(D=Y.call(_.childNodes),_.childNodes),D[_.childNodes.length].nodeType}catch(e){P={apply:D.length?function(e,t){O.apply(e,Y.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,a){var r,o,c,u,d,p,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return n;if(!a&&(h(t),t=t||f,m)){if(11!==_&&(d=Q.exec(e)))if(r=d[1]){if(9===_){if(!(c=t.getElementById(r)))return n;if(c.id===r)return n.push(c),n}else if(y&&(c=y.getElementById(r))&&b(t,c)&&c.id===r)return n.push(c),n}else{if(d[2])return P.apply(n,t.getElementsByTagName(e)),n;if((r=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(r)),n}if(i.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===_&&(q.test(e)||V.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(ne,ae):t.setAttribute("id",u=x)),o=(p=s(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+be(p[o]);v=p.join(",")}try{return P.apply(n,y.querySelectorAll(v)),n}catch(t){A(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,n,a)}function le(){var e=[];return function t(i,a){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=a}}function ce(e){return e[x]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),a=i.length;a--;)n.attrHandle[i[a]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(i,n){for(var a,r=e([],i.length,t),s=r.length;s--;)i[a=r[s]]&&(i[a]=!(n[a]=i[a]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},r=oe.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!G.test(t||i&&i.nodeName||"HTML")},h=oe.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:_;return s!=f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,m=!r(f),_!=f&&(a=f.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",re,!1):a.attachEvent&&a.attachEvent("onunload",re)),i.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(f.getElementsByClassName),i.getById=ue((function(e){return p.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,n,a,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(a=t.getElementsByName(e),n=0;r=a[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[a++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=J.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+j+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){i.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",R)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),b=t||J.test(p.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==f||e.ownerDocument==_&&b(_,e)?-1:t==f||t.ownerDocument==_&&b(_,t)?1:u?I(u,e)-I(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,a=e.parentNode,r=t.parentNode,s=[e],o=[t];if(!a||!r)return e==f?-1:t==f?1:a?-1:r?1:u?I(u,e)-I(u,t):0;if(a===r)return he(e,t);for(i=e;i=i.parentNode;)s.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;s[n]===o[n];)n++;return n?he(s[n],o[n]):s[n]==_?-1:o[n]==_?1:0},f):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(h(e),i.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var a=n.attrHandle[t.toLowerCase()],r=a&&C.call(n.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==r?r:i.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},oe.escape=function(e){return(e+"").replace(ne,ae)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],a=0,r=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[r++];)t===e[r]&&(a=n.push(r));for(;a--;)e.splice(n[a],1)}return u=null,e},a=oe.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=a(t);return i},n=oe.selectors={cacheLength:50,createPseudo:ce,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&X.test(i)&&(t=s(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=M[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+N+"|$)"))&&M(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var a=oe.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&a.indexOf(i)>-1:"$="===t?i&&a.slice(-i.length)===i:"~="===t?(" "+a.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,a){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,h,f,p,m=r!==s?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!l&&!o,b=!1;if(g){if(r){for(;m;){for(h=t;h=h[m];)if(o?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){for(b=(f=(c=(u=(d=(h=g)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[w,f,b];break}}else if(y&&(b=f=(c=(u=(d=(h=t)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((o?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[w,b]),h!==t)););return(b-=a)===n||b%n==0&&b/n>=0}}},PSEUDO:function(e,t){var i,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[x]?a(t):a.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var n,r=a(e,t),s=r.length;s--;)e[n=I(e,r[s])]=!(i[n]=r[s])})):function(e){return a(e,0,i)}):a}},pseudos:{not:ce((function(e){var t=[],i=[],n=o(e.replace(B,"$1"));return n[x]?ce((function(e,t,i,a){for(var r,s=n(e,null,a,[]),o=e.length;o--;)(r=s[o])&&(e[o]=!(t[o]=r))})):function(e,a,r){return t[0]=e,n(t,null,r,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return oe(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,i){return[i<0?i+t:i]})),even:ge((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:ge((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:ge((function(e,t,i){for(var n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e})),gt:ge((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function xe(e,t,i){var n=t.dir,a=t.next,r=a||n,s=i&&"parentNode"===r,o=k++;return t.first?function(t,i,a){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,a);return!1}:function(t,i,l){var c,u,d,h=[w,o];if(l){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||s)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=u[r])&&c[0]===w&&c[1]===o)return h[2]=c[2];if(u[r]=h,h[2]=e(t,i,l))return!0}return!1}}function _e(e){return e.length>1?function(t,i,n){for(var a=e.length;a--;)if(!e[a](t,i,n))return!1;return!0}:e[0]}function we(e,t,i,n,a){for(var r,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(r=e[o])&&(i&&!i(r,n,a)||(s.push(r),c&&t.push(o)));return s}function ke(e,t,i,n,a,r){return n&&!n[x]&&(n=ke(n)),a&&!a[x]&&(a=ke(a,r)),ce((function(r,s,o,l){var c,u,d,h=[],f=[],p=s.length,m=r||function(e,t,i){for(var n=0,a=t.length;n<a;n++)oe(e,t[n],i);return i}(t||"*",o.nodeType?[o]:o,[]),g=!e||!r&&t?m:we(m,h,e,o,l),v=i?a||(r?e:p||n)?[]:s:g;if(i&&i(g,v,o,l),n)for(c=we(v,f),n(c,[],o,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(g[f[u]]=d));if(r){if(a||e){if(a){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);a(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=a?I(r,d):h[u])>-1&&(r[c]=!(s[c]=d))}}else v=we(v===s?v.splice(p,v.length):v),a?a(null,s,v,l):P.apply(s,v)}))}function Me(e){for(var t,i,a,r=e.length,s=n.relative[e[0].type],o=s||n.relative[" "],l=s?1:0,u=xe((function(e){return e===t}),o,!0),d=xe((function(e){return I(t,e)>-1}),o,!0),h=[function(e,i,n){var a=!s&&(n||i!==c)||((t=i).nodeType?u(e,i,n):d(e,i,n));return t=null,a}];l<r;l++)if(i=n.relative[e[l].type])h=[xe(_e(h),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[x]){for(a=++l;a<r&&!n.relative[e[a].type];a++);return ke(l>1&&_e(h),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),i,l<a&&Me(e.slice(l,a)),a<r&&Me(e=e.slice(a)),a<r&&be(e))}h.push(i)}return _e(h)}return ye.prototype=n.filters=n.pseudos,n.setFilters=new ye,s=oe.tokenize=function(e,t){var i,a,r,s,o,l,c,u=L[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=n.preFilter;o;){for(s in i&&!(a=W.exec(o))||(a&&(o=o.slice(a[0].length)||o),l.push(r=[])),i=!1,(a=V.exec(o))&&(i=a.shift(),r.push({value:i,type:a[0].replace(B," ")}),o=o.slice(i.length)),n.filter)!(a=$[s].exec(o))||c[s]&&!(a=c[s](a))||(i=a.shift(),r.push({value:i,type:s,matches:a}),o=o.slice(i.length));if(!i)break}return t?o.length:o?oe.error(e):L(e,l).slice(0)},o=oe.compile=function(e,t){var i,a=[],r=[],o=S[e+" "];if(!o){for(t||(t=s(e)),i=t.length;i--;)(o=Me(t[i]))[x]?a.push(o):r.push(o);o=S(e,function(e,t){var i=t.length>0,a=e.length>0,r=function(r,s,o,l,u){var d,p,g,v=0,y="0",b=r&&[],x=[],_=c,k=r||a&&n.find.TAG("*",u),M=w+=null==_?1:Math.random()||.1,L=k.length;for(u&&(c=s==f||s||u);y!==L&&null!=(d=k[y]);y++){if(a&&d){for(p=0,s||d.ownerDocument==f||(h(d),o=!m);g=e[p++];)if(g(d,s||f,o)){l.push(d);break}u&&(w=M)}i&&((d=!g&&d)&&v--,r&&b.push(d))}if(v+=y,i&&y!==v){for(p=0;g=t[p++];)g(b,x,s,o);if(r){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=E.call(l));x=we(x)}P.apply(l,x),u&&!r&&x.length>0&&v+t.length>1&&oe.uniqueSort(l)}return u&&(w=M,c=_),b};return i?ce(r):r}(r,a)),o.selector=e}return o},l=oe.select=function(e,t,i,a){var r,l,c,u,d,h="function"==typeof e&&e,f=!a&&s(e=h.selector||e);if(i=i||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=$.needsContext.test(e)?0:l.length;r--&&(c=l[r],!n.relative[u=c.type]);)if((d=n.find[u])&&(a=d(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=a.length&&be(l)))return P.apply(i,a),i;break}}return(h||o(e,f))(a,t,!m,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=x.split("").sort(T).join("")===x,i.detectDuplicates=!!d,h(),i.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(j,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),oe}(e);_.find=k,_.expr=k.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=k.uniqueSort,_.text=k.getText,_.isXMLDoc=k.isXML,_.contains=k.contains,_.escapeSelector=k.escape;var M=function(e,t,i){for(var n=[],a=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&_(e).is(i))break;n.push(e)}return n},L=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},S=_.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,t,i){return p(t)?_.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?_.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?_.grep(e,(function(e){return o.call(t,e)>-1!==i})):_.filter(t,e,i)}_.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?_.find.matchesSelector(n,e)?[n]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,i,n=this.length,a=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<n;t++)if(_.contains(a[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)_.find(e,a[t],i);return n>1?_.uniqueSort(i):i},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&S.test(e)?_(e):e||[],!1).length}});var D,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,i){var n,a;if(!e)return this;if(i=i||D,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),T.test(n[1])&&_.isPlainObject(t))for(n in t)p(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(a=g.getElementById(n[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==i.ready?i.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,D=_(g);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,a=this.length,r=[],s="string"!=typeof e&&_(e);if(!S.test(e))for(;n<a;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&_.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(r.length>1?_.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?o.call(_(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return M(e,"parentNode")},parentsUntil:function(e,t,i){return M(e,"parentNode",i)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return M(e,"nextSibling")},prevAll:function(e){return M(e,"previousSibling")},nextUntil:function(e,t,i){return M(e,"nextSibling",i)},prevUntil:function(e,t,i){return M(e,"previousSibling",i)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(i,n){var a=_.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=_.filter(n,a)),this.length>1&&(P[e]||_.uniqueSort(a),O.test(e)&&a.reverse()),this.pushStack(a)}}));var I=/[^\x20\t\r\n\f]+/g;function j(e){return e}function N(e){throw e}function H(e,t,i,n){var a;try{e&&p(a=e.promise)?a.call(e).done(t).fail(i):e&&p(a=e.then)?a.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(I)||[],(function(e,i){t[i]=!0})),t}(e):_.extend({},e);var t,i,n,a,r=[],s=[],o=-1,l=function(){for(a=a||e.once,n=t=!0;s.length;o=-1)for(i=s.shift();++o<r.length;)!1===r[o].apply(i[0],i[1])&&e.stopOnFalse&&(o=r.length,i=!1);e.memory||(i=!1),t=!1,a&&(r=i?[]:"")},c={add:function(){return r&&(i&&!t&&(o=r.length-1,s.push(i)),function t(i){_.each(i,(function(i,n){p(n)?e.unique&&c.has(n)||r.push(n):n&&n.length&&"string"!==b(n)&&t(n)}))}(arguments),i&&!t&&l()),this},remove:function(){return _.each(arguments,(function(e,t){for(var i;(i=_.inArray(t,r,i))>-1;)r.splice(i,1),i<=o&&o--})),this},has:function(e){return e?_.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=s=[],r=i="",this},disabled:function(){return!r},lock:function(){return a=s=[],i||t||(r=i=""),this},locked:function(){return!!a},fireWith:function(e,i){return a||(i=[e,(i=i||[]).slice?i.slice():i],s.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},_.extend({Deferred:function(t){var i=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(t){_.each(i,(function(i,n){var a=p(e[n[4]])&&e[n[4]];r[n[1]]((function(){var e=a&&a.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(t,n,a){var r=0;function s(t,i,n,a){return function(){var o=this,l=arguments,c=function(){var e,c;if(!(t<r)){if((e=n.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,p(c)?a?c.call(e,s(r,i,j,a),s(r,i,N,a)):(r++,c.call(e,s(r,i,j,a),s(r,i,N,a),s(r,i,j,i.notifyWith))):(n!==j&&(o=void 0,l=[e]),(a||i.resolveWith)(o,l))}},u=a?c:function(){try{c()}catch(e){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(e,u.stackTrace),t+1>=r&&(n!==N&&(o=void 0,l=[e]),i.rejectWith(o,l))}};t?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),e.setTimeout(u))}}return _.Deferred((function(e){i[0][3].add(s(0,e,p(a)?a:j,e.notifyWith)),i[1][3].add(s(0,e,p(t)?t:j)),i[2][3].add(s(0,e,p(n)?n:N))})).promise()},promise:function(e){return null!=e?_.extend(e,a):a}},r={};return _.each(i,(function(e,t){var s=t[2],o=t[5];a[t[1]]=s.add,o&&s.add((function(){n=o}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith})),a.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,i=t,n=Array(i),r=a.call(arguments),s=_.Deferred(),o=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?a.call(arguments):i,--t||s.resolveWith(n,r)}};if(t<=1&&(H(e,s.done(o(i)).resolve,s.reject,!t),"pending"===s.state()||p(r[i]&&r[i].then)))return s.then();for(;i--;)H(r[i],o(i),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},_.readyException=function(t){e.setTimeout((function(){throw t}))};var R=_.Deferred();function z(){g.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),_.ready()}_.fn.ready=function(e){return R.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||R.resolveWith(g,[_]))}}),_.ready.then=R.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(_.ready):(g.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var B=function(e,t,i,n,a,r,s){var o=0,l=e.length,c=null==i;if("object"===b(i))for(o in a=!0,i)B(e,t,o,i[o],!0,r,s);else if(void 0!==n&&(a=!0,p(n)||(s=!0),c&&(s?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(_(e),i)})),t))for(;o<l;o++)t(e[o],i,s?n:n.call(e[o],o,t(e[o],i)));return a?e:c?t.call(e):l?t(e[0],i):r},W=/^-ms-/,V=/-([a-z])/g;function q(e,t){return t.toUpperCase()}function X(e){return e.replace(W,"ms-").replace(V,q)}var U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function $(){this.expando=_.expando+$.uid++}$.uid=1,$.prototype={cache:function(e){var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,a=this.cache(e);if("string"==typeof t)a[X(t)]=i;else for(n in t)a[X(n)]=t[n];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(X):(t=X(t))in n?[t]:t.match(I)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||_.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var G=new $,Z=new $,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Q(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:K.test(e)?JSON.parse(e):e)}(i)}catch(e){}Z.set(e,t,i)}else i=void 0;return i}_.extend({hasData:function(e){return Z.hasData(e)||G.hasData(e)},data:function(e,t,i){return Z.access(e,t,i)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,i){return G.access(e,t,i)},_removeData:function(e,t){G.remove(e,t)}}),_.fn.extend({data:function(e,t){var i,n,a,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(a=Z.get(r),1===r.nodeType&&!G.get(r,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=X(n.slice(5)),Q(r,n,a[n]));G.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){Z.set(this,e)})):B(this,(function(t){var i;if(r&&void 0===t)return void 0!==(i=Z.get(r,e))||void 0!==(i=Q(r,e))?i:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),_.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=G.get(e,t),i&&(!n||Array.isArray(i)?n=G.access(e,t,_.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=_.queue(e,t),n=i.length,a=i.shift(),r=_._queueHooks(e,t);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===t&&i.unshift("inprogress"),delete r.stop,a.call(e,(function(){_.dequeue(e,t)}),r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return G.get(e,i)||G.access(e,i,{empty:_.Callbacks("once memory").add((function(){G.remove(e,[t+"queue",i])}))})}}),_.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?_.queue(this[0],e):void 0===t?this:this.each((function(){var i=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,a=_.Deferred(),r=this,s=this.length,o=function(){--n||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=G.get(r[s],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),a.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=g.documentElement,ae=function(e){return _.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(ae=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===_.css(e,"display")};function oe(e,t,i,n){var a,r,s=20,o=n?function(){return n.cur()}:function(){return _.css(e,t,"")},l=o(),c=i&&i[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+l)&&te.exec(_.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)_.style(e,t,u+c),(1-r)*(1-(r=o()/l||.5))<=0&&(s=0),u/=r;u*=2,_.style(e,t,u+c),i=i||[]}return i&&(u=+u||+l||0,a=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=a)),a}var le={};function ce(e){var t,i=e.ownerDocument,n=e.nodeName,a=le[n];return a||(t=i.body.appendChild(i.createElement(n)),a=_.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),le[n]=a,a)}function ue(e,t){for(var i,n,a=[],r=0,s=e.length;r<s;r++)(n=e[r]).style&&(i=n.style.display,t?("none"===i&&(a[r]=G.get(n,"display")||null,a[r]||(n.style.display="")),""===n.style.display&&se(n)&&(a[r]=ce(n))):"none"!==i&&(a[r]="none",G.set(n,"display",i)));for(r=0;r<s;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}_.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){se(this)?_(this).show():_(this).hide()}))}});var de,he,fe=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;de=g.createDocumentFragment().appendChild(g.createElement("div")),(he=g.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),de.appendChild(he),f.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="<option></option>",f.option=!!de.lastChild;var ge={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 ve(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?_.merge([e],i):i}function ye(e,t){for(var i=0,n=e.length;i<n;i++)G.set(e[i],"globalEval",!t||G.get(t[i],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,f.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function xe(e,t,i,n,a){for(var r,s,o,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((r=e[f])||0===r)if("object"===b(r))_.merge(h,r.nodeType?[r]:r);else if(be.test(r)){for(s=s||d.appendChild(t.createElement("div")),o=(pe.exec(r)||["",""])[1].toLowerCase(),l=ge[o]||ge._default,s.innerHTML=l[1]+_.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;_.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(n&&_.inArray(r,n)>-1)a&&a.push(r);else if(c=ae(r),s=ve(d.appendChild(r),"script"),c&&ye(s),i)for(u=0;r=s[u++];)me.test(r.type||"")&&i.push(r);return d}var _e=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function ke(){return!1}function Me(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,i,n,a,r){var s,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Le(e,o,i,n,t[o],r);return e}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=ke;else if(!a)return e;return 1===r&&(s=a,a=function(e){return _().off(e),s.apply(this,arguments)},a.guid=s.guid||(s.guid=_.guid++)),e.each((function(){_.event.add(this,t,a,n,i)}))}function Se(e,t,i){i?(G.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var n,r,s=G.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=a.call(arguments),G.set(this,t,s),n=i(this,t),this[t](),s!==(r=G.get(this,t))||n?G.set(this,t,!1):r={},s!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else s.length&&(G.set(this,t,{value:_.event.trigger(_.extend(s[0],_.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,t)&&_.event.add(e,t,we)}_.event={global:{},add:function(e,t,i,n,a){var r,s,o,l,c,u,d,h,f,p,m,g=G.get(e);if(U(e))for(i.handler&&(i=(r=i).handler,a=r.selector),a&&_.find.matchesSelector(ne,a),i.guid||(i.guid=_.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(I)||[""]).length;c--;)f=m=(o=_e.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f&&(d=_.event.special[f]||{},f=(a?d.delegateType:d.bindType)||f,d=_.event.special[f]||{},u=_.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&_.expr.match.needsContext.test(a),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),_.event.global[f]=!0)},remove:function(e,t,i,n,a){var r,s,o,l,c,u,d,h,f,p,m,g=G.hasData(e)&&G.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(f=m=(o=_e.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f){for(d=_.event.special[f]||{},h=l[f=(n?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!a&&m!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||_.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)_.event.remove(e,f+t[c],i,n,!0);_.isEmptyObject(l)&&G.remove(e,"handle events")}},dispatch:function(e){var t,i,n,a,r,s,o=new Array(arguments.length),l=_.event.fix(e),c=(G.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=_.event.handlers.call(this,l,c),t=0;(a=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,i=0;(r=a.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(n=((_.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,o))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,a,r,s,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},i=0;i<l;i++)void 0===s[a=(n=t[i]).selector+" "]&&(s[a]=n.needsContext?_(a,this).index(c)>-1:_.find(a,this,null,[c]).length),s[a]&&r.push(n);r.length&&o.push({elem:c,handlers:r})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&A(t,"input")&&G.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){_.event.special[e]={setup:function(){return Se(this,e,Me),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,a=e.relatedTarget,r=e.handleObj;return a&&(a===n||_.contains(n,a))||(e.type=r.origType,i=r.handler.apply(this,arguments),e.type=t),i}}})),_.fn.extend({on:function(e,t,i,n){return Le(this,e,t,i,n)},one:function(e,t,i,n){return Le(this,e,t,i,n,1)},off:function(e,t,i){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,_(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=ke),this.each((function(){_.event.remove(this,e,i,t)}))}});var Ae=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,Ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Ee(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var i,n,a,r,s,o;if(1===t.nodeType){if(G.hasData(e)&&(o=G.get(e).events))for(a in G.remove(t,"handle events"),o)for(i=0,n=o[a].length;i<n;i++)_.event.add(t,a,o[a][i]);Z.hasData(e)&&(r=Z.access(e),s=_.extend({},r),Z.set(t,s))}}function Ye(e,t){var i=t.nodeName.toLowerCase();"input"===i&&fe.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Ie(e,t,i,n){t=r(t);var a,s,o,l,c,u,d=0,h=e.length,m=h-1,g=t[0],v=p(g);if(v||h>1&&"string"==typeof g&&!f.checkClone&&Te.test(g))return e.each((function(a){var r=e.eq(a);v&&(t[0]=g.call(this,a,r.html())),Ie(r,t,i,n)}));if(h&&(s=(a=xe(t,e[0].ownerDocument,!1,e,n)).firstChild,1===a.childNodes.length&&(a=s),s||n)){for(l=(o=_.map(ve(a,"script"),Ee)).length;d<h;d++)c=a,d!==m&&(c=_.clone(c,!0,!0),l&&_.merge(o,ve(c,"script"))),i.call(e[d],c,d);if(l)for(u=o[o.length-1].ownerDocument,_.map(o,Oe),d=0;d<l;d++)c=o[d],me.test(c.type||"")&&!G.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Ce,""),c,u))}return e}function je(e,t,i){for(var n,a=t?_.filter(t,e):e,r=0;null!=(n=a[r]);r++)i||1!==n.nodeType||_.cleanData(ve(n)),n.parentNode&&(i&&ae(n)&&ye(ve(n,"script")),n.parentNode.removeChild(n));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,a,r,s,o=e.cloneNode(!0),l=ae(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(s=ve(o),n=0,a=(r=ve(e)).length;n<a;n++)Ye(r[n],s[n]);if(t)if(i)for(r=r||ve(e),s=s||ve(o),n=0,a=r.length;n<a;n++)Pe(r[n],s[n]);else Pe(e,o);return(s=ve(o,"script")).length>0&&ye(s,!l&&ve(e,"script")),o},cleanData:function(e){for(var t,i,n,a=_.event.special,r=0;void 0!==(i=e[r]);r++)if(U(i)){if(t=i[G.expando]){if(t.events)for(n in t.events)a[n]?_.event.remove(i,n):_.removeEvent(i,n,t.handle);i[G.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),_.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return B(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ie(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Ie(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(_.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,(function(t){var i=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(ve(this)),i&&i.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var i,n=[],a=_(e),r=a.length-1,o=0;o<=r;o++)i=o===r?this:this.clone(!0),_(a[o])[t](i),s.apply(n,i.get());return this.pushStack(n)}}));var Ne=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),He=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Fe=function(e,t,i){var n,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in n=i.call(e),t)e.style[a]=r[a];return n},Re=new RegExp(ie.join("|"),"i");function ze(e,t,i){var n,a,r,s,o=e.style;return(i=i||He(e))&&(""!==(s=i.getPropertyValue(t)||i[t])||ae(e)||(s=_.style(e,t)),!f.pixelBoxStyles()&&Ne.test(s)&&Re.test(t)&&(n=o.width,a=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=a,o.maxWidth=r)),void 0!==s?s+"":s}function Be(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);n="1%"!==t.top,l=12===i(t.marginLeft),u.style.right="60%",s=36===i(t.right),a=36===i(t.width),u.style.position="absolute",r=12===i(u.offsetWidth/3),ne.removeChild(c),u=null}}function i(e){return Math.round(parseFloat(e))}var n,a,r,s,o,l,c=g.createElement("div"),u=g.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(f,{boxSizingReliable:function(){return t(),a},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,i,n,a;return null==o&&(t=g.createElement("table"),i=g.createElement("tr"),n=g.createElement("div"),t.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",ne.appendChild(t).appendChild(i).appendChild(n),a=e.getComputedStyle(i),o=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===i.offsetHeight,ne.removeChild(t)),o}}))}();var We=["Webkit","Moz","ms"],Ve=g.createElement("div").style,qe={};function Xe(e){var t=_.cssProps[e]||qe[e];return t||(e in Ve?e:qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=We.length;i--;)if((e=We[i]+t)in Ve)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,$e=/^--/,Ge={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function Ke(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Je(e,t,i,n,a,r){var s="width"===t?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=_.css(e,i+ie[s],!0,a)),n?("content"===i&&(l-=_.css(e,"padding"+ie[s],!0,a)),"margin"!==i&&(l-=_.css(e,"border"+ie[s]+"Width",!0,a))):(l+=_.css(e,"padding"+ie[s],!0,a),"padding"!==i?l+=_.css(e,"border"+ie[s]+"Width",!0,a):o+=_.css(e,"border"+ie[s]+"Width",!0,a));return!n&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-o-.5))||0),l}function Qe(e,t,i){var n=He(e),a=(!f.boxSizingReliable()||i)&&"border-box"===_.css(e,"boxSizing",!1,n),r=a,s=ze(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(s)){if(!i)return s;s="auto"}return(!f.boxSizingReliable()&&a||!f.reliableTrDimensions()&&A(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===_.css(e,"display",!1,n))&&e.getClientRects().length&&(a="border-box"===_.css(e,"boxSizing",!1,n),(r=o in e)&&(s=e[o])),(s=parseFloat(s)||0)+Je(e,t,i||(a?"border":"content"),r,n,s)+"px"}function et(e,t,i,n,a){return new et.prototype.init(e,t,i,n,a)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ze(e,"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(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,r,s,o=X(t),l=$e.test(t),c=e.style;if(l||(t=Xe(o)),s=_.cssHooks[t]||_.cssHooks[o],void 0===i)return s&&"get"in s&&void 0!==(a=s.get(e,!1,n))?a:c[t];"string"===(r=typeof i)&&(a=te.exec(i))&&a[1]&&(i=oe(e,t,a),r="number"),null!=i&&i==i&&("number"!==r||l||(i+=a&&a[3]||(_.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var a,r,s,o=X(t);return $e.test(t)||(t=Xe(o)),(s=_.cssHooks[t]||_.cssHooks[o])&&"get"in s&&(a=s.get(e,!0,i)),void 0===a&&(a=ze(e,t,n)),"normal"===a&&t in Ze&&(a=Ze[t]),""===i||i?(r=parseFloat(a),!0===i||isFinite(r)?r||0:a):a}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,i,n){if(i)return!Ue.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Qe(e,t,n):Fe(e,Ge,(function(){return Qe(e,t,n)}))},set:function(e,i,n){var a,r=He(e),s=!f.scrollboxSize()&&"absolute"===r.position,o=(s||n)&&"border-box"===_.css(e,"boxSizing",!1,r),l=n?Je(e,t,n,o,r):0;return o&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-Je(e,t,"border",!1,r)-.5)),l&&(a=te.exec(i))&&"px"!==(a[3]||"px")&&(e.style[t]=i,i=_.css(e,t)),Ke(0,i,l)}}})),_.cssHooks.marginLeft=Be(f.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(i){for(var n=0,a={},r="string"==typeof i?i.split(" "):[i];n<4;n++)a[e+ie[n]+t]=r[n]||r[n-2]||r[0];return a}},"margin"!==e&&(_.cssHooks[e+t].set=Ke)})),_.fn.extend({css:function(e,t){return B(this,(function(e,t,i){var n,a,r={},s=0;if(Array.isArray(t)){for(n=He(e),a=t.length;s<a;s++)r[t[s]]=_.css(e,t[s],!1,n);return r}return void 0!==i?_.style(e,t,i):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=et,et.prototype={constructor:et,init:function(e,t,i,n,a,r){this.elem=e,this.prop=i,this.easing=a||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(_.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=et.prototype.init,_.fx.step={};var tt,it,nt=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function rt(){it&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,_.fx.interval),_.fx.tick())}function st(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function ot(e,t){var i,n=0,a={height:e};for(t=t?1:0;n<4;n+=2-t)a["margin"+(i=ie[n])]=a["padding"+i]=e;return t&&(a.opacity=a.width=e),a}function lt(e,t,i){for(var n,a=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),r=0,s=a.length;r<s;r++)if(n=a[r].call(i,t,e))return n}function ct(e,t,i){var n,a,r=0,s=ct.prefilters.length,o=_.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=tt||st(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(n);return o.notifyWith(e,[c,n,i]),n<1&&s?i:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},i),originalProperties:t,originalOptions:i,startTime:tt||st(),duration:i.duration,tweens:[],createTween:function(t,i){var n=_.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(a)return this;for(a=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var i,n,a,r,s;for(i in e)if(a=t[n=X(i)],r=e[i],Array.isArray(r)&&(a=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(s=_.cssHooks[n])&&"expand"in s)for(i in r=s.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=a);else t[n]=a}(u,c.opts.specialEasing);r<s;r++)if(n=ct.prefilters[r].call(c,e,u,c.opts))return p(n.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return _.map(u,lt,c),p(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(ct,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return oe(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){p(e)?(t=e,e=["*"]):e=e.match(I);for(var i,n=0,a=e.length;n<a;n++)i=e[n],ct.tweeners[i]=ct.tweeners[i]||[],ct.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,a,r,s,o,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&se(e),g=G.get(e,"fxshow");for(n in i.queue||(null==(s=_._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,_.queue(e,"fx").length||s.empty.fire()}))}))),t)if(a=t[n],nt.test(a)){if(delete t[n],r=r||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!g||void 0===g[n])continue;m=!0}f[n]=g&&g[n]||_.style(e,n)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(f))for(n in d&&1===e.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=G.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(ue([e],!0),c=e.style.display||c,u=_.css(e,"display"),ue([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=G.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&ue([e],!0),h.done((function(){for(n in m||ue([e]),G.remove(e,"fxshow"),f)_.style(e,n,f[n])}))),l=lt(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),_.speed=function(e,t,i){var n=e&&"object"==typeof e?_.extend({},e):{complete:i||!i&&t||p(e)&&e,duration:e,easing:i&&t||t&&!p(t)&&t};return _.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in _.fx.speeds?n.duration=_.fx.speeds[n.duration]:n.duration=_.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&_.dequeue(this,n.queue)},n},_.fn.extend({fadeTo:function(e,t,i,n){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var a=_.isEmptyObject(e),r=_.speed(t,i,n),s=function(){var t=ct(this,_.extend({},e),r);(a||G.get(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",r=_.timers,s=G.get(this);if(a)s[a]&&s[a].stop&&n(s[a]);else for(a in s)s[a]&&s[a].stop&&at.test(a)&&n(s[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(i),t=!1,r.splice(a,1));!t&&i||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=G.get(this),n=i[e+"queue"],a=i[e+"queueHooks"],r=_.timers,s=n?n.length:0;for(i.finish=!0,_.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var i=_.fn[t];_.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ot(t,!0),e,n,a)}})),_.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),_.timers=[],_.fx.tick=function(){var e,t=0,i=_.timers;for(tt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||_.fx.stop(),tt=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){it||(it=!0,rt())},_.fx.stop=function(){it=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,i){return t=_.fx&&_.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var a=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(a)}}))},function(){var e=g.createElement("input"),t=g.createElement("select").appendChild(g.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=g.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var ut,dt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return B(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,i){var n,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?_.prop(e,t,i):(1===r&&_.isXMLDoc(e)||(a=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?ut:void 0)),void 0!==i?null===i?void _.removeAttr(e,t):a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:(e.setAttribute(t,i+""),i):a&&"get"in a&&null!==(n=a.get(e,t))?n:null==(n=_.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&A(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,a=t&&t.match(I);if(a&&1===e.nodeType)for(;i=a[n++];)e.removeAttribute(i)}}),ut={set:function(e,t,i){return!1===t?_.removeAttr(e,i):e.setAttribute(i,i),i}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=dt[t]||_.find.attr;dt[t]=function(e,t,n){var a,r,s=t.toLowerCase();return n||(r=dt[s],dt[s]=a,a=null!=i(e,t,n)?s:null,dt[s]=r),a}}));var ht=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function pt(e){return(e.match(I)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}_.fn.extend({prop:function(e,t){return B(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,i){var n,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&_.isXMLDoc(e)||(t=_.propFix[t]||t,a=_.propHooks[t]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:e[t]=i:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,i,n,a,r,s,o,l=0;if(p(e))return this.each((function(t){_(this).addClass(e.call(this,t,mt(this)))}));if((t=gt(e)).length)for(;i=this[l++];)if(a=mt(i),n=1===i.nodeType&&" "+pt(a)+" "){for(s=0;r=t[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a!==(o=pt(n))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,a,r,s,o,l=0;if(p(e))return this.each((function(t){_(this).removeClass(e.call(this,t,mt(this)))}));if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;i=this[l++];)if(a=mt(i),n=1===i.nodeType&&" "+pt(a)+" "){for(s=0;r=t[s++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a!==(o=pt(n))&&i.setAttribute("class",o)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):p(e)?this.each((function(i){_(this).toggleClass(e.call(this,i,mt(this),t),t)})):this.each((function(){var t,a,r,s;if(n)for(a=0,r=_(this),s=gt(e);t=s[a++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||((t=mt(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":G.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+pt(mt(i))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;_.fn.extend({val:function(e){var t,i,n,a=this[0];return arguments.length?(n=p(e),this.each((function(i){var a;1===this.nodeType&&(null==(a=n?e.call(this,i,_(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=_.map(a,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=_.valHooks[a.type]||_.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(vt,""):null==i?"":i:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:pt(_.text(e))}},select:{get:function(e){var t,i,n,a=e.options,r=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?r+1:a.length;for(n=r<0?l:s?r:0;n<l;n++)if(((i=a[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!A(i.parentNode,"optgroup"))){if(t=_(i).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,a=e.options,r=_.makeArray(t),s=a.length;s--;)((n=a[s]).selected=_.inArray(_.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},f.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),f.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(t,i,n,a){var r,s,o,l,c,d,h,f,v=[n||g],y=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(s=f=o=n=n||g,3!==n.nodeType&&8!==n.nodeType&&!yt.test(y+_.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[_.expando]?t:new _.Event(y,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:_.makeArray(i,[t]),h=_.event.special[y]||{},a||!h.trigger||!1!==h.trigger.apply(n,i))){if(!a&&!h.noBubble&&!m(n)){for(l=h.delegateType||y,yt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),o=s;o===(n.ownerDocument||g)&&v.push(o.defaultView||o.parentWindow||e)}for(r=0;(s=v[r++])&&!t.isPropagationStopped();)f=s,t.type=r>1?l:h.bindType||y,(d=(G.get(s,"events")||Object.create(null))[t.type]&&G.get(s,"handle"))&&d.apply(s,i),(d=c&&s[c])&&d.apply&&U(s)&&(t.result=d.apply(s,i),!1===t.result&&t.preventDefault());return t.type=y,a||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),i)||!U(n)||c&&p(n[y])&&!m(n)&&((o=n[c])&&(n[c]=null),_.event.triggered=y,t.isPropagationStopped()&&f.addEventListener(y,bt),n[y](),t.isPropagationStopped()&&f.removeEventListener(y,bt),_.event.triggered=void 0,o&&(n[c]=o)),t.result}},simulate:function(e,t,i){var n=_.extend(new _.Event,i,{type:e,isSimulated:!0});_.event.trigger(n,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return _.event.trigger(e,t,i,!0)}}),f.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,a=G.access(n,t);a||n.addEventListener(e,i,!0),G.access(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,a=G.access(n,t)-1;a?G.access(n,t,a):(n.removeEventListener(e,i,!0),G.remove(n,t))}}}));var xt=e.location,_t={guid:Date.now()},wt=/\?/;_.parseXML=function(t){var i,n;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var kt=/\[\]$/,Mt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function At(e,t,i,n){var a;if(Array.isArray(t))_.each(t,(function(t,a){i||kt.test(e)?n(e,a):At(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,i,n)}));else if(i||"object"!==b(t))n(e,t);else for(a in t)At(e+"["+a+"]",t[a],i,n)}_.param=function(e,t){var i,n=[],a=function(e,t){var i=p(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){a(this.name,this.value)}));else for(i in e)At(i,e[i],t,a);return n.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&St.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var i=_(this).val();return null==i?null:Array.isArray(i)?_.map(i,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:i.replace(Mt,"\r\n")}})).get()}});var Tt=/%20/g,Ct=/#.*$/,Dt=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Yt={},It={},jt="*/".concat("*"),Nt=g.createElement("a");function Ht(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,a=0,r=t.toLowerCase().match(I)||[];if(p(i))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Ft(e,t,i,n){var a={},r=e===It;function s(o){var l;return a[o]=!0,_.each(e[o]||[],(function(e,o){var c=o(t,i,n);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!a["*"]&&s("*")}function Rt(e,t){var i,n,a=_.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:n||(n={}))[i]=t[i]);return n&&_.extend(!0,e,n),e}Nt.href=xt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,_.ajaxSettings),t):Rt(_.ajaxSettings,e)},ajaxPrefilter:Ht(Yt),ajaxTransport:Ht(It),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,a,r,s,o,l,c,u,d,h,f=_.ajaxSetup({},i),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?_(p):_.event,v=_.Deferred(),y=_.Callbacks("once memory"),b=f.statusCode||{},x={},w={},k="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Et.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)M.always(e[M.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),L(0,t),this}};if(v.promise(M),f.url=((t||f.url||xt.href)+"").replace(Pt,xt.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(I)||[""],null==f.crossDomain){l=g.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Nt.protocol+"//"+Nt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Ft(Yt,f,i,M),c)return M;for(d in(u=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ot.test(f.type),a=f.url.replace(Ct,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Tt,"+")):(h=f.url.slice(a.length),f.data&&(f.processData||"string"==typeof f.data)&&(a+=(wt.test(a)?"&":"?")+f.data,delete f.data),!1===f.cache&&(a=a.replace(Dt,"$1"),h=(wt.test(a)?"&":"?")+"_="+_t.guid+++h),f.url=a+h),f.ifModified&&(_.lastModified[a]&&M.setRequestHeader("If-Modified-Since",_.lastModified[a]),_.etag[a]&&M.setRequestHeader("If-None-Match",_.etag[a])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&M.setRequestHeader("Content-Type",f.contentType),M.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+jt+"; q=0.01":""):f.accepts["*"]),f.headers)M.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,M,f)||c))return M.abort();if(k="abort",y.add(f.complete),M.done(f.success),M.fail(f.error),n=Ft(It,f,i,M)){if(M.readyState=1,u&&m.trigger("ajaxSend",[M,f]),c)return M;f.async&&f.timeout>0&&(o=e.setTimeout((function(){M.abort("timeout")}),f.timeout));try{c=!1,n.send(x,L)}catch(e){if(c)throw e;L(-1,e)}}else L(-1,"No Transport");function L(t,i,s,l){var d,h,g,x,w,k=i;c||(c=!0,o&&e.clearTimeout(o),n=void 0,r=l||"",M.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(x=function(e,t,i){for(var n,a,r,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(a in o)if(o[a]&&o[a].test(n)){l.unshift(a);break}if(l[0]in i)r=l[0];else{for(a in i){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}s||(s=a)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),i[r]}(f,M,s)),!d&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,i,n){var a,r,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(a in c)if((o=a.split(" "))[1]===r&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[a]:!0!==c[a]&&(r=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,x,M,d),d?(f.ifModified&&((w=M.getResponseHeader("Last-Modified"))&&(_.lastModified[a]=w),(w=M.getResponseHeader("etag"))&&(_.etag[a]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,h=x.data,d=!(g=x.error))):(g=k,!t&&k||(k="error",t<0&&(t=0))),M.status=t,M.statusText=(i||k)+"",d?v.resolveWith(p,[h,k,M]):v.rejectWith(p,[M,k,g]),M.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[M,f,d?h:g]),y.fireWith(p,[M,k]),u&&(m.trigger("ajaxComplete",[M,f]),--_.active||_.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,i){return _.get(e,t,i,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,i,n,a){return p(i)&&(a=a||n,n=i,i=void 0),_.ajax(_.extend({url:e,type:t,dataType:a,data:i,success:n},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,i){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,i)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return p(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=p(e);return this.each((function(i){_(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Bt=_.ajaxSettings.xhr();f.cors=!!Bt&&"withCredentials"in Bt,f.ajax=Bt=!!Bt,_.ajaxTransport((function(t){var i,n;if(f.cors||Bt&&!t.crossDomain)return{send:function(a,r){var s,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];for(s in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(s,a[s]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(zt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){i&&n()}))},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,a){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&a("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){i&&i()}}}));var Wt,Vt=[],qt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||_.expando+"_"+_t.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(t,i,n){var a,r,s,o=!1!==t.jsonp&&(qt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(qt,"$1"+a):!1!==t.jsonp&&(t.url+=(wt.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return s||_.error(a+" was not called"),s[0]},t.dataTypes[0]="json",r=e[a],e[a]=function(){s=arguments},n.always((function(){void 0===r?_(e).removeProp(a):e[a]=r,t[a]&&(t.jsonpCallback=i.jsonpCallback,Vt.push(a)),s&&p(r)&&r(s[0]),s=r=void 0})),"script"})),f.createHTMLDocument=((Wt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),_.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(f.createHTMLDocument?((n=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(n)):t=g),r=!i&&[],(a=T.exec(e))?[t.createElement(a[1])]:(a=xe([e],t,r),r&&r.length&&_(r).remove(),_.merge([],a.childNodes)));var n,a,r},_.fn.load=function(e,t,i){var n,a,r,s=this,o=e.indexOf(" ");return o>-1&&(n=pt(e.slice(o)),e=e.slice(0,o)),p(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&_.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){r=arguments,s.html(n?_("<div>").append(_.parseHTML(e)).find(n):e)})).always(i&&function(e,t){s.each((function(){i.apply(this,r||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,i){var n,a,r,s,o,l,c=_.css(e,"position"),u=_(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),r=_.css(e,"top"),l=_.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(n=u.position()).top,a=n.left):(s=parseFloat(r)||0,a=parseFloat(l)||0),p(t)&&(t=t.call(e,i,_.extend({},o))),null!=t.top&&(d.top=t.top-o.top+s),null!=t.left&&(d.left=t.left-o.left+a),"using"in t?t.using.call(e,d):u.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],a={top:0,left:0};if("fixed"===_.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((a=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),a.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-_.css(n,"marginTop",!0),left:t.left-a.left-_.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||ne}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;_.fn[e]=function(n){return B(this,(function(e,n,a){var r;if(m(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[n];r?r.scrollTo(i?r.pageXOffset:a,i?a:r.pageYOffset):e[n]=a}),e,n,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=Be(f.pixelPosition,(function(e,i){if(i)return i=ze(e,t),Ne.test(i)?_(e).position()[t]+"px":i}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){_.fn[n]=function(a,r){var s=arguments.length&&(i||"boolean"!=typeof a),o=i||(!0===a||!0===r?"margin":"border");return B(this,(function(t,i,a){var r;return m(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?_.css(t,i,o):_.style(t,i,a,o)}),t,s?a:void 0,s)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.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(e,t){_.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var i,n,r;if("string"==typeof t&&(i=e[t],t=e,e=i),p(e))return n=a.call(arguments,2),r=function(){return e.apply(t||this,n.concat(a.call(arguments)))},r.guid=e.guid=e.guid||_.guid++,r},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=A,_.isFunction=p,_.isWindow=m,_.camelCase=X,_.type=b,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var Ut=e.jQuery,$t=e.$;return _.noConflict=function(t){return e.$===_&&(e.$=$t),t&&e.jQuery===_&&(e.jQuery=Ut),_},void 0===t&&(e.jQuery=e.$=_),_})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e,t){var i=e.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function a(e){return e instanceof i(e).Element||e instanceof Element}function r(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}function o(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return((a(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return t(l(e)).left+n(e).scrollLeft}function u(e){return i(e).getComputedStyle(e)}function d(e){var t=u(e),i=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function h(e,a,s){void 0===s&&(s=!1);var u=r(a);r(a)&&function(e){var t=e.getBoundingClientRect(),i=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1}(a);var h,f,p=l(a),m=t(e),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(u||!u&&!s)&&(("body"!==o(a)||d(p))&&(g=(h=a)!==i(h)&&r(h)?{scrollLeft:(f=h).scrollLeft,scrollTop:f.scrollTop}:n(h)),r(a)?((v=t(a)).x+=a.clientLeft,v.y+=a.clientTop):p&&(v.x=c(p))),{x:m.left+g.scrollLeft-v.x,y:m.top+g.scrollTop-v.y,width:m.width,height:m.height}}function f(e){var i=t(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(i.width-n)<=1&&(n=i.width),Math.abs(i.height-a)<=1&&(a=i.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function p(e){return"html"===o(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||l(e)}function m(e){return["html","body","#document"].indexOf(o(e))>=0?e.ownerDocument.body:r(e)&&d(e)?e:m(p(e))}function g(e,t){var n;void 0===t&&(t=[]);var a=m(e),r=a===(null==(n=e.ownerDocument)?void 0:n.body),s=i(a),o=r?[s].concat(s.visualViewport||[],d(a)?a:[]):a,l=t.concat(o);return r?l:l.concat(g(p(o)))}function v(e){return["table","td","th"].indexOf(o(e))>=0}function y(e){return r(e)&&"fixed"!==u(e).position?e.offsetParent:null}function b(e){for(var t=i(e),n=y(e);n&&v(n)&&"static"===u(n).position;)n=y(n);return n&&("html"===o(n)||"body"===o(n)&&"static"===u(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&r(e)&&"fixed"===u(e).position)return null;for(var i=p(e);r(i)&&["html","body"].indexOf(o(i))<0;){var n=u(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var x="top",_="bottom",w="right",k="left",M="auto",L=[x,_,w,k],S="start",A="end",T="viewport",C="popper",D=L.reduce((function(e,t){return e.concat([t+"-"+S,t+"-"+A])}),[]),E=[].concat(L,[M]).reduce((function(e,t){return e.concat([t,t+"-"+S,t+"-"+A])}),[]),O=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P(e){var t=new Map,i=new Set,n=[];function a(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&a(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||a(e)})),n}function Y(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return[].concat(i).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var I='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',j=["name","enabled","phase","fn","effect","requires","options"];function N(e){return e.split("-")[0]}var H=Math.max,F=Math.min,R=Math.round;function z(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&s(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function B(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function W(e,a){return a===T?B(function(e){var t=i(e),n=l(e),a=t.visualViewport,r=n.clientWidth,s=n.clientHeight,o=0,u=0;return a&&(r=a.width,s=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,u=a.offsetTop)),{width:r,height:s,x:o+c(e),y:u}}(e)):r(a)?function(e){var i=t(e);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(a):B(function(e){var t,i=l(e),a=n(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=H(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=H(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),d=-a.scrollLeft+c(e),h=-a.scrollTop;return"rtl"===u(r||i).direction&&(d+=H(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:d,y:h}}(l(e)))}function V(e,t,i){var n="clippingParents"===t?function(e){var t=g(p(e)),i=["absolute","fixed"].indexOf(u(e).position)>=0&&r(e)?b(e):e;return a(i)?t.filter((function(e){return a(e)&&z(e,i)&&"body"!==o(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),l=s[0],c=s.reduce((function(t,i){var n=W(e,i);return t.top=H(n.top,t.top),t.right=F(n.right,t.right),t.bottom=F(n.bottom,t.bottom),t.left=H(n.left,t.left),t}),W(e,l));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function q(e){return e.split("-")[1]}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,i=e.reference,n=e.element,a=e.placement,r=a?N(a):null,s=a?q(a):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case x:t={x:o,y:i.y-n.height};break;case _:t={x:o,y:i.y+i.height};break;case w:t={x:i.x+i.width,y:l};break;case k:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?X(r):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case S:t[c]=t[c]-(i[u]/2-n[u]/2);break;case A:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function $(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function Z(e,i){void 0===i&&(i={});var n=i,r=n.placement,s=void 0===r?e.placement:r,o=n.boundary,c=void 0===o?"clippingParents":o,u=n.rootBoundary,d=void 0===u?T:u,h=n.elementContext,f=void 0===h?C:h,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,v=void 0===g?0:g,y=$("number"!=typeof v?v:G(v,L)),b=f===C?"reference":C,k=e.rects.popper,M=e.elements[m?b:f],S=V(a(M)?M:M.contextElement||l(e.elements.popper),c,d),A=t(e.elements.reference),D=U({reference:A,element:k,strategy:"absolute",placement:s}),E=B(Object.assign({},k,D)),O=f===C?E:A,P={top:S.top-O.top+y.top,bottom:O.bottom-S.bottom+y.bottom,left:S.left-O.left+y.left,right:O.right-S.right+y.right},Y=e.modifiersData.offset;if(f===C&&Y){var I=Y[s];Object.keys(P).forEach((function(e){var t=[w,_].indexOf(e)>=0?1:-1,i=[x,_].indexOf(e)>=0?"y":"x";P[e]+=I[i]*t}))}return P}var K="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",J={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ee(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,r=t.defaultOptions,s=void 0===r?J:r;return function(e,t,i){void 0===i&&(i=s);var r,o,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},J,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(i){var r="function"==typeof i?i(l.options):i;m(),l.options=Object.assign({},s,l.options,r),l.scrollParents={reference:a(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var o=function(e){var t=P(e);return O.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,l.options.modifiers)));(l.orderedModifiers=o.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){[].concat(Object.keys(t),j).filter((function(e,t,i){return i.indexOf(e)===t})).forEach((function(i){switch(i){case"name":"string"!=typeof t.name&&console.error(Y(I,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Y(I,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":O.indexOf(t.phase)<0&&console.error(Y(I,t.name,'"phase"',"either "+O.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Y(I,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Y(I,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Y(I,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Y(I,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+j.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+i+'" was provided.')}t.requires&&t.requires.forEach((function(i){null==e.find((function(e){return e.name===i}))&&console.error(Y('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),i,i))}))}))}))}((d=[].concat(o,l.options.modifiers),h=function(e){return e.name},f=new Set,d.filter((function(e){var t=h(e);if(!f.has(t))return f.add(t),!0})))),N(l.options.placement)===M)&&(l.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var d,h,f,v=u(t);return[v.marginTop,v.marginRight,v.marginBottom,v.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),l.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,a=e.effect;if("function"==typeof a){var r=a({state:l,name:t,instance:p,options:n}),s=function(){};c.push(r||s)}})),p.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,i=e.popper;if(Q(t,i)){l.rects={reference:h(t,b(i),"fixed"===l.options.strategy),popper:f(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,a=0;a<l.orderedModifiers.length;a++){if((n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==l.reset){var r=l.orderedModifiers[a],s=r.fn,o=r.options,c=void 0===o?{}:o,u=r.name;"function"==typeof s&&(l=s({state:l,options:c,name:u,instance:p})||l)}else l.reset=!1,a=-1}}else console.error(K)}},update:(r=function(){return new Promise((function(e){p.forceUpdate(),e(l)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(r())}))}))),o}),destroy:function(){m(),d=!0}};if(!Q(e,t))return console.error(K),p;function m(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(i).then((function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)})),p}}var te={passive:!0};var ie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,s=void 0===r||r,o=a.resize,l=void 0===o||o,c=i(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach((function(e){e.addEventListener("scroll",n.update,te)})),l&&c.addEventListener("resize",n.update,te),function(){s&&u.forEach((function(e){e.removeEventListener("scroll",n.update,te)})),l&&c.removeEventListener("resize",n.update,te)}},data:{}};var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var t,n=e.popper,a=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,c=e.position,d=e.gpuAcceleration,h=e.adaptive,f=e.roundOffsets,p=!0===f?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:R(R(t*n)/n)||0,y:R(R(i*n)/n)||0}}(o):"function"==typeof f?f(o):o,m=p.x,g=void 0===m?0:m,v=p.y,y=void 0===v?0:v,M=o.hasOwnProperty("x"),L=o.hasOwnProperty("y"),S=k,T=x,C=window;if(h){var D=b(n),E="clientHeight",O="clientWidth";D===i(n)&&"static"!==u(D=l(n)).position&&"absolute"===c&&(E="scrollHeight",O="scrollWidth"),D=D,r!==x&&(r!==k&&r!==w||s!==A)||(T=_,y-=D[E]-a.height,y*=d?1:-1),r!==k&&(r!==x&&r!==_||s!==A)||(S=w,g-=D[O]-a.width,g*=d?1:-1)}var P,Y=Object.assign({position:c},h&&ae);return d?Object.assign({},Y,((P={})[T]=L?"0":"",P[S]=M?"0":"",P.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",P)):Object.assign({},Y,((t={})[T]=L?y+"px":"",t[S]=M?g+"px":"",t.transform="",t))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,a=void 0===n||n,r=i.adaptive,s=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c=u(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var d={placement:N(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var oe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},a=t.elements[e];r(a)&&o(a)&&(Object.assign(a.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});r(n)&&o(n)&&(Object.assign(n.style,s),Object.keys(a).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var le={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,a=i.offset,r=void 0===a?[0,0]:a,s=E.reduce((function(e,i){return e[i]=function(e,t,i){var n=N(e),a=[k,x].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},t,{placement:e})):i,s=r[0],o=r[1];return s=s||0,o=(o||0)*a,[k,w].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}(i,t.rects,r),e}),{}),o=s[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}},ce={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var de={start:"end",end:"start"};function he(e){return e.replace(/start|end/g,(function(e){return de[e]}))}function fe(e,t){void 0===t&&(t={});var i=t,n=i.placement,a=i.boundary,r=i.rootBoundary,s=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?E:l,u=q(n),d=u?o?D:D.filter((function(e){return q(e)===u})):L,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var f=h.reduce((function(t,i){return t[i]=Z(e,{placement:i,boundary:a,rootBoundary:r,padding:s})[N(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=i.mainAxis,r=void 0===a||a,s=i.altAxis,o=void 0===s||s,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,v=N(g),y=l||(v===g||!p?[ue(g)]:function(e){if(N(e)===M)return[];var t=ue(e);return[he(e),t,he(t)]}(g)),b=[g].concat(y).reduce((function(e,i){return e.concat(N(i)===M?fe(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),L=t.rects.reference,A=t.rects.popper,T=new Map,C=!0,D=b[0],E=0;E<b.length;E++){var O=b[E],P=N(O),Y=q(O)===S,I=[x,_].indexOf(P)>=0,j=I?"width":"height",H=Z(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),F=I?Y?w:k:Y?_:x;L[j]>A[j]&&(F=ue(F));var R=ue(F),z=[];if(r&&z.push(H[P]<=0),o&&z.push(H[F]<=0,H[R]<=0),z.every((function(e){return e}))){D=O,C=!1;break}T.set(O,z)}if(C)for(var B=function(e){var t=b.find((function(t){var i=T.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},W=p?3:1;W>0;W--){if("break"===B(W))break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function me(e,t,i){return H(e,F(t,i))}var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,a=i.mainAxis,r=void 0===a||a,s=i.altAxis,o=void 0!==s&&s,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,m=i.tetherOffset,g=void 0===m?0:m,v=Z(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=N(t.placement),M=q(t.placement),L=!M,A=X(y),T="x"===A?"y":"x",C=t.modifiersData.popperOffsets,D=t.rects.reference,E=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P={x:0,y:0};if(C){if(r||o){var Y="y"===A?x:k,I="y"===A?_:w,j="y"===A?"height":"width",R=C[A],z=C[A]+v[Y],B=C[A]-v[I],W=p?-E[j]/2:0,V=M===S?D[j]:E[j],U=M===S?-E[j]:-D[j],$=t.elements.arrow,G=p&&$?f($):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=K[Y],Q=K[I],ee=me(0,D[j],G[j]),te=L?D[j]/2-W-ee-J-O:V-ee-J-O,ie=L?-D[j]/2+W+ee+Q+O:U+ee+Q+O,ne=t.elements.arrow&&b(t.elements.arrow),ae=ne?"y"===A?ne.clientTop||0:ne.clientLeft||0:0,re=t.modifiersData.offset?t.modifiersData.offset[t.placement][A]:0,se=C[A]+te-re-ae,oe=C[A]+ie-re;if(r){var le=me(p?F(z,se):z,R,p?H(B,oe):B);C[A]=le,P[A]=le-R}if(o){var ce="x"===A?x:k,ue="x"===A?_:w,de=C[T],he=de+v[ce],fe=de-v[ue],pe=me(p?F(he,se):he,de,p?H(fe,oe):fe);C[T]=pe,P[T]=pe-de}}t.modifiersData[n]=P}},requiresIfExists:["offset"]};var ve={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,a=e.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,o=N(i.placement),l=X(o),c=[k,w].indexOf(o)>=0?"height":"width";if(r&&s){var u=function(e,t){return $("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,L))}(a.padding,i),d=f(r),h="y"===l?x:k,p="y"===l?_:w,m=i.rects.reference[c]+i.rects.reference[l]-s[l]-i.rects.popper[c],g=s[l]-i.rects.reference[l],v=b(r),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,M=m/2-g/2,S=u[h],A=y-d[c]-u[p],T=y/2-d[c]/2+M,C=me(S,T,A),D=l;i.modifiersData[n]=((t={})[D]=C,t.centerOffset=C-T,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(r(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),z(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function be(e){return[x,w,_,k].some((function(t){return e[t]>=0}))}var xe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,s=Z(t,{elementContext:"reference"}),o=Z(t,{altBoundary:!0}),l=ye(s,n),c=ye(o,a,r),u=be(l),d=be(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},_e=ee({defaultModifiers:[ie,ne,se,oe]}),we=[ie,ne,se,oe,le,pe,ge,ve,xe],ke=ee({defaultModifiers:we});e.applyStyles=oe,e.arrow=ve,e.computeStyles=se,e.createPopper=ke,e.createPopperLite=_e,e.defaultModifiers=we,e.detectOverflow=Z,e.eventListeners=ie,e.flip=pe,e.hide=xe,e.offset=le,e.popperGenerator=ee,e.popperOffsets=ne,e.preventOverflow=ge,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,(function(e){"use strict";const t=function(e){if(e&&e.__esModule)return e;const t=Object.create(null);if(e)for(const i in e)if("default"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}(e),i="transitionend",n=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},a=e=>{const t=n(e);return t&&document.querySelector(t)?t:null},r=e=>{const t=n(e);return t?document.querySelector(t):null},s=e=>{e.dispatchEvent(new Event(i))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),l=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,c=(e,t,i)=>{Object.keys(i).forEach((n=>{const a=i[n],r=t[n],s=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(a).test(s))throw new TypeError(`${e.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${a}".`)}))},u=e=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),d=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),h=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h(e.parentNode):null},f=()=>{},p=e=>{e.offsetHeight},m=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},g=[],v=()=>"rtl"===document.documentElement.dir,y=e=>{var t;t=()=>{const t=m();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(g.length||document.addEventListener("DOMContentLoaded",(()=>{g.forEach((e=>e()))})),g.push(t)):t()},b=e=>{"function"==typeof e&&e()},x=(e,t,n=!0)=>{if(!n)return void b(e);const a=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),a=Number.parseFloat(i);return n||a?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let r=!1;const o=({target:n})=>{n===t&&(r=!0,t.removeEventListener(i,o),b(e))};t.addEventListener(i,o),setTimeout((()=>{r||s(t)}),a)},_=(e,t,i,n)=>{let a=e.indexOf(t);if(-1===a)return e[!i&&n?e.length-1:0];const r=e.length;return a+=i?1:-1,n&&(a=(a+r)%r),e[Math.max(0,Math.min(a,r-1))]},w=/[^.]*(?=\..*)\.|.*/,k=/\..*/,M=/::\d+$/,L={};let S=1;const A={mouseenter:"mouseover",mouseleave:"mouseout"},T=/^(mouseenter|mouseleave)/i,C=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 D(e,t){return t&&`${t}::${S++}`||e.uidEvent||S++}function E(e){const t=D(e);return e.uidEvent=t,L[t]=L[t]||{},L[t]}function O(e,t,i=null){const n=Object.keys(e);for(let a=0,r=n.length;a<r;a++){const r=e[n[a]];if(r.originalHandler===t&&r.delegationSelector===i)return r}return null}function P(e,t,i){const n="string"==typeof t,a=n?i:t;let r=j(e);return C.has(r)||(r=e),[n,a,r]}function Y(e,t,i,n,a){if("string"!=typeof t||!e)return;if(i||(i=n,n=null),T.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};n?n=e(n):i=e(i)}const[r,s,o]=P(t,i,n),l=E(e),c=l[o]||(l[o]={}),u=O(c,s,r?i:null);if(u)return void(u.oneOff=u.oneOff&&a);const d=D(s,t.replace(w,"")),h=r?function(e,t,i){return function n(a){const r=e.querySelectorAll(t);for(let{target:s}=a;s&&s!==this;s=s.parentNode)for(let o=r.length;o--;)if(r[o]===s)return a.delegateTarget=s,n.oneOff&&N.off(e,a.type,t,i),i.apply(s,[a]);return null}}(e,i,n):function(e,t){return function i(n){return n.delegateTarget=e,i.oneOff&&N.off(e,n.type,t),t.apply(e,[n])}}(e,i);h.delegationSelector=r?i:null,h.originalHandler=s,h.oneOff=a,h.uidEvent=d,c[d]=h,e.addEventListener(o,h,r)}function I(e,t,i,n,a){const r=O(t[i],n,a);r&&(e.removeEventListener(i,r,Boolean(a)),delete t[i][r.uidEvent])}function j(e){return e=e.replace(k,""),A[e]||e}const N={on(e,t,i,n){Y(e,t,i,n,!1)},one(e,t,i,n){Y(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[a,r,s]=P(t,i,n),o=s!==t,l=E(e),c=t.startsWith(".");if(void 0!==r){if(!l||!l[s])return;return void I(e,l,s,r,a?i:null)}c&&Object.keys(l).forEach((i=>{!function(e,t,i,n){const a=t[i]||{};Object.keys(a).forEach((r=>{if(r.includes(n)){const n=a[r];I(e,t,i,n.originalHandler,n.delegationSelector)}}))}(e,l,i,t.slice(1))}));const u=l[s]||{};Object.keys(u).forEach((i=>{const n=i.replace(M,"");if(!o||t.includes(n)){const t=u[i];I(e,l,s,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=m(),a=j(t),r=t!==a,s=C.has(a);let o,l=!0,c=!0,u=!1,d=null;return r&&n&&(o=n.Event(t,i),n(e).trigger(o),l=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented()),s?(d=document.createEvent("HTMLEvents"),d.initEvent(a,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((e=>{Object.defineProperty(d,e,{get:()=>i[e]})})),u&&d.preventDefault(),c&&e.dispatchEvent(d),d.defaultPrevented&&void 0!==o&&o.preventDefault(),d}},H=new Map,F={set(e,t,i){H.has(e)||H.set(e,new Map);const n=H.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>H.has(e)&&H.get(e).get(t)||null,remove(e,t){if(!H.has(e))return;const i=H.get(e);i.delete(t),0===i.size&&H.delete(e)}};class R{constructor(e){(e=l(e))&&(this._element=e,F.set(this._element,this.constructor.DATA_KEY,this))}dispose(){F.remove(this._element,this.constructor.DATA_KEY),N.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,i=!0){x(e,t,i)}static getInstance(e){return F.get(l(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const z=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;N.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),d(this))return;const a=r(this)||this.closest(`.${n}`);e.getOrCreateInstance(a)[t]()}))};class B extends R{static get NAME(){return"alert"}close(){if(N.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),N.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=B.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}z(B,"close"),y(B);const W='[data-bs-toggle="button"]';class V extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function q(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function X(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}N.on(document,"click.bs.button.data-api",W,(e=>{e.preventDefault();const t=e.target.closest(W);V.getOrCreateInstance(t).toggle()})),y(V);const U={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${X(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${X(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=q(e.dataset[i])})),t},getDataAttribute:(e,t)=>q(e.getAttribute(`data-bs-${X(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},$={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&i.push(n),n=n.parentNode;return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!d(e)&&u(e)))}},G="carousel",Z={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},J="next",Q="prev",ee="left",te="right",ie={ArrowLeft:te,ArrowRight:ee},ne="slid.bs.carousel",ae="active",re=".active.carousel-item";class se extends R{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=$.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Z}static get NAME(){return G}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(Q)}pause(e){e||(this._isPaused=!0),$.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=$.findOne(re,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void N.one(this._element,ne,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const i=e>t?J:Q;this._slide(i,this._items[e])}_getConfig(e){return e={...Z,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},c(G,e,K),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?te:ee)}_addEventListeners(){this._config.keyboard&&N.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(N.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),N.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},i=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},n=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};$.find(".carousel-item img",this._element).forEach((e=>{N.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(N.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),N.on(this._element,"pointerup.bs.carousel",(e=>n(e))),this._element.classList.add("pointer-event")):(N.on(this._element,"touchstart.bs.carousel",(e=>t(e))),N.on(this._element,"touchmove.bs.carousel",(e=>i(e))),N.on(this._element,"touchend.bs.carousel",(e=>n(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ie[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?$.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const i=e===J;return _(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),n=this._getItemIndex($.findOne(re,this._element));return N.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=$.findOne(".active",this._indicatorsElement);t.classList.remove(ae),t.removeAttribute("aria-current");const i=$.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<i.length;t++)if(Number.parseInt(i[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){i[t].classList.add(ae),i[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||$.findOne(re,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const i=this._directionToOrder(e),n=$.findOne(re,this._element),a=this._getItemIndex(n),r=t||this._getItemByOrder(i,n),s=this._getItemIndex(r),o=Boolean(this._interval),l=i===J,c=l?"carousel-item-start":"carousel-item-end",u=l?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(i);if(r&&r.classList.contains(ae))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(r,d).defaultPrevented)return;if(!n||!r)return;this._isSliding=!0,o&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;const h=()=>{N.trigger(this._element,ne,{relatedTarget:r,direction:d,from:a,to:s})};if(this._element.classList.contains("slide")){r.classList.add(u),p(r),n.classList.add(c),r.classList.add(c);const e=()=>{r.classList.remove(c,u),r.classList.add(ae),n.classList.remove(ae,u,c),this._isSliding=!1,setTimeout(h,0)};this._queueCallback(e,n,!0)}else n.classList.remove(ae),r.classList.add(ae),this._isSliding=!1,h();o&&this.cycle()}_directionToOrder(e){return[te,ee].includes(e)?v()?e===ee?Q:J:e===ee?J:Q:e}_orderToDirection(e){return[J,Q].includes(e)?v()?e===Q?ee:te:e===Q?te:ee:e}static carouselInterface(e,t){const i=se.getOrCreateInstance(e,t);let{_config:n}=i;"object"==typeof t&&(n={...n,...t});const a="string"==typeof t?t:n.slide;if("number"==typeof t)i.to(t);else if("string"==typeof a){if(void 0===i[a])throw new TypeError(`No method named "${a}"`);i[a]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each((function(){se.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=r(this);if(!t||!t.classList.contains("carousel"))return;const i={...U.getDataAttributes(t),...U.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),se.carouselInterface(t,i),n&&se.getInstance(t).to(n),e.preventDefault()}}N.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),N.on(window,"load.bs.carousel.data-api",(()=>{const e=$.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)se.carouselInterface(e[t],se.getInstance(e[t]))})),y(se);const oe="collapse",le={toggle:!0,parent:null},ce={toggle:"boolean",parent:"(null|element)"},ue="show",de="collapse",he="collapsing",fe="collapsed",pe=":scope .collapse .collapse",me='[data-bs-toggle="collapse"]';class ge extends R{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const i=$.find(me);for(let e=0,t=i.length;e<t;e++){const t=i[e],n=a(t),r=$.find(n).filter((e=>e===this._element));null!==n&&r.length&&(this._selector=n,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return le}static get NAME(){return oe}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=$.find(pe,this._config.parent);t=$.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const i=$.findOne(this._selector);if(t.length){const n=t.find((e=>i!==e));if(e=n?ge.getInstance(n):null,e&&e._isTransitioning)return}if(N.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{i!==t&&ge.getOrCreateInstance(t,{toggle:!1}).hide(),e||F.set(t,"bs.collapse",null)}));const n=this._getDimension();this._element.classList.remove(de),this._element.classList.add(he),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const a=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(de,ue),this._element.style[n]="",N.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(N.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,p(this._element),this._element.classList.add(he),this._element.classList.remove(de,ue);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],i=r(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(de),N.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ue)}_getConfig(e){return(e={...le,...U.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=l(e.parent),c(oe,e,ce),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=$.find(pe,this._config.parent);$.find(me,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=r(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(fe):e.classList.add(fe),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const i=ge.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}N.on(document,"click.bs.collapse.data-api",me,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=a(this);$.find(t).forEach((e=>{ge.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),y(ge);const ve="dropdown",ye="Escape",be="Space",xe="ArrowUp",_e="ArrowDown",we=new RegExp("ArrowUp|ArrowDown|Escape"),ke="click.bs.dropdown.data-api",Me="keydown.bs.dropdown.data-api",Le="show",Se='[data-bs-toggle="dropdown"]',Ae=".dropdown-menu",Te=v()?"top-end":"top-start",Ce=v()?"top-start":"top-end",De=v()?"bottom-end":"bottom-start",Ee=v()?"bottom-start":"bottom-end",Oe=v()?"left-start":"right-start",Pe=v()?"right-start":"left-start",Ye={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Ie={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class je extends R{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return Ye}static get DefaultType(){return Ie}static get NAME(){return ve}toggle(){return this._isShown()?this.hide():this.show()}show(){if(d(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(N.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=je.getParentFromElement(this._element);this._inNavbar?U.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>N.on(e,"mouseover",f))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Le),this._element.classList.add(Le),N.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(d(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){N.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>N.off(e,"mouseover",f))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Le),this._element.classList.remove(Le),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),N.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...U.getDataAttributes(this._element),...e},c(ve,e,this.constructor.DefaultType),"object"==typeof e.reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ve.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let i=this._element;"parent"===this._config.reference?i=e:o(this._config.reference)?i=l(this._config.reference):"object"==typeof this._config.reference&&(i=this._config.reference);const n=this._getPopperConfig(),a=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=t.createPopper(i,this._menu,n),a&&U.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Le)}_getMenuElement(){return $.next(this._element,Ae)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return Oe;if(e.classList.contains("dropstart"))return Pe;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Ce:Te:t?Ee:De}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=$.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(u);i.length&&_(i,t,e===_e,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=je.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=$.find(Se);for(let i=0,n=t.length;i<n;i++){const n=je.getInstance(t[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const a={relatedTarget:n._element};if(e){const t=e.composedPath(),i=t.includes(n._menu);if(t.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(a.clickEvent=e)}n._completeHide(a)}}static getParentFromElement(e){return r(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===be||e.key!==ye&&(e.key!==_e&&e.key!==xe||e.target.closest(Ae)):!we.test(e.key))return;const t=this.classList.contains(Le);if(!t&&e.key===ye)return;if(e.preventDefault(),e.stopPropagation(),d(this))return;const i=this.matches(Se)?this:$.prev(this,Se)[0],n=je.getOrCreateInstance(i);if(e.key!==ye)return e.key===xe||e.key===_e?(t||n.show(),void n._selectMenuItem(e)):void(t&&e.key!==be||je.clearMenus());n.hide()}}N.on(document,Me,Se,je.dataApiKeydownHandler),N.on(document,Me,Ae,je.dataApiKeydownHandler),N.on(document,ke,je.clearMenus),N.on(document,"keyup.bs.dropdown.data-api",je.clearMenus),N.on(document,ke,Se,(function(e){e.preventDefault(),je.getOrCreateInstance(this).toggle()})),y(je);const Ne=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",He=".sticky-top";class Fe{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(Ne,"paddingRight",(t=>t+e)),this._setElementAttributes(He,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const a=window.getComputedStyle(e)[t];e.style[t]=`${i(Number.parseFloat(a))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Ne,"paddingRight"),this._resetElementAttributes(He,"marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&U.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=U.getDataAttribute(e,t);void 0===i?e.style.removeProperty(t):(U.removeDataAttribute(e,t),e.style[t]=i)}))}_applyManipulationCallback(e,t){o(e)?t(e):$.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const Re={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},ze={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Be="show",We="mousedown.bs.backdrop";class Ve{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&p(this._getElement()),this._getElement().classList.add(Be),this._emulateAnimation((()=>{b(e)}))):b(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(Be),this._emulateAnimation((()=>{this.dispose(),b(e)}))):b(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...Re,..."object"==typeof e?e:{}}).rootElement=l(e.rootElement),c("backdrop",e,ze),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),N.on(this._getElement(),We,(()=>{b(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(N.off(this._element,We),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){x(e,this._getElement(),this._config.isAnimated)}}const qe={trapElement:null,autofocus:!0},Xe={trapElement:"element",autofocus:"boolean"},Ue=".bs.focustrap",$e="backward";class Ge{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),N.off(document,Ue),N.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),N.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,N.off(document,Ue))}_handleFocusin(e){const{target:t}=e,{trapElement:i}=this._config;if(t===document||t===i||i.contains(t))return;const n=$.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===$e?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?$e:"forward")}_getConfig(e){return e={...qe,..."object"==typeof e?e:{}},c("focustrap",e,Xe),e}}const Ze="modal",Ke="Escape",Je={backdrop:!0,keyboard:!0,focus:!0},Qe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},et="hidden.bs.modal",tt="show.bs.modal",it="resize.bs.modal",nt="click.dismiss.bs.modal",at="keydown.dismiss.bs.modal",rt="mousedown.dismiss.bs.modal",st="modal-open",ot="show",lt="modal-static";class ct extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=$.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new Fe}static get Default(){return Je}static get NAME(){return Ze}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||N.trigger(this._element,tt,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(st),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),N.on(this._dialog,rt,(()=>{N.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(N.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(ot),N.off(this._element,nt),N.off(this._dialog,rt),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>N.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ve({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ge({trapElement:this._element})}_getConfig(e){return e={...Je,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},c(Ze,e,Qe),e}_showElement(e){const t=this._isAnimated(),i=$.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),t&&p(this._element),this._element.classList.add(ot),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,N.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?N.on(this._element,at,(e=>{this._config.keyboard&&e.key===Ke?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Ke||this._triggerBackdropTransition()})):N.off(this._element,at)}_setResizeEvent(){this._isShown?N.on(window,it,(()=>this._adjustDialog())):N.off(window,it)}_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(st),this._resetAdjustments(),this._scrollBar.reset(),N.trigger(this._element,et)}))}_showBackdrop(e){N.on(this._element,nt,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(N.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,n=t>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||e.contains(lt)||(n||(i.overflowY="hidden"),e.add(lt),this._queueCallback((()=>{e.remove(lt),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!v()||i&&!e&&v())&&(this._element.style.paddingLeft=`${t}px`),(i&&!e&&!v()||!i&&e&&v())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=ct.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}N.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=r(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),N.one(t,tt,(e=>{e.defaultPrevented||N.one(t,et,(()=>{u(this)&&this.focus()}))}));const i=$.findOne(".modal.show");i&&ct.getInstance(i).hide(),ct.getOrCreateInstance(t).toggle(this)})),z(ct),y(ct);const ut="offcanvas",dt={backdrop:!0,keyboard:!0,scroll:!1},ht={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},ft="show",pt=".offcanvas.show",mt="hidden.bs.offcanvas";class gt extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return ut}static get Default(){return dt}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||N.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new Fe).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ft),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),N.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),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.remove(ft),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new Fe).reset(),N.trigger(this._element,mt)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...dt,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},c(ut,e,ht),e}_initializeBackDrop(){return new Ve({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ge({trapElement:this._element})}_addEventListeners(){N.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=gt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}N.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=r(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),d(this))return;N.one(t,mt,(()=>{u(this)&&this.focus()}));const i=$.findOne(pt);i&&i!==t&>.getInstance(i).hide(),gt.getOrCreateInstance(t).toggle(this)})),N.on(window,"load.bs.offcanvas.data-api",(()=>$.find(pt).forEach((e=>gt.getOrCreateInstance(e).show())))),z(gt),y(gt);const vt=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),yt=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,xt=(e,t)=>{const i=e.nodeName.toLowerCase();if(t.includes(i))return!vt.has(i)||Boolean(yt.test(e.nodeValue)||bt.test(e.nodeValue));const n=t.filter((e=>e instanceof RegExp));for(let e=0,t=n.length;e<t;e++)if(n[e].test(i))return!0;return!1};function _t(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),a=[].concat(...n.body.querySelectorAll("*"));for(let e=0,i=a.length;e<i;e++){const i=a[e],n=i.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){i.remove();continue}const r=[].concat(...i.attributes),s=[].concat(t["*"]||[],t[n]||[]);r.forEach((e=>{xt(e,s)||i.removeAttribute(e.nodeName)}))}return n.body.innerHTML}const wt="tooltip",kt=new Set(["sanitize","allowList","sanitizeFn"]),Mt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Lt={AUTO:"auto",TOP:"top",RIGHT:v()?"left":"right",BOTTOM:"bottom",LEFT:v()?"right":"left"},St={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},At={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Tt="fade",Ct="show",Dt="show",Et="out",Ot=".tooltip-inner",Pt=".modal",Yt="hide.bs.modal",It="hover",jt="focus";class Nt extends R{constructor(e,i){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(i),this.tip=null,this._setListeners()}static get Default(){return St}static get NAME(){return wt}static get Event(){return At}static get DefaultType(){return Mt}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Ct))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),N.off(this._element.closest(Pt),Yt,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 e=N.trigger(this._element,this.constructor.Event.SHOW),i=h(this._element),n=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Ot).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const a=this.getTipElement(),r=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);a.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this._config.animation&&a.classList.add(Tt);const s="function"==typeof this._config.placement?this._config.placement.call(this,a,this._element):this._config.placement,o=this._getAttachment(s);this._addAttachmentClass(o);const{container:l}=this._config;F.set(a,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(a),N.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=t.createPopper(this._element,a,this._getPopperConfig(o)),a.classList.add(Ct);const c=this._resolvePossibleFunction(this._config.customClass);c&&a.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{N.on(e,"mouseover",f)}));const u=this.tip.classList.contains(Tt);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,N.trigger(this._element,this.constructor.Event.SHOWN),e===Et&&this._leave(null,this)}),this.tip,u)}hide(){if(!this._popper)return;const e=this.getTipElement();if(N.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(Ct),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>N.off(e,"mouseover",f))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(Tt);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==Dt&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),N.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(Tt,Ct),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),Ot)}_sanitizeAndSetContent(e,t,i){const n=$.findOne(i,e);t||!n?this.setElementContent(n,t):n.remove()}setElementContent(e,t){if(null!==e)return o(t)?(t=l(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=_t(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,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:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return Lt[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)N.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===It?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e===It?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;N.on(this._element,t,this._config.selector,(e=>this._enter(e))),N.on(this._element,i,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},N.on(this._element.closest(Pt),Yt,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?jt:It]=!0),t.getTipElement().classList.contains(Ct)||t._hoverState===Dt?t._hoverState=Dt:(clearTimeout(t._timeout),t._hoverState=Dt,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===Dt&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?jt:It]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Et,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===Et&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=U.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{kt.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:l(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),c(wt,e,this.constructor.DefaultType),e.sanitize&&(e.template=_t(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=e.getAttribute("class").match(t);null!==i&&i.length>0&&i.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=Nt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}y(Nt);const Ht={...Nt.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},Ft={...Nt.DefaultType,content:"(string|element|function)"},Rt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class zt extends Nt{static get Default(){return Ht}static get NAME(){return"popover"}static get Event(){return Rt}static get DefaultType(){return Ft}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=zt.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}y(zt);const Bt="scrollspy",Wt={offset:10,method:"auto",target:""},Vt={offset:"number",method:"string",target:"(string|element)"},qt="active",Xt=".nav-link, .list-group-item, .dropdown-item",Ut="position";class $t extends R{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,N.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return Wt}static get NAME(){return Bt}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Ut,t="auto"===this._config.method?e:this._config.method,i=t===Ut?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),$.find(Xt,this._config.target).map((e=>{const n=a(e),r=n?$.findOne(n):null;if(r){const e=r.getBoundingClientRect();if(e.width||e.height)return[U[t](r).top+i,n]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){N.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={...Wt,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=l(e.target)||document.documentElement,c(Bt,e,Vt),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=Xt.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),i=$.findOne(t.join(","),this._config.target);i.classList.add(qt),i.classList.contains("dropdown-item")?$.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(qt):$.parents(i,".nav, .list-group").forEach((e=>{$.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(qt))),$.prev(e,".nav-item").forEach((e=>{$.children(e,".nav-link").forEach((e=>e.classList.add(qt)))}))})),N.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){$.find(Xt,this._config.target).filter((e=>e.classList.contains(qt))).forEach((e=>e.classList.remove(qt)))}static jQueryInterface(e){return this.each((function(){const t=$t.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}N.on(window,"load.bs.scrollspy.data-api",(()=>{$.find('[data-bs-spy="scroll"]').forEach((e=>new $t(e)))})),y($t);const Gt="active",Zt="fade",Kt="show",Jt=".active",Qt=":scope > li > .active";class ei extends R{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Gt))return;let e;const t=r(this._element),i=this._element.closest(".nav, .list-group");if(i){const t="UL"===i.nodeName||"OL"===i.nodeName?Qt:Jt;e=$.find(t,i),e=e[e.length-1]}const n=e?N.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(N.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const a=()=>{N.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),N.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,a):a()}_activate(e,t,i){const n=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?$.children(t,Jt):$.find(Qt,t))[0],a=i&&n&&n.classList.contains(Zt),r=()=>this._transitionComplete(e,n,i);n&&a?(n.classList.remove(Kt),this._queueCallback(r,e,!0)):r()}_transitionComplete(e,t,i){if(t){t.classList.remove(Gt);const e=$.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Gt),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(Gt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),p(e),e.classList.contains(Zt)&&e.classList.add(Kt);let n=e.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&$.find(".dropdown-toggle",t).forEach((e=>e.classList.add(Gt))),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(e){return this.each((function(){const t=ei.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}N.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),d(this)||ei.getOrCreateInstance(this).show()})),y(ei);const ti="toast",ii="hide",ni="show",ai="showing",ri={animation:"boolean",autohide:"boolean",delay:"number"},si={animation:!0,autohide:!0,delay:5e3};class oi extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return ri}static get Default(){return si}static get NAME(){return ti}show(){N.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(ii),p(this._element),this._element.classList.add(ni),this._element.classList.add(ai),this._queueCallback((()=>{this._element.classList.remove(ai),N.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(ni)&&(N.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(ai),this._queueCallback((()=>{this._element.classList.add(ii),this._element.classList.remove(ai),this._element.classList.remove(ni),N.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(ni)&&this._element.classList.remove(ni),super.dispose()}_getConfig(e){return e={...si,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},c(ti,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){N.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),N.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),N.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),N.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=oi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return z(oi),y(oi),{Alert:B,Button:V,Carousel:se,Collapse:ge,Dropdown:je,Modal:ct,Offcanvas:gt,Popover:zt,ScrollSpy:$t,Tab:ei,Toast:oi,Tooltip:Nt}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e,t;function i(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function o(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){for(var i=[],n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){for(var i in t)r(t,i)&&(e[i]=t[i]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,i,n){return vt(e,t,i,n,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var i=f(e),n=t.call(i.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&n);if(e._strict&&(a=a&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function m(e){var t=h(NaN);return null!=e?d(f(t),e):f(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var g=i.momentProperties=[],v=!1;function y(e,t){var i,n,a;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=f(t)),o(t._locale)||(e._locale=t._locale),0<g.length)for(i=0;i<g.length;i++)o(a=t[n=g[i]])||(e[n]=a);return e}function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function x(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function _(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,t){var n=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var a,s,o=[],l=0;l<arguments.length;l++){if(a="","object"==typeof arguments[l]){for(s in a+="\n["+l+"] ",arguments[0])r(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[l];o.push(a)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,M={};function L(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(_(t),M[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var i,n=d({},e);for(i in t)r(t,i)&&(a(e[i])&&a(t[i])?(n[i]={},d(n[i],e[i]),d(n[i],t[i])):null!=t[i]?n[i]=t[i]:delete n[i]);for(i in e)r(e,i)&&!r(t,i)&&a(e[i])&&(n[i]=d({},n[i]));return n}function T(e){null!=e&&this.set(e)}function C(e,t,i){var n=""+Math.abs(e),a=t-n.length;return(0<=e?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)r(e,t)&&i.push(t);return i};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},P={};function Y(e,t,i,n){var a="string"==typeof n?function(){return this[n]()}:n;e&&(P[e]=a),t&&(P[t[0]]=function(){return C(a.apply(this,arguments),t[1],t[2])}),i&&(P[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e,t){return e.isValid()?(t=j(t,e.localeData()),O[t]=O[t]||function(e){for(var t,i=e.match(D),n=0,a=i.length;n<a;n++)P[i[n]]?i[n]=P[i[n]]:i[n]=(t=i[n]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var n="",r=0;r<a;r++)n+=S(i[r])?i[r].call(t,e):i[r];return n}}(t),O[t](e)):e.localeData().invalidDate()}function j(e,t){var i=5;function n(e){return t.longDateFormat(e)||e}for(E.lastIndex=0;0<=i&&E.test(e);)e=e.replace(E,n),E.lastIndex=0,--i;return e}var N={};function H(e,t){var i=e.toLowerCase();N[i]=N[i+"s"]=N[t]=e}function F(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function R(e){var t,i,n={};for(i in e)r(e,i)&&(t=F(i))&&(n[t]=e[i]);return n}var z={};function B(e,t){z[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,i=0;return 0!=t&&isFinite(t)&&(i=V(t)),i}function X(e,t){return function(n){return null!=n?($(this,e,n),i.updateOffset(this,t),this):U(this,e)}}function U(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(i=q(i),e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),be(i,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](i))}var G,Z=/\d/,K=/\d\d/,J=/\d{3}/,Q=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,ie=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ae=/\d{1,3}/,re=/\d{1,4}/,se=/[+-]?\d{1,6}/,oe=/\d+/,le=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,i){G[e]=S(t)?t:function(e,n){return e&&i?i:t}}function fe(e,t){return r(G,e)?G[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,n,a){return t||i||n||a}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var me={};function ge(e,t){var i,n=t;for("string"==typeof e&&(e=[e]),l(t)&&(n=function(e,i){i[t]=q(e)}),i=0;i<e.length;i++)me[e[i]]=n}function ve(e,t){ge(e,(function(e,i,n,a){n._w=n._w||{},t(e,n._w,n,a)}))}var ye;function be(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1==i?W(e)?29:28:31-i%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Y("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),B("month",8),he("M",te),he("MM",te,K),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[1]=q(e)-1})),ge(["MMM","MMMM"],(function(e,t,i,n){var a=i._locale.monthsParse(e,n,i._strict);null!=a?t[1]=a:f(i).invalidMonth=e}));var xe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),we=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ke=de,Me=de;function Le(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=q(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return i=Math.min(e.date(),be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function Se(e){return null!=e?(Le(this,e),i.updateOffset(this,!0),this):U(this,"Month")}function Ae(){function e(e,t){return t.length-e.length}for(var t,i=[],n=[],a=[],r=0;r<12;r++)t=h([2e3,r]),i.push(this.monthsShort(t,"")),n.push(this.months(t,"")),a.push(this.months(t,"")),a.push(this.monthsShort(t,""));for(i.sort(e),n.sort(e),a.sort(e),r=0;r<12;r++)i[r]=pe(i[r]),n[r]=pe(n[r]);for(r=0;r<24;r++)a[r]=pe(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Te(e){return W(e)?366:365}Y("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),H("year","y"),B("year",1),he("Y",le),he("YY",te,K),he("YYYY",re,Q),he("YYYYY",se,ee),he("YYYYYY",se,ee),ge(["YYYYY","YYYYYY"],0),ge("YYYY",(function(e,t){t[0]=2===e.length?i.parseTwoDigitYear(e):q(e)})),ge("YY",(function(e,t){t[0]=i.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[0]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return q(e)+(68<q(e)?1900:2e3)};var Ce=X("FullYear",!0);function De(e){var t,i;return e<100&&0<=e?((i=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ee(e,t,i){var n=7+t-i;return n-(7+De(e,0,n).getUTCDay()-t)%7-1}function Oe(e,t,i,n,a){var r,s=1+7*(t-1)+(7+i-n)%7+Ee(e,n,a),o=s<=0?Te(r=e-1)+s:s>Te(e)?(r=e+1,s-Te(e)):(r=e,s);return{year:r,dayOfYear:o}}function Pe(e,t,i){var n,a,r=Ee(e.year(),t,i),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?n=s+Ye(a=e.year()-1,t,i):s>Ye(e.year(),t,i)?(n=s-Ye(e.year(),t,i),a=e.year()+1):(a=e.year(),n=s),{week:n,year:a}}function Ye(e,t,i){var n=Ee(e,t,i),a=Ee(e+1,t,i);return(Te(e)-n+a)/7}function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),B("week",5),B("isoWeek",5),he("w",te),he("ww",te,K),he("W",te),he("WW",te,K),ve(["w","ww","W","WW"],(function(e,t,i,n){t[n.substr(0,1)]=q(e)})),Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),he("d",te),he("e",te),he("E",te),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,i,n){var a=i._locale.weekdaysParse(e,n,i._strict);null!=a?t.d=a:f(i).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,i,n){t[n]=q(e)}));var je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),He="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=de,Re=de,ze=de;function Be(){function e(e,t){return t.length-e.length}for(var t,i,n,a,r=[],s=[],o=[],l=[],c=0;c<7;c++)t=h([2e3,1]).day(c),i=pe(this.weekdaysMin(t,"")),n=pe(this.weekdaysShort(t,"")),a=pe(this.weekdays(t,"")),r.push(i),s.push(n),o.push(a),l.push(i),l.push(n),l.push(a);r.sort(e),s.sort(e),o.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function We(){return this.hours()%12||12}function Ve(e,t){Y(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function qe(e,t){return t._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,We),Y("k",["kk",2],0,(function(){return this.hours()||24})),Y("hmm",0,0,(function(){return""+We.apply(this)+C(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+We.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ve("a",!0),Ve("A",!1),H("hour","h"),B("hour",13),he("a",qe),he("A",qe),he("H",te),he("h",te),he("k",te),he("HH",te,K),he("hh",te,K),he("kk",te,K),he("hmm",ie),he("hmmss",ne),he("Hmm",ie),he("Hmmss",ne),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,i){var n=q(e);t[3]=24===n?0:n})),ge(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),ge(["h","hh"],(function(e,t,i){t[3]=q(e),f(i).bigHour=!0})),ge("hmm",(function(e,t,i){var n=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n)),f(i).bigHour=!0})),ge("hmmss",(function(e,t,i){var n=e.length-4,a=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n,2)),t[5]=q(e.substr(a)),f(i).bigHour=!0})),ge("Hmm",(function(e,t,i){var n=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n))})),ge("Hmmss",(function(e,t,i){var n=e.length-4,a=e.length-2;t[3]=q(e.substr(0,n)),t[4]=q(e.substr(n,2)),t[5]=q(e.substr(a))}));var Xe,Ue=X("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:_e,week:{dow:0,doy:6},weekdays:je,weekdaysMin:He,weekdaysShort:Ne,meridiemParse:/[ap]\.?m?\.?/i},Ge={},Ze={};function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){var t;if(void 0===Ge[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Xe._abbr,require("./locale/"+e),Qe(t)}catch(t){Ge[e]=null}return Ge[e]}function Qe(e,t){var i;return e&&((i=o(t)?tt(e):et(e,t))?Xe=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function et(e,t){if(null===t)return delete Ge[e],null;var i,n=$e;if(t.abbr=e,null!=Ge[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ge[e]._config;else if(null!=t.parentLocale)if(null!=Ge[t.parentLocale])n=Ge[t.parentLocale]._config;else{if(null==(i=Je(t.parentLocale)))return Ze[t.parentLocale]||(Ze[t.parentLocale]=[]),Ze[t.parentLocale].push({name:e,config:t}),null;n=i._config}return Ge[e]=new T(A(n,t)),Ze[e]&&Ze[e].forEach((function(e){et(e.name,e.config)})),Qe(e),Ge[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!n(e)){if(t=Je(e))return t;e=[e]}return function(e){for(var t,i,n,a,r=0;r<e.length;){for(t=(a=Ke(e[r]).split("-")).length,i=(i=Ke(e[r+1]))?i.split("-"):null;0<t;){if(n=Je(a.slice(0,t).join("-")))return n;if(i&&i.length>=t&&function(e,t){for(var i=Math.min(e.length,t.length),n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}(a,i)>=t-1)break;t--}r++}return Xe}(e)}function it(e){var t,i=e._a;return i&&-2===f(e).overflow&&(t=i[1]<0||11<i[1]?1:i[2]<1||i[2]>be(i[0],i[1])?2:i[3]<0||24<i[3]||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||59<i[4]?4:i[5]<0||59<i[5]?5:i[6]<0||999<i[6]?6:-1,f(e)._overflowDayOfYear&&(t<0||2<t)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var nt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,at=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rt=/Z|[+-]\d\d(?::?\d\d)?/,st=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ot=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lt=/^\/?Date\((-?\d+)/i,ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ut={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dt(e){var t,i,n,a,r,s,o=e._i,l=nt.exec(o)||at.exec(o);if(l){for(f(e).iso=!0,t=0,i=st.length;t<i;t++)if(st[t][1].exec(l[1])){a=st[t][0],n=!1!==st[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,i=ot.length;t<i;t++)if(ot[t][1].exec(l[3])){r=(l[2]||" ")+ot[t][0];break}if(null==r)return void(e._isValid=!1)}if(!n&&null!=r)return void(e._isValid=!1);if(l[4]){if(!rt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=a+(r||"")+(s||""),mt(e)}else e._isValid=!1}function ht(e){var t,i,n,a,r=ct.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){if(t=function(e,t,i,n,a,r){var s=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),_e.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(a,10)];return r&&s.push(parseInt(r,10)),s}(r[4],r[3],r[2],r[5],r[6],r[7]),n=t,a=e,(i=r[1])&&Ne.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(f(a).weekdayMismatch=!0,!void(a._isValid=!1)))return;e._a=t,e._tzm=function(e,t,i){if(e)return ut[e];if(t)return 0;var n=parseInt(i,10),a=n%100;return(n-a)/100*60+a}(r[8],r[9],r[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function ft(e,t,i){return null!=e?e:null!=t?t:i}function pt(e){var t,n,a,r,s,o,l,c=[];if(!e._d){for(o=e,l=new Date(i.now()),a=o._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,i,n,a,r,s,o,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,s=4,i=ft(t.GG,e._a[0],Pe(yt(),1,4).year),n=ft(t.W,1),((a=ft(t.E,1))<1||7<a)&&(l=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,c=Pe(yt(),r,s),i=ft(t.gg,e._a[0],c.year),n=ft(t.w,c.week),null!=t.d?((a=t.d)<0||6<a)&&(l=!0):null!=t.e?(a=t.e+r,(t.e<0||6<t.e)&&(l=!0)):a=r),n<1||n>Ye(i,r,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(o=Oe(i,n,a,r,s),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=ft(e._a[0],a[0]),(e._dayOfYear>Te(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=De(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=a[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:function(e,t,i,n,a,r,s){var o;return e<100&&0<=e?(o=new Date(e+400,t,i,n,a,r,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,n,a,r,s),o}).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function mt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;for(var t,n,a,s,o,l,c,u=""+e._i,d=u.length,h=0,p=j(e._f,e._locale).match(D)||[],m=0;m<p.length;m++)n=p[m],(t=(u.match(fe(n,e))||[])[0])&&(0<(a=u.substr(0,u.indexOf(t))).length&&f(e).unusedInput.push(a),u=u.slice(u.indexOf(t)+t.length),h+=t.length),P[n]?(t?f(e).empty=!1:f(e).unusedTokens.push(n),o=n,c=e,null!=(l=t)&&r(me,o)&&me[o](l,c._a,c,o)):e._strict&&!t&&f(e).unusedTokens.push(n);f(e).charsLeftOver=d-h,0<u.length&&f(e).unusedInput.push(u),e._a[3]<=12&&!0===f(e).bigHour&&0<e._a[3]&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):(null!=e.isPM&&((n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0)),t)}(e._locale,e._a[3],e._meridiem),null!==(s=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),pt(e),it(e)}else ht(e);else dt(e)}function gt(e){var t,r,s=e._i,h=e._f;return e._locale=e._locale||tt(e._l),null===s||void 0===h&&""===s?m({nullInput:!0}):("string"==typeof s&&(e._i=s=e._locale.preparse(s)),x(s)?new b(it(s)):(c(s)?e._d=s:n(h)?function(e){var t,i,n,a,r,s,o=!1;if(0===e._f.length)return f(e).invalidFormat=!0,e._d=new Date(NaN);for(a=0;a<e._f.length;a++)r=0,s=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],mt(t),p(t)&&(s=!0),r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,o?r<n&&(n=r,i=t):(null==n||r<n||s)&&(n=r,i=t,s&&(o=!0));d(e,i||t)}(e):h?mt(e):o(r=(t=e)._i)?t._d=new Date(i.now()):c(r)?t._d=new Date(r.valueOf()):"string"==typeof r?function(e){var t=lt.exec(e._i);null===t?(dt(e),!1===e._isValid&&(delete e._isValid,ht(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):n(r)?(t._a=u(r.slice(0),(function(e){return parseInt(e,10)})),pt(t)):a(r)?function(e){var t,i;e._d||(i=void 0===(t=R(e._i)).day?t.date:t.day,e._a=u([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),pt(e))}(t):l(r)?t._d=new Date(r):i.createFromInputFallback(t),p(e)||(e._d=null),e))}function vt(e,t,i,r,o){var l,c={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(a(e)&&s(e)||n(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=i,c._i=e,c._f=t,c._strict=r,(l=new b(it(gt(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function yt(e,t,i,n){return vt(e,t,i,n,!1)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var bt=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),xt=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()}));function _t(e,t){var i,a;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return yt();for(i=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](i)||(i=t[a]);return i}var wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function kt(e){var t=R(e),i=t.year||0,n=t.quarter||0,a=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,i,n=!1;for(t in e)if(r(e,t)&&(-1===ye.call(wt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<wt.length;++i)if(e[wt[i]]){if(n)return!1;parseFloat(e[wt[i]])!==q(e[wt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+o+7*s,this._months=+a+3*n+12*i,this._data={},this._locale=tt(),this._bubble()}function Mt(e){return e instanceof kt}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function St(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+C(~~(e/60),2)+t+C(~~e%60,2)}))}St("Z",":"),St("ZZ",""),he("Z",ue),he("ZZ",ue),ge(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=Tt(ue,e)}));var At=/([\+\-]|\d\d)/gi;function Tt(e,t){var i,n,a=(t||"").match(e);return null===a?null:0===(n=60*(i=((a[a.length-1]||[])+"").match(At)||["-",0,0])[1]+q(i[2]))?0:"+"===i[0]?n:-n}function Ct(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(x(e)||c(e)?e.valueOf():yt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),i.updateOffset(n,!1),n):yt(e).local()}function Dt(e){return-Math.round(e._d.getTimezoneOffset())}function Et(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ot=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var i,n,a,s=e,o=null;return Mt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(o=Ot.exec(e))?(i="-"===o[1]?-1:1,s={y:0,d:q(o[2])*i,h:q(o[3])*i,m:q(o[4])*i,s:q(o[5])*i,ms:q(Lt(1e3*o[6]))*i}):(o=Pt.exec(e))?(i="-"===o[1]?-1:1,s={y:It(o[2],i),M:It(o[3],i),w:It(o[4],i),d:It(o[5],i),h:It(o[6],i),m:It(o[7],i),s:It(o[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(a=function(e,t){var i;return e.isValid()&&t.isValid()?(t=Ct(t,e),e.isBefore(t)?i=jt(e,t):((i=jt(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(yt(s.from),yt(s.to)),(s={}).ms=a.milliseconds,s.M=a.months),n=new kt(s),Mt(e)&&r(e,"_locale")&&(n._locale=e._locale),Mt(e)&&r(e,"_isValid")&&(n._isValid=e._isValid),n}function It(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function jt(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=t-e.clone().add(i.months,"M"),i}function Nt(e,t){return function(i,n){var a;return null===n||isNaN(+n)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),Ht(this,Yt(i,n),e),this}}function Ht(e,t,n,a){var r=t._milliseconds,s=Lt(t._days),o=Lt(t._months);e.isValid()&&(a=null==a||a,o&&Le(e,U(e,"Month")+o*n),s&&$(e,"Date",U(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&i.updateOffset(e,s||o))}Yt.fn=kt.prototype,Yt.invalid=function(){return Yt(NaN)};var Ft=Nt(1,"add"),Rt=Nt(-1,"subtract");function zt(e){return"string"==typeof e||e instanceof String}function Bt(e){return x(e)||c(e)||zt(e)||l(e)||function(e){var t=n(e),i=!1;return t&&(i=0===e.filter((function(t){return!l(t)&&zt(e)})).length),t&&i}(e)||function(e){var t,i=a(e)&&!s(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=n||r(e,o[t]);return i&&n}(e)||null==e}function Wt(e,t){if(e.date()<t.date())return-Wt(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(i,"months");return-(i+(t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(1+i,"months")-n)))||0}function Vt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=tt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var qt=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Xt(){return this._locale}var Ut=126227808e5;function $t(e,t){return(e%t+t)%t}function Gt(e,t,i){return e<100&&0<=e?new Date(e+400,t,i)-Ut:new Date(e,t,i).valueOf()}function Zt(e,t,i){return e<100&&0<=e?Date.UTC(e+400,t,i)-Ut:Date.UTC(e,t,i)}function Kt(e,t){return t.erasAbbrRegex(e)}function Jt(){for(var e=[],t=[],i=[],n=[],a=this.eras(),r=0,s=a.length;r<s;++r)t.push(pe(a[r].name)),e.push(pe(a[r].abbr)),i.push(pe(a[r].narrow)),n.push(pe(a[r].name)),n.push(pe(a[r].abbr)),n.push(pe(a[r].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Qt(e,t){Y(0,[e,e.length],0,t)}function ei(e,t,i,n,a){var r;return null==e?Pe(this,n,a).year:((r=Ye(e,n,a))<t&&(t=r),function(e,t,i,n,a){var r=Oe(e,t,i,n,a),s=De(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,i,n,a))}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),he("N",Kt),he("NN",Kt),he("NNN",Kt),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,n){var a=i._locale.erasParse(e,n,i._strict);a?f(i).era=a:f(i).invalidEra=e})),he("y",oe),he("yy",oe),he("yyy",oe),he("yyyy",oe),he("yo",(function(e,t){return t._eraYearOrdinalRegex||oe})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[0]=i._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Qt("gggg","weekYear"),Qt("ggggg","weekYear"),Qt("GGGG","isoWeekYear"),Qt("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),he("G",le),he("g",le),he("GG",te,K),he("gg",te,K),he("GGGG",re,Q),he("gggg",re,Q),he("GGGGG",se,ee),he("ggggg",se,ee),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,n){t[n.substr(0,2)]=q(e)})),ve(["gg","GG"],(function(e,t,n,a){t[a]=i.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),H("quarter","Q"),B("quarter",7),he("Q",Z),ge("Q",(function(e,t){t[1]=3*(q(e)-1)})),Y("D",["DD",2],"Do","date"),H("date","D"),B("date",9),he("D",te),he("DD",te,K),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=q(e.match(te)[0])}));var ti=X("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),B("dayOfYear",4),he("DDD",ae),he("DDDD",J),ge(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=q(e)})),Y("m",["mm",2],0,"minute"),H("minute","m"),B("minute",14),he("m",te),he("mm",te,K),ge(["m","mm"],4);var ii=X("Minutes",!1);Y("s",["ss",2],0,"second"),H("second","s"),B("second",15),he("s",te),he("ss",te,K),ge(["s","ss"],5);var ni,ai,ri=X("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),B("millisecond",16),he("S",ae,Z),he("SS",ae,K),he("SSS",ae,J),ni="SSSS";ni.length<=9;ni+="S")he(ni,oe);function si(e,t){t[6]=q(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")ge(ni,si);ai=X("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var oi=b.prototype;function li(e){return e}oi.add=Ft,oi.calendar=function(e,t){1===arguments.length&&(arguments[0]?Bt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=a(e)&&!s(e),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o=0;o<n.length;o+=1)i=i||r(e,n[o]);return t&&i}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||yt(),o=Ct(n,this).startOf("day"),l=i.calendarFormat(this,o)||"sameElse",c=t&&(S(t[l])?t[l].call(this,n):t[l]);return this.format(c||this.localeData().calendar(l,this,yt(n)))},oi.clone=function(){return new b(this)},oi.diff=function(e,t,i){var n,a,r;if(!this.isValid())return NaN;if(!(n=Ct(e,this)).isValid())return NaN;switch(a=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":r=Wt(this,n)/12;break;case"month":r=Wt(this,n);break;case"quarter":r=Wt(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-a)/864e5;break;case"week":r=(this-n-a)/6048e5;break;default:r=this-n}return i?r:V(r)},oi.endOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Zt:Gt,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-$t(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-$t(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-$t(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},oi.format=function(e){var t=I(this,e=e||(this.isUtc()?i.defaultFormatUtc:i.defaultFormat));return this.localeData().postformat(t)},oi.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||yt(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oi.fromNow=function(e){return this.from(yt(),e)},oi.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||yt(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oi.toNow=function(e){return this.to(yt(),e)},oi.get=function(e){return S(this[e=F(e)])?this[e]():this},oi.invalidAt=function(){return f(this).overflow},oi.isAfter=function(e,t){var i=x(e)?e:yt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},oi.isBefore=function(e,t){var i=x(e)?e:yt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},oi.isBetween=function(e,t,i,n){var a=x(e)?e:yt(e),r=x(t)?t:yt(t);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,i):!this.isBefore(a,i))&&(")"===n[1]?this.isBefore(r,i):!this.isAfter(r,i))},oi.isSame=function(e,t){var i,n=x(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},oi.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oi.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oi.isValid=function(){return p(this)},oi.lang=qt,oi.locale=Vt,oi.localeData=Xt,oi.max=xt,oi.min=bt,oi.parsingFlags=function(){return d({},f(this))},oi.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t,i=[];for(t in e)r(e,t)&&i.push({unit:t,priority:z[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}(e=R(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(S(this[e=F(e)]))return this[e](t);return this},oi.startOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Zt:Gt,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=$t(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=$t(t,6e4);break;case"second":t=this._d.valueOf(),t-=$t(t,1e3)}return this._d.setTime(t),i.updateOffset(this,!0),this},oi.subtract=Rt,oi.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},oi.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},oi.toDate=function(){return new Date(this.valueOf())},oi.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||9999<i.year()?I(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(i,"Z")):I(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},oi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oi.toJSON=function(){return this.isValid()?this.toISOString():null},oi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oi.unix=function(){return Math.floor(this.valueOf()/1e3)},oi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oi.eraName=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].name;if(t[i].until<=e&&e<=t[i].since)return t[i].name}return""},oi.eraNarrow=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].narrow;if(t[i].until<=e&&e<=t[i].since)return t[i].narrow}return""},oi.eraAbbr=function(){for(var e,t=this.localeData().eras(),i=0,n=t.length;i<n;++i){if(e=this.clone().startOf("day").valueOf(),t[i].since<=e&&e<=t[i].until)return t[i].abbr;if(t[i].until<=e&&e<=t[i].since)return t[i].abbr}return""},oi.eraYear=function(){for(var e,t,n=this.localeData().eras(),a=0,r=n.length;a<r;++a)if(e=n[a].since<=n[a].until?1:-1,t=this.clone().startOf("day").valueOf(),n[a].since<=t&&t<=n[a].until||n[a].until<=t&&t<=n[a].since)return(this.year()-i(n[a].since).year())*e+n[a].offset;return this.year()},oi.year=Ce,oi.isLeapYear=function(){return W(this.year())},oi.weekYear=function(e){return ei.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},oi.isoWeekYear=function(e){return ei.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oi.quarter=oi.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oi.month=Se,oi.daysInMonth=function(){return be(this.year(),this.month())},oi.week=oi.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oi.isoWeek=oi.isoWeeks=function(e){var t=Pe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oi.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},oi.weeksInWeekYear=function(){var e=this.localeData()._week;return Ye(this.weekYear(),e.dow,e.doy)},oi.isoWeeksInYear=function(){return Ye(this.year(),1,4)},oi.isoWeeksInISOWeekYear=function(){return Ye(this.isoWeekYear(),1,4)},oi.date=ti,oi.day=oi.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},oi.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},oi.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,i,n=(t=e,i=this.localeData(),"string"==typeof t?i.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?n:n-7)},oi.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oi.hour=oi.hours=Ue,oi.minute=oi.minutes=ii,oi.second=oi.seconds=ri,oi.millisecond=oi.milliseconds=ai,oi.utcOffset=function(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:Dt(this);if("string"==typeof e){if(null===(e=Tt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=Dt(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Ht(this,Yt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},oi.utc=function(e){return this.utcOffset(0,e)},oi.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this},oi.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Tt(ce,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},oi.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oi.isLocal=function(){return!!this.isValid()&&!this._isUTC},oi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oi.isUtc=Et,oi.isUTC=Et,oi.zoneAbbr=function(){return this._isUTC?"UTC":""},oi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oi.dates=w("dates accessor is deprecated. Use date instead.",ti),oi.months=w("months accessor is deprecated. Use month instead",Se),oi.years=w("years accessor is deprecated. Use year instead",Ce),oi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),oi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=gt(t))._a?(e=(t._isUTC?h:yt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,i){for(var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0,s=0;s<n;s++)q(e[s])!==q(t[s])&&r++;return r+a}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted}));var ci=T.prototype;function ui(e,t,i,n){var a=tt(),r=h().set(n,t);return a[i](r,e)}function di(e,t,i){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return ui(e,t,i,"month");for(var n=[],a=0;a<12;a++)n[a]=ui(e,a,i,"month");return n}function hi(e,t,i,n){"boolean"==typeof e?l(t)&&(i=t,t=void 0):(t=e,e=!1,l(i=t)&&(i=t,t=void 0)),t=t||"";var a,r=tt(),s=e?r._week.dow:0,o=[];if(null!=i)return ui(t,(i+s)%7,n,"day");for(a=0;a<7;a++)o[a]=ui(t,(a+s)%7,n,"day");return o}ci.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return S(n)?n.call(t,i):n},ci.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},ci.invalidDate=function(){return this._invalidDate},ci.ordinal=function(e){return this._ordinal.replace("%d",e)},ci.preparse=li,ci.postformat=li,ci.relativeTime=function(e,t,i,n){var a=this._relativeTime[i];return S(a)?a(e,t,i,n):a.replace(/%d/i,e)},ci.pastFuture=function(e,t){var i=this._relativeTime[0<e?"future":"past"];return S(i)?i(t):i.replace(/%s/i,t)},ci.set=function(e){var t,i;for(i in e)r(e,i)&&(S(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ci.eras=function(e,t){for(var n,a=this._eras||tt("en")._eras,r=0,s=a.length;r<s;++r){if("string"==typeof a[r].since)n=i(a[r].since).startOf("day"),a[r].since=n.valueOf();switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=i(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf()}}return a},ci.erasParse=function(e,t,i){var n,a,r,s,o,l=this.eras();for(e=e.toUpperCase(),n=0,a=l.length;n<a;++n)if(r=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),o=l[n].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[n];break;case"NNNN":if(r===e)return l[n];break;case"NNNNN":if(o===e)return l[n]}else if(0<=[r,s,o].indexOf(e))return l[n]},ci.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},ci.erasAbbrRegex=function(e){return r(this,"_erasAbbrRegex")||Jt.call(this),e?this._erasAbbrRegex:this._erasRegex},ci.erasNameRegex=function(e){return r(this,"_erasNameRegex")||Jt.call(this),e?this._erasNameRegex:this._erasRegex},ci.erasNarrowRegex=function(e){return r(this,"_erasNarrowRegex")||Jt.call(this),e?this._erasNarrowRegex:this._erasRegex},ci.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},ci.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ci.monthsParse=function(e,t,i){var n,a,r;if(this._monthsParseExact)return function(e,t,i){var n,a,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,s))?a:null:-1!==(a=ye.call(this._longMonthsParse,s))?a:null:"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,s))||-1!==(a=ye.call(this._longMonthsParse,s))?a:null:-1!==(a=ye.call(this._longMonthsParse,s))||-1!==(a=ye.call(this._shortMonthsParse,s))?a:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},ci.monthsRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=Me),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ci.monthsShortRegex=function(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=ke),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ci.week=function(e){return Pe(e,this._week.dow,this._week.doy).week},ci.firstDayOfYear=function(){return this._week.doy},ci.firstDayOfWeek=function(){return this._week.dow},ci.weekdays=function(e,t){var i=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ie(i,this._week.dow):e?i[e.day()]:i},ci.weekdaysMin=function(e){return!0===e?Ie(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},ci.weekdaysShort=function(e){return!0===e?Ie(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},ci.weekdaysParse=function(e,t,i){var n,a,r;if(this._weekdaysParseExact)return function(e,t,i){var n,a,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,s))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,s))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,s))?a:null:"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,s))||-1!==(a=ye.call(this._shortWeekdaysParse,s))||-1!==(a=ye.call(this._minWeekdaysParse,s))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,s))||-1!==(a=ye.call(this._weekdaysParse,s))||-1!==(a=ye.call(this._minWeekdaysParse,s))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,s))||-1!==(a=ye.call(this._weekdaysParse,s))||-1!==(a=ye.call(this._shortWeekdaysParse,s))?a:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},ci.weekdaysRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ci.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Re),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ci.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Be.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ci.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ci.meridiem=function(e,t,i){return 11<e?i?"pm":"PM":i?"am":"AM"},Qe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",Qe),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",tt);var fi=Math.abs;function pi(e,t,i,n){var a=Yt(t,i);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function mi(e){return e<0?Math.floor(e):Math.ceil(e)}function gi(e){return 4800*e/146097}function vi(e){return 146097*e/4800}function yi(e){return function(){return this.as(e)}}var bi=yi("ms"),xi=yi("s"),_i=yi("m"),wi=yi("h"),ki=yi("d"),Mi=yi("w"),Li=yi("M"),Si=yi("Q"),Ai=yi("y");function Ti(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ci=Ti("milliseconds"),Di=Ti("seconds"),Ei=Ti("minutes"),Oi=Ti("hours"),Pi=Ti("days"),Yi=Ti("months"),Ii=Ti("years"),ji=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var Hi=Math.abs;function Fi(e){return(0<e)-(e<0)||+e}function Ri(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,n,a,r,s,o,l=Hi(this._milliseconds)/1e3,c=Hi(this._days),u=Hi(this._months),d=this.asSeconds();return d?(e=V(l/60),t=V(e/60),l%=60,e%=60,i=V(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",r=Fi(this._months)!==Fi(d)?"-":"",s=Fi(this._days)!==Fi(d)?"-":"",o=Fi(this._milliseconds)!==Fi(d)?"-":"",a+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+n+"S":"")):"P0D"}var zi=kt.prototype;function Bi(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function Wi(e){return function(t,i,n,a){var r=Bi(t),s=Vi[e][Bi(t)];return 2===r&&(s=s[i?0:1]),s.replace(/%d/i,t)}}zi.isValid=function(){return this._isValid},zi.abs=function(){var e=this._data;return this._milliseconds=fi(this._milliseconds),this._days=fi(this._days),this._months=fi(this._months),e.milliseconds=fi(e.milliseconds),e.seconds=fi(e.seconds),e.minutes=fi(e.minutes),e.hours=fi(e.hours),e.months=fi(e.months),e.years=fi(e.years),this},zi.add=function(e,t){return pi(this,e,t,1)},zi.subtract=function(e,t){return pi(this,e,t,-1)},zi.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,i=this._months+gi(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(vi(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},zi.asMilliseconds=bi,zi.asSeconds=xi,zi.asMinutes=_i,zi.asHours=wi,zi.asDays=ki,zi.asWeeks=Mi,zi.asMonths=Li,zi.asQuarters=Si,zi.asYears=Ai,zi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},zi._bubble=function(){var e,t,i,n,a,r=this._milliseconds,s=this._days,o=this._months,l=this._data;return 0<=r&&0<=s&&0<=o||r<=0&&s<=0&&o<=0||(r+=864e5*mi(vi(o)+s),o=s=0),l.milliseconds=r%1e3,e=V(r/1e3),l.seconds=e%60,t=V(e/60),l.minutes=t%60,i=V(t/60),l.hours=i%24,s+=V(i/24),o+=a=V(gi(s)),s-=mi(vi(a)),n=V(o/12),o%=12,l.days=s,l.months=o,l.years=n,this},zi.clone=function(){return Yt(this)},zi.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},zi.milliseconds=Ci,zi.seconds=Di,zi.minutes=Ei,zi.hours=Oi,zi.days=Pi,zi.weeks=function(){return V(this.days()/7)},zi.months=Yi,zi.years=Ii,zi.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,n,a=!1,r=Ni;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(r=Object.assign({},Ni,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=function(e,t,i,n){var a=Yt(e).abs(),r=ji(a.as("s")),s=ji(a.as("m")),o=ji(a.as("h")),l=ji(a.as("d")),c=ji(a.as("M")),u=ji(a.as("w")),d=ji(a.as("y")),h=(r<=i.ss?["s",r]:r<i.s&&["ss",r])||s<=1&&["m"]||s<i.m&&["mm",s]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(h=h||u<=1&&["w"]||u<i.w&&["ww",u]),(h=h||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=0<+e,h[4]=n,function(e,t,i,n,a){return a.relativeTime(t||1,!!i,e,n)}.apply(null,h)}(this,!a,r,i=this.localeData()),a&&(n=i.pastFuture(+this,n)),i.postformat(n)},zi.toISOString=Ri,zi.toString=Ri,zi.toJSON=Ri,zi.locale=Vt,zi.localeData=Xt,zi.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ri),zi.lang=qt,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),he("x",le),he("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,i){i._d=new Date(q(e))})),i.version="2.29.1",e=yt,i.fn=oi,i.min=function(){return _t("isBefore",[].slice.call(arguments,0))},i.max=function(){return _t("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return yt(1e3*e)},i.months=function(e,t){return di(e,t,"months")},i.isDate=c,i.locale=Qe,i.invalid=m,i.duration=Yt,i.isMoment=x,i.weekdays=function(e,t,i){return hi(e,t,i,"weekdays")},i.parseZone=function(){return yt.apply(null,arguments).parseZone()},i.localeData=tt,i.isDuration=Mt,i.monthsShort=function(e,t){return di(e,t,"monthsShort")},i.weekdaysMin=function(e,t,i){return hi(e,t,i,"weekdaysMin")},i.defineLocale=et,i.updateLocale=function(e,t){var i,n,a;return null!=t?(a=$e,null!=Ge[e]&&null!=Ge[e].parentLocale?Ge[e].set(A(Ge[e]._config,t)):(null!=(n=Je(e))&&(a=n._config),t=A(a,t),null==n&&(t.abbr=e),(i=new T(t)).parentLocale=Ge[e],Ge[e]=i),Qe(e)):null!=Ge[e]&&(null!=Ge[e].parentLocale?(Ge[e]=Ge[e].parentLocale,e===Qe()&&Qe(e)):null!=Ge[e]&&delete Ge[e]),Ge[e]},i.locales=function(){return k(Ge)},i.weekdaysShort=function(e,t,i){return hi(e,t,i,"weekdaysShort")},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?ji:"function"==typeof e&&(ji=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Ni[e]&&(void 0===t?Ni[e]:(Ni[e]=t,"s"===e&&(Ni.ss=t-1),!0))},i.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=oi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}});var Vi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},qi=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];function Xi(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function Ui(e){return function(t,i,n,a){var r=Xi(t),s=Gi[e][Xi(t)];return 2===r&&(s=s[i?0:1]),s.replace(/%d/i,t)}}i.defineLocale("ar-dz",{months:qi,monthsShort:qi,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Wi("s"),ss:Wi("s"),m:Wi("m"),mm:Wi("m"),h:Wi("h"),hh:Wi("h"),d:Wi("d"),dd:Wi("d"),M:Wi("M"),MM:Wi("M"),y:Wi("y"),yy:Wi("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}}),i.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var $i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Gi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Zi=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];i.defineLocale("ar-ly",{months:Zi,monthsShort:Zi,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Ui("s"),ss:Ui("s"),m:Ui("m"),mm:Ui("m"),h:Ui("h"),hh:Ui("h"),d:Ui("d"),dd:Ui("d"),M:Ui("M"),MM:Ui("M"),y:Ui("y"),yy:Ui("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return $i[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}}),i.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Ki={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ji={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};function Qi(e){return 0===e?0:1===e?1:2===e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5}function en(e){return function(t,i,n,a){var r=Qi(t),s=an[e][Qi(t)];return 2===r&&(s=s[i?0:1]),s.replace(/%d/i,t)}}i.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return Ji[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return Ki[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}}),i.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var tn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},nn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},an={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},rn=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];i.defineLocale("ar",{months:rn,monthsShort:rn,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:en("s"),ss:en("s"),m:en("m"),mm:en("m"),h:en("h"),hh:en("h"),d:en("d"),dd:en("d"),M:en("M"),MM:en("M"),y:en("y"),yy:en("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return nn[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return tn[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});var sn={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};function on(e,t,i){var n,a;return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":e+" "+(n=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}i.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(sn[t]||sn[e%100-t]||sn[100<=e?100:null])},week:{dow:1,doy:7}}),i.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:on,mm:on,h:on,hh:on,d:"дзень",dd:on,M:"месяц",MM:on,y:"год",yy:on},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),i.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0==i?e+"-ен":10<i&&i<20?e+"-ти":1==t?e+"-ви":2==t?e+"-ри":7==t||8==t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),i.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var ln={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},cn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};i.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return cn[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return ln[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?3<=e?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});var un={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},dn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};i.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return dn[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return un[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&4<=e||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var hn={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},fn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};function pn(e,t,i){var n;return e+" "+(n={mm:"munutenn",MM:"miz",dd:"devezh"}[i],2!==e?n:function(e){var t={m:"v",b:"v",d:"z"};return void 0!==t[e.charAt(0)]?t[e.charAt(0)]+e.substring(1):e}(n))}i.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return fn[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return hn[e]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&4<=e||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});var mn=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],gn=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,vn=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];function yn(e,t,i){var n=e+" ";switch(i){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e||2!==e&&3!==e&&4!==e?"minuta":"minute");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e||2!==e&&3!==e&&4!==e?"godina":"godine")}}i.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:vn,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:vn,monthsRegex:gn,monthsShortRegex:gn,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:mn,longMonthsParse:mn,shortMonthsParse:mn,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:pn,h:"un eur",hh:"%d eur",d:"un devezh",dd:pn,M:"ur miz",MM:pn,y:"ur bloaz",yy:function(e){switch(function e(t){return 9<t?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,i){return e<12?"a.m.":"g.m."}}),i.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:yn,m:yn,mm:yn,h:yn,hh:yn,d:"dan",dd:yn,M:"mjesec",MM:yn,y:"godinu",yy:yn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){return e+("w"!==t&&"W"!==t?1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è":"a")},week:{dow:1,doy:4}});var bn="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),xn="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),_n=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],wn=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function kn(e){return 1<e&&e<5&&1!=~~(e/10)}function Mn(e,t,i,n){var a=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?a+(kn(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?a+(kn(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?a+(kn(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?a+(kn(e)?"dny":"dní"):a+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?a+(kn(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?a+(kn(e)?"roky":"let"):a+"lety"}}function Ln(e,t,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[i][0]:a[i][1]}function Sn(e,t,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[i][0]:a[i][1]}function An(e,t,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[i][0]:a[i][1]}i.defineLocale("cs",{months:bn,monthsShort:xn,monthsRegex:wn,monthsShortRegex:wn,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:_n,longMonthsParse:_n,shortMonthsParse:_n,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Mn,ss:Mn,m:Mn,mm:Mn,h:Mn,hh:Mn,d:Mn,dd:Mn,M:Mn,MM:Mn,y:Mn,yy:Mn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"рен":/\u04ab\u0443\u043b$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),i.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return 20<e?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":0<e&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),i.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Ln,mm:"%d Minuten",h:Ln,hh:"%d Stunden",d:Ln,dd:Ln,w:Ln,ww:"%d Wochen",M:Ln,MM:Ln,y:Ln,yy:Ln},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Sn,mm:"%d Minuten",h:Sn,hh:"%d Stunden",d:Sn,dd:Sn,w:Sn,ww:"%d Wochen",M:Sn,MM:Sn,y:Sn,yy:Sn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:An,mm:"%d Minuten",h:An,hh:"%d Stunden",d:An,dd:An,w:An,ww:"%d Wochen",M:An,MM:An,y:An,yy:An},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Tn=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Cn=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];i.defineLocale("dv",{months:Tn,monthsShort:Tn,weekdays:Cn,weekdaysShort:Cn,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),i.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return 11<e?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var i,n=this._calendarEl[e],a=t&&t.hours();return i=n,("undefined"!=typeof Function&&i instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(t)),n.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}}),i.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:0,doy:4}}),i.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),i.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),i.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:0,doy:6}}),i.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return 11<e?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Dn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),En="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),On=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Pn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?En[e.month()]:Dn[e.month()]:Dn},monthsRegex:Pn,monthsShortRegex:Pn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:On,longMonthsParse:On,shortMonthsParse:On,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Yn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),In="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),jn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Nn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?In[e.month()]:Yn[e.month()]:Yn},monthsRegex:Nn,monthsShortRegex:Nn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:jn,longMonthsParse:jn,shortMonthsParse:jn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});var Hn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Fn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Rn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],zn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Fn[e.month()]:Hn[e.month()]:Hn},monthsRegex:zn,monthsShortRegex:zn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Rn,longMonthsParse:Rn,shortMonthsParse:Rn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var Bn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Wn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Vn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function Xn(e,t,i,n){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[i][2]?a[i][2]:a[i][1]:n?a[i][0]:a[i][1]}i.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Wn[e.month()]:Bn[e.month()]:Bn},monthsRegex:qn,monthsShortRegex:qn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Vn,longMonthsParse:Vn,shortMonthsParse:Vn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"}),i.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:Xn,ss:Xn,m:Xn,mm:Xn,h:Xn,hh:Xn,d:Xn,dd:"%d päeva",M:Xn,MM:Xn,y:Xn,yy:Xn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Un={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},$n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};i.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return $n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return Un[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});var Gn="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Zn=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Gn[7],Gn[8],Gn[9]];function Kn(e,t,i,n){var a,r="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":r=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":r=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":r=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":r=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":r=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":r=n?"vuoden":"vuotta"}return((a=e)<10?n?Zn[a]:Gn[a]:a)+" "+r}i.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Kn,ss:Kn,m:Kn,mm:Kn,h:Kn,hh:Kn,d:Kn,dd:Kn,M:Kn,MM:Kn,y:Kn,yy:Kn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),i.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),i.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var Jn=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,Qn=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];i.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Jn,monthsShortRegex:Jn,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:Qn,longMonthsParse:Qn,shortMonthsParse:Qn,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var ea="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),ta="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");function ia(e,t,i,n){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return n?a[i][0]:a[i][1]}function na(e,t,i,n){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return n?a[i][0]:a[i][1]}i.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?ta[e.month()]:ea[e.month()]:ea},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),i.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),i.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),i.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:ia,ss:ia,m:ia,mm:ia,h:ia,hh:ia,d:ia,dd:ia,M:ia,MM:ia,y:ia,yy:ia},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?12<e?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}}),i.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:na,ss:na,m:na,mm:na,h:na,hh:na,d:na,dd:na,M:na,MM:na,y:na,yy:na},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?12<e?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});var aa={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},ra={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};i.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return ra[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return aa[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?10<=e?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),i.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});var sa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},oa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},la=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];function ca(e,t,i){var n=e+" ";switch(i){case"ss":return n+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+(1===e||2!==e&&3!==e&&4!==e?"minuta":"minute");case"h":return t?"jedan sat":"jednog sata";case"hh":return n+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return n+(1===e?"dan":"dana");case"MM":return n+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return n+(1===e||2!==e&&3!==e&&4!==e?"godina":"godine")}}i.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:la,longMonthsParse:la,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return oa[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return sa[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?10<=e?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),i.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:ca,m:ca,mm:ca,h:ca,hh:ca,d:"dan",dd:ca,M:"mjesec",MM:ca,y:"godinu",yy:ca},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var ua="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function da(e,t,i,n){var a=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return a+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return a+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return a+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return a+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return a+(n||t?" év":" éve")}return""}function ha(e){return(e?"":"[múlt] ")+"["+ua[this.day()]+"] LT[-kor]"}function fa(e){return e%100==11||e%10!=1}function pa(e,t,i,n){var a=e+" ";switch(i){case"s":return t||n?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return fa(e)?a+(t||n?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return fa(e)?a+(t||n?"mínútur":"mínútum"):t?a+"mínúta":a+"mínútu";case"hh":return fa(e)?a+(t||n?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return t?"dagur":n?"dag":"degi";case"dd":return fa(e)?t?a+"dagar":a+(n?"daga":"dögum"):t?a+"dagur":a+(n?"dag":"degi");case"M":return t?"mánuður":n?"mánuð":"mánuði";case"MM":return fa(e)?t?a+"mánuðir":a+(n?"mánuði":"mánuðum"):t?a+"mánuður":a+(n?"mánuð":"mánuði");case"y":return t||n?"ár":"ári";case"yy":return fa(e)?a+(t||n?"ár":"árum"):a+(t||n?"ár":"ári")}}i.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ha.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ha.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:da,ss:da,m:da,mm:da,h:da,hh:da,d:da,dd:da,M:da,MM:da,y:da,yy:da},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),i.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?11<=e?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}}),i.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:pa,ss:pa,m:pa,mm:pa,h:"klukkustund",hh:pa,d:pa,dd:pa,M:pa,MM:pa,y:pa,yy:pa},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),i.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?11<=e?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),i.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(e,t,i){return"ი"===i?t+"ში":t+i+"ში"}))},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"ის წინ"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var ma={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};i.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(ma[e]||ma[e%10]||ma[100<=e?100:null])},week:{dow:1,doy:7}});var ga={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},va={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};i.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,i){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return va[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return ga[e]}))},week:{dow:1,doy:4}});var ya={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},ba={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};i.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return ba[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return ya[e]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?10<=e?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),i.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}});var xa={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},_a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},wa=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];i.defineLocale("ku",{months:wa,monthsShort:wa,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,i){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return _a[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return xa[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});var ka={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};function Ma(e,t,i,n){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[i][0]:a[i][1]}function La(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return La(0==t?e/10:t)}if(e<1e4){for(;10<=e;)e/=10;return La(e)}return La(e/=1e3)}i.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(ka[e]||ka[e%10]||ka[100<=e?100:null])},week:{dow:1,doy:7}}),i.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return La(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return La(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:Ma,mm:"%d Minutten",h:Ma,hh:"%d Stonnen",d:Ma,dd:"%d Deeg",M:Ma,MM:"%d Méint",y:Ma,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var Sa={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function Aa(e,t,i,n){return t?Ca(i)[0]:n?Ca(i)[1]:Ca(i)[2]}function Ta(e){return e%10==0||10<e&&e<20}function Ca(e){return Sa[e].split("_")}function Da(e,t,i,n){var a=e+" ";return 1===e?a+Aa(0,t,i[0],n):t?a+(Ta(e)?Ca(i)[1]:Ca(i)[0]):n?a+Ca(i)[1]:a+(Ta(e)?Ca(i)[1]:Ca(i)[2])}i.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:Da,m:Aa,mm:Da,h:Aa,hh:Da,d:Aa,dd:Da,M:Aa,MM:Da,y:Aa,yy:Da},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var Ea={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Oa(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function Pa(e,t,i){return e+" "+Oa(Ea[i],e,t)}function Ya(e,t,i){return Oa(Ea[i],e,t)}i.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:Pa,m:Ya,mm:Pa,h:Ya,hh:Pa,d:Ya,dd:Pa,M:Ya,MM:Pa,y:Ya,yy:Pa},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ia={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=Ia.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+Ia.correctGrammaticalCase(e,n)}};function ja(e,t,i,n){switch(i){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}i.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Ia.translate,m:Ia.translate,mm:Ia.translate,h:Ia.translate,hh:Ia.translate,d:"dan",dd:Ia.translate,M:"mjesec",MM:Ia.translate,y:"godinu",yy:Ia.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0==i?e+"-ен":10<i&&i<20?e+"-ти":1==t?e+"-ви":2==t?e+"-ри":7==t||8==t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),i.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&4<=e||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}}),i.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,i){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:ja,ss:ja,m:ja,mm:ja,h:ja,hh:ja,d:ja,dd:ja,M:ja,MM:ja,y:ja,yy:ja},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}});var Na={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ha={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Fa(e,t,i,n){var a="";if(t)switch(i){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(i){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}i.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Fa,ss:Fa,m:Fa,mm:Fa,h:Fa,hh:Fa,d:Fa,dd:Fa,M:Fa,MM:Fa,y:Fa,yy:Fa},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return Ha[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Na[e]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?12<=e?e:e+12:void 0},meridiem:function(e,t,i){return 0<=e&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),i.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),i.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?11<=e?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),i.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Ra={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},za={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};i.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return za[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Ra[e]}))},week:{dow:1,doy:4}}),i.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ba={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Wa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};i.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return Wa[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Ba[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?10<=e?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var Va="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),qa="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Xa=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ua=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;i.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?qa[e.month()]:Va[e.month()]:Va},monthsRegex:Ua,monthsShortRegex:Ua,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Xa,longMonthsParse:Xa,shortMonthsParse:Xa,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}});var $a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ga="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Za=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ka=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;i.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Ga[e.month()]:$a[e.month()]:$a},monthsRegex:Ka,monthsShortRegex:Ka,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Za,longMonthsParse:Za,shortMonthsParse:Za,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||20<=e?"ste":"de")},week:{dow:1,doy:4}}),i.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){return e+("w"!==t&&"W"!==t?1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è":"a")},week:{dow:1,doy:4}});var Ja={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Qa={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};i.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return Qa[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return Ja[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?10<=e?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var er="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),tr="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),ir=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function nr(e){return e%10<5&&1<e%10&&~~(e/10)%10!=1}function ar(e,t,i){var n=e+" ";switch(i){case"ss":return n+(nr(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return n+(nr(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(nr(e)?"godziny":"godzin");case"ww":return n+(nr(e)?"tygodnie":"tygodni");case"MM":return n+(nr(e)?"miesiące":"miesięcy");case"yy":return n+(nr(e)?"lata":"lat")}}function rr(e,t,i){return e+(20<=e%100||100<=e&&e%100==0?" de ":" ")+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[i]}function sr(e,t,i){var n,a;return"m"===i?t?"минута":"минуту":e+" "+(n=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}i.defineLocale("pl",{months:function(e,t){return e?/D MMMM/.test(t)?tr[e.month()]:er[e.month()]:er},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:ir,longMonthsParse:ir,shortMonthsParse:ir,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:ar,m:ar,mm:ar,h:ar,hh:ar,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:ar,M:"miesiąc",MM:ar,y:"rok",yy:ar},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",invalidDate:"Data inválida"}),i.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:rr,m:"un minut",mm:rr,h:"o oră",hh:rr,d:"o zi",dd:rr,w:"o săptămână",ww:rr,M:"o lună",MM:rr,y:"un an",yy:rr},week:{dow:1,doy:7}});var or=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];i.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:or,longMonthsParse:or,shortMonthsParse:or,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:sr,m:sr,mm:sr,h:"час",hh:sr,d:"день",dd:sr,w:"неделя",ww:sr,M:"месяц",MM:sr,y:"год",yy:sr},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});var lr=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],cr=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];i.defineLocale("sd",{months:lr,monthsShort:lr,weekdays:cr,weekdaysShort:cr,weekdaysMin:cr,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),i.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return 11<e?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});var ur="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),dr="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function hr(e){return 1<e&&e<5}function fr(e,t,i,n){var a=e+" ";switch(i){case"s":return t||n?"pár sekúnd":"pár sekundami";case"ss":return t||n?a+(hr(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":n?"minútu":"minútou";case"mm":return t||n?a+(hr(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?a+(hr(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||n?"deň":"dňom";case"dd":return t||n?a+(hr(e)?"dni":"dní"):a+"dňami";case"M":return t||n?"mesiac":"mesiacom";case"MM":return t||n?a+(hr(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||n?"rok":"rokom";case"yy":return t||n?a+(hr(e)?"roky":"rokov"):a+"rokmi"}}function pr(e,t,i,n){var a=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return a+(1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return a+(1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return a+(1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami");case"d":return t||n?"en dan":"enim dnem";case"dd":return a+(1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi");case"M":return t||n?"en mesec":"enim mesecem";case"MM":return a+(1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci");case"y":return t||n?"eno leto":"enim letom";case"yy":return a+(1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti")}}i.defineLocale("sk",{months:ur,monthsShort:dr,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:fr,ss:fr,m:fr,mm:fr,h:fr,hh:fr,d:fr,dd:fr,M:fr,MM:fr,y:fr,yy:fr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:pr,ss:pr,m:pr,mm:pr,h:pr,hh:pr,d:pr,dd:pr,M:pr,MM:pr,y:pr,yy:pr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var mr={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=mr.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+mr.correctGrammaticalCase(e,n)}};i.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:mr.translate,m:mr.translate,mm:mr.translate,h:mr.translate,hh:mr.translate,d:"дан",dd:mr.translate,M:"месец",MM:mr.translate,y:"годину",yy:mr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var gr={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:2<=e&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=gr.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+gr.correctGrammaticalCase(e,n)}};i.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:gr.translate,m:gr.translate,mm:gr.translate,h:gr.translate,hh:gr.translate,d:"dan",dd:gr.translate,M:"mesec",MM:gr.translate,y:"godinu",yy:gr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?11<=e?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),i.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)||1!=t&&2!=t?":e":":a")},week:{dow:1,doy:4}}),i.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var vr={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},yr={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};i.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return yr[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return vr[e]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&10<=e?e:e+12},week:{dow:0,doy:6}}),i.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?10<=e?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),i.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}});var br={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};i.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?11<=e?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(br[e]||br[e%10]||br[100<=e?100:null])},week:{dow:1,doy:7}}),i.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});var xr={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};i.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(xr[i]||xr[e%100-i]||xr[100<=e?100:null])}},week:{dow:1,doy:7}}),i.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var _r="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function wr(e,t,i,n){var a=function(e){var t=Math.floor(e%1e3/100),i=Math.floor(e%100/10),n=e%10,a="";return 0<t&&(a+=_r[t]+"vatlh"),0<i&&(a+=(""!==a?" ":"")+_r[i]+"maH"),0<n&&(a+=(""!==a?" ":"")+_r[n]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}i.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:wr,m:"wa’ tup",mm:wr,h:"wa’ rep",hh:wr,d:"wa’ jaj",dd:wr,M:"wa’ jar",MM:wr,y:"wa’ DIS",yy:wr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var kr={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};function Mr(e,t,i,n){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n||t?a[i][0]:a[i][1]}function Lr(e,t,i){var n,a;return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+(n=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}function Sr(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}i.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,i){return e<12?i?"öö":"ÖÖ":i?"ös":"ÖS"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,t){switch(t){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10;return e+(kr[i]||kr[e%100-i]||kr[100<=e?100:null])}},week:{dow:1,doy:7}}),i.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return 11<e?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Mr,ss:Mr,m:Mr,mm:Mr,h:Mr,hh:Mr,d:Mr,dd:Mr,M:Mr,MM:Mr,y:Mr,yy:Mr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),i.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),i.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t||"چۈشتىن كېيىن"!==t&&"كەچ"!==t&&11<=e?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}}),i.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):e?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Sr("[Сьогодні "),nextDay:Sr("[Завтра "),lastDay:Sr("[Вчора "),nextWeek:Sr("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Sr("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Sr("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Lr,m:Lr,mm:Lr,h:"годину",hh:Lr,d:"день",dd:Lr,M:"місяць",MM:Lr,y:"рік",yy:Lr},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var Ar=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Tr=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return i.defineLocale("ur",{months:Ar,monthsShort:Ar,weekdays:Tr,weekdaysShort:Tr,weekdaysMin:Tr,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),i.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),i.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),i.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),i.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),i.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t||"下午"!==t&&"晚上"!==t&&11<=e?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),i.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?11<=e?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.locale("en"),i})),function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():window.wNumb=e()}((function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function i(e,t){return e.substring(0,t.length)===t}function n(e,t,i){if((e[t]||e[i])&&e[t]===e[i])throw new Error(t)}function a(e){return"number"==typeof e&&isFinite(e)}function r(e,i,n,r,s,o,l,c,u,d,h,f){var p,m,g,v,y,b=f,x="",_="";return o&&(f=o(f)),!!a(f)&&(!1!==e&&0===parseFloat(f.toFixed(e))&&(f=0),f<0&&(p=!0,f=Math.abs(f)),!1!==e&&(y=e,v=(v=f).toString().split("e"),f=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+y:y)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-y:-y))).toFixed(y)),-1!==(f=f.toString()).indexOf(".")?(g=(m=f.split("."))[0],n&&(x=n+m[1])):g=f,i&&(g=t(g).match(/.{1,3}/g),g=t(g.join(t(i)))),p&&c&&(_+=c),r&&(_+=r),p&&u&&(_+=u),_+=g,_+=x,s&&(_+=s),d&&(_=d(_,b)),_)}function s(e,t,n,r,s,o,l,c,u,d,h,f){var p,m="";return h&&(f=h(f)),!(!f||"string"!=typeof f)&&(c&&i(f,c)&&(f=f.replace(c,""),p=!0),r&&i(f,r)&&(f=f.replace(r,"")),u&&i(f,u)&&(f=f.replace(u,""),p=!0),s&&function(e,t){return e.slice(-1*t.length)===t}(f,s)&&(f=f.slice(0,-1*s.length)),t&&(f=f.split(t).join("")),n&&(f=f.replace(n,".")),p&&(m+="-"),""!==(m=(m+=f).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!a(m)&&m))}function o(t,i,n){var a,r=[];for(a=0;a<e.length;a+=1)r.push(t[e[a]]);return r.push(n),i.apply("",r)}return function t(i){if(!(this instanceof t))return new t(i);"object"==typeof i&&(i=function(t){var i,a,r,s={};for(void 0===t.suffix&&(t.suffix=t.postfix),i=0;i<e.length;i+=1)if(void 0===(r=t[a=e[i]]))"negative"!==a||s.negativeBefore?"mark"===a&&"."!==s.thousand?s[a]=".":s[a]=!1:s[a]="-";else if("decimals"===a){if(!(r>=0&&r<8))throw new Error(a);s[a]=r}else if("encoder"===a||"decoder"===a||"edit"===a||"undo"===a){if("function"!=typeof r)throw new Error(a);s[a]=r}else{if("string"!=typeof r)throw new Error(a);s[a]=r}return n(s,"mark","thousand"),n(s,"prefix","negative"),n(s,"prefix","negativeBefore"),s}(i),this.to=function(e){return o(i,r,e)},this.from=function(e){return o(i,s,e)})}})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}((function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var i;return function(){
|
||
/**
|
||
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
|
||
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
||
*/
|
||
var e,i,n;t&&t.requirejs||(t?i=t:t={},function(t){var a,r,s,o,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function m(e,t){return h.call(e,t)}function g(e,t){var i,n,a,r,s,o,l,c,d,h,f,m=t&&t.split("/"),g=u.map,v=g&&g["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&p.test(e[s])&&(e[s]=e[s].replace(p,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(f=e[d]))e.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||v)&&g){for(d=(i=e.split("/")).length;d>0;d-=1){if(n=i.slice(0,d).join("/"),m)for(h=m.length;h>0;h-=1)if((a=g[m.slice(0,h).join("/")])&&(a=a[n])){r=a,o=d;break}if(r)break;!l&&v&&v[n]&&(l=v[n],c=d)}!r&&l&&(r=l,o=c),r&&(i.splice(0,o,r),e=i.join("/"))}return e}function v(e,i){return function(){var n=f.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),r.apply(t,n.concat([e,i]))}}function y(e){return function(t){l[e]=t}}function b(e){if(m(c,e)){var i=c[e];delete c[e],d[e]=!0,a.apply(t,i)}if(!m(l,e)&&!m(d,e))throw new Error("No "+e);return l[e]}function x(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function _(e){return e?x(e):[]}function w(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var i,n,a=x(e),r=a[0],s=t[1];return e=a[1],r&&(i=b(r=g(r,s))),r?e=i&&i.normalize?i.normalize(e,(n=s,function(e){return g(e,n)})):g(e,s):(r=(a=x(e=g(e,s)))[0],e=a[1],r&&(i=b(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:i}},o={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:w(e)}}},a=function(e,i,n,a){var r,u,h,f,p,g,x,w=[],k=typeof n;if(g=_(a=a||e),"undefined"===k||"function"===k){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if("require"===(u=(f=s(i[p],g)).f))w[p]=o.require(e);else if("exports"===u)w[p]=o.exports(e),x=!0;else if("module"===u)r=w[p]=o.module(e);else if(m(l,u)||m(c,u)||m(d,u))w[p]=b(u);else{if(!f.p)throw new Error(e+" missing "+u);f.p.load(f.n,v(a,!0),y(u),{}),w[p]=l[u]}h=n?n.apply(l[e],w):void 0,e&&(r&&r.exports!==t&&r.exports!==l[e]?l[e]=r.exports:h===t&&x||(l[e]=h))}else e&&(l[e]=n)},e=i=r=function(e,i,n,l,c){if("string"==typeof e)return o[e]?o[e](i):b(s(e,_(i)).f);if(!e.splice){if((u=e).deps&&r(u.deps,u.callback),!i)return;i.splice?(e=i,i=n,n=null):e=t}return i=i||function(){},"function"==typeof n&&(n=l,l=c),l?a(t,e,i,n):setTimeout((function(){a(t,e,i,n)}),4),r},r.config=function(e){return r(e)},e._defined=l,(n=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),m(l,e)||m(c,e)||(c[e]=[e,t,i])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=i,t.define=n)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&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."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function i(e){var t=e.prototype,i=[];for(var n in t){"function"==typeof t[n]&&("constructor"!==n&&i.push(n))}return i}t.Extend=function(e,t){var i={}.hasOwnProperty;function n(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},t.Decorate=function(e,t){var n=i(t),a=i(e);function r(){var i=Array.prototype.unshift,n=t.prototype.constructor.length,a=e.prototype.constructor;n>0&&(i.call(arguments,e.prototype.constructor),a=t.prototype.constructor),a.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<a.length;s++){var o=a[s];r.prototype[o]=e.prototype[o]}for(var l=function(e){var i=function(){};e in r.prototype&&(i=r.prototype[e]);var n=t.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,i),n.apply(this,arguments)}},c=0;c<n.length;c++){var u=n[c];r.prototype[u]=l(u)}return r};var n=function(){this.listeners={}};n.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},n.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(e,t){for(var i=0,n=e.length;i<n;i++)e[i].apply(this,t)},t.Observable=n,t.generateChars=function(e){for(var t="",i=0;i<e;i++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var i=t.split("-"),n=e;if(1!==i.length){for(var a=0;a<i.length;a++){var r=i[a];(r=r.substring(0,1).toLowerCase()+r.substring(1))in n||(n[r]={}),a==i.length-1&&(n[r]=e[t]),n=n[r]}delete e[t]}}return e},t.hasScroll=function(t,i){var n=e(i),a=i.style.overflowX,r=i.style.overflowY;return(a!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===a||"scroll"===r||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var a=0;return t.GetUniqueElementId=function(e){var i=e.getAttribute("data-select2-id");return null!=i||(i=e.id?"select2-data-"+e.id:"select2-data-"+(++a).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",i)),i},t.StoreData=function(e,i,n){var a=t.GetUniqueElementId(e);t.__cache[a]||(t.__cache[a]={}),t.__cache[a][i]=n},t.GetData=function(i,n){var a=t.GetUniqueElementId(i);return n?t.__cache[a]&&null!=t.__cache[a][n]?t.__cache[a][n]:e(i).data(n):t.__cache[a]},t.RemoveData=function(e){var i=t.GetUniqueElementId(e);null!=t.__cache[i]&&delete t.__cache[i],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var i=e.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0===e.indexOf("select2-")}));var n=t.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0!==e.indexOf("select2-")}));var a=i.concat(n);e.setAttribute("class",a.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),a=this.options.get("translations").get(t.message);n.append(i(a(t.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(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var n=e.results[i],a=this.option(n);t.push(a)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var a=n.map((function(e){return e.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=e(this),n=t.GetData(this,"data"),r=""+n.id;null!=n.element&&n.element.selected||null==n.element&&a.indexOf(r)>-1?(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(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},i=this.option(t);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable");var a={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=i.element&&r.call(i.element,":disabled")||null==i.element&&i.disabled)&&(a["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&&(a.role="group",a["aria-label"]=i.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),a){var o=a[s];n.setAttribute(s,o)}if(i.children){var l=e(n),c=document.createElement("strong");c.className="select2-results__group",this.template(i,c);for(var u=[],d=0;d<i.children.length;d++){var h=i.children[d],f=this.option(h);u.push(f)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});p.append(u),l.append(c),l.append(p)}else this.template(i,n);return t.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var a=this,r=i.id+"-results";this.$results.attr("id",r),i.on("results:all",(function(e){a.clear(),a.append(e.data),i.isOpen()&&(a.setClasses(),a.highlightFirstItem())})),i.on("results:append",(function(e){a.append(e.data),i.isOpen()&&a.setClasses()})),i.on("query",(function(e){a.hideMessages(),a.showLoading(e)})),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 e=a.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),i.on("results:select",(function(){var e=a.getHighlightedResults();if(0!==e.length){var i=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?a.trigger("close",{}):a.trigger("select",{data:i})}})),i.on("results:previous",(function(){var e=a.getHighlightedResults(),t=a.$results.find(".select2-results__option--selectable"),i=t.index(e);if(!(i<=0)){var n=i-1;0===e.length&&(n=0);var r=t.eq(n);r.trigger("mouseenter");var s=a.$results.offset().top,o=r.offset().top,l=a.$results.scrollTop()+(o-s);0===n?a.$results.scrollTop(0):o-s<0&&a.$results.scrollTop(l)}})),i.on("results:next",(function(){var e=a.getHighlightedResults(),t=a.$results.find(".select2-results__option--selectable"),i=t.index(e)+1;if(!(i>=t.length)){var n=t.eq(i);n.trigger("mouseenter");var r=a.$results.offset().top+a.$results.outerHeight(!1),s=n.offset().top+n.outerHeight(!1),o=a.$results.scrollTop()+s-r;0===i?a.$results.scrollTop(0):s>r&&a.$results.scrollTop(o)}})),i.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(e){a.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=a.$results.scrollTop(),i=a.$results.get(0).scrollHeight-t+e.deltaY,n=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&i<=a.$results.height();n?(a.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(a.$results.scrollTop(a.$results.get(0).scrollHeight-a.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var n=e(this),r=t.GetData(this,"data");n.hasClass("select2-results__option--selected")?a.options.get("multiple")?a.trigger("unselect",{originalEvent:i,data:r}):a.trigger("close",{}):a.trigger("select",{originalEvent:i,data:r})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var n=t.GetData(this,"data");a.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),a.trigger("results:focus",{data:n,element:e(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 e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),i=this.$results.offset().top,n=e.offset().top,a=this.$results.scrollTop()+(n-i),r=n-i;a-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(a)}},i.prototype.template=function(t,i){var n=this.options.get("templateResult"),a=this.options.get("escapeMarkup"),r=n(t,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=a(r):e(i).append(r)},i})),t.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}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var i=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.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,i},n.prototype.bind=function(e,t){var n=this,a=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){n.trigger("focus",e)})),this.$selection.on("blur",(function(e){n._handleBlur(e)})),this.$selection.on("keydown",(function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){n.update(e.data)})),e.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",a),n._attachCloseHandler(e)})),e.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(e)})),e.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(t){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)}),1)},n.prototype._attachCloseHandler=function(i){e(document.body).on("mousedown.select2."+i.id,(function(i){var n=e(i.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=n[0]&&t.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){t.find(".selection").append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){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})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,i,n){function a(){a.__super__.constructor.apply(this,arguments)}return i.Extend(a,t),a.prototype.render=function(){var e=a.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},a.prototype.bind=function(e,t){var i=this;a.__super__.bind.apply(this,arguments);var n=e.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(e){1===e.which&&i.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||i.$selection.trigger("focus")}))},a.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},a.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},a.prototype.selectionContainer=function(){return e("<span></span>")},a.prototype.update=function(e){if(0!==e.length){var t=e[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(t,i);i.empty().append(n);var a=t.title||t.text;a?i.attr("title",a):i.removeAttr("title")}else this.clear()},a})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,i){function n(e,t){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(t,a){var r=this;n.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.isDisabled()){var n=e(this).parent(),a=i.GetData(n[0],"data");r.trigger("unselect",{originalEvent:t,data:a})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){r.isDisabled()||e.stopPropagation()}))},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return e('<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(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",a=0;a<e.length;a++){var r=e[a],s=this.selectionContainer(),o=this.display(r,s),l=n+i.generateChars(4)+"-";r.id?l+=r.id:l+=i.generateChars(4),s.find(".select2-selection__choice__display").append(o).attr("id",l);var c=r.title||r.text;c&&s.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=s.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),i.StoreData(s[0],"data",r),t.push(s)}this.$selection.find(".select2-selection__rendered").append(t)}},n})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();i.html(this.display(t)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice");var n=t.title||t.text||i.text();return this.$selection.find(".select2-selection__rendered").attr("title",n),i},e.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||i)return e.call(this,t);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,i){function n(){}return n.prototype.bind=function(e,t,i){var n=this;e.call(this,t,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(e){n._handleClear(e)})),t.on("keypress",(function(e){n._handleKeyboardClear(e,t)}))},n.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var a=i.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:a};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var o=0;o<a.length;o++)if(s={data:a[o]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(e,i,n){n.isOpen()||i.which!=t.DELETE&&i.which!=t.BACKSPACE||this._handleClear(i)},n.prototype.update=function(t,n){if(t.call(this,n),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var a=this.$selection.find(".select2-selection__rendered").attr("id"),r=this.options.get("translations").get("removeAllItems"),s=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');s.attr("title",r()),s.attr("aria-label",r()),s.attr("aria-describedby",a),i.StoreData(s[0],"data",n),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable")}},n})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,i){function n(e,t,i){e.call(this,t,i)}return n.prototype.render=function(t){var i=this.options.get("translations").get("search"),n=e('<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>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i());var a=t.call(this);return this._transferTabIndex(),a.append(this.$searchContainer),a},n.prototype.bind=function(e,n,a){var r=this,s=n.id+"-results",o=n.id+"-container";e.call(this,n,a),r.$search.attr("aria-describedby",o),n.on("open",(function(){r.$search.attr("aria-controls",s),r.$search.trigger("focus")})),n.on("close",(function(){r.$search.val(""),r.resizeSearch(),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),n.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),n.on("disable",(function(){r.$search.prop("disabled",!0)})),n.on("focus",(function(e){r.$search.trigger("focus")})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===i.BACKSPACE&&""===r.$search.val()){var n=r.$selection.find(".select2-selection__choice").last();if(n.length>0){var a=t.GetData(n[0],"data");r.searchRemoveChoice(a),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){r.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&r.handleSearch(e)}}))},n.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em");this.$search.css("width",e)},n})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),e.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,i,n){var a=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,i,n),i.on("*",(function(t,i){if(-1!==r.indexOf(t)){i=i||{};var n=e.Event("select2:"+t,{params:i});a.$element.trigger(n),-1!==s.indexOf(t)&&(i.prevented=n.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var n=t(e);i._cache[e]=n}return new i(i._cache[e])},i})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var n=t.id+"-result-";return n+=e.generateChars(4),null!=i.id?n+="-"+i.id.toString():n+="-"+e.generateChars(4),n},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(i(e))})))},n.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var n=[];(e=[e]).push.apply(e,i);for(var a=0;a<e.length;a++){var r=e[a].id;-1===n.indexOf(r)&&n.push(r)}t.$element.val(n),t.$element.trigger("input").trigger("change")}));else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],a=0;a<i.length;a++){var r=i[a].id;r!==e.id&&-1===n.indexOf(r)&&n.push(r)}t.$element.val(n),t.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",(function(e){i.select(e.data)})),e.on("unselect",(function(e){i.unselect(e.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},n.prototype.query=function(e,t){var n=[],a=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=i(this),r=a.item(t),s=a.matches(e,r);null!==s&&n.push(s)}})),t({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var n;e.children?(n=document.createElement("optgroup")).label=e.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=e.text:n.innerText=e.text,void 0!==e.id&&(n.value=e.id),e.disabled&&(n.disabled=!0),e.selected&&(n.selected=!0),e.title&&(n.title=e.title);var a=this._normalizeItem(e);return a.element=n,t.StoreData(n,"data",a),i(n)},n.prototype.item=function(e){var n={};if(null!=(n=t.GetData(e[0],"data")))return n;var a=e[0];if("option"===a.tagName.toLowerCase())n={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===a.tagName.toLowerCase()){n={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),s=[],o=0;o<r.length;o++){var l=i(r[o]),c=this.item(l);s.push(c)}n.children=s}return(n=this._normalizeItem(n)).element=e[0],t.StoreData(e[0],"data",n),n},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=i.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,i){function n(e,t){this._dataToConvert=t.get("data")||[],n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype.bind=function(e,t){n.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,i){return i.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),n.__super__.select.call(this,e)},n.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),a=n.map((function(){return t.item(i(this)).id})).get(),r=[];function s(e){return function(){return i(this).val()==e.id}}for(var o=0;o<e.length;o++){var l=this._normalizeItem(e[o]);if(a.indexOf(l.id)>=0){var c=n.filter(s(l)),u=this.item(c),d=i.extend(!0,{},l,u),h=this.option(d);c.replaceWith(h)}else{var f=this.option(l);if(l.children){var p=this.convertToOptions(l.children);f.append(p)}r.push(f)}}return r},n})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,i){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,n){var a=i.ajax(e);return a.then(t),a.fail(n),a}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){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 r(){var i=a.transport(a,(function(i){var a=n.processResults(i,e);n.options.get("debug")&&window.console&&console.error&&(a&&a.results&&Array.isArray(a.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(a)}),(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,e)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},n})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,i){var n=i.get("tags"),a=i.get("createTag");void 0!==a&&(this.createTag=a);var r=i.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,i),Array.isArray(n))for(var s=0;s<n.length;s++){var o=n[s],l=this._normalizeItem(o),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,i){var n=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(a,r){for(var s=a.results,o=0;o<s.length;o++){var l=s[o],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(a.data=s,void i(a))}if(r)return!0;var u=n.createTag(t);if(null!=u){var d=n.option(u);d.attr("data-select2-tag","true"),n.addOptions([d]),n.insertTag(s,u)}a.results=s,i(a)})):e.call(this,t,i)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var i=t.term.trim();return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,n){var a=this;i.term=i.term||"";var r=this.tokenizer(i,this.options,(function(t){var i=a._normalizeItem(t);if(!a.$element.find("option").filter((function(){return e(this).val()===i.id})).length){var n=a.option(i);n.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([n])}!function(e){a.trigger("select",{data:e})}(i)}));r.term!==i.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),i.term=r.term),t.call(this,i,n)},t.prototype.tokenizer=function(t,i,n,a){for(var r=n.get("tokenSeparators")||[],s=i.term,o=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};o<s.length;){var c=s[o];if(-1!==r.indexOf(c)){var u=s.substr(0,o),d=l(e.extend({},i,{term:u}));null!=d?(a(d),s=s.substr(o+1)||"",o=0):o++}else o++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",(function(){n._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,i){var n=this;this._checkIfMaximumSelected((function(){e.call(n,t,i)}))},e.prototype._checkIfMaximumSelected=function(e,t){var i=this;this.current((function(e){var n=null!=e?e.length:0;i.maximumSelectionLength>0&&n>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),n=this.options.get("translations").get("search"),a=e('<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=a,this.$search=a.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),i.prepend(a),i},t.prototype.bind=function(t,i,n){var a=this,r=i.id+"-results";t.call(this,i,n),this.$search.on("keydown",(function(e){a.trigger("keypress",e),a._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){a.handleSearch(e)})),i.on("open",(function(){a.$search.attr("tabindex",0),a.$search.attr("aria-controls",r),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(e){null!=e.query.term&&""!==e.query.term||(a.showSearch(e)?a.$searchContainer[0].classList.remove("select2-search--hide"):a.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(e){e.data._resultId?a.$search.attr("aria-activedescendant",e.data._resultId):a.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var a=t[n];this.placeholder.id===a.id&&i.splice(n,1)}return i},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("query",(function(e){n.lastParams=e,n.loading=!0})),t.on("query:append",(function(e){n.lastParams=e,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function i(t,i,n){this.$dropdownParent=e(n.get("dropdownParent")||document.body),t.call(this,i,n)}return i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(t),n._bindContainerResultHandlers(t)})),t.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var i=this;t.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,n){var a=this,r="scroll.select2."+n.id,s="resize.select2."+n.id,o="orientationchange.select2."+n.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(i){var n=t.GetData(this,"select2-scroll-position");e(this).scrollTop(n.y)})),e(window).on(r+" "+s+" "+o,(function(e){a._positionDropdown(),a._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var a="scroll.select2."+n.id,r="resize.select2."+n.id,s="orientationchange.select2."+n.id;this.$container.parents().filter(t.hasScroll).off(a),e(window).off(a+" "+r+" "+s)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),a=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var o=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-o,d=c>r.bottom+o,h={left:r.left,top:s.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(e.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,i||n||(a="below"),d||!u||i?!u&&d&&i&&(a="below"):a="above",("above"==a||i&&"below"!==a)&&(h.top=s.top-p.top-o),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(h)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var i=0,n=0;n<t.length;n++){var a=t[n];a.children?i+=e(a.children):i++}return i}function t(e,t,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,n)}return t.prototype.showSearch=function(t,i){return!(e(i.data.results)<this.minimumResultsForSearch)&&t.call(this,i)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("close",(function(e){n._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var a=this.getHighlightedResults();if(!(a.length<1)){var r=e.GetData(a[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),t.on("select",(function(e){n._selectTriggered(e)})),t.on("unselect",(function(e){n._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),e.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(i.length>0){var n=i.first(),a=e.GetData(n[0],"data").element;if(a&&a.getAttribute&&"true"===a.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},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"}}})),t.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(e,t,i,n,a,r,s,o,l,c,u,d,h,f,p,m,g,v,y,b,x,_,w,k,M,L,S,A,T,C,D){function E(){this.reset()}return E.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=p:null!=u.data?u.dataAdapter=f:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,w)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,S)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=x;else{var d=c.Decorate(x,_);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,L)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,A)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=n:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var D=[],E=0;E<u.language.length;E++){var O=u.language[E];-1===D.indexOf(O)&&D.push(O)}return u.language=D,u.translations=this._processTranslations(u.language,u.debug),u},E.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}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&&a.children.length>0){for(var r=e.extend(!0,{},a),s=a.children.length-1;s>=0;s--){null==i(n,a.children[s])&&r.children.splice(s,1)}return r.children.length>0?r:i(n,r)}var o=t(a.text).toUpperCase(),l=t(n.term).toUpperCase();return o.indexOf(l)>-1?a:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(e,t){var i=e.language,n=this.defaults.language,a=t.prop("lang"),r=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(a),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r));return e.language=s,e},E.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var i;i=Array.isArray(t)?t:[t];for(var n=[],a=0;a<i.length;a++)if(n.push(i[a]),"string"==typeof i[a]&&i[a].indexOf("-")>0){var r=i[a].split("-")[0];n.push(r)}return n},E.prototype._processTranslations=function(t,i){for(var n=new u,a=0;a<t.length;a++){var r=new u,s=t[a];if("string"==typeof s)try{r=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=u.loadPath(s)}catch(e){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(s)?new u(s):s;n.extend(r)}return n},E.prototype.set=function(t,i){var n={};n[e.camelCase(t)]=i;var a=c._convertData(n);e.extend(!0,this.defaults,a)},new E})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,i){function n(e,i){this.options=e,null!=i&&this.fromElement(i),null!=i&&(this.options=t.applyFromElement(this.options,i)),this.options=t.apply(this.options)}return n.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var a={};function r(e,t){return t.toUpperCase()}for(var s=0;s<t[0].attributes.length;s++){var o=t[0].attributes[s].name,l="data-";if(o.substr(0,l.length)==l){var c=o.substring(l.length),u=i.GetData(t[0],c);a[c.replace(/-([a-z])/g,r)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(a=e.extend(!0,{},t[0].dataset,a));var d=e.extend(!0,{},i.GetData(t[0]),a);for(var h in d=i._convertData(d))n.indexOf(h)>-1||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},n.prototype.get=function(e){return this.options[e]},n.prototype.set=function(e,t){this.options[e]=t},n})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,i,n){var a=function(e,n){null!=i.GetData(e[0],"select2")&&i.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),a.__super__.constructor.call(this);var r=e.attr("tabindex")||0;i.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var o=this.render();this._placeContainer(o);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(e[0],"select2",this),e.data("select2",this)};return i.Extend(a,i.Observable),a.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},a.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},a.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var a=e.outerWidth(!1);return a<=0?"auto":a+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),o=0,l=s.length;o<l;o+=1){var c=s[o].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},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 e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},a.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,i){e.trigger(t,i)}))},a.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,n){-1===t.indexOf(i)&&e.trigger(i,n)}))},a.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,i){e.trigger(t,i)}))},a.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,i){e.trigger(t,i)}))},a.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(i){e.trigger("results:all",{data:i,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(i){e.trigger("results:append",{data:i,query:t})}))})),this.on("keypress",(function(t){var i=t.which;e.isOpen()?i===n.ESC||i===n.UP&&t.altKey?(e.close(t),t.preventDefault()):i===n.ENTER||i===n.TAB?(e.trigger("results:select",{}),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===n.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===n.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&t.altKey)&&(e.open(),t.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(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i<e.addedNodes.length;i++){if(e.addedNodes[i].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},a.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),i=this;t&&this.dataAdapter.current((function(e){i.trigger("selection:update",{data:e})}))},a.prototype.trigger=function(e,t){var i=a.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in n){var r=n[e],s={prevented:!1,name:e,args:t};if(i.call(this,r,s),s.prevented)return void(t.prevented=!0)}i.call(this,e,t)},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(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},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(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},a.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},a.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&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 e=[];return this.dataAdapter.current((function(t){e=t})),e},a.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.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 t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(t[0],"element",this.$element),t},a})),t.define("select2/dropdown/attachContainer",[],(function(){function e(e,t,i){e.call(this,t,i)}return e.prototype.position=function(e,t,i){i.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),i[0].classList.add("select2-container--below")},e})),t.define("select2/dropdown/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),t.define("select2/selection/stopPropagation",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){e.call(this,t,i);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(e){e.stopPropagation()}))},e})),
|
||
/*!
|
||
* jQuery Mousewheel 3.1.13
|
||
*
|
||
* Copyright jQuery Foundation and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*/
|
||
i=function(e){var t,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=n.length;s;)e.event.fixHooks[n[--s]]=e.event.mouseHooks;var o=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=a.length;t;)this.addEventListener(a[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",o.getLineHeight(this)),e.data(this,"mousewheel-page-height",o.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=a.length;t;)this.removeEventListener(a[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var a=n||window.event,s=r.call(arguments,1),l=0,d=0,h=0,f=0,p=0,m=0;if((n=e.event.fix(a)).type="mousewheel","detail"in a&&(h=-1*a.detail),"wheelDelta"in a&&(h=a.wheelDelta),"wheelDeltaY"in a&&(h=a.wheelDeltaY),"wheelDeltaX"in a&&(d=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(d=-1*h,h=0),l=0===h?d:h,"deltaY"in a&&(l=h=-1*a.deltaY),"deltaX"in a&&(d=a.deltaX,0===h&&(l=-1*d)),0!==h||0!==d){if(1===a.deltaMode){var g=e.data(this,"mousewheel-line-height");l*=g,h*=g,d*=g}else if(2===a.deltaMode){var v=e.data(this,"mousewheel-page-height");l*=v,h*=v,d*=v}if(f=Math.max(Math.abs(h),Math.abs(d)),(!i||f<i)&&(i=f,u(a,f)&&(i/=40)),u(a,f)&&(l/=40,d/=40,h/=40),l=Math[l>=1?"floor":"ceil"](l/i),d=Math[d>=1?"floor":"ceil"](d/i),h=Math[h>=1?"floor":"ceil"](h/i),o.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=n.clientX-y.left,m=n.clientY-y.top}return n.deltaX=d,n.deltaY=h,n.deltaFactor=i,n.offsetX=p,n.offsetY=m,n.deltaMode=0,s.unshift(n,l,d,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function c(){i=null}function u(e,t){return o.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,i,n,a){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var n=e.extend(!0,{},t);new i(e(this),n)})),this;if("string"==typeof t){var n,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=a.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)})),r.indexOf(t)>-1?this:n}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i})),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i})),$.fn.select2.defaults.set("theme","bootstrap5"),$.fn.select2.defaults.set("width","100%"),$.fn.select2.defaults.set("selectionCssClass",":all:"),
|
||
/* flatpickr v4.6.9, @license MIT */
|
||
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var e=function(){return e=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<i;t++)for(var r=arguments[t],s=0,o=r.length;s<o;s++,a++)n[a]=r[s];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(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var i=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.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' viewBox='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(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%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},r=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},s=function(e){return!0===e?1:0};function o(e,t){var i;return function(){var n=this;clearTimeout(i),i=setTimeout((function(){return e.apply(n,arguments)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,i){if(!0===i)return e.classList.add(t);e.classList.remove(t)}function u(e,t,i){var n=window.document.createElement(e);return t=t||"",i=i||"",n.className=t,void 0!==i&&(n.textContent=i),n}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):void 0}function f(e,t){var i=u("div","numInputWrapper"),n=u("input","numInput "+e),a=u("span","arrowUp"),r=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==t)for(var s in t)n.setAttribute(s,t[s]);return i.appendChild(n),i.appendChild(a),i.appendChild(r),i}function p(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},g=function(e,t,i){return i.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,i){e.setMonth(i.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,i){e.setHours(e.getHours()%12+12*s(new RegExp(i.amPM[1],"i").test(t)))},M:function(e,t,i){e.setMonth(i.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,i){var n=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+i.firstDayOfWeek),a},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",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:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,i){return t.weekdays.shorthand[b.w(e,t,i)]},F:function(e,t,i){return g(b.n(e,t,i)-1,!1,t)},G:function(e,t,i){return r(b.h(e,t,i))},H:function(e){return r(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[s(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,i){return i.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return r(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},x=function(e){var t=e.config,i=void 0===t?n:t,r=e.l10n,s=void 0===r?a:r,o=e.isMobile,l=void 0!==o&&o;return function(e,t,n){var a=n||s;return void 0===i.formatDate||l?t.split("").map((function(t,n,r){return b[t]&&"\\"!==r[n-1]?b[t](e,a,i):"\\"!==t?t:""})).join(""):i.formatDate(e,t,a)}},_=function(e){var t=e.config,i=void 0===t?n:t,r=e.l10n,s=void 0===r?a:r;return function(e,t,a,r){if(0===e||e){var o,l=r||s,c=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var u=t||(i||n).dateFormat,d=String(e).trim();if("today"===d)o=new Date,a=!0;else if(/Z$/.test(d)||/GMT$/.test(d))o=new Date(e);else if(i&&i.parseDate)o=i.parseDate(e,u);else{o=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var h=void 0,f=[],p=0,m=0,g="";p<u.length;p++){var b=u[p],x="\\"===b,_="\\"===u[p-1]||x;if(y[b]&&!_){g+=y[b];var w=new RegExp(g).exec(e);w&&(h=!0)&&f["Y"!==b?"push":"unshift"]({fn:v[b],val:w[++m]})}else x||(g+=".");f.forEach((function(e){var t=e.fn,i=e.val;return o=t(o,i,l)||o}))}o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===a&&o.setHours(0,0,0,0),o;i.errorHandler(new Error("Invalid date provided: "+c))}}};function w(e,t,i){return void 0===i&&(i=!0),!1!==i?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var k=864e5;function M(e){var t=e.defaultHour,i=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),r=e.minDate.getMinutes(),s=e.minDate.getSeconds();t<a&&(t=a),t===a&&i<r&&(i=r),t===a&&i===r&&n<s&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var o=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,o))===o&&(i=Math.min(l,i)),t===o&&i===l&&(n=e.maxDate.getSeconds())}return{hours:t,minutes:i,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(t){t&&Object.keys(t).forEach((function(i){return e[i]=t[i]}))},a=0,r=t;a<r.length;a++){var s=r[a];n(s)}return e});function L(m,v){var b={config:e(e({},n),A.defaultConfig),l10n:a};function L(e){return e.bind(b)}function S(){var e=b.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==b.calendarContainer&&(b.calendarContainer.style.visibility="hidden",b.calendarContainer.style.display="block"),void 0!==b.daysContainer){var t=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=t+"px",b.calendarContainer.style.width=t+(void 0!==b.weekWrapper?b.weekWrapper.offsetWidth:0)+"px",b.calendarContainer.style.removeProperty("visibility"),b.calendarContainer.style.removeProperty("display")}}))}function T(e){if(0===b.selectedDates.length){var t=void 0===b.config.minDate||w(new Date,b.config.minDate)>=0?new Date:new Date(b.config.minDate.getTime()),i=M(b.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),b.selectedDates=[t],b.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,i=p(e),n=i;void 0!==b.amPM&&i===b.amPM&&(b.amPM.textContent=b.l10n.amPM[s(b.amPM.textContent===b.l10n.amPM[0])]);var a=parseFloat(n.getAttribute("min")),o=parseFloat(n.getAttribute("max")),l=parseFloat(n.getAttribute("step")),c=parseInt(n.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==n.value&&2===n.value.length){var h=n===b.hourElement,f=n===b.minuteElement;d<a?(d=o+d+s(!h)+(s(h)&&s(!b.amPM)),f&&N(void 0,-1,b.hourElement)):d>o&&(d=n===b.hourElement?d-o-s(!b.amPM):a,f&&N(void 0,1,b.hourElement)),b.amPM&&h&&(1===l?d+c===23:Math.abs(d-c)>l)&&(b.amPM.textContent=b.l10n.amPM[s(b.amPM.textContent===b.l10n.amPM[0])]),n.value=r(d)}}(e);var n=b._input.value;C(),xe(),b._input.value!==n&&b._debouncedChange()}function C(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e,t,i=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(b.minuteElement.value,10)||0)%60,a=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(e=i,t=b.amPM.textContent,i=e%12+12*s(t===b.l10n.amPM[1]));var r=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===w(b.latestSelectedDateObj,b.config.minDate,!0);if(void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===w(b.latestSelectedDateObj,b.config.maxDate,!0)){var o=void 0!==b.config.maxTime?b.config.maxTime:b.config.maxDate;(i=Math.min(i,o.getHours()))===o.getHours()&&(n=Math.min(n,o.getMinutes())),n===o.getMinutes()&&(a=Math.min(a,o.getSeconds()))}if(r){var l=void 0!==b.config.minTime?b.config.minTime:b.config.minDate;(i=Math.max(i,l.getHours()))===l.getHours()&&n<l.getMinutes()&&(n=l.getMinutes()),n===l.getMinutes()&&(a=Math.max(a,l.getSeconds()))}E(i,n,a)}}function D(e){var t=e||b.latestSelectedDateObj;t&&E(t.getHours(),t.getMinutes(),t.getSeconds())}function E(e,t,i){void 0!==b.latestSelectedDateObj&&b.latestSelectedDateObj.setHours(e%24,t,i||0,0),b.hourElement&&b.minuteElement&&!b.isMobile&&(b.hourElement.value=r(b.config.time_24hr?e:(12+e)%12+12*s(e%12==0)),b.minuteElement.value=r(t),void 0!==b.amPM&&(b.amPM.textContent=b.l10n.amPM[s(e>=12)]),void 0!==b.secondElement&&(b.secondElement.value=r(i)))}function O(e){var t=p(e),i=parseInt(t.value)+(e.delta||0);(i/1e3>1||"Enter"===e.key&&!/[^\d]/.test(i.toString()))&&J(i)}function P(e,t,i,n){return t instanceof Array?t.forEach((function(t){return P(e,t,i,n)})):e instanceof Array?e.forEach((function(e){return P(e,t,i,n)})):(e.addEventListener(t,i,n),void b._handlers.push({remove:function(){return e.removeEventListener(t,i)}}))}function Y(){me("onChange")}function I(e,t){var i=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now),n=b.currentYear,a=b.currentMonth;try{void 0!==i&&(b.currentYear=i.getFullYear(),b.currentMonth=i.getMonth())}catch(e){e.message="Invalid date supplied: "+i,b.config.errorHandler(e)}t&&b.currentYear!==n&&(me("onYearChange"),V()),!t||b.currentYear===n&&b.currentMonth===a||me("onMonthChange"),b.redraw()}function j(e){var t=p(e);~t.className.indexOf("arrow")&&N(e,t.classList.contains("arrowUp")?1:-1)}function N(e,t,i){var n=e&&p(e),a=i||n&&n.parentNode&&n.parentNode.firstChild,r=ge("increment");r.delta=t,a&&a.dispatchEvent(r)}function H(e,t,i,n){var a=Q(t,!0),r=u("span","flatpickr-day "+e,t.getDate().toString());return r.dateObj=t,r.$i=n,r.setAttribute("aria-label",b.formatDate(t,b.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===w(t,b.now)&&(b.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),a?(r.tabIndex=-1,ve(t)&&(r.classList.add("selected"),b.selectedDateElem=r,"range"===b.config.mode&&(c(r,"startRange",b.selectedDates[0]&&0===w(t,b.selectedDates[0],!0)),c(r,"endRange",b.selectedDates[1]&&0===w(t,b.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===b.config.mode&&function(e){return!("range"!==b.config.mode||b.selectedDates.length<2)&&(w(e,b.selectedDates[0])>=0&&w(e,b.selectedDates[1])<=0)}(t)&&!ve(t)&&r.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&i%7==1&&b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(t)+"</span>"),me("onDayCreate",r),r}function F(e){e.focus(),"range"===b.config.mode&&ne(e)}function R(e){for(var t=e>0?0:b.config.showMonths-1,i=e>0?b.config.showMonths:-1,n=t;n!=i;n+=e)for(var a=b.daysContainer.children[n],r=e>0?0:a.children.length-1,s=e>0?a.children.length:-1,o=r;o!=s;o+=e){var l=a.children[o];if(-1===l.className.indexOf("hidden")&&Q(l.dateObj))return l}}function z(e,t){var i=ee(document.activeElement||document.body),n=void 0!==e?e:i?document.activeElement:void 0!==b.selectedDateElem&&ee(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&ee(b.todayDateElem)?b.todayDateElem:R(t>0?1:-1);void 0===n?b._input.focus():i?function(e,t){for(var i=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,n=t>0?b.config.showMonths:-1,a=t>0?1:-1,r=i-b.currentMonth;r!=n;r+=a)for(var s=b.daysContainer.children[r],o=i-b.currentMonth===r?e.$i+t:t<0?s.children.length-1:0,l=s.children.length,c=o;c>=0&&c<l&&c!=(t>0?l:-1);c+=a){var u=s.children[c];if(-1===u.className.indexOf("hidden")&&Q(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return F(u)}b.changeMonth(a),z(R(a),0)}(n,t):F(n)}function B(e,t){for(var i=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,n=b.utils.getDaysInMonth((t-1+12)%12,e),a=b.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),s=b.config.showMonths>1,o=s?"prevMonthDay hidden":"prevMonthDay",l=s?"nextMonthDay hidden":"nextMonthDay",c=n+1-i,d=0;c<=n;c++,d++)r.appendChild(H(o,new Date(e,t-1,c),c,d));for(c=1;c<=a;c++,d++)r.appendChild(H("",new Date(e,t,c),c,d));for(var h=a+1;h<=42-i&&(1===b.config.showMonths||d%7!=0);h++,d++)r.appendChild(H(l,new Date(e,t+1,h%a),h,d));var f=u("div","dayContainer");return f.appendChild(r),f}function W(){if(void 0!==b.daysContainer){d(b.daysContainer),b.weekNumbers&&d(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<b.config.showMonths;t++){var i=new Date(b.currentYear,b.currentMonth,1);i.setMonth(b.currentMonth+t),e.appendChild(B(i.getFullYear(),i.getMonth()))}b.daysContainer.appendChild(e),b.days=b.daysContainer.firstChild,"range"===b.config.mode&&1===b.selectedDates.length&&ne()}}function V(){if(!(b.config.showMonths>1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth())&&!(void 0!==b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var i=u("option","flatpickr-monthDropdown-month");i.value=new Date(b.currentYear,t).getMonth().toString(),i.textContent=g(t,b.config.shorthandCurrentMonth,b.l10n),i.tabIndex=-1,b.currentMonth===t&&(i.selected=!0),b.monthsDropdownContainer.appendChild(i)}}}function q(){var e,t=u("div","flatpickr-month"),i=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=u("span","cur-month"):(b.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),P(b.monthsDropdownContainer,"change",(function(e){var t=p(e),i=parseInt(t.value,10);b.changeMonth(i-b.currentMonth),me("onMonthChange")})),V(),e=b.monthsDropdownContainer);var n=f("cur-year",{tabindex:"-1"}),a=n.getElementsByTagName("input")[0];a.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&a.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(a.setAttribute("max",b.config.maxDate.getFullYear().toString()),a.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(n),i.appendChild(r),t.appendChild(i),{container:t,yearElement:a,monthElement:e}}function X(){d(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=q();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function U(){b.weekdayContainer?d(b.weekdayContainer):b.weekdayContainer=u("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return $(),b.weekdayContainer}function $(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,i=t(b.l10n.weekdays.shorthand);e>0&&e<i.length&&(i=t(i.splice(e,i.length),i.splice(0,e)));for(var n=b.config.showMonths;n--;)b.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+i.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function G(e,t){void 0===t&&(t=!0);var i=t?e:e-b.currentMonth;i<0&&!0===b._hidePrevMonthArrow||i>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=i,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,me("onYearChange"),V()),W(),me("onMonthChange"),ye())}function Z(e){return!(!b.config.appendTo||!b.config.appendTo.contains(e))||b.calendarContainer.contains(e)}function K(e){if(b.isOpen&&!b.config.inline){var t=p(e),i=Z(t),n=t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput)),a="blur"===e.type?n&&e.relatedTarget&&!Z(e.relatedTarget):!n&&!i&&!Z(e.relatedTarget),r=!b.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&r&&(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&T(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&(b.clear(!1),b.redraw()))}}function J(e){if(!(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())){var t=e,i=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),i&&(b.redraw(),me("onYearChange"),V())}}function Q(e,t){var i;void 0===t&&(t=!0);var n=b.parseDate(e,void 0,t);if(b.config.minDate&&n&&w(n,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&n&&w(n,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(!b.config.enable&&0===b.config.disable.length)return!0;if(void 0===n)return!1;for(var a=!!b.config.enable,r=null!==(i=b.config.enable)&&void 0!==i?i:b.config.disable,s=0,o=void 0;s<r.length;s++){if("function"==typeof(o=r[s])&&o(n))return a;if(o instanceof Date&&void 0!==n&&o.getTime()===n.getTime())return a;if("string"==typeof o){var l=b.parseDate(o,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof o&&void 0!==n&&o.from&&o.to&&n.getTime()>=o.from.getTime()&&n.getTime()<=o.to.getTime())return a}return!a}function ee(e){return void 0!==b.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e))}function te(e){!(e.target===b._input)||!(b.selectedDates.length>0||b._input.value.length>0)||e.relatedTarget&&Z(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function ie(e){var t=p(e),i=b.config.wrap?m.contains(t):t===b._input,n=b.config.allowInput,a=b.isOpen&&(!n||!i),r=b.config.inline&&i&&!n;if(13===e.keyCode&&i){if(n)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),t.blur();b.open()}else if(Z(t)||a||r){var s=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:s?(e.preventDefault(),T(),ue()):de(e);break;case 27:e.preventDefault(),ue();break;case 8:case 46:i&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(s||i)b.hourElement&&b.hourElement.focus();else if(e.preventDefault(),void 0!==b.daysContainer&&(!1===n||document.activeElement&&ee(document.activeElement))){var o=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(o),z(R(1),0)):z(void 0,o)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),J(b.currentYear-l),z(R(1),0)):s||z(void 0,7*l):t===b.currentYearElement?J(b.currentYear-l):b.config.enableTime&&(!s&&b.hourElement&&b.hourElement.focus(),T(e),b._debouncedChange());break;case 9:if(s){var c=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter((function(e){return e})),u=c.indexOf(t);if(-1!==u){var d=c[u+(e.shiftKey?-1:1)];e.preventDefault(),(d||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],C(),xe();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],C(),xe()}(i||Z(t))&&me("onKeyDown",e)}function ne(e){if(1===b.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),i=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,b.selectedDates[0].getTime()),a=Math.max(t,b.selectedDates[0].getTime()),r=!1,s=0,o=0,l=n;l<a;l+=k)Q(new Date(l),!0)||(r=r||l>n&&l<a,l<i&&(!s||l>s)?s=l:l>i&&(!o||l<o)&&(o=l));for(var c=0;c<b.config.showMonths;c++)for(var u=b.daysContainer.children[c],d=function(n,a){var l,c,d,h=u.children[n],f=h.dateObj.getTime(),p=s>0&&f<s||o>0&&f>o;return p?(h.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){h.classList.remove(e)})),"continue"):r&&!p?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){h.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=b.selectedDates[0].getTime()?"startRange":"endRange"),i<t&&f===i?h.classList.add("startRange"):i>t&&f===i&&h.classList.add("endRange"),f>=s&&(0===o||f<=o)&&(c=i,d=t,(l=f)>Math.min(c,d)&&l<Math.max(c,d))&&h.classList.add("inRange"))))},h=0,f=u.children.length;h<f;h++)d(h)}}function ae(){!b.isOpen||b.config.static||b.config.inline||le()}function re(e){return function(t){var i=b.config["_"+e+"Date"]=b.parseDate(t,b.config.dateFormat),n=b.config["_"+("min"===e?"max":"min")+"Date"];void 0!==i&&(b["min"===e?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter((function(e){return Q(e)})),b.selectedDates.length||"min"!==e||D(i),xe()),b.daysContainer&&(ce(),void 0!==i?b.currentYearElement[e]=i.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!n&&void 0!==i&&n.getFullYear()===i.getFullYear())}}function se(){return b.config.wrap?m.querySelector("[data-input]"):m}function oe(){"object"!=typeof b.config.locale&&void 0===A.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},A.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?A.l10ns[b.config.locale]:void 0),y.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===A.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=x(b),b.parseDate=_({config:b.config,l10n:b.l10n})}function le(e){if("function"!=typeof b.config.position){if(void 0!==b.calendarContainer){me("onPreCalendarPosition");var t=e||b._positionElement,i=Array.prototype.reduce.call(b.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),n=b.calendarContainer.offsetWidth,a=b.config.position.split(" "),r=a[0],s=a.length>1?a[1]:null,o=t.getBoundingClientRect(),l=window.innerHeight-o.bottom,u="above"===r||"below"!==r&&l<i&&o.top>i,d=window.pageYOffset+o.top+(u?-i-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!u),c(b.calendarContainer,"arrowBottom",u),!b.config.inline){var h=window.pageXOffset+o.left,f=!1,p=!1;"center"===s?(h-=(n-o.width)/2,f=!0):"right"===s&&(h-=n-o.width,p=!0),c(b.calendarContainer,"arrowLeft",!f&&!p),c(b.calendarContainer,"arrowCenter",f),c(b.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+o.right),g=h+n>window.document.body.offsetWidth,v=m+n>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var i=document.styleSheets[t];try{i.cssRules}catch(e){continue}e=i;break}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===y)return;var x=window.document.body.offsetWidth,_=Math.max(0,x/2-n/2),w=y.cssRules.length,k="{left:"+o.left+"px;right:auto;}";c(b.calendarContainer,"rightMost",!1),c(b.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+k,w),b.calendarContainer.style.left=_+"px",b.calendarContainer.style.right="auto"}else b.calendarContainer.style.left="auto",b.calendarContainer.style.right=m+"px";else b.calendarContainer.style.left=h+"px",b.calendarContainer.style.right="auto"}}}else b.config.position(b,e)}function ce(){b.config.noCalendar||b.isMobile||(V(),ye(),W())}function ue(){b._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(b.close,0):b.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=h(p(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var i=t,n=b.latestSelectedDateObj=new Date(i.dateObj.getTime()),a=(n.getMonth()<b.currentMonth||n.getMonth()>b.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=i,"single"===b.config.mode)b.selectedDates=[n];else if("multiple"===b.config.mode){var r=ve(n);r?b.selectedDates.splice(parseInt(r),1):b.selectedDates.push(n)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=n,b.selectedDates.push(n),0!==w(n,b.selectedDates[0],!0)&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(C(),a){var s=b.currentYear!==n.getFullYear();b.currentYear=n.getFullYear(),b.currentMonth=n.getMonth(),s&&(me("onYearChange"),V()),me("onMonthChange")}if(ye(),W(),xe(),a||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():F(i),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var o="single"===b.config.mode&&!b.config.enableTime,l="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(o||l)&&ue()}Y()}}b.parseDate=_({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=P,b._setHoursFromDate=D,b._positionCalendar=le,b.changeMonth=G,b.changeYear=J,b.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);b.input.value="",void 0!==b.altInput&&(b.altInput.value="");void 0!==b.mobileInput&&(b.mobileInput.value="");b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth());if(!0===b.config.enableTime){var i=M(b.config),n=i.hours,a=i.minutes,r=i.seconds;E(n,a,r)}b.redraw(),e&&me("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active"));me("onClose")},b._createElement=u,b.destroy=function(){void 0!==b.config&&me("onDestroy");for(var e=b._handlers.length;e--;)b._handlers[e].remove();if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var t=b.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput);b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.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(e){try{delete b[e]}catch(e){}}))},b.isEnabled=Q,b.jumpToDate=I,b.open=function(e,t){void 0===t&&(t=b._positionElement);if(!0===b.isMobile){if(e){e.preventDefault();var i=p(e);i&&i.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void me("onOpen")}if(b._input.disabled||b.config.inline)return;var n=b.isOpen;b.isOpen=!0,n||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),me("onOpen"),le(t));!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return b.hourElement.select()}),50))},b.redraw=ce,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(b.config,e),e)void 0!==he[n]&&he[n].forEach((function(e){return e()}));else b.config[e]=t,void 0!==he[e]?he[e].forEach((function(e){return e()})):i.indexOf(e)>-1&&(b.config[e]=l(t));b.redraw(),xe(!0)},b.setDate=function(e,t,i){void 0===t&&(t=!1);void 0===i&&(i=b.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);fe(e,i),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),I(void 0,t),D(),0===b.selectedDates.length&&b.clear(!1);xe(t),t&&me("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var he={locale:[oe,$],showMonths:[X,S,U],minDate:[I],maxDate:[I],clickOpens:[function(){!0===b.config.clickOpens?(P(b._input,"focus",b.open),P(b._input,"click",b.open)):(b._input.removeEventListener("focus",b.open),b._input.removeEventListener("click",b.open))}]};function fe(e,t){var i=[];if(e instanceof Array)i=e.map((function(e){return b.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)i=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":i=[b.parseDate(e,t)];break;case"multiple":i=e.split(b.config.conjunction).map((function(e){return b.parseDate(e,t)}));break;case"range":i=e.split(b.l10n.rangeSeparator).map((function(e){return b.parseDate(e,t)}))}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?i:i.filter((function(e){return e instanceof Date&&Q(e,!1)})),"range"===b.config.mode&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function pe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function me(e,t){if(void 0!==b.config){var i=b.config[e];if(void 0!==i&&i.length>0)for(var n=0;i[n]&&n<i.length;n++)i[n](b.selectedDates,b.input.value,b,t);"onChange"===e&&(b.input.dispatchEvent(ge("change")),b.input.dispatchEvent(ge("input")))}}function ge(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ve(e){for(var t=0;t<b.selectedDates.length;t++)if(0===w(b.selectedDates[t],e))return""+t;return!1}function ye(){b.config.noCalendar||b.isMobile||!b.monthNav||(b.yearElements.forEach((function(e,t){var i=new Date(b.currentYear,b.currentMonth,1);i.setMonth(b.currentMonth+t),b.config.showMonths>1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=g(i.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=i.getMonth().toString(),e.value=i.getFullYear().toString()})),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear()),b._hideNextMonthArrow=void 0!==b.config.maxDate&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function be(e){return b.selectedDates.map((function(t){return b.formatDate(t,e)})).filter((function(e,t,i){return"range"!==b.config.mode||b.config.enableTime||i.indexOf(e)===t})).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=be(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=be(b.config.altFormat)),!1!==e&&me("onValueUpdate")}function _e(e){var t=p(e),i=b.prevMonthNav.contains(t),n=b.nextMonthNav.contains(t);i||n?G(i?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=m,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],a=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),v),r={};b.config.parseDate=a.parseDate,b.config.formatDate=a.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=pe(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=pe(e)}});var s="time"===a.mode;if(!a.dateFormat&&(a.enableTime||s)){var o=A.defaultConfig.dateFormat||n.dateFormat;r.dateFormat=a.noCalendar||s?"H:i"+(a.enableSeconds?":S":""):o+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||s)&&!a.altFormat){var c=A.defaultConfig.altFormat||n.altFormat;r.altFormat=a.noCalendar||s?"h:i"+(a.enableSeconds?":S K":" K"):c+" h:i"+(a.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:re("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:re("max")});var u=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:u("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:u("max")}),"time"===a.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0);Object.assign(b.config,r,a);for(var d=0;d<t.length;d++)b.config[t[d]]=!0===b.config[t[d]]||"true"===b.config[t[d]];i.filter((function(e){return void 0!==b.config[e]})).forEach((function(e){b.config[e]=l(b.config[e]||[]).map(L)})),b.isMobile=!b.config.disableMobile&&!b.config.inline&&"single"===b.config.mode&&!b.config.disable.length&&!b.config.enable&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<b.config.plugins.length;d++){var h=b.config.plugins[d](b)||{};for(var f in h)i.indexOf(f)>-1?b.config[f]=l(h[f]).map(L).concat(b.config[f]):void 0===a[f]&&(b.config[f]=h[f])}a.altInputClass||(b.config.altInputClass=se().className+" "+b.config.altInputClass);me("onParseConfig")}(),oe(),function(){if(b.input=se(),!b.input)return void b.config.errorHandler(new Error("Invalid input element specified"));b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=u(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling));b.config.allowInput||b._input.setAttribute("readonly","readonly");b._positionElement=b.config.positionElement||b._input}(),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&fe(e,b.config.dateFormat);b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now,b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth(),b.selectedDates.length>0&&(b.latestSelectedDateObj=b.selectedDates[0]);void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i"));void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i"));b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||function(){var e=window.document.createDocumentFragment();if(b.calendarContainer=u("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=u("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=u("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=u("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,X(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],ye(),b.monthNav)),b.innerContainer=u("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,n=t.weekNumbers;b.innerContainer.appendChild(i),b.weekNumbers=n,b.weekWrapper=i}b.rContainer=u("div","flatpickr-rContainer"),b.rContainer.appendChild(U()),b.daysContainer||(b.daysContainer=u("div","flatpickr-days"),b.daysContainer.tabIndex=-1),W(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar");var e=M(b.config);b.timeContainer=u("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),i=f("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=i.getElementsByTagName("input")[0];var n=f("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});b.minuteElement=n.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),b.minuteElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():e.minutes),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.hourElement.setAttribute("maxlength","2"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.minuteElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(i),b.timeContainer.appendChild(t),b.timeContainer.appendChild(n),b.config.time_24hr&&b.timeContainer.classList.add("time24hr");if(b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var a=f("flatpickr-second");b.secondElement=a.getElementsByTagName("input")[0],b.secondElement.value=r(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():e.seconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.secondElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(a)}b.config.time_24hr||(b.amPM=u("span","flatpickr-am-pm",b.l10n.amPM[s((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM));return b.timeContainer}());c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var a=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!a&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var o=u("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(o,b.element),o.appendChild(b.element),b.altInput&&o.appendChild(b.altInput),o.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}(),function(){b.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),(function(t){return P(t,"click",b[e])}))}));if(b.isMobile)return void function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=u("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr));b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d"));b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d"));b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step")));b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}P(b.mobileInput,"change",(function(e){b.setDate(p(e).value,!1,b.mobileFormatStr),me("onChange"),me("onClose")}))}();var e=o(ae,50);b._debouncedChange=o(Y,300),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(b.daysContainer,"mouseover",(function(e){"range"===b.config.mode&&ne(p(e))}));P(window.document.body,"keydown",ie),b.config.inline||b.config.static||P(window,"resize",e);void 0!==window.ontouchstart?P(window.document,"touchstart",K):P(window.document,"mousedown",K);P(window.document,"focus",K,{capture:!0}),!0===b.config.clickOpens&&(P(b._input,"focus",b.open),P(b._input,"click",b.open));void 0!==b.daysContainer&&(P(b.monthNav,"click",_e),P(b.monthNav,["keyup","increment"],O),P(b.daysContainer,"click",de));if(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement){var t=function(e){return p(e).select()};P(b.timeContainer,["increment"],T),P(b.timeContainer,"blur",T,{capture:!0}),P(b.timeContainer,"click",j),P([b.hourElement,b.minuteElement],["focus","click"],t),void 0!==b.secondElement&&P(b.secondElement,"focus",(function(){return b.secondElement&&b.secondElement.select()})),void 0!==b.amPM&&P(b.amPM,"click",(function(e){T(e),Y()}))}b.config.allowInput&&P(b._input,"blur",te)}(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&D(b.config.noCalendar?b.latestSelectedDateObj:void 0),xe(!1)),S();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&le(),me("onReady")}(),b}function S(e,t){for(var i=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<i.length;a++){var r=i[a];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=L(r,t||{}),n.push(r._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var A=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};return A.defaultConfig={},A.l10ns={en:e({},a),default:e({},a)},A.localize=function(t){A.l10ns.default=e(e({},A.l10ns.default),t)},A.setDefaults=function(t){A.defaultConfig=e(e({},A.defaultConfig),t)},A.parseDate=_({}),A.formatDate=x({}),A.compareDates=w,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=A),A})),
|
||
/*!
|
||
* https://github.com/paulmillr/es6-shim
|
||
* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
|
||
* and contributors, MIT License
|
||
* es6-shim: v0.35.4
|
||
* see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
|
||
* Details and documentation:
|
||
* https://github.com/paulmillr/es6-shim/
|
||
*/
|
||
function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.returnExports=t()}(this,(function(){"use strict";var e,t=Function.call.bind(Function.apply),i=Function.call.bind(Function.call),n=Array.isArray,a=Object.keys,r=function(e){return function(){return!t(e,this,arguments)}},s=function(e){try{return e(),!1}catch(e){return!0}},o=function(e){try{return e()}catch(e){return!1}},l=r(s),c=function(){return!s((function(){return Object.defineProperty({},"x",{get:function(){}})}))},u=!!Object.defineProperty&&c(),d="foo"===function(){}.name,h=Function.call.bind(Array.prototype.forEach),f=Function.call.bind(Array.prototype.reduce),p=Function.call.bind(Array.prototype.filter),m=Function.call.bind(Array.prototype.some),g=function(e,t,i,n){!n&&t in e||(u?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:i}):e[t]=i)},v=function(e,t,i){h(a(t),(function(n){var a=t[n];g(e,n,a,!!i)}))},y=Function.call.bind(Object.prototype.toString),b="function"==typeof/abc/?function(e){return"function"==typeof e&&"[object Function]"===y(e)}:function(e){return"function"==typeof e},x={getter:function(e,t,i){if(!u)throw new TypeError("getters require true ES5 support");Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:i})},proxy:function(e,t,i){if(!u)throw new TypeError("getters require true ES5 support");var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return e[t]},set:function(i){e[t]=i}})},redefine:function(e,t,i){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=i,Object.defineProperty(e,t,n)}else e[t]=i},defineByDescriptor:function(e,t,i){u?Object.defineProperty(e,t,i):"value"in i&&(e[t]=i.value)},preserveToString:function(e,t){t&&b(t.toString)&&g(e,"toString",t.toString.bind(t),!0)}},_=Object.create||function(e,t){var i=function(){};i.prototype=e;var n=new i;return void 0!==t&&a(t).forEach((function(e){x.defineByDescriptor(n,e,t[e])})),n},w=function(e,t){return!!Object.setPrototypeOf&&o((function(){var i=function t(i){var n=new e(i);return Object.setPrototypeOf(n,t.prototype),n};return Object.setPrototypeOf(i,e),i.prototype=_(e.prototype,{constructor:{value:i}}),t(i)}))},k=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")},M=k(),L=M.isFinite,S=Function.call.bind(String.prototype.indexOf),A=Function.apply.bind(Array.prototype.indexOf),T=Function.call.bind(Array.prototype.concat),C=Function.call.bind(String.prototype.slice),D=Function.call.bind(Array.prototype.push),E=Function.apply.bind(Array.prototype.push),O=Function.call.bind(Array.prototype.join),P=Function.call.bind(Array.prototype.shift),Y=Math.max,I=Math.min,j=Math.floor,N=Math.abs,H=Math.exp,F=Math.log,R=Math.sqrt,z=Function.call.bind(Object.prototype.hasOwnProperty),B=function(){},W=M.Map,V=W&&W.prototype.delete,q=W&&W.prototype.get,X=W&&W.prototype.has,U=W&&W.prototype.set,$=M.Symbol||{},G=$.species||"@@species",Z=Number.isNaN||function(e){return e!=e},K=Number.isFinite||function(e){return"number"==typeof e&&L(e)},J=b(Math.sign)?Math.sign:function(e){var t=Number(e);return 0===t||Z(t)?t:t<0?-1:1},Q=function(e){var t=Number(e);return t<-1||Z(t)?NaN:0===t||t===1/0?t:-1===t?-1/0:1+t-1==0?t:t*(F(1+t)/(1+t-1))},ee=function(e){return"[object Arguments]"===y(e)},te=function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==y(e)&&"[object Function]"===y(e.callee)},ie=ee(arguments)?ee:te,ne={primitive:function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},string:function(e){return"[object String]"===y(e)},regex:function(e){return"[object RegExp]"===y(e)},symbol:function(e){return"function"==typeof M.Symbol&&"symbol"==typeof e}},ae=function(e,t,i){var n=e[t];g(e,t,i,!0),x.preserveToString(e[t],n)},re="function"==typeof $&&"function"==typeof $.for&&ne.symbol($()),se=ne.symbol($.iterator)?$.iterator:"_es6-shim iterator_";M.Set&&"function"==typeof(new M.Set)["@@iterator"]&&(se="@@iterator"),M.Reflect||g(M,"Reflect",{},!0);var oe,le=M.Reflect,ce=String,ue="undefined"!=typeof document&&document?document.all:null,de=null==ue?function(e){return null==e}:function(e){return null==e&&e!==ue},he={Call:function(e,i){var n=arguments.length>2?arguments[2]:[];if(!he.IsCallable(e))throw new TypeError(e+" is not a function");return t(e,i,n)},RequireObjectCoercible:function(e,t){if(de(e))throw new TypeError(t||"Cannot call method on "+e);return e},TypeIsObject:function(e){return null!=e&&!0!==e&&!1!==e&&("function"==typeof e||"object"==typeof e||e===ue)},ToObject:function(e,t){return Object(he.RequireObjectCoercible(e,t))},IsCallable:b,IsConstructor:function(e){return he.IsCallable(e)},ToInt32:function(e){return he.ToNumber(e)>>0},ToUint32:function(e){return he.ToNumber(e)>>>0},ToNumber:function(e){if(re&&"[object Symbol]"===y(e))throw new TypeError("Cannot convert a Symbol value to a number");return+e},ToInteger:function(e){var t=he.ToNumber(e);return Z(t)?0:0!==t&&K(t)?(t>0?1:-1)*j(N(t)):t},ToLength:function(e){var t=he.ToInteger(e);return t<=0?0:t>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t},SameValue:function(e,t){return e===t?0!==e||1/e==1/t:Z(e)&&Z(t)},SameValueZero:function(e,t){return e===t||Z(e)&&Z(t)},IsIterable:function(e){return he.TypeIsObject(e)&&(void 0!==e[se]||ie(e))},GetIterator:function(t){if(ie(t))return new e(t,"value");var i=he.GetMethod(t,se);if(!he.IsCallable(i))throw new TypeError("value is not an iterable");var n=he.Call(i,t);if(!he.TypeIsObject(n))throw new TypeError("bad iterator");return n},GetMethod:function(e,t){var i=he.ToObject(e)[t];if(!de(i)){if(!he.IsCallable(i))throw new TypeError("Method not callable: "+t);return i}},IteratorComplete:function(e){return!!e.done},IteratorClose:function(e,t){var i=he.GetMethod(e,"return");if(void 0!==i){var n,a;try{n=he.Call(i,e)}catch(e){a=e}if(!t){if(a)throw a;if(!he.TypeIsObject(n))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!he.TypeIsObject(t))throw new TypeError("bad iterator");return t},IteratorStep:function(e){var t=he.IteratorNext(e);return!he.IteratorComplete(t)&&t},Construct:function(e,t,i,n){var a=void 0===i?e:i;if(!n&&le.construct)return le.construct(e,t,a);var r=a.prototype;he.TypeIsObject(r)||(r=Object.prototype);var s=_(r),o=he.Call(e,s,t);return he.TypeIsObject(o)?o:s},SpeciesConstructor:function(e,t){var i=e.constructor;if(void 0===i)return t;if(!he.TypeIsObject(i))throw new TypeError("Bad constructor");var n=i[G];if(de(n))return t;if(!he.IsConstructor(n))throw new TypeError("Bad @@species");return n},CreateHTML:function(e,t,i,n){var a=he.ToString(e),r="<"+t;""!==i&&(r+=" "+i+'="'+he.ToString(n).replace(/"/g,""")+'"');return r+">"+a+"</"+t+">"},IsRegExp:function(e){if(!he.TypeIsObject(e))return!1;var t=e[$.match];return void 0!==t?!!t:ne.regex(e)},ToString:function(e){if(re&&"[object Symbol]"===y(e))throw new TypeError("Cannot convert a Symbol value to a number");return ce(e)}};if(u&&re){var fe=function(e){if(ne.symbol($[e]))return $[e];var t=$.for("Symbol."+e);return Object.defineProperty($,e,{configurable:!1,enumerable:!1,writable:!1,value:t}),t};if(!ne.symbol($.search)){var pe=fe("search"),me=String.prototype.search;g(RegExp.prototype,pe,(function(e){return he.Call(me,e,[this])}));var ge=function(e){var t=he.RequireObjectCoercible(this);if(!de(e)){var i=he.GetMethod(e,pe);if(void 0!==i)return he.Call(i,e,[t])}return he.Call(me,t,[he.ToString(e)])};ae(String.prototype,"search",ge)}if(!ne.symbol($.replace)){var ve=fe("replace"),ye=String.prototype.replace;g(RegExp.prototype,ve,(function(e,t){return he.Call(ye,e,[this,t])}));var be=function(e,t){var i=he.RequireObjectCoercible(this);if(!de(e)){var n=he.GetMethod(e,ve);if(void 0!==n)return he.Call(n,e,[i,t])}return he.Call(ye,i,[he.ToString(e),t])};ae(String.prototype,"replace",be)}if(!ne.symbol($.split)){var xe=fe("split"),_e=String.prototype.split;g(RegExp.prototype,xe,(function(e,t){return he.Call(_e,e,[this,t])}));var we=function(e,t){var i=he.RequireObjectCoercible(this);if(!de(e)){var n=he.GetMethod(e,xe);if(void 0!==n)return he.Call(n,e,[i,t])}return he.Call(_e,i,[he.ToString(e),t])};ae(String.prototype,"split",we)}var ke=ne.symbol($.match),Me=ke&&((oe={})[$.match]=function(){return 42},42!=="a".match(oe));if(!ke||Me){var Le=fe("match"),Se=String.prototype.match;g(RegExp.prototype,Le,(function(e){return he.Call(Se,e,[this])}));var Ae=function(e){var t=he.RequireObjectCoercible(this);if(!de(e)){var i=he.GetMethod(e,Le);if(void 0!==i)return he.Call(i,e,[t])}return he.Call(Se,t,[he.ToString(e)])};ae(String.prototype,"match",Ae)}}var Te=function(e,t,i){x.preserveToString(t,e),Object.setPrototypeOf&&Object.setPrototypeOf(e,t),u?h(Object.getOwnPropertyNames(e),(function(n){n in B||i[n]||x.proxy(e,n,t)})):h(Object.keys(e),(function(n){n in B||i[n]||(t[n]=e[n])})),t.prototype=e.prototype,x.redefine(e.prototype,"constructor",t)},Ce=function(){return this},De=function(e){u&&!z(e,G)&&x.getter(e,G,Ce)},Ee=function(e,t){var i=t||function(){return this};g(e,se,i),!e[se]&&ne.symbol(se)&&(e[se]=i)},Oe=function(e,t,i){u?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[t]=i},Pe=function(e,t,i){if(Oe(e,t,i),!he.SameValue(e[t],i))throw new TypeError("property is nonconfigurable")},Ye=function(e,t,i,n){if(!he.TypeIsObject(e))throw new TypeError("Constructor requires `new`: "+t.name);var a=t.prototype;he.TypeIsObject(a)||(a=i);var r=_(a);for(var s in n)if(z(n,s)){var o=n[s];g(r,s,o,!0)}return r};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Ie=String.fromCodePoint;ae(String,"fromCodePoint",(function(e){return he.Call(Ie,this,arguments)}))}var je={fromCodePoint:function(e){for(var t,i=[],n=0,a=arguments.length;n<a;n++){if(t=Number(arguments[n]),!he.SameValue(t,he.ToInteger(t))||t<0||t>1114111)throw new RangeError("Invalid code point "+t);t<65536?D(i,String.fromCharCode(t)):(t-=65536,D(i,String.fromCharCode(55296+(t>>10))),D(i,String.fromCharCode(t%1024+56320)))}return O(i,"")},raw:function(e){var t=he.ToObject(e,"bad template"),i=he.ToObject(t.raw,"bad raw value"),n=i.length,a=he.ToLength(n);if(a<=0)return"";for(var r,s,o,l,c=[],u=0;u<a&&(r=he.ToString(u),o=he.ToString(i[r]),D(c,o),!(u+1>=a));)s=u+1<arguments.length?arguments[u+1]:"",l=he.ToString(s),D(c,l),u+=1;return O(c,"")}};String.raw&&"xy"!==String.raw({raw:{0:"x",1:"y",length:2}})&&ae(String,"raw",je.raw),v(String,je);var Ne=function e(t,i){if(i<1)return"";if(i%2)return e(t,i-1)+t;var n=e(t,i/2);return n+n},He=1/0,Fe={repeat:function(e){var t=he.ToString(he.RequireObjectCoercible(this)),i=he.ToInteger(e);if(i<0||i>=He)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Ne(t,i)},startsWith:function(e){var t=he.ToString(he.RequireObjectCoercible(this));if(he.IsRegExp(e))throw new TypeError('Cannot call method "startsWith" with a regex');var i,n=he.ToString(e);arguments.length>1&&(i=arguments[1]);var a=Y(he.ToInteger(i),0);return C(t,a,a+n.length)===n},endsWith:function(e){var t=he.ToString(he.RequireObjectCoercible(this));if(he.IsRegExp(e))throw new TypeError('Cannot call method "endsWith" with a regex');var i,n=he.ToString(e),a=t.length;arguments.length>1&&(i=arguments[1]);var r=void 0===i?a:he.ToInteger(i),s=I(Y(r,0),a);return C(t,s-n.length,s)===n},includes:function(e){if(he.IsRegExp(e))throw new TypeError('"includes" does not accept a RegExp');var t,i=he.ToString(e);return arguments.length>1&&(t=arguments[1]),-1!==S(this,i,t)},codePointAt:function(e){var t=he.ToString(he.RequireObjectCoercible(this)),i=he.ToInteger(e),n=t.length;if(i>=0&&i<n){var a=t.charCodeAt(i);if(a<55296||a>56319||i+1===n)return a;var r=t.charCodeAt(i+1);return r<56320||r>57343?a:1024*(a-55296)+(r-56320)+65536}}};if(String.prototype.includes&&!1!=="a".includes("a",1/0)&&ae(String.prototype,"includes",Fe.includes),String.prototype.startsWith&&String.prototype.endsWith){var Re=s((function(){return"/a/".startsWith(/a/)})),ze=o((function(){return!1==="abc".startsWith("a",1/0)}));Re&&ze||(ae(String.prototype,"startsWith",Fe.startsWith),ae(String.prototype,"endsWith",Fe.endsWith))}if(re){var Be=o((function(){var e=/a/;return e[$.match]=!1,"/a/".startsWith(e)}));Be||ae(String.prototype,"startsWith",Fe.startsWith);var We=o((function(){var e=/a/;return e[$.match]=!1,"/a/".endsWith(e)}));We||ae(String.prototype,"endsWith",Fe.endsWith);var Ve=o((function(){var e=/a/;return e[$.match]=!1,"/a/".includes(e)}));Ve||ae(String.prototype,"includes",Fe.includes)}v(String.prototype,Fe);var qe=["\t\n\v\f\r "," \u2028","\u2029\ufeff"].join(""),Xe=new RegExp("(^["+qe+"]+)|(["+qe+"]+$)","g"),Ue=function(){return he.ToString(he.RequireObjectCoercible(this)).replace(Xe,"")},$e=["
","",""].join(""),Ge=new RegExp("["+$e+"]","g"),Ze=/^[-+]0x[0-9a-f]+$/i,Ke=$e.trim().length!==$e.length;g(String.prototype,"trim",Ue,Ke);var Je=function(e){return{value:e,done:0===arguments.length}},Qe=function(e){he.RequireObjectCoercible(e),this._s=he.ToString(e),this._i=0};Qe.prototype.next=function(){var e=this._s,t=this._i;if(void 0===e||t>=e.length)return this._s=void 0,Je();var i,n,a=e.charCodeAt(t);return n=a<55296||a>56319||t+1===e.length||(i=e.charCodeAt(t+1))<56320||i>57343?1:2,this._i=t+n,Je(e.substr(t,n))},Ee(Qe.prototype),Ee(String.prototype,(function(){return new Qe(this)}));var et={from:function(e){var t,n,a,r=this;if(arguments.length>1&&(t=arguments[1]),void 0===t)n=!1;else{if(!he.IsCallable(t))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2]),n=!0}var s,o,l,c=void 0!==(ie(e)||he.GetMethod(e,se));if(c){o=he.IsConstructor(r)?Object(new r):[];var u,d,h=he.GetIterator(e);for(l=0;!1!==(u=he.IteratorStep(h));){d=u.value;try{n&&(d=void 0===a?t(d,l):i(t,a,d,l)),o[l]=d}catch(e){throw he.IteratorClose(h,!0),e}l+=1}s=l}else{var f,p=he.ToObject(e);for(s=he.ToLength(p.length),o=he.IsConstructor(r)?Object(new r(s)):new Array(s),l=0;l<s;++l)f=p[l],n&&(f=void 0===a?t(f,l):i(t,a,f,l)),Pe(o,l,f)}return o.length=s,o},of:function(){for(var e=arguments.length,t=this,i=n(t)||!he.IsCallable(t)?new Array(e):he.Construct(t,[e]),a=0;a<e;++a)Pe(i,a,arguments[a]);return i.length=e,i}};v(Array,et),De(Array),v((e=function(e,t){this.i=0,this.array=e,this.kind=t}).prototype,{next:function(){var t=this.i,i=this.array;if(!(this instanceof e))throw new TypeError("Not an ArrayIterator");if(void 0!==i&&t<he.ToLength(i.length)){var n,a=this.kind;return"key"===a?n=t:"value"===a?n=i[t]:"entry"===a&&(n=[t,i[t]]),this.i=t+1,Je(n)}return this.array=void 0,Je()}}),Ee(e.prototype);var tt=Array.of===et.of||function(){var e=function(e){this.length=e};e.prototype=[];var t=Array.of.apply(e,[1,2]);return t instanceof e&&2===t.length}();tt||ae(Array,"of",et.of);var it={copyWithin:function(e,t){var i,n=he.ToObject(this),a=he.ToLength(n.length),r=he.ToInteger(e),s=he.ToInteger(t),o=r<0?Y(a+r,0):I(r,a),l=s<0?Y(a+s,0):I(s,a);arguments.length>2&&(i=arguments[2]);var c=void 0===i?a:he.ToInteger(i),u=c<0?Y(a+c,0):I(c,a),d=I(u-l,a-o),h=1;for(l<o&&o<l+d&&(h=-1,l+=d-1,o+=d-1);d>0;)l in n?n[o]=n[l]:delete n[o],l+=h,o+=h,d-=1;return n},fill:function(e){var t,i;arguments.length>1&&(t=arguments[1]),arguments.length>2&&(i=arguments[2]);var n=he.ToObject(this),a=he.ToLength(n.length);t=he.ToInteger(void 0===t?0:t),i=he.ToInteger(void 0===i?a:i);for(var r=t<0?Y(a+t,0):I(t,a),s=i<0?a+i:i,o=r;o<a&&o<s;++o)n[o]=e;return n},find:function(e){var t=he.ToObject(this),n=he.ToLength(t.length);if(!he.IsCallable(e))throw new TypeError("Array#find: predicate must be a function");for(var a,r=arguments.length>1?arguments[1]:null,s=0;s<n;s++)if(a=t[s],r){if(i(e,r,a,s,t))return a}else if(e(a,s,t))return a},findIndex:function(e){var t=he.ToObject(this),n=he.ToLength(t.length);if(!he.IsCallable(e))throw new TypeError("Array#findIndex: predicate must be a function");for(var a=arguments.length>1?arguments[1]:null,r=0;r<n;r++)if(a){if(i(e,a,t[r],r,t))return r}else if(e(t[r],r,t))return r;return-1},keys:function(){return new e(this,"key")},values:function(){return new e(this,"value")},entries:function(){return new e(this,"entry")}};if(Array.prototype.keys&&!he.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!he.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[se]&&(v(Array.prototype,{values:Array.prototype[se]}),ne.symbol($.unscopables)&&(Array.prototype[$.unscopables].values=!0)),d&&Array.prototype.values&&"values"!==Array.prototype.values.name){var nt=Array.prototype.values;ae(Array.prototype,"values",(function(){return he.Call(nt,this,arguments)})),g(Array.prototype,se,Array.prototype.values,!0)}v(Array.prototype,it),1/[!0].indexOf(!0,-0)<0&&g(Array.prototype,"indexOf",(function(e){var t=A(this,arguments);return 0===t&&1/t<0?0:t}),!0),Ee(Array.prototype,(function(){return this.values()})),Object.getPrototypeOf&&Ee(Object.getPrototypeOf([].values()));var at,rt=o((function(){return 0===Array.from({length:-1}).length})),st=1===(at=Array.from([0].entries())).length&&n(at[0])&&0===at[0][0]&&0===at[0][1];rt&&st||ae(Array,"from",et.from);var ot=o((function(){return Array.from([0],void 0)}));if(!ot){var lt=Array.from;ae(Array,"from",(function(e){return arguments.length>1&&void 0!==arguments[1]?he.Call(lt,this,arguments):i(lt,this,e)}))}var ct=-(Math.pow(2,32)-1),ut=function(e,t){var n={length:ct};return n[t?(n.length>>>0)-1:0]=!0,o((function(){return i(e,n,(function(){throw new RangeError("should not reach here")}),[]),!0}))};if(!ut(Array.prototype.forEach)){var dt=Array.prototype.forEach;ae(Array.prototype,"forEach",(function(e){return he.Call(dt,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.map)){var ht=Array.prototype.map;ae(Array.prototype,"map",(function(e){return he.Call(ht,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.filter)){var ft=Array.prototype.filter;ae(Array.prototype,"filter",(function(e){return he.Call(ft,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.some)){var pt=Array.prototype.some;ae(Array.prototype,"some",(function(e){return he.Call(pt,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.every)){var mt=Array.prototype.every;ae(Array.prototype,"every",(function(e){return he.Call(mt,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.reduce)){var gt=Array.prototype.reduce;ae(Array.prototype,"reduce",(function(e){return he.Call(gt,this.length>=0?this:[],arguments)}))}if(!ut(Array.prototype.reduceRight,!0)){var vt=Array.prototype.reduceRight;ae(Array.prototype,"reduceRight",(function(e){return he.Call(vt,this.length>=0?this:[],arguments)}))}var yt=8!==Number("0o10"),bt=2!==Number("0b10"),xt=m($e,(function(e){return 0===Number(e+0+e)}));if(yt||bt||xt){var _t=Number,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,Mt=wt.test.bind(wt),Lt=kt.test.bind(kt),St=function(e,t){var i;if("function"==typeof e.valueOf&&(i=e.valueOf(),ne.primitive(i)))return i;if("function"==typeof e.toString&&(i=e.toString(),ne.primitive(i)))return i;throw new TypeError("No default value")},At=Ge.test.bind(Ge),Tt=Ze.test.bind(Ze),Ct=function(){var e=function(t){var i;"string"==typeof(i=arguments.length>0?ne.primitive(t)?t:St(t,"number"):0)&&(i=he.Call(Ue,i),Mt(i)?i=parseInt(C(i,2),2):Lt(i)?i=parseInt(C(i,2),8):(At(i)||Tt(i))&&(i=NaN));var n=this,a=o((function(){return _t.prototype.valueOf.call(n),!0}));return n instanceof e&&!a?new _t(i):_t(i)};return e}();Te(_t,Ct,{}),v(Ct,{NaN:_t.NaN,MAX_VALUE:_t.MAX_VALUE,MIN_VALUE:_t.MIN_VALUE,NEGATIVE_INFINITY:_t.NEGATIVE_INFINITY,POSITIVE_INFINITY:_t.POSITIVE_INFINITY}),Number=Ct,x.redefine(M,"Number",Ct)}var Dt=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:Dt,MIN_SAFE_INTEGER:-Dt,EPSILON:2220446049250313e-31,parseInt:M.parseInt,parseFloat:M.parseFloat,isFinite:K,isInteger:function(e){return K(e)&&he.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&N(e)<=Number.MAX_SAFE_INTEGER},isNaN:Z}),g(Number,"parseInt",M.parseInt,Number.parseInt!==M.parseInt),1===[,1].find((function(){return!0}))&&ae(Array.prototype,"find",it.find),0!==[,1].findIndex((function(){return!0}))&&ae(Array.prototype,"findIndex",it.findIndex);var Et,Ot,Pt,Yt=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),It=function(e,t){u&&Yt(e,t)&&Object.defineProperty(e,t,{enumerable:!1})},jt=function(){for(var e=Number(this),t=arguments.length,i=t-e,n=new Array(i<0?0:i),a=e;a<t;++a)n[a-e]=arguments[a];return n},Nt=function(e){return function(t,i){return t[i]=e[i],t}},Ht=function(e,t){var i,n=a(Object(t));return he.IsCallable(Object.getOwnPropertySymbols)&&(i=p(Object.getOwnPropertySymbols(Object(t)),Yt(t))),f(T(n,i||[]),Nt(t),e)},Ft={assign:function(e,t){var i=he.ToObject(e,"Cannot convert undefined or null to object");return f(he.Call(jt,1,arguments),Ht,i)},is:function(e,t){return he.SameValue(e,t)}},Rt=Object.assign&&Object.preventExtensions&&function(){var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}}();if(Rt&&ae(Object,"assign",Ft.assign),v(Object,Ft),u){var zt={setPrototypeOf:function(e,t){var n,a=function(e,t){return function(e,t){if(!he.TypeIsObject(e))throw new TypeError("cannot set prototype on a non-object");if(null!==t&&!he.TypeIsObject(t))throw new TypeError("can only set prototype to an object or null"+t)}(e,t),i(n,e,t),e};try{n=e.getOwnPropertyDescriptor(e.prototype,t).set,i(n,{},null)}catch(i){if(e.prototype!=={}[t])return;n=function(e){this[t]=e},a.polyfill=a(a({},null),e.prototype)instanceof e}return a}(Object,"__proto__")};v(Object,zt)}Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&(Et=Object.create(null),Ot=Object.getPrototypeOf,Pt=Object.setPrototypeOf,Object.getPrototypeOf=function(e){var t=Ot(e);return t===Et?null:t},Object.setPrototypeOf=function(e,t){return Pt(e,null===t?Et:t)},Object.setPrototypeOf.polyfill=!1);var Bt=!s((function(){return Object.keys("foo")}));if(!Bt){var Wt=Object.keys;ae(Object,"keys",(function(e){return Wt(he.ToObject(e))})),a=Object.keys}var Vt=s((function(){return Object.keys(/a/g)}));if(Vt){var qt=Object.keys;ae(Object,"keys",(function(e){if(ne.regex(e)){var t=[];for(var i in e)z(e,i)&&D(t,i);return t}return qt(e)})),a=Object.keys}if(Object.getOwnPropertyNames){var Xt=!s((function(){return Object.getOwnPropertyNames("foo")}));if(!Xt){var Ut="object"==typeof window?Object.getOwnPropertyNames(window):[],$t=Object.getOwnPropertyNames;ae(Object,"getOwnPropertyNames",(function(e){var t=he.ToObject(e);if("[object Window]"===y(t))try{return $t(t)}catch(e){return T([],Ut)}return $t(t)}))}}if(Object.getOwnPropertyDescriptor){var Gt=!s((function(){return Object.getOwnPropertyDescriptor("foo","bar")}));if(!Gt){var Zt=Object.getOwnPropertyDescriptor;ae(Object,"getOwnPropertyDescriptor",(function(e,t){return Zt(he.ToObject(e),t)}))}}if(Object.seal){var Kt=!s((function(){return Object.seal("foo")}));if(!Kt){var Jt=Object.seal;ae(Object,"seal",(function(e){return he.TypeIsObject(e)?Jt(e):e}))}}if(Object.isSealed){var Qt=!s((function(){return Object.isSealed("foo")}));if(!Qt){var ei=Object.isSealed;ae(Object,"isSealed",(function(e){return!he.TypeIsObject(e)||ei(e)}))}}if(Object.freeze){var ti=!s((function(){return Object.freeze("foo")}));if(!ti){var ii=Object.freeze;ae(Object,"freeze",(function(e){return he.TypeIsObject(e)?ii(e):e}))}}if(Object.isFrozen){var ni=!s((function(){return Object.isFrozen("foo")}));if(!ni){var ai=Object.isFrozen;ae(Object,"isFrozen",(function(e){return!he.TypeIsObject(e)||ai(e)}))}}if(Object.preventExtensions){var ri=!s((function(){return Object.preventExtensions("foo")}));if(!ri){var si=Object.preventExtensions;ae(Object,"preventExtensions",(function(e){return he.TypeIsObject(e)?si(e):e}))}}if(Object.isExtensible){var oi=!s((function(){return Object.isExtensible("foo")}));if(!oi){var li=Object.isExtensible;ae(Object,"isExtensible",(function(e){return!!he.TypeIsObject(e)&&li(e)}))}}if(Object.getPrototypeOf){var ci=!s((function(){return Object.getPrototypeOf("foo")}));if(!ci){var ui=Object.getPrototypeOf;ae(Object,"getPrototypeOf",(function(e){return ui(he.ToObject(e))}))}}var di,hi=u&&((di=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))&&he.IsCallable(di.get));if(u&&!hi){var fi=function(){if(!he.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e};x.getter(RegExp.prototype,"flags",fi)}var pi,mi=u&&o((function(){return"/a/i"===String(new RegExp(/a/g,"i"))})),gi=re&&u&&((pi=/./)[$.match]=!1,RegExp(pi)===pi),vi=o((function(){return"/abc/"===RegExp.prototype.toString.call({source:"abc"})})),yi=vi&&o((function(){return"/a/b"===RegExp.prototype.toString.call({source:"a",flags:"b"})}));if(!vi||!yi){var bi=RegExp.prototype.toString;g(RegExp.prototype,"toString",(function(){var e=he.RequireObjectCoercible(this);return ne.regex(e)?i(bi,e):"/"+ce(e.source)+"/"+ce(e.flags)}),!0),x.preserveToString(RegExp.prototype.toString,bi)}if(u&&(!mi||gi)){var xi=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,_i=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},wi=function(){return this.source},ki=he.IsCallable(_i.get)?_i.get:wi,Mi=RegExp,Li=function e(t,i){var n=he.IsRegExp(t);return this instanceof e||!n||void 0!==i||t.constructor!==e?ne.regex(t)?new e(he.Call(ki,t),void 0===i?he.Call(xi,t):i):(n&&(t.source,void 0===i&&t.flags),new Mi(t,i)):t};Te(Mi,Li,{$input:!0}),RegExp=Li,x.redefine(M,"RegExp",Li)}if(u){var Si={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};h(a(Si),(function(e){e in RegExp&&!(Si[e]in RegExp)&&x.getter(RegExp,Si[e],(function(){return RegExp[e]}))}))}De(RegExp);var Ai=1/Number.EPSILON,Ti=function(e){return e+Ai-Ai},Ci=Math.pow(2,-23),Di=Math.pow(2,127)*(2-Ci),Ei=Math.pow(2,-126),Oi=Math.E,Pi=Math.LOG2E,Yi=Math.LOG10E,Ii=Number.prototype.clz;delete Number.prototype.clz;var ji={acosh:function(e){var t=Number(e);if(Z(t)||e<1)return NaN;if(1===t)return 0;if(t===1/0)return t;var i=1/(t*t);if(t<2)return Q(t-1+R(1-i)*t);var n=t/2;return Q(n+R(1-i)*n-1)+1/Pi},asinh:function(e){var t=Number(e);if(0===t||!L(t))return t;var i=N(t),n=i*i,a=J(t);return i<1?a*Q(i+n/(R(n+1)+1)):a*(Q(i/2+R(1+1/n)*i/2-1)+1/Pi)},atanh:function(e){var t=Number(e);if(0===t)return t;if(-1===t)return-1/0;if(1===t)return 1/0;if(Z(t)||t<-1||t>1)return NaN;var i=N(t);return J(t)*Q(2*i/(1-i))/2},cbrt:function(e){var t=Number(e);if(0===t)return t;var i,n=t<0;return n&&(t=-t),i=t===1/0?1/0:(t/((i=H(F(t)/3))*i)+2*i)/3,n?-i:i},clz32:function(e){var t=Number(e),i=he.ToUint32(t);return 0===i?32:Ii?he.Call(Ii,i):31-j(F(i+.5)*Pi)},cosh:function(e){var t=Number(e);if(0===t)return 1;if(Z(t))return NaN;if(!L(t))return 1/0;var i=H(N(t)-1);return(i+1/(i*Oi*Oi))*(Oi/2)},expm1:function(e){var t=Number(e);if(t===-1/0)return-1;if(!L(t)||0===t)return t;if(N(t)>.5)return H(t)-1;for(var i=t,n=0,a=1;n+i!==n;)n+=i,i*=t/(a+=1);return n},hypot:function(e,t){for(var i=0,n=0,a=0;a<arguments.length;++a){var r=N(Number(arguments[a]));n<r?(i*=n/r*(n/r),i+=1,n=r):i+=r>0?r/n*(r/n):r}return n===1/0?1/0:n*R(i)},log2:function(e){return F(e)*Pi},log10:function(e){return F(e)*Yi},log1p:Q,sign:J,sinh:function(e){var t=Number(e);if(!L(t)||0===t)return t;var i=N(t);if(i<1){var n=Math.expm1(i);return J(t)*n*(1+1/(n+1))/2}var a=H(i-1);return J(t)*(a-1/(a*Oi*Oi))*(Oi/2)},tanh:function(e){var t=Number(e);return Z(t)||0===t?t:t>=20?1:t<=-20?-1:(Math.expm1(t)-Math.expm1(-t))/(H(t)+H(-t))},trunc:function(e){var t=Number(e);return t<0?-j(-t):j(t)},imul:function(e,t){var i=he.ToUint32(e),n=he.ToUint32(t),a=65535&i,r=65535&n;return a*r+((i>>>16&65535)*r+a*(n>>>16&65535)<<16>>>0)|0},fround:function(e){var t=Number(e);if(0===t||t===1/0||t===-1/0||Z(t))return t;var i=J(t),n=N(t);if(n<Ei)return i*Ti(n/Ei/Ci)*Ei*Ci;var a=(1+Ci/Number.EPSILON)*n,r=a-(a-n);return r>Di||Z(r)?i*(1/0):i*r}},Ni=function(e,t,i){return N(1-e/t)/Number.EPSILON<(i||8)};v(Math,ji),g(Math,"sinh",ji.sinh,Math.sinh(710)===1/0),g(Math,"cosh",ji.cosh,Math.cosh(710)===1/0),g(Math,"log1p",ji.log1p,-1e-17!==Math.log1p(-1e-17)),g(Math,"asinh",ji.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),g(Math,"asinh",ji.asinh,Math.asinh(1e300)===1/0),g(Math,"atanh",ji.atanh,0===Math.atanh(1e-300)),g(Math,"tanh",ji.tanh,-2e-17!==Math.tanh(-2e-17)),g(Math,"acosh",ji.acosh,Math.acosh(Number.MAX_VALUE)===1/0),g(Math,"acosh",ji.acosh,!Ni(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),g(Math,"cbrt",ji.cbrt,!Ni(Math.cbrt(1e-300),1e-100)),g(Math,"sinh",ji.sinh,-2e-17!==Math.sinh(-2e-17));var Hi=Math.expm1(10);g(Math,"expm1",ji.expm1,Hi>22025.465794806718||Hi<22025.465794806718),g(Math,"hypot",ji.hypot,Math.hypot(1/0,NaN)!==1/0);var Fi=Math.round,Ri=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(Number.EPSILON/3.99-.5),zi=Ai+1,Bi=2*Ai-1,Wi=[zi,Bi].every((function(e){return Math.round(e)===e}));g(Math,"round",(function(e){var t=j(e);return e-t<.5?t:-1===t?-0:t+1}),!Ri||!Wi),x.preserveToString(Math.round,Fi);var Vi=Math.imul;-5!==Math.imul(4294967295,5)&&(Math.imul=ji.imul,x.preserveToString(Math.imul,Vi)),2!==Math.imul.length&&ae(Math,"imul",(function(e,t){return he.Call(Vi,Math,arguments)}));var qi,Xi,Ui=function(){var e=M.setTimeout;if("function"==typeof e||"object"==typeof e){he.IsPromise=function(e){return!!he.TypeIsObject(e)&&void 0!==e._promise};var t,n=function(e){if(!he.IsConstructor(e))throw new TypeError("Bad promise constructor");var t=this;if(t.resolve=void 0,t.reject=void 0,t.promise=new e((function(e,i){if(void 0!==t.resolve||void 0!==t.reject)throw new TypeError("Bad Promise implementation!");t.resolve=e,t.reject=i})),!he.IsCallable(t.resolve)||!he.IsCallable(t.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&he.IsCallable(window.postMessage)&&(t=function(){var e=[],t="zero-timeout-message";return window.addEventListener("message",(function(i){if(i.source===window&&i.data===t){if(i.stopPropagation(),0===e.length)return;P(e)()}}),!0),function(i){D(e,i),window.postMessage(t,"*")}});var a,r,s,o,l=he.IsCallable(M.setImmediate)?M.setImmediate:"object"==typeof process&&process.nextTick?process.nextTick:(a=M.Promise,(r=a&&a.resolve&&a.resolve())&&function(e){return r.then(e)}||(he.IsCallable(t)?t():function(t){e(t,0)})),c=function(e){return e},u=function(e){throw e},d={},h=function(e,t,i){l((function(){f(e,t,i)}))},f=function(e,t,i){var n,a;if(t===d)return e(i);try{n=e(i),a=t.resolve}catch(e){n=e,a=t.reject}a(n)},p=function(e,t){var i=e._promise,n=i.reactionLength;if(n>0&&(h(i.fulfillReactionHandler0,i.reactionCapability0,t),i.fulfillReactionHandler0=void 0,i.rejectReactions0=void 0,i.reactionCapability0=void 0,n>1))for(var a=1,r=0;a<n;a++,r+=3)h(i[r+0],i[r+2],t),e[r+0]=void 0,e[r+1]=void 0,e[r+2]=void 0;i.result=t,i.state=1,i.reactionLength=0},m=function(e,t){var i=e._promise,n=i.reactionLength;if(n>0&&(h(i.rejectReactionHandler0,i.reactionCapability0,t),i.fulfillReactionHandler0=void 0,i.rejectReactions0=void 0,i.reactionCapability0=void 0,n>1))for(var a=1,r=0;a<n;a++,r+=3)h(i[r+1],i[r+2],t),e[r+0]=void 0,e[r+1]=void 0,e[r+2]=void 0;i.result=t,i.state=2,i.reactionLength=0},g=function(e){var t=!1;return{resolve:function(i){var n;if(!t){if(t=!0,i===e)return m(e,new TypeError("Self resolution"));if(!he.TypeIsObject(i))return p(e,i);try{n=i.then}catch(t){return m(e,t)}if(!he.IsCallable(n))return p(e,i);l((function(){b(e,i,n)}))}},reject:function(i){if(!t)return t=!0,m(e,i)}}},y=function(e,t,n,a){e===o?i(e,t,n,a,d):i(e,t,n,a)},b=function(e,t,i){var n=g(e),a=n.resolve,r=n.reject;try{y(i,t,a,r)}catch(e){r(e)}},x=function(){var e=function(t){if(!(this instanceof e))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!he.IsCallable(t))throw new TypeError("not a valid resolver");var i=Ye(this,e,s,{_promise:{result:void 0,state:0,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),n=g(i),a=n.reject;try{t(n.resolve,a)}catch(e){a(e)}return i};return e}();s=x.prototype;var _=function(e,t,i,n){var a=!1;return function(r){a||(a=!0,t[e]=r,0==--n.count&&(0,i.resolve)(t))}};return v(x,{all:function(e){var t=this;if(!he.TypeIsObject(t))throw new TypeError("Promise is not object");var i,a,r=new n(t);try{return function(e,t,i){for(var n,a,r=e.iterator,s=[],o={count:1},l=0;;){try{if(!1===(n=he.IteratorStep(r))){e.done=!0;break}a=n.value}catch(t){throw e.done=!0,t}s[l]=void 0;var c=t.resolve(a),u=_(l,s,i,o);o.count+=1,y(c.then,c,u,i.reject),l+=1}return 0==--o.count&&(0,i.resolve)(s),i.promise}(a={iterator:i=he.GetIterator(e),done:!1},t,r)}catch(e){var s=e;if(a&&!a.done)try{he.IteratorClose(i,!0)}catch(e){s=e}return(0,r.reject)(s),r.promise}},race:function(e){var t=this;if(!he.TypeIsObject(t))throw new TypeError("Promise is not object");var i,a,r=new n(t);try{return function(e,t,i){for(var n,a,r,s=e.iterator;;){try{if(!1===(n=he.IteratorStep(s))){e.done=!0;break}a=n.value}catch(t){throw e.done=!0,t}r=t.resolve(a),y(r.then,r,i.resolve,i.reject)}return i.promise}(a={iterator:i=he.GetIterator(e),done:!1},t,r)}catch(e){var s=e;if(a&&!a.done)try{he.IteratorClose(i,!0)}catch(e){s=e}return(0,r.reject)(s),r.promise}},reject:function(e){if(!he.TypeIsObject(this))throw new TypeError("Bad promise constructor");var t=new n(this);return(0,t.reject)(e),t.promise},resolve:function(e){var t=this;if(!he.TypeIsObject(t))throw new TypeError("Bad promise constructor");if(he.IsPromise(e)&&e.constructor===t)return e;var i=new n(t);return(0,i.resolve)(e),i.promise}}),v(s,{catch:function(e){return this.then(null,e)},then:function(e,t){var i=this;if(!he.IsPromise(i))throw new TypeError("not a promise");var a,r=he.SpeciesConstructor(i,x),s=arguments.length>2&&arguments[2]===d;a=s&&r===x?d:new n(r);var o,l=he.IsCallable(e)?e:c,f=he.IsCallable(t)?t:u,p=i._promise;if(0===p.state){if(0===p.reactionLength)p.fulfillReactionHandler0=l,p.rejectReactionHandler0=f,p.reactionCapability0=a;else{var m=3*(p.reactionLength-1);p[m+0]=l,p[m+1]=f,p[m+2]=a}p.reactionLength+=1}else if(1===p.state)o=p.result,h(l,a,o);else{if(2!==p.state)throw new TypeError("unexpected Promise state");o=p.result,h(f,a,o)}return a.promise}}),d=new n(x),o=s.then,x}}();if(M.Promise&&(delete M.Promise.accept,delete M.Promise.defer,delete M.Promise.prototype.chain),"function"==typeof Ui){v(M,{Promise:Ui});var $i=w(M.Promise,(function(e){return e.resolve(42).then((function(){}))instanceof e})),Gi=!s((function(){return M.Promise.reject(42).then(null,5).then(null,B)})),Zi=s((function(){return M.Promise.call(3,B)})),Ki=function(e){var t=e.resolve(5);t.constructor={};var i=e.resolve(t);try{i.then(null,B).then(null,B)}catch(e){return!0}return t===i}(M.Promise),Ji=u&&(qi=0,Xi=Object.defineProperty({},"then",{get:function(){qi+=1}}),Promise.resolve(Xi),1===qi),Qi=function e(t){var i=new Promise(t);t(3,(function(){})),this.then=i.then,this.constructor=e};Qi.prototype=Promise.prototype,Qi.all=Promise.all;var en=o((function(){return!!Qi.all([1,2])}));if($i&&Gi&&Zi&&!Ki&&Ji&&!en||(Promise=Ui,ae(M,"Promise",Ui)),1!==Promise.all.length){var tn=Promise.all;ae(Promise,"all",(function(e){return he.Call(tn,this,arguments)}))}if(1!==Promise.race.length){var nn=Promise.race;ae(Promise,"race",(function(e){return he.Call(nn,this,arguments)}))}if(1!==Promise.resolve.length){var an=Promise.resolve;ae(Promise,"resolve",(function(e){return he.Call(an,this,arguments)}))}if(1!==Promise.reject.length){var rn=Promise.reject;ae(Promise,"reject",(function(e){return he.Call(rn,this,arguments)}))}It(Promise,"all"),It(Promise,"race"),It(Promise,"resolve"),It(Promise,"reject"),De(Promise)}var sn,on,ln=function(e){var t=a(f(e,(function(e,t){return e[t]=!0,e}),{}));return e.join(":")===t.join(":")},cn=ln(["z","a","bb"]),un=ln(["z",1,"a","3",2]);if(u){var dn=function(e,t){return t||cn?de(e)?"^"+he.ToString(e):"string"==typeof e?"$"+e:"number"==typeof e?un?e:"n"+e:"boolean"==typeof e?"b"+e:null:null},hn=function(){return Object.create?Object.create(null):{}},fn=function(e,t,a){if(n(a)||ne.string(a))h(a,(function(e){if(!he.TypeIsObject(e))throw new TypeError("Iterator value "+e+" is not an entry object");t.set(e[0],e[1])}));else if(a instanceof e)i(e.prototype.forEach,a,(function(e,i){t.set(i,e)}));else{var r,s;if(!de(a)){if(s=t.set,!he.IsCallable(s))throw new TypeError("bad map");r=he.GetIterator(a)}if(void 0!==r)for(;;){var o=he.IteratorStep(r);if(!1===o)break;var l=o.value;try{if(!he.TypeIsObject(l))throw new TypeError("Iterator value "+l+" is not an entry object");i(s,t,l[0],l[1])}catch(e){throw he.IteratorClose(r,!0),e}}}},pn=function(e,t,a){if(n(a)||ne.string(a))h(a,(function(e){t.add(e)}));else if(a instanceof e)i(e.prototype.forEach,a,(function(e){t.add(e)}));else{var r,s;if(!de(a)){if(s=t.add,!he.IsCallable(s))throw new TypeError("bad set");r=he.GetIterator(a)}if(void 0!==r)for(;;){var o=he.IteratorStep(r);if(!1===o)break;var l=o.value;try{i(s,t,l)}catch(e){throw he.IteratorClose(r,!0),e}}}},mn={Map:function(){var e={},t=function(e,t){this.key=e,this.value=t,this.next=null,this.prev=null};t.prototype.isRemoved=function(){return this.key===e};var n,a=function(e,t){if(!he.TypeIsObject(e)||!function(e){return!!e._es6map}(e))throw new TypeError("Method Map.prototype."+t+" called on incompatible receiver "+he.ToString(e))},r=function(e,t){a(e,"[[MapIterator]]"),this.head=e._head,this.i=this.head,this.kind=t};Ee(r.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var e,t=this.i,i=this.kind,n=this.head;if(void 0===this.i)return Je();for(;t.isRemoved()&&t!==n;)t=t.prev;for(;t.next!==n;)if(!(t=t.next).isRemoved())return e="key"===i?t.key:"value"===i?t.value:[t.key,t.value],this.i=t,Je(e);return this.i=void 0,Je()}});var s=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var i=Ye(this,e,n,{_es6map:!0,_head:null,_map:W?new W:null,_size:0,_storage:hn()}),a=new t(null,null);return a.next=a.prev=a,i._head=a,arguments.length>0&&fn(e,i,arguments[0]),i};return n=s.prototype,x.getter(n,"size",(function(){if(void 0===this._size)throw new TypeError("size method called on incompatible Map");return this._size})),v(n,{get:function(e){var t;a(this,"get");var i=dn(e,!0);if(null!==i)return(t=this._storage[i])?t.value:void 0;if(this._map)return(t=q.call(this._map,e))?t.value:void 0;for(var n=this._head,r=n;(r=r.next)!==n;)if(he.SameValueZero(r.key,e))return r.value},has:function(e){a(this,"has");var t=dn(e,!0);if(null!==t)return void 0!==this._storage[t];if(this._map)return X.call(this._map,e);for(var i=this._head,n=i;(n=n.next)!==i;)if(he.SameValueZero(n.key,e))return!0;return!1},set:function(e,i){a(this,"set");var n,r=this._head,s=r,o=dn(e,!0);if(null!==o){if(void 0!==this._storage[o])return this._storage[o].value=i,this;n=this._storage[o]=new t(e,i),s=r.prev}else this._map&&(X.call(this._map,e)?q.call(this._map,e).value=i:(n=new t(e,i),U.call(this._map,e,n),s=r.prev));for(;(s=s.next)!==r;)if(he.SameValueZero(s.key,e))return s.value=i,this;return n=n||new t(e,i),he.SameValue(-0,e)&&(n.key=0),n.next=this._head,n.prev=this._head.prev,n.prev.next=n,n.next.prev=n,this._size+=1,this},delete:function(t){a(this,"delete");var i=this._head,n=i,r=dn(t,!0);if(null!==r){if(void 0===this._storage[r])return!1;n=this._storage[r].prev,delete this._storage[r]}else if(this._map){if(!X.call(this._map,t))return!1;n=q.call(this._map,t).prev,V.call(this._map,t)}for(;(n=n.next)!==i;)if(he.SameValueZero(n.key,t))return n.key=e,n.value=e,n.prev.next=n.next,n.next.prev=n.prev,this._size-=1,!0;return!1},clear:function(){a(this,"clear"),this._map=W?new W:null,this._size=0,this._storage=hn();for(var t=this._head,i=t,n=i.next;(i=n)!==t;)i.key=e,i.value=e,n=i.next,i.next=i.prev=t;t.next=t.prev=t},keys:function(){return a(this,"keys"),new r(this,"key")},values:function(){return a(this,"values"),new r(this,"value")},entries:function(){return a(this,"entries"),new r(this,"key+value")},forEach:function(e){a(this,"forEach");for(var t=arguments.length>1?arguments[1]:null,n=this.entries(),r=n.next();!r.done;r=n.next())t?i(e,t,r.value[1],r.value[0],this):e(r.value[1],r.value[0],this)}}),Ee(n,n.entries),s}(),Set:function(){var e,t=function(e,t){if(!he.TypeIsObject(e)||!function(e){return e._es6set&&void 0!==e._storage}(e))throw new TypeError("Set.prototype."+t+" called on incompatible receiver "+he.ToString(e))},n=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var i=Ye(this,t,e,{_es6set:!0,"[[SetData]]":null,_storage:hn()});if(!i._es6set)throw new TypeError("bad set");return arguments.length>0&&pn(t,i,arguments[0]),i};e=n.prototype;var r=function(e){if(!e["[[SetData]]"]){var t=new mn.Map;e["[[SetData]]"]=t,h(a(e._storage),(function(e){var i=function(e){var t=e;if("^null"===t)return null;if("^undefined"!==t){var i=t.charAt(0);return"$"===i?C(t,1):"n"===i?+C(t,1):"b"===i?"btrue"===t:+t}}(e);t.set(i,i)})),e["[[SetData]]"]=t}e._storage=null};x.getter(n.prototype,"size",(function(){return t(this,"size"),this._storage?a(this._storage).length:(r(this),this["[[SetData]]"].size)})),v(n.prototype,{has:function(e){var i;return t(this,"has"),this._storage&&null!==(i=dn(e))?!!this._storage[i]:(r(this),this["[[SetData]]"].has(e))},add:function(e){var i;return t(this,"add"),this._storage&&null!==(i=dn(e))?(this._storage[i]=!0,this):(r(this),this["[[SetData]]"].set(e,e),this)},delete:function(e){var i;if(t(this,"delete"),this._storage&&null!==(i=dn(e))){var n=z(this._storage,i);return delete this._storage[i]&&n}return r(this),this["[[SetData]]"].delete(e)},clear:function(){t(this,"clear"),this._storage&&(this._storage=hn()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return t(this,"values"),r(this),new s(this["[[SetData]]"].values())},entries:function(){return t(this,"entries"),r(this),new s(this["[[SetData]]"].entries())},forEach:function(e){t(this,"forEach");var n=arguments.length>1?arguments[1]:null,a=this;r(a),this["[[SetData]]"].forEach((function(t,r){n?i(e,n,r,r,a):e(r,r,a)}))}}),g(n.prototype,"keys",n.prototype.values,!0),Ee(n.prototype,n.prototype.values);var s=function(e){this.it=e};return s.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},Ee(s.prototype),n}()},gn=M.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray((new Set).keys);if(gn&&(M.Set=mn.Set),M.Map||M.Set){var vn=o((function(){return 2===new Map([[1,2]]).get(1)}));vn||(M.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new W;return arguments.length>0&&fn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,M.Map.prototype),t},M.Map.prototype=_(W.prototype),g(M.Map.prototype,"constructor",M.Map,!0),x.preserveToString(M.Map,W));var yn=new Map,bn=((on=new Map([[1,0],[2,0],[3,0],[4,0]])).set(-0,on),on.get(0)===on&&on.get(-0)===on&&on.has(0)&&on.has(-0)),xn=yn.set(1,2)===yn;bn&&xn||ae(Map.prototype,"set",(function(e,t){return i(U,this,0===e?0:e,t),this})),bn||(v(Map.prototype,{get:function(e){return i(q,this,0===e?0:e)},has:function(e){return i(X,this,0===e?0:e)}},!0),x.preserveToString(Map.prototype.get,q),x.preserveToString(Map.prototype.has,X));var _n=new Set,wn=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&((sn=_n).delete(0),sn.add(-0),!sn.has(0)),kn=_n.add(1)===_n;if(!wn||!kn){var Mn=Set.prototype.add;Set.prototype.add=function(e){return i(Mn,this,0===e?0:e),this},x.preserveToString(Set.prototype.add,Mn)}if(!wn){var Ln=Set.prototype.has;Set.prototype.has=function(e){return i(Ln,this,0===e?0:e)},x.preserveToString(Set.prototype.has,Ln);var Sn=Set.prototype.delete;Set.prototype.delete=function(e){return i(Sn,this,0===e?0:e)},x.preserveToString(Set.prototype.delete,Sn)}var An=w(M.Map,(function(e){var t=new e([]);return t.set(42,42),t instanceof e})),Tn=Object.setPrototypeOf&&!An,Cn=function(){try{return!(M.Map()instanceof M.Map)}catch(e){return e instanceof TypeError}}();0===M.Map.length&&!Tn&&Cn||(M.Map=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');var t=new W;return arguments.length>0&&fn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},M.Map.prototype=W.prototype,g(M.Map.prototype,"constructor",M.Map,!0),x.preserveToString(M.Map,W));var Dn=w(M.Set,(function(e){var t=new e([]);return t.add(42,42),t instanceof e})),En=Object.setPrototypeOf&&!Dn,On=function(){try{return!(M.Set()instanceof M.Set)}catch(e){return e instanceof TypeError}}();if(0!==M.Set.length||En||!On){var Pn=M.Set;M.Set=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');var t=new Pn;return arguments.length>0&&pn(e,t,arguments[0]),delete t.constructor,Object.setPrototypeOf(t,e.prototype),t},M.Set.prototype=Pn.prototype,g(M.Set.prototype,"constructor",M.Set,!0),x.preserveToString(M.Set,Pn)}var Yn=new M.Map,In=!o((function(){return Yn.keys().next().done}));if(("function"!=typeof M.Map.prototype.clear||0!==(new M.Set).size||0!==Yn.size||"function"!=typeof M.Map.prototype.keys||"function"!=typeof M.Set.prototype.keys||"function"!=typeof M.Map.prototype.forEach||"function"!=typeof M.Set.prototype.forEach||l(M.Map)||l(M.Set)||"function"!=typeof Yn.keys().next||In||!An)&&v(M,{Map:mn.Map,Set:mn.Set},!0),M.Set.prototype.keys!==M.Set.prototype.values&&g(M.Set.prototype,"keys",M.Set.prototype.values,!0),Ee(Object.getPrototypeOf((new M.Map).keys())),Ee(Object.getPrototypeOf((new M.Set).keys())),d&&"has"!==M.Set.prototype.has.name){var jn=M.Set.prototype.has;ae(M.Set.prototype,"has",(function(e){return i(jn,this,e)}))}}v(M,mn),De(M.Map),De(M.Set)}var Nn=function(e){if(!he.TypeIsObject(e))throw new TypeError("target must be an object")},Hn={apply:function(){return he.Call(he.Call,null,arguments)},construct:function(e,t){if(!he.IsConstructor(e))throw new TypeError("First argument must be a constructor.");var i=arguments.length>2?arguments[2]:e;if(!he.IsConstructor(i))throw new TypeError("new.target must be a constructor.");return he.Construct(e,t,i,"internal")},deleteProperty:function(e,t){if(Nn(e),u){var i=Object.getOwnPropertyDescriptor(e,t);if(i&&!i.configurable)return!1}return delete e[t]},has:function(e,t){return Nn(e),t in e}};Object.getOwnPropertyNames&&Object.assign(Hn,{ownKeys:function(e){Nn(e);var t=Object.getOwnPropertyNames(e);return he.IsCallable(Object.getOwnPropertySymbols)&&E(t,Object.getOwnPropertySymbols(e)),t}});var Fn=function(e){return!s(e)};if(Object.preventExtensions&&Object.assign(Hn,{isExtensible:function(e){return Nn(e),Object.isExtensible(e)},preventExtensions:function(e){return Nn(e),Fn((function(){return Object.preventExtensions(e)}))}}),u){var Rn=function(e,t,i){var n=Object.getOwnPropertyDescriptor(e,t);if(!n){var a=Object.getPrototypeOf(e);if(null===a)return;return Rn(a,t,i)}return"value"in n?n.value:n.get?he.Call(n.get,i):void 0},zn=function(e,t,n,a){var r=Object.getOwnPropertyDescriptor(e,t);if(!r){var s=Object.getPrototypeOf(e);if(null!==s)return zn(s,t,n,a);r={value:void 0,writable:!0,enumerable:!0,configurable:!0}}return"value"in r?!!r.writable&&(!!he.TypeIsObject(a)&&(Object.getOwnPropertyDescriptor(a,t)?le.defineProperty(a,t,{value:n}):le.defineProperty(a,t,{value:n,writable:!0,enumerable:!0,configurable:!0}))):!!r.set&&(i(r.set,a,n),!0)};Object.assign(Hn,{defineProperty:function(e,t,i){return Nn(e),Fn((function(){return Object.defineProperty(e,t,i)}))},getOwnPropertyDescriptor:function(e,t){return Nn(e),Object.getOwnPropertyDescriptor(e,t)},get:function(e,t){Nn(e);var i=arguments.length>2?arguments[2]:e;return Rn(e,t,i)},set:function(e,t,i){Nn(e);var n=arguments.length>3?arguments[3]:e;return zn(e,t,i,n)}})}if(Object.getPrototypeOf){var Bn=Object.getPrototypeOf;Hn.getPrototypeOf=function(e){return Nn(e),Bn(e)}}if(Object.setPrototypeOf&&Hn.getPrototypeOf){var Wn=function(e,t){for(var i=t;i;){if(e===i)return!0;i=Hn.getPrototypeOf(i)}return!1};Object.assign(Hn,{setPrototypeOf:function(e,t){if(Nn(e),null!==t&&!he.TypeIsObject(t))throw new TypeError("proto must be an object or null");return t===le.getPrototypeOf(e)||!(le.isExtensible&&!le.isExtensible(e))&&(!Wn(e,t)&&(Object.setPrototypeOf(e,t),!0))}})}var Vn=function(e,t){he.IsCallable(M.Reflect[e])?o((function(){return M.Reflect[e](1),M.Reflect[e](NaN),M.Reflect[e](!0),!0}))&&ae(M.Reflect,e,t):g(M.Reflect,e,t)};Object.keys(Hn).forEach((function(e){Vn(e,Hn[e])}));var qn=M.Reflect.getPrototypeOf;if(d&&qn&&"getPrototypeOf"!==qn.name&&ae(M.Reflect,"getPrototypeOf",(function(e){return i(qn,M.Reflect,e)})),M.Reflect.setPrototypeOf&&o((function(){return M.Reflect.setPrototypeOf(1,{}),!0}))&&ae(M.Reflect,"setPrototypeOf",Hn.setPrototypeOf),M.Reflect.defineProperty&&(o((function(){var e=!M.Reflect.defineProperty(1,"test",{value:1}),t="function"!=typeof Object.preventExtensions||!M.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return e&&t}))||ae(M.Reflect,"defineProperty",Hn.defineProperty)),M.Reflect.construct&&(o((function(){var e=function(){};return M.Reflect.construct((function(){}),[],e)instanceof e}))||ae(M.Reflect,"construct",Hn.construct)),"Invalid Date"!==String(new Date(NaN))){var Xn=Date.prototype.toString,Un=function(){var e=+this;return e!=e?"Invalid Date":he.Call(Xn,this)};ae(Date.prototype,"toString",Un)}var $n={anchor:function(e){return he.CreateHTML(this,"a","name",e)},big:function(){return he.CreateHTML(this,"big","","")},blink:function(){return he.CreateHTML(this,"blink","","")},bold:function(){return he.CreateHTML(this,"b","","")},fixed:function(){return he.CreateHTML(this,"tt","","")},fontcolor:function(e){return he.CreateHTML(this,"font","color",e)},fontsize:function(e){return he.CreateHTML(this,"font","size",e)},italics:function(){return he.CreateHTML(this,"i","","")},link:function(e){return he.CreateHTML(this,"a","href",e)},small:function(){return he.CreateHTML(this,"small","","")},strike:function(){return he.CreateHTML(this,"strike","","")},sub:function(){return he.CreateHTML(this,"sub","","")},sup:function(){return he.CreateHTML(this,"sup","","")}};h(Object.keys($n),(function(e){var t=String.prototype[e],n=!1;if(he.IsCallable(t)){var a=i(t,"",' " '),r=T([],a.match(/"/g)).length;n=a!==a.toLowerCase()||r>2}else n=!0;n&&ae(String.prototype,e,$n[e])}));var Gn=function(){if(!re)return!1;var e="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!e)return!1;if(void 0!==e($()))return!0;if("[null]"!==e([$()]))return!0;var t={a:$()};return t[$()]=!0,"{}"!==e(t)}(),Zn=o((function(){return!re||"{}"===JSON.stringify(Object($()))&&"[{}]"===JSON.stringify([Object($())])}));if(Gn||!Zn){var Kn=JSON.stringify;ae(JSON,"stringify",(function(e){if("symbol"!=typeof e){var t;arguments.length>1&&(t=arguments[1]);var a=[e];if(n(t))a.push(t);else{var r=he.IsCallable(t)?t:null,s=function(e,t){var n=r?i(r,this,e,t):t;if("symbol"!=typeof n)return ne.symbol(n)?Nt({})(n):n};a.push(s)}return arguments.length>2&&a.push(arguments[2]),Kn.apply(this,a)}}))}return M})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FormValidation={})}(this,(function(e){"use strict";function t(e){for(var t=e.length,i=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],n=0,a=0;t--;)a+=i[n][parseInt(e.charAt(t),10)],n=1-n;return a%10==0&&a>0}function i(e){for(var t=e.length,i=5,n=0;n<t;n++)i=(2*(i||10)%11+parseInt(e.charAt(n),10))%10;return 1===i}function n(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=e.length,n=t.length,a=Math.floor(n/2),r=0;r<i;r++)a=(2*(a||n)%(n+1)+t.indexOf(e.charAt(r)))%n;return 1===a}function a(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],i=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.reverse(),a=0,r=0;r<n.length;r++)a=t[a][i[r%8][n[r]]];return 0===a}var r={luhn:t,mod11And10:i,mod37And36:n,verhoeff:a};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function m(e){var t=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(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return p(this,i)}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function v(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return g(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){o=!0,r=e},f:function(){try{s||null==i.return||i.return()}finally{if(o)throw r}}}}function y(e,t,i,n){var a=(i.getAttribute("type")||"").toLowerCase(),r=i.tagName.toLowerCase();if("textarea"===r)return i.value;if("select"===r){var s=i,o=s.selectedIndex;return o>=0?s.options.item(o).value:""}if("input"===r){if("radio"===a||"checkbox"===a){var l=n.filter((function(e){return e.checked})).length;return 0===l?"":l+""}return i.value}return""}function b(e,t){var i=Array.isArray(t)?t:[t],n=e;return i.forEach((function(e){n=n.replace("%s",e)})),n}function x(e,t){if("function"==typeof e)return e.apply(this,t);if("string"==typeof e){var i=e;"()"===i.substring(i.length-2)&&(i=i.substring(0,i.length-2));var n,a=i.split("."),r=a.pop(),s=window,o=v(a);try{for(o.s();!(n=o.n()).done;){s=s[n.value]}}catch(e){o.e(e)}finally{o.f()}return void 0===s[r]?null:s[r].apply(this,t)}}var _={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DANKORT:{length:[16],prefix:["5019"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},ELO:{length:[16],prefix:["4011","4312","4389","4514","4573","4576","5041","5066","5067","509","6277","6362","6363","650","6516","6550"]},FORBRUGSFORENINGEN:{length:[16],prefix:["600722"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","5868","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]},VISA_ELECTRON:{length:[16],prefix:["4026","417500","4405","4508","4844","4913","4917"]}};function w(e,t,i,n){if(isNaN(e)||isNaN(t)||isNaN(i))return!1;if(e<1e3||e>9999||t<=0||t>12)return!1;if(i<=0||i>[31,e%400==0||e%100!=0&&e%4==0?29:28,31,30,31,30,31,31,30,31,30,31][t-1])return!1;if(!0===n){var a=new Date,r=a.getFullYear(),s=a.getMonth(),o=a.getDate();return e<r||e===r&&t-1<s||e===r&&t-1===s&&i<o}return!0}function k(e,t){return new Promise((function(i,n){var a=Object.assign({},{crossDomain:!1,headers:{},method:"GET",params:{}},t),r=Object.keys(a.params).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(a.params[e]))})).join("&"),s=e.indexOf("?"),o="GET"===a.method?"".concat(e).concat(s?"?":"&").concat(r):e;if(a.crossDomain){var l=document.createElement("script"),c="___fetch".concat(Date.now(),"___");window[c]=function(e){delete window[c],i(e)},l.src="".concat(o).concat(s?"&":"?","callback=").concat(c),l.async=!0,l.addEventListener("load",(function(){l.parentNode.removeChild(l)})),l.addEventListener("error",(function(){return n})),document.head.appendChild(l)}else{var u=new XMLHttpRequest;u.open(a.method,o),u.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===a.method&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Object.keys(a.headers).forEach((function(e){return u.setRequestHeader(e,a.headers[e])})),u.addEventListener("load",(function(){i(JSON.parse(this.responseText))})),u.addEventListener("error",(function(){return n})),u.send(function(e){return Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}(a.params))}}))}function M(e,t){if(!/^\d{13}$/.test(e))return!1;var i=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),a=parseInt(e.substr(7,2),10),r=parseInt(e.substr(12,1),10);if(i>31||n>12)return!1;for(var s=0,o=0;o<6;o++)s+=(7-o)*(parseInt(e.charAt(o),10)+parseInt(e.charAt(o+6),10));if(10!==(s=11-s%11)&&11!==s||(s=0),s!==r)return!1;switch(t.toUpperCase()){case"BA":return 10<=a&&a<=19;case"MK":return 41<=a&&a<=49;case"ME":return 20<=a&&a<=29;case"RS":return 70<=a&&a<=99;case"SI":return 50<=a&&a<=59;default:return!0}}function L(e){if(!/^\d{9,10}$/.test(e))return{meta:{},valid:!1};var t=1900+parseInt(e.substr(0,2),10),i=parseInt(e.substr(2,2),10)%50%20,n=parseInt(e.substr(4,2),10);if(9===e.length){if(t>=1980&&(t-=100),t>1953)return{meta:{},valid:!1}}else t<1954&&(t+=100);if(!w(t,i,n))return{meta:{},valid:!1};if(10===e.length){var a=parseInt(e.substr(0,9),10)%11;return t<1985&&(a%=10),{meta:{},valid:"".concat(a)===e.substr(9,1)}}return{meta:{},valid:!0}}function S(e){if(!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.charAt(0),10),i=parseInt(e.substr(1,2),10);if(!w(i=100*(t%2==0?17+t/2:17+(t+1)/2)+i,parseInt(e.substr(3,2),10),parseInt(e.substr(5,2),10),!0))return{meta:{},valid:!1};var n,a=[1,2,3,4,5,6,7,8,9,1],r=0;for(n=0;n<10;n++)r+=parseInt(e.charAt(n),10)*a[n];if(10!==(r%=11))return{meta:{},valid:"".concat(r)===e.charAt(10)};for(r=0,a=[3,4,5,6,7,8,9,1,2,3],n=0;n<10;n++)r+=parseInt(e.charAt(n),10)*a[n];return 10===(r%=11)&&(r=0),{meta:{},valid:"".concat(r)===e.charAt(10)}}function A(e){if(e.length<8)return{meta:{},valid:!1};var t=e;if(8===t.length&&(t="0".concat(t)),!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return{meta:{},valid:!1};if(t=t.replace(/\./g,""),0===parseInt(t,10))return{meta:{},valid:!1};for(var i=0,n=t.length,a=0;a<n-1;a++)i+=(9-a)*parseInt(t.charAt(a),10);return 10===(i%=11)&&(i=0),{meta:{},valid:"".concat(i)===t.charAt(n-1)}}function T(e){var t=e;if(/^(GR|EL)[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};8===t.length&&(t="0".concat(t));for(var i=[256,128,64,32,16,8,4,2],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return{meta:{},valid:"".concat(n=n%11%10)===t.substr(8,1)}}function C(e){for(var t=function(e){return e.split("").map((function(e){var t=e.charCodeAt(0);return t>=65&&t<=90?t-55:e})).join("").split("").map((function(e){return parseInt(e,10)}))}(e),i=0,n=t.length,a=0;a<n-1;++a)i=10*(i+t[a])%97;return(i+=t[n-1])%97==1}var D={between:function(){var e=function(e){return parseFloat("".concat(e).replace(",","."))};return{validate:function(t){var i=t.value;if(""===i)return{valid:!0};var n=Object.assign({},{inclusive:!0,message:""},t.options),a=e(n.min),r=e(n.max);return n.inclusive?{message:b(t.l10n?n.message||t.l10n.between.default:n.message,["".concat(a),"".concat(r)]),valid:parseFloat(i)>=a&&parseFloat(i)<=r}:{message:b(t.l10n?n.message||t.l10n.between.notInclusive:n.message,["".concat(a),"".concat(r)]),valid:parseFloat(i)>a&&parseFloat(i)<r}}}},blank:function(){return{validate:function(e){return{valid:!0}}}},callback:function(){return{validate:function(e){var t=x(e.options.callback,[e]);return"boolean"==typeof t?{valid:t}:t}}},choice:function(){return{validate:function(e){var t="select"===e.element.tagName.toLowerCase()?e.element.querySelectorAll("option:checked").length:e.elements.filter((function(e){return e.checked})).length,i=e.options.min?"".concat(e.options.min):"",n=e.options.max?"".concat(e.options.max):"",a=e.l10n?e.options.message||e.l10n.choice.default:e.options.message,r=!(i&&t<parseInt(i,10)||n&&t>parseInt(n,10));switch(!0){case!!i&&!!n:a=b(e.l10n?e.l10n.choice.between:e.options.message,[i,n]);break;case!!i:a=b(e.l10n?e.l10n.choice.more:e.options.message,i);break;case!!n:a=b(e.l10n?e.l10n.choice.less:e.options.message,n)}return{message:a,valid:r}}}},creditCard:function(){return{validate:function(e){if(""===e.value)return{meta:{type:null},valid:!0};if(/[^0-9-\s]+/.test(e.value))return{meta:{type:null},valid:!1};var i=e.value.replace(/\D/g,"");if(!t(i))return{meta:{type:null},valid:!1};for(var n=0,a=Object.keys(_);n<a.length;n++){var r=a[n];for(var s in _[r].prefix)if(e.value.substr(0,_[r].prefix[s].length)===_[r].prefix[s]&&-1!==_[r].length.indexOf(i.length))return{meta:{type:r},valid:!0}}return{meta:{type:null},valid:!1}}}},date:function(){var e=function(e,t,i){var n=t.indexOf("YYYY"),a=t.indexOf("MM"),r=t.indexOf("DD");if(-1===n||-1===a||-1===r)return null;var s=e.split(" "),o=s[0].split(i);if(o.length<3)return null;var l=new Date(parseInt(o[n],10),parseInt(o[a],10)-1,parseInt(o[r],10));if(s.length>1){var c=s[1].split(":");l.setHours(c.length>0?parseInt(c[0],10):0),l.setMinutes(c.length>1?parseInt(c[1],10):0),l.setSeconds(c.length>2?parseInt(c[2],10):0)}return l},t=function(e,t){var i=t.replace(/Y/g,"y").replace(/M/g,"m").replace(/D/g,"d").replace(/:m/g,":M").replace(/:mm/g,":MM").replace(/:S/,":s").replace(/:SS/,":ss"),n=e.getDate(),a=n<10?"0".concat(n):n,r=e.getMonth()+1,s=r<10?"0".concat(r):r,o="".concat(e.getFullYear()).substr(2),l=e.getFullYear(),c=e.getHours()%12||12,u=c<10?"0".concat(c):c,d=e.getHours(),h=d<10?"0".concat(d):d,f=e.getMinutes(),p=f<10?"0".concat(f):f,m=e.getSeconds(),g=m<10?"0".concat(m):m,v={H:"".concat(d),HH:"".concat(h),M:"".concat(f),MM:"".concat(p),d:"".concat(n),dd:"".concat(a),h:"".concat(c),hh:"".concat(u),m:"".concat(r),mm:"".concat(s),s:"".concat(m),ss:"".concat(g),yy:"".concat(o),yyyy:"".concat(l)};return i.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMs])\1?|"[^"]*"|'[^']*'/g,(function(e){return v[e]?v[e]:e.slice(1,e.length-1)}))};return{validate:function(i){if(""===i.value)return{meta:{date:null},valid:!0};var n=Object.assign({},{format:i.element&&"date"===i.element.getAttribute("type")?"YYYY-MM-DD":"MM/DD/YYYY",message:""},i.options),a=i.l10n?i.l10n.date.default:n.message,r={message:"".concat(a),meta:{date:null},valid:!1},s=n.format.split(" "),o=s.length>1?s[1]:null,l=s.length>2?s[2]:null,c=i.value.split(" "),u=c[0],d=c.length>1?c[1]:null;if(s.length!==c.length)return r;var h=n.separator||(-1!==u.indexOf("/")?"/":-1!==u.indexOf("-")?"-":-1!==u.indexOf(".")?".":"/");if(null===h||-1===u.indexOf(h))return r;var f=u.split(h),p=s[0].split(h);if(f.length!==p.length)return r;var m=f[p.indexOf("YYYY")],g=f[p.indexOf("MM")],v=f[p.indexOf("DD")];if(!/^\d+$/.test(m)||!/^\d+$/.test(g)||!/^\d+$/.test(v)||m.length>4||g.length>2||v.length>2)return r;var y=parseInt(m,10),x=parseInt(g,10),_=parseInt(v,10);if(!w(y,x,_))return r;var k=new Date(y,x-1,_);if(o){var M=d.split(":");if(o.split(":").length!==M.length)return r;var L=M.length>0?M[0].length<=2&&/^\d+$/.test(M[0])?parseInt(M[0],10):-1:0,S=M.length>1?M[1].length<=2&&/^\d+$/.test(M[1])?parseInt(M[1],10):-1:0,A=M.length>2?M[2].length<=2&&/^\d+$/.test(M[2])?parseInt(M[2],10):-1:0;if(-1===L||-1===S||-1===A)return r;if(A<0||A>60)return r;if(L<0||L>=24||l&&L>12)return r;if(S<0||S>59)return r;k.setHours(L),k.setMinutes(S),k.setSeconds(A)}var T="function"==typeof n.min?n.min():n.min,C=T instanceof Date?T:T?e(T,p,h):k,D="function"==typeof n.max?n.max():n.max,E=D instanceof Date?D:D?e(D,p,h):k,O=T instanceof Date?t(C,n.format):T,P=D instanceof Date?t(E,n.format):D;switch(!0){case!!O&&!P:return{message:b(i.l10n?i.l10n.date.min:a,O),meta:{date:k},valid:k.getTime()>=C.getTime()};case!!P&&!O:return{message:b(i.l10n?i.l10n.date.max:a,P),meta:{date:k},valid:k.getTime()<=E.getTime()};case!!P&&!!O:return{message:b(i.l10n?i.l10n.date.range:a,[O,P]),meta:{date:k},valid:k.getTime()<=E.getTime()&&k.getTime()>=C.getTime()};default:return{message:"".concat(a),meta:{date:k},valid:!0}}}}},different:function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value!==t}}}},digits:function(){return{validate:function(e){return{valid:""===e.value||/^\d+$/.test(e.value)}}}},emailAddress:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{multiple:!1,separator:/[,;]/},e.options),i=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;if(!0===t.multiple||"true"==="".concat(t.multiple)){for(var n=t.separator||/[,;]/,a=function(e,t){for(var i=e.split(/"/),n=i.length,a=[],r="",s=0;s<n;s++)if(s%2==0){var o=i[s].split(t),l=o.length;if(1===l)r+=o[0];else{a.push(r+o[0]);for(var c=1;c<l-1;c++)a.push(o[c]);r=o[l-1]}}else r+='"'+i[s],s<n-1&&(r+='"');return a.push(r),a}(e.value,n),r=a.length,s=0;s<r;s++)if(!i.test(a[s]))return{valid:!1};return{valid:!0}}return{valid:i.test(e.value)}}}},file:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t,i=e.options.extension?e.options.extension.toLowerCase().split(","):null,n=e.options.type?e.options.type.toLowerCase().split(","):null;if(window.File&&window.FileList&&window.FileReader){var a=e.element.files,r=a.length,s=0;if(e.options.maxFiles&&r>parseInt("".concat(e.options.maxFiles),10))return{meta:{error:"INVALID_MAX_FILES"},valid:!1};if(e.options.minFiles&&r<parseInt("".concat(e.options.minFiles),10))return{meta:{error:"INVALID_MIN_FILES"},valid:!1};for(var o={},l=0;l<r;l++){if(s+=a[l].size,o={ext:t=a[l].name.substr(a[l].name.lastIndexOf(".")+1),file:a[l],size:a[l].size,type:a[l].type},e.options.minSize&&a[l].size<parseInt("".concat(e.options.minSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_SIZE"},o),valid:!1};if(e.options.maxSize&&a[l].size>parseInt("".concat(e.options.maxSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_SIZE"},o),valid:!1};if(i&&-1===i.indexOf(t.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_EXTENSION"},o),valid:!1};if(a[l].type&&n&&-1===n.indexOf(a[l].type.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_TYPE"},o),valid:!1}}if(e.options.maxTotalSize&&s>parseInt("".concat(e.options.maxTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_TOTAL_SIZE",totalSize:s},o),valid:!1};if(e.options.minTotalSize&&s<parseInt("".concat(e.options.minTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_TOTAL_SIZE",totalSize:s},o),valid:!1}}else if(t=e.value.substr(e.value.lastIndexOf(".")+1),i&&-1===i.indexOf(t.toLowerCase()))return{meta:{error:"INVALID_EXTENSION",ext:t},valid:!1};return{valid:!0}}}},greaterThan:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{inclusive:!0,message:""},e.options),i=parseFloat("".concat(t.min).replace(",","."));return t.inclusive?{message:b(e.l10n?t.message||e.l10n.greaterThan.default:t.message,"".concat(i)),valid:parseFloat(e.value)>=i}:{message:b(e.l10n?t.message||e.l10n.greaterThan.notInclusive:t.message,"".concat(i)),valid:parseFloat(e.value)>i}}}},identical:function(){return{validate:function(e){var t="function"==typeof e.options.compare?e.options.compare.call(this):e.options.compare;return{valid:""===t||e.value===t}}}},integer:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e.options),i="."===t.decimalSeparator?"\\.":t.decimalSeparator,n="."===t.thousandsSeparator?"\\.":t.thousandsSeparator,a=new RegExp("^-?[0-9]{1,3}(".concat(n,"[0-9]{3})*(").concat(i,"[0-9]+)?$")),r=new RegExp(n,"g"),s="".concat(e.value);if(!a.test(s))return{valid:!1};n&&(s=s.replace(r,"")),i&&(s=s.replace(i,"."));var o=parseFloat(s);return{valid:!isNaN(o)&&isFinite(o)&&Math.floor(o)===o}}}},ip:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{ipv4:!0,ipv6:!0},e.options),i=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[1-2][0-9]|3[0-2]))?$/,n=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*(\/(\d|\d\d|1[0-1]\d|12[0-8]))?$/;switch(!0){case t.ipv4&&!t.ipv6:return{message:e.l10n?t.message||e.l10n.ip.ipv4:t.message,valid:i.test(e.value)};case!t.ipv4&&t.ipv6:return{message:e.l10n?t.message||e.l10n.ip.ipv6:t.message,valid:n.test(e.value)};case t.ipv4&&t.ipv6:default:return{message:e.l10n?t.message||e.l10n.ip.default:t.message,valid:i.test(e.value)||n.test(e.value)}}}}},lessThan:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{inclusive:!0,message:""},e.options),i=parseFloat("".concat(t.max).replace(",","."));return t.inclusive?{message:b(e.l10n?t.message||e.l10n.lessThan.default:t.message,"".concat(i)),valid:parseFloat(e.value)<=i}:{message:b(e.l10n?t.message||e.l10n.lessThan.notInclusive:t.message,"".concat(i)),valid:parseFloat(e.value)<i}}}},notEmpty:function(){return{validate:function(e){var t=!!e.options&&!!e.options.trim,i=e.value;return{valid:!t&&""!==i||t&&""!==i&&""!==i.trim()}}}},numeric:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},e.options),i="".concat(e.value);i.substr(0,1)===t.decimalSeparator?i="0".concat(t.decimalSeparator).concat(i.substr(1)):i.substr(0,2)==="-".concat(t.decimalSeparator)&&(i="-0".concat(t.decimalSeparator).concat(i.substr(2)));var n="."===t.decimalSeparator?"\\.":t.decimalSeparator,a="."===t.thousandsSeparator?"\\.":t.thousandsSeparator,r=new RegExp("^-?[0-9]{1,3}(".concat(a,"[0-9]{3})*(").concat(n,"[0-9]+)?$")),s=new RegExp(a,"g");if(!r.test(i))return{valid:!1};a&&(i=i.replace(s,"")),n&&(i=i.replace(n,"."));var o=parseFloat(i);return{valid:!isNaN(o)&&isFinite(o)}}}},promise:function(){return{validate:function(e){return x(e.options.promise,[e])}}},regexp:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.options.regexp;if(t instanceof RegExp)return{valid:t.test(e.value)};var i=t.toString();return{valid:(e.options.flags?new RegExp(i,e.options.flags):new RegExp(i)).test(e.value)}}}},remote:function(){var e={crossDomain:!1,data:{},headers:{},method:"GET",validKey:"valid"};return{validate:function(t){if(""===t.value)return Promise.resolve({valid:!0});var i=Object.assign({},e,t.options),n=i.data;return"function"==typeof i.data&&(n=i.data.call(this,t)),"string"==typeof n&&(n=JSON.parse(n)),n[i.name||t.field]=t.value,k("function"==typeof i.url?i.url.call(this,t):i.url,{crossDomain:i.crossDomain,headers:i.headers,method:i.method,params:n}).then((function(e){return Promise.resolve({message:e.message,meta:e,valid:"true"==="".concat(e[i.validKey])})})).catch((function(e){return Promise.reject({valid:!1})}))}}},stringCase:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{case:"lower"},e.options),i=(t.case||"lower").toLowerCase();return{message:t.message||(e.l10n?"upper"===i?e.l10n.stringCase.upper:e.l10n.stringCase.default:t.message),valid:"upper"===i?e.value===e.value.toUpperCase():e.value===e.value.toLowerCase()}}}},stringLength:function(){return{validate:function(e){var t=Object.assign({},{message:"",trim:!1,utf8Bytes:!1},e.options),i=!0===t.trim||"true"==="".concat(t.trim)?e.value.trim():e.value;if(""===i)return{valid:!0};var n=t.min?"".concat(t.min):"",a=t.max?"".concat(t.max):"",r=t.utf8Bytes?function(e){for(var t=e.length,i=e.length-1;i>=0;i--){var n=e.charCodeAt(i);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&i--}return"".concat(t)}(i):i.length,s=!0,o=e.l10n?t.message||e.l10n.stringLength.default:t.message;switch((n&&r<parseInt(n,10)||a&&r>parseInt(a,10))&&(s=!1),!0){case!!n&&!!a:o=b(e.l10n?t.message||e.l10n.stringLength.between:t.message,[n,a]);break;case!!n:o=b(e.l10n?t.message||e.l10n.stringLength.more:t.message,"".concat(parseInt(n,10)));break;case!!a:o=b(e.l10n?t.message||e.l10n.stringLength.less:t.message,"".concat(parseInt(a,10)))}return{message:o,valid:s}}}},uri:function(){var e={allowEmptyProtocol:!1,allowLocal:!1,protocol:"http, https, ftp"};return{validate:function(t){if(""===t.value)return{valid:!0};var i=Object.assign({},e,t.options),n=!0===i.allowLocal||"true"==="".concat(i.allowLocal),a=!0===i.allowEmptyProtocol||"true"==="".concat(i.allowEmptyProtocol),r=i.protocol.split(",").join("|").replace(/\s/g,"");return{valid:new RegExp("^(?:(?:"+r+")://)"+(a?"?":"")+"(?:\\S+(?::\\S*)?@)?(?:"+(n?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(n?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(t.value)}}}},base64:function(){return{validate:function(e){return{valid:""===e.value||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(e.value)}}}},bic:function(){return{validate:function(e){return{valid:""===e.value||/^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(e.value)}}}},color:function(){var e=["hex","rgb","rgba","hsl","hsla","keyword"],t=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],i=function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},n=function(e){return/^hsl\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(e)},a=function(e){return/^hsla\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)},r=function(e){return t.indexOf(e)>=0},s=function(e){return/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/.test(e)||/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(e)},o=function(e){return/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)||/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(e)};return{validate:function(t){if(""===t.value)return{valid:!0};var l,c=v("string"==typeof t.options.type?t.options.type.toString().replace(/s/g,"").split(","):t.options.type||e);try{for(c.s();!(l=c.n()).done;){var u=l.value.toLowerCase();if(-1!==e.indexOf(u)){var d=!0;switch(u){case"hex":d=i(t.value);break;case"hsl":d=n(t.value);break;case"hsla":d=a(t.value);break;case"keyword":d=r(t.value);break;case"rgb":d=s(t.value);break;case"rgba":d=o(t.value)}if(d)return{valid:!0}}}}catch(e){c.e(e)}finally{c.f()}return{valid:!1}}}},cusip:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!/^[0123456789ABCDEFGHJKLMNPQRSTUVWXYZ*@#]{9}$/.test(t))return{valid:!1};var i=t.split(""),n=i.pop(),a=i.map((function(e){var t=e.charCodeAt(0);switch(!0){case"*"===e:return 36;case"@"===e:return 37;case"#"===e:return 38;case t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0):return t-"A".charCodeAt(0)+10;default:return parseInt(e,10)}})),r=a.map((function(e,t){var i=t%2==0?e:2*e;return Math.floor(i/10)+i%10})).reduce((function(e,t){return e+t}),0);return{valid:n==="".concat((10-r%10)%10)}}}},ean:function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^(\d{8}|\d{12}|\d{13}|\d{14})$/.test(e.value))return{valid:!1};for(var t=e.value.length,i=0,n=8===t?[3,1]:[1,3],a=0;a<t-1;a++)i+=parseInt(e.value.charAt(a),10)*n[a%2];return{valid:"".concat(i=(10-i%10)%10)===e.value.charAt(t-1)}}}},ein:function(){var e={ANDOVER:["10","12"],ATLANTA:["60","67"],AUSTIN:["50","53"],BROOKHAVEN:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],CINCINNATI:["30","32","35","36","37","38","61"],FRESNO:["15","24"],INTERNET:["20","26","27","45","46","47"],KANSAS_CITY:["40","44"],MEMPHIS:["94","95"],OGDEN:["80","90"],PHILADELPHIA:["33","39","41","42","43","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],SMALL_BUSINESS_ADMINISTRATION:["31"]};return{validate:function(t){if(""===t.value)return{meta:null,valid:!0};if(!/^[0-9]{2}-?[0-9]{7}$/.test(t.value))return{meta:null,valid:!1};var i="".concat(t.value.substr(0,2));for(var n in e)if(-1!==e[n].indexOf(i))return{meta:{campus:n},valid:!0};return{meta:null,valid:!1}}}},grid:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();return/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(t)?("GRID:"===(t=t.replace(/\s/g,"").replace(/-/g,"")).substr(0,5)&&(t=t.substr(5)),{valid:n(t)}):{valid:!1}}}},hex:function(){return{validate:function(e){return{valid:""===e.value||/^[0-9a-fA-F]+$/.test(e.value)}}}},iban:function(){var e={AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9][0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TL:"TL38[0-9]{3}[0-9]{14}[0-9]{2}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}",XK:"XK[0-9]{2}[0-9]{4}[0-9]{10}[0-9]{2}"},t=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GI","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MT","NL","NO","PL","PT","RO","SE","SI","SK","SM"];return{validate:function(i){if(""===i.value)return{valid:!0};var n=Object.assign({},{message:""},i.options),a=i.value.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),r=n.country||a.substr(0,2);if(!e[r])return{message:n.message,valid:!1};if(void 0!==n.sepa){var s=-1!==t.indexOf(r);if(("true"===n.sepa||!0===n.sepa)&&!s||("false"===n.sepa||!1===n.sepa)&&s)return{message:n.message,valid:!1}}var o=b(i.l10n?n.message||i.l10n.iban.country:n.message,i.l10n?i.l10n.iban.countries[r]:r);if(!new RegExp("^".concat(e[r],"$")).test(i.value))return{message:o,valid:!1};a=(a="".concat(a.substr(4)).concat(a.substr(0,4))).split("").map((function(e){var t=e.charCodeAt(0);return t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?t-"A".charCodeAt(0)+10:e})).join("");for(var l=parseInt(a.substr(0,1),10),c=a.length,u=1;u<c;++u)l=(10*l+parseInt(a.substr(u,1),10))%97;return{message:o,valid:1===l}}}},id:function(){var e=["AR","BA","BG","BR","CH","CL","CN","CO","CZ","DK","EE","ES","FI","FR","HK","HR","ID","IE","IL","IS","KR","LT","LV","ME","MK","MX","MY","NL","NO","PE","PL","RO","RS","SE","SI","SK","SM","TH","TR","TW","UY","ZA"];return{validate:function(n){if(""===n.value)return{valid:!0};var r=Object.assign({},{message:""},n.options),s=n.value.substr(0,2);if(s="function"==typeof r.country?r.country.call(this):r.country,-1===e.indexOf(s))return{valid:!0};var o={meta:{},valid:!0};switch(s.toLowerCase()){case"ar":o=function(e){var t=e.replace(/\./g,"");return{meta:{},valid:/^\d{7,8}$/.test(t)}}(n.value);break;case"ba":o=function(e){return{meta:{},valid:M(e,"BA")}}(n.value);break;case"bg":o=function(e){if(!/^\d{10}$/.test(e)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/\s/g,""),i=parseInt(t.substr(0,2),10)+1900,n=parseInt(t.substr(2,2),10);if(n>40?(i+=100,n-=40):n>20&&(i-=100,n-=20),!w(i,n,parseInt(t.substr(4,2),10)))return{meta:{},valid:!1};for(var a=0,r=[2,4,8,5,10,9,7,3,6],s=0;s<9;s++)a+=parseInt(t.charAt(s),10)*r[s];return{meta:{},valid:"".concat(a=a%11%10)===t.substr(9,1)}}(n.value);break;case"br":o=function(e){var t=e.replace(/\D/g,"");if(!/^\d{11}$/.test(t)||/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(t))return{meta:{},valid:!1};var i,n=0;for(i=0;i<9;i++)n+=(10-i)*parseInt(t.charAt(i),10);if(10!=(n=11-n%11)&&11!==n||(n=0),"".concat(n)!==t.charAt(9))return{meta:{},valid:!1};var a=0;for(i=0;i<10;i++)a+=(11-i)*parseInt(t.charAt(i),10);return 10!=(a=11-a%11)&&11!==a||(a=0),{meta:{},valid:"".concat(a)===t.charAt(10)}}(n.value);break;case"ch":o=function(e){if(!/^756[.]{0,1}[0-9]{4}[.]{0,1}[0-9]{4}[.]{0,1}[0-9]{2}$/.test(e))return{meta:{},valid:!1};for(var t=e.replace(/\D/g,"").substr(3),i=t.length,n=8===i?[3,1]:[1,3],a=0,r=0;r<i-1;r++)a+=parseInt(t.charAt(r),10)*n[r%2];return{meta:{},valid:"".concat(a=10-a%10)===t.charAt(i-1)}}(n.value);break;case"cl":o=function(e){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(e))return{meta:{},valid:!1};for(var t=e.replace(/-/g,"");t.length<9;)t="0".concat(t);for(var i=[3,2,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];var r="".concat(n=11-n%11);return 11===n?r="0":10===n&&(r="K"),{meta:{},valid:r===t.charAt(8).toUpperCase()}}(n.value);break;case"cn":o=function(e){var t=e.trim();if(!/^\d{15}$/.test(t)&&!/^\d{17}[\dXx]{1}$/.test(t))return{meta:{},valid:!1};var i={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[81,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},n=parseInt(t.substr(0,2),10),a=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);if(!i[n]||!i[n][a])return{meta:{},valid:!1};var s,o,l=!1,c=i[n][a];for(s=0;s<c.length;s++)if(Array.isArray(c[s])&&c[s][0]<=r&&r<=c[s][1]||!Array.isArray(c[s])&&r===c[s]){l=!0;break}if(!l)return{meta:{},valid:!1};if(o=18===t.length?t.substr(6,8):"19".concat(t.substr(6,6)),!w(parseInt(o.substr(0,4),10),parseInt(o.substr(4,2),10),parseInt(o.substr(6,2),10)))return{meta:{},valid:!1};if(18===t.length){var u=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],d=0;for(s=0;s<17;s++)d+=parseInt(t.charAt(s),10)*u[s];return d=(12-d%11)%11,{meta:{},valid:("X"!==t.charAt(17).toUpperCase()?parseInt(t.charAt(17),10):10)===d}}return{meta:{},valid:!0}}(n.value);break;case"co":o=function(e){var t=e.replace(/\./g,"").replace("-","");if(!/^\d{8,16}$/.test(t))return{meta:{},valid:!1};for(var i=t.length,n=[3,7,13,17,19,23,29,37,41,43,47,53,59,67,71],a=0,r=i-2;r>=0;r--)a+=parseInt(t.charAt(r),10)*n[r];return(a%=11)>=2&&(a=11-a),{meta:{},valid:"".concat(a)===t.substr(i-1)}}(n.value);break;case"cz":case"sk":o=L(n.value);break;case"dk":o=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/-/g,""),i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),a=parseInt(t.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(t.charAt(6))&&a>=58:a+=1800;break;case-1!=="0123".indexOf(t.charAt(6)):case-1!=="49".indexOf(t.charAt(6))&&a>=37:a+=1900;break;default:a+=2e3}return{meta:{},valid:w(a,n,i)}}(n.value);break;case"ee":case"lt":o=S(n.value);break;case"es":o=function(e){var t=/^[0-9]{8}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(e),i=/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(e),n=/^[A-HNPQS][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-J]$/.test(e);if(!t&&!i&&!n)return{meta:{},valid:!1};var a,r,s=e.replace(/-/g,"");if(t||i){r="DNI";var o="XYZ".indexOf(s.charAt(0));return-1!==o&&(s=o+s.substr(1)+"",r="NIE"),{meta:{type:r},valid:(a="TRWAGMYFPDXBNJZSQVHLCKE"[(a=parseInt(s.substr(0,8),10))%23])===s.substr(8,1)}}a=s.substr(1,7),r="CIF";for(var l=s[0],c=s.substr(-1),u=0,d=0;d<a.length;d++)if(d%2!=0)u+=parseInt(a[d],10);else{var h=""+2*parseInt(a[d],10);u+=parseInt(h[0],10),2===h.length&&(u+=parseInt(h[1],10))}var f=u-10*Math.floor(u/10);return 0!==f&&(f=10-f),{meta:{type:r},valid:-1!=="KQS".indexOf(l)?c==="JABCDEFGHI"[f]:-1!=="ABEH".indexOf(l)?c===""+f:c===""+f||c==="JABCDEFGHI"[f]}}(n.value);break;case"fi":o=function(e){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.substr(0,2),10),i=parseInt(e.substr(2,2),10),n=parseInt(e.substr(4,2),10);if(!w(n={"+":1800,"-":1900,A:2e3}[e.charAt(6)]+n,i,t))return{meta:{},valid:!1};if(parseInt(e.substr(7,3),10)<2)return{meta:{},valid:!1};var a=parseInt(e.substr(0,6)+e.substr(7,3)+"",10);return{meta:{},valid:"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(a%31)===e.charAt(10)}}(n.value);break;case"fr":o=function(e){var t=e.toUpperCase();if(!/^(1|2)\d{2}\d{2}(\d{2}|\d[A-Z]|\d{3})\d{2,3}\d{3}\d{2}$/.test(t))return{meta:{},valid:!1};var i=t.substr(5,2);switch(!0){case/^\d{2}$/.test(i):t=e;break;case"2A"===i:t="".concat(e.substr(0,5),"19").concat(e.substr(7));break;case"2B"===i:t="".concat(e.substr(0,5),"18").concat(e.substr(7));break;default:return{meta:{},valid:!1}}var n=97-parseInt(t.substr(0,13),10)%97;return{meta:{},valid:(n<10?"0".concat(n):"".concat(n))===t.substr(13)}}(n.value);break;case"hk":o=function(e){var t=e.toUpperCase();if(!/^[A-MP-Z]{1,2}[0-9]{6}[0-9A]$/.test(t))return{meta:{},valid:!1};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=t.charAt(0),a=t.charAt(1),r=0,s=t;/^[A-Z]$/.test(a)?(r+=9*(10+i.indexOf(n)),r+=8*(10+i.indexOf(a)),s=t.substr(2)):(r+=324,r+=8*(10+i.indexOf(n)),s=t.substr(1));for(var o=s.length,l=0;l<o-1;l++)r+=(7-l)*parseInt(s.charAt(l),10);var c=r%11;return{meta:{},valid:(0===c?"0":11-c==10?"A":"".concat(11-c))===s.charAt(o-1)}}(n.value);break;case"hr":o=function(e){return{meta:{},valid:/^[0-9]{11}$/.test(e)&&i(e)}}(n.value);break;case"id":o=function(e){if(!/^[2-9]\d{11}$/.test(e))return{meta:{},valid:!1};var t=e.split("").map((function(e){return parseInt(e,10)}));return{meta:{},valid:a(t)}}(n.value);break;case"ie":o=function(e){if(!/^\d{7}[A-W][AHWTX]?$/.test(e))return{meta:{},valid:!1};var t=function(e){for(var t=e;t.length<7;)t="0".concat(t);for(var i="WABCDEFGHIJKLMNOPQRSTUV",n=0,a=0;a<7;a++)n+=parseInt(t.charAt(a),10)*(8-a);return n+=9*i.indexOf(t.substr(7)),i[n%23]};return{meta:{},valid:9!==e.length||"A"!==e.charAt(8)&&"H"!==e.charAt(8)?e.charAt(7)===t(e.substr(0,7)):e.charAt(7)===t(e.substr(0,7)+e.substr(8)+"")}}(n.value);break;case"il":o=function(e){return/^\d{1,9}$/.test(e)?{meta:{},valid:t(e)}:{meta:{},valid:!1}}(n.value);break;case"is":o=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/-/g,""),i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),a=parseInt(t.substr(4,2),10),r=parseInt(t.charAt(9),10);if(!w(a=9===r?1900+a:100*(20+r)+a,n,i,!0))return{meta:{},valid:!1};for(var s=[3,2,7,6,5,4,3,2],o=0,l=0;l<8;l++)o+=parseInt(t.charAt(l),10)*s[l];return{meta:{},valid:"".concat(o=11-o%11)===t.charAt(8)}}(n.value);break;case"kr":o=function(e){var t=e.replace("-","");if(!/^\d{13}$/.test(t))return{meta:{},valid:!1};var i=t.charAt(6),n=parseInt(t.substr(0,2),10),a=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);switch(i){case"1":case"2":case"5":case"6":n+=1900;break;case"3":case"4":case"7":case"8":n+=2e3;break;default:n+=1800}if(!w(n,a,r))return{meta:{},valid:!1};for(var s=[2,3,4,5,6,7,8,9,2,3,4,5],o=t.length,l=0,c=0;c<o-1;c++)l+=s[c]*parseInt(t.charAt(c),10);return{meta:{},valid:"".concat((11-l%11)%10)===t.charAt(o-1)}}(n.value);break;case"lv":o=function(e){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(e))return{meta:{},valid:!1};var t=e.replace(/\D/g,""),i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),a=parseInt(t.substr(4,2),10);if(!w(a=a+1800+100*parseInt(t.charAt(6),10),n,i,!0))return{meta:{},valid:!1};for(var r=0,s=[10,5,8,4,2,1,6,3,7,9],o=0;o<10;o++)r+=parseInt(t.charAt(o),10)*s[o];return{meta:{},valid:"".concat(r=(r+1)%11%10)===t.charAt(10)}}(n.value);break;case"me":o=function(e){return{meta:{},valid:M(e,"ME")}}(n.value);break;case"mk":o=function(e){return{meta:{},valid:M(e,"MK")}}(n.value);break;case"mx":o=function(e){var t=e.toUpperCase();if(!/^[A-Z]{4}\d{6}[A-Z]{6}[0-9A-Z]\d$/.test(t))return{meta:{},valid:!1};var i=t.substr(0,4);if(["BACA","BAKA","BUEI","BUEY","CACA","CACO","CAGA","CAGO","CAKA","CAKO","COGE","COGI","COJA","COJE","COJI","COJO","COLA","CULO","FALO","FETO","GETA","GUEI","GUEY","JETA","JOTO","KACA","KACO","KAGA","KAGO","KAKA","KAKO","KOGE","KOGI","KOJA","KOJE","KOJI","KOJO","KOLA","KULO","LILO","LOCA","LOCO","LOKA","LOKO","MAME","MAMO","MEAR","MEAS","MEON","MIAR","MION","MOCO","MOKO","MULA","MULO","NACA","NACO","PEDA","PEDO","PENE","PIPI","PITO","POPO","PUTA","PUTO","QULO","RATA","ROBA","ROBE","ROBO","RUIN","SENO","TETA","VACA","VAGA","VAGO","VAKA","VUEI","VUEY","WUEI","WUEY"].indexOf(i)>=0)return{meta:{},valid:!1};var n=parseInt(t.substr(4,2),10),a=parseInt(t.substr(6,2),10),r=parseInt(t.substr(6,2),10);if(/^[0-9]$/.test(t.charAt(16))?n+=1900:n+=2e3,!w(n,a,r))return{meta:{},valid:!1};var s=t.charAt(10);if("H"!==s&&"M"!==s)return{meta:{},valid:!1};var o=t.substr(11,2);if(-1===["AS","BC","BS","CC","CH","CL","CM","CS","DF","DG","GR","GT","HG","JC","MC","MN","MS","NE","NL","NT","OC","PL","QR","QT","SL","SP","SR","TC","TL","TS","VZ","YN","ZS"].indexOf(o))return{meta:{},valid:!1};for(var l=0,c=t.length,u=0;u<c-1;u++)l+=(18-u)*"0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ".indexOf(t.charAt(u));return{meta:{},valid:"".concat(l=(10-l%10)%10)===t.charAt(c-1)}}(n.value);break;case"my":o=function(e){if(!/^\d{12}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.substr(0,2),10),i=parseInt(e.substr(2,2),10),n=parseInt(e.substr(4,2),10);if(!w(t+1900,i,n)&&!w(t+2e3,i,n))return{meta:{},valid:!1};var a=e.substr(6,2);return{meta:{},valid:-1===["17","18","19","20","69","70","73","80","81","94","95","96","97"].indexOf(a)}}(n.value);break;case"nl":o=A(n.value);break;case"no":o=function(e){return/^\d{11}$/.test(e)?{meta:{},valid:"".concat(function(e){for(var t=[3,7,6,1,8,9,4,5,2],i=0,n=0;n<9;n++)i+=t[n]*parseInt(e.charAt(n),10);return 11-i%11}(e))===e.substr(-2,1)&&"".concat(function(e){for(var t=[5,4,3,2,7,6,5,4,3,2],i=0,n=0;n<10;n++)i+=t[n]*parseInt(e.charAt(n),10);return 11-i%11}(e))===e.substr(-1)}:{meta:{},valid:!1}}(n.value);break;case"pe":o=function(e){if(!/^\d{8}[0-9A-Z]*$/.test(e))return{meta:{},valid:!1};if(8===e.length)return{meta:{},valid:!0};for(var t=[3,2,7,6,5,4,3,2],i=0,n=0;n<8;n++)i+=t[n]*parseInt(e.charAt(n),10);var a=i%11,r=[6,5,4,3,2,1,1,0,9,8,7][a],s="KJIHGFEDCBA".charAt(a);return{meta:{},valid:e.charAt(8)==="".concat(r)||e.charAt(8)===s}}(n.value);break;case"pl":o=function(e){if(!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};for(var t=0,i=e.length,n=[1,3,7,9,1,3,7,9,1,3,7],a=0;a<i-1;a++)t+=n[a]*parseInt(e.charAt(a),10);return 0==(t%=10)&&(t=10),{meta:{},valid:"".concat(t=10-t)===e.charAt(i-1)}}(n.value);break;case"ro":o=function(e){if(!/^[0-9]{13}$/.test(e))return{meta:{},valid:!1};var t=parseInt(e.charAt(0),10);if(0===t||7===t||8===t)return{meta:{},valid:!1};var i=parseInt(e.substr(1,2),10),n=parseInt(e.substr(3,2),10),a=parseInt(e.substr(5,2),10);if(a>31&&n>12)return{meta:{},valid:!1};if(9!==t&&!w(i={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[t+""]+i,n,a))return{meta:{},valid:!1};for(var r=0,s=[2,7,9,1,4,6,3,5,8,2,7,9],o=e.length,l=0;l<o-1;l++)r+=parseInt(e.charAt(l),10)*s[l];return 10==(r%=11)&&(r=1),{meta:{},valid:"".concat(r)===e.charAt(o-1)}}(n.value);break;case"rs":o=function(e){return{meta:{},valid:M(e,"RS")}}(n.value);break;case"se":o=function(e){if(!/^[0-9]{10}$/.test(e)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(e))return{meta:{},valid:!1};var i=e.replace(/[^0-9]/g,"");return w(parseInt(i.substr(0,2),10)+1900,parseInt(i.substr(2,2),10),parseInt(i.substr(4,2),10))?{meta:{},valid:t(i)}:{meta:{},valid:!1}}(n.value);break;case"si":o=function(e){return{meta:{},valid:M(e,"SI")}}(n.value);break;case"sm":o=function(e){return{meta:{},valid:/^\d{5}$/.test(e)}}(n.value);break;case"th":o=function(e){if(13!==e.length)return{meta:{},valid:!1};for(var t=0,i=0;i<12;i++)t+=parseInt(e.charAt(i),10)*(13-i);return{meta:{},valid:(11-t%11)%10===parseInt(e.charAt(12),10)}}(n.value);break;case"tr":o=function(e){if(11!==e.length)return{meta:{},valid:!1};for(var t=0,i=0;i<10;i++)t+=parseInt(e.charAt(i),10);return{meta:{},valid:t%10===parseInt(e.charAt(10),10)}}(n.value);break;case"tw":o=function(e){var t=e.toUpperCase();if(!/^[A-Z][12][0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var i=t.length,n="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(t.charAt(0))+10,a=Math.floor(n/10)+n%10*(i-1),r=0,s=1;s<i-1;s++)r+=parseInt(t.charAt(s),10)*(i-1-s);return{meta:{},valid:(a+r+parseInt(t.charAt(i-1),10))%10==0}}(n.value);break;case"uy":o=function(e){if(!/^\d{8}$/.test(e))return{meta:{},valid:!1};for(var t=[2,9,8,7,6,3,4],i=0,n=0;n<7;n++)i+=parseInt(e.charAt(n),10)*t[n];return(i%=10)>0&&(i=10-i),{meta:{},valid:"".concat(i)===e.charAt(7)}}(n.value);break;case"za":o=function(e){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(e))return{meta:{},valid:!1};var i=parseInt(e.substr(0,2),10);return w(i=i>=(new Date).getFullYear()%100?i+1900:i+2e3,parseInt(e.substr(2,2),10),parseInt(e.substr(4,2),10))?{meta:{},valid:t(e)}:{meta:{},valid:!1}}(n.value)}var l=b(n.l10n&&n.l10n.id?r.message||n.l10n.id.country:r.message,n.l10n&&n.l10n.id&&n.l10n.id.countries?n.l10n.id.countries[s.toUpperCase()]:s.toUpperCase());return Object.assign({},{message:l},o)}}},imei:function(){return{validate:function(e){if(""===e.value)return{valid:!0};switch(!0){case/^\d{15}$/.test(e.value):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(e.value):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(e.value):return{valid:t(e.value.replace(/[^0-9]/g,""))};case/^\d{14}$/.test(e.value):case/^\d{16}$/.test(e.value):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(e.value):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(e.value):return{valid:!0};default:return{valid:!1}}}}},imo:function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^IMO \d{7}$/i.test(e.value))return{valid:!1};for(var t=e.value.replace(/^.*(\d{7})$/,"$1"),i=0,n=6;n>=1;n--)i+=parseInt(t.slice(6-n,-n),10)*(n+1);return{valid:i%10===parseInt(t.charAt(6),10)}}}},isbn:function(){return{validate:function(e){if(""===e.value)return{meta:{type:null},valid:!0};var t;switch(!0){case/^\d{9}[\dX]$/.test(e.value):case 13===e.value.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(e.value):case 13===e.value.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(e.value):t="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(e.value):case 17===e.value.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(e.value):case 17===e.value.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(e.value):t="ISBN13";break;default:return{meta:{type:null},valid:!1}}var i,n,a=e.value.replace(/[^0-9X]/gi,"").split(""),r=a.length,s=0;switch(t){case"ISBN10":for(s=0,i=0;i<r-1;i++)s+=parseInt(a[i],10)*(10-i);return 11===(n=11-s%11)?n=0:10===n&&(n="X"),{meta:{type:t},valid:"".concat(n)===a[r-1]};case"ISBN13":for(s=0,i=0;i<r-1;i++)s+=i%2==0?parseInt(a[i],10):3*parseInt(a[i],10);return 10===(n=10-s%10)&&(n="0"),{meta:{type:t},valid:"".concat(n)===a[r-1]}}}}},isin:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!new RegExp("^(AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW)[0-9A-Z]{10}$").test(e.value))return{valid:!1};var i,n=t.length,a="";for(i=0;i<n-1;i++){var r=t.charCodeAt(i);a+=r>57?(r-55).toString():t.charAt(i)}var s="",o=a.length,l=o%2!=0?0:1;for(i=0;i<o;i++)s+=parseInt(a[i],10)*(i%2===l?2:1)+"";var c=0;for(i=0;i<s.length;i++)c+=parseInt(s.charAt(i),10);return{valid:"".concat(c=(10-c%10)%10)===t.charAt(n-1)}}}},ismn:function(){return{validate:function(e){if(""===e.value)return{meta:null,valid:!0};var t;switch(!0){case/^M\d{9}$/.test(e.value):case/^M-\d{4}-\d{4}-\d{1}$/.test(e.value):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(e.value):t="ISMN10";break;case/^9790\d{9}$/.test(e.value):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(e.value):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(e.value):t="ISMN13";break;default:return{meta:null,valid:!1}}var i=e.value;"ISMN10"===t&&(i="9790".concat(i.substr(1)));for(var n=0,a=(i=i.replace(/[^0-9]/gi,"")).length,r=[1,3],s=0;s<a-1;s++)n+=parseInt(i.charAt(s),10)*r[s%2];return{meta:{type:t},valid:"".concat(n=(10-n%10)%10)===i.charAt(a-1)}}}},issn:function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^\d{4}-\d{3}[\dX]$/.test(e.value))return{valid:!1};var t=e.value.replace(/[^0-9X]/gi,"").split(""),i=t.length,n=0;"X"===t[7]&&(t[7]="10");for(var a=0;a<i;a++)n+=parseInt(t[a],10)*(8-a);return{valid:n%11==0}}}},mac:function(){return{validate:function(e){return{valid:""===e.value||/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e.value)||/^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/.test(e.value)}}}},meid:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var i=e.value;if(/^[0-9A-F]{15}$/i.test(i)||/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(i)||/^\d{19}$/.test(i)||/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(i)){var n=i.charAt(i.length-1).toUpperCase();if((i=i.replace(/[- ]/g,"")).match(/^\d*$/i))return{valid:t(i)};i=i.slice(0,-1);var a,r="";for(a=1;a<=13;a+=2)r+=(2*parseInt(i.charAt(a),16)).toString(16);var s=0;for(a=0;a<r.length;a++)s+=parseInt(r.charAt(a),16);return{valid:s%10==0?"0"===n:n===(2*(10*Math.floor((s+10)/10)-s)).toString(16).toUpperCase()}}return/^[0-9A-F]{14}$/i.test(i)||/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(i)||/^\d{18}$/.test(i)||/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(i)?{valid:!0}:{valid:!1}}}},phone:function(){var e=["AE","BG","BR","CN","CZ","DE","DK","ES","FR","GB","IN","MA","NL","PK","RO","RU","SK","TH","US","VE"];return{validate:function(t){if(""===t.value)return{valid:!0};var i=Object.assign({},{message:""},t.options),n=t.value.trim(),a=n.substr(0,2);if(!(a="function"==typeof i.country?i.country.call(this):i.country)||-1===e.indexOf(a.toUpperCase()))return{valid:!0};var r=!0;switch(a.toUpperCase()){case"AE":r=/^(((\+|00)?971[\s.-]?(\(0\)[\s.-]?)?|0)(\(5(0|2|5|6)\)|5(0|2|5|6)|2|3|4|6|7|9)|60)([\s.-]?[0-9]){7}$/.test(n);break;case"BG":r=/^(0|359|00)(((700|900)[0-9]{5}|((800)[0-9]{5}|(800)[0-9]{4}))|(87|88|89)([0-9]{7})|((2[0-9]{7})|(([3-9][0-9])(([0-9]{6})|([0-9]{5})))))$/.test(n.replace(/\+|\s|-|\/|\(|\)/gi,""));break;case"BR":r=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(n);break;case"CN":r=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(n);break;case"CZ":r=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(n);break;case"DE":r=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(n);break;case"DK":r=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(n);break;case"ES":r=/^(?:(?:(?:\+|00)34\D?))?(?:5|6|7|8|9)(?:\d\D?){8}$/.test(n);break;case"FR":r=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(n);break;case"GB":r=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|#)\d+)?)$/.test(n);break;case"IN":r=/((\+?)((0[ -]+)*|(91 )*)(\d{12}|\d{10}))|\d{5}([- ]*)\d{6}/.test(n);break;case"MA":r=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(n);break;case"NL":r=/^((\+|00(\s|\s?-\s?)?)31(\s|\s?-\s?)?(\(0\)[-\s]?)?|0)[1-9]((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]$/gm.test(n);break;case"PK":r=/^0?3[0-9]{2}[0-9]{7}$/.test(n);break;case"RO":r=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|-)?([0-9]{3}(\s|\.|-|)){2}$/g.test(n);break;case"RU":r=/^((8|\+7|007)[-./ ]?)?([(/.]?\d{3}[)/.]?[-./ ]?)?[\d\-./ ]{7,10}$/g.test(n);break;case"SK":r=/^(((00)([- ]?)|\+)(421)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(n);break;case"TH":r=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(n);break;case"VE":r=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(n);break;default:r=/^(?:(1-?)|(\+1 ?))?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$/.test(n)}return{message:b(t.l10n&&t.l10n.phone?i.message||t.l10n.phone.country:i.message,t.l10n&&t.l10n.phone&&t.l10n.phone.countries?t.l10n.phone.countries[a]:a),valid:r}}}},rtn:function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^\d{9}$/.test(e.value))return{valid:!1};for(var t=0,i=0;i<e.value.length;i+=3)t+=3*parseInt(e.value.charAt(i),10)+7*parseInt(e.value.charAt(i+1),10)+parseInt(e.value.charAt(i+2),10);return{valid:0!==t&&t%10==0}}}},sedol:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=e.value.toUpperCase();if(!/^[0-9A-Z]{7}$/.test(t))return{valid:!1};for(var i=[1,3,1,7,3,9,1],n=t.length,a=0,r=0;r<n-1;r++)a+=i[r]*parseInt(t.charAt(r),36);return{valid:"".concat(a=(10-a%10)%10)===t.charAt(n-1)}}}},siren:function(){return{validate:function(e){return{valid:""===e.value||/^\d{9}$/.test(e.value)&&t(e.value)}}}},siret:function(){return{validate:function(e){if(""===e.value)return{valid:!0};for(var t,i=e.value.length,n=0,a=0;a<i;a++)t=parseInt(e.value.charAt(a),10),a%2==0&&(t*=2)>9&&(t-=9),n+=t;return{valid:n%10==0}}}},step:function(){var e=function(e,t){if(0===t)return 1;var i="".concat(e).split("."),n="".concat(t).split("."),a=(1===i.length?0:i[1].length)+(1===n.length?0:n[1].length);return function(e,t){var i,n=Math.pow(10,t),a=e*n;switch(!0){case 0===a:i=0;break;case a>0:i=1;break;case a<0:i=-1}return a%1==.5*i?(Math.floor(a)+(i>0?1:0))/n:Math.round(a)/n}(e-t*Math.floor(e/t),a)};return{validate:function(t){if(""===t.value)return{valid:!0};var i=parseFloat(t.value);if(isNaN(i)||!isFinite(i))return{valid:!1};var n=Object.assign({},{baseValue:0,message:"",step:1},t.options),a=e(i-n.baseValue,n.step);return{message:b(t.l10n?n.message||t.l10n.step.default:n.message,"".concat(n.step)),valid:0===a||a===n.step}}}},uuid:function(){return{validate:function(e){if(""===e.value)return{valid:!0};var t=Object.assign({},{message:""},e.options),i={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},n=t.version?"".concat(t.version):"all";return{message:t.version?b(e.l10n?t.message||e.l10n.uuid.version:t.message,t.version):e.l10n?e.l10n.uuid.default:t.message,valid:null===i[n]||i[n].test(e.value)}}}},vat:function(){var e=["AR","AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"];return{validate:function(n){var a=n.value;if(""===a)return{valid:!0};var r=Object.assign({},{message:""},n.options),s=a.substr(0,2);if(s="function"==typeof r.country?r.country.call(this):r.country,-1===e.indexOf(s))return{valid:!0};var o={meta:{},valid:!0};switch(s.toLowerCase()){case"ar":o=function(e){var t=e.replace("-","");if(/^AR[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};for(var i=[5,4,3,2,7,6,5,4,3,2],n=0,a=0;a<10;a++)n+=parseInt(t.charAt(a),10)*i[a];return 11==(n=11-n%11)&&(n=0),{meta:{},valid:"".concat(n)===t.substr(10)}}(a);break;case"at":o=function(e){var t=e;if(/^ATU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^U[0-9]{8}$/.test(t))return{meta:{},valid:!1};t=t.substr(1);for(var i=[1,2,1,2,1,2,1],n=0,a=0,r=0;r<7;r++)(a=parseInt(t.charAt(r),10)*i[r])>9&&(a=Math.floor(a/10)+a%10),n+=a;return 10==(n=10-(n+4)%10)&&(n=0),{meta:{},valid:"".concat(n)===t.substr(7,1)}}(a);break;case"be":o=function(e){var t=e;return/^BE[0]?[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^[0]?[0-9]{9}$/.test(t)?(9===t.length&&(t="0".concat(t)),"0"===t.substr(1,1)?{meta:{},valid:!1}:{meta:{},valid:(parseInt(t.substr(0,8),10)+parseInt(t.substr(8,2),10))%97==0}):{meta:{},valid:!1}}(a);break;case"bg":o=function(e){var t=e;if(/^BG[0-9]{9,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9,10}$/.test(t))return{meta:{},valid:!1};var i=0,n=0;if(9===t.length){for(n=0;n<8;n++)i+=parseInt(t.charAt(n),10)*(n+1);if(10==(i%=11)){for(i=0,n=0;n<8;n++)i+=parseInt(t.charAt(n),10)*(n+3);i%=11}return{meta:{},valid:"".concat(i%=10)===t.substr(8)}}return{meta:{},valid:function(e){var t=parseInt(e.substr(0,2),10)+1900,i=parseInt(e.substr(2,2),10);if(i>40?(t+=100,i-=40):i>20&&(t-=100,i-=20),!w(t,i,parseInt(e.substr(4,2),10)))return!1;for(var n=[2,4,8,5,10,9,7,3,6],a=0,r=0;r<9;r++)a+=parseInt(e.charAt(r),10)*n[r];return"".concat(a=a%11%10)===e.substr(9,1)}(t)||function(e){for(var t=[21,19,17,13,11,9,7,3,1],i=0,n=0;n<9;n++)i+=parseInt(e.charAt(n),10)*t[n];return"".concat(i%=10)===e.substr(9,1)}(t)||function(e){for(var t=[4,3,2,7,6,5,4,3,2],i=0,n=0;n<9;n++)i+=parseInt(e.charAt(n),10)*t[n];return 10!=(i=11-i%11)&&(11===i&&(i=0),"".concat(i)===e.substr(9,1))}(t)}}(a);break;case"br":o=function(e){if(""===e)return{meta:{},valid:!0};var t=e.replace(/[^\d]+/g,"");if(""===t||14!==t.length)return{meta:{},valid:!1};if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return{meta:{},valid:!1};var i,n=t.length-2,a=t.substring(0,n),r=t.substring(n),s=0,o=n-7;for(i=n;i>=1;i--)s+=parseInt(a.charAt(n-i),10)*o--,o<2&&(o=9);var l=s%11<2?0:11-s%11;if(l!==parseInt(r.charAt(0),10))return{meta:{},valid:!1};for(n+=1,a=t.substring(0,n),s=0,o=n-7,i=n;i>=1;i--)s+=parseInt(a.charAt(n-i),10)*o--,o<2&&(o=9);return{meta:{},valid:(l=s%11<2?0:11-s%11)===parseInt(r.charAt(1),10)}}(a);break;case"ch":o=function(e){var t=e;if(/^CHE[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(t)&&(t=t.substr(2)),!/^E[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(t))return{meta:{},valid:!1};t=t.substr(1);for(var i=[5,4,3,2,7,6,5,4],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return 10==(n=11-n%11)?{meta:{},valid:!1}:(11===n&&(n=0),{meta:{},valid:"".concat(n)===t.substr(8,1)})}(a);break;case"cy":o=function(e){var t=e;if(/^CY[0-5|9][0-9]{7}[A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-5|9][0-9]{7}[A-Z]$/.test(t))return{meta:{},valid:!1};if("12"===t.substr(0,2))return{meta:{},valid:!1};for(var i=0,n={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},a=0;a<8;a++){var r=parseInt(t.charAt(a),10);a%2==0&&(r=n["".concat(r)]),i+=r}return{meta:{},valid:"".concat("ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i%26])===t.substr(8,1)}}(a);break;case"cz":o=function(e){var t=e;if(/^CZ[0-9]{8,10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8,10}$/.test(t))return{meta:{},valid:!1};var i=0,n=0;if(8===t.length){if("9"==="".concat(t.charAt(0)))return{meta:{},valid:!1};for(i=0,n=0;n<7;n++)i+=parseInt(t.charAt(n),10)*(8-n);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i)===t.substr(7,1)}}if(9===t.length&&"6"==="".concat(t.charAt(0))){for(i=0,n=0;n<7;n++)i+=parseInt(t.charAt(n+1),10)*(8-n);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i=[8,7,6,5,4,3,2,1,0,9,10][i-1])===t.substr(8,1)}}if(9===t.length||10===t.length){var a=1900+parseInt(t.substr(0,2),10),r=parseInt(t.substr(2,2),10)%50%20,s=parseInt(t.substr(4,2),10);if(9===t.length){if(a>=1980&&(a-=100),a>1953)return{meta:{},valid:!1}}else a<1954&&(a+=100);if(!w(a,r,s))return{meta:{},valid:!1};if(10===t.length){var o=parseInt(t.substr(0,9),10)%11;return a<1985&&(o%=10),{meta:{},valid:"".concat(o)===t.substr(9,1)}}return{meta:{},valid:!0}}return{meta:{},valid:!1}}(a);break;case"de":o=function(e){var t=e;return/^DE[0-9]{9}$/.test(t)&&(t=t.substr(2)),/^[0-9]{9}$/.test(t)?{meta:{},valid:i(t)}:{meta:{},valid:!1}}(a);break;case"dk":o=function(e){var t=e;if(/^DK[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var i=0,n=[2,7,6,5,4,3,2,1],a=0;a<8;a++)i+=parseInt(t.charAt(a),10)*n[a];return{meta:{},valid:i%11==0}}(a);break;case"ee":o=function(e){var t=e;if(/^EE[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var i=0,n=[3,7,1,3,7,1,3,7,1],a=0;a<9;a++)i+=parseInt(t.charAt(a),10)*n[a];return{meta:{},valid:i%10==0}}(a);break;case"el":case"gr":o=T(a);break;case"es":o=function(e){var t=e;if(/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t)&&(t=t.substr(2)),!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t))return{meta:{},valid:!1};var i=t.charAt(0);return/^[0-9]$/.test(i)?{meta:{type:"DNI"},valid:function(e){var t=parseInt(e.substr(0,8),10);return"".concat("TRWAGMYFPDXBNJZSQVHLCKE"[t%23])===e.substr(8,1)}(t)}:/^[XYZ]$/.test(i)?{meta:{type:"NIE"},valid:function(e){var t=["XYZ".indexOf(e.charAt(0)),e.substr(1)].join(""),i="TRWAGMYFPDXBNJZSQVHLCKE"[parseInt(t,10)%23];return"".concat(i)===e.substr(8,1)}(t)}:{meta:{type:"CIF"},valid:function(e){var t,i=e.charAt(0);if(-1!=="KLM".indexOf(i))return t=parseInt(e.substr(1,8),10),"".concat(t="TRWAGMYFPDXBNJZSQVHLCKE"[t%23])===e.substr(8,1);if(-1!=="ABCDEFGHJNPQRSUVW".indexOf(i)){for(var n=[2,1,2,1,2,1,2],a=0,r=0,s=0;s<7;s++)(r=parseInt(e.charAt(s+1),10)*n[s])>9&&(r=Math.floor(r/10)+r%10),a+=r;return 10==(a=10-a%10)&&(a=0),"".concat(a)===e.substr(8,1)||"JABCDEFGHI"[a]===e.substr(8,1)}return!1}(t)}}(a);break;case"fi":o=function(e){var t=e;if(/^FI[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var i=[7,9,10,5,8,4,2,1],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return{meta:{},valid:n%11==0}}(a);break;case"fr":o=function(e){var i=e;if(/^FR[0-9A-Z]{2}[0-9]{9}$/.test(i)&&(i=i.substr(2)),!/^[0-9A-Z]{2}[0-9]{9}$/.test(i))return{meta:{},valid:!1};if("000"!==i.substr(2,4))return{meta:{},valid:t(i.substr(2))};if(/^[0-9]{2}$/.test(i.substr(0,2)))return{meta:{},valid:i.substr(0,2)==="".concat(parseInt(i.substr(2)+"12",10)%97)};var n,a="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return n=/^[0-9]$/.test(i.charAt(0))?24*a.indexOf(i.charAt(0))+a.indexOf(i.charAt(1))-10:34*a.indexOf(i.charAt(0))+a.indexOf(i.charAt(1))-100,{meta:{},valid:(parseInt(i.substr(2),10)+1+Math.floor(n/11))%11==n%11}}(a);break;case"gb":o=function(e){var t=e;if((/^GB[0-9]{9}$/.test(t)||/^GB[0-9]{12}$/.test(t)||/^GBGD[0-9]{3}$/.test(t)||/^GBHA[0-9]{3}$/.test(t)||/^GB(GD|HA)8888[0-9]{5}$/.test(t))&&(t=t.substr(2)),!(/^[0-9]{9}$/.test(t)||/^[0-9]{12}$/.test(t)||/^GD[0-9]{3}$/.test(t)||/^HA[0-9]{3}$/.test(t)||/^(GD|HA)8888[0-9]{5}$/.test(t)))return{meta:{},valid:!1};var i=t.length;if(5===i){var n=t.substr(0,2),a=parseInt(t.substr(2),10);return{meta:{},valid:"GD"===n&&a<500||"HA"===n&&a>=500}}if(11===i&&("GD8888"===t.substr(0,6)||"HA8888"===t.substr(0,6)))return"GD"===t.substr(0,2)&&parseInt(t.substr(6,3),10)>=500||"HA"===t.substr(0,2)&&parseInt(t.substr(6,3),10)<500?{meta:{},valid:!1}:{meta:{},valid:parseInt(t.substr(6,3),10)%97===parseInt(t.substr(9,2),10)};if(9===i||12===i){for(var r=[8,7,6,5,4,3,2,10,1],s=0,o=0;o<9;o++)s+=parseInt(t.charAt(o),10)*r[o];return s%=97,{meta:{},valid:parseInt(t.substr(0,3),10)>=100?0===s||42===s||55===s:0===s}}return{meta:{},valid:!0}}(a);break;case"hr":o=function(e){var t=e;return/^HR[0-9]{11}$/.test(t)&&(t=t.substr(2)),/^[0-9]{11}$/.test(t)?{meta:{},valid:i(t)}:{meta:{},valid:!1}}(a);break;case"hu":o=function(e){var t=e;if(/^HU[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var i=[9,7,3,1,9,7,3,1],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return{meta:{},valid:n%10==0}}(a);break;case"ie":o=function(e){var t=e;if(/^IE[0-9][0-9A-Z*+][0-9]{5}[A-Z]{1,2}$/.test(t)&&(t=t.substr(2)),!/^[0-9][0-9A-Z*+][0-9]{5}[A-Z]{1,2}$/.test(t))return{meta:{},valid:!1};var i=function(e){for(var t=e;t.length<7;)t="0".concat(t);for(var i="WABCDEFGHIJKLMNOPQRSTUV",n=0,a=0;a<7;a++)n+=parseInt(t.charAt(a),10)*(8-a);return n+=9*i.indexOf(t.substr(7)),i[n%23]};return/^[0-9]+$/.test(t.substr(0,7))?{meta:{},valid:t.charAt(7)===i("".concat(t.substr(0,7)).concat(t.substr(8)))}:-1!=="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(t.charAt(1))?{meta:{},valid:t.charAt(7)===i("".concat(t.substr(2,5)).concat(t.substr(0,1)))}:{meta:{},valid:!0}}(a);break;case"is":o=function(e){var t=e;return/^IS[0-9]{5,6}$/.test(t)&&(t=t.substr(2)),{meta:{},valid:/^[0-9]{5,6}$/.test(t)}}(a);break;case"it":o=function(e){var i=e;if(/^IT[0-9]{11}$/.test(i)&&(i=i.substr(2)),!/^[0-9]{11}$/.test(i))return{meta:{},valid:!1};if(0===parseInt(i.substr(0,7),10))return{meta:{},valid:!1};var n=parseInt(i.substr(7,3),10);return n<1||n>201&&999!==n&&888!==n?{meta:{},valid:!1}:{meta:{},valid:t(i)}}(a);break;case"lt":o=function(e){var t=e;if(/^LT([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(t)&&(t=t.substr(2)),!/^([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(t))return{meta:{},valid:!1};var i,n=t.length,a=0;for(i=0;i<n-1;i++)a+=parseInt(t.charAt(i),10)*(1+i%9);var r=a%11;if(10===r)for(a=0,i=0;i<n-1;i++)a+=parseInt(t.charAt(i),10)*(1+(i+2)%9);return{meta:{},valid:"".concat(r=r%11%10)===t.charAt(n-1)}}(a);break;case"lu":o=function(e){var t=e;return/^LU[0-9]{8}$/.test(t)&&(t=t.substr(2)),/^[0-9]{8}$/.test(t)?{meta:{},valid:"".concat(parseInt(t.substr(0,6),10)%89)===t.substr(6,2)}:{meta:{},valid:!1}}(a);break;case"lv":o=function(e){var t=e;if(/^LV[0-9]{11}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};var i,n=parseInt(t.charAt(0),10),a=t.length,r=0,s=[];if(n>3){for(r=0,s=[9,1,4,8,3,10,2,5,7,6,1],i=0;i<a;i++)r+=parseInt(t.charAt(i),10)*s[i];return{meta:{},valid:3==(r%=11)}}var o=parseInt(t.substr(0,2),10),l=parseInt(t.substr(2,2),10),c=parseInt(t.substr(4,2),10);if(!w(c=c+1800+100*parseInt(t.charAt(6),10),l,o))return{meta:{},valid:!1};for(r=0,s=[10,5,8,4,2,1,6,3,7,9],i=0;i<a-1;i++)r+=parseInt(t.charAt(i),10)*s[i];return{meta:{},valid:"".concat(r=(r+1)%11%10)===t.charAt(a-1)}}(a);break;case"mt":o=function(e){var t=e;if(/^MT[0-9]{8}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{8}$/.test(t))return{meta:{},valid:!1};for(var i=[3,4,6,7,8,9,10,1],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return{meta:{},valid:n%37==0}}(a);break;case"nl":o=function(e){var t=e;return/^NL[0-9]{9}B[0-9]{2}$/.test(t)&&(t=t.substr(2)),/^[0-9]{9}B[0-9]{2}$/.test(t)?{meta:{},valid:A(t.substr(0,9)).valid||C("NL".concat(t))}:{meta:{},valid:!1}}(a);break;case"no":o=function(e){var t=e;if(/^NO[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var i=[3,2,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return 11==(n=11-n%11)&&(n=0),{meta:{},valid:"".concat(n)===t.substr(8,1)}}(a);break;case"pl":o=function(e){var t=e;if(/^PL[0-9]{10}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{10}$/.test(t))return{meta:{},valid:!1};for(var i=[6,5,7,2,3,4,5,6,7,-1],n=0,a=0;a<10;a++)n+=parseInt(t.charAt(a),10)*i[a];return{meta:{},valid:n%11==0}}(a);break;case"pt":o=function(e){var t=e;if(/^PT[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var i=[9,8,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(t.charAt(a),10)*i[a];return(n=11-n%11)>9&&(n=0),{meta:{},valid:"".concat(n)===t.substr(8,1)}}(a);break;case"ro":o=function(e){var t=e;if(/^RO[1-9][0-9]{1,9}$/.test(t)&&(t=t.substr(2)),!/^[1-9][0-9]{1,9}$/.test(t))return{meta:{},valid:!1};for(var i=t.length,n=[7,5,3,2,1,7,5,3,2].slice(10-i),a=0,r=0;r<i-1;r++)a+=parseInt(t.charAt(r),10)*n[r];return{meta:{},valid:"".concat(a=10*a%11%10)===t.substr(i-1,1)}}(a);break;case"rs":o=function(e){var t=e;if(/^RS[0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var i=10,n=0,a=0;a<8;a++)0==(n=(parseInt(t.charAt(a),10)+i)%10)&&(n=10),i=2*n%11;return{meta:{},valid:(i+parseInt(t.substr(8,1),10))%10==1}}(a);break;case"ru":o=function(e){var t=e;if(/^RU([0-9]{10}|[0-9]{12})$/.test(t)&&(t=t.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(t))return{meta:{},valid:!1};var i=0;if(10===t.length){var n=[2,4,10,3,5,9,4,6,8,0],a=0;for(i=0;i<10;i++)a+=parseInt(t.charAt(i),10)*n[i];return(a%=11)>9&&(a%=10),{meta:{},valid:"".concat(a)===t.substr(9,1)}}if(12===t.length){var r=[7,2,4,10,3,5,9,4,6,8,0],s=[3,7,2,4,10,3,5,9,4,6,8,0],o=0,l=0;for(i=0;i<11;i++)o+=parseInt(t.charAt(i),10)*r[i],l+=parseInt(t.charAt(i),10)*s[i];return(o%=11)>9&&(o%=10),(l%=11)>9&&(l%=10),{meta:{},valid:"".concat(o)===t.substr(10,1)&&"".concat(l)===t.substr(11,1)}}return{meta:{},valid:!0}}(a);break;case"se":o=function(e){var i=e;return/^SE[0-9]{10}01$/.test(i)&&(i=i.substr(2)),/^[0-9]{10}01$/.test(i)?{meta:{},valid:t(i=i.substr(0,10))}:{meta:{},valid:!1}}(a);break;case"si":o=function(e){var t=e.match(/^(SI)?([1-9][0-9]{7})$/);if(!t)return{meta:{},valid:!1};for(var i=t[1]?e.substr(2):e,n=[8,7,6,5,4,3,2],a=0,r=0;r<7;r++)a+=parseInt(i.charAt(r),10)*n[r];return 10==(a=11-a%11)&&(a=0),{meta:{},valid:"".concat(a)===i.substr(7,1)}}(a);break;case"sk":o=function(e){var t=e;return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)&&(t=t.substr(2)),/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)?{meta:{},valid:parseInt(t,10)%11==0}:{meta:{},valid:!1}}(a);break;case"ve":o=function(e){var t=e;if(/^VE[VEJPG][0-9]{9}$/.test(t)&&(t=t.substr(2)),!/^[VEJPG][0-9]{9}$/.test(t))return{meta:{},valid:!1};for(var i=[3,2,7,6,5,4,3,2],n={E:8,G:20,J:12,P:16,V:4}[t.charAt(0)],a=0;a<8;a++)n+=parseInt(t.charAt(a+1),10)*i[a];return 11!=(n=11-n%11)&&10!==n||(n=0),{meta:{},valid:"".concat(n)===t.substr(9,1)}}(a);break;case"za":o=function(e){var t=e;return/^ZA4[0-9]{9}$/.test(t)&&(t=t.substr(2)),{meta:{},valid:/^4[0-9]{9}$/.test(t)}}(a)}var l=b(n.l10n&&n.l10n.vat?r.message||n.l10n.vat.country:r.message,n.l10n&&n.l10n.vat&&n.l10n.vat.countries?n.l10n.vat.countries[s.toUpperCase()]:s.toUpperCase());return Object.assign({},{message:l},o)}}},vin:function(){return{validate:function(e){if(""===e.value)return{valid:!0};if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(e.value))return{valid:!1};for(var t=e.value.toUpperCase(),i={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},n=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],a=t.length,r=0,s=0;s<a;s++)r+=i["".concat(t.charAt(s))]*n[s];var o="".concat(r%11);return"10"===o&&(o="X"),{valid:o===t.charAt(8)}}}},zipCode:function(){var e=["AT","BG","BR","CA","CH","CZ","DE","DK","ES","FR","GB","IE","IN","IT","MA","NL","PL","PT","RO","RU","SE","SG","SK","US"];return{validate:function(t){var i=Object.assign({},{message:""},t.options);if(""===t.value||!i.country)return{valid:!0};var n=t.value.substr(0,2);if(!(n="function"==typeof i.country?i.country.call(this):i.country)||-1===e.indexOf(n.toUpperCase()))return{valid:!0};var a=!1;switch(n=n.toUpperCase()){case"AT":case"CH":a=/^([1-9]{1})(\d{3})$/.test(t.value);break;case"BG":a=/^([1-9]{1}[0-9]{3})$/.test(t.value);break;case"BR":a=/^(\d{2})([.]?)(\d{3})([-]?)(\d{3})$/.test(t.value);break;case"CA":a=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(t.value);break;case"CZ":case"SK":a=/^(\d{3})([ ]?)(\d{2})$/.test(t.value);break;case"DE":a=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(t.value);break;case"DK":a=/^(DK(-|\s)?)?\d{4}$/i.test(t.value);break;case"ES":a=/^(?:0[1-9]|[1-4][0-9]|5[0-2])\d{3}$/.test(t.value);break;case"FR":a=/^[0-9]{5}$/i.test(t.value);break;case"GB":a=function(e){for(var t="[ABCDEFGHIJKLMNOPRSTUWYZ]",i="[ABCDEFGHKLMNOPQRSTUVWXY]",n="[ABDEFGHJLNPQRSTUWXYZ]",a=0,r=[new RegExp("^(".concat(t,"{1}").concat(i,"?[0-9]{1,2})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(".concat(t,"{1}[0-9]{1}").concat("[ABCDEFGHJKPMNRSTUVWXY]","{1})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(".concat(t,"{1}").concat(i,"{1}?[0-9]{1}").concat("[ABEHMNPRVWXY]","{1})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i];a<r.length;a++)if(r[a].test(e))return!0;return!1}(t.value);break;case"IN":a=/^\d{3}\s?\d{3}$/.test(t.value);break;case"IE":a=/^(D6W|[ACDEFHKNPRTVWXY]\d{2})\s[0-9ACDEFHKNPRTVWXY]{4}$/.test(t.value);break;case"IT":a=/^(I-|IT-)?\d{5}$/i.test(t.value);break;case"MA":a=/^[1-9][0-9]{4}$/i.test(t.value);break;case"NL":a=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(t.value);break;case"PL":a=/^[0-9]{2}-[0-9]{3}$/.test(t.value);break;case"PT":a=/^[1-9]\d{3}-\d{3}$/.test(t.value);break;case"RO":a=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(t.value);break;case"RU":a=/^[0-9]{6}$/i.test(t.value);break;case"SE":a=/^(S-)?\d{3}\s?\d{2}$/i.test(t.value);break;case"SG":a=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(t.value);break;default:a=/^\d{4,5}([-]?\d{4})?$/.test(t.value)}return{message:b(t.l10n&&t.l10n.zipCode?i.message||t.l10n.zipCode.country:i.message,t.l10n&&t.l10n.zipCode&&t.l10n.zipCode.countries?t.l10n.zipCode.countries[n]:n),valid:a}}}}},E=function(){function e(t,i){s(this,e),this.elements={},this.ee={fns:{},clear:function(){this.fns={}},emit:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.fns[e]||[]).map((function(e){return e.apply(e,i)}))},off:function(e,t){if(this.fns[e]){var i=this.fns[e].indexOf(t);i>=0&&this.fns[e].splice(i,1)}},on:function(e,t){(this.fns[e]=this.fns[e]||[]).push(t)}},this.filter={filters:{},add:function(e,t){(this.filters[e]=this.filters[e]||[]).push(t)},clear:function(){this.filters={}},execute:function(e,t,i){if(!this.filters[e]||!this.filters[e].length)return t;for(var n=t,a=this.filters[e],r=a.length,s=0;s<r;s++)n=a[s].apply(n,i);return n},remove:function(e,t){this.filters[e]&&(this.filters[e]=this.filters[e].filter((function(e){return e!==t})))}},this.plugins={},this.results=new Map,this.validators={},this.form=t,this.fields=i}return l(e,[{key:"on",value:function(e,t){return this.ee.on(e,t),this}},{key:"off",value:function(e,t){return this.ee.off(e,t),this}},{key:"emit",value:function(e){for(var t,i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return(t=this.ee).emit.apply(t,[e].concat(n)),this}},{key:"registerPlugin",value:function(e,t){if(this.plugins[e])throw new Error("The plguin ".concat(e," is registered"));return t.setCore(this),t.install(),this.plugins[e]=t,this}},{key:"deregisterPlugin",value:function(e){var t=this.plugins[e];return t&&t.uninstall(),delete this.plugins[e],this}},{key:"registerValidator",value:function(e,t){if(this.validators[e])throw new Error("The validator ".concat(e," is registered"));return this.validators[e]=t,this}},{key:"registerFilter",value:function(e,t){return this.filter.add(e,t),this}},{key:"deregisterFilter",value:function(e,t){return this.filter.remove(e,t),this}},{key:"executeFilter",value:function(e,t,i){return this.filter.execute(e,t,i)}},{key:"addField",value:function(e,t){var i=Object.assign({},{selector:"",validators:{}},t);return this.fields[e]=this.fields[e]?{selector:i.selector||this.fields[e].selector,validators:Object.assign({},this.fields[e].validators,i.validators)}:i,this.elements[e]=this.queryElements(e),this.emit("core.field.added",{elements:this.elements[e],field:e,options:this.fields[e]}),this}},{key:"removeField",value:function(e){if(!this.fields[e])throw new Error("The field ".concat(e," validators are not defined. Please ensure the field is added first"));var t=this.elements[e],i=this.fields[e];return delete this.elements[e],delete this.fields[e],this.emit("core.field.removed",{elements:t,field:e,options:i}),this}},{key:"validate",value:function(){var e=this;return this.emit("core.form.validating",{formValidation:this}),this.filter.execute("validate-pre",Promise.resolve(),[]).then((function(){return Promise.all(Object.keys(e.fields).map((function(t){return e.validateField(t)}))).then((function(t){switch(!0){case-1!==t.indexOf("Invalid"):return e.emit("core.form.invalid",{formValidation:e}),Promise.resolve("Invalid");case-1!==t.indexOf("NotValidated"):return e.emit("core.form.notvalidated",{formValidation:e}),Promise.resolve("NotValidated");default:return e.emit("core.form.valid",{formValidation:e}),Promise.resolve("Valid")}}))}))}},{key:"validateField",value:function(e){var t=this,i=this.results.get(e);if("Valid"===i||"Invalid"===i)return Promise.resolve(i);this.emit("core.field.validating",e);var n=this.elements[e];if(0===n.length)return this.emit("core.field.valid",e),Promise.resolve("Valid");var a=n[0].getAttribute("type");return"radio"===a||"checkbox"===a||1===n.length?this.validateElement(e,n[0]):Promise.all(n.map((function(i){return t.validateElement(e,i)}))).then((function(i){switch(!0){case-1!==i.indexOf("Invalid"):return t.emit("core.field.invalid",e),t.results.set(e,"Invalid"),Promise.resolve("Invalid");case-1!==i.indexOf("NotValidated"):return t.emit("core.field.notvalidated",e),t.results.delete(e),Promise.resolve("NotValidated");default:return t.emit("core.field.valid",e),t.results.set(e,"Valid"),Promise.resolve("Valid")}}))}},{key:"validateElement",value:function(e,t){var i=this;this.results.delete(e);var n=this.elements[e];if(this.filter.execute("element-ignored",!1,[e,t,n]))return this.emit("core.element.ignored",{element:t,elements:n,field:e}),Promise.resolve("Ignored");var a=this.fields[e].validators;this.emit("core.element.validating",{element:t,elements:n,field:e});var r=Object.keys(a).map((function(n){return function(){return i.executeValidator(e,t,n,a[n])}}));return this.waterfall(r).then((function(a){var r=-1===a.indexOf("Invalid");i.emit("core.element.validated",{element:t,elements:n,field:e,valid:r});var s=t.getAttribute("type");return"radio"!==s&&"checkbox"!==s&&1!==n.length||i.emit(r?"core.field.valid":"core.field.invalid",e),Promise.resolve(r?"Valid":"Invalid")})).catch((function(a){return i.emit("core.element.notvalidated",{element:t,elements:n,field:e}),Promise.resolve(a)}))}},{key:"executeValidator",value:function(e,t,i,n){var a=this,r=this.elements[e],s=this.filter.execute("validator-name",i,[i,e]);if(n.message=this.filter.execute("validator-message",n.message,[this.locale,e,s]),!this.validators[s]||!1===n.enabled)return this.emit("core.validator.validated",{element:t,elements:r,field:e,result:this.normalizeResult(e,s,{valid:!0}),validator:s}),Promise.resolve("Valid");var o=this.validators[s],l=this.getElementValue(e,t,s);if(!this.filter.execute("field-should-validate",!0,[e,t,l,i]))return this.emit("core.validator.notvalidated",{element:t,elements:r,field:e,validator:i}),Promise.resolve("NotValidated");this.emit("core.validator.validating",{element:t,elements:r,field:e,validator:i});var c=o().validate({element:t,elements:r,field:e,l10n:this.localization,options:n,value:l});if("function"==typeof c.then)return c.then((function(n){var s=a.normalizeResult(e,i,n);return a.emit("core.validator.validated",{element:t,elements:r,field:e,result:s,validator:i}),s.valid?"Valid":"Invalid"}));var u=this.normalizeResult(e,i,c);return this.emit("core.validator.validated",{element:t,elements:r,field:e,result:u,validator:i}),Promise.resolve(u.valid?"Valid":"Invalid")}},{key:"getElementValue",value:function(e,t,i){var n=y(this.form,0,t,this.elements[e]);return this.filter.execute("field-value",n,[n,e,t,i])}},{key:"getElements",value:function(e){return this.elements[e]}},{key:"getFields",value:function(){return this.fields}},{key:"getFormElement",value:function(){return this.form}},{key:"getLocale",value:function(){return this.locale}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"updateFieldStatus",value:function(e,t,i){var n=this,a=this.elements[e],r=a[0].getAttribute("type");if(("radio"===r||"checkbox"===r?[a[0]]:a).forEach((function(a){return n.updateElementStatus(e,a,t,i)})),!i)switch(t){case"NotValidated":this.emit("core.field.notvalidated",e),this.results.delete(e);break;case"Validating":this.emit("core.field.validating",e),this.results.delete(e);break;case"Valid":this.emit("core.field.valid",e),this.results.set(e,"Valid");break;case"Invalid":this.emit("core.field.invalid",e),this.results.set(e,"Invalid")}return this}},{key:"updateElementStatus",value:function(e,t,i,n){var a=this,r=this.elements[e],s=this.fields[e].validators,o=n?[n]:Object.keys(s);switch(i){case"NotValidated":o.forEach((function(i){return a.emit("core.validator.notvalidated",{element:t,elements:r,field:e,validator:i})})),this.emit("core.element.notvalidated",{element:t,elements:r,field:e});break;case"Validating":o.forEach((function(i){return a.emit("core.validator.validating",{element:t,elements:r,field:e,validator:i})})),this.emit("core.element.validating",{element:t,elements:r,field:e});break;case"Valid":o.forEach((function(i){return a.emit("core.validator.validated",{element:t,elements:r,field:e,result:{message:s[i].message,valid:!0},validator:i})})),this.emit("core.element.validated",{element:t,elements:r,field:e,valid:!0});break;case"Invalid":o.forEach((function(i){return a.emit("core.validator.validated",{element:t,elements:r,field:e,result:{message:s[i].message,valid:!1},validator:i})})),this.emit("core.element.validated",{element:t,elements:r,field:e,valid:!1})}return this}},{key:"resetForm",value:function(e){var t=this;return Object.keys(this.fields).forEach((function(i){return t.resetField(i,e)})),this.emit("core.form.reset",{formValidation:this,reset:e}),this}},{key:"resetField",value:function(e,t){if(t){var i=this.elements[e],n=i[0].getAttribute("type");i.forEach((function(e){"radio"===n||"checkbox"===n?(e.removeAttribute("selected"),e.removeAttribute("checked"),e.checked=!1):(e.setAttribute("value",""),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=""))}))}return this.updateFieldStatus(e,"NotValidated"),this.emit("core.field.reset",{field:e,reset:t}),this}},{key:"revalidateField",value:function(e){return this.updateFieldStatus(e,"NotValidated"),this.validateField(e)}},{key:"disableValidator",value:function(e,t){return this.toggleValidator(!1,e,t)}},{key:"enableValidator",value:function(e,t){return this.toggleValidator(!0,e,t)}},{key:"updateValidatorOption",value:function(e,t,i,n){return this.fields[e]&&this.fields[e].validators&&this.fields[e].validators[t]&&(this.fields[e].validators[t][i]=n),this}},{key:"setFieldOptions",value:function(e,t){return this.fields[e]=t,this}},{key:"destroy",value:function(){var e=this;return Object.keys(this.plugins).forEach((function(t){return e.plugins[t].uninstall()})),this.ee.clear(),this.filter.clear(),this.results.clear(),this.plugins={},this}},{key:"setLocale",value:function(e,t){return this.locale=e,this.localization=t,this}},{key:"waterfall",value:function(e){return e.reduce((function(e,t){return e.then((function(e){return t().then((function(t){return e.push(t),e}))}))}),Promise.resolve([]))}},{key:"queryElements",value:function(e){var t=this.fields[e].selector?"#"===this.fields[e].selector.charAt(0)?'[id="'.concat(this.fields[e].selector.substring(1),'"]'):this.fields[e].selector:'[name="'.concat(e,'"]');return[].slice.call(this.form.querySelectorAll(t))}},{key:"normalizeResult",value:function(e,t,i){var n=this.fields[e].validators[t];return Object.assign({},i,{message:i.message||(n?n.message:"")||(this.localization&&this.localization[t]&&this.localization[t].default?this.localization[t].default:"")||"The field ".concat(e," is not valid")})}},{key:"toggleValidator",value:function(e,t,i){var n=this,a=this.fields[t].validators;return i&&a&&a[i]?this.fields[t].validators[i].enabled=e:i||Object.keys(a).forEach((function(i){return n.fields[t].validators[i].enabled=e})),this.updateFieldStatus(t,"NotValidated",i)}}]),e}();var O=function(){function e(t){s(this,e),this.opts=t}return l(e,[{key:"setCore",value:function(e){return this.core=e,this}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),e}(),P={getFieldValue:y},Y=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).opts=e||{},n.validatorNameFilter=n.getValidatorName.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.registerFilter("validator-name",this.validatorNameFilter)}},{key:"uninstall",value:function(){this.core.deregisterFilter("validator-name",this.validatorNameFilter)}},{key:"getValidatorName",value:function(e,t){return this.opts[e]||e}}]),i}(O),I=function(e){u(i,e);var t=m(i);function i(){var e;return s(this,i),(e=t.call(this,{})).elementValidatedHandler=e.onElementValidated.bind(f(e)),e.fieldValidHandler=e.onFieldValid.bind(f(e)),e.fieldInvalidHandler=e.onFieldInvalid.bind(f(e)),e.messageDisplayedHandler=e.onMessageDisplayed.bind(f(e)),e}return l(i,[{key:"install",value:function(){this.core.on("core.field.valid",this.fieldValidHandler).on("core.field.invalid",this.fieldInvalidHandler).on("core.element.validated",this.elementValidatedHandler).on("plugins.message.displayed",this.messageDisplayedHandler)}},{key:"uninstall",value:function(){this.core.off("core.field.valid",this.fieldValidHandler).off("core.field.invalid",this.fieldInvalidHandler).off("core.element.validated",this.elementValidatedHandler).off("plugins.message.displayed",this.messageDisplayedHandler)}},{key:"onElementValidated",value:function(e){e.valid&&(e.element.setAttribute("aria-invalid","false"),e.element.removeAttribute("aria-describedby"))}},{key:"onFieldValid",value:function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){e.setAttribute("aria-invalid","false"),e.removeAttribute("aria-describedby")}))}},{key:"onFieldInvalid",value:function(e){var t=this.core.getElements(e);t&&t.forEach((function(e){return e.setAttribute("aria-invalid","true")}))}},{key:"onMessageDisplayed",value:function(e){e.messageElement.setAttribute("role","alert"),e.messageElement.setAttribute("aria-hidden","false");var t=this.core.getElements(e.field),i=t.indexOf(e.element),n="js-fv-".concat(e.field,"-").concat(i,"-").concat(Date.now(),"-message");e.messageElement.setAttribute("id",n),e.element.setAttribute("aria-describedby",n);var a=e.element.getAttribute("type");"radio"!==a&&"checkbox"!==a||t.forEach((function(e){return e.setAttribute("aria-describedby",n)}))}}]),i}(O),j=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).addedFields=new Map,n.opts=Object.assign({},{html5Input:!1,pluginPrefix:"data-fvp-",prefix:"data-fv-"},e),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){var e=this;this.parsePlugins();var t=this.parseOptions();Object.keys(t).forEach((function(i){e.addedFields.has(i)||e.addedFields.set(i,!0),e.core.addField(i,t[i])})),this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.addedFields.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"onFieldAdded",value:function(e){var t=this,i=e.elements;i&&0!==i.length&&!this.addedFields.has(e.field)&&(this.addedFields.set(e.field,!0),i.forEach((function(i){var n=t.parseElement(i);if(!t.isEmptyOption(n)){var a={selector:e.options.selector,validators:Object.assign({},e.options.validators||{},n.validators)};t.core.setFieldOptions(e.field,a)}})))}},{key:"onFieldRemoved",value:function(e){e.field&&this.addedFields.has(e.field)&&this.addedFields.delete(e.field)}},{key:"parseOptions",value:function(){var e=this,t=this.opts.prefix,i={},n=this.core.getFields(),a=this.core.getFormElement();return[].slice.call(a.querySelectorAll("[name], [".concat(t,"field]"))).forEach((function(n){var a=e.parseElement(n);if(!e.isEmptyOption(a)){var r=n.getAttribute("name")||n.getAttribute("".concat(t,"field"));i[r]=Object.assign({},i[r],a)}})),Object.keys(i).forEach((function(e){Object.keys(i[e].validators).forEach((function(t){i[e].validators[t].enabled=i[e].validators[t].enabled||!1,n[e]&&n[e].validators&&n[e].validators[t]&&Object.assign(i[e].validators[t],n[e].validators[t])}))})),Object.assign({},n,i)}},{key:"createPluginInstance",value:function(e,t){for(var i=e.split("."),n=window||this,a=0,r=i.length;a<r;a++)n=n[i[a]];if("function"!=typeof n)throw new Error("the plugin ".concat(e," doesn't exist"));return new n(t)}},{key:"parsePlugins",value:function(){for(var e=this,t=this.core.getFormElement(),i=new RegExp("^".concat(this.opts.pluginPrefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),n=t.attributes.length,a={},r=0;r<n;r++){var s=t.attributes[r].name,o=t.attributes[r].value,l=i.exec(s);if(l&&4===l.length){var u=this.toCamelCase(l[1]);a[u]=Object.assign({},l[3]?c({},this.toCamelCase(l[3]),o):{enabled:""===o||"true"===o},a[u])}}Object.keys(a).forEach((function(t){var i=a[t],n=i.enabled,r=i.class;if(n&&r){delete i.enabled,delete i.clazz;var s=e.createPluginInstance(r,i);e.core.registerPlugin(t,s)}}))}},{key:"isEmptyOption",value:function(e){var t=e.validators;return 0===Object.keys(t).length&&t.constructor===Object}},{key:"parseElement",value:function(e){for(var t=new RegExp("^".concat(this.opts.prefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),i=e.attributes.length,n={},a=e.getAttribute("type"),r=0;r<i;r++){var s=e.attributes[r].name,o=e.attributes[r].value;if(this.opts.html5Input)switch(!0){case"minlength"===s:n.stringLength=Object.assign({},{enabled:!0,min:parseInt(o,10)},n.stringLength);break;case"maxlength"===s:n.stringLength=Object.assign({},{enabled:!0,max:parseInt(o,10)},n.stringLength);break;case"pattern"===s:n.regexp=Object.assign({},{enabled:!0,regexp:o},n.regexp);break;case"required"===s:n.notEmpty=Object.assign({},{enabled:!0},n.notEmpty);break;case"type"===s&&"color"===o:n.color=Object.assign({},{enabled:!0,type:"hex"},n.color);break;case"type"===s&&"email"===o:n.emailAddress=Object.assign({},{enabled:!0},n.emailAddress);break;case"type"===s&&"url"===o:n.uri=Object.assign({},{enabled:!0},n.uri);break;case"type"===s&&"range"===o:n.between=Object.assign({},{enabled:!0,max:parseFloat(e.getAttribute("max")),min:parseFloat(e.getAttribute("min"))},n.between);break;case"min"===s&&"date"!==a&&"range"!==a:n.greaterThan=Object.assign({},{enabled:!0,min:parseFloat(o)},n.greaterThan);break;case"max"===s&&"date"!==a&&"range"!==a:n.lessThan=Object.assign({},{enabled:!0,max:parseFloat(o)},n.lessThan)}var l=t.exec(s);if(l&&4===l.length){var u=this.toCamelCase(l[1]);n[u]=Object.assign({},l[3]?c({},this.toCamelCase(l[3]),this.normalizeValue(o)):{enabled:""===o||"true"===o},n[u])}}return{validators:n}}},{key:"normalizeValue",value:function(e){return"true"===e||"false"!==e&&e}},{key:"toUpperCase",value:function(e){return e.charAt(1).toUpperCase()}},{key:"toCamelCase",value:function(e){return e.replace(/-./g,this.toUpperCase)}}]),i}(O),N=function(e){u(i,e);var t=m(i);function i(){var e;return s(this,i),(e=t.call(this,{})).onValidHandler=e.onFormValid.bind(f(e)),e}return l(i,[{key:"install",value:function(){if(this.core.getFormElement().querySelectorAll('[type="submit"][name="submit"]').length)throw new Error("Do not use `submit` for the name attribute of submit button");this.core.on("core.form.valid",this.onValidHandler)}},{key:"uninstall",value:function(){this.core.off("core.form.valid",this.onValidHandler)}},{key:"onFormValid",value:function(){var e=this.core.getFormElement();e instanceof HTMLFormElement&&e.submit()}}]),i}(O),H=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).opts=e||{},n.triggerExecutedHandler=n.onTriggerExecuted.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("plugins.trigger.executed",this.triggerExecutedHandler)}},{key:"uninstall",value:function(){this.core.off("plugins.trigger.executed",this.triggerExecutedHandler)}},{key:"onTriggerExecuted",value:function(e){if(this.opts[e.field]){var t,i=v(this.opts[e.field].split(" "));try{for(i.s();!(t=i.n()).done;){var n=t.value.trim();this.opts[n]&&this.core.revalidateField(n)}}catch(e){i.e(e)}finally{i.f()}}}}]),i}(O),F=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).opts=Object.assign({},{excluded:i.defaultIgnore},e),n.ignoreValidationFilter=n.ignoreValidation.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.registerFilter("element-ignored",this.ignoreValidationFilter)}},{key:"uninstall",value:function(){this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)}},{key:"ignoreValidation",value:function(e,t,i){return this.opts.excluded.apply(this,[e,t,i])}}],[{key:"defaultIgnore",value:function(e,t,i){var n=!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length),a=t.getAttribute("disabled");return""===a||"disabled"===a||"hidden"===t.getAttribute("type")||!n}}]),i}(O),R=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).statuses=new Map,n.opts=Object.assign({},{onStatusChanged:function(){}},e),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.statuses.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"areFieldsValid",value:function(){return Array.from(this.statuses.values()).every((function(e){return"Valid"===e||"NotValidated"===e||"Ignored"===e}))}},{key:"getStatuses",value:function(){return this.statuses}},{key:"onFieldAdded",value:function(e){this.statuses.set(e.field,"NotValidated")}},{key:"onFieldRemoved",value:function(e){this.statuses.has(e.field)&&this.statuses.delete(e.field),this.opts.onStatusChanged(this.areFieldsValid())}},{key:"onElementValidating",value:function(e){this.statuses.set(e.field,"Validating"),this.opts.onStatusChanged(!1)}},{key:"onElementValidated",value:function(e){this.statuses.set(e.field,e.valid?"Valid":"Invalid"),e.valid?this.opts.onStatusChanged(this.areFieldsValid()):this.opts.onStatusChanged(!1)}},{key:"onElementNotValidated",value:function(e){this.statuses.set(e.field,"NotValidated"),this.opts.onStatusChanged(!1)}},{key:"onElementIgnored",value:function(e){this.statuses.set(e.field,"Ignored"),this.opts.onStatusChanged(this.areFieldsValid())}}]),i}(O);function z(e,t){var i=[],n=[];Object.keys(t).forEach((function(e){e&&(t[e]?i.push(e):n.push(e))})),n.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.remove(t):e.className=e.className.replace(t,"")}))}(e,t)})),i.forEach((function(t){return function(e,t){t.split(" ").forEach((function(t){e.classList?e.classList.add(t):" ".concat(e.className," ").indexOf(" ".concat(t," "))&&(e.className+=" ".concat(t))}))}(e,t)}))}function B(e,t){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return i?i.call(e,t):[].slice.call(e.parentElement.querySelectorAll(t)).indexOf(e)>=0}function W(e,t){for(var i=e;i&&!B(i,t);)i=i.parentElement;return i}var V=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).messages=new Map,n.defaultContainer=document.createElement("div"),n.opts=Object.assign({},{container:function(e,t){return n.defaultContainer}},e),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n.validatorValidatedHandler=n.onValidatorValidated.bind(f(n)),n.validatorNotValidatedHandler=n.onValidatorNotValidated.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.getFormElement().appendChild(this.defaultContainer),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.validator.notvalidated",this.validatorNotValidatedHandler)}},{key:"uninstall",value:function(){this.core.getFormElement().removeChild(this.defaultContainer),this.messages.forEach((function(e){return e.parentNode.removeChild(e)})),this.messages.clear(),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.validator.notvalidated",this.validatorNotValidatedHandler)}},{key:"onFieldAdded",value:function(e){var t=this,i=e.elements;i&&(i.forEach((function(e){var i=t.messages.get(e);i&&(i.parentNode.removeChild(i),t.messages.delete(e))})),this.prepareFieldContainer(e.field,i))}},{key:"onFieldRemoved",value:function(e){var t=this;if(e.elements.length&&e.field){var i=e.elements[0].getAttribute("type");("radio"===i||"checkbox"===i?[e.elements[0]]:e.elements).forEach((function(e){if(t.messages.has(e)){var i=t.messages.get(e);i.parentNode.removeChild(i),t.messages.delete(e)}}))}}},{key:"prepareFieldContainer",value:function(e,t){var i=this;if(t.length){var n=t[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementContainer(e,t[0],t):t.forEach((function(n){return i.prepareElementContainer(e,n,t)}))}}},{key:"prepareElementContainer",value:function(e,t,i){var n;if("string"==typeof this.opts.container){var a="#"===this.opts.container.charAt(0)?'[id="'.concat(this.opts.container.substring(1),'"]'):this.opts.container;n=this.core.getFormElement().querySelector(a)}else n=this.opts.container(e,t);var r=document.createElement("div");n.appendChild(r),z(r,{"fv-plugins-message-container":!0}),this.core.emit("plugins.message.placed",{element:t,elements:i,field:e,messageElement:r}),this.messages.set(t,r)}},{key:"getMessage",value:function(e){return"string"==typeof e.message?e.message:e.message[this.core.getLocale()]}},{key:"onValidatorValidated",value:function(e){var t=e.elements,i=e.element.getAttribute("type"),n=("radio"===i||"checkbox"===i)&&t.length>0?t[0]:e.element;if(this.messages.has(n)){var a=this.messages.get(n),r=a.querySelector('[data-field="'.concat(e.field,'"][data-validator="').concat(e.validator,'"]'));if(r||e.result.valid)r&&!e.result.valid?(r.innerHTML=this.getMessage(e.result),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:r,meta:e.result.meta,validator:e.validator})):r&&e.result.valid&&a.removeChild(r);else{var s=document.createElement("div");s.innerHTML=this.getMessage(e.result),s.setAttribute("data-field",e.field),s.setAttribute("data-validator",e.validator),this.opts.clazz&&z(s,c({},this.opts.clazz,!0)),a.appendChild(s),this.core.emit("plugins.message.displayed",{element:e.element,field:e.field,message:e.result.message,messageElement:s,meta:e.result.meta,validator:e.validator})}}}},{key:"onValidatorNotValidated",value:function(e){var t=e.elements,i=e.element.getAttribute("type"),n="radio"===i||"checkbox"===i?t[0]:e.element;if(this.messages.has(n)){var a=this.messages.get(n),r=a.querySelector('[data-field="'.concat(e.field,'"][data-validator="').concat(e.validator,'"]'));r&&a.removeChild(r)}}},{key:"onElementIgnored",value:function(e){var t=e.elements,i=e.element.getAttribute("type"),n="radio"===i||"checkbox"===i?t[0]:e.element;if(this.messages.has(n)){var a=this.messages.get(n);[].slice.call(a.querySelectorAll('[data-field="'.concat(e.field,'"]'))).forEach((function(e){a.removeChild(e)}))}}}],[{key:"getClosestContainer",value:function(e,t,i){for(var n=e;n&&n!==t&&(n=n.parentElement,!i.test(n.className)););return n}}]),i}(O),q=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).results=new Map,n.containers=new Map,n.opts=Object.assign({},{defaultMessageContainer:!0,eleInvalidClass:"",eleValidClass:"",rowClasses:"",rowValidatingClass:""},e),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.iconPlacedHandler=n.onIconPlaced.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n.messagePlacedHandler=n.onMessagePlaced.bind(f(n)),n}return l(i,[{key:"install",value:function(){var e,t=this;z(this.core.getFormElement(),(c(e={},this.opts.formClass,!0),c(e,"fv-plugins-framework",!0),e)),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("plugins.icon.placed",this.iconPlacedHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&(this.core.registerPlugin("___frameworkMessage",new V({clazz:this.opts.messageClass,container:function(e,i){var n=W(i,"string"==typeof t.opts.rowSelector?t.opts.rowSelector:t.opts.rowSelector(e,i));return V.getClosestContainer(i,n,t.opts.rowPattern)}})),this.core.on("plugins.message.placed",this.messagePlacedHandler))}},{key:"uninstall",value:function(){var e;this.results.clear(),this.containers.clear(),z(this.core.getFormElement(),(c(e={},this.opts.formClass,!1),c(e,"fv-plugins-framework",!1),e)),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("plugins.icon.placed",this.iconPlacedHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&this.core.off("plugins.message.placed",this.messagePlacedHandler)}},{key:"onIconPlaced",value:function(e){}},{key:"onMessagePlaced",value:function(e){}},{key:"onFieldAdded",value:function(e){var t=this,i=e.elements;i&&(i.forEach((function(e){var i,n=t.containers.get(e);n&&(z(n,(c(i={},t.opts.rowInvalidClass,!1),c(i,t.opts.rowValidatingClass,!1),c(i,t.opts.rowValidClass,!1),c(i,"fv-plugins-icon-container",!1),i)),t.containers.delete(e))})),this.prepareFieldContainer(e.field,i))}},{key:"onFieldRemoved",value:function(e){var t=this;e.elements.forEach((function(e){var i,n=t.containers.get(e);n&&z(n,(c(i={},t.opts.rowInvalidClass,!1),c(i,t.opts.rowValidatingClass,!1),c(i,t.opts.rowValidClass,!1),i))}))}},{key:"prepareFieldContainer",value:function(e,t){var i=this;if(t.length){var n=t[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementContainer(e,t[0]):t.forEach((function(t){return i.prepareElementContainer(e,t)}))}}},{key:"prepareElementContainer",value:function(e,t){var i,n=W(t,"string"==typeof this.opts.rowSelector?this.opts.rowSelector:this.opts.rowSelector(e,t));n!==t&&(z(n,(c(i={},this.opts.rowClasses,!0),c(i,"fv-plugins-icon-container",!0),i)),this.containers.set(t,n))}},{key:"onElementValidating",value:function(e){var t,i=e.elements,n=e.element.getAttribute("type"),a="radio"===n||"checkbox"===n?i[0]:e.element,r=this.containers.get(a);r&&z(r,(c(t={},this.opts.rowInvalidClass,!1),c(t,this.opts.rowValidatingClass,!0),c(t,this.opts.rowValidClass,!1),t))}},{key:"onElementNotValidated",value:function(e){this.removeClasses(e.element,e.elements)}},{key:"onElementIgnored",value:function(e){this.removeClasses(e.element,e.elements)}},{key:"removeClasses",value:function(e,t){var i=this,n=e.getAttribute("type"),a="radio"===n||"checkbox"===n?t[0]:e;t.forEach((function(e){var t;z(e,(c(t={},i.opts.eleValidClass,!1),c(t,i.opts.eleInvalidClass,!1),t))}));var r,s=this.containers.get(a);s&&z(s,(c(r={},this.opts.rowInvalidClass,!1),c(r,this.opts.rowValidatingClass,!1),c(r,this.opts.rowValidClass,!1),r))}},{key:"onElementValidated",value:function(e){var t=this,i=e.elements,n=e.element.getAttribute("type"),a="radio"===n||"checkbox"===n?i[0]:e.element;i.forEach((function(i){var n;z(i,(c(n={},t.opts.eleValidClass,e.valid),c(n,t.opts.eleInvalidClass,!e.valid),n))}));var r=this.containers.get(a);if(r)if(e.valid){this.results.delete(a);var s,o=!0;if(this.containers.forEach((function(e,i){e===r&&!1===t.results.get(i)&&(o=!1)})),o)z(r,(c(s={},this.opts.rowInvalidClass,!1),c(s,this.opts.rowValidatingClass,!1),c(s,this.opts.rowValidClass,!0),s))}else{var l;this.results.set(a,!1),z(r,(c(l={},this.opts.rowInvalidClass,!0),c(l,this.opts.rowValidatingClass,!1),c(l,this.opts.rowValidClass,!1),l))}}}]),i}(O),X=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).icons=new Map,n.opts=Object.assign({},{invalid:"fv-plugins-icon--invalid",onPlaced:function(){},onSet:function(){},valid:"fv-plugins-icon--valid",validating:"fv-plugins-icon--validating"},e),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler)}},{key:"uninstall",value:function(){this.icons.forEach((function(e){return e.parentNode.removeChild(e)})),this.icons.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler)}},{key:"onFieldAdded",value:function(e){var t=this,i=e.elements;i&&(i.forEach((function(e){var i=t.icons.get(e);i&&(i.parentNode.removeChild(i),t.icons.delete(e))})),this.prepareFieldIcon(e.field,i))}},{key:"prepareFieldIcon",value:function(e,t){var i=this;if(t.length){var n=t[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementIcon(e,t[0]):t.forEach((function(t){return i.prepareElementIcon(e,t)}))}}},{key:"prepareElementIcon",value:function(e,t){var i=document.createElement("i");i.setAttribute("data-field",e),t.parentNode.insertBefore(i,t.nextSibling),z(i,{"fv-plugins-icon":!0});var n={classes:{invalid:this.opts.invalid,valid:this.opts.valid,validating:this.opts.validating},element:t,field:e,iconElement:i};this.core.emit("plugins.icon.placed",n),this.opts.onPlaced(n),this.icons.set(t,i)}},{key:"onElementValidating",value:function(e){var t,i=this.setClasses(e.field,e.element,e.elements,(c(t={},this.opts.invalid,!1),c(t,this.opts.valid,!1),c(t,this.opts.validating,!0),t)),n={element:e.element,field:e.field,iconElement:i,status:"Validating"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementValidated",value:function(e){var t,i=this.setClasses(e.field,e.element,e.elements,(c(t={},this.opts.invalid,!e.valid),c(t,this.opts.valid,e.valid),c(t,this.opts.validating,!1),t)),n={element:e.element,field:e.field,iconElement:i,status:e.valid?"Valid":"Invalid"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementNotValidated",value:function(e){var t,i=this.setClasses(e.field,e.element,e.elements,(c(t={},this.opts.invalid,!1),c(t,this.opts.valid,!1),c(t,this.opts.validating,!1),t)),n={element:e.element,field:e.field,iconElement:i,status:"NotValidated"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementIgnored",value:function(e){var t,i=this.setClasses(e.field,e.element,e.elements,(c(t={},this.opts.invalid,!1),c(t,this.opts.valid,!1),c(t,this.opts.validating,!1),t)),n={element:e.element,field:e.field,iconElement:i,status:"Ignored"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"setClasses",value:function(e,t,i,n){var a=t.getAttribute("type"),r="radio"===a||"checkbox"===a?i[0]:t;if(this.icons.has(r)){var s=this.icons.get(r);return z(s,n),s}return null}}]),i}(O),U=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).invalidFields=new Map,n.opts=Object.assign({},{enabled:!0},e),n.validatorHandler=n.onValidatorValidated.bind(f(n)),n.shouldValidateFilter=n.shouldValidate.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.validator.validated",this.validatorHandler).on("core.field.added",this.fieldAddedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.validating",this.elementValidatingHandler).registerFilter("field-should-validate",this.shouldValidateFilter)}},{key:"uninstall",value:function(){this.invalidFields.clear(),this.core.off("core.validator.validated",this.validatorHandler).off("core.field.added",this.fieldAddedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.validating",this.elementValidatingHandler).deregisterFilter("field-should-validate",this.shouldValidateFilter)}},{key:"shouldValidate",value:function(e,t,i,n){return!((!0===this.opts.enabled||!0===this.opts.enabled[e])&&this.invalidFields.has(t)&&!!this.invalidFields.get(t).length&&-1===this.invalidFields.get(t).indexOf(n))}},{key:"onValidatorValidated",value:function(e){var t=this.invalidFields.has(e.element)?this.invalidFields.get(e.element):[],i=t.indexOf(e.validator);e.result.valid&&i>=0?t.splice(i,1):e.result.valid||-1!==i||t.push(e.validator),this.invalidFields.set(e.element,t)}},{key:"onFieldAdded",value:function(e){e.elements&&this.clearInvalidFields(e.elements)}},{key:"onElementNotValidated",value:function(e){this.clearInvalidFields(e.elements)}},{key:"onElementValidating",value:function(e){this.clearInvalidFields(e.elements)}},{key:"clearInvalidFields",value:function(e){var t=this;e.forEach((function(e){return t.invalidFields.delete(e)}))}}]),i}(O),$=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).isFormValid=!1,n.opts=Object.assign({},{aspNetButton:!1,buttons:function(e){return[].slice.call(e.querySelectorAll('[type="submit"]:not([formnovalidate])'))}},e),n.submitHandler=n.handleSubmitEvent.bind(f(n)),n.buttonClickHandler=n.handleClickEvent.bind(f(n)),n}return l(i,[{key:"install",value:function(){var e=this;if(this.core.getFormElement()instanceof HTMLFormElement){var t=this.core.getFormElement();this.submitButtons=this.opts.buttons(t),t.setAttribute("novalidate","novalidate"),t.addEventListener("submit",this.submitHandler),this.hiddenClickedEle=document.createElement("input"),this.hiddenClickedEle.setAttribute("type","hidden"),t.appendChild(this.hiddenClickedEle),this.submitButtons.forEach((function(t){t.addEventListener("click",e.buttonClickHandler)}))}}},{key:"uninstall",value:function(){var e=this,t=this.core.getFormElement();t instanceof HTMLFormElement&&t.removeEventListener("submit",this.submitHandler),this.submitButtons.forEach((function(t){t.removeEventListener("click",e.buttonClickHandler)})),this.hiddenClickedEle.parentElement.removeChild(this.hiddenClickedEle)}},{key:"handleSubmitEvent",value:function(e){this.validateForm(e)}},{key:"handleClickEvent",value:function(e){if(e.currentTarget instanceof HTMLElement)if(this.opts.aspNetButton&&!0===this.isFormValid);else{this.core.getFormElement().removeEventListener("submit",this.submitHandler),this.clickedButton=e.target;var t=this.clickedButton.getAttribute("name"),i=this.clickedButton.getAttribute("value");t&&i&&(this.hiddenClickedEle.setAttribute("name",t),this.hiddenClickedEle.setAttribute("value",i)),this.validateForm(e)}}},{key:"validateForm",value:function(e){var t=this;e.preventDefault(),this.core.validate().then((function(e){"Valid"===e&&t.opts.aspNetButton&&!t.isFormValid&&t.clickedButton&&(t.isFormValid=!0,t.clickedButton.removeEventListener("click",t.buttonClickHandler),t.clickedButton.click())}))}}]),i}(O),G=function(e){u(i,e);var t=m(i);function i(e){var n;return s(this,i),(n=t.call(this,e)).messages=new Map,n.opts=Object.assign({},{placement:"top",trigger:"click"},e),n.iconPlacedHandler=n.onIconPlaced.bind(f(n)),n.validatorValidatedHandler=n.onValidatorValidated.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.documentClickHandler=n.onDocumentClicked.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.tip=document.createElement("div"),z(this.tip,c({"fv-plugins-tooltip":!0},"fv-plugins-tooltip--".concat(this.opts.placement),!0)),document.body.appendChild(this.tip),this.core.on("plugins.icon.placed",this.iconPlacedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.addEventListener("click",this.documentClickHandler)}},{key:"uninstall",value:function(){this.messages.clear(),document.body.removeChild(this.tip),this.core.off("plugins.icon.placed",this.iconPlacedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.removeEventListener("click",this.documentClickHandler)}},{key:"onIconPlaced",value:function(e){var t=this;if(z(e.iconElement,{"fv-plugins-tooltip-icon":!0}),"hover"===this.opts.trigger)e.iconElement.addEventListener("mouseenter",(function(i){return t.show(e.element,i)})),e.iconElement.addEventListener("mouseleave",(function(e){return t.hide()}));else e.iconElement.addEventListener("click",(function(i){return t.show(e.element,i)}))}},{key:"onValidatorValidated",value:function(e){if(!e.result.valid){var t=e.elements,i=e.element.getAttribute("type"),n="radio"===i||"checkbox"===i?t[0]:e.element,a="string"==typeof e.result.message?e.result.message:e.result.message[this.core.getLocale()];this.messages.set(n,a)}}},{key:"onElementValidated",value:function(e){if(e.valid){var t=e.elements,i=e.element.getAttribute("type"),n="radio"===i||"checkbox"===i?t[0]:e.element;this.messages.delete(n)}}},{key:"onDocumentClicked",value:function(e){this.hide()}},{key:"show",value:function(e,t){if(t.preventDefault(),t.stopPropagation(),this.messages.has(e)){z(this.tip,{"fv-plugins-tooltip--hide":!1}),this.tip.innerHTML='<div class="fv-plugins-tooltip__content">'.concat(this.messages.get(e),"</div>");var i=t.target.getBoundingClientRect(),n=this.tip.getBoundingClientRect(),a=n.height,r=n.width,s=0,o=0;switch(this.opts.placement){case"bottom":s=i.top+i.height,o=i.left+i.width/2-r/2;break;case"bottom-left":s=i.top+i.height,o=i.left;break;case"bottom-right":s=i.top+i.height,o=i.left+i.width-r;break;case"left":s=i.top+i.height/2-a/2,o=i.left-r;break;case"right":s=i.top+i.height/2-a/2,o=i.left+i.width;break;case"top-left":s=i.top-a,o=i.left;break;case"top-right":s=i.top-a,o=i.left+i.width-r;break;default:s=i.top-a,o=i.left+i.width/2-r/2}s+=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,o+=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,this.tip.setAttribute("style","top: ".concat(s,"px; left: ").concat(o,"px"))}}},{key:"hide",value:function(){z(this.tip,{"fv-plugins-tooltip--hide":!0})}}]),i}(O),Z=function(e){u(i,e);var t=m(i);function i(e){var n;s(this,i),(n=t.call(this,e)).handlers=[],n.timers=new Map;var a=document.createElement("div");return n.defaultEvent="oninput"in a?"input":"keyup",n.opts=Object.assign({},{delay:0,event:n.defaultEvent,threshold:0},e),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.handlers.forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.handlers=[],this.timers.forEach((function(e){return window.clearTimeout(e)})),this.timers.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"prepareHandler",value:function(e,t){var i=this;t.forEach((function(t){var n=[];if(i.opts.event&&!1===i.opts.event[e])n=[];else if(i.opts.event&&i.opts.event[e])n=i.opts.event[e].split(" ");else if("string"==typeof i.opts.event&&i.opts.event!==i.defaultEvent)n=i.opts.event.split(" ");else{var a=t.getAttribute("type"),r=t.tagName.toLowerCase();n=["radio"===a||"checkbox"===a||"file"===a||"select"===r?"change":i.ieVersion>=10&&t.getAttribute("placeholder")?"keyup":i.defaultEvent]}n.forEach((function(n){var a=function(n){return i.handleEvent(n,e,t)};i.handlers.push({element:t,event:n,field:e,handler:a}),t.addEventListener(n,a)}))}))}},{key:"handleEvent",value:function(e,t,i){var n=this;if(this.exceedThreshold(t,i)&&this.core.executeFilter("plugins-trigger-should-validate",!0,[t,i])){var a=function(){return n.core.validateElement(t,i).then((function(a){n.core.emit("plugins.trigger.executed",{element:i,event:e,field:t})}))},r=this.opts.delay[t]||this.opts.delay;if(0===r)a();else{var s=this.timers.get(i);s&&window.clearTimeout(s),this.timers.set(i,window.setTimeout(a,1e3*r))}}}},{key:"onFieldAdded",value:function(e){this.handlers.filter((function(t){return t.field===e.field})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)})),this.prepareHandler(e.field,e.elements)}},{key:"onFieldRemoved",value:function(e){this.handlers.filter((function(t){return t.field===e.field&&e.elements.indexOf(t.element)>=0})).forEach((function(e){return e.element.removeEventListener(e.event,e.handler)}))}},{key:"exceedThreshold",value:function(e,t){var i=0!==this.opts.threshold[e]&&0!==this.opts.threshold&&(this.opts.threshold[e]||this.opts.threshold);if(!i)return!0;var n=t.getAttribute("type");return-1!==["button","checkbox","file","hidden","image","radio","reset","submit"].indexOf(n)||this.core.getElementValue(e,t).length>=i}}]),i}(O),K={Alias:Y,Aria:I,Declarative:j,DefaultSubmit:N,Dependency:H,Excluded:F,FieldStatus:R,Framework:q,Icon:X,Message:V,Sequence:U,SubmitButton:$,Tooltip:G,Trigger:Z};var J={call:x,classSet:z,closest:W,fetch:k,format:b,hasClass:function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )".concat(t,"( |$)"),"gi").test(e.className)},isValidDate:w};e.Plugin=O,e.algorithms=r,e.filters=P,e.formValidation=function(e,t){var i=Object.assign({},{fields:{},locale:"en_US",plugins:{},init:function(e){}},t),n=new E(e,i.fields);return n.setLocale(i.locale,i.localization),Object.keys(i.plugins).forEach((function(e){return n.registerPlugin(e,i.plugins[e])})),Object.keys(D).forEach((function(e){return n.registerValidator(e,D[e])})),i.init(n),Object.keys(i.fields).forEach((function(e){return n.addField(e,i.fields[e])})),n},e.locales={},e.plugins=K,e.utils=J,e.validators=D,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).FormValidation=e.FormValidation||{},e.FormValidation.plugins=e.FormValidation.plugins||{},e.FormValidation.plugins.Bootstrap5=t())}(this,(function(){"use strict";function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)}function r(e){var i=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(e){return!1}}();return function(){var n,r=t(e);if(i){var s=t(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return a(this,n)}}function s(e,i,n){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,i,n){var a=function(e,i){for(;!Object.prototype.hasOwnProperty.call(e,i)&&null!==(e=t(e)););return e}(e,i);if(a){var r=Object.getOwnPropertyDescriptor(a,i);return r.get?r.get.call(n):r.value}},s(e,i,n||e)}var o=FormValidation.utils.classSet,l=FormValidation.utils.hasClass,c=function(a){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,a);var c,u,d,h=r(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=h.call(this,Object.assign({},{eleInvalidClass:"is-invalid",eleValidClass:"is-valid",formClass:"fv-plugins-bootstrap5",rowInvalidClass:"fv-plugins-bootstrap5-row-invalid",rowPattern:/^(.*)(col|offset)(-(sm|md|lg|xl))*-[0-9]+(.*)$/,rowSelector:".row",rowValidClass:"fv-plugins-bootstrap5-row-valid"},e))).eleValidatedHandler=t.handleElementValidated.bind(n(t)),t}return c=f,u=[{key:"install",value:function(){s(t(f.prototype),"install",this).call(this),this.core.on("core.element.validated",this.eleValidatedHandler)}},{key:"uninstall",value:function(){s(t(f.prototype),"install",this).call(this),this.core.off("core.element.validated",this.eleValidatedHandler)}},{key:"handleElementValidated",value:function(e){var t=e.element.getAttribute("type");if(("checkbox"===t||"radio"===t)&&e.elements.length>1&&l(e.element,"form-check-input")){var i=e.element.parentElement;l(i,"form-check")&&l(i,"form-check-inline")&&o(i,{"is-invalid":!e.valid,"is-valid":e.valid})}}},{key:"onIconPlaced",value:function(e){o(e.element,{"fv-plugins-icon-input":!0});var t=e.element.parentElement;l(t,"input-group")&&(t.parentElement.insertBefore(e.iconElement,t.nextSibling),e.element.nextElementSibling&&l(e.element.nextElementSibling,"input-group-text")&&o(e.iconElement,{"fv-plugins-icon-input-group":!0}));var i=e.element.getAttribute("type");if("checkbox"===i||"radio"===i){var n=t.parentElement;l(t,"form-check")?(o(e.iconElement,{"fv-plugins-icon-check":!0}),t.parentElement.insertBefore(e.iconElement,t.nextSibling)):l(t.parentElement,"form-check")&&(o(e.iconElement,{"fv-plugins-icon-check":!0}),n.parentElement.insertBefore(e.iconElement,n.nextSibling))}}},{key:"onMessagePlaced",value:function(e){e.messageElement.classList.add("invalid-feedback");var t=e.element.parentElement;if(l(t,"input-group"))return t.appendChild(e.messageElement),void o(t,{"has-validation":!0});var i=e.element.getAttribute("type");"checkbox"!==i&&"radio"!==i||!l(e.element,"form-check-input")||l(t,"form-check")||e.elements[e.elements.length-1].parentElement.appendChild(e.messageElement)}}],u&&e(c.prototype,u),d&&e(c,d),f}(FormValidation.plugins.Framework);return c})),function(e){"use strict";e.event.special.destroyed||(e.event.special.destroyed={remove:function(e){e.handler&&e.handler()}}),e.fn.extend({maxlength:function(t,i){var n=e("body");function a(e){var t=e.charCodeAt();return t?t<128?1:t<2048?2:3:0}function r(e){return e.split("").map(a).concat(0).reduce((function(e,t){return e+t}))}function s(e){var i=e.val();i=t.twoCharLinebreak?i.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"):i.replace(/(?:\r\n|\r|\n)/g,"\n");var n=0;return n=t.utf8?r(i):i.length,"file"===e.prop("type")&&""!==e.val()&&(n-=12),n}function o(e,t){return t-s(e)}function l(e,t){t.css({display:"block"}),e.trigger("maxlength.shown")}function c(e,i,n){var a="";return t.message?a="function"==typeof t.message?t.message(e,i):t.message.replace("%charsTyped%",n).replace("%charsRemaining%",i-n).replace("%charsTotal%",i):(t.preText&&(a+=t.preText),t.showCharsTyped?a+=n:a+=i-n,t.showMaxLength&&(a+=t.separator+i),t.postText&&(a+=t.postText)),a}function u(e,i,n,a){var r,o,u,d;a&&(a.html(c(i.val(),n,n-e)),e>0?(r=i,o=t.threshold,u=n,d=!0,!t.alwaysShow&&u-s(r)>o&&(d=!1),d?l(i,a.removeClass(t.limitReachedClass+" "+t.limitExceededClass).addClass(t.warningClass)):function(e,i){t.alwaysShow||(i.css({display:"none"}),e.trigger("maxlength.hidden"))}(i,a)):t.limitExceededClass?l(i,0===e?a.removeClass(t.warningClass+" "+t.limitExceededClass).addClass(t.limitReachedClass):a.removeClass(t.warningClass+" "+t.limitReachedClass).addClass(t.limitExceededClass)):l(i,a.removeClass(t.warningClass).addClass(t.limitReachedClass))),t.customMaxAttribute&&(e<0?i.addClass(t.customMaxClass):i.removeClass(t.customMaxClass))}function d(i,n){var a=function(t){var i=t[0];return e.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():{width:i.offsetWidth,height:i.offsetHeight},t.offset())}(i);if("function"!==e.type(t.placement))if(e.isPlainObject(t.placement))!function(i,n){if(i&&n){var a={};e.each(["top","bottom","left","right","position"],(function(e,i){var n=t.placement[i];void 0!==n&&(a[i]=n)})),n.css(a)}}(t.placement,n);else{var r=i.outerWidth(),s=n.outerWidth(),o=n.width(),l=n.height();switch(t.appendToParent&&(a.top-=i.parent().offset().top,a.left-=i.parent().offset().left),t.placement){case"bottom":n.css({top:a.top+a.height,left:a.left+a.width/2-o/2});break;case"top":n.css({top:a.top-l,left:a.left+a.width/2-o/2});break;case"left":n.css({top:a.top+a.height/2-l/2,left:a.left-o});break;case"right":n.css({top:a.top+a.height/2-l/2,left:a.left+a.width});break;case"bottom-right":n.css({top:a.top+a.height,left:a.left+a.width});break;case"top-right":n.css({top:a.top-l,left:a.left+r});break;case"top-left":n.css({top:a.top-l,left:a.left-s});break;case"bottom-left":n.css({top:a.top+i.outerHeight(),left:a.left-s});break;case"centered-right":n.css({top:a.top+l/2,left:a.left+r-s-3});break;case"bottom-right-inside":n.css({top:a.top+a.height,left:a.left+a.width-s});break;case"top-right-inside":n.css({top:a.top-l,left:a.left+r-s});break;case"top-left-inside":n.css({top:a.top-l,left:a.left});break;case"bottom-left-inside":n.css({top:a.top+i.outerHeight(),left:a.left})}}else t.placement(i,n,a)}function h(e){var i=e.attr("maxlength")||t.customMaxAttribute;if(t.customMaxAttribute&&!t.allowOverMax){var n=e.attr(t.customMaxAttribute);(!i||n<i)&&(i=n)}return i||(i=e.attr("size")),i}return e.isFunction(t)&&!i&&(i=t,t={}),t=e.extend({showOnReady:!1,alwaysShow:!0,threshold:0,warningClass:"small form-text text-muted",limitReachedClass:"small form-text text-danger",limitExceededClass:"",separator:" / ",preText:"",postText:"",showMaxLength:!0,placement:"bottom-right-inside",message:null,showCharsTyped:!0,validate:!1,utf8:!1,appendToParent:!1,twoCharLinebreak:!0,customMaxAttribute:null,customMaxClass:"overmax",allowOverMax:!1,zIndex:1099},t),this.each((function(){var i,s,l=e(this);function f(){var a=c(l.val(),i,"0");i=h(l),s||(s=e('<span class="bootstrap-maxlength"></span>').css({display:"none",position:"absolute",whiteSpace:"nowrap",zIndex:t.zIndex}).html(a)),l.is("textarea")&&(l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight()),l.mouseup((function(){l.outerWidth()===l.data("maxlenghtsizex")&&l.outerHeight()===l.data("maxlenghtsizey")||d(l,s),l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight())}))),t.appendToParent?(l.parent().append(s),l.parent().css("position","relative")):n.append(s),u(o(l,h(l)),l,i,s),d(l,s)}e(window).resize((function(){s&&d(l,s)})),t.showOnReady?l.ready((function(){f()})):l.focus((function(){f()})),l.on("maxlength.reposition",(function(){d(l,s)})),l.on("destroyed",(function(){s&&s.remove()})),l.on("blur",(function(){s&&!t.showOnReady&&s.remove()})),l.on("input",(function(){var e=h(l),n=o(l,e),c=!0;return t.validate&&n<0?(!function(e,i){var n=e.val();if(t.twoCharLinebreak&&"\n"===(n=n.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"))[n.length-1]&&(i-=n.length%2),t.utf8){for(var s=n.split("").map(a),o=0,l=r(n)-i;o<l;o+=s.pop());i-=i-s.length}e.val(n.substr(0,i))}(l,e),c=!1):u(n,l,i,s),c}))}))}})}(jQuery),
|
||
/**
|
||
* @version: 3.1
|
||
* @author: Dan Grossman http://www.dangrossman.info/
|
||
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
||
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
||
* @website: http://www.daterangepicker.com/
|
||
*/
|
||
function(e,t){if("function"==typeof define&&define.amd)define(["moment","jquery"],(function(e,i){return i.fn||(i.fn={}),"function"!=typeof e&&e.hasOwnProperty("default")&&(e=e.default),t(e,i)}));else if("object"==typeof module&&module.exports){var i="undefined"!=typeof window?window.jQuery:void 0;i||(i=require("jquery")).fn||(i.fn={});var n="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=t(n,i)}else e.daterangepicker=t(e.moment,e.jQuery)}(this,(function(e,t){var i=function(i,n,a){if(this.parentEl="body",this.element=t(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof n&&null!==n||(n={}),"string"==typeof(n=t.extend(this.element.data(),n)).template||n.template instanceof t||(n.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=n.parentEl&&t(n.parentEl).length?t(n.parentEl):t(this.parentEl),this.container=t(n.template).appendTo(this.parentEl),"object"==typeof n.locale&&("string"==typeof n.locale.direction&&(this.locale.direction=n.locale.direction),"string"==typeof n.locale.format&&(this.locale.format=n.locale.format),"string"==typeof n.locale.separator&&(this.locale.separator=n.locale.separator),"object"==typeof n.locale.daysOfWeek&&(this.locale.daysOfWeek=n.locale.daysOfWeek.slice()),"object"==typeof n.locale.monthNames&&(this.locale.monthNames=n.locale.monthNames.slice()),"number"==typeof n.locale.firstDay&&(this.locale.firstDay=n.locale.firstDay),"string"==typeof n.locale.applyLabel&&(this.locale.applyLabel=n.locale.applyLabel),"string"==typeof n.locale.cancelLabel&&(this.locale.cancelLabel=n.locale.cancelLabel),"string"==typeof n.locale.weekLabel&&(this.locale.weekLabel=n.locale.weekLabel),"string"==typeof n.locale.customRangeLabel)){(f=document.createElement("textarea")).innerHTML=n.locale.customRangeLabel;var r=f.value;this.locale.customRangeLabel=r}if(this.container.addClass(this.locale.direction),"string"==typeof n.startDate&&(this.startDate=e(n.startDate,this.locale.format)),"string"==typeof n.endDate&&(this.endDate=e(n.endDate,this.locale.format)),"string"==typeof n.minDate&&(this.minDate=e(n.minDate,this.locale.format)),"string"==typeof n.maxDate&&(this.maxDate=e(n.maxDate,this.locale.format)),"object"==typeof n.startDate&&(this.startDate=e(n.startDate)),"object"==typeof n.endDate&&(this.endDate=e(n.endDate)),"object"==typeof n.minDate&&(this.minDate=e(n.minDate)),"object"==typeof n.maxDate&&(this.maxDate=e(n.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof n.applyButtonClasses&&(this.applyButtonClasses=n.applyButtonClasses),"string"==typeof n.applyClass&&(this.applyButtonClasses=n.applyClass),"string"==typeof n.cancelButtonClasses&&(this.cancelButtonClasses=n.cancelButtonClasses),"string"==typeof n.cancelClass&&(this.cancelButtonClasses=n.cancelClass),"object"==typeof n.maxSpan&&(this.maxSpan=n.maxSpan),"object"==typeof n.dateLimit&&(this.maxSpan=n.dateLimit),"string"==typeof n.opens&&(this.opens=n.opens),"string"==typeof n.drops&&(this.drops=n.drops),"boolean"==typeof n.showWeekNumbers&&(this.showWeekNumbers=n.showWeekNumbers),"boolean"==typeof n.showISOWeekNumbers&&(this.showISOWeekNumbers=n.showISOWeekNumbers),"string"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses),"object"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses.join(" ")),"boolean"==typeof n.showDropdowns&&(this.showDropdowns=n.showDropdowns),"number"==typeof n.minYear&&(this.minYear=n.minYear),"number"==typeof n.maxYear&&(this.maxYear=n.maxYear),"boolean"==typeof n.showCustomRangeLabel&&(this.showCustomRangeLabel=n.showCustomRangeLabel),"boolean"==typeof n.singleDatePicker&&(this.singleDatePicker=n.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof n.timePicker&&(this.timePicker=n.timePicker),"boolean"==typeof n.timePickerSeconds&&(this.timePickerSeconds=n.timePickerSeconds),"number"==typeof n.timePickerIncrement&&(this.timePickerIncrement=n.timePickerIncrement),"boolean"==typeof n.timePicker24Hour&&(this.timePicker24Hour=n.timePicker24Hour),"boolean"==typeof n.autoApply&&(this.autoApply=n.autoApply),"boolean"==typeof n.autoUpdateInput&&(this.autoUpdateInput=n.autoUpdateInput),"boolean"==typeof n.linkedCalendars&&(this.linkedCalendars=n.linkedCalendars),"function"==typeof n.isInvalidDate&&(this.isInvalidDate=n.isInvalidDate),"function"==typeof n.isCustomDate&&(this.isCustomDate=n.isCustomDate),"boolean"==typeof n.alwaysShowCalendars&&(this.alwaysShowCalendars=n.alwaysShowCalendars),0!=this.locale.firstDay)for(var s=this.locale.firstDay;s>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),s--;var o,l,c;if(void 0===n.startDate&&void 0===n.endDate&&t(this.element).is(":text")){var u=t(this.element).val(),d=u.split(this.locale.separator);o=l=null,2==d.length?(o=e(d[0],this.locale.format),l=e(d[1],this.locale.format)):this.singleDatePicker&&""!==u&&(o=e(u,this.locale.format),l=e(u,this.locale.format)),null!==o&&null!==l&&(this.setStartDate(o),this.setEndDate(l))}if("object"==typeof n.ranges){for(c in n.ranges){o="string"==typeof n.ranges[c][0]?e(n.ranges[c][0],this.locale.format):e(n.ranges[c][0]),l="string"==typeof n.ranges[c][1]?e(n.ranges[c][1],this.locale.format):e(n.ranges[c][1]),this.minDate&&o.isBefore(this.minDate)&&(o=this.minDate.clone());var h=this.maxDate;if(this.maxSpan&&h&&o.clone().add(this.maxSpan).isAfter(h)&&(h=o.clone().add(this.maxSpan)),h&&l.isAfter(h)&&(l=h.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||h&&o.isAfter(h,this.timepicker?"minute":"day"))){var f;(f=document.createElement("textarea")).innerHTML=c;r=f.value;this.ranges[r]=[o,l]}}var p="<ul>";for(c in this.ranges)p+='<li data-range-key="'+c+'">'+c+"</li>";this.showCustomRangeLabel&&(p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),p+="</ul>",this.container.find(".ranges").prepend(p)}"function"==typeof a&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof n.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===n.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",t.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",t.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",t.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",t.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",t.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",t.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",t.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",t.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":t.proxy(this.show,this),"focus.daterangepicker":t.proxy(this.show,this),"keyup.daterangepicker":t.proxy(this.elementChanged,this),"keydown.daterangepicker":t.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",t.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",t.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(t){"string"==typeof t&&(this.startDate=e(t,this.locale.format)),"object"==typeof t&&(this.startDate=e(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=e(t,this.locale.format)),"object"==typeof t&&(this.endDate=e(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var e,t,i,n;if(this.endDate){if(e=parseInt(this.container.find(".left .hourselect").val(),10),t=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===n&&12===e&&(e=0)}else if(e=parseInt(this.container.find(".right .hourselect").val(),10),t=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===n&&12===e&&(e=0);this.leftCalendar.month.hour(e).minute(t).second(i),this.rightCalendar.month.hour(e).minute(t).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var n,a=(n="left"==i?this.leftCalendar:this.rightCalendar).month.month(),r=n.month.year(),s=n.month.hour(),o=n.month.minute(),l=n.month.second(),c=e([r,a]).daysInMonth(),u=e([r,a,1]),d=e([r,a,c]),h=e(u).subtract(1,"month").month(),f=e(u).subtract(1,"month").year(),p=e([f,h]).daysInMonth(),m=u.day();(n=[]).firstDay=u,n.lastDay=d;for(var g=0;g<6;g++)n[g]=[];var v=p-m+this.locale.firstDay+1;v>p&&(v-=7),m==this.locale.firstDay&&(v=p-6);for(var y=e([f,h,v,12,o,l]),b=(g=0,0),x=0;g<42;g++,b++,y=e(y).add(24,"hour"))g>0&&b%7==0&&(b=0,x++),n[x][b]=y.clone().hour(s).minute(o).second(l),y.hour(12),this.minDate&&n[x][b].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&n[x][b].isBefore(this.minDate)&&"left"==i&&(n[x][b]=this.minDate.clone()),this.maxDate&&n[x][b].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&n[x][b].isAfter(this.maxDate)&&"right"==i&&(n[x][b]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=n:this.rightCalendar.calendar=n;var _="left"==i?this.minDate:this.startDate,w=this.maxDate,k=("left"==i?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');k+="<thead>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+="<th></th>"),_&&!_.isBefore(n.firstDay)||this.linkedCalendars&&"left"!=i?k+="<th></th>":k+='<th class="prev available"><span></span></th>';var M=this.locale.monthNames[n[1][1].month()]+n[1][1].format(" YYYY");if(this.showDropdowns){for(var L=n[1][1].month(),S=n[1][1].year(),A=w&&w.year()||this.maxYear,T=_&&_.year()||this.minYear,C=S==T,D=S==A,E='<select class="monthselect">',O=0;O<12;O++)(!C||_&&O>=_.month())&&(!D||w&&O<=w.month())?E+="<option value='"+O+"'"+(O===L?" selected='selected'":"")+">"+this.locale.monthNames[O]+"</option>":E+="<option value='"+O+"'"+(O===L?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[O]+"</option>";E+="</select>";for(var P='<select class="yearselect">',Y=T;Y<=A;Y++)P+='<option value="'+Y+'"'+(Y===S?' selected="selected"':"")+">"+Y+"</option>";M=E+(P+="</select>")}if(k+='<th colspan="5" class="month">'+M+"</th>",w&&!w.isAfter(n.lastDay)||this.linkedCalendars&&"right"!=i&&!this.singleDatePicker?k+="<th></th>":k+='<th class="next available"><span></span></th>',k+="</tr>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='<th class="week">'+this.locale.weekLabel+"</th>"),t.each(this.locale.daysOfWeek,(function(e,t){k+="<th>"+t+"</th>"})),k+="</tr>",k+="</thead>",k+="<tbody>",null==this.endDate&&this.maxSpan){var I=this.startDate.clone().add(this.maxSpan).endOf("day");w&&!I.isBefore(w)||(w=I)}for(x=0;x<6;x++){k+="<tr>",this.showWeekNumbers?k+='<td class="week">'+n[x][0].week()+"</td>":this.showISOWeekNumbers&&(k+='<td class="week">'+n[x][0].isoWeek()+"</td>");for(b=0;b<7;b++){var j=[];n[x][b].isSame(new Date,"day")&&j.push("today"),n[x][b].isoWeekday()>5&&j.push("weekend"),n[x][b].month()!=n[1][1].month()&&j.push("off","ends"),this.minDate&&n[x][b].isBefore(this.minDate,"day")&&j.push("off","disabled"),w&&n[x][b].isAfter(w,"day")&&j.push("off","disabled"),this.isInvalidDate(n[x][b])&&j.push("off","disabled"),n[x][b].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&j.push("active","start-date"),null!=this.endDate&&n[x][b].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&j.push("active","end-date"),null!=this.endDate&&n[x][b]>this.startDate&&n[x][b]<this.endDate&&j.push("in-range");var N=this.isCustomDate(n[x][b]);!1!==N&&("string"==typeof N?j.push(N):Array.prototype.push.apply(j,N));var H="",F=!1;for(g=0;g<j.length;g++)H+=j[g]+" ","disabled"==j[g]&&(F=!0);F||(H+="available"),k+='<td class="'+H.replace(/^\s+|\s+$/g,"")+'" data-title="r'+x+"c"+b+'">'+n[x][b].date()+"</td>"}k+="</tr>"}k+="</tbody>",k+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(k)},renderTimePicker:function(e){if("right"!=e||this.endDate){var t,i,n,a=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(a=this.startDate.clone().add(this.maxSpan)),"left"==e)i=this.startDate.clone(),n=this.minDate;else if("right"==e){i=this.endDate.clone(),n=this.startDate;var r=this.container.find(".drp-calendar.right .calendar-time");if(""!=r.html()&&(i.hour(isNaN(i.hour())?r.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?r.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?r.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var s=r.find(".ampmselect option:selected").val();"PM"===s&&i.hour()<12&&i.hour(i.hour()+12),"AM"===s&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),a&&i.isAfter(a)&&(i=a.clone())}t='<select class="hourselect">';for(var o=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=o;c<=l;c++){var u=c;this.timePicker24Hour||(u=i.hour()>=12?12==c?12:c+12:12==c?0:c);var d=i.clone().hour(u),h=!1;n&&d.minute(59).isBefore(n)&&(h=!0),a&&d.minute(0).isAfter(a)&&(h=!0),u!=i.hour()||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":t+='<option value="'+c+'" selected="selected">'+c+"</option>"}t+="</select> ",t+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var f=c<10?"0"+c:c;d=i.clone().minute(c),h=!1;n&&d.second(59).isBefore(n)&&(h=!0),a&&d.second(0).isAfter(a)&&(h=!0),i.minute()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":t+='<option value="'+c+'" selected="selected">'+f+"</option>"}if(t+="</select> ",this.timePickerSeconds){t+=': <select class="secondselect">';for(c=0;c<60;c++){f=c<10?"0"+c:c,d=i.clone().second(c),h=!1;n&&d.isBefore(n)&&(h=!0),a&&d.isAfter(a)&&(h=!0),i.second()!=c||h?t+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":t+='<option value="'+c+'" selected="selected">'+f+"</option>"}t+="</select> "}if(!this.timePicker24Hour){t+='<select class="ampmselect">';var p="",m="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(p=' disabled="disabled" class="disabled"'),a&&i.clone().hour(0).minute(0).second(0).isAfter(a)&&(m=' disabled="disabled" class="disabled"'),i.hour()>=12?t+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":t+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",t+="</select>"}this.container.find(".drp-calendar."+e+" .calendar-time").html(t)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var e,i={top:0,left:0},n=this.drops,a=t(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},a=this.parentEl[0].clientWidth+this.parentEl.offset().left),n){case"auto":(e=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(e=this.element.offset().top-this.container.outerHeight()-i.top,n="up");break;case"up":e=this.element.offset().top-this.container.outerHeight()-i.top;break;default:e=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var r=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==n),"left"==this.opens){var s=a-this.element.offset().left-this.element.outerWidth();r+s>t(window).width()?this.container.css({top:e,right:"auto",left:9}):this.container.css({top:e,right:s,left:"auto"})}else if("center"==this.opens){(o=this.element.offset().left-i.left+this.element.outerWidth()/2-r/2)<0?this.container.css({top:e,right:"auto",left:9}):o+r>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:o,right:"auto"})}else{var o;(o=this.element.offset().left-i.left)+r>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:o,right:"auto"})}},show:function(e){this.isShowing||(this._outsideClickProxy=t.proxy((function(e){this.outsideClick(e)}),this),t(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),t(window).on("resize.daterangepicker",t.proxy((function(e){this.move(e)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(e){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),t(document).off(".daterangepicker"),t(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(e){this.isShowing?this.hide():this.show()},outsideClick:function(e){var i=t(e.target);"focusin"==e.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(e){var t=e.target.getAttribute("data-range-key");if(this.chosenLabel=t,t==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[t];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(e){if(t(e.target).hasClass("available")){var i=t(e.target).attr("data-title"),n=i.substr(1,1),a=i.substr(3,1),r=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a],s=this.leftCalendar,o=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(e,i){if(!t(i).hasClass("week")){var n=t(i).attr("data-title"),a=n.substr(1,1),c=n.substr(3,1),u=t(i).parents(".drp-calendar").hasClass("left")?s.calendar[a][c]:o.calendar[a][c];u.isAfter(l)&&u.isBefore(r)||u.isSame(r,"day")?t(i).addClass("in-range"):t(i).removeClass("in-range")}}))}},clickDate:function(e){if(t(e.target).hasClass("available")){var i=t(e.target).attr("data-title"),n=i.substr(1,1),a=i.substr(3,1),r=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a];if(this.endDate||r.isBefore(this.startDate,"day")){if(this.timePicker){var s=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".left .ampmselect").val())&&s<12&&(s+=12),"AM"===c&&12===s&&(s=0);var o=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;r=r.clone().hour(s).minute(o).second(l)}this.endDate=null,this.setStartDate(r.clone())}else if(!this.endDate&&r.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var c;s=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".right .ampmselect").val())&&s<12&&(s+=12),"AM"===c&&12===s&&(s=0);o=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10));l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;r=r.clone().hour(s).minute(o).second(l)}this.setEndDate(r.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),e.stopPropagation()}},calculateChosenLabel:function(){var e=!0,t=0;for(var i in this.ranges){if(this.timePicker){var n=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(n)==this.ranges[i][0].format(n)&&this.endDate.format(n)==this.ranges[i][1].format(n)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}t++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(e){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var i=t(e.target).closest(".drp-calendar").hasClass("left"),n=i?"left":"right",a=this.container.find(".drp-calendar."+n),r=parseInt(a.find(".monthselect").val(),10),s=a.find(".yearselect").val();i||(s<this.startDate.year()||s==this.startDate.year()&&r<this.startDate.month())&&(r=this.startDate.month(),s=this.startDate.year()),this.minDate&&(s<this.minDate.year()||s==this.minDate.year()&&r<this.minDate.month())&&(r=this.minDate.month(),s=this.minDate.year()),this.maxDate&&(s>this.maxDate.year()||s==this.maxDate.year()&&r>this.maxDate.month())&&(r=this.maxDate.month(),s=this.maxDate.year()),i?(this.leftCalendar.month.month(r).year(s),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(r).year(s),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(e){var i=t(e.target).closest(".drp-calendar"),n=i.hasClass("left"),a=parseInt(i.find(".hourselect").val(),10),r=parseInt(i.find(".minuteselect").val(),10);isNaN(r)&&(r=parseInt(i.find(".minuteselect option:last").val(),10));var s=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=i.find(".ampmselect").val();"PM"===o&&a<12&&(a+=12),"AM"===o&&12===a&&(a=0)}if(n){var l=this.startDate.clone();l.hour(a),l.minute(r),l.second(s),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(a),c.minute(r),c.second(s),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),i=null,n=null;2===t.length&&(i=e(t[0],this.locale.format),n=e(t[1],this.locale.format)),(this.singleDatePicker||null===i||null===n)&&(n=i=e(this.element.val(),this.locale.format)),i.isValid()&&n.isValid()&&(this.setStartDate(i),this.setEndDate(n),this.updateView())}},keydown:function(e){9!==e.keyCode&&13!==e.keyCode||this.hide(),27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var e=this.startDate.format(this.locale.format);this.singleDatePicker||(e+=this.locale.separator+this.endDate.format(this.locale.format)),e!==this.element.val()&&this.element.val(e).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},t.fn.daterangepicker=function(e,n){var a=t.extend(!0,{},t.fn.daterangepicker.defaultOptions,e);return this.each((function(){var e=t(this);e.data("daterangepicker")&&e.data("daterangepicker").remove(),e.data("daterangepicker",new i(e,a,n))})),this},i})),function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,(function(){return function(){"use strict";var e={4528:function(e){e.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"Z":90,"CONTROL":17,"PAUSE/BREAK":19,"WINDOWS_LEFT":91,"WINDOWS_RIGHT":92,"KEY_229":229}')},8741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=i},3976:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=i(4528))&&n.__esModule?n:{default:n},r={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[a.default.BACKSPACE,a.default.TAB,a.default["PAUSE/BREAK"],a.default.ESCAPE,a.default.PAGE_UP,a.default.PAGE_DOWN,a.default.END,a.default.HOME,a.default.LEFT,a.default.UP,a.default.RIGHT,a.default.DOWN,a.default.INSERT,a.default.DELETE,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3};t.default=r},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(void 0===i)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=i}},3776:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.on=function(e,t){function i(e,i){a.addEventListener?a.addEventListener(e,t,!1):a.attachEvent&&a.attachEvent("on"+e,t),n[e]=n[e]||{},n[e][i]=n[e][i]||[],n[e][i].push(t)}if(c(this[0]))for(var n=this[0].eventRegistry,a=this[0],r=e.split(" "),s=0;s<r.length;s++){var o=r[s].split(".");i(o[0],o[1]||"global")}return this},t.off=function(e,t){var i,n;function a(e,t,a){if(e in i==1)if(n.removeEventListener?n.removeEventListener(e,a,!1):n.detachEvent&&n.detachEvent("on"+e,a),"global"===t)for(var r in i[e])i[e][r].splice(i[e][r].indexOf(a),1);else i[e][t].splice(i[e][t].indexOf(a),1)}function r(e,n){var a,r,s=[];if(e.length>0)if(void 0===t)for(a=0,r=i[e][n].length;a<r;a++)s.push({ev:e,namespace:n&&n.length>0?n:"global",handler:i[e][n][a]});else s.push({ev:e,namespace:n&&n.length>0?n:"global",handler:t});else if(n.length>0)for(var o in i)for(var l in i[o])if(l===n)if(void 0===t)for(a=0,r=i[o][l].length;a<r;a++)s.push({ev:o,namespace:l,handler:i[o][l][a]});else s.push({ev:o,namespace:l,handler:t});return s}if(c(this[0])&&e){i=this[0].eventRegistry,n=this[0];for(var s=e.split(" "),o=0;o<s.length;o++)for(var l=s[o].split("."),u=r(l[0],l[1]),d=0,h=u.length;d<h;d++)a(u[d].ev,u[d].namespace,u[d].handler)}return this},t.trigger=function(e){if(c(this[0]))for(var t=this[0].eventRegistry,i=this[0],n="string"==typeof e?e.split(" "):[e.type],r=0;r<n.length;r++){var o=n[r].split("."),l=o[0],u=o[1]||"global";if(void 0!==document&&"global"===u){var d,h,f={bubbles:!0,cancelable:!0,detail:arguments[1]};if(document.createEvent){try{if("input"===l)f.inputType="insertText",d=new InputEvent(l,f);else d=new CustomEvent(l,f)}catch(e){(d=document.createEvent("CustomEvent")).initCustomEvent(l,f.bubbles,f.cancelable,f.detail)}e.type&&(0,a.default)(d,e),i.dispatchEvent(d)}else(d=document.createEventObject()).eventType=l,d.detail=arguments[1],e.type&&(0,a.default)(d,e),i.fireEvent("on"+d.eventType,d)}else if(void 0!==t[l])if(arguments[0]=arguments[0].type?arguments[0]:s.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1),"global"===u)for(var p in t[l])for(h=0;h<t[l][p].length;h++)t[l][p][h].apply(i,arguments);else for(h=0;h<t[l][u].length;h++)t[l][u][h].apply(i,arguments)}return this},t.Event=void 0;var n,a=l(i(600)),r=l(i(9380)),s=l(i(4963)),o=l(i(8741));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return e instanceof Element}t.Event=n,"function"==typeof r.default.CustomEvent?t.Event=n=r.default.CustomEvent:o.default&&(t.Event=n=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i},n.prototype=r.default.Event.prototype)},600:function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){var t,n,a,r,s,o,l=arguments[0]||{},c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[c]||{},c++),"object"!==i(l)&&"function"!=typeof l&&(l={});c<u;c++)if(null!=(t=arguments[c]))for(n in t)a=l[n],l!==(r=t[n])&&(d&&r&&("[object Object]"===Object.prototype.toString.call(r)||(s=Array.isArray(r)))?(s?(s=!1,o=a&&Array.isArray(a)?a:[]):o=a&&"[object Object]"===Object.prototype.toString.call(a)?a:{},l[n]=e(d,o,r)):void 0!==r&&(l[n]=r));return l}},4963:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(i(600)),a=o(i(9380)),r=o(i(253)),s=i(3776);function o(e){return e&&e.__esModule?e:{default:e}}var l=a.default.document;function c(e){return e instanceof c?e:this instanceof c?void(null!=e&&e!==a.default&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:l.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new c(e)}c.prototype={on:s.on,off:s.off,trigger:s.trigger},c.extend=n.default,c.data=r.default,c.Event=s.Event;var u=c;t.default=u},9845:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.iphone=t.iemobile=t.mobile=t.ie=t.ua=void 0;var n,a=(n=i(9380))&&n.__esModule?n:{default:n},r=a.default.navigator&&a.default.navigator.userAgent||"",s=r.indexOf("MSIE ")>0||r.indexOf("Trident/")>0,o="ontouchstart"in a.default,l=/iemobile/i.test(r),c=/iphone/i.test(r)&&!l;t.iphone=c,t.iemobile=l,t.mobile=o,t.ie=s,t.ua=r},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(i,"\\$1")};var i=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var n,a=i(8711),r=(n=i(4528))&&n.__esModule?n:{default:n},s=i(9845),o=i(7215),l=i(7760),c=i(4713),u={keydownEvent:function(e){var t=this.inputmask,i=t.opts,n=t.dependencyLib,u=t.maskset,d=this,h=n(d),f=e.keyCode,p=a.caret.call(t,d),m=i.onKeyDown.call(this,e,a.getBuffer.call(t),p,i);if(void 0!==m)return m;if(f===r.default.BACKSPACE||f===r.default.DELETE||s.iphone&&f===r.default.BACKSPACE_SAFARI||e.ctrlKey&&f===r.default.X&&!("oncut"in d))e.preventDefault(),o.handleRemove.call(t,d,f,p),(0,l.writeBuffer)(d,a.getBuffer.call(t,!0),u.p,e,d.inputmask._valueGet()!==a.getBuffer.call(t).join(""));else if(f===r.default.END||f===r.default.PAGE_DOWN){e.preventDefault();var g=a.seekNext.call(t,a.getLastValidPosition.call(t));a.caret.call(t,d,e.shiftKey?p.begin:g,g,!0)}else f===r.default.HOME&&!e.shiftKey||f===r.default.PAGE_UP?(e.preventDefault(),a.caret.call(t,d,0,e.shiftKey?p.begin:0,!0)):i.undoOnEscape&&f===r.default.ESCAPE&&!0!==e.altKey?((0,l.checkVal)(d,!0,!1,t.undoValue.split("")),h.trigger("click")):!0===i.tabThrough&&f===r.default.TAB?!0===e.shiftKey?(p.end=a.seekPrevious.call(t,p.end,!0),!0===c.getTest.call(t,p.end-1).match.static&&p.end--,p.begin=a.seekPrevious.call(t,p.end,!0),p.begin>=0&&p.end>0&&(e.preventDefault(),a.caret.call(t,d,p.begin,p.end))):(p.begin=a.seekNext.call(t,p.begin,!0),p.end=a.seekNext.call(t,p.begin,!0),p.end<u.maskLength&&p.end--,p.begin<=u.maskLength&&(e.preventDefault(),a.caret.call(t,d,p.begin,p.end))):e.shiftKey||i.insertModeVisual&&!1===i.insertMode&&(f===r.default.RIGHT?setTimeout((function(){var e=a.caret.call(t,d);a.caret.call(t,d,e.begin)}),0):f===r.default.LEFT&&setTimeout((function(){var e=a.translatePosition.call(t,d.inputmask.caretPos.begin);a.translatePosition.call(t,d.inputmask.caretPos.end),t.isRTL?a.caret.call(t,d,e+(e===u.maskLength?0:1)):a.caret.call(t,d,e-(0===e?0:1))}),0));t.ignorable=i.ignorables.includes(f)},keypressEvent:function(e,t,i,n,s){var c=this.inputmask||this,u=c.opts,d=c.dependencyLib,h=c.maskset,f=c.el,p=d(f),m=e.which||e.charCode||e.keyCode;if(!(!0===t||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||c.ignorable))return m===r.default.ENTER&&c.undoValue!==c._valueGet(!0)&&(c.undoValue=c._valueGet(!0),setTimeout((function(){p.trigger("change")}),0)),c.skipInputEvent=!0,!0;if(m){44!==m&&46!==m||3!==e.location||""===u.radixPoint||(m=u.radixPoint.charCodeAt(0));var g,v=t?{begin:s,end:s}:a.caret.call(c,f),y=String.fromCharCode(m);h.writeOutBuffer=!0;var b=o.isValid.call(c,v,y,n,void 0,void 0,void 0,t);if(!1!==b&&(a.resetMaskSet.call(c,!0),g=void 0!==b.caret?b.caret:a.seekNext.call(c,b.pos.begin?b.pos.begin:b.pos),h.p=g),g=u.numericInput&&void 0===b.caret?a.seekPrevious.call(c,g):g,!1!==i&&(setTimeout((function(){u.onKeyValidation.call(f,m,b)}),0),h.writeOutBuffer&&!1!==b)){var x=a.getBuffer.call(c);(0,l.writeBuffer)(f,x,g,e,!0!==t)}if(e.preventDefault(),t)return!1!==b&&(b.forwardPosition=g),b}},keyupEvent:function(e){var t=this.inputmask;!t.isComposing||e.keyCode!==r.default.KEY_229&&e.keyCode!==r.default.ENTER||t.$el.trigger("input")},pasteEvent:function(e){var t,i=this.inputmask,n=i.opts,r=i._valueGet(!0),s=a.caret.call(i,this);i.isRTL&&(t=s.end,s.end=s.begin,s.begin=t);var o=r.substr(0,s.begin),c=r.substr(s.end,r.length);if(o==(i.isRTL?a.getBufferTemplate.call(i).slice().reverse():a.getBufferTemplate.call(i)).slice(0,s.begin).join("")&&(o=""),c==(i.isRTL?a.getBufferTemplate.call(i).slice().reverse():a.getBufferTemplate.call(i)).slice(s.end).join("")&&(c=""),window.clipboardData&&window.clipboardData.getData)r=o+window.clipboardData.getData("Text")+c;else{if(!e.clipboardData||!e.clipboardData.getData)return!0;r=o+e.clipboardData.getData("text/plain")+c}var u=r;if("function"==typeof n.onBeforePaste){if(!1===(u=n.onBeforePaste.call(i,r,n)))return e.preventDefault();u||(u=r)}return(0,l.checkVal)(this,!0,!1,u.toString().split(""),e),e.preventDefault()},inputFallBackEvent:function(e){var t=this.inputmask,i=t.opts,n=t.dependencyLib,o=this,d=o.inputmask._valueGet(!0),h=(t.isRTL?a.getBuffer.call(t).slice().reverse():a.getBuffer.call(t)).join(""),f=a.caret.call(t,o,void 0,void 0,!0);if(h!==d){var p=function(e,n,r){for(var s,o,l,u=e.substr(0,r.begin).split(""),d=e.substr(r.begin).split(""),h=n.substr(0,r.begin).split(""),f=n.substr(r.begin).split(""),p=u.length>=h.length?u.length:h.length,m=d.length>=f.length?d.length:f.length,g="",v=[],y="~";u.length<p;)u.push(y);for(;h.length<p;)h.push(y);for(;d.length<m;)d.unshift(y);for(;f.length<m;)f.unshift(y);var b=u.concat(d),x=h.concat(f);for(o=0,s=b.length;o<s;o++)switch(l=c.getPlaceholder.call(t,a.translatePosition.call(t,o)),g){case"insertText":x[o-1]===b[o]&&r.begin==b.length-1&&v.push(b[o]),o=s;break;case"insertReplacementText":case"deleteContentBackward":b[o]===y?r.end++:o=s;break;default:b[o]!==x[o]&&(b[o+1]!==y&&b[o+1]!==l&&void 0!==b[o+1]||(x[o]!==l||x[o+1]!==y)&&x[o]!==y?x[o+1]===y&&x[o]===b[o+1]?(g="insertText",v.push(b[o]),r.begin--,r.end--):b[o]!==l&&b[o]!==y&&(b[o+1]===y||x[o]!==b[o]&&x[o+1]===b[o+1])?(g="insertReplacementText",v.push(b[o]),r.begin--):b[o]===y?(g="deleteContentBackward",(a.isMask.call(t,a.translatePosition.call(t,o),!0)||x[o]===i.radixPoint)&&r.end++):o=s:(g="insertText",v.push(b[o]),r.begin--,r.end--))}return{action:g,data:v,caret:r}}(d=function(e,i,n){if(s.iemobile){var r=i.replace(a.getBuffer.call(t).join(""),"");if(1===r.length){var o=i.split("");o.splice(n.begin,0,r),i=o.join("")}}return i}(0,d,f),h,f);switch((o.inputmask.shadowRoot||o.ownerDocument).activeElement!==o&&o.focus(),(0,l.writeBuffer)(o,a.getBuffer.call(t)),a.caret.call(t,o,f.begin,f.end,!0),p.action){case"insertText":case"insertReplacementText":p.data.forEach((function(e,i){var a=new n.Event("keypress");a.which=e.charCodeAt(0),t.ignorable=!1,u.keypressEvent.call(o,a)})),setTimeout((function(){t.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var m=new n.Event("keydown");m.keyCode=r.default.BACKSPACE,u.keydownEvent.call(o,m);break;default:(0,l.applyInputValue)(o,d)}e.preventDefault()}},compositionendEvent:function(e){var t=this.inputmask;t.isComposing=!1,t.$el.trigger("input")},setValueEvent:function(e){var t=this.inputmask,i=this,n=e&&e.detail?e.detail[0]:arguments[1];void 0===n&&(n=i.inputmask._valueGet(!0)),(0,l.applyInputValue)(i,n),(e.detail&&void 0!==e.detail[1]||void 0!==arguments[2])&&a.caret.call(t,i,e.detail?e.detail[1]:arguments[2])},focusEvent:function(e){var t=this.inputmask,i=t.opts,n=this,r=n.inputmask._valueGet();i.showMaskOnFocus&&r!==a.getBuffer.call(t).join("")&&(0,l.writeBuffer)(n,a.getBuffer.call(t),a.seekNext.call(t,a.getLastValidPosition.call(t))),!0!==i.positionCaretOnTab||!1!==t.mouseEnter||o.isComplete.call(t,a.getBuffer.call(t))&&-1!==a.getLastValidPosition.call(t)||u.clickEvent.apply(n,[e,!0]),t.undoValue=t._valueGet(!0)},invalidEvent:function(e){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var e=this.inputmask,t=e.opts,i=this;e.mouseEnter=!1,t.clearMaskOnLostFocus&&(i.inputmask.shadowRoot||i.ownerDocument).activeElement!==i&&(0,l.HandleNativePlaceholder)(i,e.originalPlaceholder)},clickEvent:function(e,t){var i=this.inputmask,n=this;if((n.inputmask.shadowRoot||n.ownerDocument).activeElement===n){var r=a.determineNewCaretPosition.call(i,a.caret.call(i,n),t);void 0!==r&&a.caret.call(i,n,r)}},cutEvent:function(e){var t=this.inputmask,i=t.maskset,n=this,s=a.caret.call(t,n),c=window.clipboardData||e.clipboardData,u=t.isRTL?a.getBuffer.call(t).slice(s.end,s.begin):a.getBuffer.call(t).slice(s.begin,s.end);c.setData("text",t.isRTL?u.reverse().join(""):u.join("")),document.execCommand&&document.execCommand("copy"),o.handleRemove.call(t,n,r.default.DELETE,s),(0,l.writeBuffer)(n,a.getBuffer.call(t),i.p,e,t.undoValue!==t._valueGet(!0))},blurEvent:function(e){var t=this.inputmask,i=t.opts,n=(0,t.dependencyLib)(this),r=this;if(r.inputmask){(0,l.HandleNativePlaceholder)(r,t.originalPlaceholder);var s=r.inputmask._valueGet(),c=a.getBuffer.call(t).slice();""!==s&&(i.clearMaskOnLostFocus&&(-1===a.getLastValidPosition.call(t)&&s===a.getBufferTemplate.call(t).join("")?c=[]:l.clearOptionalTail.call(t,c)),!1===o.isComplete.call(t,c)&&(setTimeout((function(){n.trigger("incomplete")}),0),i.clearIncomplete&&(a.resetMaskSet.call(t),c=i.clearMaskOnLostFocus?[]:a.getBufferTemplate.call(t).slice())),(0,l.writeBuffer)(r,c,void 0,e)),t.undoValue!==t._valueGet(!0)&&(t.undoValue=t._valueGet(!0),n.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts,i=this;if(e.mouseEnter=!0,(i.inputmask.shadowRoot||i.ownerDocument).activeElement!==i){var n=(e.isRTL?a.getBufferTemplate.call(e).slice().reverse():a.getBufferTemplate.call(e)).join("");e.placeholder!==n&&i.placeholder!==e.originalPlaceholder&&(e.originalPlaceholder=i.placeholder),t.showMaskOnHover&&(0,l.HandleNativePlaceholder)(i,n)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),t.clearMaskOnLostFocus&&-1===a.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===a.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===o.isComplete.call(e,a.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,l.writeBuffer)(e.el,a.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,l.applyInputValue)(e.el,e._valueGet(!0))}),0)}};t.EventHandlers=u},9716:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var n=o(i(2394)),a=o(i(4528)),r=i(8711),s=i(7760);function o(e){return e&&e.__esModule?e:{default:e}}var l={on:function(e,t,i){var o=e.inputmask.dependencyLib,l=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var l,c=this,u=c.inputmask,d=u?u.opts:void 0;if(void 0===u&&"FORM"!==this.nodeName){var h=o.data(c,"_inputmask_opts");o(c).off(),h&&new n.default(h).mask(c)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(c.disabled||c.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===d.tabThrough&&t.keyCode===a.default.TAB))){switch(t.type){case"input":if(!0===u.skipInputEvent||t.inputType&&"insertCompositionText"===t.inputType)return u.skipInputEvent=!1,t.preventDefault();break;case"keydown":u.skipKeyPressEvent=!1,u.skipInputEvent=u.isComposing=t.keyCode===a.default.KEY_229;break;case"keyup":case"compositionend":u.isComposing&&(u.skipInputEvent=!1);break;case"keypress":if(!0===u.skipKeyPressEvent)return t.preventDefault();u.skipKeyPressEvent=!0;break;case"click":case"focus":return u.validationEvent?(u.validationEvent=!1,e.blur(),(0,s.HandleNativePlaceholder)(e,(u.isRTL?r.getBufferTemplate.call(u).slice().reverse():r.getBufferTemplate.call(u)).join("")),setTimeout((function(){e.focus()}),d.validationEventTimeOut),!1):(l=arguments,setTimeout((function(){e.inputmask&&i.apply(c,l)}),0),!1)}var f=i.apply(c,arguments);return!1===f&&(t.preventDefault(),t.stopPropagation()),f}t.preventDefault()}};["submit","reset"].includes(t)?(l=l.bind(e),null!==e.form&&o(e.form).on(t,l)):o(e).on(t,l),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(l)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var i=e.inputmask.dependencyLib,n=e.inputmask.events;for(var a in t&&((n=[])[t]=e.inputmask.events[t]),n){for(var r=n[a];r.length>0;){var s=r.pop();["submit","reset"].includes(a)?null!==e.form&&i(e.form).off(a,s):i(e).off(a,s)}delete e.inputmask.events[a]}}}};t.EventRuler=l},219:function(e,t,i){var n=l(i(2394)),a=l(i(4528)),r=l(i(7184)),s=i(8711);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return e&&e.__esModule?e:{default:e}}var c=n.default.dependencyLib,u=(new Date).getFullYear(),d={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return b(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return b(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return b(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return b(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return b(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return b(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return b(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return b(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return b(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return b(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return b(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]",f,"ampm",p,1],tt:["[ap]m",f,"ampm",p,2],T:["[AP]",f,"ampm",p,1],TT:["[AP]M",f,"ampm",p,2],Z:[""],o:[""],S:[""]},h={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function f(e){e.toLowerCase().includes("p")&&this.setHours(this.getHours()+12)}function p(){}function m(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var i=d[e[0][0]+"x"].slice("");return i[0]=i[0](t[0]),i[3]=i[3](t[0]),i}if(d[e[0]])return d[e[0]]}function g(e){if(!e.tokenizer){var t=[],i=[];for(var n in d)if(/\.*x$/.test(n)){var a=n[0]+"\\d+";-1===i.indexOf(a)&&i.push(a)}else-1===t.indexOf(n[0])&&t.push(n[0]);e.tokenizer="("+(i.length>0?i.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function v(e,t,i){if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&!Number.isFinite(e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var n=w(t.pos,i);if("yyyy"===n.targetMatch[0]&&t.pos-n.targetMatchIndex==2)return t.remove=t.pos+1,t}else if("02"==e.month&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=s.seekNext.call(this,t.pos+1),t;return!1}function y(e,t,i,n){var a,s,o="";for(g(i).lastIndex=0;a=g(i).exec(e);)if(void 0===t)if(s=m(a))o+="("+s[0]+")";else switch(a[0]){case"[":o+="(";break;case"]":o+=")?";break;default:o+=(0,r.default)(a[0])}else(s=m(a))?!0!==n&&s[3]?o+=s[3].call(t.date):s[2]?o+=t["raw"+s[2]]:o+=a[0]:o+=a[0];return o}function b(e,t,i){for(e=String(e),t=t||2;e.length<t;)e=i?e+"0":"0"+e;return e}function x(e,t,i){var n,a,r,s={date:new Date(1,0,1)},l=e;function c(e,t,i){if(e[n]="ampm"===n?t:t.replace(/[^0-9]/g,"0"),e["raw"+n]=t,void 0!==r){var a=e[n];("day"===n&&29===parseInt(a)||"month"===n&&2===parseInt(a))&&(29!==parseInt(e.day)||2!==parseInt(e.month)||""!==e.year&&void 0!==e.year||e.date.setFullYear(2012,1,29)),"day"===n&&0===parseInt(a)&&(a=1),"month"===n&&(a=parseInt(a))>0&&(a-=1),"year"===n&&a.length<4&&(a=b(a,4,!0)),""===a||isNaN(a)||r.call(e.date,a),"ampm"===n&&r.call(e.date,a)}}if("string"==typeof l){for(g(i).lastIndex=0;a=g(i).exec(t);){var u=new RegExp("\\d+$").exec(a[0]),h=u?a[0][0]+"x":a[0],f=void 0;if(u){var p=g(i).lastIndex,m=w(a.index,i);g(i).lastIndex=p,f=l.slice(0,l.indexOf(m.nextMatch[0]))}else f=l.slice(0,h.length);Object.prototype.hasOwnProperty.call(d,h)&&(n=d[h][2],r=d[h][1],c(s,f)),l=l.slice(f.length)}return s}if(l&&"object"===o(l)&&Object.prototype.hasOwnProperty.call(l,"date"))return l}function _(e,t){return y(t.inputFormat,{date:e},t)}function w(e,t){var i,n,a=0,r=0;for(g(t).lastIndex=0;n=g(t).exec(t.inputFormat);){var s=new RegExp("\\d+$").exec(n[0]);if((a+=r=s?parseInt(s[0]):n[0].length)>=e){i=n,n=g(t).exec(t.inputFormat);break}}return{targetMatchIndex:a-r,nextMatch:n,targetMatch:i}}n.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,d.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=h[e.inputFormat]||e.inputFormat,e.displayFormat=h[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=h[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=y(e.inputFormat,void 0,e),e.min=x(e.min,e.inputFormat,e),e.max=x(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,i,n,a,r,s,o){if(o)return!0;if(isNaN(i)&&e[t]!==i){var l=w(t,a);if(l.nextMatch&&l.nextMatch[0]===i&&l.targetMatch[0].length>1){var c=d[l.targetMatch[0]][0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,i,n,a,r,s,o){var l,c;if(s)return!0;if(!1===n&&(((l=w(t+1,a)).targetMatch&&l.targetMatchIndex===t&&l.targetMatch[0].length>1&&void 0!==d[l.targetMatch[0]]||(l=w(t+2,a)).targetMatch&&l.targetMatchIndex===t+1&&l.targetMatch[0].length>1&&void 0!==d[l.targetMatch[0]])&&(c=d[l.targetMatch[0]][0]),void 0!==c&&(void 0!==r.validPositions[t+1]&&new RegExp(c).test(i+"0")?(e[t]=i,e[t+1]="0",n={pos:t+2,caret:t}):new RegExp(c).test("0"+i)&&(e[t]="0",e[t+1]=i,n={pos:t+2})),!1===n))return n;if(n.fuzzy&&(e=n.buffer,t=n.pos),(l=w(t,a)).targetMatch&&l.targetMatch[0]&&void 0!==d[l.targetMatch[0]]){c=d[l.targetMatch[0]][0];var h=e.slice(l.targetMatchIndex,l.targetMatchIndex+l.targetMatch[0].length);!1===new RegExp(c).test(h.join(""))&&2===l.targetMatch[0].length&&r.validPositions[l.targetMatchIndex]&&r.validPositions[l.targetMatchIndex+1]&&(r.validPositions[l.targetMatchIndex+1].input="0")}var f=n,p=x(e.join(""),a.inputFormat,a);return f&&p.date.getTime()==p.date.getTime()&&(a.prefillYear&&(f=function(e,t,i){if(e.year!==e.rawyear){var n=u.toString(),a=e.rawyear.replace(/[^0-9]/g,""),r=n.slice(0,a.length),s=n.slice(a.length);if(2===a.length&&a===r){var o=new Date(u,e.month-1,e.day);e.day==o.getDate()&&(!i.max||i.max.date.getTime()>=o.getTime())&&(e.date.setFullYear(u),e.year=n,t.insert=[{pos:t.pos+1,c:s[0]},{pos:t.pos+2,c:s[1]}])}}return t}(p,f,a)),f=function(e,t,i,n,a){if(!t)return t;if(i.min){if(e.rawyear){var r,s=e.rawyear.replace(/[^0-9]/g,""),o=i.min.year.substr(0,s.length);if(s<o){var l=w(t.pos,i);if(s=e.rawyear.substr(0,t.pos-l.targetMatchIndex+1).replace(/[^0-9]/g,"0"),(o=i.min.year.substr(0,s.length))<=s)return t.remove=l.targetMatchIndex+s.length,t;if(s="yyyy"===l.targetMatch[0]?e.rawyear.substr(1,1):e.rawyear.substr(0,1),o=i.min.year.substr(2,1),r=i.max?i.max.year.substr(2,1):s,1===s.length&&o<=s&&s<=r&&!0!==a)return"yyyy"===l.targetMatch[0]?(t.insert=[{pos:t.pos+1,c:s,strict:!0}],t.caret=t.pos+2,n.validPositions[t.pos].input=i.min.year[1]):(t.insert=[{pos:t.pos+1,c:i.min.year[1],strict:!0},{pos:t.pos+2,c:s,strict:!0}],t.caret=t.pos+3,n.validPositions[t.pos].input=i.min.year[0]),t;t=!1}}for(var c in e)-1===c.indexOf("raw")&&e["raw".concat(c)]&&(e[c],e["raw".concat(c)]);t&&e.year&&e.year===e.rawyear&&i.min.date.getTime()==i.min.date.getTime()&&(t=i.min.date.getTime()<=e.date.getTime())}return t&&i.max&&i.max.date.getTime()==i.max.date.getTime()&&(t=i.max.date.getTime()>=e.date.getTime()),t}(p,f=v.call(this,p,f,a),a,r,o)),void 0!==t&&f&&n.pos!==t?{buffer:y(a.inputFormat,p,a).split(""),refreshFromBuffer:{start:t,end:n.pos},pos:n.caret||n.pos}:f},onKeyDown:function(e,t,i,n){e.ctrlKey&&e.keyCode===a.default.RIGHT&&(this.inputmask._valueSet(_(new Date,n)),c(this).trigger("setvalue"))},onUnMask:function(e,t,i){return t?y(i.outputFormat,x(e,i.inputFormat,i),i,!0):t},casing:function(e,t,i,n){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=_(e,t)),e},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(e,t,i){var n,a=(n=i(2394))&&n.__esModule?n:{default:n},r=i(8711),s=i(4713);a.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var o=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(e,t,i,n,a){return i-1>-1&&"."!==t.buffer[i-1]?(e=t.buffer[i-1]+e,e=i-2>-1&&"."!==t.buffer[i-2]?t.buffer[i-2]+e:"0"+e):e="00"+e,o.test(e)}a.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i[i[i]].j[j[j]].k[k[k]].l[l[l]]",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(e,t,i){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,i){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(e,t,i,n,a,o,l){var c=s.getMaskTemplate.call(this,!0,r.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""))}}})},207:function(e,t,i){var n=o(i(2394)),a=o(i(4528)),r=o(i(7184)),s=i(8711);function o(e){return e&&e.__esModule?e:{default:e}}var l=n.default.dependencyLib;function c(e,t){for(var i="",a=0;a<e.length;a++)n.default.prototype.definitions[e.charAt(a)]||t.definitions[e.charAt(a)]||t.optionalmarker[0]===e.charAt(a)||t.optionalmarker[1]===e.charAt(a)||t.quantifiermarker[0]===e.charAt(a)||t.quantifiermarker[1]===e.charAt(a)||t.groupmarker[0]===e.charAt(a)||t.groupmarker[1]===e.charAt(a)||t.alternatormarker===e.charAt(a)?i+="\\"+e.charAt(a):i+=e.charAt(a);return i}function u(e,t,i,n){if(e.length>0&&t>0&&(!i.digitsOptional||n)){var a=e.indexOf(i.radixPoint),r=!1;i.negationSymbol.back===e[e.length-1]&&(r=!0,e.length--),-1===a&&(e.push(i.radixPoint),a=e.length-1);for(var s=1;s<=t;s++)isFinite(e[a+s])||(e[a+s]="0")}return r&&e.push(i.negationSymbol.back),e}function d(e,t){var i=0;if("+"===e){for(i in t.validPositions);i=s.seekNext.call(this,parseInt(i))}for(var n in t.tests)if((n=parseInt(n))>=i)for(var a=0,r=t.tests[n].length;a<r;a++)if((void 0===t.validPositions[n]||"-"===e)&&t.tests[n][a].match.def===e)return n+(void 0!==t.validPositions[n]&&"-"!==e?1:0);return i}function h(e,t){var i=-1;for(var n in t.validPositions){var a=t.validPositions[n];if(a&&a.match.def===e){i=parseInt(n);break}}return i}function f(e,t,i,n,a){var r=t.buffer?t.buffer.indexOf(a.radixPoint):-1,s=(-1!==r||n&&a.jitMasking)&&new RegExp(a.definitions[9].validator).test(e);return a._radixDance&&-1!==r&&s&&null==t.validPositions[r]?{insert:{pos:r===i?r+1:r,c:a.radixPoint},pos:i}:s}n.default.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",i=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,i=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[i]&&(e.definitions[i]={},e.definitions[i].validator="["+e.radixPoint+"]",e.definitions[i].placeholder=e.radixPoint,e.definitions[i].static=!0,e.definitions[i].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var n,a="[+]";if(a+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),a+=e._mask(e)):a+="9{+}",void 0!==e.digits&&0!==e.digits){var s=e.digits.toString().split(",");isFinite(s[0])&&s[1]&&isFinite(s[1])?a+=i+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(n=a+i+t+"{0,"+e.digits+"}",e.keepStatic=!0):a+=i+t+"{"+e.digits+"}")}else e.inputmode="numeric";return a+=c(e.suffix,e),a+="[-]",n&&(a=[n+c(e.suffix,e)+"[-]",a]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,r.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,r.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),a},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"000",m:"000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,definitions:{0:{validator:f},1:{validator:f,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,i,n,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)}},"-":{validator:function(e,t,i,n,a){return a.allowMinus&&e===a.negationSymbol.back}}},preValidation:function(e,t,i,n,a,r,s,o){var l;if(!1!==a.__financeInput&&i===a.radixPoint)return!1;if(l=a.shortcuts&&a.shortcuts[i]){if(l.length>1)for(var c=[],u=0;u<l.length;u++)c.push({pos:t+u,c:l[u],strict:!1});return{insert:c}}var f=e.indexOf(a.radixPoint),p=t;if(t=function(e,t,i,n,a){return a._radixDance&&a.numericInput&&t!==a.negationSymbol.back&&e<=i&&(i>0||t==a.radixPoint)&&(void 0===n.validPositions[e-1]||n.validPositions[e-1].input!==a.negationSymbol.back)&&(e-=1),e}(t,i,f,r,a),"-"===i||i===a.negationSymbol.front){if(!0!==a.allowMinus)return!1;var m=!1,g=h("+",r),v=h("-",r);return-1!==g&&(m=[g,v]),!1!==m?{remove:m,caret:p-a.negationSymbol.back.length}:{insert:[{pos:d.call(this,"+",r),c:a.negationSymbol.front,fromIsValid:!0},{pos:d.call(this,"-",r),c:a.negationSymbol.back,fromIsValid:void 0}],caret:p+a.negationSymbol.back.length}}if(i===a.groupSeparator)return{caret:p};if(o)return!0;if(-1!==f&&!0===a._radixDance&&!1===n&&i===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)&&f!==t)return{caret:a._radixDance&&t===f-1?f+1:f};if(!1===a.__financeInput)if(n){if(a.digitsOptional)return{rewritePosition:s.end};if(!a.digitsOptional){if(s.begin>f&&s.end<=f)return i===a.radixPoint?{insert:{pos:f+1,c:"0",fromIsValid:!0},rewritePosition:f}:{rewritePosition:f+1};if(s.begin<f)return{rewritePosition:s.begin-1}}}else if(!a.showMaskOnHover&&!a.showMaskOnFocus&&!a.digitsOptional&&a.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:f};return{rewritePosition:t}},postValidation:function(e,t,i,n,a,r,s){if(!1===n)return n;if(s)return!0;if(null!==a.min||null!==a.max){var o=a.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&o<a.min&&(o.toString().length>a.min.toString().length||o<0))return!1;if(null!==a.max&&o>a.max)return!!a.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}return n},onUnMask:function(e,t,i){if(""===t&&!0===i.nullable)return t;var n=e.replace(i.prefix,"");return n=(n=n.replace(i.suffix,"")).replace(new RegExp((0,r.default)(i.groupSeparator),"g"),""),""!==i.placeholder.charAt(0)&&(n=n.replace(new RegExp(i.placeholder.charAt(0),"g"),"0")),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==n.indexOf(i.radixPoint)&&(n=n.replace(r.default.call(this,i.radixPoint),".")),n=(n=n.replace(new RegExp("^"+(0,r.default)(i.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(i.negationSymbol.back)+"$"),""),Number(n)):n},isComplete:function(e,t){var i=(t.numericInput?e.slice().reverse():e).join("");return i=(i=(i=(i=(i=i.replace(new RegExp("^"+(0,r.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,r.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(i=i.replace((0,r.default)(t.radixPoint),".")),isFinite(i)},onBeforeMask:function(e,t){var i=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===i||(e=e.toString().replace(".",i));var n="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,a=e.split(i),s=a[0].replace(/[^\-0-9]/g,""),o=a.length>1?a[1].replace(/[^0-9]/g,""):"",l=a.length>1;e=s+(""!==o?i+o:o);var c=0;if(""!==i&&(c=t.digitsOptional?t.digits<o.length?t.digits:o.length:t.digits,""!==o||!t.digitsOptional)){var d=Math.pow(10,c||1);e=e.replace((0,r.default)(i),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*d)/d).toFixed(c)),e=e.toString().replace(".",i)}if(0===t.digits&&-1!==e.indexOf(i)&&(e=e.substring(0,e.indexOf(i))),null!==t.min||null!==t.max){var h=e.toString().replace(i,".");null!==t.min&&h<t.min?e=t.min.toString().replace(".",i):null!==t.max&&h>t.max&&(e=t.max.toString().replace(".",i))}return n&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),c,t,l).join("")},onBeforeWrite:function(e,t,i,n){function a(e,t){if(!1!==n.__financeInput||t){var i=e.indexOf(n.radixPoint);-1!==i&&e.splice(i,1)}if(""!==n.groupSeparator)for(;-1!==(i=e.indexOf(n.groupSeparator));)e.splice(i,1);return e}var s,o=function(e,t){var i=new RegExp("(^"+(""!==t.negationSymbol.front?(0,r.default)(t.negationSymbol.front)+"?":"")+(0,r.default)(t.prefix)+")(.*)("+(0,r.default)(t.suffix)+(""!=t.negationSymbol.back?(0,r.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),n=i?i[2]:"",a=!1;return n&&(n=n.split(t.radixPoint.charAt(0))[0],a=new RegExp("^[0"+t.groupSeparator+"]*").exec(n)),!(!a||!(a[0].length>1||a[0].length>0&&a[0].length<n.length))&&a}(t,n);if(o)for(var c=t.join("").lastIndexOf(o[0].split("").reverse().join(""))-(o[0]==o.input?0:1),d=o[0]==o.input?1:0,h=o[0].length-d;h>0;h--)delete this.maskset.validPositions[c+h],delete t[c+h];if(e)switch(e.type){case"blur":case"checkval":if(null!==n.min){var f=n.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&f<n.min)return{refreshFromBuffer:!0,buffer:u(n.min.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}if(t[t.length-1]===n.negationSymbol.front){var p=new RegExp("(^"+(""!=n.negationSymbol.front?(0,r.default)(n.negationSymbol.front)+"?":"")+(0,r.default)(n.prefix)+")(.*)("+(0,r.default)(n.suffix)+(""!=n.negationSymbol.back?(0,r.default)(n.negationSymbol.back)+"?":"")+"$)").exec(a(t.slice(),!0).reverse().join(""));0==(p?p[2]:"")&&(s={refreshFromBuffer:!0,buffer:[0]})}else""!==n.radixPoint&&t[0]===n.radixPoint&&(s&&s.buffer?s.buffer.shift():(t.shift(),s={refreshFromBuffer:!0,buffer:a(t)}));if(n.enforceDigitsOnBlur){var m=(s=s||{})&&s.buffer||t.slice().reverse();s.refreshFromBuffer=!0,s.buffer=u(m,n.digits,n,!0).reverse()}}return s},onKeyDown:function(e,t,i,n){var r,s=l(this);if(e.ctrlKey)switch(e.keyCode){case a.default.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(n.step)),s.trigger("setvalue"),!1;case a.default.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(n.step)),s.trigger("setvalue"),!1}if(!e.shiftKey&&(e.keyCode===a.default.DELETE||e.keyCode===a.default.BACKSPACE||e.keyCode===a.default.BACKSPACE_SAFARI)&&i.begin!==t.length){if(t[e.keyCode===a.default.DELETE?i.begin-1:i.end]===n.negationSymbol.front)return r=t.slice().reverse(),""!==n.negationSymbol.front&&r.shift(),""!==n.negationSymbol.back&&r.pop(),s.trigger("setvalue",[r.join(""),i.begin]),!1;if(!0===n._radixDance){var o=t.indexOf(n.radixPoint);if(n.digitsOptional){if(0===o)return(r=t.slice().reverse()).pop(),s.trigger("setvalue",[r.join(""),i.begin>=r.length?r.length:i.begin]),!1}else if(-1!==o&&(i.begin<o||i.end<o||e.keyCode===a.default.DELETE&&i.begin===o))return i.begin!==i.end||e.keyCode!==a.default.BACKSPACE&&e.keyCode!==a.default.BACKSPACE_SAFARI||i.begin++,(r=t.slice().reverse()).splice(r.length-i.begin,i.begin-i.end+1),r=u(r,n.digits,n).join(""),s.trigger("setvalue",[r,i.begin>=r.length?o+1:i.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t,i){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((n=i(8741))&&n.__esModule?n:{default:n}).default?window:{};t.default=a},7760:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.applyInputValue=u,t.clearOptionalTail=d,t.checkVal=h,t.HandleNativePlaceholder=function(e,t){var i=e?e.inputmask:this;if(l.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var n=s.getBuffer.call(i).slice(),a=e.inputmask._valueGet();if(a!==t){var r=s.getLastValidPosition.call(i);-1===r&&a===s.getBufferTemplate.call(i).join("")?n=[]:-1!==r&&d.call(i,n),f(e,n)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.unmaskedvalue=function(e){var t=e?e.inputmask:this,i=t.opts,n=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&u(e,e.inputmask._valueGet(!0))}var a=[],r=n.validPositions;for(var o in r)r[o]&&r[o].match&&(1!=r[o].match.static||Array.isArray(n.metadata)&&!0!==r[o].generatedInput)&&a.push(r[o].input);var l=0===a.length?"":(t.isRTL?a.reverse():a).join("");if("function"==typeof i.onUnMask){var c=(t.isRTL?s.getBuffer.call(t).slice().reverse():s.getBuffer.call(t)).join("");l=i.onUnMask.call(t,c,l,i)}return l},t.writeBuffer=f;var n,a=(n=i(4528))&&n.__esModule?n:{default:n},r=i(4713),s=i(8711),o=i(7215),l=i(9845),c=i(6030);function u(e,t){var i=e?e.inputmask:this,n=i.opts;e.inputmask.refreshValue=!1,"function"==typeof n.onBeforeMask&&(t=n.onBeforeMask.call(i,t,n)||t),h(e,!0,!1,t=t.toString().split("")),i.undoValue=i._valueGet(!0),(n.clearMaskOnLostFocus||n.clearIncomplete)&&e.inputmask._valueGet()===s.getBufferTemplate.call(i).join("")&&-1===s.getLastValidPosition.call(i)&&e.inputmask._valueSet("")}function d(e){e.length=0;for(var t,i=r.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=i.shift());)e.push(t);return e}function h(e,t,i,n,a){var l=e?e.inputmask:this,u=l.maskset,d=l.opts,h=l.dependencyLib,p=n.slice(),m="",g=-1,v=void 0,y=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter="",s.resetMaskSet.call(l),u.tests={},g=d.radixPoint?s.determineNewCaretPosition.call(l,{begin:0,end:0},!1,!1===d.__financeInput?"radixFocus":void 0).begin:0,u.p=g,l.caretPos={begin:g};var b=[],x=l.caretPos;if(p.forEach((function(e,t){if(void 0!==e){var n=new h.Event("_checkval");n.which=e.toString().charCodeAt(0),m+=e;var a=s.getLastValidPosition.call(l,void 0,!0);!function(e,t){for(var i=r.getMaskTemplate.call(l,!0,0).slice(e,s.seekNext.call(l,e,!1,!1)).join("").replace(/'/g,""),n=i.indexOf(t);n>0&&" "===i[n-1];)n--;var a=0===n&&!s.isMask.call(l,e)&&(r.getTest.call(l,e).match.nativeDef===t.charAt(0)||!0===r.getTest.call(l,e).match.static&&r.getTest.call(l,e).match.nativeDef==="'"+t.charAt(0)||" "===r.getTest.call(l,e).match.nativeDef&&(r.getTest.call(l,e+1).match.nativeDef===t.charAt(0)||!0===r.getTest.call(l,e+1).match.static&&r.getTest.call(l,e+1).match.nativeDef==="'"+t.charAt(0)));if(!a&&n>0&&!s.isMask.call(l,e,!1,!0)){var o=s.seekNext.call(l,e);l.caretPos.begin<o&&(l.caretPos={begin:o})}return a}(g,m)?(v=c.EventHandlers.keypressEvent.call(l,n,!0,!1,i,l.caretPos.begin))&&(g=l.caretPos.begin+1,m=""):v=c.EventHandlers.keypressEvent.call(l,n,!0,!1,i,a+1),v?(void 0!==v.pos&&u.validPositions[v.pos]&&!0===u.validPositions[v.pos].match.static&&void 0===u.validPositions[v.pos].alternation&&(b.push(v.pos),l.isRTL||(v.forwardPosition=v.pos+1)),f.call(l,void 0,s.getBuffer.call(l),v.forwardPosition,n,!1),l.caretPos={begin:v.forwardPosition,end:v.forwardPosition},x=l.caretPos):void 0===u.validPositions[t]&&p[t]===r.getPlaceholder.call(l,t)&&s.isMask.call(l,t,!0)?l.caretPos.begin++:l.caretPos=x}})),b.length>0){var _,w,k=s.seekNext.call(l,-1,void 0,!1);if(!o.isComplete.call(l,s.getBuffer.call(l))&&b.length<=k||o.isComplete.call(l,s.getBuffer.call(l))&&b.length>0&&b.length!==k&&0===b[0])for(var M=k;void 0!==(_=b.shift());){var L=new h.Event("_checkval");if((w=u.validPositions[_]).generatedInput=!0,L.which=w.input.charCodeAt(0),(v=c.EventHandlers.keypressEvent.call(l,L,!0,!1,i,M))&&void 0!==v.pos&&v.pos!==_&&u.validPositions[v.pos]&&!0===u.validPositions[v.pos].match.static)b.push(v.pos);else if(!v)break;M++}}t&&f.call(l,e,s.getBuffer.call(l),v?v.forwardPosition:l.caretPos.begin,a||new h.Event("checkval"),a&&"input"===a.type&&l.undoValue!==l._valueGet(!0)),d.skipOptionalPartCharacter=y}function f(e,t,i,n,r){var l=e?e.inputmask:this,c=l.opts,u=l.dependencyLib;if(n&&"function"==typeof c.onBeforeWrite){var d=c.onBeforeWrite.call(l,n,t,i,c);if(d){if(d.refreshFromBuffer){var h=d.refreshFromBuffer;o.refreshFromBuffer.call(l,!0===h?h:h.start,h.end,d.buffer||t),t=s.getBuffer.call(l,!0)}void 0!==i&&(i=void 0!==d.caret?d.caret:i)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===i||void 0!==n&&"blur"===n.type||s.caret.call(l,e,i,void 0,void 0,void 0!==n&&"keydown"===n.type&&(n.keyCode===a.default.DELETE||n.keyCode===a.default.BACKSPACE)),!0===r)){var f=u(e),p=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,f.trigger("input"),setTimeout((function(){p===s.getBufferTemplate.call(l).join("")?f.trigger("cleared"):!0===o.isComplete.call(l,t)&&f.trigger("complete")}),0)}}},2394:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(7149),i(3194);var n=i(157),a=g(i(4963)),r=g(i(9380)),s=i(2391),o=i(4713),l=i(8711),c=i(7215),u=i(7760),d=i(9716),h=g(i(7392)),f=g(i(3976)),p=g(i(8741));function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e){return e&&e.__esModule?e:{default:e}}var v=r.default.document,y="_inputmask_opts";function b(e,t,i){if(p.default){if(!(this instanceof b))return new b(e,t,i);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==i&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=a.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},x(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipKeyPressEvent=!1,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.originalPlaceholder=void 0,this.isComposing=!1}}function x(e,t,i){var n=b.prototype.aliases[e];return n?(n.alias&&x(n.alias,void 0,i),a.default.extend(!0,i,n),a.default.extend(!0,i,t),!0):(null===i.mask&&(i.mask=e),!1)}b.prototype={dataAttribute:"data-inputmask",defaults:f.default,definitions:h.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:Array.from(e)).forEach((function(e,i){var o=a.default.extend(!0,{},t.opts);if(function(e,t,i,n){function s(t,a){var s=""===n?t:n+"-"+t;null!==(a=void 0!==a?a:e.getAttribute(s))&&("string"==typeof a&&(0===t.indexOf("on")?a=r.default[a]:"false"===a?a=!1:"true"===a&&(a=!0)),i[t]=a)}if(!0===t.importDataAttributes){var o,l,c,u,d=e.getAttribute(n);if(d&&""!==d&&(d=d.replace(/'/g,'"'),l=JSON.parse("{"+d+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(o in s("alias",c),i.alias&&x(i.alias,i,t),t){if(l)for(u in c=void 0,l)if(u.toLowerCase()===o.toLowerCase()){c=l[u];break}s(o,c)}}return a.default.extend(!0,t,i),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right"),("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(i).length}(e,o,a.default.extend(!0,{},t.userOptions),t.dataAttribute)){var l=(0,s.generateMaskSet)(o,t.noMasksCache);void 0!==l&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new b(void 0,void 0,!0),e.inputmask.opts=o,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=a.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,a.default)(e),e.inputmask.maskset=l,a.default.data(e,y,t.userOptions),n.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===m(e)?(a.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,l.getBuffer.call(this),0,this.opts)}return u.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,y,null);var e=this.opts.autoUnmask?(0,u.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==l.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),d.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):v.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache),l.getBufferTemplate.call(this).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache),c.isComplete.call(this,l.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=o.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");for(var i=l.getBuffer.call(this),n=l.determineLastRequiredPosition.call(this),a=i.length-1;a>n&&!l.isMask.call(this,a);a--);return i.splice(n,a+1-n),c.isComplete.call(this,i)&&e===(this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,s.generateMaskSet)(this.opts,this.noMasksCache);var i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,i);var n=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");return t?{value:n,metadata:this.getmetadata()}:n},setValue:function(e){this.el&&(0,a.default)(this.el).trigger("setvalue",[e])},analyseMask:s.analyseMask},b.extendDefaults=function(e){a.default.extend(!0,b.prototype.defaults,e)},b.extendDefinitions=function(e){a.default.extend(!0,b.prototype.definitions,e)},b.extendAliases=function(e){a.default.extend(!0,b.prototype.aliases,e)},b.format=function(e,t,i){return b(t).format(e,i)},b.unmask=function(e,t){return b(t).unmaskedvalue(e)},b.isValid=function(e,t){return b(t).isValid(e)},b.remove=function(e){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},b.setValue=function(e,t){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger("setvalue",[t])}))},b.dependencyLib=a.default,r.default.Inputmask=b;var _=b;t.default=_},5296:function(e,t,i){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=f(i(9380)),r=f(i(2394)),s=f(i(8741));function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return c(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function c(e,t,i){return(c=u()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return i&&d(a,i.prototype),a}).apply(null,arguments)}function u(){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(e){return!1}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return e&&e.__esModule?e:{default:e}}var p=a.default.document;if(s.default&&p&&p.head&&p.head.attachShadow&&a.default.customElements&&void 0===a.default.customElements.get("input-mask")){var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,i,n=(t=a,i=u(),function(){var e,n=h(t);if(i){var a=h(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return o(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=(e=n.call(this)).getAttributeNames(),i=e.attachShadow({mode:"closed"}),s=p.createElement("input");for(var o in s.type="text",i.appendChild(s),t)Object.prototype.hasOwnProperty.call(t,o)&&s.setAttribute(t[o],e.getAttribute(t[o]));var l=new r.default;return l.dataAttribute="",l.mask(s),s.inputmask.shadowRoot=i,e}return a}(l(HTMLElement));a.default.customElements.define("input-mask",m)}},2391:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.generateMaskSet=function(e,t){function i(e,i,a){var r,s,o=!1;if(null!==e&&""!==e||((o=null!==a.regex)?e=(e=a.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(o=!0,e=".*")),1===e.length&&!1===a.greedy&&0!==a.repeat&&(a.placeholder=""),a.repeat>0||"*"===a.repeat||"+"===a.repeat){var l="*"===a.repeat?0:"+"===a.repeat?1:a.repeat;e=a.groupmarker[0]+e+a.groupmarker[1]+a.quantifiermarker[0]+l+","+a.repeat+a.quantifiermarker[1]}return s=o?"regex_"+a.regex:a.numericInput?e.split("").reverse().join(""):e,!1!==a.keepStatic&&(s="ks_"+s),void 0===Inputmask.prototype.masksCache[s]||!0===t?(r={mask:e,maskToken:Inputmask.prototype.analyseMask(e,o,a),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:i,maskLength:void 0,jitOffset:{}},!0!==t&&(Inputmask.prototype.masksCache[s]=r,r=n.default.extend(!0,{},Inputmask.prototype.masksCache[s]))):r=n.default.extend(!0,{},Inputmask.prototype.masksCache[s]),r}if("function"==typeof e.mask&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var a=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){a.length>1&&(a+=e.groupmarker[1]+e.alternatormarker+e.groupmarker[0]),void 0!==t.mask&&"function"!=typeof t.mask?a+=t.mask:a+=t})),i(a+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return null===e.keepStatic&&(e.keepStatic=!1),e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?i(e.mask.mask,e.mask,e):i(e.mask,e.mask,e)},t.analyseMask=function(e,t,i){var n,r,s,o,l,c,u=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,d=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,h=!1,f=new a.default,p=[],m=[],g=!1;function v(e,n,a){a=void 0!==a?a:e.matches.length;var r=e.matches[a-1];if(t)0===n.indexOf("[")||h&&/\\d|\\s|\\w]/i.test(n)||"."===n?e.matches.splice(a++,0,{fn:new RegExp(n,i.casing?"i":""),static:!1,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==n,casing:null,def:n,placeholder:void 0,nativeDef:n}):(h&&(n=n[n.length-1]),n.split("").forEach((function(t,n){r=e.matches[a-1],e.matches.splice(a++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||t)?new RegExp("["+(i.staticDefinitionSymbol||t)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==t&&!0!==r.static,casing:null,def:i.staticDefinitionSymbol||t,placeholder:void 0!==i.staticDefinitionSymbol?t:void 0,nativeDef:(h?"'":"")+t})}))),h=!1;else{var s=i.definitions&&i.definitions[n]||i.usePrototypeDefinitions&&Inputmask.prototype.definitions[n];s&&!h?e.matches.splice(a++,0,{fn:s.validator?"string"==typeof s.validator?new RegExp(s.validator,i.casing?"i":""):new function(){this.test=s.validator}:new RegExp("."),static:s.static||!1,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==(s.definitionSymbol||n),casing:s.casing,def:s.definitionSymbol||n,placeholder:s.placeholder,nativeDef:n,generated:s.generated}):(e.matches.splice(a++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||n)?new RegExp("["+(i.staticDefinitionSymbol||n)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==n&&!0!==r.static,casing:null,def:i.staticDefinitionSymbol||n,placeholder:void 0!==i.staticDefinitionSymbol?n:void 0,nativeDef:(h?"'":"")+n}),h=!1)}}function y(){if(p.length>0){if(v(o=p[p.length-1],r),o.isAlternator){l=p.pop();for(var e=0;e<l.matches.length;e++)l.matches[e].isGroup&&(l.matches[e].isGroup=!1);p.length>0?(o=p[p.length-1]).matches.push(l):f.matches.push(l)}}else v(f,r)}function b(e){var t=new a.default(!0);return t.openGroup=!1,t.matches=e,t}function x(){if((s=p.pop()).openGroup=!1,void 0!==s)if(p.length>0){if((o=p[p.length-1]).matches.push(s),o.isAlternator){l=p.pop();for(var e=0;e<l.matches.length;e++)l.matches[e].isGroup=!1,l.matches[e].alternatorGroup=!1;p.length>0?(o=p[p.length-1]).matches.push(l):f.matches.push(l)}}else f.matches.push(s);else y()}function _(e){var t=e.pop();return t.isQuantifier&&(t=b([e.pop(),t])),t}for(t&&(i.optionalmarker[0]=void 0,i.optionalmarker[1]=void 0);n=t?d.exec(e):u.exec(e);){if(r=n[0],t)switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===p.length){var w=b(f.matches);w.openGroup=!0,p.push(w),f.matches=[],g=!0}}if(h)y();else switch(r.charAt(0)){case"$":case"^":t||y();break;case"(?=":case"(?!":case"(?<=":case"(?<!":p.push(new a.default(!0));break;case i.escapeChar:h=!0,t&&y();break;case i.optionalmarker[1]:case i.groupmarker[1]:x();break;case i.optionalmarker[0]:p.push(new a.default(!1,!0));break;case i.groupmarker[0]:p.push(new a.default(!0));break;case i.quantifiermarker[0]:var k=new a.default(!1,!1,!0),M=(r=r.replace(/[{}]/g,"")).split("|"),L=M[0].split(","),S=isNaN(L[0])?L[0]:parseInt(L[0]),A=1===L.length?S:isNaN(L[1])?L[1]:parseInt(L[1]),T=isNaN(M[1])?M[1]:parseInt(M[1]);"*"!==S&&"+"!==S||(S="*"===A?0:1),k.quantifier={min:S,max:A,jit:T};var C=p.length>0?p[p.length-1].matches:f.matches;if((n=C.pop()).isAlternator){C.push(n),C=n.matches;var D=new a.default(!0),E=C.pop();C.push(D),C=D.matches,n=E}n.isGroup||(n=b([n])),C.push(n),C.push(k);break;case i.alternatormarker:if(p.length>0){var O=(o=p[p.length-1]).matches[o.matches.length-1];c=o.openGroup&&(void 0===O.matches||!1===O.isGroup&&!1===O.isAlternator)?p.pop():_(o.matches)}else c=_(f.matches);if(c.isAlternator)p.push(c);else if(c.alternatorGroup?(l=p.pop(),c.alternatorGroup=!1):l=new a.default(!1,!1,!1,!0),l.matches.push(c),p.push(l),c.openGroup){c.openGroup=!1;var P=new a.default(!0);P.alternatorGroup=!0,p.push(P)}break;default:y()}}for(g&&x();p.length>0;)s=p.pop(),f.matches.push(s);return f.matches.length>0&&(function e(n){n&&n.matches&&n.matches.forEach((function(a,r){var s=n.matches[r+1];(void 0===s||void 0===s.matches||!1===s.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,t||(v(a,i.groupmarker[0],0),!0!==a.openGroup&&v(a,i.groupmarker[1]))),e(a)}))}(f),m.push(f)),(i.numericInput||i.isRTL)&&function e(t){for(var n in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,n)){var a=parseInt(n);if(t.matches[n].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var r=t.matches[n];t.matches.splice(n,1),t.matches.splice(a+1,0,r)}void 0!==t.matches[n].matches?t.matches[n]=e(t.matches[n]):t.matches[n]=((s=t.matches[n])===i.optionalmarker[0]?s=i.optionalmarker[1]:s===i.optionalmarker[1]?s=i.optionalmarker[0]:s===i.groupmarker[0]?s=i.groupmarker[1]:s===i.groupmarker[1]&&(s=i.groupmarker[0]),s)}var s;return t}(m[0]),m};var n=r(i(4963)),a=r(i(9695));function r(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,i=this.el,n=this.dependencyLib;o.EventRuler.off(i);var d=function(t,i){"textarea"!==t.tagName.toLowerCase()&&i.ignorables.push(a.default.ENTER);var l=t.getAttribute("type"),c="input"===t.tagName.toLowerCase()&&i.supportsInputType.includes(l)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!c)if("input"===t.tagName.toLowerCase()){var u=document.createElement("input");u.setAttribute("type",l),c="text"===u.type,u=null}else c="partial";return!1!==c?function(t){var a,l;function c(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==r.getLastValidPosition.call(e)||!0!==i.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&i.clearMaskOnLostFocus?(e.isRTL?s.clearOptionalTail.call(e,r.getBuffer.call(e).slice()).reverse():s.clearOptionalTail.call(e,r.getBuffer.call(e).slice())).join(""):a.call(this):"":a.call(this)}function u(e){l.call(this,e),this.inputmask&&(0,s.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){var d=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;d&&d.get&&d.set?(a=d.get,l=d.set,Object.defineProperty(t,"value",{get:c,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(a=function(){return this.textContent},l=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:c,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(a=t.__lookupGetter__("value"),l=t.__lookupSetter__("value"),t.__defineGetter__("value",c),t.__defineSetter__("value",u));t.inputmask.__valueGet=a,t.inputmask.__valueSet=l}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?a.call(this.el).split("").reverse().join(""):a.call(this.el)},t.inputmask._valueSet=function(t,i){l.call(this.el,null==t?"":!0!==i&&e.isRTL?t.split("").reverse().join(""):t)},void 0===a&&(a=function(){return this.value},l=function(e){this.value=e},function(t){if(n.valHooks&&(void 0===n.valHooks[t]||!0!==n.valHooks[t].inputmaskpatch)){var a=n.valHooks[t]&&n.valHooks[t].get?n.valHooks[t].get:function(e){return e.value},o=n.valHooks[t]&&n.valHooks[t].set?n.valHooks[t].set:function(e,t){return e.value=t,e};n.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var n=a(t);return-1!==r.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==i.nullable?n:""}return a(t)},set:function(e,t){var i=o(e,t);return e.inputmask&&(0,s.applyInputValue)(e,t),i},inputmaskpatch:!0}}}(t.type),function(t){o.EventRuler.on(t,"mouseenter",(function(){var t=this.inputmask._valueGet(!0);t!==(e.isRTL?r.getBuffer.call(e).reverse():r.getBuffer.call(e)).join("")&&(0,s.applyInputValue)(this,t)}))}(t))}}(t):t.inputmask=void 0,c}(i,t);if(!1!==d){e.originalPlaceholder=i.placeholder,e.maxLength=void 0!==i?i.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in i&&null===i.getAttribute("inputmode")&&(i.inputMode=t.inputmode,i.setAttribute("inputmode",t.inputmode)),!0===d&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(i.autocomplete),l.iphone&&(t.insertModeVisual=!1),o.EventRuler.on(i,"submit",u.EventHandlers.submitEvent),o.EventRuler.on(i,"reset",u.EventHandlers.resetEvent),o.EventRuler.on(i,"blur",u.EventHandlers.blurEvent),o.EventRuler.on(i,"focus",u.EventHandlers.focusEvent),o.EventRuler.on(i,"invalid",u.EventHandlers.invalidEvent),o.EventRuler.on(i,"click",u.EventHandlers.clickEvent),o.EventRuler.on(i,"mouseleave",u.EventHandlers.mouseleaveEvent),o.EventRuler.on(i,"mouseenter",u.EventHandlers.mouseenterEvent),o.EventRuler.on(i,"paste",u.EventHandlers.pasteEvent),o.EventRuler.on(i,"cut",u.EventHandlers.cutEvent),o.EventRuler.on(i,"complete",t.oncomplete),o.EventRuler.on(i,"incomplete",t.onincomplete),o.EventRuler.on(i,"cleared",t.oncleared),!0!==t.inputEventOnly&&(o.EventRuler.on(i,"keydown",u.EventHandlers.keydownEvent),o.EventRuler.on(i,"keypress",u.EventHandlers.keypressEvent),o.EventRuler.on(i,"keyup",u.EventHandlers.keyupEvent)),(l.mobile||t.inputEventOnly)&&i.removeAttribute("maxLength"),o.EventRuler.on(i,"input",u.EventHandlers.inputFallBackEvent),o.EventRuler.on(i,"compositionend",u.EventHandlers.compositionendEvent)),o.EventRuler.on(i,"setvalue",u.EventHandlers.setValueEvent),r.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var h=(i.inputmask.shadowRoot||i.ownerDocument).activeElement;if(""!==i.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||h===i){(0,s.applyInputValue)(i,i.inputmask._valueGet(!0),t);var f=r.getBuffer.call(e).slice();!1===c.isComplete.call(e,f)&&t.clearIncomplete&&r.resetMaskSet.call(e),t.clearMaskOnLostFocus&&h!==i&&(-1===r.getLastValidPosition.call(e)?f=[]:s.clearOptionalTail.call(e,f)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&h===i||""!==i.inputmask._valueGet(!0))&&(0,s.writeBuffer)(i,f),h===i&&r.caret.call(e,i,r.seekNext.call(e,r.getLastValidPosition.call(e)))}}};var n,a=(n=i(4528))&&n.__esModule?n:{default:n},r=i(8711),s=i(7760),o=i(9716),l=i(9845),c=i(7215),u=i(6030)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,n){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0===n)return!1;for(var a=0|t,r=Math.max(a>=0?a:n-Math.abs(a),0);r<n;){if(i[r]===e)return!0;r++}return!1}})},7149:function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===e("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype})},8711:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,i,n,a){var r,s=this,o=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,i=e.selectionEnd):window.getSelection?(r=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&r.commonAncestorContainer!==e||(t=r.startOffset,i=r.endOffset):document.selection&&document.selection.createRange&&(i=(t=0-(r=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+r.text.length),{begin:n?t:c.call(s,t),end:n?i:c.call(s,i)};if(Array.isArray(t)&&(i=s.isRTL?t[0]:t[1],t=s.isRTL?t[1]:t[0]),void 0!==t.begin&&(i=s.isRTL?t.begin:t.end,t=s.isRTL?t.end:t.begin),"number"==typeof t){t=n?t:c.call(s,t),i="number"==typeof(i=n?i:c.call(s,i))?i:t;var l=parseInt(((e.ownerDocument.defaultView||window).getComputedStyle?(e.ownerDocument.defaultView||window).getComputedStyle(e,null):e.currentStyle).fontSize)*i;if(e.scrollLeft=l>e.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:i},o.insertModeVisual&&!1===o.insertMode&&t===i&&(a||i++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,i);else if(window.getSelection){if(r=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}r.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),r.setEnd(e.firstChild,i<e.inputmask._valueGet().length?i:e.inputmask._valueGet().length),r.collapse(!0);var d=window.getSelection();d.removeAllRanges(),d.addRange(r)}else e.createTextRange&&((r=e.createTextRange()).collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r.select())}},t.determineLastRequiredPosition=function(e){var t,i,r=this,o=this.maskset,l=this.dependencyLib,c=n.getMaskTemplate.call(r,!0,s.call(r),!0,!0),u=c.length,d=s.call(r),h={},f=o.validPositions[d],p=void 0!==f?f.locator.slice():void 0;for(t=d+1;t<c.length;t++)p=(i=n.getTestTemplate.call(r,t,p,t-1)).locator.slice(),h[t]=l.extend(!0,{},i);var m=f&&void 0!==f.alternation?f.locator[f.alternation]:void 0;for(t=u-1;t>d&&((i=h[t]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||m&&(m!==h[t].locator[f.alternation]&&1!=i.match.static||!0===i.match.static&&i.locator[f.alternation]&&a.checkAlternationMatch.call(r,i.locator[f.alternation].toString().split(","),m.toString().split(","))&&""!==n.getTests.call(r,t)[0].def))&&c[t]===n.getPlaceholder.call(r,t,i.match);t--)u--;return e?{l:u,def:h[u]?h[u].match:void 0}:u},t.determineNewCaretPosition=function(e,t,i){var a=this,c=this.maskset,u=this.opts;if(t&&(a.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(i=i||u.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:r.call(a).length};break;case"ignore":e.end=e.begin=l.call(a,s.call(a));break;case"radixFocus":if(function(e){if(""!==u.radixPoint&&0!==u.digits){var t=c.validPositions;if(void 0===t[e]||t[e].input===n.getPlaceholder.call(a,e)){if(e<l.call(a,-1))return!0;var i=r.call(a).indexOf(u.radixPoint);if(-1!==i){for(var s in t)if(t[s]&&i<s&&t[s].input!==n.getPlaceholder.call(a,s))return!1;return!0}}}return!1}(e.begin)){var d=r.call(a).join("").indexOf(u.radixPoint);e.end=e.begin=u.numericInput?l.call(a,d):d;break}default:var h=e.begin,f=s.call(a,h,!0),p=l.call(a,-1!==f||o.call(a,0)?f:-1);if(h<=p)e.end=e.begin=o.call(a,h,!1,!0)?h:l.call(a,h);else{var m=c.validPositions[f],g=n.getTestTemplate.call(a,p,m?m.match.locator:void 0,m),v=n.getPlaceholder.call(a,p,g.match);if(""!==v&&r.call(a)[p]!==v&&!0!==g.match.optionalQuantifier&&!0!==g.match.newBlockMarker||!o.call(a,p,u.keepStatic,!0)&&g.match.def===v){var y=l.call(a,p);(h>=y||h===p)&&(p=y)}e.end=e.begin=p}}return e}},t.getBuffer=r,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=n.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=s,t.isMask=o,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions={},t.p=0)},t.seekNext=l,t.seekPrevious=function(e,t){var i=this,a=e-1;if(e<=0)return 0;for(;a>0&&(!0===t&&(!0!==n.getTest.call(i,a).match.newBlockMarker||!o.call(i,a,void 0,!0))||!0!==t&&!o.call(i,a,void 0,!0));)a--;return a},t.translatePosition=c;var n=i(4713),a=i(7215);function r(e){var t=this.maskset;return void 0!==t.buffer&&!0!==e||(t.buffer=n.getMaskTemplate.call(this,!0,s.call(this),!0),void 0===t._buffer&&(t._buffer=t.buffer.slice())),t.buffer}function s(e,t,i){var n=this.maskset,a=-1,r=-1,s=i||n.validPositions;for(var o in void 0===e&&(e=-1),s){var l=parseInt(o);s[l]&&(t||!0!==s[l].generatedInput)&&(l<=e&&(a=l),l>=e&&(r=l))}return-1===a||a==e?r:-1==r||e-a<r-e?a:r}function o(e,t,i){var a=this,r=this.maskset,s=n.getTestTemplate.call(a,e).match;if(""===s.def&&(s=n.getTest.call(a,e).match),!0!==s.static)return s.fn;if(!0===i&&void 0!==r.validPositions[e]&&!0!==r.validPositions[e].generatedInput)return!0;if(!0!==t&&e>-1){if(i){var o=n.getTests.call(a,e);return o.length>1+(""===o[o.length-1].match.def?1:0)}var l=n.determineTestTemplate.call(a,e,n.getTests.call(a,e)),c=n.getPlaceholder.call(a,e,l.match);return l.match.def!==c}return!1}function l(e,t,i){var a=this;void 0===i&&(i=!0);for(var r=e+1;""!==n.getTest.call(a,r).match.def&&(!0===t&&(!0!==n.getTest.call(a,r).match.newBlockMarker||!o.call(a,r,void 0,!0))||!0!==t&&!o.call(a,r,void 0,i));)r++;return r}function c(e){var t=this.opts,i=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!i||(e=Math.abs(this._valueGet().length-e)),e}},4713:function(e,t){function i(e,t){var i=(null!=e.alternation?e.mloc[n(e)]:e.locator).join("");if(""!==i)for(;i.length<t;)i+="0";return i}function n(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function a(e,t,i){var n=this.opts,a=this.maskset;if(void 0!==(t=t||o.call(this,e).match).placeholder||!0===i)return"function"==typeof t.placeholder?t.placeholder(n):t.placeholder;if(!0===t.static){if(e>-1&&void 0===a.validPositions[e]){var r,s=c.call(this,e),l=[];if(s.length>1+(""===s[s.length-1].match.def?1:0))for(var u=0;u<s.length;u++)if(""!==s[u].match.def&&!0!==s[u].match.optionality&&!0!==s[u].match.optionalQuantifier&&(!0===s[u].match.static||void 0===r||!1!==s[u].match.fn.test(r.match.def,a,e,!0,n))&&(l.push(s[u]),!0===s[u].match.static&&(r=s[u]),l.length>1&&/[0-9a-bA-Z]/.test(l[0].match.def)))return n.placeholder.charAt(e%n.placeholder.length)}return t.def}return n.placeholder.charAt(e%n.placeholder.length)}function r(e,t,i){return this.maskset.validPositions[e]||s.call(this,e,c.call(this,e,t?t.slice():t,i))}function s(e,t){var n=this.opts;e=e>0?e-1:0;for(var a,r,s,l=i(o.call(this,e)),c=0;c<t.length;c++){var u=t[c];a=i(u,l.length);var d=Math.abs(a-l);(void 0===r||""!==a&&d<r||s&&!n.greedy&&s.match.optionality&&"master"===s.match.newBlockMarker&&(!u.match.optionality||!u.match.newBlockMarker)||s&&s.match.optionalQuantifier&&!u.match.optionalQuantifier)&&(r=d,s=u)}return s}function o(e,t){var i=this.maskset;return i.validPositions[e]?i.validPositions[e]:(t||c.call(this,e))[0]}function l(e,t,i){function n(e){for(var t,i=[],n=-1,a=0,r=e.length;a<r;a++)if("-"===e.charAt(a))for(t=e.charCodeAt(a+1);++n<t;)i.push(String.fromCharCode(n));else n=e.charCodeAt(a),i.push(e.charAt(a));return i.join("")}return e.match.def===t.match.nativeDef||!(!(i.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&-1!==n(t.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(n(e.match.fn.toString().replace(/[[\]/]/g,"")))}function c(e,t,i){var n,a=this,r=this.dependencyLib,o=this.maskset,c=this.opts,u=this.el,d=o.maskToken,h=t?i:0,f=t?t.slice():[0],p=[],m=!1,g=t?t.join(""):"";function v(t,i,a,r){function s(a,r,d){function f(e,t){var i=0===t.matches.indexOf(e);return i||t.matches.every((function(n,a){return!0===n.isQuantifier?i=f(e,t.matches[a-1]):Object.prototype.hasOwnProperty.call(n,"matches")&&(i=f(e,n)),!i})),i}function y(e,t,i){var n,a;if((o.tests[e]||o.validPositions[e])&&(o.tests[e]||[o.validPositions[e]]).every((function(e,r){if(e.mloc[t])return n=e,!1;var s=void 0!==i?i:e.alternation,o=void 0!==e.locator[s]?e.locator[s].toString().indexOf(t):-1;return(void 0===a||o<a)&&-1!==o&&(n=e,a=o),!0})),n){var r=n.locator[n.alternation];return(n.mloc[t]||n.mloc[r]||n.locator).slice((void 0!==i?i:n.alternation)+1)}return void 0!==i?y(e,t):void 0}function b(e,t){var i=e.alternation,n=void 0===t||i===t.alternation&&-1===e.locator[i].toString().indexOf(t.locator[i]);if(!n&&i>t.alternation)for(var a=t.alternation;a<i;a++)if(e.locator[a]!==t.locator[a]){i=a,n=!0;break}if(n){e.mloc=e.mloc||{};var r=e.locator[i];if(void 0!==r){if("string"==typeof r&&(r=r.split(",")[0]),void 0===e.mloc[r]&&(e.mloc[r]=e.locator.slice()),void 0!==t){for(var s in t.mloc)"string"==typeof s&&(s=s.split(",")[0]),void 0===e.mloc[s]&&(e.mloc[s]=t.mloc[s]);e.locator[i]=Object.keys(e.mloc).join(",")}return!0}e.alternation=void 0}return!1}function x(e,t){if(e.locator.length!==t.locator.length)return!1;for(var i=e.alternation+1;i<e.locator.length;i++)if(e.locator[i]!==t.locator[i])return!1;return!0}if(h>e+c._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+o.mask;if(h===e&&void 0===a.matches)return p.push({match:a,locator:r.reverse(),cd:g,mloc:{}}),!0;if(void 0!==a.matches){if(a.isGroup&&d!==a){if(a=s(t.matches[t.matches.indexOf(a)+1],r,d))return!0}else if(a.isOptional){var _=a,w=p.length;if(a=v(a,i,r,d)){if(p.forEach((function(e,t){t>=w&&(e.match.optionality=!0)})),n=p[p.length-1].match,void 0!==d||!f(n,_))return!0;m=!0,h=e}}else if(a.isAlternator){var k,M=a,L=[],S=p.slice(),A=r.length,T=!1,C=i.length>0?i.shift():-1;if(-1===C||"string"==typeof C){var D,E=h,O=i.slice(),P=[];if("string"==typeof C)P=C.split(",");else for(D=0;D<M.matches.length;D++)P.push(D.toString());if(void 0!==o.excludes[e]){for(var Y=P.slice(),I=0,j=o.excludes[e].length;I<j;I++){var N=o.excludes[e][I].toString().split(":");r.length==N[1]&&P.splice(P.indexOf(N[0]),1)}0===P.length&&(delete o.excludes[e],P=Y)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&E>=c.keepStatic)&&(P=P.slice(0,1));for(var H=0;H<P.length;H++){D=parseInt(P[H]),p=[],i="string"==typeof C&&y(h,D,A)||O.slice();var F=M.matches[D];if(F&&s(F,[D].concat(r),d))a=!0;else if(0===H&&(T=!0),F&&F.matches&&F.matches.length>M.matches[0].matches.length)break;k=p.slice(),h=E,p=[];for(var R=0;R<k.length;R++){var z=k[R],B=!1;z.match.jit=z.match.jit||T,z.alternation=z.alternation||A,b(z);for(var W=0;W<L.length;W++){var V=L[W];if("string"!=typeof C||void 0!==z.alternation&&P.includes(z.locator[z.alternation].toString())){if(z.match.nativeDef===V.match.nativeDef){B=!0,b(V,z);break}if(l(z,V,c)){b(z,V)&&(B=!0,L.splice(L.indexOf(V),0,z));break}if(l(V,z,c)){b(V,z);break}if(G=V,!0===($=z).match.static&&!0!==G.match.static&&G.match.fn.test($.match.def,o,e,!1,c,!1)){x(z,V)||void 0!==u.inputmask.userOptions.keepStatic?b(z,V)&&(B=!0,L.splice(L.indexOf(V),0,z)):c.keepStatic=!0;break}}}B||L.push(z)}}p=S.concat(L),h=e,m=p.length>0,a=L.length>0,i=O.slice()}else a=s(M.matches[C]||t.matches[C],[C].concat(r),d);if(a)return!0}else if(a.isQuantifier&&d!==t.matches[t.matches.indexOf(a)-1])for(var q=a,X=i.length>0?i.shift():0;X<(isNaN(q.quantifier.max)?X+1:q.quantifier.max)&&h<=e;X++){var U=t.matches[t.matches.indexOf(q)-1];if(a=s(U,[X].concat(r),U)){if((n=p[p.length-1].match).optionalQuantifier=X>=q.quantifier.min,n.jit=(X+1)*(U.matches.indexOf(n)+1)>q.quantifier.jit,n.optionalQuantifier&&f(n,U)){m=!0,h=e;break}return n.jit&&(o.jitOffset[e]=U.matches.length-U.matches.indexOf(n)),!0}}else if(a=v(a,i,r,d))return!0}else h++;var $,G}for(var d=i.length>0?i.shift():0;d<t.matches.length;d++)if(!0!==t.matches[d].isQuantifier){var f=s(t.matches[d],[d].concat(a),r);if(f&&h===e)return f;if(h>e)break}}if(e>-1){if(void 0===t){for(var y,b=e-1;void 0===(y=o.validPositions[b]||o.tests[b])&&b>-1;)b--;void 0!==y&&b>-1&&(f=function(e,t){var i,n=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(n=s.call(a,e,t.slice()).locator.slice()).length&&(n=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===n.length?(i=e.alternation,n=e.locator.slice()):e.locator[i]&&-1===n[i].toString().indexOf(e.locator[i])&&(n[i]+=","+e.locator[i]))}))),n}(b,y),g=f.join(""),h=b)}if(o.tests[e]&&o.tests[e][0].cd===g)return o.tests[e];for(var x=f.shift();x<d.length&&!(v(d[x],f,[x])&&h===e||h>e);x++);}return(0===p.length||m)&&p.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:g}),void 0!==t&&o.tests[e]?r.extend(!0,[],p):(o.tests[e]=r.extend(!0,[],p),o.tests[e])}Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=s,t.getDecisionTaker=n,t.getMaskTemplate=function(e,t,i,n,o){var l=this,u=this.opts,d=this.maskset,h=u.greedy;o&&(u.greedy=!1),t=t||0;var f,p,m,g,v=[],y=0;do{if(!0===e&&d.validPositions[y])p=(m=o&&!0===d.validPositions[y].match.optionality&&void 0===d.validPositions[y+1]&&(!0===d.validPositions[y].generatedInput||d.validPositions[y].input==u.skipOptionalPartCharacter&&y>0)?s.call(l,y,c.call(l,y,f,y-1)):d.validPositions[y]).match,f=m.locator.slice(),v.push(!0===i?m.input:!1===i?p.nativeDef:a.call(l,y,p));else{p=(m=r.call(l,y,f,y-1)).match,f=m.locator.slice();var b=!0!==n&&(!1!==u.jitMasking?u.jitMasking:p.jit);(g=(g&&p.static&&p.def!==u.groupSeparator&&null===p.fn||d.validPositions[y-1]&&p.static&&p.def!==u.groupSeparator&&null===p.fn)&&d.tests[y]&&1===d.tests[y].length)||!1===b||void 0===b||"number"==typeof b&&isFinite(b)&&b>y?v.push(!1===i?p.nativeDef:a.call(l,y,p)):g=!1}y++}while(!0!==p.static||""!==p.def||t>y);return""===v[v.length-1]&&v.pop(),!1===i&&void 0!==d.maskLength||(d.maskLength=y-1),u.greedy=h,v},t.getPlaceholder=a,t.getTest=o,t.getTests=c,t.getTestTemplate=r,t.isSubsetOf=l},7215:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=l,t.checkAlternationMatch=function(e,t,i){for(var n,a=this.opts.greedy?t:t.slice(0,1),r=!1,s=void 0!==i?i.split(","):[],o=0;o<s.length;o++)-1!==(n=e.indexOf(s[o]))&&e.splice(n,1);for(var l=0;l<e.length;l++)if(a.includes(e[l])){r=!0;break}return r},t.isComplete=u,t.isValid=d,t.refreshFromBuffer=f,t.revalidateMask=m,t.handleRemove=function(e,t,i,n,o){var c=this,u=this.maskset,d=this.opts;if((d.numericInput||c.isRTL)&&(t===r.default.BACKSPACE?t=r.default.DELETE:t===r.default.DELETE&&(t=r.default.BACKSPACE),c.isRTL)){var h=i.end;i.end=i.begin,i.begin=h}var f,p=s.getLastValidPosition.call(c,void 0,!0);if(i.end>=s.getBuffer.call(c).length&&p>=i.end&&(i.end=p+1),t===r.default.BACKSPACE?i.end-i.begin<1&&(i.begin=s.seekPrevious.call(c,i.begin)):t===r.default.DELETE&&i.begin===i.end&&(i.end=s.isMask.call(c,i.end,!0,!0)?i.end+1:s.seekNext.call(c,i.end)+1),!1!==(f=m.call(c,i))){if(!0!==n&&!1!==d.keepStatic||null!==d.regex&&-1!==a.getTest.call(c,i.begin).match.def.indexOf("|")){var g=l.call(c,!0);if(g){var v=void 0!==g.caret?g.caret:g.pos?s.seekNext.call(c,g.pos.begin?g.pos.begin:g.pos):s.getLastValidPosition.call(c,-1,!0);(t!==r.default.DELETE||i.begin>v)&&i.begin}}!0!==n&&(u.p=t===r.default.DELETE?i.begin+f:i.begin,u.p=s.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1).begin)}};var n,a=i(4713),r=(n=i(4528))&&n.__esModule?n:{default:n},s=i(8711),o=i(6030);function l(e,t,i,n,r,o){var c,u,h,f,p,m,g,v,y,b,x,_=this,w=this.dependencyLib,k=this.opts,M=_.maskset,L=w.extend(!0,{},M.validPositions),S=w.extend(!0,{},M.tests),A=!1,T=!1,C=void 0!==r?r:s.getLastValidPosition.call(_);if(o&&(b=o.begin,x=o.end,o.begin>o.end&&(b=o.end,x=o.begin)),-1===C&&void 0===r)c=0,u=(f=a.getTest.call(_,c)).alternation;else for(;C>=0;C--)if((h=M.validPositions[C])&&void 0!==h.alternation){if(f&&f.locator[h.alternation]!==h.locator[h.alternation])break;c=C,u=M.validPositions[c].alternation,f=h}if(void 0!==u){g=parseInt(c),M.excludes[g]=M.excludes[g]||[],!0!==e&&M.excludes[g].push((0,a.getDecisionTaker)(f)+":"+f.alternation);var D=[],E=-1;for(p=g;p<s.getLastValidPosition.call(_,void 0,!0)+1;p++)-1===E&&e<=p&&void 0!==t&&(D.push(t),E=D.length-1),(m=M.validPositions[p])&&!0!==m.generatedInput&&(void 0===o||p<b||p>=x)&&D.push(m.input),delete M.validPositions[p];for(-1===E&&void 0!==t&&(D.push(t),E=D.length-1);void 0!==M.excludes[g]&&M.excludes[g].length<10;){for(M.tests={},s.resetMaskSet.call(_,!0),A=!0,p=0;p<D.length&&(v=A.caret||s.getLastValidPosition.call(_,void 0,!0)+1,y=D[p],A=d.call(_,v,y,!1,n,!0));p++)p===E&&(T=A),1==e&&A&&(T={caretPos:p});if(A)break;if(s.resetMaskSet.call(_),f=a.getTest.call(_,g),M.validPositions=w.extend(!0,{},L),M.tests=w.extend(!0,{},S),!M.excludes[g]){T=l.call(_,e,t,i,n,g-1,o);break}var O=(0,a.getDecisionTaker)(f);if(-1!==M.excludes[g].indexOf(O+":"+f.alternation)){T=l.call(_,e,t,i,n,g-1,o);break}for(M.excludes[g].push(O+":"+f.alternation),p=g;p<s.getLastValidPosition.call(_,void 0,!0)+1;p++)delete M.validPositions[p]}}return T&&!1===k.keepStatic||delete M.excludes[g],T}function c(e,t,i){var n=this.opts,a=this.maskset;switch(n.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var s=a.validPositions[i-1];e=0===i||s&&s.input===String.fromCharCode(r.default.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if("function"==typeof n.casing){var o=Array.prototype.slice.call(arguments);o.push(a.validPositions),e=n.casing.apply(this,o)}}return e}function u(e){var t=this,i=this.opts,n=this.maskset;if("function"==typeof i.isComplete)return i.isComplete(e,i);if("*"!==i.repeat){var r=!1,o=s.determineLastRequiredPosition.call(t,!0),l=s.seekPrevious.call(t,o.l);if(void 0===o.def||o.def.newBlockMarker||o.def.optionality||o.def.optionalQuantifier){r=!0;for(var c=0;c<=l;c++){var u=a.getTestTemplate.call(t,c).match;if(!0!==u.static&&void 0===n.validPositions[c]&&!0!==u.optionality&&!0!==u.optionalQuantifier||!0===u.static&&e[c]!==a.getPlaceholder.call(t,c,u)){r=!1;break}}}return r}}function d(e,t,i,n,r,o,h){var g=this,v=this.dependencyLib,y=this.opts,b=g.maskset;function x(e){return g.isRTL?e.begin-e.end>1||e.begin-e.end==1:e.end-e.begin>1||e.end-e.begin==1}i=!0===i;var _=e;function w(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return t.pos-e.pos})).forEach((function(e){m.call(g,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return e.pos-t.pos})).forEach((function(e){""!==e.c&&d.call(g,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:n)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;f.call(g,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(_=e.rewritePosition,e=!0)}return e}function k(t,i,r){var o=!1;return a.getTests.call(g,t).every((function(l,u){var d=l.match;if(s.getBuffer.call(g,!0),!1!==(o=(!d.jit||void 0!==b.validPositions[s.seekPrevious.call(g,t)])&&(null!=d.fn?d.fn.test(i,b,t,r,y,x(e)):(i===d.def||i===y.skipOptionalPartCharacter)&&""!==d.def&&{c:a.getPlaceholder.call(g,t,d,!0)||d.def,pos:t}))){var h=void 0!==o.c?o.c:i,f=t;return h=h===y.skipOptionalPartCharacter&&!0===d.static?a.getPlaceholder.call(g,t,d,!0)||d.def:h,!0!==(o=w(o))&&void 0!==o.pos&&o.pos!==t&&(f=o.pos),!0!==o&&void 0===o.pos&&void 0===o.c||!1===m.call(g,e,v.extend({},l,{input:c.call(g,h,d,f)}),n,f)&&(o=!1),!1}return!0})),o}void 0!==e.begin&&(_=g.isRTL?e.end:e.begin);var M=!0,L=v.extend(!0,{},b.validPositions);if(!1===y.keepStatic&&void 0!==b.excludes[_]&&!0!==r&&!0!==n)for(var S=_;S<(g.isRTL?e.begin:e.end);S++)void 0!==b.excludes[S]&&(b.excludes[S]=void 0,delete b.tests[S]);if("function"==typeof y.preValidation&&!0!==n&&!0!==o&&(M=w(M=y.preValidation.call(g,s.getBuffer.call(g),_,t,x(e),y,b,e,i||r))),!0===M){if(M=k(_,t,i),(!i||!0===n)&&!1===M&&!0!==o){var A=b.validPositions[_];if(!A||!0!==A.match.static||A.match.def!==t&&t!==y.skipOptionalPartCharacter){if(y.insertMode||void 0===b.validPositions[s.seekNext.call(g,_)]||e.end>_){var T=!1;if(b.jitOffset[_]&&void 0===b.validPositions[s.seekNext.call(g,_)]&&!1!==(M=d.call(g,_+b.jitOffset[_],t,!0,!0))&&(!0!==r&&(M.caret=_),T=!0),e.end>_&&(b.validPositions[_]=void 0),!T&&!s.isMask.call(g,_,y.keepStatic&&0===_))for(var C=_+1,D=s.seekNext.call(g,_,!1,0!==_);C<=D;C++)if(!1!==(M=k(C,t,i))){M=p.call(g,_,void 0!==M.pos?M.pos:C)||M,_=C;break}}}else M={caret:s.seekNext.call(g,_)}}!1!==M||!y.keepStatic||!u.call(g,s.getBuffer.call(g))&&0!==_||i||!0===r?x(e)&&b.tests[_]&&b.tests[_].length>1&&y.keepStatic&&!i&&!0!==r&&(M=l.call(g,!0)):M=l.call(g,_,t,i,n,void 0,e),!0===M&&(M={pos:_})}if("function"==typeof y.postValidation&&!0!==n&&!0!==o){var E=y.postValidation.call(g,s.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,M,y,b,i,h);void 0!==E&&(M=!0===E?M:E)}M&&void 0===M.pos&&(M.pos=_),!1===M||!0===o?(s.resetMaskSet.call(g,!0),b.validPositions=v.extend(!0,{},L)):p.call(g,void 0,_,!0);var O=w(M);return void 0!==g.maxLength&&s.getBuffer.call(g).length>g.maxLength&&!n&&(s.resetMaskSet.call(g,!0),b.validPositions=v.extend(!0,{},L),O=!1),O}function h(e,t,i){for(var n=this.maskset,r=!1,s=a.getTests.call(this,e),o=0;o<s.length;o++){if(s[o].match&&(s[o].match.nativeDef===t.match[i.shiftPositions?"def":"nativeDef"]&&(!i.shiftPositions||!t.match.static)||s[o].match.nativeDef===t.match.nativeDef||i.regex&&!s[o].match.static&&s[o].match.fn.test(t.input))){r=!0;break}if(s[o].match&&s[o].match.def===t.match.nativeDef){r=void 0;break}}return!1===r&&void 0!==n.jitOffset[e]&&(r=h.call(this,e+n.jitOffset[e],t,i)),r}function f(e,t,i){var n,a,r=this,l=this.maskset,c=this.opts,u=this.dependencyLib,d=c.skipOptionalPartCharacter,h=r.isRTL?i.slice().reverse():i;if(c.skipOptionalPartCharacter="",!0===e)s.resetMaskSet.call(r),l.tests={},e=0,t=i.length,a=s.determineNewCaretPosition.call(r,{begin:0,end:0},!1).begin;else{for(n=e;n<t;n++)delete l.validPositions[n];a=e}var f=new u.Event("keypress");for(n=e;n<t;n++){f.which=h[n].toString().charCodeAt(0),r.ignorable=!1;var p=o.EventHandlers.keypressEvent.call(r,f,!0,!1,!1,a);!1!==p&&void 0!==p&&(a=p.forwardPosition)}c.skipOptionalPartCharacter=d}function p(e,t,i){var n=this,r=this.maskset,o=this.dependencyLib;if(void 0===e)for(e=t-1;e>0&&!r.validPositions[e];e--);for(var l=e;l<t;l++)if(void 0===r.validPositions[l]&&!s.isMask.call(n,l,!1)&&(0==l?a.getTest.call(n,l):r.validPositions[l-1])){var c=a.getTests.call(n,l).slice();""===c[c.length-1].match.def&&c.pop();var u,h=a.determineTestTemplate.call(n,l,c);if(h&&(!0!==h.match.jit||"master"===h.match.newBlockMarker&&(u=r.validPositions[l+1])&&!0===u.match.optionalQuantifier)&&((h=o.extend({},h,{input:a.getPlaceholder.call(n,l,h.match,!0)||h.match.def})).generatedInput=!0,m.call(n,l,h,!0),!0!==i)){var f=r.validPositions[t].input;return r.validPositions[t]=void 0,d.call(n,t,f,!0,!0)}}}function m(e,t,i,n){var r=this,o=this.maskset,l=this.opts,c=this.dependencyLib;function u(e,t,i){var n=t[e];if(void 0!==n&&!0===n.match.static&&!0!==n.match.optionality&&(void 0===t[0]||void 0===t[0].alternation)){var a=i.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],r=i.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return a&&r}return!1}var f=0,p=void 0!==e.begin?e.begin:e,m=void 0!==e.end?e.end:e,g=!0;if(e.begin>e.end&&(p=e.end,m=e.begin),n=void 0!==n?n:p,p!==m||l.insertMode&&void 0!==o.validPositions[n]&&void 0===i||void 0===t){var v,y=c.extend(!0,{},o.validPositions),b=s.getLastValidPosition.call(r,void 0,!0);for(o.p=p,v=b;v>=p;v--)delete o.validPositions[v],void 0===t&&delete o.tests[v+1];var x,_,w=n,k=w;for(t&&(o.validPositions[n]=c.extend(!0,{},t),k++,w++),v=t?m:m-1;v<=b;v++){if(void 0!==(x=y[v])&&!0!==x.generatedInput&&(v>=m||v>=p&&u(v,y,{begin:p,end:m}))){for(;""!==a.getTest.call(r,k).match.def;){if(!1!==(_=h.call(r,k,x,l))||"+"===x.match.def){"+"===x.match.def&&s.getBuffer.call(r,!0);var M=d.call(r,k,x.input,"+"!==x.match.def,!0);if(g=!1!==M,w=(M.pos||k)+1,!g&&_)break}else g=!1;if(g){void 0===t&&x.match.static&&v===e.begin&&f++;break}if(!g&&k>o.maskLength)break;k++}""==a.getTest.call(r,k).match.def&&(g=!1),k=w}if(!g)break}if(!g)return o.validPositions=c.extend(!0,{},y),s.resetMaskSet.call(r,!0),!1}else t&&a.getTest.call(r,n).match.cd===t.match.cd&&(o.validPositions[n]=c.extend(!0,{},t));return s.resetMaskSet.call(r,!0),f}}},t={};function i(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,i),r.exports}var n={};return function(){var e,t=n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(3851),i(219),i(207),i(5296);var a=((e=i(2394))&&e.__esModule?e:{default:e}).default;t.default=a}(),n}()})),function(e,t,i){e(i.document).ajaxComplete((function(i,n,a){-1!==e.inArray("html",a.dataTypes)&&e(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias], [data-inputmask-regex]").each((function(e,i){void 0===i.inputmask&&t().mask(i)}))})).ready((function(){e(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias],[data-inputmask-regex]").each((function(e,i){void 0===i.inputmask&&t().mask(i)}))}))}(jQuery,window.Inputmask,window);var tns=function(){var e=window,t=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)},i=window,n=i.cancelAnimationFrame||i.mozCancelAnimationFrame||function(e){clearTimeout(e)};function a(){for(var e,t,i,n=arguments[0]||{},a=1,r=arguments.length;a<r;a++)if(null!==(e=arguments[a]))for(t in e)n!==(i=e[t])&&void 0!==i&&(n[t]=i);return n}function r(e){return 0<=["true","false"].indexOf(e)?JSON.parse(e):e}function s(e,t,i,n){if(n)try{e.setItem(t,i)}catch(e){}return i}function o(){var e=document,t=e.body;return t||((t=e.createElement("body")).fake=!0),t}var l=document.documentElement;function c(e){var t="";return e.fake&&(t=l.style.overflow,e.style.background="",e.style.overflow=l.style.overflow="hidden",l.appendChild(e)),t}function u(e,t){e.fake&&(e.remove(),l.style.overflow=t,l.offsetHeight)}function d(e,t,i,n){"insertRule"in e?e.insertRule(t+"{"+i+"}",n):e.addRule(t,i,n)}function h(e){return("insertRule"in e?e.cssRules:e.rules).length}function f(e,t,i){for(var n=0,a=e.length;n<a;n++)t.call(i,e[n],n)}var p="classList"in document.createElement("_"),m=p?function(e,t){return e.classList.contains(t)}:function(e,t){return 0<=e.className.indexOf(t)},g=p?function(e,t){m(e,t)||e.classList.add(t)}:function(e,t){m(e,t)||(e.className+=" "+t)},v=p?function(e,t){m(e,t)&&e.classList.remove(t)}:function(e,t){m(e,t)&&(e.className=e.className.replace(t,""))};function y(e,t){return e.hasAttribute(t)}function b(e,t){return e.getAttribute(t)}function x(e){return void 0!==e.item}function _(e,t){if(e=x(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var n in t)e[i].setAttribute(n,t[n])}function w(e,t){e=x(e)||e instanceof Array?e:[e];for(var i=(t=t instanceof Array?t:[t]).length,n=e.length;n--;)for(var a=i;a--;)e[n].removeAttribute(t[a])}function k(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t}function M(e,t){"none"!==e.style.display&&(e.style.display="none")}function L(e,t){"none"===e.style.display&&(e.style.display="")}function S(e){return"none"!==window.getComputedStyle(e).display}function A(e){if("string"==typeof e){var t=[e],i=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach((function(n){"ms"===n&&"transform"!==e||t.push(n+i)})),e=t}for(var n=document.createElement("fakeelement"),a=(e.length,0);a<e.length;a++){var r=e[a];if(void 0!==n.style[r])return r}return!1}function T(e,t){var i=!1;return/^Webkit/.test(e)?i="webkit"+t+"End":/^O/.test(e)?i="o"+t+"End":e&&(i=t.toLowerCase()+"end"),i}var C=!1;try{var D=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,D)}catch(e){}var E=!!C&&{passive:!0};function O(e,t,i){for(var n in t){var a=0<=["touchstart","touchmove"].indexOf(n)&&!i&&E;e.addEventListener(n,t[n],a)}}function P(e,t){for(var i in t){var n=0<=["touchstart","touchmove"].indexOf(i)&&E;e.removeEventListener(i,t[i],n)}}function Y(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var i=0;i<this.topics[e].length;i++)if(this.topics[e][i]===t){this.topics[e].splice(i,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach((function(i){i(t,e)}))}}}Object.keys||(Object.keys=function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var I=function(e){e=a({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var i=document,l=window,p={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},x={},C=e.useLocalStorage;if(C){var D=navigator.userAgent,E=new Date;try{(x=l.localStorage)?(x.setItem(E,E),C=x.getItem(E)==E,x.removeItem(E)):C=!1,C||(x={})}catch(D){C=!1}C&&(x.tnsApp&&x.tnsApp!==D&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){x.removeItem(e)})),localStorage.tnsApp=D)}var j=x.tC?r(x.tC):s(x,"tC",function(){var e=document,t=o(),i=c(t),n=e.createElement("div"),a=!1;t.appendChild(n);try{for(var r,s="(10px * 10)",l=["calc"+s,"-moz-calc"+s,"-webkit-calc"+s],d=0;d<3;d++)if(r=l[d],n.style.width=r,100===n.offsetWidth){a=r.replace(s,"");break}}catch(e){}return t.fake?u(t,i):n.remove(),a}(),C),N=x.tPL?r(x.tPL):s(x,"tPL",function(){var e,t=document,i=o(),n=c(i),a=t.createElement("div"),r=t.createElement("div"),s="";a.className="tns-t-subp2",r.className="tns-t-ct";for(var l=0;l<70;l++)s+="<div></div>";return r.innerHTML=s,a.appendChild(r),i.appendChild(a),e=Math.abs(a.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,i.fake?u(i,n):a.remove(),e}(),C),H=x.tMQ?r(x.tMQ):s(x,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,i=o(),n=c(i),a=t.createElement("div"),r=t.createElement("style"),s="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return r.type="text/css",a.className="tns-mq-test",i.appendChild(r),i.appendChild(a),r.styleSheet?r.styleSheet.cssText=s:r.appendChild(t.createTextNode(s)),e=window.getComputedStyle?window.getComputedStyle(a).position:a.currentStyle.position,i.fake?u(i,n):a.remove(),"absolute"===e}(),C),F=x.tTf?r(x.tTf):s(x,"tTf",A("transform"),C),R=x.t3D?r(x.t3D):s(x,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,i=document,n=o(),a=c(n),r=i.createElement("p"),s=9<e.length?"-"+e.slice(0,-9).toLowerCase()+"-":"";return s+="transform",n.insertBefore(r,null),r.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(r).getPropertyValue(s),n.fake?u(n,a):r.remove(),void 0!==t&&0<t.length&&"none"!==t}(F),C),z=x.tTDu?r(x.tTDu):s(x,"tTDu",A("transitionDuration"),C),B=x.tTDe?r(x.tTDe):s(x,"tTDe",A("transitionDelay"),C),W=x.tADu?r(x.tADu):s(x,"tADu",A("animationDuration"),C),V=x.tADe?r(x.tADe):s(x,"tADe",A("animationDelay"),C),q=x.tTE?r(x.tTE):s(x,"tTE",T(z,"Transition"),C),X=x.tAE?r(x.tAE):s(x,"tAE",T(W,"Animation"),C),U=l.console&&"function"==typeof l.console.warn,$=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],G={};if($.forEach((function(t){if("string"==typeof e[t]){var n=e[t],a=i.querySelector(n);if(G[t]=n,!a||!a.nodeName)return void(U&&console.warn("Can't find",e[t]));e[t]=a}})),!(e.container.children.length<1)){var Z=e.responsive,K=e.nested,J="carousel"===e.mode;if(Z){0 in Z&&(e=a(e,Z[0]),delete Z[0]);var Q={};for(var ee in Z){var te=Z[ee];te="number"==typeof te?{items:te}:te,Q[ee]=te}Z=Q,Q=null}if(J||function e(t){for(var i in t)J||("slideBy"===i&&(t[i]="page"),"edgePadding"===i&&(t[i]=!1),"autoHeight"===i&&(t[i]=!1)),"responsive"===i&&e(t[i])}(e),!J){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var ie=e.animateIn,ne=e.animateOut,ae=e.animateDelay,re=e.animateNormal}var se,oe,le="horizontal"===e.axis,ce=i.createElement("div"),ue=i.createElement("div"),de=e.container,he=de.parentNode,fe=de.outerHTML,pe=de.children,me=pe.length,ge=Ei(),ve=!1;Z&&Ki(),J&&(de.className+=" tns-vpfix");var ye,be,xe,_e,we,ke,Me,Le,Se=e.autoWidth,Ae=Ii("fixedWidth"),Te=Ii("edgePadding"),Ce=Ii("gutter"),De=Pi(),Ee=Ii("center"),Oe=Se?1:Math.floor(Ii("items")),Pe=Ii("slideBy"),Ye=e.viewportMax||e.fixedWidthViewportWidth,Ie=Ii("arrowKeys"),je=Ii("speed"),Ne=e.rewind,He=!Ne&&e.loop,Fe=Ii("autoHeight"),Re=Ii("controls"),ze=Ii("controlsText"),Be=Ii("nav"),We=Ii("touch"),Ve=Ii("mouseDrag"),qe=Ii("autoplay"),Xe=Ii("autoplayTimeout"),Ue=Ii("autoplayText"),$e=Ii("autoplayHoverPause"),Ge=Ii("autoplayResetOnVisibility"),Ze=(null,Me=Ii("nonce"),Le=document.createElement("style"),Me&&Le.setAttribute("nonce",Me),document.querySelector("head").appendChild(Le),Le.sheet?Le.sheet:Le.styleSheet),Ke=e.lazyload,Je=e.lazyloadSelector,Qe=[],et=He?(we=function(){if(Se||Ae&&!Ye)return me-1;var t=Ae?"fixedWidth":"items",i=[];if((Ae||e[t]<me)&&i.push(e[t]),Z)for(var n in Z){var a=Z[n][t];a&&(Ae||a<me)&&i.push(a)}return i.length||i.push(0),Math.ceil(Ae?Ye/Math.min.apply(null,i):Math.max.apply(null,i))}(),ke=J?Math.ceil((5*we-me)/2):4*we-me,ke=Math.max(we,ke),Yi("edgePadding")?ke+1:ke):0,tt=J?me+2*et:me+et,it=!(!Ae&&!Se||He),nt=Ae?Mn():null,at=!J||!He,rt=le?"left":"top",st="",ot="",lt=Ae?function(){return Ee&&!He?me-1:Math.ceil(-nt/(Ae+Ce))}:Se?function(){for(var e=0;e<tt;e++)if(ye[e]>=-nt)return e}:function(){return Ee&&J&&!He?me-1:He||J?Math.max(0,tt-Math.ceil(Oe)):tt-1},ct=Ti(Ii("startIndex")),ut=ct,dt=(Ai(),0),ht=Se?null:lt(),ft=e.preventActionWhenRunning,pt=e.swipeAngle,mt=!pt||"?",gt=!1,vt=e.onInit,yt=new Y,bt=" tns-slider tns-"+e.mode,xt=de.id||(_e=window.tnsId,window.tnsId=_e?_e+1:1,"tns"+window.tnsId),_t=Ii("disable"),wt=!1,kt=e.freezable,Mt=!(!kt||Se)&&Zi(),Lt=!1,St={click:Pn,keydown:function(e){e=zn(e);var t=[p.LEFT,p.RIGHT].indexOf(e.keyCode);0<=t&&(0===t?$t.disabled||Pn(e,-1):Gt.disabled||Pn(e,1))}},At={click:function(e){if(gt){if(ft)return;En()}for(var t=Bn(e=zn(e));t!==Qt&&!y(t,"data-nav");)t=t.parentNode;if(y(t,"data-nav")){var i=ni=Number(b(t,"data-nav")),n=Ae||Se?i*me/ti:i*Oe;On(It?i:Math.min(Math.ceil(n),me-1),e),ai===i&&(ui&&Hn(),ni=-1)}},keydown:function(e){e=zn(e);var t=i.activeElement;if(y(t,"data-nav")){var n=[p.LEFT,p.RIGHT,p.ENTER,p.SPACE].indexOf(e.keyCode),a=Number(b(t,"data-nav"));0<=n&&(0===n?0<a&&Rn(Jt[a-1]):1===n?a<ti-1&&Rn(Jt[a+1]):On(ni=a,e))}}},Tt={mouseover:function(){ui&&(In(),di=!0)},mouseout:function(){di&&(Yn(),di=!1)}},Ct={visibilitychange:function(){i.hidden?ui&&(In(),fi=!0):fi&&(Yn(),fi=!1)}},Dt={keydown:function(e){e=zn(e);var t=[p.LEFT,p.RIGHT].indexOf(e.keyCode);0<=t&&Pn(e,0===t?-1:1)}},Et={touchstart:Xn,touchmove:Un,touchend:$n,touchcancel:$n},Ot={mousedown:Xn,mousemove:Un,mouseup:$n,mouseleave:$n},Pt=Yi("controls"),Yt=Yi("nav"),It=!!Se||e.navAsThumbnails,jt=Yi("autoplay"),Nt=Yi("touch"),Ht=Yi("mouseDrag"),Ft="tns-slide-active",Rt="tns-slide-cloned",zt="tns-complete",Bt={load:function(e){on(Bn(e))},error:function(e){var t;t=Bn(e),g(t,"failed"),ln(t)}},Wt="force"===e.preventScrollOnTouch;if(Pt)var Vt,qt,Xt=e.controlsContainer,Ut=e.controlsContainer?e.controlsContainer.outerHTML:"",$t=e.prevButton,Gt=e.nextButton,Zt=e.prevButton?e.prevButton.outerHTML:"",Kt=e.nextButton?e.nextButton.outerHTML:"";if(Yt)var Jt,Qt=e.navContainer,ei=e.navContainer?e.navContainer.outerHTML:"",ti=Se?me:Zn(),ii=0,ni=-1,ai=Di(),ri=ai,si="tns-nav-active",oi="Carousel Page ",li=" (Current Slide)";if(jt)var ci,ui,di,hi,fi,pi="forward"===e.autoplayDirection?1:-1,mi=e.autoplayButton,gi=e.autoplayButton?e.autoplayButton.outerHTML:"",vi=["<span class='tns-visually-hidden'>"," animation</span>"];if(Nt||Ht)var yi,bi,xi={},_i={},wi=!1,ki=le?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Se||Si(_t||Mt),F&&(rt=F,st="translate",R?(st+=le?"3d(":"3d(0px, ",ot=le?", 0px, 0px)":", 0px)"):(st+=le?"X(":"Y(",ot=")")),J&&(de.className=de.className.replace("tns-vpfix","")),function(){(Yi("gutter"),ce.className="tns-outer",ue.className="tns-inner",ce.id=xt+"-ow",ue.id=xt+"-iw",""===de.id&&(de.id=xt),bt+=N||Se?" tns-subpixel":" tns-no-subpixel",bt+=j?" tns-calc":" tns-no-calc",Se&&(bt+=" tns-autowidth"),bt+=" tns-"+e.axis,de.className+=bt,J?((se=i.createElement("div")).id=xt+"-mw",se.className="tns-ovh",ce.appendChild(se),se.appendChild(ue)):ce.appendChild(ue),Fe)&&((se||ue).className+=" tns-ah");if(he.insertBefore(ce,de),ue.appendChild(de),f(pe,(function(e,t){g(e,"tns-item"),e.id||(e.id=xt+"-item"+t),!J&&re&&g(e,re),_(e,{"aria-hidden":"true",tabindex:"-1"})})),et){for(var t=i.createDocumentFragment(),n=i.createDocumentFragment(),a=et;a--;){var r=a%me,s=pe[r].cloneNode(!0);if(g(s,Rt),w(s,"id"),n.insertBefore(s,n.firstChild),J){var o=pe[me-1-r].cloneNode(!0);g(o,Rt),w(o,"id"),t.appendChild(o)}}de.insertBefore(t,de.firstChild),de.appendChild(n),pe=de.children}}(),function(){if(!J)for(var t=ct,i=ct+Math.min(me,Oe);t<i;t++){var n=pe[t];n.style.left=100*(t-ct)/Oe+"%",g(n,ie),v(n,re)}if(le&&(N||Se?(d(Ze,"#"+xt+" > .tns-item","font-size:"+l.getComputedStyle(pe[0]).fontSize+";",h(Ze)),d(Ze,"#"+xt,"font-size:0;",h(Ze))):J&&f(pe,(function(e,t){var i;e.style.marginLeft=(i=t,j?j+"("+100*i+"% / "+tt+")":100*i/tt+"%")}))),H){if(z){var a=se&&e.autoHeight?zi(e.speed):"";d(Ze,"#"+xt+"-mw",a,h(Ze))}a=ji(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),d(Ze,"#"+xt+"-iw",a,h(Ze)),J&&(a=le&&!Se?"width:"+Ni(e.fixedWidth,e.gutter,e.items)+";":"",z&&(a+=zi(je)),d(Ze,"#"+xt,a,h(Ze))),a=le&&!Se?Hi(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(a+=Fi(e.gutter)),J||(z&&(a+=zi(je)),W&&(a+=Bi(je))),a&&d(Ze,"#"+xt+" > .tns-item",a,h(Ze))}else{J&&Fe&&(se.style[z]=je/1e3+"s"),ue.style.cssText=ji(Te,Ce,Ae,Fe),J&&le&&!Se&&(de.style.width=Ni(Ae,Ce,Oe));a=le&&!Se?Hi(Ae,Ce,Oe):"";Ce&&(a+=Fi(Ce)),a&&d(Ze,"#"+xt+" > .tns-item",a,h(Ze))}if(Z&&H)for(var r in Z){r=parseInt(r);var s=Z[r],o=(a="",""),c="",u="",p="",m=Se?null:Ii("items",r),y=Ii("fixedWidth",r),b=Ii("speed",r),x=Ii("edgePadding",r),_=Ii("autoHeight",r),w=Ii("gutter",r);z&&se&&Ii("autoHeight",r)&&"speed"in s&&(o="#"+xt+"-mw{"+zi(b)+"}"),("edgePadding"in s||"gutter"in s)&&(c="#"+xt+"-iw{"+ji(x,w,y,b,_)+"}"),J&&le&&!Se&&("fixedWidth"in s||"items"in s||Ae&&"gutter"in s)&&(u="width:"+Ni(y,w,m)+";"),z&&"speed"in s&&(u+=zi(b)),u&&(u="#"+xt+"{"+u+"}"),("fixedWidth"in s||Ae&&"gutter"in s||!J&&"items"in s)&&(p+=Hi(y,w,m)),"gutter"in s&&(p+=Fi(w)),!J&&"speed"in s&&(z&&(p+=zi(b)),W&&(p+=Bi(b))),p&&(p="#"+xt+" > .tns-item{"+p+"}"),(a=o+c+u+p)&&Ze.insertRule("@media (min-width: "+r/16+"em) {"+a+"}",Ze.cssRules.length)}}(),Wi();var Mi=He?J?function(){var e=dt,t=ht;e+=Pe,t-=Pe,Te?(e+=1,t-=1):Ae&&(De+Ce)%(Ae+Ce)&&(t-=1),et&&(t<ct?ct-=me:ct<e&&(ct+=me))}:function(){if(ht<ct)for(;dt+me<=ct;)ct-=me;else if(ct<dt)for(;ct<=ht-me;)ct+=me}:function(){ct=Math.max(dt,Math.min(ht,ct))},Li=J?function(){var e,t,i,n,a,r,s,o,l,c,u;wn(de,""),z||!je?(An(),je&&S(de)||En()):(e=de,t=rt,i=st,n=ot,a=Ln(),r=je,s=En,o=Math.min(r,10),l=0<=a.indexOf("%")?"%":"px",a=a.replace(l,""),c=Number(e.style[t].replace(i,"").replace(n,"").replace(l,"")),u=(a-c)/r*o,setTimeout((function a(){r-=o,c+=u,e.style[t]=i+c+l+n,0<r?setTimeout(a,o):s()}),o)),le||Gn()}:function(){Qe=[];var e={};e[q]=e[X]=En,P(pe[ut],e),O(pe[ct],e),Tn(ut,ie,ne,!0),Tn(ct,re,ie),q&&X&&je&&S(de)||En()};return{version:"2.9.4",getInfo:Jn,events:yt,goTo:On,play:function(){qe&&!ui&&(Nn(),hi=!1)},pause:function(){ui&&(Hn(),hi=!0)},isOn:ve,updateSliderHeight:pn,refresh:Wi,destroy:function(){if(Ze.disabled=!0,Ze.ownerNode&&Ze.ownerNode.remove(),P(l,{resize:$i}),Ie&&P(i,Dt),Xt&&P(Xt,St),Qt&&P(Qt,At),P(de,Tt),P(de,Ct),mi&&P(mi,{click:Fn}),qe&&clearInterval(ci),J&&q){var t={};t[q]=En,P(de,t)}We&&P(de,Et),Ve&&P(de,Ot);var n=[fe,Ut,Zt,Kt,ei,gi];for(var a in $.forEach((function(t,i){var a="container"===t?ce:e[t];if("object"==typeof a&&a){var r=!!a.previousElementSibling&&a.previousElementSibling,s=a.parentNode;a.outerHTML=n[i],e[t]=r?r.nextElementSibling:s.firstElementChild}})),$=ie=ne=ae=re=le=ce=ue=de=he=fe=pe=me=oe=ge=Se=Ae=Te=Ce=De=Oe=Pe=Ye=Ie=je=Ne=He=Fe=Ze=Ke=ye=Qe=et=tt=it=nt=at=rt=st=ot=lt=ct=ut=dt=ht=pt=mt=gt=vt=yt=bt=xt=_t=wt=kt=Mt=Lt=St=At=Tt=Ct=Dt=Et=Ot=Pt=Yt=It=jt=Nt=Ht=Ft=zt=Bt=be=Re=ze=Xt=Ut=$t=Gt=Vt=qt=Be=Qt=ei=Jt=ti=ii=ni=ai=ri=si=oi=li=qe=Xe=pi=Ue=$e=mi=gi=Ge=vi=ci=ui=di=hi=fi=xi=_i=yi=wi=bi=ki=We=Ve=null,this)"rebuild"!==a&&(this[a]=null);ve=!1},rebuild:function(){return I(a(e,G))}}}function Si(e){e&&(Re=Be=We=Ve=Ie=qe=$e=Ge=!1)}function Ai(){for(var e=J?ct-et:ct;e<0;)e+=me;return e%me+1}function Ti(e){return e=e?Math.max(0,Math.min(He?me-1:me-Oe,e)):0,J?e+et:e}function Ci(e){for(null==e&&(e=ct),J&&(e-=et);e<0;)e+=me;return Math.floor(e%me)}function Di(){var e,t=Ci();return e=It?t:Ae||Se?Math.ceil((t+1)*ti/me-1):Math.floor(t/Oe),!He&&J&&ct===ht&&(e=ti-1),e}function Ei(){return l.innerWidth||i.documentElement.clientWidth||i.body.clientWidth}function Oi(e){return"top"===e?"afterbegin":"beforeend"}function Pi(){var e=Te?2*Te-Ce:0;return function e(t){if(null!=t){var n,a,r=i.createElement("div");return t.appendChild(r),a=(n=r.getBoundingClientRect()).right-n.left,r.remove(),a||e(t.parentNode)}}(he)-e}function Yi(t){if(e[t])return!0;if(Z)for(var i in Z)if(Z[i][t])return!0;return!1}function Ii(t,i){if(null==i&&(i=ge),"items"===t&&Ae)return Math.floor((De+Ce)/(Ae+Ce))||1;var n=e[t];if(Z)for(var a in Z)i>=parseInt(a)&&t in Z[a]&&(n=Z[a][t]);return"slideBy"===t&&"page"===n&&(n=Ii("items")),J||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function ji(e,t,i,n,a){var r="";if(void 0!==e){var s=e;t&&(s-=t),r=le?"margin: 0 "+s+"px 0 "+e+"px;":"margin: "+e+"px 0 "+s+"px 0;"}else if(t&&!i){var o="-"+t+"px";r="margin: 0 "+(le?o+" 0 0":"0 "+o+" 0")+";"}return!J&&a&&z&&n&&(r+=zi(n)),r}function Ni(e,t,i){return e?(e+t)*tt+"px":j?j+"("+100*tt+"% / "+i+")":100*tt/i+"%"}function Hi(e,t,i){var n;if(e)n=e+t+"px";else{J||(i=Math.floor(i));var a=J?tt:i;n=j?j+"(100% / "+a+")":100/a+"%"}return n="width:"+n,"inner"!==K?n+";":n+" !important;"}function Fi(e){var t="";return!1!==e&&(t=(le?"padding-":"margin-")+(le?"right":"bottom")+": "+e+"px;"),t}function Ri(e,t){var i=e.substring(0,e.length-t).toLowerCase();return i&&(i="-"+i+"-"),i}function zi(e){return Ri(z,18)+"transition-duration:"+e/1e3+"s;"}function Bi(e){return Ri(W,17)+"animation-duration:"+e/1e3+"s;"}function Wi(){if(Yi("autoHeight")||Se||!le){var e=de.querySelectorAll("img");f(e,(function(e){var t=e.src;Ke||(t&&t.indexOf("data:image")<0?(e.src="",O(e,Bt),g(e,"loading"),e.src=t):on(e))})),t((function(){dn(k(e),(function(){be=!0}))})),Yi("autoHeight")&&(e=cn(ct,Math.min(ct+Oe-1,tt-1))),Ke?Vi():t((function(){dn(k(e),Vi)}))}else J&&Sn(),Xi(),Ui()}function Vi(){if(Se&&1<me){var e=He?ct:me-1;!function t(){var i=pe[e].getBoundingClientRect().left,n=pe[e-1].getBoundingClientRect().right;Math.abs(i-n)<=1?qi():setTimeout((function(){t()}),16)}()}else qi()}function qi(){le&&!Se||(mn(),Se?(nt=Mn(),kt&&(Mt=Zi()),ht=lt(),Si(_t||Mt)):Gn()),J&&Sn(),Xi(),Ui()}function Xi(){if(gn(),ce.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+an()+"</span> of "+me+"</div>"),xe=ce.querySelector(".tns-liveregion .current"),jt){var t=qe?"stop":"start";mi?_(mi,{"data-action":t}):e.autoplayButtonOutput&&(ce.insertAdjacentHTML(Oi(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+vi[0]+t+vi[1]+Ue[0]+"</button>"),mi=ce.querySelector("[data-action]")),mi&&O(mi,{click:Fn}),qe&&(Nn(),$e&&O(de,Tt),Ge&&O(de,Ct))}if(Yt){if(Qt)_(Qt,{"aria-label":"Carousel Pagination"}),f(Jt=Qt.children,(function(e,t){_(e,{"data-nav":t,tabindex:"-1","aria-label":oi+(t+1),"aria-controls":xt})}));else{for(var i="",n=It?"":'style="display:none"',a=0;a<me;a++)i+='<button type="button" data-nav="'+a+'" tabindex="-1" aria-controls="'+xt+'" '+n+' aria-label="'+oi+(a+1)+'"></button>';i='<div class="tns-nav" aria-label="Carousel Pagination">'+i+"</div>",ce.insertAdjacentHTML(Oi(e.navPosition),i),Qt=ce.querySelector(".tns-nav"),Jt=Qt.children}if(Kn(),z){var r=z.substring(0,z.length-18).toLowerCase(),s="transition: all "+je/1e3+"s";r&&(s="-"+r+"-"+s),d(Ze,"[aria-controls^="+xt+"-item]",s,h(Ze))}_(Jt[ai],{"aria-label":oi+(ai+1)+li}),w(Jt[ai],"tabindex"),g(Jt[ai],si),O(Qt,At)}Pt&&(Xt||$t&&Gt||(ce.insertAdjacentHTML(Oi(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+xt+'">'+ze[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+xt+'">'+ze[1]+"</button></div>"),Xt=ce.querySelector(".tns-controls")),$t&&Gt||($t=Xt.children[0],Gt=Xt.children[1]),e.controlsContainer&&_(Xt,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&_([$t,Gt],{"aria-controls":xt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(_($t,{"data-controls":"prev"}),_(Gt,{"data-controls":"next"})),Vt=yn($t),qt=yn(Gt),_n(),Xt?O(Xt,St):(O($t,St),O(Gt,St))),Ji()}function Ui(){if(J&&q){var t={};t[q]=En,O(de,t)}We&&O(de,Et,e.preventScrollOnTouch),Ve&&O(de,Ot),Ie&&O(i,Dt),"inner"===K?yt.on("outerResized",(function(){Gi(),yt.emit("innerLoaded",Jn())})):(Z||Ae||Se||Fe||!le)&&O(l,{resize:$i}),Fe&&("outer"===K?yt.on("innerLoaded",un):_t||un()),sn(),_t?tn():Mt&&en(),yt.on("indexChanged",hn),"inner"===K&&yt.emit("innerLoaded",Jn()),"function"==typeof vt&&vt(Jn()),ve=!0}function $i(e){t((function(){Gi(zn(e))}))}function Gi(t){if(ve){"outer"===K&&yt.emit("outerResized",Jn(t)),ge=Ei();var n,a=oe,r=!1;Z&&(Ki(),(n=a!==oe)&&yt.emit("newBreakpointStart",Jn(t)));var s,o,l,c,u=Oe,p=_t,m=Mt,y=Ie,b=Re,x=Be,_=We,w=Ve,k=qe,S=$e,A=Ge,T=ct;if(n){var C=Ae,D=Fe,E=ze,Y=Ee,I=Ue;if(!H)var j=Ce,N=Te}if(Ie=Ii("arrowKeys"),Re=Ii("controls"),Be=Ii("nav"),We=Ii("touch"),Ee=Ii("center"),Ve=Ii("mouseDrag"),qe=Ii("autoplay"),$e=Ii("autoplayHoverPause"),Ge=Ii("autoplayResetOnVisibility"),n&&(_t=Ii("disable"),Ae=Ii("fixedWidth"),je=Ii("speed"),Fe=Ii("autoHeight"),ze=Ii("controlsText"),Ue=Ii("autoplayText"),Xe=Ii("autoplayTimeout"),H||(Te=Ii("edgePadding"),Ce=Ii("gutter"))),Si(_t),De=Pi(),le&&!Se||_t||(mn(),le||(Gn(),r=!0)),(Ae||Se)&&(nt=Mn(),ht=lt()),(n||Ae)&&(Oe=Ii("items"),Pe=Ii("slideBy"),(o=Oe!==u)&&(Ae||Se||(ht=lt()),Mi())),n&&_t!==p&&(_t?tn():function(){if(wt){if(Ze.disabled=!1,de.className+=bt,Sn(),He)for(var e=et;e--;)J&&L(pe[e]),L(pe[tt-e-1]);if(!J)for(var t=ct,i=ct+me;t<i;t++){var n=pe[t],a=t<ct+Oe?ie:re;n.style.left=100*(t-ct)/Oe+"%",g(n,a)}Qi(),wt=!1}}()),kt&&(n||Ae||Se)&&(Mt=Zi())!==m&&(Mt?(An(Ln(Ti(0))),en()):(function(){if(Lt){if(Te&&H&&(ue.style.margin=""),et)for(var e="tns-transparent",t=et;t--;)J&&v(pe[t],e),v(pe[tt-t-1],e);Qi(),Lt=!1}}(),r=!0)),Si(_t||Mt),qe||($e=Ge=!1),Ie!==y&&(Ie?O(i,Dt):P(i,Dt)),Re!==b&&(Re?Xt?L(Xt):($t&&L($t),Gt&&L(Gt)):Xt?M(Xt):($t&&M($t),Gt&&M(Gt))),Be!==x&&(Be?(L(Qt),Kn()):M(Qt)),We!==_&&(We?O(de,Et,e.preventScrollOnTouch):P(de,Et)),Ve!==w&&(Ve?O(de,Ot):P(de,Ot)),qe!==k&&(qe?(mi&&L(mi),ui||hi||Nn()):(mi&&M(mi),ui&&Hn())),$e!==S&&($e?O(de,Tt):P(de,Tt)),Ge!==A&&(Ge?O(i,Ct):P(i,Ct)),n){if(Ae===C&&Ee===Y||(r=!0),Fe!==D&&(Fe||(ue.style.height="")),Re&&ze!==E&&($t.innerHTML=ze[0],Gt.innerHTML=ze[1]),mi&&Ue!==I){var F=qe?1:0,R=mi.innerHTML,z=R.length-I[F].length;R.substring(z)===I[F]&&(mi.innerHTML=R.substring(0,z)+Ue[F])}}else Ee&&(Ae||Se)&&(r=!0);if((o||Ae&&!Se)&&(ti=Zn(),Kn()),(s=ct!==T)?(yt.emit("indexChanged",Jn()),r=!0):o?s||hn():(Ae||Se)&&(sn(),gn(),nn()),o&&!J&&function(){for(var e=ct+Math.min(me,Oe),t=tt;t--;){var i=pe[t];ct<=t&&t<e?(g(i,"tns-moving"),i.style.left=100*(t-ct)/Oe+"%",g(i,ie),v(i,re)):i.style.left&&(i.style.left="",g(i,re),v(i,ie)),v(i,ne)}setTimeout((function(){f(pe,(function(e){v(e,"tns-moving")}))}),300)}(),!_t&&!Mt){if(n&&!H&&(Te===N&&Ce===j||(ue.style.cssText=ji(Te,Ce,Ae,je,Fe)),le)){J&&(de.style.width=Ni(Ae,Ce,Oe));var B=Hi(Ae,Ce,Oe)+Fi(Ce);c=h(l=Ze)-1,"deleteRule"in l?l.deleteRule(c):l.removeRule(c),d(Ze,"#"+xt+" > .tns-item",B,h(Ze))}Fe&&un(),r&&(Sn(),ut=ct)}n&&yt.emit("newBreakpointEnd",Jn(t))}}function Zi(){if(!Ae&&!Se)return me<=(Ee?Oe-(Oe-1)/2:Oe);var e=Ae?(Ae+Ce)*me:ye[me],t=Te?De+2*Te:De+Ce;return Ee&&(t-=Ae?(De-Ae)/2:(De-(ye[ct+1]-ye[ct]-Ce))/2),e<=t}function Ki(){for(var e in oe=0,Z)(e=parseInt(e))<=ge&&(oe=e)}function Ji(){!qe&&mi&&M(mi),!Be&&Qt&&M(Qt),Re||(Xt?M(Xt):($t&&M($t),Gt&&M(Gt)))}function Qi(){qe&&mi&&L(mi),Be&&Qt&&L(Qt),Re&&(Xt?L(Xt):($t&&L($t),Gt&&L(Gt)))}function en(){if(!Lt){if(Te&&(ue.style.margin="0px"),et)for(var e="tns-transparent",t=et;t--;)J&&g(pe[t],e),g(pe[tt-t-1],e);Ji(),Lt=!0}}function tn(){if(!wt){if(Ze.disabled=!0,de.className=de.className.replace(bt.substring(1),""),w(de,["style"]),He)for(var e=et;e--;)J&&M(pe[e]),M(pe[tt-e-1]);if(le&&J||w(ue,["style"]),!J)for(var t=ct,i=ct+me;t<i;t++){var n=pe[t];w(n,["style"]),v(n,ie),v(n,re)}Ji(),wt=!0}}function nn(){var e=an();xe.innerHTML!==e&&(xe.innerHTML=e)}function an(){var e=rn(),t=e[0]+1,i=e[1]+1;return t===i?t+"":t+" to "+i}function rn(e){null==e&&(e=Ln());var t,i,n,a=ct;if(Ee||Te?(Se||Ae)&&(i=-(parseFloat(e)+Te),n=i+De+2*Te):Se&&(i=ye[ct],n=i+De),Se)ye.forEach((function(e,r){r<tt&&((Ee||Te)&&e<=i+.5&&(a=r),.5<=n-e&&(t=r))}));else{if(Ae){var r=Ae+Ce;Ee||Te?(a=Math.floor(i/r),t=Math.ceil(n/r-1)):t=a+Math.ceil(De/r)-1}else if(Ee||Te){var s=Oe-1;if(Ee?(a-=s/2,t=ct+s/2):t=ct+s,Te){var o=Te*Oe/De;a-=o,t+=o}a=Math.floor(a),t=Math.ceil(t)}else t=a+Oe-1;a=Math.max(a,0),t=Math.min(t,tt-1)}return[a,t]}function sn(){if(Ke&&!_t){var e=rn();e.push(Je),cn.apply(null,e).forEach((function(e){if(!m(e,zt)){var t={};t[q]=function(e){e.stopPropagation()},O(e,t),O(e,Bt),e.src=b(e,"data-src");var i=b(e,"data-srcset");i&&(e.srcset=i),g(e,"loading")}}))}}function on(e){g(e,"loaded"),ln(e)}function ln(e){g(e,zt),v(e,"loading"),P(e,Bt)}function cn(e,t,i){var n=[];for(i||(i="img");e<=t;)f(pe[e].querySelectorAll(i),(function(e){n.push(e)})),e++;return n}function un(){var e=cn.apply(null,rn());t((function(){dn(e,pn)}))}function dn(e,i){return be?i():(e.forEach((function(t,i){!Ke&&t.complete&&ln(t),m(t,zt)&&e.splice(i,1)})),e.length?void t((function(){dn(e,i)})):i())}function hn(){sn(),gn(),nn(),_n(),function(){if(Be&&(ai=0<=ni?ni:Di(),ni=-1,ai!==ri)){var e=Jt[ri],t=Jt[ai];_(e,{tabindex:"-1","aria-label":oi+(ri+1)}),v(e,si),_(t,{"aria-label":oi+(ai+1)+li}),w(t,"tabindex"),g(t,si),ri=ai}}()}function fn(e,t){for(var i=[],n=e,a=Math.min(e+t,tt);n<a;n++)i.push(pe[n].offsetHeight);return Math.max.apply(null,i)}function pn(){var e=Fe?fn(ct,Oe):fn(et,me),t=se||ue;t.style.height!==e&&(t.style.height=e+"px")}function mn(){ye=[0];var e=le?"left":"top",t=le?"right":"bottom",i=pe[0].getBoundingClientRect()[e];f(pe,(function(n,a){a&&ye.push(n.getBoundingClientRect()[e]-i),a===tt-1&&ye.push(n.getBoundingClientRect()[t]-i)}))}function gn(){var e=rn(),t=e[0],i=e[1];f(pe,(function(e,n){t<=n&&n<=i?y(e,"aria-hidden")&&(w(e,["aria-hidden","tabindex"]),g(e,Ft)):y(e,"aria-hidden")||(_(e,{"aria-hidden":"true",tabindex:"-1"}),v(e,Ft))}))}function vn(e){return e.nodeName.toLowerCase()}function yn(e){return"button"===vn(e)}function bn(e){return"true"===e.getAttribute("aria-disabled")}function xn(e,t,i){e?t.disabled=i:t.setAttribute("aria-disabled",i.toString())}function _n(){if(Re&&!Ne&&!He){var e=Vt?$t.disabled:bn($t),t=qt?Gt.disabled:bn(Gt),i=ct<=dt,n=!Ne&&ht<=ct;i&&!e&&xn(Vt,$t,!0),!i&&e&&xn(Vt,$t,!1),n&&!t&&xn(qt,Gt,!0),!n&&t&&xn(qt,Gt,!1)}}function wn(e,t){z&&(e.style[z]=t)}function kn(e){return null==e&&(e=ct),Se?(De-(Te?Ce:0)-(ye[e+1]-ye[e]-Ce))/2:Ae?(De-Ae)/2:(Oe-1)/2}function Mn(){var e=De+(Te?Ce:0)-(Ae?(Ae+Ce)*tt:ye[tt]);return Ee&&!He&&(e=Ae?-(Ae+Ce)*(tt-1)-kn():kn(tt-1)-ye[tt-1]),0<e&&(e=0),e}function Ln(e){var t;if(null==e&&(e=ct),le&&!Se)if(Ae)t=-(Ae+Ce)*e,Ee&&(t+=kn());else{var i=F?tt:Oe;Ee&&(e-=kn()),t=100*-e/i}else t=-ye[e],Ee&&Se&&(t+=kn());return it&&(t=Math.max(t,nt)),t+(!le||Se||Ae?"px":"%")}function Sn(e){wn(de,"0s"),An(e)}function An(e){null==e&&(e=Ln()),de.style[rt]=st+e+ot}function Tn(e,t,i,n){var a=e+Oe;He||(a=Math.min(a,tt));for(var r=e;r<a;r++){var s=pe[r];n||(s.style.left=100*(r-ct)/Oe+"%"),ae&&B&&(s.style[B]=s.style[V]=ae*(r-e)/1e3+"s"),v(s,t),g(s,i),n&&Qe.push(s)}}function Cn(e,t){at&&Mi(),(ct!==ut||t)&&(yt.emit("indexChanged",Jn()),yt.emit("transitionStart",Jn()),Fe&&un(),ui&&e&&0<=["click","keydown"].indexOf(e.type)&&Hn(),gt=!0,Li())}function Dn(e){return e.toLowerCase().replace(/-/g,"")}function En(e){if(J||gt){if(yt.emit("transitionEnd",Jn(e)),!J&&0<Qe.length)for(var t=0;t<Qe.length;t++){var i=Qe[t];i.style.left="",V&&B&&(i.style[V]="",i.style[B]=""),v(i,ne),g(i,re)}if(!e||!J&&e.target.parentNode===de||e.target===de&&Dn(e.propertyName)===Dn(rt)){if(!at){var n=ct;Mi(),ct!==n&&(yt.emit("indexChanged",Jn()),Sn())}"inner"===K&&yt.emit("innerLoaded",Jn()),gt=!1,ut=ct}}}function On(e,t){if(!Mt)if("prev"===e)Pn(t,-1);else if("next"===e)Pn(t,1);else{if(gt){if(ft)return;En()}var i=Ci(),n=0;if("first"===e?n=-i:"last"===e?n=J?me-Oe-i:me-1-i:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(me-1,e))),n=e-i)),!J&&n&&Math.abs(n)<Oe){var a=0<n?1:-1;n+=dt<=ct+n-me?me*a:2*me*a*-1}ct+=n,J&&He&&(ct<dt&&(ct+=me),ht<ct&&(ct-=me)),Ci(ct)!==Ci(ut)&&Cn(t)}}function Pn(e,t){if(gt){if(ft)return;En()}var i;if(!t){for(var n=Bn(e=zn(e));n!==Xt&&[$t,Gt].indexOf(n)<0;)n=n.parentNode;var a=[$t,Gt].indexOf(n);0<=a&&(i=!0,t=0===a?-1:1)}if(Ne){if(ct===dt&&-1===t)return void On("last",e);if(ct===ht&&1===t)return void On("first",e)}t&&(ct+=Pe*t,Se&&(ct=Math.floor(ct)),Cn(i||e&&"keydown"===e.type?e:null))}function Yn(){ci=setInterval((function(){Pn(null,pi)}),Xe),ui=!0}function In(){clearInterval(ci),ui=!1}function jn(e,t){_(mi,{"data-action":e}),mi.innerHTML=vi[0]+e+vi[1]+t}function Nn(){Yn(),mi&&jn("stop",Ue[1])}function Hn(){In(),mi&&jn("start",Ue[0])}function Fn(){ui?(Hn(),hi=!0):(Nn(),hi=!1)}function Rn(e){e.focus()}function zn(e){return Wn(e=e||l.event)?e.changedTouches[0]:e}function Bn(e){return e.target||l.event.srcElement}function Wn(e){return 0<=e.type.indexOf("touch")}function Vn(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function qn(){return r=_i.y-xi.y,s=_i.x-xi.x,t=Math.atan2(r,s)*(180/Math.PI),n=!1,90-(i=pt)<=(a=Math.abs(90-Math.abs(t)))?n="horizontal":a<=i&&(n="vertical"),n===e.axis;var t,i,n,a,r,s}function Xn(e){if(gt){if(ft)return;En()}qe&&ui&&In(),wi=!0,bi&&(n(bi),bi=null);var t=zn(e);yt.emit(Wn(e)?"touchStart":"dragStart",Jn(e)),!Wn(e)&&0<=["img","a"].indexOf(vn(Bn(e)))&&Vn(e),_i.x=xi.x=t.clientX,_i.y=xi.y=t.clientY,J&&(yi=parseFloat(de.style[rt].replace(st,"")),wn(de,"0s"))}function Un(e){if(wi){var i=zn(e);_i.x=i.clientX,_i.y=i.clientY,J?bi||(bi=t((function(){!function e(i){if(mt){if(n(bi),wi&&(bi=t((function(){e(i)}))),"?"===mt&&(mt=qn()),mt){!Wt&&Wn(i)&&(Wt=!0);try{i.type&&yt.emit(Wn(i)?"touchMove":"dragMove",Jn(i))}catch(e){}var a=yi,r=ki(_i,xi);if(!le||Ae||Se)a+=r,a+="px";else a+=F?r*Oe*100/((De+Ce)*tt):100*r/(De+Ce),a+="%";de.style[rt]=st+a+ot}}else wi=!1}(e)}))):("?"===mt&&(mt=qn()),mt&&(Wt=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Wt&&e.preventDefault()}}function $n(i){if(wi){bi&&(n(bi),bi=null),J&&wn(de,""),wi=!1;var a=zn(i);_i.x=a.clientX,_i.y=a.clientY;var r=ki(_i,xi);if(Math.abs(r)){if(!Wn(i)){var s=Bn(i);O(s,{click:function e(t){Vn(t),P(s,{click:e})}})}J?bi=t((function(){if(le&&!Se){var e=-r*Oe/(De+Ce);e=0<r?Math.floor(e):Math.ceil(e),ct+=e}else{var t=-(yi+r);if(t<=0)ct=dt;else if(t>=ye[tt-1])ct=ht;else for(var n=0;n<tt&&t>=ye[n];)t>ye[ct=n]&&r<0&&(ct+=1),n++}Cn(i,r),yt.emit(Wn(i)?"touchEnd":"dragEnd",Jn(i))})):mt&&Pn(i,0<r?-1:1)}}"auto"===e.preventScrollOnTouch&&(Wt=!1),pt&&(mt="?"),qe&&!ui&&Yn()}function Gn(){(se||ue).style.height=ye[ct+Oe]-ye[ct]+"px"}function Zn(){var e=Ae?(Ae+Ce)*me/De:me/Oe;return Math.min(Math.ceil(e),me)}function Kn(){if(Be&&!It&&ti!==ii){var e=ii,t=ti,i=L;for(ti<ii&&(e=ti,t=ii,i=M);e<t;)i(Jt[e]),e++;ii=ti}}function Jn(e){return{container:de,slideItems:pe,navContainer:Qt,navItems:Jt,controlsContainer:Xt,hasControls:Pt,prevButton:$t,nextButton:Gt,items:Oe,slideBy:Pe,cloneCount:et,slideCount:me,slideCountNew:tt,index:ct,indexCached:ut,displayIndex:Ai(),navCurrentIndex:ai,navCurrentIndexCached:ri,pages:ti,pagesCached:ii,sheet:Ze,isOn:ve,event:e||{}}}U&&console.warn("No slides found in",e.container)};return I}();!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).noUiSlider={})}(this,(function(e){"use strict";var t,i;function n(e){return"object"==typeof e&&"function"==typeof e.to}function a(e){e.parentElement.removeChild(e)}function r(e){return null!=e}function s(e){e.preventDefault()}function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function l(e,t,i){i>0&&(h(e,t),setTimeout((function(){f(e,t)}),i))}function c(e){return Math.max(Math.min(e,100),0)}function u(e){return Array.isArray(e)?e:[e]}function d(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function h(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function f(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function p(e){var t=void 0!==window.pageXOffset,i="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:i?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:i?e.documentElement.scrollTop:e.body.scrollTop}}function m(e,t){return 100/(t-e)}function g(e,t,i){return 100*t/(e[i+1]-e[i])}function v(e,t){for(var i=1;e>=t[i];)i+=1;return i}function y(e,t,i){if(i>=e.slice(-1)[0])return 100;var n=v(i,e),a=e[n-1],r=e[n],s=t[n-1],o=t[n];return s+function(e,t){return g(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([a,r],i)/m(s,o)}function b(e,t,i,n){if(100===n)return n;var a=v(n,e),r=e[a-1],s=e[a];return i?n-r>(s-r)/2?s:r:t[a-1]?e[a-1]+function(e,t){return Math.round(e/t)*t}(n-e[a-1],t[a-1]):n}e.PipsMode=void 0,(t=e.PipsMode||(e.PipsMode={})).Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values",e.PipsType=void 0,(i=e.PipsType||(e.PipsType={}))[i.None=-1]="None",i[i.NoValue=0]="NoValue",i[i.LargeValue=1]="LargeValue",i[i.SmallValue=2]="SmallValue";var x=function(){function e(e,t,i){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var a=[];for(Object.keys(e).forEach((function(t){a.push([u(e[t]),t])})),a.sort((function(e,t){return e[0][0]-t[0][0]})),n=0;n<a.length;n++)this.handleEntryPoint(a[n][1],a[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}return e.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=g(this.xVal,e,i);return t},e.prototype.getAbsoluteDistance=function(e,t,i){var n,a=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[a+1];)a++;else e===this.xPct[this.xPct.length-1]&&(a=this.xPct.length-2);i||e!==this.xPct[a+1]||a++,null===t&&(t=[]);var r=1,s=t[a],o=0,l=0,c=0,u=0;for(n=i?(e-this.xPct[a])/(this.xPct[a+1]-this.xPct[a]):(this.xPct[a+1]-e)/(this.xPct[a+1]-this.xPct[a]);s>0;)o=this.xPct[a+1+u]-this.xPct[a+u],t[a+u]*r+100-100*n>100?(l=o*n,r=(s-100*n)/t[a+u],n=1):(l=t[a+u]*o/100*r,r=0),i?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),s=t[a+u]*r;return e+c},e.prototype.toStepping=function(e){return e=y(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,i){if(i>=100)return e.slice(-1)[0];var n=v(i,t),a=e[n-1],r=e[n],s=t[n-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([a,r],(i-s)*m(s,t[n]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=b(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,i){var n=v(e,this.xPct);return(100===e||t&&e===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/i},e.prototype.getNearbySteps=function(e){var t=v(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(d);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var i;if(!o(i="min"===e?0:"max"===e?100:parseFloat(e))||!o(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var n=Number(t[1]);i?this.xSteps.push(!isNaN(n)&&n):isNaN(n)||(this.xSteps[0]=n),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=g([this.xVal[e],this.xVal[e+1]],t,0)/m(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],n=Math.ceil(Number(i.toFixed(3))-1),a=this.xVal[e]+this.xNumSteps[e]*n;this.xHighestCompleteStep[e]=a}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),_={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},w={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},k=".__tooltips",M=".__aria";function L(e,t){if(!o(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function S(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function A(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function T(e,t){if(!o(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function C(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new x(t,e.snap||!1,e.singleStep)}function D(e,t){if(t=u(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function E(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function O(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function P(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function Y(e,t){var i,n=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(i=1;i<e.handles;i++)n.push(t);n.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=t}e.connect=n}function I(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function j(e,t){if(!o(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function N(e,t){if(!o(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function H(e,t){var i;if(!o(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!o(t[0])&&!o(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],i=0;i<e.spectrum.xNumSteps.length-1;i++)if(e.padding[0][i]<0||e.padding[1][i]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var n=t[0]+t[1],a=e.spectrum.xVal[0];if(n/(e.spectrum.xVal[e.spectrum.xVal.length-1]-a)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function F(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function R(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=t.indexOf("tap")>=0,n=t.indexOf("drag")>=0,a=t.indexOf("fixed")>=0,r=t.indexOf("snap")>=0,s=t.indexOf("hover")>=0,o=t.indexOf("unconstrained")>=0,l=t.indexOf("drag-all")>=0;if(a){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");j(e,e.start[1]-e.start[0])}if(o&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:i||r,drag:n,dragAll:l,fixed:a,snap:r,hover:s,unconstrained:o}}function z(e,t){if(!1!==t)if(!0===t||n(t)){e.tooltips=[];for(var i=0;i<e.handles;i++)e.tooltips.push(t)}else{if((t=u(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach((function(e){if("boolean"!=typeof e&&!n(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),e.tooltips=t}}function B(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function W(e,t){if(!n(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function V(e,t){if(!function(e){return n(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function q(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function X(e,t){e.documentElement=t}function U(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function $(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach((function(i){e.cssClasses[i]=e.cssPrefix+t[i]}))):e.cssClasses=t}function G(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:_,format:_},i={step:{r:!1,t:L},keyboardPageMultiplier:{r:!1,t:S},keyboardMultiplier:{r:!1,t:A},keyboardDefaultStep:{r:!1,t:T},start:{r:!0,t:D},connect:{r:!0,t:Y},direction:{r:!0,t:F},snap:{r:!1,t:E},animate:{r:!1,t:O},animationDuration:{r:!1,t:P},range:{r:!0,t:C},orientation:{r:!1,t:I},margin:{r:!1,t:j},limit:{r:!1,t:N},padding:{r:!1,t:H},behaviour:{r:!0,t:R},ariaFormat:{r:!1,t:W},format:{r:!1,t:V},tooltips:{r:!1,t:z},keyboardSupport:{r:!0,t:q},documentElement:{r:!1,t:X},cssPrefix:{r:!0,t:U},cssClasses:{r:!0,t:$},handleAttributes:{r:!1,t:B}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:w,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(i).forEach((function(a){if(r(e[a])||void 0!==n[a])i[a].t(t,r(e[a])?e[a]:n[a]);else if(i[a].r)throw new Error("noUiSlider: '"+a+"' is required.")})),t.pips=e.pips;var a=document.createElement("div"),s=void 0!==a.style.msTransform,o=void 0!==a.style.transform;t.transformRule=o?"transform":s?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function Z(t,i,n){var o,d,m,g,v,y,b,x=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},_=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),w=t,L=i.spectrum,S=[],A=[],T=[],C=0,D={},E=t.ownerDocument,O=i.documentElement||E.documentElement,P=E.body,Y="rtl"===E.dir||1===i.ort?0:100;function I(e,t){var i=E.createElement("div");return t&&h(i,t),e.appendChild(i),i}function j(e,t){var n=I(e,i.cssClasses.origin),a=I(n,i.cssClasses.handle);if(I(a,i.cssClasses.touchArea),a.setAttribute("data-handle",String(t)),i.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",(function(e){return function(e,t){if(F()||R(t))return!1;var n=["Left","Right"],a=["Down","Up"],r=["PageDown","PageUp"],s=["Home","End"];i.dir&&!i.ort?n.reverse():i.ort&&!i.dir&&(a.reverse(),r.reverse());var o,l=e.key.replace("Arrow",""),c=l===r[0],u=l===r[1],d=l===a[0]||l===n[0]||c,h=l===a[1]||l===n[1]||u,f=l===s[0],p=l===s[1];if(!(d||h||f||p))return!0;if(e.preventDefault(),h||d){var m=d?0:1,g=ve(t)[m];if(null===g)return!1;!1===g&&(g=L.getDefaultStep(A[t],d,i.keyboardDefaultStep)),g*=u||c?i.keyboardPageMultiplier:i.keyboardMultiplier,g=Math.max(g,1e-7),g*=d?-1:1,o=S[t]+g}else o=p?i.spectrum.xVal[i.spectrum.xVal.length-1]:i.spectrum.xVal[0];return he(t,L.toStepping(o),!0,!0),se("slide",t),se("update",t),se("change",t),se("set",t),!1}(e,t)}))),void 0!==i.handleAttributes){var r=i.handleAttributes[t];Object.keys(r).forEach((function(e){a.setAttribute(e,r[e])}))}return a.setAttribute("role","slider"),a.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===t?h(a,i.cssClasses.handleLower):t===i.handles-1&&h(a,i.cssClasses.handleUpper),n}function N(e,t){return!!t&&I(e,i.cssClasses.connect)}function H(e,t){return!(!i.tooltips||!i.tooltips[t])&&I(e.firstChild,i.cssClasses.tooltip)}function F(){return w.hasAttribute("disabled")}function R(e){return d[e].hasAttribute("disabled")}function z(){v&&(re("update"+k),v.forEach((function(e){e&&a(e)})),v=null)}function B(){z(),v=d.map(H),ae("update"+k,(function(e,t,n){if(v&&i.tooltips&&!1!==v[t]){var a=e[t];!0!==i.tooltips[t]&&(a=i.tooltips[t].to(n[t])),v[t].innerHTML=a}}))}function W(e,t){return e.map((function(e){return L.fromStepping(t?L.getStep(e):e)}))}function V(t){var i,n=function(t){if(t.mode===e.PipsMode.Range||t.mode===e.PipsMode.Steps)return L.xVal;if(t.mode===e.PipsMode.Count){if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var i=t.values-1,n=100/i,a=[];i--;)a[i]=i*n;return a.push(100),W(a,t.stepped)}return t.mode===e.PipsMode.Positions?W(t.values,t.stepped):t.mode===e.PipsMode.Values?t.stepped?t.values.map((function(e){return L.fromStepping(L.getStep(L.toStepping(e)))})):t.values:[]}(t),a={},r=L.xVal[0],s=L.xVal[L.xVal.length-1],o=!1,l=!1,c=0;return i=n.slice().sort((function(e,t){return e-t})),(n=i.filter((function(e){return!this[e]&&(this[e]=!0)}),{}))[0]!==r&&(n.unshift(r),o=!0),n[n.length-1]!==s&&(n.push(s),l=!0),n.forEach((function(i,r){var s,u,d,h,f,p,m,g,v,y,b=i,x=n[r+1],_=t.mode===e.PipsMode.Steps;for(_&&(s=L.xNumSteps[r]),s||(s=x-b),void 0===x&&(x=b),s=Math.max(s,1e-7),u=b;u<=x;u=Number((u+s).toFixed(7))){for(g=(f=(h=L.toStepping(u))-c)/(t.density||1),y=f/(v=Math.round(g)),d=1;d<=v;d+=1)a[(p=c+d*y).toFixed(5)]=[L.fromStepping(p),0];m=n.indexOf(u)>-1?e.PipsType.LargeValue:_?e.PipsType.SmallValue:e.PipsType.NoValue,!r&&o&&u!==x&&(m=0),u===x&&l||(a[h.toFixed(5)]=[u,m]),c=h}})),a}function q(t,n,a){var r,s,o=E.createElement("div"),l=((r={})[e.PipsType.None]="",r[e.PipsType.NoValue]=i.cssClasses.valueNormal,r[e.PipsType.LargeValue]=i.cssClasses.valueLarge,r[e.PipsType.SmallValue]=i.cssClasses.valueSub,r),c=((s={})[e.PipsType.None]="",s[e.PipsType.NoValue]=i.cssClasses.markerNormal,s[e.PipsType.LargeValue]=i.cssClasses.markerLarge,s[e.PipsType.SmallValue]=i.cssClasses.markerSub,s),u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],d=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function f(e,t){var n=t===i.cssClasses.value,a=n?l:c;return t+" "+(n?u:d)[i.ort]+" "+a[e]}return h(o,i.cssClasses.pips),h(o,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach((function(r){!function(t,r,s){if((s=n?n(r,s):s)!==e.PipsType.None){var l=I(o,!1);l.className=f(s,i.cssClasses.marker),l.style[i.style]=t+"%",s>e.PipsType.NoValue&&((l=I(o,!1)).className=f(s,i.cssClasses.value),l.setAttribute("data-value",String(r)),l.style[i.style]=t+"%",l.innerHTML=String(a.to(r)))}}(r,t[r][0],t[r][1])})),o}function X(){g&&(a(g),g=null)}function U(e){X();var t=V(e),i=e.filter,n=e.format||{to:function(e){return String(Math.round(e))}};return g=w.appendChild(q(t,i,n))}function $(){var e=o.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||o[t]:e.height||o[t]}function Z(e,t,n,a){var r=function(r){var s,o,l=function(e,t,i){var n=0===e.type.indexOf("touch"),a=0===e.type.indexOf("mouse"),r=0===e.type.indexOf("pointer"),s=0,o=0;0===e.type.indexOf("MSPointer")&&(r=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(n){var l=function(t){var n=t.target;return n===i||i.contains(n)||e.composed&&e.composedPath().shift()===i};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,l);if(c.length>1)return!1;s=c[0].pageX,o=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,l);if(!u)return!1;s=u.pageX,o=u.pageY}}t=t||p(E),(a||r)&&(s=e.clientX+t.x,o=e.clientY+t.y);return e.pageOffset=t,e.points=[s,o],e.cursor=a||r,e}(r,a.pageOffset,a.target||t);return!!l&&(!(F()&&!a.doNotReject)&&(s=w,o=i.cssClasses.tap,!((s.classList?s.classList.contains(o):new RegExp("\\b"+o+"\\b").test(s.className))&&!a.doNotReject)&&(!(e===x.start&&void 0!==l.buttons&&l.buttons>1)&&((!a.hover||!l.buttons)&&(_||l.preventDefault(),l.calcPoint=l.points[i.ort],void n(l,a))))))},s=[];return e.split(" ").forEach((function(e){t.addEventListener(e,r,!!_&&{passive:!0}),s.push([e,r])})),s}function K(e){var t,n,a,r,s,l,u=100*(e-(t=o,n=i.ort,a=t.getBoundingClientRect(),r=t.ownerDocument,s=r.documentElement,l=p(r),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),n?a.top+l.y-s.clientTop:a.left+l.x-s.clientLeft))/$();return u=c(u),i.dir?100-u:u}function J(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&ee(e,t)}function Q(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return ee(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);ce(n>0,100*n/t.baseSize,t.locations,t.handleNumbers,t.connect)}function ee(e,t){t.handle&&(f(t.handle,i.cssClasses.active),C-=1),t.listeners.forEach((function(e){O.removeEventListener(e[0],e[1])})),0===C&&(f(w,i.cssClasses.drag),de(),e.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",s))),t.handleNumbers.forEach((function(e){se("change",e),se("set",e),se("end",e)}))}function te(e,t){if(!t.handleNumbers.some(R)){var n;if(1===t.handleNumbers.length)n=d[t.handleNumbers[0]].children[0],C+=1,h(n,i.cssClasses.active);e.stopPropagation();var a=[],r=Z(x.move,O,Q,{target:e.target,handle:n,connect:t.connect,listeners:a,startCalcPoint:e.calcPoint,baseSize:$(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:A.slice()}),o=Z(x.end,O,ee,{target:e.target,handle:n,listeners:a,doNotReject:!0,handleNumbers:t.handleNumbers}),l=Z("mouseout",O,J,{target:e.target,handle:n,listeners:a,doNotReject:!0,handleNumbers:t.handleNumbers});a.push.apply(a,r.concat(o,l)),e.cursor&&(P.style.cursor=getComputedStyle(e.target).cursor,d.length>1&&h(w,i.cssClasses.drag),P.addEventListener("selectstart",s,!1)),t.handleNumbers.forEach((function(e){se("start",e)}))}}function ie(e){e.stopPropagation();var t=K(e.calcPoint),n=function(e){var t=100,i=!1;return d.forEach((function(n,a){if(!R(a)){var r=A[a],s=Math.abs(r-e);(s<t||s<=t&&e>r||100===s&&100===t)&&(i=a,t=s)}})),i}(t);!1!==n&&(i.events.snap||l(w,i.cssClasses.tap,i.animationDuration),he(n,t,!0,!0),de(),se("slide",n,!0),se("update",n,!0),i.events.snap?te(e,{handleNumbers:[n]}):(se("change",n,!0),se("set",n,!0)))}function ne(e){var t=K(e.calcPoint),i=L.getStep(t),n=L.fromStepping(i);Object.keys(D).forEach((function(e){"hover"===e.split(".")[0]&&D[e].forEach((function(e){e.call(ye,n)}))}))}function ae(e,t){D[e]=D[e]||[],D[e].push(t),"update"===e.split(".")[0]&&d.forEach((function(e,t){se("update",t)}))}function re(e){var t=e&&e.split(".")[0],i=t?e.substring(t.length):e;Object.keys(D).forEach((function(e){var n=e.split(".")[0],a=e.substring(n.length);t&&t!==n||i&&i!==a||function(e){return e===M||e===k}(a)&&i!==a||delete D[e]}))}function se(e,t,n){Object.keys(D).forEach((function(a){var r=a.split(".")[0];e===r&&D[a].forEach((function(e){e.call(ye,S.map(i.format.to),t,S.slice(),n||!1,A.slice(),ye)}))}))}function oe(e,t,n,a,r,s){var o;return d.length>1&&!i.events.unconstrained&&(a&&t>0&&(o=L.getAbsoluteDistance(e[t-1],i.margin,!1),n=Math.max(n,o)),r&&t<d.length-1&&(o=L.getAbsoluteDistance(e[t+1],i.margin,!0),n=Math.min(n,o))),d.length>1&&i.limit&&(a&&t>0&&(o=L.getAbsoluteDistance(e[t-1],i.limit,!1),n=Math.min(n,o)),r&&t<d.length-1&&(o=L.getAbsoluteDistance(e[t+1],i.limit,!0),n=Math.max(n,o))),i.padding&&(0===t&&(o=L.getAbsoluteDistance(0,i.padding[0],!1),n=Math.max(n,o)),t===d.length-1&&(o=L.getAbsoluteDistance(100,i.padding[1],!0),n=Math.min(n,o))),!((n=c(n=L.getStep(n)))===e[t]&&!s)&&n}function le(e,t){var n=i.ort;return(n?t:e)+", "+(n?e:t)}function ce(e,t,i,n,a){var r=i.slice(),s=n[0],o=[!e,e],l=[e,!e];n=n.slice(),e&&n.reverse(),n.length>1?n.forEach((function(e,i){var n=oe(r,e,r[e]+t,o[i],l[i],!1);!1===n?t=0:(t=n-r[e],r[e]=n)})):o=l=[!0];var c=!1;n.forEach((function(e,n){c=he(e,i[e]+t,o[n],l[n])||c})),c&&(n.forEach((function(e){se("update",e),se("slide",e)})),null!=a&&se("drag",s))}function ue(e,t){return i.dir?100-e-t:e}function de(){T.forEach((function(e){var t=A[e]>50?-1:1,i=3+(d.length+t*e);d[e].style.zIndex=String(i)}))}function he(e,t,n,a,r){return r||(t=oe(A,e,t,n,a,!1)),!1!==t&&(function(e,t){A[e]=t,S[e]=L.fromStepping(t);var n="translate("+le(ue(t,0)-Y+"%","0")+")";d[e].style[i.transformRule]=n,fe(e),fe(e+1)}(e,t),!0)}function fe(e){if(m[e]){var t=0,n=100;0!==e&&(t=A[e-1]),e!==m.length-1&&(n=A[e]);var a=n-t,r="translate("+le(ue(t,a)+"%","0")+")",s="scale("+le(a/100,"1")+")";m[e].style[i.transformRule]=r+" "+s}}function pe(e,t){return null===e||!1===e||void 0===e?A[t]:("number"==typeof e&&(e=String(e)),!1!==(e=i.format.from(e))&&(e=L.toStepping(e)),!1===e||isNaN(e)?A[t]:e)}function me(e,t,n){var a=u(e),r=void 0===A[0];t=void 0===t||t,i.animate&&!r&&l(w,i.cssClasses.tap,i.animationDuration),T.forEach((function(e){he(e,pe(a[e],e),!0,!1,n)}));var s=1===T.length?0:1;if(r&&L.hasNoSize()&&(n=!0,A[0]=0,T.length>1)){var o=100/(T.length-1);T.forEach((function(e){A[e]=e*o}))}for(;s<T.length;++s)T.forEach((function(e){he(e,A[e],!0,!0,n)}));de(),T.forEach((function(e){se("update",e),null!==a[e]&&t&&se("set",e)}))}function ge(e){if(void 0===e&&(e=!1),e)return 1===S.length?S[0]:S.slice(0);var t=S.map(i.format.to);return 1===t.length?t[0]:t}function ve(e){var t=A[e],n=L.getNearbySteps(t),a=S[e],r=n.thisStep.step,s=null;if(i.snap)return[a-n.stepBefore.startValue||null,n.stepAfter.startValue-a||null];!1!==r&&a+r>n.stepAfter.startValue&&(r=n.stepAfter.startValue-a),s=a>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&a-n.stepBefore.highestStep,100===t?r=null:0===t&&(s=null);var o=L.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(o))),null!==s&&!1!==s&&(s=Number(s.toFixed(o))),[s,r]}h(y=w,i.cssClasses.target),0===i.dir?h(y,i.cssClasses.ltr):h(y,i.cssClasses.rtl),0===i.ort?h(y,i.cssClasses.horizontal):h(y,i.cssClasses.vertical),h(y,"rtl"===getComputedStyle(y).direction?i.cssClasses.textDirectionRtl:i.cssClasses.textDirectionLtr),o=I(y,i.cssClasses.base),function(e,t){var n=I(t,i.cssClasses.connects);d=[],(m=[]).push(N(n,e[0]));for(var a=0;a<i.handles;a++)d.push(j(t,a)),T[a]=a,m.push(N(n,e[a+1]))}(i.connect,o),(b=i.events).fixed||d.forEach((function(e,t){Z(x.start,e.children[0],te,{handleNumbers:[t]})})),b.tap&&Z(x.start,o,ie,{}),b.hover&&Z(x.move,o,ne,{hover:!0}),b.drag&&m.forEach((function(e,t){if(!1!==e&&0!==t&&t!==m.length-1){var n=d[t-1],a=d[t],r=[e],s=[n,a],o=[t-1,t];h(e,i.cssClasses.draggable),b.fixed&&(r.push(n.children[0]),r.push(a.children[0])),b.dragAll&&(s=d,o=T),r.forEach((function(t){Z(x.start,t,te,{handles:s,handleNumbers:o,connect:e})}))}})),me(i.start),i.pips&&U(i.pips),i.tooltips&&B(),re("update"+M),ae("update"+M,(function(e,t,n,a,r){T.forEach((function(e){var t=d[e],a=oe(A,e,0,!0,!0,!0),s=oe(A,e,100,!0,!0,!0),o=r[e],l=String(i.ariaFormat.to(n[e]));a=L.fromStepping(a).toFixed(1),s=L.fromStepping(s).toFixed(1),o=L.fromStepping(o).toFixed(1),t.children[0].setAttribute("aria-valuemin",a),t.children[0].setAttribute("aria-valuemax",s),t.children[0].setAttribute("aria-valuenow",o),t.children[0].setAttribute("aria-valuetext",l)}))}));var ye={destroy:function(){for(re(M),re(k),Object.keys(i.cssClasses).forEach((function(e){f(w,i.cssClasses[e])}));w.firstChild;)w.removeChild(w.firstChild);delete w.noUiSlider},steps:function(){return T.map(ve)},on:ae,off:re,get:ge,set:me,setHandle:function(e,t,i,n){if(!((e=Number(e))>=0&&e<T.length))throw new Error("noUiSlider: invalid handle number, got: "+e);he(e,pe(t,e),!0,!0,n),se("update",e),i&&se("set",e)},reset:function(e){me(i.start,e)},__moveHandles:function(e,t,i){ce(e,t,A,i)},options:n,updateOptions:function(e,t){var a=ge(),s=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];s.forEach((function(t){void 0!==e[t]&&(n[t]=e[t])}));var o=G(n);s.forEach((function(t){void 0!==e[t]&&(i[t]=o[t])})),L=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips?U(i.pips):X(),i.tooltips?B():z(),A=[],me(r(e.start)?e.start:a,t)},target:w,removePips:X,removeTooltips:z,getPositions:function(){return A.slice()},getTooltips:function(){return v},getOrigins:function(){return d},pips:U};return ye}function K(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var i=Z(e,G(t),t);return e.noUiSlider=i,i}var J={__spectrum:x,cssClasses:w,create:K};e.create=K,e.cssClasses=w,e.default=J,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).autosize=t()}(this,(function(){var e,t,i="function"==typeof Map?new Map:(e=[],t=[],{has:function(t){return e.indexOf(t)>-1},get:function(i){return t[e.indexOf(i)]},set:function(i,n){-1===e.indexOf(i)&&(e.push(i),t.push(n))},delete:function(i){var n=e.indexOf(i);n>-1&&(e.splice(n,1),t.splice(n,1))}}),n=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){n=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var t,a=null,r=null,s=null,o=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(i){e.style[i]=t[i]})),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),a="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(a)&&(a=0),d()}function c(t){var i=e.style.width;e.style.width="0px",e.style.width=i,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),i=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+a+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),i&&(document.documentElement.scrollTop=i)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),a="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(a<t?"hidden"===i.overflowY&&(c("scroll"),u(),a="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==i.overflowY&&(c("hidden"),u(),a="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==a){s=a;var r=n("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}function r(e){var t=i.get(e);t&&t.destroy()}function s(e){var t=i.get(e);t&&t.update()}var o=null;return"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((o=function(e){return e}).destroy=function(e){return e},o.update=function(e){return e}):((o=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},o.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),o})),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,(function(){return t={134:function(e,t,i){"use strict";i.d(t,{default:function(){return p}});t=i(279);var n=i.n(t),a=(t=i(370),i.n(t)),r=(t=i(817),i.n(t));function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t){!function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(t),this.initSelection()}var t,i;return t=e,(i=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px",e=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=r()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==s(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&o(t.prototype,i),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var p=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,n());var e,t,i,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=h(e);return i=t?(i=h(this).constructor,Reflect.construct(n,arguments,i)):n.apply(this,arguments),n=this,!(i=i)||"object"!==c(i)&&"function"!=typeof i?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):i}}(s);function s(e,t){var i;return function(e){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this),(i=r.call(this)).resolveOptions(t),i.listenClick(e),i}return e=s,i=[{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){e=e.delegateTarget||e.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){if(e=f("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&u(e.prototype,t),i&&u(e,i),s}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,i){var n=i(828);function a(e,t,i,a,r){var s=function(e,t,i,a){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&a.call(e,i)}}.apply(this,arguments);return e.addEventListener(i,s,r),{destroy:function(){e.removeEventListener(i,s,r)}}}e.exports=function(e,t,i,n,r){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof i?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,i,n,r)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,i){var n=i(879),a=i(438);e.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(e))return c=t,u=i,(l=e).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(n.nodeList(e))return r=e,s=t,o=i,Array.prototype.forEach.call(r,(function(e){e.addEventListener(s,o)})),{destroy:function(){Array.prototype.forEach.call(r,(function(e){e.removeEventListener(s,o)}))}};if(n.string(e))return e=e,t=t,i=i,a(document.body,e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var r,s,o,l,c,u}},817:function(e){e.exports=function(e){var t,i="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t),i.toString());return i}},279:function(e){function t(){}t.prototype={on:function(e,t,i){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var n=this;function a(){n.off(e,a),t.apply(i,arguments)}return a._=t,this.on(e,a,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=i.length;n<a;n++)i[n].fn.apply(i[n].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),n=i[e],a=[];if(n&&t)for(var r=0,s=n.length;r<s;r++)n[r].fn!==t&&n[r].fn._!==t&&a.push(n[r]);return a.length?i[e]=a:delete i[e],this}},e.exports=t,e.exports.TinyEmitter=t}},i={},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(134).default;function e(n){if(i[n])return i[n].exports;var a=i[n]={exports:{}};return t[n](a,a.exports,e),a.exports}var t,i})),function(e){"use strict";var t=function(e,t){this.init("multiselectsplitter",e,t)};t.DEFAULTS={selectSize:null,maxSelectSize:null,clearOnFirstChange:!1,onlySameGroup:!1,groupCounter:!1,maximumSelected:null,afterInitialize:null,maximumAlert:function(e){alert("Only "+e+" values can be selected")},createFirstSelect:function(e,t){return"<option>"+e+"</option>"},createSecondSelect:function(e,t){return"<option>"+e+"</option>"},template:'<div class="row" data-multiselectsplitter-wrapper-selector><div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-firstselect-selector></select></div> \x3c!-- Add the extra clearfix for only the required viewport --\x3e<div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-secondselect-selector></select></div></div>'},t.prototype.init=function(i,n,a){var r=this;r.type=i,r.last$ElementSelected=[],r.initialized=!1,r.$element=e(n),r.$element.hide(),r.options=e.extend({},t.DEFAULTS,a),r.$element.after(r.options.template),r.$wrapper=r.$element.next("div[data-multiselectsplitter-wrapper-selector]"),r.$firstSelect=e("select[data-multiselectsplitter-firstselect-selector]",r.$wrapper),r.$secondSelect=e("select[data-multiselectsplitter-secondselect-selector]",r.$wrapper);var s=0,o=0;if(0!=r.$element.find("optgroup").length){r.$element.find("optgroup").each((function(){var t=e(this).attr("label"),i=e(r.options.createFirstSelect(t,r.$element));i.val(t),i.attr("data-current-label",i.text()),r.$firstSelect.append(i);var n=e(this).find("option").length;n>o&&(o=n),s++}));var l=Math.max(s,o);l=Math.min(l,10),r.options.selectSize?l=r.options.selectSize:r.options.maxSelectSize&&(l=Math.min(l,r.options.maxSelectSize)),r.$firstSelect.attr("size",l),r.$secondSelect.attr("size",l),r.$element.attr("multiple")&&r.$secondSelect.attr("multiple","multiple"),r.$element.is(":disabled")&&r.disable(),r.$firstSelect.on("change",e.proxy(r.updateParentCategory,r)),r.$secondSelect.on("click change",e.proxy(r.updateChildCategory,r)),r.update=function(){if(!(r.$element.find("option").length<1)){var e,t=r.$element.find("option:selected:first");e=t.length?t.parent().attr("label"):r.$element.find("option:first").parent().attr("label"),r.$firstSelect.find('option[value="'+e+'"]').prop("selected",!0),r.$firstSelect.trigger("change")}},r.update(),r.initialized=!0,r.options.afterInitialize&&r.options.afterInitialize(r.$firstSelect,r.$secondSelect)}},t.prototype.disable=function(){this.$secondSelect.prop("disabled",!0),this.$firstSelect.prop("disabled",!0)},t.prototype.enable=function(){this.$secondSelect.prop("disabled",!1),this.$firstSelect.prop("disabled",!1)},t.prototype.createSecondSelect=function(){var t=this;t.$secondSelect.empty(),e.each(t.$element.find('optgroup[label="'+t.$firstSelect.val()+'"] option'),(function(i,n){var a=e(this).val(),r=e(this).text(),s=e(t.options.createSecondSelect(r,t.$firstSelect));s.val(a),e.each(t.$element.find("option:selected"),(function(t,i){e(i).val()==a&&s.prop("selected",!0)})),t.$secondSelect.append(s)}))},t.prototype.updateParentCategory=function(){var e=this;e.last$ElementSelected=e.$element.find("option:selected"),e.options.clearOnFirstChange&&e.initialized&&e.$element.find("option:selected").prop("selected",!1),e.createSecondSelect(),e.checkSelected(),e.updateCounter()},t.prototype.updateCounter=function(){var t=this;t.$element.attr("multiple")&&t.options.groupCounter&&e.each(t.$firstSelect.find("option"),(function(i,n){var a=e(n).val(),r=e(n).data("currentLabel"),s=t.$element.find('optgroup[label="'+a+'"] option:selected').length;s>0&&(r+=" ("+s+")"),e(n).html(r)}))},t.prototype.checkSelected=function(){var t=this;if(t.$element.attr("multiple")&&t.options.maximumSelected){var i=0;if(!((i="function"==typeof t.options.maximumSelected?t.options.maximumSelected(t.$firstSelect,t.$secondSelect):t.options.maximumSelected)<1))if(t.$element.find("option:selected").length>i){t.$firstSelect.find("option:selected").prop("selected",!1),t.$secondSelect.find("option:selected").prop("selected",!1),t.initialized?(t.$element.find("option:selected").prop("selected",!1),t.last$ElementSelected.prop("selected",!0)):e.each(t.$element.find("option:selected"),(function(t,n){t>i-1&&e(n).prop("selected",!1)}));var n=t.last$ElementSelected.first().parent().attr("label");t.$firstSelect.find('option[value="'+n+'"]').prop("selected",!0),t.createSecondSelect(),t.options.maximumAlert(i)}}},t.prototype.basicUpdateChildCategory=function(t,i){var n=this;n.last$ElementSelected=n.$element.find("option:selected");var a=n.$secondSelect.val();e.isArray(a)||(a=[a]);var r=n.$firstSelect.val(),s=!1;n.$element.attr("multiple")?n.options.onlySameGroup?e.each(n.$element.find("option:selected"),(function(t,i){if(e(i).parent().attr("label")!=r)return s=!0,!1})):i||(s=!0):s=!0,s?n.$element.find("option:selected").prop("selected",!1):e.each(n.$element.find("option:selected"),(function(t,i){r==e(i).parent().attr("label")&&-1==e.inArray(e(i).val(),a)&&e(i).prop("selected",!1)})),e.each(a,(function(e,t){n.$element.find('option[value="'+t+'"]').prop("selected",!0)})),n.checkSelected(),n.updateCounter(),n.$element.trigger("change")},t.prototype.updateChildCategory=function(t){"change"==t.type?this.timeOut=setTimeout(e.proxy((function(){this.basicUpdateChildCategory(t,t.ctrlKey)}),this),10):"click"==t.type&&(clearTimeout(this.timeOut),this.basicUpdateChildCategory(t,t.ctrlKey))},t.prototype.destroy=function(){this.$wrapper.remove(),this.$element.removeData(this.type),this.$element.show()},e.fn.multiselectsplitter=function(i){return this.each((function(){var n=e(this),a=n.data("multiselectsplitter"),r="object"==typeof i&&i;(a||"destroy"!=i)&&(a||n.data("multiselectsplitter",a=new t(this,r)),"string"==typeof i&&a[i]())}))},e.fn.multiselectsplitter.Constructor=t,e.fn.multiselectsplitter.VERSION="1.0.1"}(jQuery),
|
||
/*!
|
||
* smooth-scroll v16.1.3
|
||
* Animate scrolling to anchor links
|
||
* (c) 2020 Chris Ferdinandi
|
||
* MIT License
|
||
* http://github.com/cferdinandi/smooth-scroll
|
||
*/
|
||
function(e,t){"function"==typeof define&&define.amd?define([],(function(){return t(e)})):"object"==typeof exports?module.exports=t(e):e.SmoothScroll=t(e)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this,(function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},i=function(){var e={};return Array.prototype.forEach.call(arguments,(function(t){for(var i in t){if(!t.hasOwnProperty(i))return;e[i]=t[i]}})),e},n=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,i=String(e),n=i.length,a=-1,r="",s=i.charCodeAt(0);++a<n;){if(0===(t=i.charCodeAt(a)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");t>=1&&t<=31||127==t||0===a&&t>=48&&t<=57||1===a&&t>=48&&t<=57&&45===s?r+="\\"+t.toString(16)+" ":r+=t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?i.charAt(a):"\\"+i.charAt(a)}return"#"+r},a=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},r=function(t){return t?(i=t,parseInt(e.getComputedStyle(i).height,10)+t.offsetTop):0;var i},s=function(t,i,n){0===t&&document.body.focus(),n||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,i))},o=function(t,i,n,a){if(i.emitEvents&&"function"==typeof e.CustomEvent){var r=new CustomEvent(t,{bubbles:!0,detail:{anchor:n,toggle:a}});document.dispatchEvent(r)}};return function(l,c){var u,d,h,f,p={};p.cancelScroll=function(e){cancelAnimationFrame(f),f=null,e||o("scrollCancel",u)},p.animateScroll=function(n,l,c){p.cancelScroll();var d=i(u||t,c||{}),m="[object Number]"===Object.prototype.toString.call(n),g=m||!n.tagName?null:n;if(m||g){var v=e.pageYOffset;d.header&&!h&&(h=document.querySelector(d.header));var y,b,x,_=r(h),w=m?n:function(t,i,n,r){var s=0;if(t.offsetParent)do{s+=t.offsetTop,t=t.offsetParent}while(t);return s=Math.max(s-i-n,0),r&&(s=Math.min(s,a()-e.innerHeight)),s}(g,_,parseInt("function"==typeof d.offset?d.offset(n,l):d.offset,10),d.clip),k=w-v,M=a(),L=0,S=function(e,t){var i=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&i>t.durationMax?t.durationMax:t.durationMin&&i<t.durationMin?t.durationMin:parseInt(i,10)}(k,d),A=function(t){y||(y=t),L+=t-y,x=v+k*function(e,t){var i;return"easeInQuad"===e.easing&&(i=t*t),"easeOutQuad"===e.easing&&(i=t*(2-t)),"easeInOutQuad"===e.easing&&(i=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(i=t*t*t),"easeOutCubic"===e.easing&&(i=--t*t*t+1),"easeInOutCubic"===e.easing&&(i=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(i=t*t*t*t),"easeOutQuart"===e.easing&&(i=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(i=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(i=t*t*t*t*t),"easeOutQuint"===e.easing&&(i=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(i=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(i=e.customEasing(t)),i||t}(d,b=(b=0===S?0:L/S)>1?1:b),e.scrollTo(0,Math.floor(x)),function(t,i){var a=e.pageYOffset;if(t==i||a==i||(v<i&&e.innerHeight+a)>=M)return p.cancelScroll(!0),s(n,i,m),o("scrollStop",d,n,l),y=null,f=null,!0}(x,w)||(f=e.requestAnimationFrame(A),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,i){t||history.pushState&&i.updateURL&&history.pushState({smoothScroll:JSON.stringify(i),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(n,m,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?s(n,Math.floor(w),!1):(o("scrollStart",d,n,l),p.cancelScroll(!0),e.requestAnimationFrame(A))}};var m=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(l))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(u.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var i,a;try{i=n(decodeURIComponent(d.hash))}catch(e){i=n(d.hash)}if("#"===i){if(!u.topOnEmptyHash)return;a=document.documentElement}else a=document.querySelector(i);(a=a||"#top"!==i?a:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var i=e.location.hash;i=i||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:i||e.pageYOffset},document.title,i||e.location.href)}}(u),p.animateScroll(a,d))}},g=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(u)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(n(history.state.anchor)))||p.animateScroll(t,null,{updateURL:!1})}};p.destroy=function(){u&&(document.removeEventListener("click",m,!1),e.removeEventListener("popstate",g,!1),p.cancelScroll(),u=null,null,d=null,h=null,null,f=null)};return function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";p.destroy(),u=i(t,c||{}),h=u.header?document.querySelector(u.header):null,document.addEventListener("click",m,!1),u.updateURL&&u.popstate&&e.addEventListener("popstate",g,!1)}(),p}})),function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,(function(){return function(){var e={3099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:function(e,t,i){var n=i(111);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:function(e,t,i){var n=i(5112),a=i(30),r=i(3070),s=n("unscopables"),o=Array.prototype;null==o[s]&&r.f(o,s,{configurable:!0,value:a(null)}),e.exports=function(e){o[s][e]=!0}},1530:function(e,t,i){"use strict";var n=i(8710).charAt;e.exports=function(e,t,i){return t+(i?n(e,t).length:1)}},5787:function(e){e.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},9670:function(e,t,i){var n=i(111);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},4019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,i){"use strict";var n,a=i(4019),r=i(9781),s=i(7854),o=i(111),l=i(6656),c=i(648),u=i(8880),d=i(1320),h=i(3070).f,f=i(9518),p=i(7674),m=i(5112),g=i(9711),v=s.Int8Array,y=v&&v.prototype,b=s.Uint8ClampedArray,x=b&&b.prototype,_=v&&f(v),w=y&&f(y),k=Object.prototype,M=k.isPrototypeOf,L=m("toStringTag"),S=g("TYPED_ARRAY_TAG"),A=a&&!!p&&"Opera"!==c(s.opera),T=!1,C={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},E=function(e){if(!o(e))return!1;var t=c(e);return l(C,t)||l(D,t)};for(n in C)s[n]||(A=!1);if((!A||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},A))for(n in C)s[n]&&p(s[n],_);if((!A||!w||w===k)&&(w=_.prototype,A))for(n in C)s[n]&&p(s[n].prototype,w);if(A&&f(x)!==w&&p(x,w),r&&!l(w,L))for(n in T=!0,h(w,L,{get:function(){return o(this)?this[S]:void 0}}),C)s[n]&&u(s[n],S,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:T&&S,aTypedArray:function(e){if(E(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(M.call(_,e))return e}else for(var t in C)if(l(C,n)){var i=s[t];if(i&&(e===i||M.call(i,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,i){if(r){if(i)for(var n in C){var a=s[n];a&&l(a.prototype,e)&&delete a.prototype[e]}w[e]&&!i||d(w,e,i?t:A&&y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,i){var n,a;if(r){if(p){if(i)for(n in C)(a=s[n])&&l(a,e)&&delete a[e];if(_[e]&&!i)return;try{return d(_,e,i?t:A&&v[e]||t)}catch(e){}}for(n in C)!(a=s[n])||a[e]&&!i||d(a,e,t)}},isView:function(e){if(!o(e))return!1;var t=c(e);return"DataView"===t||l(C,t)||l(D,t)},isTypedArray:E,TypedArray:_,TypedArrayPrototype:w}},3331:function(e,t,i){"use strict";var n=i(7854),a=i(9781),r=i(4019),s=i(8880),o=i(2248),l=i(7293),c=i(5787),u=i(9958),d=i(7466),h=i(7067),f=i(1179),p=i(9518),m=i(7674),g=i(8006).f,v=i(3070).f,y=i(1285),b=i(8003),x=i(9909),_=x.get,w=x.set,k="ArrayBuffer",M="DataView",L="Wrong index",S=n.ArrayBuffer,A=S,T=n.DataView,C=T&&T.prototype,D=Object.prototype,E=n.RangeError,O=f.pack,P=f.unpack,Y=function(e){return[255&e]},I=function(e){return[255&e,e>>8&255]},j=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},N=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},H=function(e){return O(e,23,4)},F=function(e){return O(e,52,8)},R=function(e,t){v(e.prototype,t,{get:function(){return _(this)[t]}})},z=function(e,t,i,n){var a=h(i),r=_(e);if(a+t>r.byteLength)throw E(L);var s=_(r.buffer).bytes,o=a+r.byteOffset,l=s.slice(o,o+t);return n?l:l.reverse()},B=function(e,t,i,n,a,r){var s=h(i),o=_(e);if(s+t>o.byteLength)throw E(L);for(var l=_(o.buffer).bytes,c=s+o.byteOffset,u=n(+a),d=0;d<t;d++)l[c+d]=u[r?d:t-d-1]};if(r){if(!l((function(){S(1)}))||!l((function(){new S(-1)}))||l((function(){return new S,new S(1.5),new S(NaN),S.name!=k}))){for(var W,V=(A=function(e){return c(this,A),new S(h(e))}).prototype=S.prototype,q=g(S),X=0;q.length>X;)(W=q[X++])in A||s(A,W,S[W]);V.constructor=A}m&&p(C)!==D&&m(C,D);var U=new T(new A(2)),$=C.setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||o(C,{setInt8:function(e,t){$.call(this,e,t<<24>>24)},setUint8:function(e,t){$.call(this,e,t<<24>>24)}},{unsafe:!0})}else A=function(e){c(this,A,k);var t=h(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},T=function(e,t,i){c(this,T,M),c(e,A,M);var n=_(e).byteLength,r=u(t);if(r<0||r>n)throw E("Wrong offset");if(r+(i=void 0===i?n-r:d(i))>n)throw E("Wrong length");w(this,{buffer:e,byteLength:i,byteOffset:r}),a||(this.buffer=e,this.byteLength=i,this.byteOffset=r)},a&&(R(A,"byteLength"),R(T,"buffer"),R(T,"byteLength"),R(T,"byteOffset")),o(T.prototype,{getInt8:function(e){return z(this,1,e)[0]<<24>>24},getUint8:function(e){return z(this,1,e)[0]},getInt16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return N(z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return N(z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){B(this,1,e,Y,t)},setUint8:function(e,t){B(this,1,e,Y,t)},setInt16:function(e,t){B(this,2,e,I,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){B(this,2,e,I,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){B(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){B(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){B(this,4,e,H,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){B(this,8,e,F,t,arguments.length>2?arguments[2]:void 0)}});b(A,k),b(T,M),e.exports={ArrayBuffer:A,DataView:T}},1048:function(e,t,i){"use strict";var n=i(7908),a=i(1400),r=i(7466),s=Math.min;e.exports=[].copyWithin||function(e,t){var i=n(this),o=r(i.length),l=a(e,o),c=a(t,o),u=arguments.length>2?arguments[2]:void 0,d=s((void 0===u?o:a(u,o))-c,o-l),h=1;for(c<l&&l<c+d&&(h=-1,c+=d-1,l+=d-1);d-- >0;)c in i?i[l]=i[c]:delete i[l],l+=h,c+=h;return i}},1285:function(e,t,i){"use strict";var n=i(7908),a=i(1400),r=i(7466);e.exports=function(e){for(var t=n(this),i=r(t.length),s=arguments.length,o=a(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:a(l,i);c>o;)t[o++]=e;return t}},8533:function(e,t,i){"use strict";var n=i(2092).forEach,a=i(9341)("forEach");e.exports=a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},8457:function(e,t,i){"use strict";var n=i(9974),a=i(7908),r=i(3411),s=i(7659),o=i(7466),l=i(6135),c=i(1246);e.exports=function(e){var t,i,u,d,h,f,p=a(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(p),x=0;if(y&&(v=n(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&s(b))for(i=new m(t=o(p.length));t>x;x++)f=y?v(p[x],x):p[x],l(i,x,f);else for(h=(d=b.call(p)).next,i=new m;!(u=h.call(d)).done;x++)f=y?r(d,v,[u.value,x],!0):u.value,l(i,x,f);return i.length=x,i}},1318:function(e,t,i){var n=i(5656),a=i(7466),r=i(1400),s=function(e){return function(t,i,s){var o,l=n(t),c=a(l.length),u=r(s,c);if(e&&i!=i){for(;c>u;)if((o=l[u++])!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},2092:function(e,t,i){var n=i(9974),a=i(8361),r=i(7908),s=i(7466),o=i(5417),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,m,g,v){for(var y,b,x=r(p),_=a(x),w=n(m,g,3),k=s(_.length),M=0,L=v||o,S=t?L(p,k):i||h?L(p,0):void 0;k>M;M++)if((f||M in _)&&(b=w(y=_[M],M,x),e))if(t)S[M]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return M;case 2:l.call(S,y)}else switch(e){case 4:return!1;case 7:l.call(S,y)}return d?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},6583:function(e,t,i){"use strict";var n=i(5656),a=i(9958),r=i(7466),s=i(9341),o=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=s("lastIndexOf"),d=c||!u;e.exports=d?function(e){if(c)return l.apply(this,arguments)||0;var t=n(this),i=r(t.length),s=i-1;for(arguments.length>1&&(s=o(s,a(arguments[1]))),s<0&&(s=i+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},1194:function(e,t,i){var n=i(7293),a=i(5112),r=i(7392),s=a("species");e.exports=function(e){return r>=51||!n((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,i){"use strict";var n=i(7293);e.exports=function(e,t){var i=[][e];return!!i&&n((function(){i.call(null,t||function(){throw 1},1)}))}},3671:function(e,t,i){var n=i(3099),a=i(7908),r=i(8361),s=i(7466),o=function(e){return function(t,i,o,l){n(i);var c=a(t),u=r(c),d=s(c.length),h=e?d-1:0,f=e?-1:1;if(o<2)for(;;){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=i(l,u[h],h,c));return l}};e.exports={left:o(!1),right:o(!0)}},5417:function(e,t,i){var n=i(111),a=i(3157),r=i(5112)("species");e.exports=function(e,t){var i;return a(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!a(i.prototype)?n(i)&&null===(i=i[r])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},3411:function(e,t,i){var n=i(9670),a=i(9212);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(t){throw a(e),t}}},7072:function(e,t,i){var n=i(5112)("iterator"),a=!1;try{var r=0,s={next:function(){return{done:!!r++}},return:function(){a=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var r={};r[n]=function(){return{next:function(){return{done:i=!0}}}},e(r)}catch(e){}return i}},4326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:function(e,t,i){var n=i(1694),a=i(4326),r=i(5112)("toStringTag"),s="Arguments"==a(function(){return arguments}());e.exports=n?a:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?i:s?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},9920:function(e,t,i){var n=i(6656),a=i(3887),r=i(1236),s=i(3070);e.exports=function(e,t){for(var i=a(t),o=s.f,l=r.f,c=0;c<i.length;c++){var u=i[c];n(e,u)||o(e,u,l(t,u))}}},8544:function(e,t,i){var n=i(7293);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:function(e,t,i){"use strict";var n=i(3383).IteratorPrototype,a=i(30),r=i(9114),s=i(8003),o=i(7497),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=a(n,{next:r(1,i)}),s(e,c,!1,!0),o[c]=l,e}},8880:function(e,t,i){var n=i(9781),a=i(3070),r=i(9114);e.exports=n?function(e,t,i){return a.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:function(e,t,i){"use strict";var n=i(7593),a=i(3070),r=i(9114);e.exports=function(e,t,i){var s=n(t);s in e?a.f(e,s,r(0,i)):e[s]=i}},654:function(e,t,i){"use strict";var n=i(2109),a=i(4994),r=i(9518),s=i(7674),o=i(8003),l=i(8880),c=i(1320),u=i(5112),d=i(1913),h=i(7497),f=i(3383),p=f.IteratorPrototype,m=f.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v="keys",y="values",b="entries",x=function(){return this};e.exports=function(e,t,i,u,f,_,w){a(i,t,u);var k,M,L,S=function(e){if(e===f&&E)return E;if(!m&&e in C)return C[e];switch(e){case v:case y:case b:return function(){return new i(this,e)}}return function(){return new i(this)}},A=t+" Iterator",T=!1,C=e.prototype,D=C[g]||C["@@iterator"]||f&&C[f],E=!m&&D||S(f),O="Array"==t&&C.entries||D;if(O&&(k=r(O.call(new e)),p!==Object.prototype&&k.next&&(d||r(k)===p||(s?s(k,p):"function"!=typeof k[g]&&l(k,g,x)),o(k,A,!0,!0),d&&(h[A]=x))),f==y&&D&&D.name!==y&&(T=!0,E=function(){return D.call(this)}),d&&!w||C[g]===E||l(C,g,E),h[t]=E,f)if(M={values:S(y),keys:_?E:S(v),entries:S(b)},w)for(L in M)(m||T||!(L in C))&&c(C,L,M[L]);else n({target:t,proto:!0,forced:m||T},M);return M}},9781:function(e,t,i){var n=i(7293);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,i){var n=i(7854),a=i(111),r=n.document,s=a(r)&&a(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},8324:function(e){e.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}},8113:function(e,t,i){var n=i(5005);e.exports=n("navigator","userAgent")||""},7392:function(e,t,i){var n,a,r=i(7854),s=i(8113),o=r.process,l=o&&o.versions,c=l&&l.v8;c?a=(n=c.split("."))[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(a=n[1]),e.exports=a&&+a},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,i){var n=i(7854),a=i(1236).f,r=i(8880),s=i(1320),o=i(3505),l=i(9920),c=i(4705);e.exports=function(e,t){var i,u,d,h,f,p=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[p]||o(p,{}):(n[p]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(f=a(i,u))&&f.value:i[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&r(h,"sham",!0),s(i,u,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:function(e,t,i){"use strict";i(4916);var n=i(1320),a=i(7293),r=i(5112),s=i(2261),o=i(8880),l=r("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=r("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),f=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));e.exports=function(e,t,i,d){var p=r(e),m=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),g=m&&!a((function(){var t=!1,i=/a/;return"split"===e&&((i={}).constructor={},i.constructor[l]=function(){return i},i.flags="",i[p]=/./[p]),i.exec=function(){return t=!0,null},i[p](""),!t}));if(!m||!g||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var v=/./[p],y=i(p,""[e],(function(e,t,i,n,a){return t.exec===s?m&&!a?{done:!0,value:v.call(t,i,n)}:{done:!0,value:e.call(i,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[0],x=y[1];n(String.prototype,e,b),n(RegExp.prototype,p,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},9974:function(e,t,i){var n=i(3099);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}}},5005:function(e,t,i){var n=i(857),a=i(7854),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(n[e])||r(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},1246:function(e,t,i){var n=i(648),a=i(7497),r=i(5112)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[n(e)]}},8554:function(e,t,i){var n=i(9670),a=i(1246);e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},647:function(e,t,i){var n=i(7908),a=Math.floor,r="".replace,s=/\$([$&'`]|\d\d?|<[^>]*>)/g,o=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,i,l,c,u){var d=i+e.length,h=l.length,f=o;return void 0!==c&&(c=n(c),f=s),r.call(u,f,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(d);case"<":s=c[r.slice(1,-1)];break;default:var o=+r;if(0===o)return n;if(o>h){var u=a(o/10);return 0===u?n:u<=h?void 0===l[u-1]?r.charAt(1):l[u-1]+r.charAt(1):n}s=l[o-1]}return void 0===s?"":s}))}},7854:function(e,t,i){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},6656:function(e){var t={}.hasOwnProperty;e.exports=function(e,i){return t.call(e,i)}},3501:function(e){e.exports={}},490:function(e,t,i){var n=i(5005);e.exports=n("document","documentElement")},4664:function(e,t,i){var n=i(9781),a=i(7293),r=i(317);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},1179:function(e){var t=Math.abs,i=Math.pow,n=Math.floor,a=Math.log,r=Math.LN2;e.exports={pack:function(e,s,o){var l,c,u,d=new Array(o),h=8*o-s-1,f=(1<<h)-1,p=f>>1,m=23===s?i(2,-24)-i(2,-77):0,g=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(c=e!=e?1:0,l=f):(l=n(a(e)/r),e*(u=i(2,-l))<1&&(l--,u*=2),(e+=l+p>=1?m/u:m*i(2,1-p))*u>=2&&(l++,u/=2),l+p>=f?(c=0,l=f):l+p>=1?(c=(e*u-1)*i(2,s),l+=p):(c=e*i(2,p-1)*i(2,s),l=0));s>=8;d[v++]=255&c,c/=256,s-=8);for(l=l<<s|c,h+=s;h>0;d[v++]=255&l,l/=256,h-=8);return d[--v]|=128*g,d},unpack:function(e,t){var n,a=e.length,r=8*a-t-1,s=(1<<r)-1,o=s>>1,l=r-7,c=a-1,u=e[c--],d=127&u;for(u>>=7;l>0;d=256*d+e[c],c--,l-=8);for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;n=256*n+e[c],c--,l-=8);if(0===d)d=1-o;else{if(d===s)return n?NaN:u?-1/0:1/0;n+=i(2,t),d-=o}return(u?-1:1)*n*i(2,d-t)}}},8361:function(e,t,i){var n=i(7293),a=i(4326),r="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},9587:function(e,t,i){var n=i(111),a=i(7674);e.exports=function(e,t,i){var r,s;return a&&"function"==typeof(r=t.constructor)&&r!==i&&n(s=r.prototype)&&s!==i.prototype&&a(e,s),e}},2788:function(e,t,i){var n=i(5465),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},9909:function(e,t,i){var n,a,r,s=i(8536),o=i(7854),l=i(111),c=i(8880),u=i(6656),d=i(5465),h=i(6200),f=i(3501),p=o.WeakMap;if(s){var m=d.state||(d.state=new p),g=m.get,v=m.has,y=m.set;n=function(e,t){return t.facade=e,y.call(m,e,t),t},a=function(e){return g.call(m,e)||{}},r=function(e){return v.call(m,e)}}else{var b=h("state");f[b]=!0,n=function(e,t){return t.facade=e,c(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},r=function(e){return u(e,b)}}e.exports={set:n,get:a,has:r,enforce:function(e){return r(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}}},7659:function(e,t,i){var n=i(5112),a=i(7497),r=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||s[r]===e)}},3157:function(e,t,i){var n=i(4326);e.exports=Array.isArray||function(e){return"Array"==n(e)}},4705:function(e,t,i){var n=i(7293),a=/#|\.prototype\./,r=function(e,t){var i=o[s(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},s=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},o=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:function(e){e.exports=!1},7850:function(e,t,i){var n=i(111),a=i(4326),r=i(5112)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==a(e))}},9212:function(e,t,i){var n=i(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},3383:function(e,t,i){"use strict";var n,a,r,s=i(7293),o=i(9518),l=i(8880),c=i(6656),u=i(5112),d=i(1913),h=u("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(a=o(o(r)))!==Object.prototype&&(n=a):f=!0);var p=null==n||s((function(){var e={};return n[h].call(e)!==e}));p&&(n={}),d&&!p||c(n,h)||l(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},7497:function(e){e.exports={}},133:function(e,t,i){var n=i(7293);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},590:function(e,t,i){var n=i(7293),a=i(5112),r=i(1913),s=a("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),r&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},8536:function(e,t,i){var n=i(7854),a=i(2788),r=n.WeakMap;e.exports="function"==typeof r&&/native code/.test(a(r))},1574:function(e,t,i){"use strict";var n=i(9781),a=i(7293),r=i(1956),s=i(5181),o=i(5296),l=i(7908),c=i(8361),u=Object.assign,d=Object.defineProperty;e.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),a="abcdefghijklmnopqrst";return e[i]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||r(u({},t)).join("")!=a}))?function(e,t){for(var i=l(e),a=arguments.length,u=1,d=s.f,h=o.f;a>u;)for(var f,p=c(arguments[u++]),m=d?r(p).concat(d(p)):r(p),g=m.length,v=0;g>v;)f=m[v++],n&&!h.call(p,f)||(i[f]=p[f]);return i}:u},30:function(e,t,i){var n,a=i(9670),r=i(6048),s=i(748),o=i(3501),l=i(490),c=i(317),u=i(6200),d=u("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"</"+"script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=n?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var i=s.length;i--;)delete p.prototype[s[i]];return p()};o[d]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(h.prototype=a(e),i=new h,h.prototype=null,i[d]=e):i=p(),void 0===t?i:r(i,t)}},6048:function(e,t,i){var n=i(9781),a=i(3070),r=i(9670),s=i(1956);e.exports=n?Object.defineProperties:function(e,t){r(e);for(var i,n=s(t),o=n.length,l=0;o>l;)a.f(e,i=n[l++],t[i]);return e}},3070:function(e,t,i){var n=i(9781),a=i(4664),r=i(9670),s=i(7593),o=Object.defineProperty;t.f=n?o:function(e,t,i){if(r(e),t=s(t,!0),r(i),a)try{return o(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},1236:function(e,t,i){var n=i(9781),a=i(5296),r=i(9114),s=i(5656),o=i(7593),l=i(6656),c=i(4664),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=o(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return r(!a.f.call(e,t),e[t])}},8006:function(e,t,i){var n=i(6324),a=i(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,i){var n=i(6656),a=i(7908),r=i(6200),s=i(8544),o=r("IE_PROTO"),l=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=a(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},6324:function(e,t,i){var n=i(6656),a=i(5656),r=i(1318).indexOf,s=i(3501);e.exports=function(e,t){var i,o=a(e),l=0,c=[];for(i in o)!n(s,i)&&n(o,i)&&c.push(i);for(;t.length>l;)n(o,i=t[l++])&&(~r(c,i)||c.push(i));return c}},1956:function(e,t,i){var n=i(6324),a=i(748);e.exports=Object.keys||function(e){return n(e,a)}},5296:function(e,t){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);t.f=a?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},7674:function(e,t,i){var n=i(9670),a=i(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,r){return n(i),a(r),t?e.call(i,r):i.__proto__=r,i}}():void 0)},288:function(e,t,i){"use strict";var n=i(1694),a=i(648);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},3887:function(e,t,i){var n=i(5005),a=i(8006),r=i(5181),s=i(9670);e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(s(e)),i=r.f;return i?t.concat(i(e)):t}},857:function(e,t,i){var n=i(7854);e.exports=n},2248:function(e,t,i){var n=i(1320);e.exports=function(e,t,i){for(var a in t)n(e,a,t[a],i);return e}},1320:function(e,t,i){var n=i(7854),a=i(8880),r=i(6656),s=i(3505),o=i(2788),l=i(9909),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,i,o){var l,c=!!o&&!!o.unsafe,h=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||r(i,"name")||a(i,"name",t),(l=u(i)).source||(l.source=d.join("string"==typeof t?t:""))),e!==n?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=i:a(e,t,i)):h?e[t]=i:s(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||o(this)}))},7651:function(e,t,i){var n=i(4326),a=i(2261);e.exports=function(e,t){var i=e.exec;if("function"==typeof i){var r=i.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},2261:function(e,t,i){"use strict";var n,a,r=i(7066),s=i(2999),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,u=(n=/a/,a=/b*/g,o.call(n,"a"),o.call(a,"a"),0!==n.lastIndex||0!==a.lastIndex),d=s.UNSUPPORTED_Y||s.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(u||h||d)&&(c=function(e){var t,i,n,a,s=this,c=d&&s.sticky,f=r.call(s),p=s.source,m=0,g=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(p="(?: "+p+")",g=" "+g,m++),i=new RegExp("^(?:"+p+")",f)),h&&(i=new RegExp("^"+p+"$(?!\\s)",f)),u&&(t=s.lastIndex),n=o.call(c?i:s,g),c?n?(n.input=n.input.slice(m),n[0]=n[0].slice(m),n.index=s.lastIndex,s.lastIndex+=n[0].length):s.lastIndex=0:u&&n&&(s.lastIndex=s.global?n.index+n[0].length:t),h&&n&&n.length>1&&l.call(n[0],i,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)})),n}),e.exports=c},7066:function(e,t,i){"use strict";var n=i(9670);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},2999:function(e,t,i){"use strict";var n=i(7293);function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},4488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:function(e,t,i){var n=i(7854),a=i(8880);e.exports=function(e,t){try{a(n,e,t)}catch(i){n[e]=t}return t}},6340:function(e,t,i){"use strict";var n=i(5005),a=i(3070),r=i(5112),s=i(9781),o=r("species");e.exports=function(e){var t=n(e),i=a.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},8003:function(e,t,i){var n=i(3070).f,a=i(6656),r=i(5112)("toStringTag");e.exports=function(e,t,i){e&&!a(e=i?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},6200:function(e,t,i){var n=i(2309),a=i(9711),r=n("keys");e.exports=function(e){return r[e]||(r[e]=a(e))}},5465:function(e,t,i){var n=i(7854),a=i(3505),r="__core-js_shared__",s=n[r]||a(r,{});e.exports=s},2309:function(e,t,i){var n=i(1913),a=i(5465);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(e,t,i){var n=i(9670),a=i(3099),r=i(5112)("species");e.exports=function(e,t){var i,s=n(e).constructor;return void 0===s||null==(i=n(s)[r])?t:a(i)}},8710:function(e,t,i){var n=i(9958),a=i(4488),r=function(e){return function(t,i){var r,s,o=String(a(t)),l=n(i),c=o.length;return l<0||l>=c?e?"":void 0:(r=o.charCodeAt(l))<55296||r>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):r:e?o.slice(l,l+2):s-56320+(r-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},3197:function(e){"use strict";var t=2147483647,i=/[^\0-\u007E]/,n=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",r=Math.floor,s=String.fromCharCode,o=function(e){return e+22+75*(e<26)},l=function(e,t,i){var n=0;for(e=i?r(e/700):e>>1,e+=r(e/t);e>455;n+=36)e=r(e/35);return r(n+36*e/(e+38))},c=function(e){var i=[];e=function(e){for(var t=[],i=0,n=e.length;i<n;){var a=e.charCodeAt(i++);if(a>=55296&&a<=56319&&i<n){var r=e.charCodeAt(i++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),i--)}else t.push(a)}return t}(e);var n,c,u=e.length,d=128,h=0,f=72;for(n=0;n<e.length;n++)(c=e[n])<128&&i.push(s(c));var p=i.length,m=p;for(p&&i.push("-");m<u;){var g=t;for(n=0;n<e.length;n++)(c=e[n])>=d&&c<g&&(g=c);var v=m+1;if(g-d>r((t-h)/v))throw RangeError(a);for(h+=(g-d)*v,d=g,n=0;n<e.length;n++){if((c=e[n])<d&&++h>t)throw RangeError(a);if(c==d){for(var y=h,b=36;;b+=36){var x=b<=f?1:b>=f+26?26:b-f;if(y<x)break;var _=y-x,w=36-x;i.push(s(o(x+_%w))),y=r(_/w)}i.push(s(o(y))),f=l(h,v,m==p),h=0,++m}}++h,++d}return i.join("")};e.exports=function(e){var t,a,r=[],s=e.toLowerCase().replace(n,".").split(".");for(t=0;t<s.length;t++)a=s[t],r.push(i.test(a)?"xn--"+c(a):a);return r.join(".")}},6091:function(e,t,i){var n=i(7293),a=i(1361);e.exports=function(e){return n((function(){return!!a[e]()||"
"!="
"[e]()||a[e].name!==e}))}},3111:function(e,t,i){var n=i(4488),a="["+i(1361)+"]",r=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),o=function(e){return function(t){var i=String(n(t));return 1&e&&(i=i.replace(r,"")),2&e&&(i=i.replace(s,"")),i}};e.exports={start:o(1),end:o(2),trim:o(3)}},1400:function(e,t,i){var n=i(9958),a=Math.max,r=Math.min;e.exports=function(e,t){var i=n(e);return i<0?a(i+t,0):r(i,t)}},7067:function(e,t,i){var n=i(9958),a=i(7466);e.exports=function(e){if(void 0===e)return 0;var t=n(e),i=a(t);if(t!==i)throw RangeError("Wrong length or index");return i}},5656:function(e,t,i){var n=i(8361),a=i(4488);e.exports=function(e){return n(a(e))}},9958:function(e){var t=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:t)(e)}},7466:function(e,t,i){var n=i(9958),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},7908:function(e,t,i){var n=i(4488);e.exports=function(e){return Object(n(e))}},4590:function(e,t,i){var n=i(3002);e.exports=function(e,t){var i=n(e);if(i%t)throw RangeError("Wrong offset");return i}},3002:function(e,t,i){var n=i(9958);e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},7593:function(e,t,i){var n=i(111);e.exports=function(e,t){if(!n(e))return e;var i,a;if(t&&"function"==typeof(i=e.toString)&&!n(a=i.call(e)))return a;if("function"==typeof(i=e.valueOf)&&!n(a=i.call(e)))return a;if(!t&&"function"==typeof(i=e.toString)&&!n(a=i.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},1694:function(e,t,i){var n={};n[i(5112)("toStringTag")]="z",e.exports="[object z]"===String(n)},9843:function(e,t,i){"use strict";var n=i(2109),a=i(7854),r=i(9781),s=i(3832),o=i(260),l=i(3331),c=i(5787),u=i(9114),d=i(8880),h=i(7466),f=i(7067),p=i(4590),m=i(7593),g=i(6656),v=i(648),y=i(111),b=i(30),x=i(7674),_=i(8006).f,w=i(7321),k=i(2092).forEach,M=i(6340),L=i(3070),S=i(1236),A=i(9909),T=i(9587),C=A.get,D=A.set,E=L.f,O=S.f,P=Math.round,Y=a.RangeError,I=l.ArrayBuffer,j=l.DataView,N=o.NATIVE_ARRAY_BUFFER_VIEWS,H=o.TYPED_ARRAY_TAG,F=o.TypedArray,R=o.TypedArrayPrototype,z=o.aTypedArrayConstructor,B=o.isTypedArray,W="BYTES_PER_ELEMENT",V="Wrong length",q=function(e,t){for(var i=0,n=t.length,a=new(z(e))(n);n>i;)a[i]=t[i++];return a},X=function(e,t){E(e,t,{get:function(){return C(this)[t]}})},U=function(e){var t;return e instanceof I||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},$=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},G=function(e,t){return $(e,t=m(t,!0))?u(2,e[t]):O(e,t)},Z=function(e,t,i){return!($(e,t=m(t,!0))&&y(i)&&g(i,"value"))||g(i,"get")||g(i,"set")||i.configurable||g(i,"writable")&&!i.writable||g(i,"enumerable")&&!i.enumerable?E(e,t,i):(e[t]=i.value,e)};r?(N||(S.f=G,L.f=Z,X(R,"buffer"),X(R,"byteOffset"),X(R,"byteLength"),X(R,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:G,defineProperty:Z}),e.exports=function(e,t,i){var r=e.match(/\d+$/)[0]/8,o=e+(i?"Clamped":"")+"Array",l="get"+e,u="set"+e,m=a[o],g=m,v=g&&g.prototype,L={},S=function(e,t){E(e,t,{get:function(){return function(e,t){var i=C(e);return i.view[l](t*r+i.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=C(e);i&&(n=(n=P(n))<0?0:n>255?255:255&n),a.view[u](t*r+a.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};N?s&&(g=t((function(e,t,i,n){return c(e,g,o),T(y(t)?U(t)?void 0!==n?new m(t,p(i,r),n):void 0!==i?new m(t,p(i,r)):new m(t):B(t)?q(g,t):w.call(g,t):new m(f(t)),e,g)})),x&&x(g,F),k(_(m),(function(e){e in g||d(g,e,m[e])})),g.prototype=v):(g=t((function(e,t,i,n){c(e,g,o);var a,s,l,u=0,d=0;if(y(t)){if(!U(t))return B(t)?q(g,t):w.call(g,t);a=t,d=p(i,r);var m=t.byteLength;if(void 0===n){if(m%r)throw Y(V);if((s=m-d)<0)throw Y(V)}else if((s=h(n)*r)+d>m)throw Y(V);l=s/r}else l=f(t),a=new I(s=l*r);for(D(e,{buffer:a,byteOffset:d,byteLength:s,length:l,view:new j(a)});u<l;)S(e,u++)})),x&&x(g,F),v=g.prototype=b(R)),v.constructor!==g&&d(v,"constructor",g),H&&d(v,H,o),L[o]=g,n({global:!0,forced:g!=m,sham:!N},L),W in g||d(g,W,r),W in v||d(v,W,r),M(o)}):e.exports=function(){}},3832:function(e,t,i){var n=i(7854),a=i(7293),r=i(7072),s=i(260).NATIVE_ARRAY_BUFFER_VIEWS,o=n.ArrayBuffer,l=n.Int8Array;e.exports=!s||!a((function(){l(1)}))||!a((function(){new l(-1)}))||!r((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||a((function(){return 1!==new l(new o(2),1,void 0).length}))},3074:function(e,t,i){var n=i(260).aTypedArrayConstructor,a=i(6707);e.exports=function(e,t){for(var i=a(e,e.constructor),r=0,s=t.length,o=new(n(i))(s);s>r;)o[r]=t[r++];return o}},7321:function(e,t,i){var n=i(7908),a=i(7466),r=i(1246),s=i(7659),o=i(9974),l=i(260).aTypedArrayConstructor;e.exports=function(e){var t,i,c,u,d,h,f=n(e),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=r(f);if(null!=v&&!s(v))for(h=(d=v.call(f)).next,f=[];!(u=h.call(d)).done;)f.push(u.value);for(g&&p>2&&(m=o(m,arguments[2],2)),i=a(f.length),c=new(l(this))(i),t=0;i>t;t++)c[t]=g?m(f[t],t):f[t];return c}},9711:function(e){var t=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+i).toString(36)}},3307:function(e,t,i){var n=i(133);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(e,t,i){var n=i(7854),a=i(2309),r=i(6656),s=i(9711),o=i(133),l=i(3307),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||s;e.exports=function(e){return r(c,e)||(o&&r(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},1361:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},8264:function(e,t,i){"use strict";var n=i(2109),a=i(7854),r=i(3331),s=i(6340),o="ArrayBuffer",l=r.ArrayBuffer;n({global:!0,forced:a.ArrayBuffer!==l},{ArrayBuffer:l}),s(o)},2222:function(e,t,i){"use strict";var n=i(2109),a=i(7293),r=i(3157),s=i(111),o=i(7908),l=i(7466),c=i(6135),u=i(5417),d=i(1194),h=i(5112),f=i(7392),p=h("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:r(e)};n({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,i,n,a,r,s=o(this),d=u(s,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(b(r=-1===t?s:arguments[t])){if(h+(a=l(r.length))>m)throw TypeError(g);for(i=0;i<a;i++,h++)i in r&&c(d,h,r[i])}else{if(h>=m)throw TypeError(g);c(d,h++,r)}return d.length=h,d}})},7327:function(e,t,i){"use strict";var n=i(2109),a=i(2092).filter;n({target:"Array",proto:!0,forced:!i(1194)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},2772:function(e,t,i){"use strict";var n=i(2109),a=i(1318).indexOf,r=i(9341),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0,l=r("indexOf");n({target:"Array",proto:!0,forced:o||!l},{indexOf:function(e){return o?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},6992:function(e,t,i){"use strict";var n=i(5656),a=i(1223),r=i(7497),s=i(9909),o=i(654),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},1249:function(e,t,i){"use strict";var n=i(2109),a=i(2092).map;n({target:"Array",proto:!0,forced:!i(1194)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},7042:function(e,t,i){"use strict";var n=i(2109),a=i(111),r=i(3157),s=i(1400),o=i(7466),l=i(5656),c=i(6135),u=i(5112),d=i(1194)("slice"),h=u("species"),f=[].slice,p=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var i,n,u,d=l(this),m=o(d.length),g=s(e,m),v=s(void 0===t?m:t,m);if(r(d)&&("function"!=typeof(i=d.constructor)||i!==Array&&!r(i.prototype)?a(i)&&null===(i=i[h])&&(i=void 0):i=void 0,i===Array||void 0===i))return f.call(d,g,v);for(n=new(void 0===i?Array:i)(p(v-g,0)),u=0;g<v;g++,u++)g in d&&c(n,u,d[g]);return n.length=u,n}})},561:function(e,t,i){"use strict";var n=i(2109),a=i(1400),r=i(9958),s=i(7466),o=i(7908),l=i(5417),c=i(6135),u=i(1194)("splice"),d=Math.max,h=Math.min,f=9007199254740991,p="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var i,n,u,m,g,v,y=o(this),b=s(y.length),x=a(e,b),_=arguments.length;if(0===_?i=n=0:1===_?(i=0,n=b-x):(i=_-2,n=h(d(r(t),0),b-x)),b+i-n>f)throw TypeError(p);for(u=l(y,n),m=0;m<n;m++)(g=x+m)in y&&c(u,m,y[g]);if(u.length=n,i<n){for(m=x;m<b-n;m++)v=m+i,(g=m+n)in y?y[v]=y[g]:delete y[v];for(m=b;m>b-n+i;m--)delete y[m-1]}else if(i>n)for(m=b-n;m>x;m--)v=m+i-1,(g=m+n-1)in y?y[v]=y[g]:delete y[v];for(m=0;m<i;m++)y[m+x]=arguments[m+2];return y.length=b-n+i,u}})},8309:function(e,t,i){var n=i(9781),a=i(3070).f,r=Function.prototype,s=r.toString,o=/^\s*function ([^ (]*)/,l="name";n&&!(l in r)&&a(r,l,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(e){return""}}})},489:function(e,t,i){var n=i(2109),a=i(7293),r=i(7908),s=i(9518),o=i(8544);n({target:"Object",stat:!0,forced:a((function(){s(1)})),sham:!o},{getPrototypeOf:function(e){return s(r(e))}})},1539:function(e,t,i){var n=i(1694),a=i(1320),r=i(288);n||a(Object.prototype,"toString",r,{unsafe:!0})},4916:function(e,t,i){"use strict";var n=i(2109),a=i(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},9714:function(e,t,i){"use strict";var n=i(1320),a=i(9670),r=i(7293),s=i(7066),o="toString",l=RegExp.prototype,c=l.toString,u=r((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=o;(u||d)&&n(RegExp.prototype,o,(function(){var e=a(this),t=String(e.source),i=e.flags;return"/"+t+"/"+String(void 0===i&&e instanceof RegExp&&!("flags"in l)?s.call(e):i)}),{unsafe:!0})},8783:function(e,t,i){"use strict";var n=i(8710).charAt,a=i(9909),r=i(654),s="String Iterator",o=a.set,l=a.getterFor(s);r(String,"String",(function(e){o(this,{type:s,string:String(e),index:0})}),(function(){var e,t=l(this),i=t.string,a=t.index;return a>=i.length?{value:void 0,done:!0}:(e=n(i,a),t.index+=e.length,{value:e,done:!1})}))},4723:function(e,t,i){"use strict";var n=i(7007),a=i(9670),r=i(7466),s=i(4488),o=i(1530),l=i(7651);n("match",1,(function(e,t,i){return[function(t){var i=s(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,i):new RegExp(t)[e](String(i))},function(e){var n=i(t,e,this);if(n.done)return n.value;var s=a(e),c=String(this);if(!s.global)return l(s,c);var u=s.unicode;s.lastIndex=0;for(var d,h=[],f=0;null!==(d=l(s,c));){var p=String(d[0]);h[f]=p,""===p&&(s.lastIndex=o(c,r(s.lastIndex),u)),f++}return 0===f?null:h}]}))},5306:function(e,t,i){"use strict";var n=i(7007),a=i(9670),r=i(7466),s=i(9958),o=i(4488),l=i(1530),c=i(647),u=i(7651),d=Math.max,h=Math.min;n("replace",2,(function(e,t,i,n){var f=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=n.REPLACE_KEEPS_$0,m=f?"$":"$0";return[function(i,n){var a=o(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,a,n):t.call(String(a),i,n)},function(e,n){if(!f&&p||"string"==typeof n&&-1===n.indexOf(m)){var o=i(t,e,this,n);if(o.done)return o.value}var g=a(e),v=String(this),y="function"==typeof n;y||(n=String(n));var b=g.global;if(b){var x=g.unicode;g.lastIndex=0}for(var _=[];;){var w=u(g,v);if(null===w)break;if(_.push(w),!b)break;""===String(w[0])&&(g.lastIndex=l(v,r(g.lastIndex),x))}for(var k,M="",L=0,S=0;S<_.length;S++){w=_[S];for(var A=String(w[0]),T=d(h(s(w.index),v.length),0),C=[],D=1;D<w.length;D++)C.push(void 0===(k=w[D])?k:String(k));var E=w.groups;if(y){var O=[A].concat(C,T,v);void 0!==E&&O.push(E);var P=String(n.apply(void 0,O))}else P=c(A,v,T,C,E,n);T>=L&&(M+=v.slice(L,T)+P,L=T+A.length)}return M+v.slice(L)}]}))},3123:function(e,t,i){"use strict";var n=i(7007),a=i(7850),r=i(9670),s=i(4488),o=i(6707),l=i(1530),c=i(7466),u=i(7651),d=i(2261),h=i(7293),f=[].push,p=Math.min,m=4294967295,g=!h((function(){return!RegExp(m,"y")}));n("split",2,(function(e,t,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,i){var n=String(s(this)),r=void 0===i?m:i>>>0;if(0===r)return[];if(void 0===e)return[n];if(!a(e))return t.call(n,e,r);for(var o,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,h+"g");(o=d.call(g,n))&&!((l=g.lastIndex)>p&&(u.push(n.slice(p,o.index)),o.length>1&&o.index<n.length&&f.apply(u,o.slice(1)),c=o[0].length,p=l,u.length>=r));)g.lastIndex===o.index&&g.lastIndex++;return p===n.length?!c&&g.test("")||u.push(""):u.push(n.slice(p)),u.length>r?u.slice(0,r):u}:"0".split(void 0,0).length?function(e,i){return void 0===e&&0===i?[]:t.call(this,e,i)}:t,[function(t,i){var a=s(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,a,i):n.call(String(a),t,i)},function(e,a){var s=i(n,e,this,a,n!==t);if(s.done)return s.value;var d=r(e),h=String(this),f=o(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(g?"y":"g"),b=new f(g?d:"^(?:"+d.source+")",y),x=void 0===a?m:a>>>0;if(0===x)return[];if(0===h.length)return null===u(b,h)?[h]:[];for(var _=0,w=0,k=[];w<h.length;){b.lastIndex=g?w:0;var M,L=u(b,g?h:h.slice(w));if(null===L||(M=p(c(b.lastIndex+(g?0:w)),h.length))===_)w=l(h,w,v);else{if(k.push(h.slice(_,w)),k.length===x)return k;for(var S=1;S<=L.length-1;S++)if(k.push(L[S]),k.length===x)return k;w=_=M}}return k.push(h.slice(_)),k}]}),!g)},3210:function(e,t,i){"use strict";var n=i(2109),a=i(3111).trim;n({target:"String",proto:!0,forced:i(6091)("trim")},{trim:function(){return a(this)}})},2990:function(e,t,i){"use strict";var n=i(260),a=i(1048),r=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(e,t){return a.call(r(this),e,t,arguments.length>2?arguments[2]:void 0)}))},8927:function(e,t,i){"use strict";var n=i(260),a=i(2092).every,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},3105:function(e,t,i){"use strict";var n=i(260),a=i(1285),r=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(e){return a.apply(r(this),arguments)}))},5035:function(e,t,i){"use strict";var n=i(260),a=i(2092).filter,r=i(3074),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=a(s(this),e,arguments.length>1?arguments[1]:void 0);return r(this,t)}))},7174:function(e,t,i){"use strict";var n=i(260),a=i(2092).findIndex,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},4345:function(e,t,i){"use strict";var n=i(260),a=i(2092).find,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},2846:function(e,t,i){"use strict";var n=i(260),a=i(2092).forEach,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},4731:function(e,t,i){"use strict";var n=i(260),a=i(1318).includes,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},7209:function(e,t,i){"use strict";var n=i(260),a=i(1318).indexOf,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},6319:function(e,t,i){"use strict";var n=i(7854),a=i(260),r=i(6992),s=i(5112)("iterator"),o=n.Uint8Array,l=r.values,c=r.keys,u=r.entries,d=a.aTypedArray,h=a.exportTypedArrayMethod,f=o&&o.prototype[s],p=!!f&&("values"==f.name||null==f.name),m=function(){return l.call(d(this))};h("entries",(function(){return u.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",m,!p),h(s,m,!p)},8867:function(e,t,i){"use strict";var n=i(260),a=n.aTypedArray,r=n.exportTypedArrayMethod,s=[].join;r("join",(function(e){return s.apply(a(this),arguments)}))},7789:function(e,t,i){"use strict";var n=i(260),a=i(6583),r=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){return a.apply(r(this),arguments)}))},3739:function(e,t,i){"use strict";var n=i(260),a=i(2092).map,r=i(6707),s=n.aTypedArray,o=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(e){return a(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(r(e,e.constructor)))(t)}))}))},4483:function(e,t,i){"use strict";var n=i(260),a=i(3671).right,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){return a(r(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},9368:function(e,t,i){"use strict";var n=i(260),a=i(3671).left,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){return a(r(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},2056:function(e,t,i){"use strict";var n=i(260),a=n.aTypedArray,r=n.exportTypedArrayMethod,s=Math.floor;r("reverse",(function(){for(var e,t=this,i=a(t).length,n=s(i/2),r=0;r<n;)e=t[r],t[r++]=t[--i],t[i]=e;return t}))},3462:function(e,t,i){"use strict";var n=i(260),a=i(7466),r=i(4590),s=i(7908),o=i(7293),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(e){l(this);var t=r(arguments.length>1?arguments[1]:void 0,1),i=this.length,n=s(e),o=a(n.length),c=0;if(o+t>i)throw RangeError("Wrong length");for(;c<o;)this[t+c]=n[c++]}),o((function(){new Int8Array(1).set({})})))},678:function(e,t,i){"use strict";var n=i(260),a=i(6707),r=i(7293),s=n.aTypedArray,o=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice;l("slice",(function(e,t){for(var i=c.call(s(this),e,t),n=a(this,this.constructor),r=0,l=i.length,u=new(o(n))(l);l>r;)u[r]=i[r++];return u}),r((function(){new Int8Array(1).slice()})))},7462:function(e,t,i){"use strict";var n=i(260),a=i(2092).some,r=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return a(r(this),e,arguments.length>1?arguments[1]:void 0)}))},3824:function(e,t,i){"use strict";var n=i(260),a=n.aTypedArray,r=n.exportTypedArrayMethod,s=[].sort;r("sort",(function(e){return s.call(a(this),e)}))},5021:function(e,t,i){"use strict";var n=i(260),a=i(7466),r=i(1400),s=i(6707),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var i=o(this),n=i.length,l=r(e,n);return new(s(i,i.constructor))(i.buffer,i.byteOffset+l*i.BYTES_PER_ELEMENT,a((void 0===t?n:r(t,n))-l))}))},2974:function(e,t,i){"use strict";var n=i(7854),a=i(260),r=i(7293),s=n.Int8Array,o=a.aTypedArray,l=a.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!s&&r((function(){c.call(new s(1))}));l("toLocaleString",(function(){return c.apply(d?u.call(o(this)):o(this),arguments)}),r((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!r((function(){s.prototype.toLocaleString.call([1,2])})))},5016:function(e,t,i){"use strict";var n=i(260).exportTypedArrayMethod,a=i(7293),r=i(7854).Uint8Array,s=r&&r.prototype||{},o=[].toString,l=[].join;a((function(){o.call({})}))&&(o=function(){return l.call(this)});var c=s.toString!=o;n("toString",o,c)},2472:function(e,t,i){i(9843)("Uint8",(function(e){return function(t,i,n){return e(this,t,i,n)}}))},4747:function(e,t,i){var n=i(7854),a=i(8324),r=i(8533),s=i(8880);for(var o in a){var l=n[o],c=l&&l.prototype;if(c&&c.forEach!==r)try{s(c,"forEach",r)}catch(e){c.forEach=r}}},3948:function(e,t,i){var n=i(7854),a=i(8324),r=i(6992),s=i(8880),o=i(5112),l=o("iterator"),c=o("toStringTag"),u=r.values;for(var d in a){var h=n[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{s(f,l,u)}catch(e){f[l]=u}if(f[c]||s(f,c,d),a[d])for(var p in r)if(f[p]!==r[p])try{s(f,p,r[p])}catch(e){f[p]=r[p]}}}},1637:function(e,t,i){"use strict";i(6992);var n=i(2109),a=i(5005),r=i(590),s=i(1320),o=i(2248),l=i(8003),c=i(4994),u=i(9909),d=i(5787),h=i(6656),f=i(9974),p=i(648),m=i(9670),g=i(111),v=i(30),y=i(9114),b=i(8554),x=i(1246),_=i(5112),w=a("fetch"),k=a("Headers"),M=_("iterator"),L="URLSearchParams",S="URLSearchParamsIterator",A=u.set,T=u.getterFor(L),C=u.getterFor(S),D=/\+/g,E=Array(4),O=function(e){return E[e-1]||(E[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Y=function(e){var t=e.replace(D," "),i=4;try{return decodeURIComponent(t)}catch(e){for(;i;)t=t.replace(O(i--),P);return t}},I=/[!'()~]|%20/g,j={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return j[e]},H=function(e){return encodeURIComponent(e).replace(I,N)},F=function(e,t){if(t)for(var i,n,a=t.split("&"),r=0;r<a.length;)(i=a[r++]).length&&(n=i.split("="),e.push({key:Y(n.shift()),value:Y(n.join("="))}))},R=function(e){this.entries.length=0,F(this.entries,e)},z=function(e,t){if(e<t)throw TypeError("Not enough arguments")},B=c((function(e,t){A(this,{type:S,iterator:b(T(e).entries),kind:t})}),"Iterator",(function(){var e=C(this),t=e.kind,i=e.iterator.next(),n=i.value;return i.done||(i.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),i})),W=function(){d(this,W,L);var e,t,i,n,a,r,s,o,l,c=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(A(u,{type:L,entries:f,updateURL:function(){},updateSearchParams:R}),void 0!==c)if(g(c))if("function"==typeof(e=x(c)))for(i=(t=e.call(c)).next;!(n=i.call(t)).done;){if((s=(r=(a=b(m(n.value))).next).call(a)).done||(o=r.call(a)).done||!r.call(a).done)throw TypeError("Expected sequence with length 2");f.push({key:s.value+"",value:o.value+""})}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else F(f,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},V=W.prototype;o(V,{append:function(e,t){z(arguments.length,2);var i=T(this);i.entries.push({key:e+"",value:t+""}),i.updateURL()},delete:function(e){z(arguments.length,1);for(var t=T(this),i=t.entries,n=e+"",a=0;a<i.length;)i[a].key===n?i.splice(a,1):a++;t.updateURL()},get:function(e){z(arguments.length,1);for(var t=T(this).entries,i=e+"",n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){z(arguments.length,1);for(var t=T(this).entries,i=e+"",n=[],a=0;a<t.length;a++)t[a].key===i&&n.push(t[a].value);return n},has:function(e){z(arguments.length,1);for(var t=T(this).entries,i=e+"",n=0;n<t.length;)if(t[n++].key===i)return!0;return!1},set:function(e,t){z(arguments.length,1);for(var i,n=T(this),a=n.entries,r=!1,s=e+"",o=t+"",l=0;l<a.length;l++)(i=a[l]).key===s&&(r?a.splice(l--,1):(r=!0,i.value=o));r||a.push({key:s,value:o}),n.updateURL()},sort:function(){var e,t,i,n=T(this),a=n.entries,r=a.slice();for(a.length=0,i=0;i<r.length;i++){for(e=r[i],t=0;t<i;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===i&&a.push(e)}n.updateURL()},forEach:function(e){for(var t,i=T(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;a<i.length;)n((t=i[a++]).value,t.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),s(V,M,V.entries),s(V,"toString",(function(){for(var e,t=T(this).entries,i=[],n=0;n<t.length;)e=t[n++],i.push(H(e.key)+"="+H(e.value));return i.join("&")}),{enumerable:!0}),l(W,L),n({global:!0,forced:!r},{URLSearchParams:W}),r||"function"!=typeof w||"function"!=typeof k||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,i,n,a=[e];return arguments.length>1&&(g(t=arguments[1])&&(i=t.body,p(i)===L&&((n=t.headers?new k(t.headers):new k).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(i)),headers:y(0,n)}))),a.push(t)),w.apply(this,a)}}),e.exports={URLSearchParams:W,getState:T}},285:function(e,t,i){"use strict";i(8783);var n,a=i(2109),r=i(9781),s=i(590),o=i(7854),l=i(6048),c=i(1320),u=i(5787),d=i(6656),h=i(1574),f=i(8457),p=i(8710).codeAt,m=i(3197),g=i(8003),v=i(1637),y=i(9909),b=o.URL,x=v.URLSearchParams,_=v.getState,w=y.set,k=y.getterFor("URL"),M=Math.floor,L=Math.pow,S="Invalid scheme",A="Invalid host",T="Invalid port",C=/[A-Za-z]/,D=/[\d+-.A-Za-z]/,E=/\d/,O=/^(0x|0X)/,P=/^[0-7]+$/,Y=/^\d+$/,I=/^[\dA-Fa-f]+$/,j=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,N=/[\u0000\t\u000A\u000D #/:?@[\\]]/,H=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\t\u000A\u000D]/g,R=function(e,t){var i,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(!(i=B(t.slice(1,-1))))return A;e.host=i}else if(Z(e)){if(t=m(t),j.test(t))return A;if(null===(i=z(t)))return A;e.host=i}else{if(N.test(t))return A;for(i="",n=f(t),a=0;a<n.length;a++)i+=$(n[a],V);e.host=i}},z=function(e){var t,i,n,a,r,s,o,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(i=[],n=0;n<t;n++){if(""==(a=l[n]))return e;if(r=10,a.length>1&&"0"==a.charAt(0)&&(r=O.test(a)?16:8,a=a.slice(8==r?1:2)),""===a)s=0;else{if(!(10==r?Y:8==r?P:I).test(a))return e;s=parseInt(a,r)}i.push(s)}for(n=0;n<t;n++)if(s=i[n],n==t-1){if(s>=L(256,5-t))return null}else if(s>255)return null;for(o=i.pop(),n=0;n<i.length;n++)o+=i[n]*L(256,3-n);return o},B=function(e){var t,i,n,a,r,s,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=i=0;i<4&&I.test(h());)t=16*t+parseInt(h(),16),d++,i++;if("."==h()){if(0==i)return;if(d-=i,c>6)return;for(n=0;h();){if(a=null,n>0){if(!("."==h()&&n<4))return;d++}if(!E.test(h()))return;for(;E.test(h());){if(r=parseInt(h(),10),null===a)a=r;else{if(0==a)return;a=10*a+r}if(a>255)return;d++}l[c]=256*l[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(s=c-u,c=7;0!=c&&s>0;)o=l[c],l[c--]=l[u+s-1],l[u+--s]=o;else if(8!=c)return;return l},W=function(e){var t,i,n,a;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=M(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,i=1,n=null,a=0,r=0;r<8;r++)0!==e[r]?(a>i&&(t=n,i=a),n=null,a=0):(null===n&&(n=r),++a);return a>i&&(t=n,i=a),t}(e),i=0;i<8;i++)a&&0===e[i]||(a&&(a=!1),n===i?(t+=i?":":"::",a=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},V={},q=h({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),X=h({},q,{"#":1,"?":1,"{":1,"}":1}),U=h({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$=function(e,t){var i=p(e,0);return i>32&&i<127&&!d(t,e)?e:encodeURIComponent(e)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return d(G,e.scheme)},K=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Q=function(e,t){var i;return 2==e.length&&C.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},ee=function(e){var t;return e.length>1&&Q(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&Q(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},ne={},ae={},re={},se={},oe={},le={},ce={},ue={},de={},he={},fe={},pe={},me={},ge={},ve={},ye={},be={},xe={},_e={},we={},ke={},Me=function(e,t,i,a){var r,s,o,l,c,u=i||ne,h=0,p="",m=!1,g=!1,v=!1;for(i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(H,"")),t=t.replace(F,""),r=f(t);h<=r.length;){switch(s=r[h],u){case ne:if(!s||!C.test(s)){if(i)return S;u=re;continue}p+=s.toLowerCase(),u=ae;break;case ae:if(s&&(D.test(s)||"+"==s||"-"==s||"."==s))p+=s.toLowerCase();else{if(":"!=s){if(i)return S;p="",u=re,h=0;continue}if(i&&(Z(e)!=d(G,p)||"file"==p&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,i)return void(Z(e)&&G[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=ge:Z(e)&&a&&a.scheme==e.scheme?u=se:Z(e)?u=ue:"/"==r[h+1]?(u=oe,h++):(e.cannotBeABaseURL=!0,e.path.push(""),u=_e)}break;case re:if(!a||a.cannotBeABaseURL&&"#"!=s)return S;if(a.cannotBeABaseURL&&"#"==s){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==a.scheme?ge:le;continue;case se:if("/"!=s||"/"!=r[h+1]){u=le;continue}u=de,h++;break;case oe:if("/"==s){u=he;break}u=xe;continue;case le:if(e.scheme=a.scheme,s==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==s||"\\"==s&&Z(e))u=ce;else if("?"==s)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",u=we;else{if("#"!=s){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),u=xe;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=ke}break;case ce:if(!Z(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,u=xe;continue}u=he}else u=de;break;case ue:if(u=de,"/"!=s||"/"!=p.charAt(h+1))continue;h++;break;case de:if("/"!=s&&"\\"!=s){u=he;continue}break;case he:if("@"==s){m&&(p="%40"+p),m=!0,o=f(p);for(var y=0;y<o.length;y++){var b=o[y];if(":"!=b||v){var x=$(b,U);v?e.password+=x:e.username+=x}else v=!0}p=""}else if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)){if(m&&""==p)return"Invalid authority";h-=f(p).length+1,p="",u=fe}else p+=s;break;case fe:case pe:if(i&&"file"==e.scheme){u=ye;continue}if(":"!=s||g){if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)){if(Z(e)&&""==p)return A;if(i&&""==p&&(K(e)||null!==e.port))return;if(l=R(e,p))return l;if(p="",u=be,i)return;continue}"["==s?g=!0:"]"==s&&(g=!1),p+=s}else{if(""==p)return A;if(l=R(e,p))return l;if(p="",u=me,i==pe)return}break;case me:if(!E.test(s)){if(s==n||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)||i){if(""!=p){var _=parseInt(p,10);if(_>65535)return T;e.port=Z(e)&&_===G[e.scheme]?null:_,p=""}if(i)return;u=be;continue}return T}p+=s;break;case ge:if(e.scheme="file","/"==s||"\\"==s)u=ve;else{if(!a||"file"!=a.scheme){u=xe;continue}if(s==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==s)e.host=a.host,e.path=a.path.slice(),e.query="",u=we;else{if("#"!=s){ee(r.slice(h).join(""))||(e.host=a.host,e.path=a.path.slice(),te(e)),u=xe;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=ke}}break;case ve:if("/"==s||"\\"==s){u=ye;break}a&&"file"==a.scheme&&!ee(r.slice(h).join(""))&&(Q(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),u=xe;continue;case ye:if(s==n||"/"==s||"\\"==s||"?"==s||"#"==s){if(!i&&Q(p))u=xe;else if(""==p){if(e.host="",i)return;u=be}else{if(l=R(e,p))return l;if("localhost"==e.host&&(e.host=""),i)return;p="",u=be}continue}p+=s;break;case be:if(Z(e)){if(u=xe,"/"!=s&&"\\"!=s)continue}else if(i||"?"!=s)if(i||"#"!=s){if(s!=n&&(u=xe,"/"!=s))continue}else e.fragment="",u=ke;else e.query="",u=we;break;case xe:if(s==n||"/"==s||"\\"==s&&Z(e)||!i&&("?"==s||"#"==s)){if(".."===(c=(c=p).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==s||"\\"==s&&Z(e)||e.path.push("")):ie(p)?"/"==s||"\\"==s&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Q(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(s==n||"?"==s||"#"==s))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==s?(e.query="",u=we):"#"==s&&(e.fragment="",u=ke)}else p+=$(s,X);break;case _e:"?"==s?(e.query="",u=we):"#"==s?(e.fragment="",u=ke):s!=n&&(e.path[0]+=$(s,V));break;case we:i||"#"!=s?s!=n&&("'"==s&&Z(e)?e.query+="%27":e.query+="#"==s?"%23":$(s,V)):(e.fragment="",u=ke);break;case ke:s!=n&&(e.fragment+=$(s,q))}h++}},Le=function(e){var t,i,n=u(this,Le,"URL"),a=arguments.length>1?arguments[1]:void 0,s=String(e),o=w(n,{type:"URL"});if(void 0!==a)if(a instanceof Le)t=k(a);else if(i=Me(t={},String(a)))throw TypeError(i);if(i=Me(o,s,null,t))throw TypeError(i);var l=o.searchParams=new x,c=_(l);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(l)||null},r||(n.href=Ae.call(n),n.origin=Te.call(n),n.protocol=Ce.call(n),n.username=De.call(n),n.password=Ee.call(n),n.host=Oe.call(n),n.hostname=Pe.call(n),n.port=Ye.call(n),n.pathname=Ie.call(n),n.search=je.call(n),n.searchParams=Ne.call(n),n.hash=He.call(n))},Se=Le.prototype,Ae=function(){var e=k(this),t=e.scheme,i=e.username,n=e.password,a=e.host,r=e.port,s=e.path,o=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",K(e)&&(c+=i+(n?":"+n:"")+"@"),c+=W(a),null!==r&&(c+=":"+r)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},Te=function(){var e=k(this),t=e.scheme,i=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Z(e)?t+"://"+W(e.host)+(null!==i?":"+i:""):"null"},Ce=function(){return k(this).scheme+":"},De=function(){return k(this).username},Ee=function(){return k(this).password},Oe=function(){var e=k(this),t=e.host,i=e.port;return null===t?"":null===i?W(t):W(t)+":"+i},Pe=function(){var e=k(this).host;return null===e?"":W(e)},Ye=function(){var e=k(this).port;return null===e?"":String(e)},Ie=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},je=function(){var e=k(this).query;return e?"?"+e:""},Ne=function(){return k(this).searchParams},He=function(){var e=k(this).fragment;return e?"#"+e:""},Fe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&l(Se,{href:Fe(Ae,(function(e){var t=k(this),i=String(e),n=Me(t,i);if(n)throw TypeError(n);_(t.searchParams).updateSearchParams(t.query)})),origin:Fe(Te),protocol:Fe(Ce,(function(e){var t=k(this);Me(t,String(e)+":",ne)})),username:Fe(De,(function(e){var t=k(this),i=f(String(e));if(!J(t)){t.username="";for(var n=0;n<i.length;n++)t.username+=$(i[n],U)}})),password:Fe(Ee,(function(e){var t=k(this),i=f(String(e));if(!J(t)){t.password="";for(var n=0;n<i.length;n++)t.password+=$(i[n],U)}})),host:Fe(Oe,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),fe)})),hostname:Fe(Pe,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),pe)})),port:Fe(Ye,(function(e){var t=k(this);J(t)||(""==(e=String(e))?t.port=null:Me(t,e,me))})),pathname:Fe(Ie,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Me(t,e+"",be))})),search:Fe(je,(function(e){var t=k(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Me(t,e,we)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:Fe(Ne),hash:Fe(He,(function(e){var t=k(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Me(t,e,ke)):t.fragment=null}))}),c(Se,"toJSON",(function(){return Ae.call(this)}),{enumerable:!0}),c(Se,"toString",(function(){return Ae.call(this)}),{enumerable:!0}),b){var Re=b.createObjectURL,ze=b.revokeObjectURL;Re&&c(Le,"createObjectURL",(function(e){return Re.apply(b,arguments)})),ze&&c(Le,"revokeObjectURL",(function(e){return ze.apply(b,arguments)}))}g(Le,"URL"),a({global:!0,forced:!s,sham:!r},{URL:Le})}},t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";i.r(n),i.d(n,{Dropzone:function(){return x},default:function(){return L}});i(2222),i(7327),i(2772),i(6992),i(1249),i(7042),i(561),i(8264),i(8309),i(489),i(1539),i(4916),i(9714),i(8783),i(4723),i(5306),i(3123),i(3210),i(2472),i(2990),i(8927),i(3105),i(5035),i(4345),i(7174),i(2846),i(4731),i(7209),i(6319),i(8867),i(7789),i(3739),i(9368),i(4483),i(2056),i(3462),i(678),i(7462),i(3824),i(5021),i(2974),i(5016),i(4747),i(3948),i(285);function e(e,i){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,i){if(!e)return;if("string"==typeof e)return t(e,i);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,i)}(e))||i&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw s}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,n,r;return i=t,n=[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};for(var i=this._callbacks[t],n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(i){var s,o=e(i,!0);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.apply(this,a)}}catch(e){o.e(e)}finally{o.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+t,{args:a})),this}},{key:"makeEvent",value:function(e,t){var i={bubbles:!0,cancelable:!0,detail:t};if("function"==typeof window.CustomEvent)return new CustomEvent(e,i);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,i.bubbles,i.cancelable,i.detail),n}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[e];if(!i)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var n=0;n<i.length;n++){var a=i[n];if(a===t){i.splice(n,1);break}}return this}}],n&&a(i.prototype,n),r&&a(i,r),t}();function s(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,r=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw r}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var l={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t,i=s(this.element.getElementsByTagName("div"),!0);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(/(^| )dz-message($| )/.test(n.className)){e=n,n.className="dz-message";break}}}catch(e){i.e(e)}finally{i.f()}e||(e=x.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var a=e.getElementsByTagName("span")[0];return a&&(null!=a.textContent?a.textContent=this.options.dictFallbackMessage:null!=a.innerText&&(a.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,i,n){var a={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==i?(t=a.srcWidth,i=a.srcHeight):null==t?t=i*r:null==i&&(i=t/r);var s=(t=Math.min(t,a.srcWidth))/(i=Math.min(i,a.srcHeight));if(a.srcWidth>t||a.srcHeight>i)if("crop"===n)r>s?(a.srcHeight=e.height,a.srcWidth=a.srcHeight*s):(a.srcWidth=e.width,a.srcHeight=a.srcWidth/s);else{if("contain"!==n)throw new Error("Unknown resizeMethod '".concat(n,"'"));r>s?i=t/r:t=i*r}return a.srcX=(e.width-a.srcWidth)/2,a.srcY=(e.height-a.srcHeight)/2,a.trgWidth=t,a.trgHeight=i,a},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){e.previewElement=x.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);var i,n=s(e.previewElement.querySelectorAll("[data-dz-name]"),!0);try{for(n.s();!(i=n.n()).done;){var a=i.value;a.textContent=e.name}}catch(e){n.e(e)}finally{n.f()}var r,o=s(e.previewElement.querySelectorAll("[data-dz-size]"),!0);try{for(o.s();!(r=o.n()).done;)(a=r.value).innerHTML=this.filesize(e.size)}catch(e){o.e(e)}finally{o.f()}this.options.addRemoveLinks&&(e._removeLink=x.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),e.previewElement.appendChild(e._removeLink));var l,c=function(i){return i.preventDefault(),i.stopPropagation(),e.status===x.UPLOADING?x.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?x.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},u=s(e.previewElement.querySelectorAll("[data-dz-remove]"),!0);try{for(u.s();!(l=u.n()).done;){l.value.addEventListener("click",c)}}catch(e){u.e(e)}finally{u.f()}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var i,n=s(e.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0);try{for(n.s();!(i=n.n()).done;){var a=i.value;a.alt=e.name,a.src=t}}catch(e){n.e(e)}finally{n.f()}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"string"!=typeof t&&t.error&&(t=t.error);var i,n=s(e.previewElement.querySelectorAll("[data-dz-errormessage]"),!0);try{for(n.s();!(i=n.n()).done;){i.value.textContent=t}}catch(e){n.e(e)}finally{n.f()}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,i){if(e.previewElement){var n,a=s(e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0);try{for(a.s();!(n=a.n()).done;){var r=n.value;"PROGRESS"===r.nodeName?r.value=t:r.style.width="".concat(t,"%")}}catch(e){a.e(e)}finally{a.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,o=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){o=!0,r=e},f:function(){try{s||null==i.return||i.return()}finally{if(o)throw r}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,i){return t&&f(e.prototype,t),i&&f(e,i),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=b(e);if(t){var a=b(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return v(this,i)}}function v(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(i,e);var t=g(i);function i(e,n){var a,r,s;if(h(this,i),(a=t.call(this)).element=e,a.version=i.version,a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(y(a)),a.element.dropzone=y(a);var o=null!=(s=i.optionsForElement(a.element))?s:{};if(a.options=i.extend({},l,o,null!=n?n:{}),a.options.previewTemplate=a.options.previewTemplate.replace(/\n*/g,""),a.options.forceFallback||!i.isBrowserSupported())return v(a,a.options.fallback.call(y(a)));if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(y(a),e.name,e)}),"string"==typeof a.options.method&&(a.options.method=a.options.method.toUpperCase()),(r=a.getExistingFallback())&&r.parentNode&&r.parentNode.removeChild(r),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return p(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function t(){e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.setAttribute("tabindex","-1"),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var i=e.hiddenFileInput.files;if(i.length){var n,a=u(i,!0);try{for(a.s();!(n=a.n()).done;){var r=n.value;e.addFile(r)}}catch(e){a.e(e)}finally{a.f()}}e.emit("addedfiles",i),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var t,n=u(this.events,!0);try{for(n.s();!(t=n.n()).done;){var a=t.value;this.on(a,this.options[a])}}catch(e){n.e(e)}finally{n.f()}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var r=function(e){if(function(e){if(e.dataTransfer.types)for(var t=0;t<e.dataTransfer.types.length;t++)if("Files"===e.dataTransfer.types[t])return!0;return!1}(e))return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var i;try{i=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||i.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e,t=0,i=0;if(this.getActiveFiles().length){var n,a=u(this.getActiveFiles(),!0);try{for(a.s();!(n=a.n()).done;){var r=n.value;t+=r.upload.bytesSent,i+=r.upload.total}}catch(e){a.e(e)}finally{a.f()}e=100*t/i}else e=100;return this.emit("totaluploadprogress",e,i,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var a=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(a):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:a}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t,i=u(e,!0);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(/(^| )fallback($| )/.test(n.className))return n}}catch(e){i.e(e)}finally{i.f()}},t=0,i=["div","form"];t<i.length;t++){var n,a=i[t];if(n=e(this.element.getElementsByTagName(a)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.addEventListener(i,n,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var i in e.events){var n=e.events[i];t.push(e.element.removeEventListener(i,n,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,i="b";if(e>0){for(var n=["tb","gb","mb","kb","b"],a=0;a<n.length;a++){var r=n[a];if(e>=Math.pow(this.options.filesizeBase,4-a)/10){t=e/Math.pow(this.options.filesizeBase,4-a),i=r;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(this.options.dictFileSizeUnits[i])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],i=0;i<e.dataTransfer.files.length;i++)t[i]=e.dataTransfer.files[i];if(t.length){var n=e.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)}this.emit("addedfiles",t)}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,i=function(e){return e.items},null!=t?i(t):void 0)){var t,i;this.emit("paste",e);var n=e.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(e){var t,i=u(e,!0);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.addFile(n)}}catch(e){i.e(e)}finally{i.f()}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){var i,n=[],a=u(e,!0);try{for(a.s();!(i=a.n()).done;){var r,s=i.value;null!=s.webkitGetAsEntry&&(r=s.webkitGetAsEntry())?r.isFile?n.push(t.addFile(s.getAsFile())):r.isDirectory?n.push(t._addFilesFromDirectory(r,r.name)):n.push(void 0):null!=s.getAsFile&&(null==s.kind||"file"===s.kind)?n.push(t.addFile(s.getAsFile())):n.push(void 0)}}catch(e){a.e(e)}finally{a.f()}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var i=this,n=e.createReader(),a=function(e){return t=console,i="log",n=function(t){return t.log(e)},null!=t&&"function"==typeof t[i]?n(t,i):void 0;var t,i,n};return function e(){return n.readEntries((function(n){if(n.length>0){var a,r=u(n,!0);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.isFile?s.file((function(e){if(!i.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(t,"/").concat(e.name),i.addFile(e)})):s.isDirectory&&i._addFilesFromDirectory(s,"".concat(t,"/").concat(s.name))}}catch(e){r.e(e)}finally{r.f()}e()}return null}),a)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;e.upload={uuid:i.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(i){i?(e.accepted=!1,t._errorProcessing([e],i)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){var t,i=u(e,!0);try{for(i.s();!(t=i.n()).done;){var n=t.value;this.enqueueFile(n)}}catch(e){i.e(e)}finally{i.f()}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(i){return e.emit("thumbnail",t,i),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=_(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t,n=u(this.files.slice(),!0);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.status!==i.UPLOADING||e)&&this.removeFile(a)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"resizeImage",value:function(e,t,n,a,r){var s=this;return this.createThumbnail(e,t,n,a,!0,(function(t,n){if(null==n)return r(e);var a=s.options.resizeMimeType;null==a&&(a=e.type);var o=n.toDataURL(a,s.options.resizeQuality);return"image/jpeg"!==a&&"image/jpg"!==a||(o=M.restore(e.dataURL,o)),r(i.dataURItoBlob(o))}))}},{key:"createThumbnail",value:function(e,t,i,n,a,r){var s=this,o=new FileReader;o.onload=function(){e.dataURL=o.result,"image/svg+xml"!==e.type?s.createThumbnailFromUrl(e,t,i,n,a,r):null!=r&&r(o.result)},o.readAsDataURL(e)}},{key:"displayExistingFile",value:function(e,t,i,n){var a=this,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",e),this.emit("complete",e),r){var s=function(t){a.emit("thumbnail",e,t),i&&i()};e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,s,n)}else this.emit("thumbnail",e,t),i&&i()}},{key:"createThumbnailFromUrl",value:function(e,t,i,n,a,r,s){var o=this,l=document.createElement("img");return s&&(l.crossOrigin=s),a="from-image"!=getComputedStyle(document.body).imageOrientation&&a,l.onload=function(){var s=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&a&&(s=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),s((function(a){e.width=l.width,e.height=l.height;var s=o.options.resize.call(o,e,t,i,n),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=s.trgWidth,c.height=s.trgHeight,a>4&&(c.width=s.trgHeight,c.height=s.trgWidth),a){case 2:u.translate(c.width,0),u.scale(-1,1);break;case 3:u.translate(c.width,c.height),u.rotate(Math.PI);break;case 4:u.translate(0,c.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-c.width);break;case 7:u.rotate(.5*Math.PI),u.translate(c.height,-c.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c.height,0)}k(u,l,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);var d=c.toDataURL("image/png");if(null!=r)return r(d,c)}))},null!=r&&(l.onerror=r),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,i=t;if(!(t>=e)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,e-t));for(;i<e;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t,n=u(e,!0);try{for(n.s();!(t=n.n()).done;){var a=t.value;a.processing=!0,a.status=i.UPLOADING,this.emit("processing",a)}}catch(e){n.e(e)}finally{n.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===i.UPLOADING){var t,n=this._getFilesWithXhr(e.xhr),a=u(n,!0);try{for(a.s();!(t=a.n()).done;){t.value.status=i.CANCELED}}catch(e){a.e(e)}finally{a.f()}void 0!==e.xhr&&e.xhr.abort();var r,s=u(n,!0);try{for(s.s();!(r=s.n()).done;){var o=r.value;this.emit("canceled",o)}}catch(e){s.e(e)}finally{s.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return e.apply(this,i)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(t.options.chunking){var a=n[0];e[0].upload.chunked=t.options.chunking&&(t.options.forceChunking||a.size>t.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(a.size/t.options.chunkSize)}if(e[0].upload.chunked){var r=e[0],s=n[0];r.upload.chunks=[];var o=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,o=Math.min(a+t.options.chunkSize,s.size),l={name:t._getParamName(0),data:s.webkitSlice?s.webkitSlice(a,o):s.slice(a,o),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(r.upload.finishedChunkUpload=function(n,a){var s=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var l=0;l<r.upload.totalChunkCount;l++){if(void 0===r.upload.chunks[l])return o();r.upload.chunks[l].status!==i.SUCCESS&&(s=!1)}s&&t.options.chunksUploaded(r,(function(){t._finished(e,a,null)}))},t.options.parallelChunkUploads)for(var l=0;l<r.upload.totalChunkCount;l++)o();else o()}else{for(var c=[],u=0;u<e.length;u++)c[u]={name:t._getParamName(u),data:n[u],filename:e[u].upload.filename};t._uploadData(e,c)}}))}},{key:"_getChunk",value:function(e,t){for(var i=0;i<e.upload.totalChunkCount;i++)if(void 0!==e.upload.chunks[i]&&e.upload.chunks[i].xhr===t)return e.upload.chunks[i]}},{key:"_uploadData",value:function(e,t){var n,a=this,r=new XMLHttpRequest,s=u(e,!0);try{for(s.s();!(n=s.n()).done;){n.value.xhr=r}}catch(e){s.e(e)}finally{s.f()}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var o=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);r.open(o,l,!0),this.resolveOption(this.options.timeout,e)&&(r.timeout=this.resolveOption(this.options.timeout,e)),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){a._finishedUploading(e,r,t)},r.ontimeout=function(){a._handleUploadError(e,r,"Request timedout after ".concat(a.options.timeout/1e3," seconds"))},r.onerror=function(){a._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return a._updateFilesUploadProgress(e,r,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var d in this.options.headers&&i.extend(c,this.options.headers),c){var h=c[d];h&&r.setRequestHeader(d,h)}var f=new FormData;if(this.options.params){var p=this.options.params;for(var m in"function"==typeof p&&(p=p.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),p){var g=p[m];if(Array.isArray(g))for(var v=0;v<g.length;v++)f.append(m,g[v]);else f.append(m,g)}}var y,b=u(e,!0);try{for(b.s();!(y=b.n()).done;){var x=y.value;this.emit("sending",x,r,f)}}catch(e){b.e(e)}finally{b.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,f),this._addFormElementData(f);for(var _=0;_<t.length;_++){var w=t[_];f.append(w.name,w.data,w.filename)}this.submitRequest(r,f,e)}},{key:"_transformFiles",value:function(e,t){for(var i=this,n=[],a=0,r=function(r){i.options.transformFile.call(i,e[r],(function(i){n[r]=i,++a===e.length&&t(n)}))},s=0;s<e.length;s++)r(s)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t,i=u(this.element.querySelectorAll("input, textarea, select, button"),!0);try{for(i.s();!(t=i.n()).done;){var n=t.value,a=n.getAttribute("name"),r=n.getAttribute("type");if(r&&(r=r.toLowerCase()),null!=a)if("SELECT"===n.tagName&&n.hasAttribute("multiple")){var s,o=u(n.options,!0);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.selected&&e.append(a,l.value)}}catch(e){o.e(e)}finally{o.f()}}else(!r||"checkbox"!==r&&"radio"!==r||n.checked)&&e.append(a,n.value)}}catch(e){i.e(e)}finally{i.f()}}}},{key:"_updateFilesUploadProgress",value:function(e,t,i){if(e[0].upload.chunked){var n=e[0],a=this._getChunk(n,t);i?(a.progress=100*i.loaded/i.total,a.total=i.total,a.bytesSent=i.loaded):(a.progress=100,a.bytesSent=a.total),n.upload.progress=0,n.upload.total=0,n.upload.bytesSent=0;for(var r=0;r<n.upload.totalChunkCount;r++)n.upload.chunks[r]&&void 0!==n.upload.chunks[r].progress&&(n.upload.progress+=n.upload.chunks[r].progress,n.upload.total+=n.upload.chunks[r].total,n.upload.bytesSent+=n.upload.chunks[r].bytesSent);n.upload.progress=n.upload.progress/n.upload.totalChunkCount,this.emit("uploadprogress",n,n.upload.progress,n.upload.bytesSent)}else{var s,o=u(e,!0);try{for(o.s();!(s=o.n()).done;){var l=s.value;l.upload.total&&l.upload.bytesSent&&l.upload.bytesSent==l.upload.total||(i?(l.upload.progress=100*i.loaded/i.total,l.upload.total=i.total,l.upload.bytesSent=i.loaded):(l.upload.progress=100,l.upload.bytesSent=l.upload.total),this.emit("uploadprogress",l,l.upload.progress,l.upload.bytesSent))}}catch(e){o.e(e)}finally{o.f()}}}},{key:"_finishedUploading",value:function(e,t,n){var a;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(a=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{a=JSON.parse(a)}catch(e){n=e,a="Invalid JSON response from server."}this._updateFilesUploadProgress(e,t),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t),a):this._finished(e,a,n):this._handleUploadError(e,t,a)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var a=this._getChunk(e[0],t);if(a.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[a.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,i){1==e.readyState?e.send(t):console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(e,t,n){var a,r=u(e,!0);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.status=i.SUCCESS,this.emit("success",s,t,n),this.emit("complete",s)}}catch(e){r.e(e)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){var a,r=u(e,!0);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.status=i.ERROR,this.emit("error",s,t,n),this.emit("complete",s)}}catch(e){r.e(e)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=r,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(var a=0,r=i;a<r.length;a++){var s=r[a];for(var o in s){var l=s[o];e[o]=l}}return e}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),i}(r);x.initClass(),x.version="5.9.3",x.options={},x.optionsForElement=function(e){return e.getAttribute("id")?x.options[w(e.getAttribute("id"))]:void 0},x.instances=[],x.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},x.autoDiscover=!0,x.discover=function(){var e;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){var i,n=[],a=u(t,!0);try{for(a.s();!(i=a.n()).done;){var r=i.value;/(^| )dropzone($| )/.test(r.className)?n.push(e.push(r)):n.push(void 0)}}catch(e){a.e(e)}finally{a.f()}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){var t,i=[],n=u(e,!0);try{for(n.s();!(t=n.n()).done;){var a=t.value;!1!==x.optionsForElement(a)?i.push(new x(a)):i.push(void 0)}}catch(e){n.e(e)}finally{n.f()}return i}()},x.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],x.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==x.blacklistedBrowsers&&(x.blockedBrowsers=x.blacklistedBrowsers);var t,i=u(x.blockedBrowsers,!0);try{for(i.s();!(t=i.n()).done;){t.value.test(navigator.userAgent)&&(e=!1)}}catch(e){i.e(e)}finally{i.f()}}else e=!1;else e=!1;return e},x.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),a=new Uint8Array(n),r=0,s=t.length,o=0<=s;o?r<=s:r>=s;o?r++:r--)a[r]=t.charCodeAt(r);return new Blob([n],{type:i})};var _=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},w=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};x.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},x.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},x.getElement=function(e,t){var i;if("string"==typeof e?i=document.querySelector(e):null!=e.nodeType&&(i=e),null==i)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return i},x.getElements=function(e,t){var i,n;if(e instanceof Array){n=[];try{var a,r=u(e,!0);try{for(r.s();!(a=r.n()).done;)i=a.value,n.push(this.getElement(i,t))}catch(e){r.e(e)}finally{r.f()}}catch(e){n=null}}else if("string"==typeof e){n=[];var s,o=u(document.querySelectorAll(e),!0);try{for(o.s();!(s=o.n()).done;)i=s.value,n.push(i)}catch(e){o.e(e)}finally{o.f()}}else null!=e.nodeType&&(n=[e]);if(null==n||!n.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return n},x.confirm=function(e,t,i){return window.confirm(e)?t():null!=i?i():void 0},x.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var i,n=e.type,a=n.replace(/\/.*$/,""),r=u(t,!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;if("."===(s=s.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(s.toLowerCase(),e.name.length-s.length))return!0}else if(/\/\*$/.test(s)){if(a===s.replace(/\/.*$/,""))return!0}else if(n===s)return!0}}catch(e){r.e(e)}finally{r.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new x(this,e)}))}),x.ADDED="added",x.QUEUED="queued",x.ACCEPTED=x.QUEUED,x.UPLOADING="uploading",x.PROCESSING=x.UPLOADING,x.CANCELED="canceled",x.ERROR="error",x.SUCCESS="success";var k=function(e,t,i,n,a,r,s,o,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=t;var n=i.getContext("2d");n.drawImage(e,0,0);for(var a=n.getImageData(1,0,1,t).data,r=0,s=t,o=t;o>r;)0===a[4*(o-1)+3]?s=o:r=o,o=s+r>>1;var l=o/t;return 0===l?1:l}(t);return e.drawImage(t,i,n,a,r,s,o,l,c/u)},M=function(){function e(){h(this,e)}return p(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",i=void 0,n=void 0,a="",r=void 0,s=void 0,o=void 0,l="",c=0;r=(i=e[c++])>>2,s=(3&i)<<4|(n=e[c++])>>4,o=(15&n)<<2|(a=e[c++])>>6,l=63&a,isNaN(n)?o=l=64:isNaN(a)&&(l=64),t=t+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(l),i=n=a="",r=s=o=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var i=this.decode64(e.replace("data:image/jpeg;base64,","")),n=this.slice2Segments(i),a=this.exifManipulation(t,n);return"data:image/jpeg;base64,".concat(this.encode64(a))}},{key:"exifManipulation",value:function(e,t){var i=this.getExifArray(t),n=this.insertExif(e,i);return new Uint8Array(n)}},{key:"getExifArray",value:function(e){for(var t=void 0,i=0;i<e.length;){if(255===(t=e[i])[0]&225===t[1])return t;i++}return[]}},{key:"insertExif",value:function(e,t){var i=e.replace("data:image/jpeg;base64,",""),n=this.decode64(i),a=n.indexOf(255,3),r=n.slice(0,a),s=n.slice(a),o=r;return o=(o=o.concat(t)).concat(s)}},{key:"slice2Segments",value:function(e){for(var t=0,i=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var n=t+(256*e[t+2]+e[t+3])+2,a=e.slice(t,n);i.push(a),t=n}if(t>e.length)break}return i}},{key:"decode64",value:function(e){var t=void 0,i=void 0,n="",a=void 0,r=void 0,s="",o=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(o++))<<2|(a=this.KEY_STR.indexOf(e.charAt(o++)))>>4,i=(15&a)<<4|(r=this.KEY_STR.indexOf(e.charAt(o++)))>>2,n=(3&r)<<6|(s=this.KEY_STR.indexOf(e.charAt(o++))),l.push(t),64!==r&&l.push(i),64!==s&&l.push(n),t=i=n="",a=r=s="",o<e.length;);return l}}]),e}();M.initClass();x._autoDiscoverFunction=function(){if(x.autoDiscover)return x.discover()},function(e,t){var i=!1,n=!0,a=e.document,r=a.documentElement,s=a.addEventListener?"addEventListener":"attachEvent",o=a.addEventListener?"removeEventListener":"detachEvent",l=a.addEventListener?"":"on",c=function n(r){if("readystatechange"!==r.type||"complete"===a.readyState)return("load"===r.type?e:a)[o](l+r.type,n,!1),!i&&(i=!0)?t.call(e,r.type||r):void 0};if("complete"!==a.readyState){if(a.createEventObject&&r.doScroll){try{n=!e.frameElement}catch(e){}n&&function e(){try{r.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}a[s](l+"DOMContentLoaded",c,!1),a[s](l+"readystatechange",c,!1),e[s](l+"load",c,!1)}}(window,x._autoDiscoverFunction),window.Dropzone=x;var L=x}(),n}()})),Dropzone.autoDiscover=!1,Dropzone.prototype.previewTemplate=' <div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n \n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n \n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Check</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n </g>\n </svg>\n </div>\n\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Error</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n </g>\n </g>\n </svg>\n </div>\n </div>',
|
||
/*!
|
||
* Quill Editor v1.3.7
|
||
* https://quilljs.com/
|
||
* Copyright (c) 2014, Jason Chen
|
||
* Copyright (c) 2013, salesforce.com
|
||
*/
|
||
function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Quill=t():e.Quill=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=109)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(17),a=i(18),r=i(19),s=i(45),o=i(46),l=i(47),c=i(48),u=i(49),d=i(12),h=i(32),f=i(33),p=i(31),m=i(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:a.default,Leaf:r.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:o.default,Text:u.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var i=this;return t="[Parchment] "+t,(i=e.call(this,t)||this).message=t,i.name=i.constructor.name,i}return a(t,e),t}(Error);t.ParchmentError=r;var s,o={},l={},c={},u={};function d(e,t){var i;if(void 0===t&&(t=s.ANY),"string"==typeof e)i=u[e]||o[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)i=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?i=u.block:e&s.LEVEL&s.INLINE&&(i=u.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var a in n)if(i=l[n[a]])break;i=i||c[e.tagName]}return null==i?null:t&s.LEVEL&i.scope&&t&s.TYPE&i.scope?i:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var i=d(e);if(null==i)throw new r("Unable to create "+e+" blot");var n=i,a=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(a,t)},t.find=function e(i,n){return void 0===n&&(n=!1),null==i?null:null!=i[t.DATA_KEY]?i[t.DATA_KEY].blot:n?e(i.parentNode,n):null},t.query=d,t.register=function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];if(t.length>1)return t.map((function(t){return e(t)}));var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"==typeof n.keyName)o[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var a=Array.isArray(n.tagName)?n.tagName:[n.tagName];a.forEach((function(e){null!=c[e]&&null!=n.className||(c[e]=n)}))}return n}},function(e,t,i){var n=i(51),a=i(11),r=i(3),s=i(20),o=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var i={};return 0===e.length?this:(i.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var i={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(i.attributes=t),this.push(i)},l.prototype.push=function(e){var t=this.ops.length,i=this.ops[t-1];if(e=r(!0,{},e),"object"==typeof i){if("number"==typeof e.delete&&"number"==typeof i.delete)return this.ops[t-1]={delete:i.delete+e.delete},this;if("number"==typeof i.delete&&null!=e.insert&&(t-=1,"object"!=typeof(i=this.ops[t-1])))return this.ops.unshift(e),this;if(a(e.attributes,i.attributes)){if("string"==typeof e.insert&&"string"==typeof i.insert)return this.ops[t-1]={insert:i.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof i.retain)return this.ops[t-1]={retain:i.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],i=[];return this.forEach((function(n){(e(n)?t:i).push(n)})),[t,i]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var i=[],n=s.iterator(this.ops),a=0;a<t&&n.hasNext();){var r;a<e?r=n.next(e-a):(r=n.next(t-a),i.push(r)),a+=s.length(r)}return new l(i)},l.prototype.compose=function(e){var t=s.iterator(this.ops),i=s.iterator(e.ops),n=[],r=i.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){for(var o=r.retain;"insert"===t.peekType()&&t.peekLength()<=o;)o-=t.peekLength(),n.push(t.next());r.retain-o>0&&i.next(r.retain-o)}for(var c=new l(n);t.hasNext()||i.hasNext();)if("insert"===i.peekType())c.push(i.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),i.peekLength()),d=t.next(u),h=i.next(u);if("number"==typeof h.retain){var f={};"number"==typeof d.retain?f.retain=u:f.insert=d.insert;var p=s.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(p&&(f.attributes=p),c.push(f),!i.hasNext()&&a(c.ops[c.ops.length-1],f)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&c.push(h)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var i=[this,e].map((function(t){return t.map((function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:o;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),r=new l,c=n(i[0],i[1],t),u=s.iterator(this.ops),d=s.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var i=0;switch(e[0]){case n.INSERT:i=Math.min(d.peekLength(),t),r.push(d.next(i));break;case n.DELETE:i=Math.min(t,u.peekLength()),u.next(i),r.delete(i);break;case n.EQUAL:i=Math.min(u.peekLength(),d.peekLength(),t);var o=u.next(i),l=d.next(i);a(o.insert,l.insert)?r.retain(i,s.attributes.diff(o.attributes,l.attributes)):r.push(l).delete(i)}t-=i}})),r.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var i=s.iterator(this.ops),n=new l,a=0;i.hasNext();){if("insert"!==i.peekType())return;var r=i.peek(),o=s.length(r)-i.peekLength(),c="string"==typeof r.insert?r.insert.indexOf(t,o)-o:-1;if(c<0)n.push(i.next());else if(c>0)n.push(i.next(c));else{if(!1===e(n,i.next(1).attributes||{},a))return;a+=1,n=new l}}n.length()>0&&e(n,{},a)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var i=s.iterator(this.ops),n=s.iterator(e.ops),a=new l;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())a.push(n.next());else{var r=Math.min(i.peekLength(),n.peekLength()),o=i.next(r),c=n.next(r);if(o.delete)continue;c.delete?a.push(c):a.retain(r,s.attributes.transform(o.attributes,c.attributes,t))}else a.retain(s.length(i.next()));return a.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var i=s.iterator(this.ops),n=0;i.hasNext()&&n<=e;){var a=i.peekLength(),r=i.peekType();i.next(),"delete"!==r?("insert"===r&&(n<e||!t)&&(e+=a),n+=a):e-=Math.min(a,e-n)}return e},e.exports=l},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,a=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},l=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(r)return r(e,t).value}return e[t]};e.exports=function e(){var t,i,n,a,r,u,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(null!=(t=arguments[h]))for(i in t)n=c(d,i),d!==(a=c(t,i))&&(p&&a&&(o(a)||(r=s(a)))?(r?(r=!1,u=n&&s(n)?n:[]):u=n&&o(n)?n:{},l(d,{name:i,newValue:e(p,u,a)})):void 0!==a&&l(d,{name:i,newValue:a}));return d}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=d(i(3)),s=d(i(2)),o=d(i(0)),l=d(i(16)),c=d(i(6)),u=d(i(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),n(t,[{key:"attach",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new o.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var i=o.default.query(e,o.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,t)}},{key:"formatAt",value:function(e,t,i,n){this.format(i,n)}},{key:"insertAt",value:function(e,i,n){if("string"==typeof i&&i.endsWith("\n")){var r=o.default.create(g.blotName);this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,i.slice(0,-1))}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n)}}]),t}(o.default.Embed);m.scope=o.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){h(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.cache={},i}return p(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(o.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new s.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,i){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),this.cache={}}},{key:"formatAt",value:function(e,i,n,r){i<=0||(o.default.query(n,o.default.Scope.BLOCK)?e+i===this.length()&&this.format(n,r):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(i,this.length()-e-1),n,r),this.cache={})}},{key:"insertAt",value:function(e,i,n){if(null!=n)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);if(0!==i.length){var r=i.split("\n"),s=r.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var o=this;r.reduce((function(e,t){return(o=o.split(e,!0)).insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,i){var n=this.children.head;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i),n instanceof l.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,i){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,i),this.cache={}}},{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var r=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,i);return this.cache={},r}}]),t}(o.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,r.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,o.default.Embed,u.default],t.bubbleFormats=v,t.BlockEmbed=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();i(50);var s=g(i(2)),o=g(i(14)),l=g(i(8)),c=g(i(9)),u=g(i(0)),d=i(15),h=g(d),f=g(i(3)),p=g(i(10)),m=g(i(34));function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill"),x=function(){function e(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=_(t,n),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var a=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var n=i.selection.lastRange,a=n&&0===n.length?n.index:void 0;w.call(i,(function(){return i.editor.update(null,t,a)}),e)}));var r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+a+"<p><br></p></div>");this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return r(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var a=e.attrName||e.blotName;"string"==typeof a?this.register("formats/"+a,e,t):Object.keys(e).forEach((function(n){i.register(n,e[n],t)}))}else null==this.imports[e]||n||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),r(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var i=e;(e=document.createElement("div")).classList.add(i)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,i){var n=this,r=k(e,t,i),s=a(r,4);return e=s[0],t=s[1],i=s[3],w.call(this,(function(){return n.editor.deleteText(e,t)}),i,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var n=i.getSelection(!0),a=new s.default;if(null==n)return a;if(u.default.query(e,u.default.Scope.BLOCK))a=i.editor.formatLine(n.index,n.length,v({},e,t));else{if(0===n.length)return i.selection.format(e,t),a;a=i.editor.formatText(n.index,n.length,v({},e,t))}return i.setSelection(n,l.default.sources.SILENT),a}),n)}},{key:"formatLine",value:function(e,t,i,n,r){var s,o=this,l=k(e,t,i,n,r),c=a(l,4);return e=c[0],t=c[1],s=c[2],r=c[3],w.call(this,(function(){return o.editor.formatLine(e,t,s)}),r,e,0)}},{key:"formatText",value:function(e,t,i,n,r){var s,o=this,l=k(e,t,i,n,r),c=a(l,4);return e=c[0],t=c[1],s=c[2],r=c[3],w.call(this,(function(){return o.editor.formatText(e,t,s)}),r,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=void 0;i="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,i=k(e,t),n=a(i,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,i=k(e,t),n=a(i,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,i,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return a.editor.insertEmbed(t,i,n)}),r,t)}},{key:"insertText",value:function(e,t,i,n,r){var s,o=this,l=k(e,0,i,n,r),c=a(l,4);return e=c[0],s=c[2],r=c[3],w.call(this,(function(){return o.editor.insertText(e,t,s)}),r,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,i){this.clipboard.dangerouslyPasteHTML(e,t,i)}},{key:"removeFormat",value:function(e,t,i){var n=this,r=k(e,t,i),s=a(r,4);return e=s[0],t=s[1],i=s[3],w.call(this,(function(){return n.editor.removeFormat(e,t)}),i,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new s.default(e);var i=t.getLength(),n=t.editor.deleteText(0,i),a=t.editor.applyDelta(e),r=a.ops[a.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),a.delete(1)),n.compose(a)}),i)}},{key:"setSelection",value:function(t,i,n){if(null==t)this.selection.setRange(null,i||e.sources.API);else{var r=k(t,i,n),s=a(r,4);t=s[0],i=s[1],n=s[3],this.selection.setRange(new d.Range(t,i),n),n!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,i=(new s.default).insert(e);return this.setContents(i,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,i)}),i,!0)}}]),e}();function _(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==x.DEFAULTS.theme){if(t.theme=x.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var i=(0,f.default)(!0,{},t.theme.DEFAULTS);[i,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(i.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var i=x.import("modules/"+t);return null==i?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=i.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},x.DEFAULTS,{modules:n},i,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,i){return t.modules[i]&&(e[i]=t.modules[i]),e}),{}),t}function w(e,t,i,n){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var a=null==i?null:this.getSelection(),r=this.editor.delta,o=e();if(null!=a&&(!0===i&&(i=a.index),null==n?a=M(a,o,t):0!==n&&(a=M(a,i,n,t)),this.setSelection(a,l.default.sources.SILENT)),o.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,o,r,t];if((c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}return o}function k(e,t,i,a,r){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(r=a,a=i,i=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(r=a,a=i,i=t,t=0),"object"===(void 0===i?"undefined":n(i))?(s=i,r=a):"string"==typeof i&&(null!=a?s[i]=a:r=i),[e,t,s,r=r||l.default.sources.API]}function M(e,t,i,n){if(null==e)return null;var r=void 0,o=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,n!==l.default.sources.USER)})),u=a(c,2);r=u[0],o=u[1]}else{var h=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&n===l.default.sources.USER?e:i>=0?e+i:Math.max(t,e+i)})),f=a(h,2);r=f[0],o=f[1]}return new d.Range(r,o-r)}x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=l.default.events,x.sources=l.default.sources,x.version="1.3.7",x.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=k,t.default=x},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=o(i(7)),s=o(i(0));function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"formatAt",value:function(e,i,n,r){if(t.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var o=this.isolate(e,i);r&&o.wrap(n,r)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,r)}},{key:"optimize",value:function(e){if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(e,i){var n=t.order.indexOf(e),a=t.order.indexOf(i);return n>=0||a>=0?n-a:e===i?0:e<i?-1:1}}]),t}(s.default.Inline);u.allowedChildren=[u,s.default.Embed,r.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(0);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){return r(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=a)&&n.__esModule?n:{default:n}).default.Text);t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=s(i(54));function s(e){return e&&e.__esModule?e:{default:e}}var o=(0,s(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var i;e.__quill&&e.__quill.emitter&&(i=e.__quill.emitter).handleDOM.apply(i,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",o.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"emit",value:function(){o.log.apply(o,arguments),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach((function(t){var n=t.node,a=t.handler;(e.target===n||n.contains(e.target))&&a.apply(void 0,[e].concat(i))}))}},{key:"listenDOM",value:function(e,t,i){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:i})}}]),t}(r.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.quill=t,this.options=i};a.DEFAULTS={},t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],a="warn";function r(e){if(n.indexOf(e)<=n.indexOf(a)){for(var t,i=arguments.length,r=Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];(t=console)[e].apply(t,r)}}function s(e){return n.reduce((function(t,i){return t[i]=r.bind(console,i,e),t}),{})}r.level=s.level=function(e){a=e},t.default=s},function(e,t,i){var n=Array.prototype.slice,a=i(52),r=i(53),s=e.exports=function(e,t,i){return i||(i={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?i.strict?e===t:e==t:function(e,t,i){var c,u;if(o(e)||o(t))return!1;if(e.prototype!==t.prototype)return!1;if(r(e))return!!r(t)&&(e=n.call(e),t=n.call(t),s(e,t,i));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=a(e),h=a(t)}catch(e){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),c=d.length-1;c>=0;c--)if(d[c]!=h[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(e[u],t[u],i))return!1;return typeof e==typeof t}(e,t,i))};function o(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=function(){function e(e,t,i){void 0===i&&(i={}),this.attrName=e,this.keyName=t;var a=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|a:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=d(i(2)),o=d(i(0)),l=d(i(4)),c=d(i(6)),u=d(i(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),a(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,i){return t.insert(i).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i){var a=this.descendant(u.default,this.length()-1),s=n(a,1)[0];null!=s&&s.deleteAt(s.length()-1,1),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}},{key:"formatAt",value:function(e,i,n,a){if(0!==i&&null!=o.default.query(n,o.default.Scope.BLOCK)&&(n!==this.statics.blotName||a!==this.statics.formats(this.domNode))){var r=this.newlineIndex(e);if(!(r<0||r>=e+i)){var s=this.newlineIndex(e,!0)+1,l=r-s+1,c=this.isolate(s,l),u=c.next;c.format(n,a),u instanceof t&&u.formatAt(0,e-s+i-l,n,a)}}}},{key:"insertAt",value:function(e,t,i){if(null==i){var a=this.descendant(u.default,e),r=n(a,2),s=r[0],o=r[1];s.insertAt(o,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var i=this.domNode.textContent.slice(e).indexOf("\n");return i>-1?e+i:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(e),i.moveChildren(this),i.remove())}},{key:"replace",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=o.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof o.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=v(i(2)),o=v(i(20)),l=v(i(0)),c=v(i(13)),u=v(i(24)),d=i(4),h=v(d),f=v(i(16)),p=v(i(21)),m=v(i(11)),g=v(i(3));function v(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return r(e,[{key:"applyDelta",value:function(e){var t=this,i=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var i=(0,p.default)(t.attributes);return delete i.image,e.insert({image:t.attributes.image},i)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new s.default)}(e)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var f=s.insert;f.endsWith("\n")&&i&&(i=!1,f=f.slice(0,-1)),e>=r&&!f.endsWith("\n")&&(i=!0),t.scroll.insertAt(e,f);var p=t.scroll.line(e),m=a(p,2),v=m[0],y=m[1],b=(0,g.default)({},(0,d.bubbleFormats)(v));if(v instanceof h.default){var x=v.descendant(l.default.Leaf,y),_=a(x,1)[0];b=(0,g.default)(b,(0,d.bubbleFormats)(_))}u=o.default.attributes.diff(b,u)||{}}else if("object"===n(s.insert)){var w=Object.keys(s.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,s.insert[w])}r+=c}return Object.keys(u).forEach((function(i){t.scroll.formatAt(e,c,i,u[i])})),e+c}),0),e.reduce((function(e,i){return"number"==typeof i.delete?(t.scroll.deleteAt(e,i.delete),e):e+(i.retain||i.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(a){if(null==i.scroll.whitelist||i.scroll.whitelist[a]){var r=i.scroll.lines(e,Math.max(t,1)),s=t;r.forEach((function(t){var r=t.length();if(t instanceof c.default){var o=e-t.offset(i.scroll),l=t.newlineIndex(o+s)-o+1;t.formatAt(o,l,a,n[a])}else t.format(a,n[a]);s-=r}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,p.default)(n)))}},{key:"formatText",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(a){i.scroll.formatAt(e,t,a,n[a])})),this.update((new s.default).retain(e).retain(t,(0,p.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[];0===t?this.scroll.path(e).forEach((function(e){var t=a(e,1)[0];t instanceof h.default?i.push(t):t instanceof l.default.Leaf&&n.push(t)})):(i=this.scroll.lines(e,t),n=this.scroll.descendants(l.default.Leaf,e,t));var r=[i,n].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var i=e.shift();if(null==i)return t;t=x((0,d.bubbleFormats)(i),t)}return t}));return g.default.apply(g.default,r)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,i){return this.scroll.insertAt(e,t,i),this.update((new s.default).retain(e).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},t,i)))}},{key:"insertText",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach((function(a){i.scroll.formatAt(e,t.length,a,n[a])})),this.update((new s.default).retain(e).insert(t,(0,p.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof f.default)}},{key:"removeFormat",value:function(e,t){var i=this.getText(e,t),n=this.scroll.line(e+t),r=a(n,2),o=r[0],l=r[1],u=0,d=new s.default;null!=o&&(u=o instanceof c.default?o.newlineIndex(l)-l+1:o.length()-l,d=o.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(e,t+u).diff((new s.default).insert(i).concat(d)),f=(new s.default).retain(e).concat(h);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var a=l.default.find(t[0].target),r=(0,d.bubbleFormats)(a),o=a.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),h=(new s.default).insert(c),f=(new s.default).insert(a.value()),p=(new s.default).retain(o).concat(h.diff(f,i));e=p.reduce((function(e,t){return t.insert?e.insert(t.insert,r):e.push(t)}),new s.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,i));return e}}]),e}();function x(e,t){return Object.keys(t).reduce((function(i,n){return null==e[n]||(t[n]===e[n]?i[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(i[n]=t[n].concat([e[n]])):i[n]=[t[n],e[n]]),i}),{})}t.default=b},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=c(i(0)),s=c(i(21)),o=c(i(11)),l=c(i(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=(0,c(i(10)).default)("quill:selection"),f=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=i},p=function(){function e(t,i){var n=this;d(this,e),this.emitter=i,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var i=t.range,a=i.startNode,r=i.startOffset,s=i.endNode,o=i.endOffset;n.setNativeRange(a,r,s,o)}})),this.update(l.default.sources.SILENT)}return a(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n=r.default.find(i.start.node,!1);if(null==n)return;if(n instanceof r.default.Leaf){var a=n.split(i.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.scroll.length();e=Math.min(e,i-1),t=Math.min(e+t,i-1)-e;var a=void 0,r=this.scroll.leaf(e),s=n(r,2),o=s[0],l=s[1];if(null==o)return null;var c=o.position(l,!0),u=n(c,2);a=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(a,l);var h=this.scroll.leaf(e+t),f=n(h,2);if(o=f[0],l=f[1],null==o)return null;var p=o.position(l,!0),m=n(p,2);return a=m[0],l=m[1],d.setEnd(a,l),d.getBoundingClientRect()}var g="left",v=void 0;return a instanceof Text?(l<a.data.length?(d.setStart(a,l),d.setEnd(a,l+1)):(d.setStart(a,l-1),d.setEnd(a,l),g="right"),v=d.getBoundingClientRect()):(v=o.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var i=this.normalizeNative(t);return h.info("getNativeRange",i),i}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,i=[[e.start.node,e.start.offset]];e.native.collapsed||i.push([e.end.node,e.end.offset]);var a=i.map((function(e){var i=n(e,2),a=i[0],s=i[1],o=r.default.find(a,!0),l=o.offset(t.scroll);return 0===s?l:o instanceof r.default.Container?l+o.length():l+o.index(a,s)})),s=Math.min(Math.max.apply(Math,u(a)),this.scroll.length()-1),o=Math.min.apply(Math,[s].concat(u(a)));return new f(o,s-o)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,i=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>i)t=t.childNodes[i],i=0;else{if(t.childNodes.length!==i)break;i=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=i})),t}},{key:"rangeToNative",value:function(e){var t=this,i=e.collapsed?[e.index]:[e.index,e.index+e.length],a=[],r=this.scroll.length();return i.forEach((function(e,i){e=Math.min(r-1,e);var s,o=t.scroll.leaf(e),l=n(o,2),c=l[0],u=l[1],d=c.position(u,0!==i),h=n(d,2);s=h[0],u=h[1],a.push(s,u)})),a.length<2&&(a=a.concat(a)),a}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var i=this.getBounds(t.index,t.length);if(null!=i){var a=this.scroll.length()-1,r=this.scroll.line(Math.min(t.index,a)),s=n(r,1)[0],o=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,a));o=n(l,1)[0]}if(null!=s&&null!=o){var c=e.getBoundingClientRect();i.top<c.top?e.scrollTop-=c.top-i.top:i.bottom>c.bottom&&(e.scrollTop+=i.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",e,t,i,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=i.parentNode){var r=document.getSelection();if(null!=r)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||a||e!==s.startContainer||t!==s.startOffset||i!==s.endContainer||n!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==i.tagName&&(n=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var o=document.createRange();o.setStart(e,t),o.setEnd(i,n),r.removeAllRanges(),r.addRange(o)}}else r.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(i=t,t=!1),h.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,u(n).concat([t]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,i=this.getRange(),a=n(i,2),r=a[0],c=a[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,o.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];if((u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(h)),e!==l.default.sources.SILENT)(d=this.emitter).emit.apply(d,h)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"insertInto",value:function(e,i){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default.Embed);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(44),s=i(30),o=i(1),l=function(e){function t(t){var i=e.call(this,t)||this;return i.build(),i}return a(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var i=c(t);e.insertBefore(i,e.children.head||void 0)}catch(e){if(e instanceof o.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,i){e.deleteAt(t,i)}))},t.prototype.descendant=function(e,i){var n=this.children.find(i),a=n[0],r=n[1];return null==e.blotName&&e(a)||null!=e.blotName&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,i,n){void 0===i&&(i=0),void 0===n&&(n=Number.MAX_VALUE);var a=[],r=n;return this.children.forEachAt(i,n,(function(i,n,s){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,n,r))),r-=s})),a},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,i,n){this.children.forEachAt(e,t,(function(e,t,a){e.formatAt(t,a,i,n)}))},t.prototype.insertAt=function(e,t,i){var n=this.children.find(e),a=n[0],r=n[1];if(a)a.insertAt(r,t,i);else{var s=null==i?o.create("text",t):o.create(t,i);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new o.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(i){e.insertBefore(i,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var i=o.create(this.statics.defaultChild);this.appendChild(i),i.optimize(t)}else this.remove()},t.prototype.path=function(e,i){void 0===i&&(i=!1);var n=this.children.find(e,i),a=n[0],r=n[1],s=[[this,e]];return a instanceof t?s.concat(a.path(r,i)):(null!=a&&s.push([a,r]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(i){i instanceof t&&i.moveChildren(this),e.prototype.replace.call(this,i)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(e,this.length(),(function(e,n,a){e=e.split(n,t),i.appendChild(e)})),i},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var i=this,n=[],a=[];e.forEach((function(e){e.target===i.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),a.push.apply(a,e.removedNodes))})),a.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=o.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==i.domNode||t.detach())}})),n.filter((function(e){return e.parentNode==i.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=o.find(e.nextSibling));var n=c(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(i),i.insertBefore(n,t||void 0))}))},t}(s.default);function c(e){var t=o.find(e);if(null==t)try{t=o.create(e)}catch(i){t=o.create(o.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(12),s=i(31),o=i(17),l=i(1),c=function(e){function t(t){var i=e.call(this,t)||this;return i.attributes=new s.default(i.domNode),i}return a(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var i=l.query(e);i instanceof r.default?this.attributes.attribute(i,t):t&&(null==i||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,i){var n=e.prototype.replaceWith.call(this,t,i);return this.attributes.copy(n),n},t.prototype.update=function(t,i){var n=this;e.prototype.update.call(this,t,i),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(i,n){var a=e.prototype.wrap.call(this,i,n);return a instanceof t&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},t}(o.default);t.default=c},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(30),s=i(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(i+=1),[this.parent.domNode,i]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=s.Scope.INLINE_BLOT,t}(r.default);t.default=o},function(e,t,i){var n=i(11),a=i(3),r={attributes:{compose:function(e,t,i){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=a(!0,{},t);for(var r in i||(n=Object.keys(n).reduce((function(e,t){return null!=n[t]&&(e[t]=n[t]),e}),{})),e)void 0!==e[r]&&void 0===t[r]&&(n[r]=e[r]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=Object.keys(e).concat(Object.keys(t)).reduce((function(i,a){return n(e[a],t[a])||(i[a]=void 0===t[a]?null:t[a]),i}),{});return Object.keys(i).length>0?i:void 0},transform:function(e,t,i){if("object"!=typeof e)return t;if("object"==typeof t){if(!i)return t;var n=Object.keys(t).reduce((function(i,n){return void 0===e[n]&&(i[n]=t[n]),i}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var i=this.offset,n=r.length(t);if(e>=n-i?(e=n-i,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var a={};return t.attributes&&(a.attributes=t.attributes),"number"==typeof t.retain?a.retain=e:"string"==typeof t.insert?a.insert=t.insert.substr(i,e):a.insert=t.insert,a}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,i=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[i].concat(n)}return[]},e.exports=r},function(e,t){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,i,n;try{t=Map}catch(e){t=function(){}}try{i=Set}catch(e){i=function(){}}try{n=Promise}catch(e){n=function(){}}function a(r,o,l,c,u){"object"==typeof o&&(l=o.depth,c=o.prototype,u=o.includeNonEnumerable,o=o.circular);var d=[],h=[],f="undefined"!=typeof Buffer;return void 0===o&&(o=!0),void 0===l&&(l=1/0),function r(l,p){if(null===l)return null;if(0===p)return l;var m,g;if("object"!=typeof l)return l;if(e(l,t))m=new t;else if(e(l,i))m=new i;else if(e(l,n))m=new n((function(e,t){l.then((function(t){e(r(t,p-1))}),(function(e){t(r(e,p-1))}))}));else if(a.__isArray(l))m=[];else if(a.__isRegExp(l))m=new RegExp(l.source,s(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(a.__isDate(l))m=new Date(l.getTime());else{if(f&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;e(l,Error)?m=Object.create(l):void 0===c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(o){var v=d.indexOf(l);if(-1!=v)return h[v];d.push(l),h.push(m)}for(var y in e(l,t)&&l.forEach((function(e,t){var i=r(t,p-1),n=r(e,p-1);m.set(i,n)})),e(l,i)&&l.forEach((function(e){var t=r(e,p-1);m.add(t)})),l){var b;g&&(b=Object.getOwnPropertyDescriptor(g,y)),b&&null==b.set||(m[y]=r(l[y],p-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(l);for(y=0;y<x.length;y++){var _=x[y];(!(k=Object.getOwnPropertyDescriptor(l,_))||k.enumerable||u)&&(m[_]=r(l[_],p-1),k.enumerable||Object.defineProperty(m,_,{enumerable:!1}))}}if(u){var w=Object.getOwnPropertyNames(l);for(y=0;y<w.length;y++){var k,M=w[y];(k=Object.getOwnPropertyDescriptor(l,M))&&k.enumerable||(m[M]=r(l[M],p-1),Object.defineProperty(m,M,{enumerable:!1}))}}return m}(r,l)}function r(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},a.__objToStr=r,a.__isDate=function(e){return"object"==typeof e&&"[object Date]"===r(e)},a.__isArray=function(e){return"object"==typeof e&&"[object Array]"===r(e)},a.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===r(e)},a.__getRegExpFlags=s,a}();"object"==typeof e&&e.exports&&(e.exports=i)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=f(i(0)),o=f(i(8)),l=i(4),c=f(l),u=f(i(16)),d=f(i(13)),h=f(i(25));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.emitter=i.emitter,Array.isArray(i.whitelist)&&(n.whitelist=i.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,i){var a=this.line(e),s=n(a,2),o=s[0],c=s[1],h=this.line(e+i),f=n(h,1)[0];if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,i),null!=f&&o!==f&&c>0){if(o instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(o instanceof d.default){var p=o.newlineIndex(o.length(),!0);if(p>-1&&(o=o.split(p+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof u.default?null:f.children.head;o.moveChildren(f,g),o.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,i,n,a){(null==this.whitelist||this.whitelist[n])&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,i,n,a),this.optimize())}},{key:"insertAt",value:function(e,i,n){if(null==n||null==this.whitelist||this.whitelist[i]){if(e>=this.length())if(null==n||null==s.default.query(i,s.default.Scope.BLOCK)){var a=s.default.create(this.statics.defaultChild);this.appendChild(a),null==n&&i.endsWith("\n")&&(i=i.slice(0,-1)),a.insertAt(0,i,n)}else{var o=s.default.create(i,n);this.appendChild(o)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,i,n);this.optimize()}}},{key:"insertBefore",value:function(e,i){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var n=s.default.create(this.statics.defaultChild);n.appendChild(e),e=n}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=function e(t,i,n){var a=[],r=n;return t.children.forEachAt(i,n,(function(t,i,n){p(t)?a.push(t):t instanceof s.default.Container&&(a=a.concat(e(t,i,r))),r-=n})),a};return i(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,i),e.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,e,i))}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var i=o.default.sources.USER;"string"==typeof e&&(i=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,i,e),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,i,e)}}}]),t}(s.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,h.default],t.default=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=m(i(21)),o=m(i(11)),l=m(i(3)),c=m(i(2)),u=m(i(20)),d=m(i(0)),h=m(i(5)),f=m(i(10)),p=m(i(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var v=(0,f.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:t.keys.ENTER,shiftKey:null},M),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},_),n.addBinding({key:t.keys.DELETE},{collapsed:!0},w)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),n.addBinding({key:t.keys.DELETE},{collapsed:!1},k),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),n.listen(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"match",value:function(e,t){return t=A(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(i){return!!t[i]!==e[i]&&null!==t[i]}))&&t.key===(e.which||e.keyCode)}}]),r(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=A(e);if(null==n||null==n.key)return v.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof i&&(i={handler:i}),n=(0,l.default)(n,t,i),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(i){if(!i.defaultPrevented){var r=i.which||i.keyCode,s=(e.bindings[r]||[]).filter((function(e){return t.match(i,e)}));if(0!==s.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=a(c,2),h=u[0],f=u[1],p=e.quill.getLeaf(l.index),m=a(p,2),g=m[0],v=m[1],y=0===l.length?[g,v]:e.quill.getLeaf(l.index+l.length),b=a(y,2),x=b[0],_=b[1],w=g instanceof d.default.Text?g.value().slice(0,v):"",k=x instanceof d.default.Text?x.value().slice(_):"",M={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:e.quill.getFormat(l),offset:f,prefix:w,suffix:k};s.some((function(t){if(null!=t.collapsed&&t.collapsed!==M.collapsed)return!1;if(null!=t.empty&&t.empty!==M.empty)return!1;if(null!=t.offset&&t.offset!==M.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==M.format[e]})))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=M.format[e]:!1===t.format[e]?null==M.format[e]:(0,o.default)(t.format[e],M.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(M.prefix))&&(!(null!=t.suffix&&!t.suffix.test(M.suffix))&&!0!==t.handler.call(e,l,M))}))&&i.preventDefault()}}}}))}}]),t}(p.default);function x(e,t){var i,n=e===b.keys.LEFT?"prefix":"suffix";return g(i={key:e,shiftKey:t,altKey:null},n,/^$/),g(i,"handler",(function(i){var n=i.index;e===b.keys.RIGHT&&(n+=i.length+1);var r=this.quill.getLeaf(n);return!(a(r,1)[0]instanceof d.default.Embed)||(e===b.keys.LEFT?t?this.quill.setSelection(i.index-1,i.length+1,h.default.sources.USER):this.quill.setSelection(i.index-1,h.default.sources.USER):t?this.quill.setSelection(i.index,i.length+1,h.default.sources.USER):this.quill.setSelection(i.index+i.length+1,h.default.sources.USER),!1)})),i}function _(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var i=this.quill.getLine(e.index),n=a(i,1)[0],r={};if(0===t.offset){var s=this.quill.getLine(e.index-1),o=a(s,1)[0];if(null!=o&&o.length()>1){var l=n.formats(),c=this.quill.getFormat(e.index-1,1);r=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index-d,d,r,h.default.sources.USER),this.quill.focus()}}function w(e,t){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-i)){var n={},r=0,s=this.quill.getLine(e.index),o=a(s,1)[0];if(t.offset>=o.length()-1){var l=this.quill.getLine(e.index+1),c=a(l,1)[0];if(c){var d=o.formats(),f=this.quill.getFormat(e.index,1);n=u.default.attributes.diff(d,f)||{},r=c.length()}}this.quill.deleteText(e.index,i,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+r-1,i,n,h.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),i={};if(t.length>1){var n=t[0].formats(),a=t[t.length-1].formats();i=u.default.attributes.diff(a,n)||{}}this.quill.deleteText(e,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index,1,i,h.default.sources.USER),this.quill.setSelection(e.index,h.default.sources.SILENT),this.quill.focus()}function M(e,t){var i=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce((function(e,i){return d.default.query(i,d.default.Scope.BLOCK)&&!Array.isArray(t.format[i])&&(e[i]=t.format[i]),e}),{});this.quill.insertText(e.index,"\n",n,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&i.quill.format(e,t.format[e],h.default.sources.USER))}))}function L(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var i=d.default.query("code-block"),n=t.index,r=t.length,s=this.quill.scroll.descendant(i,n),o=a(s,2),l=o[0],c=o[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,p=l.newlineIndex(u+c+r),m=l.domNode.textContent.slice(f,p).split("\n");c=0,m.forEach((function(t,a){e?(l.insertAt(f+c,i.TAB),c+=i.TAB.length,0===a?n+=i.TAB.length:r+=i.TAB.length):t.startsWith(i.TAB)&&(l.deleteAt(f+c,i.TAB.length),c-=i.TAB.length,0===a?n-=i.TAB.length:r-=i.TAB.length),c+=t.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(n,r,h.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,i){this.quill.format(e,!i.format[e],h.default.sources.USER)}}}function A(e){if("string"==typeof e||"number"==typeof e)return A({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,h.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),i=a(t,2),n=i[0],r=i[1],s=(0,l.default)({},n.formats(),{list:"checked"}),o=(new c.default).retain(e.index).insert("\n",s).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var i=this.quill.getLine(e.index),n=a(i,2),r=n[0],s=n[1],o=(new c.default).retain(e.index).insert("\n",t.format).retain(r.length()-s-1).retain(1,{header:null});this.quill.updateContents(o,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var i=t.prefix.length,n=this.quill.getLine(e.index),r=a(n,2),s=r[0],o=r[1];if(o>i)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",h.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-o).delete(i+1).retain(s.length()-2-o).retain(1,{list:l});this.quill.updateContents(u,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-i,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),i=a(t,2),n=i[0],r=i[1],s=(new c.default).retain(e.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,h.default.sources.USER)}},"embed left":x(b.keys.LEFT,!1),"embed left shift":x(b.keys.LEFT,!0),"embed right":x(b.keys.RIGHT,!1),"embed right shift":x(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=l(i(0)),o=l(i(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.selection=i,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"value",value:function(){}}]),r(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,i){if(0!==this._length)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);for(var n=this,r=0;null!=n&&n.statics.scope!==s.default.Scope.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=t.CONTENTS.length,n.optimize(),n.formatAt(r,t.CONTENTS.length,e,i),this._length=0)}},{key:"index",value:function(e,i){return e===this.textNode?0:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,i=this.selection.getNativeRange(),a=void 0,r=void 0,l=void 0;if(null!=i&&i.start.node===e&&i.end.node===e){var c=[e,i.start.offset,i.end.offset];a=c[0],r=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof o.default?(a=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var d=[r,l].map((function(e){return Math.max(0,Math.min(a.data.length,e-1))})),h=n(d,2);return r=h[0],l=h[1],{startNode:a,startOffset:r,endNode:a,endOffset:l}}}}},{key:"update",value:function(e,t){var i=this;if(e.some((function(e){return"characterData"===e.type&&e.target===i.textNode}))){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(i(0)),a=i(4),r=s(a);function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Container);c.allowedChildren=[r.default,a.BlockEmbed,c],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),o=(n=s)&&n.__esModule?n:{default:n};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"value",value:function(e){var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+i.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):i}}]),t}(o.default.Attributor.Style),d=new o.default.Attributor.Class("color","ql-color",{scope:o.default.Scope.INLINE}),h=new u("color","color",{scope:o.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=d,t.ColorStyle=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"format",value:function(e,i){if(e!==this.statics.blotName||!i)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i);i=this.constructor.sanitize(i),this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(e){var i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),i.setAttribute("href",e),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return u(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);function u(e,t){var i=document.createElement("a");i.href=e;var n=i.href.slice(0,i.href.indexOf(":"));return t.indexOf(n)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=o(i(23)),s=o(i(107));function o(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){i.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:i.togglePicker();break;case r.default.keys.ESCAPE:i.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return a(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),e.hasAttribute("value")&&i.setAttribute("data-value",e.getAttribute("value")),e.textContent&&i.setAttribute("data-label",e.textContent),i.addEventListener("click",(function(){t.selectItem(i,!0)})),i.addEventListener("keydown",(function(e){switch(e.keyCode){case r.default.keys.ENTER:t.selectItem(i,!0),e.preventDefault();break;case r.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),i}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(i){var n=e.buildItem(i);t.appendChild(n),!0===i.selected&&e.selectItem(n)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");if(e!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var a=document.createEvent("Event");a.initEvent("change",!0,!0),this.select.dispatchEvent(a)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var i=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),e}();t.default=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(i(0)),a=v(i(5)),r=i(4),s=v(r),o=v(i(16)),l=v(i(25)),c=v(i(24)),u=v(i(35)),d=v(i(6)),h=v(i(22)),f=v(i(7)),p=v(i(55)),m=v(i(42)),g=v(i(23));function v(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":s.default,"blots/block/embed":r.BlockEmbed,"blots/break":o.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),n.default.register(s.default,o.default,c.default,d.default,h.default,f.default),t.default=a.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),a=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,i,a){var r=this.isolate(e,t);if(null!=n.query(i,n.Scope.BLOT)&&a)r.wrap(i,a);else if(null!=n.query(i,n.Scope.ATTRIBUTE)){var s=n.create(this.statics.scope);r.wrap(s),s.format(i,a)}},e.prototype.insertAt=function(e,t,i){var a=null==i?n.create("text",t):n.create(t,i),r=this.split(e);this.parent.insertBefore(a,r)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var i=null;e.children.insertBefore(this,t),null!=t&&(i=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==i||e.domNode.insertBefore(this.domNode,i),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var i=this.split(e);return i.split(t),i},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var i="string"==typeof e?n.create(e,t):e;return i.replace(this),i},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var i="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},e.blotName="abstract",e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(12),a=i(32),r=i(33),s=i(1),o=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),i=a.default.keys(this.domNode),o=r.default.keys(this.domNode);t.concat(i).concat(o).forEach((function(t){var i=s.query(t,s.Scope.ATTRIBUTE);i instanceof n.default&&(e.attributes[i.attrName]=i)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(i){var n=t.attributes[i].value(t.domNode);e.format(i,n)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,i){return t[i]=e.attributes[i].value(e.domNode),t}),{})},e}();t.default=o},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){r(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(i(12).default);t.default=s},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function r(e){var t=e.split("-"),i=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+i}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""},t}(i(12).default);t.default=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var a=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=i,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();a.DEFAULTS={modules:{}},a.themes={default:a},t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=o(i(0)),s=o(i(7));function o(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach((function(e){i.contentNode.appendChild(e)})),i.leftGuard=document.createTextNode(l),i.rightGuard=document.createTextNode(l),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"index",value:function(e,i){return e===this.leftGuard?0:e===this.rightGuard?1:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,i)}},{key:"restore",value:function(e){var t=void 0,i=void 0,n=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var a=this.prev.length();this.prev.insertAt(a,n),t={startNode:this.prev.domNode,startOffset:a+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(r.default.create(i),this),t={startNode:i,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(r.default.create(i),this.next),t={startNode:i,startOffset:n.length}));return e.data=l,t}},{key:"update",value:function(e,t){var i=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===i.leftGuard||e.target===i.rightGuard)){var n=i.restore(e.target);n&&(t.range=n)}}))}}]),t}(r.default.Embed);t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var s={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},o=new r.default.Attributor.Attribute("align","align",s),l=new r.default.Attributor.Class("align","ql-align",s),c=new r.default.Attributor.Style("align","text-align",s);t.AlignAttribute=o,t.AlignClass=l,t.AlignStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n},s=i(26);var o=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=o,t.BackgroundStyle=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var s={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},o=new r.default.Attributor.Attribute("direction","dir",s),l=new r.default.Attributor.Class("direction","ql-direction",s),c=new r.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=o,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),o=(n=s)&&n.__esModule?n:{default:n};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u={scope:o.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new o.default.Attributor.Class("font","ql-font",u),h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(o.default.Attributor.Style),f=new h("font","font-family",u);t.FontStyle=f,t.FontClass=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var s=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),o=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=o},function(e,t,i){"use strict";e.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=s(i(0)),r=s(i(5));function s(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(r.default.events.EDITOR_CHANGE,(function(e,t,i,a){e!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&a!==r.default.sources.USER?n.transform(t):n.record(t,i))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var i=this.stack[e].pop();this.stack[t].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[e],r.default.sources.USER),this.ignoreChange=!1;var n=l(i[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var i=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var a=this.stack.undo.pop();i=i.compose(a.undo),e=a.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(s(i(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),i=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=a.default.query(e,a.default.Scope.BLOCK)})))}(e)&&(i-=1),i}o.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=o,t.getLastChangeIndex=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=p(i(3)),s=p(i(2)),o=p(i(8)),l=p(i(23)),c=p(i(34)),u=p(i(59)),d=p(i(60)),h=p(i(28)),f=p(i(61));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],_=["1","2","3",!1],w=["small",!1,"large","huge"],k=function(e){function t(e,i){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return e.emitter.listenDOM("click",document.body,(function t(i){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(i.target)||e.close()}))})),n}return v(t,e),n(t,[{key:"addModule",value:function(e){var i=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(i){if(i.startsWith("ql-")&&(i=i.slice("ql-".length),null!=t[i]))if("direction"===i)e.innerHTML=t[i][""]+t[i].rtl;else if("string"==typeof t[i])e.innerHTML=t[i];else{var n=e.value||"";null!=n&&t[i][n]&&(e.innerHTML=t[i][n])}}))}))}},{key:"buildPickers",value:function(e,t){var i=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&L(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var i=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&L(e,b,"background"===i?"#ffffff":"#000000"),new u.default(e,t[i])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?L(e,x):e.classList.contains("ql-header")?L(e,_):e.classList.contains("ql-size")&&L(e,w)),new h.default(e)}));this.quill.on(o.default.events.EDITOR_CHANGE,(function(){i.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);k.DEFAULTS=(0,r.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var i=new FileReader;i.onload=function(i){var n=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(n.index).delete(n.length).insert({image:i.target.result}),o.default.sources.USER),e.quill.setSelection(n.index+1,o.default.sources.SILENT),t.value=""},i.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(e){function t(e,i){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return v(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,o.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,o.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0";if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/";return e}(e);case"formula":if(!e)break;var i=this.quill.getSelection(!0);if(null!=i){var n=i.index+i.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,o.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",o.default.sources.USER),this.quill.setSelection(n+2,o.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function L(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var n=document.createElement("option");t===i?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=M,t.default=k},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,i=this.iterator();t=i();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,i=this.head;null!=i;){if(i===e)return t;t+=i.length(),i=i.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var i,n=this.iterator();i=n();){var a=i.length();if(e<a||t&&e===a&&(null==i.next||0!==i.next.length()))return[i,e];e-=a}return[null,0]},e.prototype.forEach=function(e){for(var t,i=this.iterator();t=i();)e(t)},e.prototype.forEachAt=function(e,t,i){if(!(t<=0))for(var n,a=this.find(e),r=a[0],s=e-a[1],o=this.iterator(r);(n=o())&&s<e+t;){var l=n.length();e>s?i(n,e-s,Math.min(t,s+l-e)):i(n,0,Math.min(l,e+t-s)),s+=l}},e.prototype.map=function(e){return this.reduce((function(t,i){return t.push(e(i)),t}),[])},e.prototype.reduce=function(e,t){for(var i,n=this.iterator();i=n();)t=e(t,i);return t},e}();t.default=n},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(17),s=i(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var i=e.call(this,t)||this;return i.scroll=i,i.observer=new MutationObserver((function(e){i.update(e)})),i.observer.observe(i.domNode,o),i.attach(),i}return a(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,i){this.update(),0===t&&i===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,i)},t.prototype.formatAt=function(t,i,n,a){this.update(),e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.insertAt=function(t,i,n){this.update(),e.prototype.insertAt.call(this,t,i,n)},t.prototype.optimize=function(t,i){var n=this;void 0===t&&(t=[]),void 0===i&&(i={}),e.prototype.optimize.call(this,i);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var o=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&o(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof r.default&&e.children.forEach(l),e.optimize(i))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(o(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);o(t,!1),t instanceof r.default&&t.children.forEach((function(e){o(e,!1)}))}))):"attributes"===e.type&&o(t.prev)),o(t))})),this.children.forEach(l),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,i){var n=this;void 0===i&&(i={}),(t=t||this.observer.takeRecords()).map((function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],i)})),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,i),this.optimize(t,i)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(r.default);t.default=l},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(18),s=i(1);var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(i){if(i.tagName!==t.tagName)return e.formats.call(this,i)},t.prototype.format=function(i,n){var a=this;i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):(this.children.forEach((function(e){e instanceof r.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,i,n,a){null!=this.formats()[n]||s.query(n,s.Scope.ATTRIBUTE)?this.isolate(t,i).format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var a=this.next;a instanceof t&&a.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var i in e)if(e[i]!==t[i])return!1;return!0}(n,a.formats())&&(a.moveChildren(this),a.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.default);t.default=o},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(18),s=i(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(i){var n=s.query(t.blotName).tagName;if(i.tagName!==n)return e.formats.call(this,i)},t.prototype.format=function(i,n){null!=s.query(i,s.Scope.BLOCK)&&(i!==this.statics.blotName||n?e.prototype.format.call(this,i,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,i,n,a){null!=s.query(n,s.Scope.BLOCK)?this.format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.insertAt=function(t,i,n){if(null==n||null!=s.query(i,s.Scope.INLINE))e.prototype.insertAt.call(this,t,i,n);else{var a=this.split(t),r=s.create(i,n);a.parent.insertBefore(r,a)}},t.prototype.update=function(t,i){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,i)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(r.default);t.default=o},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.formats=function(e){},t.prototype.format=function(t,i){e.prototype.formatAt.call(this,0,this.length(),t,i)},t.prototype.formatAt=function(t,i,n,a){0===t&&i===this.length()?this.format(n,a):e.prototype.formatAt.call(this,t,i,n,a)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i(19).default);t.default=r},function(e,t,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var r=i(19),s=i(1),o=function(e){function t(t){var i=e.call(this,t)||this;return i.text=i.statics.value(i.domNode),i}return a(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,i,n){null==n?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,i,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(i){e.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var i=s.create(this.domNode.splitText(e));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},t.prototype.update=function(e,t){var i=this;e.some((function(e){return"characterData"===e.type&&e.target===i.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(r.default);t.default=o},function(e,t,i){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:a.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,i=Object(this),n=i.length>>>0,a=arguments[1],r=0;r<n;r++)if(t=i[r],e.call(a,t,r,i))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var i=-1;function n(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var u=r(e,t),d=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var h=e.substring(e.length-u),f=function(e,t){var o;if(!e)return[[1,t]];if(!t)return[[i,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return o=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>t.length&&(o[0][0]=o[2][0]=i),o;if(1==c.length)return[[i,e],[1,t]];var d=function(e,t){var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||2*n.length<i.length)return null;function a(e,t,i){for(var n,a,o,l,c=e.substring(i,i+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var h=r(e.substring(i),t.substring(u)),f=s(e.substring(0,i),t.substring(0,u));d.length<f+h&&(d=t.substring(u-f,u)+t.substring(u,u+h),n=e.substring(0,i-f),a=e.substring(i+h),o=t.substring(0,u-f),l=t.substring(u+h))}return 2*d.length>=e.length?[n,a,o,l,d]:null}var o,l,c,u,d,h=a(i,n,Math.ceil(i.length/4)),f=a(i,n,Math.ceil(i.length/2));if(!h&&!f)return null;o=f?h&&h[4].length>f[4].length?h:f:h;e.length>t.length?(l=o[0],c=o[1],u=o[2],d=o[3]):(u=o[0],d=o[1],l=o[2],c=o[3]);var p=o[4];return[l,c,u,d,p]}(e,t);if(d){var h=d[0],f=d[1],p=d[2],m=d[3],g=d[4],v=n(h,p),y=n(f,m);return v.concat([[0,g]],y)}return function(e,t){for(var n=e.length,r=t.length,s=Math.ceil((n+r)/2),o=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[o+1]=0,u[o+1]=0;for(var h=n-r,f=h%2!=0,p=0,m=0,g=0,v=0,y=0;y<s;y++){for(var b=-y+p;b<=y-m;b+=2){for(var x=o+b,_=(S=b==-y||b!=y&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-b;S<n&&_<r&&e.charAt(S)==t.charAt(_);)S++,_++;if(c[x]=S,S>n)m+=2;else if(_>r)p+=2;else if(f){if((M=o+h-b)>=0&&M<l&&-1!=u[M])if(S>=(k=n-u[M]))return a(e,t,S,_)}}for(var w=-y+g;w<=y-v;w+=2){for(var k,M=o+w,L=(k=w==-y||w!=y&&u[M-1]<u[M+1]?u[M+1]:u[M-1]+1)-w;k<n&&L<r&&e.charAt(n-k-1)==t.charAt(r-L-1);)k++,L++;if(u[M]=k,k>n)v+=2;else if(L>r)g+=2;else if(!f){if((x=o+h-w)>=0&&x<l&&-1!=c[x]){var S;_=o+(S=c[x])-x;if(S>=(k=n-k))return a(e,t,S,_)}}}}return[[i,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&f.unshift([0,d]),h&&f.push([0,h]),o(f),null!=l&&(f=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,a=0;a<e.length;a++){var r=e[a];if(r[0]===i||0===r[0]){var s=n+r[1].length;if(t===s)return[a+1,e];if(t<s){e=e.slice();var o=t-n,l=[r[0],r[1].slice(0,o)],c=[r[0],r[1].slice(o)];return e.splice(a,1,l,c),[a+1,e]}n=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),a=n[1],r=n[0],s=a[r],o=a[r+1];if(null==s)return e;if(0!==s[0])return e;if(null!=o&&s[1]+o[1]===o[1]+s[1])return a.splice(r,2,o,s),c(a,r,2);if(null!=o&&0===o[1].indexOf(s[1])){a.splice(r,2,[o[0],s[1]],[0,s[1]]);var l=o[1].slice(s[1].length);return l.length>0&&a.splice(r+2,0,[o[0],l]),c(a,r,3)}return e}(f,l)),f=function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},r=2;r<e.length;r+=1)0===e[r-2][0]&&a(e[r-2][1])&&e[r-1][0]===i&&n(e[r-1][1])&&1===e[r][0]&&n(e[r][1])&&(t=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));if(!t)return e;var s=[];for(r=0;r<e.length;r+=1)e[r][1].length>0&&s.push(e[r]);return s}(f)}function a(e,t,i,a){var r=e.substring(0,i),s=t.substring(0,a),o=e.substring(i),l=t.substring(a),c=n(r,s),u=n(o,l);return c.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),a=n,r=0;i<a;)e.substring(r,a)==t.substring(r,a)?r=i=a:n=a,a=Math.floor((n-i)/2+i);return a}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),a=n,r=0;i<a;)e.substring(e.length-a,e.length-r)==t.substring(t.length-a,t.length-r)?r=i=a:n=a,a=Math.floor((n-i)/2+i);return a}function o(e){e.push([0,""]);for(var t,n=0,a=0,l=0,c="",u="";n<e.length;)switch(e[n][0]){case 1:l++,u+=e[n][1],n++;break;case i:a++,c+=e[n][1],n++;break;case 0:a+l>1?(0!==a&&0!==l&&(0!==(t=r(u,c))&&(n-a-l>0&&0==e[n-a-l-1][0]?e[n-a-l-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),n++),u=u.substring(t),c=c.substring(t)),0!==(t=s(u,c))&&(e[n][1]=u.substring(u.length-t)+e[n][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===a?e.splice(n-l,a+l,[1,u]):0===l?e.splice(n-a,a+l,[i,c]):e.splice(n-a-l,a+l,[i,c],[1,u]),n=n-a-l+(a?1:0)+(l?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,l=0,a=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),d=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),d=!0)),n++;d&&o(e)}var l=n;function c(e,t,i){for(var n=t+i-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var a=e[n],r=e[n+1];a[0]===r[1]&&e.splice(n,2,[a[0],a[1]+r[1]])}return e}l.INSERT=1,l.DELETE=i,l.EQUAL=0,e.exports=l},function(e,t){function i(e){var t=[];for(var i in e)t.push(i);return t}(e.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(e,t){var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function a(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=i?n:a).supported=n,t.unsupported=a},function(e,t){"use strict";var i=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,t,a=[];if(0===this._eventsCount)return a;for(t in e=this._events)i.call(e,t)&&a.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e,t){var i=n?n+e:e,a=this._events[i];if(t)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var r=0,s=a.length,o=new Array(s);r<s;r++)o[r]=a[r].fn;return o},s.prototype.emit=function(e,t,i,a,r,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,a),!0;case 5:return u.fn.call(u.context,t,i,a,r),!0;case 6:return u.fn.call(u.context,t,i,a,r,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,i);break;case 4:u[c].fn.call(u[c].context,t,i,a);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,i){var a=new r(t,i||this),s=n?n+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],a]:this._events[s].push(a):(this._events[s]=a,this._eventsCount++),this},s.prototype.once=function(e,t,i){var a=new r(t,i||this,!0),s=n?n+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],a]:this._events[s].push(a):(this._events[s]=a,this._eventsCount++),this},s.prototype.removeListener=function(e,t,i,r){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new a:delete this._events[s],this;var o=this._events[s];if(o.fn)o.fn!==t||r&&!o.once||i&&o.context!==i||(0==--this._eventsCount?this._events=new a:delete this._events[s]);else{for(var l=0,c=[],u=o.length;l<u;l++)(o[l].fn!==t||r&&!o[l].once||i&&o[l].context!==i)&&c.push(o[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new a:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new a:delete this._events[t])):(this._events=new a,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=n,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=b(i(3)),o=b(i(2)),l=b(i(0)),c=b(i(5)),u=b(i(10)),d=b(i(9)),h=i(36),f=i(37),p=b(i(13)),m=i(26),g=i(38),v=i(39),y=i(40);function b(e){return e&&e.__esModule?e:{default:e}}function x(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var _=(0,u.default)("quill:clipboard"),w="__ql-matcher",k=[[Node.TEXT_NODE,N],[Node.TEXT_NODE,I],["br",function(e,t){C(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(e,t){var i={},n=e.style||{};n.fontStyle&&"italic"===T(e).fontStyle&&(i.italic=!0);n.fontWeight&&(T(e).fontWeight.startsWith("bold")||parseInt(T(e).fontWeight)>=700)&&(i.bold=!0);Object.keys(i).length>0&&(t=A(t,i));parseFloat(n.textIndent||0)>0&&(t=(new o.default).insert("\t").concat(t));return t}],["li",function(e,t){var i=l.default.query(e);if(null==i||"list-item"!==i.blotName||!C(t,"\n"))return t;var n=-1,a=e.parentNode;for(;!a.classList.contains("ql-clipboard");)"list"===(l.default.query(a)||{}).blotName&&(n+=1),a=a.parentNode;return n<=0?t:t.compose((new o.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new o.default}]],M=[h.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),L=[h.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],k.concat(n.options.matchers).forEach((function(e){var t=a(e,2),r=t[0],s=t[1];(i.matchVisual||s!==j)&&n.addMatcher(r,s)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[p.default.blotName]){var i=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(i,x({},p.default.blotName,t[p.default.blotName]))}var n=this.prepareMatching(),r=a(n,2),s=r[0],l=r[1],c=E(this.container,s,l);return C(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new o.default).retain(c.length()-1).delete(1))),_.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new o.default).retain(e).concat(n),i),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var i=this.quill.getSelection(),n=(new o.default).retain(i.index),a=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(t.convert()).delete(i.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-i.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=a,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],i=[];return this.matchers.forEach((function(n){var r=a(n,2),s=r[0],o=r[1];switch(s){case Node.TEXT_NODE:i.push(o);break;case Node.ELEMENT_NODE:t.push(o);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[w]=e[w]||[],e[w].push(o)}))}})),[t,i]}}]),t}(d.default);function A(e,t,i){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce((function(e,i){return A(e,i,t[i])}),e):e.reduce((function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,s.default)({},x({},t,i),n.attributes))}),new o.default)}function T(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function C(e,t){for(var i="",n=e.ops.length-1;n>=0&&i.length<t.length;--n){var a=e.ops[n];if("string"!=typeof a.insert)break;i=a.insert+i}return i.slice(-1*t.length)===t}function D(e){if(0===e.childNodes.length)return!1;var t=T(e);return["block","list-item"].indexOf(t.display)>-1}function E(e,t,i){return e.nodeType===e.TEXT_NODE?i.reduce((function(t,i){return i(e,t)}),new o.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(n,a){var r=E(a,t,i);return a.nodeType===e.ELEMENT_NODE&&(r=t.reduce((function(e,t){return t(a,e)}),r),r=(a[w]||[]).reduce((function(e,t){return t(a,e)}),r)),n.concat(r)}),new o.default):new o.default}function O(e,t,i){return A(i,e,!0)}function P(e,t){var i=l.default.Attributor.Attribute.keys(e),n=l.default.Attributor.Class.keys(e),a=l.default.Attributor.Style.keys(e),r={};return i.concat(n).concat(a).forEach((function(t){var i=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=i&&(r[i.attrName]=i.value(e),r[i.attrName])||(null==(i=M[t])||i.attrName!==t&&i.keyName!==t||(r[i.attrName]=i.value(e)||void 0),null==(i=L[t])||i.attrName!==t&&i.keyName!==t||(i=L[t],r[i.attrName]=i.value(e)||void 0))})),Object.keys(r).length>0&&(t=A(t,r)),t}function Y(e,t){var i=l.default.query(e);if(null==i)return t;if(i.prototype instanceof l.default.Embed){var n={},a=i.value(e);null!=a&&(n[i.blotName]=a,t=(new o.default).insert(n,i.formats(e)))}else"function"==typeof i.formats&&(t=A(t,i.blotName,i.formats(e)));return t}function I(e,t){return C(t,"\n")||(D(e)||t.length()>0&&e.nextSibling&&D(e.nextSibling))&&t.insert("\n"),t}function j(e,t){if(D(e)&&null!=e.nextElementSibling&&!C(t,"\n\n")){var i=e.offsetHeight+parseFloat(T(e).marginTop)+parseFloat(T(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*i&&t.insert("\n")}return t}function N(e,t){var i=e.data;if("O:P"===e.parentNode.tagName)return t.insert(i.trim());if(0===i.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!T(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&D(e.parentNode)||null!=e.previousSibling&&D(e.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&D(e.parentNode)||null!=e.nextSibling&&D(e.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))}return t.insert(i)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=P,t.matchBlot=Y,t.matchNewline=I,t.matchSpacing=j,t.matchText=N},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=u(i(2)),s=u(i(0)),o=u(i(5)),l=u(i(10)),c=u(i(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=(0,l.default)("quill:toolbar"),f=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a,r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if(Array.isArray(r.options.container)){var s=document.createElement("div");m(s,r.options.container),e.container.parentNode.insertBefore(s,e.container),r.container=s}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach((function(e){r.addHandler(e,r.options.handlers[e])})),[].forEach.call(r.container.querySelectorAll("button, select"),(function(e){r.attach(e)})),r.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t){e===o.default.events.SELECTION_CHANGE&&r.update(t)})),r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){var e=r.quill.selection.getRange(),t=n(e,1)[0];r.update(t)})),r):(a=h.error("Container required for toolbar",r.options),d(r,a))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,i=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(i){if(i=i.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[i]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[i])return void h.warn("ignoring attaching to disabled format",i,e);if(null==s.default.query(i))return void h.warn("ignoring attaching to nonexistent format",i,e)}var a="SELECT"===e.tagName?"change":"click";e.addEventListener(a,(function(a){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),a.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=n(u,1)[0];if(null!=t.handlers[i])t.handlers[i].call(t,l);else if(s.default.query(i).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+i)))return;t.quill.updateContents((new r.default).retain(d.index).delete(d.length).insert(function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},i,l)),o.default.sources.USER)}else t.quill.format(i,l,o.default.sources.USER);t.update(d)})),this.controls.push([i,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(i){var a=n(i,2),r=a[0],s=a[1];if("SELECT"===s.tagName){var o=void 0;if(null==e)o=null;else if(null==t[r])o=s.querySelector("option[selected]");else if(!Array.isArray(t[r])){var l=t[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),o=s.querySelector('option[value="'+l+'"]')}null==o?(s.value="",s.selectedIndex=-1):o.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[r]===s.getAttribute("value")||null!=t[r]&&t[r].toString()===s.getAttribute("value")||null==t[r]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[r])}))}}]),t}(c.default);function p(e,t,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=i&&(n.value=i),e.appendChild(n)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var i=document.createElement("span");i.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)p(i,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,i){var n=document.createElement("select");n.classList.add("ql-"+t),i.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)})),e.appendChild(n)}(i,t,n):p(i,t,n)}})),e.appendChild(i)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var i=this.quill.getFormat();Object.keys(i).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,o.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",o.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,o.default.sources.USER),this.quill.format("direction",e,o.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t),n=parseInt(i.indent||0);if("+1"===e||"-1"===e){var a="+1"===e?1:-1;"rtl"===i.direction&&(a*=-1),this.quill.format("indent",n+a,o.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,o.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),i=this.quill.getFormat(t);"check"===e?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,o.default.sources.USER):this.quill.format("list","unchecked",o.default.sources.USER):this.quill.format("list",e,o.default.sources.USER)}}},t.default=f,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(28);var o=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.label.innerHTML=i,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"buildItem",value:function(e){var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return i.style.backgroundColor=e.getAttribute("value")||"",i}},{key:"selectItem",value:function(e,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i);var n=this.label.querySelector(".ql-color-label"),a=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=a:n.style.fill=a)}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(28);var o=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=i[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"selectItem",value:function(e,i){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,i),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();var a=function(){function e(t,i){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=i||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,i=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),r=0;if(a.right>n.right&&(r=n.right-a.right,this.root.style.left=t+r+"px"),a.left<n.left&&(r=n.left-a.left,this.root.style.left=t+r+"px"),a.bottom>n.bottom){var s=a.bottom-a.top,o=e.bottom-e.top+s;this.root.style.top=i-o+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,a=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{!n&&o.return&&o.return()}finally{if(a)throw r}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=f(i(3)),o=f(i(8)),l=i(43),c=f(l),u=f(i(27)),d=i(15),h=f(i(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,i){p(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=v);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-snow"),n}return g(t,e),r(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,i){e.handlers.link.call(e,!i.format.link)}))}}]),t}(c.default);y.DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var i=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(i)&&0!==i.indexOf("mailto:")&&(i="mailto:"+i),this.quill.theme.tooltip.edit("link",i)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,i){p(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.preview=n.root.querySelector("a.ql-preview"),n}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var i=e.linkRange;e.restoreFocus(),e.quill.formatText(i,"link",!1,o.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(o.default.events.SELECTION_CHANGE,(function(t,i,a){if(null!=t){if(0===t.length&&a===o.default.sources.USER){var r=e.quill.scroll.descendant(u.default,t.index),s=n(r,2),l=s[0],c=s[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var h=u.default.formats(l.domNode);return e.preview.textContent=h,e.preview.setAttribute("href",h),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=I(i(29)),a=i(36),r=i(38),s=i(64),o=I(i(65)),l=I(i(66)),c=i(67),u=I(c),d=i(37),h=i(26),f=i(39),p=i(40),m=I(i(56)),g=I(i(68)),v=I(i(27)),y=I(i(69)),b=I(i(70)),x=I(i(71)),_=I(i(72)),w=I(i(73)),k=i(13),M=I(k),L=I(i(74)),S=I(i(75)),A=I(i(57)),T=I(i(41)),C=I(i(28)),D=I(i(59)),E=I(i(60)),O=I(i(61)),P=I(i(108)),Y=I(i(62));function I(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),n.default.register({"formats/align":a.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":o.default,"formats/code-block":M.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":x.default,"formats/image":_.default,"formats/video":w.default,"formats/list/item":c.ListItem,"modules/formula":L.default,"modules/syntax":S.default,"modules/toolbar":A.default,"themes/bubble":P.default,"themes/snow":Y.default,"ui/icons":T.default,"ui/picker":C.default,"ui/icon-picker":E.default,"ui/color-picker":D.default,"ui/tooltip":O.default},!0),t.default=n.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),o=(n=s)&&n.__esModule?n:{default:n};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"add",value:function(e,i){if("+1"===i||"-1"===i){var n=this.value(e)||0;i="+1"===i?n+1:n-1}return 0===i?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,i)}},{key:"canAdd",value:function(e,i){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,i)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(i))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(o.default.Attributor.Class),d=new u("indent","ql-indent",{scope:o.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(4);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){return r(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=a)&&n.__esModule?n:{default:n}).default);o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=i(4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return s(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=l(i(0)),s=l(i(4)),o=l(i(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"format",value:function(e,i){e!==f.blotName||i?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,i){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,i),this):(this.parent.unwrap(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,i))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:a(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(s.default);h.blotName="list-item",h.tagName="LI";var f=function(e){function t(e){c(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=i.statics.formats(e),a=r.default.find(t.target);"checked"===n?a.format("list","unchecked"):"unchecked"===n&&a.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),i}return d(t,e),n(t,null,[{key:"create",value:function(e){var i="ordered"===e?"OL":"UL",n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,i);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,i=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e;var e,t,i}},{key:"insertBefore",value:function(e,i){if(e instanceof h)a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,i);else{var n=null==i?this.length():i.offset(this),r=this.split(n);r.parent.insertBefore(e,r)}}},{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var i=r.default.create(this.statics.defaultChild);e.moveChildren(i),this.appendChild(i)}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(o.default);f.blotName="list",f.scope=r.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[h],t.ListItem=h,t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(56);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){return r(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=a)&&n.__esModule?n:{default:n}).default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((n=s)&&n.__esModule?n:{default:n}).default);c.blotName="script",c.tagName=["SUB","SUP"],t.default=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(6);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){return r(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=a)&&n.__esModule?n:{default:n}).default);o.blotName="strike",o.tagName="S",t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=i(6);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var o=function(e){function t(){return r(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=a)&&n.__esModule?n:{default:n}).default);o.blotName="underline",o.tagName="U",t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(0),o=(n=s)&&n.__esModule?n:{default:n},l=i(27);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["alt","height","width"],h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"format",value:function(e,i){d.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return d.reduce((function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},s=i(4),o=i(27),l=(n=o)&&n.__esModule?n:{default:n};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["height","width"],h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"format",value:function(e,i){d.indexOf(e)>-1?i?this.domNode.setAttribute(e,i):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,i)}}],[{key:"create",value:function(e){var i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(e)),i}},{key:"formats",value:function(e){return d.reduce((function(t,i){return e.hasAttribute(i)&&(t[i]=e.getAttribute(i)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=l(i(35)),s=l(i(5)),o=l(i(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,null,[{key:"create",value:function(e){var i=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",e)),i}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(r.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var f=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),n(t,null,[{key:"register",value:function(){s.default.register(h,!0)}}]),t}(o.default);t.FormulaBlot=h,t.default=f},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),a=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},r=l(i(0)),s=l(i(5)),o=l(i(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(i(13)).default);h.className="ql-syntax";var f=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),p=function(e){function t(e,i){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(a),a=setTimeout((function(){n.highlight(),a=null}),n.options.interval)})),n.highlight(),n}return d(t,e),n(t,null,[{key:"register",value:function(){s.default.register(f,!0),s.default.register(h,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=t&&this.quill.setSelection(t,s.default.sources.SILENT)}}}]),t}(o.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=f,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,i,n){null===t&&(t=Function.prototype);var a=Object.getOwnPropertyDescriptor(t,i);if(void 0===a){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,i,n)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(n):void 0},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=d(i(3)),s=d(i(8)),o=i(43),l=d(o),c=i(15),u=d(i(41));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,i){h(this,t),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=m);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.container.classList.add("ql-bubble"),n}return p(t,e),a(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(l.default);g.DEFAULTS=(0,r.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,i){h(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,i,a){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&a===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var r=n.quill.getLines(t.index,t.length);if(1===r.length)n.position(n.quill.getBounds(t));else{var o=r[r.length-1],l=n.quill.getIndex(o),u=Math.min(o.length()-1,t.index+t.length-l),d=n.quill.getBounds(new c.Range(l,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return p(t,e),a(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var i=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),a=this.root.querySelector(".ql-tooltip-arrow");if(a.style.marginLeft="",0===i)return i;a.style.marginLeft=-1*i-a.offsetWidth/2+"px"}}]),t}(o.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=g},function(e,t,i){e.exports=i(63)}]).default})),function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}var t;"".trim||(String.prototype.trim=function(){return this.replace(/^[\s]+|[\s]+$/g,"")}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=arguments[1],a=0;a<i;){var r=t[a];if(e.call(n,r,a,t))return a;a++}return-1},configurable:!0,writable:!0}),Array.prototype.includes||(Array.prototype.includes=function(e){return!!~this.indexOf(e)}),Array.prototype.some||(Array.prototype.some=function(e,t){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var i=Object(this),n=i.length>>>0,a=0;a<n;a++)if(a in i&&e.call(t,i[a],a,i))return!0;return!1}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i[r]=a[r])}return i},writable:!0,configurable:!0}),e.prototype=window.Event.prototype,"function"!=typeof window.CustomEvent&&(window.CustomEvent=e),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),document.execCommand("AutoUrlDetect",!1,!1),
|
||
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
|
||
"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var t="classList",i=e.Element.prototype,n=Object,a=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array.prototype.indexOf||function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},o=function(e,t){if(""===t)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return r.call(e,t)},l=function(e){for(var t=a.call(e.getAttribute("class")||""),i=t?t.split(/\s+/):[],n=0,r=i.length;n<r;n++)this.push(i[n]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l.prototype=[],u=function(){return new l(this)};if(s.prototype=Error.prototype,c.item=function(e){return this[e]||null},c.contains=function(e){return~o(this,e+"")},c.add=function(){var e,t=arguments,i=0,n=t.length,a=!1;do{e=t[i]+"",~o(this,e)||(this.push(e),a=!0)}while(++i<n);a&&this._updateClassName()},c.remove=function(){var e,t,i=arguments,n=0,a=i.length,r=!1;do{for(e=i[n]+"",t=o(this,e);~t;)this.splice(t,1),r=!0,t=o(this,e)}while(++n<a);r&&this._updateClassName()},c.toggle=function(e,t){var i=this.contains(e),n=i?!0!==t&&"remove":!1!==t&&"add";return n&&this[n](e),!0===t||!1===t?t:!i},c.replace=function(e,t){var i=o(e+"");~i&&(this.splice(i,1,t),this._updateClassName())},c.toString=function(){return this.join(" ")},n.defineProperty){var d={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(i,t,d)}catch(e){void 0!==e.number&&-2146823252!==e.number||(d.enumerable=!1,n.defineProperty(i,t,d))}}else n.prototype.__defineGetter__&&i.__defineGetter__(t,u)}}(self),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var i,n=arguments.length;for(i=0;i<n;i++)e=arguments[i],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:i.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,t){var i=this.toString().split(" "),n=i.indexOf(e+"");~n&&(i=i.slice(n),this.remove.apply(this,i),this.add(t),this.add.apply(this,i.slice(1)))}),e=null}()),t=function(){function e(e){var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){return t.reject(i)}))}))}function t(e){return new this((function(t,i){if(!e||void 0===e.length)return i(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);var a=n.length;function r(e,i){if(i&&("object"==typeof i||"function"==typeof i)){var s=i.then;if("function"==typeof s)return void s.call(i,(function(t){r(e,t)}),(function(i){n[e]={status:"rejected",reason:i},0==--a&&t(n)}))}n[e]={status:"fulfilled",value:i},0==--a&&t(n)}for(var s=0;s<n.length;s++)r(s,n[s])}))}var i=setTimeout;function n(e){return Boolean(e&&void 0!==e.length)}function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void l(t.promise,e)}o(t.promise,n)}else(1===e._state?o:l)(t.promise,e._value)}))):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void c(e);if("function"==typeof i)return void d((n=i,a=t,function(){n.apply(a,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){l(e,t)}var n,a}function l(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,i=e._deferreds.length;t<i;t++)s(e,e._deferreds[t]);e._deferreds=null}function u(e,t,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=i}function d(e,t){var i=!1;try{e((function(e){i||(i=!0,o(t,e))}),(function(e){i||(i=!0,l(t,e))}))}catch(e){if(i)return;i=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var i=new this.constructor(a);return s(this,new u(e,t,i)),i},r.prototype.finally=e,r.all=function(e){return new r((function(t,i){if(!n(e))return i(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function s(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if("function"==typeof o)return void o.call(n,(function(t){s(e,t)}),i)}a[e]=n,0==--r&&t(a)}catch(e){i(e)}}for(var o=0;o<a.length;o++)s(o,a[o])}))},r.allSettled=t,r.resolve=function(e){return e&&"object"==typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,i){i(e)}))},r.race=function(e){return new r((function(t,i){if(!n(e))return i(new TypeError("Promise.race accepts an array"));for(var a=0,s=e.length;a<s;a++)r.resolve(e[a]).then(t,i)}))},r._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof h.Promise?h.Promise=r:h.Promise.prototype.finally?h.Promise.allSettled||(h.Promise.allSettled=t):h.Promise.prototype.finally=e},"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Tagify=t()}(this,(function(){"use strict";function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){i(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const n=(e,t,i,n)=>(e=""+e,t=""+t,n&&(e=e.trim(),t=t.trim()),i?e==t:e.toLowerCase()==t.toLowerCase());function a(e,t){var i,n={};for(i in e)t.indexOf(i)<0&&(n[i]=e[i]);return n}function r(e){var t=document.createElement("div");return e.replace(/\&#?[0-9a-z]+;/gi,(function(e){return t.innerHTML=e,t.innerText}))}function s(e,t){for(t=t||"previous";e=e[t+"Sibling"];)if(3==e.nodeType)return e}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/`|'/g,"'"):e}function l(e){var t=Object.prototype.toString.call(e).split(" ")[1].slice(0,-1);return e===Object(e)&&"Array"!=t&&"Function"!=t&&"RegExp"!=t&&"HTMLUnknownElement"!=t}function c(e,t,i){function n(e,t){for(var i in t)if(t.hasOwnProperty(i)){if(l(t[i])){l(e[i])?n(e[i],t[i]):e[i]=Object.assign({},t[i]);continue}if(Array.isArray(t[i])){e[i]=Object.assign([],t[i]);continue}e[i]=t[i]}}return e instanceof Object||(e={}),n(e,t),i&&n(e,i),e}function u(e){return String.prototype.normalize?"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:e}var d=()=>/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent);function h(e){return e&&e.classList&&e.classList.contains(this.settings.classNames.tag)}var f={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:()=>{},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:()=>Promise.resolve(),beforePaste:()=>Promise.resolve(),suggestionClick:()=>Promise.resolve()}};function p(){this.dropdown={};for(let e in this._dropdown)this.dropdown[e]="function"==typeof this._dropdown[e]?this._dropdown[e].bind(this):this._dropdown[e];this.settings.dropdown.enabled>=0&&this.dropdown.init()}var m,g={init(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownWrapperSelector)},show(e){var t,i,a,r=this.settings,s="mix"==r.mode&&!r.enforceWhitelist,o=!r.whitelist||!r.whitelist.length,c="manual"==r.dropdown.position;if(e=void 0===e?this.state.inputText:e,(!o||s||r.templates.dropdownItemNoMatch)&&!1!==r.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(e),e&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",e),r.templates.dropdownItemNoMatch&&(a=r.templates.dropdownItemNoMatch.call(this,{value:e}))),!a){if(this.suggestedListItems.length)e&&s&&!this.state.editing.scope&&!n(this.suggestedListItems[0].value,e)&&this.suggestedListItems.unshift({value:e});else{if(!e||!s||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:e}]}i=""+(l(t=this.suggestedListItems[0])?t.value:t),r.autoComplete&&i&&0==i.indexOf(e)&&this.input.autocomplete.suggest.call(this,t)}this.dropdown.fill(a),r.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=e||!0,this.state.dropdown.query=e,this.setStateSelection(),c||setTimeout((()=>{this.dropdown.position(),this.dropdown.render()})),setTimeout((()=>{this.trigger("dropdown:show",this.DOM.dropdown)}))}},hide(e){var t=this.DOM,i=t.scope,n=t.dropdown,a="manual"==this.settings.dropdown.position&&!e;if(n&&document.body.contains(n)&&!a)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),i.setAttribute("aria-expanded",!1),n.parentNode.removeChild(n),setTimeout((()=>{this.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",n),this},toggle(e){this.dropdown[this.state.dropdown.visible&&!e?"hide":"show"]()},render(){var e,t,i=((t=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),n=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(n.classNames.dropdownInital),this.dropdown.position(i),n.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((()=>this.DOM.dropdown.classList.remove(n.classNames.dropdownInital)))),this},fill(e){var t;e="string"==typeof e?e:this.dropdown.createListHTML(e||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=(t=e)?t.replace(/\>[\r\n ]+\</g,"><").replace(/(<.*?>)|\s+/g,((e,t)=>t||" ")):""},refilter(e){e=e||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(e),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},position(e){var t=this.settings.dropdown;if("manual"!=t.position){var i,n,a,r,s,o,l=this.DOM.dropdown,c=t.placeAbove,u=document.documentElement.clientHeight,d=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>480?t.position:"all",h=this.DOM["input"==d?"input":"scope"];e=e||l.clientHeight,this.state.dropdown.visible&&("text"==d?(a=(i=this.getCaretGlobalPosition()).bottom,n=i.top,r=i.left,s="auto"):(o=function(e){for(var t=0,i=0;e;)t+=e.offsetLeft||0,i+=e.offsetTop||0,e=e.parentNode;return{left:t,top:i}}(this.settings.dropdown.appendTarget),n=(i=h.getBoundingClientRect()).top-o.top,a=i.bottom-1-o.top,r=i.left-o.left,s=i.width+"px"),n=Math.floor(n),a=Math.ceil(a),c=void 0===c?u-i.bottom<e:c,l.style.cssText="left:"+(r+window.pageXOffset)+"px; width:"+s+";"+(c?"top: "+(n+window.pageYOffset)+"px":"top: "+(a+window.pageYOffset)+"px"),l.setAttribute("placement",c?"top":"bottom"),l.setAttribute("position",d))}},events:{binding(e=!0){var t=this.dropdown.events.callbacks,i=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this),onKeyDown:t.onKeyDown.bind(this),onMouseOver:t.onMouseOver.bind(this),onMouseLeave:t.onMouseLeave.bind(this),onClick:t.onClick.bind(this),onScroll:t.onScroll.bind(this)},n=e?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(window[n]("resize",i.position),window[n]("keydown",i.onKeyDown)),this.DOM.dropdown[n]("mouseover",i.onMouseOver),this.DOM.dropdown[n]("mouseleave",i.onMouseLeave),this.DOM.dropdown[n]("mousedown",i.onClick),this.DOM.dropdown.content[n]("scroll",i.onScroll)},callbacks:{onKeyDown(e){var t=this.DOM.dropdown.querySelector(this.settings.classNames.dropdownItemActiveSelector),i=this.dropdown.getSuggestionDataByNode(t);switch(e.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":var n;e.preventDefault(),t&&(t=t[("ArrowUp"==e.key||"Up"==e.key?"previous":"next")+"ElementSibling"]),t||(n=this.DOM.dropdown.content.children,t=n["ArrowUp"==e.key||"Up"==e.key?n.length-1:0]),i=this.dropdown.getSuggestionDataByNode(t),this.dropdown.highlightOption(t,!0);break;case"Escape":case"Esc":this.dropdown.hide();break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":if("mix"!=this.settings.mode&&t&&!this.settings.autoComplete.rightKey&&!this.state.editing){e.preventDefault();var a=this.dropdown.getMappedValue(i);return this.input.autocomplete.set.call(this,a),!1}return!0;case"Enter":e.preventDefault(),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:i,suggestionElm:t}).then((()=>{if(t)return this.dropdown.selectOption(t);this.dropdown.hide(),"mix"!=this.settings.mode&&this.addTags(this.state.inputText.trim(),!0)})).catch((e=>e));break;case"Backspace":{if("mix"==this.settings.mode||this.state.editing.scope)return;const e=this.input.raw.call(this);""!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}}},onMouseOver(e){var t=e.target.closest(this.settings.classNames.dropdownItemSelector);t&&this.dropdown.highlightOption(t)},onMouseLeave(e){this.dropdown.highlightOption()},onClick(e){if(0==e.button&&e.target!=this.DOM.dropdown&&e.target!=this.DOM.dropdown.content){var t=e.target.closest(this.settings.classNames.dropdownItemSelector),i=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((()=>this.state.actions.selectOption=!1),50),this.settings.hooks.suggestionClick(e,{tagify:this,tagData:i,suggestionElm:t}).then((()=>{t?this.dropdown.selectOption(t):this.dropdown.hide()})).catch((e=>e))}},onScroll(e){var t=e.target,i=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(i)})}}},getSuggestionDataByNode(e){var t=e?+e.getAttribute("tagifySuggestionIdx"):-1;return this.suggestedListItems[t]||null},highlightOption(e,t){var i,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!e)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);i=this.suggestedListItems[this.getNodeIndex(e)],this.state.ddItemData=i,this.state.ddItemElm=e,e.classList.add(n),e.setAttribute("aria-selected",!0),t&&(e.parentNode.scrollTop=e.clientHeight+e.offsetTop-e.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position())},selectOption(e){var t,i=this.settings.dropdown,n=i.clearOnSelect,a=i.closeOnSelect;if(!e)return t=this.addTags(this.state.inputText,!0),void(a&&this.dropdown.hide());var r=e.getAttribute("tagifySuggestionIdx"),s=this.suggestedListItems[+r];this.trigger("dropdown:select",{data:s,elm:e}),r&&s?(this.state.editing?this.onEditTagDone(null,c({__isValid:!0},s)):t=this["mix"==this.settings.mode?"addMixTags":"addTags"]([s],n),this.DOM.input.parentNode&&(setTimeout((()=>{this.DOM.input.focus(),this.toggleFocusClass(!0),this.placeCaretAfterNode(t)})),a?setTimeout(this.dropdown.hide.bind(this)):this.dropdown.refilter())):this.dropdown.hide()},selectAll(){return this.suggestedListItems.length=0,this.dropdown.hide(),this.addTags(this.dropdown.filterListItems(""),!0),this},filterListItems(e,t){var i,n,a,r,s,o=this.settings,c=o.dropdown,d=(t=t||{},e="select"==o.mode&&this.value.length&&this.value[0][o.tagTextProp]==e?"":e,[]),h=[],f=o.whitelist,p=c.maxItems||1/0,m=c.searchKeys,g=0;if(!e||!m.length)return(o.duplicates?f:f.filter((e=>!this.isTagDuplicate(l(e)?e.value:e)))).slice(0,p);function v(e,t){return t.toLowerCase().split(" ").every((t=>e.includes(t.toLowerCase())))}for(s=c.caseSensitive?""+e:(""+e).toLowerCase();g<f.length;g++){let e,p;i=f[g]instanceof Object?f[g]:{value:f[g]};let y=Object.keys(i).some((e=>m.includes(e)))?m:["value"];c.fuzzySearch&&!t.exact?(a=y.reduce(((e,t)=>e+" "+(i[t]||"")),"").toLowerCase().trim(),c.accentedSearch&&(a=u(a),s=u(s)),e=0==a.indexOf(s),p=a===s,n=v(a,s)):(e=!0,n=y.some((e=>{var n=""+(i[e]||"");return c.accentedSearch&&(n=u(n),s=u(s)),c.caseSensitive||(n=n.toLowerCase()),p=n===s,t.exact?n===s:0==n.indexOf(s)}))),r=!o.duplicates&&this.isTagDuplicate(l(i)?i.value:i),n&&!r&&(p&&e?h.push(i):"startsWith"==c.sortby&&e?d.unshift(i):d.push(i))}return"function"==typeof c.sortby?c.sortby(h.concat(d),s):h.concat(d).slice(0,p)},getMappedValue(e){var t=this.settings.dropdown.mapValueTo;return t?"function"==typeof t?t(e):e[t]||e.value:e.value},createListHTML(e){return c([],e).map(((e,t)=>{"string"!=typeof e&&"number"!=typeof e||(e={value:e});var i=this.dropdown.getMappedValue(e);e.value=i&&"string"==typeof i?o(i):i;var n=this.settings.templates.dropdownItem.apply(this,[e,this]);return n.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",` tagifySuggestionIdx="${t}">`)})).join("")}},v={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},y={wrapper:(e,t)=>`<tags class="${t.classNames.namespace} ${t.mode?`${t.classNames[t.mode+"Mode"]}`:""} ${e.className}"\n ${t.readonly?"readonly":""}\n ${t.disabled?"disabled":""}\n ${t.required?"required":""}\n tabIndex="-1">\n <span ${!t.readonly&&t.userInput?"contenteditable":""} tabIndex="0" data-placeholder="${t.placeholder||"​"}" aria-placeholder="${t.placeholder||""}"\n class="${t.classNames.input}"\n role="textbox"\n aria-autocomplete="both"\n aria-multiline="${"mix"==t.mode}"></span>\n </tags>`,tag(e,t){var i=this.settings;return`<tag title="${e.title||e.value}"\n contenteditable='false'\n spellcheck='false'\n tabIndex="${i.a11y.focusableTags?0:-1}"\n class="${i.classNames.tag} ${e.class||""}"\n ${this.getAttributes(e)}>\n <x title='' class="${i.classNames.tagX}" role='button' aria-label='remove tag'></x>\n <div>\n <span class="${i.classNames.tagText}">${e[i.tagTextProp]||e.value}</span>\n </div>\n </tag>`},dropdown(e){var t=e.dropdown,i="manual"==t.position,n=`${e.classNames.dropdown}`;return`<div class="${i?"":n} ${t.classname}" role="listbox" aria-labelledby="dropdown">\n <div class="${e.classNames.dropdownWrapper}"></div>\n </div>`},dropdownItem(e,t){return`<div ${this.getAttributes(e)}\n class='${this.settings.classNames.dropdownItem} ${e.class?e.class:""}'\n tabindex="0"\n role="option">${e.value}</div>`},dropdownItemNoMatch:null},b={customBinding(){this.customEventsList.forEach((e=>{this.on(e,this.settings.callbacks[e])}))},binding(e=!0){var t,i=this.events.callbacks,n=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e){for(var a in this.state.mainEvents=e,e&&!this.listeners.main&&(this.events.bindGlobal.call(this),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",i.onFocusBlur.bind(this)],keydown:["input",i.onKeydown.bind(this)],click:["scope",i.onClickScope.bind(this)],dblclick:["scope",i.onDoubleClickScope.bind(this)],paste:["input",i.onPaste.bind(this)],drop:["input",i.onDrop.bind(this)]})this.DOM[t[a][0]][n](a,t[a][1]);clearInterval(this.listeners.main.originalInputValueObserverInterval),this.listeners.main.originalInputValueObserverInterval=setInterval(i.observeOriginalInputValue.bind(this),500);var r=this.listeners.main.inputMutationObserver||new MutationObserver(i.onInputDOMChange.bind(this));r&&r.disconnect(),"mix"==this.settings.mode&&r.observe(this.DOM.input,{childList:!0})}},bindGlobal(e){var t,i=this.events.callbacks,n=e?"removeEventListener":"addEventListener";if(e||!this.listeners.global)for(t of(this.listeners.global=this.listeners&&this.listeners.global||[{type:this.isIE?"keydown":"input",target:this.DOM.input,cb:i[this.isIE?"onInputIE":"onInput"].bind(this)},{type:"keydown",target:window,cb:i.onWindowKeyDown.bind(this)},{type:"blur",target:this.DOM.input,cb:i.onFocusBlur.bind(this)}],this.listeners.global))t.target[n](t.type,t.cb)},unbindGlobal(){this.events.bindGlobal.call(this,!0)},callbacks:{onFocusBlur(e){var t=e.target?this.trim(e.target.textContent):"",i=this.settings,n=e.type,a=i.dropdown.enabled>=0,r={relatedTarget:e.relatedTarget},s=this.state.actions.selectOption&&(a||!i.dropdown.closeOnSelect),o=this.state.actions.addNew&&a,l=e.relatedTarget&&h.call(this,e.relatedTarget)&&this.DOM.scope.contains(e.relatedTarget);if("blur"==n){if(e.relatedTarget===this.DOM.scope)return this.dropdown.hide(),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!s&&!o)if(this.state.hasFocus="focus"==n&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=i.mode){if("focus"==n)return this.trigger("focus",r),void(0!==i.dropdown.enabled&&i.userInput||this.dropdown.show(this.value.length?"":void 0));"blur"==n&&(this.trigger("blur",r),this.loading(!1),"select"==this.settings.mode&&l&&(t=""),("select"==this.settings.mode&&t?!this.value.length||this.value[0].value!=t:t&&!this.state.actions.selectOption&&i.addTagOnBlur)&&this.addTags(t,!0),"select"!=this.settings.mode||t||this.removeTags()),this.DOM.input.removeAttribute("style"),this.dropdown.hide()}else"focus"==n?this.trigger("focus",r):"blur"==e.type&&(this.trigger("blur",r),this.loading(!1),this.dropdown.hide(),this.state.dropdown.visible=void 0,this.setStateSelection())},onWindowKeyDown(e){var t,i=document.activeElement;if(h.call(this,i)&&this.DOM.scope.contains(document.activeElement))switch(t=i.nextElementSibling,e.key){case"Backspace":this.removeTags(i),(t||this.DOM.input).focus();break;case"Enter":setTimeout(this.editTag.bind(this),0,i)}},onKeydown(e){var t=this.settings;"select"==t.mode&&t.enforceWhitelist&&this.value.length&&"Tab"!=e.key&&e.preventDefault();var i=this.trim(e.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(e)}),"mix"==t.mode){switch(e.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var n,a,o,l=document.getSelection(),c="Delete"==e.key&&l.anchorOffset==(l.anchorNode.length||0),u=1==l.anchorNode.nodeType||!l.anchorOffset&&1==l.anchorNode.previousSibling.nodeType&&l.anchorNode.previousSibling,f=r(this.DOM.input.innerHTML),p=this.getTagElms();if("edit"==t.backspace&&u)return n=1==l.anchorNode.nodeType?null:l.anchorNode.previousElementSibling,setTimeout(this.editTag.bind(this),0,n),void e.preventDefault();if(d()&&u)return o=s(u),u.hasAttribute("readonly")||u.remove(),this.DOM.input.focus(),void setTimeout((()=>{this.placeCaretAfterNode(o),this.DOM.input.click()}));if("BR"==l.anchorNode.nodeName)return;if((c||u)&&1==l.anchorNode.nodeType?a=0==l.anchorOffset?c?p[0]:null:p[l.anchorOffset-1]:c?a=l.anchorNode.nextElementSibling:u&&(a=u),3==l.anchorNode.nodeType&&!l.anchorNode.nodeValue&&l.anchorNode.previousElementSibling&&e.preventDefault(),(u||c)&&!t.backspace)return void e.preventDefault();if("Range"!=l.type&&!l.anchorOffset&&l.anchorNode==this.DOM.input&&"Delete"!=e.key)return void e.preventDefault();if("Range"!=l.type&&a&&a.hasAttribute("readonly"))return void this.placeCaretAfterNode(s(a));clearTimeout(m),m=setTimeout((()=>{var e=document.getSelection(),t=r(this.DOM.input.innerHTML),i=!c&&e.anchorNode.previousSibling;if(t.length>=f.length&&i)if(h.call(this,i)&&!i.hasAttribute("readonly")){if(this.removeTags(i),this.fixFirefoxLastTagNoCaret(),2==this.DOM.input.children.length&&"BR"==this.DOM.input.children[1].tagName)return this.DOM.input.innerHTML="",this.value.length=0,!0}else i.remove();this.value=[].map.call(p,((e,t)=>{var i=this.tagData(e);if(e.parentNode||i.readonly)return i;this.trigger("remove",{tag:e,index:t,data:i})})).filter((e=>e))}),20)}return!0}switch(e.key){case"Backspace":"select"==t.mode&&t.enforceWhitelist&&this.value.length?this.removeTags():this.state.dropdown.visible&&"manual"!=t.dropdown.position||""!=i&&8203!=i.charCodeAt(0)||(!0===t.backspace?this.removeTags():"edit"==t.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;e.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show();break;case"ArrowRight":{let e=this.state.inputSuggestion||this.state.ddItemData;if(e&&t.autoComplete.rightKey)return void this.addTags([e],!0);break}case"Tab":{let n="select"==t.mode;if(!i||n)return!0;e.preventDefault()}case"Enter":if(this.state.dropdown.visible||229==e.keyCode)return;e.preventDefault(),setTimeout((()=>{this.state.actions.selectOption||this.addTags(i,!0)}))}},onInput(e){if("mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,e);var t=this.input.normalize.call(this),i=t.length>=this.settings.dropdown.enabled,n={value:t,inputElm:this.DOM.input};n.isValid=this.validateTag({value:t}),this.state.inputText!=t&&(this.input.set.call(this,t,!1),-1!=t.search(this.settings.delimiters)?this.addTags(t)&&this.input.set.call(this):this.settings.dropdown.enabled>=0&&this.dropdown[i?"show":"hide"](t),this.trigger("input",n))},onMixTagsInput(e){var t,i,n,a,r,s,o,l,u=this.settings,h=this.value.length,f=this.getTagElms(),p=document.createDocumentFragment(),m=window.getSelection().getRangeAt(0),g=[].map.call(f,(e=>this.tagData(e).value));if("deleteContentBackward"==e.inputType&&d()&&this.events.callbacks.onKeydown.call(this,{target:e.target,key:"Backspace"}),this.value.slice().forEach((e=>{e.readonly&&!g.includes(e.value)&&p.appendChild(this.createTagElem(e))})),p.childNodes.length&&(m.insertNode(p),this.setRangeAtStartEnd(!1,p.lastChild)),f.length!=h)return this.value=[].map.call(this.getTagElms(),(e=>this.tagData(e))),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(s=window.getSelection()).rangeCount>0&&3==s.anchorNode.nodeType){if((m=s.getRangeAt(0).cloneRange()).collapse(!0),m.setStart(s.focusNode,0),n=(t=m.toString().slice(0,m.endOffset)).split(u.pattern).length-1,(i=t.match(u.pattern))&&(a=t.slice(t.lastIndexOf(i[i.length-1]))),a){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:a.match(u.pattern)[0],value:a.replace(u.pattern,"")},this.state.tag.baseOffset=s.baseOffset-this.state.tag.value.length,l=this.state.tag.value.match(u.delimiters))return this.state.tag.value=this.state.tag.value.replace(u.delimiters,""),this.state.tag.delimiters=l[0],this.addTags(this.state.tag.value,u.dropdown.clearOnSelect),void this.dropdown.hide();r=this.state.tag.value.length>=u.dropdown.enabled;try{o=(o=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&o.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(e){}(o||n<this.state.mixMode.matchedPatternCount)&&(r=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=n}setTimeout((()=>{this.update({withoutChangeEvent:!0}),this.trigger("input",c({},this.state.tag,{textContent:this.DOM.input.textContent})),this.state.tag&&this.dropdown[r?"show":"hide"](this.state.tag.value)}),10)},onInputIE(e){var t=this;setTimeout((function(){t.events.callbacks.onInput.call(t,e)}))},observeOriginalInputValue(){this.DOM.originalInput.value!=this.DOM.originalInput.tagifyValue&&this.loadOriginalValues()},onClickScope(e){var t=this.settings,i=e.target.closest("."+t.classNames.tag),n=+new Date-this.state.hasFocus;if(e.target!=this.DOM.scope){if(!e.target.classList.contains(t.classNames.tagX))return i?(this.trigger("click",{tag:i,index:this.getNodeIndex(i),data:this.tagData(i),originalEvent:this.cloneEvent(e)}),void(1!==t.editTags&&1!==t.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,e))):void(e.target==this.DOM.input&&("mix"==t.mode&&this.fixFirefoxLastTagNoCaret(),n>500)?this.state.dropdown.visible?this.dropdown.hide():0===t.dropdown.enabled&&"mix"!=t.mode&&this.dropdown.show(this.value.length?"":void 0):"select"==t.mode&&!this.state.dropdown.visible&&this.dropdown.show());this.removeTags(e.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste(e){e.preventDefault();var t,i,n=this.settings;if("select"==n.mode&&n.enforceWhitelist||!n.userInput)return!1;n.readonly||(t=e.clipboardData||window.clipboardData,i=t.getData("Text"),n.hooks.beforePaste(e,{tagify:this,pastedText:i,clipboardData:t}).then((t=>{void 0===t&&(t=i),t&&(this.injectAtCaret(t,window.getSelection().getRangeAt(0)),"mix"==this.settings.mode?this.events.callbacks.onMixTagsInput.call(this,e):this.settings.pasteAsTags?this.addTags(this.state.inputText+t,!0):this.state.inputText=t)})).catch((e=>e)))},onDrop(e){e.preventDefault()},onEditTagInput(e,t){var i=e.closest("."+this.settings.classNames.tag),n=this.getNodeIndex(i),a=this.tagData(i),r=this.input.normalize.call(this,e),s=i.innerHTML!=i.__tagifyTagData.__originalHTML,o=this.validateTag({[this.settings.tagTextProp]:r});s||!0!==e.originalIsValid||(o=!0),i.classList.toggle(this.settings.classNames.tagInvalid,!0!==o),a.__isValid=o,i.title=!0===o?a.title||a.value:o,r.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=r),this.dropdown.show(r)),this.trigger("edit:input",{tag:i,index:n,data:c({},this.value[n],{newValue:r}),originalEvent:this.cloneEvent(t)})},onEditTagFocus(e){this.state.editing={scope:e,input:e.querySelector("[contenteditable]")}},onEditTagBlur(e){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(e)){var t,i,n=this.settings,a=e.closest("."+n.classNames.tag),r=this.input.normalize.call(this,e),s=this.tagData(a).__originalData,o=a.innerHTML!=a.__tagifyTagData.__originalHTML,l=this.validateTag({[n.tagTextProp]:r});if(r)if(o){if(t=this.hasMaxTags(),i=this.getWhitelistItem(r)||c({},s,{[n.tagTextProp]:r,value:r,__isValid:l}),n.transformTag.call(this,i,s),!0!==(l=!t&&this.validateTag({[n.tagTextProp]:i[n.tagTextProp]}))){if(this.trigger("invalid",{data:i,tag:a,message:l}),n.editTags.keepInvalid)return;n.keepInvalidTags?i.__isValid=l:i=s}else n.keepInvalidTags&&(delete i.title,delete i["aria-invalid"],delete i.class);this.onEditTagDone(a,i)}else this.onEditTagDone(a,s);else this.onEditTagDone(a)}},onEditTagkeydown(e,t){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(e)}),e.key){case"Esc":case"Escape":t.innerHTML=t.__tagifyTagData.__originalHTML;case"Enter":case"Tab":e.preventDefault(),e.target.blur()}},onDoubleClickScope(e){var t,i,n=e.target.closest("."+this.settings.classNames.tag),a=this.settings;n&&a.userInput&&(t=n.classList.contains(this.settings.classNames.tagEditing),i=n.hasAttribute("readonly"),"select"==a.mode||a.readonly||t||i||!this.settings.editTags||this.editTag(n),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n)}))},onInputDOMChange(e){e.forEach((e=>{e.addedNodes.forEach((e=>{if(e)if("<div><br></div>"==e.outerHTML)e.replaceWith(document.createElement("br"));else if(1==e.nodeType&&e.querySelector(this.settings.classNames.tagSelector)){let t=document.createTextNode("");3==e.childNodes[0].nodeType&&"BR"!=e.previousSibling.nodeName&&(t=document.createTextNode("\n")),e.replaceWith(t,...[...e.childNodes].slice(0,-1)),this.placeCaretAfterNode(t.previousSibling)}else h.call(this,e)&&e.previousSibling&&"BR"==e.previousSibling.nodeName&&(e.previousSibling.replaceWith("\n"),this.placeCaretAfterNode(e.previousSibling.previousSibling))})),e.removedNodes.forEach((e=>{e&&"BR"==e.nodeName&&h.call(this,t)&&(this.removeTags(t),this.fixFirefoxLastTagNoCaret())}))}));var t=this.DOM.input.lastChild;t&&""==t.nodeValue&&t.remove(),t&&"BR"==t.nodeName||this.DOM.input.appendChild(document.createElement("br"))}}};function x(e,t){return e?e.previousElementSibling&&e.previousElementSibling.classList.contains("tagify")?(console.warn("Tagify: ","input element is already Tagified",e),this):(c(this,function(e){var t=document.createTextNode("");function i(e,i,n){n&&i.split(/\s+/g).forEach((i=>t[e+"EventListener"].call(t,i,n)))}return{off(e,t){return i("remove",e,t),this},on(e,t){return t&&"function"==typeof t&&i("add",e,t),this},trigger(i,n,a){var r;if(a=a||{cloneData:!0},i)if(e.settings.isJQueryPlugin)"remove"==i&&(i="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(i,[n]);else{try{var s="object"==typeof n?n:{value:n};if((s=a.cloneData?c({},s):s).tagify=this,n instanceof Object)for(var o in n)n[o]instanceof HTMLElement&&(s[o]=n[o]);r=new CustomEvent(i,{detail:s})}catch(e){console.warn(e)}t.dispatchEvent(r)}}}}(this)),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,this.applySettings(e,t||{}),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),p.call(this),this.getCSSVars(),setTimeout((()=>this.loadOriginalValues())),this.events.customBinding.call(this),this.events.binding.call(this),void(e.autofocus&&this.DOM.input.focus())):(console.warn("Tagify: ","input element not found",e),this)}return x.prototype={_dropdown:g,customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:beforeUpdate","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch","dropdown:scroll"],dataProps:["__isValid","__removed","__originalData","__originalHTML","__tagId"],trim(e){return this.settings.trim&&e&&"string"==typeof e?e.trim():e},parseHTML:function(e){return(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild},templates:y,parseTemplate(e,t){return e=this.settings.templates[e]||e,this.parseHTML(e.apply(this,t))},set whitelist(e){this.settings.whitelist=e&&Array.isArray(e)?e:[]},get whitelist(){return this.settings.whitelist},applySettings(e,i){f.templates=this.templates;var n=this.settings=c({},f,i);n.disabled=e.hasAttribute("disabled"),n.readonly=e.hasAttribute("readonly"),n.placeholder=e.getAttribute("placeholder")||n.placeholder||"",n.required=e.hasAttribute("required");for(let e in n.classNames)Object.defineProperty(n.classNames,e+"Selector",{get(){return"."+this[e].split(" ")[0]}});if(this.isIE&&(n.autoComplete=!1),["whitelist","blacklist"].forEach((t=>{var i=e.getAttribute("data-"+t);i&&(i=i.split(n.delimiters))instanceof Array&&(n[t]=i)})),"autoComplete"in i&&!l(i.autoComplete)&&(n.autoComplete=f.autoComplete,n.autoComplete.enabled=i.autoComplete),"mix"==n.mode&&(n.autoComplete.rightKey=!0,n.delimiters=i.delimiters||null,n.tagTextProp&&!n.dropdown.searchKeys.includes(n.tagTextProp)&&n.dropdown.searchKeys.push(n.tagTextProp)),e.pattern)try{n.pattern=new RegExp(e.pattern)}catch(e){}if(this.settings.delimiters)try{n.delimiters=new RegExp(this.settings.delimiters,"g")}catch(e){}this.TEXTS=t(t({},v),n.texts||{}),"select"!=n.mode&&n.userInput||(n.dropdown.enabled=0),n.dropdown.appendTarget=i.dropdown&&i.dropdown.appendTarget?i.dropdown.appendTarget:document.body},getAttributes(e){var t,i=this.getCustomAttributes(e),n="";for(t in i)n+=" "+t+(void 0!==e[t]?`="${i[t]}"`:"");return n},getCustomAttributes(e){if(!l(e))return"";var t,i={};for(t in e)"__"!=t.slice(0,2)&&"class"!=t&&e.hasOwnProperty(t)&&void 0!==e[t]&&(i[t]=o(e[t]));return i},setStateSelection(){var e=window.getSelection(),t={anchorOffset:e.anchorOffset,anchorNode:e.anchorNode,range:e.getRangeAt&&e.rangeCount&&e.getRangeAt(0)};return this.state.selection=t,t},getCaretGlobalPosition(){const e=document.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),i=t.startContainer,n=t.startOffset;let a,r;if(n>0)return r=document.createRange(),r.setStart(i,n-1),r.setEnd(i,n),a=r.getBoundingClientRect(),{left:a.right,top:a.top,bottom:a.bottom};if(i.getBoundingClientRect)return i.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars(){var e=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(({value:e,unit:t})=>"s"==t?1e3*e:e)(function(e){if(!e)return{};var t=(e=e.trim().split(" ")[0]).split(/\d+/g).filter((e=>e)).pop().trim();return{value:+e.split(t).filter((e=>e))[0].trim(),unit:t}}(("tag-hide-transition",e.getPropertyValue("--tag-hide-transition"))))}},build(e){var t=this.DOM;this.settings.mixMode.integrated?(t.originalInput=null,t.scope=e,t.input=e):(t.originalInput=e,t.scope=this.parseTemplate("wrapper",[e,this.settings]),t.input=t.scope.querySelector(this.settings.classNames.inputSelector),e.parentNode.insertBefore(t.scope,e))},destroy(){this.events.unbindGlobal.call(this),this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide(!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues(e){var t,i=this.settings;if(void 0===e&&(e=i.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value),this.removeAllTags({withoutChangeEvent:!0}),e)if("mix"==i.mode)this.parseMixTags(e.trim()),(t=this.DOM.input.lastChild)&&"BR"==t.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{JSON.parse(e)instanceof Array&&(e=JSON.parse(e))}catch(e){}this.addTags(e).forEach((e=>e&&e.classList.add(i.classNames.tagNoAnimation)))}else this.postUpdate();this.state.lastOriginalValueReported=i.mixMode.integrated?"":this.DOM.originalInput.value,this.state.loadedOriginalValues=!0},cloneEvent(e){var t={};for(var i in e)t[i]=e[i];return t},loading(e){return this.state.isLoading=e,this.DOM.scope.classList[e?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading(e,t){return e&&e.classList[t?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass(e,t){"string"==typeof e&&this.DOM.scope.classList.toggle(e,t)},toggleFocusClass(e){this.toggleClass(this.settings.classNames.focus,!!e)},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var e=this.DOM.originalInput,t=this.state.lastOriginalValueReported!==e.value,i=new CustomEvent("change",{bubbles:!0});t&&(this.state.lastOriginalValueReported=e.value,i.simulated=!0,e._valueTracker&&e._valueTracker.setValue(Math.random()),e.dispatchEvent(i),this.trigger("change",this.state.lastOriginalValueReported),e.value=this.state.lastOriginalValueReported)}},events:b,fixFirefoxLastTagNoCaret(){},placeCaretAfterNode(e){if(e&&e.parentNode){var t=e.nextSibling,i=window.getSelection(),n=i.getRangeAt(0);i.rangeCount&&(n.setStartAfter(t||e),n.collapse(!0),i.removeAllRanges(),i.addRange(n))}},insertAfterTag(e,t){if(t=t||this.settings.mixMode.insertAfterTag,e&&e.parentNode&&t)return t="string"==typeof t?document.createTextNode(t):t,e.parentNode.insertBefore(t,e.nextSibling),t},editTag(e,t){e=e||this.getLastTag(),t=t||{},this.dropdown.hide();var i=this.settings;function n(){return e.querySelector(i.classNames.tagTextSelector)}var a=n(),r=this.getNodeIndex(e),s=this.tagData(e),o=this.events.callbacks,l=this,u=!0;if(a){if(!(s instanceof Object&&"editable"in s)||s.editable)return a.setAttribute("contenteditable",!0),e.classList.add(i.classNames.tagEditing),this.tagData(e,{__originalData:c({},s),__originalHTML:e.innerHTML}),a.addEventListener("focus",o.onEditTagFocus.bind(this,e)),a.addEventListener("blur",(function(){setTimeout((()=>o.onEditTagBlur.call(l,n())))})),a.addEventListener("input",o.onEditTagInput.bind(this,a)),a.addEventListener("keydown",(t=>o.onEditTagkeydown.call(this,t,e))),a.focus(),this.setRangeAtStartEnd(!1,a),t.skipValidation||(u=this.editTagToggleValidity(e)),a.originalIsValid=u,this.trigger("edit:start",{tag:e,index:r,data:s,isValid:u}),this}else console.warn("Cannot find element in Tag template: .",i.classNames.tagTextSelector)},editTagToggleValidity(e,t){var i;if(t=t||this.tagData(e))return(i=!("__isValid"in t)||!0===t.__isValid)||this.removeTagsFromValue(e),this.update(),e.classList.toggle(this.settings.classNames.tagNotAllowed,!i),t.__isValid;console.warn("tag has no data: ",e,t)},onEditTagDone(e,t){t=t||{};var i={tag:e=e||this.state.editing.scope,index:this.getNodeIndex(e),previousData:this.tagData(e),data:t};this.trigger("edit:beforeUpdate",i,{cloneData:!1}),this.state.editing=!1,delete t.__originalData,delete t.__originalHTML,e&&t[this.settings.tagTextProp]?(e=this.replaceTag(e,t),this.editTagToggleValidity(e,t),this.settings.a11y.focusableTags&&e.focus()):e&&this.removeTags(e),this.trigger("edit:updated",i),this.dropdown.hide(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag(e,t){t&&t.value||(t=e.__tagifyTagData),t.__isValid&&1!=t.__isValid&&c(t,this.getInvalidTagAttrs(t,t.__isValid));var i=this.createTagElem(t);return e.parentNode.replaceChild(i,e),this.updateValueByDOMTags(),i},updateValueByDOMTags(){this.value.length=0,[].forEach.call(this.getTagElms(),(e=>{e.classList.contains(this.settings.classNames.tagNotAllowed.split(" ")[0])||this.value.push(this.tagData(e))})),this.update()},setRangeAtStartEnd(e,t){e="number"==typeof e?e:!!e,t=(t=t||this.DOM.input).lastChild||t;var i=document.getSelection();try{i.rangeCount>=1&&["Start","End"].forEach((n=>i.getRangeAt(0)["set"+n](t,e||t.length)))}catch(e){}},injectAtCaret(e,t){if(t=t||this.state.selection.range)return"string"==typeof e&&(e=document.createTextNode(e)),t.deleteContents(),t.insertNode(e),this.setRangeAtStartEnd(!1,e),this.updateValueByDOMTags(),this.update(),this},input:{set(e="",t=!0){var i=this.settings.dropdown.closeOnSelect;this.state.inputText=e,t&&(this.DOM.input.innerHTML=o(""+e)),!e&&i&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},raw(){return this.DOM.input.textContent},validate(){var e=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!e),e},normalize(e){var t=e||this.DOM.input,i=[];t.childNodes.forEach((e=>3==e.nodeType&&i.push(e.nodeValue))),i=i.join("\n");try{i=i.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(e){}return i=i.replace(/\s/g," "),this.settings.trim&&(i=i.replace(/^\s+/,"")),i},autocomplete:{suggest(e){if(this.settings.autoComplete.enabled){"string"==typeof(e=e||{})&&(e={value:e});var t=e.value?""+e.value:"",i=t.substr(0,this.state.inputText.length).toLowerCase(),n=t.substring(this.state.inputText.length);t&&this.state.inputText&&i==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",n),this.state.inputSuggestion=e):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}},set(e){var t=this.DOM.input.getAttribute("data-suggest"),i=e||(t?this.state.inputText+t:null);return!!i&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+i)):(this.input.set.call(this,i),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide(),!0)}}},getTagIdx(e){return this.value.findIndex((t=>t.__tagId==(e||{}).__tagId))},getNodeIndex(e){var t=0;if(e)for(;e=e.previousElementSibling;)t++;return t},getTagElms(...e){var t="."+[...this.settings.classNames.tag.split(" "),...e].join(".");return[].slice.call(this.DOM.scope.querySelectorAll(t))},getLastTag(){var e=this.DOM.scope.querySelectorAll(`${this.settings.classNames.tagSelector}:not(.${this.settings.classNames.tagHide}):not([readonly])`);return e[e.length-1]},tagData:(e,t,i)=>e?(t&&(e.__tagifyTagData=i?t:c({},e.__tagifyTagData||{},t)),e.__tagifyTagData):(console.warn("tag elment doesn't exist",e,t),t),isTagDuplicate(e,t){var i=this.settings;return"select"!=i.mode&&this.value.reduce(((a,r)=>n(this.trim(""+e),r.value,t||i.dropdown.caseSensitive)?a+1:a),0)},getTagIndexByValue(e){var t=[];return this.getTagElms().forEach(((i,a)=>{n(this.trim(i.textContent),e,this.settings.dropdown.caseSensitive)&&t.push(a)})),t},getTagElmByValue(e){var t=this.getTagIndexByValue(e)[0];return this.getTagElms()[t]},flashTag(e){e&&(e.classList.add(this.settings.classNames.tagFlash),setTimeout((()=>{e.classList.remove(this.settings.classNames.tagFlash)}),100))},isTagBlacklisted(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter((t=>(""+t).toLowerCase()==e)).length},isTagWhitelisted(e){return!!this.getWhitelistItem(e)},getWhitelistItem(e,t,i){t=t||"value";var a,r=this.settings;return(i=i||r.whitelist).some((i=>{var s="string"==typeof i?i:i[t]||i.value;if(n(s,e,r.dropdown.caseSensitive,r.trim))return a="string"==typeof i?{value:i}:i,!0})),a||"value"!=t||"value"==r.tagTextProp||(a=this.getWhitelistItem(e,r.tagTextProp,i)),a},validateTag(e){var t=this.settings,i="value"in e?"value":t.tagTextProp,n=this.trim(e[i]+"");return(e[i]+"").trim()?t.pattern&&t.pattern instanceof RegExp&&!t.pattern.test(n)?this.TEXTS.pattern:!t.duplicates&&this.isTagDuplicate(n,this.state.editing)?this.TEXTS.duplicate:this.isTagBlacklisted(n)||t.enforceWhitelist&&!this.isTagWhitelisted(n)?this.TEXTS.notAllowed:!t.validate||t.validate(e):this.TEXTS.empty},getInvalidTagAttrs(e,t){return{"aria-invalid":!0,class:`${e.class||""} ${this.settings.classNames.tagNotAllowed}`.trim(),title:t}},hasMaxTags(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly(e,t){var i=this.settings;document.activeElement.blur(),i[t||"readonly"]=e,this.DOM.scope[(e?"set":"remove")+"Attribute"](t||"readonly",!0),"mix"==i.mode&&(this.DOM.input.contentEditable=!e)},setDisabled(e){this.setReadonly(e,"disabled")},normalizeTags(e){var t=this.settings,i=t.whitelist,n=t.delimiters,a=t.mode,r=t.tagTextProp;t.enforceWhitelist;var s=[],o=!!i&&i[0]instanceof Object,l=e instanceof Array,c=e=>(e+"").split(n).filter((e=>e)).map((e=>({[r]:this.trim(e),value:this.trim(e)})));if("number"==typeof e&&(e=e.toString()),"string"==typeof e){if(!e.trim())return[];e=c(e)}else l&&(e=[].concat(...e.map((e=>e.value?e:c(e)))));return o&&(e.forEach((e=>{var t=s.map((e=>e.value)),i=this.dropdown.filterListItems.call(this,e[r],{exact:!0});this.settings.duplicates||(i=i.filter((e=>!t.includes(e.value))));var n=i.length>1?this.getWhitelistItem(e[r],r,i):i[0];n&&n instanceof Object?s.push(n):"mix"!=a&&(null==e.value&&(e.value=e[r]),s.push(e))})),s.length&&(e=s)),e},parseMixTags(e){var t=this.settings,i=t.mixTagsInterpolator,n=t.duplicates,a=t.transformTag,r=t.enforceWhitelist,s=t.maxTags,o=t.tagTextProp,l=[];return e=e.split(i[0]).map(((e,t)=>{var c,u,d,h=e.split(i[1]),f=h[0],p=l.length==s;try{if(f==+f)throw Error;u=JSON.parse(f)}catch(e){u=this.normalizeTags(f)[0]||{value:f}}if(p||!(h.length>1)||r&&!this.isTagWhitelisted(u.value)||!n&&this.isTagDuplicate(u.value)){if(e)return t?i[0]+e:e}else a.call(this,u),u[c=u[o]?o:"value"]=this.trim(u[c]),d=this.createTagElem(u),l.push(u),d.classList.add(this.settings.classNames.tagNoAnimation),h[0]=d.outerHTML,this.value.push(u);return h.join("")})).join(""),this.DOM.input.innerHTML=e,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach(((e,t)=>this.tagData(e,l[t]))),this.update({withoutChangeEvent:!0}),e},replaceTextWithNode(e,t){if(this.state.tag||t){t=t||this.state.tag.prefix+this.state.tag.value;var i,n,a=window.getSelection(),r=a.anchorNode,s=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return r.splitText(a.anchorOffset-s),i=r.nodeValue.lastIndexOf(t),n=r.splitText(i),e&&r.parentNode.replaceChild(e,n),!0}},selectTag(e,t){var i=this.settings;if(!i.enforceWhitelist||this.isTagWhitelisted(t.value)){this.input.set.call(this,t[i.tagTextProp]||t.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this));var n=this.getLastTag();return n?this.replaceTag(n,t):this.appendTag(e),i.enforceWhitelist&&this.DOM.input.removeAttribute("contenteditable"),this.value[0]=t,this.trigger("add",{tag:e,data:t}),this.update(),[e]}},addEmptyTag(e){var t=c({value:""},e||{}),i=this.createTagElem(t);this.tagData(i,t),this.appendTag(i),this.editTag(i,{skipValidation:!0})},addTags(e,t,i){var n=[],a=this.settings,r=document.createDocumentFragment();return i=i||a.skipInvalid,e&&0!=e.length?(e=this.normalizeTags(e),"mix"==a.mode?this.addMixTags(e):("select"==a.mode&&(t=!1),this.DOM.input.removeAttribute("style"),e.forEach((e=>{var t,s={},o=Object.assign({},e,{value:e.value+""});if((e=Object.assign({},o)).__isValid=this.hasMaxTags()||this.validateTag(e),a.transformTag.call(this,e),!0!==e.__isValid){if(i)return;c(s,this.getInvalidTagAttrs(e,e.__isValid),{__preInvalidData:o}),e.__isValid==this.TEXTS.duplicate&&this.flashTag(this.getTagElmByValue(e.value))}if(e.readonly&&(s["aria-readonly"]=!0),t=this.createTagElem(e,s),n.push(t),"select"==a.mode)return this.selectTag(t,e);r.appendChild(t),e.__isValid&&!0===e.__isValid?(this.value.push(e),this.trigger("add",{tag:t,index:this.value.length-1,data:e})):(this.trigger("invalid",{data:e,index:this.value.length,tag:t,message:e.__isValid}),a.keepInvalidTags||setTimeout((()=>this.removeTags(t,!0)),1e3)),this.dropdown.position()})),this.appendTag(r),this.update(),e.length&&t&&this.input.set.call(this),this.dropdown.refilter(),n)):("select"==a.mode&&this.removeAllTags(),n)},addMixTags(e){if((e=this.normalizeTags(e))[0].prefix||this.state.tag)return this.prefixedTextToTag(e[0]);"string"==typeof e&&(e=[{value:e}]);var t=!!this.state.selection,i=document.createDocumentFragment();return e.forEach((e=>{var t=this.createTagElem(e);i.appendChild(t),this.insertAfterTag(t)})),t?this.injectAtCaret(i):(this.DOM.input.focus(),(t=this.setStateSelection()).range.setStart(this.DOM.input,t.range.endOffset),t.range.setEnd(this.DOM.input,t.range.endOffset),this.DOM.input.appendChild(i),this.updateValueByDOMTags(),this.update()),i},prefixedTextToTag(e){var t,i=this.settings,n=this.state.tag.delimiters;if(i.transformTag.call(this,e),e.prefix=e.prefix||this.state.tag?this.state.tag.prefix:(i.pattern.source||i.pattern)[0],t=this.createTagElem(e),this.replaceTextWithNode(t)||this.DOM.input.appendChild(t),setTimeout((()=>t.classList.add(this.settings.classNames.tagNoAnimation)),300),this.value.push(e),this.update(),!n){var a=this.insertAfterTag(t)||t;this.placeCaretAfterNode(a)}return this.state.tag=null,this.trigger("add",c({},{tag:t},{data:e})),t},appendTag(e){var t=this.DOM,i=t.scope.lastElementChild;i===t.input?t.scope.insertBefore(e,i):t.scope.appendChild(e)},createTagElem(e,i){e.__tagId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));var n,a=c({},e,t({value:o(e.value+"")},i));return function(e){for(var t,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT,null,!1);t=i.nextNode();)t.textContent.trim()||t.parentNode.removeChild(t)}(n=this.parseTemplate("tag",[a])),this.tagData(n,e),n},reCheckInvalidTags(){var e=this.settings;this.getTagElms(e.classNames.tagNotAllowed).forEach(((e,t)=>{var i=this.tagData(e),n=this.hasMaxTags(),a=this.validateTag(i);if(!0===a&&!n)return i=i.__preInvalidData?i.__preInvalidData:{value:i.value},this.replaceTag(e,i);e.title=n||a}))},removeTags(e,t,i){var n;e=e&&e instanceof HTMLElement?[e]:e instanceof Array?e:e?[e]:[this.getLastTag()],n=e.reduce(((e,t)=>(t&&"string"==typeof t&&(t=this.getTagElmByValue(t)),t&&this.tagData(t)&&e.push({node:t,idx:this.getTagIdx(this.tagData(t)),data:this.tagData(t,{__removed:!0})}),e)),[]),i="number"==typeof i?i:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(i=0,this.input.set.call(this)),1==n.length&&n[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(t=!0),n.length&&this.settings.hooks.beforeRemoveTag(n,{tagify:this}).then((()=>{function e(e){e.node.parentNode&&(e.node.parentNode.removeChild(e.node),t?this.settings.keepInvalidTags&&this.trigger("remove",{tag:e.node,index:e.idx}):(this.trigger("remove",{tag:e.node,index:e.idx,data:e.data}),this.dropdown.refilter(),this.dropdown.position(),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}i&&i>10&&1==n.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(this.settings.classNames.tagHide),setTimeout(e.bind(this),i,t)}.call(this,n[0]):n.forEach(e.bind(this)),t||(this.removeTagsFromValue(n.map((e=>e.node))),this.update(),"select"==this.settings.mode&&this.DOM.input.setAttribute("contenteditable",!0))})).catch((e=>{}))},removeTagsFromDOM(){[].slice.call(this.getTagElms()).forEach((e=>e.parentNode.removeChild(e)))},removeTagsFromValue(e){(e=Array.isArray(e)?e:[e]).forEach((e=>{var t=this.tagData(e),i=this.getTagIdx(t);i>-1&&this.value.splice(i,1)}))},removeAllTags(e){e=e||{},this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":this.removeTagsFromDOM(),this.dropdown.position(),"select"==this.settings.mode&&this.input.set.call(this),this.update(e)},postUpdate(){var e=this.settings.classNames,t="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value:this.value.length;this.toggleClass(e.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(e.hasNoTags,!this.value.length),this.toggleClass(e.empty,!t)},update(e){var t=this.DOM.originalInput,i=this.getInputValue();this.settings.mixMode.integrated||(t.value=i,t.tagifyValue=t.value),this.postUpdate(),!(e||{}).withoutChangeEvent&&this.state.loadedOriginalValues&&this.triggerChangeEvent()},getInputValue(){var e=this.getCleanValue();return"mix"==this.settings.mode?this.getMixedTagsAsString(e):e.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(e):JSON.stringify(e):""},getCleanValue(e){return t=e||this.value,i=this.dataProps,t&&Array.isArray(t)&&t.map((e=>a(e,i)));var t,i},getMixedTagsAsString(){var e="",t=this,i=this.settings.mixTagsInterpolator;return function n(r){r.childNodes.forEach((r=>{if(1==r.nodeType){const s=t.tagData(r);if("BR"==r.tagName&&(e+="\r\n"),"DIV"==r.tagName||"P"==r.tagName)e+="\r\n",n(r);else if(h.call(t,r)&&s){if(s.__removed)return;e+=i[0]+JSON.stringify(a(s,t.dataProps))+i[1]}}else e+=r.textContent}))}(this.DOM.input),e}},x.prototype.removeTag=x.prototype.removeTags,x})),function(e){e(["jquery"],(function(e){return function(){function t(t,i){return t||(t=s()),(l=e("#"+t.containerId)).length||i&&(l=function(t){return(l=e("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),l}(t)),l}function i(t){for(var i=l.children(),a=i.length-1;a>=0;a--)n(e(i[a]),t)}function n(t,i,n){var a=!(!n||!n.force)&&n.force;return!(!t||!a&&0!==e(":focus",t).length||(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){o(t)}}),0))}function a(e){c&&c(e)}function r(i){function n(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(t){var i=t&&!1!==p.closeMethod?p.closeMethod:p.hideMethod,n=t&&!1!==p.closeDuration?p.closeDuration:p.hideDuration,r=t&&!1!==p.closeEasing?p.closeEasing:p.hideEasing;if(!e(":focus",v).length||t)return clearTimeout(w.intervalId),v[i]({duration:n,easing:r,complete:function(){o(v),clearTimeout(g),p.onHidden&&"hidden"!==k.state&&p.onHidden(),k.state="hidden",k.endTime=new Date,a(k)}})}function c(){(p.timeOut>0||p.extendedTimeOut>0)&&(g=setTimeout(r,p.extendedTimeOut),w.maxHideTime=parseFloat(p.extendedTimeOut),w.hideEta=(new Date).getTime()+w.maxHideTime)}function h(){clearTimeout(g),w.hideEta=0,v.stop(!0,!0)[p.showMethod]({duration:p.showDuration,easing:p.showEasing})}function f(){var e=(w.hideEta-(new Date).getTime())/w.maxHideTime*100;x.width(e+"%")}var p=s(),m=i.iconClass||p.iconClass;if(void 0!==i.optionsOverride&&(p=e.extend(p,i.optionsOverride),m=i.optionsOverride.iconClass||m),!function(e,t){if(e.preventDuplicates){if(t.message===u)return!0;u=t.message}return!1}(p,i)){d++,l=t(p,!0);var g=null,v=e("<div/>"),y=e("<div/>"),b=e("<div/>"),x=e("<div/>"),_=e(p.closeHtml),w={intervalId:null,hideEta:null,maxHideTime:null},k={toastId:d,state:"visible",startTime:new Date,options:p,map:i};return i.iconClass&&v.addClass(p.toastClass).addClass(m),function(){if(i.title){var e=i.title;p.escapeHtml&&(e=n(i.title)),y.append(e).addClass(p.titleClass),v.append(y)}}(),function(){if(i.message){var e=i.message;p.escapeHtml&&(e=n(i.message)),b.append(e).addClass(p.messageClass),v.append(b)}}(),p.closeButton&&(_.addClass(p.closeClass).attr("role","button"),v.prepend(_)),p.progressBar&&(x.addClass(p.progressClass),v.prepend(x)),p.rtl&&v.addClass("rtl"),p.newestOnTop?l.prepend(v):l.append(v),function(){var e="";switch(i.iconClass){case"toastr-success":case"toastr-info":e="polite";break;default:e="assertive"}v.attr("aria-live",e)}(),v.hide(),v[p.showMethod]({duration:p.showDuration,easing:p.showEasing,complete:p.onShown}),p.timeOut>0&&(g=setTimeout(r,p.timeOut),w.maxHideTime=parseFloat(p.timeOut),w.hideEta=(new Date).getTime()+w.maxHideTime,p.progressBar&&(w.intervalId=setInterval(f,10))),p.closeOnHover&&v.hover(h,c),!p.onclick&&p.tapToDismiss&&v.click(r),p.closeButton&&_&&_.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),p.onCloseClick&&p.onCloseClick(e),r(!0)})),p.onclick&&v.click((function(e){p.onclick(e),r()})),a(k),p.debug&&console&&console.log(k),v}}function s(){return e.extend({},{tapToDismiss:!0,toastClass:"toastr",containerId:"toastr-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toastr-error",info:"toastr-info",success:"toastr-success",warning:"toastr-warning"},iconClass:"toastr-info",positionClass:"toastr-top-right",timeOut:5e3,titleClass:"toastr-title",messageClass:"toastr-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',closeClass:"toastr-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toastr-progress",rtl:!1},f.options)}function o(e){l||(l=t()),e.is(":visible")||(e.remove(),e=null,0===l.children().length&&(l.remove(),u=void 0))}var l,c,u,d=0,h={error:"error",info:"info",success:"success",warning:"warning"},f={clear:function(e,a){var r=s();l||t(r),n(e,r,a)||i(r)},remove:function(i){var n=s();return l||t(n),i&&0===e(":focus",i).length?void o(i):void(l.children().length&&l.remove())},error:function(e,t,i){return r({type:h.error,iconClass:s().iconClasses.error,message:e,optionsOverride:i,title:t})},getContainer:t,info:function(e,t,i){return r({type:h.info,iconClass:s().iconClasses.info,message:e,optionsOverride:i,title:t})},options:{},subscribe:function(e){c=e},success:function(e,t,i){return r({type:h.success,iconClass:s().iconClasses.success,message:e,optionsOverride:i,title:t})},version:"2.1.4",warning:function(e,t,i){return r({type:h.warning,iconClass:s().iconClasses.warning,message:e,optionsOverride:i,title:t})}};return f}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).ApexCharts=t()}(this,(function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var p=function(){function i(){t(this,i)}return n(i,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),n=e<0?0:255,a=e<0?-1*e:e,r=parseInt(i[0].slice(4),10),s=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((n-r)*a)+r)+","+(Math.round((n-s)*a)+s)+","+(Math.round((n-o)*a)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),n=e<0?0:255,a=e<0?-1*e:e,r=i>>16,s=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((n-r)*a)+r)+256*(Math.round((n-s)*a)+s)+(Math.round((n-o)*a)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return i.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&null!=t}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){i.isObject(t[r])&&r in e?n[r]=i.extend(e[r],t[r]):Object.assign(n,a({},r,t[r]))})),n}},{key:"extendArray",value:function(e,t){var n=[];return e.map((function(e){n.push(i.extend(t,e))})),n}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var i=[],n=0;n<t.length;n++)i[n]=this.clone(t[n]);return i}if("[object Null]"===Object.prototype.toString.call(t))return null;if("[object Date]"===Object.prototype.toString.call(t))return t;if("object"===e(t)){var a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]=this.clone(t[r]));return a}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var i="",n=e<0?"-":"",a=t[0].replace(".",""),r=Number(t[1])+1;if(r<0){for(i=n+"0.";r++;)i+="0";return i+a.replace(/^-/,"")}for(r-=a.length;r--;)i+="0";return a+i}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,n=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var i=e.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!==t&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],n=2*Math.PI/t,a=0;a<t;a++){var r={};r.x=e*Math.sin(a*n),r.y=-e*Math.cos(a*n),i.push(r)}return i}},{key:"polarToCartesian",value:function(e,t,i,n){var a=(n-90)*Math.PI/180;return{x:e+i*Math.cos(a),y:t+i*Math.sin(a)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=e.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var n=i-e.length+1;n--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%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 e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}}]),i}(),m=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.setEasingFunctions()}return n(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,n){e.attr(t).animate(n).attr(i)}},{key:"animateMarker",value:function(e,t,i,n,a,r){t||(t=0),e.attr({r:t,width:t,height:t}).animate(n,a).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(e,t,i,n,a){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(n,a).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,n,a){e.attr(t).animate(n).attr(i).afterAll((function(){return a()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,n=e.j,a=e.fill,r=e.pathFrom,s=e.pathTo,o=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,i,n,"line"!==c.config.chart.type||c.globals.comboCharts?a:"stroke",r,s,o,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){e.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,n,a,r,s,o){var l=this,c=this.w;a||(a=e.attr("pathFrom")),r||(r=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(s=1),"M 0 ".concat(c.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),c.globals.shouldAnimate||(s=1),e.plot(a).animate(1,c.globals.easing,o).plot(a).animate(s,c.globals.easing,o).plot(r).afterAll((function(){p.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==n&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),g=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var n=this,a=this.w,r=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=a.config.chart.dropShadow;(i.enabled?n.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var n=this,a=this.w,r=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=a.config.chart.dropShadow;(i.enabled?n.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:r}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:n});break;case"darken":this.addDarkenFilter(e,t,{intensity:n})}}},{key:"addShadow",value:function(e,t,i){var n=i.blur,a=i.top,r=i.left,s=i.color,o=i.opacity,l=e.flood(Array.isArray(s)?s[t]:s,o).composite(e.sourceAlpha,"in").offset(r,a).gaussianBlur(n).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t.top,a=t.left,r=t.blur,s=t.color,o=t.opacity,l=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),p.isIE()&&"radialBar"===c.config.chart.type||(s=Array.isArray(s)?s[i]:s,e.filter((function(e){var t;t=p.isSafari()||p.isFirefox()||p.isIE()?e.flood(s,o).composite(e.sourceAlpha,"in").offset(a,n).gaussianBlur(r):e.flood(s,o).composite(e.sourceAlpha,"in").offset(a,n).gaussianBlur(r).merge(e.source),e.blend(e.source,t)})),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var n=this.w;if(void 0!==n.globals.selectedDataPoints[t]&&n.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var a=n.config.states.active.filter;"none"!==a&&this.applyFilter(e,t,a.type,a.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),v=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"drawLine",value:function(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt",l=this.w,c=l.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:n,stroke:a,"stroke-dasharray":r,"stroke-width":s,"stroke-linecap":o});return c}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=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,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w,d=u.globals.dom.Paper.rect();return d.attr({x:e,y:t,width:i>0?i:0,height:n>0?n:0,rx:a,ry:a,opacity:s,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",r),d}},{key:"drawPolygon",value:function(e){var t=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,r=a.globals.dom.Paper.polygon(e).attr({fill:n,stroke:t,"stroke-width":i});return r}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;e<0&&(e=0);var n=i.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,i=void 0===t?"":t,n=e.stroke,a=void 0===n?"#a8a8a8":n,r=e.strokeWidth,s=void 0===r?1:r,o=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,d=void 0===u?1:u,h=e.classes,f=e.strokeLinecap,p=void 0===f?null:f,m=e.strokeDashArray,g=void 0===m?0:m,v=this.w;return null===p&&(p=v.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:a,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":s,"stroke-dasharray":g,class:h})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=t.globals.dom.Paper.group();return null!==e&&i.attr(e),i}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=["L",e,t].join(" "):"H"===i?n=["H",e].join(" "):"V"===i&&(n=["V",t].join(" ")),n}},{key:"curve",value:function(e,t,i,n,a,r){return["C",e,t,i,n,a,r].join(" ")}},{key:"quadraticCurve",value:function(e,t,i,n){return["Q",e,t,i,n].join(" ")}},{key:"arc",value:function(e,t,i,n,a,r,s){var o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";o&&(l="a");var c=[l,e,t,i,n,a,r,s].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,n=e.realIndex,a=e.pathFrom,r=e.pathTo,o=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,u=e.fill,d=e.animationDelay,h=e.initialSpeed,f=e.dataChangeSpeed,p=e.className,v=e.shouldClipToGrid,y=void 0===v||v,b=e.bindEventsOnPaths,x=void 0===b||b,_=e.drawShadow,w=void 0===_||_,k=this.w,M=new g(this.ctx),L=new m(this.ctx),S=this.w.config.chart.animations.enabled,A=S&&this.w.config.chart.animations.dynamicAnimation.enabled,T=!!(S&&!k.globals.resized||A&&k.globals.dataChanged&&k.globals.shouldAnimate);T?t=a:(t=r,k.globals.animationEnded=!0);var C,D=k.config.stroke.dashArray;C=Array.isArray(D)?D[n]:k.config.stroke.dashArray;var E=this.drawPath({d:t,stroke:o,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:C});if(E.attr("index",n),y&&E.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),"none"!==k.config.states.normal.filter.type)M.getDefaultFilter(E,n);else if(k.config.chart.dropShadow.enabled&&w&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&-1!==k.config.chart.dropShadow.enabledOnSeries.indexOf(n))){var O=k.config.chart.dropShadow;M.dropShadow(E,O,n)}x&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:r,pathFrom:a});var P={el:E,j:i,realIndex:n,pathFrom:a,pathTo:r,fill:u,strokeWidth:l,delay:d};return!S||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||L.showDelayedElements():L.animatePathsGradually(s(s({},P),{},{speed:h})),k.globals.dataChanged&&A&&T&&L.animatePathsGradually(s(s({},P),{},{speed:f})),E}},{key:"drawPattern",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=this.w,s=r.globals.dom.Paper.pattern(t,i,(function(r){"horizontalLines"===e?r.line(0,0,i,0).stroke({color:n,width:a+1}):"verticalLines"===e?r.line(0,0,0,t).stroke({color:n,width:a+1}):"slantedLines"===e?r.line(0,0,t,i).stroke({color:n,width:a}):"squares"===e?r.rect(t,i).fill("none").stroke({color:n,width:a}):"circles"===e&&r.circle(t).fill("none").stroke({color:n,width:a})}));return s}},{key:"drawGradient",value:function(e,t,i,n,a){var r,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=p.hexToRgba(t,n)),i.length<9&&0===i.indexOf("#")&&(i=p.hexToRgba(i,a));var d=0,h=1,f=1,m=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,h=void 0!==o[1]?o[1]/100:1,f=void 0!==o[2]?o[2]/100:1,m=void 0!==o[3]?o[3]/100:null);var g=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(r=null===l||0===l.length?u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){e.at(d,t,n),e.at(h,i,a),e.at(f,i,a),null!==m&&e.at(m,t,n)})):u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),g){var v=u.globals.gridWidth/2,y=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:v,cy:y,r:s}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?r.from(0,0).to(0,1):"diagonal"===e?r.from(0,0).to(1,1):"horizontal"===e?r.from(0,1).to(1,1):"diagonal2"===e&&r.from(1,0).to(0,1);return r}},{key:"drawText",value:function(e){var t,i=e.x,n=e.y,a=e.text,r=e.textAnchor,s=e.fontSize,o=e.fontFamily,l=e.fontWeight,c=e.foreColor,u=e.opacity,d=e.cssClass,h=void 0===d?"":d,f=e.isPlainText,p=void 0===f||f,m=this.w;return void 0===a&&(a=""),r||(r="start"),c&&c.length||(c=m.config.chart.foreColor),o=o||m.config.chart.fontFamily,l=l||"regular",(t=Array.isArray(a)?m.globals.dom.Paper.text((function(e){for(var t=0;t<a.length;t++)0===t?e.tspan(a[t]):e.tspan(a[t]).newLine()})):p?m.globals.dom.Paper.plain(a):m.globals.dom.Paper.text((function(e){return e.tspan(a)}))).attr({x:i,y:n,"text-anchor":r,"dominant-baseline":"auto","font-size":s,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+h}),t.node.style.fontFamily=o,t.node.style.opacity=u,t}},{key:"drawMarker",value:function(e,t,i){e=e||0;var n=i.pSize||0,a=null;if("square"===i.shape||"rect"===i.shape){var r=void 0===i.pRadius?n/2:i.pRadius;null!==t&&n||(n=0,r=0);var s=1.2*n+r,o=this.drawRect(s,s,s,s,r);o.attr({x:e-s/2,y:t-s/2,cx:e,cy:t,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=o}else"circle"!==i.shape&&i.shape||(p.isNumber(t)||(n=0,t=0),a=this.drawCircle(n,{cx:e,cy:t,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(e,t){var i=this.w,n=new g(this.ctx),a=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}]),("none"===i.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var s=i.config.states.hover.filter;n.applyFilter(e,a,s.type,s.value)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,n=new g(this.ctx),a=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,n=new g(this.ctx),a=parseInt(e.node.getAttribute("index"),10),r=parseInt(e.node.getAttribute("j"),10),s="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[a].indexOf(r)>-1){var o=i.globals.selectedDataPoints[a].indexOf(r);i.globals.selectedDataPoints[a].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),n.getDefaultFilter(e,a)}))};u(l),u(c)}e.node.setAttribute("selected","true"),s="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(r)}if("true"===s){var d=i.config.states.active.filter;"none"!==d&&n.applyFilter(e,a,d.type,d.value)}else"none"!==i.config.states.active.filter.type&&n.getDefaultFilter(e,a);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:r,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t=e.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,n){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,s=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});n&&s.attr("transform",n),r.globals.dom.Paper.add(s);var o=s.bbox();return a||(o=s.node.getBoundingClientRect()),s.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var n=t.length-3;n>0;n-=3)if(e.getSubStringLength(0,n)<=i/1.1)return void(e.textContent=t.substring(0,n)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),e}(),y=function(){function e(i){t(this,e),this.w=i.w,this.annoCtx=i}return n(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===e.label.orientation){var n=null!==t?t:0,a=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==a){var r=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-r.height+4),"top"===e.label.position?a.setAttribute("y",parseFloat(a.getAttribute("y"))+r.width):a.setAttribute("y",parseFloat(a.getAttribute("y"))-r.width);var s=this.annoCtx.graphics.rotateAroundCenter(a),o=s.x,l=s.y;a.setAttribute("transform","rotate(-90 ".concat(o," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||!t.label.text||t.label.text&&!t.label.text.trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),r=t.label.style.padding.left,s=t.label.style.padding.right,o=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(o=t.label.style.padding.left,l=t.label.style.padding.right,r=t.label.style.padding.top,s=t.label.style.padding.bottom);var c=a.left-n.left-r,u=a.top-n.top-o,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,u,a.width+r+s,a.height+o+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(i,n,a){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(n,"']"));if(r){var s=r.parentNode,o=e.addBackgroundToAnno(r,i);o&&s.insertBefore(o.node,r)}};t.config.annotations.xaxis.map((function(e,t){i(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){i(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){i(e,t,"point")}))}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var n=t.globals.labels.indexOf(e),a=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return a&&(i=parseFloat(a.getAttribute("x"))),i}}]),e}(),b=function(){function e(i){t(this,e),this.w=i.w,this.annoCtx=i,this.invertAxis=this.annoCtx.invertAxis}return n(e,[{key:"addXaxisAnnotation",value:function(e,t,i){var n=this.w,a=this.invertAxis?n.globals.minY:n.globals.minX,r=this.invertAxis?n.globals.maxY:n.globals.maxX,s=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,o=(e.x-a)/(s/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(r-e.x)/(s/n.globals.gridWidth));var l=e.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(o=this.annoCtx.helpers.getStringX(e.x));var c=e.strokeDashArray;if(p.isNumber(o)){if(null===e.x2||void 0===e.x2){var u=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,n.globals.gridHeight+e.offsetY,e.borderColor,c,e.borderWidth);t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}else{var d=(e.x2-a)/(s/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(d=(r-e.x2)/(s/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(d=this.annoCtx.helpers.getStringX(e.x2)),d<o){var h=o;o=d,d=h}var f=this.annoCtx.graphics.drawRect(o+e.offsetX,0+e.offsetY,d-o,n.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,c);f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}var m="top"===e.label.position?4:n.globals.gridHeight,g=this.annoCtx.graphics.getTextRects(l,parseFloat(e.label.style.fontSize)),v=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:m+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?g.width/2-12:-g.width/2:0),text:l,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});v.attr({rel:i}),t.appendChild(v.node),this.annoCtx.helpers.setOrientations(e,i)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,n){e.addXaxisAnnotation(t,i.node,n)})),i}}]),e}(),x=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"getStackedSeriesTotals",value:function(){var e=this.w,t=[];if(0===e.globals.series.length)return t;for(var i=0;i<e.globals.series[e.globals.maxValsInArrayIndex].length;i++){for(var n=0,a=0;a<e.globals.series.length;a++)void 0!==e.globals.series[a][i]&&(n+=e.globals.series[a][i]);t.push(n)}return e.globals.stackedSeriesTotals=t,t}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,i){return e===i[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map((function(e,i){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var i=0;if(Array.isArray(e))for(var n=0;n<e.length;n++)i+=e[n];else i+=e;return i}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map((function(n,a){for(var r=0,s=0;s<n.length;s++)i.globals.seriesX[a][s]>e&&i.globals.seriesX[a][s]<t&&(r+=n[s]);return r}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,i){var n=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var r=e.globals.stackedSeriesTotals[a],s=0;r&&(s=100*t[a]/r),n.push(s)}else{var o=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);n.push(o)}return n}))}},{key:"getCalculatedRatios",value:function(){var e,t,i,n,a=this.w.globals,r=[],s=0,o=[],l=.1,c=0;if(a.yRange=[],a.isMultipleYAxis)for(var u=0;u<a.minYArr.length;u++)a.yRange.push(Math.abs(a.minYArr[u]-a.maxYArr[u])),o.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++)r.push(a.yRange[d]/a.gridHeight);if(t=a.xRange/a.gridWidth,i=Math.abs(a.initialMaxX-a.initialMinX)/a.gridWidth,e=a.yRange/a.gridWidth,n=a.xRange/a.gridHeight,(s=a.zRange/a.gridHeight*16)||(s=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),a.isMultipleYAxis){o=[];for(var h=0;h<r.length;h++)o.push(-a.minYArr[h]/r[h])}else o.push(-a.minY/r[0]),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(l=-a.minY/e,c=a.minX/t);return{yRatio:r,invertedYRatio:e,zRatio:s,xRatio:t,initialXRatio:i,invertedXRatio:n,baseLineInvertedY:l,baseLineY:o,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map((function(e,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(e,n)})):e})),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getLogVal",value:function(e,t){var i=this.w;return(Math.log(e)-Math.log(i.globals.minYArr[t]))/(Math.log(i.globals.maxYArr[t])-Math.log(i.globals.minYArr[t]))}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,n=this.w.globals;return n.yLogRatio=e.slice(),n.logYRange=n.yRange.map((function(e,a){if(i.config.yaxis[a]&&t.w.config.yaxis[a].logarithmic){var r,s=-Number.MAX_VALUE,o=Number.MIN_VALUE;return n.seriesLog.forEach((function(e,t){e.forEach((function(e){i.config.yaxis[t]&&i.config.yaxis[t].logarithmic&&(s=Math.max(e,s),o=Math.min(e,o))}))})),r=Math.pow(n.yRange[a],Math.abs(o-s)/n.yRange[a]),n.yLogRatio[a]=r/n.gridHeight,r}})),n.invalidLogScale?e.slice():n.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,i=0,n=0;return e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||i++,void 0!==e.type&&n++})),n>1&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),_=function(){function e(i){t(this,e),this.w=i.w,this.annoCtx=i}return n(e,[{key:"addYaxisAnnotation",value:function(e,t,i){var n,a=this.w,r=e.strokeDashArray,s=this._getY1Y2("y1",e),o=e.label.text;if(null===e.y2||void 0===e.y2){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),s+e.offsetY,e.borderColor,r,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((n=this._getY1Y2("y2",e))>s){var c=s;s=n,n=c}var u=this.annoCtx.graphics.drawRect(0+e.offsetX,n+e.offsetY,this._getYAxisAnnotationWidth(e),s-n,0,e.fillColor,e.opacity,1,e.borderColor,r);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}var d="right"===e.label.position?a.globals.gridWidth:0,h=this.annoCtx.graphics.drawText({x:d+e.label.offsetX,y:(n||s)+e.label.offsetY-3,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});h.attr({rel:i}),t.appendChild(h.node)}},{key:"_getY1Y2",value:function(e,t){var i,n="y1"===e?t.y:t.y2,a=this.w;if(this.annoCtx.invertAxis){var r=a.globals.labels.indexOf(n);a.config.xaxis.convertedCatToNumeric&&(r=a.globals.categoryLabels.indexOf(n));var s=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");s&&(i=parseFloat(s.getAttribute("y")))}else{var o;o=a.config.yaxis[t.yAxisIndex].logarithmic?(n=new x(this.annoCtx.ctx).getLogVal(n,t.yAxisIndex))/a.globals.yLogRatio[t.yAxisIndex]:(n-a.globals.minYArr[t.yAxisIndex])/(a.globals.yRange[t.yAxisIndex]/a.globals.gridHeight),i=a.globals.gridHeight-o,a.config.yaxis[t.yAxisIndex]&&a.config.yaxis[t.yAxisIndex].reversed&&(i=o)}return i}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,n){e.addYaxisAnnotation(t,i.node,n)})),i}}]),e}(),w=function(){function e(i){t(this,e),this.w=i.w,this.annoCtx=i}return n(e,[{key:"addPointAnnotation",value:function(e,t,i){var n=this.w,a=0,r=0,s=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var o=parseFloat(e.y);if("string"==typeof e.x){var l=n.globals.labels.indexOf(e.x);n.config.xaxis.convertedCatToNumeric&&(l=n.globals.categoryLabels.indexOf(e.x)),a=this.annoCtx.helpers.getStringX(e.x),null===e.y&&(o=n.globals.series[e.seriesIndex][l])}else a=(e.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var c,u=[],d=0,h=0;h<=e.seriesIndex;h++){var f=n.config.yaxis[h].seriesName;if(f)for(var m=h+1;m<=e.seriesIndex;m++)n.config.yaxis[m].seriesName===f&&-1===u.indexOf(f)&&(d++,u.push(f))}if(n.config.yaxis[e.yAxisIndex].logarithmic)c=(o=new x(this.annoCtx.ctx).getLogVal(o,e.yAxisIndex))/n.globals.yLogRatio[e.yAxisIndex];else{var g=e.yAxisIndex+d;c=(o-n.globals.minYArr[g])/(n.globals.yRange[g]/n.globals.gridHeight)}if(r=n.globals.gridHeight-c-parseFloat(e.label.style.fontSize)-e.marker.size,s=n.globals.gridHeight-c,n.config.yaxis[e.yAxisIndex]&&n.config.yaxis[e.yAxisIndex].reversed&&(r=c+parseFloat(e.label.style.fontSize)+e.marker.size,s=c),p.isNumber(a)){var v={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},y=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,v);t.appendChild(y.node);var b=e.label.text?e.label.text:"",_=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:r+e.label.offsetY,text:b,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(_.attr({rel:i}),t.appendChild(_.node),e.customSVG.SVG){var w=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});w.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(r+e.customSVG.offsetY,")")}),w.node.innerHTML=e.customSVG.SVG,t.appendChild(w.node)}if(e.image.path){var k=e.image.width?e.image.width:20,M=e.image.height?e.image.height:20;this.annoCtx.addImage({x:a+e.image.offsetX-k/2,y:r+e.image.offsetY-M/2,width:k,height:M,path:e.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,n){e.addPointAnnotation(t,i.node,n)})),i}}]),e}(),k={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"}}},M=function(){function e(){t(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!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={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return n(e,[{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:[k],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(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.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(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),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(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),L=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.graphics=new v(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new y(this),this.xAxisAnnotations=new b(this),this.yAxisAnnotations=new _(this),this.pointsAnnotations=new w(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return n(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,r=[t,i,n],s=[i.node,t.node,n.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(r[o]),!a||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&s[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:s[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,i){e.addImage(t,i)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,i){e.addText(t,i)}))}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,n=e.y,a=e.text,r=e.textAnchor,s=e.foreColor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,m=e.borderColor,g=e.appendTo,v=void 0===g?".apexcharts-annotations":g,y=e.paddingLeft,b=void 0===y?4:y,x=e.paddingRight,_=void 0===x?4:x,w=e.paddingBottom,k=void 0===w?2:w,M=e.paddingTop,L=void 0===M?2:M,S=this.w,A=this.graphics.drawText({x:i,y:n,text:a,textAnchor:r||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||S.config.chart.fontFamily,foreColor:s||S.config.chart.foreColor,cssClass:u}),T=S.globals.dom.baseEl.querySelector(v);T&&T.appendChild(A.node);var C=A.bbox();if(a){var D=this.graphics.drawRect(C.x-b,C.y-L,C.width+b+_,C.height+k+L,p,d||"transparent",1,h,m,f);T.insertBefore(D.node,A.node)}}},{key:"addImage",value:function(e,t){var i=this.w,n=e.path,a=e.x,r=void 0===a?0:a,s=e.y,o=void 0===s?0:s,l=e.width,c=void 0===l?20:l,u=e.height,d=void 0===u?20:u,h=e.appendTo,f=void 0===h?".apexcharts-annotations":h,p=i.globals.dom.Paper.image(n);p.size(c,d).move(r,o);var m=i.globals.dom.baseEl.querySelector(f);m&&m.appendChild(p.node)}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,n=e.context,a=e.type,r=e.contextMethod,s=n,o=s.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),c=l.childNodes.length+1,u=new M,d=Object.assign({},"xaxis"===a?u.xAxisAnnotation:"yaxis"===a?u.yAxisAnnotation:u.pointAnnotation),h=p.extend(d,t);switch(a){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(c,"']")),m=this.helpers.addBackgroundToAnno(f,h);return m&&l.insertBefore(m.node,f),i&&o.globals.memory.methodsToExec.push({context:s,id:h.id?h.id:p.randomId(),method:r,label:"addAnnotation",params:t}),n}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,i){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(i,1)})),i=p.listToArray(i),Array.prototype.forEach.call(i,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var i=e.w,n=i.globals.dom.baseEl.querySelectorAll(".".concat(t));n&&(i.globals.memory.methodsToExec.map((function(e,n){e.id===t&&i.globals.memory.methodsToExec.splice(n,1)})),Array.prototype.forEach.call(n,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),S=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.opts=null,this.seriesIndex=0}return n(e,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,n=parseInt(t.globals.gridWidth,10),a=parseInt(t.globals.gridHeight,10),r=n>a?n:a,s=e.image,o=0,l=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=r+1,l=r):(o=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");v.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",s),v.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w;return("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||"heatmap"===t.config.chart.type||"treemap"===t.config.chart.type?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,n,a,r=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var s=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(s=t.globals.seriesColors[this.seriesIndex]),"function"==typeof s&&(s=s({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;e.color&&(s=e.color);var c=s;if(-1===s.indexOf("rgb")?s.length<9&&(c=p.hexToRgba(s,l)):s.indexOf("rgba")>-1&&(l=p.getOpacityFromRGBA(s)),e.opacity&&(l=e.opacity),"pattern"===o&&(n=this.handlePatternFill(n,s,l,c)),"gradient"===o&&(a=this.handleGradientFill(s,l,this.seriesIndex)),"image"===o){var u=r.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d)}),i="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d,")")}else i="gradient"===o?a:"pattern"===o?n:c;return e.solid&&(i=c),i}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,n=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(e,t,i,n){var a=this.w.config,r=this.opts,s=new v(this.ctx),o=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=t;return Array.isArray(a.fill.pattern.style)?void 0!==a.fill.pattern.style[r.seriesNumber]?s.drawPattern(a.fill.pattern.style[r.seriesNumber],a.fill.pattern.width,a.fill.pattern.height,l,o,i):n:s.drawPattern(a.fill.pattern.style,a.fill.pattern.width,a.fill.pattern.height,l,o,i)}},{key:"handleGradientFill",value:function(e,t,i){var n,a=this.w.config,r=this.opts,s=new v(this.ctx),o=new p,l=a.fill.gradient.type,c=e,u=void 0===a.fill.gradient.opacityFrom?t:Array.isArray(a.fill.gradient.opacityFrom)?a.fill.gradient.opacityFrom[i]:a.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(u=p.getOpacityFromRGBA(c));var d=void 0===a.fill.gradient.opacityTo?t: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?o.shadeColor(-1*parseFloat(a.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?p.rgb2hex(e):e):o.shadeColor(parseFloat(a.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?p.rgb2hex(e):e);else if(a.fill.gradient.gradientToColors[r.seriesNumber]){var h=a.fill.gradient.gradientToColors[r.seriesNumber];n=h,h.indexOf("rgba")>-1&&(d=p.getOpacityFromRGBA(h))}else n=e;if(a.fill.gradient.inverseColors){var f=c;c=n,n=f}return c.indexOf("rgb")>-1&&(c=p.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=p.rgb2hex(n)),s.drawGradient(l,c,n,u,d,r.size,a.fill.gradient.stops,a.fill.gradient.colorStops,i)}}]),e}(),A=function(){function e(i,n){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,i,n){var a,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=this.w,o=t,l=e,c=null,u=new v(this.ctx);if((s.globals.markers.size[t]>0||r)&&(c=u.group({class:r?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(s.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var h=i;1===i&&0===d&&(h=0),1===i&&1===d&&(h=1);var f="apexcharts-marker";"line"!==s.config.chart.type&&"area"!==s.config.chart.type||s.globals.comboCharts||s.config.tooltip.intersect||(f+=" no-pointer-events");var m=Array.isArray(s.config.markers.size)?s.globals.markers.size[t]>0:s.config.markers.size>0;if(m||r){p.isNumber(l.y[d])?f+=" w".concat(p.randomId()):f="apexcharts-nullpoint";var y=this.getMarkerConfig({cssClass:f,seriesIndex:t,dataPointIndex:h});s.config.series[o].data[h]&&(s.config.series[o].data[h].fillColor&&(y.pointFillColor=s.config.series[o].data[h].fillColor),s.config.series[o].data[h].strokeColor&&(y.pointStrokeColor=s.config.series[o].data[h].strokeColor)),n&&(y.pSize=n),(a=u.drawMarker(l.x[d],l.y[d],y)).attr("rel",h),a.attr("j",h),a.attr("index",t),a.node.setAttribute("default-marker-size",y.pSize);var b=new g(this.ctx);b.setSelectionFilter(a,t,h),this.addEvents(a),c&&c.add(a)}else void 0===s.globals.pointsArray[t]&&(s.globals.pointsArray[t]=[]),s.globals.pointsArray[t].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,n=e.dataPointIndex,a=void 0===n?null:n,r=e.finishRadius,s=void 0===r?null:r,o=this.w,l=this.getMarkerStyle(i),c=o.globals.markers.size[i],u=o.config.markers;return null!==a&&u.discrete.length&&u.discrete.map((function(e){e.seriesIndex===i&&e.dataPointIndex===a&&(l.pointStrokeColor=e.strokeColor,l.pointFillColor=e.fillColor,c=e.size,l.pointShape=e.shape)})),{pSize:null===s?c:s,pRadius:u.radius,width:Array.isArray(u.width)?u.width[i]:u.width,height:Array.isArray(u.height)?u.height[i]:u.height,pointStrokeWidth:Array.isArray(u.strokeWidth)?u.strokeWidth[i]:u.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(u.shape)?u.shape[i]:u.shape),class:t,pointStrokeOpacity:Array.isArray(u.strokeOpacity)?u.strokeOpacity[i]:u.strokeOpacity,pointStrokeDashArray:Array.isArray(u.strokeDashArray)?u.strokeDashArray[i]:u.strokeDashArray,pointFillOpacity:Array.isArray(u.fillOpacity)?u.fillOpacity[i]:u.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new v(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,n=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[e]:n,pointFillColor:Array.isArray(i)?i[e]:i}}}]),e}(),T=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return n(e,[{key:"draw",value:function(e,t,i){var n=this.w,a=new v(this.ctx),r=i.realIndex,s=i.pointsPos,o=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(s.x))for(var u=0;u<s.x.length;u++){var d=t+1,h=!0;0===t&&0===u&&(d=0),0===t&&1===u&&(d=1);var f=0,p=n.globals.markers.size[r];if(o!==1/0){p=n.globals.seriesZ[r][d]/o;var m=n.config.plotOptions.bubble;m.minBubbleRadius&&p<m.minBubbleRadius&&(p=m.minBubbleRadius),m.maxBubbleRadius&&p>m.maxBubbleRadius&&(p=m.maxBubbleRadius)}n.config.chart.animations.enabled||(f=p);var g=s.x[u],y=s.y[u];if(f=f||0,null!==y&&void 0!==n.globals.series[r][d]||(h=!1),h){var b=this.drawPoint(g,y,f,p,r,d,t);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(e,t,i,n,a,r,s){var o=this.w,l=a,c=new m(this.ctx),u=new g(this.ctx),d=new S(this.ctx),h=new A(this.ctx),f=new v(this.ctx),p=h.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[a]&&"bubble"===o.config.series[a].type?n:null});n=p.pSize;var y,b=d.fillPath({seriesNumber:a,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[a][s]});if("circle"===p.shape?y=f.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(y=f.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),o.config.series[l].data[r]&&o.config.series[l].data[r].fillColor&&(b=o.config.series[l].data[r].fillColor),y.attr({x:e-p.width/2-p.pointStrokeWidth/2,y:t-p.height/2-p.pointStrokeWidth/2,cx:e,cy:t,fill:b,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:n,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var x=o.config.chart.dropShadow;u.dropShadow(y,x,a)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var _=o.config.chart.animations.speed;c.animateMarker(y,0,"circle"===p.shape?n:{width:p.width,height:p.height},_,o.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(y)}),100)}))}if(o.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var w,k,M,L,T=o.config.chart.animations.dynamicAnimation.speed;null!=(L=o.globals.previousPaths[a]&&o.globals.previousPaths[a][s])&&(w=L.x,k=L.y,M=void 0!==L.r?L.r:n);for(var C=0;C<o.globals.collapsedSeries.length;C++)o.globals.collapsedSeries[C].index===a&&(T=1,n=0);0===e&&0===t&&(n=0),c.animateCircle(y,{cx:w,cy:k,r:M},{cx:e,cy:t,r:n},T,o.globals.easing)}else y.attr({r:n});return y.attr({rel:r,j:r,index:a,"default-marker-size":n}),u.setSelectionFilter(y,a,r),h.addEvents(y),y.node.classList.add("apexcharts-marker"),y}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),C=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"dataLabelsCorrection",value:function(e,t,i,n,a,r,s){var o=this.w,l=!1,c=new v(this.ctx).getTextRects(i,s),u=c.width,d=c.height;t<0&&(t=0),t>o.globals.gridHeight+d&&(t=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[n]&&(o.globals.dataLabelsRects[n]=[]),o.globals.dataLabelsRects[n].push({x:e,y:t,width:u,height:d});var h=o.globals.dataLabelsRects[n].length-2,f=void 0!==o.globals.lastDrawnDataLabelsIndexes[n]?o.globals.lastDrawnDataLabelsIndexes[n][o.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==o.globals.dataLabelsRects[n][h]){var p=o.globals.dataLabelsRects[n][f];(e>p.x+p.width+2||t>p.y+p.height+2||e+u<p.x)&&(l=!0)}return(0===a||r)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e,t,i){var n=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=this.w,s=new v(this.ctx),o=r.config.dataLabels,l=0,c=0,u=i,d=null;if(!o.enabled||!Array.isArray(e.x))return d;d=s.group({class:"apexcharts-data-labels"});for(var h=0;h<e.x.length;h++)if(l=e.x[h]+o.offsetX,c=e.y[h]+o.offsetY+a,!isNaN(l)){1===i&&0===h&&(u=0),1===i&&1===h&&(u=1);var f=r.globals.series[t][u],p="",m=function(e){return r.config.dataLabels.formatter(e,{ctx:n.ctx,seriesIndex:t,dataPointIndex:u,w:r})};if("bubble"===r.config.chart.type){p=m(f=r.globals.seriesZ[t][u]),c=e.y[h];var g=new T(this.ctx),y=g.centerTextInBubble(c,t,u);c=y.y}else void 0!==f&&(p=m(f));this.plotDataLabelsText({x:l,y:c,text:p,i:t,j:u,parent:d,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new v(this.ctx),n=e.x,a=e.y,r=e.i,s=e.j,o=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(r)<0)){var m={x:n,y:a,drawnextLabel:!0};p&&(m=this.dataLabelsCorrection(n,a,o,r,s,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(n=m.x,a=m.y),m.textRects&&(n<-10-m.textRects.width||n>t.globals.gridWidth+m.textRects.width+10)&&(o="");var y=t.globals.dataLabels.style.colors[r];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(y=t.globals.dataLabels.style.colors[s]),"function"==typeof y&&(y=y({series:t.globals.series,seriesIndex:r,dataPointIndex:s,w:t})),h&&(y=h);var b=d.offsetX,x=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(b=0,x=0),m.drawnextLabel){var _=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+b,y:a+x,foreColor:y,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(_.attr({class:"apexcharts-datalabel",cx:n,cy:a}),d.dropShadow.enabled){var w=d.dropShadow;new g(this.ctx).dropShadow(_,w)}u.add(_),void 0===t.globals.lastDrawnDataLabelsIndexes[r]&&(t.globals.lastDrawnDataLabelsIndexes[r]=[]),t.globals.lastDrawnDataLabelsIndexes[r].push(s)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,n=i.config.dataLabels.background,a=n.padding,r=n.padding/2,s=t.width,o=t.height,l=new v(this.ctx).drawRect(t.x-a,t.y-r/2,s+2*a,o+r,n.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new g(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var n=t[i],a=n.getBBox(),r=null;if(a.width&&a.height&&(r=this.addBackgroundToDataLabel(n,a)),r){n.parentNode.insertBefore(r.node,n);var s=n.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?r.attr({fill:s}):r.animate().attr({fill:s}),n.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<t.length;n++)i&&i.insertBefore(t[n],i.nextSibling)}}]),e}(),D=function(){function e(i){t(this,e),this.w=i.w,this.barCtx=i}return n(e,[{key:"handleBarDataLabels",value:function(e){var t=e.x,i=e.y,n=e.y1,a=e.y2,r=e.i,s=e.j,o=e.realIndex,l=e.series,c=e.barHeight,u=e.barWidth,d=e.barYPosition,h=e.visibleSeries,f=e.renderedPath,p=this.w,m=new v(this.barCtx.ctx),g=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth,y=t+parseFloat(u*h),b=i+parseFloat(c*h);p.globals.isXNumeric&&!p.globals.isBarHorizontal&&(y=t+parseFloat(u*(h+1)),b=i+parseFloat(c*(h+1))-g);var x,_=t,w=i,k=p.config.dataLabels,M=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isRangeBar&&(b=d,w=d);var L=k.offsetX,S=k.offsetY,A={width:0,height:0};if(p.config.dataLabels.enabled){var T=this.barCtx.series[r][s];A=m.getTextRects(p.globals.yLabelFormatters[0](T),parseFloat(k.style.fontSize))}var C={x:t,y:i,i:r,j:s,renderedPath:f,bcx:y,bcy:b,barHeight:c,barWidth:u,textRects:A,strokeWidth:g,dataLabelsX:_,dataLabelsY:w,barDataLabelsConfig:M,offX:L,offY:S};return x=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(C):this.calculateColumnsDataLabelsPosition(C),f.attr({cy:x.bcy,cx:x.bcx,j:s,val:l[r][s],barHeight:c,barWidth:u}),this.drawCalculatedDataLabels({x:x.dataLabelsX,y:x.dataLabelsY,val:this.barCtx.isRangeBar?[n,a]:l[r][s],i:o,j:s,barWidth:u,barHeight:c,textRects:A,dataLabelsConfig:k})}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,i=this.w,n=e.i,a=e.j,r=e.y,s=e.bcx,o=e.barWidth,l=e.barHeight,c=e.textRects,u=e.dataLabelsY,d=e.barDataLabelsConfig,h=e.strokeWidth,f=e.offX,p=e.offY;l=Math.abs(l);var m="vertical"===i.config.plotOptions.bar.dataLabels.orientation;s-=h/2;var g=i.globals.gridWidth/i.globals.dataPoints;t=i.globals.isXNumeric?s-o/2+f:s-g+o/2+f,m&&(t=t+c.height/2-h/2-2);var v=this.barCtx.series[n][a]<0,y=r;switch(this.barCtx.isReversed&&(y=r-l+(v?2*l:0),r-=l),d.position){case"center":u=m?v?y+l/2+p:y+l/2-p:v?y-l/2+c.height/2+p:y+l/2+c.height/2-p;break;case"bottom":u=m?v?y+l+p:y+l-p:v?y-l+c.height+h+p:y+l-c.height/2+h-p;break;case"top":u=m?v?y+p:y-p:v?y-c.height/2-p:y+c.height+p}return i.config.chart.stacked||(u<0?u=0+h:u+c.height/3>i.globals.gridHeight&&(u=i.globals.gridHeight-h)),{bcx:s,bcy:r,dataLabelsX:t,dataLabelsY:u}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,n=e.i,a=e.j,r=e.bcy,s=e.barHeight,o=e.barWidth,l=e.textRects,c=e.dataLabelsX,u=e.strokeWidth,d=e.barDataLabelsConfig,h=e.offX,f=e.offY,p=t.globals.gridHeight/t.globals.dataPoints;o=Math.abs(o);var m=r-(this.barCtx.isRangeBar?0:p)+s/2+l.height/2+f-3,g=this.barCtx.series[n][a]<0,v=i;switch(this.barCtx.isReversed&&(v=i+o-(g?2*o:0),i=t.globals.gridWidth-o),d.position){case"center":c=g?v+o/2-h:Math.max(l.width/2,v-o/2)+h;break;case"bottom":c=g?v+o-u-Math.round(l.width/2)-h:v-o+u+Math.round(l.width/2)+h;break;case"top":c=g?v-u+Math.round(l.width/2)-h:v-u-Math.round(l.width/2)+h}return t.config.chart.stacked||(c<0?c=c+l.width+u:c+l.width/2>t.globals.gridWidth&&(c=t.globals.gridWidth-l.width-u)),{bcx:i,bcy:r,dataLabelsX:c,dataLabelsY:m}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,n=e.val,a=e.i,r=e.j,o=e.textRects,l=e.barHeight,c=e.barWidth,u=e.dataLabelsConfig,d=this.w,h="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(t,", ").concat(i,")"));var f=new C(this.barCtx.ctx),p=new v(this.barCtx.ctx),m=u.formatter,g=null,y=d.globals.collapsedSeriesIndices.indexOf(a)>-1;if(u.enabled&&!y){g=p.group({class:"apexcharts-data-labels",transform:h});var b="";void 0!==n&&(b=m(n,{seriesIndex:a,dataPointIndex:r,w:d}));var x=d.globals.series[a][r]<0,_=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===_&&(u.textAnchor=x?"end":"start"),"center"===_&&(u.textAnchor="middle"),"bottom"===_&&(u.textAnchor=x?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(b,parseFloat(u.style.fontSize)).width&&(b=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(c)&&(b=""):o.height/1.6>Math.abs(l)&&(b=""));var w=s({},u);this.barCtx.isHorizontal&&n<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),f.plotDataLabelsText({x:t,y:i,text:b,i:a,j:r,parent:g,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}}]),e}(),E=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.legendInactiveClass="legend-mouseover-inactive"}return n(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(p.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function n(i){for(var n=0;n<i.length;n++)i[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}n(i.globals.collapsedSeries),n(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w,a=p.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,e&&(t&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1,r=null,s=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),s=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"'] path"));for(var o=0;o<n.length;o++)n[o].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==s&&s.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,n=this.w,a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),r=function(e){for(var t=0;t<a.length;t++)a[t].classList[e](i.legendInactiveClass)};if("mousemove"===e.type){var s=parseInt(t.getAttribute("rel"),10)-1;r("add"),function(e){for(var t=0;t<a.length;t++){var n=parseInt(a[t].getAttribute("val"),10);n>=e.from&&n<=e.to&&a[t].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[s])}else"mouseout"===e.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=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(t,n){var a=!1;return e&&(a="bar"===i.config.series[n].type||"column"===i.config.series[n].type),t.data&&t.data.length>0&&!a?n:-1})),r="asc"===t?0:a.length-1;"asc"===t?r<a.length:r>=0;"asc"===t?r++:r--)if(-1!==a[r]){n=a[r];break}return n}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,i,n){for(var a=t[i].childNodes,r={type:n,paths:[],realIndex:t[i].getAttribute("data:realIndex")},s=0;s<a.length;s++)if(a[s].hasAttribute("pathTo")){var o=a[s].getAttribute("pathTo");r.paths.push({d:o})}e.globals.previousPaths.push(r)}e.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach((function(i){for(var n,a=(n=i,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"))),r=0;r<a.length;r++)t(a,r,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var n=function(t){for(var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),n=[],a=function(e){var t=function(t){return i[e].getAttribute(t)},a={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};n.push({rect:a,color:i[e].getAttribute("color")})},r=0;r<i.length;r++)a(r);e.globals.previousPaths.push(n)},a=0;a<i.length;a++)n(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(i.length>0)for(var n=0;n<i.length;n++){for(var a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),r=[],s=0;s<a.length;s++)r.push({x:a[s].getAttribute("cx"),y:a[s].getAttribute("cy"),r:a[s].getAttribute("r")});t.globals.previousPaths.push(r)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new v(this.ctx),n=e.globals.svgWidth/2,a=e.globals.svgHeight/2,r="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(n=10,r="start"):"right"===t.align&&(n=e.globals.svgWidth-10,r="end"),"top"===t.verticalAlign?a=50:"bottom"===t.verticalAlign&&(a=e.globals.svgHeight-50),n+=t.offsetX,a=a+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var s=i.drawText({x:n,y:a,text:t.text,textAnchor:r,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(s)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(0===e[i].length)for(var n=0;n<e[t.globals.maxValsInArrayIndex].length;n++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),O=function(){function e(i){t(this,e),this.w=i.w,this.barCtx=i}return n(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var n=0;n<e[i].length;n++)t.globals.seriesX[i][n]>t.globals.minX&&t.globals.seriesX[i][n]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=e.length-1,t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,i,n,a,r,s,o,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)a=(i=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(a=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*parseInt(this.barCtx.barOptions.barHeight,10)/100,o=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),t=(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),r=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),(r=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}s=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),e=l.globals.padHorizontal+(n-r*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:i,xDivision:n,barHeight:a,barWidth:r,zeroH:s,zeroW:o}}},{key:"getPathFillColor",value:function(e,t,i,n){var a=this.w,r=new S(this.barCtx.ctx),s=null,o=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(n){e[t][i]>=n.from&&e[t][i]<=n.to&&(s=n.color)})),a.config.series[t].data[i]&&a.config.series[t].data[i].fillColor&&(s=a.config.series[t].data[i].fillColor),r.fillPath({seriesNumber:this.barCtx.barOptions.distributed?o:n,dataPointIndex:i,color:s,value:e[t][i]})}},{key:"getStrokeWidth",value:function(e,t,i){var n=0,a=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?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(e){var t=e.j,i=e.i,n=e.x1,a=e.x2,r=e.y1,s=e.y2,o=e.elSeries,l=this.w,c=new v(this.barCtx.ctx),u=new E(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t-=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=c.drawRect(void 0!==n?n:0,void 0!==r?r:0,void 0!==a?a:l.globals.gridWidth,void 0!==s?s:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t=e.barWidth,i=e.barXPosition,n=e.yRatio,a=e.y1,r=e.y2,s=e.strokeWidth,o=e.series,l=e.realIndex,c=e.i,u=e.j,d=e.w,h=new v(this.barCtx.ctx);(s=Array.isArray(s)?s[l]:s)||(s=0);var f={barWidth:t,strokeWidth:s,yRatio:n,barXPosition:i,y1:a,y2:r},p=this.getRoundedBars(d,f,o,c,u),m=i,g=i+t,y=h.move(m,a),b=h.move(m,a),x=h.line(g-s,a);return d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,u,!1)),y=y+h.line(m,p.y2)+p.pathWithRadius+h.line(g-s,p.y2)+x+x+"z",b=b+h.line(m,a)+x+x+x+x+x+h.line(m,a),d.config.chart.stacked&&(this.barCtx.yArrj.push(p.y2),this.barCtx.yArrjF.push(Math.abs(a-p.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][u])),{pathTo:y,pathFrom:b}}},{key:"getBarpaths",value:function(e){var t=e.barYPosition,i=e.barHeight,n=e.x1,a=e.x2,r=e.strokeWidth,s=e.series,o=e.realIndex,l=e.i,c=e.j,u=e.w,d=new v(this.barCtx.ctx);(r=Array.isArray(r)?r[o]:r)||(r=0);var h={barHeight:i,strokeWidth:r,barYPosition:t,x2:a,x1:n},f=this.getRoundedBars(u,h,s,l,c),p=d.move(n,t),m=d.move(n,t);u.globals.previousPaths.length>0&&(m=this.barCtx.getPreviousPath(o,c,!1));var g=t,y=t+i,b=d.line(n,y-r);return p=p+d.line(f.x2,g)+f.pathWithRadius+d.line(f.x2,y-r)+b+b+"z",m=m+d.line(n,g)+b+b+b+b+b+d.line(n,g),u.config.chart.stacked&&(this.barCtx.xArrj.push(f.x2),this.barCtx.xArrjF.push(Math.abs(n-f.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:p,pathFrom:m}}},{key:"getRoundedBars",value:function(e,t,i,n,a){var r=new v(this.barCtx.ctx),s=0,o=e.config.plotOptions.bar.borderRadius,l=Array.isArray(o);if(s=l?o[n>o.length-1?o.length-1:n]:o,e.config.chart.stacked&&i.length>1&&n!==this.barCtx.radiusOnSeriesNumber&&!l&&(s=0),this.barCtx.isHorizontal){var c="",u=t.x2;if(Math.abs(t.x1-t.x2)<s&&(s=Math.abs(t.x1-t.x2)),void 0!==i[n][a]||null!==i[n][a]){var d=this.barCtx.isReversed?i[n][a]>0:i[n][a]<0;d&&(s*=-1),u-=s,c=r.quadraticCurve(u+s,t.barYPosition,u+s,t.barYPosition+(d?-1*s:s))+r.line(u+s,t.barYPosition+t.barHeight-t.strokeWidth-(d?-1*s:s))+r.quadraticCurve(u+s,t.barYPosition+t.barHeight-t.strokeWidth,u,t.barYPosition+t.barHeight-t.strokeWidth)}return{pathWithRadius:c,x2:u}}var h="",f=t.y2;if(Math.abs(t.y1-t.y2)<s&&(s=Math.abs(t.y1-t.y2)),void 0!==i[n][a]||null!==i[n][a]){var p=i[n][a]<0;p&&(s*=-1),f+=s,h=r.quadraticCurve(t.barXPosition,f-s,t.barXPosition+(p?-1*s:s),f-s)+r.line(t.barXPosition+t.barWidth-t.strokeWidth-(p?-1*s:s),f-s)+r.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,f-s,t.barXPosition+t.barWidth-t.strokeWidth,f)}return{pathWithRadius:h,y2:f}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,n=0;n<t.length;n++){for(var a=0,r=0;r<t[i.globals.maxValsInArrayIndex].length;r++)a+=t[n][r];0===a&&this.barCtx.zeroSerieses.push(n)}for(var s=t.length-1;s>=0;s--)this.barCtx.zeroSerieses.indexOf(s)>-1&&s===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var o=t.length-1;o>=0;o--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?t:null;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?t:null;return null!=e&&(n=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(e,t,i,n,r){var s=this,o=this.w,l=[];return o.globals.seriesGoals[n]&&o.globals.seriesGoals[n][r]&&Array.isArray(o.globals.seriesGoals[n][r])&&o.globals.seriesGoals[n][r].forEach((function(n){var r;l.push((a(r={},e,"x"===e?s.getXForValue(n.value,t,!1):s.getYForValue(n.value,i,!1)),a(r,"attrs",n),r))})),l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,n=e.goalX,a=e.goalY,r=e.barWidth,s=e.barHeight,o=new v(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach((function(e){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:s/2,n=i+t+s/2;c=o.drawLine(e.x,n-2*t,e.x,n,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)})):Array.isArray(a)&&a.forEach((function(e){var i=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:r/2,n=t+i+r/2;c=o.drawLine(n-2*i,e.y,n,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)})),l}}]),e}(),P=function(){function e(i,n){t(this,e),this.ctx=i,this.w=i.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=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.initialXRatio=n.initialXRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new O(this)}return n(e,[{key:"draw",value:function(e,t){var i=this.w,n=new v(this.ctx),a=new x(this.ctx,i);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var r=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var o=0,l=0;o<e.length;o++,l++){var c,u,d,h,f=void 0,m=void 0,g=[],y=[],b=i.globals.comboCharts?t[o]:o,_=n.group({class:"apexcharts-series",rel:o+1,seriesName:p.escapeString(i.globals.seriesNames[b]),"data:realIndex":b});this.ctx.series.addCollapsedClassToSeries(_,b),e[o].length>0&&(this.visibleI=this.visibleI+1);var w=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var M=this.barHelpers.initialPositions();m=M.y,w=M.barHeight,u=M.yDivision,h=M.zeroW,f=M.x,k=M.barWidth,c=M.xDivision,d=M.zeroH,this.horizontal||y.push(f+k/2);for(var L=n.group({class:"apexcharts-datalabels","data:realIndex":b}),S=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),A=0;A<i.globals.dataPoints;A++){var T=this.barHelpers.getStrokeWidth(o,A,b),C=null,D={indexes:{i:o,j:A,realIndex:b,bc:l},x:f,y:m,strokeWidth:T,elSeries:_};this.isHorizontal?(C=this.drawBarPaths(s(s({},D),{},{barHeight:w,zeroW:h,yDivision:u})),k=this.series[o][A]/this.invertedYRatio):(C=this.drawColumnPaths(s(s({},D),{},{xDivision:c,barWidth:k,zeroH:d})),w=this.series[o][A]/this.yRatio[this.yaxisIndex]);var E=this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:C.barYPosition,goalX:C.goalX,goalY:C.goalY,barHeight:w,barWidth:k});E&&S.add(E),m=C.y,f=C.x,A>0&&y.push(f+k/2),g.push(m);var O=this.barHelpers.getPathFillColor(e,o,A,b);this.renderSeries({realIndex:b,pathFill:O,j:A,i:o,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:T,elSeries:_,x:f,y:m,series:e,barHeight:w,barWidth:k,elDataLabelsWrap:L,elGoalsMarkers:S,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=y,i.globals.seriesYvalues[b]=g,r.add(_)}return r}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,n=e.lineFill,a=e.j,r=e.i,s=e.pathFrom,o=e.pathTo,l=e.strokeWidth,c=e.elSeries,u=e.x,d=e.y,h=e.y1,f=e.y2,p=e.series,m=e.barHeight,y=e.barWidth,b=e.barYPosition,x=e.elDataLabelsWrap,_=e.elGoalsMarkers,w=e.visibleSeries,k=e.type,M=this.w,L=new v(this.ctx);n||(n=this.barOptions.distributed?M.globals.stroke.colors[a]:M.globals.stroke.colors[t]),M.config.series[r].data[a]&&M.config.series[r].data[a].strokeColor&&(n=M.config.series[r].data[a].strokeColor),this.isNullValue&&(i="none");var S=a/M.config.chart.animations.animateGradually.delay*(M.config.chart.animations.speed/M.globals.dataPoints)/2.4,A=L.renderPaths({i:r,j:a,realIndex:t,pathFrom:s,pathTo:o,stroke:n,strokeWidth:l,strokeLineCap:M.config.stroke.lineCap,fill:i,animationDelay:S,initialSpeed:M.config.chart.animations.speed,dataChangeSpeed:M.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(k,"-area")});A.attr("clip-path","url(#gridRectMask".concat(M.globals.cuid,")"));var T=M.config.forecastDataPoints;T.count>0&&a>=M.globals.dataPoints-T.count&&(A.node.setAttribute("stroke-dasharray",T.dashArray),A.node.setAttribute("stroke-width",T.strokeWidth),A.node.setAttribute("fill-opacity",T.fillOpacity)),void 0!==h&&void 0!==f&&(A.attr("data-range-y1",h),A.attr("data-range-y2",f)),new g(this.ctx).setSelectionFilter(A,t,a),c.add(A);var C=new D(this).handleBarDataLabels({x:u,y:d,y1:h,y2:f,i:r,j:a,series:p,realIndex:t,barHeight:m,barWidth:y,barYPosition:b,renderedPath:A,visibleSeries:w});return null!==C&&x.add(C),c.add(x),_&&c.add(_),c}},{key:"drawBarPaths",value:function(e){var t=e.indexes,i=e.barHeight,n=e.strokeWidth,a=e.zeroW,r=e.x,s=e.y,o=e.yDivision,l=e.elSeries,c=this.w,u=t.i,d=t.j;c.globals.isXNumeric&&(s=(c.globals.seriesX[u][d]-c.globals.minX)/this.invertedXRatio-i);var h=s+i*this.visibleI;r=this.barHelpers.getXForValue(this.series[u][d],a);var f=this.barHelpers.getBarpaths({barYPosition:h,barHeight:i,x1:a,x2:r,strokeWidth:n,series:this.series,realIndex:t.realIndex,i:u,j:d,w:c});return c.globals.isXNumeric||(s+=o),this.barHelpers.barBackground({j:d,i:u,y1:h-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x:r,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,u,d),barYPosition:h}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,i=e.x,n=e.y,a=e.xDivision,r=e.barWidth,s=e.zeroH,o=e.strokeWidth,l=e.elSeries,c=this.w,u=t.realIndex,d=t.i,h=t.j,f=t.bc;if(c.globals.isXNumeric){var p=u;c.globals.seriesX[u].length||(p=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[p][h]-c.globals.minX)/this.xRatio-r*this.seriesLen/2}var m=i+r*this.visibleI;n=this.barHelpers.getYForValue(this.series[d][h],s);var g=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:r,y1:s,y2:n,strokeWidth:o,series:this.series,realIndex:t.realIndex,i:d,j:h,w:c});return c.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:f,j:h,i:d,x1:m-o/2-r*this.visibleI,x2:r*this.seriesLen+o/2,elSeries:l}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x:i,y:n,goalY:this.barHelpers.getGoalValues("y",null,s,d,h),barXPosition:m}}},{key:"getPreviousPath",value:function(e,t){for(var i,n=this.w,a=0;a<n.globals.previousPaths.length;a++){var r=n.globals.previousPaths[a];r.paths&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&void 0!==n.globals.previousPaths[a].paths[t]&&(i=n.globals.previousPaths[a].paths[t].d)}return i}}]),e}(),Y=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return n(e,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(h(i.months)),r=[""].concat(h(i.shortMonths)),s=[""].concat(h(i.days)),o=[""].concat(h(i.shortDays));function l(e,t){var i=e+"";for(t=t||2;i.length<t;)i="0"+i;return i}var c=n?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(n?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+r[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=n?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+s[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var f=n?e.getUTCHours():e.getHours(),p=f>12?f-12:0===f?12:f;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var m=n?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(m))).replace(/(^|[^\\])m/g,"$1"+m);var g=n?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var v=n?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=f<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-e.getTimezoneOffset(),_=n||!x?"Z":x>0?"+":"-";if(!n){var w=(x=Math.abs(x))%60;_+=l(Math.floor(x/60))+":"+l(w)}t=t.replace(/(^|[^\\])K/g,"$1"+_);var k=(n?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(s[0],"g"),s[k])).replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(a[0],"g"),a[u])).replace(new RegExp(r[0],"g"),r[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var n=this.w;void 0!==n.config.xaxis.min&&(e=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(t=n.config.xaxis.max);var a=this.getDate(e),r=this.getDate(t),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(s[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(s[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(s[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(s[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(s[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(s[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(s[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var n=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=p.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),e}(),I=function(e){o(a,e);var i=d(a);function a(){return t(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(e,t){var i=this.w,n=new v(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var a=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),r=0;r<e.length;r++){var o,l,c,u=void 0,d=void 0,h=void 0,f=i.globals.comboCharts?t[r]:r,m=n.group({class:"apexcharts-series",seriesName:p.escapeString(i.globals.seriesNames[f]),rel:r+1,"data:realIndex":f});e[r].length>0&&(this.visibleI=this.visibleI+1);var g=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=f);var b=this.barHelpers.initialPositions();d=b.y,c=b.zeroW,u=b.x,y=b.barWidth,o=b.xDivision,l=b.zeroH;for(var x=n.group({class:"apexcharts-datalabels","data:realIndex":f}),_=n.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),w=0;w<i.globals.dataPoints;w++){var k=this.barHelpers.getStrokeWidth(r,w,f),M=this.seriesRangeStart[r][w],L=this.seriesRangeEnd[r][w],S=null,A=null,T={x:u,y:d,strokeWidth:k,elSeries:m};if(h=b.yDivision,g=b.barHeight,this.isHorizontal){A=d+g*this.visibleI;var C=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(C=1);var D=(h-g*C)/2;if(void 0===i.config.series[r].data[w])break;if(i.config.series[r].data[w].x){var E=this.detectOverlappingBars({i:r,j:w,barYPosition:A,srty:D,barHeight:g,yDivision:h,initPositions:b});g=E.barHeight,A=E.barYPosition}y=(S=this.drawRangeBarPaths(s({indexes:{i:r,j:w,realIndex:f},barHeight:g,barYPosition:A,zeroW:c,yDivision:h,y1:M,y2:L},T))).barWidth}else g=(S=this.drawRangeColumnPaths(s({indexes:{i:r,j:w,realIndex:f},zeroH:l,barWidth:y,xDivision:o},T))).barHeight;var O=this.barHelpers.drawGoalLine({barXPosition:S.barXPosition,barYPosition:A,goalX:S.goalX,goalY:S.goalY,barHeight:g,barWidth:y});O&&_.add(O),d=S.y,u=S.x;var P=this.barHelpers.getPathFillColor(e,r,w,f),Y=i.globals.stroke.colors[f];this.renderSeries({realIndex:f,pathFill:P,lineFill:Y,j:w,i:r,x:u,y:d,y1:M,y2:L,pathFrom:S.pathFrom,pathTo:S.pathTo,strokeWidth:k,elSeries:m,series:e,barHeight:g,barYPosition:A,barWidth:y,elDataLabelsWrap:x,elGoalsMarkers:_,visibleSeries:this.visibleI,type:"rangebar"})}a.add(m)}return a}},{key:"detectOverlappingBars",value:function(e){var t=e.i,i=e.j,n=e.barYPosition,a=e.srty,r=e.barHeight,s=e.yDivision,o=e.initPositions,l=this.w,c=[],u=l.config.series[t].data[i].rangeName,d=l.config.series[t].data[i].x,h=l.globals.labels.indexOf(d),f=l.globals.seriesRangeBar[t].findIndex((function(e){return e.x===d&&e.overlaps.length>0}));return n=l.config.plotOptions.bar.rangeBarGroupRows?a+s*h:a+r*this.visibleI+s*h,f>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBar[t][f].overlaps).indexOf(u)>-1&&(n=(r=o.barHeight/c.length)*this.visibleI+s*(100-parseInt(this.barOptions.barHeight,10))/100/2+r*(this.visibleI+c.indexOf(u))+s*h),{barYPosition:n,barHeight:r}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,i=e.x;e.strokeWidth;var n=e.xDivision,a=e.barWidth,r=e.zeroH,s=this.w,o=t.i,l=t.j,c=this.yRatio[this.yaxisIndex],u=t.realIndex,d=this.getRangeValue(u,l),h=Math.min(d.start,d.end),f=Math.max(d.start,d.end);s.globals.isXNumeric&&(i=(s.globals.seriesX[o][l]-s.globals.minX)/this.xRatio-a/2);var p=i+a*this.visibleI;void 0===this.series[o][l]||null===this.series[o][l]?h=r:(h=r-h/c,f=r-f/c);var m=Math.abs(f-h),g=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:a,y1:h,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:u,j:l,w:s});return s.globals.isXNumeric||(i+=n),{pathTo:g.pathTo,pathFrom:g.pathFrom,barHeight:m,x:i,y:f,goalY:this.barHelpers.getGoalValues("y",null,r,o,l),barXPosition:p}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,i=e.y,n=e.y1,a=e.y2,r=e.yDivision,s=e.barHeight,o=e.barYPosition,l=e.zeroW,c=this.w,u=l+n/this.invertedYRatio,d=l+a/this.invertedYRatio,h=Math.abs(d-u),f=this.barHelpers.getBarpaths({barYPosition:o,barHeight:s,x1:u,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:c});return c.globals.isXNumeric||(i+=r),{pathTo:f.pathTo,pathFrom:f.pathFrom,barWidth:h,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,t.realIndex,t.j),y:i}}},{key:"getRangeValue",value:function(e,t){var i=this.w;return{start:i.globals.seriesRangeStart[e][t],end:i.globals.seriesRangeEnd[e][t]}}},{key:"getTooltipValues",value:function(e){var t=e.ctx,i=e.seriesIndex,n=e.dataPointIndex,a=e.y1,r=e.y2,s=e.w,o=s.globals.seriesRangeStart[i][n],l=s.globals.seriesRangeEnd[i][n],c=s.globals.labels[n],u=s.config.series[i].name?s.config.series[i].name:"",d=s.config.tooltip.y.formatter,h=s.config.tooltip.y.title.formatter,f={w:s,seriesIndex:i,dataPointIndex:n,start:o,end:l};"function"==typeof h&&(u=h(u,f)),Number.isFinite(a)&&Number.isFinite(r)&&(o=a,l=r,s.config.series[i].data[n].x&&(c=s.config.series[i].data[n].x+":"),"function"==typeof d&&(c=d(c,f)));var p="",m="",g=s.globals.colors[i];if(void 0===s.config.tooltip.x.formatter)if("datetime"===s.config.xaxis.type){var v=new Y(t);p=v.formatDate(v.getDate(o),s.config.tooltip.x.format),m=v.formatDate(v.getDate(l),s.config.tooltip.x.format)}else p=o,m=l;else p=s.config.tooltip.x.formatter(o),m=s.config.tooltip.x.formatter(l);return{start:o,end:l,startVal:p,endVal:m,ylabel:c,color:g,seriesName:u}}},{key:"buildCustomTooltipHTML",value:function(e){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e.color+'">'+(e.seriesName||"")+'</span></div><div> <span class="category">'+e.ylabel+' </span> <span class="value start-value">'+e.start+'</span> <span class="separator">-</span> <span class="value end-value">'+e.end+"</span></div></div>"}}]),a}(P),j=function(){function e(i){t(this,e),this.opts=i}return n(e,[{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(e){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,p.extend(e,{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 e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,n=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,i,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,n=t.dataPointIndex,a=t.w;return e._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(e,t){t.ctx;var i=t.seriesIndex,n=t.dataPointIndex,a=t.w,r=a.globals.seriesRangeStart[i][n];return a.globals.seriesRangeEnd[i][n]-r},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=new I(e.ctx,null),i=t.getTooltipValues(e),n=i.color,a=i.seriesName,r=i.ylabel,s=i.startVal,o=i.endVal;return t.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:r,start:s,end:o})}(e):function(e){var t=new I(e.ctx,null),i=t.getTooltipValues(e),n=i.color,a=i.seriesName,r=i.ylabel,s=i.start,o=i.end;return t.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:r,start:s,end:o})}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(e){return p.extend(e,{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(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return p.isNumber(e)?Math.floor(e):e};var n=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(a=i.map((function(e){return Array.isArray(e)?e:String(e)}))),a&&a.length&&(e.xaxis.labels.formatter=function(e){return p.isNumber(e)?n(a[Math.floor(e)-1]):n(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{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(e){return e.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(e){return e.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(e){return e.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(e){return e},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(e,t,i,n,a){var r=e.globals.seriesCandleO[t][i],s=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],l=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==a?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+r+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+s+"</span></div>"+(o?"<div>".concat(n[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),N=function(){function i(e){t(this,i),this.opts=e}return n(i,[{key:"init",value:function(t){var i=t.responsiveOverride,n=this.opts,a=new M,r=new j(n);this.chartType=n.chart.type,"histogram"===this.chartType&&(n.chart.type="bar",n=p.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},n)),n=this.extendYAxis(n),n=this.extendAnnotations(n);var s=a.init(),o={};if(n&&"object"===e(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)?r[n.chart.type]():r.line(),n.chart.brush&&n.chart.brush.enabled&&(l=r.brush(l)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=r.stacked100(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},i||(n.xaxis.convertedCatToNumeric=!1),((n=this.checkForCatToNumericXAxis(this.chartType,l,n)).chart.sparkline&&n.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=r.sparkline(l)),o=p.extend(s,l)}var c=p.extend(o,window.Apex);return s=p.extend(c,n),this.handleUserInputErrors(s)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var n=new j(i),a="bar"===e&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,r="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,s="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,o=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return a||r||!s||"between"===o||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new M;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=p.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[p.extend(i.yAxis,e.yaxis)]:e.yaxis=p.extendArray(e.yaxis,i.yAxis);var n=!1;e.yaxis.forEach((function(e){e.logarithmic&&(n=!0)}));var a=e.series;return t&&!a&&(a=t.config.series),n&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map((function(t,n){if(t.name||(a[n].name="series-".concat(n+1)),e.yaxis[n])return e.yaxis[n].seriesName=a[n].name,e.yaxis[n];var r=p.extend(i.yAxis,e.yaxis[0]);return r.show=!1,r}))),n&&a.length>1&&a.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new M;return e.annotations.yaxis=p.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new M;return e.annotations.xaxis=p.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new M;return e.annotations.points=p.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.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"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),Array.isArray(t.stroke.width)&&"line"!==t.chart.type&&"area"!==t.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),t.stroke.width=t.stroke.width[0]),t}}]),i}(),H=function(){function e(){t(this,e)}return n(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRangeBar=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.xaxisLabelsCount=0,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){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:e.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"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=p.extend({},e),t.initialSeries=p.clone(e.series),t.lastXAxis=p.clone(t.initialConfig.xaxis),t.lastYAxis=p.clone(t.initialConfig.yaxis),t}}]),e}(),F=function(){function e(i){t(this,e),this.opts=i}return n(e,[{key:"init",value:function(){var e=new N(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new H).init(e)}}}]),e}(),R=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new x(this.ctx)}return n(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new E(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new E(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,n=this.w.globals,a="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type,r=0;r<e[t].data.length;r++)if(void 0!==e[t].data[r][1]&&(Array.isArray(e[t].data[r][1])&&4===e[t].data[r][1].length&&!a?this.twoDSeries.push(p.parseNumber(e[t].data[r][1][3])):e[t].data[r].length>=5?this.twoDSeries.push(p.parseNumber(e[t].data[r][4])):this.twoDSeries.push(p.parseNumber(e[t].data[r][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var s=new Date(e[t].data[r][0]);s=new Date(s).getTime(),this.twoDSeriesX.push(s)}else this.twoDSeriesX.push(e[t].data[r][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,n=this.w.globals,a=new Y(this.ctx),r=t;n.collapsedSeriesIndices.indexOf(t)>-1&&(r=this.activeSeriesIndex);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s].y&&(Array.isArray(e[t].data[s].y)?this.twoDSeries.push(p.parseNumber(e[t].data[s].y[e[t].data[s].y.length-1])):this.twoDSeries.push(p.parseNumber(e[t].data[s].y))),void 0!==e[t].data[s].goals&&Array.isArray(e[t].data[s].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[s].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[r].data.length;o++){var l="string"==typeof e[r].data[o].x,c=Array.isArray(e[r].data[o].x),u=!c&&!!a.isValidDate(e[r].data[o].x.toString());if(l||u)if(l||i.xaxis.convertedCatToNumeric){var d=n.isBarHorizontal&&n.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[r].data[o].x)):this.twoDSeriesX.push(a.parseDate(e[r].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(a.parseDate(e[r].data[o].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[r].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[r].data[o].x)):(n.isXNumeric=!0,n.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[r].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(n=this.handleRangeDataFormat("xy",e,t)),i.seriesRangeStart.push(n.start),i.seriesRangeEnd.push(n.end),i.seriesRangeBar.push(n.rangeUniques),i.seriesRangeBar.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,i){for(var n=0;n<e.y.length;n++)if(i!==n){var a=t.y1,r=t.y2,s=e.y[n].y1;a<=e.y[n].y2&&s<=r&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[n].rangeName)<0&&e.overlaps.push(e.y[n].rangeName))}}))}))})),n}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=n.o,i.seriesCandleH[t]=n.h,i.seriesCandleM[t]=n.m,i.seriesCandleL[t]=n.l,i.seriesCandleC[t]=n.c,n}},{key:"handleRangeDataFormat",value:function(e,t,i){var n=[],a=[],r=t[i].data.filter((function(e,t,i){return t===i.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}})),s="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",o=new E(this.ctx).getActiveConfigSeriesIndex();if("array"===e){if(2!==t[o].data[0][1].length)throw new Error(s);for(var l=0;l<t[i].data.length;l++)n.push(t[i].data[l][1][0]),a.push(t[i].data[l][1][1])}else if("xy"===e){if(2!==t[o].data[0].y.length)throw new Error(s);for(var c=function(e){var s=p.randomId(),o=t[i].data[e].x,l={y1:t[i].data[e].y[0],y2:t[i].data[e].y[1],rangeName:s};t[i].data[e].rangeName=s;var c=r.findIndex((function(e){return e.x===o}));r[c].y.push(l),n.push(l.y1),a.push(l.y2)},u=0;u<t[i].data.length;u++)c(u)}return{start:n,end:a,rangeUniques:r}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var n=this.w,a="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[i].type,r=[],s=[],o=[],l=[],c=[];if("array"===e)if(a&&6===t[i].data[0].length||!a&&5===t[i].data[0].length)for(var u=0;u<t[i].data.length;u++)r.push(t[i].data[u][1]),s.push(t[i].data[u][2]),a?(o.push(t[i].data[u][3]),l.push(t[i].data[u][4]),c.push(t[i].data[u][5])):(l.push(t[i].data[u][3]),c.push(t[i].data[u][4]));else for(var d=0;d<t[i].data.length;d++)Array.isArray(t[i].data[d][1])&&(r.push(t[i].data[d][1][0]),s.push(t[i].data[d][1][1]),a?(o.push(t[i].data[d][1][2]),l.push(t[i].data[d][1][3]),c.push(t[i].data[d][1][4])):(l.push(t[i].data[d][1][2]),c.push(t[i].data[d][1][3])));else if("xy"===e)for(var h=0;h<t[i].data.length;h++)Array.isArray(t[i].data[h].y)&&(r.push(t[i].data[h].y[0]),s.push(t[i].data[h].y[1]),a?(o.push(t[i].data[h].y[2]),l.push(t[i].data[h].y[3]),c.push(t[i].data[h].y[4])):(l.push(t[i].data[h].y[2]),c.push(t[i].data[h].y[3])));return{o:r,h:s,m:o,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,a=this.w.globals,r=new Y(i),s=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();a.isRangeBar="rangeBar"===n.chart.type&&a.isBarHorizontal;for(var o=function(){for(var e=0;e<s.length;e++)if("string"==typeof s[e]){if(!r.isValidDate(s[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(r.parseDate(s[e]))}else t.twoDSeriesX.push(s[e])},l=0;l<e.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[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"!==e[l].type&&"rangeArea"!==e[l].type||(a.isRangeData=!0,this.handleRangeData(e,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,l):this.isFormatXY()&&this.handleFormatXY(e,l),"candlestick"!==n.chart.type&&"candlestick"!==e[l].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==e[l].type||this.handleCandleStickBoxData(e,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,o(),a.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(a.isXNumeric=!0,s.length>0&&(this.twoDSeriesX=s,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var c=e[l].data.map((function(e){return p.parseNumber(e)}));a.series.push(c)}a.seriesZ.push(this.threeDSeries),void 0!==e[l].name?a.seriesNames.push(e[l].name):a.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==e[l].color?a.seriesColors.push(e[l].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var n=0;n<t.series.length;n++)void 0===t.seriesNames[n]&&t.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,i=this.w.globals;t.xaxis.categories.length>0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBar.length&&(i.seriesRangeBar.map((function(e){e.forEach((function(e){i.labels.indexOf(e.x)<0&&e.x&&i.labels.push(e.x)}))})),i.labels=i.labels.filter((function(e,t,i){return i.indexOf(e)===t}))),t.xaxis.convertedCatToNumeric&&(new j(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,n=[];if(t.axisCharts){if(t.series.length>0)for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++)n.push(a+1);t.seriesX=[];for(var r=0;r<e.length;r++)t.seriesX.push(n);t.isXNumeric=!0}if(0===n.length){n=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var s=0;s<e.length;s++)t.seriesX.push(n)}t.labels=n,i.xaxis.convertedCatToNumeric&&(t.categoryLabels=n.map((function(e){return i.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,i=t.config,n=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?this.parseDataAxisCharts(e):this.parseDataNonAxisCharts(e),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var a=new E(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(e);for(var r=this.coreUtils.getCategoryLabels(n.labels),s=0;s<r.length;s++)if(Array.isArray(r[s])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map((function(i,n){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return i.index}))}}]),e}(),z=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.tooltipKeyFormat="dd MMM"}return n(e,[{key:"xLabelFormat",value:function(e,t,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 r=new Y(this.ctx);return r.formatDate(r.getDate(t),a.config.tooltip.x.format)}return e(t,i,n)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,i){var n=this.w;return p.isNumber(e)&&(e=0!==n.globals.yValueDecimal?e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:n.globals.yValueDecimal):n.globals.maxYArr[i]-n.globals.minYArr[i]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(p.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(p.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var i=t.globals.maxX-t.globals.minX;return i>0&&i<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(i,n){void 0!==i.labels.formatter?t.globals.yLabelFormatters[n]=i.labels.formatter:t.globals.yLabelFormatters[n]=function(a){return t.globals.xyCharts?Array.isArray(a)?a.map((function(t){return e.defaultYFormatter(t,i,n)})):e.defaultYFormatter(a,i,n):a}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),B=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"getLabel",value:function(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",s=this.w,o=void 0===e[n]?"":e[n],l=o,c=s.globals.xLabelFormatter,u=s.config.xaxis.labels.formatter,d=!1,h=new z(this.ctx),f=o;l=h.xLabelFormat(c,o,f,{i:n,dateFormatter:new Y(this.ctx).formatDate,w:s}),void 0!==u&&(l=u(o,e[n],{i:n,dateFormatter:new Y(this.ctx).formatDate,w:s}));var p=function(e){var i=null;return t.forEach((function(e){"month"===e.unit?i="year":"day"===e.unit?i="month":"hour"===e.unit?i="day":"minute"===e.unit&&(i="hour")})),i===e};t.length>0?(d=p(t[n].unit),i=t[n].position,l=t[n].value):"datetime"===s.config.xaxis.type&&void 0===u&&(l=""),void 0===l&&(l=""),l=Array.isArray(l)?l:l.toString();var m=new v(this.ctx),g={};g=s.globals.rotateXLabels?m.getTextRects(l,parseInt(r,10),null,"rotate(".concat(s.config.xaxis.labels.rotate," 0 0)"),!1):m.getTextRects(l,parseInt(r,10));var y=!s.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(l)&&(0===l.indexOf("NaN")||0===l.toLowerCase().indexOf("invalid")||l.toLowerCase().indexOf("infinity")>=0||a.indexOf(l)>=0&&y)&&(l=""),{x:i,text:l,textRect:g,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var n=this.w,a=n.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(n.globals.gridWidth/120)),a>i||e%Math.round(i/(a+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,n,a){var r=this.w;if(0===e&&r.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&r.globals.skipLastTimelinelabel&&(t.text=""),r.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var s=a[a.length-1];t.x<s.textRect.width/(r.globals.rotateXLabels?Math.abs(r.config.xaxis.labels.rotate)/12:1.01)+s.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=new x(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&i.isSeriesNull(e)&&-1===t.globals.collapsedSeriesIndices.indexOf(e)}},{key:"getYAxisForeColor",value:function(e,t){var i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,i,n,a,r,s){var o=this.w,l=new v(this.ctx),c=o.globals.translateY;if(n.show&&t>0){!0===o.config.yaxis[a].opposite&&(e+=n.width);for(var u=t;u>=0;u--){var d=c+t/10+o.config.yaxis[a].labels.offsetY-1;o.globals.isBarHorizontal&&(d=r*u),"heatmap"===o.config.chart.type&&(d+=r/2);var h=l.drawLine(e+i.offsetX-n.width+n.offsetX,d+n.offsetY,e+i.offsetX+n.offsetX,d+n.offsetY,n.color);s.add(h),c+=r}}}}]),e}(),W=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),n=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",n*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+n)}},{key:"fixSvgStringForIe11",value:function(e){if(!p.isIE11())return e;var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2==++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){var t=this.w.globals.dom.Paper.svg();if(1!==e){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[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 e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(i){var n=t.w,a=e?e.scale||e.width/n.globals.svgWidth:1;t.cleanup();var r=document.createElement("canvas");r.width=n.globals.svgWidth*a,r.height=parseInt(n.globals.dom.elWrap.style.height,10)*a;var s="transparent"===n.config.chart.background?"#fff":n.config.chart.background,o=r.getContext("2d");o.fillStyle=s,o.fillRect(0,0,r.width*a,r.height*a);var l=t.getSvgString(a);if(window.canvg&&p.isIE11()){var c=window.canvg.Canvg.fromString(o,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var u=r.msToBlob();c.stop(),i({blob:u})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),h=new Image;h.crossOrigin="anonymous",h.onload=function(){if(o.drawImage(h,0,0),r.msToBlob){var e=r.msToBlob();i({blob:e})}else{var t=r.toDataURL("image/png");i({imgURI:t})}},h.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var i=t.imgURI,n=t.blob;n?navigator.msSaveOrOpenBlob(n,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,n=e.columnDelimiter,a=e.lineDelimiter,r=void 0===a?"\n":a,s=this.w,o=[],l=[],c="data:text/csv;charset=utf-8,\ufeff",u=new R(this.ctx),d=new B(this.ctx),h=function(e){var i="";if(s.globals.axisCharts){if("category"===s.config.xaxis.type||s.config.xaxis.convertedCatToNumeric)if(s.globals.isBarHorizontal){var a=s.globals.yLabelFormatters[0],r=new E(t.ctx).getActiveConfigSeriesIndex();i=a(s.globals.labels[e],{seriesIndex:r,dataPointIndex:e,w:s})}else i=d.getLabel(s.globals.labels,s.globals.timescaleLabels,0,e).text;"datetime"===s.config.xaxis.type&&(s.config.xaxis.categories.length?i=s.config.xaxis.categories[e]:s.config.labels.length&&(i=s.config.labels[e]))}else i=s.config.labels[e];return Array.isArray(i)&&(i=i.join(" ")),p.isNumber(i)?i:i.split(n).join("")};o.push(s.config.chart.toolbar.export.csv.headerCategory),i.map((function(e,t){var i=e.name?e.name:"series-".concat(t);s.globals.axisCharts&&o.push(i.split(n).join("")?i.split(n).join(""):"series-".concat(t))})),s.globals.axisCharts||(o.push(s.config.chart.toolbar.export.csv.headerValue),l.push(o.join(n))),i.map((function(e,t){s.globals.axisCharts?function(e,t){if(o.length&&0===t&&l.push(o.join(n)),e.data&&e.data.length)for(var a=0;a<e.data.length;a++){o=[];var r=h(a);if(r||(u.isFormatXY()?r=i[t].data[a].x:u.isFormat2DArray()&&(r=i[t].data[a]?i[t].data[a][0]:"")),0===t){o.push((d=r,"datetime"===s.config.xaxis.type&&String(d).length>=10?s.config.chart.toolbar.export.csv.dateFormatter(r):p.isNumber(r)?r:r.split(n).join("")));for(var c=0;c<s.globals.series.length;c++)o.push(s.globals.series[c][a])}("candlestick"===s.config.chart.type||e.type&&"candlestick"===e.type)&&(o.pop(),o.push(s.globals.seriesCandleO[t][a]),o.push(s.globals.seriesCandleH[t][a]),o.push(s.globals.seriesCandleL[t][a]),o.push(s.globals.seriesCandleC[t][a])),("boxPlot"===s.config.chart.type||e.type&&"boxPlot"===e.type)&&(o.pop(),o.push(s.globals.seriesCandleO[t][a]),o.push(s.globals.seriesCandleH[t][a]),o.push(s.globals.seriesCandleM[t][a]),o.push(s.globals.seriesCandleL[t][a]),o.push(s.globals.seriesCandleC[t][a])),"rangeBar"===s.config.chart.type&&(o.pop(),o.push(s.globals.seriesRangeStart[t][a]),o.push(s.globals.seriesRangeEnd[t][a])),o.length&&l.push(o.join(n))}var d}(e,t):((o=[]).push(s.globals.labels[t].split(n).join("")),o.push(s.globals.series[t]),l.push(o.join(n)))})),c+=l.join(r),this.triggerDownload(encodeURI(c),s.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,i){var n=document.createElement("a");n.href=e,n.download=(t||this.w.globals.chartID)+i,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),e}(),V=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.axesUtils=new B(i),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight+1,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return n(e,[{key:"drawXaxis",value:function(){var e,t=this,i=this.w,n=new v(this.ctx),a=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(i.config.xaxis.offsetX,", ").concat(i.config.xaxis.offsetY,")")}),r=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")});a.add(r);for(var s=i.globals.padHorizontal,o=[],l=0;l<this.xaxisLabels.length;l++)o.push(this.xaxisLabels[l]);var c=o.length;if(i.globals.isXNumeric){var u=c>1?c-1:c;e=i.globals.gridWidth/u,s=s+e/2+i.config.xaxis.labels.offsetX}else e=i.globals.gridWidth/o.length,s=s+e+i.config.xaxis.labels.offsetX;for(var d=function(a){var l=s-e/2+i.config.xaxis.labels.offsetX;0===a&&1===c&&e/2===s&&1===i.globals.dataPoints&&(l=i.globals.gridWidth/2);var u=t.axesUtils.getLabel(o,i.globals.timescaleLabels,l,a,t.drawnLabels,t.xaxisFontSize),d=28;if(i.globals.rotateXLabels&&(d=22),(u=void 0!==i.config.xaxis.tickAmount&&"dataPoints"!==i.config.xaxis.tickAmount&&"datetime"!==i.config.xaxis.type?t.axesUtils.checkLabelBasedOnTickamount(a,u,c):t.axesUtils.checkForOverflowingLabels(a,u,c,t.drawnLabels,t.drawnLabelsRects)).text&&i.globals.xaxisLabelsCount++,i.config.xaxis.labels.show){var h=n.drawText({x:u.x,y:t.offY+i.config.xaxis.labels.offsetY+d-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:u.text,textAnchor:"middle",fontWeight:u.isBold?600:i.config.xaxis.labels.style.fontWeight,fontSize:t.xaxisFontSize,fontFamily:t.xaxisFontFamily,foreColor:Array.isArray(t.xaxisForeColors)?i.config.xaxis.convertedCatToNumeric?t.xaxisForeColors[i.globals.minX+a-1]:t.xaxisForeColors[a]:t.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass});r.add(h);var f=document.createElementNS(i.globals.SVGNS,"title");f.textContent=Array.isArray(u.text)?u.text.join(" "):u.text,h.node.appendChild(f),""!==u.text&&(t.drawnLabels.push(u.text),t.drawnLabelsRects.push(u))}s+=e},h=0;h<=c-1;h++)d(h);if(void 0!==i.config.xaxis.title.text){var f=n.group({class:"apexcharts-xaxis-title"}),p=n.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+i.globals.xAxisLabelsHeight+i.config.xaxis.title.offsetY,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass});f.add(p),a.add(f)}if(i.config.xaxis.axisBorder.show){var m=i.globals.barPadForNumericAxis,g=n.drawLine(i.globals.padHorizontal+i.config.xaxis.axisBorder.offsetX-m,this.offY,this.xaxisBorderWidth+m,this.offY,i.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);a.add(g)}return a}},{key:"drawXaxisInversed",value:function(e){var t,i,n=this,a=this.w,r=new v(this.ctx),s=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,o=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+s+", 0)"});o.add(l);var c=[];if(a.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=a.globals.gridHeight/c.length,i=-t/2.2;var d=a.globals.yLabelFormatters[0],h=a.config.yaxis[0].labels;if(h.show)for(var f=function(s){var o=void 0===c[s]?"":c[s];o=d(o,{seriesIndex:e,dataPointIndex:s,w:a});var u=n.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(o)&&(f=o.length/2*parseInt(h.style.fontSize,10));var p=r.drawText({x:h.offsetX-15,y:i+t+h.offsetY-f,text:o,textAnchor:n.yaxis.opposite?"start":"end",foreColor:Array.isArray(u)?u[s]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass});l.add(p);var m=document.createElementNS(a.globals.SVGNS,"title");if(m.textContent=Array.isArray(o)?o.join(" "):o,p.node.appendChild(m),0!==a.config.yaxis[e].labels.rotate){var g=r.rotateAroundCenter(p.node);p.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(g.y,")"))}i+=t},p=0;p<=c.length-1;p++)f(p);if(void 0!==a.config.yaxis[0].title.text){var m=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+s+", 0)"}),g=r.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});m.add(g),o.add(m)}var y=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(y=a.globals.gridWidth);var b=a.config.xaxis.axisBorder;if(b.show){var x=r.drawLine(a.globals.padHorizontal+b.offsetX+y,1+b.offsetY,a.globals.padHorizontal+b.offsetX+y,a.globals.gridHeight+b.offsetY,b.color,0);o.add(x)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,c.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t){var i=this.w,n=e;if(!(e<0||e-2>i.globals.gridWidth)){var a=this.offY+i.config.xaxis.axisTicks.offsetY,r=a+i.config.xaxis.axisTicks.height;if("top"===i.config.xaxis.position&&(r=a-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var s=new v(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,a+i.config.xaxis.offsetY,n+i.config.xaxis.axisTicks.offsetX,r+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);t.add(s),s.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,n=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<i;a++)n=this.xaxisLabels[a].position,t.push(n);else for(var r=i,s=0;s<r;s++){var o=r;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),n+=e.globals.gridWidth/o,t.push(n)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new v(this.ctx),i=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var s=0;s<n.length;s++){var o=t.rotateAroundCenter(n[s]);o.y=o.y-1,o.x=o.x+1,n[s].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),n[s].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=n[s].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(i){t.placeTextWithEllipsis(i,i.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var i=e.globals.gridWidth/(e.globals.labels.length+1),a=0;a<n.length;a++){var r=n[a].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(r,(function(e){t.placeTextWithEllipsis(e,e.textContent,i)}))}}();if(a.length>0){var c=a[a.length-1].getBBox(),u=a[0].getBBox();c.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var d=0;d<r.length;d++)t.placeTextWithEllipsis(r[d],r[d].textContent,e.config.yaxis[0].labels.maxWidth-2*parseFloat(e.config.yaxis[0].title.style.fontSize)-20)}}}]),e}(),q=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new B(i),this.isRangeBar=n.globals.seriesRangeBar.length,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return n(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=new v(this.ctx);null===e&&(e=i.group({class:"apexcharts-grid"}));var n=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),a=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(a),e.add(n),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new v(this.ctx),n=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var a=0;e.config.stroke.width.forEach((function(e){a=Math.max(a,e)})),n=a}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var r=e.config.chart.type,s=0,o=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(s=e.config.grid.padding.left,o=e.config.grid.padding.right,t.barPadForNumericAxis>s&&(s=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-n/2-s-2,-n/2,t.gridWidth+n+o+s+4,t.gridHeight+n,0,"#fff"),new x(this).getLargestMarkerSize();var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,n=e.y1,a=e.x2,r=e.y2,s=e.xCount,o=e.parent,l=this.w;0===t&&l.globals.skipFirstTimelinelabel||t===s-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:r,parent:o}),new V(this.ctx).drawXaxisTicks(i,this.elg))}},{key:"_drawGridLine",value:function(e){var t=e.x1,i=e.y1,n=e.x2,a=e.y2,r=e.parent,s=this.w,o=r.node.classList.contains("apexcharts-gridlines-horizontal"),l=s.config.grid.strokeDashArray,c=s.globals.barPadForNumericAxis,u=new v(this).drawLine(t-(o?c:0),i,n+(o?c:0),a,s.config.grid.borderColor,l);u.node.classList.add("apexcharts-gridline"),r.add(u)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,n=e.y1,a=e.x2,r=e.y2,s=e.type,o=this.w,l=new v(this.ctx),c=o.globals.barPadForNumericAxis;if("column"!==s||"datetime"!==o.config.xaxis.type){var u=o.config.grid[s].colors[t],d=l.drawRect(i-("row"===s?c:0),n,a+("row"===s?2*c:0),r,0,u,o.config.grid[s].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(s))}}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,n=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var r,s=a.globals.padHorizontal,o=a.globals.gridHeight;a.globals.timescaleLabels.length?function(e){for(var n=e.xC,a=e.x1,r=e.y1,s=e.x2,o=e.y2,l=0;l<n;l++)a=t.xaxisLabels[l].position,s=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:a,y1:r,x2:s,y2:o,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:s,y1:0,x2:r,y2:o}):(a.globals.isXNumeric&&(i=a.globals.xAxisScale.result.length),a.config.xaxis.convertedCatToNumeric&&(i=a.globals.xaxisLabelsCount),function(e){var n=e.xC,r=e.x1,s=e.y1,o=e.x2,l=e.y2;if(void 0!==a.config.xaxis.tickAmount&&"dataPoints"!==a.config.xaxis.tickAmount)a.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach((function(e,n){var a=e.getBBox();t._drawGridLines({i:n,x1:a.x+a.width/2,y1:s,x2:a.x+a.width/2,y2:l,xCount:i,parent:t.elgridLinesV})}));else for(var c=0;c<n+(a.globals.isXNumeric?0:1);c++)0===c&&1===n&&1===a.globals.dataPoints&&(o=r=a.globals.gridWidth/2),t._drawGridLines({i:c,x1:r,y1:s,x2:o,y2:l,xCount:i,parent:t.elgridLinesV}),o=r+=a.globals.gridWidth/(a.globals.isXNumeric?n-1:n)}({xC:i,x1:s,y1:0,x2:r,y2:o}))}if(a.config.grid.yaxis.lines.show){var l=0,c=0,u=a.globals.gridWidth,d=n+1;this.isRangeBar&&(d=a.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=a.globals.gridHeight/(this.isRangeBar?d:n)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var n,a=i.globals.padHorizontal,r=i.globals.gridHeight,s=0;s<t+1;s++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:a,y1:0,x2:n,y2:r,parent:this.elgridLinesV}),new V(this.ctx).drawXaxisTicks(a,this.elg),n=a=a+i.globals.gridWidth/t+.3;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,u=0;u<i.globals.dataPoints+1;u++)this._drawGridLine({x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=new v(this.ctx);this.elg=t.group({class:"apexcharts-grid"}),this.elgridLinesH=t.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=t.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,n=e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5,a=0;a<e.globals.series.length&&(void 0!==e.globals.yAxisScale[a]&&(n=e.globals.yAxisScale[a].result.length-1),!(n>2));a++);return!e.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(n=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:n})):(i=n,n=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:n})),this.drawGridBands(i,n),{el:this.elg,xAxisTickWidth:e.globals.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){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/t,r=i.globals.gridWidth,s=0,o=0;s<t;s++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:n,x2:r,y2:a,type:"row"}),n+=i.globals.gridHeight/t;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?e:e-1,c=i.globals.padHorizontal,u=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,h=0,f=0;h<e;h++,f++)f>=i.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:u,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),e}(),X=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"niceScale",value:function(e,t){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,r=this.w,s=Math.abs(t-e);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,n,s))&&(i=r.globals.dataPoints-1),e===Number.MIN_VALUE&&0===t||!p.isNumber(e)&&!p.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE){e=0,t=i;var o=this.linearScale(e,t,i);return o}e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=0===e?0:e-.5,t=0===t?2:t+.5);var l=[];s<1&&a&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[n].type||"boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[n].type||r.globals.isRangeData)&&(t*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var u=s/c,d=Math.floor(p.log10(u)),h=Math.pow(10,d),f=Math.round(u/h);f<1&&(f=1);var m=f*h,g=m*Math.floor(e/m),v=m*Math.ceil(t/m),y=g;if(a&&s>2){for(;l.push(y),!((y+=m)>v););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var b=e;(l=[]).push(b);for(var x=Math.abs(t-e)/i,_=0;_<=i;_++)b+=x,l.push(b);return l[l.length-2]>=t&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,a=Math.abs(t-e);"dataPoints"===(i=this._adjustTicksForSmallRange(i,n,a))&&(i=this.w.globals.dataPoints-1);var r=a/i;i===Number.MAX_VALUE&&(i=10,r=1);for(var s=[],o=e;i>=0;)s.push(o),o+=r,i-=1;return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScale",value:function(e,t){for(var i=[],n=Math.ceil(Math.log(e)/Math.log(t))+1,a=0;a<n;a++)i.push(Math.pow(t,a));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(e,t,i){var n=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var a=this.w.config.yaxis[t].labels.formatter(1);p.isNumber(Number(a))&&!p.isFloat(a)&&(n=Math.ceil(i))}return n<e?n:e}},{key:"setYScaleForIndex",value:function(e,t,i){var n=this.w.globals,a=this.w.config,r=n.isBarHorizontal?a.xaxis:a.yaxis[e];void 0===n.yAxisScale[e]&&(n.yAxisScale[e]=[]);var s=Math.abs(i-t);if(r.logarithmic&&s<=5&&(n.invalidLogScale=!0),r.logarithmic&&s>5)n.allSeriesCollapsed=!1,n.yAxisScale[e]=this.logarithmicScale(i,r.logBase);else if(i!==-Number.MAX_VALUE&&p.isNumber(i))if(n.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var o=void 0===a.yaxis[e].max&&void 0===a.yaxis[e].min||a.yaxis[e].forceNiceScale;n.yAxisScale[e]=this.niceScale(t,i,r.tickAmount?r.tickAmount:s<5&&s>1?s+1:5,e,o)}else n.yAxisScale[e]=this.linearScale(t,i,r.tickAmount,e);else n.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var i=this.w,n=i.globals,a=i.config.xaxis,r=Math.abs(t-e);return t!==-Number.MAX_VALUE&&p.isNumber(t)?n.xAxisScale=this.linearScale(e,t,a.tickAmount?a.tickAmount:r<5&&r>1?r+1:5,0):n.xAxisScale=this.linearScale(0,5,5),n.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,i=this.w.config,n=t.minYArr.concat([]),a=t.maxYArr.concat([]),r=[];i.yaxis.forEach((function(t,s){var o=s;i.series.forEach((function(e,i){e.name===t.seriesName&&(o=i,s!==i?r.push({index:i,similarIndex:s,alreadyExists:!0}):r.push({index:i}))}));var l=n[o],c=a[o];e.setYScaleForIndex(s,l,c)})),this.sameScaleInMultipleAxes(n,a,r)}},{key:"sameScaleInMultipleAxes",value:function(e,t,i){var n=this,a=this.w.config,r=this.w.globals,s=[];i.forEach((function(e){e.alreadyExists&&(void 0===s[e.index]&&(s[e.index]=[]),s[e.index].push(e.index),s[e.index].push(e.similarIndex))})),r.yAxisSameScaleIndices=s,s.forEach((function(e,t){s.forEach((function(i,n){var a,r;t!==n&&(a=e,r=i,a.filter((function(e){return-1!==r.indexOf(e)}))).length>0&&(s[t]=s[t].concat(s[n]))}))}));var o=s.map((function(e){return e.filter((function(t,i){return e.indexOf(t)===i}))})).map((function(e){return e.sort()}));s=s.filter((function(e){return!!e}));var l=o.slice(),c=l.map((function(e){return JSON.stringify(e)}));l=l.filter((function(e,t){return c.indexOf(JSON.stringify(e))===t}));var u=[],d=[];e.forEach((function(e,i){l.forEach((function(n,a){n.indexOf(i)>-1&&(void 0===u[a]&&(u[a]=[],d[a]=[]),u[a].push({key:i,value:e}),d[a].push({key:i,value:t[i]}))}))}));var h=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),f=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);u.forEach((function(e,t){e.forEach((function(e,i){h[t]=Math.min(e.value,h[t])}))})),d.forEach((function(e,t){e.forEach((function(e,i){f[t]=Math.max(e.value,f[t])}))})),e.forEach((function(e,t){d.forEach((function(e,i){var s=h[i],o=f[i];a.chart.stacked&&(o=0,e.forEach((function(e,t){e.value!==-Number.MAX_VALUE&&(o+=e.value),s!==Number.MIN_VALUE&&(s+=u[i][t].value)}))),e.forEach((function(i,l){e[l].key===t&&(void 0!==a.yaxis[t].min&&(s="function"==typeof a.yaxis[t].min?a.yaxis[t].min(r.minY):a.yaxis[t].min),void 0!==a.yaxis[t].max&&(o="function"==typeof a.yaxis[t].max?a.yaxis[t].max(r.maxY):a.yaxis[t].max),n.setYScaleForIndex(t,s,o))}))}))}))}},{key:"autoScaleY",value:function(e,t,i){e||(e=this);var n=e.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var a=n.globals.seriesX[0],r=n.config.chart.stacked;return t.forEach((function(e,s){for(var o=0,l=0;l<a.length;l++)if(a[l]>=i.xaxis.min){o=l;break}var c,u,d=n.globals.minYArr[s],h=n.globals.maxYArr[s],f=n.globals.stackedSeriesTotals;n.globals.series.forEach((function(s,l){var p=s[o];r?(p=f[o],c=u=p,f.forEach((function(e,t){a[t]<=i.xaxis.max&&a[t]>=i.xaxis.min&&(e>u&&null!==e&&(u=e),s[t]<c&&null!==s[t]&&(c=s[t]))}))):(c=u=p,s.forEach((function(e,t){if(a[t]<=i.xaxis.max&&a[t]>=i.xaxis.min){var r=e,s=e;n.globals.series.forEach((function(i,n){null!==e&&(r=Math.min(i[t],r),s=Math.max(i[t],s))})),s>u&&null!==s&&(u=s),r<c&&null!==r&&(c=r)}}))),void 0===c&&void 0===u&&(c=d,u=h),(u*=u<0?.9:1.1)<0&&u<h&&(u=h),(c*=c<0?1.1:.9)<0&&c>d&&(c=d),t.length>1?(t[l].min=void 0===e.min?c:e.min,t[l].max=void 0===e.max?u:e.max):(t[0].min=void 0===e.min?c:e.min,t[0].max=void 0===e.max?u:e.max)}))})),t}}]),e}(),U=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.scales=new X(i)}return n(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=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,r=this.w.globals,s=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===n&&(n=e+1);var l=r.series,c=l,u=l;"candlestick"===a.chart.type?(c=r.seriesCandleL,u=r.seriesCandleH):"boxPlot"===a.chart.type?(c=r.seriesCandleO,u=r.seriesCandleC):r.isRangeData&&(c=r.seriesRangeStart,u=r.seriesRangeEnd);for(var d=e;d<n;d++){r.dataPoints=Math.max(r.dataPoints,l[d].length);for(var h=0;h<r.series[d].length;h++){var f=l[d][h];null!==f&&p.isNumber(f)?(void 0!==u[d][h]&&(s=Math.max(s,u[d][h]),t=Math.min(t,u[d][h])),void 0!==c[d][h]&&(t=Math.min(t,c[d][h]),i=Math.max(i,c[d][h])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||(void 0!==r.seriesCandleC[d][h]&&(s=Math.max(s,r.seriesCandleO[d][h]),s=Math.max(s,r.seriesCandleH[d][h]),s=Math.max(s,r.seriesCandleL[d][h]),s=Math.max(s,r.seriesCandleC[d][h]),"boxPlot"===this.w.config.chart.type&&(s=Math.max(s,r.seriesCandleM[d][h]))),!a.series[d].type||"candlestick"===a.series[d].type&&"boxPlot"===a.series[d].type||(s=Math.max(s,r.series[d][h]),t=Math.min(t,r.series[d][h])),i=s),r.seriesGoals[d]&&r.seriesGoals[d][h]&&Array.isArray(r.seriesGoals[d][h])&&r.seriesGoals[d][h].forEach((function(e){o!==Number.MIN_VALUE&&(o=Math.min(o,e.value),t=o),s=Math.max(s,e.value),i=s})),p.isFloat(f)&&(f=p.noExponents(f),r.yValueDecimal=Math.max(r.yValueDecimal,f.toString().split(".")[1].length)),o>c[d][h]&&c[d][h]<0&&(o=c[d][h])):r.hasNullValues=!0}}return"rangeBar"===a.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(o=t),"bar"===a.chart.type&&(o<0&&s<0&&(s=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:s,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var n=0;n<e.series.length;n++){var a=this.getMinYMaxY(n,i,null,n+1);e.minYArr.push(a.minY),e.maxYArr.push(a.maxY),i=a.lowestY}var r=this.getMinYMaxY(0,i,null,e.series.length);if(e.minY=r.minY,e.maxY=r.maxY,i=r.lowestY,t.chart.stacked&&this._setStackedMinMax(),("line"===t.chart.type||"area"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal)&&e.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==e.maxY){var s=e.maxY-i;(i>=0&&i<=10||void 0!==t.yaxis[0].min||void 0!==t.yaxis[0].max)&&(s=0),e.minY=i-5*s/100,i>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*s/100}return t.yaxis.forEach((function(t,i){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[i]=t.max:"function"==typeof t.max&&(e.maxYArr[i]=t.max(e.isMultipleYAxis?e.maxYArr[i]:e.maxY)),e.maxY=e.maxYArr[i]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[i]=t.min:"function"==typeof t.min&&(e.minYArr[i]=t.min(e.isMultipleYAxis?e.minYArr[i]===Number.MIN_VALUE?0:e.minYArr[i]:e.minY)),e.minY=e.minYArr[i])})),e.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&"number"==typeof t.xaxis[i]&&("min"===i?e.minY=t.xaxis[i]:e.maxY=t.xaxis[i])})),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=i,e.yAxisScale.forEach((function(t,i){e.minYArr[i]=t.niceMin,e.maxYArr[i]=t.niceMax}))):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var i=0;i<e.labels[t].length;i++)null!==e.labels[t][i]&&p.isNumber(e.labels[t][i])&&(e.maxX=Math.max(e.maxX,e.labels[t][i]),e.initialMaxX=Math.max(e.maxX,e.labels[t][i]),e.minX=Math.min(e.minX,e.labels[t][i]),e.initialMinX=Math.min(e.minX,e.labels[t][i]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var n;if(void 0===t.xaxis.tickAmount?(n=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(n=e.dataPoints-1),n>e.dataPoints&&0!==e.dataPoints&&(n=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(n=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(n=e.maxX-e.minX-1)):n=t.xaxis.tickAmount,e.xTickAmount=n,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var a=[],r=e.minX-1;r<e.maxX;r++)a.push(r+1);e.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(1,n,n),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,n-1),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var i=0;i<e.seriesZ[t].length;i++)null!==e.seriesZ[t][i]&&p.isNumber(e.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][i]),e.minZ=Math.min(e.minZ,e.seriesZ[t][i]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var i=new Y(this.ctx);if("datetime"===t.xaxis.type){var n=i.getDate(e.minX);n.setUTCDate(n.getDate()-2),e.minX=new Date(n).getTime();var a=i.getDate(e.maxX);a.setUTCDate(a.getDate()+2),e.maxX=new Date(a).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,i){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var n=t.slice();n.sort((function(e,t){return e-t})),n.forEach((function(t,i){if(i>0){var a=t-n[i-1];a>0&&(e.minXDiff=Math.min(a,e.minXDiff))}})),1===e.dataPoints&&e.minXDiff===Number.MAX_VALUE&&(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this.w.globals,t=[],i=[];if(e.series.length)for(var n=0;n<e.series[e.maxValsInArrayIndex].length;n++)for(var a=0,r=0,s=0;s<e.series.length;s++)null!==e.series[s][n]&&p.isNumber(e.series[s][n])&&(e.series[s][n]>0?a=a+parseFloat(e.series[s][n])+1e-4:r+=parseFloat(e.series[s][n])),s===e.series.length-1&&(t.push(a),i.push(r));for(var o=0;o<t.length;o++)e.maxY=Math.max(e.maxY,t[o]),e.minY=Math.min(e.minY,i[o])}}]),e}(),$=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===n.config.xaxis.position&&(this.xAxisoffX=n.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new B(i)}return n(e,[{key:"drawYaxis",value:function(e){var t=this,i=this.w,n=new v(this.ctx),a=i.config.yaxis[e].labels.style,r=a.fontSize,s=a.fontFamily,o=a.fontWeight,l=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+i.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=n.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=i.globals.yAxisScale[e].result.length-1,d=i.globals.gridHeight/u,h=i.globals.translateY,f=i.globals.yLabelFormatters[e],p=i.globals.yAxisScale[e].result.slice();p=this.axesUtils.checkForReversedLabels(e,p);var m="";if(i.config.yaxis[e].labels.show)for(var g=function(l){var g=p[l];g=f(g,l,i);var v=i.config.yaxis[e].labels.padding;i.config.yaxis[e].opposite&&0!==i.config.yaxis.length&&(v*=-1);var y=t.axesUtils.getYAxisForeColor(a.colors,e),b=n.drawText({x:v,y:h+u/10+i.config.yaxis[e].labels.offsetY+1,text:g,textAnchor:i.config.yaxis[e].opposite?"start":"end",fontSize:r,fontFamily:s,fontWeight:o,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+a.cssClass});l===u&&(m=b),c.add(b);var x=document.createElementNS(i.globals.SVGNS,"title");if(x.textContent=Array.isArray(g)?g.join(" "):g,b.node.appendChild(x),0!==i.config.yaxis[e].labels.rotate){var _=n.rotateAroundCenter(m.node),w=n.rotateAroundCenter(b.node);b.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," ").concat(_.x," ").concat(w.y,")"))}h+=d},y=u;y>=0;y--)g(y);if(void 0!==i.config.yaxis[e].title.text){var b=n.group({class:"apexcharts-yaxis-title"}),x=0;i.config.yaxis[e].opposite&&(x=i.globals.translateYAxisX[e]);var _=n.drawText({x:x,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});b.add(_),l.add(b)}var w=i.config.yaxis[e].axisBorder,k=31+w.offsetX;if(i.config.yaxis[e].opposite&&(k=-31-w.offsetX),w.show){var M=n.drawLine(k,i.globals.translateY+w.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(M)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,u,w,i.config.yaxis[e].axisTicks,e,d,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});n.add(a);var r=t.globals.yAxisScale[e].result.length-1,s=t.globals.gridWidth/r+.1,o=s+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),u=t.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),r=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var d=u.length;if(t.config.xaxis.labels.show)for(var h=d?0:r;d?h<d:h>=0;d?h++:h--){var f=c[h];f=l(f,h,t);var p=t.globals.gridWidth+t.globals.padHorizontal-(o-s+t.config.xaxis.labels.offsetX);if(u.length){var m=this.axesUtils.getLabel(c,u,p,h,this.drawnLabels,this.xaxisFontSize);p=m.x,f=m.text,this.drawnLabels.push(m.text),0===h&&t.globals.skipFirstTimelinelabel&&(f=""),h===c.length-1&&t.globals.skipLastTimelinelabel&&(f="")}var g=i.drawText({x:p,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});a.add(g),g.tspan(f);var y=document.createElementNS(t.globals.SVGNS,"title");y.textContent=f,g.node.appendChild(y),o+=s}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new v(this.ctx),n=t.config.xaxis.axisBorder;if(n.show){var a=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(a-=15);var r=i.drawLine(t.globals.padHorizontal+a+n.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);e.add(r)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new v(this.ctx);if(void 0!==t.config.xaxis.title.text){var n=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=i.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,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});n.add(a),e.add(n)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,n=new v(this.ctx),a={width:0,height:0},r={width:0,height:0},s=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==s&&(a=s.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==o&&(r=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(e,a,r,t);o.setAttribute("x",l.xPos-(t?10:0))}if(null!==o){var c=n.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,n){var a=this.w,r=0,s=0,o=10;return void 0===a.config.yaxis[e].title.text||e<0?{xPos:s,padd:0}:(n?(s=t.width+a.config.yaxis[e].title.offsetX+i.width/2+o/2,0===(r+=1)&&(s-=o/2)):(s=-1*t.width+a.config.yaxis[e].title.offsetX+o/2+i.width/2,a.globals.isBarHorizontal&&(o=25,s=-1*t.width-a.config.yaxis[e].title.offsetX-o)),{xPos:s,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,n=0,a=0,r=18,s=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(o,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!o.show||o.floating||0===e[l].width,u=e[l].width+t[l].width;o.opposite?i.globals.isBarHorizontal?(a=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=a-o.labels.offsetX):(a=i.globals.gridWidth+i.globals.translateX+s,c||(s=s+u+20),i.globals.translateYAxisX[l]=a-o.labels.offsetX+20):(n=i.globals.translateX-r,c||(r=r+u+20),i.globals.translateYAxisX[l]=n+o.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=p.listToArray(t)).forEach((function(t,i){var n=e.config.yaxis[i];if(n&&void 0!==n.labels.align){var a=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=p.listToArray(r);var s=a.getBoundingClientRect();"left"===n.labels.align?(r.forEach((function(e,t){e.setAttribute("text-anchor","start")})),n.opposite||a.setAttribute("transform","translate(-".concat(s.width,", 0)"))):"center"===n.labels.align?(r.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),a.setAttribute("transform","translate(".concat(s.width/2*(n.opposite?1:-1),", 0)"))):"right"===n.labels.align&&(r.forEach((function(e,t){e.setAttribute("text-anchor","end")})),n.opposite&&a.setAttribute("transform","translate(".concat(s.width,", 0)")))}}))}}]),e}(),G=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.documentEvent=p.bind(this.documentEvent,this)}return n(e,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var n=i.globals.events[e].indexOf(t);-1!==n&&i.globals.events[e].splice(n,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var n=i.globals.events[e],a=n.length,r=0;r<a;r++)n[r].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,i=this.ctx,n=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){n.addEventListener(e,(function(e){var n=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,i,n):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,i,n):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,i,n),i.ctx.events.fireEvent("click",[e,i,n]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){t.globals.dom.baseEl.addEventListener(i,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,i=e.target.className;if("click"===e.type){var n=t.globals.dom.baseEl.querySelector(".apexcharts-menu");n&&n.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&n.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),Z=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter((function(t){return t.name===e}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=p.extend(k,i);this.w.globals.locale=n.options}}]),e}(),K=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"drawAxis",value:function(e,t){var i,n,a=this.w.globals,r=this.w.config,s=new V(this.ctx),o=new $(this.ctx);a.axisCharts&&"radar"!==e&&(a.isBarHorizontal?(n=o.drawYaxisInversed(0),i=s.drawXaxisInversed(0),a.dom.elGraphical.add(i),a.dom.elGraphical.add(n)):(i=s.drawXaxis(),a.dom.elGraphical.add(i),r.yaxis.map((function(e,t){-1===a.ignoreYAxisIndexes.indexOf(t)&&(n=o.drawYaxis(t),a.dom.Paper.add(n))}))))}}]),e}(),J=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new v(this.ctx),i=new g(this.ctx),n=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,r=e.config.xaxis.crosshairs.fill.type,s=n.colorFrom,o=n.colorTo,l=n.opacityFrom,c=n.opacityTo,u=n.stops,d=a.enabled,h=a.left,f=a.top,m=a.blur,y=a.color,b=a.opacity,x=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===r&&(x=t.drawGradient("vertical",s,o,l,c,null,u,null));var _=t.drawRect();1===e.config.xaxis.crosshairs.width&&(_=t.drawLine());var w=e.globals.gridHeight;(!p.isNumber(w)||w<0)&&(w=0);var k=e.config.xaxis.crosshairs.width;(!p.isNumber(k)||k<0)&&(k=0),_.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:w,width:k,height:w,fill:x,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(_=i.dropShadow(_,{left:h,top:f,blur:m,color:y,opacity:b})),e.globals.dom.elGraphical.add(_)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new v(this.ctx),i=e.config.yaxis[0].crosshairs,n=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=t.drawLine(-n,0,e.globals.gridWidth+n,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var r=t.drawLine(-n,0,e.globals.gridWidth+n,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(r)}}]),e}(),Q=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,n=i.config;if(0!==n.responsive.length){var a=n.responsive.slice();a.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var r=new N({}),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a[0].breakpoint,s=window.innerWidth>0?window.innerWidth:screen.width;if(s>n){var o=x.extendArrayProps(r,i.globals.initialConfig,i);e=p.extend(o,e),e=p.extend(i.config,e),t.overrideResponsiveOptions(e)}else for(var l=0;l<a.length;l++)s<a[l].breakpoint&&(e=x.extendArrayProps(r,a[l].options,i),e=p.extend(i.config,e),t.overrideResponsiveOptions(e))};if(e){var o=x.extendArrayProps(r,e,i);o=p.extend(i.config,o),s(o=p.extend(o,e))}else s({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new N(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),ee=function(){function e(i){t(this,e),this.ctx=i,this.colors=[],this.w=i.w;var n=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===n.config.chart.type&&n.config.plotOptions.treemap.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.distributed,this.isBarDistributed=n.config.plotOptions.bar.distributed&&("bar"===n.config.chart.type||"rangeBar"===n.config.chart.type)}return n(e,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this,t=this.w,i=new p;if(t.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(t.config.theme.mode)),void 0===t.config.colors?t.globals.colors=this.predefined():(t.globals.colors=t.config.colors,Array.isArray(t.config.colors)&&t.config.colors.length>0&&"function"==typeof t.config.colors[0]&&(t.globals.colors=t.config.series.map((function(i,n){var a=t.config.colors[n];return a||(a=t.config.colors[0]),"function"==typeof a?(e.isColorFn=!0,a({value:t.globals.axisCharts?t.globals.series[n][0]?t.globals.series[n][0]:0:t.globals.series[n],seriesIndex:n,dataPointIndex:n,w:t})):a})))),t.globals.seriesColors.map((function(e,i){e&&(t.globals.colors[i]=e)})),t.config.theme.monochrome.enabled){var n=[],a=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(a=t.globals.series[0].length*t.globals.series.length);for(var r=t.config.theme.monochrome.color,s=1/(a/t.config.theme.monochrome.shadeIntensity),o=t.config.theme.monochrome.shadeTo,l=0,c=0;c<a;c++){var u=void 0;"dark"===o?(u=i.shadeColor(-1*l,r),l+=s):(u=i.shadeColor(l,r),l+=s),n.push(u)}t.globals.colors=n.slice()}var d=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),["fill","stroke"].forEach((function(i){void 0===t.config[i].colors?t.globals[i].colors=e.isColorFn?t.config.colors:d:t.globals[i].colors=t.config[i].colors.slice(),e.pushExtraColors(t.globals[i].colors)})),void 0===t.config.dataLabels.style.colors?t.globals.dataLabels.style.colors=d:t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50),void 0===t.config.plotOptions.radar.polygons.fill.colors?t.globals.radarPolygons.fill.colors=["dark"===t.config.theme.mode?"#424242":"none"]:t.globals.radarPolygons.fill.colors=t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20),void 0===t.config.markers.colors?t.globals.markers.colors=d:t.globals.markers.colors=t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,a=t||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),e.length<a)for(var r=a-e.length,s=0;s<r;s++)e.push(e[s])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",i=e.theme.palette?e.theme.palette:"dark"===t?"palette4":"palette1",n=e.chart.foreColor?e.chart.foreColor:"dark"===t?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=n,e.theme.palette=i,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),e}(),te=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,i="title"===e?t.config.title:t.config.subtitle,n=t.globals.svgWidth/2,a=i.offsetY,r="middle";if("left"===i.align?(n=10,r="start"):"right"===i.align&&(n=t.globals.svgWidth-10,r="end"),n+=i.offsetX,a=a+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var s=new v(this.ctx).drawText({x:n,y:a,text:i.text,textAnchor:r,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});s.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(s)}}}]),e}(),ie=function(){function e(i){t(this,e),this.w=i.w,this.dCtx=i}return n(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,n=0,a="title"===e?t.config.title.floating:t.config.subtitle.floating,r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==r&&!a){var s=r.getBoundingClientRect();i=s.width,n=t.globals.axisCharts?s.height+5:s.height}return{width:i,height:n}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.baseEl.querySelector(".apexcharts-legend");e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var i=Object.assign({},p.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.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"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var n=t.map((function(e,t){return Array.isArray(e)?e.length:1})),a=Math.max.apply(Math,h(n));i=t[n.indexOf(a)]}return i}}]),e}(),ne=function(){function e(i){t(this,e),this.w=i.w,this.dCtx=i}return n(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();e={width:n.width,height:n.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var a=t.globals.xLabelFormatter,r=p.getLargestStringFromArr(i),s=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);t.globals.isBarHorizontal&&(s=r=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var o=new z(this.dCtx.ctx),l=r;r=o.xLabelFormat(a,r,l,{i:void 0,dateFormatter:new Y(this.dCtx.ctx).formatDate,w:t}),s=o.xLabelFormat(a,s,l,{i:void 0,dateFormatter:new Y(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(s=r="1");var c=new v(this.dCtx.ctx),u=c.getTextRects(r,t.config.xaxis.labels.style.fontSize),d=u;if(r!==s&&(d=c.getTextRects(s,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*i.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(r),r!==s&&(d=h(s)),e.height=(u.height>d.height?u.height:d.height)/1.5,e.width=u.width>d.width?u.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(void 0!==e.config.xaxis.title.text){var n=new v(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=n.width,i=n.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(e){return e.value})),n=i.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new v(this.dCtx.ctx).getTextRects(n,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,n=i.globals,a=i.config,r=a.xaxis.type,s=e.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(e,o){(function(e){return-1!==n.collapsedSeriesIndices.indexOf(e)})(o)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+s/1.75-t.dCtx.yAxisWidthRight,c=o.position-s/1.75+t.dCtx.yAxisWidthLeft,u="right"===i.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>n.svgWidth-n.translateX-u&&(n.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==a.chart.type&&"candlestick"!==a.chart.type&&"rangeBar"!==a.chart.type&&"boxPlot"!==a.chart.type?10:s/1.75)&&(n.skipFirstTimelinelabel=!0)}else"datetime"===r?t.dCtx.gridPad.right<s&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"!==r&&t.dCtx.gridPad.right<s/2-t.dCtx.yAxisWidthRight&&!n.rotateXLabels&&!i.config.xaxis.labels.trim&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(t.dCtx.xPadRight=s/2+1)}(e)};a.yaxis.forEach((function(e,i){o?(t.dCtx.gridPad.left<s&&(t.dCtx.xPadLeft=s/2+1),t.dCtx.xPadRight=s/2+1):l(e,i)}))}}]),e}(),ae=function(){function e(i){t(this,e),this.w=i.w,this.dCtx=i}return n(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],n=10,a=new B(this.dCtx.ctx);return t.config.yaxis.map((function(r,s){var o=t.globals.yAxisScale[s],l=0;if(!a.isYAxisHidden(s)&&r.labels.show&&void 0!==r.labels.minWidth&&(l=r.labels.minWidth),!a.isYAxisHidden(s)&&r.labels.show&&o.result.length){var c=t.globals.yLabelFormatters[s],u=o.niceMin===Number.MIN_VALUE?0:o.niceMin,d=String(u).length>String(o.niceMax).length?u:o.niceMax,h=c(d,{seriesIndex:s,dataPointIndex:-1,w:t}),f=h;if(void 0!==h&&0!==h.length||(h=d),t.globals.isBarHorizontal){n=0;var m=t.globals.labels.slice();h=c(h=p.getLargestStringFromArr(m),{seriesIndex:s,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,m)}var g=new v(e.dCtx.ctx),y="rotate(".concat(r.labels.rotate," 0 0)"),b=g.getTextRects(h,r.labels.style.fontSize,r.labels.style.fontFamily,y,!1),x=b;h!==f&&(x=g.getTextRects(f,r.labels.style.fontSize,r.labels.style.fontFamily,y,!1)),i.push({width:(l>x.width||l>b.width?l:x.width>b.width?x.width:b.width)+n,height:x.height>b.height?x.height:b.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map((function(t,n){if(t.show&&void 0!==t.title.text){var a=new v(e.dCtx.ctx),r="rotate(".concat(t.title.rotate," 0 0)"),s=a.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,r,!1);i.push({width:s.width,height:s.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,n=0,a=e.globals.yAxisScale.length>1?10:0,r=new B(this.dCtx.ctx),s=function(s,o){var l=e.config.yaxis[o].floating,c=0;s.width>0&&!l?(c=s.width+a,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(c=c-s.width-a)):c=l||r.isYAxisHidden(o)?0:5,e.config.yaxis[o].opposite?n+=c:i+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){s(e,t)})),e.globals.yTitleCoords.map((function(e,t){s(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=n,t}}]),e}(),re=function(){function e(i){t(this,e),this.w=i.w,this.dCtx=i}return n(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var i=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},n=t.config.chart.type,a=0,r=i(n)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(r=t.globals.comboBarCount),t.globals.collapsedSeries.forEach((function(e){i(e.type)&&(r-=1)})),t.config.chart.stacked&&(r=1),(i(n)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&r>0){var s,o,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),s=l/e,t.globals.minXDiff&&t.globals.minXDiff/s>0&&(o=t.globals.minXDiff/s),o>e/2&&(o/=2),(a=o/r*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(a=1),a=a/(r>1?1:1.5)+5,t.globals.barPadForNumericAxis=a}return a}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,n=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==t.config[i].text?n+=t.config[i].margin:n+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(n+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-a.height-r.height-n,i.translateY=i.translateY+a.height+r.height+n}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,n=new B(this.dCtx.ctx);i.config.yaxis.map((function(a,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||a.floating||n.isYAxisHidden(r)||(a.opposite&&(i.globals.translateX=i.globals.translateX-(t[r].width+e[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),e}(),se=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ie(this),this.dimYAxis=new ae(this),this.dimXAxis=new ne(this),this.dimGrid=new re(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return n(e,[{key:"plotCoords",value:function(){var e=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),e.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),e.gridHeight=e.gridHeight-this.gridPad.top-this.gridPad.bottom,e.gridWidth=e.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var t=this.dimGrid.gridPadForColumnsInNumericAxis(e.gridWidth);e.gridWidth=e.gridWidth-2*t,e.translateX=e.translateX+this.gridPad.left+this.xPadLeft+(t>0?t+4:0),e.translateY=e.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,n=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,i){t.globals.yLabelsCoords.push({width:n[i].width,index:i}),t.globals.yTitleCoords.push({width:a[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,s),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var o=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-s.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===t.config.chart.type||this.isSparkline)&&(o=0,l=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(o=0,l=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var u=function(){i.translateX=o,i.gridHeight=i.svgHeight-e.lgRect.height-l-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o};switch("top"===t.config.xaxis.position&&(c=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=c,u();break;case"top":i.translateY=this.lgRect.height+c,u();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o;break;case"right":i.translateY=c,i.translateX=o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-o-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,n),new $(this.ctx).setYAxisXPosition(n,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,n=0;e.config.legend.show&&!e.config.legend.floating&&(n=20);var a="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[a].offsetY,s=i.plotOptions[a].offsetX;if(!i.legend.show||i.legend.floating)return t.gridHeight=t.svgHeight-i.grid.padding.left+i.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=r,void(t.translateX=s+(t.svgWidth-t.gridWidth)/2);switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=r-10,t.translateX=s+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+r+10,t.translateX=s+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-n,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=s+this.lgRect.width+n;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-n-5,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=r,t.translateX=s+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t){var i=this.w,n=e.height+t.height,a=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,r=i.globals.rotateXLabels?22:10,s=i.globals.rotateXLabels&&"bottom"===i.config.legend.position?10:0;this.xAxisHeight=n*a+r+s,this.xAxisWidth=e.width,this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var o=0,l=0;i.config.yaxis.forEach((function(e){o+=e.labels.minWidth,l+=e.labels.maxWidth})),this.yAxisWidth<o&&(this.yAxisWidth=o),this.yAxisWidth>l&&(this.yAxisWidth=l)}}]),e}(),oe=function(){function e(i){t(this,e),this.w=i.w,this.lgCtx=i}return n(e,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=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 e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject");var t=e.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",e.svgWidth),t.setAttribute("height",e.svgHeight),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(e.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),e.dom.Paper.node.insertBefore(t,e.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(e,t){var i=this,n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;var a=null,r=null;n.globals.risingSeries=[],n.globals.axisCharts?(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),r=parseInt(a.getAttribute("data:realIndex"),10)):(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),r=parseInt(a.getAttribute("rel"),10)-1),t?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){i.riseCollapsedSeries(e.cs,e.csi,r)})):this.hideSeries({seriesEl:a,realIndex:r})}else{var s=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=n.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=n.config.plotOptions.pie.donut.labels;new v(this.lgCtx.ctx).pathMouseDown(s.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(s.members[0].node,l)}s.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,n=this.w,a=p.clone(n.config.series);if(n.globals.axisCharts){var r=!1;if(n.config.yaxis[i]&&n.config.yaxis[i].show&&n.config.yaxis[i].showAlways&&(r=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(n.globals.ancillaryCollapsedSeries.push({index:i,data:a[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){n.globals.collapsedSeries.push({index:i,data:a[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(i);var s=n.globals.risingSeries.indexOf(i);n.globals.risingSeries.splice(s,1)}}else n.globals.collapsedSeries.push({index:i,data:a[i]}),n.globals.collapsedSeriesIndices.push(i);for(var o=t.childNodes,l=0;l<o.length;l++)o[l].classList.contains("apexcharts-series-markers-wrap")&&(o[l].classList.contains("apexcharts-hide")?o[l].classList.remove("apexcharts-hide"):o[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(e,t,i){var n=this.w,a=p.clone(n.config.series);if(e.length>0){for(var r=0;r<e.length;r++)e[r].index===i&&(n.globals.axisCharts?(a[i].data=e[r].data.slice(),e.splice(r,1),t.splice(r,1),n.globals.risingSeries.push(i)):(a[i]=e[r].data,e.splice(r,1),t.splice(r,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(e){var t=this.w;return t.globals.axisCharts?e.forEach((function(i,n){t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[])})):e.forEach((function(i,n){t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n]=0)})),e}}]),e}(),le=function(){function e(i,n){t(this,e),this.ctx=i,this.w=i.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new oe(this)}return n(e,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),p.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,n=t.globals.seriesNames,a=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var r=t.config.plotOptions.heatmap.colorScale.ranges;n=r.map((function(e){return e.name?e.name:e.from+" - "+e.to})),a=r.map((function(e){return e.color}))}else this.isBarsDistributed&&(n=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(n=t.config.legend.customLegendItems);for(var s=t.globals.legendFormatter,o=t.config.legend.inverseOrder,l=o?n.length-1:0;o?l>=0:l<=n.length-1;o?l--:l++){var c=s(n[l],{seriesIndex:l,w:t}),u=!1,d=!1;if(t.globals.collapsedSeries.length>0)for(var h=0;h<t.globals.collapsedSeries.length;h++)t.globals.collapsedSeries[h].index===l&&(u=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<t.globals.ancillaryCollapsedSeriesIndices.length;f++)t.globals.ancillaryCollapsedSeriesIndices[f]===l&&(d=!0);var m=document.createElement("span");m.classList.add("apexcharts-legend-marker");var g=t.config.legend.markers.offsetX,y=t.config.legend.markers.offsetY,b=t.config.legend.markers.height,_=t.config.legend.markers.width,w=t.config.legend.markers.strokeWidth,k=t.config.legend.markers.strokeColor,M=t.config.legend.markers.radius,L=m.style;L.background=a[l],L.color=a[l],L.setProperty("background",a[l],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[l]&&(L.background=t.config.legend.markers.fillColors[l]),void 0!==t.globals.seriesColors[l]&&(L.background=t.globals.seriesColors[l],L.color=t.globals.seriesColors[l]),L.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",L.width=Array.isArray(_)?parseFloat(_[l])+"px":parseFloat(_)+"px",L.left=(Array.isArray(g)?parseFloat(g[l]):parseFloat(g))+"px",L.top=(Array.isArray(y)?parseFloat(y[l]):parseFloat(y))+"px",L.borderWidth=Array.isArray(w)?w[l]:w,L.borderColor=Array.isArray(k)?k[l]:k,L.borderRadius=Array.isArray(M)?parseFloat(M[l])+"px":parseFloat(M)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[l]&&(m.innerHTML=t.config.legend.markers.customHTML[l]()):m.innerHTML=t.config.legend.markers.customHTML()),v.setAttrs(m,{rel:l+1,"data:collapsed":u||d}),(u||d)&&m.classList.add("apexcharts-inactive-legend");var S=document.createElement("div"),A=document.createElement("span");A.classList.add("apexcharts-legend-text"),A.innerHTML=Array.isArray(c)?c.join(" "):c;var T=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:t.config.legend.labels.colors;T||(T=t.config.chart.foreColor),A.style.color=T,A.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",A.style.fontWeight=t.config.legend.fontWeight,A.style.fontFamily=i||t.config.chart.fontFamily,v.setAttrs(A,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":u||d}),S.appendChild(m),S.appendChild(A);var C=new x(this.ctx);t.config.legend.showForZeroSeries||0===C.getSeriesTotalByIndex(l)&&C.seriesHaveSameValues(l)&&!C.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&S.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||C.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&S.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(S),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),S.classList.add("apexcharts-legend-series"),S.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",v.setAttrs(S,{rel:l+1,seriesName:p.escapeString(n[l]),"data:collapsed":u||d}),(u||d)&&S.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||S.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,n=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),a=n.getBoundingClientRect(),r=0,s=0;if("bottom"===i.config.legend.position)s+=i.globals.svgHeight-a.height/2;else if("top"===i.config.legend.position){var o=new se(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;s=s+(l>0?l-10:0)+(c>0?c-10:0)}n.style.position="absolute",r=r+e+i.config.legend.offsetX,s=s+t+i.config.legend.offsetY,n.style.left=r+"px",n.style.top=s+"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(e){n.style[e]&&(n.style[e]=parseInt(i.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),i=new se(this.ctx),n=i.dimHelpers.getTitleSubtitleCoords("title"),a=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===e.config.legend.position?r=-t.clwh/1.8:"top"===e.config.legend.position&&(r=n.height+a.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),i=0;"left"===e.config.legend.position&&(i=20),"right"===e.config.legend.position&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(i){var n=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new E(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new E(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,n="true"===e.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 r=this.w.config.legend.markers.onClick;"function"==typeof r&&e.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,n)}}}]),e}(),ce=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return n(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},n=i();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=t.config.chart.toolbar.offsetY+"px",n.style.right=3-t.config.chart.toolbar.offsetX+"px",t.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=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(i());var r=[],s=function(i,n,a){var s=i.toLowerCase();e.t[s]&&t.config.chart.zoom.enabled&&r.push({el:n,icon:"string"==typeof e.t[s]?e.t[s]:a,title:e.localeValues[i],class:"apexcharts-".concat(s,"-icon")})};s("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'),s("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 o=function(i){e.t[i]&&t.config.chart[i].enabled&&r.push({el:"zoom"===i?e.elZoom:e.elSelection,icon:"string"==typeof e.t[i]?e.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:e.localeValues["zoom"===i?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),s("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&&r.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++)r.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});r.forEach((function(e,t){e.index&&p.moveIndexInArray(r,t,e.index)}));for(var c=0;c<r.length;c++)v.setAttrs(r[c].el,{class:r[c].class,title:r[c].title}),r[c].el.innerHTML=r[c].icon,n.appendChild(r[c].el);this._createHamburgerMenu(n),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),v.setAttrs(this.elMenu,{class:"apexcharts-menu"});var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||t.splice(2,1);for(var i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,v.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(t[i].name),title:t[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var e=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(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var i="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,n="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[n]=!t.w.globals[n],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,i="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,i=(this.minX+t)/2,n=(this.maxX+t)/2,a=this._getNewMinXMaxX(i,n);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,i=this.minX-(t-this.minX),n=this.maxX-(t-this.maxX),a=this._getNewMinXMaxX(i,n);e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var i=this.w;if(void 0!==e||void 0!==t){if(!(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))){var n={min:e,max:t},a=this.getBeforeZoomRange(n);a&&(n=a.xaxis);var r={xaxis:n},s=p.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(s=new X(this.ctx).autoScaleY(this.ctx,s,{xaxis:n})),i.config.chart.group||(r.yaxis=s),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(r,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,s)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,i=new W(this.ctx);switch(e){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=void 0,t.globals.lastXAxis.max=void 0,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var i=t.config.chart.events.beforeResetZoom(e,t);i&&e.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var n=e.ctx.series.emptyCollapsedSeries(p.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(n,t.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}}]),e}(),ue=function(e){o(a,e);var i=d(a);function a(e){var n;return t(this,a),(n=i.call(this,e)).ctx=e,n.w=e.w,n.dragged=!1,n.graphics=new v(n.ctx),n.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],n.clientX=0,n.clientY=0,n.startX=0,n.endX=0,n.dragX=0,n.startY=0,n.endY=0,n.dragY=0,n.moveDirection="none",n}return n(a,[{key:"init",value:function(e){var t=this,i=e.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(e){t.hoverArea.addEventListener(e,a.svgMouseEvents.bind(a,i),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var i=this.w,n=this,a=this.ctx.toolbar,r=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,s=i.config.chart.toolbar.autoSelected;t.shiftKey?(this.shiftWasPressed=!0,a.enableZoomPanFromToolbar("pan"===s?"zoom":"pan")):this.shiftWasPressed&&(a.enableZoomPanFromToolbar(s),this.shiftWasPressed=!1);var o=t.target.classList;if(!(o.contains("apexcharts-selection-rect")||o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||t.target.parentNode.classList.contains("apexcharts-toolbar"))){if(n.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,n.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var l=n.gridRect.getBoundingClientRect();n.startX=n.clientX-l.left,n.startY=n.clientY-l.top,n.dragged=!1,n.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(n.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:r,xyRatios:e})):(n.w.globals.mousedown&&i.globals.zoomEnabled||n.w.globals.mousedown&&i.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:r}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var c=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-c.left,n.endY=n.clientY-c.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:r}),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 e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var i=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,n={x:i,y:0,width:e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-i,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,i=e.y,n=e.width,a=e.height,r=e.translateX,s=void 0===r?0:r,o=e.translateY,l=void 0===o?0:o,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+s+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),u.attr({x:t,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}),v.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:i,width:n>0?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}),v.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,i=e.context,n=e.zoomtype,a=this.w,r=i,s=this.gridRect.getBoundingClientRect(),o=r.startX-1,l=r.startY,c=!1,u=!1,d=r.clientX-s.left-o,h=r.clientY-s.top-l;return Math.abs(d+o)>a.globals.gridWidth?d=a.globals.gridWidth-o:r.clientX-s.left<0&&(d=o),o>r.clientX-s.left&&(c=!0,d=Math.abs(d)),l>r.clientY-s.top&&(u=!0,h=Math.abs(h)),t="x"===n?{x:c?o-d:o,y:0,width:d,height:a.globals.gridHeight}:"y"===n?{x:0,y:u?l-h:l,width:a.globals.gridWidth,height:h}:{x:c?o-d:o,y:u?l-h:l,width:d,height:h},r.drawSelectionRect(t),r.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var i=this,n=this.w,a=this.xyRatios,r=this.selectionRect,s=0;"resizing"===e&&(s=30);var o=function(e){return parseFloat(r.node.getAttribute(e))},l={x:o("x"),y:o("y"),width:o("width"),height:o("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 e=i.gridRect.getBoundingClientRect(),t=r.node.getBoundingClientRect(),s={xaxis:{min:n.globals.xAxisScale.niceMin+(t.left-e.left)*a.xRatio,max:n.globals.xAxisScale.niceMin+(t.right-e.left)*a.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(e.bottom-t.bottom)*a.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(t.top-e.top)*a.yRatio[0]}};n.config.chart.events.selection(i.ctx,s),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(i.ctx,s)}),s))}},{key:"selectionDrawn",value:function(e){var t=e.context,i=e.zoomtype,n=this.w,a=t,r=this.xyRatios,s=this.ctx.toolbar;if(a.startX>a.endX){var o=a.startX;a.startX=a.endX,a.endX=o}if(a.startY>a.endY){var l=a.startY;a.startY=a.endY,a.endY=l}var c=void 0,u=void 0;n.globals.isRangeBar?(c=n.globals.yAxisScale[0].niceMin+a.startX*r.invertedYRatio,u=n.globals.yAxisScale[0].niceMin+a.endX*r.invertedYRatio):(c=n.globals.xAxisScale.niceMin+a.startX*r.xRatio,u=n.globals.xAxisScale.niceMin+a.endX*r.xRatio);var d=[],h=[];if(n.config.yaxis.forEach((function(e,t){d.push(n.globals.yAxisScale[t].niceMax-r.yRatio[t]*a.startY),h.push(n.globals.yAxisScale[t].niceMax-r.yRatio[t]*a.endY)})),a.dragged&&(a.dragX>10||a.dragY>10)&&c!==u)if(n.globals.zoomEnabled){var f=p.clone(n.globals.initialConfig.yaxis),m=p.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=n.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==i&&"x"!==i||(m={min:c,max:u}),"xy"!==i&&"y"!==i||f.forEach((function(e,t){f[t].min=h[t],f[t].max=d[t]})),n.config.chart.zoom.autoScaleYaxis){var g=new X(a.ctx);f=g.autoScaleY(a.ctx,f,{xaxis:m})}if(s){var v=s.getBeforeZoomRange(m,f);v&&(m=v.xaxis?v.xaxis:m,f=v.yaxis?v.yaxis:f)}var y={xaxis:m};n.config.chart.group||(y.yaxis=f),a.ctx.updateHelpers._updateOptions(y,!1,a.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&s.zoomCallback(m,f)}else if(n.globals.selectionEnabled){var b,x=null;b={min:c,max:u},"xy"!==i&&"y"!==i||(x=p.clone(n.config.yaxis)).forEach((function(e,t){x[t].min=h[t],x[t].max=d[t]})),n.globals.selection=a.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(a.ctx,{xaxis:b,yaxis:x})}}},{key:"panDragging",value:function(e){var t=e.context,i=this.w,n=t;if(void 0!==i.globals.lastClientPosition.x){var a=i.globals.lastClientPosition.x-n.clientX,r=i.globals.lastClientPosition.y-n.clientY;Math.abs(a)>Math.abs(r)&&a>0?this.moveDirection="left":Math.abs(a)>Math.abs(r)&&a<0?this.moveDirection="right":Math.abs(r)>Math.abs(a)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(a)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:n.clientX,y:n.clientY};var s=i.globals.isRangeBar?i.globals.minY:i.globals.minX,o=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||n.panScrolled(s,o)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,i=e.globals.maxX,n=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+n,i=e.globals.maxX+n):"right"===this.moveDirection&&(t=e.globals.minX-n,i=e.globals.maxX-n),t=Math.floor(t),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:t,max:i}},t,i)}},{key:"panScrolled",value:function(e,t){var i=this.w,n=this.xyRatios,a=p.clone(i.globals.initialConfig.yaxis),r=n.xRatio,s=i.globals.minX,o=i.globals.maxX;i.globals.isRangeBar&&(r=n.invertedYRatio,s=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(e=s+i.globals.gridWidth/15*r,t=o+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(e=s-i.globals.gridWidth/15*r,t=o-i.globals.gridWidth/15*r),i.globals.isRangeBar||(e<i.globals.initialMinX||t>i.globals.initialMaxX)&&(e=s,t=o);var l={min:e,max:t};i.config.chart.zoom.autoScaleYaxis&&(a=new X(this.ctx).autoScaleY(this.ctx,a,{xaxis:l}));var c={xaxis:{min:e,max:t}};i.config.chart.group||(c.yaxis=a),this.updateScrolledChart(c,e,t)}},{key:"updateScrolledChart",value:function(e,t,i){var n=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:i}})}}]),a}(ce),de=function(){function e(i){t(this,e),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx}return n(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,n=e.clientX,a=e.clientY,r=this.w,s=i.getBoundingClientRect(),o=s.width,l=s.height,c=o/(r.globals.dataPoints-1),u=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(c=o/r.globals.dataPoints);var h=n-s.left-r.globals.barPadForNumericAxis,f=a-s.top;h<0||f<0||h>o||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):r.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):r.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var m=Math.round(h/c),g=Math.floor(f/u);d&&!r.config.xaxis.convertedCatToNumeric&&(m=Math.ceil(h/c),m-=1);for(var v,y=null,b=null,x=[],_=0;_<r.globals.seriesXvalues.length;_++)x.push([r.globals.seriesXvalues[_][0]-1e-6].concat(r.globals.seriesXvalues[_]));if(x=x.map((function(e){return e.filter((function(e){return e}))})),v=r.globals.seriesYvalues.map((function(e){return e.filter((function(e){return p.isNumber(e)}))})),r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=h*(w.width/o),M=f*(w.height/l);y=(b=this.closestInMultiArray(k,M,x,v)).index,m=b.j,null!==y&&(x=r.globals.seriesXvalues[y],m=(b=this.closestInArray(k,x)).index)}return r.globals.capturedSeriesIndex=null===y?-1:y,(!m||m<1)&&(m=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=g:r.globals.capturedDataPointIndex=m,{capturedSeries:y,j:r.globals.isBarHorizontal?g:m,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,i,n){var a=this.w,r=0,s=null,o=-1;a.globals.series.length>1?r=this.getFirstActiveXArray(i):s=0;var l=n[r][0],c=i[r][0],u=Math.abs(e-c),d=Math.abs(t-l),h=d+u;return n.map((function(a,r){a.map((function(a,l){var c=Math.abs(t-n[r][l]),f=Math.abs(e-i[r][l]),p=f+c;p<h&&(h=p,u=f,d=c,s=r,o=l)}))})),{index:s,j:o}}},{key:"getFirstActiveXArray",value:function(e){for(var t=0,i=e.map((function(e,t){return e.length>0?t:-1})),n=0;n<i.length;n++)if(-1!==i[n]){t=i[n];break}return t}},{key:"closestInArray",value:function(e,t){for(var i=t[0],n=null,a=Math.abs(e-i),r=0;r<t.length;r++){var s=Math.abs(e-t[r]);s<a&&(a=s,n=r)}return{index:n}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(i.length>0)for(var n=0;n<i.length-1;n++)void 0!==i[n][e]&&void 0!==i[n+1][e]&&i[n][e]!==i[n+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,i=0;i<t.length-1;i++)if(t[i].data.length!==t[i+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return h(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=h(e)).sort((function(e,t){return Number(t.getAttribute("data:realIndex"))<Number(e.getAttribute("data:realIndex"))?0:-1}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{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(e){var t=this.w,i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=i.allTooltipSeriesGroups,a=0;a<n.length;a++)"enable"===e?(n[a].classList.add("apexcharts-active"),n[a].style.display=t.config.tooltip.items.display):(n[a].classList.remove("apexcharts-active"),n[a].style.display="none")}}]),e}(),he=function(){function e(i){t(this,e),this.w=i.w,this.ctx=i.ctx,this.ttCtx=i,this.tooltipUtil=new de(i)}return n(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=void 0===t||t,n=e.ttItems,a=e.i,r=void 0===a?0:a,s=e.j,o=void 0===s?null:s,l=e.y1,c=e.y2,u=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:r,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var h=this.getValuesToPrint({i:r,j:o});this.printLabels({i:r,j:o,values:h,ttItems:n,shared:i,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,n=e.i,a=e.j,r=e.values,o=e.ttItems,l=e.shared,c=e.e,u=this.w,d=[],h=function(e){return u.globals.seriesGoals[e]&&u.globals.seriesGoals[e][a]&&Array.isArray(u.globals.seriesGoals[e][a])},f=r.xVal,p=r.zVal,m=r.xAxisTTVal,g="",v=u.globals.colors[n];null!==a&&u.config.plotOptions.bar.distributed&&(v=u.globals.colors[a]);for(var y=function(e,r){var y=i.getFormatters(n);g=i.getSeriesName({fn:y.yLbTitleFormatter,index:n,seriesIndex:n,j:a}),"treemap"===u.config.chart.type&&(g=y.yLbTitleFormatter(String(u.config.series[n].data[a].x),{series:u.globals.series,seriesIndex:n,dataPointIndex:a,w:u}));var b=u.config.tooltip.inverseOrder?r:e;if(u.globals.axisCharts){var x=function(e){return y.yLbFormatter(u.globals.series[e][a],{series:u.globals.series,seriesIndex:e,dataPointIndex:a,w:u})};l?(y=i.getFormatters(b),g=i.getSeriesName({fn:y.yLbTitleFormatter,index:b,seriesIndex:n,j:a}),v=u.globals.colors[b],t=x(b),h(b)&&(d=u.globals.seriesGoals[b][a].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:b,dataPointIndex:a,w:u})}})))):(c&&c.target&&c.target.getAttribute("fill")&&(v=c.target.getAttribute("fill")),t=x(n),h(n)&&Array.isArray(u.globals.seriesGoals[n][a])&&(d=u.globals.seriesGoals[n][a].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:n,dataPointIndex:a,w:u})}}))))}null===a&&(t=y.yLbFormatter(u.globals.series[n],s(s({},u),{},{seriesIndex:n,dataPointIndex:n}))),i.DOMHandling({i:n,t:b,j:a,ttItems:o,values:{val:t,goalVals:d,xVal:f,xAxisTTVal:m,zVal:p},seriesName:g,shared:l,pColor:v})},b=0,x=u.globals.series.length-1;b<u.globals.series.length;b++,x--)y(b,x)}},{key:"getFormatters",value:function(e){var t,i=this.w,n=i.globals.yLabelFormatters[e];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(n=i.globals.ttVal[e]&&i.globals.ttVal[e].formatter,t=i.globals.ttVal[e]&&i.globals.ttVal[e].title&&i.globals.ttVal[e].title.formatter):(n=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(t=i.globals.ttVal.title.formatter)):t=i.config.tooltip.y.title.formatter,"function"!=typeof n&&(n=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:n,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,i=e.index,n=e.seriesIndex,a=e.j,r=this.w;return t(String(r.globals.seriesNames[i]),{series:r.globals.series,seriesIndex:n,dataPointIndex:a,w:r})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,i=e.j,n=e.ttItems,a=e.values,r=e.seriesName,s=e.shared,o=e.pColor,l=this.w,c=this.ttCtx,u=a.val,d=a.goalVals,h=a.xVal,f=a.xAxisTTVal,p=a.zVal,m=null;m=n[t].children,l.config.tooltip.fillSeriesColor&&(n[t].style.backgroundColor=o,m[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=h),c.blxaxisTooltip&&(c.xaxisTooltipText.innerHTML=""!==f?f:h);var g=n[t].querySelector(".apexcharts-tooltip-text-y-label");g&&(g.innerHTML=r||"");var v=n[t].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==u?u:""),m[0]&&m[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[t]),m[0].style.backgroundColor=o),l.config.tooltip.marker.show||(m[0].style.display="none");var y=n[t].querySelector(".apexcharts-tooltip-text-goals-label"),b=n[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var x=function(){var e="<div >",t="<div>";d.forEach((function(i,n){e+=' <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>"),t+="<div>".concat(i.val,"</div>")})),y.innerHTML=e+"</div>",b.innerHTML=t+"</div>"};s?l.globals.seriesGoals[t][i]&&Array.isArray(l.globals.seriesGoals[t][i])?x():(y.innerHTML="",b.innerHTML=""):x()}else y.innerHTML="",b.innerHTML="";null!==p&&(n[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,n[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),s&&m[0]&&(null==u||l.globals.collapsedSeriesIndices.indexOf(t)>-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,n=this.w,a=this.ctx.series.filteredSeriesX(),r="",s="",o=null,l=null,c={series:n.globals.series,seriesIndex:t,dataPointIndex:i,w:n},u=n.globals.ttZFormatter;null===i?l=n.globals.series[t]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(r=a[t][i],0===a[t].length&&(r=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):r=void 0!==n.globals.labels[i]?n.globals.labels[i]:"";var d=r;return r=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new z(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new Y(this.ctx).formatDate,w:this.w}):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](d,c):n.globals.xLabelFormatter(d,c),void 0!==n.config.tooltip.x.formatter&&(r=n.globals.ttKeyFormatter(d,c)),n.globals.seriesZ.length>0&&n.globals.seriesZ[t].length>0&&(o=u(n.globals.seriesZ[t][i],n)),s="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(d,c):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(s)?s.join(" "):s,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,n=e.y1,a=e.y2,r=e.w,s=this.ttCtx.getElTooltip(),o=r.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),s.innerHTML=o({ctx:this.ctx,series:r.globals.series,seriesIndex:t,dataPointIndex:i,y1:n,y2:a,w:r})}}]),e}(),fe=function(){function e(i){t(this,e),this.ttCtx=i,this.ctx=i.ctx,this.w=i.w}return n(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,a=i.getElXCrosshairs(),r=e-i.xcrosshairsWidth/2,s=n.globals.labels.slice().length;if(null!==t&&(r=n.globals.gridWidth/s*t),null!==a&&(a.setAttribute("x",r),a.setAttribute("x1",r),a.setAttribute("x2",r),a.setAttribute("y2",n.globals.gridHeight),a.classList.add("apexcharts-active")),r<0&&(r=0),r>n.globals.gridWidth&&(r=n.globals.gridWidth),i.blxaxisTooltip){var o=r;"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(o=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&v.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&v.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("apexcharts-active");var n,a=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,n=new v(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=a+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),a=t.globals.translateY+n,r=i.yaxisTTEls[e].getBoundingClientRect().height,s=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(s-=26),a-=r/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=a+"px",i.yaxisTTEls[e].style.left=s+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,a=this.ttCtx,r=a.getElTooltip(),s=a.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(l>n.globals.gridWidth/2&&(l=l-s.ttWidth-o-15),l>n.globals.gridWidth-s.ttWidth-10&&(l=n.globals.gridWidth-s.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var u=a.getElGrid(),d=u.getBoundingClientRect();c=a.e.clientY+n.globals.translateY-d.top-s.ttHeight/2}else n.globals.isBarHorizontal?c-=s.ttHeight:(s.ttHeight/2+c>n.globals.gridHeight&&(c=n.globals.gridHeight-s.ttHeight+n.globals.translateY),c<0&&(c=0));isNaN(l)||(l+=n.globals.translateX,r.style.left=l+"px",r.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,n=this.ttCtx;if(i.globals.markers.size[e]>0)for(var a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),r=0;r<a.length;r++)parseInt(a[r].getAttribute("rel"),10)===t&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(t,a[r]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,n,a=this.w,r=this.ttCtx,s=a.globals.pointsArray,o=r.tooltipUtil.getHoverMarkerSize(t),l=a.config.series[t].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){i=s[t][e][0],n=s[t][e][1]?s[t][e][1]:0;var c=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));c&&n<a.globals.gridHeight&&n>0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",n)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,n,o)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,n=i.w,a=0,r=0,s=n.globals.pointsArray;t=new E(this.ctx).getActiveConfigSeriesIndex(!0);var o=i.tooltipUtil.getHoverMarkerSize(t);s[t]&&(a=s[t][e][0],r=s[t][e][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<n.globals.series.length;c++){var u=s[c];if(n.globals.comboCharts&&void 0===u&&l.splice(c,0,null),u&&u.length){var d=s[c][e][1];l[c].setAttribute("cx",a),null!==d&&!isNaN(d)&&d<n.globals.gridHeight&&d>0?(l[c]&&l[c].setAttribute("r",o),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(a),!i.fixedTooltip){var h=r||n.globals.gridHeight;this.moveTooltip(a,h,o)}}},{key:"moveStickyTooltipOverBars",value:function(e){var t=this.w,i=this.ttCtx,n=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,a=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;t.globals.isBarHorizontal&&(a=new E(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var r=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"']")),s=r?parseFloat(r.getAttribute("cx")):0,o=r?parseFloat(r.getAttribute("cy")):0,l=r?parseFloat(r.getAttribute("barWidth")):0,c=r?parseFloat(r.getAttribute("barHeight")):0,u=i.getElGrid().getBoundingClientRect();if(t.globals.isXNumeric?(s-=n%2!=0?l/2:0,r&&(r.classList.contains("apexcharts-candlestick-area")||r.classList.contains("apexcharts-boxPlot-area"))&&t.globals.comboCharts&&(s-=l/2)):t.globals.isBarHorizontal||(s=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(s)&&(s=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?o+=c/3:o=i.e.clientY-u.top-i.tooltipRect.ttHeight/2,t.globals.isBarHorizontal||this.moveXCrosshairs(s),!i.fixedTooltip){var d=o||t.globals.gridHeight;this.moveTooltip(s,d)}}}]),e}(),pe=function(){function e(i){t(this,e),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx,this.tooltipPosition=new fe(i)}return n(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new v(this.ctx),i=new A(this.ctx),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=h(n),e.config.chart.stacked&&n.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var a=0;a<n.length;a++){var r=n[a].querySelector(".apexcharts-series-markers-wrap");if(null!==r){var s=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:o,seriesIndex:a});(s=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(s.node),r.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){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(e,t);var r=t.getAttribute("cx"),s=t.getAttribute("cy");if(null!==i&&null!==n&&(r=i,s=n),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===a.config.chart.type){var o=this.ttCtx.getElGrid(),l=o.getBoundingClientRect();r=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(r,s,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,n=this.ttCtx,a=e,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),s=t.config.markers.hover.size,o=0;o<r.length;o++){var l=r[o].getAttribute("rel"),c=r[o].getAttribute("index");if(void 0===s&&(s=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),a===parseInt(l,10)){i.newPointSize(a,r[o]);var u=r[o].getAttribute("cx"),d=r[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(u),n.fixedTooltip||i.tooltipPosition.moveTooltip(u,d,s)}else i.oldPointSize(r[o])}}},{key:"newPointSize",value:function(e,t){var i=this.w,n=i.config.markers.hover.size,a=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){var r=parseInt(a.getAttribute("index"),10);void 0===n&&(n=i.globals.markers.size[r]+i.config.markers.hover.sizeOffset),n<0&&(n=0),a.setAttribute("r",n)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var i=parseFloat(e[t].getAttribute("default-marker-size"));p.isNumber(i)&&i>=0?e[t].setAttribute("r",i):e[t].setAttribute("r",0)}}}]),e}(),me=function(){function e(i){t(this,e),this.w=i.w,this.ttCtx=i}return n(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,n=e.x,a=e.y,r=e.type,s=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(s.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,n=u+s.tooltipRect.ttWidth/2+h,a=d+s.tooltipRect.ttHeight/2-f/2,s.tooltipPosition.moveXCrosshairs(u+h/2),n>o.globals.gridWidth/2&&(n=u-s.tooltipRect.ttWidth/2+h),s.w.config.tooltip.followCursor){var p=o.globals.dom.elWrap.getBoundingClientRect();n=o.globals.clientX-p.left-s.tooltipRect.ttWidth/2,a=o.globals.clientY-p.top-s.tooltipRect.ttHeight-5}}return{x:n,y:a}}},{key:"handleMarkerTooltip",value:function(e){var t,i,n=e.e,a=e.opt,r=e.x,s=e.y,o=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var c=parseInt(a.paths.getAttribute("cx"),10),u=parseInt(a.paths.getAttribute("cy"),10),d=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel"),10),t=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=p.findAncestor(a.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:n}),"mouseup"===n.type&&l.markerClick(n,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,r=c,s=u+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();s=l.e.clientY+o.globals.translateY-f.top}d<0&&(s=u),l.marker.enlargeCurrentPoint(i,a.paths,r,s)}return{x:r,y:s}}},{key:"handleBarTooltip",value:function(e){var t,i,n=e.e,a=e.opt,r=this.w,s=this.ttCtx,o=s.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:n,opt:a});t=d.i;var h=d.barHeight,f=d.j;r.globals.capturedSeriesIndex=t,r.globals.capturedDataPointIndex=f,r.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=d.x,u=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[t]:r.config.stroke.width,l=c):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(u)?u=r.globals.svgHeight-s.tooltipRect.ttHeight:u<0&&(u=0);var p=parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),m=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(c+s.tooltipRect.ttWidth>r.globals.gridWidth&&!m?c-=s.tooltipRect.ttWidth:c<0&&(c=0),s.w.config.tooltip.followCursor){var g=s.getElGrid().getBoundingClientRect();u=s.e.clientY-g.top}null===s.tooltip&&(s.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?s.tooltipPosition.moveXCrosshairs(l+i/2):s.tooltipPosition.moveXCrosshairs(l)),!s.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&s.tooltipUtil.hasBars())&&(m&&(c-=s.tooltipRect.ttWidth)<0&&(c=0),o.style.left=c+r.globals.translateX+"px",!m||r.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||(u=u+h-2*(r.globals.series[t][f]<0?h:0)),s.tooltipRect.ttHeight+u>r.globals.gridHeight?(u=r.globals.gridHeight-s.tooltipRect.ttHeight+r.globals.translateY,o.style.top=u+"px"):o.style.top=u+r.globals.translateY-s.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(e){var t=e.e,i=e.opt,n=this.w,a=null,r=this.ttCtx,s=0,o=0,l=0,c=0,u=0,d=t.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var h=t.target,f=h.getBoundingClientRect(),p=i.elGrid.getBoundingClientRect(),m=f.height;u=f.height;var g=f.width,v=parseInt(h.getAttribute("cx"),10),y=parseInt(h.getAttribute("cy"),10);c=parseFloat(h.getAttribute("barWidth"));var b="touchmove"===t.type?t.touches[0].clientX:t.clientX;a=parseInt(h.getAttribute("j"),10),s=parseInt(h.parentNode.getAttribute("rel"),10)-1;var x=h.getAttribute("data-range-y1"),_=h.getAttribute("data-range-y2");n.globals.comboCharts&&(s=parseInt(h.parentNode.getAttribute("data:realIndex"),10)),r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:s,j:a,y1:x?parseInt(x,10):null,y2:_?parseInt(_,10):null,shared:!r.showOnIntersect&&n.config.tooltip.shared,e:t}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(o=b-p.left+15,l=y-r.dataPointsDividedHeight+m/2-r.tooltipRect.ttHeight/2):(o=n.globals.isXNumeric?v-g/2:v-r.dataPointsDividedWidth+g/2,l=t.clientY-p.top-r.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((o=v)<r.xyRatios.baseLineInvertedY&&(o=v-r.tooltipRect.ttWidth),l=y-r.dataPointsDividedHeight+m/2-r.tooltipRect.ttHeight/2):(o=n.globals.isXNumeric?v-g/2:v-r.dataPointsDividedWidth+g/2,l=y)}return{x:o,y:l,barHeight:u,barWidth:c,i:s,j:a}}}]),e}(),ge=function(){function e(i){t(this,e),this.w=i.w,this.ttCtx=i}return n(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,i="bottom"===e.config.xaxis.position;t.xaxisOffY=i?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var n=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=e.globals.dom.elWrap;t.blxaxisTooltip&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,i=function(i){var n=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=n?e.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map((function(t,n){t.map((function(t,n){n===i&&(a+=e.config.yaxis[n].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var r=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),r.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))},n=0;n<e.config.yaxis.length;n++)i(n)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,i=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var n=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n&&"barWidth"===e.config.xaxis.crosshairs.width){var a=parseFloat(n.getAttribute("barWidth"));t.xcrosshairsWidth=a}else if("tickWidth"===e.config.xaxis.crosshairs.width){var r=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/r}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/s}else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==i&&t.xcrosshairsWidth>0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var n=this.ttCtx,a=this.w,r=a.globals.yLabelFormatters[e];if(n.yaxisTooltips[e]){var s=n.getElGrid().getBoundingClientRect(),o=(t-s.top)*i.yRatio[e],l=a.globals.maxYArr[e]-a.globals.minYArr[e],c=a.globals.minYArr[e]+(l-o);n.tooltipPosition.moveYCrosshairs(t-s.top),n.yaxisTooltipText[e].innerHTML=r(c),n.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),ve=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new de(this),this.tooltipLabels=new he(this),this.tooltipPosition=new fe(this),this.marker=new pe(this),this.intersect=new me(this),this.axesTooltip=new ge(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared}return n(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.blxaxisTooltip=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,i){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.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(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var a=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,n=[],a=this.getElTooltip(),r=function(r){var s=document.createElement("div");s.classList.add("apexcharts-tooltip-series-group"),s.style.order=i.config.tooltip.inverseOrder?e-r:r+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(r)<0&&s.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=i.globals.colors[r],s.appendChild(o);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(i);var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(n),l.appendChild(t)})),s.appendChild(l),a.appendChild(s),n.push(s)},s=0;s<e;s++)r(s);return n}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,i=this.getElTooltip(),n=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),a="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,r=e.globals.dom.Paper.node,s=this.getElGrid();s&&(this.seriesBound=s.getBoundingClientRect());var o,l=[],c=[],u={hoverArea:r,elGrid:s,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?o=e.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"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],u);else if(n&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),n=i.width+10,a=i.height+10,r=this.tConfig.fixed.offsetX,s=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(r=r+e.globals.svgWidth-n+10),o.indexOf("bottom")>-1&&(s=s+e.globals.svgHeight-a-10),t.style.left=r+"px",t.style.top=s+"px",{x:r,y:s,ttWidth:n,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(e){var t=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(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,n=function(n){var a={paths:e[n],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[n].addEventListener(t,i.seriesHover.bind(i,a),{capture:!1,passive:!0})}))},a=0;a<e.length;a++)n(a)}},{key:"seriesHover",value:function(e,t){var i=this,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),r={paths:e.paths,tooltipEl:a,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.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:r,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,n=e.opt,a=e.e,r=t.w,s=this.getElTooltip();i.tooltipRect={x:0,y:0,ttWidth:s.getBoundingClientRect().width,ttHeight:s.getBoundingClientRect().height},i.e=a,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new E(t).toggleSeriesOnHover(a,a.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect})}},{key:"axisChartsTooltips",value:function(e){var t,i,n=e.e,a=e.opt,r=this.w,s=a.elGrid.getBoundingClientRect(),o="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=o,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,l<s.top||l>s.top+s.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(a)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===n.type||"touchmove"===n.type||"mouseup"===n.type){null!==d&&d.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),h&&!this.showOnIntersect)this.handleStickyTooltip(n,o,l,a);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:n,opt:a,x:t,y:i,type:r.config.chart.type});t=p.x,i=p.y,u.style.left=t+"px",u.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:t,y:i});if(this.yaxisTooltips.length)for(var m=0;m<r.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);a.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,n=e.tooltipRect,a=this.w,r=i.paths.getAttribute("rel"),s=this.getElTooltip(),o=a.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){s.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1});var l=a.globals.clientX-o.left-n.ttWidth/2,c=a.globals.clientY-o.top-n.ttHeight-10;if(s.style.left=l+"px",s.style.top=c+"px",a.config.legend.tooltipHoverFormatter){var u=r-1,d=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:a});this.legendLabels[u].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(s.classList.remove("apexcharts-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,i,n){var a=this.w,r=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:t,clientY:i}),s=r.j,o=r.capturedSeries,l=n.elGrid.getBoundingClientRect();r.hoverX<0||r.hoverX>l.width?this.handleMouseOut(n):null!==o?this.handleStickyCapturedSeries(e,o,n,s):(this.tooltipUtil.isXoverlap(s)||a.globals.isBarHorizontal)&&this.create(e,this,0,s,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(e,t,i,n){var a=this.w;this.tConfig.shared||null!==a.globals.series[t][n]?void 0!==a.globals.series[t][n]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,n,i.ttItems):this.create(e,this,t,n,i.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&this.create(e,this,0,n,i.ttItems):this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new v(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)t.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(e){var t=this.w,i=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,i){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:n}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:n}])}},{key:"create",value:function(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=this.w,o=t;"mouseup"===e.type&&this.markerClick(e,i,n),null===r&&(r=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(s.config.legend.tooltipHoverFormatter){var u=s.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var h=0;h<d.length;h++){var f=d[h],p=parseInt(f.getAttribute("i"),10),m=decodeURIComponent(f.getAttribute("data:default-text")),g=u(m,{seriesIndex:r?p:i,dataPointIndex:n,w:s});if(r)f.innerHTML=s.globals.collapsedSeriesIndices.indexOf(p)<0?g:m;else if(f.innerHTML=p===i?g:m,i===p)break}}if(r){if(o.tooltipLabels.drawSeriesTexts({ttItems:a,i:i,j:n,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(s.globals.markers.largestSize>0?o.marker.enlargePoints(n):o.tooltipPosition.moveDynamicPointsOnHover(n)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var y=new v(this.ctx),b=s.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var x=0;x<b.length;x++)y.pathMouseEnter(b[x])}}else o.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:a,i:i,j:n}),this.tooltipUtil.hasBars()&&o.tooltipPosition.moveStickyTooltipOverBars(n),l&&o.tooltipPosition.moveMarkers(i,n)}}]),e}(),ye=function(e){o(a,e);var i=d(a);function a(){return t(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(e,t){var i=this,n=this.w;this.graphics=new v(this.ctx),this.bar=new P(this.ctx,this.xyRatios);var a=new x(this.ctx,n);e=a.getLogSeries(e),this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===n.config.chart.stackType&&(e=n.globals.seriesPercent.slice()),this.series=e,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<e.length;r++)e[r].length>0&&(this.totalItems+=e[r].length);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),l=0,c=0,u=function(a,r){var u=void 0,d=void 0,h=void 0,f=void 0,m=[],g=[],v=n.globals.comboCharts?t[a]:a;i.yRatio.length>1&&(i.yaxisIndex=v),i.isReversed=n.config.yaxis[i.yaxisIndex]&&n.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[v]),rel:a+1,"data:realIndex":v});i.ctx.series.addCollapsedClassToSeries(y,v);var b=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),x=0,_=0,w=i.initialPositions(l,c,u,d,h,f);c=w.y,x=w.barHeight,d=w.yDivision,f=w.zeroW,l=w.x,_=w.barWidth,u=w.xDivision,h=w.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[],1===i.prevY.length&&i.prevY[0].every((function(e){return isNaN(e)}))&&(i.prevY[0]=i.prevY[0].map((function(e){return h})),i.prevYF[0]=i.prevYF[0].map((function(e){return 0})));for(var k=0;k<n.globals.dataPoints;k++){var M=i.barHelpers.getStrokeWidth(a,k,v),L={indexes:{i:a,j:k,realIndex:v,bc:r},strokeWidth:M,x:l,y:c,elSeries:y},S=null;i.isHorizontal?(S=i.drawStackedBarPaths(s(s({},L),{},{zeroW:f,barHeight:x,yDivision:d})),_=i.series[a][k]/i.invertedYRatio):(S=i.drawStackedColumnPaths(s(s({},L),{},{xDivision:u,barWidth:_,zeroH:h})),x=i.series[a][k]/i.yRatio[i.yaxisIndex]),c=S.y,l=S.x,m.push(l),g.push(c);var A=i.barHelpers.getPathFillColor(e,a,k,v);y=i.renderSeries({realIndex:v,pathFill:A,j:k,i:a,pathFrom:S.pathFrom,pathTo:S.pathTo,strokeWidth:M,elSeries:y,x:l,y:c,series:e,barHeight:x,barWidth:_,elDataLabelsWrap:b,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[v]=m,n.globals.seriesYvalues[v]=g,i.prevY.push(i.yArrj),i.prevYF.push(i.yArrjF),i.prevYVal.push(i.yArrjVal),i.prevX.push(i.xArrj),i.prevXF.push(i.xArrjF),i.prevXVal.push(i.xArrjVal),o.add(y)},d=0,h=0;d<e.length;d++,h++)u(d,h);return o}},{key:"initialPositions",value:function(e,t,i,n,a,r){var s,o,l=this.w;return this.isHorizontal?(s=(s=n=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight,10)/100,r=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),t=(n-s)/2):(o=i=l.globals.gridWidth/l.globals.dataPoints,o=l.globals.isXNumeric&&l.globals.dataPoints>1?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:o*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),e=l.globals.padHorizontal+(i-o)/2),{x:e,y:t,yDivision:n,xDivision:i,barHeight:s,barWidth:o,zeroH:a,zeroW:r}}},{key:"drawStackedBarPaths",value:function(e){for(var t,i=e.indexes,n=e.barHeight,a=e.strokeWidth,r=e.zeroW,s=e.x,o=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=o,h=i.i,f=i.j,p=0,m=0;m<this.prevXF.length;m++)p+=this.prevXF[m][f];if(h>0){var g=r;this.prevXVal[h-1][f]<0?g=this.series[h][f]>=0?this.prevX[h-1][f]+p-2*(this.isReversed?p:0):this.prevX[h-1][f]:this.prevXVal[h-1][f]>=0&&(g=this.series[h][f]>=0?this.prevX[h-1][f]:this.prevX[h-1][f]-p+2*(this.isReversed?p:0)),t=g}else t=r;s=null===this.series[h][f]?t:t+this.series[h][f]/this.invertedYRatio-2*(this.isReversed?this.series[h][f]/this.invertedYRatio:0);var v=this.barHelpers.getBarpaths({barYPosition:d,barHeight:n,x1:t,x2:s,strokeWidth:a,series:this.series,realIndex:i.realIndex,i:h,j:f,w:u});return this.barHelpers.barBackground({j:f,i:h,y1:d,y2:n,elSeries:c}),o+=l,{pathTo:v.pathTo,pathFrom:v.pathFrom,x:s,y:o}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,i=e.x,n=e.y,a=e.xDivision,r=e.barWidth,s=e.zeroH;e.strokeWidth;var o=e.elSeries,l=this.w,c=t.i,u=t.j,d=t.bc;if(l.globals.isXNumeric){var h=l.globals.seriesX[c][u];h||(h=0),i=(h-l.globals.minX)/this.xRatio-r/2}for(var f,p=i,m=0,g=0;g<this.prevYF.length;g++)m+=isNaN(this.prevYF[g][u])?0:this.prevYF[g][u];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][u]===l.globals.seriesX[c][u]){var v,y,b=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var x=1;x<b;x++)if(!isNaN(this.prevY[c-x][u])){y=this.prevY[c-x][u];break}for(var _=1;_<b;_++){if(this.prevYVal[c-_][u]<0){v=this.series[c][u]>=0?y-m+2*(this.isReversed?m:0):y;break}if(this.prevYVal[c-_][u]>=0){v=this.series[c][u]>=0?y:y+m-2*(this.isReversed?m:0);break}}void 0===v&&(v=l.globals.gridHeight),f=this.prevYF[0].every((function(e){return 0===e}))&&this.prevYF.slice(1,c).every((function(e){return e.every((function(e){return isNaN(e)}))}))?l.globals.gridHeight-s:v}else f=l.globals.gridHeight-s;n=f-this.series[c][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][u]/this.yRatio[this.yaxisIndex]:0);var w=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:r,y1:f,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:t.realIndex,i:c,j:u,w:l});return this.barHelpers.barBackground({bc:d,j:u,i:c,x1:p,x2:r,elSeries:o}),i+=a,{pathTo:w.pathTo,pathFrom:w.pathFrom,x:l.globals.isXNumeric?i-a:i,y:n}}}]),a}(P),be=function(e){o(a,e);var i=d(a);function a(){return t(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(e,t){var i=this,n=this.w,a=new v(this.ctx),r=new S(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot;var s=new x(this.ctx,n);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var o=a.group({class:"apexcharts-".concat(n.config.chart.type,"-series apexcharts-plot-series")}),l=function(s){i.isBoxPlot="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[s].type;var l,c,u,d,h=void 0,f=void 0,m=[],g=[],v=n.globals.comboCharts?t[s]:s,y=a.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[v]),rel:s+1,"data:realIndex":v});e[s].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=v);var b=i.barHelpers.initialPositions();f=b.y,u=b.barHeight,h=b.x,d=b.barWidth,l=b.xDivision,c=b.zeroH,g.push(h+d/2);for(var x=a.group({class:"apexcharts-datalabels","data:realIndex":v}),_=function(t){var a=i.barHelpers.getStrokeWidth(s,t,v),o=i.drawBoxPaths({indexes:{i:s,j:t,realIndex:v},x:h,y:f,xDivision:l,barWidth:d,zeroH:c,strokeWidth:a,elSeries:y});f=o.y,h=o.x,t>0&&g.push(h+d/2),m.push(f),o.pathTo.forEach((function(l,c){var p=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?o.color[c]:n.globals.stroke.colors[s],m=r.fillPath({seriesNumber:v,dataPointIndex:t,color:o.color[c],value:e[s][t]});i.renderSeries({realIndex:v,pathFill:m,lineFill:p,j:t,i:s,pathFrom:o.pathFrom,pathTo:l,strokeWidth:a,elSeries:y,x:h,y:f,series:e,barHeight:u,barWidth:d,elDataLabelsWrap:x,visibleSeries:i.visibleI,type:n.config.chart.type})}))},w=0;w<n.globals.dataPoints;w++)_(w);n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=m,o.add(y)},c=0;c<e.length;c++)l(c);return o}},{key:"drawBoxPaths",value:function(e){var t=e.indexes,i=e.x;e.y;var n=e.xDivision,a=e.barWidth,r=e.zeroH,s=e.strokeWidth,o=this.w,l=new v(this.ctx),c=t.i,u=t.j,d=!0,h=o.config.plotOptions.candlestick.colors.upward,f=o.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var m=this.yRatio[this.yaxisIndex],g=t.realIndex,y=this.getOHLCValue(g,u),b=r,x=r;y.o>y.c&&(d=!1);var _=Math.min(y.o,y.c),w=Math.max(y.o,y.c),k=y.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[g][u]-o.globals.minX)/this.xRatio-a/2);var M=i+a*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(_=r,w=r):(_=r-_/m,w=r-w/m,b=r-y.h/m,x=r-y.l/m,k=r-y.m/m);var L=l.move(M,r),S=l.move(M+a/2,_);return o.globals.previousPaths.length>0&&(S=this.getPreviousPath(g,u,!0)),L=this.isBoxPlot?[l.move(M,_)+l.line(M+a/2,_)+l.line(M+a/2,b)+l.line(M+a/4,b)+l.line(M+a-a/4,b)+l.line(M+a/2,b)+l.line(M+a/2,_)+l.line(M+a,_)+l.line(M+a,k)+l.line(M,k)+l.line(M,_+s/2),l.move(M,k)+l.line(M+a,k)+l.line(M+a,w)+l.line(M+a/2,w)+l.line(M+a/2,x)+l.line(M+a-a/4,x)+l.line(M+a/4,x)+l.line(M+a/2,x)+l.line(M+a/2,w)+l.line(M,w)+l.line(M,k)+"z"]:[l.move(M,w)+l.line(M+a/2,w)+l.line(M+a/2,b)+l.line(M+a/2,w)+l.line(M+a,w)+l.line(M+a,_)+l.line(M+a/2,_)+l.line(M+a/2,x)+l.line(M+a/2,_)+l.line(M,_)+l.line(M,w-s/2)],S+=l.move(M,_),o.globals.isXNumeric||(i+=n),{pathTo:L,pathFrom:S,x:i,y:w,barXPosition:M,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"getOHLCValue",value:function(e,t){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[e][t]:i.globals.seriesCandleO[e][t],h:this.isBoxPlot?i.globals.seriesCandleO[e][t]:i.globals.seriesCandleH[e][t],m:i.globals.seriesCandleM[e][t],l:this.isBoxPlot?i.globals.seriesCandleC[e][t]:i.globals.seriesCandleL[e][t],c:this.isBoxPlot?i.globals.seriesCandleL[e][t]:i.globals.seriesCandleC[e][t]}}}]),a}(P),xe=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(e,i){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,i,n){var a=this.w,r=1,s=a.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);a.globals.hasNegs||n?r=a.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*s):(1-o.percent/100)*(1.25*s):o.percent<=0?1-(1+o.percent/100)*s:(1-o.percent/100)*s:(r=1-o.percent/100,"treemap"===e&&(r=(1-o.percent/100)*(1.25*s)));var l=o.color,c=new p;return a.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?p.hexToRgba(c.shadeColor(-1*r,o.color),a.config.fill.opacity):p.hexToRgba(c.shadeColor(r,o.color),a.config.fill.opacity)),{color:l,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var n=this.w,a=n.globals.series[t][i],r=n.config.plotOptions[e],s=r.colorScale.inverse?i:t;n.config.plotOptions[e].distributed&&(s=i);var o=n.globals.colors[s],l=null,c=Math.min.apply(Math,h(n.globals.series[t])),u=Math.max.apply(Math,h(n.globals.series[t]));r.distributed||"heatmap"!==e||(c=n.globals.minY,u=n.globals.maxY),void 0!==r.colorScale.min&&(c=r.colorScale.min<n.globals.minY?r.colorScale.min:n.globals.minY,u=r.colorScale.max>n.globals.maxY?r.colorScale.max:n.globals.maxY);var d=Math.abs(u)+Math.abs(c),f=100*a/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(e,t){if(a>=e.from&&a<=e.to){o=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var i=Math.abs(u)+Math.abs(c);f=100*a/(0===i?i-1e-6:i)}})),{color:o,foreColor:l,percent:f}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,n=e.y,a=e.i,r=e.j,s=e.colorProps,o=e.fontSize,l=this.w.config.dataLabels,c=new v(this.ctx),u=new C(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=i+h,m=n+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:m,text:t,i:a,j:r,color:s.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new v(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),_e=function(){function e(i,n){t(this,e),this.ctx=i,this.w=i.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new xe(i),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(e,[{key:"draw",value:function(e){var t=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var a=t.globals.gridWidth/t.globals.dataPoints,r=t.globals.gridHeight/t.globals.series.length,s=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var u=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:p.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new g(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,m=0;m<l[c].length;m++){var y=this.helpers.getShadeColor(t.config.chart.type,c,m,this.negRange),b=y.color,x=y.colorProps;"image"===t.config.fill.type&&(b=new S(this.ctx).fillPath({seriesNumber:c,dataPointIndex:m,opacity:t.globals.hasNegs?x.percent<0?1-(1+x.percent/100):f+x.percent/100:x.percent/100,patternID:p.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:a,height:t.config.fill.image.height?t.config.fill.image.height:r}));var _=this.rectRadius,w=i.drawRect(h,s,a,r,_);if(w.attr({cx:h,cy:s}),w.node.classList.add("apexcharts-heatmap-rect"),u.add(w),w.attr({fill:b,i:c,index:c,j:m,val:l[c][m],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?b:t.globals.stroke.colors[0],color:b}),this.helpers.addListeners(w),t.config.chart.animations.enabled&&!t.globals.dataChanged){var k=1;t.globals.resized||(k=t.config.chart.animations.speed),this.animateHeatMap(w,h,s,a,r,k)}if(t.globals.dataChanged){var M=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){M=this.dynamicAnim.speed;var L=t.globals.previousPaths[c]&&t.globals.previousPaths[c][m]&&t.globals.previousPaths[c][m].color;L||(L="rgba(255, 255, 255, 0)"),this.animateHeatColor(w,p.isColorHex(L)?L:p.rgb2hex(L),p.isColorHex(b)?b:p.rgb2hex(b),M)}}var A=(0,t.config.dataLabels.formatter)(t.globals.series[c][m],{value:t.globals.series[c][m],seriesIndex:c,dataPointIndex:m,w:t}),T=this.helpers.calculateDataLabels({text:A,x:h+a/2,y:s+r/2,i:c,j:m,colorProps:x,series:l});null!==T&&u.add(T),h+=a}s+=r,n.add(u)}var C=t.globals.yAxisScale[0].result.slice();t.config.yaxis[0].reversed?C.unshift(""):C.push(""),t.globals.yAxisScale[0].result=C;var D=t.globals.gridHeight/t.globals.series.length;return t.config.yaxis[0].labels.offsetY=-D/2,n}},{key:"animateHeatMap",value:function(e,t,i,n,a,r){var s=new m(this.ctx);s.animateRect(e,{x:t+n/2,y:i+a/2,width:0,height:0},{x:t,y:i,width:n,height:a},r,(function(){s.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,i,n){e.attr({fill:t}).animate(n).attr({fill:i})}}]),e}(),we=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"drawYAxisTexts",value:function(e,t,i,n){var a=this.w,r=a.config.yaxis[0],s=a.globals.yLabelFormatters[0];return new v(this.ctx).drawText({x:e+r.labels.offsetX,y:t+r.labels.offsetY,text:s(n,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),e}(),ke=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return n(e,[{key:"draw",value:function(e){var t=this,i=this.w,n=new v(this.ctx);if(this.ret=n.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var a=0,r=0;r<e.length;r++)a+=p.negToZero(e[r]);var s=[],o=n.group();0===a&&(a=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),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<e.length;l++){var c=this.fullAngle*p.negToZero(e[l])/a;s.push(c),"polarArea"===this.chartType?(s[l]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var u,d=0,h=0;h<i.globals.previousPaths.length;h++)d+=p.negToZero(i.globals.previousPaths[h]);for(var f=0;f<i.globals.previousPaths.length;f++)u=this.fullAngle*p.negToZero(i.globals.previousPaths[f])/d,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0);var m=i.config.plotOptions.pie.customScale,g=i.globals.gridWidth/2,y=i.globals.gridHeight/2,b=g-i.globals.gridWidth/2*m,x=y-i.globals.gridHeight/2*m;if("donut"===this.chartType){var _=n.drawCircle(this.donutSize);_.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),o.add(_)}var w=this.drawArcs(s,e);if(this.sliceLabels.forEach((function(e){w.add(e)})),o.attr({transform:"translate(".concat(b,", ").concat(x,") scale(").concat(m,")")}),o.add(w),this.ret.add(o),this.donutDataLabels.show){var k=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:b,translateY:x});this.ret.add(k)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var i=this.w,n=new g(this.ctx),a=new v(this.ctx),r=new S(this.ctx),s=a.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:p.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});s.add(h),l=u,c=(o=c)+e[d],u=l+this.prevSectorAngleArr[d];var f=c<o?this.fullAngle+c-o:c-o,m=r.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),y=this.getChangedPath(l,u),b=a.drawPath({d:y,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:m,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(b.attr({index:0,j:d}),n.setSelectionFilter(b,0,d),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;n.dropShadow(b,x,d)}this.addListeners(b,this.donutDataLabels),v.setAttrs(b.node,{"data:angle":f,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var _={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?_=p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+f/2)%this.fullAngle):"donut"===this.chartType&&(_=p.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+f/2)%this.fullAngle)),h.add(b);var w=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(w=f/this.fullAngle*i.config.chart.animations.speed)&&(w=1),this.animDur=w+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:w}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&b.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 k=_.x,M=_.y,L=100*f/this.fullAngle+"%";if(0!==f&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var A=i.config.dataLabels.formatter;void 0!==A&&(L=A(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var T=i.globals.dataLabels.style.colors[d],C=a.group({class:"apexcharts-datalabels"}),D=a.drawText({x:k,y:M,text:L,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:T});if(C.add(D),i.config.dataLabels.dropShadow.enabled){var E=i.config.dataLabels.dropShadow;n.dropShadow(D,E)}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(C)}}}return s}},{key:"addListeners",value:function(e,t){var i=new v(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var i=this.w,n=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,a=n,r=t.startAngle,s=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(r=t.prevEndAngle,a=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(n+s>this.fullAngle?t.endAngle=t.endAngle-(n+s):n+s<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(n+s)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(e,r,s,n,a,t)}},{key:"animateArc",value:function(e,t,i,n,a,r){var s,o=this,l=this.w,c=new m(this.ctx),u=r.size;(isNaN(t)||isNaN(a))&&(t=i,a=n,r.dur=0);var d=n,h=i,f=t<i?this.fullAngle+t-i:t-i;l.globals.dataChanged&&r.shouldSetPrevPaths&&r.prevEndAngle&&(s=o.getPiePath({me:o,startAngle:r.prevStartAngle,angle:r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle,size:u}),e.attr({d:s})),0!==r.dur?e.animate(r.dur,l.globals.easing,r.animBeginArr[r.i]).afterAll((function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),r.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=f+(n-f)*l,r.animateStartingPos&&(d=a+(n-a)*l,h=t-a+(i-(t-a))*l),s=o.getPiePath({me:o,startAngle:h,angle:d,size:u}),e.node.setAttribute("data:pathOrig",s),e.attr({d:s})})):(s=o.getPiePath({me:o,startAngle:h,angle:n,size:u}),r.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",s),e.attr({d:s,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,n=this,a=n.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(n.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==r.attr("data:pieClicked")){var s=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(s,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");e.setAttribute("d",t)})),r.attr("data:pieClicked","true");var o=parseInt(r.attr("data:startAngle"),10),l=parseInt(r.attr("data:angle"),10);t=n.getPiePath({me:n,startAngle:o,angle:l,size:a}),360!==l&&r.plot(t)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}},{key:"getPiePath",value:function(e){var t=e.me,i=e.startAngle,n=e.angle,a=e.size,r=i,s=Math.PI*(r-90)/180,o=n+i;Math.ceil(o)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var l=Math.PI*(o-90)/180,c=t.centerX+a*Math.cos(s),u=t.centerY+a*Math.sin(s),d=t.centerX+a*Math.cos(l),h=t.centerY+a*Math.sin(l),f=p.polarToCartesian(t.centerX,t.centerY,t.donutSize,o),m=p.polarToCartesian(t.centerX,t.centerY,t.donutSize,r),g=n>180?1:0,v=["M",c,u,"A",a,a,0,g,1,d,h];return"donut"===t.chartType?[].concat(v,["L",f.x,f.y,"A",t.donutSize,t.donutSize,0,g,0,m.x,m.y,"L",c,u,"z"]).join(" "):"pie"===t.chartType||"polarArea"===t.chartType?[].concat(v,["L",t.centerX,t.centerY,"L",c,u]).join(" "):[].concat(v).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new X(this.ctx),n=new v(this.ctx),a=new we(this.ctx),r=n.group(),s=n.group(),o=i.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h<c-1;h++){var f=n.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=a.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);s.add(p)}r.add(f),u-=d}this.drawSpokes(e),e.add(r),e.add(s)}},{key:"renderInnerDataLabels",value:function(e,t){var i=this.w,n=new v(this.ctx),a=n.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),r=e.total.show;a.node.style.opacity=t.opacity;var s,o,l=t.centerX,c=t.centerY;s=void 0===e.name.color?i.globals.colors[0]:e.name.color;var u=e.name.fontSize,d=e.name.fontFamily,h=e.value.fontWeight;o=void 0===e.value.color?i.config.chart.foreColor:e.value.color;var f=e.value.formatter,p="",m="";if(r?(s=e.total.color,u=e.total.fontSize,d=e.total.fontFamily,h=e.total.fontWeight,m=e.total.label,p=e.total.formatter(i)):1===i.globals.series.length&&(p=f(i.globals.series[0],i),m=i.globals.seriesNames[0]),m&&(m=e.name.formatter(m,e.total.show,i)),e.name.show){var g=n.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:m,textAnchor:"middle",foreColor:s,fontSize:u,fontWeight:h,fontFamily:d});g.node.classList.add("apexcharts-datalabel-label"),a.add(g)}if(e.value.show){var y=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,b=n.drawText({x:l,y:c+y,text:p,textAnchor:"middle",foreColor:o,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),a.add(b)}return a}},{key:"printInnerLabels",value:function(e,t,i,n){var a,r=this.w;n?a=void 0===e.name.color?r.globals.colors[parseInt(n.parentNode.getAttribute("rel"),10)-1]:e.name.color:r.globals.series.length>1&&e.total.show&&(a=e.total.color);var s=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,r),n||"function"!=typeof e.total.formatter||(i=e.total.formatter(r));var l=t===e.total.label;t=e.name.formatter(t,l,r),null!==s&&(s.textContent=t),null!==o&&(o.textContent=i),null!==s&&(s.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,n=e.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,a,n,e);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,n=new v(this.ctx),a=i.config.plotOptions.polarArea.spokes;if(0!==a.strokeWidth){for(var r=[],s=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)r.push(p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+s*o));r.forEach((function(i,r){var s=n.drawLine(i.x,i.y,t.centerX,t.centerY,Array.isArray(a.connectorColors)?a.connectorColors[r]:a.connectorColors);e.add(s)}))}}},{key:"revertDataLabelsInner",value:function(e,t,i){var n=this,a=this.w,r=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),s=!1,o=a.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(e){var i=e.makeSliceOut,a=e.printLabel;Array.prototype.forEach.call(o,(function(e){"true"===e.getAttribute("data:pieClicked")&&(i&&(s=!0),a&&n.printDataLabelsInner(e,t))}))};if(l({makeSliceOut:!0,printLabel:!1}),t.total.show&&a.globals.series.length>1)s&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(a));else if(l({makeSliceOut:!1,printLabel:!0}),!s)if(a.globals.selectedDataPoints.length&&a.globals.series.length>1)if(a.globals.selectedDataPoints[0].length>0){var c=a.globals.selectedDataPoints[0],u=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(u,t)}else r&&a.globals.selectedDataPoints.length&&0===a.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&a.globals.series.length>1&&(r.style.opacity=0)}}]),e}(),Me=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new v(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight+1.5*n.globals.goldenPadding:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.coreUtils=new x(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return n(e,[{key:"draw",value:function(e){var t=this,i=this.w,n=new S(this.ctx),a=[],r=new C(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=o+i.config.plotOptions.radar.offsetX,u=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(u||0,")")}),h=[],f=null,m=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,o){var l=e.length===i.globals.dataPoints,c=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:p.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});t.dataRadiusOfPercent[o]=[],t.dataRadius[o]=[],t.angleArr[o]=[],e.forEach((function(e,i){var n=Math.abs(t.maxValue-t.minValue);e+=Math.abs(t.minValue),t.isLog&&(e=t.coreUtils.getLogVal(e,0)),t.dataRadiusOfPercent[o][i]=e/n,t.dataRadius[o][i]=t.dataRadiusOfPercent[o][i]*t.size,t.angleArr[o][i]=i*t.disAngle})),h=t.getDataPointsPos(t.dataRadius[o],t.angleArr[o]);var u=t.createPaths(h,{x:0,y:0});f=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),m=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),i.globals.delayedElements.push({el:f.node,index:o});var d={i:o,realIndex:o,animationDelay:o,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[o],strokeLineCap:i.config.stroke.lineCap},v=null;i.globals.previousPaths.length>0&&(v=t.getPreviousPath(o));for(var y=0;y<u.linePathsTo.length;y++){var b=t.graphics.renderPaths(s(s({},d),{},{pathFrom:null===v?u.linePathsFrom[y]:v,pathTo:u.linePathsTo[y],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[o]:t.strokeWidth,fill:"none",drawShadow:!1}));c.add(b);var x=n.fillPath({seriesNumber:o}),_=t.graphics.renderPaths(s(s({},d),{},{pathFrom:null===v?u.areaPathsFrom[y]:v,pathTo:u.areaPathsTo[y],strokeWidth:0,fill:x,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var w=new g(t.ctx),k=i.config.chart.dropShadow;w.dropShadow(_,Object.assign({},k,{noUserSpaceOnUse:!0}),o)}c.add(_)}e.forEach((function(e,n){var a=new A(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:n}),l=t.graphics.drawMarker(h[n].x,h[n].y,a);l.attr("rel",n),l.attr("j",n),l.attr("index",o),l.node.setAttribute("default-marker-size",a.pSize);var u=t.graphics.group({class:"apexcharts-series-markers"});u&&u.add(l),f.add(u),c.add(f);var d=i.config.dataLabels;if(d.enabled){var p=d.formatter(i.globals.series[o][n],{seriesIndex:o,dataPointIndex:n,w:i});r.plotDataLabelsText({x:h[n].x,y:h[n].y,text:p,textAnchor:"middle",i:o,j:o,parent:m,offsetCorrection:!1,dataLabelsConfig:s({},d)})}c.add(m)})),a.push(c)})),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var v=this.drawXAxisTexts();d.add(v)}return a.forEach((function(e){d.add(e)})),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,n=e.parent,a=new we(this.ctx),r=i.globals.yAxisScale[0].result.reverse(),s=r.length,o=[],l=this.size/(s-1),c=0;c<s;c++)o[c]=l*c;o.reverse();var u=[],d=[];o.forEach((function(e,i){var n=p.getPolygonPos(e,t.dataPointsLen),a="";n.forEach((function(e,n){if(0===i){var r=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[n]:t.polygons.connectorColors);d.push(r)}0===n&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),a+=e.x+","+e.y+" "})),u.push(a)})),u.forEach((function(e,a){var r=t.polygons.strokeColors,s=t.polygons.strokeWidth,o=t.graphics.drawPolygon(e,Array.isArray(r)?r[a]:r,Array.isArray(s)?s[a]:s,i.globals.radarPolygons.fill.colors[a]);n.add(o)})),d.forEach((function(e){n.add(e)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,i){var n=a.drawYAxisTexts(e.x,e.y,i,r[i]);t.yaxisLabels.add(n)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,i=t.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),a=p.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(r,o){var l=t.config.xaxis.labels.formatter,c=new C(e.ctx);if(a[o]){var u=e.getTextPos(a[o],e.size),d=l(r,{seriesIndex:-1,dataPointIndex:o,w:t});c.plotDataLabelsText({x:u.newX,y:u.newY,text:d,textAnchor:u.textAnchor,i:o,j:o,parent:n,color:Array.isArray(i.style.colors)&&i.style.colors[o]?i.style.colors[o]:"#a8a8a8",dataLabelsConfig:s({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),n}},{key:"createPaths",value:function(e,t){var i=this,n=[],a=[],r=[],s=[];if(e.length){a=[this.graphics.move(t.x,t.y)],s=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,n){o+=i.graphics.line(t.x,t.y),l+=i.graphics.line(t.x,t.y),n===e.length-1&&(o+="Z",l+="Z")})),n.push(o),r.push(l)}return{linePathsFrom:a,linePathsTo:n,areaPathsFrom:s,areaPathsTo:r}}},{key:"getTextPos",value:function(e,t){var i="middle",n=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",n+=10):e.x<0&&(i="end",n-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:i,newX:n,newY:a}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,n=0;n<t.globals.previousPaths.length;n++){var a=t.globals.previousPaths[n];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[n].paths[0]&&(i=t.globals.previousPaths[n].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var n=[],a=0;a<i;a++){var r={};r.x=e[a]*Math.sin(t[a]),r.y=-e[a]*Math.cos(t[a]),n.push(r)}return n}}]),e}(),Le=function(e){o(a,e);var i=d(a);function a(e){var n;t(this,a),(n=i.call(this,e)).ctx=e,n.w=e.w,n.animBeginArr=[0],n.animDur=0;var r=n.w;return n.startAngle=r.config.plotOptions.radialBar.startAngle,n.endAngle=r.config.plotOptions.radialBar.endAngle,n.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),n.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,n.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,n.radialDataLabels=r.config.plotOptions.radialBar.dataLabels,n.trackStartAngle||(n.trackStartAngle=n.startAngle),n.trackEndAngle||(n.trackEndAngle=n.endAngle),360===n.endAngle&&(n.endAngle=359.99),n.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),n}return n(a,[{key:"draw",value:function(e){var t=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-radialbar"});if(t.globals.noData)return n;var a=i.group(),r=this.defaultSize/2,s=t.globals.gridWidth/2,o=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(o=o-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:s,centerY:r,colorArr:l,series:e});a.add(c)}var u=this.drawArcs({size:o,centerX:s,centerY:r,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=o-o*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return a.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),n.add(a),n}},{key:"drawTracks",value:function(e){var t=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-tracks"}),a=new g(this.ctx),r=new S(this.ctx),s=this.getStrokeWidth(e);e.size=e.size-s/2;for(var o=0;o<e.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(l),l.attr({rel:o+1}),e.size=e.size-s-this.margin;var c=t.config.plotOptions.radialBar.track,u=r.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=i.drawPath({d:"",stroke:u,strokeWidth:s*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;a.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return n}},{key:"drawArcs",value:function(e){var t=this.w,i=new v(this.ctx),n=new S(this.ctx),a=new g(this.ctx),r=i.group(),s=this.getStrokeWidth(e);e.size=e.size-s/2;var o=t.config.plotOptions.radialBar.hollow.background,l=e.size-s*e.series.length-this.margin*e.series.length-s*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(e,r,l,o));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:o||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;this.radialDataLabels.show&&(f=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})),"back"===t.config.plotOptions.radialBar.hollow.position&&(r.add(u),f&&r.add(f));var m=!1;t.config.plotOptions.radialBar.inverseOrder&&(m=!0);for(var y=m?e.series.length-1:0;m?y>=0:y<e.series.length;m?y--:y++){var b=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:p.escapeString(t.globals.seriesNames[y])});r.add(b),b.attr({rel:y+1,"data:realIndex":y}),this.ctx.series.addCollapsedClassToSeries(b,y),e.size=e.size-s-this.margin;var x=n.fillPath({seriesNumber:y,size:e.size,value:e.series[y]}),_=this.startAngle,w=void 0,k=p.negToZero(e.series[y]>100?100:e.series[y])/100,M=Math.round(this.totalAngle*k)+this.startAngle,L=void 0;t.globals.dataChanged&&(w=this.startAngle,L=Math.round(this.totalAngle*p.negToZero(t.globals.previousPaths[y])/100)+w),Math.abs(M)+Math.abs(_)>=360&&(M-=.01),Math.abs(L)+Math.abs(w)>=360&&(L-=.01);var A=M-_,T=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[y]:t.config.stroke.dashArray,C=i.drawPath({d:"",stroke:x,strokeWidth:s,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+y,strokeDashArray:T});if(v.setAttrs(C.node,{"data:angle":A,"data:value":e.series[y]}),t.config.chart.dropShadow.enabled){var D=t.config.chart.dropShadow;a.dropShadow(C,D,y)}a.setSelectionFilter(C,0,y),this.addListeners(C,this.radialDataLabels),b.add(C),C.attr({index:0,j:y});var E=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(E=(M-_)/360*t.config.chart.animations.speed,this.animDur=E/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),t.globals.dataChanged&&(E=(M-_)/360*t.config.chart.animations.dynamicAnimation.speed,this.animDur=E/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(C,{centerX:e.centerX,centerY:e.centerY,endAngle:M,startAngle:_,prevEndAngle:L,prevStartAngle:w,size:e.size,i:y,totalItems:2,animBeginArr:this.animBeginArr,dur:E,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:r,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new v(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,i,n){var a=this.w,r=new S(this.ctx),s=p.randomId(),o=a.config.plotOptions.radialBar.hollow.image;if(a.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(a.globals.cuid).concat(s)}),n="url(#pattern".concat(a.globals.cuid).concat(s,")");else{var l=a.config.plotOptions.radialBar.hollow.imageWidth,c=a.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=a.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-t.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=a.globals.dom.Paper.image(o).loaded((function(t){this.move(e.centerX-l/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return n}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}}]),a}(ke),Se=function(){function e(i){t(this,e),this.w=i.w,this.lineCtx=i}return n(e,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if("line"===i.config.chart.type&&("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[e])&&new x(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var n=t[e].slice();n[n.length-1]=n[n.length-1]+1e-6,t[e]=n}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,n=e.x,a=e.y,r=e.i,s=e.j,o=e.prevY,l=this.w,c=[],u=[];if(0===s){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),u.push(p.isNumber(t[r][0])?o+l.config.markers.offsetY:null),c.push(n+l.config.markers.offsetX),u.push(p.isNumber(t[r][s+1])?a+l.config.markers.offsetY:null)}else c.push(n+l.config.markers.offsetX),u.push(p.isNumber(t[r][s+1])?a+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,n=e.realIndex,a=this.w,r=0;r<a.globals.previousPaths.length;r++){var s=a.globals.previousPaths[r];("line"===s.type||"area"===s.type)&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(n,10)&&("line"===s.type?(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[r].paths[0].d):"area"===s.type&&(this.lineCtx.appendPathFrom=!1,i=a.globals.previousPaths[r].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[r].paths[1]&&(t=a.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t=e.i,i=e.series,n=e.prevY,a=e.lineYPosition,r=this.w;if(void 0!==i[t][0])n=(a=r.config.chart.stacked&&t>0?this.lineCtx.prevSeriesY[t-1][0]:this.lineCtx.zeroY)-i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[t][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(r.config.chart.stacked&&t>0&&void 0===i[t][0])for(var s=t-1;s>=0;s--)if(null!==i[s][0]&&void 0!==i[s][0]){n=a=this.lineCtx.prevSeriesY[s][0];break}return{prevY:n,lineYPosition:a}}}]),e}(),Ae=function(){function e(i,n,a){t(this,e),this.ctx=i,this.w=i.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new T(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Se(this),this.markers=new A(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return n(e,[{key:"draw",value:function(e,t,i){var n=this.w,a=new v(this.ctx),r=n.globals.comboCharts?t:n.config.chart.type,s=a.group({class:"apexcharts-".concat(r,"-series apexcharts-plot-series")}),o=new x(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=o.getLogSeries(e),this.yRatio=o.getLogYRatios(this.yRatio);for(var l=[],c=0;c<e.length;c++){e=this.lineHelpers.sameValueSeriesFix(c,e);var u=n.globals.comboCharts?i[c]:c;this._initSerieVariables(e,c,u);var d=[],h=[],f=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(f=(n.globals.seriesX[u][0]-n.globals.minX)/this.xRatio),h.push(f);var p,m=f,g=m,y=this.zeroY;y=this.lineHelpers.determineFirstPrevY({i:c,series:e,prevY:y,lineYPosition:0}).prevY,d.push(y),p=y;var b=this._calculatePathsFrom({series:e,i:c,realIndex:u,prevX:g,prevY:y}),_=this._iterateOverDataPoints({series:e,realIndex:u,i:c,x:f,y:1,pX:m,pY:p,pathsFrom:b,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:h,yArrj:d});this._handlePaths({type:r,realIndex:u,i:c,paths:_}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(n.config.chart.stacked)for(var w=l.length;w>0;w--)s.add(l[w-1]);else for(var k=0;k<l.length;k++)s.add(l[k]);return s}},{key:"_initSerieVariables",value:function(e,t,i){var n=this.w,a=new v(this.ctx);this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[i]:n.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",seriesName:p.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 r=e[t].length===n.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,n,a,r=e.series,s=e.i,o=e.realIndex,l=e.prevX,c=e.prevY,u=this.w,d=new v(this.ctx);if(null===r[s][0]){for(var h=0;h<r[s].length;h++)if(null!==r[s][h]){l=this.xDivision*h,c=this.zeroY-r[s][h]/this.yRatio[this.yaxisIndex],t=d.move(l,c),i=d.move(l,this.areaBottomY);break}}else t=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),u.globals.previousPaths.length>0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:a,realIndex:o});n=f.pathFromLine,a=f.pathFromArea}return{prevX:l,prevY:c,linePath:t,areaPath:i,pathFromLine:n,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,n=e.i,a=e.paths,r=this.w,o=new v(this.ctx),l=new S(this.ctx);this.prevSeriesY.push(a.yArrj),r.globals.seriesXvalues[i]=a.xArrj,r.globals.seriesYvalues[i]=a.yArrj;var c=r.config.forecastDataPoints;if(c.count>0){var u=r.globals.seriesXvalues[i][r.globals.seriesXvalues[i].length-c.count-1],d=o.drawRect(u,0,r.globals.gridWidth,r.globals.gridHeight,0);r.globals.dom.elForecastMask.appendChild(d.node);var h=o.drawRect(0,0,u,r.globals.gridHeight,0);r.globals.dom.elNonForecastMask.appendChild(h.node)}this.pointsChart||r.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var f={i:n,realIndex:i,animationDelay:n,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var p=l.fillPath({seriesNumber:i}),m=0;m<a.areaPaths.length;m++){var g=o.renderPaths(s(s({},f),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[m],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(g)}if(r.config.stroke.show&&!this.pointsChart){var y;y="line"===t?l.fillPath({seriesNumber:i,i:n}):r.globals.stroke.colors[i];for(var b=0;b<a.linePaths.length;b++){var x=s(s({},f),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[b],stroke:y,strokeWidth:this.strokeWidth,strokeLineCap:r.config.stroke.lineCap,fill:"none"}),_=o.renderPaths(x);if(this.elSeries.add(_),c.count>0){var w=o.renderPaths(x);w.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&w.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(w),w.attr("clip-path","url(#forecastMask".concat(r.globals.cuid,")")),_.attr("clip-path","url(#nonForecastMask".concat(r.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){for(var t=e.series,i=e.realIndex,n=e.i,a=e.x,r=e.y,s=e.pX,o=e.pY,l=e.pathsFrom,c=e.linePaths,u=e.areaPaths,d=e.seriesIndex,h=e.lineYPosition,f=e.xArrj,m=e.yArrj,g=this.w,y=new v(this.ctx),b=this.yRatio,x=l.prevY,_=l.linePath,w=l.areaPath,k=l.pathFromLine,M=l.pathFromArea,L=p.isNumber(g.globals.minYArr[i])?g.globals.minYArr[i]:g.globals.minY,S=g.globals.dataPoints>1?g.globals.dataPoints-1:g.globals.dataPoints,A=0;A<S;A++){var T=void 0===t[n][A+1]||null===t[n][A+1];if(g.globals.isXNumeric){var C=g.globals.seriesX[i][A+1];void 0===g.globals.seriesX[i][A+1]&&(C=g.globals.seriesX[i][S-1]),a=(C-g.globals.minX)/this.xRatio}else a+=this.xDivision;h=g.config.chart.stacked&&n>0&&g.globals.collapsedSeries.length<g.config.series.length-1?this.prevSeriesY[function(e){for(var t=e,i=0;i<g.globals.series.length;i++)if(g.globals.collapsedSeriesIndices.indexOf(e)>-1){t--;break}return t>=0?t:0}(n-1)][A+1]:this.zeroY,r=T?h-L/b[this.yaxisIndex]+2*(this.isReversed?L/b[this.yaxisIndex]:0):h-t[n][A+1]/b[this.yaxisIndex]+2*(this.isReversed?t[n][A+1]/b[this.yaxisIndex]:0),f.push(a),m.push(r);var D=this.lineHelpers.calculatePoints({series:t,x:a,y:r,realIndex:i,i:n,j:A,prevY:x}),E=this._createPaths({series:t,i:n,realIndex:i,j:A,x:a,y:r,pX:s,pY:o,linePath:_,areaPath:w,linePaths:c,areaPaths:u,seriesIndex:d});u=E.areaPaths,c=E.linePaths,s=E.pX,o=E.pY,w=E.areaPath,_=E.linePath,this.appendPathFrom&&(k+=y.line(a,this.zeroY),M+=y.line(a,this.zeroY)),this.handleNullDataPoints(t,D,n,A,i),this._handleMarkersAndLabels({pointsPos:D,series:t,x:a,y:r,prevY:x,i:n,j:A,realIndex:i})}return{yArrj:m,xArrj:f,pathFromArea:M,areaPaths:u,pathFromLine:k,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.pointsPos;e.series,e.x,e.y,e.prevY;var i=e.i,n=e.j,a=e.realIndex,r=this.w,s=new C(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:a,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{r.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var o=this.markers.plotChartMarkers(t,a,n+1);null!==o&&this.elPointsMain.add(o)}var l=s.drawDataLabel(t,a,n+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(e){var t=e.series,i=e.i,n=e.realIndex,a=e.j,r=e.x,s=e.y,o=e.pX,l=e.pY,c=e.linePath,u=e.areaPath,d=e.linePaths,h=e.areaPaths,f=e.seriesIndex,p=this.w,m=new v(this.ctx),g=p.config.stroke.curve,y=this.areaBottomY;if(Array.isArray(p.config.stroke.curve)&&(g=Array.isArray(f)?p.config.stroke.curve[f[i]]:p.config.stroke.curve[i]),"smooth"===g){var b=.35*(r-o);p.globals.hasNullValues?(null!==t[i][a]&&(null!==t[i][a+1]?(c=m.move(o,l)+m.curve(o+b,l,r-b,s,r+1,s),u=m.move(o+1,l)+m.curve(o+b,l,r-b,s,r+1,s)+m.line(r,y)+m.line(o,y)+"z"):(c=m.move(o,l),u=m.move(o,l)+"z")),d.push(c),h.push(u)):(c+=m.curve(o+b,l,r-b,s,r,s),u+=m.curve(o+b,l,r-b,s,r,s)),o=r,l=s,a===t[i].length-2&&(u=u+m.curve(o,l,r,s,r,y)+m.move(r,s)+"z",p.globals.hasNullValues||(d.push(c),h.push(u)))}else{if(null===t[i][a+1]){c+=m.move(r,s);var x=p.globals.isXNumeric?(p.globals.seriesX[n][a]-p.globals.minX)/this.xRatio:r-this.xDivision;u=u+m.line(x,y)+m.move(r,s)+"z"}null===t[i][a]&&(c+=m.move(r,s),u+=m.move(r,y)),"stepline"===g?(c=c+m.line(r,null,"H")+m.line(null,s,"V"),u=u+m.line(r,null,"H")+m.line(null,s,"V")):"straight"===g&&(c+=m.line(r,s),u+=m.line(r,s)),a===t[i].length-2&&(u=u+m.line(r,y)+m.move(r,s)+"z",d.push(c),h.push(u))}return{linePaths:d,areaPaths:h,pX:o,pY:l,linePath:c,areaPath:u}}},{key:"handleNullDataPoints",value:function(e,t,i,n,a){var r=this.w;if(null===e[i][n]&&r.config.markers.showNullDataPoints||1===e[i].length){var s=this.markers.plotChartMarkers(t,a,n+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==s&&this.elPointsMain.add(s)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,i,n,a){this.xoffset=t,this.yoffset=i,this.height=a,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,i=[],n=this.xoffset,a=this.yoffset,s=r(e)/this.height,o=r(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)i.push([n,a,n+s,a+e[t]/s]),a+=e[t]/s;else for(t=0;t<e.length;t++)i.push([n,a,n+e[t]/o,a+o]),n+=e[t]/o;return i},this.cutArea=function(t){var i;if(this.width>=this.height){var n=t/this.height,a=this.width-n;i=new e(this.xoffset+n,this.yoffset,a,this.height)}else{var r=t/this.width,s=this.height-r;i=new e(this.xoffset,this.yoffset+r,this.width,s)}return i}}function t(t,n,a,s,o){return s=void 0===s?0:s,o=void 0===o?0:o,function(e){var t,i,n=[];for(t=0;t<e.length;t++)for(i=0;i<e[t].length;i++)n.push(e[t][i]);return n}(i(function(e,t){var i,n=[],a=t/r(e);for(i=0;i<e.length;i++)n[i]=e[i]*a;return n}(t,n*a),[],new e(s,o,n,a),[]))}function i(e,t,a,s){var o,l,c;if(0!==e.length)return o=a.shortestEdge(),function(e,t,i){var a;return 0===e.length||((a=e.slice()).push(t),n(e,i)>=n(a,i))}(t,l=e[0],o)?(t.push(l),i(e.slice(1),t,a,s)):(c=a.cutArea(r(t),s),s.push(a.getCoordinates(t)),i(e,[],c,s)),s;s.push(a.getCoordinates(t))}function n(e,t){var i=Math.min.apply(Math,e),n=Math.max.apply(Math,e),a=r(e);return Math.max(Math.pow(t,2)*n/Math.pow(a,2),Math.pow(a,2)/(Math.pow(t,2)*i))}function a(e){return e&&e.constructor===Array}function r(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t];return i}function s(e){var t,i=0;if(a(e[0]))for(t=0;t<e.length;t++)i+=s(e[t]);else i=r(e);return i}return function e(i,n,r,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,u,d=[],h=[];if(a(i[0])){for(u=0;u<i.length;u++)d[u]=s(i[u]);for(c=t(d,n,r,o,l),u=0;u<i.length;u++)h.push(e(i[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=t(i,n,r,o,l);return h}}();var Te,Ce,De=function(){function e(i,n){t(this,e),this.ctx=i,this.w=i.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new xe(i),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return n(e,[{key:"draw",value:function(e){var t=this,i=this.w,n=new v(this.ctx),a=new S(this.ctx),r=n.group({class:"apexcharts-treemap"});if(i.globals.noData)return r;var s=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));s.push(t)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(e,i){e.data.forEach((function(e){Array.isArray(t.labels[i])||(t.labels[i]=[]),t.labels[i].push(e.x)}))})),window.TreemapSquared.generate(s,i.globals.gridWidth,i.globals.gridHeight).forEach((function(s,o){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:p.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new g(t.ctx).dropShadow(r,c,o)}var u=n.group({class:"apexcharts-data-labels"});s.forEach((function(r,s){var c=r[0],u=r[1],d=r[2],h=r[3],f=n.drawRect(c,u,d-c,h-u,0,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?m:i.globals.stroke.colors[o]);f.attr({cx:c,cy:u,index:o,i:o,j:s,width:d-c,height:h-u});var p=t.helpers.getShadeColor(i.config.chart.type,o,s,t.negRange),m=p.color;void 0!==i.config.series[o].data[s]&&i.config.series[o].data[s].fillColor&&(m=i.config.series[o].data[s].fillColor);var g=a.fillPath({color:m,seriesNumber:o,dataPointIndex:s});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:g}),t.helpers.addListeners(f);var v={x:c+(d-c)/2,y:u+(h-u)/2,width:0,height:0},y={x:c,y:u,width:d-c,height:h-u};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var b=1;i.globals.resized||(b=i.config.chart.animations.speed),t.animateTreemap(f,v,y,b)}if(i.globals.dataChanged){var x=1;t.dynamicAnim.enabled&&i.globals.shouldAnimate&&(x=t.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][s]&&i.globals.previousPaths[o][s].rect&&(v=i.globals.previousPaths[o][s].rect),t.animateTreemap(f,v,y,x))}var _=t.getFontSize(r),w=i.config.dataLabels.formatter(t.labels[o][s],{value:i.globals.series[o][s],seriesIndex:o,dataPointIndex:s,w:i}),k=t.helpers.calculateDataLabels({text:w,x:(c+d)/2,y:(u+h)/2+t.strokeWidth/2+_/3,i:o,j:s,colorProps:p,fontSize:_,series:e});i.config.dataLabels.enabled&&k&&t.rotateToFitLabel(k,w,c,u,d,h),l.add(f),null!==k&&l.add(k)})),l.add(u),r.add(l)})),r}},{key:"getFontSize",value:function(e){var t,i,n=this.w,a=function e(t){var i,n=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)n+=e(t[i]);else for(i=0;i<t.length;i++)n+=t[i].length;return n}(this.labels)/function e(t){var i,n=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)n+=e(t[i]);else for(i=0;i<t.length;i++)n+=1;return n}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),i=Math.pow(t,.5),Math.min(i/a,parseInt(n.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,i,n,a,r){var s=new v(this.ctx),o=s.getTextRects(t);if(o.width+5>a-i&&o.width<=r-n){var l=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}},{key:"animateTreemap",value:function(e,t,i,n){var a=new m(this.ctx);a.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},n,(function(){a.animationCompleted(e)}))}}]),e}(),Ee=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return n(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var a=new Y(this.ctx),r=(t-e)/864e5;this.determineInterval(r),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,r<.00011574074074074075?n.globals.disableZoomIn=!0:r>5e4&&(n.globals.disableZoomOut=!0);var o=a.getTimeUnitsfromTimestamp(e,t,this.utc),l=n.globals.gridWidth/r,c=l/24,u=c/60,d=u/60,h=Math.floor(24*r),f=Math.floor(1440*r),p=Math.floor(86400*r),m=Math.floor(r),g=Math.floor(r/30),v=Math.floor(r/365),y={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},b={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:h,numberOfDays:m,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?s(s({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?s(s({},t),{},{value:e.value}):"minute"===e.unit?s(s({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?s(s({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return x.filter((function(e){var t=1,a=Math.ceil(n.globals.gridWidth/120),r=e.value;void 0!==n.config.xaxis.tickAmount&&(a=n.config.xaxis.tickAmount),x.length>a&&(t=Math.floor(x.length/a));var s=!1,o=!1;switch(i.tickInterval){case"years":"year"===e.unit&&(s=!0);break;case"half_year":t=7,"year"===e.unit&&(s=!0);break;case"months":t=1,"year"===e.unit&&(s=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(s=!0),30===r&&(o=!0);break;case"months_days":t=10,"month"===e.unit&&(s=!0),30===r&&(o=!0);break;case"week_days":t=8,"month"===e.unit&&(s=!0);break;case"days":t=1,"month"===e.unit&&(s=!0);break;case"hours":"day"===e.unit&&(s=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(o=!0);break;case"seconds_tens":r%10!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((r%t==0||s)&&!o)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,n=this.formatDates(e),a=this.removeOverlappingTS(n);i.globals.timescaleLabels=a.slice(),new se(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>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(e){var t=e.firstVal,i=e.currentMonth,n=e.currentYear,a=e.daysWidthOnXAxis,r=e.numberOfYears,s=t.minYear,o=0,l=new Y(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(l.determineDaysOfYear(t.minYear)-u+1)*a,s=t.minYear+1,this.timeScaleArray.push({position:o,value:s,unit:c,year:s,month:p.monthMod(i+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:s,unit:c,year:n,month:p.monthMod(i+1)});for(var d=s,h=o,f=0;f<r;f++)d++,h=l.determineDaysOfYear(d-1)*a+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,n=e.currentMonth,a=e.currentYear,r=e.daysWidthOnXAxis,s=e.numberOfMonths,o=n,l=0,c=new Y(this.ctx),u="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(n+1,t.minYear)-i+1)*r,o=p.monthMod(n+1);var h=a+d,f=p.monthMod(o),m=o;0===o&&(u="year",m=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:m,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:o,unit:u,year:a,month:p.monthMod(n)});for(var g=o+1,v=l,y=0,b=1;y<s;y++,b++){0===(g=p.monthMod(g))?(u="year",d+=1):u="month";var x=this._getYear(a,g,d);v=c.determineDaysOfMonths(g,x)*r+v;var _=0===g?x:g;this.timeScaleArray.push({position:v,value:_,unit:u,year:x,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,n=e.currentYear,a=e.hoursWidthOnXAxis,r=e.numberOfDays,s=new Y(this.ctx),o="day",l=t.minDate+1,c=l,u=function(e,t,i){return e>s.determineDaysOfMonths(t+1,i)?(c=1,o="month",h=t+=1,t):t},d=(24-t.minHour)*a,h=l,f=u(c,i,n);0===t.minHour&&1===t.minDate?(d=0,h=p.monthMod(t.minMonth),o="month",c=t.minDate,r++):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,h=l,f=u(c=l,i,n)),this.timeScaleArray.push({position:d,value:h,unit:o,year:this._getYear(n,f,0),month:p.monthMod(f),day:c});for(var m=d,g=0;g<r;g++){o="day",f=u(c+=1,f,this._getYear(n,f,0));var v=this._getYear(n,f,0);m=24*a+m;var y=1===c?p.monthMod(f):c;this.timeScaleArray.push({position:m,value:y,unit:o,year:v,month:p.monthMod(f),day:y})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,n=e.currentMonth,a=e.currentYear,r=e.minutesWidthOnXAxis,s=e.numberOfHours,o=new Y(this.ctx),l="hour",c=function(e,t){return e>o.determineDaysOfMonths(t+1,a)&&(g=1,t+=1),{month:t,date:g}},u=function(e,t){return e>o.determineDaysOfMonths(t+1,a)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*r,f=t.minHour+1,m=f+1;60===d&&(h=0,m=(f=t.minHour)+1);var g=i,v=u(g,n);this.timeScaleArray.push({position:h,value:f,unit:l,day:g,hour:m,year:a,month:p.monthMod(v)});for(var y=h,b=0;b<s;b++){l="hour",m>=24&&(m=0,l="day",v=c(g+=1,v).month,v=u(g,v));var x=this._getYear(a,v,0);y=0===m&&0===b?d*r:60*r+y;var _=0===m?g:m;this.timeScaleArray.push({position:y,value:_,unit:l,hour:m,day:g,year:x,month:p.monthMod(v)}),m++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,n=e.currentMinute,a=e.currentHour,r=e.currentDate,s=e.currentMonth,o=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=n+1,h=r,f=s,m=o,g=a,v=(60-i-t/1e3)*c,y=0;y<u;y++)d>=60&&(d=0,24===(g+=1)&&(g=0)),this.timeScaleArray.push({position:v,value:d,unit:"minute",hour:g,minute:d,day:h,year:this._getYear(m,f,0),month:p.monthMod(f)}),v+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,n=e.currentMinute,a=e.currentHour,r=e.currentDate,s=e.currentMonth,o=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=i+1,d=n,h=r,f=s,m=o,g=a,v=(1e3-t)/1e3*l,y=0;y<c;y++)u>=60&&(u=0,++d>=60&&(d=0,24==++g&&(g=0))),this.timeScaleArray.push({position:v,value:u,unit:"second",hour:g,minute:d,second:u,day:h,year:this._getYear(m,f,0),month:p.monthMod(f)}),v+=l,u++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return 0===e.month&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?i+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?i+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map((function(e){var n=e.value.toString(),a=new Y(t.ctx),r=t.createRawDateString(e,n),s=a.getDate(a.parseDate(r));if(t.utc||(s=a.getDate(a.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(o=l.year),"month"===e.unit&&(o=l.month),"day"===e.unit&&(o=l.day),"hour"===e.unit&&(o=l.hour),"minute"===e.unit&&(o=l.minute),"second"===e.unit&&(o=l.second),n=a.formatDate(s,o)}else n=a.formatDate(s,i.config.xaxis.labels.format);return{dateString:r,position:e.position,value:n,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,i=this,n=new v(this.ctx),a=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(a=!0,t=n.getTextRects(e[0].value).width);var r=0,s=e.map((function(s,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=a?t:n.getTextRects(e[r].value).width,c=e[r].position;return s.position>c+l+10?(r=o,s):null}return s}));return s.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),e}(),Oe=function(){function e(i,n){t(this,e),this.ctx=n,this.w=n.w,this.el=i}return n(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),v.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elAnnotations=e.dom.Paper.group().attr({class:"apexcharts-annotations"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,n=i.config,a=i.globals,r={series:[],i:[]},s={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},u={series:[],i:[]},d={series:[],i:[]};a.series.map((function(t,h){var f=0;void 0!==e[h].type?("column"===e[h].type||"bar"===e[h].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(t),c.i.push(h),f++,i.globals.columnSeries=c.series):"area"===e[h].type?(s.series.push(t),s.i.push(h),f++):"line"===e[h].type?(r.series.push(t),r.i.push(h),f++):"scatter"===e[h].type?(o.series.push(t),o.i.push(h)):"bubble"===e[h].type?(l.series.push(t),l.i.push(h),f++):"candlestick"===e[h].type?(u.series.push(t),u.i.push(h),f++):"boxPlot"===e[h].type?(d.series.push(t),d.i.push(h),f++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),f>1&&(a.comboCharts=!0)):(r.series.push(t),r.i.push(h))}));var h=new Ae(this.ctx,t),f=new be(this.ctx,t);this.ctx.pie=new ke(this.ctx);var p=new Le(this.ctx);this.ctx.rangeBar=new I(this.ctx,t);var m=new Me(this.ctx),g=[];if(a.comboCharts){if(s.series.length>0&&g.push(h.draw(s.series,"area",s.i)),c.series.length>0)if(i.config.chart.stacked){var v=new ye(this.ctx,t);g.push(v.draw(c.series,c.i))}else this.ctx.bar=new P(this.ctx,t),g.push(this.ctx.bar.draw(c.series,c.i));if(r.series.length>0&&g.push(h.draw(r.series,"line",r.i)),u.series.length>0&&g.push(f.draw(u.series,u.i)),d.series.length>0&&g.push(f.draw(d.series,d.i)),o.series.length>0){var y=new Ae(this.ctx,t,!0);g.push(y.draw(o.series,"scatter",o.i))}if(l.series.length>0){var b=new Ae(this.ctx,t,!0);g.push(b.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":g=h.draw(a.series,"line");break;case"area":g=h.draw(a.series,"area");break;case"bar":n.chart.stacked?g=new ye(this.ctx,t).draw(a.series):(this.ctx.bar=new P(this.ctx,t),g=this.ctx.bar.draw(a.series));break;case"candlestick":case"boxPlot":g=new be(this.ctx,t).draw(a.series);break;case"rangeBar":g=this.ctx.rangeBar.draw(a.series);break;case"heatmap":g=new _e(this.ctx,t).draw(a.series);break;case"treemap":g=new De(this.ctx,t).draw(a.series);break;case"pie":case"donut":case"polarArea":g=this.ctx.pie.draw(a.series);break;case"radialBar":g=p.draw(a.series);break;case"radar":g=m.draw(a.series);break;default:g=h.draw(a.series)}return g}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=p.getDimensions(this.el),n=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?p.isNumber(i[0])&&(0===i[0].width&&(i=p.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):"px"!==n&&""!==n||(e.svgWidth=parseInt(t.chart.width,10));var a=t.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===a){var r=p.getDimensions(this.el.parentNode);e.svgHeight=r[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),v.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==a){var s=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+s+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i={transform:"translate("+e.translateX+", "+t+")"};v.setAttrs(e.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,n=e.config.chart.sparkline.enabled?1:15;n+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(i=new le(this.ctx).legendHelpers.getLegendBBox().clwh+10);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled){var s=p.getBoundingClientRect(a);r=s.bottom;var o=s.bottom-s.top;r=Math.max(2.05*e.globals.radialSize,o)}var l=r+t.translateY+i+n;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),t.dom.elWrap.style.height=l+"px",v.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px"}},{key:"coreCalculations",value:function(){new U(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},i=new H,n=this.w.globals;i.initGlobalVars(n),n.seriesXvalues=t(),n.seriesYvalues=t()}},{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 e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new J(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new J(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new Ee(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new x(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var i=t.config.chart.brush.targets||[t.config.chart.brush.target];i.forEach((function(t){var i=ApexCharts.getChartByID(t);i.w.globals.brushSource=e.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){e.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){e.updateSourceChart(i)})})),t.config.chart.events.selection=function(e,n){i.forEach((function(e){var i=ApexCharts.getChartByID(e),a=p.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var r=new X(i);a=r.autoScaleY(i,a,n)}var o=i.w.config.yaxis.reduce((function(e,t,n){return[].concat(h(e),[s(s({},i.w.config.yaxis[n]),{},{min:a[0].min,max:a[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:o},!1,!1,!1,!1)}))}}}}]),e}(),Pe=function(){function i(e){t(this,i),this.ctx=e,this.w=e.w}return n(i,[{key:"_updateOptions",value:function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[this.ctx];r&&(o=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(o=[this.ctx],this.ctx.w.globals.isExecCalled=!1),o.forEach((function(r){var o=r.w;return o.globals.shouldAnimate=a,n||(o.globals.resized=!0,o.globals.dataChanged=!0,a&&r.series.getPreviousPaths()),t&&"object"===e(t)&&(r.config=new N(t),t=x.extendArrayProps(r.config,t,o),r.w.globals.chartID!==i.ctx.w.globals.chartID&&delete t.series,o.config=p.extend(o.config,t),s&&(o.globals.lastXAxis=t.xaxis?p.clone(t.xaxis):[],o.globals.lastYAxis=t.yaxis?p.clone(t.yaxis):[],o.globals.initialConfig=p.extend({},o.config),o.globals.initialSeries=p.clone(o.config.series))),r.update(t)}))}},{key:"_updateSeries",value:function(e,t){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.w;return r.globals.shouldAnimate=t,r.globals.dataChanged=!0,t&&this.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(i=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(i=[{data:[]}]),r.config.series=i):r.config.series=e.slice(),a&&(r.globals.initialSeries=p.clone(r.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(e,t){var i=this.w,n=i.config.series[t];return s(s({},i.config.series[t]),{},{name:e.name?e.name:n&&n.name,color:e.color?e.color:n&&n.color,type:e.type?e.type:n&&n.type,data:e.data?e.data:n&&n.data})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,n=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(a," path[j='").concat(t,"'], ").concat(a," circle[j='").concat(t,"'], ").concat(a," rect[j='").concat(t,"']")).members[0]:void 0===t&&(n=i.globals.dom.Paper.select("".concat(a," path[j='").concat(e,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(e)),n?(new v(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&(t.config.xaxis[i]=e.xaxis[i],t.globals.lastXAxis[i]=e.xaxis[i])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new j(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){var t=this.w;return t.config.chart.stacked&&"100%"===t.config.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,n=i.globals.lastXAxis,a=i.globals.lastYAxis;e&&e.xaxis&&(n=e.xaxis),e&&e.yaxis&&(a=e.yaxis),i.config.xaxis.min=n.min,i.config.xaxis.max=n.max;i.config.yaxis.map((function(e,n){i.globals.zoomed||void 0!==a[n]?function(e){void 0!==a[e]&&(i.config.yaxis[e].min=a[e].min,i.config.yaxis[e].max=a[e].max)}(n):void 0!==t.ctx.opts.yaxis[n]&&(e.min=t.ctx.opts.yaxis[n].min,e.max=t.ctx.opts.yaxis[n].max)}))}}]),i}();Te="undefined"!=typeof window?window:void 0,Ce=function(t,i){var n=(void 0!==this?this:t).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};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(e){return"Svgjs"+d(e)+n.did++},n.create=function(e){var t=i.createElementNS(this.ns,e);return t.setAttribute("id",this.eid(e)),t},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var i=e.length-1;i>=0;i--)if(e[i])for(var a in t)e[i].prototype[a]=t[a];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},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 e=i.getElementsByTagName("body")[0],t=(e?new n.Doc(e):n.adopt(i.documentElement).nested()).size(2,0);n.parser={body:e||i.documentElement,draw:t.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:t.polyline().node,path:t.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},i.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var i=e.length,n=[],a=0;a<i;a++)n.push(t(e[a]));return n},filter:function(e,t){for(var i=e.length,n=[],a=0;a<i;a++)t(e[a])&&n.push(e[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 i,a;this.r=0,this.g=0,this.b=0,t&&("string"==typeof t?n.regex.isRgb.test(t)?(i=n.regex.rgb.exec(t.replace(n.regex.whitespace,"")),this.r=parseInt(i[1]),this.g=parseInt(i[2]),this.b=parseInt(i[3])):n.regex.isHex.test(t)&&(i=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(i[1],16),this.g=parseInt(i[2],16),this.b=parseInt(i[3],16)):"object"===e(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"#"+h(this.r)+h(this.g)+h(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(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var a={M:function(e,t,i){return t.x=i.x=e[0],t.y=i.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},Z:function(e,t,i){return t.x=i.x,t.y=i.y,["Z"]}},r="mlhvqtcsaz".split(""),s=0,o=r.length;s<o;++s)a[r[s]]=function(e){return function(t,i,n){if("H"==e)t[0]=t[0]+i.x;else if("V"==e)t[0]=t[0]+i.y;else if("A"==e)t[5]=t[5]+i.x,t[6]=t[6]+i.y;else for(var r=0,s=t.length;r<s;++r)t[r]=t[r]+(r%2?i.y:i.x);return a[e](t,i,n)}}(r[s].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t][0],null!=e[t][1]&&(n+=e[t][1],null!=e[t][2]&&(n+=" ",n+=e[t][2],null!=e[t][3]&&(n+=" ",n+=e[t][3],n+=" ",n+=e[t][4],null!=e[t][5]&&(n+=" ",n+=e[t][5],n+=" ",n+=e[t][6],null!=e[t][7]&&(n+=" ",n+=e[t][7])))));return n+" "}(this.value)},move:function(e,t){var i=this.bbox();return i.x,i.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,i=this.destination.value,a=[],r=new n.PathArray,s=0,o=t.length;s<o;s++){a[s]=[t[s][0]];for(var l=1,c=t[s].length;l<c;l++)a[s][l]=t[s][l]+(i[s][l]-t[s][l])*e;"A"===a[s][0]&&(a[s][4]=+(0!=a[s][4]),a[s][5]=+(0!=a[s][5]))}return r.value=a,r},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,c).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var r=[],s=new n.Point,o=new n.Point,l=0,u=e.length;do{n.regex.isPathLetter.test(e[l])?(t=e[l],++l):"M"==t?t="L":"m"==t&&(t="l"),r.push(a[t].call(null,e.slice(l,l+=i[t.toUpperCase()]).map(parseFloat),s,o))}while(u>l);return r},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(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.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(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var i=f(this,e,t);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},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 e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},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(e){var t=[],i=this;do{if(!(i=i.parent(e))||!i.node)break;t.push(i)}while(i.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var t=i.createElement("svg");if(!(e&&this instanceof n.Parent))return t.appendChild(e=i.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),t.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");t.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var a=0,r=t.firstChild.childNodes.length;a<r;a++)this.node.appendChild(t.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(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,i){return new n.MorphObj(t,i).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,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,i,a){"object"===e(t)&&(i=t.ease,a=t.delay,t=t.duration);var r=new n.Situation({duration:t||1e3,delay:a||0,ease:n.easing[i||"-"]||i});return this.queue(r),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},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(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),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 e,t=this.situation;if(t.init)return this;for(var i in t.animations){e=this.target()[i](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[i])||(t.animations[i]=[t.animations[i]]);for(var a=e.length;a--;)t.animations[i][a]instanceof n.Number&&(e[a]=new n.Number(e[a])),t.animations[i][a]=e[a].morph(t.animations[i][a])}for(var i in t.attrs)t.attrs[i]=new n.MorphObj(this.target().attr(i),t.attrs[i]);for(var i in t.styles)t.styles[i]=new n.MorphObj(this.target().style(i),t.styles[i]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var i=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function i(n){n.detail.situation==t&&(e.call(this,t),this.off("finished.fx",i))})),this._callStart()},during:function(e){var t=this.last(),i=function(i){i.detail.situation==t&&e.call(this,i.detail.pos,n.morph(i.detail.pos),i.detail.eased,t)};return this.target().off("during.fx",i).on("during.fx",i),this.after((function(){this.off("during.fx",i)})),this._callStart()},afterAll:function(e){var t=function t(i){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,i){return this.last()[i||"animations"][e]=t,this._callStart()},step:function(e){var t,i,n;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),i=Math.floor(t),!0===this.situation.loops||i<this.situation.loops?(this.pos=t-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 r in this.situation.once)r>this.lastPos&&r<=a&&(this.situation.once[r].call(this.target(),this.pos,a),delete this.situation.once[r]);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 e,t=this,i=this.target(),a=this.situation;for(var r in a.animations)e=[].concat(a.animations[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(a.ease(t.pos),t.pos):e})),i[r].apply(i,e);for(var r in a.attrs)e=[r].concat(a.attrs[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(a.ease(t.pos),t.pos):e})),i.attr.apply(i,e);for(var r in a.styles)e=[r].concat(a.styles[r]).map((function(e){return"string"!=typeof e&&e.at?e.at(a.ease(t.pos),t.pos):e})),i.style.apply(i,e);if(a.transforms.length){e=a.initialTransformation,r=0;for(var s=a.transforms.length;r<s;r++){var o=a.transforms[r];o instanceof n.Matrix?e=o.relative?e.multiply((new n.Matrix).morph(o).at(a.ease(this.pos))):e.morph(o).at(a.ease(this.pos)):(o.relative||o.undo(e.extract()),e=e.multiply(o.at(a.ease(this.pos))))}i.matrix(e)}return this},once:function(e,t,i){var n=this.last();return i||(e=n.ease(e)),n.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,i){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,i)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(t,i,n){if("object"===e(t))for(var a in t)this.attr(a,t[a]);else this.add(t,i,"attrs");return this},plot:function(e,t,i,n){return 4==arguments.length?this.plot([e,t,i,n]):this.add("plot",new(this.target().morphArray)(e))}}),n.Box=n.invent({create:function(t,i,a,r){if(!("object"!==e(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=i,this.width=a,this.height=r),v(this)}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var t;try{if(!i.documentElement.contains){for(var a=e.node;a.parentNode;)a=a.parentNode;if(a!=i)throw new Error("Element not in the dom")}t=e.node.getBBox()}catch(i){if(e instanceof n.Shape){n.parser.draw||n.prepare();var r=e.clone(n.parser.draw.instance).show();t=r.node.getBBox(),r.remove()}else t={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,t)}},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 i=m([1,0,0,1,0,0]);t=null===t?i:t instanceof n.Element?t.matrixify():"string"==typeof t?m(t.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?m([].slice.call(arguments)):Array.isArray(t)?m(t):t&&"object"===e(t)?t:i;for(var a=b.length-1;a>=0;--a)this[b[a]]=null!=t[b[a]]?t[b[a]]:i[b[a]]},extend:{extract:function(){var e=p(this,0,1);p(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,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(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=b.length-1;t>=0;t--)e[b[t]]=this[b[t]];return e},toString:function(){return"matrix("+y(this.a)+","+y(this.b)+","+y(this.c)+","+y(this.d)+","+y(this.e)+","+y(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(t,i){var n;n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===e(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=i?i:t}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(t,i,a){if(null==t){for(t={},a=(i=this.node.attributes).length-1;a>=0;a--)t[i[a].nodeName]=n.regex.isNumber.test(i[a].nodeValue)?parseFloat(i[a].nodeValue):i[a].nodeValue;return t}if("object"===e(t))for(var r in t)this.attr(r,t[r]);else if(null===i)this.node.removeAttribute(t);else{if(null==i)return null==(i=this.node.getAttribute(t))?n.defaults.attrs[t]:n.regex.isNumber.test(i)?parseFloat(i):i;"stroke-width"==t?this.attr("stroke",parseFloat(i)>0?this._stroke:null):"stroke"==t&&(this._stroke=i),"fill"!=t&&"stroke"!=t||(n.regex.isImage.test(i)&&(i=this.doc().defs().image(i,0,0)),i instanceof n.Image&&(i=this.doc().defs().pattern(0,0,(function(){this.add(i)})))),"number"==typeof i?i=new n.Number(i):n.Color.isColor(i)?i=new n.Color(i):Array.isArray(i)&&(i=new n.Array(i)),"leading"==t?this.leading&&this.leading(i):"string"==typeof a?this.node.setAttributeNS(a,t,i.toString()):this.node.setAttribute(t,i.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,i)}return this}}),n.extend(n.Element,{transform:function(t,i){var a;return"object"!==e(t)?(a=new n.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new n.Matrix(this),i=!!i||!!t.relative,null!=t.a&&(a=i?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(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(m(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),i=e.screenCTM().inverse();return this.addTo(e).untransform().transform(i.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(t,i){if(arguments.length>1&&"boolean"!=typeof i)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"===e(t))for(n=0,a=this.arguments.length;n<a;++n)this[this.arguments[n]]=t[this.arguments[n]];this.inversed=!1,!0===i&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(t,i){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===e(t))for(var a in t)this.style(a,t[a]);else{if(!n.regex.isCss.test(t))return this.node.style[u(t)];for(t=t.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));i=t.pop();)this.style(i[0],i[1])}else this.node.style[u(t)]=null===i||n.regex.isBlank.test(i)?"":i;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(e){return n.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var i=this.children(),a=0,r=i.length;a<r;a++)i[a]instanceof n.Element&&e.apply(i[a],[a,i]),t&&i[a]instanceof n.Container&&i[a].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.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(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},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(e){n.Element.prototype[e]=function(t){return n.on(this.node,e,t),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(e,t,i,a,r){var s=i.bind(a||e.instance||e),o=(n.handlerMap.indexOf(e)+1||n.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";n.listeners[o]=n.listeners[o]||{},n.listeners[o][l]=n.listeners[o][l]||{},n.listeners[o][l][c]=n.listeners[o][l][c]||{},i._svgjsListenerId||(i._svgjsListenerId=++n.listenerId),n.listeners[o][l][c][i._svgjsListenerId]=s,e.addEventListener(l,s,r||{passive:!0})},n.off=function(e,t,i){var a=n.handlerMap.indexOf(e),r=t&&t.split(".")[0],s=t&&t.split(".")[1],o="";if(-1!=a)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[a][r]&&n.listeners[a][r][s||"*"]&&(e.removeEventListener(r,n.listeners[a][r][s||"*"][i],!1),delete n.listeners[a][r][s||"*"][i])}else if(s&&r){if(n.listeners[a][r]&&n.listeners[a][r][s]){for(var l in n.listeners[a][r][s])n.off(e,[r,s].join("."),l);delete n.listeners[a][r][s]}}else if(s)for(var c in n.listeners[a])for(var o in n.listeners[a][c])s===o&&n.off(e,[c,s].join("."));else if(r){if(n.listeners[a][r]){for(var o in n.listeners[a][r])n.off(e,[r,o].join("."));delete n.listeners[a][r]}}else{for(var c in n.listeners[a])n.off(e,c);delete n.listeners[a],delete n.handlerMap[a]}},n.extend(n.Element,{on:function(e,t,i,a){return n.on(this.node,e,t,i,a),this},off:function(e,t){return n.off(this.node,e,t),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(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?i.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.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 e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):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(e){this.writeDataToDom();var t=this.node,i=g(t.cloneNode(!0));return e?(e.node||e).appendChild(i.node):t.parentNode.insertBefore(i.node,t.nextSibling),i}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,i){return this.put(new n.Stop).update(e,t,i)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{pattern:function(e,t,i){return this.defs().pattern(e,t,i)}}}),n.extend(n.Defs,{pattern:function(e,t,i){return this.put(new n.Pattern).update(i).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},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(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var i=f(this,e,t);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(e,t,i,a){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:i,y2:a}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var i=f(this,e,t);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(e,t,i,a){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,i,a]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var i=f(this,e,t);return this.attr("points",this.array().size(i.width,i.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),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(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new n.Path).plot(e||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.call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:e}))})),n.on(a,"error",(function(e){n.off(a),"function"==typeof i._error&&i._error.call(i,e)})),this.attr("href",a.src=this.src=e,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,i){return this.put(new n.Image).load(e).size(t||0,i||t||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(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,i=0,a=t.length;i<a;++i)0!=i&&3!=t[i].nodeType&&1==n.adopt(t[i]).dom.newLined&&(e+="\n"),e+=t[i].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{i=0;for(var r=(e=e.split("\n")).length;i<r;i++)this.tspan(e[i]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),(function(e){return n.adopt(e)}));return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,i=0,a=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?i+=a:(this.attr("dy",a+i),i=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(i.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,i=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(i.node),i.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.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 e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),i=null;return t&&(i=t.plot(e)),null==e?i:this},track:function(){var e=this.textPath();if(e)return e.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(e,t){return"color"==t?e:e+"-"+t}};function c(e,t,i,a){return i+a.replace(n.regex.dots," .")}function u(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function f(e,t,i){if(null==t||null==i){var n=e.bbox();null==t?t=n.width/n.height*i:null==i&&(i=n.height/n.width*t)}return{width:t,height:i}}function p(e,t,i){return{x:t*e.a+i*e.c+0,y:t*e.b+i*e.d+0}}function m(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function g(e){for(var i=e.childNodes.length-1;i>=0;i--)e.childNodes[i]instanceof t.SVGElement&&g(e.childNodes[i]);return n.adopt(e).id(n.eid(e.nodeName))}function v(e){return null==e.x&&(e.x=0,e.y=0,e.width=0,e.height=0),e.w=e.width,e.h=e.height,e.x2=e.x+e.width,e.y2=e.y+e.height,e.cx=e.x+e.width/2,e.cy=e.y+e.height/2,e}function y(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var i=l[e].length-1;i>=0;i--)null!=t[l[e][i]]&&this.attr(l.prefix(e,l[e][i]),t[l[e][i]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,i=e.length;t<i;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,i=this.members.length;t<i;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,i=this.members.length;t<i;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}})),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){n.FX.Set.prototype[e]=function(){for(var t=0,i=this.set.members.length;t<i;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(t,i){if("object"===e(arguments[0]))for(var n in t)this.remember(n,t[n]);else{if(1==arguments.length)return this.memory()[t];this.memory()[t]=i}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var t=i.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(t)},n.select=function(e,t){return new n.Set(n.utils.map((t||i).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var b="abcdef".split("");if("function"!=typeof t.CustomEvent){var x=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.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 Ce(Te,Te.document)})):"object"===("undefined"==typeof exports?"undefined":e(exports))&&"undefined"!=typeof module?module.exports=Te.document?Ce(Te,Te.document):function(e){return Ce(e,e.document)}:Te.SVG=Ce(Te,Te.document),
|
||
/*! svg.filter.js - v2.0.2 - 2016-02-24
|
||
* https://github.com/wout/svg.filter.js
|
||
* Copyright (c) 2016 Wout Fierens; Licensed MIT */
|
||
function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,i){return this.put(new SVG.BlendEffect(e,t,i))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,i){return this.put(new SVG.CompositeEffect(e,t,i))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,i){return this.put(new SVG.DiffuseLightingEffect(e,t,i))},displacementMap:function(e,t,i,n,a){return this.put(new SVG.DisplacementMapEffect(e,t,i,n,a))},specularLighting:function(e,t,i,n){return this.put(new SVG.SpecularLightingEffect(e,t,i,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,i,n,a){return this.put(new SVG.TurbulenceEffect(e,t,i,n,a))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&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(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,i){return this.parent()&&this.parent().diffuseLighting(e,t,i).in(this)},displacementMap:function(e,t,i,n){return this.parent()&&this.parent().displacementMap(this,e,t,i,n)},specularLighting:function(e,t,i,n){return this.parent()&&this.parent().specularLighting(e,t,i,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,i,n,a){return this.parent()&&this.parent().turbulence(e,t,i,n,a).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,i){this.attr({in:e,in2:t,mode:i||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=a(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=a(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,i){this.attr({in:e,in2:t,operator:i})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,i,n,a){this.attr({in:e,in2:t,scale:i,xChannelSelector:n,yChannelSelector:a})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",r(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,i,n,a){this.attr({numOctaves:t,seed:i,stitchTiles:n,baseFrequency:e,type:a})}},i={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<e.length;i++)e[i]instanceof SVG.MergeNode?this.put(e[i]):this.put(new SVG.MergeNode(e[i]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,i){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:i})},specularLighting:function(e,t,i,n){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:i,kernelUnitLength:n})}},n={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,i){this.attr({x:e,y:t,z:i})},spotLight:function(e,t,i,n,a,r){this.attr({x:e,y:t,z:i,pointsAtX:n,pointsAtY:a,pointsAtZ:r})},mergeNode:function(e){this.attr("in",e)}};function a(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(e){if(!Array.isArray(e))return e;for(var t=0,i=e.length,n=[];t<i;t++)n.push(e[t]);return n.join(" ")}function s(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[t])e(arguments[t][i],i,arguments[t])}["r","g","b","a"].forEach((function(e){n["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){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])}}})),s(t,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),s(i,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),s(n,(function(e,t){var i=t.charAt(0).toUpperCase()+t.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),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 e(e,a,r,s,o,l,c){for(var u=e.slice(a,r||c),d=s.slice(o,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=t.call(f,u[h]),d[h]=t.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].concat(n.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(n.call(p,d[h])))):(u[h]=i.call(f,u[h]),d[h]=i.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function i(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function n(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":e=(t=function(e,t){var i,n,a,r,s,o,l,c,u,d,h,f,p,m,g,v,y,b,x,_,w,k,M,L,S,A,T=Math.abs(t[1]),C=Math.abs(t[2]),D=t[3]%360,E=t[4],O=t[5],P=t[6],Y=t[7],I=new SVG.Point(e),j=new SVG.Point(P,Y),N=[];if(0===T||0===C||I.x===j.x&&I.y===j.y)return[["C",I.x,I.y,j.x,j.y,j.x,j.y]];for((n=(i=new SVG.Point((I.x-j.x)/2,(I.y-j.y)/2).transform((new SVG.Matrix).rotate(D))).x*i.x/(T*T)+i.y*i.y/(C*C))>1&&(T*=n=Math.sqrt(n),C*=n),a=(new SVG.Matrix).rotate(D).scale(1/T,1/C).rotate(-D),I=I.transform(a),o=(r=[(j=j.transform(a)).x-I.x,j.y-I.y])[0]*r[0]+r[1]*r[1],s=Math.sqrt(o),r[0]/=s,r[1]/=s,l=o<4?Math.sqrt(1-o/4):0,E===O&&(l*=-1),c=new SVG.Point((j.x+I.x)/2+l*-r[1],(j.y+I.y)/2+l*r[0]),u=new SVG.Point(I.x-c.x,I.y-c.y),d=new SVG.Point(j.x-c.x,j.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),O&&h>f&&(f+=2*Math.PI),!O&&h<f&&(f-=2*Math.PI),v=[],y=h,p=(f-h)/(m=Math.ceil(2*Math.abs(h-f)/Math.PI)),g=4*Math.tan(p/4)/3,w=0;w<=m;w++)x=Math.cos(y),b=Math.sin(y),_=new SVG.Point(c.x+x,c.y+b),v[w]=[new SVG.Point(_.x+g*b,_.y-g*x),_,new SVG.Point(_.x-g*b,_.y+g*x)],y+=p;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(T,C).rotate(-D),w=0,k=v.length;w<k;w++)v[w][0]=v[w][0].transform(a),v[w][1]=v[w][1].transform(a),v[w][2]=v[w][2].transform(a);for(w=1,k=v.length;w<k;w++)M=(_=v[w-1][2]).x,L=_.y,S=(_=v[w][0]).x,A=_.y,P=(_=v[w][1]).x,Y=_.y,N.push(["C",M,L,S,A,P,Y]);return N}(this.pos,e))[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function a(e,t){if(!1===t)return!1;for(var i=t,n=e.length;i<n;++i)if("M"==e[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var i=this.value,n=this.parse(t),r=0,s=0,o=!1,l=!1;!1!==r||!1!==s;){var c;o=a(i,!1!==r&&r+1),l=a(n,!1!==s&&s+1),!1===r&&(r=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===s&&(s=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=e(i,r,o,n,s,l);i=i.slice(0,r).concat(u.start,!1===o?[]:i.slice(o)),n=n.slice(0,s).concat(u.dest,!1===l?[]:n.slice(l)),r=!1!==o&&r+u.start.length,s=!1!==l&&s+u.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(),
|
||
/*! svg.draggable.js - v2.2.2 - 2019-01-08
|
||
* https://github.com/svgdotjs/svg.draggable.js
|
||
* Copyright (c) 2019 Wout Fierens; Licensed MIT */
|
||
function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var i=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){i.start(e)})),this.el.on("touchstart.drag",(function(e){i.start(e)}))},e.prototype.transformPoint=function(e,t){var i=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=i.clientX-(t||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.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(e,i),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),i=this.transformPoint(e),n=this.startPoints.box.x+i.x-this.startPoints.point.x,a=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,s=i.x-this.startPoints.point.x,o=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var l=r.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 r&&(null!=r.minX&&n<r.minX?s=(n=r.minX)-this.startPoints.box.x:null!=r.maxX&&n>r.maxX-t.width&&(s=(n=r.maxX-t.width)-this.startPoints.box.x),null!=r.minY&&a<r.minY?o=(a=r.minY)-this.startPoints.box.y:null!=r.maxY&&a>r.maxY-t.height&&(o=(a=r.maxY-t.height)-this.startPoints.box.y),null!=r.snapToGrid&&(n-=n%r.snapToGrid,a-=a%r.snapToGrid,s-=s%r.snapToGrid,o-=o%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:s,y:o},!0):this.el.move(n,a));return i},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,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(t,i){"function"!=typeof t&&"object"!=typeof t||(i=t,t=!0);var n=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?n.init(i||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.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(e,t,i){var n="string"!=typeof e?e:t[e];return i?n/2:n},this.pointCoords=function(e,t){var i=this.pointsList[e];return{x:this.pointCoord(i[0],t,"t"===e||"b"===e),y:this.pointCoord(i[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){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!==t[a]&&(this.options[a]=t[a]);var r=["points","pointsExclude"];for(var a in r){var s=this.options[r[a]];"string"==typeof s?s=s.length>0?s.split(/\s*,\s*/i):[]:"boolean"==typeof s&&"points"===r[a]&&(s=s?n:[]),this.options[r[a]]=s}this.options.points=[n,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<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(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,n=t.length;i<n;++i){var a=function(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("point",{x:n,y:a,i:t,event:i})}}(i),r=this.drawPoint(t[i][0],t[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",a).on("mousedown",a);this.pointSelection.set.add(r)}},e.prototype.drawPoint=function(e,t){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof i)return i.call(this,e,t);throw new Error("Unknown "+i+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(i,n){var a=e.pointCoords(i,t);e.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(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,i=this.el.bbox();function n(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(e,{x:n,y:a,event:i})}}if(this.rectSelection.isSelected=e,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(e,a){var r=t.pointCoords(e,i),s=t.drawPoint(r.x,r.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",n(e)).on("touchstart",n(e));t.rectSelection.set.add(s)})),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var a=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var i=e.pageX||e.touches[0].pageX,n=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:i,y:n,event:e})},r=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a);this.rectSelection.set.add(r)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.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(t,i){return"object"==typeof t&&(i=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,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 e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,i){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==e[i]&&(this.options[i]=e[i]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.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},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:e.detail.x,y:e.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!==e.detail.i){var n=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[n[e.detail.i][0],n[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var i=this.snapToGrid(e,t);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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=this.snapToGrid(e,t,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(e,t){var i=e+this.parameters.p.x,n=t+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),r=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),s=this.parameters.rotation+180*(r-a)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(s-s%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var i=this.snapToGrid(e,t,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:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.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:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.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")},e.prototype.snapToGrid=function(e,t,i,n){var a;return void 0!==n?a=[(i+e)%this.options.snapToGrid,(n+t)%this.options.snapToGrid]:(i=null==i?3:i,a=[(this.parameters.box.x+e+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(a[0]-=this.options.snapToGrid),t<0&&(a[1]-=this.options.snapToGrid),e-=Math.abs(a[0])<this.options.snapToGrid/2?a[0]:a[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(a[1])<this.options.snapToGrid/2?a[1]:a[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,i,n)},e.prototype.constraintToBox=function(e,t,i,n){var a,r,s=this.options.constraint||{};return void 0!==n?(a=i,r=n):(a=this.parameters.box.x+(1&i?0:this.parameters.box.width),r=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==s.minX&&a+e<s.minX&&(e=s.minX-a),void 0!==s.maxX&&a+e>s.maxX&&(e=s.maxX-a),void 0!==s.minY&&r+t<s.minY&&(t=s.minY-r),void 0!==s.maxY&&r+t>s.maxY&&(t=s.maxY-r),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),n=this.parameters.box.width/this.parameters.box.height,a=this.parameters.box.width+e[0],r=this.parameters.box.height-e[1],s=a/r;return s<n?(i[1]=a/n-this.parameters.box.height,t&&(i[1]=-i[1])):s>n&&(i[0]=this.parameters.box.width-r*n,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}('.apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n position: relative;\n}\n\n.apexcharts-text tspan {\n font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-goals-group, \n.apexcharts-tooltip-text-goals-label, \n.apexcharts-tooltip-text-goals-value {\n display: flex;\n}\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-box, .apexcharts-custom-tooltip {\n padding: 4px 8px;\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse;\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0;\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: bold;\n display: block;\n margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, 0.7);\n border: 1px solid rgba(0, 0, 0, 0.5);\n color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: rgba(236, 239, 241, 0);\n border-width: 6px;\n margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: rgba(144, 164, 174, 0);\n border-width: 7px;\n margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n position: relative;\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n from {\n opacity: 0;\n }\n to {\n opacity: 0;\n }\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.resize-triggers>div {\n background: #eee;\n overflow: auto;\n}\n\n.contract-trigger:before {\n width: 200%;\n height: 200%;\n}'),function(){function e(e){var t=e.__resizeTriggers__,i=t.firstElementChild,n=t.lastElementChild,a=i?i.firstElementChild:null;n&&(n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight),a&&(a.style.width=i.offsetWidth+1+"px",a.style.height=i.offsetHeight+1+"px"),i&&(i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight)}function t(t){var i=this;e(this),this.__resizeRAF__&&r(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach((function(e){e.call(t)})))}))}var i,n,a=(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},function(e){return i(e)}),r=(n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(e){return n(e)}),s=!1,o="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(s=!0),!1===s)for(var d=0;d<l.length;d++)if(void 0!==u.style[l[d]+"AnimationName"]){o=c[d];break}window.addResizeListener=function(i,n){i.__resizeTriggers__||("static"==getComputedStyle(i).position&&(i.style.position="relative"),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=document.createElement("div")).className="resize-triggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),e(i),i.addEventListener("scroll",t,!0),o&&i.__resizeTriggers__.addEventListener(o,(function(t){"resizeanim"==t.animationName&&e(i)}))),i.__resizeListeners__.push(n)},window.removeResizeListener=function(e,i){e&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(i),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",t),e.__resizeTriggers__.parentNode&&(e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={});var Ye=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{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 K(this.ctx),this.ctx.core=new Oe(this.ctx.el,this.ctx),this.ctx.config=new N({}),this.ctx.data=new R(this.ctx),this.ctx.grid=new q(this.ctx),this.ctx.graphics=new v(this.ctx),this.ctx.coreUtils=new x(this.ctx),this.ctx.crosshairs=new J(this.ctx),this.ctx.events=new G(this.ctx),this.ctx.exports=new W(this.ctx),this.ctx.localization=new Z(this.ctx),this.ctx.options=new M,this.ctx.responsive=new Q(this.ctx),this.ctx.series=new E(this.ctx),this.ctx.theme=new ee(this.ctx),this.ctx.formatters=new z(this.ctx),this.ctx.titleSubtitle=new te(this.ctx),this.ctx.legend=new le(this.ctx),this.ctx.toolbar=new ce(this.ctx),this.ctx.dimensions=new se(this.ctx),this.ctx.updateHelpers=new Pe(this.ctx),this.ctx.zoomPanSelection=new ue(this.ctx),this.ctx.w.globals.tooltip=new ve(this.ctx)}}]),e}(),Ie=function(){function e(i){t(this,e),this.ctx=i,this.w=i.w}return n(e,[{key:"clear",value:function(e){var t=e.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:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.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(e){a.removeEventListener(e,t.ctx.events.documentEvent)}));var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elAnnotations=null,r.elLegendWrap=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),e}();return function(){function e(i,n){t(this,e),this.opts=n,this.ctx=this,this.w=new F(n).init(),this.el=i,this.w.globals.cuid=p.randomId(),this.w.globals.chartID=this.w.config.chart.id?p.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ye(this).initModules(),this.create=p.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return n(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,i){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var n=e.w.config.chart.events.beforeMount;"function"==typeof n&&n(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),window.addResizeListener(e.el.parentNode,e.parentResizeHandler);var a=e.create(e.w.config.series,{});if(!a)return t(e);e.mount(a).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(a)})).catch((function(e){i(e)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var i=this.w;new Ye(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new j(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var a=x.checkComboSeries(e);n.comboCharts=a.comboCharts,n.comboBarCount=a.comboBarCount;var r=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new A(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var s=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,s),l=new C(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:o,xyRatios:s,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,n=i.w;return new Promise((function(a,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===t||n.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==n.config.chart.type&&i.axes.drawAxis(n.config.chart.type,t.xyRatios),i.grid=new q(i);var s=i.grid.drawGrid();i.annotations=new L(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&s&&n.globals.dom.elGraphical.add(s.el);var o=new V(e.ctx),l=new $(e.ctx);if(null!==s&&(o.xAxisLabelCorrections(s.xAxisTickWidth),l.setYAxisTextAlignments(),n.config.yaxis.map((function(e,t){-1===n.globals.ignoreYAxisIndexes.indexOf(t)&&l.yAxisTitleRotate(t,e.opposite)}))),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)n.globals.dom.elGraphical.add(t.elGraph[c]);else n.globals.dom.elGraphical.add(t.elGraph);if("front"===n.config.grid.position&&s&&n.globals.dom.elGraphical.add(s.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(t.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:t.xyRatios});else{var u=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){u[e]=!1}))}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),n.globals.axisCharts||n.globals.noData||i.core.resizeNonAxisCharts(),a(i)}))}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach((function(t,i){t.id===p.escapeString(e)&&Apex._chartInstances.splice(i,1)})),new Ie(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=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],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w;return s.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,i){return t.updateHelpers._extendSeries(e,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),s.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,n,a,r)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(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(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(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(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,t,i)}},{key:"appendData",value:function(e){var t=!(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!==e[a]&&void 0!==e[a])for(var r=0;r<e[a].data.length;r++)n[a].data.push(e[a].data[r]);return i.w.config.series=n,t&&(i.w.globals.initialSeries=p.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(i,n){new Ie(t.ctx).clear({isUpdating:!0});var a=t.create(t.w.config.series,e);if(!a)return i(t);t.mount(a).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)})).catch((function(e){n(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(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(e,t,n)}},{key:"addYaxisAnnotation",value:function(e){var t=!(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(e,t,n)}},{key:"addPointAnnotation",value:function(e){var t=!(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(e,t,n)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new U(this.ctx);return t.getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=new U(this.ctx);return t.getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new W(this.ctx).dataURI(e)}},{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 e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=p.escapeString(e),i=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),i=0;i<t.length;i++)new e(t[i],JSON.parse(t[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var n=null;if(-1!==i.publicMethods.indexOf(t)){for(var a=arguments.length,r=new Array(a>2?a-2:0),s=2;s<a;s++)r[s-2]=arguments[s];n=i[t].apply(i,r)}return n}}},{key:"merge",value:function(e,t){return p.extend(e,t)}}]),e}()})),
|
||
/*!
|
||
* Chart.js v3.6.0
|
||
* https://www.chartjs.org
|
||
* (c) 2021 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/
|
||
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Chart=t()}(this,(function(){"use strict";const e="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function t(t,i,n){const a=n||(e=>Array.prototype.slice.call(e));let r=!1,s=[];return function(...n){s=a(n),r||(r=!0,e.call(window,(()=>{r=!1,t.apply(i,s)})))}}function i(e,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(e,t,n)):e.apply(this,n),t}}const n=e=>"start"===e?"left":"end"===e?"right":"center",a=(e,t,i)=>"start"===e?t:"end"===e?i:(t+i)/2,r=(e,t,i,n)=>e===(n?"left":"right")?i:"center"===e?(t+i)/2:t;var s=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,n){const a=t.listeners[n],r=t.duration;a.forEach((n=>n({chart:e,initial:t.initial,numSteps:r,currentStep:Math.min(i-t.start,r)})))}_refresh(){this._request||(this._running=!0,this._request=e.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const a=i.items;let r,s=a.length-1,o=!1;for(;s>=0;--s)r=a[s],r._active?(r._total>i.duration&&(i.duration=r._total),r.tick(e),o=!0):(a[s]=a[a.length-1],a.pop());o&&(n.draw(),this._notify(n,i,e,"progress")),a.length||(i.running=!1,this._notify(n,i,e,"complete"),i.initial=!1),t+=a.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};
|
||
/*!
|
||
* @kurkle/color v0.1.9
|
||
* https://github.com/kurkle/color#readme
|
||
* (c) 2020 Jukka Kurkela
|
||
* Released under the MIT License
|
||
*/const o={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},l="0123456789ABCDEF",c=e=>l[15&e],u=e=>l[(240&e)>>4]+l[15&e],d=e=>(240&e)>>4==(15&e);function h(e){var t=function(e){return d(e.r)&&d(e.g)&&d(e.b)&&d(e.a)}(e)?c:u;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function f(e){return e+.5|0}const p=(e,t,i)=>Math.max(Math.min(e,i),t);function m(e){return p(f(2.55*e),0,255)}function g(e){return p(f(255*e),0,255)}function v(e){return p(f(e/2.55)/100,0,1)}function y(e){return p(f(100*e),0,100)}const b=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const x=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _(e,t,i){const n=t*Math.min(i,1-i),a=(t,a=(t+e/30)%12)=>i-n*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function w(e,t,i){const n=(n,a=(n+e/60)%6)=>i-i*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function k(e,t,i){const n=_(e,1,.5);let a;for(t+i>1&&(a=1/(t+i),t*=a,i*=a),a=0;a<3;a++)n[a]*=1-t-i,n[a]+=t;return n}function M(e){const t=e.r/255,i=e.g/255,n=e.b/255,a=Math.max(t,i,n),r=Math.min(t,i,n),s=(a+r)/2;let o,l,c;return a!==r&&(c=a-r,l=s>.5?c/(2-a-r):c/(a+r),o=a===t?(i-n)/c+(i<n?6:0):a===i?(n-t)/c+2:(t-i)/c+4,o=60*o+.5),[0|o,l||0,s]}function L(e,t,i,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,n)).map(g)}function S(e,t,i){return L(_,e,t,i)}function A(e){return(e%360+360)%360}function T(e){const t=x.exec(e);let i,n=255;if(!t)return;t[5]!==i&&(n=t[6]?m(+t[5]):g(+t[5]));const a=A(+t[2]),r=+t[3]/100,s=+t[4]/100;return i="hwb"===t[1]?function(e,t,i){return L(k,e,t,i)}(a,r,s):"hsv"===t[1]?function(e,t,i){return L(w,e,t,i)}(a,r,s):S(a,r,s),{r:i[0],g:i[1],b:i[2],a:n}}const C={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},D={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let E;function O(e){E||(E=function(){const e={},t=Object.keys(D),i=Object.keys(C);let n,a,r,s,o;for(n=0;n<t.length;n++){for(s=o=t[n],a=0;a<i.length;a++)r=i[a],o=o.replace(r,C[r]);r=parseInt(D[s],16),e[o]=[r>>16&255,r>>8&255,255&r]}return e}(),E.transparent=[0,0,0,0]);const t=E[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function P(e,t,i){if(e){let n=M(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,0===t?360:1)),n=S(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Y(e,t){return e?Object.assign(t||{},e):e}function I(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=g(e[3]))):(t=Y(e,{r:0,g:0,b:0,a:1})).a=g(t.a),t}function j(e){return"r"===e.charAt(0)?function(e){const t=b.exec(e);let i,n,a,r=255;if(t){if(t[7]!==i){const e=+t[7];r=255&(t[8]?m(e):255*e)}return i=+t[1],n=+t[3],a=+t[5],i=255&(t[2]?m(i):i),n=255&(t[4]?m(n):n),a=255&(t[6]?m(a):a),{r:i,g:n,b:a,a:r}}}(e):T(e)}class N{constructor(e){if(e instanceof N)return e;const t=typeof e;let i;var n,a,r;"object"===t?i=I(e):"string"===t&&(r=(n=e).length,"#"===n[0]&&(4===r||5===r?a={r:255&17*o[n[1]],g:255&17*o[n[2]],b:255&17*o[n[3]],a:5===r?17*o[n[4]]:255}:7!==r&&9!==r||(a={r:o[n[1]]<<4|o[n[2]],g:o[n[3]]<<4|o[n[4]],b:o[n[5]]<<4|o[n[6]],a:9===r?o[n[7]]<<4|o[n[8]]:255})),i=a||O(e)||j(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Y(this._rgb);return e&&(e.a=v(e.a)),e}set rgb(e){this._rgb=I(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${v(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):this._rgb;var e}hexString(){return this._valid?h(this._rgb):this._rgb}hslString(){return this._valid?function(e){if(!e)return;const t=M(e),i=t[0],n=y(t[1]),a=y(t[2]);return e.a<255?`hsla(${i}, ${n}%, ${a}%, ${v(e.a)})`:`hsl(${i}, ${n}%, ${a}%)`}(this._rgb):this._rgb}mix(e,t){const i=this;if(e){const n=i.rgb,a=e.rgb;let r;const s=t===r?.5:t,o=2*s-1,l=n.a-a.a,c=((o*l==-1?o:(o+l)/(1+o*l))+1)/2;r=1-c,n.r=255&c*n.r+r*a.r+.5,n.g=255&c*n.g+r*a.g+.5,n.b=255&c*n.b+r*a.b+.5,n.a=s*n.a+(1-s)*a.a,i.rgb=n}return i}clone(){return new N(this.rgb)}alpha(e){return this._rgb.a=g(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=f(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return P(this._rgb,2,e),this}darken(e){return P(this._rgb,2,-e),this}saturate(e){return P(this._rgb,1,e),this}desaturate(e){return P(this._rgb,1,-e),this}rotate(e){return function(e,t){var i=M(e);i[0]=A(i[0]+t),i=S(i),e.r=i[0],e.g=i[1],e.b=i[2]}(this._rgb,e),this}}function H(e){return new N(e)}const F=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function R(e){return F(e)?e:H(e)}function z(e){return F(e)?e:H(e).saturate(.5).darken(.1).hexString()}function B(){}const W=function(){let e=0;return function(){return e++}}();function V(e){return null==e}function q(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function X(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const U=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function $(e,t){return U(e)?e:t}function G(e,t){return void 0===e?t:e}const Z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,K=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function J(e,t,i){if(e&&"function"==typeof e.call)return e.apply(i,t)}function Q(e,t,i,n){let a,r,s;if(q(e))if(r=e.length,n)for(a=r-1;a>=0;a--)t.call(i,e[a],a);else for(a=0;a<r;a++)t.call(i,e[a],a);else if(X(e))for(s=Object.keys(e),r=s.length,a=0;a<r;a++)t.call(i,e[s[a]],s[a])}function ee(e,t){let i,n,a,r;if(!e||!t||e.length!==t.length)return!1;for(i=0,n=e.length;i<n;++i)if(a=e[i],r=t[i],a.datasetIndex!==r.datasetIndex||a.index!==r.index)return!1;return!0}function te(e){if(q(e))return e.map(te);if(X(e)){const t=Object.create(null),i=Object.keys(e),n=i.length;let a=0;for(;a<n;++a)t[i[a]]=te(e[i[a]]);return t}return e}function ie(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function ne(e,t,i,n){if(!ie(e))return;const a=t[e],r=i[e];X(a)&&X(r)?ae(a,r,n):t[e]=te(r)}function ae(e,t,i){const n=q(t)?t:[t],a=n.length;if(!X(e))return e;const r=(i=i||{}).merger||ne;for(let s=0;s<a;++s){if(!X(t=n[s]))continue;const a=Object.keys(t);for(let n=0,s=a.length;n<s;++n)r(a[n],e,t,i)}return e}function re(e,t){return ae(e,t,{merger:se})}function se(e,t,i){if(!ie(e))return;const n=t[e],a=i[e];X(n)&&X(a)?re(n,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=te(a))}function oe(e,t){const i=e.indexOf(".",t);return-1===i?e.length:i}function le(e,t){if(""===t)return e;let i=0,n=oe(t,i);for(;e&&n>i;)e=e[t.substr(i,n-i)],i=n+1,n=oe(t,i);return e}function ce(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ue=e=>void 0!==e,de=e=>"function"==typeof e,he=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0},fe=Object.create(null),pe=Object.create(null);function me(e,t){if(!t)return e;const i=t.split(".");for(let t=0,n=i.length;t<n;++t){const n=i[t];e=e[n]||(e[n]=Object.create(null))}return e}function ge(e,t,i){return"string"==typeof t?ae(me(e,t),i):ae(me(e,""),t)}var ve=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>z(t.backgroundColor),this.hoverBorderColor=(e,t)=>z(t.borderColor),this.hoverColor=(e,t)=>z(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,t){return ge(this,e,t)}get(e){return me(this,e)}describe(e,t){return ge(pe,e,t)}override(e,t){return ge(fe,e,t)}route(e,t,i,n){const a=me(this,e),r=me(this,i),s="_"+t;Object.defineProperties(a,{[s]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=r[n];return X(e)?Object.assign({},t,e):G(e,t)},set(e){this[s]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});const ye=Math.PI,be=2*ye,xe=be+ye,_e=Number.POSITIVE_INFINITY,we=ye/180,ke=ye/2,Me=ye/4,Le=2*ye/3,Se=Math.log10,Ae=Math.sign;function Te(e){const t=Math.round(e);e=Ee(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(Se(e))),n=e/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Ce(e){const t=[],i=Math.sqrt(e);let n;for(n=1;n<i;n++)e%n==0&&(t.push(n),t.push(e/n));return i===(0|i)&&t.push(i),t.sort(((e,t)=>e-t)).pop(),t}function De(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Ee(e,t,i){return Math.abs(e-t)<i}function Oe(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function Pe(e,t,i){let n,a,r;for(n=0,a=e.length;n<a;n++)r=e[n][i],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function Ye(e){return e*(ye/180)}function Ie(e){return e*(180/ye)}function je(e){if(!U(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function Ne(e,t){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n);let r=Math.atan2(n,i);return r<-.5*ye&&(r+=be),{angle:r,distance:a}}function He(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Fe(e,t){return(e-t+xe)%be-ye}function Re(e){return(e%be+be)%be}function ze(e,t,i,n){const a=Re(e),r=Re(t),s=Re(i),o=Re(r-a),l=Re(s-a),c=Re(a-r),u=Re(a-s);return a===r||a===s||n&&r===s||o>l&&c<u}function Be(e,t,i){return Math.max(t,Math.min(i,e))}function We(e){return Be(e,-32768,32767)}function Ve(e){return!e||V(e.size)||V(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function qe(e,t,i,n,a){let r=t[a];return r||(r=t[a]=e.measureText(a).width,i.push(a)),r>n&&(n=r),n}function Xe(e,t,i,n){let a=(n=n||{}).data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(a=n.data={},r=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let s=0;const o=i.length;let l,c,u,d,h;for(l=0;l<o;l++)if(d=i[l],null!=d&&!0!==q(d))s=qe(e,a,r,s,d);else if(q(d))for(c=0,u=d.length;c<u;c++)h=d[c],null==h||q(h)||(s=qe(e,a,r,s,h));e.restore();const f=r.length/2;if(f>i.length){for(l=0;l<f;l++)delete a[r[l]];r.splice(0,f)}return s}function Ue(e,t,i){const n=e.currentDevicePixelRatio,a=0!==i?Math.max(i/2,.5):0;return Math.round((t-a)*n)/n+a}function $e(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Ge(e,t,i,n){let a,r,s,o,l;const c=t.pointStyle,u=t.rotation,d=t.radius;let h=(u||0)*we;if(c&&"object"==typeof c&&(a=c.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,n),e.rotate(h),e.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void e.restore();if(!(isNaN(d)||d<=0)){switch(e.beginPath(),c){default:e.arc(i,n,d,0,be),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(h)*d,n-Math.cos(h)*d),h+=Le,e.lineTo(i+Math.sin(h)*d,n-Math.cos(h)*d),h+=Le,e.lineTo(i+Math.sin(h)*d,n-Math.cos(h)*d),e.closePath();break;case"rectRounded":l=.516*d,o=d-l,r=Math.cos(h+Me)*o,s=Math.sin(h+Me)*o,e.arc(i-r,n-s,l,h-ye,h-ke),e.arc(i+s,n-r,l,h-ke,h),e.arc(i+r,n+s,l,h,h+ke),e.arc(i-s,n+r,l,h+ke,h+ye),e.closePath();break;case"rect":if(!u){o=Math.SQRT1_2*d,e.rect(i-o,n-o,2*o,2*o);break}h+=Me;case"rectRot":r=Math.cos(h)*d,s=Math.sin(h)*d,e.moveTo(i-r,n-s),e.lineTo(i+s,n-r),e.lineTo(i+r,n+s),e.lineTo(i-s,n+r),e.closePath();break;case"crossRot":h+=Me;case"cross":r=Math.cos(h)*d,s=Math.sin(h)*d,e.moveTo(i-r,n-s),e.lineTo(i+r,n+s),e.moveTo(i+s,n-r),e.lineTo(i-s,n+r);break;case"star":r=Math.cos(h)*d,s=Math.sin(h)*d,e.moveTo(i-r,n-s),e.lineTo(i+r,n+s),e.moveTo(i+s,n-r),e.lineTo(i-s,n+r),h+=Me,r=Math.cos(h)*d,s=Math.sin(h)*d,e.moveTo(i-r,n-s),e.lineTo(i+r,n+s),e.moveTo(i+s,n-r),e.lineTo(i-s,n+r);break;case"line":r=Math.cos(h)*d,s=Math.sin(h)*d,e.moveTo(i-r,n-s),e.lineTo(i+r,n+s);break;case"dash":e.moveTo(i,n),e.lineTo(i+Math.cos(h)*d,n+Math.sin(h)*d)}e.fill(),t.borderWidth>0&&e.stroke()}}function Ze(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function Ke(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Je(e){e.restore()}function Qe(e,t,i,n,a){if(!t)return e.lineTo(i.x,i.y);if("middle"===a){const n=(t.x+i.x)/2;e.lineTo(n,t.y),e.lineTo(n,i.y)}else"after"===a!=!!n?e.lineTo(t.x,i.y):e.lineTo(i.x,t.y);e.lineTo(i.x,i.y)}function et(e,t,i,n){if(!t)return e.lineTo(i.x,i.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function tt(e,t,i,n,a,r={}){const s=q(t)?t:[t],o=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);V(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,r),l=0;l<s.length;++l)c=s[l],o&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),V(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(c,i,n,r.maxWidth)),e.fillText(c,i,n,r.maxWidth),it(e,i,n,c,r),n+=a.lineHeight;e.restore()}function it(e,t,i,n,a){if(a.strikethrough||a.underline){const r=e.measureText(n),s=t-r.actualBoundingBoxLeft,o=t+r.actualBoundingBoxRight,l=i-r.actualBoundingBoxAscent,c=i+r.actualBoundingBoxDescent,u=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(s,u),e.lineTo(o,u),e.stroke()}}function nt(e,t){const{x:i,y:n,w:a,h:r,radius:s}=t;e.arc(i+s.topLeft,n+s.topLeft,s.topLeft,-ke,ye,!0),e.lineTo(i,n+r-s.bottomLeft),e.arc(i+s.bottomLeft,n+r-s.bottomLeft,s.bottomLeft,ye,ke,!0),e.lineTo(i+a-s.bottomRight,n+r),e.arc(i+a-s.bottomRight,n+r-s.bottomRight,s.bottomRight,ke,0,!0),e.lineTo(i+a,n+s.topRight),e.arc(i+a-s.topRight,n+s.topRight,s.topRight,0,-ke,!0),e.lineTo(i+s.topLeft,n)}function at(e,t,i){i=i||(i=>e[i]<t);let n,a=e.length-1,r=0;for(;a-r>1;)n=r+a>>1,i(n)?r=n:a=n;return{lo:r,hi:a}}const rt=(e,t,i)=>at(e,i,(n=>e[n][t]<i)),st=(e,t,i)=>at(e,i,(n=>e[n][t]>=i));function ot(e,t,i){let n=0,a=e.length;for(;n<a&&e[n]<t;)n++;for(;a>n&&e[a-1]>i;)a--;return n>0||a<e.length?e.slice(n,a):e}const lt=["push","pop","shift","splice","unshift"];function ct(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),lt.forEach((t=>{const i="_onData"+ce(t),n=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const a=n.apply(this,t);return e._chartjs.listeners.forEach((e=>{"function"==typeof e[i]&&e[i](...t)})),a}})})))}function ut(e,t){const i=e._chartjs;if(!i)return;const n=i.listeners,a=n.indexOf(t);-1!==a&&n.splice(a,1),n.length>0||(lt.forEach((t=>{delete e[t]})),delete e._chartjs)}function dt(e){const t=new Set;let i,n;for(i=0,n=e.length;i<n;++i)t.add(e[i]);return t.size===n?e:Array.from(t)}function ht(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ft(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function pt(e,t,i){let n;return"string"==typeof e?(n=parseInt(e,10),-1!==e.indexOf("%")&&(n=n/100*t.parentNode[i])):n=e,n}const mt=e=>window.getComputedStyle(e,null);function gt(e,t){return mt(e).getPropertyValue(t)}const vt=["top","right","bottom","left"];function yt(e,t,i){const n={};i=i?"-"+i:"";for(let a=0;a<4;a++){const r=vt[a];n[r]=parseFloat(e[t+"-"+r+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function bt(e,t){const{canvas:i,currentDevicePixelRatio:n}=t,a=mt(i),r="border-box"===a.boxSizing,s=yt(a,"padding"),o=yt(a,"border","width"),{x:l,y:c,box:u}=function(e,t){const i=e.native||e,n=i.touches,a=n&&n.length?n[0]:i,{offsetX:r,offsetY:s}=a;let o,l,c=!1;if(((e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot))(r,s,i.target))o=r,l=s;else{const e=t.getBoundingClientRect();o=a.clientX-e.left,l=a.clientY-e.top,c=!0}return{x:o,y:l,box:c}}(e,i),d=s.left+(u&&o.left),h=s.top+(u&&o.top);let{width:f,height:p}=t;return r&&(f-=s.width+o.width,p-=s.height+o.height),{x:Math.round((l-d)/f*i.width/n),y:Math.round((c-h)/p*i.height/n)}}const xt=e=>Math.round(10*e)/10;function _t(e,t,i,n){const a=mt(e),r=yt(a,"margin"),s=pt(a.maxWidth,e,"clientWidth")||_e,o=pt(a.maxHeight,e,"clientHeight")||_e,l=function(e,t,i){let n,a;if(void 0===t||void 0===i){const r=ft(e);if(r){const e=r.getBoundingClientRect(),s=mt(r),o=yt(s,"border","width"),l=yt(s,"padding");t=e.width-l.width-o.width,i=e.height-l.height-o.height,n=pt(s.maxWidth,r,"clientWidth"),a=pt(s.maxHeight,r,"clientHeight")}else t=e.clientWidth,i=e.clientHeight}return{width:t,height:i,maxWidth:n||_e,maxHeight:a||_e}}(e,t,i);let{width:c,height:u}=l;if("content-box"===a.boxSizing){const e=yt(a,"border","width"),t=yt(a,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-r.width),u=Math.max(0,n?Math.floor(c/n):u-r.height),c=xt(Math.min(c,s,l.maxWidth)),u=xt(Math.min(u,o,l.maxHeight)),c&&!u&&(u=xt(c/2)),{width:c,height:u}}function wt(e,t,i){const n=t||1,a=Math.floor(e.height*n),r=Math.floor(e.width*n);e.height=a/n,e.width=r/n;const s=e.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==n||s.height!==a||s.width!==r)&&(e.currentDevicePixelRatio=n,s.height=a,s.width=r,e.ctx.setTransform(n,0,0,n,0,0),!0)}const kt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Mt(e,t){const i=gt(e,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Lt(e,t){return"native"in e?{x:e.x,y:e.y}:bt(e,t)}function St(e,t,i,n){const{controller:a,data:r,_sorted:s}=e,o=a._cachedMeta.iScale;if(o&&t===o.axis&&s&&r.length){const e=o._reversePixels?st:rt;if(!n)return e(r,t,i);if(a._sharedOptions){const n=r[0],a="function"==typeof n.getRange&&n.getRange(t);if(a){const n=e(r,t,i-a),s=e(r,t,i+a);return{lo:n.lo,hi:s.hi}}}}return{lo:0,hi:r.length-1}}function At(e,t,i,n,a){const r=e.getSortedVisibleDatasetMetas(),s=i[t];for(let e=0,i=r.length;e<i;++e){const{index:i,data:o}=r[e],{lo:l,hi:c}=St(r[e],t,s,a);for(let e=l;e<=c;++e){const t=o[e];t.skip||n(t,i,e)}}}function Tt(e,t,i,n){const a=[];if(!Ze(t,e.chartArea,e._minPadding))return a;return At(e,i,t,(function(e,i,r){e.inRange(t.x,t.y,n)&&a.push({element:e,datasetIndex:i,index:r})}),!0),a}function Ct(e,t,i,n,a){const r=function(e){const t=-1!==e.indexOf("x"),i=-1!==e.indexOf("y");return function(e,n){const a=t?Math.abs(e.x-n.x):0,r=i?Math.abs(e.y-n.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(r,2))}}(i);let s=Number.POSITIVE_INFINITY,o=[];if(!Ze(t,e.chartArea,e._minPadding))return o;return At(e,i,t,(function(i,l,c){if(n&&!i.inRange(t.x,t.y,a))return;const u=i.getCenterPoint(a);if(!Ze(u,e.chartArea,e._minPadding)&&!i.inRange(t.x,t.y,a))return;const d=r(t,u);d<s?(o=[{element:i,datasetIndex:l,index:c}],s=d):d===s&&o.push({element:i,datasetIndex:l,index:c})})),o}function Dt(e,t,i,n){const a=Lt(t,e),r=[],s=i.axis,o="x"===s?"inXRange":"inYRange";let l=!1;return function(e,t){const i=e.getSortedVisibleDatasetMetas();let n,a,r;for(let e=0,s=i.length;e<s;++e){({index:n,data:a}=i[e]);for(let e=0,i=a.length;e<i;++e)r=a[e],r.skip||t(r,n,e)}}(e,((e,t,i)=>{e[o](a[s],n)&&r.push({element:e,datasetIndex:t,index:i}),e.inRange(a.x,a.y,n)&&(l=!0)})),i.intersect&&!l?[]:r}var Et={modes:{index(e,t,i,n){const a=Lt(t,e),r=i.axis||"x",s=i.intersect?Tt(e,a,r,n):Ct(e,a,r,!1,n),o=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,i=e.data[t];i&&!i.skip&&o.push({element:i,datasetIndex:e.index,index:t})})),o):[]},dataset(e,t,i,n){const a=Lt(t,e),r=i.axis||"xy";let s=i.intersect?Tt(e,a,r,n):Ct(e,a,r,!1,n);if(s.length>0){const t=s[0].datasetIndex,i=e.getDatasetMeta(t).data;s=[];for(let e=0;e<i.length;++e)s.push({element:i[e],datasetIndex:t,index:e})}return s},point:(e,t,i,n)=>Tt(e,Lt(t,e),i.axis||"xy",n),nearest:(e,t,i,n)=>Ct(e,Lt(t,e),i.axis||"xy",i.intersect,n),x:(e,t,i,n)=>(i.axis="x",Dt(e,t,i,n)),y:(e,t,i,n)=>(i.axis="y",Dt(e,t,i,n))}};const Ot=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Pt=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function Yt(e,t){const i=(""+e).match(Ot);if(!i||"normal"===i[1])return 1.2*t;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100}return t*e}function It(e,t){const i={},n=X(t),a=n?Object.keys(t):t,r=X(e)?n?i=>G(e[i],e[t[i]]):t=>e[t]:()=>e;for(const e of a)i[e]=+r(e)||0;return i}function jt(e){return It(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Nt(e){return It(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ht(e){const t=jt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ft(e,t){e=e||{},t=t||ve.font;let i=G(e.size,t.size);"string"==typeof i&&(i=parseInt(i,10));let n=G(e.style,t.style);n&&!(""+n).match(Pt)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const a={family:G(e.family,t.family),lineHeight:Yt(G(e.lineHeight,t.lineHeight),i),size:i,style:n,weight:G(e.weight,t.weight),string:""};return a.string=Ve(a),a}function Rt(e,t,i,n){let a,r,s,o=!0;for(a=0,r=e.length;a<r;++a)if(s=e[a],void 0!==s&&(void 0!==t&&"function"==typeof s&&(s=s(t),o=!1),void 0!==i&&q(s)&&(s=s[i%s.length],o=!1),void 0!==s))return n&&!o&&(n.cacheable=!1),s}function zt(e,t,i){const{min:n,max:a}=e,r=K(t,(a-n)/2),s=(e,t)=>i&&0===e?0:e+t;return{min:s(n,-Math.abs(r)),max:s(a,r)}}function Bt(e,t){return Object.assign(Object.create(e),t)}const Wt=["left","top","right","bottom"];function Vt(e,t){return e.filter((e=>e.pos===t))}function qt(e,t){return e.filter((e=>-1===Wt.indexOf(e.pos)&&e.box.axis===t))}function Xt(e,t){return e.sort(((e,i)=>{const n=t?i:e,a=t?e:i;return n.weight===a.weight?n.index-a.index:n.weight-a.weight}))}function Ut(e,t){const i=function(e){const t={};for(const i of e){const{stack:e,pos:n,stackWeight:a}=i;if(!e||!Wt.includes(n))continue;const r=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=a}return t}(e),{vBoxMaxWidth:n,hBoxMaxHeight:a}=t;let r,s,o;for(r=0,s=e.length;r<s;++r){o=e[r];const{fullSize:s}=o.box,l=i[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*n:s&&t.availableWidth,o.height=a):(o.width=n,o.height=c?c*a:s&&t.availableHeight)}return i}function $t(e,t,i,n){return Math.max(e[i],t[i])+Math.max(e[n],t[n])}function Gt(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Zt(e,t,i,n){const{pos:a,box:r}=i,s=e.maxPadding;if(!X(a)){i.size&&(e[a]-=i.size);const t=n[i.stack]||{size:0,count:1};t.size=Math.max(t.size,i.horizontal?r.height:r.width),i.size=t.size/t.count,e[a]+=i.size}r.getPadding&&Gt(s,r.getPadding());const o=Math.max(0,t.outerWidth-$t(s,e,"left","right")),l=Math.max(0,t.outerHeight-$t(s,e,"top","bottom")),c=o!==e.w,u=l!==e.h;return e.w=o,e.h=l,i.horizontal?{same:c,other:u}:{same:u,other:c}}function Kt(e,t){const i=t.maxPadding;function n(e){const n={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{n[e]=Math.max(t[e],i[e])})),n}return n(e?["left","right"]:["top","bottom"])}function Jt(e,t,i,n){const a=[];let r,s,o,l,c,u;for(r=0,s=e.length,c=0;r<s;++r){o=e[r],l=o.box,l.update(o.width||t.w,o.height||t.h,Kt(o.horizontal,t));const{same:s,other:d}=Zt(t,i,o,n);c|=s&&a.length,u=u||d,l.fullSize||a.push(o)}return c&&Jt(a,t,i,n)||u}function Qt(e,t,i,n,a){e.top=i,e.left=t,e.right=t+n,e.bottom=i+a,e.width=n,e.height=a}function ei(e,t,i,n){const a=i.padding;let{x:r,y:s}=t;for(const o of e){const e=o.box,l=n[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const n=t.w*c,r=l.size||e.height;ue(l.start)&&(s=l.start),e.fullSize?Qt(e,a.left,s,i.outerWidth-a.right-a.left,r):Qt(e,t.left+l.placed,s,n,r),l.start=s,l.placed+=n,s=e.bottom}else{const n=t.h*c,s=l.size||e.width;ue(l.start)&&(r=l.start),e.fullSize?Qt(e,r,a.top,s,i.outerHeight-a.bottom-a.top):Qt(e,r,t.top+l.placed,s,n),l.start=r,l.placed+=n,r=e.right}}t.x=r,t.y=s}ve.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var ti={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;-1!==i&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,n){if(!e)return;const a=Ht(e.options.layout.padding),r=Math.max(t-a.width,0),s=Math.max(i-a.height,0),o=function(e){const t=function(e){const t=[];let i,n,a,r,s,o;for(i=0,n=(e||[]).length;i<n;++i)a=e[i],({position:r,options:{stack:s,stackWeight:o=1}}=a),t.push({index:i,box:a,pos:r,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&r+s,stackWeight:o});return t}(e),i=Xt(t.filter((e=>e.box.fullSize)),!0),n=Xt(Vt(t,"left"),!0),a=Xt(Vt(t,"right")),r=Xt(Vt(t,"top"),!0),s=Xt(Vt(t,"bottom")),o=qt(t,"x"),l=qt(t,"y");return{fullSize:i,leftAndTop:n.concat(r),rightAndBottom:a.concat(l).concat(s).concat(o),chartArea:Vt(t,"chartArea"),vertical:n.concat(a).concat(l),horizontal:r.concat(s).concat(o)}}(e.boxes),l=o.vertical,c=o.horizontal;Q(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:i,padding:a,availableWidth:r,availableHeight:s,vBoxMaxWidth:r/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},a);Gt(h,Ht(n));const f=Object.assign({maxPadding:h,w:r,h:s,x:a.left,y:a.top},a),p=Ut(l.concat(c),d);Jt(o.fullSize,f,d,p),Jt(l,f,d,p),Jt(c,f,d,p)&&Jt(l,f,d,p),function(e){const t=e.maxPadding;function i(i){const n=Math.max(t[i]-e[i],0);return e[i]+=n,n}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}(f),ei(o.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,ei(o.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Q(o.chartArea,(t=>{const i=t.box;Object.assign(i,e.chartArea),i.update(f.w,f.h)}))}};function ii(e,t=[""],i=e,n,a=(()=>e[0])){ue(n)||(n=fi("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:n,_getTarget:a,override:a=>ii([a,...e],t,i,n)};return new Proxy(r,{deleteProperty:(t,i)=>(delete t[i],delete t._keys,delete e[0][i],!0),get:(i,n)=>oi(i,n,(()=>function(e,t,i,n){let a;for(const r of t)if(a=fi(ri(r,e),i),ue(a))return si(e,a)?di(i,n,e,a):a}(n,t,e,i))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>pi(e).includes(t),ownKeys:e=>pi(e),set:(e,t,i)=>((e._storage||(e._storage=a()))[t]=i,delete e[t],delete e._keys,!0)})}function ni(e,t,i,n){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:ai(e,n),setContext:t=>ni(e,t,i,n),override:a=>ni(e.override(a),t,i,n)};return new Proxy(a,{deleteProperty:(t,i)=>(delete t[i],delete e[i],!0),get:(e,t,i)=>oi(e,t,(()=>function(e,t,i){const{_proxy:n,_context:a,_subProxy:r,_descriptors:s}=e;let o=n[t];de(o)&&s.isScriptable(t)&&(o=function(e,t,i,n){const{_proxy:a,_context:r,_subProxy:s,_stack:o}=i;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e),t=t(r,s||n),o.delete(e),X(t)&&(t=di(a._scopes,a,e,t));return t}(t,o,e,i));q(o)&&o.length&&(o=function(e,t,i,n){const{_proxy:a,_context:r,_subProxy:s,_descriptors:o}=i;if(ue(r.index)&&n(e))t=t[r.index%t.length];else if(X(t[0])){const i=t,n=a._scopes.filter((e=>e!==i));t=[];for(const l of i){const i=di(n,a,e,l);t.push(ni(i,r,s&&s[e],o))}}return t}(t,o,e,s.isIndexable));si(t,o)&&(o=ni(o,a,r&&r[t],s));return o}(e,t,i))),getOwnPropertyDescriptor:(t,i)=>t._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,i)=>Reflect.has(e,i),ownKeys:()=>Reflect.ownKeys(e),set:(t,i,n)=>(e[i]=n,delete t[i],!0)})}function ai(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:i,indexable:n,isScriptable:de(i)?i:()=>i,isIndexable:de(n)?n:()=>n}}const ri=(e,t)=>e?e+ce(t):t,si=(e,t)=>X(t)&&"adapters"!==e;function oi(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=i();return e[t]=n,n}function li(e,t,i){return de(e)?e(t,i):e}const ci=(e,t)=>!0===e?t:"string"==typeof e?le(t,e):void 0;function ui(e,t,i,n){for(const a of t){const t=ci(i,a);if(t){e.add(t);const a=li(t._fallback,i,t);if(ue(a)&&a!==i&&a!==n)return a}else if(!1===t&&ue(n)&&i!==n)return null}return!1}function di(e,t,i,n){const a=t._rootScopes,r=li(t._fallback,i,n),s=[...e,...a],o=new Set;o.add(n);let l=hi(o,s,i,r||i);return null!==l&&((!ue(r)||r===i||(l=hi(o,s,r,l),null!==l))&&ii(Array.from(o),[""],a,r,(()=>function(e,t,i){const n=e._getTarget();t in n||(n[t]={});const a=n[t];if(q(a)&&X(i))return i;return a}(t,i,n))))}function hi(e,t,i,n){for(;i;)i=ui(e,t,i,n);return i}function fi(e,t){for(const i of t){if(!i)continue;const t=i[e];if(ue(t))return t}}function pi(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const i of e)for(const e of Object.keys(i).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const mi=Number.EPSILON||1e-14,gi=(e,t)=>t<e.length&&!e[t].skip&&e[t],vi=e=>"x"===e?"y":"x";function yi(e,t,i,n){const a=e.skip?t:e,r=t,s=i.skip?t:i,o=He(r,a),l=He(s,r);let c=o/(o+l),u=l/(o+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=n*c,h=n*u;return{previous:{x:r.x-d*(s.x-a.x),y:r.y-d*(s.y-a.y)},next:{x:r.x+h*(s.x-a.x),y:r.y+h*(s.y-a.y)}}}function bi(e,t="x"){const i=vi(t),n=e.length,a=Array(n).fill(0),r=Array(n);let s,o,l,c=gi(e,0);for(s=0;s<n;++s)if(o=l,l=c,c=gi(e,s+1),l){if(c){const e=c[t]-l[t];a[s]=0!==e?(c[i]-l[i])/e:0}r[s]=o?c?Ae(a[s-1])!==Ae(a[s])?0:(a[s-1]+a[s])/2:a[s-1]:a[s]}!function(e,t,i){const n=e.length;let a,r,s,o,l,c=gi(e,0);for(let u=0;u<n-1;++u)l=c,c=gi(e,u+1),l&&c&&(Ee(t[u],0,mi)?i[u]=i[u+1]=0:(a=i[u]/t[u],r=i[u+1]/t[u],o=Math.pow(a,2)+Math.pow(r,2),o<=9||(s=3/Math.sqrt(o),i[u]=a*s*t[u],i[u+1]=r*s*t[u])))}(e,a,r),function(e,t,i="x"){const n=vi(i),a=e.length;let r,s,o,l=gi(e,0);for(let c=0;c<a;++c){if(s=o,o=l,l=gi(e,c+1),!o)continue;const a=o[i],u=o[n];s&&(r=(a-s[i])/3,o[`cp1${i}`]=a-r,o[`cp1${n}`]=u-r*t[c]),l&&(r=(l[i]-a)/3,o[`cp2${i}`]=a+r,o[`cp2${n}`]=u+r*t[c])}}(e,r,t)}function xi(e,t,i){return Math.max(Math.min(e,i),t)}function _i(e,t,i,n,a){let r,s,o,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)bi(e,a);else{let i=n?e[e.length-1]:e[0];for(r=0,s=e.length;r<s;++r)o=e[r],l=yi(i,o,e[Math.min(r+1,s-(n?0:1))%s],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,i=o}t.capBezierPoints&&function(e,t){let i,n,a,r,s,o=Ze(e[0],t);for(i=0,n=e.length;i<n;++i)s=r,r=o,o=i<n-1&&Ze(e[i+1],t),r&&(a=e[i],s&&(a.cp1x=xi(a.cp1x,t.left,t.right),a.cp1y=xi(a.cp1y,t.top,t.bottom)),o&&(a.cp2x=xi(a.cp2x,t.left,t.right),a.cp2y=xi(a.cp2y,t.top,t.bottom)))}(e,i)}const wi=e=>0===e||1===e,ki=(e,t,i)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*be/i),Mi=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*be/i)+1,Li={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*ke),easeOutSine:e=>Math.sin(e*ke),easeInOutSine:e=>-.5*(Math.cos(ye*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>wi(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>wi(e)?e:ki(e,.075,.3),easeOutElastic:e=>wi(e)?e:Mi(e,.075,.3),easeInOutElastic(e){const t=.1125;return wi(e)?e:e<.5?.5*ki(2*e,t,.45):.5+.5*Mi(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-Li.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,i=2.75;return e<1/i?t*e*e:e<2/i?t*(e-=1.5/i)*e+.75:e<2.5/i?t*(e-=2.25/i)*e+.9375:t*(e-=2.625/i)*e+.984375},easeInOutBounce:e=>e<.5?.5*Li.easeInBounce(2*e):.5*Li.easeOutBounce(2*e-1)+.5};function Si(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:e.y+i*(t.y-e.y)}}function Ai(e,t,i,n){return{x:e.x+i*(t.x-e.x),y:"middle"===n?i<.5?e.y:t.y:"after"===n?i<1?e.y:t.y:i>0?t.y:e.y}}function Ti(e,t,i,n){const a={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},s=Si(e,a,i),o=Si(a,r,i),l=Si(r,t,i),c=Si(s,o,i),u=Si(o,l,i);return Si(c,u,i)}const Ci=new Map;function Di(e,t,i){return function(e,t){t=t||{};const i=e+JSON.stringify(t);let n=Ci.get(i);return n||(n=new Intl.NumberFormat(e,t),Ci.set(i,n)),n}(t,i).format(e)}function Ei(e,t,i){return e?function(e,t){return{x:i=>e+e+t-i,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,i):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function Oi(e,t){let i,n;"ltr"!==t&&"rtl"!==t||(i=e.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=n)}function Pi(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Yi(e){return"angle"===e?{between:ze,compare:Fe,normalize:Re}:{between:(e,t,i)=>e>=Math.min(t,i)&&e<=Math.max(i,t),compare:(e,t)=>e-t,normalize:e=>e}}function Ii({start:e,end:t,count:i,loop:n,style:a}){return{start:e%i,end:t%i,loop:n&&(t-e+1)%i==0,style:a}}function ji(e,t,i){if(!i)return[e];const{property:n,start:a,end:r}=i,s=t.length,{compare:o,between:l,normalize:c}=Yi(n),{start:u,end:d,loop:h,style:f}=function(e,t,i){const{property:n,start:a,end:r}=i,{between:s,normalize:o}=Yi(n),l=t.length;let c,u,{start:d,end:h,loop:f}=e;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&s(o(t[d%l][n]),a,r);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:e.style}}(e,t,i),p=[];let m,g,v,y=!1,b=null;const x=()=>y||l(a,v,m)&&0!==o(a,v),_=()=>!y||0===o(r,m)||l(r,v,m);for(let e=u,i=u;e<=d;++e)g=t[e%s],g.skip||(m=c(g[n]),m!==v&&(y=l(m,a,r),null===b&&x()&&(b=0===o(m,a)?e:i),null!==b&&_()&&(p.push(Ii({start:b,end:e,loop:h,count:s,style:f})),b=null),i=e,v=m));return null!==b&&p.push(Ii({start:b,end:d,loop:h,count:s,style:f})),p}function Ni(e,t){const i=[],n=e.segments;for(let a=0;a<n.length;a++){const r=ji(n[a],e.points,t);r.length&&i.push(...r)}return i}function Hi(e,t){const i=e.points,n=e.options.spanGaps,a=i.length;if(!a)return[];const r=!!e._loop,{start:s,end:o}=function(e,t,i,n){let a=0,r=t-1;if(i&&!n)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,i&&(r+=a);r>a&&e[r%t].skip;)r--;return r%=t,{start:a,end:r}}(i,a,r,n);if(!0===n)return Fi(e,[{start:s,end:o,loop:r}],i,t);return Fi(e,function(e,t,i,n){const a=e.length,r=[];let s,o=t,l=e[t];for(s=t+1;s<=i;++s){const i=e[s%a];i.skip||i.stop?l.skip||(n=!1,r.push({start:t%a,end:(s-1)%a,loop:n}),t=o=i.stop?s:null):(o=s,l.skip&&(t=s)),l=i}return null!==o&&r.push({start:t%a,end:o%a,loop:n}),r}(i,s,o<s?o+a:o,!!e._fullLoop&&0===s&&o===a-1),i,t)}function Fi(e,t,i,n){return n&&n.setContext&&i?function(e,t,i,n){const a=e._chart.getContext(),r=Ri(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,l=i.length,c=[];let u=r,d=t[0].start,h=d;function f(e,t,n,a){const r=o?-1:1;if(e!==t){for(e+=l;i[e%l].skip;)e-=r;for(;i[t%l].skip;)t+=r;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:n,style:a}),u=a,d=t%l)}}for(const e of t){d=o?d:e.start;let t,r=i[d%l];for(h=d+1;h<=e.end;h++){const o=i[h%l];t=Ri(n.setContext(Bt(a,{type:"segment",p0:r,p1:o,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:s}))),zi(t,u)&&f(d,h-1,e.loop,u),r=o,u=t}d<h-1&&f(d,h-1,e.loop,u)}return c}(e,t,i,n):t}function Ri(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function zi(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var Bi=Object.freeze({__proto__:null,easingEffects:Li,color:R,getHoverColor:z,noop:B,uid:W,isNullOrUndef:V,isArray:q,isObject:X,isFinite:U,finiteOrDefault:$,valueOrDefault:G,toPercentage:Z,toDimension:K,callback:J,each:Q,_elementsEqual:ee,clone:te,_merger:ne,merge:ae,mergeIf:re,_mergerIf:se,_deprecated:function(e,t,i,n){void 0!==t&&console.warn(e+': "'+i+'" is deprecated. Please use "'+n+'" instead')},resolveObjectKey:le,_capitalize:ce,defined:ue,isFunction:de,setsEqual:he,toFontString:Ve,_measureText:qe,_longestText:Xe,_alignPixel:Ue,clearCanvas:$e,drawPoint:Ge,_isPointInArea:Ze,clipArea:Ke,unclipArea:Je,_steppedLineTo:Qe,_bezierCurveTo:et,renderText:tt,addRoundedRectPath:nt,_lookup:at,_lookupByKey:rt,_rlookupByKey:st,_filterBetween:ot,listenArrayEvents:ct,unlistenArrayEvents:ut,_arrayUnique:dt,_createResolver:ii,_attachContext:ni,_descriptors:ai,splineCurve:yi,splineCurveMonotone:bi,_updateBezierControlPoints:_i,_isDomSupported:ht,_getParentNode:ft,getStyle:gt,getRelativePosition:bt,getMaximumSize:_t,retinaScale:wt,supportsEventListenerOptions:kt,readUsedSize:Mt,fontString:function(e,t,i){return t+" "+e+"px "+i},requestAnimFrame:e,throttled:t,debounce:i,_toLeftRightCenter:n,_alignStartEnd:a,_textX:r,_pointInLine:Si,_steppedInterpolation:Ai,_bezierInterpolation:Ti,formatNumber:Di,toLineHeight:Yt,_readValueToProps:It,toTRBL:jt,toTRBLCorners:Nt,toPadding:Ht,toFont:Ft,resolve:Rt,_addGrace:zt,createContext:Bt,PI:ye,TAU:be,PITAU:xe,INFINITY:_e,RAD_PER_DEG:we,HALF_PI:ke,QUARTER_PI:Me,TWO_THIRDS_PI:Le,log10:Se,sign:Ae,niceNum:Te,_factorize:Ce,isNumber:De,almostEquals:Ee,almostWhole:Oe,_setMinAndMaxByKey:Pe,toRadians:Ye,toDegrees:Ie,_decimalPlaces:je,getAngleFromPoint:Ne,distanceBetweenPoints:He,_angleDiff:Fe,_normalizeAngle:Re,_angleBetween:ze,_limitValue:Be,_int16Range:We,getRtlAdapter:Ei,overrideTextDirection:Oi,restoreTextDirection:Pi,_boundSegment:ji,_boundSegments:Ni,_computeSegments:Hi});class Wi{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,n){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,n?Math.floor(t/n):i)}}isAttached(e){return!0}updateConfig(e){}}class Vi extends Wi{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const qi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xi=e=>null===e||""===e;const Ui=!!kt&&{passive:!0};function $i(e,t,i){e.canvas.removeEventListener(t,i,Ui)}function Gi(e,t,i){const n=e.canvas,a=new MutationObserver((e=>{for(const t of e)for(const e of t.addedNodes)if(e===n||e.contains(n))return i()}));return a.observe(document,{childList:!0,subtree:!0}),a}function Zi(e,t,i){const n=e.canvas,a=new MutationObserver((e=>{for(const t of e)for(const e of t.removedNodes)if(e===n||e.contains(n))return i()}));return a.observe(document,{childList:!0,subtree:!0}),a}const Ki=new Map;let Ji=0;function Qi(){const e=window.devicePixelRatio;e!==Ji&&(Ji=e,Ki.forEach(((t,i)=>{i.currentDevicePixelRatio!==e&&t()})))}function en(e,i,n){const a=e.canvas,r=a&&ft(a);if(!r)return;const s=t(((e,t)=>{const i=r.clientWidth;n(e,t),i<r.clientWidth&&n()}),window),o=new ResizeObserver((e=>{const t=e[0],i=t.contentRect.width,n=t.contentRect.height;0===i&&0===n||s(i,n)}));return o.observe(r),function(e,t){Ki.size||window.addEventListener("resize",Qi),Ki.set(e,t)}(e,s),o}function tn(e,t,i){i&&i.disconnect(),"resize"===t&&function(e){Ki.delete(e),Ki.size||window.removeEventListener("resize",Qi)}(e)}function nn(e,i,n){const a=e.canvas,r=t((t=>{null!==e.ctx&&n(function(e,t){const i=qi[e.type]||e.type,{x:n,y:a}=bt(e,t);return{type:i,chart:t,native:e,x:void 0!==n?n:null,y:void 0!==a?a:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,i){e.addEventListener(t,i,Ui)}(a,i,r),r}class an extends Wi{acquireContext(e,t){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(function(e,t){const i=e.style,n=e.getAttribute("height"),a=e.getAttribute("width");if(e.$chartjs={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Xi(a)){const t=Mt(e,"width");void 0!==t&&(e.width=t)}if(Xi(n))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Mt(e,"height");void 0!==t&&(e.height=t)}}(e,t),i):null}releaseContext(e){const t=e.canvas;if(!t.$chartjs)return!1;const i=t.$chartjs.initial;["height","width"].forEach((e=>{const n=i[e];V(n)?t.removeAttribute(e):t.setAttribute(e,n)}));const n=i.style||{};return Object.keys(n).forEach((e=>{t.style[e]=n[e]})),t.width=t.width,delete t.$chartjs,!0}addEventListener(e,t,i){this.removeEventListener(e,t);const n=e.$proxies||(e.$proxies={}),a={attach:Gi,detach:Zi,resize:en}[t]||nn;n[t]=a(e,t,i)}removeEventListener(e,t){const i=e.$proxies||(e.$proxies={}),n=i[t];if(!n)return;({attach:tn,detach:tn,resize:tn}[t]||$i)(e,t,n),i[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,n){return _t(e,t,i,n)}isAttached(e){const t=ft(e);return!(!t||!t.isConnected)}}function rn(e){return!ht()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Vi:an}var sn=Object.freeze({__proto__:null,_detectPlatform:rn,BasePlatform:Wi,BasicPlatform:Vi,DomPlatform:an});const on="transparent",ln={boolean:(e,t,i)=>i>.5?t:e,color(e,t,i){const n=R(e||on),a=n.valid&&R(t||on);return a&&a.valid?a.mix(n,i).hexString():t},number:(e,t,i)=>e+(t-e)*i};class cn{constructor(e,t,i,n){const a=t[i];n=Rt([e.to,n,a,e.from]);const r=Rt([e.from,a,n]);this._active=!0,this._fn=e.fn||ln[e.type||typeof r],this._easing=Li[e.easing]||Li.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const n=this._target[this._prop],a=i-this._start,r=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=Rt([e.to,t,n,e.from]),this._from=Rt([e.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,n=this._prop,a=this._from,r=this._loop,s=this._to;let o;if(this._active=a!==s&&(r||t<i),!this._active)return this._target[n]=s,void this._notify(!0);t<0?this._target[n]=a:(o=t/i%2,o=r&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[n]=this._fn(a,s,o))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,i)=>{e.push({res:t,rej:i})}))}_notify(e){const t=e?"res":"rej",i=this._promises||[];for(let e=0;e<i.length;e++)i[e][t]()}}ve.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const un=Object.keys(ve.animation);ve.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),ve.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ve.describe("animations",{_fallback:"animation"}),ve.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class dn{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!X(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((i=>{const n=e[i];if(!X(n))return;const a={};for(const e of un)a[e]=n[e];(q(n.properties)&&n.properties||[i]).forEach((e=>{e!==i&&t.has(e)||t.set(e,a)}))}))}_animateOptions(e,t){const i=t.options,n=function(e,t){if(!t)return;let i=e.options;if(!i)return void(e.options=t);i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(e,i);if(!n)return[];const a=this._createAnimations(n,i);return i.$shared&&function(e,t){const i=[],n=Object.keys(t);for(let t=0;t<n.length;t++){const a=e[n[t]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}(e.options.$animations,i).then((()=>{e.options=i}),(()=>{})),a}_createAnimations(e,t){const i=this._properties,n=[],a=e.$animations||(e.$animations={}),r=Object.keys(t),s=Date.now();let o;for(o=r.length-1;o>=0;--o){const l=r[o];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(e,t));continue}const c=t[l];let u=a[l];const d=i.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(a[l]=u=new cn(d,e,l,c),n.push(u)):e[l]=c}return n}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const i=this._createAnimations(e,t);return i.length?(s.add(this._chart,i),!0):void 0}}function hn(e,t){const i=e&&e.options||{},n=i.reverse,a=void 0===i.min?t:0,r=void 0===i.max?t:0;return{start:n?r:a,end:n?a:r}}function fn(e,t){const i=[],n=e._getSortedDatasetMetas(t);let a,r;for(a=0,r=n.length;a<r;++a)i.push(n[a].index);return i}function pn(e,t,i,n={}){const a=e.keys,r="single"===n.mode;let s,o,l,c;if(null!==t){for(s=0,o=a.length;s<o;++s){if(l=+a[s],l===i){if(n.all)continue;break}c=e.values[l],U(c)&&(r||0===t||Ae(t)===Ae(c))&&(t+=c)}return t}}function mn(e,t){const i=e&&e.options.stacked;return i||void 0===i&&void 0!==t.stack}function gn(e,t,i){const n=e[t]||(e[t]={});return n[i]||(n[i]={})}function vn(e,t,i,n){for(const a of t.getMatchingVisibleMetas(n).reverse()){const t=e[a.index];if(i&&t>0||!i&&t<0)return a.index}return null}function yn(e,t){const{chart:i,_cachedMeta:n}=e,a=i._stacks||(i._stacks={}),{iScale:r,vScale:s,index:o}=n,l=r.axis,c=s.axis,u=function(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}(r,s,n),d=t.length;let h;for(let e=0;e<d;++e){const i=t[e],{[l]:r,[c]:d}=i;h=(i._stacks||(i._stacks={}))[c]=gn(a,u,r),h[o]=d,h._top=vn(h,s,!0,n.type),h._bottom=vn(h,s,!1,n.type)}}function bn(e,t){const i=e.scales;return Object.keys(i).filter((e=>i[e].axis===t)).shift()}function xn(e,t){const i=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[n]||void 0===t[n][i])return;delete t[n][i]}}}const _n=e=>"reset"===e||"none"===e,wn=(e,t)=>t?e:Object.assign({},e);class kn{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=mn(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&xn(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,i=this.getDataset(),n=(e,t,i,n)=>"x"===e?t:"r"===e?n:i,a=t.xAxisID=G(i.xAxisID,bn(e,"x")),r=t.yAxisID=G(i.yAxisID,bn(e,"y")),s=t.rAxisID=G(i.rAxisID,bn(e,"r")),o=t.indexAxis,l=t.iAxisID=n(o,a,r,s),c=t.vAxisID=n(o,r,a,s);t.xScale=this.getScaleForId(a),t.yScale=this.getScaleForId(r),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ut(this._data,this),e._stacked&&xn(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),i=this._data;if(X(t))this._data=function(e){const t=Object.keys(e),i=new Array(t.length);let n,a,r;for(n=0,a=t.length;n<a;++n)r=t[n],i[n]={x:r,y:e[r]};return i}(t);else if(i!==t){if(i){ut(i,this);const e=this._cachedMeta;xn(e),e._parsed=[]}t&&Object.isExtensible(t)&&ct(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const a=t._stacked;t._stacked=mn(t.vScale,t),t.stack!==i.stack&&(n=!0,xn(t),t.stack=i.stack),this._resyncElements(e),(n||a!==t._stacked)&&yn(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing}parse(e,t){const{_cachedMeta:i,_data:n}=this,{iScale:a,_stacked:r}=i,s=a.axis;let o,l,c,u=0===e&&t===n.length||i._sorted,d=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=q(n[e])?this.parseArrayData(i,n,e,t):X(n[e])?this.parseObjectData(i,n,e,t):this.parsePrimitiveData(i,n,e,t);const a=()=>null===l[s]||d&&l[s]<d[s];for(o=0;o<t;++o)i._parsed[o+e]=l=c[o],u&&(a()&&(u=!1),d=l);i._sorted=u}r&&yn(this,c)}parsePrimitiveData(e,t,i,n){const{iScale:a,vScale:r}=e,s=a.axis,o=r.axis,l=a.getLabels(),c=a===r,u=new Array(n);let d,h,f;for(d=0,h=n;d<h;++d)f=d+i,u[d]={[s]:c||a.parse(l[f],f),[o]:r.parse(t[f],f)};return u}parseArrayData(e,t,i,n){const{xScale:a,yScale:r}=e,s=new Array(n);let o,l,c,u;for(o=0,l=n;o<l;++o)c=o+i,u=t[c],s[o]={x:a.parse(u[0],c),y:r.parse(u[1],c)};return s}parseObjectData(e,t,i,n){const{xScale:a,yScale:r}=e,{xAxisKey:s="x",yAxisKey:o="y"}=this._parsing,l=new Array(n);let c,u,d,h;for(c=0,u=n;c<u;++c)d=c+i,h=t[d],l[c]={x:a.parse(le(h,s),d),y:r.parse(le(h,o),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,i){const n=this.chart,a=this._cachedMeta,r=t[e.axis];return pn({keys:fn(n,!0),values:t._stacks[e.axis]},r,a.index,{mode:i})}updateRangeFromParsed(e,t,i,n){const a=i[t.axis];let r=null===a?NaN:a;const s=n&&i._stacks[t.axis];n&&s&&(n.values=s,r=pn(n,a,this._cachedMeta.index)),e.min=Math.min(e.min,r),e.max=Math.max(e.max,r)}getMinMax(e,t){const i=this._cachedMeta,n=i._parsed,a=i._sorted&&e===i.iScale,r=n.length,s=this._getOtherScale(e),o=((e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:fn(i,!0),values:null})(t,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:i,minDefined:n,maxDefined:a}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:a?i:Number.POSITIVE_INFINITY}}(s);let d,h;function f(){h=n[d];const t=h[s.axis];return!U(h[e.axis])||c>t||u<t}for(d=0;d<r&&(f()||(this.updateRangeFromParsed(l,e,h,o),!a));++d);if(a)for(d=r-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,e,h,o);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,i=[];let n,a,r;for(n=0,a=t.length;n<a;++n)r=t[n][e.axis],U(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,i=t.iScale,n=t.vScale,a=this.getParsed(e);return{label:i?""+i.getLabelForValue(a[i.axis]):"",value:n?""+n.getLabelForValue(a[n.axis]):""}}_update(e){const t=this._cachedMeta;this.configure(),this._cachedDataOpts={},this.update(e||"default"),t._clip=function(e){let t,i,n,a;return X(e)?(t=e.top,i=e.right,n=e.bottom,a=e.left):t=i=n=a=e,{top:t,right:i,bottom:n,left:a,disabled:!1===e}}(G(this.options.clip,function(e,t,i){if(!1===i)return!1;const n=hn(e,i),a=hn(t,i);return{top:a.end,right:n.end,bottom:a.start,left:n.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,i=this._cachedMeta,n=i.data||[],a=t.chartArea,r=[],s=this._drawStart||0,o=this._drawCount||n.length-s;let l;for(i.dataset&&i.dataset.draw(e,a,s,o),l=s;l<s+o;++l){const t=n[l];t.hidden||(t.active?r.push(t):t.draw(e,a))}for(l=0;l<r.length;++l)r[l].draw(e,a)}getStyle(e,t){const i=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,t,i){const n=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];a=t.$context||(t.$context=function(e,t,i){return Bt(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),a.parsed=this.getParsed(e),a.raw=n.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=function(e,t){return Bt(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=n,a.index=a.datasetIndex=this.index;return a.active=!!t,a.mode=i,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",i){const n="active"===t,a=this._cachedDataOpts,r=e+"-"+t,s=a[r],o=this.enableOptionSharing&&ue(i);if(s)return wn(s,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=n?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ve.elements[e]),f=l.resolveNamedOptions(d,h,(()=>this.getContext(i,n)),u);return f.$shared&&(f.$shared=o,a[r]=Object.freeze(wn(f,o))),f}_resolveAnimations(e,t,i){const n=this.chart,a=this._cachedDataOpts,r=`animation-${t}`,s=a[r];if(s)return s;let o;if(!1!==n.options.animation){const n=this.chart.config,a=n.datasetAnimationScopeKeys(this._type,t),r=n.getOptionScopes(this.getDataset(),a);o=n.createResolver(r,this.getContext(e,i,t))}const l=new dn(n,o&&o.animations);return o&&o._cacheable&&(a[r]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||_n(e)||this.chart._animationsDisabled}updateElement(e,t,i,n){_n(n)?Object.assign(e,i):this._resolveAnimations(t,n).update(e,i)}updateSharedOptions(e,t,i){e&&!_n(t)&&this._resolveAnimations(void 0,t).update(e,i)}_setStyle(e,t,i,n){e.active=n;const a=this.getStyle(t,n);this._resolveAnimations(t,i,n).update(e,{options:!n&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,t,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,i=this._cachedMeta.data;for(const[e,t,i]of this._syncList)this[e](t,i);this._syncList=[];const n=i.length,a=t.length,r=Math.min(a,n);r&&this.parse(0,r),a>n?this._insertElements(n,a-n,e):a<n&&this._removeElements(a,n-a)}_insertElements(e,t,i=!0){const n=this._cachedMeta,a=n.data,r=e+t;let s;const o=e=>{for(e.length+=t,s=e.length-1;s>=r;s--)e[s]=e[s-t]};for(o(a),s=e;s<r;++s)a[s]=new this.dataElementType;this._parsing&&o(n._parsed),this.parse(e,t),i&&this.updateElements(a,e,t,"reset")}updateElements(e,t,i,n){}_removeElements(e,t){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(e,t);i._stacked&&xn(i,n)}i.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,i,n]=e;this[t](i,n)}}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){this._sync(["_removeElements",e,t]),this._sync(["_insertElements",e,arguments.length-2])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}kn.defaults={},kn.prototype.datasetElementType=null,kn.prototype.dataElementType=null;class Mn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return De(this.x)&&De(this.y)}getProps(e,t){const i=this.$animations;if(!t||!i)return this;const n={};return e.forEach((e=>{n[e]=i[e]&&i[e].active()?i[e]._to:this[e]})),n}}Mn.defaults={},Mn.defaultRoutes=void 0;const Ln={values:e=>q(e)?e:""+e,numeric(e,t,i){if(0===e)return"0";const n=this.chart.options.locale;let a,r=e;if(i.length>1){const t=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(t<1e-4||t>1e15)&&(a="scientific"),r=function(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e));return i}(e,i)}const s=Se(Math.abs(r)),o=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:a,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Di(e,n,l)},logarithmic(e,t,i){if(0===e)return"0";const n=e/Math.pow(10,Math.floor(Se(e)));return 1===n||2===n||5===n?Ln.numeric.call(this,e,t,i):""}};var Sn={formatters:Ln};function An(e,t){const i=e.options.ticks,n=i.maxTicksLimit||function(e){const t=e.options.offset,i=e._tickSize(),n=e._length/i+(t?0:1),a=e._maxLength/i;return Math.floor(Math.min(n,a))}(e),a=i.major.enabled?function(e){const t=[];let i,n;for(i=0,n=e.length;i<n;i++)e[i].major&&t.push(i);return t}(t):[],r=a.length,s=a[0],o=a[r-1],l=[];if(r>n)return function(e,t,i,n){let a,r=0,s=i[0];for(n=Math.ceil(n),a=0;a<e.length;a++)a===s&&(t.push(e[a]),r++,s=i[r*n])}(t,l,a,r/n),l;const c=function(e,t,i){const n=function(e){const t=e.length;let i,n;if(t<2)return!1;for(n=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==n)return!1;return n}(e),a=t.length/i;if(!n)return Math.max(a,1);const r=Ce(n);for(let e=0,t=r.length-1;e<t;e++){const t=r[e];if(t>a)return t}return Math.max(a,1)}(a,t,n);if(r>0){let e,i;const n=r>1?Math.round((o-s)/(r-1)):null;for(Tn(t,l,c,V(n)?0:s-n,s),e=0,i=r-1;e<i;e++)Tn(t,l,c,a[e],a[e+1]);return Tn(t,l,c,o,V(n)?t.length:o+n),l}return Tn(t,l,c),l}function Tn(e,t,i,n,a){const r=G(n,0),s=Math.min(G(a,e.length),e.length);let o,l,c,u=0;for(i=Math.ceil(i),a&&(o=a-n,i=o/Math.floor(o/i)),c=r;c<0;)u++,c=Math.round(r+u*i);for(l=Math.max(r,0);l<s;l++)l===c&&(t.push(e[l]),u++,c=Math.round(r+u*i))}ve.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Sn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ve.route("scale.ticks","color","","color"),ve.route("scale.grid","color","","borderColor"),ve.route("scale.grid","borderColor","","borderColor"),ve.route("scale.title","color","","color"),ve.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),ve.describe("scales",{_fallback:"scale"}),ve.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const Cn=(e,t,i)=>"top"===t||"left"===t?e[t]+i:e[t]-i;function Dn(e,t){const i=[],n=e.length/t,a=e.length;let r=0;for(;r<a;r+=n)i.push(e[Math.floor(r)]);return i}function En(e,t,i){const n=e.ticks.length,a=Math.min(t,n-1),r=e._startPixel,s=e._endPixel,o=1e-6;let l,c=e.getPixelForTick(a);if(!(i&&(l=1===n?Math.max(c-r,s-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(a-1))/2,c+=a<t?l:-l,c<r-o||c>s+o)))return c}function On(e){return e.drawTicks?e.tickLength:0}function Pn(e,t){if(!e.display)return 0;const i=Ft(e.font,t),n=Ht(e.padding);return(q(e.text)?e.text.length:1)*i.lineHeight+n.height}function Yn(e,t,i){let a=n(e);return(i&&"right"!==t||!i&&"right"===t)&&(a=(e=>"left"===e?"right":"right"===e?"left":e)(a)),a}class In extends Mn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:i,_suggestedMax:n}=this;return e=$(e,Number.POSITIVE_INFINITY),t=$(t,Number.NEGATIVE_INFINITY),i=$(i,Number.POSITIVE_INFINITY),n=$(n,Number.NEGATIVE_INFINITY),{min:$(e,i),max:$(t,n),minDefined:U(e),maxDefined:U(t)}}getMinMax(e){let t,{min:i,max:n,minDefined:a,maxDefined:r}=this.getUserBounds();if(a&&r)return{min:i,max:n};const s=this.getMatchingVisibleMetas();for(let o=0,l=s.length;o<l;++o)t=s[o].controller.getMinMax(this,e),a||(i=Math.min(i,t.min)),r||(n=Math.max(n,t.max));return i=r&&i>n?n:i,n=a&&i>n?i:n,{min:$(i,$(n,i)),max:$(n,$(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(e,t,i){const{beginAtZero:n,grace:a,ticks:r}=this.options,s=r.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=zt(this,a,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=s<this.ticks.length;this._convertTicksToLabels(o?Dn(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=An(this,this.ticks),this._labelSizes=null),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,i=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,i=!i),this._startPixel=e,this._endPixel=t,this._reversePixels=i,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){J(this.options.afterUpdate,[this])}beforeSetDimensions(){J(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){J(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),J(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){J(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let i,n,a;for(i=0,n=e.length;i<n;i++)a=e[i],a.label=J(t.callback,[a.value,i,e],this)}afterTickToLabelConversion(){J(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){J(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,i=this.ticks.length,n=t.minRotation||0,a=t.maxRotation;let r,s,o,l=n;if(!this._isVisible()||!t.display||n>=a||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Be(this.chart.width-u,0,this.maxWidth);r=e.offset?this.maxWidth/i:h/(i-1),u+6>r&&(r=h/(i-(e.offset?.5:1)),s=this.maxHeight-On(e.grid)-t.padding-Pn(e.title,this.chart.options.font),o=Math.sqrt(u*u+d*d),l=Ie(Math.min(Math.asin(Be((c.highest.height+6)/r,-1,1)),Math.asin(Be(s/o,-1,1))-Math.asin(Be(d/o,-1,1)))),l=Math.max(n,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}beforeFit(){J(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:i,title:n,grid:a}}=this,r=this._isVisible(),s=this.isHorizontal();if(r){const r=Pn(n,t.options.font);if(s?(e.width=this.maxWidth,e.height=On(a)+r):(e.height=this.maxHeight,e.width=On(a)+r),i.display&&this.ticks.length){const{first:t,last:n,widest:a,highest:r}=this._getLabelSizes(),o=2*i.padding,l=Ye(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(s){const t=i.mirror?0:u*a.width+c*r.height;e.height=Math.min(this.maxHeight,e.height+t+o)}else{const t=i.mirror?0:c*a.width+u*r.height;e.width=Math.min(this.maxWidth,e.width+t+o)}this._calculatePadding(t,n,u,c)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,n){const{ticks:{align:a,padding:r},position:s}=this.options,o=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;o?l?(u=n*e.width,d=i*t.height):(u=i*e.height,d=n*t.width):"start"===a?d=t.width:"end"===a?u=e.width:(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-s+r)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+r)*this.width/(this.width-c),0)}else{let i=t.height/2,n=e.height/2;"start"===a?(i=0,n=e.height):"end"===a&&(i=t.height,n=0),this.paddingTop=i+r,this.paddingBottom=n+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){J(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,i=e.length;t<i;t++)V(e[t].label)&&(e.splice(t,1),i--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=Dn(i,t)),this._labelSizes=e=this._computeLabelSizes(i,i.length)}return e}_computeLabelSizes(e,t){const{ctx:i,_longestTextCache:n}=this,a=[],r=[];let s,o,l,c,u,d,h,f,p,m,g,v=0,y=0;for(s=0;s<t;++s){if(c=e[s].label,u=this._resolveTickFontOptions(s),i.font=d=u.string,h=n[d]=n[d]||{data:{},gc:[]},f=u.lineHeight,p=m=0,V(c)||q(c)){if(q(c))for(o=0,l=c.length;o<l;++o)g=c[o],V(g)||q(g)||(p=qe(i,h.data,h.gc,p,g),m+=f)}else p=qe(i,h.data,h.gc,p,c),m=f;a.push(p),r.push(m),v=Math.max(p,v),y=Math.max(m,y)}!function(e,t){Q(e,(e=>{const i=e.gc,n=i.length/2;let a;if(n>t){for(a=0;a<n;++a)delete e.data[i[a]];i.splice(0,n)}}))}(n,t);const b=a.indexOf(v),x=r.indexOf(y),_=e=>({width:a[e]||0,height:r[e]||0});return{first:_(0),last:_(t-1),widest:_(b),highest:_(x),widths:a,heights:r}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return We(this._alignToPixels?Ue(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const i=t[e];return i.$context||(i.$context=function(e,t,i){return Bt(e,{tick:i,index:t,type:"tick"})}(this.getContext(),e,i))}return this.$context||(this.$context=Bt(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=Ye(this.labelRotation),i=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),a=this._getLabelSizes(),r=e.autoSkipPadding||0,s=a?a.widest.width+r:0,o=a?a.highest.height+r:0;return this.isHorizontal()?o*i>s*n?s/i:o/n:o*n<s*i?o/i:s/n}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,i=this.chart,n=this.options,{grid:a,position:r}=n,s=a.offset,o=this.isHorizontal(),l=this.ticks.length+(s?1:0),c=On(a),u=[],d=a.setContext(this.getContext()),h=d.drawBorder?d.borderWidth:0,f=h/2,p=function(e){return Ue(i,e,h)};let m,g,v,y,b,x,_,w,k,M,L,S;if("top"===r)m=p(this.bottom),x=this.bottom-c,w=m-f,M=p(e.top)+f,S=e.bottom;else if("bottom"===r)m=p(this.top),M=e.top,S=p(e.bottom)-f,x=m+f,w=this.top+c;else if("left"===r)m=p(this.right),b=this.right-c,_=m-f,k=p(e.left)+f,L=e.right;else if("right"===r)m=p(this.left),k=e.left,L=p(e.right)-f,b=m+f,_=this.left+c;else if("x"===t){if("center"===r)m=p((e.top+e.bottom)/2+.5);else if(X(r)){const e=Object.keys(r)[0],t=r[e];m=p(this.chart.scales[e].getPixelForValue(t))}M=e.top,S=e.bottom,x=m+f,w=x+c}else if("y"===t){if("center"===r)m=p((e.left+e.right)/2);else if(X(r)){const e=Object.keys(r)[0],t=r[e];m=p(this.chart.scales[e].getPixelForValue(t))}b=m-f,_=b-c,k=e.left,L=e.right}const A=G(n.ticks.maxTicksLimit,l),T=Math.max(1,Math.ceil(l/A));for(g=0;g<l;g+=T){const e=a.setContext(this.getContext(g)),t=e.lineWidth,n=e.color,r=a.borderDash||[],l=e.borderDashOffset,c=e.tickWidth,d=e.tickColor,h=e.tickBorderDash||[],f=e.tickBorderDashOffset;v=En(this,g,s),void 0!==v&&(y=Ue(i,v,t),o?b=_=k=L=y:x=w=M=S=y,u.push({tx1:b,ty1:x,tx2:_,ty2:w,x1:k,y1:M,x2:L,y2:S,width:t,color:n,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:d,tickBorderDash:h,tickBorderDashOffset:f}))}return this._ticksLength=l,this._borderValue=m,u}_computeLabelItems(e){const t=this.axis,i=this.options,{position:n,ticks:a}=i,r=this.isHorizontal(),s=this.ticks,{align:o,crossAlign:l,padding:c,mirror:u}=a,d=On(i.grid),h=d+c,f=u?-c:h,p=-Ye(this.labelRotation),m=[];let g,v,y,b,x,_,w,k,M,L,S,A,T="middle";if("top"===n)_=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===n)_=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===n){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("right"===n){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,x=e.x}else if("x"===t){if("center"===n)_=(e.top+e.bottom)/2+h;else if(X(n)){const e=Object.keys(n)[0],t=n[e];_=this.chart.scales[e].getPixelForValue(t)+h}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===n)x=(e.left+e.right)/2-h;else if(X(n)){const e=Object.keys(n)[0],t=n[e];x=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===o?T="top":"end"===o&&(T="bottom"));const C=this._getLabelSizes();for(g=0,v=s.length;g<v;++g){y=s[g],b=y.label;const e=a.setContext(this.getContext(g));k=this.getPixelForTick(g)+a.labelOffset,M=this._resolveTickFontOptions(g),L=M.lineHeight,S=q(b)?b.length:1;const t=S/2,i=e.color,o=e.textStrokeColor,c=e.textStrokeWidth;let d;if(r?(x=k,A="top"===n?"near"===l||0!==p?-S*L+L/2:"center"===l?-C.highest.height/2-t*L+L:-C.highest.height+L/2:"near"===l||0!==p?L/2:"center"===l?C.highest.height/2-t*L:C.highest.height-S*L,u&&(A*=-1)):(_=k,A=(1-S)*L/2),e.showLabelBackdrop){const t=Ht(e.backdropPadding),i=C.heights[g],n=C.widths[g];let a=_+A-t.top,r=x-t.left;switch(T){case"middle":a-=i/2;break;case"bottom":a-=i}switch(w){case"center":r-=n/2;break;case"right":r-=n}d={left:r,top:a,width:n+t.width,height:i+t.height,color:e.backdropColor}}m.push({rotation:p,label:b,font:M,color:i,strokeColor:o,strokeWidth:c,textOffset:A,textAlign:w,textBaseline:T,translation:[x,_],backdrop:d})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-Ye(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===t.align?i="left":"end"===t.align&&(i="right"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:i,mirror:n,padding:a}}=this.options,r=e+a,s=this._getLabelSizes().widest.width;let o,l;return"left"===t?n?(l=this.right+a,"near"===i?o="left":"center"===i?(o="center",l+=s/2):(o="right",l+=s)):(l=this.right-r,"near"===i?o="right":"center"===i?(o="center",l-=s/2):(o="left",l=this.left)):"right"===t?n?(l=this.left+a,"near"===i?o="right":"center"===i?(o="center",l-=s/2):(o="left",l-=s)):(l=this.left+r,"near"===i?o="left":"center"===i?(o="center",l+=s/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:i,top:n,width:a,height:r}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(i,n,a,r),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex((t=>t.value===e));if(i>=0){return t.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,r;const s=(e,t,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(t.display)for(a=0,r=n.length;a<r;++a){const e=n[a];t.drawOnChartArea&&s({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:i}}=this,n=i.setContext(this.getContext()),a=i.drawBorder?n.borderWidth:0;if(!a)return;const r=i.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let o,l,c,u;this.isHorizontal()?(o=Ue(e,this.left,a)-a/2,l=Ue(e,this.right,r)+r/2,c=u=s):(c=Ue(e,this.top,a)-a/2,u=Ue(e,this.bottom,r)+r/2,o=l=s),t.save(),t.lineWidth=n.borderWidth,t.strokeStyle=n.borderColor,t.beginPath(),t.moveTo(o,c),t.lineTo(l,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,i=this._computeLabelArea();i&&Ke(t,i);const n=this._labelItems||(this._labelItems=this._computeLabelItems(e));let a,r;for(a=0,r=n.length;a<r;++a){const e=n[a],i=e.font,r=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),tt(t,r,0,e.textOffset,i,e)}i&&Je(t)}drawTitle(){const{ctx:e,options:{position:t,title:i,reverse:n}}=this;if(!i.display)return;const r=Ft(i.font),s=Ht(i.padding),o=i.align;let l=r.lineHeight/2;"bottom"===t||"center"===t||X(t)?(l+=s.bottom,q(i.text)&&(l+=r.lineHeight*(i.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=function(e,t,i,n){const{top:r,left:s,bottom:o,right:l,chart:c}=e,{chartArea:u,scales:d}=c;let h,f,p,m=0;const g=o-r,v=l-s;if(e.isHorizontal()){if(f=a(n,s,l),X(i)){const e=Object.keys(i)[0],n=i[e];p=d[e].getPixelForValue(n)+g-t}else p="center"===i?(u.bottom+u.top)/2+g-t:Cn(e,i,t);h=l-s}else{if(X(i)){const e=Object.keys(i)[0],n=i[e];f=d[e].getPixelForValue(n)-v+t}else f="center"===i?(u.left+u.right)/2-v+t:Cn(e,i,t);p=a(n,o,r),m="left"===i?-ke:ke}return{titleX:f,titleY:p,maxWidth:h,rotation:m}}(this,l,t,o);tt(e,i.text,0,0,r,{color:i.color,maxWidth:d,rotation:h,textAlign:Yn(o,t,n),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,i=G(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===In.prototype.draw?[{z:i,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let a,r;for(a=0,r=t.length;a<r;++a){const r=t[a];r[i]!==this.id||e&&r.type!==e||n.push(r)}return n}_resolveTickFontOptions(e){return Ft(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class jn{constructor(e,t,i){this.type=e,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let i;(function(e){return"id"in e&&"defaults"in e})(t)&&(i=this.register(t));const n=this.items,a=e.id,r=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in n||(n[a]=e,function(e,t,i){const n=ae(Object.create(null),[i?ve.get(i):{},ve.get(t),e.defaults]);ve.set(t,n),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((i=>{const n=i.split("."),a=n.pop(),r=[e].concat(n).join("."),s=t[i].split("."),o=s.pop(),l=s.join(".");ve.route(r,a,l,o)}))}(t,e.defaultRoutes);e.descriptors&&ve.describe(t,e.descriptors)}(e,r,i),this.override&&ve.override(e.id,e.overrides)),r}get(e){return this.items[e]}unregister(e){const t=this.items,i=e.id,n=this.scope;i in t&&delete t[i],n&&i in ve[n]&&(delete ve[n][i],this.override&&delete fe[i])}}var Nn=new class{constructor(){this.controllers=new jn(kn,"datasets",!0),this.elements=new jn(Mn,"elements"),this.plugins=new jn(Object,"plugins"),this.scales=new jn(In,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach((t=>{const n=i||this._getRegistryForType(t);i||n.isForType(t)||n===this.plugins&&t.id?this._exec(e,n,t):Q(t,(t=>{const n=i||this._getRegistryForType(t);this._exec(e,n,t)}))}))}_exec(e,t,i){const n=ce(e);J(i["before"+n],[],i),t[e](i),J(i["after"+n],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(e))return i}return this.plugins}_get(e,t,i){const n=t.get(e);if(void 0===n)throw new Error('"'+e+'" is not a registered '+i+".");return n}};class Hn{constructor(){this._init=[]}notify(e,t,i,n){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=n?this._descriptors(e).filter(n):this._descriptors(e),r=this._notify(a,e,t,i);return"destroy"===t&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),r}_notify(e,t,i,n){n=n||{};for(const a of e){const e=a.plugin;if(!1===J(e[i],[t,n,a.options],e)&&n.cancelable)return!1}return!0}invalidate(){V(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const i=e&&e.config,n=G(i.options&&i.options.plugins,{}),a=function(e){const t=[],i=Object.keys(Nn.plugins.items);for(let e=0;e<i.length;e++)t.push(Nn.getPlugin(i[e]));const n=e.plugins||[];for(let e=0;e<n.length;e++){const i=n[e];-1===t.indexOf(i)&&t.push(i)}return t}(i);return!1!==n||t?function(e,t,i,n){const a=[],r=e.getContext();for(let s=0;s<t.length;s++){const o=t[s],l=Fn(i[o.id],n);null!==l&&a.push({plugin:o,options:Rn(e.config,o,l,r)})}return a}(e,a,n,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],i=this._cache,n=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(n(t,i),e,"stop"),this._notify(n(i,t),e,"start")}}function Fn(e,t){return t||!1!==e?!0===e?{}:e:null}function Rn(e,t,i,n){const a=e.pluginScopeKeys(t),r=e.getOptionScopes(i,a);return e.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zn(e,t){const i=ve.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function Bn(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(i=t.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||e.charAt(0).toLowerCase();var i}function Wn(e){const t=e.options||(e.options={});t.plugins=G(t.plugins,{}),t.scales=function(e,t){const i=fe[e.type]||{scales:{}},n=t.scales||{},a=zn(e.type,t),r=Object.create(null),s=Object.create(null);return Object.keys(n).forEach((e=>{const t=n[e];if(!X(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const o=Bn(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(o,a),c=i.scales||{};r[o]=r[o]||e,s[e]=re(Object.create(null),[{axis:o},t,c[o],c[l]])})),e.data.datasets.forEach((i=>{const a=i.type||e.type,o=i.indexAxis||zn(a,t),l=(fe[a]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let i=e;return"_index_"===e?i=t:"_value_"===e&&(i="x"===t?"y":"x"),i}(e,o),a=i[t+"AxisID"]||r[t]||t;s[a]=s[a]||Object.create(null),re(s[a],[{axis:t},n[a],l[e]])}))})),Object.keys(s).forEach((e=>{const t=s[e];re(t,[ve.scales[t.type],ve.scale])})),s}(e,t)}function Vn(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const qn=new Map,Xn=new Set;function Un(e,t){let i=qn.get(e);return i||(i=t(),qn.set(e,i),Xn.add(i)),i}const $n=(e,t,i)=>{const n=le(t,i);void 0!==n&&e.add(n)};class Gn{constructor(e){this._config=function(e){return(e=e||{}).data=Vn(e.data),Wn(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Vn(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Wn(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Un(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return Un(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return Un(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return Un(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const i=this._scopeCache;let n=i.get(e);return n&&!t||(n=new Map,i.set(e,n)),n}getOptionScopes(e,t,i){const{options:n,type:a}=this,r=this._cachedScopes(e,i),s=r.get(t);if(s)return s;const o=new Set;t.forEach((t=>{e&&(o.add(e),t.forEach((t=>$n(o,e,t)))),t.forEach((e=>$n(o,n,e))),t.forEach((e=>$n(o,fe[a]||{},e))),t.forEach((e=>$n(o,ve,e))),t.forEach((e=>$n(o,pe,e)))}));const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),Xn.has(t)&&r.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,fe[t]||{},ve.datasets[t]||{},{type:t},ve,pe]}resolveNamedOptions(e,t,i,n=[""]){const a={$shared:!0},{resolver:r,subPrefixes:s}=Zn(this._resolverCache,e,n);let o=r;if(function(e,t){const{isScriptable:i,isIndexable:n}=ai(e);for(const a of t){const t=i(a),r=n(a),s=(r||t)&&e[a];if(t&&(de(s)||Kn(s))||r&&q(s))return!0}return!1}(r,t)){a.$shared=!1;o=ni(r,i=de(i)?i():i,this.createResolver(e,i,s))}for(const e of t)a[e]=o[e];return a}createResolver(e,t,i=[""],n){const{resolver:a}=Zn(this._resolverCache,e,i);return X(t)?ni(a,t,void 0,n):a}}function Zn(e,t,i){let n=e.get(t);n||(n=new Map,e.set(t,n));const a=i.join();let r=n.get(a);if(!r){r={resolver:ii(t,i),subPrefixes:i.filter((e=>!e.toLowerCase().includes("hover")))},n.set(a,r)}return r}const Kn=e=>X(e)&&Object.getOwnPropertyNames(e).reduce(((t,i)=>t||de(e[i])),!1);const Jn=["top","bottom","left","right","chartArea"];function Qn(e,t){return"top"===e||"bottom"===e||-1===Jn.indexOf(e)&&"x"===t}function ea(e,t){return function(i,n){return i[e]===n[e]?i[t]-n[t]:i[e]-n[e]}}function ta(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),J(i&&i.onComplete,[e],t)}function ia(e){const t=e.chart,i=t.options.animation;J(i&&i.onProgress,[e],t)}function na(e){return ht()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const aa={},ra=e=>{const t=na(e);return Object.values(aa).filter((e=>e.canvas===t)).pop()};class sa{constructor(e,t){const n=this.config=new Gn(t),a=na(e),r=ra(a);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||rn(a)),this.platform.updateConfig(n);const l=this.platform.acquireContext(a,o.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;this.id=W(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Hn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=i((e=>this.update(e)),o.resizeDelay||0),aa[this.id]=this,l&&c?(s.listen(this,"complete",ta),s.listen(this,"progress",ia),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:i,height:n,_aspectRatio:a}=this;return V(e)?t&&a?a:n?i/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():wt(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return $e(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(e,t){s.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const i=this.options,n=this.canvas,a=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,e,t,a),s=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,wt(this,s,!0)&&(this.notifyPlugins("resize",{size:r}),J(i.onResize,[this,r],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){Q(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,i=this.scales,n=Object.keys(i).reduce(((e,t)=>(e[t]=!1,e)),{});let a=[];t&&(a=a.concat(Object.keys(t).map((e=>{const i=t[e],n=Bn(e,i),a="r"===n,r="x"===n;return{options:i,dposition:a?"chartArea":r?"bottom":"left",dtype:a?"radialLinear":r?"category":"linear"}})))),Q(a,(t=>{const a=t.options,r=a.id,s=Bn(r,a),o=G(a.type,t.dtype);void 0!==a.position&&Qn(a.position,s)===Qn(t.dposition)||(a.position=t.dposition),n[r]=!0;let l=null;if(r in i&&i[r].type===o)l=i[r];else{l=new(Nn.getScale(o))({id:r,type:o,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(a,e)})),Q(n,((e,t)=>{e||delete i[t]})),Q(i,(e=>{ti.configure(this,e,e.options),ti.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,i=e.length;if(e.sort(((e,t)=>e.index-t.index)),i>t){for(let e=t;e<i;++e)this._destroyDatasetMeta(e);e.splice(t,i-t)}this._sortedMetasets=e.slice(0).sort(ea("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,i)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=t.length;i<n;i++){const n=t[i];let a=this.getDatasetMeta(i);const r=n.type||this.config.type;if(a.type&&a.type!==r&&(this._destroyDatasetMeta(i),a=this.getDatasetMeta(i)),a.type=r,a.indexAxis=n.indexAxis||zn(r,this.options),a.order=n.order||0,a.index=i,a.label=""+n.label,a.visible=this.isDatasetVisible(i),a.controller)a.controller.updateIndex(i),a.controller.linkScales();else{const t=Nn.getController(r),{datasetElementType:n,dataElementType:s}=ve.datasets[r];Object.assign(t.prototype,{dataElementType:Nn.getElement(s),datasetElementType:n&&Nn.getElement(n)}),a.controller=new t(this,i),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Q(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const i=this._options=t.createResolver(t.chartOptionScopes(),this.getContext());Q(this.scales,(e=>{ti.removeBox(this,e)}));const n=this._animationsDisabled=!i.animation;this.ensureScalesHaveIDs(),this.buildOrUpdateScales();const a=new Set(Object.keys(this._listeners)),r=new Set(i.events);if(he(a,r)&&!!this._responsiveListeners===i.responsive||(this.unbindEvents(),this.bindEvents()),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),i=!n&&-1===s.indexOf(t);t.buildOrUpdateElements(i),o=Math.max(+t.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||Q(s,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ea("z","_idx")),this._lastEvent&&this._eventHandler(this._lastEvent,!0),this.render()}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ti.update(this,this.width,this.height,e);const t=this.chartArea,i=t.width<=0||t.height<=0;this._layers=[],Q(this.boxes,(e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let t=0,i=this.data.datasets.length;t<i;++t)this._updateDataset(t,de(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const i=this.getDatasetMeta(e),n={meta:i,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(t),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),ta({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,i=[];let n,a;for(n=0,a=t.length;n<a;++n){const a=t[n];e&&!a.visible||i.push(a)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,i=e._clip,n=!i.disabled,a=this.chartArea,r={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(n&&Ke(t,{left:!1===i.left?0:a.left-i.left,right:!1===i.right?this.width:a.right+i.right,top:!1===i.top?0:a.top-i.top,bottom:!1===i.bottom?this.height:a.bottom+i.bottom}),e.controller.draw(),n&&Je(t),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}getElementsAtEventForMode(e,t,i,n){const a=Et.modes[t];return"function"==typeof a?a(this,e,i,n):[]}getDatasetMeta(e){const t=this.data.datasets[e],i=this._metasets;let n=i.filter((e=>e&&e._dataset===t)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Bt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const i=this.getDatasetMeta(e);return"boolean"==typeof i.hidden?!i.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,i){const n=i?"show":"hide",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,n);ue(t)?(a.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),r.update(a,{visible:i}),this.update((t=>t.datasetIndex===e?n:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),s.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),$e(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete aa[this.id]}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,i=(i,n)=>{t.addEventListener(this,i,n),e[i]=n},n=(e,t,i)=>{e.offsetX=t,e.offsetY=i,this._eventHandler(e)};Q(this.options.events,(e=>i(e,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,i=(i,n)=>{t.addEventListener(this,i,n),e[i]=n},n=(i,n)=>{e[i]&&(t.removeEventListener(this,i,n),delete e[i])},a=(e,t)=>{this.canvas&&this.resize(e,t)};let r;const s=()=>{n("attach",s),this.attached=!0,this.resize(),i("resize",a),i("detach",r)};r=()=>{this.attached=!1,n("resize",a),this._stop(),this._resize(0,0),i("attach",s)},t.isAttached(this.canvas)?s():r()}unbindEvents(){Q(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},Q(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,i){const n=i?"set":"remove";let a,r,s,o;for("dataset"===t&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+n+"DatasetHoverStyle"]()),s=0,o=e.length;s<o;++s){r=e[s];const t=r&&this.getDatasetMeta(r.datasetIndex).controller;t&&t[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],i=e.map((({datasetIndex:e,index:t})=>{const i=this.getDatasetMeta(e);if(!i)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:i.data[t],index:t}}));!ee(i,t)&&(this._active=i,this._updateHoverStyles(i,t))}notifyPlugins(e,t,i){return this._plugins.notify(this,e,t,i)}_updateHoverStyles(e,t,i){const n=this.options.hover,a=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),r=a(t,e),s=i?e:a(e,t);r.length&&this.updateHoverStyle(r,n.mode,!1),s.length&&n.mode&&this.updateHoverStyle(s,n.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0},n=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const a=this._handleEvent(e,t);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(a||i.changed)&&this.render(),this}_handleEvent(e,t){const{_active:i=[],options:n}=this,a=n.hover,r=t;let s=[],o=!1,l=null;return"mouseout"!==e.type&&(s=this.getElementsAtEventForMode(e,a.mode,a,r),l="click"===e.type?this._lastEvent:e),this._lastEvent=null,Ze(e,this.chartArea,this._minPadding)&&(J(n.onHover,[e,s,this],this),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||J(n.onClick,[e,s,this],this)),o=!ee(s,i),(o||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=l,o}}const oa=()=>Q(sa.instances,(e=>e._plugins.invalidate())),la=!0;function ca(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(sa,{defaults:{enumerable:la,value:ve},instances:{enumerable:la,value:aa},overrides:{enumerable:la,value:fe},registry:{enumerable:la,value:Nn},version:{enumerable:la,value:"3.6.0"},getChart:{enumerable:la,value:ra},register:{enumerable:la,value:(...e)=>{Nn.add(...e),oa()}},unregister:{enumerable:la,value:(...e)=>{Nn.remove(...e),oa()}}});class ua{constructor(e){this.options=e||{}}formats(){return ca()}parse(e,t){return ca()}format(e,t){return ca()}add(e,t,i){return ca()}diff(e,t,i){return ca()}startOf(e,t,i){return ca()}endOf(e,t){return ca()}}ua.override=function(e){Object.assign(ua.prototype,e)};var da={_date:ua};function ha(e){const t=e.iScale,i=function(e,t){if(!e._cache.$bar){const i=e.getMatchingVisibleMetas(t);let n=[];for(let t=0,a=i.length;t<a;t++)n=n.concat(i[t].controller.getAllParsedValues(e));e._cache.$bar=dt(n.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let n,a,r,s,o=t._length;const l=()=>{32767!==r&&-32768!==r&&(ue(s)&&(o=Math.min(o,Math.abs(r-s)||o)),s=r)};for(n=0,a=i.length;n<a;++n)r=t.getPixelForValue(i[n]),l();for(s=void 0,n=0,a=t.ticks.length;n<a;++n)r=t.getPixelForTick(n),l();return o}function fa(e,t,i,n){return q(e)?function(e,t,i,n){const a=i.parse(e[0],n),r=i.parse(e[1],n),s=Math.min(a,r),o=Math.max(a,r);let l=s,c=o;Math.abs(s)>Math.abs(o)&&(l=o,c=s),t[i.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:r,min:s,max:o}}(e,t,i,n):t[i.axis]=i.parse(e,n),t}function pa(e,t,i,n){const a=e.iScale,r=e.vScale,s=a.getLabels(),o=a===r,l=[];let c,u,d,h;for(c=i,u=i+n;c<u;++c)h=t[c],d={},d[a.axis]=o||a.parse(s[c],c),l.push(fa(h,d,r,c));return l}function ma(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function ga(e,t,i,n){let a=t.borderSkipped;const r={};if(!a)return void(e.borderSkipped=r);const{start:s,end:o,reverse:l,top:c,bottom:u}=function(e){let t,i,n,a,r;return e.horizontal?(t=e.base>e.x,i="left",n="right"):(t=e.base<e.y,i="bottom",n="top"),t?(a="end",r="start"):(a="start",r="end"),{start:i,end:n,reverse:t,top:a,bottom:r}}(e);"middle"===a&&i&&(e.enableBorderRadius=!0,(i._top||0)===n?a=c:(i._bottom||0)===n?a=u:(r[va(u,s,o,l)]=!0,a=c)),r[va(a,s,o,l)]=!0,e.borderSkipped=r}function va(e,t,i,n){var a,r,s;return n?(s=i,e=ya(e=(a=e)===(r=t)?s:a===s?r:a,i,t)):e=ya(e,t,i),e}function ya(e,t,i){return"start"===e?t:"end"===e?i:e}function ba(e,{inflateAmount:t},i){e.inflateAmount="auto"===t?1===i?.33:0:t}class xa extends kn{parsePrimitiveData(e,t,i,n){return pa(e,t,i,n)}parseArrayData(e,t,i,n){return pa(e,t,i,n)}parseObjectData(e,t,i,n){const{iScale:a,vScale:r}=e,{xAxisKey:s="x",yAxisKey:o="y"}=this._parsing,l="x"===a.axis?s:o,c="x"===r.axis?s:o,u=[];let d,h,f,p;for(d=i,h=i+n;d<h;++d)p=t[d],f={},f[a.axis]=a.parse(le(p,l),d),u.push(fa(le(p,c),f,r,d));return u}updateRangeFromParsed(e,t,i,n){super.updateRangeFromParsed(e,t,i,n);const a=i._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:i,vScale:n}=t,a=this.getParsed(e),r=a._custom,s=ma(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(a[n.axis]);return{label:""+i.getLabelForValue(a[i.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,i,n){const a="reset"===n,{index:r,_cachedMeta:{vScale:s}}=this,o=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),u=this.resolveDataElementOptions(t,n),d=this.getSharedOptions(u),h=this.includeOptions(n,d);this.updateSharedOptions(d,n,u);for(let u=t;u<t+i;u++){const t=this.getParsed(u),i=a||V(t[s.axis])?{base:o,head:o}:this._calculateBarValuePixels(u),f=this._calculateBarIndexPixels(u,c),p=(t._stacks||{})[s.axis],m={horizontal:l,base:i.base,enableBorderRadius:!p||ma(t._custom)||r===p._top||r===p._bottom,x:l?i.head:f.center,y:l?f.center:i.head,height:l?f.size:Math.abs(i.size),width:l?Math.abs(i.size):f.size};h&&(m.options=d||this.resolveDataElementOptions(u,e[u].active?"active":n));const g=m.options||e[u].options;ga(m,g,p,r),ba(m,g,c.ratio),this.updateElement(e[u],u,m,n)}}_getStacks(e,t){const i=this._cachedMeta.iScale,n=i.getMatchingVisibleMetas(this._type),a=i.options.stacked,r=n.length,s=[];let o,l;for(o=0;o<r;++o)if(l=n[o],l.controller.options.grouped){if(void 0!==t){const e=l.controller.getParsed(t)[l.controller._cachedMeta.vScale.axis];if(V(e)||isNaN(e))continue}if((!1===a||-1===s.indexOf(l.stack)||void 0===a&&void 0===l.stack)&&s.push(l.stack),l.index===e)break}return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,i){const n=this._getStacks(e,i),a=void 0!==t?n.indexOf(t):-1;return-1===a?n.length-1:a}_getRuler(){const e=this.options,t=this._cachedMeta,i=t.iScale,n=[];let a,r;for(a=0,r=t.data.length;a<r;++a)n.push(i.getPixelForValue(this.getParsed(a)[i.axis],a));const s=e.barThickness;return{min:s||ha(t),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:i},options:{base:n,minBarLength:a}}=this,r=n||0,s=this.getParsed(e),o=s._custom,l=ma(o);let c,u,d=s[t.axis],h=0,f=i?this.applyStack(t,s,i):d;f!==d&&(h=f-d,f=d),l&&(d=o.barStart,f=o.barEnd-o.barStart,0!==d&&Ae(d)!==Ae(o.barEnd)&&(h=0),h+=d);const p=V(n)||l?h:n;let m=t.getPixelForValue(p);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):m,u=c-m,Math.abs(u)<a&&(u=function(e,t,i){return 0!==e?Ae(e):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}(u,t,r)*a,d===r&&(m-=u/2),c=m+u),m===t.getPixelForValue(r)){const e=Ae(u)*t.getLineWidthForValue(r)/2;m+=e,u-=e}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(e,t){const i=t.scale,n=this.options,a=n.skipNull,r=G(n.maxBarThickness,1/0);let s,o;if(t.grouped){const i=a?this._getStackCount(e):t.stackCount,l="flex"===n.barThickness?function(e,t,i,n){const a=t.pixels,r=a[e];let s=e>0?a[e-1]:null,o=e<a.length-1?a[e+1]:null;const l=i.categoryPercentage;null===s&&(s=r-(null===o?t.end-t.start:o-r)),null===o&&(o=r+r-s);const c=r-(r-Math.min(s,o))/2*l;return{chunk:Math.abs(o-s)/2*l/n,ratio:i.barPercentage,start:c}}(e,t,n,i):function(e,t,i,n){const a=i.barThickness;let r,s;return V(a)?(r=t.min*i.categoryPercentage,s=i.barPercentage):(r=a*n,s=1),{chunk:r/n,ratio:s,start:t.pixels[e]-r/2}}(e,t,n,i),c=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);s=l.start+l.chunk*c+l.chunk/2,o=Math.min(r,l.chunk*l.ratio)}else s=i.getPixelForValue(this.getParsed(e)[i.axis],e),o=Math.min(r,t.min*t.ratio);return{base:s-o/2,head:s+o/2,center:s,size:o}}draw(){const e=this._cachedMeta,t=e.vScale,i=e.data,n=i.length;let a=0;for(;a<n;++a)null!==this.getParsed(a)[t.axis]&&i[a].draw(this._ctx)}}xa.id="bar",xa.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},xa.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class _a extends kn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,i,n){const a=super.parsePrimitiveData(e,t,i,n);for(let e=0;e<a.length;e++)a[e]._custom=this.resolveDataElementOptions(e+i).radius;return a}parseArrayData(e,t,i,n){const a=super.parseArrayData(e,t,i,n);for(let e=0;e<a.length;e++){const n=t[i+e];a[e]._custom=G(n[2],this.resolveDataElementOptions(e+i).radius)}return a}parseObjectData(e,t,i,n){const a=super.parseObjectData(e,t,i,n);for(let e=0;e<a.length;e++){const n=t[i+e];a[e]._custom=G(n&&n.r&&+n.r,this.resolveDataElementOptions(e+i).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:i,yScale:n}=t,a=this.getParsed(e),r=i.getLabelForValue(a.x),s=n.getLabelForValue(a.y),o=a._custom;return{label:t.label,value:"("+r+", "+s+(o?", "+o:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,i,n){const a="reset"===n,{iScale:r,vScale:s}=this._cachedMeta,o=this.resolveDataElementOptions(t,n),l=this.getSharedOptions(o),c=this.includeOptions(n,l),u=r.axis,d=s.axis;for(let o=t;o<t+i;o++){const t=e[o],i=!a&&this.getParsed(o),l={},h=l[u]=a?r.getPixelForDecimal(.5):r.getPixelForValue(i[u]),f=l[d]=a?s.getBasePixel():s.getPixelForValue(i[d]);l.skip=isNaN(h)||isNaN(f),c&&(l.options=this.resolveDataElementOptions(o,t.active?"active":n),a&&(l.options.radius=0)),this.updateElement(t,o,l,n)}this.updateSharedOptions(l,n,o)}resolveDataElementOptions(e,t){const i=this.getParsed(e);let n=super.resolveDataElementOptions(e,t);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const a=n.radius;return"active"!==t&&(n.radius=0),n.radius+=G(i&&i._custom,a),n}}_a.id="bubble",_a.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},_a.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class wa extends kn{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let a,r,s=e=>+i[e];if(X(i[e])){const{key:e="value"}=this._parsing;s=t=>+le(i[t],e)}for(a=e,r=e+t;a<r;++a)n._parsed[a]=s(a)}}_getRotation(){return Ye(this.options.rotation-90)}_getCircumference(){return Ye(this.options.circumference)}_getRotationExtents(){let e=be,t=-be;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const n=this.chart.getDatasetMeta(i).controller,a=n._getRotation(),r=n._getCircumference();e=Math.min(e,a),t=Math.max(t,a+r)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:i}=t,n=this._cachedMeta,a=n.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(i.width,i.height)-r)/2,0),o=Math.min(Z(this.options.cutout,s),1),l=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:f,offsetY:p}=function(e,t,i){let n=1,a=1,r=0,s=0;if(t<be){const o=e,l=o+t,c=Math.cos(o),u=Math.sin(o),d=Math.cos(l),h=Math.sin(l),f=(e,t,n)=>ze(e,o,l,!0)?1:Math.max(t,t*i,n,n*i),p=(e,t,n)=>ze(e,o,l,!0)?-1:Math.min(t,t*i,n,n*i),m=f(0,c,d),g=f(ke,u,h),v=p(ye,c,d),y=p(ye+ke,u,h);n=(m-v)/2,a=(g-y)/2,r=-(m+v)/2,s=-(g+y)/2}return{ratioX:n,ratioY:a,offsetX:r,offsetY:s}}(u,c,o),m=(i.width-r)/d,g=(i.height-r)/h,v=Math.max(Math.min(m,g)/2,0),y=K(this.options.radius,v),b=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*l,0),this.updateElements(a,0,a.length,e)}_circumference(e,t){const i=this.options,n=this._cachedMeta,a=this._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===n._parsed[e]||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*a/be)}updateElements(e,t,i,n){const a="reset"===n,r=this.chart,s=r.chartArea,o=r.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,u=a&&o.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,f=this.resolveDataElementOptions(t,n),p=this.getSharedOptions(f),m=this.includeOptions(n,p);let g,v=this._getRotation();for(g=0;g<t;++g)v+=this._circumference(g,a);for(g=t;g<t+i;++g){const t=this._circumference(g,a),i=e[g],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:v,endAngle:v+t,circumference:t,outerRadius:h,innerRadius:d};m&&(r.options=p||this.resolveDataElementOptions(g,i.active?"active":n)),v+=t,this.updateElement(i,g,r,n)}this.updateSharedOptions(p,n,f)}calculateTotal(){const e=this._cachedMeta,t=e.data;let i,n=0;for(i=0;i<t.length;i++){const a=e._parsed[i];null===a||isNaN(a)||!this.chart.getDataVisibility(i)||t[i].hidden||(n+=Math.abs(a))}return n}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?be*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,n=i.data.labels||[],a=Di(t._parsed[e],i.options.locale);return{label:n[e]||"",value:a}}getMaxBorderWidth(e){let t=0;const i=this.chart;let n,a,r,s,o;if(!e)for(n=0,a=i.data.datasets.length;n<a;++n)if(i.isDatasetVisible(n)){r=i.getDatasetMeta(n),e=r.data,s=r.controller,s!==this&&s.configure();break}if(!e)return 0;for(n=0,a=e.length;n<a;++n)o=s.resolveDataElementOptions(n),"inner"!==o.borderAlign&&(t=Math.max(t,o.borderWidth||0,o.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let i=0,n=e.length;i<n;++i){const e=this.resolveDataElementOptions(i);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(t+=this._getRingWeight(i));return t}_getRingWeight(e){return Math.max(G(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}wa.id="doughnut",wa.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},wa.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},wa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i}}=e.legend.options;return t.labels.map(((t,n)=>{const a=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const i=": "+e.formattedValue;return q(t)?(t=t.slice(),t[0]+=i):t+=i,t}}}}};class ka extends kn{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:i,data:n=[],_dataset:a}=t,r=this.chart._animationsDisabled;let{start:s,count:o}=function(e,t,i){const n=t.length;let a=0,r=n;if(e._sorted){const{iScale:s,_parsed:o}=e,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:h}=s.getUserBounds();d&&(a=Be(Math.min(rt(o,s.axis,c).lo,i?n:rt(t,l,s.getPixelForValue(c)).lo),0,n-1)),r=h?Be(Math.max(rt(o,s.axis,u).hi+1,i?0:rt(t,l,s.getPixelForValue(u)).hi+1),a,n)-a:n-a}return{start:a,count:r}}(t,n,r);this._drawStart=s,this._drawCount=o,function(e){const{xScale:t,yScale:i,_scaleRanges:n}=e,a={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!n)return e._scaleRanges=a,!0;const r=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,a),r}(t)&&(s=0,o=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!a._decimated,i.points=n;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:l},e),this.updateElements(n,s,o,e)}updateElements(e,t,i,n){const a="reset"===n,{iScale:r,vScale:s,_stacked:o,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,n),u=this.getSharedOptions(c),d=this.includeOptions(n,u),h=r.axis,f=s.axis,{spanGaps:p,segment:m}=this.options,g=De(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||"none"===n;let y=t>0&&this.getParsed(t-1);for(let c=t;c<t+i;++c){const t=e[c],i=this.getParsed(c),p=v?t:{},b=V(i[f]),x=p[h]=r.getPixelForValue(i[h],c),_=p[f]=a||b?s.getBasePixel():s.getPixelForValue(o?this.applyStack(s,i,o):i[f],c);p.skip=isNaN(x)||isNaN(_)||b,p.stop=c>0&&i[h]-y[h]>g,m&&(p.parsed=i,p.raw=l.data[c]),d&&(p.options=u||this.resolveDataElementOptions(c,t.active?"active":n)),v||this.updateElement(t,c,p,n),y=i}this.updateSharedOptions(u,n,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,i=t.options&&t.options.borderWidth||0,n=e.data||[];if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,r)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ka.id="line",ka.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},ka.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ma extends kn{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,n=i.data.labels||[],a=Di(t._parsed[e].r,i.options.locale);return{label:n[e]||"",value:a}}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}_updateRadius(){const e=this.chart,t=e.chartArea,i=e.options,n=Math.min(t.right-t.left,t.bottom-t.top),a=Math.max(n/2,0),r=(a-Math.max(i.cutoutPercentage?a/100*i.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=a-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(e,t,i,n){const a="reset"===n,r=this.chart,s=this.getDataset(),o=r.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*ye;let h,f=d;const p=360/this.countVisibleElements();for(h=0;h<t;++h)f+=this._computeAngle(h,n,p);for(h=t;h<t+i;h++){const t=e[h];let i=f,m=f+this._computeAngle(h,n,p),g=r.getDataVisibility(h)?l.getDistanceFromCenterForValue(s.data[h]):0;f=m,a&&(o.animateScale&&(g=0),o.animateRotate&&(i=m=d));const v={x:c,y:u,innerRadius:0,outerRadius:g,startAngle:i,endAngle:m,options:this.resolveDataElementOptions(h,t.active?"active":n)};this.updateElement(t,h,v,n)}}countVisibleElements(){const e=this.getDataset(),t=this._cachedMeta;let i=0;return t.data.forEach(((t,n)=>{!isNaN(e.data[n])&&this.chart.getDataVisibility(n)&&i++})),i}_computeAngle(e,t,i){return this.chart.getDataVisibility(e)?Ye(this.resolveDataElementOptions(e,t).angle||i):0}}Ma.id="polarArea",Ma.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ma.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:i}}=e.legend.options;return t.labels.map(((t,n)=>{const a=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class La extends wa{}La.id="pie",La.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Sa extends kn{getLabelAndValue(e){const t=this._cachedMeta.vScale,i=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(i[t.axis])}}update(e){const t=this._cachedMeta,i=t.dataset,n=t.data||[],a=t.iScale.getLabels();if(i.points=n,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const r={_loop:!0,_fullLoop:a.length===n.length,options:t};this.updateElement(i,void 0,r,e)}this.updateElements(n,0,n.length,e)}updateElements(e,t,i,n){const a=this.getDataset(),r=this._cachedMeta.rScale,s="reset"===n;for(let o=t;o<t+i;o++){const t=e[o],i=this.resolveDataElementOptions(o,t.active?"active":n),l=r.getPointPositionForValue(o,a.data[o]),c=s?r.xCenter:l.x,u=s?r.yCenter:l.y,d={x:c,y:u,angle:l.angle,skip:isNaN(c)||isNaN(u),options:i};this.updateElement(t,o,d,n)}}}Sa.id="radar",Sa.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Sa.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Aa extends ka{}Aa.id="scatter",Aa.defaults={showLine:!1,fill:!1},Aa.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Ta=Object.freeze({__proto__:null,BarController:xa,BubbleController:_a,DoughnutController:wa,LineController:ka,PolarAreaController:Ma,PieController:La,RadarController:Sa,ScatterController:Aa});function Ca(e,t,i){const{startAngle:n,pixelMargin:a,x:r,y:s,outerRadius:o,innerRadius:l}=t;let c=a/o;e.beginPath(),e.arc(r,s,o,n-c,i+c),l>a?(c=a/l,e.arc(r,s,l,i+c,n-c,!0)):e.arc(r,s,a,i+ke,n-ke),e.closePath(),e.clip()}function Da(e,t,i,n){const a=It(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(i-t)/2,s=Math.min(r,n*t/2),o=e=>{const t=(i-Math.min(r,e))*n/2;return Be(e,0,Math.min(r,t))};return{outerStart:o(a.outerStart),outerEnd:o(a.outerEnd),innerStart:Be(a.innerStart,0,s),innerEnd:Be(a.innerEnd,0,s)}}function Ea(e,t,i,n){return{x:i+e*Math.cos(t),y:n+e*Math.sin(t)}}function Oa(e,t,i,n,a){const{x:r,y:s,startAngle:o,pixelMargin:l,innerRadius:c}=t,u=Math.max(t.outerRadius+n+i-l,0),d=c>0?c+n+i+l:0;let h=0;const f=a-o;if(n){const e=((c>0?c-n:0)+(u>0?u-n:0))/2;h=(f-(0!==e?f*e/(e+n):f))/2}const p=(f-Math.max(.001,f*u-i/ye)/u)/2,m=o+p+h,g=a-p-h,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Da(t,d,u,g-m),_=u-v,w=u-y,k=m+v/_,M=g-y/w,L=d+b,S=d+x,A=m+b/L,T=g-x/S;if(e.beginPath(),e.arc(r,s,u,k,M),y>0){const t=Ea(w,M,r,s);e.arc(t.x,t.y,y,M,g+ke)}const C=Ea(S,g,r,s);if(e.lineTo(C.x,C.y),x>0){const t=Ea(S,T,r,s);e.arc(t.x,t.y,x,g+ke,T+Math.PI)}if(e.arc(r,s,d,g-x/d,m+b/d,!0),b>0){const t=Ea(L,A,r,s);e.arc(t.x,t.y,b,A+Math.PI,m-ke)}const D=Ea(_,m,r,s);if(e.lineTo(D.x,D.y),v>0){const t=Ea(_,k,r,s);e.arc(t.x,t.y,v,m-ke,k)}e.closePath()}function Pa(e,t,i,n,a){const{options:r}=t,s="inner"===r.borderAlign;r.borderWidth&&(s?(e.lineWidth=2*r.borderWidth,e.lineJoin="round"):(e.lineWidth=r.borderWidth,e.lineJoin="bevel"),t.fullCircles&&function(e,t,i){const{x:n,y:a,startAngle:r,pixelMargin:s,fullCircles:o}=t,l=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;let u;for(i&&Ca(e,t,r+be),e.beginPath(),e.arc(n,a,c,r+be,r,!0),u=0;u<o;++u)e.stroke();for(e.beginPath(),e.arc(n,a,l,r,r+be),u=0;u<o;++u)e.stroke()}(e,t,s),s&&Ca(e,t,a),Oa(e,t,i,n,a),e.stroke())}class Ya extends Mn{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){const n=this.getProps(["x","y"],i),{angle:a,distance:r}=Ne(n,{x:e,y:t}),{startAngle:s,endAngle:o,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=this.options.spacing/2;return(u>=be||ze(a,s,o))&&(r>=l+d&&r<=c+d)}getCenterPoint(e){const{x:t,y:i,startAngle:n,endAngle:a,innerRadius:r,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:o,spacing:l}=this.options,c=(n+a)/2,u=(r+s+l+o)/2;return{x:t+Math.cos(c)*u,y:i+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:i}=this,n=(t.offset||0)/2,a=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>be?Math.floor(i/be):0,0===i||this.innerRadius<0||this.outerRadius<0)return;e.save();let r=0;if(n){r=n/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*r,Math.sin(t)*r),this.circumference>=ye&&(r=n)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const s=function(e,t,i,n){const{fullCircles:a,startAngle:r,circumference:s}=t;let o=t.endAngle;if(a){Oa(e,t,i,n,r+be);for(let t=0;t<a;++t)e.fill();isNaN(s)||(o=r+s%be,s%be==0&&(o+=be))}return Oa(e,t,i,n,o),e.fill(),o}(e,this,r,a);Pa(e,this,r,a,s),e.restore()}}function Ia(e,t,i=t){e.lineCap=G(i.borderCapStyle,t.borderCapStyle),e.setLineDash(G(i.borderDash,t.borderDash)),e.lineDashOffset=G(i.borderDashOffset,t.borderDashOffset),e.lineJoin=G(i.borderJoinStyle,t.borderJoinStyle),e.lineWidth=G(i.borderWidth,t.borderWidth),e.strokeStyle=G(i.borderColor,t.borderColor)}function ja(e,t,i){e.lineTo(i.x,i.y)}function Na(e,t,i={}){const n=e.length,{start:a=0,end:r=n-1}=i,{start:s,end:o}=t,l=Math.max(a,s),c=Math.min(r,o),u=a<s&&r<s||a>o&&r>o;return{count:n,start:l,loop:t.loop,ilen:c<l&&!u?n+c-l:c-l}}function Ha(e,t,i,n){const{points:a,options:r}=t,{count:s,start:o,loop:l,ilen:c}=Na(a,i,n),u=function(e){return e.stepped?Qe:e.tension||"monotone"===e.cubicInterpolationMode?et:ja}(r);let d,h,f,{move:p=!0,reverse:m}=n||{};for(d=0;d<=c;++d)h=a[(o+(m?c-d:d))%s],h.skip||(p?(e.moveTo(h.x,h.y),p=!1):u(e,f,h,m,r.stepped),f=h);return l&&(h=a[(o+(m?c:0))%s],u(e,f,h,m,r.stepped)),!!l}function Fa(e,t,i,n){const a=t.points,{count:r,start:s,ilen:o}=Na(a,i,n),{move:l=!0,reverse:c}=n||{};let u,d,h,f,p,m,g=0,v=0;const y=e=>(s+(c?o-e:e))%r,b=()=>{f!==p&&(e.lineTo(g,p),e.lineTo(g,f),e.lineTo(g,m))};for(l&&(d=a[y(0)],e.moveTo(d.x,d.y)),u=0;u<=o;++u){if(d=a[y(u)],d.skip)continue;const t=d.x,i=d.y,n=0|t;n===h?(i<f?f=i:i>p&&(p=i),g=(v*g+t)/++v):(b(),e.lineTo(t,i),h=n,v=0,f=p=i),m=i}b()}function Ra(e){const t=e.options,i=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||i)?Fa:Ha}Ya.id="arc",Ya.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Ya.defaultRoutes={backgroundColor:"backgroundColor"};const za="function"==typeof Path2D;function Ba(e,t,i,n){za&&!t.options.segment?function(e,t,i,n){let a=t._path;a||(a=t._path=new Path2D,t.path(a,i,n)&&a.closePath()),Ia(e,t.options),e.stroke(a)}(e,t,i,n):function(e,t,i,n){const{segments:a,options:r}=t,s=Ra(t);for(const o of a)Ia(e,r,o.style),e.beginPath(),s(e,t,o,{start:i,end:i+n-1})&&e.closePath(),e.stroke()}(e,t,i,n)}class Wa extends Mn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;_i(this._points,i,e,n,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Hi(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,i=e.length;return i&&t[e[i-1].end]}interpolate(e,t){const i=this.options,n=e[t],a=this.points,r=Ni(this,{property:t,start:n,end:n});if(!r.length)return;const s=[],o=function(e){return e.stepped?Ai:e.tension||"monotone"===e.cubicInterpolationMode?Ti:Si}(i);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:u}=r[l],d=a[c],h=a[u];if(d===h){s.push(d);continue}const f=o(d,h,Math.abs((n-d[t])/(h[t]-d[t])),i.stepped);f[t]=e[t],s.push(f)}return 1===s.length?s[0]:s}pathSegment(e,t,i){return Ra(this)(e,this,t,i)}path(e,t,i){const n=this.segments,a=Ra(this);let r=this._loop;t=t||0,i=i||this.points.length-t;for(const s of n)r&=a(e,this,s,{start:t,end:t+i-1});return!!r}draw(e,t,i,n){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),Ba(e,this,i,n),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Va(e,t,i,n){const a=e.options,{[i]:r}=e.getProps([i],n);return Math.abs(t-r)<a.radius+a.hitRadius}Wa.id="line",Wa.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Wa.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Wa.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class qa extends Mn{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,i){const n=this.options,{x:a,y:r}=this.getProps(["x","y"],i);return Math.pow(e-a,2)+Math.pow(t-r,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(e,t){return Va(this,e,"x",t)}inYRange(e,t){return Va(this,e,"y",t)}getCenterPoint(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const i=this.options;this.skip||i.radius<.1||!Ze(this,t,this.size(i)/2)||(e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.fillStyle=i.backgroundColor,Ge(e,i,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Xa(e,t){const{x:i,y:n,base:a,width:r,height:s}=e.getProps(["x","y","base","width","height"],t);let o,l,c,u,d;return e.horizontal?(d=s/2,o=Math.min(i,a),l=Math.max(i,a),c=n-d,u=n+d):(d=r/2,o=i-d,l=i+d,c=Math.min(n,a),u=Math.max(n,a)),{left:o,top:c,right:l,bottom:u}}function Ua(e,t,i,n){return e?0:Be(t,i,n)}function $a(e){const t=Xa(e),i=t.right-t.left,n=t.bottom-t.top,a=function(e,t,i){const n=e.options.borderWidth,a=e.borderSkipped,r=jt(n);return{t:Ua(a.top,r.top,0,i),r:Ua(a.right,r.right,0,t),b:Ua(a.bottom,r.bottom,0,i),l:Ua(a.left,r.left,0,t)}}(e,i/2,n/2),r=function(e,t,i){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,r=Nt(a),s=Math.min(t,i),o=e.borderSkipped,l=n||X(a);return{topLeft:Ua(!l||o.top||o.left,r.topLeft,0,s),topRight:Ua(!l||o.top||o.right,r.topRight,0,s),bottomLeft:Ua(!l||o.bottom||o.left,r.bottomLeft,0,s),bottomRight:Ua(!l||o.bottom||o.right,r.bottomRight,0,s)}}(e,i/2,n/2);return{outer:{x:t.left,y:t.top,w:i,h:n,radius:r},inner:{x:t.left+a.l,y:t.top+a.t,w:i-a.l-a.r,h:n-a.t-a.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,r.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(a.b,a.r))}}}}function Ga(e,t,i,n){const a=null===t,r=null===i,s=e&&!(a&&r)&&Xa(e,n);return s&&(a||t>=s.left&&t<=s.right)&&(r||i>=s.top&&i<=s.bottom)}function Za(e,t){e.rect(t.x,t.y,t.w,t.h)}function Ka(e,t,i={}){const n=e.x!==i.x?-t:0,a=e.y!==i.y?-t:0,r=(e.x+e.w!==i.x+i.w?t:0)-n,s=(e.y+e.h!==i.y+i.h?t:0)-a;return{x:e.x+n,y:e.y+a,w:e.w+r,h:e.h+s,radius:e.radius}}qa.id="point",qa.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},qa.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Ja extends Mn{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:i,backgroundColor:n}}=this,{inner:a,outer:r}=$a(this),s=(o=r.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?nt:Za;var o;e.save(),r.w===a.w&&r.h===a.h||(e.beginPath(),s(e,Ka(r,t,a)),e.clip(),s(e,Ka(a,-t,r)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),s(e,Ka(a,t)),e.fillStyle=n,e.fill(),e.restore()}inRange(e,t,i){return Ga(this,e,t,i)}inXRange(e,t){return Ga(this,e,null,t)}inYRange(e,t){return Ga(this,null,e,t)}getCenterPoint(e){const{x:t,y:i,base:n,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+n)/2:t,y:a?i:(i+n)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Ja.id="bar",Ja.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Ja.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Qa=Object.freeze({__proto__:null,ArcElement:Ya,LineElement:Wa,PointElement:qa,BarElement:Ja});function er(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function tr(e){e.data.datasets.forEach((e=>{er(e)}))}var ir={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,i)=>{if(!i.enabled)return void tr(e);const n=e.width;e.data.datasets.forEach(((t,a)=>{const{_data:r,indexAxis:s}=t,o=e.getDatasetMeta(a),l=r||t.data;if("y"===Rt([s,e.options.indexAxis]))return;if("line"!==o.type)return;const c=e.scales[o.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:u,count:d}=function(e,t){const i=t.length;let n,a=0;const{iScale:r}=e,{min:s,max:o,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(a=Be(rt(t,r.axis,s).lo,0,i-1)),n=c?Be(rt(t,r.axis,o).hi+1,a,i)-a:i-a,{start:a,count:n}}(o,l);if(d<=(i.threshold||4*n))return void er(t);let h;switch(V(r)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),i.algorithm){case"lttb":h=function(e,t,i,n,a){const r=a.samples||n;if(r>=i)return e.slice(t,t+i);const s=[],o=(i-2)/(r-2);let l=0;const c=t+i-1;let u,d,h,f,p,m=t;for(s[l++]=e[m],u=0;u<r-2;u++){let n,a=0,r=0;const c=Math.floor((u+1)*o)+1+t,g=Math.min(Math.floor((u+2)*o)+1,i)+t,v=g-c;for(n=c;n<g;n++)a+=e[n].x,r+=e[n].y;a/=v,r/=v;const y=Math.floor(u*o)+1+t,b=Math.min(Math.floor((u+1)*o)+1,i)+t,{x:x,y:_}=e[m];for(h=f=-1,n=y;n<b;n++)f=.5*Math.abs((x-a)*(e[n].y-_)-(x-e[n].x)*(r-_)),f>h&&(h=f,d=e[n],p=n);s[l++]=d,m=p}return s[l++]=e[c],s}(l,u,d,n,i);break;case"min-max":h=function(e,t,i,n){let a,r,s,o,l,c,u,d,h,f,p=0,m=0;const g=[],v=t+i-1,y=e[t].x,b=e[v].x-y;for(a=t;a<t+i;++a){r=e[a],s=(r.x-y)/b*n,o=r.y;const t=0|s;if(t===l)o<h?(h=o,c=a):o>f&&(f=o,u=a),p=(m*p+r.x)/++m;else{const i=a-1;if(!V(c)&&!V(u)){const t=Math.min(c,u),n=Math.max(c,u);t!==d&&t!==i&&g.push({...e[t],x:p}),n!==d&&n!==i&&g.push({...e[n],x:p})}a>0&&i!==d&&g.push(e[i]),g.push(r),l=t,m=0,h=f=o,c=u=d=a}}return g}(l,u,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}t._decimated=h}))},destroy(e){tr(e)}};function nr(e,t,i){const n=function(e){const t=e.options,i=t.fill;let n=G(i&&i.target,i);return void 0===n&&(n=!!t.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(e);if(X(n))return!isNaN(n.value)&&n;let a=parseFloat(n);return U(a)&&Math.floor(a)===a?("-"!==n[0]&&"+"!==n[0]||(a=t+a),!(a===t||a<0||a>=i)&&a):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}class ar{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,i){const{x:n,y:a,radius:r}=this;return t=t||{start:0,end:be},e.arc(n,a,r,t.end,t.start,!0),!i.bounds}interpolate(e){const{x:t,y:i,radius:n}=this,a=e.angle;return{x:t+Math.cos(a)*n,y:i+Math.sin(a)*n,angle:a}}}function rr(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:t,fill:i}=e,n=t.options,a=t.getLabels().length,r=[],s=n.reverse?t.max:t.min,o=n.reverse?t.min:t.max;let l,c,u;if(u="start"===i?s:"end"===i?o:X(i)?i.value:t.getBaseValue(),n.grid.circular)return c=t.getPointPositionForValue(0,s),new ar({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(u)});for(l=0;l<a;++l)r.push(t.getPointPositionForValue(l,u));return r}(e):function(e){const{scale:t={},fill:i}=e;let n,a=null;return"start"===i?a=t.bottom:"end"===i?a=t.top:X(i)?a=t.getPixelForValue(i.value):t.getBasePixel&&(a=t.getBasePixel()),U(a)?(n=t.isHorizontal(),{x:n?a:null,y:n?null:a}):null}(e)}function sr(e,t,i){for(;t>e;t--){const e=i[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function or(e,t,i){const n=[];for(let a=0;a<i.length;a++){const r=i[a],{first:s,last:o,point:l}=lr(r,t,"x");if(!(!l||s&&o))if(s)n.unshift(l);else if(e.push(l),!o)break}e.push(...n)}function lr(e,t,i){const n=e.interpolate(t,i);if(!n)return{};const a=n[i],r=e.segments,s=e.points;let o=!1,l=!1;for(let e=0;e<r.length;e++){const t=r[e],n=s[t.start][i],c=s[t.end][i];if(a>=n&&a<=c){o=a===n,l=a===c;break}}return{first:o,last:l,point:n}}function cr(e){const{chart:t,fill:i,line:n}=e;if(U(i))return function(e,t){const i=e.getDatasetMeta(t);return i&&e.isDatasetVisible(t)?i.dataset:null}(t,i);if("stack"===i)return function(e){const{scale:t,index:i,line:n}=e,a=[],r=n.segments,s=n.points,o=function(e,t){const i=[],n=e.getMatchingVisibleMetas("line");for(let e=0;e<n.length;e++){const a=n[e];if(a.index===t)break;a.hidden||i.unshift(a.dataset)}return i}(t,i);o.push(ur({x:null,y:t.bottom},n));for(let e=0;e<r.length;e++){const t=r[e];for(let e=t.start;e<=t.end;e++)or(a,s[e],o)}return new Wa({points:a,options:{}})}(e);if("shape"===i)return!0;const a=rr(e);return a instanceof ar?a:ur(a,n)}function ur(e,t){let i=[],n=!1;return q(e)?(n=!0,i=e):i=function(e,t){const{x:i=null,y:n=null}=e||{},a=t.points,r=[];return t.segments.forEach((({start:e,end:t})=>{t=sr(e,t,a);const s=a[e],o=a[t];null!==n?(r.push({x:s.x,y:n}),r.push({x:o.x,y:n})):null!==i&&(r.push({x:i,y:s.y}),r.push({x:i,y:o.y}))})),r}(e,t),i.length?new Wa({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function dr(e,t,i){let n=e[t].fill;const a=[t];let r;if(!i)return n;for(;!1!==n&&-1===a.indexOf(n);){if(!U(n))return n;if(r=e[n],!r)return!1;if(r.visible)return n;a.push(n),n=r.fill}return!1}function hr(e,t,i){e.beginPath(),t.path(e),e.lineTo(t.last().x,i),e.lineTo(t.first().x,i),e.closePath(),e.clip()}function fr(e,t,i,n){if(n)return;let a=t[e],r=i[e];return"angle"===e&&(a=Re(a),r=Re(r)),{property:e,start:a,end:r}}function pr(e,t,i,n){return e&&t?n(e[i],t[i]):e?e[i]:t?t[i]:0}function mr(e,t,i){const{top:n,bottom:a}=t.chart.chartArea,{property:r,start:s,end:o}=i||{};"x"===r&&(e.beginPath(),e.rect(s,n,o-s,a-n),e.clip())}function gr(e,t,i,n){const a=t.interpolate(i,n);a&&e.lineTo(a.x,a.y)}function vr(e,t){const{line:i,target:n,property:a,color:r,scale:s}=t,o=function(e,t,i){const n=e.segments,a=e.points,r=t.points,s=[];for(const e of n){let{start:n,end:o}=e;o=sr(n,o,a);const l=fr(i,a[n],a[o],e.loop);if(!t.segments){s.push({source:e,target:l,start:a[n],end:a[o]});continue}const c=Ni(t,l);for(const t of c){const n=fr(i,r[t.start],r[t.end],t.loop),o=ji(e,a,n);for(const e of o)s.push({source:e,target:t,start:{[i]:pr(l,n,"start",Math.max)},end:{[i]:pr(l,n,"end",Math.min)}})}}return s}(i,n,a);for(const{source:t,target:l,start:c,end:u}of o){const{style:{backgroundColor:o=r}={}}=t,d=!0!==n;e.save(),e.fillStyle=o,mr(e,s,d&&fr(a,c,u)),e.beginPath();const h=!!i.pathSegment(e,t);let f;if(d){h?e.closePath():gr(e,n,u,a);const t=!!n.pathSegment(e,l,{move:h,reverse:!0});f=h&&t,f||gr(e,n,c,a)}e.closePath(),e.fill(f?"evenodd":"nonzero"),e.restore()}}function yr(e,t,i){const n=cr(t),{line:a,scale:r,axis:s}=t,o=a.options,l=o.fill,c=o.backgroundColor,{above:u=c,below:d=c}=l||{};n&&a.points.length&&(Ke(e,i),function(e,t){const{line:i,target:n,above:a,below:r,area:s,scale:o}=t,l=i._loop?"angle":t.axis;e.save(),"x"===l&&r!==a&&(hr(e,n,s.top),vr(e,{line:i,target:n,color:a,scale:o,property:l}),e.restore(),e.save(),hr(e,n,s.bottom)),vr(e,{line:i,target:n,color:r,scale:o,property:l}),e.restore()}(e,{line:a,target:n,above:u,below:d,area:i,scale:r,axis:s}),Je(e))}var br={id:"filler",afterDatasetsUpdate(e,t,i){const n=(e.data.datasets||[]).length,a=[];let r,s,o,l;for(s=0;s<n;++s)r=e.getDatasetMeta(s),o=r.dataset,l=null,o&&o.options&&o instanceof Wa&&(l={visible:e.isDatasetVisible(s),index:s,fill:nr(o,s,n),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=l,a.push(l);for(s=0;s<n;++s)l=a[s],l&&!1!==l.fill&&(l.fill=dr(a,s,i.propagate))},beforeDraw(e,t,i){const n="beforeDraw"===i.drawTime,a=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let t=a.length-1;t>=0;--t){const i=a[t].$filler;i&&(i.line.updateControlPoints(r,i.axis),n&&yr(e.ctx,i,r))}},beforeDatasetsDraw(e,t,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=e.getSortedVisibleDatasetMetas();for(let t=n.length-1;t>=0;--t){const i=n[t].$filler;i&&yr(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,i){const n=t.meta.$filler;n&&!1!==n.fill&&"beforeDatasetDraw"===i.drawTime&&yr(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xr=(e,t)=>{let{boxHeight:i=t,boxWidth:n=t}=e;return e.usePointStyle&&(i=Math.min(i,t),n=Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}};class _r extends Mn{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,i){this.maxWidth=e,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=J(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,i)=>e.sort(t,i,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,n=Ft(i.font),a=n.size,r=this._computeTitleHeight(),{boxWidth:s,itemHeight:o}=xr(i,a);let l,c;t.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,a,s,o)+10):(c=this.maxHeight,l=this._fitCols(r,a,s,o)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,i,n){const{ctx:a,maxWidth:r,options:{labels:{padding:s}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+s;let u=e;a.textAlign="left",a.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((e,f)=>{const p=i+t/2+a.measureText(e.text).width;(0===f||l[l.length-1]+p+2*s>r)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),o[f]={left:0,top:h,row:d,width:p,height:n},l[l.length-1]+=p+s})),u}_fitCols(e,t,i,n){const{ctx:a,maxHeight:r,options:{labels:{padding:s}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-e;let u=s,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((e,r)=>{const m=i+t/2+a.measureText(e.text).width;r>0&&h+n+2*s>c&&(u+=d+s,l.push({width:d,height:h}),f+=d+s,p++,d=h=0),o[r]={left:f,top:h,col:p,width:m,height:n},d=Math.max(d,m),h+=n+s})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:n},rtl:r}}=this,s=Ei(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=a(i,this.left+n,this.right-this.lineWidths[r]);for(const l of t)r!==l.row&&(r=l.row,o=a(i,this.left+n,this.right-this.lineWidths[r])),l.top+=this.top+e+n,l.left=s.leftForLtr(s.x(o),l.width),o+=l.width+n}else{let r=0,o=a(i,this.top+e+n,this.bottom-this.columnSizes[r].height);for(const l of t)l.col!==r&&(r=l.col,o=a(i,this.top+e+n,this.bottom-this.columnSizes[r].height)),l.top=o,l.left+=this.left+n,l.left=s.leftForLtr(s.x(l.left),l.width),o+=l.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Ke(e,this),this._draw(),Je(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:i,ctx:n}=this,{align:s,labels:o}=e,l=ve.color,c=Ei(e.rtl,this.left,this.width),u=Ft(o.font),{color:d,padding:h}=o,f=u.size,p=f/2;let m;this.drawTitle(),n.textAlign=c.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=u.string;const{boxWidth:g,boxHeight:v,itemHeight:y}=xr(o,f),b=this.isHorizontal(),x=this._computeTitleHeight();m=b?{x:a(s,this.left+h,this.right-i[0]),y:this.top+h+x,line:0}:{x:this.left+h,y:a(s,this.top+x+h,this.bottom-t[0].height),line:0},Oi(this.ctx,e.textDirection);const _=y+h;this.legendItems.forEach(((w,k)=>{n.strokeStyle=w.fontColor||d,n.fillStyle=w.fontColor||d;const M=n.measureText(w.text).width,L=c.textAlign(w.textAlign||(w.textAlign=o.textAlign)),S=g+p+M;let A=m.x,T=m.y;c.setWidth(this.width),b?k>0&&A+S+h>this.right&&(T=m.y+=_,m.line++,A=m.x=a(s,this.left+h,this.right-i[m.line])):k>0&&T+_>this.bottom&&(A=m.x=A+t[m.line].width+h,m.line++,T=m.y=a(s,this.top+x+h,this.bottom-t[m.line].height));!function(e,t,i){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;n.save();const a=G(i.lineWidth,1);if(n.fillStyle=G(i.fillStyle,l),n.lineCap=G(i.lineCap,"butt"),n.lineDashOffset=G(i.lineDashOffset,0),n.lineJoin=G(i.lineJoin,"miter"),n.lineWidth=a,n.strokeStyle=G(i.strokeStyle,l),n.setLineDash(G(i.lineDash,[])),o.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:a},s=c.xPlus(e,g/2);Ge(n,r,s,t+p)}else{const r=t+Math.max((f-v)/2,0),s=c.leftForLtr(e,g),o=Nt(i.borderRadius);n.beginPath(),Object.values(o).some((e=>0!==e))?nt(n,{x:s,y:r,w:g,h:v,radius:o}):n.rect(s,r,g,v),n.fill(),0!==a&&n.stroke()}n.restore()}(c.x(A),T,w),A=r(L,A+g+p,b?A+S:this.right,e.rtl),function(e,t,i){tt(n,i.text,e,t+y/2,u,{strikethrough:i.hidden,textAlign:c.textAlign(i.textAlign)})}(c.x(A),T,w),b?m.x+=S+h:m.y+=_})),Pi(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,i=Ft(t.font),r=Ht(t.padding);if(!t.display)return;const s=Ei(e.rtl,this.left,this.width),o=this.ctx,l=t.position,c=i.size/2,u=r.top+c;let d,h=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+u,h=a(e.align,h,this.right-f);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);d=u+a(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=a(l,h,h+f);o.textAlign=s.textAlign(n(l)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=i.string,tt(o,t.text,p,d,i)}_computeTitleHeight(){const e=this.options.title,t=Ft(e.font),i=Ht(e.padding);return e.display?t.lineHeight+i.height:0}_getLegendItemAt(e,t){let i,n,a;if(e>=this.left&&e<=this.right&&t>=this.top&&t<=this.bottom)for(a=this.legendHitBoxes,i=0;i<a.length;++i)if(n=a[i],e>=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height)return this.legendItems[i];return null}handleEvent(e){const t=this.options;if(!function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const i=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){const r=this._hoveredItem,s=(a=i,null!==(n=r)&&null!==a&&n.datasetIndex===a.datasetIndex&&n.index===a.index);r&&!s&&J(t.onLeave,[e,r,this],this),this._hoveredItem=i,i&&!s&&J(t.onHover,[e,i,this],this)}else i&&J(t.onClick,[e,i,this],this);var n,a}}var wr={id:"legend",_element:_r,start(e,t,i){const n=e.legend=new _r({ctx:e.ctx,options:i,chart:e});ti.configure(e,n,i),ti.addBox(e,n)},stop(e){ti.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const n=e.legend;ti.configure(e,n,i),n.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const n=t.datasetIndex,a=i.chart;a.isDatasetVisible(n)?(a.hide(n),t.hidden=!0):(a.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:a,color:r}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const s=e.controller.getStyle(i?0:void 0),o=Ht(s.borderWidth);return{text:t[e.index].label,fillStyle:s.backgroundColor,fontColor:r,hidden:!e.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(o.width+o.height)/4,strokeStyle:s.borderColor,pointStyle:n||s.pointStyle,rotation:s.rotation,textAlign:a||s.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class kr extends Mn{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const n=q(i.text)?i.text.length:1;this._padding=Ht(i.padding);const a=n*Ft(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:i,bottom:n,right:r,options:s}=this,o=s.align;let l,c,u,d=0;return this.isHorizontal()?(c=a(o,i,r),u=t+e,l=r-i):("left"===s.position?(c=i+e,u=a(o,n,t),d=-.5*ye):(c=r-e,u=a(o,t,n),d=.5*ye),l=n-t),{titleX:c,titleY:u,maxWidth:l,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const i=Ft(t.font),a=i.lineHeight/2+this._padding.top,{titleX:r,titleY:s,maxWidth:o,rotation:l}=this._drawArgs(a);tt(e,t.text,0,0,i,{color:t.color,maxWidth:o,rotation:l,textAlign:n(t.align),textBaseline:"middle",translation:[r,s]})}}var Mr={id:"title",_element:kr,start(e,t,i){!function(e,t){const i=new kr({ctx:e.ctx,options:t,chart:e});ti.configure(e,i,t),ti.addBox(e,i),e.titleBlock=i}(e,i)},stop(e){const t=e.titleBlock;ti.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,i){const n=e.titleBlock;ti.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Lr=new WeakMap;var Sr={id:"subtitle",start(e,t,i){const n=new kr({ctx:e.ctx,options:i,chart:e});ti.configure(e,n,i),ti.addBox(e,n),Lr.set(e,n)},stop(e){ti.removeBox(e,Lr.get(e)),Lr.delete(e)},beforeUpdate(e,t,i){const n=Lr.get(e);ti.configure(e,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ar={average(e){if(!e.length)return!1;let t,i,n=0,a=0,r=0;for(t=0,i=e.length;t<i;++t){const i=e[t].element;if(i&&i.hasValue()){const e=i.tooltipPosition();n+=e.x,a+=e.y,++r}}return{x:n/r,y:a/r}},nearest(e,t){if(!e.length)return!1;let i,n,a,r=t.x,s=t.y,o=Number.POSITIVE_INFINITY;for(i=0,n=e.length;i<n;++i){const n=e[i].element;if(n&&n.hasValue()){const e=He(t,n.getCenterPoint());e<o&&(o=e,a=n)}}if(a){const e=a.tooltipPosition();r=e.x,s=e.y}return{x:r,y:s}}};function Tr(e,t){return t&&(q(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Cr(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Dr(e,t){const{element:i,datasetIndex:n,index:a}=t,r=e.getDatasetMeta(n).controller,{label:s,value:o}=r.getLabelAndValue(a);return{chart:e,label:s,parsed:r.getParsed(a),raw:e.data.datasets[n].data[a],formattedValue:o,dataset:r.getDataset(),dataIndex:a,datasetIndex:n,element:i}}function Er(e,t){const i=e._chart.ctx,{body:n,footer:a,title:r}=e,{boxWidth:s,boxHeight:o}=t,l=Ft(t.bodyFont),c=Ft(t.titleFont),u=Ft(t.footerFont),d=r.length,h=a.length,f=n.length,p=Ht(t.padding);let m=p.height,g=0,v=n.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=f*(t.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,i.measureText(e).width+y)};return i.save(),i.font=c.string,Q(e.title,b),i.font=l.string,Q(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?s+2+t.boxPadding:0,Q(n,(e=>{Q(e.before,b),Q(e.lines,b),Q(e.after,b)})),y=0,i.font=u.string,Q(e.footer,b),i.restore(),g+=p.width,{width:g,height:m}}function Or(e,t,i,n){const{x:a,width:r}=i,{width:s,chartArea:{left:o,right:l}}=e;let c="center";return"center"===n?c=a<=(o+l)/2?"left":"right":a<=r/2?c="left":a>=s-r/2&&(c="right"),function(e,t,i,n){const{x:a,width:r}=n,s=i.caretSize+i.caretPadding;return"left"===e&&a+r+s>t.width||"right"===e&&a-r-s<0||void 0}(c,e,t,i)&&(c="center"),c}function Pr(e,t,i){const n=t.yAlign||function(e,t){const{y:i,height:n}=t;return i<n/2?"top":i>e.height-n/2?"bottom":"center"}(e,i);return{xAlign:t.xAlign||Or(e,t,i,n),yAlign:n}}function Yr(e,t,i,n){const{caretSize:a,caretPadding:r,cornerRadius:s}=e,{xAlign:o,yAlign:l}=i,c=a+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Nt(s);let p=function(e,t){let{x:i,width:n}=e;return"right"===t?i-=n:"center"===t&&(i-=n/2),i}(t,o);const m=function(e,t,i){let{y:n,height:a}=e;return"top"===t?n+=i:n-="bottom"===t?a+i:a/2,n}(t,l,c);return"center"===l?"left"===o?p+=c:"right"===o&&(p-=c):"left"===o?p-=Math.max(u,h)+r:"right"===o&&(p+=Math.max(d,f)+r),{x:Be(p,0,n.width-t.width),y:Be(m,0,n.height-t.height)}}function Ir(e,t,i){const n=Ht(i.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-n.right:e.x+n.left}function jr(e){return Tr([],Cr(e))}function Nr(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}class Hr extends Mn{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this._chart,i=this.options.setContext(this.getContext()),n=i.enabled&&t.options.animation&&i.animations,a=new dn(this._chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=(e=this._chart.getContext(),t=this,i=this._tooltipItems,Bt(e,{tooltip:t,tooltipItems:i,type:"tooltip"})));var e,t,i}getTitle(e,t){const{callbacks:i}=t,n=i.beforeTitle.apply(this,[e]),a=i.title.apply(this,[e]),r=i.afterTitle.apply(this,[e]);let s=[];return s=Tr(s,Cr(n)),s=Tr(s,Cr(a)),s=Tr(s,Cr(r)),s}getBeforeBody(e,t){return jr(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:i}=t,n=[];return Q(e,(e=>{const t={before:[],lines:[],after:[]},a=Nr(i,e);Tr(t.before,Cr(a.beforeLabel.call(this,e))),Tr(t.lines,a.label.call(this,e)),Tr(t.after,Cr(a.afterLabel.call(this,e))),n.push(t)})),n}getAfterBody(e,t){return jr(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:i}=t,n=i.beforeFooter.apply(this,[e]),a=i.footer.apply(this,[e]),r=i.afterFooter.apply(this,[e]);let s=[];return s=Tr(s,Cr(n)),s=Tr(s,Cr(a)),s=Tr(s,Cr(r)),s}_createItems(e){const t=this._active,i=this._chart.data,n=[],a=[],r=[];let s,o,l=[];for(s=0,o=t.length;s<o;++s)l.push(Dr(this._chart,t[s]));return e.filter&&(l=l.filter(((t,n,a)=>e.filter(t,n,a,i)))),e.itemSort&&(l=l.sort(((t,n)=>e.itemSort(t,n,i)))),Q(l,(t=>{const i=Nr(e.callbacks,t);n.push(i.labelColor.call(this,t)),a.push(i.labelPointStyle.call(this,t)),r.push(i.labelTextColor.call(this,t))})),this.labelColors=n,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(e,t){const i=this.options.setContext(this.getContext()),n=this._active;let a,r=[];if(n.length){const e=Ar[i.position].call(this,n,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const t=this._size=Er(this,i),s=Object.assign({},e,t),o=Pr(this._chart,i,s),l=Yr(i,s,o,this._chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,a={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&i.external&&i.external.call(this,{chart:this._chart,tooltip:this,replay:t})}drawCaret(e,t,i,n){const a=this.getCaretPosition(e,i,n);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,i){const{xAlign:n,yAlign:a}=this,{caretSize:r,cornerRadius:s}=i,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:u}=Nt(s),{x:d,y:h}=e,{width:f,height:p}=t;let m,g,v,y,b,x;return"center"===a?(b=h+p/2,"left"===n?(m=d,g=m-r,y=b+r,x=b-r):(m=d+f,g=m+r,y=b-r,x=b+r),v=m):(g="left"===n?d+Math.max(o,c)+r:"right"===n?d+f-Math.max(l,u)-r:this.caretX,"top"===a?(y=h,b=y-r,m=g-r,v=g+r):(y=h+p,b=y+r,m=g+r,v=g-r),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(e,t,i){const n=this.title,a=n.length;let r,s,o;if(a){const l=Ei(i.rtl,this.x,this.width);for(e.x=Ir(this,i.titleAlign,i),t.textAlign=l.textAlign(i.titleAlign),t.textBaseline="middle",r=Ft(i.titleFont),s=i.titleSpacing,t.fillStyle=i.titleColor,t.font=r.string,o=0;o<a;++o)t.fillText(n[o],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+s,o+1===a&&(e.y+=i.titleMarginBottom-s)}}_drawColorBox(e,t,i,n,a){const r=this.labelColors[i],s=this.labelPointStyles[i],{boxHeight:o,boxWidth:l,boxPadding:c}=a,u=Ft(a.bodyFont),d=Ir(this,"left",a),h=n.x(d),f=o<u.lineHeight?(u.lineHeight-o)/2:0,p=t.y+f;if(a.usePointStyle){const t={radius:Math.min(l,o)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},i=n.leftForLtr(h,l)+l/2,c=p+o/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,Ge(e,t,i,c),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,Ge(e,t,i,c)}else{e.lineWidth=r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;const t=n.leftForLtr(h,l-c),i=n.leftForLtr(n.xPlus(h,1),l-c-2),s=Nt(r.borderRadius);Object.values(s).some((e=>0!==e))?(e.beginPath(),e.fillStyle=a.multiKeyBackground,nt(e,{x:t,y:p,w:l,h:o,radius:s}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),nt(e,{x:i,y:p+1,w:l-2,h:o-2,radius:s}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(t,p,l,o),e.strokeRect(t,p,l,o),e.fillStyle=r.backgroundColor,e.fillRect(i,p+1,l-2,o-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,t,i){const{body:n}=this,{bodySpacing:a,bodyAlign:r,displayColors:s,boxHeight:o,boxWidth:l,boxPadding:c}=i,u=Ft(i.bodyFont);let d=u.lineHeight,h=0;const f=Ei(i.rtl,this.x,this.width),p=function(i){t.fillText(i,f.x(e.x+h),e.y+d/2),e.y+=d+a},m=f.textAlign(r);let g,v,y,b,x,_,w;for(t.textAlign=r,t.textBaseline="middle",t.font=u.string,e.x=Ir(this,m,i),t.fillStyle=i.bodyColor,Q(this.beforeBody,p),h=s&&"right"!==m?"center"===r?l/2+c:l+2+c:0,b=0,_=n.length;b<_;++b){for(g=n[b],v=this.labelTextColors[b],t.fillStyle=v,Q(g.before,p),y=g.lines,s&&y.length&&(this._drawColorBox(t,e,b,f,i),d=Math.max(u.lineHeight,o)),x=0,w=y.length;x<w;++x)p(y[x]),d=u.lineHeight;Q(g.after,p)}h=0,d=u.lineHeight,Q(this.afterBody,p),e.y-=a}drawFooter(e,t,i){const n=this.footer,a=n.length;let r,s;if(a){const o=Ei(i.rtl,this.x,this.width);for(e.x=Ir(this,i.footerAlign,i),e.y+=i.footerMarginTop,t.textAlign=o.textAlign(i.footerAlign),t.textBaseline="middle",r=Ft(i.footerFont),t.fillStyle=i.footerColor,t.font=r.string,s=0;s<a;++s)t.fillText(n[s],o.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i.footerSpacing}}drawBackground(e,t,i,n){const{xAlign:a,yAlign:r}=this,{x:s,y:o}=e,{width:l,height:c}=i,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Nt(n.cornerRadius);t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.beginPath(),t.moveTo(s+u,o),"top"===r&&this.drawCaret(e,t,i,n),t.lineTo(s+l-d,o),t.quadraticCurveTo(s+l,o,s+l,o+d),"center"===r&&"right"===a&&this.drawCaret(e,t,i,n),t.lineTo(s+l,o+c-f),t.quadraticCurveTo(s+l,o+c,s+l-f,o+c),"bottom"===r&&this.drawCaret(e,t,i,n),t.lineTo(s+h,o+c),t.quadraticCurveTo(s,o+c,s,o+c-h),"center"===r&&"left"===a&&this.drawCaret(e,t,i,n),t.lineTo(s,o+u),t.quadraticCurveTo(s,o,s+u,o),t.closePath(),t.fill(),n.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this._chart,i=this.$animations,n=i&&i.x,a=i&&i.y;if(n||a){const i=Ar[e.position].call(this,this._active,this._eventPosition);if(!i)return;const r=this._size=Er(this,e),s=Object.assign({},i,this._size),o=Pr(t,e,s),l=Yr(e,s,o,t);n._to===l.x&&a._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=r.width,this.height=r.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}draw(e){const t=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(t);const n={width:this.width,height:this.height},a={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=Ht(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=i,this.drawBackground(a,e,n,t),Oi(e,t.textDirection),a.y+=r.top,this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),Pi(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const i=this._active,n=e.map((({datasetIndex:e,index:t})=>{const i=this._chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[t],index:t}})),a=!ee(i,n),r=this._positionChanged(n,t);(a||r)&&(this._active=n,this._eventPosition=t,this.update(!0))}handleEvent(e,t){const i=this.options,n=this._active||[];let a=!1,r=[];"mouseout"!==e.type&&(r=this._chart.getElementsAtEventForMode(e,i.mode,i,t),i.reverse&&r.reverse());const s=this._positionChanged(r,e);return a=t||!ee(r,n)||s,a&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),a}_positionChanged(e,t){const{caretX:i,caretY:n,options:a}=this,r=Ar[a.position].call(this,e,t);return!1!==r&&(i!==r.x||n!==r.y)}}Hr.positioners=Ar;var Fr={id:"tooltip",_element:Hr,positioners:Ar,afterInit(e,t,i){i&&(e.tooltip=new Hr({_chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip,i={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",i)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i))},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:B,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return i[t.dataIndex]}return""},afterTitle:B,beforeBody:B,beforeLabel:B,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const i=e.formattedValue;return V(i)||(t+=i),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:B,afterBody:B,beforeFooter:B,footer:B,afterFooter:B}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Rr=Object.freeze({__proto__:null,Decimation:ir,Filler:br,Legend:wr,SubTitle:Sr,Title:Mr,Tooltip:Fr});function zr(e,t,i){const n=e.indexOf(t);if(-1===n)return((e,t,i)=>"string"==typeof t?e.push(t)-1:isNaN(t)?null:i)(e,t,i);return n!==e.lastIndexOf(t)?i:n}class Br extends In{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,t){if(V(e))return null;const i=this.getLabels();return((e,t)=>null===e?null:Be(Math.round(e),0,t))(t=isFinite(t)&&i[t]===e?t:zr(i,e,G(t,e)),i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(i=0),t||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const e=this.min,t=this.max,i=this.options.offset,n=[];let a=this.getLabels();a=0===e&&t===a.length-1?a:a.slice(e,t+1),this._valueRange=Math.max(a.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=e;i<=t;i++)n.push({value:i});return n}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function Wr(e,t,{horizontal:i,minRotation:n}){const a=Ye(n),r=(i?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/r,s)}Br.id="category",Br.defaults={ticks:{callback:Br.prototype.getLabelForValue}};class Vr extends In{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return V(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:n,max:a}=this;const r=e=>n=t?n:e,s=e=>a=i?a:e;if(e){const e=Ae(n),t=Ae(a);e<0&&t<0?s(0):e>0&&t>0&&r(0)}if(n===a){let t=1;(a>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*a)),s(a+t),e||r(n-t)}this.min=n,this.max=a}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:i,stepSize:n}=e;return n?(t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(e,t){const i=[],{bounds:n,step:a,min:r,max:s,precision:o,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=a||1,f=c-1,{min:p,max:m}=t,g=!V(r),v=!V(s),y=!V(l),b=(m-p)/(u+1);let x,_,w,k,M=Te((m-p)/f/h)*h;if(M<1e-14&&!g&&!v)return[{value:p},{value:m}];k=Math.ceil(m/M)-Math.floor(p/M),k>f&&(M=Te(k*M/f/h)*h),V(o)||(x=Math.pow(10,o),M=Math.ceil(M*x)/x),"ticks"===n?(_=Math.floor(p/M)*M,w=Math.ceil(m/M)*M):(_=p,w=m),g&&v&&a&&Oe((s-r)/a,M/1e3)?(k=Math.round(Math.min((s-r)/M,c)),M=(s-r)/k,_=r,w=s):y?(_=g?r:_,w=v?s:w,k=l-1,M=(w-_)/k):(k=(w-_)/M,k=Ee(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const L=Math.max(je(M),je(_));x=Math.pow(10,V(o)?L:o),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let S=0;for(g&&(d&&_!==r?(i.push({value:r}),_<r&&S++,Ee(Math.round((_+S*M)*x)/x,r,Wr(r,b,e))&&S++):_<r&&S++);S<k;++S)i.push({value:Math.round((_+S*M)*x)/x});return v&&d&&w!==s?i.length&&Ee(i[i.length-1].value,s,Wr(s,b,e))?i[i.length-1].value=s:i.push({value:s}):v&&w!==s||i.push({value:w}),i}({maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Pe(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const e=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const n=(i-t)/Math.max(e.length-1,1)/2;t-=n,i+=n}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(e){return Di(e,this.chart.options.locale)}}class qr extends Vr{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=U(e)?e:0,this.max=U(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,i=Ye(this.options.ticks.minRotation),n=(e?Math.sin(i):Math.cos(i))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,a.lineHeight/n))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function Xr(e){return 1===e/Math.pow(10,Math.floor(Se(e)))}qr.id="linear",qr.defaults={ticks:{callback:Sn.formatters.numeric}};class Ur extends In{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const i=Vr.prototype.parse.apply(this,[e,t]);if(0!==i)return U(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=U(e)?Math.max(0,e):null,this.max=U(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let i=this.min,n=this.max;const a=t=>i=e?i:t,r=e=>n=t?n:e,s=(e,t)=>Math.pow(10,Math.floor(Se(e))+t);i===n&&(i<=0?(a(1),r(10)):(a(s(i,-1)),r(s(n,1)))),i<=0&&a(s(n,-1)),n<=0&&r(s(i,1)),this._zero&&this.min!==this._suggestedMin&&i===s(this.min,0)&&a(s(i,-1)),this.min=i,this.max=n}buildTicks(){const e=this.options,t=function(e,t){const i=Math.floor(Se(t.max)),n=Math.ceil(t.max/Math.pow(10,i)),a=[];let r=$(e.min,Math.pow(10,Math.floor(Se(t.min)))),s=Math.floor(Se(r)),o=Math.floor(r/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do{a.push({value:r,major:Xr(r)}),++o,10===o&&(o=1,++s,l=s>=0?1:l),r=Math.round(o*Math.pow(10,s)*l)/l}while(s<i||s===i&&o<n);const c=$(e.max,r);return a.push({value:c,major:Xr(r)}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Pe(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":Di(e,this.chart.options.locale)}configure(){const e=this.min;super.configure(),this._startValue=Se(e),this._valueRange=Se(this.max)-Se(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Se(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function $r(e){const t=e.ticks;if(t.display&&e.display){const e=Ht(t.backdropPadding);return G(t.font&&t.font.size,ve.font.size)+e.height}return 0}function Gr(e,t,i,n,a){return e===n||e===a?{start:t-i/2,end:t+i/2}:e<n||e>a?{start:t-i,end:t}:{start:t,end:t+i}}function Zr(e){const t={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={},n=[],a=[],r=e.getLabels().length;for(let c=0;c<r;c++){const r=e.options.pointLabels.setContext(e.getPointLabelContext(c));a[c]=r.padding;const u=e.getPointPosition(c,e.drawingArea+a[c]),d=Ft(r.font),h=(s=e.ctx,o=d,l=q(l=e._pointLabels[c])?l:[l],{w:Xe(s,o.string,l),h:l.length*o.lineHeight});n[c]=h;const f=e.getIndexAngle(c),p=Ie(f),m=Gr(p,u.x,h.w,0,180),g=Gr(p,u.y,h.h,90,270);m.start<t.l&&(t.l=m.start,i.l=f),m.end>t.r&&(t.r=m.end,i.r=f),g.start<t.t&&(t.t=g.start,i.t=f),g.end>t.b&&(t.b=g.end,i.b=f)}var s,o,l;e._setReductions(e.drawingArea,t,i),e._pointLabelItems=function(e,t,i){const n=[],a=e.getLabels().length,r=e.options,s=$r(r),o=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max);for(let r=0;r<a;r++){const a=0===r?s/2:0,l=e.getPointPosition(r,o+a+i[r]),c=Ie(e.getIndexAngle(r)),u=t[r],d=Qr(l.y,u.h,c),h=Kr(c),f=Jr(l.x,u.w,h);n.push({x:l.x,y:d,textAlign:h,left:f,top:d,right:f+u.w,bottom:d+u.h})}return n}(e,n,a)}function Kr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Jr(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function Qr(e,t,i){return 90===i||270===i?e-=t/2:(i>270||i<90)&&(e-=t),e}function es(e,t,i,n){const{ctx:a}=e;if(i)a.arc(e.xCenter,e.yCenter,t,0,be);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let r=1;r<n;r++)i=e.getPointPosition(r,t),a.lineTo(i.x,i.y)}}function ts(e){return De(e)?e:0}Ur.id="logarithmic",Ur.defaults={ticks:{callback:Sn.formatters.logarithmic,major:{enabled:!0}}};class is extends Vr{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){this.width=this.maxWidth,this.height=this.maxHeight,this.paddingTop=$r(this.options)/2,this.xCenter=Math.floor(this.width/2),this.yCenter=Math.floor((this.height-this.paddingTop)/2),this.drawingArea=Math.min(this.height-this.paddingTop,this.width)/2}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=U(e)&&!isNaN(e)?e:0,this.max=U(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/$r(this.options))}generateTickLabels(e){Vr.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const i=J(this.options.pointLabels.callback,[e,t],this);return i||0===i?i:""}))}fit(){const e=this.options;e.display&&e.pointLabels.display?Zr(this):this.setCenterPoint(0,0,0,0)}_setReductions(e,t,i){let n=t.l/Math.sin(i.l),a=Math.max(t.r-this.width,0)/Math.sin(i.r),r=-t.t/Math.cos(i.t),s=-Math.max(t.b-(this.height-this.paddingTop),0)/Math.cos(i.b);n=ts(n),a=ts(a),r=ts(r),s=ts(s),this.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(n+a)/2),Math.floor(e-(r+s)/2))),this.setCenterPoint(n,a,r,s)}setCenterPoint(e,t,i,n){const a=this.width-t-this.drawingArea,r=e+this.drawingArea,s=i+this.drawingArea,o=this.height-this.paddingTop-n-this.drawingArea;this.xCenter=Math.floor((r+a)/2+this.left),this.yCenter=Math.floor((s+o)/2+this.top+this.paddingTop)}getIndexAngle(e){return Re(e*(be/this.getLabels().length)+Ye(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(V(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(V(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const i=t[e];return function(e,t,i){return Bt(e,{label:i,index:t,type:"pointLabel"})}(this.getContext(),e,i)}}getPointPosition(e,t){const i=this.getIndexAngle(e)-ke;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:i,right:n,bottom:a}=this._pointLabelItems[e];return{left:t,top:i,right:n,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const i=this.ctx;i.save(),i.beginPath(),es(this,this.getDistanceFromCenterForValue(this._endValue),t,this.getLabels().length),i.closePath(),i.fillStyle=e,i.fill(),i.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:i,grid:n}=t,a=this.getLabels().length;let r,s,o;if(t.pointLabels.display&&function(e,t){const{ctx:i,options:{pointLabels:n}}=e;for(let a=t-1;a>=0;a--){const t=n.setContext(e.getPointLabelContext(a)),r=Ft(t.font),{x:s,y:o,textAlign:l,left:c,top:u,right:d,bottom:h}=e._pointLabelItems[a],{backdropColor:f}=t;if(!V(f)){const e=Ht(t.backdropPadding);i.fillStyle=f,i.fillRect(c-e.left,u-e.top,d-c+e.width,h-u+e.height)}tt(i,e._pointLabels[a],s,o+r.lineHeight/2,r,{color:t.color,textAlign:l,textBaseline:"middle"})}}(this,a),n.display&&this.ticks.forEach(((e,t)=>{if(0!==t){s=this.getDistanceFromCenterForValue(e.value);!function(e,t,i,n){const a=e.ctx,r=t.circular,{color:s,lineWidth:o}=t;!r&&!n||!s||!o||i<0||(a.save(),a.strokeStyle=s,a.lineWidth=o,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),es(e,i,r,n),a.closePath(),a.stroke(),a.restore())}(this,n.setContext(this.getContext(t-1)),s,a)}})),i.display){for(e.save(),r=this.getLabels().length-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:a,lineWidth:l}=n;l&&a&&(e.lineWidth=l,e.strokeStyle=a,e.setLineDash(n.borderDash),e.lineDashOffset=n.borderDashOffset,s=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),o=this.getPointPosition(r,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(o.x,o.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,i=t.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let a,r;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((n,s)=>{if(0===s&&!t.reverse)return;const o=i.setContext(this.getContext(s)),l=Ft(o.font);if(a=this.getDistanceFromCenterForValue(this.ticks[s].value),o.showLabelBackdrop){e.font=l.string,r=e.measureText(n.label).width,e.fillStyle=o.backdropColor;const t=Ht(o.backdropPadding);e.fillRect(-r/2-t.left,-a-l.size/2-t.top,r+t.width,l.size+t.height)}tt(e,n.label,0,-a,l,{color:o.color})})),e.restore()}drawTitle(){}}is.id="radialLinear",is.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Sn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5}},is.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},is.descriptors={angleLines:{_fallback:"grid"}};const ns={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},as=Object.keys(ns);function rs(e,t){return e-t}function ss(e,t){if(V(t))return null;const i=e._adapter,{parser:n,round:a,isoWeekday:r}=e._parseOpts;let s=t;return"function"==typeof n&&(s=n(s)),U(s)||(s="string"==typeof n?i.parse(s,n):i.parse(s)),null===s?null:(a&&(s="week"!==a||!De(r)&&!0!==r?i.startOf(s,a):i.startOf(s,"isoWeek",r)),+s)}function os(e,t,i,n){const a=as.length;for(let r=as.indexOf(e);r<a-1;++r){const e=ns[as[r]],a=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((i-t)/(a*e.size))<=n)return as[r]}return as[a-1]}function ls(e,t,i){if(i){if(i.length){const{lo:n,hi:a}=at(i,t);e[i[n]>=t?i[n]:i[a]]=!0}}else e[t]=!0}function cs(e,t,i){const n=[],a={},r=t.length;let s,o;for(s=0;s<r;++s)o=t[s],a[o]=s,n.push({value:o,major:!1});return 0!==r&&i?function(e,t,i,n){const a=e._adapter,r=+a.startOf(t[0].value,n),s=t[t.length-1].value;let o,l;for(o=r;o<=s;o=+a.add(o,1,n))l=i[o],l>=0&&(t[l].major=!0);return t}(e,n,a,i):n}class us extends In{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const i=e.time||(e.time={}),n=this._adapter=new da._date(e.adapters.date);re(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:ss(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,i=e.time.unit||"day";let{min:n,max:a,minDefined:r,maxDefined:s}=this.getUserBounds();function o(e){r||isNaN(e.min)||(n=Math.min(n,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}r&&s||(o(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||o(this.getMinMax(!1))),n=U(n)&&!isNaN(n)?n:+t.startOf(Date.now(),i),a=U(a)&&!isNaN(a)?a:+t.endOf(Date.now(),i)+1,this.min=Math.min(n,a-1),this.max=Math.max(n+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],i=e[e.length-1]),{min:t,max:i}}buildTicks(){const e=this.options,t=e.time,i=e.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const a=this.min,r=ot(n,a,this.max);return this._unit=t.unit||(i.autoSkip?os(t.minUnit,this.min,this.max,this._getLabelCapacity(a)):function(e,t,i,n,a){for(let r=as.length-1;r>=as.indexOf(i);r--){const i=as[r];if(ns[i].common&&e._adapter.diff(a,n,i)>=t-1)return i}return as[i?as.indexOf(i):0]}(this,r.length,t.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(e){for(let t=as.indexOf(e)+1,i=as.length;t<i;++t)if(ns[as[t]].common)return as[t]}(this._unit):void 0,this.initOffsets(n),e.reverse&&r.reverse(),cs(this,r,this._majorUnit)}initOffsets(e){let t,i,n=0,a=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),n=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,i=this.getDecimalForValue(e[e.length-1]),a=1===e.length?i:(i-this.getDecimalForValue(e[e.length-2]))/2);const r=e.length<3?.5:.25;n=Be(n,0,r),a=Be(a,0,r),this._offsets={start:n,end:a,factor:1/(n+1+a)}}_generate(){const e=this._adapter,t=this.min,i=this.max,n=this.options,a=n.time,r=a.unit||os(a.minUnit,t,i,this._getLabelCapacity(t)),s=G(a.stepSize,1),o="week"===r&&a.isoWeekday,l=De(o)||!0===o,c={};let u,d,h=t;if(l&&(h=+e.startOf(h,"isoWeek",o)),h=+e.startOf(h,l?"day":r),e.diff(i,t,r)>1e5*s)throw new Error(t+" and "+i+" are too far apart with stepSize of "+s+" "+r);const f="data"===n.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<i;u=+e.add(u,s,r),d++)ls(c,u,f);return u!==i&&"ticks"!==n.bounds&&1!==d||ls(c,u,f),Object.keys(c).sort(((e,t)=>e-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,i=this.options.time;return i.tooltipFormat?t.format(e,i.tooltipFormat):t.format(e,i.displayFormats.datetime)}_tickFormatFunction(e,t,i,n){const a=this.options,r=a.time.displayFormats,s=this._unit,o=this._majorUnit,l=s&&r[s],c=o&&r[o],u=i[t],d=o&&c&&u&&u.major,h=this._adapter.format(e,n||(d?c:l)),f=a.ticks.callback;return f?J(f,[h,t,i],this):h}generateTickLabels(e){let t,i,n;for(t=0,i=e.length;t<i;++t)n=e[t],n.label=this._tickFormatFunction(n.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+i)*t.factor)}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,i=this.ctx.measureText(e).width,n=Ye(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(n),r=Math.sin(n),s=this._resolveTickFontOptions(0).size;return{w:i*a+s*r,h:i*r+s*a}}_getLabelCapacity(e){const t=this.options.time,i=t.displayFormats,n=i[t.unit]||i.millisecond,a=this._tickFormatFunction(e,0,cs(this,[e],this._majorUnit),n),r=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return s>0?s:1}getDataTimestamps(){let e,t,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,t=n.length;e<t;++e)i=i.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const e=this._cache.labels||[];let t,i;if(e.length)return e;const n=this.getLabels();for(t=0,i=n.length;t<i;++t)e.push(ss(this,n[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return dt(e.sort(rs))}}function ds(e,t,i){let n,a,r,s,o=0,l=e.length-1;i?(t>=e[o].pos&&t<=e[l].pos&&({lo:o,hi:l}=rt(e,"pos",t)),({pos:n,time:r}=e[o]),({pos:a,time:s}=e[l])):(t>=e[o].time&&t<=e[l].time&&({lo:o,hi:l}=rt(e,"time",t)),({time:n,pos:r}=e[o]),({time:a,pos:s}=e[l]));const c=a-n;return c?r+(s-r)*(t-n)/c:r}us.id="time",us.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class hs extends us{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=ds(t,this.min),this._tableRange=ds(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:i}=this,n=[],a=[];let r,s,o,l,c;for(r=0,s=e.length;r<s;++r)l=e[r],l>=t&&l<=i&&n.push(l);if(n.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(r=0,s=n.length;r<s;++r)c=n[r+1],o=n[r-1],l=n[r],Math.round((c+o)/2)!==l&&a.push({time:l,pos:r/(s-1)});return a}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return e=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,e=this._cache.all=e,e}getDecimalForValue(e){return(ds(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return ds(this._table,i*this._tableRange+this._minPos,!0)}}hs.id="timeseries",hs.defaults=us.defaults;var fs=Object.freeze({__proto__:null,CategoryScale:Br,LinearScale:qr,LogarithmicScale:Ur,RadialLinearScale:is,TimeScale:us,TimeSeriesScale:hs});return sa.register(Ta,fs,Qa,Rr),sa.helpers={...Bi},sa._adapters=da,sa.Animation=cn,sa.Animations=dn,sa.animator=s,sa.controllers=Nn.controllers.items,sa.DatasetController=kn,sa.Element=Mn,sa.elements=Qa,sa.Interaction=Et,sa.layouts=ti,sa.platforms=sn,sa.Scale=In,sa.Ticks=Sn,Object.assign(sa,Ta,fs,Qa,Rr,sn),sa.Chart=sa,"undefined"!=typeof window&&(window.Chart=sa),sa})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).countUp={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},t.apply(this,arguments)},i=function(){function e(e,i,n){var a=this;this.target=e,this.endVal=i,this.options=n,this.version="2.0.8",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(e){a.startTime||(a.startTime=e);var t=e-a.startTime;a.remaining=a.duration-t,a.useEasing?a.countDown?a.frameVal=a.startVal-a.easingFn(t,0,a.startVal-a.endVal,a.duration):a.frameVal=a.easingFn(t,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(t/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(t/a.duration),a.countDown?a.frameVal=a.frameVal<a.endVal?a.endVal:a.frameVal:a.frameVal=a.frameVal>a.endVal?a.endVal:a.frameVal,a.frameVal=Number(a.frameVal.toFixed(a.options.decimalPlaces)),a.printValue(a.frameVal),t<a.duration?a.rAF=requestAnimationFrame(a.count):null!==a.finalEndVal?a.update(a.finalEndVal):a.callback&&a.callback()},this.formatNumber=function(e){var t,i,n,r,s=e<0?"-":"";t=Math.abs(e).toFixed(a.options.decimalPlaces);var o=(t+="").split(".");if(i=o[0],n=o.length>1?a.options.decimal+o[1]:"",a.options.useGrouping){r="";for(var l=0,c=i.length;l<c;++l)0!==l&&l%3==0&&(r=a.options.separator+r),r=i[c-l-1]+r;i=r}return a.options.numerals&&a.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]})),n=n.replace(/[0-9]/g,(function(e){return a.options.numerals[+e]}))),s+a.options.prefix+i+n+a.options.suffix},this.easeOutExpo=function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))*1024/1023+t},this.options=t(t({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(i),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold){this.finalEndVal=e;var i=this.countDown?1:-1;this.endVal=e+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.callback=e,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t=this.formattingFn(e);"INPUT"===this.el.tagName?this.el.value=t:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=t:this.el.innerHTML=t},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: "+e,null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();e.CountUp=i,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){function t(){for(var e=0;e<w.length;e++)w[e][0](w[e][1]);w=[],m=!1}function i(e,i){w.push([e,i]),m||(m=!0,_(t,0))}function n(e){var t=(i=e.owner).state_,i=i.data_,n=e[t];if(e=e.then,"function"==typeof n){t=y;try{i=n(i)}catch(t){o(e,t)}}a(e,i)||(t===y&&r(e,i),t===b&&o(e,i))}function a(e,t){var i;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){i||(i=!0,t!==n?r(e,n):s(e,n))}),(function(t){i||(i=!0,o(e,t))})),!0}}catch(t){return i||o(e,t),!0}return!1}function r(e,t){e!==t&&a(e,t)||s(e,t)}function s(e,t){e.state_===g&&(e.state_=v,e.data_=t,i(c,e))}function o(e,t){e.state_===g&&(e.state_=v,e.data_=t,i(u,e))}function l(e){var t=e.then_;for(e.then_=void 0,e=0;e<t.length;e++)n(t[e])}function c(e){e.state_=y,l(e)}function u(e){e.state_=b,l(e)}function d(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!1==this instanceof d)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function i(e){o(t,e)}try{e((function(e){r(t,e)}),i)}catch(e){i(e)}}(e,this)}var h,f=e.Promise,p=f&&"resolve"in f&&"reject"in f&&"all"in f&&"race"in f&&(new f((function(e){h=e})),"function"==typeof h);"undefined"!=typeof exports&&exports?(exports.Promise=p?f:d,exports.Polyfill=d):"function"==typeof define&&define.amd?define((function(){return p?f:d})):p||(e.Promise=d);var m,g="pending",v="sealed",y="fulfilled",b="rejected",x=function(){},_="undefined"!=typeof setImmediate?setImmediate:setTimeout,w=[];d.prototype={constructor:d,state_:g,then_:null,data_:void 0,then:function(e,t){var a={owner:this,then:new this.constructor(x),fulfilled:e,rejected:t};return this.state_===y||this.state_===b?i(n,a):this.then_.push(a),a.then},catch:function(e){return this.then(null,e)}},d.all=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,i){function n(e){return s++,function(i){r[e]=i,--s||t(r)}}for(var a,r=[],s=0,o=0;o<e.length;o++)(a=e[o])&&"function"==typeof a.then?a.then(n(o),i):r[o]=a;s||t(r)}))},d.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,i){for(var n,a=0;a<e.length;a++)(n=e[a])&&"function"==typeof n.then?n.then(t,i):t(n)}))},d.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this((function(t){t(e)}))},d.reject=function(e){return new this((function(t,i){i(e)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Sweetalert2=t()}(this,(function(){"use strict";const e=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),t="SweetAlert2:",i=e=>e.charAt(0).toUpperCase()+e.slice(1),n=e=>Array.prototype.slice.call(e),a=e=>{console.warn("".concat(t," ").concat("object"==typeof e?e.join(" "):e))},r=e=>{console.error("".concat(t," ").concat(e))},s=[],o=e=>"function"==typeof e?e():e,l=e=>e&&"function"==typeof e.toPromise,c=e=>l(e)?e.toPromise():Promise.resolve(e),u=e=>e&&Promise.resolve(e)===e,d=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);var h=e=>{const t={};for(const i in e)t[e[i]]="swal2-"+e[i];return t};const f=h(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),p=h(["success","warning","info","question","error"]),m=()=>document.body.querySelector(".".concat(f.container)),g=e=>{const t=m();return t?t.querySelector(e):null},v=e=>g(".".concat(e)),y=()=>v(f.popup),b=()=>v(f.icon),x=()=>v(f.title),_=()=>v(f["html-container"]),w=()=>v(f.image),k=()=>v(f["progress-steps"]),M=()=>v(f["validation-message"]),L=()=>g(".".concat(f.actions," .").concat(f.confirm)),S=()=>g(".".concat(f.actions," .").concat(f.deny)),A=()=>g(".".concat(f.loader)),T=()=>g(".".concat(f.actions," .").concat(f.cancel)),C=()=>v(f.actions),D=()=>v(f.footer),E=()=>v(f["timer-progress-bar"]),O=()=>v(f.close),P=()=>{const e=n(y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>(e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0)));var t=n(y().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((e=>"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t})(e.concat(t)).filter((e=>J(e)))},Y=()=>!I()&&!document.body.classList.contains(f["no-backdrop"]),I=()=>document.body.classList.contains(f["toast-shown"]);function j(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];const i=E();J(i)&&(t&&(i.style.transition="none",i.style.width="100%"),setTimeout((()=>{i.style.transition="width ".concat(e/1e3,"s linear"),i.style.width="0%"}),10))}const N={previousBodyPadding:null},H=(e,t)=>{if(e.textContent="",t){const i=(new DOMParser).parseFromString(t,"text/html");n(i.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),n(i.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},F=(e,t)=>{if(!t)return!1;var i=t.split(/\s+/);for(let t=0;t<i.length;t++)if(!e.classList.contains(i[t]))return!1;return!0},R=(e,t,i)=>{var r,s;if(s=t,n((r=e).classList).forEach((e=>{Object.values(f).includes(e)||Object.values(p).includes(e)||Object.values(s.showClass).includes(e)||r.classList.remove(e)})),t.customClass&&t.customClass[i]){if("string"!=typeof t.customClass[i]&&!t.customClass[i].forEach)return a("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(typeof t.customClass[i],'"'));V(e,t.customClass[i])}},z=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return X(e,f[t]);case"checkbox":return e.querySelector(".".concat(f.checkbox," input"));case"radio":return e.querySelector(".".concat(f.radio," input:checked"))||e.querySelector(".".concat(f.radio," input:first-child"));case"range":return e.querySelector(".".concat(f.range," input"));default:return X(e,f.input)}},B=e=>{var t;e.focus(),"file"!==e.type&&(t=e.value,e.value="",e.value=t)},W=(e,t,i)=>{e&&t&&(t="string"==typeof t?t.split(/\s+/).filter(Boolean):t).forEach((t=>{e.forEach?e.forEach((e=>{i?e.classList.add(t):e.classList.remove(t)})):i?e.classList.add(t):e.classList.remove(t)}))},V=(e,t)=>{W(e,t,!0)},q=(e,t)=>{W(e,t,!1)},X=(e,t)=>{for(let i=0;i<e.childNodes.length;i++)if(F(e.childNodes[i],t))return e.childNodes[i]},U=(e,t,i)=>{(i=i==="".concat(parseInt(i))?parseInt(i):i)||0===parseInt(i)?e.style[t]="number"==typeof i?"".concat(i,"px"):i:e.style.removeProperty(t)},$=function(e){e.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"},G=e=>{e.style.display="none"},Z=(e,t,i,n)=>{const a=e.querySelector(t);a&&(a.style[i]=n)},K=(e,t,i)=>{t?$(e,i):G(e)},J=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Q=e=>!!(e.scrollHeight>e.clientHeight),ee=e=>{const t=window.getComputedStyle(e);var i=parseFloat(t.getPropertyValue("animation-duration")||"0");e=parseFloat(t.getPropertyValue("transition-duration")||"0");return 0<i||0<e},te=()=>"undefined"==typeof window||"undefined"==typeof document,ie='\n <div aria-labelledby="'.concat(f.title,'" aria-describedby="').concat(f["html-container"],'" class="').concat(f.popup,'" tabindex="-1">\n <button type="button" class="').concat(f.close,'"></button>\n <ul class="').concat(f["progress-steps"],'"></ul>\n <div class="').concat(f.icon,'"></div>\n <img class="').concat(f.image,'" />\n <h2 class="').concat(f.title,'" id="').concat(f.title,'"></h2>\n <div class="').concat(f["html-container"],'" id="').concat(f["html-container"],'"></div>\n <input class="').concat(f.input,'" />\n <input type="file" class="').concat(f.file,'" />\n <div class="').concat(f.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(f.select,'"></select>\n <div class="').concat(f.radio,'"></div>\n <label for="').concat(f.checkbox,'" class="').concat(f.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(f.label,'"></span>\n </label>\n <textarea class="').concat(f.textarea,'"></textarea>\n <div class="').concat(f["validation-message"],'" id="').concat(f["validation-message"],'"></div>\n <div class="').concat(f.actions,'">\n <div class="').concat(f.loader,'"></div>\n <button type="button" class="').concat(f.confirm,'"></button>\n <button type="button" class="').concat(f.deny,'"></button>\n <button type="button" class="').concat(f.cancel,'"></button>\n </div>\n <div class="').concat(f.footer,'"></div>\n <div class="').concat(f["timer-progress-bar-container"],'">\n <div class="').concat(f["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ne=()=>{It.isVisible()&&It.resetValidationMessage()},ae=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?((e,t)=>{e.jquery?re(t,e):H(t,e.toString())})(e,t):e&&H(t,e)},re=(e,t)=>{if(e.textContent="",0 in t)for(let i=0;i in t;i++)e.appendChild(t[i].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},se=(()=>{if(te())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&void 0!==e.style[i])return t[i];return!1})();function oe(e,t,n){K(e,n["show".concat(i(t),"Button")],"inline-block"),H(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=f[t],R(e,n,"".concat(t,"Button")),V(e,n["".concat(t,"ButtonClass")])}var le={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const ce=["input","file","range","select","radio","checkbox","textarea"],ue=e=>{for(let i=0;i<e.attributes.length;i++){var t=e.attributes[i].name;["type","value","style"].includes(t)||e.removeAttribute(t)}},de=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},he=(e,t,i)=>{if(i.inputLabel){e.id=f.input;const a=document.createElement("label");var n=f["input-label"];a.setAttribute("for",e.id),a.className=n,V(a,i.customClass.inputLabel),a.innerText=i.inputLabel,t.insertAdjacentElement("beforebegin",a)}},fe=e=>(e=f[e]||f.input,X(y(),e)),pe={};pe.text=pe.email=pe.password=pe.number=pe.tel=pe.url=(e,t)=>("string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:u(t.inputValue)||a('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue,'"')),he(e,e,t),de(e,t),e.type=t.input,e),pe.file=(e,t)=>(he(e,e,t),de(e,t),e),pe.range=(e,t)=>{const i=e.querySelector("input"),n=e.querySelector("output");return i.value=t.inputValue,i.type=t.input,n.value=t.inputValue,he(i,e,t),e},pe.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const i=document.createElement("option");H(i,t.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,e.appendChild(i)}return he(e,e,t),e},pe.radio=e=>(e.textContent="",e),pe.checkbox=(e,t)=>{const i=z(y(),"checkbox");i.value=1,i.id=f.checkbox,i.checked=Boolean(t.inputValue);var n=e.querySelector("span");return H(n,t.inputPlaceholder),e},pe.textarea=(e,t)=>(e.value=t.inputValue,de(e,t),he(e,e,t),setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(y()).width);new MutationObserver((()=>{var i=e.offsetWidth+(i=e,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));y().style.width=i>t?"".concat(i,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e);const me=(e,t)=>{const i=_();R(i,t,"htmlContainer"),t.html?(ae(t.html,i),$(i,"block")):t.text?(i.textContent=t.text,$(i,"block")):G(i),((e,t)=>{const i=y(),n=!(e=le.innerParams.get(e))||t.input!==e.input;ce.forEach((e=>{var a=f[e];const r=X(i,a);((e,t)=>{const i=z(y(),e);if(i){ue(i);for(const e in t)i.setAttribute(e,t[e])}})(e,t.inputAttributes),r.className=a,n&&G(r)})),t.input&&(n&&(e=>{if(!pe[e.input])return r('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=fe(e.input),i=pe[e.input](t,e);$(i),setTimeout((()=>{B(i)}))})(t),(e=>{const t=fe(e.input);e.customClass&&V(t,e.customClass.input)})(t))})(e,t)},ge=(e,t)=>{for(const i in p)t.icon!==i&&q(e,p[i]);V(e,p[t.icon]),be(e,t),ve(),R(e,t,"icon")},ve=()=>{const e=y();var t=window.getComputedStyle(e).getPropertyValue("background-color");const i=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<i.length;e++)i[e].style.backgroundColor=t},ye=(e,t)=>{e.textContent="",t.iconHtml?H(e,xe(t.iconHtml)):"success"===t.icon?H(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?H(e,'\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 '):H(e,xe({question:"?",warning:"!",info:"i"}[t.icon]))},be=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const i of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Z(e,i,"backgroundColor",t.iconColor);Z(e,".swal2-success-ring","borderColor",t.iconColor)}},xe=e=>'<div class="'.concat(f["icon-content"],'">').concat(e,"</div>"),_e=(e,t)=>{((e,t)=>{var i=m();const n=y();t.toast?(U(i,"width",t.width),n.style.width="100%",n.insertBefore(A(),b())):U(n,"width",t.width),U(n,"padding",t.padding),t.background&&(n.style.background=t.background),G(M()),((e,t)=>{e.className="".concat(f.popup," ").concat(J(e)?t.showClass.popup:""),t.toast?(V([document.documentElement,document.body],f["toast-shown"]),V(e,f.toast)):V(e,f.modal),R(e,t,"popup"),"string"==typeof t.customClass&&V(e,t.customClass),t.icon&&V(e,f["icon-".concat(t.icon)])})(n,t)})(0,t),((e,t)=>{var i,n,r=m();r&&(n=r,"string"==typeof(i=t.backdrop)?n.style.background=i:i||V([document.documentElement,document.body],f["no-backdrop"]),n=r,(i=t.position)in f?V(n,f[i]):(a('The "position" parameter is not valid, defaulting to "center"'),V(n,f.center)),i=r,!(n=t.grow)||"string"!=typeof n||(n="grow-".concat(n))in f&&V(i,f[n]),R(r,t,"container"))})(0,t),((e,t)=>{const i=k();if(!t.progressSteps||0===t.progressSteps.length)return G(i);$(i),i.textContent="",t.currentProgressStep>=t.progressSteps.length&&a("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,n)=>{var a;a=e,e=document.createElement("li"),V(e,f["progress-step"]),H(e,a),e=e,i.appendChild(e),n===t.currentProgressStep&&V(e,f["active-progress-step"]),n!==t.progressSteps.length-1&&(n=(e=>{const t=document.createElement("li");return V(t,f["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t})(t),i.appendChild(n))}))})(0,t),((e,t)=>{var i=le.innerParams.get(e);e=b(),i&&t.icon===i.icon?(ye(e,t),ge(e,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(p).indexOf(t.icon)?(r('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),G(e)):($(e),ye(e,t),ge(e,t),V(e,t.showClass.icon)):G(e)})(e,t),((e,t)=>{const i=w();if(!t.imageUrl)return G(i);$(i,""),i.setAttribute("src",t.imageUrl),i.setAttribute("alt",t.imageAlt),U(i,"width",t.imageWidth),U(i,"height",t.imageHeight),i.className=f.image,R(i,t,"image")})(0,t),((e,t)=>{const i=x();K(i,t.title||t.titleText,"block"),t.title&&ae(t.title,i),t.titleText&&(i.innerText=t.titleText),R(i,t,"title")})(0,t),((e,t)=>{const i=O();H(i,t.closeButtonHtml),R(i,t,"closeButton"),K(i,t.showCloseButton),i.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),me(e,t),((e,t)=>{var i,n,a,r,s,o=C(),l=A();(t.showConfirmButton||t.showDenyButton||t.showCancelButton?$:G)(o),R(o,t,"actions"),i=o,n=l,a=t,r=L(),s=S(),o=T(),oe(r,"confirm",a),oe(s,"deny",a),oe(o,"cancel",a),function(e,t,i,n){if(!n.buttonsStyling)return q([e,t,i],f.styled);V([e,t,i],f.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,V(e,f["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,V(t,f["default-outline"])),n.cancelButtonColor&&(i.style.backgroundColor=n.cancelButtonColor,V(i,f["default-outline"]))}(r,s,o,a),a.reverseButtons&&(a.toast?(i.insertBefore(o,r),i.insertBefore(s,r)):(i.insertBefore(o,n),i.insertBefore(s,n),i.insertBefore(r,n))),H(l,t.loaderHtml),R(l,t,"loader")})(0,t),((e,t)=>{var i=D();K(i,t.footer),t.footer&&ae(t.footer,i),R(i,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(y())},we=()=>L()&&L().click(),ke=e=>{let t=y();t||It.fire(),t=y();var i=A();I()?G(b()):((e,t)=>{const i=C(),n=A();!t&&J(L())&&(t=L()),$(i),t&&(G(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),V([e,i],f.loading)})(t,e),$(i),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Me={},Le=e=>new Promise((t=>{if(!e)return t();var i=window.scrollX,n=window.scrollY;Me.restoreFocusTimeout=setTimeout((()=>{Me.previousActiveElement&&Me.previousActiveElement.focus?(Me.previousActiveElement.focus(),Me.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(i,n)})),Se=()=>{if(Me.timeout)return(()=>{const e=E();var t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var i=parseInt(window.getComputedStyle(e).width);i=parseInt(t/i*100);e.style.removeProperty("transition"),e.style.width="".concat(i,"%")})(),Me.timeout.stop()},Ae=()=>{if(Me.timeout){var e=Me.timeout.start();return j(e),e}};let Te=!1;const Ce={},De=e=>{for(let i=e.target;i&&i!==document;i=i.parentNode)for(const e in Ce){var t=i.getAttribute(e);if(t)return void Ce[e].fire({template:t})}},Ee={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,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,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Oe=["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","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Pe={},Ye=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ie=e=>Object.prototype.hasOwnProperty.call(Ee,e),je=e=>Pe[e],Ne=e=>{Ie(e)||a('Unknown parameter "'.concat(e,'"'))},He=e=>{Ye.includes(e)&&a('The parameter "'.concat(e,'" is incompatible with toasts'))},Fe=e=>{je(e)&&((e,t)=>{t='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),s.includes(t)||(s.push(t),a(t))})(e,je(e))};var Re=Object.freeze({isValidParameter:Ie,isUpdatableParameter:e=>-1!==Oe.indexOf(e),isDeprecatedParameter:je,argsToParams:e=>{const t={};return"object"!=typeof e[0]||d(e[0])?["title","html","icon"].forEach(((i,n)=>{"string"==typeof(n=e[n])||d(n)?t[i]=n:void 0!==n&&r("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(typeof n))})):Object.assign(t,e[0]),t},isVisible:()=>J(y()),clickConfirm:we,clickDeny:()=>S()&&S().click(),clickCancel:()=>T()&&T().click(),getContainer:m,getPopup:y,getTitle:x,getHtmlContainer:_,getImage:w,getIcon:b,getInputLabel:()=>v(f["input-label"]),getCloseButton:O,getActions:C,getConfirmButton:L,getDenyButton:S,getCancelButton:T,getLoader:A,getFooter:D,getTimerProgressBar:E,getFocusableElements:P,getValidationMessage:M,isLoading:()=>y().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return new this(...t)},mixin:function(e){return class extends(this){_main(t,i){return super._main(t,Object.assign({},e,i))}}},showLoading:ke,enableLoading:ke,getTimerLeft:()=>Me.timeout&&Me.timeout.getTimerLeft(),stopTimer:Se,resumeTimer:Ae,toggleTimer:()=>{var e=Me.timeout;return e&&(e.running?Se:Ae)()},increaseTimer:e=>{if(Me.timeout)return j(e=Me.timeout.increase(e),!0),e},isTimerRunning:()=>Me.timeout&&Me.timeout.isRunning(),bindClickHandler:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template";Ce[e]=this,Te||(document.body.addEventListener("click",De),Te=!0)}});function ze(){var e=le.innerParams.get(this);if(e){const t=le.domCache.get(this);G(t.loader),I()?e.icon&&$(b()):(e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?$(t[0],"inline-block"):J(L())||J(S())||J(T())||G(e.actions)})(t),q([t.popup,t.actions],f.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}const Be=e=>{var t,i=e.target,n=m();return!((t=e).touches&&t.touches.length&&"stylus"===t.touches[0].touchType||(e=e).touches&&1<e.touches.length||i!==n&&(Q(n)||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||Q(_())&&_().contains(i)))},We=()=>{n(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))};var Ve={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};function qe(e,t,i,n){I()?Ge(e,n):(Le(i).then((()=>Ge(e,n))),Me.keydownTarget.removeEventListener("keydown",Me.keydownHandler,{capture:Me.keydownListenerCapture}),Me.keydownHandlerAdded=!1),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Y()&&(null!==N.previousBodyPadding&&(document.body.style.paddingRight="".concat(N.previousBodyPadding,"px"),N.previousBodyPadding=null),(()=>{var e;F(document.body,f.iosfix)&&(e=parseInt(document.body.style.top,10),q(document.body,f.iosfix),document.body.style.top="",document.body.scrollTop=-1*e)})(),We()),q([document.documentElement,document.body],[f.shown,f["height-auto"],f["no-backdrop"],f["toast-shown"]])}function Xe(e){e=void 0!==(i=e)?Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},i):{isConfirmed:!1,isDenied:!1,isDismissed:!0};const t=Ve.swalPromiseResolve.get(this);var i=(e=>{const t=y();if(!t)return!1;const i=le.innerParams.get(e);if(!i||F(t,i.hideClass.popup))return!1;q(t,i.showClass.popup),V(t,i.hideClass.popup);const n=m();return q(n,i.showClass.backdrop),V(n,i.hideClass.backdrop),$e(e,t,i),!0})(this);this.isAwaitingPromise()?e.isDismissed||(Ue(this),t(e)):i&&t(e)}const Ue=e=>{e.isAwaitingPromise()&&(le.awaitingPromise.delete(e),le.innerParams.get(e)||e._destroy())},$e=(e,t,i)=>{var n,a,r,s=m(),o=se&&ee(t);"function"==typeof i.willClose&&i.willClose(t),o?(n=e,a=t,r=s,o=i.returnFocus,t=i.didClose,Me.swalCloseEventFinishedCallback=qe.bind(null,n,r,o,t),a.addEventListener(se,(function(e){e.target===a&&(Me.swalCloseEventFinishedCallback(),delete Me.swalCloseEventFinishedCallback)}))):qe(e,s,i.returnFocus,i.didClose)},Ge=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Ze(e,t,i){const n=le.domCache.get(e);t.forEach((e=>{n[e].disabled=i}))}function Ke(e,t){if(!e)return!1;if("radio"===e.type){const i=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<i.length;e++)i[e].disabled=t}else e.disabled=t}class Je{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}increase(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}var Qe={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function et(e){var t,i;(t=e).inputValidator||Object.keys(Qe).forEach((e=>{t.input===e&&(t.inputValidator=Qe[e])})),e.showLoaderOnConfirm&&!e.preConfirm&&a("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"),(i=e).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(a('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),(e=>{var t=(()=>{const e=m();return!!e&&(e.remove(),q([document.documentElement,document.body],[f["no-backdrop"],f["toast-shown"],f["has-column"]]),!0)})();if(te())r("SweetAlert2 requires document to initialize");else{const i=document.createElement("div");i.className=f.container,t&&V(i,f["no-transition"]),H(i,ie);const n="string"==typeof(t=e.target)?document.querySelector(t):t;n.appendChild(i),(e=>{const t=y();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),e=n,"rtl"===window.getComputedStyle(e).direction&&V(m(),f.rtl),(()=>{const e=y(),t=X(e,f.input),i=X(e,f.file),n=e.querySelector(".".concat(f.range," input")),a=e.querySelector(".".concat(f.range," output")),r=X(e,f.select),s=e.querySelector(".".concat(f.checkbox," input")),o=X(e,f.textarea);t.oninput=ne,i.onchange=ne,r.onchange=ne,s.onchange=ne,o.oninput=ne,n.oninput=()=>{ne(),a.value=n.value},n.onchange=()=>{ne(),n.nextSibling.value=n.value}})()}})(e)}const tt=["swal-title","swal-html","swal-footer"],it=e=>(e="string"==typeof e.template?document.querySelector(e.template):e.template)?((e=>{const t=tt.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(e.children).forEach((e=>{const i=e.tagName.toLowerCase();-1===t.indexOf(i)&&a("Unrecognized element <".concat(i,">"))}))})(e=e.content),Object.assign((e=>{const t={};return n(e.querySelectorAll("swal-param")).forEach((e=>{nt(e,["name","value"]);const i=e.getAttribute("name");let n=e.getAttribute("value");"boolean"==typeof Ee[i]&&"false"===n&&(n=!1),"object"==typeof Ee[i]&&(n=JSON.parse(n)),t[i]=n})),t})(e),(e=>{const t={};return n(e.querySelectorAll("swal-button")).forEach((e=>{nt(e,["type","color","aria-label"]);const n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(i(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t})(e),(e=>{const t={},i=e.querySelector("swal-image");return i&&(nt(i,["src","width","height","alt"]),i.hasAttribute("src")&&(t.imageUrl=i.getAttribute("src")),i.hasAttribute("width")&&(t.imageWidth=i.getAttribute("width")),i.hasAttribute("height")&&(t.imageHeight=i.getAttribute("height")),i.hasAttribute("alt")&&(t.imageAlt=i.getAttribute("alt"))),t})(e),(e=>{const t={},i=e.querySelector("swal-icon");return i&&(nt(i,["type","color"]),i.hasAttribute("type")&&(t.icon=i.getAttribute("type")),i.hasAttribute("color")&&(t.iconColor=i.getAttribute("color")),t.iconHtml=i.innerHTML),t})(e),(e=>{const t={},i=e.querySelector("swal-input");i&&(nt(i,["type","label","placeholder","value"]),t.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(t.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(t.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(t.inputValue=i.getAttribute("value")));const a=e.querySelectorAll("swal-input-option");return a.length&&(t.inputOptions={},n(a).forEach((e=>{nt(e,["value"]);const i=e.getAttribute("value"),n=e.innerHTML;t.inputOptions[i]=n}))),t})(e),((e,t)=>{const i={};for(const n in t){const a=t[n],r=e.querySelector(a);r&&(nt(r,[]),i[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return i})(e,tt))):{},nt=(e,t)=>{n(e.attributes).forEach((i=>{-1===t.indexOf(i.name)&&a(['Unrecognized attribute "'.concat(i.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},at=e=>{const t=m(),i=y();"function"==typeof e.willOpen&&e.willOpen(i);var a=window.getComputedStyle(document.body).overflowY;((e,t,i)=>{V(e,i.showClass.backdrop),t.style.setProperty("opacity","0","important"),$(t,"grid"),setTimeout((()=>{V(t,i.showClass.popup),t.style.removeProperty("opacity")}),10),V([document.documentElement,document.body],f.shown),i.heightAuto&&i.backdrop&&!i.toast&&V([document.documentElement,document.body],f["height-auto"])})(t,i,e),setTimeout((()=>{((e,t)=>{se&&ee(t)?(e.style.overflowY="hidden",t.addEventListener(se,rt)):e.style.overflowY="auto"})(t,i)}),10),Y()&&(((e,t,i)=>{(()=>{var e;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!F(document.body,f.iosfix)&&(e=document.body.scrollTop,document.body.style.top="".concat(-1*e,"px"),V(document.body,f.iosfix),(()=>{const e=m();let t;e.ontouchstart=e=>{t=Be(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}})(),(()=>{if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){const e=44;y().scrollHeight>window.innerHeight-e&&(m().style.paddingBottom="".concat(e,"px"))}})())})(),t&&"hidden"!==i&&null===N.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(N.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(N.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=f["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px")),setTimeout((()=>{e.scrollTop=0}))})(t,e.scrollbarPadding,a),n(document.body.children).forEach((e=>{e===m()||e.contains(m())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),I()||Me.previousActiveElement||(Me.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(i))),q(t,f["no-transition"])},rt=e=>{const t=y();if(e.target===t){const e=m();t.removeEventListener(se,rt),e.style.overflowY="auto"}},st=(e,t)=>{"select"===t.input||"radio"===t.input?((e,t)=>{const i=y(),n=e=>ot[t.input](i,lt(e),t);l(t.inputOptions)||u(t.inputOptions)?(ke(L()),c(t.inputOptions).then((t=>{e.hideLoading(),n(t)}))):"object"==typeof t.inputOptions?n(t.inputOptions):r("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))})(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(l(t.inputValue)||u(t.inputValue))&&(ke(L()),((e,t)=>{const i=e.getInput();G(i),c(t.inputValue).then((n=>{i.value="number"===t.input?parseFloat(n)||0:"".concat(n),$(i),i.focus(),e.hideLoading()})).catch((t=>{r("Error in inputValue promise: ".concat(t)),i.value="",$(i),i.focus(),e.hideLoading()}))})(e,t))},ot={select:(e,t,i)=>{const n=X(e,f.select),a=(e,t,n)=>{const a=document.createElement("option");a.value=n,H(a,t),a.selected=ct(n,i.inputValue),e.appendChild(a)};t.forEach((e=>{var t=e[0];const i=e[1];if(Array.isArray(i)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),i.forEach((t=>a(e,t[1],t[0])))}else a(n,i,t)})),n.focus()},radio:(e,t,i)=>{const n=X(e,f.radio);t.forEach((e=>{var t=e[0];e=e[1];const a=document.createElement("input"),r=document.createElement("label");a.type="radio",a.name=f.radio,a.value=t,ct(t,i.inputValue)&&(a.checked=!0);const s=document.createElement("span");H(s,e),s.className=f.label,r.appendChild(a),r.appendChild(s),n.appendChild(r)}));const a=n.querySelectorAll("input");a.length&&a[0].focus()}},lt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,i)=>{let n=e;"object"==typeof n&&(n=lt(n)),t.push([i,n])})):Object.keys(e).forEach((i=>{let n=e[i];"object"==typeof n&&(n=lt(n)),t.push([i,n])})),t},ct=(e,t)=>t&&t.toString()===e.toString(),ut=e=>{var t=le.innerParams.get(e);e.disableButtons(),t.input?ft(e,"confirm"):yt(e,!0)},dt=e=>{var t=le.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?ft(e,"deny"):mt(e,!1)},ht=(t,i)=>{t.disableButtons(),i(e.cancel)},ft=(e,t)=>{var i=le.innerParams.get(e),n=((e,t)=>{const i=e.getInput();if(!i)return null;switch(t.input){case"checkbox":return i.checked?1:0;case"radio":return(n=i).checked?n.value:null;case"file":return(n=i).files.length?null!==n.getAttribute("multiple")?n.files:n.files[0]:null;default:return t.inputAutoTrim?i.value.trim():i.value}var n})(e,i);i.inputValidator?pt(e,n,t):e.getInput().checkValidity()?("deny"===t?mt:yt)(e,n):(e.enableButtons(),e.showValidationMessage(i.validationMessage))},pt=(e,t,i)=>{const n=le.innerParams.get(e);e.disableInput();Promise.resolve().then((()=>c(n.inputValidator(t,n.validationMessage)))).then((n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):("deny"===i?mt:yt)(e,t)}))},mt=(e,t)=>{const i=le.innerParams.get(e||void 0);if(i.showLoaderOnDeny&&ke(S()),i.preDeny){le.awaitingPromise.set(e||void 0,!0);Promise.resolve().then((()=>c(i.preDeny(t,i.validationMessage)))).then((i=>{!1===i?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===i?t:i})})).catch((t=>vt(e||void 0,t)))}else e.closePopup({isDenied:!0,value:t})},gt=(e,t)=>{e.closePopup({isConfirmed:!0,value:t})},vt=(e,t)=>{e.rejectPromise(t)},yt=(e,t)=>{const i=le.innerParams.get(e||void 0);if(i.showLoaderOnConfirm&&ke(),i.preConfirm){e.resetValidationMessage(),le.awaitingPromise.set(e||void 0,!0);Promise.resolve().then((()=>c(i.preConfirm(t,i.validationMessage)))).then((i=>{J(M())||!1===i?e.hideLoading():gt(e,void 0===i?t:i)})).catch((t=>vt(e||void 0,t)))}else gt(e,t)},bt=(e,t,i,n)=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),i.toast||(t.keydownHandler=t=>((e,t,i)=>{const n=le.innerParams.get(e);n&&(n.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?kt(e,t,n):"Tab"===t.key?Mt(t,n):[..._t,...wt].includes(t.key)?Lt(t.key):"Escape"===t.key&&St(t,n,i))})(e,t,n),t.keydownTarget=i.keydownListenerCapture?window:y(),t.keydownListenerCapture=i.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},xt=(e,t,i)=>{const n=P();if(n.length)return(t+=i)===n.length?t=0:-1===t&&(t=n.length-1),n[t].focus();y().focus()},_t=["ArrowRight","ArrowDown"],wt=["ArrowLeft","ArrowUp"],kt=(e,t,i)=>{t.isComposing||t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML&&(["textarea","file"].includes(i.input)||(we(),t.preventDefault()))},Mt=(e,t)=>{var i=e.target,n=P();let a=-1;for(let e=0;e<n.length;e++)if(i===n[e]){a=e;break}e.shiftKey?xt(0,a,-1):xt(0,a,1),e.stopPropagation(),e.preventDefault()},Lt=e=>{if([L(),S(),T()].includes(document.activeElement)){e=_t.includes(e)?"nextElementSibling":"previousElementSibling";const t=document.activeElement[e];t&&t.focus()}},St=(t,i,n)=>{o(i.allowEscapeKey)&&(t.preventDefault(),n(e.esc))},At=(t,i,n)=>{var a,r,s,l,c,u,d;le.innerParams.get(t).toast?(u=t,d=n,i.popup.onclick=()=>{var t=le.innerParams.get(u);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input||d(e.close)}):((c=i).popup.onmousedown=()=>{c.container.onmouseup=function(e){c.container.onmouseup=void 0,e.target===c.container&&(Tt=!0)}},(l=i).container.onmousedown=()=>{l.popup.onmouseup=function(e){l.popup.onmouseup=void 0,e.target!==l.popup&&!l.popup.contains(e.target)||(Tt=!0)}},a=t,s=n,(r=i).container.onclick=t=>{var i=le.innerParams.get(a);Tt?Tt=!1:t.target===r.container&&o(i.allowOutsideClick)&&s(e.backdrop)})};let Tt=!1;const Ct=(e,t,i)=>{var n=E();G(n),t.timer&&(e.timeout=new Je((()=>{i("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&($(n),setTimeout((()=>{e.timeout&&e.timeout.running&&j(t.timer)}))))},Dt=(e,t)=>{if(!t.toast)return o(t.allowEnterKey)?void(((e,t)=>t.focusDeny&&J(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&J(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!J(e.confirmButton))&&(e.confirmButton.focus(),!0))(e,t)||xt(0,-1,1)):void(document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur())},Et=e=>{e.isAwaitingPromise()?(Ot(le,e),le.awaitingPromise.set(e,!0)):(Ot(Ve,e),Ot(le,e))},Ot=(e,t)=>{for(const i in e)e[i].delete(t)};let Pt;h=Object.freeze({hideLoading:ze,disableLoading:ze,getInput:function(e){var t=le.innerParams.get(e||this);return(e=le.domCache.get(e||this))?z(e.popup,t.input):null},close:Xe,isAwaitingPromise:function(){return!!le.awaitingPromise.get(this)},rejectPromise:function(e){const t=Ve.swalPromiseReject.get(this);Ue(this),t&&t(e)},closePopup:Xe,closeModal:Xe,closeToast:Xe,enableButtons:function(){Ze(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Ze(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Ke(this.getInput(),!1)},disableInput:function(){return Ke(this.getInput(),!0)},showValidationMessage:function(e){const t=le.domCache.get(this);var i=le.innerParams.get(this);H(t.validationMessage,e),t.validationMessage.className=f["validation-message"],i.customClass&&i.customClass.validationMessage&&V(t.validationMessage,i.customClass.validationMessage),$(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",f["validation-message"]),B(n),V(n,f.inputerror))},resetValidationMessage:function(){var e=le.domCache.get(this);e.validationMessage&&G(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),q(t,f.inputerror))},getProgressSteps:function(){return le.domCache.get(this).progressSteps},_main:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&a('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)Ne(t),e.toast&&He(t),Fe(t)})(Object.assign({},i,t)),Me.currentInstance&&(Me.currentInstance._destroy(),Y()&&We()),Me.currentInstance=this,et(t=((e,t)=>{const i=it(e),n=Object.assign({},Ee,t,i,e);return n.showClass=Object.assign({},Ee.showClass,n.showClass),n.hideClass=Object.assign({},Ee.hideClass,n.hideClass),n})(t,i)),Object.freeze(t),Me.timeout&&(Me.timeout.stop(),delete Me.timeout),clearTimeout(Me.restoreFocusTimeout);var n,r,s;i=(e=>{const t={popup:y(),container:m(),actions:C(),confirmButton:L(),denyButton:S(),cancelButton:T(),loader:A(),closeButton:O(),validationMessage:M(),progressSteps:k()};return le.domCache.set(e,t),t})(this);return _e(this,t),le.innerParams.set(this,t),n=this,r=i,s=t,new Promise(((t,i)=>{const a=e=>{n.closePopup({isDismissed:!0,dismiss:e})};Ve.swalPromiseResolve.set(n,t),Ve.swalPromiseReject.set(n,i),r.confirmButton.onclick=()=>ut(n),r.denyButton.onclick=()=>dt(n),r.cancelButton.onclick=()=>ht(n,a),r.closeButton.onclick=()=>a(e.close),At(n,r,a),bt(n,Me,s,a),st(n,s),at(s),Ct(Me,s,a),Dt(r,s),setTimeout((()=>{r.container.scrollTop=0}))}))},update:function(e){var t=y(),i=le.innerParams.get(this);if(!t||F(t,i.hideClass.popup))return a("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.");const n={};Object.keys(e).forEach((t=>{It.isUpdatableParameter(t)?n[t]=e[t]:a('Invalid parameter to update: "'.concat(t,'". 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'))})),i=Object.assign({},i,n),_e(this,i),le.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=le.domCache.get(this);const t=le.innerParams.get(this);t?(e.popup&&Me.swalCloseEventFinishedCallback&&(Me.swalCloseEventFinishedCallback(),delete Me.swalCloseEventFinishedCallback),Me.deferDisposalTimer&&(clearTimeout(Me.deferDisposalTimer),delete Me.deferDisposalTimer),"function"==typeof t.didDestroy&&t.didDestroy(),Et(e=this),delete e.params,delete Me.keydownHandler,delete Me.keydownTarget,delete Me.currentInstance):Et(this)}});class Yt{constructor(){if("undefined"!=typeof window){Pt=this;for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}}),n=this._main(this.params),le.promise.set(this,n)}}then(e){return le.promise.get(this).then(e)}finally(e){return le.promise.get(this).finally(e)}}Object.assign(Yt.prototype,h),Object.assign(Yt,Re),Object.keys(h).forEach((e=>{Yt[e]=function(){if(Pt)return Pt[e](...arguments)}})),Yt.DismissReason=e,Yt.version="11.1.10";const It=Yt;return It.default=It,It})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),swal.mixin({width:400,heightAuto:!1,padding:"2.5rem",buttonsStyling:!1,confirmButtonClass:"btn btn-success",confirmButtonColor:null,cancelButtonClass:"btn btn-secondary",cancelButtonColor:null}); |