PHP WebShell

Текущая директория: /var/www/bitcardoApp/backyard/assets/js

Просмотр файла: bundle9b70.js

!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),p={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},g=function(t){return null!=t&&t===t.window},m=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var i,r,o=(n=n||m).createElement("script");if(o.text=t,e)for(i in v)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var x="3.7.1",w=/HTML$/i,_=function(t,e){return new _.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!f(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function k(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}_.fn=_.prototype={jquery:x,constructor:_,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},_.extend=_.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||f(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(c&&i&&(_.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||_.isPlainObject(n)?n:{},r=!1,s[e]=_.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},_.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==c.call(t)||(e=i(t))&&("function"!=typeof(n=u.call(e,"constructor")&&e.constructor)||d.call(n)!==h))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=_.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?_.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:a.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!w.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,a=[];if(C(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&a.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&a.push(r);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=n[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var S=n.pop,T=n.sort,A=n.splice,D="[\\x20\\t\\r\\n\\f]",E=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");_.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}_.escapeSelector=function(t){return(t+"").replace(M,O)};var P=m,L=s;!function(){var e,i,o,s,l,c,d,h,f,g,m=L,v=_.expando,y=0,b=0,x=tt(),w=tt(),C=tt(),M=tt(),O=function(t,e){return t===e&&(l=!0),0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+D+"*("+N+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+D+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",j=new RegExp(D+"+","g"),$=new RegExp("^"+D+"*,"+D+"*"),z=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),H=new RegExp(D+"|>"),B=new RegExp(F),W=new RegExp("^"+N+"$"),q={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){lt()},Z=ht((function(t){return!0===t.disabled&&k(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(n=r.call(P.childNodes),P.childNodes),n[P.childNodes.length].nodeType}catch(e){m={apply:function(t,e){L.apply(t,r.call(e))},call:function(t){L.apply(t,r.call(arguments,1))}}}function J(t,e,n,i){var r,o,s,a,l,u,d,g=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||c,h)){if(11!==y&&(l=Y.exec(t)))if(r=l[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return m.call(n,s),n}else if(g&&(s=g.getElementById(r))&&J.contains(e,s)&&s.id===r)return m.call(n,s),n}else{if(l[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(M[t+" "]||f&&f.test(t))){if(d=t,g=e,1===y&&(H.test(t)||z.test(t))){for((g=X.test(t)&&at(e.parentNode)||e)==e&&p.scope||((a=e.getAttribute("id"))?a=_.escapeSelector(a):e.setAttribute("id",a=v)),o=(u=ut(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+dt(u[o]);d=u.join(",")}try{return m.apply(n,g.querySelectorAll(d)),n}catch(e){M(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(E,"$1"),e,n,i)}function tt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=c.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return k(e,"input")&&e.type===t}}function rt(t){return function(e){return(k(e,"input")||k(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Z(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var e,n=t?t.ownerDocument||t:P;return n!=c&&9===n.nodeType&&n.documentElement&&(d=(c=n).documentElement,h=!_.isXMLDoc(c),g=d.matches||d.webkitMatchesSelector||d.msMatchesSelector,d.msMatchesSelector&&P!=c&&(e=c.defaultView)&&e.top!==e&&e.addEventListener("unload",Q),p.getById=nt((function(t){return d.appendChild(t).id=_.expando,!c.getElementsByName||!c.getElementsByName(_.expando).length})),p.disconnectedMatch=nt((function(t){return g.call(t,"*")})),p.scope=nt((function(){return c.querySelectorAll(":scope")})),p.cssHas=nt((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),p.getById?(i.filter.ID=function(t){var e=t.replace(G,K);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(G,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},i.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},f=[],nt((function(t){var e;d.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+D+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+v+"-]").length||f.push("~="),t.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=c.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=c.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),O=function(t,e){if(t===e)return l=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t===c||t.ownerDocument==P&&J.contains(P,t)?-1:e===c||e.ownerDocument==P&&J.contains(P,e)?1:s?a.call(s,t)-a.call(s,e):0:4&n?-1:1)}),c}for(e in J.matches=function(t,e){return J(t,null,null,e)},J.matchesSelector=function(t,e){if(lt(t),h&&!M[e+" "]&&(!f||!f.test(e)))try{var n=g.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){M(e,!0)}return 0<J(e,c,null,[t]).length},J.contains=function(t,e){return(t.ownerDocument||t)!=c&&lt(t),_.contains(t,e)},J.attr=function(t,e){(t.ownerDocument||t)!=c&&lt(t);var n=i.attrHandle[e.toLowerCase()],r=n&&u.call(i.attrHandle,e.toLowerCase())?n(t,e,!h):void 0;return void 0!==r?r:t.getAttribute(e)},J.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],i=0,o=0;if(l=!p.sortStable,s=!p.sortStable&&r.call(t,0),T.call(t,O),l){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)A.call(t,n[i],1)}return s=null,t},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(r.apply(this)))},(i=_.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(G,K),t[3]=(t[3]||t[4]||t[5]||"").replace(G,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||J.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&J.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(G,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return k(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=J.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&-1<r.indexOf(n):"$="===e?n&&r.slice(-n.length)===n:"~="===e?-1<(" "+r.replace(j," ")+" ").indexOf(n):"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,x=!1;if(g){if(o){for(;f;){for(d=e;d=d[f];)if(a?k(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(x=h=0)||p.pop();)if(1===d.nodeType&&++x&&d===e){u[t]=[y,h,x];break}}else if(b&&(x=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[f]||(x=h=0)||p.pop())&&(!(a?k(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[t]=[y,x]),d!==e)););return(x-=r)===i||x%i==0&&0<=x/i}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||J.error("unsupported pseudo: "+t);return r[v]?r(e):1<r.length?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,n){for(var i,o=r(t,e),s=o.length;s--;)t[i=a.call(t,o[s])]=!(n[i]=o[s])})):function(t){return r(t,0,n)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(E,"$1"));return i[v]?et((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return 0<J(t,e).length}})),contains:et((function(t){return t=t.replace(G,K),function(e){return-1<(e.textContent||_.text(e)).indexOf(t)}})),lang:et((function(t){return W.test(t||"")||J.error("unsupported lang: "+t),t=t.replace(G,K).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===function(){try{return c.activeElement}catch(t){}}()&&c.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return k(t,"input")&&!!t.checked||k(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return V.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){return k(t,"input")&&"button"===t.type||k(t,"button")},text:function(t){var e;return k(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:st((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:st((function(t,e,n){var i;for(i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t})),gt:st((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=it(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=rt(e);function ct(){}function ut(t,e){var n,r,o,s,a,l,c,u=w[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=i.preFilter;a;){for(s in n&&!(r=$.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(E," ")}),a=a.slice(n.length)),i.filter)!(r=q[s].exec(a))||c[s]&&!(r=c[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?J.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(u=e[v]||(e[v]={}),r&&k(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if((u[o]=d)[2]=t(e,n,l))return!0}return!1}}function pt(t){return 1<t.length?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et((function(o,s,l,c){var u,d,h,p,f=[],g=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)J(t,e[i],n);return n}(e||"*",l.nodeType?[l]:l,[]),b=!t||!o&&e?y:ft(y,f,t,l,c);if(n?n(b,p=r||(o?t:v||i)?[]:s,l,c):p=b,i)for(u=ft(p,g),i(u,[],l,c),d=u.length;d--;)(h=u[d])&&(p[g[d]]=!(b[g[d]]=h));if(o){if(r||t){if(r){for(u=[],d=p.length;d--;)(h=p[d])&&u.push(b[d]=h);r(null,p=[],u,c)}for(d=p.length;d--;)(h=p[d])&&-1<(u=r?a.call(o,h):f[d])&&(o[u]=!(s[u]=h))}}else p=ft(p===s?p.splice(v,p.length):p),r?r(null,s,p,c):m.apply(s,p)}))}function mt(t){for(var e,n,r,s=t.length,l=i.relative[t[0].type],c=l||i.relative[" "],u=l?1:0,d=ht((function(t){return t===e}),c,!0),h=ht((function(t){return-1<a.call(e,t)}),c,!0),p=[function(t,n,i){var r=!l&&(i||n!=o)||((e=n).nodeType?d(t,n,i):h(t,n,i));return e=null,r}];u<s;u++)if(n=i.relative[t[u].type])p=[ht(pt(p),n)];else{if((n=i.filter[t[u].type].apply(null,t[u].matches))[v]){for(r=++u;r<s&&!i.relative[t[r].type];r++);return gt(1<u&&pt(p),1<u&&dt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(E,"$1"),n,u<r&&mt(t.slice(u,r)),r<s&&mt(t=t.slice(r)),r<s&&dt(t))}p.push(n)}return pt(p)}function vt(t,e){var n,r,s,a,l,u,d=[],p=[],f=C[t+" "];if(!f){for(e||(e=ut(t)),n=e.length;n--;)(f=mt(e[n]))[v]?d.push(f):p.push(f);(f=C(t,(r=p,a=0<(s=d).length,l=0<r.length,u=function(t,e,n,u,d){var p,f,g,v=0,b="0",x=t&&[],w=[],C=o,k=t||l&&i.find.TAG("*",d),T=y+=null==C?1:Math.random()||.1,A=k.length;for(d&&(o=e==c||e||d);b!==A&&null!=(p=k[b]);b++){if(l&&p){for(f=0,e||p.ownerDocument==c||(lt(p),n=!h);g=r[f++];)if(g(p,e||c,n)){m.call(u,p);break}d&&(y=T)}a&&((p=!g&&p)&&v--,t&&x.push(p))}if(v+=b,a&&b!==v){for(f=0;g=s[f++];)g(x,w,e,n);if(t){if(0<v)for(;b--;)x[b]||w[b]||(w[b]=S.call(u));w=ft(w)}m.apply(u,w),d&&!t&&0<w.length&&1<v+s.length&&_.uniqueSort(u)}return d&&(y=T,o=C),x},a?et(u):u))).selector=t}return f}function yt(t,e,n,r){var o,s,a,l,c,u="function"==typeof t&&t,d=!r&&ut(t=u.selector||t);if(n=n||[],1===d.length){if(2<(s=d[0]=d[0].slice(0)).length&&"ID"===(a=s[0]).type&&9===e.nodeType&&h&&i.relative[s[1].type]){if(!(e=(i.find.ID(a.matches[0].replace(G,K),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=q.needsContext.test(t)?0:s.length;o--&&(a=s[o],!i.relative[l=a.type]);)if((c=i.find[l])&&(r=c(a.matches[0].replace(G,K),X.test(s[0].type)&&at(e.parentNode)||e))){if(s.splice(o,1),!(t=r.length&&dt(s)))return m.apply(n,r),n;break}}return(u||vt(t,d))(r,e,!h,n,!e||X.test(t)&&at(e.parentNode)||e),n}ct.prototype=i.filters=i.pseudos,i.setFilters=new ct,p.sortStable=v.split("").sort(O).join("")===v,lt(),p.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(c.createElement("fieldset"))})),_.find=J,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,J.compile=vt,J.select=yt,J.setDocument=lt,J.tokenize=ut,J.escape=_.escapeSelector,J.getText=_.text,J.isXML=_.isXMLDoc,J.selectors=_.expr,J.support=_.support,J.uniqueSort=_.uniqueSort}();var I=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&_(t).is(n))break;i.push(t)}return i},N=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=_.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(t,e,n){return f(e)?_.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return-1<a.call(e,t)!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?_.find.matchesSelector(i,t)?[i]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<i;e++)if(_.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)_.find(t,r[e],n);return 1<i?_.uniqueSort(n):n},filter:function(t){return this.pushStack(j(this,t||[],!1))},not:function(t){return this.pushStack(j(this,t||[],!0))},is:function(t){return!!j(this,"string"==typeof t&&R.test(t)?_(t):t||[],!1).length}});var $,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||$,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:z.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),F.test(i[1])&&_.isPlainObject(e))for(i in e)f(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=m.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,$=_(m);var H=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&_(t);if(!R.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&_.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?a.call(_(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return I(t,"parentNode")},parentsUntil:function(t,e,n){return I(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,n){return I(t,"nextSibling",n)},prevUntil:function(t,e,n){return I(t,"previousSibling",n)},siblings:function(t){return N((t.parentNode||{}).firstChild,t)},children:function(t){return N(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(k(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,i){var r=_.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=_.filter(i,r)),1<this.length&&(B[t]||_.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var q=/[^\x20\t\r\n\f]+/g;function U(t){return t}function V(t){throw t}function Y(t,e,n,i){var r;try{t&&f(r=t.promise)?r.call(t).done(e).fail(n):t&&f(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){var e,n;t="string"==typeof t?(e=t,n={},_.each(e.match(q)||[],(function(t,e){n[e]=!0})),n):_.extend({},t);var i,r,o,s,a=[],l=[],c=-1,u=function(){for(s=s||t.once,o=i=!0;l.length;c=-1)for(r=l.shift();++c<a.length;)!1===a[c].apply(r[0],r[1])&&t.stopOnFalse&&(c=a.length,r=!1);t.memory||(r=!1),i=!1,s&&(a=r?[]:"")},d={add:function(){return a&&(r&&!i&&(c=a.length-1,l.push(r)),function e(n){_.each(n,(function(n,i){f(i)?t.unique&&d.has(i)||a.push(i):i&&i.length&&"string"!==b(i)&&e(i)}))}(arguments),r&&!i&&u()),this},remove:function(){return _.each(arguments,(function(t,e){for(var n;-1<(n=_.inArray(e,a,n));)a.splice(n,1),n<=c&&c--})),this},has:function(t){return t?-1<_.inArray(t,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=r="",this},disabled:function(){return!a},lock:function(){return s=l=[],r||i||(a=r=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),i||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},_.extend({Deferred:function(e){var n=[["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"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(e){_.each(n,(function(n,i){var r=f(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,i,r){var o=0;function s(e,n,i,r){return function(){var a=this,l=arguments,c=function(){var t,c;if(!(e<o)){if((t=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,f(c)?r?c.call(t,s(o,n,U,r),s(o,n,V,r)):(o++,c.call(t,s(o,n,U,r),s(o,n,V,r),s(o,n,U,n.notifyWith))):(i!==U&&(a=void 0,l=[t]),(r||n.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(t){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(t,u.error),o<=e+1&&(i!==V&&(a=void 0,l=[t]),n.rejectWith(a,l))}};e?u():(_.Deferred.getErrorHook?u.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(u.error=_.Deferred.getStackHook()),t.setTimeout(u))}}return _.Deferred((function(t){n[0][3].add(s(0,t,f(r)?r:U,t.notifyWith)),n[1][3].add(s(0,t,f(e)?e:U)),n[2][3].add(s(0,t,f(i)?i:V))})).promise()},promise:function(t){return null!=t?_.extend(t,r):r}},o={};return _.each(n,(function(t,e){var s=e[2],a=e[5];r[e[1]]=s.add,a&&s.add((function(){i=a}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=s.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),o=r.call(arguments),s=_.Deferred(),a=function(t){return function(n){i[t]=this,o[t]=1<arguments.length?r.call(arguments):n,--e||s.resolveWith(i,o)}};if(e<=1&&(Y(t,s.done(a(n)).resolve,s.reject,!e),"pending"===s.state()||f(o[n]&&o[n].then)))return s.then();for(;n--;)Y(o[n],a(n),s.reject);return s.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&X.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},_.readyException=function(e){t.setTimeout((function(){throw e}))};var G=_.Deferred();function K(){m.removeEventListener("DOMContentLoaded",K),t.removeEventListener("load",K),_.ready()}_.fn.ready=function(t){return G.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0)!==t&&0<--_.readyWait||G.resolveWith(m,[_])}}),_.ready.then=G.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(_.ready):(m.addEventListener("DOMContentLoaded",K),t.addEventListener("load",K));var Q=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===b(n))for(a in r=!0,n)Q(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,f(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(_(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},Z=/^-ms-/,J=/-([a-z])/g;function tt(t,e){return e.toUpperCase()}function et(t){return t.replace(Z,"ms-").replace(J,tt)}var nt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function it(){this.expando=_.expando+it.uid++}it.uid=1,it.prototype={cache:function(t){var e=t[this.expando];return e||(e={},nt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[et(e)]=n;else for(i in e)r[et(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][et(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(et):(e=et(e))in i?[e]:e.match(q)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||_.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var rt=new it,ot=new it,st=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,at=/[A-Z]/g;function lt(t,e,n){var i,r;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(at,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:st.test(r)?JSON.parse(r):r)}catch(t){}ot.set(t,e,n)}else n=void 0;return n}_.extend({hasData:function(t){return ot.hasData(t)||rt.hasData(t)},data:function(t,e,n){return ot.access(t,e,n)},removeData:function(t,e){ot.remove(t,e)},_data:function(t,e,n){return rt.access(t,e,n)},_removeData:function(t,e){rt.remove(t,e)}}),_.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=ot.get(o),1===o.nodeType&&!rt.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=et(i.slice(5)),lt(o,i,r[i]));rt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){ot.set(this,t)})):Q(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=ot.get(o,t))||void 0!==(n=lt(o,t))?n:void 0;this.each((function(){ot.set(this,t,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(t){return this.each((function(){ot.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=rt.get(t,e),n&&(!i||Array.isArray(n)?i=rt.access(t,e,_.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),i=n.length,r=n.shift(),o=_._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){_.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return rt.get(t,n)||rt.access(t,n,{empty:_.Callbacks("once memory").add((function(){rt.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?_.queue(this[0],t):void 0===e?this:this.each((function(){var n=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=_.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=rt.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ct=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ut=new RegExp("^(?:([+-])=|)("+ct+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],ht=m.documentElement,pt=function(t){return _.contains(t.ownerDocument,t)},ft={composed:!0};ht.getRootNode&&(pt=function(t){return _.contains(t.ownerDocument,t)||t.getRootNode(ft)===t.ownerDocument});var gt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&pt(t)&&"none"===_.css(t,"display")};function mt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return _.css(t,e,"")},l=a(),c=n&&n[3]||(_.cssNumber[e]?"":"px"),u=t.nodeType&&(_.cssNumber[e]||"px"!==c&&+l)&&ut.exec(_.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)_.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,_.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var vt={};function yt(t,e){for(var n,i,r,o,s,a,l,c=[],u=0,d=t.length;u<d;u++)(i=t[u]).style&&(n=i.style.display,e?("none"===n&&(c[u]=rt.get(i,"display")||null,c[u]||(i.style.display="")),""===i.style.display&&gt(i)&&(c[u]=(l=s=o=void 0,s=(r=i).ownerDocument,a=r.nodeName,(l=vt[a])||(o=s.body.appendChild(s.createElement(a)),l=_.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),vt[a]=l)))):"none"!==n&&(c[u]="none",rt.set(i,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(t[u].style.display=c[u]);return t}_.fn.extend({show:function(){return yt(this,!0)},hide:function(){return yt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){gt(this)?_(this).show():_(this).hide()}))}});var bt,xt,wt=/^(?:checkbox|radio)$/i,_t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;bt=m.createDocumentFragment().appendChild(m.createElement("div")),(xt=m.createElement("input")).setAttribute("type","radio"),xt.setAttribute("checked","checked"),xt.setAttribute("name","t"),bt.appendChild(xt),p.checkClone=bt.cloneNode(!0).cloneNode(!0).lastChild.checked,bt.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!bt.cloneNode(!0).lastChild.defaultValue,bt.innerHTML="<option></option>",p.option=!!bt.lastChild;var kt={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 St(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&k(t,e)?_.merge([t],n):n}function Tt(t,e){for(var n=0,i=t.length;n<i;n++)rt.set(t[n],"globalEval",!e||rt.get(e[n],"globalEval"))}kt.tbody=kt.tfoot=kt.colgroup=kt.caption=kt.thead,kt.th=kt.td,p.option||(kt.optgroup=kt.option=[1,"<select multiple='multiple'>","</select>"]);var At=/<|&#?\w+;/;function Dt(t,e,n,i,r){for(var o,s,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===b(o))_.merge(h,o.nodeType?[o]:o);else if(At.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(_t.exec(o)||["",""])[1].toLowerCase(),l=kt[a]||kt._default,s.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;_.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&-1<_.inArray(o,i))r&&r.push(o);else if(c=pt(o),s=St(d.appendChild(o),"script"),c&&Tt(s),n)for(u=0;o=s[u++];)Ct.test(o.type||"")&&n.push(o);return d}var Et=/^([^.]*)(?:\.(.+)|)/;function Mt(){return!0}function Ot(){return!1}function Pt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Pt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ot;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return _().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=_.guid++)),t.each((function(){_.event.add(this,e,r,i,n)}))}function Lt(t,e,n){n?(rt.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var n,i=rt.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=r.call(arguments),rt.set(this,e,i),this[e](),n=rt.get(this,e),rt.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(rt.set(this,e,_.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Mt)}})):void 0===rt.get(t,e)&&_.event.add(t,e,Mt)}_.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=rt.get(t);if(nt(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&_.find.matchesSelector(ht,r),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(q)||[""]).length;c--;)p=g=(a=Et.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=_.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=_.event.special[p]||{},u=_.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&_.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),_.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=rt.hasData(t)&&rt.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(q)||[""]).length;c--;)if(p=g=(a=Et.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=_.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||_.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)_.event.remove(t,p+e[c],n,i,!0);_.isEmptyObject(l)&&rt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=_.event.fix(t),c=(rt.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=_.event.handlers.call(this,l,c),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((_.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?-1<_(r,this).index(c):_.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:f(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return wt.test(e.type)&&e.click&&k(e,"input")&&Lt(e,"click",!0),!1},trigger:function(t){var e=this||t;return wt.test(e.type)&&e.click&&k(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return wt.test(e.type)&&e.click&&k(e,"input")&&rt.get(e,"click")||k(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Mt:Ot,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Mt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Mt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Mt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(m.documentMode){var n=rt.get(this,"handle"),i=_.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else _.event.simulate(e,t.target,_.event.fix(t))}_.event.special[t]={setup:function(){var i;if(Lt(this,t,!0),!m.documentMode)return!1;(i=rt.get(this,e))||this.addEventListener(e,n),rt.set(this,e,(i||0)+1)},trigger:function(){return Lt(this,t),!0},teardown:function(){var t;if(!m.documentMode)return!1;(t=rt.get(this,e)-1)?rt.set(this,e,t):(this.removeEventListener(e,n),rt.remove(this,e))},_default:function(e){return rt.get(e.target,t)},delegateType:e},_.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=m.documentMode?this:i,o=rt.get(r,e);o||(m.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),rt.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=m.documentMode?this:i,o=rt.get(r,e)-1;o?rt.set(r,e,o):(m.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),rt.remove(r,e))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||_.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),_.fn.extend({on:function(t,e,n,i){return Pt(this,t,e,n,i)},one:function(t,e,n,i){return Pt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,_(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ot),this.each((function(){_.event.remove(this,t,n,e)}))}});var It=/<script|<style|<link/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return k(t,"table")&&k(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function $t(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(rt.hasData(t)&&(a=rt.get(t).events))for(r in rt.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)_.event.add(e,r,a[r][n]);ot.hasData(t)&&(o=ot.access(t),s=_.extend({},o),ot.set(e,s))}}function Ht(t,e,n,i){e=o(e);var r,s,a,l,c,u,d=0,h=t.length,g=h-1,m=e[0],v=f(m);if(v||1<h&&"string"==typeof m&&!p.checkClone&&Nt.test(m))return t.each((function(r){var o=t.eq(r);v&&(e[0]=m.call(this,r,o.html())),Ht(o,e,n,i)}));if(h&&(s=(r=Dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(l=(a=_.map(St(r,"script"),jt)).length;d<h;d++)c=r,d!==g&&(c=_.clone(c,!0,!0),l&&_.merge(a,St(c,"script"))),n.call(t[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,_.map(a,$t),d=0;d<l;d++)c=a[d],Ct.test(c.type||"")&&!rt.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(Rt,""),c,u))}return t}function Bt(t,e,n){for(var i,r=e?_.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||_.cleanData(St(i)),i.parentNode&&(n&&pt(i)&&Tt(St(i,"script")),i.parentNode.removeChild(i));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a,l,c,u=t.cloneNode(!0),d=pt(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(s=St(u),i=0,r=(o=St(t)).length;i<r;i++)a=o[i],"input"===(c=(l=s[i]).nodeName.toLowerCase())&&wt.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(n)for(o=o||St(t),s=s||St(u),i=0,r=o.length;i<r;i++)zt(o[i],s[i]);else zt(t,u);return 0<(s=St(u,"script")).length&&Tt(s,!d&&St(t,"script")),u},cleanData:function(t){for(var e,n,i,r=_.event.special,o=0;void 0!==(n=t[o]);o++)if(nt(n)){if(e=n[rt.expando]){if(e.events)for(i in e.events)r[i]?_.event.remove(n,i):_.removeEvent(n,i,e.handle);n[rt.expando]=void 0}n[ot.expando]&&(n[ot.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return Q(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ht(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(St(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return Q(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!kt[(_t.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(_.cleanData(St(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,(function(e){var n=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(St(this)),n&&n.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var n,i=[],r=_(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),_(r[a])[e](n),s.apply(i,n.get());return this.pushStack(i)}}));var Wt=new RegExp("^("+ct+")(?!px)[a-z%]+$","i"),qt=/^--/,Ut=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Vt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Yt=new RegExp(dt.join("|"),"i");function Xt(t,e,n){var i,r,o,s,a=qt.test(e),l=t.style;return(n=n||Ut(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(E,"$1")||void 0),""!==s||pt(t)||(s=_.style(t,e)),!p.pixelBoxStyles()&&Wt.test(s)&&Yt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function Gt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ht.appendChild(c).appendChild(u);var e=t.getComputedStyle(u);i="1%"!==e.top,l=12===n(e.marginLeft),u.style.right="60%",s=36===n(e.right),r=36===n(e.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),ht.removeChild(c),u=null}}function n(t){return Math.round(parseFloat(t))}var i,r,o,s,a,l,c=m.createElement("div"),u=m.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(p,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,n,i,r;return null==a&&(e=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ht.appendChild(e).appendChild(n).appendChild(i),r=t.getComputedStyle(n),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,ht.removeChild(e)),a}}))}();var Kt=["Webkit","Moz","ms"],Qt=m.createElement("div").style,Zt={};function Jt(t){return _.cssProps[t]||Zt[t]||(t in Qt?t:Zt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Kt.length;n--;)if((t=Kt[n]+e)in Qt)return t}(t)||t)}var te=/^(none|table(?!-c[ea]).+)/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=ut.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function re(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=_.css(t,n+dt[s],!0,r)),i?("content"===n&&(l-=_.css(t,"padding"+dt[s],!0,r)),"margin"!==n&&(l-=_.css(t,"border"+dt[s]+"Width",!0,r))):(l+=_.css(t,"padding"+dt[s],!0,r),"padding"!==n?l+=_.css(t,"border"+dt[s]+"Width",!0,r):a+=_.css(t,"border"+dt[s]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+c}function oe(t,e,n){var i=Ut(t),r=(!p.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,i),o=r,s=Xt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Wt.test(s)){if(!n)return s;s="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&k(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===_.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===_.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+re(t,e,n||(r?"border":"content"),o,i,s)+"px"}function se(t,e,n,i,r){return new se.prototype.init(t,e,n,i,r)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Xt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=et(e),l=qt.test(e),c=t.style;if(l||(e=Jt(a)),s=_.cssHooks[e]||_.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:c[e];"string"==(o=typeof n)&&(r=ut.exec(n))&&r[1]&&(n=mt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(_.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,s,a=et(e);return qt.test(e)||(e=Jt(a)),(s=_.cssHooks[e]||_.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Xt(t,e,i)),"normal"===r&&e in ne&&(r=ne[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,i){if(n)return!te.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,e,i):Vt(t,ee,(function(){return oe(t,e,i)}))},set:function(t,n,i){var r,o=Ut(t),s=!p.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===_.css(t,"boxSizing",!1,o),l=i?re(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-re(t,e,"border",!1,o)-.5)),l&&(r=ut.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),ie(0,n,l)}}})),_.cssHooks.marginLeft=Gt(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-Vt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+dt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(_.cssHooks[t+e].set=ie)})),_.fn.extend({css:function(t,e){return Q(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Ut(t),r=e.length;s<r;s++)o[e[s]]=_.css(t,e[s],!1,i);return o}return void 0!==n?_.style(t,e,n):_.css(t,e)}),t,e,1<arguments.length)}}),((_.Tween=se).prototype={constructor:se,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):se.propHooks._default.set(this),this}}).init.prototype=se.prototype,(se.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=se.prototype.init,_.fx.step={};var ae,le,ce,ue,de=/^(?:toggle|show|hide)$/,he=/queueHooks$/;function pe(){le&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(pe):t.setTimeout(pe,_.fx.interval),_.fx.tick())}function fe(){return t.setTimeout((function(){ae=void 0})),ae=Date.now()}function ge(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=dt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function me(t,e,n){for(var i,r=(ve.tweeners[e]||[]).concat(ve.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function ve(t,e,n){var i,r,o=0,s=ve.prefilters.length,a=_.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=ae||fe(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(t,[c,i,n]),i<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:e,originalOptions:n,startTime:ae||fe(),duration:n.duration,tweens:[],createTween:function(e,n){var i=_.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=et(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=_.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<s;o++)if(i=ve.prefilters[o].call(c,t,u,c.opts))return f(i.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return _.map(u,me,c),f(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(ve,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return mt(n.elem,t,ut.exec(e),n),n}]},tweener:function(t,e){f(t)?(e=t,t=["*"]):t=t.match(q);for(var n,i=0,r=t.length;i<r;i++)n=t[i],ve.tweeners[n]=ve.tweeners[n]||[],ve.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&gt(t),m=rt.get(t,"fxshow");for(i in n.queue||(null==(s=_._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,_.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],de.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||_.style(t,i)}if((l=!_.isEmptyObject(e))||!_.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=rt.get(t,"display")),"none"===(u=_.css(t,"display"))&&(c?u=c:(yt([t],!0),c=t.style.display||c,u=_.css(t,"display"),yt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=rt.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&yt([t],!0),h.done((function(){for(i in g||yt([t]),rt.remove(t,"fxshow"),p)_.style(t,i,p[i])}))),l=me(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ve.prefilters.unshift(t):ve.prefilters.push(t)}}),_.speed=function(t,e,n){var i=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||f(t)&&t,duration:t,easing:n&&e||e&&!f(e)&&e};return _.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in _.fx.speeds?i.duration=_.fx.speeds[i.duration]:i.duration=_.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){f(i.old)&&i.old.call(this),i.queue&&_.dequeue(this,i.queue)},i},_.fn.extend({fadeTo:function(t,e,n,i){return this.filter(gt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=_.isEmptyObject(t),o=_.speed(e,n,i),s=function(){var e=ve(this,_.extend({},t),o);(r||rt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=_.timers,s=rt.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&he.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=rt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=_.timers,s=i?i.length:0;for(n.finish=!0,_.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var n=_.fn[e];_.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ge(e,!0),t,i,r)}})),_.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),_.timers=[],_.fx.tick=function(){var t,e=0,n=_.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||_.fx.stop(),ae=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){le||(le=!0,pe())},_.fx.stop=function(){le=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,n){return e=_.fx&&_.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}}))},ce=m.createElement("input"),ue=m.createElement("select").appendChild(m.createElement("option")),ce.type="checkbox",p.checkOn=""!==ce.value,p.optSelected=ue.selected,(ce=m.createElement("input")).value="t",ce.type="radio",p.radioValue="t"===ce.value;var ye,be=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return Q(this,_.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,n):(1===o&&_.isXMLDoc(t)||(r=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?ye:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=_.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&k(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(q);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),ye={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=be[e]||_.find.attr;be[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=be[s],be[s]=r,r=null!=n(t,e,i)?s:null,be[s]=o),r}}));var xe=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;function _e(t){return(t.match(q)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function ke(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(q)||[]}_.fn.extend({prop:function(t,e){return Q(this,_.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(e=_.propFix[e]||e,r=_.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,i,r,o,s;return f(t)?this.each((function(e){_(this).addClass(t.call(this,e,Ce(this)))})):(e=ke(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+_e(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=_e(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(t){var e,n,i,r,o,s;return f(t)?this.each((function(e){_(this).removeClass(t.call(this,e,Ce(this)))})):arguments.length?(e=ke(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+_e(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");s=_e(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return f(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,Ce(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=ke(t),this.each((function(){if(a)for(o=_(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Ce(this))&&rt.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":rt.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+_e(Ce(n))+" ").indexOf(e))return!0;return!1}});var Se=/\r/g;_.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=f(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,_(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=_.map(r,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=_.valHooks[r.type]||_.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:_e(_.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(e=_(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=_.makeArray(e),s=r.length;s--;)((i=r[s]).selected=-1<_.inArray(_.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<_.inArray(_(t).val(),e)}},p.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Te=t.location,Ae={guid:Date.now()},De=/\?/;_.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||_.error("Invalid XML: "+(i?_.map(i.childNodes,(function(t){return t.textContent})).join("\n"):e)),n};var Ee=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(e,n,i,r){var o,s,a,l,c,d,h,p,v=[i||m],y=u.call(e,"type")?e.type:e,b=u.call(e,"namespace")?e.namespace.split("."):[];if(s=p=a=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!Ee.test(y+_.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[_.expando]?e:new _.Event(y,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:_.makeArray(n,[e]),h=_.event.special[y]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!g(i)){for(l=h.delegateType||y,Ee.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(i.ownerDocument||m)&&v.push(a.defaultView||a.parentWindow||t)}for(o=0;(s=v[o++])&&!e.isPropagationStopped();)p=s,e.type=1<o?l:h.bindType||y,(d=(rt.get(s,"events")||Object.create(null))[e.type]&&rt.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&nt(s)&&(e.result=d.apply(s,n),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!nt(i)||c&&f(i[y])&&!g(i)&&((a=i[c])&&(i[c]=null),_.event.triggered=y,e.isPropagationStopped()&&p.addEventListener(y,Me),i[y](),e.isPropagationStopped()&&p.removeEventListener(y,Me),_.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(t,e,n){var i=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(i,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Pe=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,n,i){var r;if(Array.isArray(e))_.each(e,(function(e,r){n||Oe.test(t)?i(t,r):Ne(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==b(e))i(t,e);else for(r in e)Ne(t+"["+r+"]",e[r],n,i)}_.param=function(t,e){var n,i=[],r=function(t,e){var n=f(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){r(this.name,this.value)}));else for(n in t)Ne(n,t[n],e,r);return i.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Ie.test(this.nodeName)&&!Le.test(t)&&(this.checked||!wt.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:n.replace(Pe,"\r\n")}})).get()}});var Re=/%20/g,Fe=/#.*$/,je=/([?&])_=[^&]*/,$e=/^(.*?):[ \t]*([^\r\n]*)$/gm,ze=/^(?:GET|HEAD)$/,He=/^\/\//,Be={},We={},qe="*/".concat("*"),Ue=m.createElement("a");function Ve(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(q)||[];if(f(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ye(t,e,n,i){var r={},o=t===We;function s(a){var l;return r[a]=!0,_.each(t[a]||[],(function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Xe(t,e){var n,i,r=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&_.extend(!0,t,i),t}Ue.href=Te.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,_.ajaxSettings),e):Xe(_.ajaxSettings,t)},ajaxPrefilter:Ve(Be),ajaxTransport:Ve(We),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,r,o,s,a,l,c,u,d,h,p=_.ajaxSetup({},n),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?_(f):_.event,v=_.Deferred(),y=_.Callbacks("once memory"),b=p.statusCode||{},x={},w={},C="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=$e.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||C;return i&&i.abort(e),S(0,e),this}};if(v.promise(k),p.url=((e||p.url||Te.href)+"").replace(He,Te.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(q)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ue.protocol+"//"+Ue.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=_.param(p.data,p.traditional)),Ye(Be,p,n,k),c)return k;for(d in(u=_.event&&p.global)&&0==_.active++&&_.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ze.test(p.type),r=p.url.replace(Fe,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Re,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(De.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(je,"$1"),h=(De.test(r)?"&":"?")+"_="+Ae.guid+++h),p.url=r+h),p.ifModified&&(_.lastModified[r]&&k.setRequestHeader("If-Modified-Since",_.lastModified[r]),_.etag[r]&&k.setRequestHeader("If-None-Match",_.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qe+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(C="abort",y.add(p.complete),k.done(p.success),k.fail(p.error),i=Ye(We,p,n,k)){if(k.readyState=1,u&&g.trigger("ajaxSend",[k,p]),c)return k;p.async&&0<p.timeout&&(a=t.setTimeout((function(){k.abort("timeout")}),p.timeout));try{c=!1,i.send(x,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,n,s,l){var d,h,m,x,w,C=n;c||(c=!0,a&&t.clearTimeout(a),i=void 0,o=l||"",k.readyState=0<e?4:0,d=200<=e&&e<300||304===e,s&&(x=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,k,s)),!d&&-1<_.inArray("script",p.dataTypes)&&_.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,x,k,d),d?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(_.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(_.etag[r]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,h=x.data,d=!(m=x.error))):(m=C,!e&&C||(C="error",e<0&&(e=0))),k.status=e,k.statusText=(n||C)+"",d?v.resolveWith(f,[h,C,k]):v.rejectWith(f,[k,C,m]),k.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:m]),y.fireWith(f,[k,C]),u&&(g.trigger("ajaxComplete",[k,p]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,i,r){return f(n)&&(r=r||i,i=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:r,data:n,success:i},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(f(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return f(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ge={0:200,1223:204},Ke=_.ajaxSettings.xhr();p.cors=!!Ke&&"withCredentials"in Ke,p.ajax=Ke=!!Ke,_.ajaxTransport((function(e){var n,i;if(p.cors||Ke&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(t){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ge[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){n&&i()}))},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(r){if(n)throw r}},abort:function(){n&&n()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=_("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Qe,Ze=[],Je=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||_.expando+"_"+Ae.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(e,n,i){var r,o,s,a=!1!==e.jsonp&&(Je.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=f(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Je,"$1"+r):!1!==e.jsonp&&(e.url+=(De.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||_.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){s=arguments},i.always((function(){void 0===o?_(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Ze.push(r)),s&&f(o)&&o(s[0]),s=o=void 0})),"script"})),p.createHTMLDocument=((Qe=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Qe.childNodes.length),_.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(p.createHTMLDocument?((i=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(i)):e=m),o=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Dt([t],e,o),o&&o.length&&_(o).remove(),_.merge([],r.childNodes)));var i,r,o},_.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return-1<a&&(i=_e(t.slice(a)),t=t.slice(0,a)),f(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<s.length&&_.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?_("<div>").append(_.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=_.css(t,"position"),u=_(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=_.css(t,"top"),l=_.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),f(e)&&(e=e.call(t,n,_.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===_.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),r.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-_.css(i,"marginTop",!0),left:e.left-r.left-_.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||ht}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;_.fn[t]=function(i){return Q(this,(function(t,i,r){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=Gt(p.pixelPosition,(function(t,n){if(n)return n=Xt(t,e),Wt.test(n)?_(t).position()[e]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){_.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return Q(this,(function(e,n,r){var o;return g(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?_.css(e,n,a):_.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,t)}})),_.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){_.fn[e]=function(t,n){return 0<arguments.length?this.on(e,null,t,n):this.trigger(e)}}));var tn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),f(t))return i=r.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(r.call(arguments)))}).guid=t.guid=t.guid||_.guid++,o},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=k,_.isFunction=f,_.isWindow=g,_.camelCase=et,_.type=b,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(tn,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var en=t.jQuery,nn=t.$;return _.noConflict=function(e){return t.$===_&&(t.$=nn),e&&t.jQuery===_&&(t.jQuery=en),_},void 0===e&&(t.jQuery=t.$=_),_})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,n,i){t.has(e)||t.set(e,new Map);const r=t.get(e);r.has(n)||0===r.size?r.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const i=t.get(e);i.delete(n),0===i.size&&t.delete(e)}},n="transitionend",i=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>"#"+CSS.escape(e))),t),r=t=>{t.dispatchEvent(new Event(n))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(i(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},u=()=>{},d=t=>{t.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],f=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=h();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of p)t()}),p.push(e)):e()},m=(t,e=[],n=t)=>"function"==typeof t?t.call(...e):n,v=(t,e,i=!0)=>{if(!i)return void m(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),r=Number.parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let s=!1;const a=({target:i})=>{i===e&&(s=!0,e.removeEventListener(n,a),m(t))};e.addEventListener(n,a),setTimeout(()=>{s||r(e)},o)},y=(t,e,n,i)=>{const r=t.length;let o=t.indexOf(e);return-1===o?!n&&i?t[r-1]:t[0]:(o+=n?1:-1,i&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))])},b=/[^.]*(?=\..*)\.|.*/,x=/\..*/,w=/::\d+$/,_={};let C=1;const k={mouseenter:"mouseover",mouseleave:"mouseout"},S=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 T(t,e){return e&&`${e}::${C++}`||t.uidEvent||C++}function A(t){const e=T(t);return t.uidEvent=e,_[e]=_[e]||{},_[e]}function D(t,e,n=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function E(t,e,n){const i="string"==typeof e,r=i?n:e||n;let o=L(t);return S.has(o)||(o=t),[i,r,o]}function M(t,e,n,i,r){if("string"!=typeof e||!t)return;let[o,s,a]=E(e,n,i);if(e in k){s=(t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)})(s)}const l=A(t),c=l[a]||(l[a]={}),u=D(c,s,o?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=T(s,e.replace(b,"")),h=o?function(t,e,n){return function i(r){const o=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of o)if(a===s)return N(r,{delegateTarget:s}),i.oneOff&&I.off(t,r.type,e,n),n.apply(s,[r])}}(t,n,s):function(t,e){return function n(i){return N(i,{delegateTarget:t}),n.oneOff&&I.off(t,i.type,e),e.apply(t,[i])}}(t,s);h.delegationSelector=o?n:null,h.callable=s,h.oneOff=r,h.uidEvent=d,c[d]=h,t.addEventListener(a,h,o)}function O(t,e,n,i,r){const o=D(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}function P(t,e,n,i){const r=e[n]||{};for(const[o,s]of Object.entries(r))o.includes(i)&&O(t,e,n,s.callable,s.delegationSelector)}function L(t){return t=t.replace(x,""),k[t]||t}const I={on(t,e,n,i){M(t,e,n,i,!1)},one(t,e,n,i){M(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[r,o,s]=E(e,n,i),a=s!==e,l=A(t),c=l[s]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const n of Object.keys(l))P(t,l,n,e.slice(1));for(const[n,i]of Object.entries(c)){const r=n.replace(w,"");a&&!e.includes(r)||O(t,l,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;O(t,l,s,o,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=h();let r=null,o=!0,s=!0,a=!1;e!==L(e)&&i&&(r=i.Event(e,n),i(t).trigger(r),o=!r.isPropagationStopped(),s=!r.isImmediatePropagationStopped(),a=r.isDefaultPrevented());const l=N(new Event(e,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),s&&t.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function N(t,e={}){for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function R(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function F(t){return t.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}const j={setDataAttribute(t,e,n){t.setAttribute("data-bs-"+F(e),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-"+F(e))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=R(t.dataset[i])}return e},getDataAttribute:(t,e)=>R(t.getAttribute("data-bs-"+F(e)))};class ${static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=o(e)?j.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...o(e)?j.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,r]of Object.entries(e)){const e=t[i],s=o(e)?"element":null==(n=e)?""+n:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var n}}class z extends ${constructor(t,n){super(),(t=s(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){v(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.6"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(t){return`${t}${this.EVENT_KEY}`}}const H=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>i(t)).join(","):null},B={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>t+':not([tabindex^="-"])').join(",");return this.find(e,t).filter(t=>!l(t)&&a(t))},getSelectorFromElement(t){const e=H(t);return e&&B.findOne(e)?e:null},getElementFromSelector(t){const e=H(t);return e?B.findOne(e):null},getMultipleElementsFromSelector(t){const e=H(t);return e?B.find(e):[]}},W=(t,e="hide")=>{const n="click.dismiss"+t.EVENT_KEY,i=t.NAME;I.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const r=B.getElementFromSelector(this)||this.closest("."+i);t.getOrCreateInstance(r)[e]()}))};class q extends z{static get NAME(){return"alert"}close(){if(I.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),I.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=q.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}W(q,"close"),g(q);const U='[data-bs-toggle="button"]';class V extends z{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=V.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}I.on(document,"click.bs.button.data-api",U,t=>{t.preventDefault();const e=t.target.closest(U);V.getOrCreateInstance(e).toggle()}),g(V);const Y=".bs.swipe",X={endCallback:null,leftCallback:null,rightCallback:null},G={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class K extends ${constructor(t,e){super(),this._element=t,t&&K.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return X}static get DefaultType(){return G}static get NAME(){return"swipe"}dispose(){I.off(this._element,Y)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),m(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&m(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(I.on(this._element,"pointerdown.bs.swipe",t=>this._start(t)),I.on(this._element,"pointerup.bs.swipe",t=>this._end(t)),this._element.classList.add("pointer-event")):(I.on(this._element,"touchstart.bs.swipe",t=>this._start(t)),I.on(this._element,"touchmove.bs.swipe",t=>this._move(t)),I.on(this._element,"touchend.bs.swipe",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Q=".bs.carousel",Z=".data-api",J="next",tt="prev",et="left",nt="right",it="slid"+Q,rt=`load${Q}${Z}`,ot=`click${Q}${Z}`,st="carousel",at="active",lt=".active",ct=".carousel-item",ut={ArrowLeft:nt,ArrowRight:et},dt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ht={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class pt extends z{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===st&&this.cycle()}static get Default(){return dt}static get DefaultType(){return ht}static get NAME(){return"carousel"}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(tt)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?I.one(this._element,it,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void I.one(this._element,it,()=>this.to(t));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?J:tt;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&I.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(I.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),I.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&K.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of B.find(".carousel-item img",this._element))I.on(t,"dragstart.bs.carousel",t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(et)),rightCallback:()=>this._slide(this._directionToOrder(nt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new K(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ut[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=B.findOne(lt,this._indicatorsElement);e.classList.remove(at),e.removeAttribute("aria-current");const n=B.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(at),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===J,r=e||y(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),s=e=>I.trigger(this._element,e,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(s("slide.bs.carousel").defaultPrevented)return;if(!n||!r)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";r.classList.add(c),d(r),n.classList.add(l),r.classList.add(l),this._queueCallback(()=>{r.classList.remove(l,c),r.classList.add(at),n.classList.remove(at,c,l),this._isSliding=!1,s(it)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return B.findOne(".active.carousel-item",this._element)}_getItems(){return B.find(ct,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return f()?t===et?tt:J:t===et?J:tt}_orderToDirection(t){return f()?t===tt?et:nt:t===tt?nt:et}static jQueryInterface(t){return this.each((function(){const e=pt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}I.on(document,ot,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=B.getElementFromSelector(this);if(!e||!e.classList.contains(st))return;t.preventDefault();const n=pt.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===j.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),I.on(window,rt,()=>{const t=B.find('[data-bs-ride="carousel"]');for(const e of t)pt.getOrCreateInstance(e)}),g(pt);const ft=".bs.collapse",gt=`click${ft}.data-api`,mt="show",vt="collapse",yt="collapsing",bt=`:scope .${vt} .${vt}`,xt='[data-bs-toggle="collapse"]',wt={parent:null,toggle:!0},_t={parent:"(null|element)",toggle:"boolean"};class Ct extends z{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=B.find(xt);for(const t of n){const e=B.getSelectorFromElement(t),n=B.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wt}static get DefaultType(){return _t}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>Ct.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(I.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(vt),this._element.classList.add(yt),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n="scroll"+(e[0].toUpperCase()+e.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(yt),this._element.classList.add(vt,mt),this._element.style[e]="",I.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[e]=this._element[n]+"px"}hide(){if(this._isTransitioning||!this._isShown())return;if(I.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",d(this._element),this._element.classList.add(yt),this._element.classList.remove(vt,mt);for(const t of this._triggerArray){const e=B.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(yt),this._element.classList.add(vt),I.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(mt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=s(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(xt);for(const e of t){const t=B.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=B.find(bt,this._config.parent);return B.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=Ct.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}I.on(document,gt,xt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of B.getMultipleElementsFromSelector(this))Ct.getOrCreateInstance(t,{toggle:!1}).toggle()})),g(Ct);var kt="top",St="bottom",Tt="right",At="left",Dt="auto",Et=[kt,St,Tt,At],Mt="start",Ot="end",Pt="clippingParents",Lt="viewport",It="popper",Nt="reference",Rt=Et.reduce((function(t,e){return t.concat([e+"-"+Mt,e+"-"+Ot])}),[]),Ft=[].concat(Et,[Dt]).reduce((function(t,e){return t.concat([e,e+"-"+Mt,e+"-"+Ot])}),[]),jt="beforeRead",$t="afterRead",zt="beforeMain",Ht="afterMain",Bt="beforeWrite",Wt="afterWrite",qt=[jt,"read",$t,zt,"main",Ht,Bt,"write",Wt];function Ut(t){return t?(t.nodeName||"").toLowerCase():null}function Vt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yt(t){return t instanceof Vt(t).Element||t instanceof Element}function Xt(t){return t instanceof Vt(t).HTMLElement||t instanceof HTMLElement}function Gt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Vt(t).ShadowRoot||t instanceof ShadowRoot)}const Kt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];Xt(r)&&Ut(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Xt(i)&&Ut(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Qt(t){return t.split("-")[0]}var Zt=Math.max,Jt=Math.min,te=Math.round;function ee(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function ne(){return!/^((?!chrome|android).)*safari/i.test(ee())}function ie(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&Xt(t)&&(r=t.offsetWidth>0&&te(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&te(i.height)/t.offsetHeight||1);var s=(Yt(t)?Vt(t):window).visualViewport,a=!ne()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/r,c=(i.top+(a&&s?s.offsetTop:0))/o,u=i.width/r,d=i.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function re(t){var e=ie(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function oe(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Gt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function se(t){return Vt(t).getComputedStyle(t)}function ae(t){return["table","td","th"].indexOf(Ut(t))>=0}function le(t){return((Yt(t)?t.ownerDocument:t.document)||window.document).documentElement}function ce(t){return"html"===Ut(t)?t:t.assignedSlot||t.parentNode||(Gt(t)?t.host:null)||le(t)}function ue(t){return Xt(t)&&"fixed"!==se(t).position?t.offsetParent:null}function de(t){for(var e=Vt(t),n=ue(t);n&&ae(n)&&"static"===se(n).position;)n=ue(n);return n&&("html"===Ut(n)||"body"===Ut(n)&&"static"===se(n).position)?e:n||function(t){var e=/firefox/i.test(ee());if(/Trident/i.test(ee())&&Xt(t)&&"fixed"===se(t).position)return null;var n=ce(t);for(Gt(n)&&(n=n.host);Xt(n)&&["html","body"].indexOf(Ut(n))<0;){var i=se(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function he(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function pe(t,e,n){return Zt(t,Jt(e,n))}function fe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ge(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const me={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Qt(n.placement),l=he(a),c=[At,Tt].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(t,e){return fe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ge(t,Et))}(r.padding,n),d=re(o),h="y"===l?kt:At,p="y"===l?St:Tt,f=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],m=de(o),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=f/2-g/2,b=u[h],x=v-d[c]-u[p],w=v/2-d[c]/2+y,_=pe(b,w,x),C=l;n.modifiersData[i]=((e={})[C]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&oe(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(t){return t.split("-")[1]}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function be(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=At,x=kt,w=window;if(c){var _=de(n),C="clientHeight",k="clientWidth";_===Vt(n)&&"static"!==se(_=le(n)).position&&"absolute"===a&&(C="scrollHeight",k="scrollWidth"),(r===kt||(r===At||r===Tt)&&o===Ot)&&(x=St,g-=(d&&_===w&&w.visualViewport?w.visualViewport.height:_[C])-i.height,g*=l?1:-1),r!==At&&(r!==kt&&r!==St||o!==Ot)||(b=Tt,p-=(d&&_===w&&w.visualViewport?w.visualViewport.width:_[k])-i.width,p*=l?1:-1)}var S,T=Object.assign({position:a},c&&ye),A=!0===u?function(t,e){var n=t.x,i=t.y,r=e.devicePixelRatio||1;return{x:te(n*r)/r||0,y:te(i*r)/r||0}}({x:p,y:g},Vt(n)):{x:p,y:g};return p=A.x,g=A.y,l?Object.assign({},T,((S={})[x]=y?"0":"",S[b]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",S)):Object.assign({},T,((e={})[x]=y?g+"px":"",e[b]=v?p+"px":"",e.transform="",e))}const xe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Qt(e.placement),variation:ve(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,be(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,be(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var we={passive:!0};const _e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=Vt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,we)})),a&&l.addEventListener("resize",n.update,we),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,we)})),a&&l.removeEventListener("resize",n.update,we)}},data:{}};var Ce={left:"right",right:"left",bottom:"top",top:"bottom"};function ke(t){return t.replace(/left|right|bottom|top/g,(function(t){return Ce[t]}))}var Se={start:"end",end:"start"};function Te(t){return t.replace(/start|end/g,(function(t){return Se[t]}))}function Ae(t){var e=Vt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function De(t){return ie(le(t)).left+Ae(t).scrollLeft}function Ee(t){var e=se(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Me(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(Ut(e))>=0?e.ownerDocument.body:Xt(e)&&Ee(e)?e:t(ce(e))}(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=Vt(i),s=r?[o].concat(o.visualViewport||[],Ee(i)?i:[]):i,a=e.concat(s);return r?a:a.concat(Me(ce(s)))}function Oe(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Pe(t,e,n){return e===Lt?Oe(function(t,e){var n=Vt(t),i=le(t),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=ne();(c||!c&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+De(t),y:l}}(t,n)):Yt(e)?function(t,e){var n=ie(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Oe(function(t){var e,n=le(t),i=Ae(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=Zt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Zt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+De(t),l=-i.scrollTop;return"rtl"===se(r||n).direction&&(a+=Zt(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(le(t)))}function Le(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?Qt(r):null,s=r?ve(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case kt:e={x:a,y:n.y-i.height};break;case St:e={x:a,y:n.y+n.height};break;case Tt:e={x:n.x+n.width,y:l};break;case At:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=o?he(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Mt:e[c]=e[c]-(n[u]/2-i[u]/2);break;case Ot:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function Ie(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,s=void 0===o?t.strategy:o,a=n.boundary,l=void 0===a?Pt:a,c=n.rootBoundary,u=void 0===c?Lt:c,d=n.elementContext,h=void 0===d?It:d,p=n.altBoundary,f=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,v=fe("number"!=typeof m?m:ge(m,Et)),y=h===It?Nt:It,b=t.rects.popper,x=t.elements[f?y:h],w=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=Me(ce(t)),n=["absolute","fixed"].indexOf(se(t).position)>=0&&Xt(t)?de(t):t;return Yt(n)?e.filter((function(t){return Yt(t)&&oe(t,n)&&"body"!==Ut(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),s=o[0],a=o.reduce((function(e,n){var r=Pe(t,n,i);return e.top=Zt(r.top,e.top),e.right=Jt(r.right,e.right),e.bottom=Jt(r.bottom,e.bottom),e.left=Zt(r.left,e.left),e}),Pe(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Yt(x)?x:x.contextElement||le(t.elements.popper),l,u,s),_=ie(t.elements.reference),C=Le({reference:_,element:b,placement:r}),k=Oe(Object.assign({},b,C)),S=h===It?k:_,T={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},A=t.modifiersData.offset;if(h===It&&A){var D=A[r];Object.keys(T).forEach((function(t){var e=[Tt,St].indexOf(t)>=0?1:-1,n=[kt,St].indexOf(t)>=0?"y":"x";T[t]+=D[n]*e}))}return T}const Ne={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=e.options.placement,v=Qt(m),y=l||(v!==m&&f?function(t){if(Qt(t)===Dt)return[];var e=ke(t);return[Te(t),e,Te(e)]}(m):[ke(m)]),b=[m].concat(y).reduce((function(t,n){return t.concat(Qt(n)===Dt?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Ft:l,u=ve(i),d=u?a?Rt:Rt.filter((function(t){return ve(t)===u})):Et,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,n){return e[n]=Ie(t,{placement:n,boundary:r,rootBoundary:o,padding:s})[Qt(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=e.rects.reference,w=e.rects.popper,_=new Map,C=!0,k=b[0],S=0;S<b.length;S++){var T=b[S],A=Qt(T),D=ve(T)===Mt,E=[kt,St].indexOf(A)>=0,M=E?"width":"height",O=Ie(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),P=E?D?Tt:At:D?St:kt;x[M]>w[M]&&(P=ke(P));var L=ke(P),I=[];if(o&&I.push(O[A]<=0),a&&I.push(O[P]<=0,O[L]<=0),I.every((function(t){return t}))){k=T,C=!1;break}_.set(T,I)}if(C)for(var N=function(t){var e=b.find((function(e){var n=_.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},R=f?3:1;R>0&&"break"!==N(R);R--);e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Re(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Fe(t){return[kt,Tt,St,At].some((function(e){return t[e]>=0}))}const je={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ie(e,{elementContext:"reference"}),a=Ie(e,{altBoundary:!0}),l=Re(s,i),c=Re(a,r,o),u=Fe(l),d=Fe(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,s=Ft.reduce((function(t,n){return t[n]=function(t,e,n){var i=Qt(t),r=[At,kt].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[At,Tt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,o),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}},ze={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Le({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},He={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,g=void 0===f?0:f,m=Ie(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Qt(e.placement),y=ve(e.placement),b=!y,x=he(v),w="x"===x?"y":"x",_=e.modifiersData.popperOffsets,C=e.rects.reference,k=e.rects.popper,S="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,T="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(_){if(o){var E,M="y"===x?kt:At,O="y"===x?St:Tt,P="y"===x?"height":"width",L=_[x],I=L+m[M],N=L-m[O],R=p?-k[P]/2:0,F=y===Mt?C[P]:k[P],j=y===Mt?-k[P]:-C[P],$=e.elements.arrow,z=p&&$?re($):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[M],W=H[O],q=pe(0,C[P],z[P]),U=b?C[P]/2-R-q-B-T.mainAxis:F-q-B-T.mainAxis,V=b?-C[P]/2+R+q+W+T.mainAxis:j+q+W+T.mainAxis,Y=e.elements.arrow&&de(e.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(E=null==A?void 0:A[x])?E:0,K=L+V-G,Q=pe(p?Jt(I,L+U-G-X):I,L,p?Zt(N,K):N);_[x]=Q,D[x]=Q-L}if(a){var Z,J="x"===x?kt:At,tt="x"===x?St:Tt,et=_[w],nt="y"===w?"height":"width",it=et+m[J],rt=et-m[tt],ot=-1!==[kt,At].indexOf(v),st=null!=(Z=null==A?void 0:A[w])?Z:0,at=ot?it:et-C[nt]-k[nt]-st+T.altAxis,lt=ot?et+C[nt]+k[nt]-st-T.altAxis:rt,ct=p&&ot?function(t,e,n){var i=pe(t,e,n);return i>n?n:i}(at,et,lt):pe(p?at:it,et,p?lt:rt);_[w]=ct,D[w]=ct-et}e.modifiersData[i]=D}},requiresIfExists:["offset"]};function Be(t,e,n){void 0===n&&(n=!1);var i,r,o=Xt(e),s=Xt(e)&&function(t){var e=t.getBoundingClientRect(),n=te(e.width)/t.offsetWidth||1,i=te(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=le(e),l=ie(t,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==Ut(e)||Ee(a))&&(c=(i=e)!==Vt(i)&&Xt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:Ae(i)),Xt(e)?((u=ie(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=De(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function We(t){var e=new Map,n=new Set,i=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var r=e.get(i);r&&t(r)}})),i.push(r)}(t)})),i}var qe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ve(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?qe:r;return function(t,e,n){void 0===n&&(n=o);var r,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},qe,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var r="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:Yt(t)?Me(t):t.contextElement?Me(t.contextElement):[],popper:Me(e)};var s,c,h=function(t){var e=We(t);return qt.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=h.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:u,options:i});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Ue(e,n)){a.rects={reference:Be(e,de(n),"fixed"===a.options.strategy),popper:re(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var r=a.orderedModifiers[i],o=r.fn,s=r.options,l=void 0===s?{}:s,d=r.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(r())}))}))),s}),destroy:function(){d(),c=!0}};if(!Ue(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var Ye=Ve(),Xe=Ve({defaultModifiers:[_e,ze,xe,Kt]}),Ge=Ve({defaultModifiers:[_e,ze,xe,Kt,$e,Ne,He,me,je]});const Ke=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Ht,afterRead:$t,afterWrite:Wt,applyStyles:Kt,arrow:me,auto:Dt,basePlacements:Et,beforeMain:zt,beforeRead:jt,beforeWrite:Bt,bottom:St,clippingParents:Pt,computeStyles:xe,createPopper:Ge,createPopperBase:Ye,createPopperLite:Xe,detectOverflow:Ie,end:Ot,eventListeners:_e,flip:Ne,hide:je,left:At,main:"main",modifierPhases:qt,offset:$e,placements:Ft,popper:It,popperGenerator:Ve,popperOffsets:ze,preventOverflow:He,read:"read",reference:Nt,right:Tt,start:Mt,top:kt,variationPlacements:Rt,viewport:Lt,write:"write"},Symbol.toStringTag,{value:"Module"})),Qe="dropdown",Ze=".bs.dropdown",Je=".data-api",tn="ArrowUp",en="ArrowDown",nn=`click${Ze}${Je}`,rn=`keydown${Ze}${Je}`,on=`keyup${Ze}${Je}`,sn="show",an='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ln=".dropdown-menu",cn=f()?"top-end":"top-start",un=f()?"top-start":"top-end",dn=f()?"bottom-end":"bottom-start",hn=f()?"bottom-start":"bottom-end",pn=f()?"left-start":"right-start",fn=f()?"right-start":"left-start",gn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},mn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class vn extends z{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,ln)[0]||B.prev(this._element,ln)[0]||B.findOne(ln,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return gn}static get DefaultType(){return mn}static get NAME(){return Qe}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!I.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))I.on(t,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(sn),this._element.classList.add(sn),I.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(l(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!I.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(sn),this._element.classList.remove(sn),this._element.setAttribute("aria-expanded","false"),j.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,"hidden.bs.dropdown",t),this._element.focus()}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(Qe.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t}_createPopper(){if(void 0===Ke)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=s(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Ge(t,this._menu,e)}_isShown(){return this._menu.classList.contains(sn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return pn;if(t.classList.contains("dropstart"))return fn;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?un:cn:e?hn:dn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(j.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...m(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const n=B.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>a(t));n.length&&y(n,e,t===en,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=vn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=B.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show');for(const n of e){const e=vn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),r=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!r||"outside"===e._config.autoClose&&r)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[tn,en].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const r=this.matches(an)?this:B.prev(this,an)[0]||B.next(this,an)[0]||B.findOne(an,t.delegateTarget.parentNode),o=vn.getOrCreateInstance(r);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}I.on(document,rn,an,vn.dataApiKeydownHandler),I.on(document,rn,ln,vn.dataApiKeydownHandler),I.on(document,nn,vn.clearMenus),I.on(document,on,vn.clearMenus),I.on(document,nn,an,(function(t){t.preventDefault(),vn.getOrCreateInstance(this).toggle()})),g(vn);const yn="backdrop",bn="mousedown.bs."+yn,xn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},wn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class _n extends ${constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return xn}static get DefaultType(){return wn}static get NAME(){return yn}show(t){if(!this._config.isVisible)return void m(t);this._append();const e=this._getElement();this._config.isAnimated&&d(e),e.classList.add("show"),this._emulateAnimation(()=>{m(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),m(t)})):m(t)}dispose(){this._isAppended&&(I.off(this._element,bn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=s(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),I.on(t,bn,()=>{m(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const Cn=".bs.focustrap",kn="backward",Sn={autofocus:!0,trapElement:null},Tn={autofocus:"boolean",trapElement:"element"};class An extends ${constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Sn}static get DefaultType(){return Tn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),I.off(document,Cn),I.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),I.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,I.off(document,Cn))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=B.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===kn?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?kn:"forward")}}const Dn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",En=".sticky-top",Mn="padding-right",On="margin-right";class Pn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Mn,e=>e+t),this._setElementAttributes(Dn,Mn,e=>e+t),this._setElementAttributes(En,On,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Mn),this._resetElementAttributes(Dn,Mn),this._resetElementAttributes(En,On)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,n(Number.parseFloat(r))+"px")})}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&j.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const n=j.getDataAttribute(t,e);null!==n?(j.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const n of B.find(t,this._element))e(n)}}const Ln=".bs.modal",In="hidden"+Ln,Nn="show"+Ln,Rn=`click${Ln}.data-api`,Fn="modal-open",jn="modal-static",$n={backdrop:!0,focus:!0,keyboard:!0},zn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Hn extends z{constructor(t,e){super(t,e),this._dialog=B.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Pn,this._addEventListeners()}static get Default(){return $n}static get DefaultType(){return zn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||I.trigger(this._element,Nn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Fn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(I.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){I.off(window,Ln),I.off(this._dialog,Ln),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _n({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new An({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=B.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),d(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,I.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){I.on(this._element,"keydown.dismiss.bs.modal",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),I.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),I.on(this._element,"mousedown.dismiss.bs.modal",t=>{I.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Fn),this._resetAdjustments(),this._scrollBar.reset(),I.trigger(this._element,In)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(I.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(jn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(jn),this._queueCallback(()=>{this._element.classList.remove(jn),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=f()?"paddingLeft":"paddingRight";this._element.style[t]=e+"px"}if(!n&&t){const t=f()?"paddingRight":"paddingLeft";this._element.style[t]=e+"px"}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Hn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}I.on(document,Rn,'[data-bs-toggle="modal"]',(function(t){const e=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),I.one(e,Nn,t=>{t.defaultPrevented||I.one(e,In,()=>{a(this)&&this.focus()})});const n=B.findOne(".modal.show");n&&Hn.getInstance(n).hide(),Hn.getOrCreateInstance(e).toggle(this)})),W(Hn),g(Hn);const Bn=".bs.offcanvas",Wn=".data-api",qn=`load${Bn}${Wn}`,Un="showing",Vn=".offcanvas.show",Yn="hidePrevented"+Bn,Xn="hidden"+Bn,Gn=`click${Bn}${Wn}`,Kn={backdrop:!0,keyboard:!0,scroll:!1},Qn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Zn extends z{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Kn}static get DefaultType(){return Qn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||I.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Pn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Un),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(Un),I.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(I.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Pn).reset(),I.trigger(this._element,Xn)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new _n({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():I.trigger(this._element,Yn)}:null})}_initializeFocusTrap(){return new An({trapElement:this._element})}_addEventListeners(){I.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():I.trigger(this._element,Yn))})}static jQueryInterface(t){return this.each((function(){const e=Zn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}I.on(document,Gn,'[data-bs-toggle="offcanvas"]',(function(t){const e=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this))return;I.one(e,Xn,()=>{a(this)&&this.focus()});const n=B.findOne(Vn);n&&n!==e&&Zn.getInstance(n).hide(),Zn.getOrCreateInstance(e).toggle(this)})),I.on(window,qn,()=>{for(const t of B.find(Vn))Zn.getOrCreateInstance(t).show()}),I.on(window,"resize.bs.offcanvas",()=>{for(const t of B.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Zn.getOrCreateInstance(t).hide()}),W(Zn),g(Zn);const Jn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},ti=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ei=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ni=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!ti.has(n)||Boolean(ei.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))},ii={allowList:Jn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ri={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},oi={entry:"(string|element|function|null)",selector:"(string|element)"};class si extends ${constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return ii}static get DefaultType(){return ri}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},oi)}_setContent(t,e,n){const i=B.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(s(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const t of r){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),r=[].concat(e["*"]||[],e[n]||[]);for(const e of i)ni(e,r)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return m(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ai=new Set(["sanitize","allowList","sanitizeFn"]),li="fade",ci="show",ui="hide.bs.modal",di="hover",hi="focus",pi={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},fi={allowList:Jn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},gi={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mi extends z{constructor(t,e){if(void 0===Ke)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return fi}static get DefaultType(){return gi}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(".modal"),ui,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=I.trigger(this._element,this.constructor.eventName("show")),e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),I.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ci),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.on(t,"mouseover",u);this._queueCallback(()=>{I.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!I.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ci),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger[hi]=!1,this._activeTrigger[di]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(li,ci),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(li),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new si({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(li)}_isShown(){return this.tip&&this.tip.classList.contains(ci)}_createPopper(t){const e=m(this._config.placement,[this,t,this._element]),n=pi[e.toUpperCase()];return Ge(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return m(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...m(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)I.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()});else if("manual"!==e){const t=e===di?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===di?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");I.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?hi:di]=!0,e._enter()}),I.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?hi:di]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},I.on(this._element.closest(".modal"),ui,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=j.getDataAttributes(this._element);for(const t of Object.keys(e))ai.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:s(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=mi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(mi);const vi={...mi.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},yi={...mi.DefaultType,content:"(null|string|element|function)"};class bi extends mi{static get Default(){return vi}static get DefaultType(){return yi}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=bi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}g(bi);const xi=".bs.scrollspy",wi="click"+xi,_i=`load${xi}.data-api`,Ci="active",ki="[href]",Si=".nav-link",Ti=`${Si}, .nav-item > ${Si}, .list-group-item`,Ai={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Di={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ei extends z{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ai}static get DefaultType(){return Di}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=s(t.target)||document.body,t.rootMargin=t.offset?t.offset+"px 0px -30%":t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(I.off(this._config.target,wi),I.on(this._config.target,wi,ki,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get("#"+t.target.id),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&t){if(n(o),!i)return}else r||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=B.find(ki,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=B.findOne(decodeURI(e.hash),this._element);a(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ci),this._activateParents(t),I.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))B.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Ci);else for(const e of B.parents(t,".nav, .list-group"))for(const t of B.prev(e,Ti))t.classList.add(Ci)}_clearActiveClass(t){t.classList.remove(Ci);const e=B.find(`${ki}.${Ci}`,t);for(const t of e)t.classList.remove(Ci)}static jQueryInterface(t){return this.each((function(){const e=Ei.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}I.on(window,_i,()=>{for(const t of B.find('[data-bs-spy="scroll"]'))Ei.getOrCreateInstance(t)}),g(Ei);const Mi="ArrowLeft",Oi="ArrowRight",Pi="ArrowUp",Li="ArrowDown",Ii="Home",Ni="End",Ri="active",Fi="show",ji=".dropdown-toggle",$i=`:not(${ji})`,zi='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Hi=`.nav-link${$i}, .list-group-item${$i}, [role="tab"]${$i}, ${zi}`,Bi=`.${Ri}[data-bs-toggle="tab"], .${Ri}[data-bs-toggle="pill"], .${Ri}[data-bs-toggle="list"]`;class Wi extends z{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),I.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?I.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;I.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Ri),this._activate(B.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),I.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(Fi)},t,t.classList.contains("fade")))}_deactivate(t,e){t&&(t.classList.remove(Ri),t.blur(),this._deactivate(B.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),I.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(Fi)},t,t.classList.contains("fade")))}_keydown(t){if(![Mi,Oi,Pi,Li,Ii,Ni].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!l(t));let n;if([Ii,Ni].includes(t.key))n=e[t.key===Ii?0:e.length-1];else{const i=[Oi,Li].includes(t.key);n=y(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),Wi.getOrCreateInstance(n).show())}_getChildren(){return B.find(Hi,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=B.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",""+t.id))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains("dropdown"))return;const i=(t,i)=>{const r=B.findOne(t,n);r&&r.classList.toggle(i,e)};i(ji,Ri),i(".dropdown-menu",Fi),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Ri)}_getInnerElement(t){return t.matches(Hi)?t:B.findOne(Hi,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Wi.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}I.on(document,"click.bs.tab",zi,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||Wi.getOrCreateInstance(this).show()})),I.on(window,"load.bs.tab",()=>{for(const t of B.find(Bi))Wi.getOrCreateInstance(t)}),g(Wi);const qi="show",Ui="showing",Vi={animation:"boolean",autohide:"boolean",delay:"number"},Yi={animation:!0,autohide:!0,delay:5e3};class Xi extends z{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Yi}static get DefaultType(){return Vi}static get NAME(){return"toast"}show(){I.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),d(this._element),this._element.classList.add(qi,Ui),this._queueCallback(()=>{this._element.classList.remove(Ui),I.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(I.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ui),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(Ui,qi),I.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(qi),super.dispose()}isShown(){return this._element.classList.contains(qi)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){I.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),I.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),I.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),I.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Xi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return W(Xi),g(Xi),{Alert:q,Button:V,Carousel:pt,Collapse:Ct,Dropdown:vn,Modal:Hn,Offcanvas:Zn,Popover:bi,ScrollSpy:Ei,Tab:Wi,Toast:Xi,Tooltip:mi}}));var NioApp=((t,e)=>{var n=e(window),i=e("body"),r="lite-dash";function o(t,e){return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}return e.fn.exists=function(){return 0<this.length},e.fn.csskey=function(t,e){for(var n=e?e+"-":"",i=t?t.split(" "):"",r=0;r<i.length;r++)i[r]=n+i[r];return i.toString().replace(","," ")},t.BS={},t.TGL={},t.Ani={},t.Addons={},t.Slider={},t.Picker={},t.Custom={},t.Win={height:n.height(),width:n.outerWidth()},t.Break={mb:420,sm:576,md:768,lg:992,xl:1200,xxl:1540,any:1/0},t.Host={name:window.location.hostname,locat:r.slice(-4)+r.slice(0,4)},t.isDark=!(!i.hasClass("dark-mode")&&"dark"!==i.data("theme")),t.State={isRTL:!(!i.hasClass("has-rtl")&&"rtl"!==i.attr("dir")),isTouch:"ontouchstart"in document.documentElement,isMobile:!!navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|/i),asMobile:t.Win.width<t.Break.md,asServe:t.Host.name.split(".").indexOf(t.Host.locat)},t.hexRGB=function(t,e){if(e=e||1,/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return t=[(t="0x"+(t=3===(t=t.substring(1).split("")).length?[t[0],t[0],t[1],t[1],t[2],t[2]]:t).join(""))>>16&255,t>>8&255,255&t].join(","),1<=e?"rgba("+t+")":"rgba("+t+","+e+")";throw new Error("bad hex")},t.StateUpdate=function(){t.Win={height:n.height(),width:n.outerWidth()},t.State.asMobile=t.Win.width<t.Break.md},t.ClassInit=function(){function e(){!0===t.State.asMobile?i.addClass("as-mobile"):i.removeClass("as-mobile")}!0===t.State.isTouch?i.addClass("has-touch"):i.addClass("no-touch"),e(),!0===t.State.isRTL&&i.addClass("has-rtl"),i.addClass("nk-nio-theme"),n.on("resize",e)},t.ColorBG=function(){function t(t,n){n=n||"bg";var i=(t=e(t)).data(n);""!==i&&("bg-color"===n?t.css("background-color",i):"bg-image"===n?t.css("background-image",'url("'+i+'")'):t.css("background",i))}e("[data-bg]").each((function(){t(this,"bg")})),e("[data-bg-color]").each((function(){t(this,"bg-color")})),e("[data-bg-image]").each((function(){t(this,"bg-image")}))},t.ColorTXT=function(){e("[data-color]").each((function(){var t,n;n="color",""!==(n=(t=e(t=this)).data(n||"color"))&&t.css("color",n)}))},t.BreakClass=function(n,i,r){var s=n||".header-menu",a=i||t.Break.md,l=(n={timeOut:1e3,classAdd:"mobile-menu"},r?o(n,r):n);if((i=l.ignore||!1)&&e(s).hasClass(i))return!1;t.Win.width<a?setTimeout((function(){t.Win.width<a&&e(s).addClass(l.classAdd)}),l.timeOut):e(s).removeClass(l.classAdd)},t.Passcode=function(t,n){var i={showClass:"is-shown",hideClass:"is-hidden"},r=n?o(i,n):i;e(t).exists()&&e(t).on("click",(function(t){var n=e(this),i=n.data("target");i=e("#"+i);t.preventDefault(),i.hasClass(r.showClass)?(n.add(i).addClass(r.hideClass).removeClass(r.showClass),i.attr("type","password")):(n.add(i).addClass(r.showClass).removeClass(r.hideClass),i.attr("type","text"))}))},t.LinkOff=function(t){e(t).on("click",(function(t){t.preventDefault()}))},t.SetHW=function(t,n){n="height"==n||"h"==n?"height":"width",e(t=t||"[data-"+n+"]").exists()&&e(t).each((function(){e(this).css(n,e(this).data(n))}))},t.AddInBody=function(t,n){var r={prefix:"nk-",class:"",has:"has"};n=n?o(r,n):r,t=r=t.replace(".","").replace(n.prefix,"");n.prefix=!1!==n.prefix?n.prefix:"",n.has=""!==n.has?n.has+"-":"",t=""!==n.class?n.class:n.has+t,e("."+n.prefix+r).exists()&&!i.hasClass(t)&&i.addClass(t)},t.Toggle={trigger:function(t,n){var r={self:t,active:"active",content:"expanded",data:"content",olay:"toggle-overlay",speed:400},s=(n=n?o(r,n):r,r=e("[data-target="+t+"]"),(t=e("[data-"+n.data+"="+t+"]")).data("toggle-body"));t.data("toggle-overlay")&&(n.overlay=n.olay),s&&(n.body="toggle-shown"),t.hasClass(n.content)?(r.removeClass(n.active),(1==n.toggle?t.slideUp(n.speed):t).removeClass(n.content)):(r.addClass(n.active),(1==n.toggle?t.slideDown(n.speed):t).addClass(n.content)),n.body&&i.toggleClass(n.body),n.overlay&&this.overlay(t,n.overlay,n)},removed:function(t,n){var r={self:t,active:"active",content:"expanded",body:"",data:"content",olay:"toggle-overlay"},s=(n=n?o(r,n):r,r=e("[data-target="+t+"]"),(t=e("[data-"+n.data+"="+t+"]")).data("toggle-body"));t.data("toggle-overlay")&&(n.overlay=n.olay),s&&(n.body="toggle-shown"),(r.hasClass(n.active)||t.hasClass(n.content))&&(r.removeClass(n.active),t.removeClass(n.content),!0===n.toggle)&&t.slideUp(n.speed),n.body&&i.hasClass(n.body)&&i.removeClass(n.body),n.close&&(!0===n.close.profile&&this.closeProfile(t),!0===n.close.menu)&&this.closeMenu(t),n.overlay&&this.overlayRemove(n.overlay)},overlay:function(n,i,r){var o;!0===r.break&&(o=e(n).data("toggle-screen"),r.break=t.Break[o]),e(n).hasClass(r.content)&&t.Win.width<r.break?e(n).after('<div class="'+i+'" data-target="'+r.self+'"></div>'):this.overlayRemove(i)},overlayRemove:function(t){e("."+t).fadeOut(300).remove()},dropMenu:function(t,n){var i={active:"active",self:"link-toggle",child:"menu-sub",speed:400};n=n?o(i,n):i,t=(i=e(t).parent()).children("."+n.child);n.speed=5<t.children().length?n.speed+20*t.children().length:n.speed,t.slideToggle(n.speed).find("."+n.child).slideUp(n.speed),i.toggleClass(n.active).siblings().removeClass(n.active).find("."+n.child).slideUp(n.speed)},closeProfile:function(t){var n=e(t).find(".nk-profile-toggle.active");t=e(t).find(".nk-profile-content.expanded");n.exists()&&(n.removeClass("active"),t.slideUp().removeClass("expanded"))},closeMenu:function(t){(t=e(t).find(".nk-menu-item.active")).exists()&&t.removeClass("active").find(".nk-menu-sub").slideUp()}},t.BS.tooltip=function(t,n){var i={boundary:"window",trigger:"hover"},r=n?o(i,n):i;e(t).exists()&&[].slice.call(document.querySelectorAll(t||'[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t,r)}))},t.BS.menutip=function(e){t.BS.tooltip(e,{boundary:"window",placement:"right"})},t.BS.popover=function(t){[].slice.call(document.querySelectorAll(t||'[data-bs-toggle="popover"]')).map((function(t){return new bootstrap.Popover(t)}))},t.BS.progress=function(t){e(t).exists()&&e(t).each((function(){e(this).css("width",e(this).data("progress")+"%")}))},t.BS.modalfix=function(t){e(t=t||".modal").exists()&&"function"==typeof e.fn.modal&&e(t).on("shown.bs.modal",(function(){i.hasClass("modal-open")||i.addClass("modal-open")}))},t.BS.fileinput=function(t){e(t).exists()&&e(t).each((function(){var t=e(this).next().text(),n=[];e(this).next().html(`<span>${t}</span>`),e(this).on("change",(function(){for(var i=0;i<this.files.length;i++)n[i]=this.files[i].name;t=n?n.join(", "):t,e(this).next().html(`<span>${t}</span>`)}))}))},t.Picker.date=function(n,i){e(n).exists()&&"function"==typeof e.fn.datepicker&&e(n).each((function(){var n={format:""!==(n=e(this).data("date-format"))?n:"mm/dd/yyyy",maxViewMode:2,clearBtn:!0,autoclose:!0,todayHighlight:!0,rtl:t.State.isRTL};n=i?o(n,i):n;e(this).datepicker(n).on("changeDate",(function(t){0!==t.dates.length?e(this).parent().addClass("focused"):e(this).parent().removeClass("focused")}))}))},t.Picker.dob=function(e,n){var i={startView:2,todayHighlight:!1};n=n?o(i,n):i;t.Picker.date(e,n)},t.Picker.time=function(t,n){e(t).exists()&&"function"==typeof e.fn.timepicker&&e(t).each((function(){e(this).parent().addClass("has-timepicker");var t={timeFormat:""!==(t=e(this).data("time-format"))?t:"HH:mm",interval:""!==(i=e(this).data("time-interval"))?i:15,change:function(t){!1!==t?e(this).parent().addClass("focused"):e(this).parent().removeClass("focused")}},i=n?o(t,n):t;e(this).timepicker(i)}))},t.Select2=function(n,i){e(n).exists()&&"function"==typeof e.fn.select2&&e(n).each((function(){var n=((r={placeholder:(n=e(this)).data("placeholder"),clear:n.data("clear"),search:n.data("search"),width:n.data("width"),theme:n.data("theme"),ui:n.data("ui")}).ui=r.ui?" "+n.csskey(r.ui,"select2"):"",{theme:r.theme?r.theme+" "+r.ui:"default"+r.ui,allowClear:r.clear||!1,placeholder:r.placeholder||"",dropdownAutoWidth:!(!r.width||"auto"!==r.width),minimumResultsForSearch:r.search&&"on"===r.search?1:-1,dir:t.State.isRTL?"rtl":"ltr"}),r=i?o(n,i):n;e(this).select2(r)}))},t.coreInit=function(){t.coms.onResize.push(t.StateUpdate),t.coms.docReady.push(t.ClassInit)},t.coreInit(),t})(NioApp=((t,e,n)=>{var i={AppInfo:{name:"NioApp",version:"1.0.8",author:"Softnio"},Package:{name:"DashLite",version:"2.3"}},r={docReady:[],docReadyDefer:[],winLoad:[],winLoadDefer:[],onResize:[],onResizeDefer:[]};function o(e){e=void 0===e?t:e,r.docReady.concat(r.docReadyDefer).forEach((function(t){null!=t&&t(e)}))}function s(e){e="object"==typeof e?t:e,r.winLoad.concat(r.winLoadDefer).forEach((function(t){null!=t&&t(e)}))}function a(e){e="object"==typeof e?t:e,r.onResize.concat(r.onResizeDefer).forEach((function(t){null!=t&&t(e)}))}return t(n).ready(o),t(e).on("load",s),t(e).on("resize",a),i.coms=r,i.docReady=o,i.winLoad=s,i.onResize=a,i})(jQuery,window,document),jQuery),SimpleBar=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var n="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,r=n||i||Function("return this")(),o=function(){return r.Date.now()},s=/\s/,a=/^\s+/;var l=r.Symbol,c=Object.prototype,u=c.hasOwnProperty,d=c.toString,h=l?l.toStringTag:void 0,p=Object.prototype.toString,f=l?l.toStringTag:void 0;var g=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,v=/^0o[0-7]+$/i,y=parseInt;function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?function(t){var e=u.call(t,h),n=t[h];try{t[h]=void 0;var i=!0}catch(t){}var r=d.call(t);return i&&(e?t[h]=n:delete t[h]),r}(t):function(t){return p.call(t)}(t)}(t)}(t))return NaN;if(e(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=e(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&s.test(t.charAt(e)););return e}(t)+1).replace(a,""):t}(t);var i=m.test(t);return i||v.test(t)?y(t.slice(2),i?2:8):g.test(t)?NaN:+t}var x=Math.max,w=Math.min;function _(t,n,i){var r,s,a,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=r,i=s;return r=s=void 0,d=e,l=t.apply(i,n)}function m(t){return d=t,c=setTimeout(y,n),h?g(t):l}function v(t){var e=t-u;return void 0===u||e>=n||e<0||p&&t-d>=a}function y(){var t=o();if(v(t))return _(t);c=setTimeout(y,function(t){var e=n-(t-u);return p?w(e,a-(t-d)):e}(t))}function _(t){return c=void 0,f&&r?g(t):(r=s=void 0,l)}function C(){var t=o(),e=v(t);if(r=arguments,s=this,u=t,e){if(void 0===c)return m(u);if(p)return clearTimeout(c),c=setTimeout(y,n),g(u)}return void 0===c&&(c=setTimeout(y,n)),l}return n=b(n)||0,e(i)&&(h=!!i.leading,a=(p="maxWait"in i)?x(b(i.maxWait)||0,n):a,f="trailing"in i?!!i.trailing:f),C.cancel=function(){void 0!==c&&clearTimeout(c),d=0,r=u=s=c=void 0},C.flush=function(){return void 0===c?l:_(o())},C}var C=function(){return(C=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function k(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function S(t){return t&&t.ownerDocument?t.ownerDocument:document}var T=function(t){return Array.prototype.reduce.call(t,(function(t,e){var n=e.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[i]=!0;break;case"false":t[i]=!1;break;case void 0:t[i]=!0;break;default:t[i]=e.value}}return t}),{})};function A(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function D(t,e){t&&e.split(" ").forEach((function(e){t.classList.remove(e)}))}function E(t){return".".concat(t.split(" ").join("."))}var M=!("undefined"==typeof window||!window.document||!window.document.createElement),O=Object.freeze({__proto__:null,addClasses:A,canUseDOM:M,classNamesToQuery:E,getElementDocument:S,getElementWindow:k,getOptions:T,removeClasses:D}),P=null,L=null;function I(){if(null===P){if("undefined"==typeof document)return P=0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),P=n}return P}M&&window.addEventListener("resize",(function(){L!==window.devicePixelRatio&&(L=window.devicePixelRatio,P=null)}));var N=k,R=S,F=T,j=A,$=D,z=E,H=function(){function t(n,i){void 0===i&&(i={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var t=N(r.el);r.scrollXTicking||(t.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(t.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,j(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){$(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(j(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){$(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(t){var e,n;r.axis.x.track.el&&r.axis.y.track.el&&r.axis.x.scrollbar.el&&r.axis.y.scrollbar.el&&(r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(e=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(e||n)&&(t.stopPropagation(),"pointerdown"===t.type&&"touch"!==t.pointerType&&(e&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(t,"x"):r.onTrackClick(t,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(t,"y"):r.onTrackClick(t,"y")))))},this.drag=function(e){var n,i,o,s,a,l,c,u,d,h,p;if(r.draggedAxis&&r.contentWrapperEl){var f=r.axis[r.draggedAxis].track,g=null!==(i=null===(n=f.rect)||void 0===n?void 0:n[r.axis[r.draggedAxis].sizeAttr])&&void 0!==i?i:0,m=r.axis[r.draggedAxis].scrollbar,v=null!==(s=null===(o=r.contentWrapperEl)||void 0===o?void 0:o[r.axis[r.draggedAxis].scrollSizeAttr])&&void 0!==s?s:0,y=parseInt(null!==(l=null===(a=r.elStyles)||void 0===a?void 0:a[r.axis[r.draggedAxis].sizeAttr])&&void 0!==l?l:"0px",10);e.preventDefault(),e.stopPropagation();var b=("y"===r.draggedAxis?e.pageY:e.pageX)-(null!==(u=null===(c=f.rect)||void 0===c?void 0:c[r.axis[r.draggedAxis].offsetAttr])&&void 0!==u?u:0)-r.axis[r.draggedAxis].dragOffset,x=(b="x"===r.draggedAxis&&r.isRtl?(null!==(h=null===(d=f.rect)||void 0===d?void 0:d[r.axis[r.draggedAxis].sizeAttr])&&void 0!==h?h:0)-m.size-b:b)/(g-m.size)*(v-y);"x"===r.draggedAxis&&r.isRtl&&(x=(null===(p=t.getRtlHelpers())||void 0===p?void 0:p.isScrollingToNegative)?-x:x),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=x}},this.onEndDrag=function(t){r.isDragging=!1;var e=R(r.el),n=N(r.el);t.preventDefault(),t.stopPropagation(),$(r.el,r.classNames.dragging),r.onStopScrolling(),e.removeEventListener("mousemove",r.drag,!0),e.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){e.removeEventListener("click",r.preventClick,!0),e.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=n,this.options=C(C({},t.defaultOptions),i),this.classNames=C(C({},t.defaultOptions.classNames),i.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},"object"!=typeof this.el||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=function(t,n,i){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e(i)&&(r="leading"in i?!!i.leading:r,o="trailing"in i?!!i.trailing:o),_(t,64,{leading:r,maxWait:64,trailing:o})}(this._onMouseMove),this.onWindowResize=_(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=_(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=_(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=null==n?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var r=t.getOffset(n),o=t.getOffset(i);n.scrollLeft=-999;var s=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:r.left!==o.left,isScrollingToNegative:o.left!==s.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:I()}catch(t){return I()}},t.getOffset=function(t){var e=t.getBoundingClientRect(),n=R(t),i=N(t);return{top:e.top+(i.pageYOffset||n.documentElement.scrollTop),left:e.left+(i.pageXOffset||n.documentElement.scrollLeft)}},t.prototype.init=function(){M&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var t,e;this.wrapperEl=this.el.querySelector(z(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(z(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(z(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(z(this.classNames.offset)),this.maskEl=this.el.querySelector(z(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,z(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(z(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(z(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(z(this.classNames.track)).concat(z(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(z(this.classNames.track)).concat(z(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(t=this.axis.x.track.el)||void 0===t?void 0:t.querySelector(z(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(e=this.axis.y.track.el)||void 0===e?void 0:e.querySelector(z(this.classNames.scrollbar)))||null,this.options.autoHide||(j(this.axis.x.scrollbar.el,this.classNames.visible),j(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var t,e=this,n=N(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(t=this.contentWrapperEl)||void 0===t||t.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var i=!1,r=n.ResizeObserver||ResizeObserver;this.resizeObserver=new r((function(){i&&n.requestAnimationFrame((function(){e.recalculate()}))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame((function(){i=!0}))}this.mutationObserver=new n.MutationObserver((function(){n.requestAnimationFrame((function(){e.recalculate()}))})),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var t=N(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||e>0,r=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var a=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(e||l,"px"):"auto",this.placeholderEl.style.height="".concat(a,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==e&&l>e,this.axis.y.isOverflowing=a>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>r-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(t){var e,n;if(void 0===t&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i,r=this.contentEl[this.axis[t].scrollSizeAttr],o=null!==(n=null===(e=this.axis[t].track.el)||void 0===e?void 0:e[this.axis[t].offsetSizeAttr])&&void 0!==n?n:0,s=o/r;return i=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(i=Math.min(i,this.options.scrollbarMaxSize)),i},t.prototype.positionScrollbar=function(e){var n,i,r;void 0===e&&(e="y");var o=this.axis[e].scrollbar;if(this.axis[e].isOverflowing&&this.contentWrapperEl&&o.el&&this.elStyles){var s=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=(null===(n=this.axis[e].track.el)||void 0===n?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c="x"===e&&this.isRtl&&(null===(i=t.getRtlHelpers())||void 0===i?void 0:i.isScrollOriginAtZero)?-c:c,"x"===e&&this.isRtl&&(c=(null===(r=t.getRtlHelpers())||void 0===r?void 0:r.isScrollingToNegative)?c:-c);var u=c/(s-l),d=~~((a-o.size)*u);d="x"===e&&this.isRtl?-d+(a-o.size):d,o.el.style.transform="x"===e?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},t.prototype.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,n=this.axis[t].scrollbar.el;e&&n&&this.contentWrapperEl&&(this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},t.prototype.showScrollbar=function(t){void 0===t&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(j(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(t){void 0===t&&(t="y"),this.isDragging||this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&($(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(t){void 0===t&&(t="y");var e=this.axis[t];e.track.el&&e.scrollbar.el&&(e.track.rect=e.track.el.getBoundingClientRect(),e.scrollbar.rect=e.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(e.track.rect)?(this.showScrollbar(t),j(e.track.el,this.classNames.hover),this.isWithinBounds(e.scrollbar.rect)?j(e.scrollbar.el,this.classNames.hover):$(e.scrollbar.el,this.classNames.hover)):($(e.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},t.prototype.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),$(this.axis[t].track.el,this.classNames.hover),$(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},t.prototype.onDragStart=function(t,e){var n;void 0===e&&(e="y"),this.isDragging=!0;var i=R(this.el),r=N(this.el),o=this.axis[e].scrollbar,s="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=s-((null===(n=o.rect)||void 0===n?void 0:n[this.axis[e].offsetAttr])||0),this.draggedAxis=e,j(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(t,e){var n,i,r,o,s=this;void 0===e&&(e="y");var a=this.axis[e];if(this.options.clickOnTrack&&a.scrollbar.el&&this.contentWrapperEl){t.preventDefault();var l=N(this.el);this.axis[e].scrollbar.rect=a.scrollbar.el.getBoundingClientRect();var c=null!==(i=null===(n=this.axis[e].scrollbar.rect)||void 0===n?void 0:n[this.axis[e].offsetAttr])&&void 0!==i?i:0,u=parseInt(null!==(o=null===(r=this.elStyles)||void 0===r?void 0:r[this.axis[e].sizeAttr])&&void 0!==o?o:"0px",10),d=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],h=("y"===e?this.mouseY-c:this.mouseX-c)<0?-1:1,p=-1===h?d-u:d+u,f=function(){s.contentWrapperEl&&(-1===h?d>p&&(d-=40,s.contentWrapperEl[s.axis[e].scrollOffsetAttr]=d,l.requestAnimationFrame(f)):d<p&&(d+=40,s.contentWrapperEl[s.axis[e].scrollOffsetAttr]=d,l.requestAnimationFrame(f)))};f()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var t=N(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},t.prototype.findChild=function(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return n.call(t,e)}))[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=F,t.helpers=O,t}(),B=H.helpers,W=B.getOptions,q=B.addClasses,U=B.canUseDOM,V=function(e){function n(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var r=e.apply(this,t)||this;return n.instances.set(t[0],r),r}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}(n,e),n.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(t){"init"===t.getAttribute("data-simplebar")||n.instances.has(t)||new n(t,W(t.attributes))}))},n.removeObserver=function(){var t;null===(t=n.globalObserver)||void 0===t||t.disconnect()},n.prototype.initDOM=function(){var t,e,n,i=this;if(!Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(i.classNames.wrapper)})).length){for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),q(this.wrapperEl,this.classNames.wrapper),q(this.contentWrapperEl,this.classNames.contentWrapper),q(this.offsetEl,this.classNames.offset),q(this.maskEl,this.classNames.mask),q(this.contentEl,this.classNames.contentEl),q(this.placeholderEl,this.classNames.placeholder),q(this.heightAutoObserverWrapperEl,this.classNames.heightAutoObserverWrapperEl),q(this.heightAutoObserverEl,this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl),null===(t=this.contentWrapperEl)||void 0===t||t.setAttribute("tabindex",this.options.tabIndex.toString()),null===(e=this.contentWrapperEl)||void 0===e||e.setAttribute("role","region"),null===(n=this.contentWrapperEl)||void 0===n||n.setAttribute("aria-label",this.options.ariaLabel)}if(!this.axis.x.track.el||!this.axis.y.track.el){var r=document.createElement("div"),o=document.createElement("div");q(r,this.classNames.track),q(o,this.classNames.scrollbar),r.appendChild(o),this.axis.x.track.el=r.cloneNode(!0),q(this.axis.x.track.el,this.classNames.horizontal),this.axis.y.track.el=r.cloneNode(!0),q(this.axis.y.track.el,this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}H.prototype.initDOM.call(this),this.el.setAttribute("data-simplebar","init")},n.prototype.unMount=function(){H.prototype.unMount.call(this),n.instances.delete(this.el)},n.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(n.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},n.handleMutations=function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,W(t.attributes)):t.querySelectorAll("[data-simplebar]").forEach((function(t){"init"!==t.getAttribute("data-simplebar")&&!n.instances.has(t)&&document.documentElement.contains(t)&&new n(t,W(t.attributes))})))})),t.removedNodes.forEach((function(t){var e;1===t.nodeType&&("init"===t.getAttribute("data-simplebar")?!document.documentElement.contains(t)&&(null===(e=n.instances.get(t))||void 0===e||e.unMount()):Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),(function(t){var e;!document.documentElement.contains(t)&&(null===(e=n.instances.get(t))||void 0===e||e.unMount())})))}))}))},n.instances=new WeakMap,n}(H);return U&&V.initHtmlApi(),V}();!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v;function y(t,e){return f.call(t,e)}function b(t,e){var n,i,r,o,s,a,l,c,u,d,p,f=e&&e.split("/"),g=h.map,v=g&&g["*"]||{};if(t){for(s=(t=t.split("/")).length-1,h.nodeIdCompat&&m.test(t[s])&&(t[s]=t[s].replace(m,"")),"."===t[0].charAt(0)&&f&&(t=f.slice(0,f.length-1).concat(t)),u=0;u<t.length;u++)if("."===(p=t[u]))t.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===t[2]||".."===t[u-1])continue;0<u&&(t.splice(u-1,2),u-=2)}t=t.join("/")}if((f||v)&&g){for(u=(n=t.split("/")).length;0<u;--u){if(i=n.slice(0,u).join("/"),f)for(d=f.length;0<d;--d)if(r=(r=g[f.slice(0,d).join("/")])&&r[i]){o=r,a=u;break}if(o)break;!l&&v&&v[i]&&(l=v[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function x(t,e){return function(){var n=g.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),a.apply(o,n.concat([t,e]))}}function w(t){return function(e){u[t]=e}}function _(t){if(y(d,t)){var e=d[t];delete d[t],p[t]=!0,s.apply(o,e)}if(!y(u,t)&&!y(p,t))throw new Error("No "+t);return u[t]}function C(t){var e,n=t?t.indexOf("!"):-1;return-1<n&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function k(t){return t?C(t):[]}return e&&e.requirejs||(e?i=e:e={},u={},d={},h={},p={},f=Object.prototype.hasOwnProperty,g=[].slice,m=/\.js$/,l=function(t,e){var n,i,r=C(t),o=r[0],s=e[1];return t=r[1],o&&(n=_(o=b(o,s))),o?t=n&&n.normalize?n.normalize(t,(i=s,function(t){return b(t,i)})):b(t,s):(o=(r=C(t=b(t,s)))[0],t=r[1],o&&(n=_(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},c={require:function(t){return x(t)},exports:function(t){var e=u[t];return void 0!==e?e:u[t]={}},module:function(t){return{id:t,uri:"",exports:u[t],config:(e=t,function(){return h&&h.config&&h.config[e]||{}})};var e}},s=function(t,e,n,i){var r,s,a,h,f,g,m,v=[],b=typeof n;if(g=k(i=i||t),"undefined"==b||"function"==b){for(e=!e.length&&n.length?["require","exports","module"]:e,f=0;f<e.length;f+=1)if("require"===(s=(h=l(e[f],g)).f))v[f]=c.require(t);else if("exports"===s)v[f]=c.exports(t),m=!0;else if("module"===s)r=v[f]=c.module(t);else if(y(u,s)||y(d,s)||y(p,s))v[f]=_(s);else{if(!h.p)throw new Error(t+" missing "+s);h.p.load(h.n,x(i,!0),w(s),{}),v[f]=u[s]}a=n?n.apply(u[t],v):void 0,t&&(r&&r.exports!==o&&r.exports!==u[t]?u[t]=r.exports:a===o&&m||(u[t]=a))}else t&&(u[t]=n)},n=i=a=function(t,e,n,i,r){if("string"==typeof t)return c[t]?c[t](e):_(l(t,k(e)).f);if(!t.splice){if((h=t).deps&&a(h.deps,h.callback),!e)return;e.splice?(t=e,e=n,n=null):t=o}return e=e||function(){},"function"==typeof n&&(n=i,i=r),i?s(o,t,e,n):setTimeout((function(){s(o,t,e,n)}),4),a},a.config=function(t){return a(t)},n._defined=u,(r=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),y(u,t)||y(d,t)||(d[t]=[t,e,n])}).amd={jQuery:!0},e.requirejs=n,e.require=i,e.define=r),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function n(t){var e=t.prototype,n=[];for(var i in e)"function"==typeof e[i]&&"constructor"!==i&&n.push(i);return n}function i(){this.listeners={}}e.Extend=function(t,e){var n={}.hasOwnProperty;function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},e.Decorate=function(t,e){var i=n(e),r=n(t);function o(){var n=Array.prototype.unshift,i=e.prototype.constructor.length,r=t.prototype.constructor;0<i&&(n.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<r.length;s++){var a=r[s];o.prototype[a]=t.prototype[a]}function l(t){var n=function(){};t in o.prototype&&(n=o.prototype[t]);var i=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}}for(var c=0;c<i.length;c++){var u=i[c];o.prototype[u]=l(u)}return o},i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=t)in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},e.Observable=i,e.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=t[e]),i=i[o]}delete t[e]}}return t},e.hasScroll=function(e,n){var i=t(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(n,(function(t){i=i.add(t)})),n=i}e.append(n)},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++r),e=r.toString())),e},e.StoreData=function(t,n,i){var r=e.GetUniqueElementId(t);e.__cache[r]||(e.__cache[r]={}),e.__cache[r][n]=i},e.GetData=function(n,i){var r=e.GetUniqueElementId(n);return i?e.__cache[r]&&null!=e.__cache[r][i]?e.__cache[r][i]:t(n).data(i):e.__cache[r]},e.RemoveData=function(t){var n=e.GetUniqueElementId(t);null!=e.__cache[n]&&delete e.__cache[n],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);i.append(n(r(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],r=this.option(i);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");0<e.length?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var r=t.map(i,(function(t){return t.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=t(this),i=e.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&-1<t.inArray(o,r)?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=t(i),c=document.createElement("strong");c.className="select2-results__group",t(c),this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);u.push(p)}var f=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(t){r.clear(),r.append(t.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(t){r.append(t.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),n.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var n=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}})),n.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}})),n.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):o<s&&r.$results.scrollTop(a)}})),n.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=0<t.deltaY&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var i=t(this),o=e.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var i=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:t(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,i=t.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):t(n).append(o)},n})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(t,e){var i=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){i.trigger("focus",t)})),this.$selection.on("blur",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",(function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){i.update(t.data)})),t.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(t)})),t.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)})),t.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,(function(n){var i=t(n.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=i[0]&&e.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i);var r=e.title||e.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},i.prototype.bind=function(e,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!o.isDisabled()){var i=t(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:e,data:r})}}))},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var r=t[i],o=this.selectionContainer(),s=this.display(r,o);o.append(s);var a=r.title||r.text;a&&o.attr("title",a),n.StoreData(o[0],"data",r),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,e)}},i})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(1<e.length||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,n){function i(){}return i.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){i._handleClear(t)})),e.on("keypress",(function(t){i._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},i.prototype.update=function(e,i){if(e.call(this,i),!(0<this.$selection.find(".select2-selection__placeholder").length||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=t('<span class="select2-selection__clear" title="'+r()+'">&times;</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,r){var o=this,s=i.id+"-results";t.call(this,i,r),i.on("open",(function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(t){o.$search.trigger("focus")})),i.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(0<i.length){var r=e.GetData(i[0],"data");o.searchRemoveChoice(r),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&&t.stopPropagation()}));var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&&"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&o.handleSearch(t)}}))},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},i})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",(function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var i=t.Event("select2:"+e,{params:n});r.$element.trigger(i),-1!==t.inArray(e,s)&&(n.prevented=i.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var i=e(t);n._cache[t]=i}return new n(n._cache[t])},n})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var i=e.id+"-result-";return i+=t.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+t.generateChars(4),i},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each((function(){var t=n(this),r=i.item(t);e.push(r)})),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var r=[];(t=[t]).push.apply(t,i);for(var o=0;o<t.length;o++){var s=t[o].id;-1===n.inArray(s,r)&&r.push(s)}e.$element.val(r),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var r=[],o=0;o<i.length;o++){var s=i[o].id;s!==t.id&&-1===n.inArray(s,r)&&r.push(s)}e.$element.val(r),e.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(t,e){var n=this;(this.container=t).on("select",(function(t){n.select(t.data)})),t.on("unselect",(function(t){n.unselect(t.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},i.prototype.query=function(t,e){var i=[],r=this;this.$element.children().each((function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),s=r.matches(t,o);null!==s&&i.push(s)}})),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup")).label=t.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=t.text:i.innerText=t.text,void 0!==t.id&&(i.value=t.id),t.disabled&&(i.disabled=!0),t.selected&&(i.selected=!0),t.title&&(i.title=t.title);var r=n(i),o=this._normalizeItem(t);return o.element=i,e.StoreData(i,"data",o),r},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),o=[],s=0;s<r.length;s++){var a=n(r[s]),l=this.item(a);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){return t!==Object(t)&&(t={id:t,text:t}),null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,n){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,n){return n.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){var i=this,r=this.$element.find("option"),o=r.map((function(){return i.item(n(this)).id})).get(),s=[];function a(t){return function(){return n(this).val()==t.id}}for(var l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(0<=n.inArray(c.id,o)){var u=r.filter(a(c)),d=this.item(u),h=n.extend(!0,{},c,d),p=this.option(h);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);e.appendMany(f,g)}s.push(f)}}return s},i})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,n){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,i){var r=n.ajax(t);return r.then(e),r.fail(i),r}};return n.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,(function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){"status"in o&&(0===o.status||"0"===o.status)||i.trigger("results:message",{message:"errorLoading"})}));i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,n,i),t.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return e.prototype.query=function(t,e,n){var i=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(r,o){for(var s=r.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!o&&(r.data=s,void n(r))}if(o)return!0;var u=i.createTag(e);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}r.results=s,n(r)})):t.call(this,e,n)},e.prototype.createTag=function(e,n){var i=t.trim(n.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(e){var n,i=r._normalizeItem(e);if(!r.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var o=r.option(i);o.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([o])}n=i,r.trigger("select",{data:n})}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),e.call(this,n,i)},e.prototype.tokenizer=function(e,n,i,r){for(var o=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<s.length;){var c=s[a];if(-1!==t.inArray(c,o)){var u=s.substr(0,a),d=l(t.extend({},n,{term:u}));null!=d?(r(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",0<this.maximumInputLength&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(){i._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected((function(){t.call(i,e,n)}))},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current((function(t){var i=null!=t?t.length:0;0<n.maximumSelectionLength&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),i=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var r=e[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",(function(t){i.lastParams=t,i.loading=!0})),e.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var n=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=n+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)})),e.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),i=e.call(this);return n.append(i),this.$dropdownContainer=n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var n=this;e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(o+" "+s+" "+a,(function(t){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+s)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),u=l<o.top-a,d=c>o.bottom+a,h={left:o.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f={top:0,left:0};(t.contains(document.body,p[0])||p[0].isConnected)&&(f=p.offset()),h.top-=f.top,h.left-=f.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=s.top-f.top-a),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i<e.length;i++){var r=e[i];r.children?n+=t(r.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",(function(t){i._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=t.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(t){i._selectTriggered(t)})),e.on("unselect",(function(t){i._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,x,w,_,C,k,S,T,A,D){function E(){this.reset()}return E.prototype.apply=function(u){if(null==(u=t.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,0<u.minimumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),0<u.maximumInputLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),0<u.maximumSelectionLength&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null!=u.query){var d=e(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var D=e(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,D)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,_)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,T))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=x;else{var E=c.Decorate(x,w);u.dropdownAdapter=E}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,A)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var M=e(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=r:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var O=e(u.amdBase+"compat/containerCss");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 P=[],L=0;L<u.language.length;L++){var I=u.language[L];-1===P.indexOf(I)&&P.push(I)}return u.language=P,u.translations=this._processTranslations(u.language,u.debug),u},E.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return d[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(""===t.trim(i.term))return r;if(r.children&&0<r.children.length){for(var o=t.extend(!0,{},r),s=r.children.length-1;0<=s;s--)null==n(i,r.children[s])&&o.children.splice(s,1);return 0<o.children.length?o:n(i,o)}var a=e(r.text).toUpperCase(),l=e(i.term).toUpperCase();return-1<a.indexOf(l)?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(t,e){var n=t.language,i=this.defaults.language,r=e.prop("lang"),o=e.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return t.language=s,t},E.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var n;n=t.isArray(e)?e:[e];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&0<n[r].indexOf("-")){var o=n[r].split("-")[0];i.push(o)}return i},E.prototype._processTranslations=function(e,n){for(var i=new u,r=0;r<e.length;r++){var o=new u,s=e[r];if("string"==typeof s)try{o=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(s)?new u(s):s;i.extend(o)}return i},E.prototype.set=function(e,n){var i={};i[t.camelCase(e)]=n;var r=c._convertData(i);t.extend(!0,this.defaults,r)},new E})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,n,i){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.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.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 r={};function o(t,e){return e.toUpperCase()}for(var s=0;s<t[0].attributes.length;s++){var a=t[0].attributes[s].name,l="data-";if(a.substr(0,l.length)==l){var c=a.substring(l.length),u=i.GetData(t[0],c);r[c.replace(/-([a-z])/g,o)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var d=e.extend(!0,{},i.GetData(t[0]),r);for(var h in d=i._convertData(d))-1<e.inArray(h,n)||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,n,i){var r=function(t,i){null!=n.GetData(t[0],"select2")&&n.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var o=t.attr("tabindex")||0;n.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(t,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(t,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(t){d.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(t[0],"select2",this),t.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=e)return"computedstyle"!=e?e:window.getComputedStyle(t[0]).width;var o=t.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,r){-1===t.inArray(i,n)&&e.trigger(i,r)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,n){t.trigger(e,n)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(n){t.trigger("results:all",{data:n,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(n){t.trigger("results:append",{data:n,query:e})}))})),this.on("keypress",(function(e){var n=e.which;t.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&e.altKey?(t.close(e),e.preventDefault()):n===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e,n){var i=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(n)if(n.addedNodes&&0<n.addedNodes.length)for(var o=0;o<n.addedNodes.length;o++)n.addedNodes[o].selected&&(i=!0);else n.removedNodes&&0<n.removedNodes.length?i=!0:t.isArray(n)&&t.each(n,(function(t,e){if(r._isChangeMutation(t,e))return!(i=!0)}));else i=!0;return i}},r.prototype._syncSubtree=function(t,e){var n=this._isChangeMutation(t,e),i=this;n&&this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},r.prototype.trigger=function(t,e){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var o=i[t],s={prevented:!1,name:t,args:e};if(n.call(this,o,s),s.prevented)return void(e.prevented=!0)}n.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,(function(t){return t.toString()}))),this.$element.val(n).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},r})),e.define("select2/compat/utils",["jquery"],(function(t){return{syncCssClasses:function(e,n,i){var r,o,s=[];(r=t.trim(e.attr("class")))&&t((r=""+r).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&s.push(this)})),(r=t.trim(n.attr("class")))&&t((r=""+r).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&null!=(o=i(this))&&s.push(o)})),e.attr("class",s.join(" "))}}})),e.define("select2/compat/containerCss",["jquery","./utils"],(function(t,e){function n(t){return null}function i(){}return i.prototype.render=function(i){var r=i.call(this),o=this.options.get("containerCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("containerCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(r,this.$element,s),r.css(l),r.addClass(o),r},i})),e.define("select2/compat/dropdownCss",["jquery","./utils"],(function(t,e){function n(t){return null}function i(){}return i.prototype.render=function(i){var r=i.call(this),o=this.options.get("dropdownCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("dropdownCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(r,this.$element,s),r.css(l),r.addClass(o),r},i})),e.define("select2/compat/initSelection",["jquery"],(function(t){function e(t,e,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,t.call(this,e,n)}return e.prototype.current=function(e,n){var i=this;this._isInitialized?e.call(this,n):this.initSelection.call(null,this.$element,(function(e){i._isInitialized=!0,t.isArray(e)||(e=[e]),n(e)}))},e})),e.define("select2/compat/inputData",["jquery","../utils"],(function(t,e){function n(t,e,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===e.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),t.call(this,e,n)}return n.prototype.current=function(e,n){function i(e,n){var r=[];return e.selected||-1!==t.inArray(e.id,n)?(e.selected=!0,r.push(e)):e.selected=!1,e.children&&r.push.apply(r,i(e.children,n)),r}for(var r=[],o=0;o<this._currentData.length;o++){var s=this._currentData[o];r.push.apply(r,i(s,this.$element.val().split(this._valueSeparator)))}n(r)},n.prototype.select=function(e,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("input").trigger("change")}else this.current((function(e){t.map(e,(function(t){t.selected=!1}))})),this.$element.val(n.id),this.$element.trigger("input").trigger("change")},n.prototype.unselect=function(t,e){var n=this;e.selected=!1,this.current((function(t){for(var i=[],r=0;r<t.length;r++){var o=t[r];e.id!=o.id&&i.push(o.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("input").trigger("change")}))},n.prototype.query=function(t,e,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(e,o);null!==s&&i.push(s)}n({results:i})},n.prototype.addOptions=function(n,i){var r=t.map(i,(function(t){return e.GetData(t[0],"data")}));this._currentData.push.apply(this._currentData,r)},n})),e.define("select2/compat/matcher",["jquery"],(function(t){return function(e){return function(n,i){var r=t.extend(!0,{},i);if(null==n.term||""===t.trim(n.term))return r;if(i.children){for(var o=i.children.length-1;0<=o;o--){var s=i.children[o];e(n.term,s.text,s)||r.children.splice(o,1)}if(0<r.children.length)return r}return e(n.term,i.text,i)?r:null}}})),e.define("select2/compat/query",[],(function(){function t(t,e,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.callback=n,this.options.get("query").call(null,e)},t})),e.define("select2/dropdown/attachContainer",[],(function(){function t(t,e,n){t.call(this,e,n)}return t.prototype.position=function(t,e,n){n.find(".dropdown-wrapper").append(e),e.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},t})),e.define("select2/dropdown/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){t.call(this,e,n),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(t){t.stopPropagation()}))},t})),e.define("select2/selection/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){t.call(this,e,n),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(t){t.stopPropagation()}))},t})),v=function(t){var e,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(t.event.fixHooks)for(var s=i.length;s;)t.event.fixHooks[i[--s]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=r.length;e;)this.addEventListener(r[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=r.length;e;)this.removeEventListener(r[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var n=t(e),i=n["offsetParent"in t.fn?"offsetParent":"parent"]();return i.length||(i=t("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var r,s=i||window.event,l=o.call(arguments,1),d=0,h=0,p=0,f=0,g=0;if((i=t.event.fix(s)).type="mousewheel","detail"in s&&(p=-1*s.detail),"wheelDelta"in s&&(p=s.wheelDelta),"wheelDeltaY"in s&&(p=s.wheelDeltaY),"wheelDeltaX"in s&&(h=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(h=-1*p,p=0),d=0===p?h:p,"deltaY"in s&&(d=p=-1*s.deltaY),"deltaX"in s&&(h=s.deltaX,0===p&&(d=-1*h)),0!==p||0!==h){if(1===s.deltaMode){var m=t.data(this,"mousewheel-line-height");d*=m,p*=m,h*=m}else if(2===s.deltaMode){var v=t.data(this,"mousewheel-page-height");d*=v,p*=v,h*=v}if(r=Math.max(Math.abs(p),Math.abs(h)),(!n||r<n)&&u(s,n=r)&&(n/=40),u(s,r)&&(d/=40,h/=40,p/=40),d=Math[1<=d?"floor":"ceil"](d/n),h=Math[1<=h?"floor":"ceil"](h/n),p=Math[1<=p?"floor":"ceil"](p/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,g=i.clientY-y.top}return i.deltaX=h,i.deltaY=p,i.deltaFactor=n,i.offsetX=f,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,h,p),e&&clearTimeout(e),e=setTimeout(c,200),(t.event.dispatch||t.event.handle).apply(this,l)}}function c(){n=null}function u(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],v):"object"==typeof exports?module.exports=v:v(t),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,n,i,r){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var i=t.extend(!0,{},e);new n(t(this),i)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var i,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,s)})),-1<t.inArray(e,o)?this:i}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=i),n})),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,n){return(l=a()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&s(r,n.prototype),r}).apply(null,arguments)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function d(t){return Object.keys(t).map((function(e){return t[e]}))}function h(t){return Array.prototype.slice.call(t)}function p(t,e){var n;n='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===q.indexOf(n)&&(q.push(n),B(n))}function f(t){return t&&"function"==typeof t.toPromise}function g(t){return f(t)?t.toPromise():Promise.resolve(t)}function m(t){return t&&Promise.resolve(t)===t}function v(e){return e instanceof Element||"object"===t(n=e)&&n.jquery;var n}function y(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e}function b(t){var e=G();return e?e.querySelector(t):null}function x(t){return b(".".concat(t))}function w(){return h(K().querySelectorAll(".".concat(Y.icon)))}function _(){var t=w().filter((function(t){return mt(t)}));return t.length?t[0]:null}function C(){return x(Y.title)}function k(){return x(Y.content)}function S(){return x(Y.image)}function T(){return x(Y["progress-steps"])}function A(){return x(Y["validation-message"])}function D(){return b(".".concat(Y.actions," .").concat(Y.confirm))}function E(){return b(".".concat(Y.actions," .").concat(Y.cancel))}function M(){return x(Y.actions)}function O(){return x(Y.header)}function P(){return x(Y.footer)}function L(){return x(Y["timer-progress-bar"])}function I(){return x(Y.close)}function N(){var t=h(K().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0})),e=h(K().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter((function(t){return mt(t)}))}function R(){return!Q()&&!document.body.classList.contains(Y["no-backdrop"])}function F(){return K().hasAttribute("data-loading")}function j(t,e){var n;t.textContent="",e&&(h((n=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),h(n.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)})))}function $(t,e){if(e){for(var n=e.split(/\s+/),i=0;i<n.length;i++)if(!t.classList.contains(n[i]))return;return 1}}function z(e,n,i){var r,o;if(o=n,h((r=e).classList).forEach((function(t){-1===d(Y).indexOf(t)&&-1===d(X).indexOf(t)&&-1===d(o.showClass).indexOf(t)&&r.classList.remove(t)})),n.customClass&&n.customClass[i]){if("string"!=typeof n.customClass[i]&&!n.customClass[i].forEach)return B("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(t(n.customClass[i]),'"'));pt(e,n.customClass[i])}}var H="SweetAlert2:",B=function(t){console.warn("".concat(H," ").concat(t))},W=function(t){console.error("".concat(H," ").concat(t))},q=[],U=function(t){return"function"==typeof t?t():t},V=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Y=y(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","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"]),X=y(["success","warning","info","question","error"]),G=function(){return document.body.querySelector(".".concat(Y.container))},K=function(){return x(Y.popup)},Q=function(){return document.body.classList.contains(Y["toast-shown"])},Z={previousBodyPadding:null};function J(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return gt(t,Y[e]);case"checkbox":return t.querySelector(".".concat(Y.checkbox," input"));case"radio":return t.querySelector(".".concat(Y.radio," input:checked"))||t.querySelector(".".concat(Y.radio," input:first-child"));case"range":return t.querySelector(".".concat(Y.range," input"));default:return gt(t,Y.input)}}function tt(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function et(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((function(e){t.forEach?t.forEach((function(t){n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))}function nt(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)}function it(t,e){var n=1<arguments.length&&void 0!==e?e:"flex";t.style.opacity="",t.style.display=n}function rt(t){t.style.opacity="",t.style.display="none"}function ot(t,e,n){e?it(t,n):rt(t)}function st(t){return!!(t.scrollHeight>t.clientHeight)}function at(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<n||0<i}function lt(t,e){var n=1<arguments.length&&void 0!==e&&e,i=L();mt(i)&&(n&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))}function ct(){return"undefined"==typeof window||"undefined"==typeof document}function ut(t){je.isVisible()&&ht!==t.target.value&&je.resetValidationMessage(),ht=t.target.value}function dt(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?yt(e,n):e&&j(n,e)}var ht,pt=function(t,e){et(t,e,!0)},ft=function(t,e){et(t,e,!1)},gt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if($(t.childNodes[n],e))return t.childNodes[n]},mt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},vt='\n <div aria-labelledby="'.concat(Y.title,'" aria-describedby="').concat(Y.content,'" class="').concat(Y.popup,'" tabindex="-1">\n   <div class="').concat(Y.header,'">\n     <ul class="').concat(Y["progress-steps"],'"></ul>\n     <div class="').concat(Y.icon," ").concat(X.error,'"></div>\n     <div class="').concat(Y.icon," ").concat(X.question,'"></div>\n     <div class="').concat(Y.icon," ").concat(X.warning,'"></div>\n     <div class="').concat(Y.icon," ").concat(X.info,'"></div>\n     <div class="').concat(Y.icon," ").concat(X.success,'"></div>\n     <img class="').concat(Y.image,'" />\n     <h2 class="').concat(Y.title,'" id="').concat(Y.title,'"></h2>\n     <button type="button" class="').concat(Y.close,'"></button>\n   </div>\n   <div class="').concat(Y.content,'">\n     <div id="').concat(Y.content,'" class="').concat(Y["html-container"],'"></div>\n     <input class="').concat(Y.input,'" />\n     <input type="file" class="').concat(Y.file,'" />\n     <div class="').concat(Y.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(Y.select,'"></select>\n     <div class="').concat(Y.radio,'"></div>\n     <label for="').concat(Y.checkbox,'" class="').concat(Y.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(Y.label,'"></span>\n     </label>\n     <textarea class="').concat(Y.textarea,'"></textarea>\n     <div class="').concat(Y["validation-message"],'" id="').concat(Y["validation-message"],'"></div>\n   </div>\n   <div class="').concat(Y.actions,'">\n     <button type="button" class="').concat(Y.confirm,'">OK</button>\n     <button type="button" class="').concat(Y.cancel,'">Cancel</button>\n   </div>\n   <div class="').concat(Y.footer,'"></div>\n   <div class="').concat(Y["timer-progress-bar-container"],'">\n     <div class="').concat(Y["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),yt=function(t,e){t.jquery?bt(e,t):j(e,t.toString())},bt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},xt=function(){if(ct())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}();function wt(t,e,n){var i;ot(t,n["show".concat((i=e).charAt(0).toUpperCase()+i.slice(1),"Button")],"inline-block"),j(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=Y[e],z(t,n,"".concat(e,"Button")),pt(t,n["".concat(e,"ButtonClass")])}function _t(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}var Ct={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},kt=["input","file","range","select","radio","checkbox","textarea"],St=function(t){var e=Y[t]?Y[t]:Y.input;return gt(k(),e)},Tt={};function At(t,e){var n,i,r,o,s,a=k().querySelector("#".concat(Y.content));e.html?(dt(e.html,a),it(a,"block")):e.text?(a.textContent=e.text,it(a,"block")):rt(a),n=t,i=e,r=k(),o=Ct.innerParams.get(n),s=!o||i.input!==o.input,kt.forEach((function(t){var e=Y[t],n=gt(r,e);(function(t,e){var n=J(k(),t);if(n)for(var i in function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===i||n.setAttribute(i,e[i])})(t,i.inputAttributes),n.className=e,s&&rt(n)})),i.input&&(s&&function(t){if(!Tt[t.input])return W('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=St(t.input),n=Tt[t.input](e,t);it(n),setTimeout((function(){tt(n)}))}(i),function(t){var e=St(t.input);t.customClass&&pt(e,t.customClass.input)}(i)),z(k(),e,"content")}function Dt(){return G()&&G().getAttribute("data-queue-step")}function Et(t,e){var n,i,r,o,s,a,l,c;z(O(),e,"header"),function(t,e){var n=T();if(!e.progressSteps||0===e.progressSteps.length)return rt(n),0;it(n),n.textContent="";var i=parseInt(void 0===e.currentProgressStep?Dt():e.currentProgressStep);i>=e.progressSteps.length&&B("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,r){var o,s,a,l,c,u=(o=t,s=document.createElement("li"),pt(s,Y["progress-step"]),j(s,o),s);n.appendChild(u),r===i&&pt(u,Y["active-progress-step"]),r!==e.progressSteps.length-1&&(l=e,c=document.createElement("li"),pt(c,Y["progress-step-line"]),l.progressStepsDistance&&(c.style.width=l.progressStepsDistance),a=c,n.appendChild(a))}))}(0,e),n=t,i=e,(o=Ct.innerParams.get(n))&&i.icon===o.icon&&_()?z(_(),i,"icon"):(Pt(),i.icon&&(-1!==Object.keys(X).indexOf(i.icon)?(it(r=b(".".concat(Y.icon,".").concat(X[i.icon]))),It(r,i),Lt(),z(r,i,"icon"),pt(r,i.showClass.icon)):W('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(i.icon,'"')))),function(t){var e=S();if(!t.imageUrl)return rt(e);it(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),nt(e,"width",t.imageWidth),nt(e,"height",t.imageHeight),e.className=Y.image,z(e,t,"image")}(e),s=e,ot(a=C(),s.title||s.titleText),s.title&&dt(s.title,a),s.titleText&&(a.innerText=s.titleText),z(a,s,"title"),l=e,j(c=I(),l.closeButtonHtml),z(c,l,"closeButton"),ot(c,l.showCloseButton),c.setAttribute("aria-label",l.closeButtonAriaLabel)}function Mt(t,e){var n,i,r,o;n=e,nt(i=K(),"width",n.width),nt(i,"padding",n.padding),n.background&&(i.style.background=n.background),Ft(i,n),function(t,e){var n,i,r,o,s,a,l,c,u=G();u&&(n=u,"string"==typeof(i=e.backdrop)?n.style.background=i:i||pt([document.documentElement,document.body],Y["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&B('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),r=u,(o=e.position)in Y?pt(r,Y[o]):(B('The "position" parameter is not valid, defaulting to "center"'),pt(r,Y.center)),s=u,!(a=e.grow)||"string"!=typeof a||(l="grow-".concat(a))in Y&&pt(s,Y[l]),z(u,e,"container"),(c=document.body.getAttribute("data-swal2-queue-step"))&&(u.setAttribute("data-queue-step",c),document.body.removeAttribute("data-swal2-queue-step")))}(0,e),Et(t,e),At(t,e),function(t,e){var n=M(),i=D(),r=E();e.showConfirmButton||e.showCancelButton||rt(n),z(n,e,"actions"),wt(i,"confirm",e),wt(r,"cancel",e),e.buttonsStyling?function(t,e,n){var i;pt([t,e],Y.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor),F()||(i=window.getComputedStyle(t).getPropertyValue("background-color"),t.style.borderLeftColor=i,t.style.borderRightColor=i)}(i,r,e):(ft([i,r],Y.styled),i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor="",r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor=""),e.reverseButtons&&i.parentNode.insertBefore(r,i)}(0,e),r=e,ot(o=P(),r.footer),r.footer&&dt(r.footer,o),z(o,r,"footer"),"function"==typeof e.onRender&&e.onRender(K())}function Ot(){return D()&&D().click()}Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=function(e,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?e.value=n.inputValue:m(n.inputValue)||B('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),_t(e,n),e.type=n.input,e},Tt.file=function(t,e){return _t(t,e),t},Tt.range=function(t,e){var n=t.querySelector("input"),i=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,i.value=e.inputValue,t},Tt.select=function(t,e){var n;return t.textContent="",e.inputPlaceholder&&(j(n=document.createElement("option"),e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)),t},Tt.radio=function(t){return t.textContent="",t},Tt.checkbox=function(t,e){var n=J(k(),"checkbox");return n.value=1,n.id=Y.checkbox,n.checked=Boolean(e.inputValue),j(t.querySelector("span"),e.inputPlaceholder),t},Tt.textarea=function(t,e){var n,i;return t.value=e.inputValue,_t(t,e),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(K()).width),i=parseInt(window.getComputedStyle(K()).paddingLeft)+parseInt(window.getComputedStyle(K()).paddingRight),new MutationObserver((function(){var e=t.offsetWidth+i;K().style.width=n<e?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})),t};var Pt=function(){for(var t=w(),e=0;e<t.length;e++)rt(t[e])},Lt=function(){for(var t=K(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=e},It=function(t,e){t.textContent="",e.iconHtml?j(t,Nt(e.iconHtml)):"success"===e.icon?j(t,'\n      <div class="swal2-success-circular-line-left"></div>\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    '):"error"===e.icon?j(t,'\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    '):j(t,Nt({question:"?",warning:"!",info:"i"}[e.icon]))},Nt=function(t){return'<div class="'.concat(Y["icon-content"],'">').concat(t,"</div>")},Rt=[],Ft=function(t,e){t.className="".concat(Y.popup," ").concat(mt(t)?e.showClass.popup:""),e.toast?(pt([document.documentElement,document.body],Y["toast-shown"]),pt(t,Y.toast)):pt(t,Y.modal),z(t,e,"popup"),"string"==typeof e.customClass&&pt(t,e.customClass),e.icon&&pt(t,Y["icon-".concat(e.icon)])};function jt(){var t=K();t||je.fire(),t=K();var e=M(),n=D();it(e),it(n,"inline-block"),pt([t,e],Y.loading),n.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function $t(){if(Wt.timeout)return function(){var t=L(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),i=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")}(),Wt.timeout.stop()}function zt(){if(Wt.timeout){var t=Wt.timeout.start();return lt(t),t}}function Ht(t){return Object.prototype.hasOwnProperty.call(qt,t)}function Bt(t){return Vt[t]}var Wt={},qt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!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:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},Ut=["allowEscapeKey","allowOutsideClick","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","footer","hideClass","html","icon","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","text","title","titleText"],Vt={animation:'showClass" and "hideClass'},Yt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Xt=Object.freeze({isValidParameter:Ht,isUpdatableParameter:function(t){return-1!==Ut.indexOf(t)},isDeprecatedParameter:Bt,argsToParams:function(e){var n={};return"object"!==t(e[0])||v(e[0])?["title","html","icon"].forEach((function(i,r){var o=e[r];"string"==typeof o||v(o)?n[i]=o:void 0!==o&&W("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(t(o)))})):r(n,e[0]),n},isVisible:function(){return mt(K())},clickConfirm:Ot,clickCancel:function(){return E()&&E().click()},getContainer:G,getPopup:K,getTitle:C,getContent:k,getHtmlContainer:function(){return x(Y["html-container"])},getImage:S,getIcon:_,getIcons:w,getCloseButton:I,getActions:M,getConfirmButton:D,getCancelButton:E,getHeader:O,getFooter:P,getTimerProgressBar:L,getFocusableElements:N,getValidationMessage:A,isLoading:F,fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return l(this,e)},mixin:function(t){return function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,n);var l,d,h=(l=p,d=a(),function(){var t,e=o(l);return c(this,d?(t=o(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function p(){return e(this,p),h.apply(this,arguments)}return i(p,[{key:"_main",value:function(e){return u(o(p.prototype),"_main",this).call(this,r({},t,e))}}]),p}(this)},queue:function(t){var e=this;function n(t,e){Rt=[],t(e)}Rt=t;var i=[];return new Promise((function(t){!function r(o,s){o<Rt.length?(document.body.setAttribute("data-swal2-queue-step",o),e.fire(Rt[o]).then((function(e){void 0!==e.value?(i.push(e.value),r(o+1,s)):n(t,{dismiss:e.dismiss})}))):n(t,{value:i})}(0)}))},getQueueStep:Dt,insertQueueStep:function(t,e){return e&&e<Rt.length?Rt.splice(e,0,t):Rt.push(t)},deleteQueueStep:function(t){void 0!==Rt[t]&&Rt.splice(t,1)},showLoading:jt,enableLoading:jt,getTimerLeft:function(){return Wt.timeout&&Wt.timeout.getTimerLeft()},stopTimer:$t,resumeTimer:zt,toggleTimer:function(){var t=Wt.timeout;return t&&(t.running?$t:zt)()},increaseTimer:function(t){if(Wt.timeout){var e=Wt.timeout.increase(t);return lt(e,!0),e}},isTimerRunning:function(){return Wt.timeout&&Wt.timeout.isRunning()}});function Gt(){var t,e=Ct.innerParams.get(this);e&&(t=Ct.domCache.get(this),e.showConfirmButton||(rt(t.confirmButton),e.showCancelButton||rt(t.actions)),ft([t.popup,t.actions],Y.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1)}function Kt(){return!!window.MSInputMethodContext&&!!document.documentMode}function Qt(){var t=G(),e=K();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var Zt=function(t){var e=G();return t===e||!(st(e)||"INPUT"===t.tagName||st(k())&&k().contains(t))},Jt={swalPromiseResolve:new WeakMap};function te(t,e,n,i){var r;n?ie(t,i):(new Promise((function(t){var e=window.scrollX,n=window.scrollY;Wt.restoreFocusTimeout=setTimeout((function(){Wt.previousActiveElement&&Wt.previousActiveElement.focus?(Wt.previousActiveElement.focus(),Wt.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})).then((function(){return ie(t,i)})),Wt.keydownTarget.removeEventListener("keydown",Wt.keydownHandler,{capture:Wt.keydownListenerCapture}),Wt.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),R()&&(null!==Z.previousBodyPadding&&(document.body.style.paddingRight="".concat(Z.previousBodyPadding,"px"),Z.previousBodyPadding=null),$(document.body,Y.iosfix)&&(r=parseInt(document.body.style.top,10),ft(document.body,Y.iosfix),document.body.style.top="",document.body.scrollTop=-1*r),"undefined"!=typeof window&&Kt()&&window.removeEventListener("resize",Qt),h(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),ft([document.documentElement,document.body],[Y.shown,Y["height-auto"],Y["no-backdrop"],Y["toast-shown"],Y["toast-column"]])}function ee(t){var e,n,i,r=K();r&&(e=Ct.innerParams.get(this))&&!$(r,e.hideClass.popup)&&(n=Jt.swalPromiseResolve.get(this),ft(r,e.showClass.popup),pt(r,e.hideClass.popup),i=G(),ft(i,e.showClass.backdrop),pt(i,e.hideClass.backdrop),function(t,e,n){var i=G(),r=xt&&at(e),o=n.onClose,s=n.onAfterClose;null!==o&&"function"==typeof o&&o(e),r?ne(t,e,i,s):te(t,i,Q(),s)}(this,r,e),void 0!==t?(t.isDismissed=void 0!==t.dismiss,t.isConfirmed=void 0===t.dismiss):t={isDismissed:!0,isConfirmed:!1},n(t||{}))}var ne=function(t,e,n,i){Wt.swalCloseEventFinishedCallback=te.bind(null,t,n,Q(),i),e.addEventListener(xt,(function(t){t.target===e&&(Wt.swalCloseEventFinishedCallback(),delete Wt.swalCloseEventFinishedCallback)}))},ie=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function re(t,e,n){var i=Ct.domCache.get(t);e.forEach((function(t){i[t].disabled=n}))}function oe(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<n.length;i++)n[i].disabled=e;else t.disabled=e}var se=function(){function t(n,i){e(this,t),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),ae={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function le(t){var e,n;(e=t).inputValidator||Object.keys(ae).forEach((function(t){e.input===t&&(e.inputValidator=ae[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&B("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=U(t.animation),(n=t).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(B('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p,f,g,m=!!(e=G())&&(e.parentNode.removeChild(e),ft([document.documentElement,document.body],[Y["no-backdrop"],Y["toast-shown"],Y["has-column"]]),!0);ct()?W("SweetAlert2 requires document to initialize"):((n=document.createElement("div")).className=Y.container,m&&pt(n,Y["no-transition"]),j(n,vt),(i="string"==typeof(r=t.target)?document.querySelector(r):r).appendChild(n),o=t,(s=K()).setAttribute("role",o.toast?"alert":"dialog"),s.setAttribute("aria-live",o.toast?"polite":"assertive"),o.toast||s.setAttribute("aria-modal","true"),a=i,"rtl"===window.getComputedStyle(a).direction&&pt(G(),Y.rtl),l=k(),c=gt(l,Y.input),u=gt(l,Y.file),d=l.querySelector(".".concat(Y.range," input")),h=l.querySelector(".".concat(Y.range," output")),p=gt(l,Y.select),f=l.querySelector(".".concat(Y.checkbox," input")),g=gt(l,Y.textarea),c.oninput=ut,u.onchange=ut,p.onchange=ut,f.onchange=ut,g.oninput=ut,d.oninput=function(t){ut(t),h.value=d.value},d.onchange=function(t){ut(t),d.nextSibling.value=d.value})}(t)}function ce(t){var e,n=K();t.target===n&&(e=G(),n.removeEventListener(xt,ce),e.style.overflowY="auto")}function ue(t,e){t.closePopup({value:e})}function de(t,e,n){var i=N();if(0<i.length)return(e+=n)===i.length?e=0:-1===e&&(e=i.length-1),i[e].focus();K().focus()}var he,pe=function(t,e){xt&&at(e)?(t.style.overflowY="hidden",e.addEventListener(xt,ce)):t.style.overflowY="auto"},fe=function(t,e,n){var i;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!$(document.body,Y.iosfix)&&(i=document.body.scrollTop,document.body.style.top="".concat(-1*i,"px"),pt(document.body,Y.iosfix),function(){var t,e=G();e.ontouchstart=function(e){t=Zt(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}}(),navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||K().scrollHeight>window.innerHeight-44&&(G().style.paddingBottom="".concat(44,"px"))),"undefined"!=typeof window&&Kt()&&(Qt(),window.addEventListener("resize",Qt)),e&&"hidden"!==n&&null===Z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Z.previousBodyPadding+function(){var t=document.createElement("div");t.className=Y["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout((function(){t.scrollTop=0}))},ge=function(t,e,n){pt(t,n.showClass.backdrop),it(e),pt(e,n.showClass.popup),pt([document.documentElement,document.body],Y.shown),n.heightAuto&&n.backdrop&&!n.toast&&pt([document.documentElement,document.body],Y["height-auto"])},me=function(e,n){function i(t){return ye[n.input](r,be(t),n)}var r=k();f(n.inputOptions)||m(n.inputOptions)?(jt(),g(n.inputOptions).then((function(t){e.hideLoading(),i(t)}))):"object"===t(n.inputOptions)?i(n.inputOptions):W("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},ve=function(t,e){var n=t.getInput();rt(n),g(e.inputValue).then((function(i){n.value="number"===e.input?parseFloat(i)||0:"".concat(i),it(n),n.focus(),t.hideLoading()})).catch((function(e){W("Error in inputValue promise: ".concat(e)),n.value="",it(n),n.focus(),t.hideLoading()}))},ye={select:function(t,e,n){function i(t,e,i){var r=document.createElement("option");r.value=i,j(r,e),n.inputValue.toString()===i.toString()&&(r.selected=!0),t.appendChild(r)}var r=gt(t,Y.select);e.forEach((function(t){var e,n=t[0],o=t[1];Array.isArray(o)?((e=document.createElement("optgroup")).label=n,e.disabled=!1,r.appendChild(e),o.forEach((function(t){return i(e,t[1],t[0])}))):i(r,o,n)})),r.focus()},radio:function(t,e,n){var i=gt(t,Y.radio);e.forEach((function(t){var e=t[0],r=t[1],o=document.createElement("input"),s=document.createElement("label");o.type="radio",o.name=Y.radio,o.value=e,n.inputValue.toString()===e.toString()&&(o.checked=!0);var a=document.createElement("span");j(a,r),a.className=Y.label,s.appendChild(o),s.appendChild(a),i.appendChild(s)}));var r=i.querySelectorAll("input");r.length&&r[0].focus()}},be=function e(n){var i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,r){var o=n;"object"===t(o)&&(o=e(o)),i.push([r,o])})):Object.keys(n).forEach((function(r){var o=n[r];"object"===t(o)&&(o=e(o)),i.push([r,o])})),i},xe=function(t,e){var n=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return function(t){return t.checked?1:0}(n);case"radio":return function(t){return t.checked?t.value:null}(n);case"file":return function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null}(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return g(e.inputValidator(n,e.validationMessage))})).then((function(i){t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):we(t,e,n)}))):t.getInput().checkValidity()?we(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},we=function(t,e,n){e.showLoaderOnConfirm&&jt(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return g(e.preConfirm(n,e.validationMessage))})).then((function(e){mt(A())||!1===e?t.hideLoading():ue(t,void 0===e?n:e)}))):ue(t,n)},_e=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],Ce=["Escape","Esc"],ke=function(t,e,n){var i=Ct.innerParams.get(t);i.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Se(t,e,i):"Tab"===e.key?Te(e,i):-1!==_e.indexOf(e.key)?Ae():-1!==Ce.indexOf(e.key)&&De(e,i,n)},Se=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ot(),e.preventDefault()}},Te=function(t){for(var e=t.target,n=N(),i=-1,r=0;r<n.length;r++)if(e===n[r]){i=r;break}t.shiftKey?de(0,i,-1):de(0,i,1),t.stopPropagation(),t.preventDefault()},Ae=function(){var t=D(),e=E();document.activeElement===t&&mt(e)?e.focus():document.activeElement===e&&mt(t)&&t.focus()},De=function(t,e,n){U(e.allowEscapeKey)&&(t.preventDefault(),n(V.esc))},Ee=function(t,e,n){e.popup.onclick=function(){var e=Ct.innerParams.get(t);e.showConfirmButton||e.showCancelButton||e.showCloseButton||e.input||n(V.close)}},Me=!1,Oe=function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Me=!0)}}},Pe=function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(Me=!0)}}},Le=function(t,e,n){e.container.onclick=function(i){var r=Ct.innerParams.get(t);Me?Me=!1:i.target===e.container&&U(r.allowOutsideClick)&&n(V.backdrop)}},Ie=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()},Ne=function(t){for(var e in t)t[e]=new WeakMap},Re=Object.freeze({hideLoading:Gt,disableLoading:Gt,getInput:function(t){var e=Ct.innerParams.get(t||this),n=Ct.domCache.get(t||this);return n?J(n.content,e.input):null},close:ee,closePopup:ee,closeModal:ee,closeToast:ee,enableButtons:function(){re(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){re(this,["confirmButton","cancelButton"],!0)},enableInput:function(){return oe(this.getInput(),!1)},disableInput:function(){return oe(this.getInput(),!0)},showValidationMessage:function(t){var e=Ct.domCache.get(this);j(e.validationMessage,t);var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),it(e.validationMessage);var i=this.getInput();i&&(i.setAttribute("aria-invalid",!0),i.setAttribute("aria-describedBy",Y["validation-message"]),tt(i),pt(i,Y.inputerror))},resetValidationMessage:function(){var t=Ct.domCache.get(this);t.validationMessage&&rt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),ft(e,Y.inputerror))},getProgressSteps:function(){return Ct.domCache.get(this).progressSteps},_main:function(t){(function(t){for(var e in t)Ht(r=e)||B('Unknown parameter "'.concat(r,'"')),t.toast&&(i=e,-1!==Yt.indexOf(i)&&B('The parameter "'.concat(i,'" is incompatible with toasts'))),Bt(n=e)&&p(n,Bt(n));var n,i,r})(t),Wt.currentInstance&&Wt.currentInstance._destroy(),Wt.currentInstance=this;var e=function(t){var e=r({},qt.showClass,t.showClass),n=r({},qt.hideClass,t.hideClass),i=r({},qt,t);return i.showClass=e,i.hideClass=n,!1===t.animation&&(i.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},i.hideClass={}),i}(t);le(e),Object.freeze(e),Wt.timeout&&(Wt.timeout.stop(),delete Wt.timeout),clearTimeout(Wt.restoreFocusTimeout);var n=function(t){var e={popup:K(),container:G(),content:k(),actions:M(),confirmButton:D(),cancelButton:E(),closeButton:I(),validationMessage:A(),progressSteps:T()};return Ct.domCache.set(t,e),e}(this);return Mt(this,e),Ct.innerParams.set(this,e),function(t,e,n){return new Promise((function(i){var r=function(e){t.closePopup({dismiss:e})};Jt.swalPromiseResolve.set(t,i),e.confirmButton.onclick=function(){return function(t,e){t.disableButtons(),e.input?xe(t,e):we(t,e,!0)}(t,n)},e.cancelButton.onclick=function(){return function(t,e){t.disableButtons(),e(V.cancel)}(t,r)},e.closeButton.onclick=function(){return r(V.close)},function(t,e,n){Ct.innerParams.get(t).toast?Ee(t,e,n):(Oe(e),Pe(e),Le(t,e,n))}(t,e,r),function(t,e,n,i){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return ke(t,e,i)},e.keydownTarget=n.keydownListenerCapture?window:K(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)}(t,Wt,n,r),n.toast&&(n.input||n.footer||n.showCloseButton)?pt(document.body,Y["toast-column"]):ft(document.body,Y["toast-column"]),function(t,e){"select"===e.input||"radio"===e.input?me(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(f(e.inputValue)||m(e.inputValue))&&ve(t,e)}(t,n),function(t){var e=G(),n=K();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var i=window.getComputedStyle(document.body).overflowY;ge(e,n,t),pe(e,n),R()&&(fe(e,t.scrollbarPadding,i),h(document.body.children).forEach((function(t){t===G()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,G())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),Q()||Wt.previousActiveElement||(Wt.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)})),ft(e,Y["no-transition"])}(n),function(t,e,n){var i=L();rt(i),e.timer&&(t.timeout=new se((function(){n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(it(i),setTimeout((function(){t.timeout.running&&lt(e.timer)}))))}(Wt,n,r),function(t,e){if(!e.toast)U(e.allowEnterKey)?e.focusCancel&&mt(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&mt(t.confirmButton)?t.confirmButton.focus():de(0,-1,1):Ie()}(e,n),setTimeout((function(){e.container.scrollTop=0}))}))}(this,n,e)},update:function(t){var e=K(),n=Ct.innerParams.get(this);if(!e||$(e,n.hideClass.popup))return B("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var i={};Object.keys(t).forEach((function(e){je.isUpdatableParameter(e)?i[e]=t[e]:B('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))}));var o=r({},n,i);Mt(this,o),Ct.innerParams.set(this,o),Object.defineProperties(this,{params:{value:r({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Ct.domCache.get(this),e=Ct.innerParams.get(this);e&&(t.popup&&Wt.swalCloseEventFinishedCallback&&(Wt.swalCloseEventFinishedCallback(),delete Wt.swalCloseEventFinishedCallback),Wt.deferDisposalTimer&&(clearTimeout(Wt.deferDisposalTimer),delete Wt.deferDisposalTimer),"function"==typeof e.onDestroy&&e.onDestroy(),delete this.params,delete Wt.keydownHandler,delete Wt.keydownTarget,Ne(Ct),Ne(Jt))}}),Fe=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&W("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),he=this;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=Object.freeze(this.constructor.argsToParams(i));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var s=this._main(this.params);Ct.promise.set(this,s)}}return i(t,[{key:"then",value:function(t){return Ct.promise.get(this).then(t)}},{key:"finally",value:function(t){return Ct.promise.get(this).finally(t)}}]),t}();r(Fe.prototype,Re),r(Fe,Xt),Object.keys(Re).forEach((function(t){Fe[t]=function(){if(he)return he[t].apply(he,arguments)}})),Fe.DismissReason=V,Fe.version="9.17.2";var je=Fe;return je.default=je})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t){t(["jquery"],(function(t){return function(){function e(e,n){return e||(e=s()),(l=t("#"+e.containerId)).length||n&&(l=function(e){return(l=t("<div/>").attr("id",e.containerId).addClass(e.positionClass)).appendTo(t(e.target)),l}(e)),l}function n(e){for(var n=l.children(),r=n.length-1;r>=0;r--)i(t(n[r]),e)}function i(e,n,i){var r=!(!i||!i.force)&&i.force;return!(!e||!r&&0!==t(":focus",e).length||(e[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){a(e)}}),0))}function r(t){c&&c(t)}function o(n){function i(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(e){var n=e&&!1!==f.closeMethod?f.closeMethod:f.hideMethod,i=e&&!1!==f.closeDuration?f.closeDuration:f.hideDuration,o=e&&!1!==f.closeEasing?f.closeEasing:f.hideEasing;if(!t(":focus",v).length||e)return clearTimeout(_.intervalId),v[n]({duration:i,easing:o,complete:function(){a(v),clearTimeout(m),f.onHidden&&"hidden"!==C.state&&f.onHidden(),C.state="hidden",C.endTime=new Date,r(C)}})}function c(){(f.timeOut>0||f.extendedTimeOut>0)&&(m=setTimeout(o,f.extendedTimeOut),_.maxHideTime=parseFloat(f.extendedTimeOut),_.hideEta=(new Date).getTime()+_.maxHideTime)}function h(){clearTimeout(m),_.hideEta=0,v.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function p(){var t=(_.hideEta-(new Date).getTime())/_.maxHideTime*100;x.width(t+"%")}var f=s(),g=n.iconClass||f.iconClass;if(void 0!==n.optionsOverride&&(f=t.extend(f,n.optionsOverride),g=n.optionsOverride.iconClass||g),!function(t,e){if(t.preventDuplicates){if(e.message===u)return!0;u=e.message}return!1}(f,n)){d++,l=e(f,!0);var m=null,v=t("<div/>"),y=t("<div/>"),b=t("<div/>"),x=t("<div/>"),w=t(f.closeHtml),_={intervalId:null,hideEta:null,maxHideTime:null},C={toastId:d,state:"visible",startTime:new Date,options:f,map:n};return n.iconClass&&v.addClass(f.toastClass).addClass(g),function(){if(n.title){var t=n.title;f.escapeHtml&&(t=i(n.title)),y.append(t).addClass(f.titleClass),v.append(y)}}(),function(){if(n.message){var t=n.message;f.escapeHtml&&(t=i(n.message)),b.append(t).addClass(f.messageClass),v.append(b)}}(),f.closeButton&&(w.addClass(f.closeClass).attr("role","button"),v.prepend(w)),f.progressBar&&(x.addClass(f.progressClass),v.prepend(x)),f.rtl&&v.addClass("rtl"),f.newestOnTop?l.prepend(v):l.append(v),function(){var t="";switch(n.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}v.attr("aria-live",t)}(),v.hide(),v[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(m=setTimeout(o,f.timeOut),_.maxHideTime=parseFloat(f.timeOut),_.hideEta=(new Date).getTime()+_.maxHideTime,f.progressBar&&(_.intervalId=setInterval(p,10))),f.closeOnHover&&v.hover(h,c),!f.onclick&&f.tapToDismiss&&v.click(o),f.closeButton&&w&&w.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),f.onCloseClick&&f.onCloseClick(t),o(!0)})),f.onclick&&v.click((function(t){f.onclick(t),o()})),r(C),f.debug&&console&&console.log(C),v}}function s(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-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:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},p.options)}function a(t){l||(l=e()),t.is(":visible")||(t.remove(),t=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"},p={clear:function(t,r){var o=s();l||e(o),i(t,o,r)||n(o)},remove:function(n){var i=s();return l||e(i),n&&0===t(":focus",n).length?void a(n):void(l.children().length&&l.remove())},error:function(t,e,n){return o({type:h.error,iconClass:s().iconClasses.error,message:t,optionsOverride:n,title:e})},getContainer:e,info:function(t,e,n){return o({type:h.info,iconClass:s().iconClasses.info,message:t,optionsOverride:n,title:e})},options:{},subscribe:function(t){c=t},success:function(t,e,n){return o({type:h.success,iconClass:s().iconClasses.success,message:t,optionsOverride:n,title:e})},version:"2.1.4",warning:function(t,e,n){return o({type:h.warning,iconClass:s().iconClasses.warning,message:t,optionsOverride:n,title:e})}};return p}()}))}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){t.extend(t.fn,{validate:function(e){if(this.length){var n=t.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new t.validator(e,this[0]),t.data(this[0],"validator",n),n.settings.onsubmit&&(this.on("click.validate",":submit",(function(e){n.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(n.cancelSubmit=!0)})),this.on("submit.validate",(function(e){function i(){var i,r;return n.submitButton&&(n.settings.submitHandler||n.formSubmitted)&&(i=t("<input type='hidden'/>").attr("name",n.submitButton.name).val(t(n.submitButton).val()).appendTo(n.currentForm)),!(n.settings.submitHandler&&!n.settings.debug)||(r=n.settings.submitHandler.call(n,n.currentForm,e),i&&i.remove(),void 0!==r&&r)}return n.settings.debug&&e.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,i()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):i():(n.focusInvalid(),!1)}))),n)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,n,i;return t(this[0]).is("form")?e=this.validate().form():(i=[],e=!0,n=t(this[0].form).validate(),this.each((function(){(e=n.element(this)&&e)||(i=i.concat(n.errorList))})),n.errorList=i),e},rules:function(e,n){var i,r,o,s,a,l,c=this[0],u=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=c&&(!c.form&&u&&(c.form=this.closest("form")[0],c.name=this.attr("name")),null!=c.form)){if(e)switch(i=t.data(c.form,"validator").settings,r=i.rules,o=t.validator.staticRules(c),e){case"add":t.extend(o,t.validator.normalizeRule(n)),delete o.messages,r[c.name]=o,n.messages&&(i.messages[c.name]=t.extend(i.messages[c.name],n.messages));break;case"remove":return n?(l={},t.each(n.split(/\s/),(function(t,e){l[e]=o[e],delete o[e]})),l):(delete r[c.name],o)}return(s=t.validator.normalizeRules(t.extend({},t.validator.classRules(c),t.validator.attributeRules(c),t.validator.dataRules(c),t.validator.staticRules(c)),c)).required&&(a=s.required,delete s.required,s=t.extend({required:a},s)),s.remote&&(a=s.remote,delete s.remote,s=t.extend(s,{remote:a})),s}}});var e=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};t.extend(t.expr.pseudos||t.expr[":"],{blank:function(n){return!e(""+t(n).val())},filled:function(n){var i=t(n).val();return null!==i&&!!e(""+i)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,n){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=n,this.init()},t.validator.format=function(e,n){return 1===arguments.length?function(){var n=t.makeArray(arguments);return n.unshift(e),t.validator.format.apply(this,n)}:(void 0===n||(arguments.length>2&&n.constructor!==Array&&(n=t.makeArray(arguments).slice(1)),n.constructor!==Array&&(n=[n]),t.each(n,(function(t,n){e=e.replace(new RegExp("\\{"+t+"\\}","g"),(function(){return n}))}))),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,customElements:[],onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,n){9===n.which&&""===this.elementValue(e)||-1!==t.inArray(n.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,n,i){"radio"===e.type?this.findByName(e.name).addClass(n).removeClass(i):t(e).addClass(n).removeClass(i)},unhighlight:function(e,n,i){"radio"===e.type?this.findByName(e.name).removeClass(n).addClass(i):t(e).removeClass(n).addClass(i)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var n=void 0!==t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");if(!this.form&&n&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name")),i===this.form){var r=t.data(this.form,"validator"),o="on"+e.type.replace(/^validate/,""),s=r.settings;s[o]&&!t(this).is(s.ignore)&&s[o].call(r,this,e)}}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.currentForm,r=this.groups={};t.each(this.settings.groups,(function(e,n){"string"==typeof n&&(n=n.split(/\s/)),t.each(n,(function(t,n){r[n]=e}))})),n=this.settings.rules,t.each(n,(function(e,i){n[e]=t.validator.normalizeRule(i)}));t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"].concat(this.settings.customElements).join(", "),e).on("click.validate",["select","option","[type='radio']","[type='checkbox']"].concat(this.settings.customElements).join(", "),e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var n,i,r=this.clean(e),o=this.validationTargetFor(r),s=this,a=!0;return void 0===o?delete this.invalid[r.name]:(this.prepareElement(o),this.currentElements=t(o),(i=this.groups[o.name])&&t.each(this.groups,(function(t,e){e===i&&t!==o.name&&((r=s.validationTargetFor(s.clean(s.findByName(t))))&&r.name in s.invalid&&(s.currentElements.push(r),a=s.check(r)&&a))})),n=!1!==this.check(o),a=a&&n,this.invalid[o.name]=!n,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!n)),a},showErrors:function(e){if(e){var n=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,(function(t,e){return{message:t,element:n.findByName(e)[0]}})),this.successList=t.grep(this.successList,(function(t){return!(t.name in e)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,n=0;for(e in t)void 0!==t[e]&&null!==t[e]&&!1!==t[e]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,(function(t){return t.element.name===e.name})).length&&e},elements:function(){var e=this,n={};return t(this.currentForm).find(["input","select","textarea","[contenteditable]"].concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter((function(){var i=this.name||t(this).attr("name"),r=void 0!==t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");return!i&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),r&&(this.form=t(this).closest("form")[0],this.name=i),!(this.form!==e.currentForm||i in n||!e.objectLength(t(this).rules())||(n[i]=!0,0))}))},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var n,i,r=t(e),o=e.type,s=void 0!==r.attr("contenteditable")&&"false"!==r.attr("contenteditable");return"radio"===o||"checkbox"===o?this.findByName(e.name).filter(":checked").val():"number"===o&&void 0!==e.validity?e.validity.badInput?"NaN":r.val():(n=s?r.text():r.val(),"file"===o?"C:\\fakepath\\"===n.substr(0,12)?n.substr(12):(i=n.lastIndexOf("/"))>=0?n.substr(i+1):(i=n.lastIndexOf("\\"))>=0?n.substr(i+1):n:"string"==typeof n?n.replace(/\r/g,""):n)},check:function(e){e=this.validationTargetFor(this.clean(e));var n,i,r,o,s=t(e).rules(),a=t.map(s,(function(t,e){return e})).length,l=!1,c=this.elementValue(e);for(i in this.abortRequest(e),"function"==typeof s.normalizer?o=s.normalizer:"function"==typeof this.settings.normalizer&&(o=this.settings.normalizer),o&&(c=o.call(e,c),delete s.normalizer),s){r={method:i,parameters:s[i]};try{if("dependency-mismatch"===(n=t.validator.methods[i].call(this,c,e,r.parameters))&&1===a){l=!0;continue}if(l=!1,"pending"===n)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!n)return this.formatAndAdd(e,r),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+r.method+"' method.",t),t instanceof TypeError&&(t.message+=".  Exception occurred when checking element "+e.id+", check the '"+r.method+"' method."),t}}if(!l)return this.objectLength(s)&&this.successList.push(e),!0},customDataMessage:function(e,n){return t(e).data("msg"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var n=this.settings.messages[t];return n&&(n.constructor===String?n:n[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,n){"string"==typeof n&&(n={method:n});var i=this.findDefined(this.customMessage(e.name,n.method),this.customDataMessage(e,n.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[n.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,n.parameters,e):r.test(i)&&(i=t.validator.format(i.replace(r,"{$1}"),n.parameters)),i},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e);this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,n;for(t=0;this.errorList[t];t++)n=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map((function(){return this.element}))},showLabel:function(e,n){var i,r,o,s,a=this.errorsFor(e),l=this.idOrName(e),c=t(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(n||""):a.html(n||"")):(a=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(n||""):a.html(n||""),i=a,this.settings.wrapper&&(i=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,t(e)):i.insertAfter(e),a.is("label")?a.attr("for",l):0===a.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(o=a.attr("id"),c?c.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(c+=" "+o):c=o,t(e).attr("aria-describedby",c),(r=this.groups[e.name])&&(s=this,t.each(s.groups,(function(e,n){n===r&&t("[name='"+s.escapeCssMeta(e)+"']",s.currentForm).attr("aria-describedby",a.attr("id"))}))))),!n&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var n=this.escapeCssMeta(this.idOrName(e)),i=t(e).attr("aria-describedby"),r="label[for='"+n+"'], label[for='"+n+"'] *";return i&&(r=r+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(t){return void 0===t?"":t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,n){switch(n.nodeName.toLowerCase()){case"select":return t("option:selected",n).length;case"input":if(this.checkable(n))return this.findByName(n.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,n){return!!t(e,n.form).length},function:function(t,e){return t(e)}},optional:function(e){var n=this.elementValue(e);return!t.validator.methods.required.call(this,n,e)&&"dependency-mismatch"},elementAjaxPort:function(t){return"validate"+t.name},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,n){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),n&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(t(this.currentForm).trigger("submit"),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!n&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(e){var n;this.pending[e.name]&&(n=this.elementAjaxPort(e),t.ajaxAbort(n),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass))},previousValue:function(e,n){return n="string"==typeof n&&n||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:n})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,n){e.constructor===String?this.classRuleSettings[e]=n:t.extend(this.classRuleSettings,e)},classRules:function(e){var n={},i=t(e).attr("class");return i&&t.each(i.split(" "),(function(){this in t.validator.classRuleSettings&&t.extend(n,t.validator.classRuleSettings[this])})),n},normalizeAttributeRule:function(t,e,n,i){/min|max|step/.test(n)&&(null===e||/number|range|text/.test(e))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?t[n]=i:e===n&&"range"!==e&&(t["date"===e?"dateISO":n]=!0)},attributeRules:function(e){var n,i,r={},o=t(e),s=e.getAttribute("type");for(n in t.validator.methods)"required"===n?(""===(i=e.getAttribute(n))&&(i=!0),i=!!i):i=o.attr(n),this.normalizeAttributeRule(r,s,n,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(e){var n,i,r={},o=t(e),s=e.getAttribute("type");for(n in t.validator.methods)""===(i=o.data("rule"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()))&&(i=!0),this.normalizeAttributeRule(r,s,n,i);return r},staticRules:function(e){var n={},i=t.data(e.form,"validator");return i.settings.rules&&(n=t.validator.normalizeRule(i.settings.rules[e.name])||{}),n},normalizeRules:function(e,n){return t.each(e,(function(i,r){if(!1!==r){if(r.param||r.depends){var o=!0;switch(typeof r.depends){case"string":o=!!t(r.depends,n.form).length;break;case"function":o=r.depends.call(n,n)}o?e[i]=void 0===r.param||r.param:(t.data(n.form,"validator").resetElements(t(n)),delete e[i])}}else delete e[i]})),t.each(e,(function(t,i){e[t]="function"==typeof i&&"normalizer"!==t?i(n):i})),t.each(["minlength","maxlength"],(function(){e[this]&&(e[this]=Number(e[this]))})),t.each(["rangelength","range"],(function(){var t;e[this]&&(Array.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(t=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(t[0]),Number(t[1])]))})),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var n={};t.each(e.split(/\s/),(function(){n[this]=!0})),e=n}return e},addMethod:function(e,n,i){t.validator.methods[e]=n,t.validator.messages[e]=void 0!==i?i:t.validator.messages[e],n.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,n,i){if(!this.depend(i,n))return"dependency-mismatch";if("select"===n.nodeName.toLowerCase()){var r=t(n).val();return r&&r.length>0}return this.checkable(n)?this.getLength(e,n)>0:null!=e&&e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[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])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?: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-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(){var t=!1;return function(e,n){return t||(t=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(n)||!/Invalid|NaN/.test(new Date(e).toString())}}(),dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,n){var i=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i>=n},maxlength:function(t,e,n){var i=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i<=n},rangelength:function(t,e,n){var i=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i>=n[0]&&i<=n[1]},min:function(t,e,n){return this.optional(e)||t>=n},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},step:function(e,n,i){var r,o=t(n).attr("type"),s="Step attribute on input type "+o+" is not supported.",a=new RegExp("\\b"+o+"\\b"),l=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},c=function(t){return Math.round(t*Math.pow(10,r))},u=!0;if(o&&!a.test(["text","number","range"].join()))throw new Error(s);return r=l(i),(l(e)>r||c(e)%c(i)!=0)&&(u=!1),this.optional(n)||u},equalTo:function(e,n,i){var r=t(i);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",(function(){t(n).valid()})),e===r.val()},remote:function(e,n,i,r){if(this.optional(n))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var o,s,a,l=this.previousValue(n,r);return this.settings.messages[n.name]||(this.settings.messages[n.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[n.name][r],this.settings.messages[n.name][r]=l.message,i="string"==typeof i&&{url:i}||i,a=t.param(t.extend({data:e},i.data)),null!==l.valid&&l.old===a?l.valid:(l.old=a,l.valid=null,o=this,this.startRequest(n),(s={})[n.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:this.elementAjaxPort(n),dataType:"json",data:s,context:o.currentForm,success:function(t){var i,s,a,c=!0===t||"true"===t;o.settings.messages[n.name][r]=l.originalMessage,c?(a=o.formSubmitted,o.toHide=o.errorsFor(n),o.formSubmitted=a,o.successList.push(n),o.invalid[n.name]=!1,o.showErrors()):(i={},s=t||o.defaultMessage(n,{method:r,parameters:e}),i[n.name]=l.message=s,o.invalid[n.name]=!0,o.showErrors(i)),l.valid=c,o.stopRequest(n,c)}},i)),"pending")}}});var n,i={};return t.ajaxPrefilter?t.ajaxPrefilter((function(e,n,r){var o=e.port;"abort"===e.mode&&(t.ajaxAbort(o),i[o]=r)})):(n=t.ajax,t.ajax=function(e){var r=("mode"in e?e:t.ajaxSettings).mode,o=("port"in e?e:t.ajaxSettings).port;return"abort"===r?(t.ajaxAbort(o),i[o]=n.apply(this,arguments),i[o]):n.apply(this,arguments)}),t.ajaxAbort=function(t){i[t]&&(i[t].abort(),delete i[t])},t})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(n,i){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(n),appendDots:t(n),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,n){return t('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(n),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=t(n).data("slick")||{},o.options=t.extend({},o.defaults,i,r),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=e++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):i?t(e).insertBefore(r.$slides.eq(n)):t(e).insertAfter(r.$slides.eq(n)):!0===i?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(e,n){t(n).attr("data-slick-index",e)})),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,n){var i={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(e=-e),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,n):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),!1===r.options.vertical?(i[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),e=Math.ceil(e),!1===r.options.vertical?i[r.animType]="translate3d("+e+"px, 0px, 0px)":i[r.animType]="translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout((function(){r.disableTransition(),n.call()}),r.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=t(this).slick("getSlick");n.unslicked||n.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,n={};!1===e.options.fade?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,n,i=this;if(!0===i.options.dots){for(i.$slider.addClass("slick-dotted"),n=t("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)n.append(t("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,n){t(n).attr("data-slick-index",e).data("originalStyling",t(n).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,n,i,r,o,s,a=this;if(i=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,r=Math.ceil(o.length/s),t=0;t<r;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var u=t*s+(e*a.options.slidesPerRow+n);o.get(u)&&c.appendChild(o.get(u))}l.appendChild(c)}i.appendChild(l)}a.$slider.empty().append(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,n){var i,r,o,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||t(window).width();if("window"===s.respondTo?o=c:"slider"===s.respondTo?o=l:"min"===s.respondTo&&(o=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in r=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?o<s.breakpoints[i]&&(r=s.breakpoints[i]):o>s.breakpoints[i]&&(r=s.breakpoints[i]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||n)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[r]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=r),e||!1===a||s.$slider.trigger("breakpoint",[s,a])}},e.prototype.changeSlide=function(e,n){var i,r,o=this,s=t(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,e.data.message){case"previous":r=0===i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-r,!1,n);break;case"next":r=0===i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+r,!1,n);break;case"index":var a=0===e.data.index?0:e.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,n;if(n=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var i in e){if(t<e[i]){t=n;break}n=e[i]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),t(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,e||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.fadeSlide=function(t,e){var n=this;!1===n.cssTransitions?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout((function(){n.disableTransition(t),e.call()}),n.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var i=t(this);setTimeout((function(){e.options.pauseOnFocus&&(e.focussed=i.is(":focus"),e.autoPlay())}),0)}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++i;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)i=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else i=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return i-1},e.prototype.getLeft=function(t){var e,n,i,r,o=this,s=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?r=-1.5:1===o.options.slidesToShow&&(r=-2)),s=n*o.options.slidesToShow*r),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,s=(o.options.slidesToShow-(t-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,s=o.slideCount%o.options.slidesToScroll*n*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(t+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,s=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*n*-1+s,!0===o.options.variableWidth&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===o.options.centerMode&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,e+=(o.$list.width()-i.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,n=0,i=0,r=[];for(!1===e.options.infinite?t=e.slideCount:(n=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,t=2*e.slideCount);n<t;)r.push(n),n=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each((function(r,o){if(o.offsetLeft-n+t(o).outerWidth()/2>-1*i.swipeLeft)return e=o,!1})),Math.abs(t(e).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var n=this;t(n.$slider).hasClass("slick-initialized")||(t(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),e&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},e.prototype.initADA=function(){var e=this,n=Math.ceil(e.slideCount/e.options.slidesToShow),i=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(n){var r=i.indexOf(n);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+n,tabindex:-1}),-1!==r&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+r})})),e.$dots.attr("role","tablist").find("li").each((function(r){var o=i[r];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+r,"aria-controls":"slick-slide"+e.instanceUid+o,"aria-label":r+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=e.currentSlide,o=r+e.options.slidesToShow;r<o;r++)e.$slides.eq(r).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each((function(){var e=t(this),n=t(this).attr("data-lazy"),i=t(this).attr("data-srcset"),r=t(this).attr("data-sizes")||o.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,(function(){i&&(e.attr("srcset",i),r&&e.attr("sizes",r)),e.attr("src",n).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,n])}))},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,n])},s.src=n}))}var n,i,r,o=this;if(!0===o.options.centerMode?!0===o.options.infinite?r=(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),r=o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,r=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(i>0&&i--,r<=o.slideCount&&r++)),n=o.$slider.find(".slick-slide").slice(i,r),"anticipated"===o.options.lazyLoad)for(var s=i-1,a=r,l=o.$slider.find(".slick-slide"),c=0;c<o.options.slidesToScroll;c++)s<0&&(s=o.slideCount-1),n=(n=n.add(l.eq(s))).add(l.eq(a)),s--,a++;e(n),o.slideCount<=o.options.slidesToShow?e(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?e(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&e(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,e]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&t(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var n,i,r,o,s,a=this,l=t("img[data-lazy]",a.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),r=n.attr("data-srcset"),o=n.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){r&&(n.attr("srcset",r),o&&n.attr("sizes",o)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,n,i]),a.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,n,i]),a.progressiveLazyLoad())},s.src=i):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var n,i,r=this;i=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>i&&(r.currentSlide=i),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),n=r.currentSlide,r.destroy(!0),t.extend(r,r.initials,{currentSlide:n}),r.init(),e||r.changeSlide({data:{message:"index",index:n}},!1)},e.prototype.registerBreakpoints=function(){var e,n,i,r=this,o=r.options.responsive||null;if("array"===t.type(o)&&o.length){for(e in r.respondTo=r.options.respondTo||"window",o)if(i=r.breakpoints.length-1,o.hasOwnProperty(e)){for(n=o[e].breakpoint;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=o[e].settings}r.breakpoints.sort((function(t,e){return r.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,n){var i=this;if(t="boolean"==typeof t?!0===(e=t)?0:i.slideCount-1:!0===e?--t:t,i.slideCount<1||t<0||t>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},e.prototype.setCSS=function(t){var e,n,i=this,r={};!0===i.options.rtl&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",r[i.positionProp]=t,!1===i.transformsEnabled?i.$slideTrack.css(r):(r={},!1===i.cssTransitions?(r[i.animType]="translate("+e+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+e+", "+n+", 0px)",i.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,n=this;n.$slides.each((function(i,r){e=n.slideWidth*i*-1,!0===n.options.rtl?t(r).css({position:"relative",right:e,top:0,zIndex:n.options.zIndex-2,opacity:0}):t(r).css({position:"relative",left:e,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,n,i,r,o,s=this,a=!1;if("object"===t.type(arguments[0])?(i=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(i=arguments[0],r=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)s.options[i]=r;else if("multiple"===o)t.each(i,(function(t,e){s.options[t]=e}));else if("responsive"===o)for(n in r)if("array"!==t.type(s.options.responsive))s.options.responsive=[r[n]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===r[n].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(r[n])}a&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,n,i,r,o=this;if(n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var s=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(i=o.options.slidesToShow+t,n.slice(i-e+1+s,i+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,i=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?n.slice(i-(o.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},e.prototype.setupInfinite=function(){var e,n,i,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-i;e-=1)n=e-1,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;e<i+r.slideCount;e+=1)n=e,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var n=this,i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));r||(r=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(r,!1,!0):n.slideHandler(r)},e.prototype.slideHandler=function(t,e,n){var i,r,o,s,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),i=t,l=c.getLeft(i),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=i<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),o=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(o),c.fadeSlide(r,(function(){c.postSlide(r)}))):c.postSlide(r),void c.animateHeight();!0!==n?c.animateSlide(l,(function(){c.postSlide(r)})):c.postSlide(r)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,n,i,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(e,t),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?!1===r.options.rtl?"left":"right":i>=135&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(e),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,n,i,r,o,s,a=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),r=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(r=a.touchObject.curY>a.touchObject.startY?1:-1),i=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(i=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+i*r:a.swipeLeft=e+i*(a.$list.height()/a.listWidth)*r,!0===a.options.verticalSwiping&&(a.swipeLeft=e+i*r),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,n.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,n,i=this,r=arguments[0],o=Array.prototype.slice.call(arguments,1),s=i.length;for(t=0;t<s;t++)if("object"==typeof r||void 0===r?i[t].slick=new e(i[t],r):n=i[t].slick[r].apply(i[t].slick,o),void 0!==n)return n;return i}})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,(function(){return e={686:function(t,e,n){"use strict";n.d(e,{default:function(){return m}});e=n(279);var i=n.n(e),r=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function s(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){return t=o()(t),s("cut"),t};function l(t,e){var n,i;n=t,i="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(i,"px"),t.setAttribute("readonly",""),t.value=n,t=t;return e.container.appendChild(t),e=o()(t),s("copy"),t.remove(),e}var c=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=l(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=l(t.value,e):(n=o()(t),s("copy")),n};function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var m=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(s,i());var t,e,n,o=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);return n=e?(n=f(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),i=this,!(n=n)||"object"!==d(n)&&"function"!=typeof n?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(i):n}}(s);function s(t,e){var n;return function(t){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=s,n=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return c(t,e)}},{key:"cut",value:function(t){return a(t)}},{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,e=!!document.queryCommandSupported;return t.forEach((function(t){e=e&&!!document.queryCommandSupported(t)})),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=r()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy";t=function(){var t=void 0===(n=(i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":n,e=i.container,n=i.target,i=i.text;if("copy"!==t&&"cut"!==t)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==n){if(!n||"object"!==u(n)||1!==n.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===t&&n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===t&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?c(i,{container:e}):n?"cut"===t?a(n):c(n,{container:e}):void 0}({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return g("action",t)}},{key:"defaultTarget",value:function(t){if(t=g("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return g("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&h(t.prototype,e),n&&h(t,n),s}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var i=n(828);function r(t,e,n,r,o){var s=function(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,s,o),{destroy:function(){t.removeEventListener(n,s,o)}}}t.exports=function(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,i,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var i=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return c=e,u=n,(l=t).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(i.nodeList(t))return o=t,s=e,a=n,Array.prototype.forEach.call(o,(function(t){t.addEventListener(s,a)})),{destroy:function(){Array.prototype.forEach.call(o,(function(t){t.removeEventListener(s,a)}))}};if(i.string(t))return t=t,e=e,n=n,r(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,s,a,l,c,u}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,s=i.length;o<s;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(686).default;function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}var e,n})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";var t=Object.freeze({__proto__:null,get Colors(){return Lo},get Decimation(){return Ro},get Filler(){return Jo},get Legend(){return is},get SubTitle(){return as},get Title(){return os},get Tooltip(){return _s}});function e(){}const n=(()=>{let t=0;return()=>t++})();function i(t){return null==t}function r(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function o(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function a(t,e){return s(t)?t:e}function l(t,e){return void 0===t?e:t}const c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function h(t,e,n,i){let s,a,l;if(r(t))if(a=t.length,i)for(s=a-1;s>=0;s--)e.call(n,t[s],s);else for(s=0;s<a;s++)e.call(n,t[s],s);else if(o(t))for(l=Object.keys(t),a=l.length,s=0;s<a;s++)e.call(n,t[l[s]],l[s])}function p(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function f(t){if(r(t))return t.map(f);if(o(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=f(t[n[r]]);return e}return t}function g(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,n,i){if(!g(t))return;const r=e[t],s=n[t];o(r)&&o(s)?v(r,s,i):e[t]=f(s)}function v(t,e,n){const i=r(e)?e:[e],s=i.length;if(!o(t))return t;const a=(n=n||{}).merger||m;let l;for(let e=0;e<s;++e){if(l=i[e],!o(l))continue;const r=Object.keys(l);for(let e=0,i=r.length;e<i;++e)a(r[e],t,l,n)}return t}function y(t,e){return v(t,e,{merger:b})}function b(t,e,n){if(!g(t))return;const i=e[t],r=n[t];o(i)&&o(r)?y(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=f(r))}const x={"":t=>t,x:t=>t.x,y:t=>t.y};function w(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function _(t,e){return(x[e]||(x[e]=function(t){const e=w(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e)))(t)}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}const k=t=>void 0!==t,S=t=>"function"==typeof t,T=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function A(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const D=Math.PI,E=2*D,M=E+D,O=Number.POSITIVE_INFINITY,P=D/180,L=D/2,I=D/4,N=2*D/3,R=Math.log10,F=Math.sign;function j(t,e,n){return Math.abs(t-e)<n}function $(t){const e=Math.round(t);t=j(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(R(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function z(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}function H(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function B(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function W(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function q(t){return t*(D/180)}function U(t){return t*(180/D)}function V(t){if(!s(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Y(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*D&&(o+=E),{angle:o,distance:r}}function X(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function G(t,e){return(t-e+M)%E-D}function K(t){return(t%E+E)%E}function Q(t,e,n,i){const r=K(t),o=K(e),s=K(n),a=K(o-r),l=K(s-r),c=K(r-o),u=K(r-s);return r===o||r===s||i&&o===s||a>l&&c<u}function Z(t,e,n){return Math.max(e,Math.min(n,t))}function J(t){return Z(t,-32768,32767)}function tt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function et(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const nt=(t,e,n,i)=>et(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),it=(t,e,n)=>et(t,n,i=>t[i][e]>=n);function rt(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}const ot=["push","pop","shift","splice","unshift"];function st(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ot.forEach(e=>{const n="_onData"+C(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=i.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),r}})}))}function at(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(ot.forEach(e=>{delete t[e]}),delete t._chartjs)}function lt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ut(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,ct.call(window,()=>{i=!1,t.apply(e,n)}))}}function dt(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const ht=t=>"start"===t?"left":"end"===t?"right":"center",pt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,ft=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function gt(t,e,n){const r=e.length;let o=0,s=r;if(t._sorted){const{iScale:a,vScale:l,_parsed:c}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=a.axis,{min:h,max:p,minDefined:f,maxDefined:g}=a.getUserBounds();if(f){if(o=Math.min(nt(c,d,h).lo,n?r:nt(e,d,a.getPixelForValue(h)).lo),u){const t=c.slice(0,o+1).reverse().findIndex(t=>!i(t[l.axis]));o-=Math.max(0,t)}o=Z(o,0,r-1)}if(g){let t=Math.max(nt(c,a.axis,p,!0).hi+1,n?0:nt(e,d,a.getPixelForValue(p),!0).hi+1);if(u){const e=c.slice(t-1).findIndex(t=>!i(t[l.axis]));t+=Math.max(0,e)}s=Z(t,o,r)-o}else s=r-o}return{start:o,count:s}}function mt(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}var vt=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach(i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};function yt(t){return t+.5|0}const bt=(t,e,n)=>Math.max(Math.min(t,n),e);function xt(t){return bt(yt(2.55*t),0,255)}function wt(t){return bt(yt(255*t),0,255)}function _t(t){return bt(yt(t/2.55)/100,0,1)}function Ct(t){return bt(yt(100*t),0,100)}const kt={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},St=[..."0123456789ABCDEF"],Tt=t=>St[15&t],At=t=>St[(240&t)>>4]+St[15&t],Dt=t=>(240&t)>>4==(15&t);const Et=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mt(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Ot(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Pt(t,e,n){const i=Mt(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Lt(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,s]}function It(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(wt)}function Nt(t,e,n){return It(Mt,t,e,n)}function Rt(t){return(t%360+360)%360}const Ft={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"},jt={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 $t;const zt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Ht=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Wt(t,e,n){if(t){let i=Lt(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Nt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function qt(t,e){return t?Object.assign(e||{},t):t}function Ut(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=wt(t[3]))):(e=qt(t,{r:0,g:0,b:0,a:1})).a=wt(e.a),e}function Vt(t){return"r"===t.charAt(0)?function(t){const e=zt.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?xt(t):bt(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?xt(n):bt(n,0,255)),i=255&(e[4]?xt(i):bt(i,0,255)),r=255&(e[6]?xt(r):bt(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):function(t){const e=Et.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?xt(+e[5]):wt(+e[5]));const r=Rt(+e[2]),o=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return It(Pt,t,e,n)}(r,o,s):"hsv"===e[1]?function(t,e,n){return It(Ot,t,e,n)}(r,o,s):Nt(r,o,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Yt{constructor(t){if(t instanceof Yt)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=Ut(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*kt[i[1]],g:255&17*kt[i[2]],b:255&17*kt[i[3]],a:5===o?17*kt[i[4]]:255}:7!==o&&9!==o||(r={r:kt[i[1]]<<4|kt[i[2]],g:kt[i[3]]<<4|kt[i[4]],b:kt[i[5]]<<4|kt[i[6]],a:9===o?kt[i[7]]<<4|kt[i[8]]:255})),n=r||function(t){$t||($t=function(){const t={},e=Object.keys(jt),n=Object.keys(Ft);let i,r,o,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,Ft[o]);o=parseInt(jt[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),$t.transparent=[0,0,0,0]);const e=$t[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Vt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=qt(this._rgb);return t&&(t.a=_t(t.a)),t}set rgb(t){this._rgb=Ut(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${_t(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?function(t){var e=(t=>Dt(t.r)&&Dt(t.g)&&Dt(t.b)&&Dt(t.a))(t)?Tt:At;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Lt(t),n=e[0],i=Ct(e[1]),r=Ct(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${_t(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=n.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Bt(_t(t.r)),r=Bt(_t(t.g)),o=Bt(_t(t.b));return{r:wt(Ht(i+n*(Bt(_t(e.r))-i))),g:wt(Ht(r+n*(Bt(_t(e.g))-r))),b:wt(Ht(o+n*(Bt(_t(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Yt(this.rgb)}alpha(t){return this._rgb.a=wt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Wt(this._rgb,2,t),this}darken(t){return Wt(this._rgb,2,-t),this}saturate(t){return Wt(this._rgb,1,t),this}desaturate(t){return Wt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Lt(t);n[0]=Rt(n[0]+e),n=Nt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Xt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Gt(t){return Xt(t)?t:new Yt(t)}function Kt(t){return Xt(t)?t:new Yt(t).saturate(.5).darken(.1).hexString()}const Qt=["x","y","borderWidth","radius","tension"],Zt=["color","borderColor","backgroundColor"],Jt=new Map;function te(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Jt.get(n);return i||(i=new Intl.NumberFormat(t,e),Jt.set(n,i)),i}(e,n).format(t)}const ee={values:t=>r(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=R(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),te(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(R(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?ee.numeric.call(this,t,e,n):""}};var ne={formatters:ee};const ie=Object.create(null),re=Object.create(null);function oe(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function se(t,e,n){return"string"==typeof e?v(oe(t,e),n):v(oe(t,""),e)}var ae=new class{constructor(t,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=t=>t.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=(t,e)=>Kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Kt(e.borderColor),this.hoverColor=(t,e)=>Kt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},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.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return se(this,t,e)}get(t){return oe(this,t)}describe(t,e){return se(re,t,e)}override(t,e){return se(ie,t,e)}route(t,e,n,i){const r=oe(this,t),s=oe(this,n),a="_"+e;Object.defineProperties(r,{[a]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=s[i];return o(t)?Object.assign({},e,t):l(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Zt},numbers:{type:"number",properties:Qt}}),t.describe("animations",{_fallback:"animation"}),t.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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:ne.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function le(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ce(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ue(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const de=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function he(t,e){return de(t).getPropertyValue(e)}const pe=["top","right","bottom","left"];function fe(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=pe[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ge(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=de(n),o="border-box"===r.boxSizing,s=fe(r,"padding"),a=fe(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let s,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:p,height:f}=e;return o&&(p-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const me=t=>Math.round(10*t)/10;function ve(t,e,n,i){const r=de(t),o=fe(r,"margin"),s=ue(r.maxWidth,t,"clientWidth")||O,a=ue(r.maxHeight,t,"clientHeight")||O,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=t&&ce(t);if(o){const t=o.getBoundingClientRect(),s=de(o),a=fe(s,"border","width"),l=fe(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=ue(s.maxWidth,o,"clientWidth"),r=ue(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||O,maxHeight:r||O}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=fe(r,"border","width"),e=fe(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=me(Math.min(c,s,l.maxWidth)),u=me(Math.min(u,a,l.maxHeight)),c&&!u&&(u=me(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=me(Math.floor(u*i))),{width:c,height:u}}function ye(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=t.height+"px",s.style.width=t.width+"px"),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const be=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};le()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function xe(t,e){const n=he(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function we(t){return!t||i(t.size)||i(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function _e(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function Ce(t,e,n,i){let o=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},s=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const l=n.length;let c,u,d,h,p;for(c=0;c<l;c++)if(h=n[c],null==h||r(h)){if(r(h))for(u=0,d=h.length;u<d;u++)p=h[u],null==p||r(p)||(a=_e(t,o,s,a,p))}else a=_e(t,o,s,a,h);t.restore();const f=s.length/2;if(f>n.length){for(c=0;c<f;c++)delete o[s[c]];s.splice(0,f)}return a}function ke(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function Se(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Te(t,e,n,i){Ae(t,e,n,i,null)}function Ae(t,e,n,i,r){let o,s,a,l,c,u,d,h;const p=e.pointStyle,f=e.rotation,g=e.radius;let m=(f||0)*P;if(p&&"object"==typeof p&&(o=p.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,i),t.rotate(m),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),p){default:r?t.ellipse(n,i,r/2,g,0,0,E):t.arc(n,i,g,0,E),t.closePath();break;case"triangle":u=r?r/2:g,t.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=N,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=N,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,s=Math.cos(m+I)*l,d=Math.cos(m+I)*(r?r/2-c:l),a=Math.sin(m+I)*l,h=Math.sin(m+I)*(r?r/2-c:l),t.arc(n-d,i-a,c,m-D,m-L),t.arc(n+h,i-s,c,m-L,m),t.arc(n+d,i+a,c,m,m+L),t.arc(n-h,i+s,c,m+L,m+D),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*g,u=r?r/2:l,t.rect(n-u,i-l,2*u,2*l);break}m+=I;case"rectRot":d=Math.cos(m)*(r?r/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),t.moveTo(n-d,i-a),t.lineTo(n+h,i-s),t.lineTo(n+d,i+a),t.lineTo(n-h,i+s),t.closePath();break;case"crossRot":m+=I;case"cross":d=Math.cos(m)*(r?r/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-s),t.lineTo(n-h,i+s);break;case"star":d=Math.cos(m)*(r?r/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-s),t.lineTo(n-h,i+s),m+=I,d=Math.cos(m)*(r?r/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,h=Math.sin(m)*(r?r/2:g),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-s),t.lineTo(n-h,i+s);break;case"line":s=r?r/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(n-s,i-a),t.lineTo(n+s,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*(r?r/2:g),i+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function De(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ee(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Me(t){t.restore()}function Oe(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===r!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Pe(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Le(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function Ie(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Ne(t,e,n,o,s,a={}){const l=r(e)?e:[e],c=a.strokeWidth>0&&""!==a.strokeColor;let u,d;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),i(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),u=0;u<l.length;++u)d=l[u],a.backdrop&&Ie(t,a.backdrop),c&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),i(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(d,n,o,a.maxWidth)),t.fillText(d,n,o,a.maxWidth),Le(t,n,o,d,a),o+=Number(s.lineHeight);t.restore()}function Re(t,e){const{x:n,y:i,w:r,h:o,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*D,D,!0),t.lineTo(n,i+o-s.bottomLeft),t.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,D,L,!0),t.lineTo(n+r-s.bottomRight,i+o),t.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,L,0,!0),t.lineTo(n+r,i+s.topRight),t.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-L,!0),t.lineTo(n+s.topLeft,i)}function Fe(t,e=[""],n,i,r=(()=>t[0])){const o=n||t;void 0===i&&(i=Xe("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>Fe([n,...t],e,o,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Be(n,i,()=>function(t,e,n,i){let r;for(const o of e)if(r=Xe(ze(o,t),n),void 0!==r)return He(t,r)?Ve(n,i,t,r):r}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ge(t).includes(e),ownKeys:t=>Ge(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function je(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:$e(t,i),setContext:e=>je(t,e,n,i),override:r=>je(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Be(t,e,()=>function(t,e,n){const{_proxy:i,_context:s,_subProxy:a,_descriptors:l}=t;let c=i[e];return S(c)&&l.isScriptable(e)&&(c=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,s||i);return a.delete(t),He(t,l)&&(l=Ve(r._scopes,r,t,l)),l}(e,c,t,n)),r(c)&&c.length&&(c=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:a,_descriptors:l}=n;if(void 0!==s.index&&i(t))return e[s.index%e.length];if(o(e[0])){const n=e,i=r._scopes.filter(t=>t!==n);e=[];for(const o of n){const n=Ve(i,r,t,o);e.push(je(n,s,a&&a[t],l))}}return e}(e,c,t,l.isIndexable)),He(e,c)&&(c=je(c,s,a&&a[e],l)),c}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function $e(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:S(n)?n:()=>n,isIndexable:S(i)?i:()=>i}}const ze=(t,e)=>t?t+C(e):e,He=(t,e)=>o(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Be(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function We(t,e,n){return S(t)?t(e,n):t}const qe=(t,e)=>!0===t?e:"string"==typeof t?_(e,t):void 0;function Ue(t,e,n,i,r){for(const o of e){const e=qe(n,o);if(e){t.add(e);const o=We(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Ve(t,e,n,i){const s=e._rootScopes,a=We(e._fallback,n,i),l=[...t,...s],c=new Set;c.add(i);let u=Ye(c,l,n,a||n,i);return null!==u&&(void 0===a||a===n||(u=Ye(c,l,a,u,i),null!==u))&&Fe(Array.from(c),[""],s,a,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return r(s)&&o(n)?n:s||{}}(e,n,i))}function Ye(t,e,n,i,r){for(;n;)n=Ue(t,e,n,i,r);return n}function Xe(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Ge(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Ke(t,e,n,i){const{iScale:r}=t,{key:o="r"}=this._parsing,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={r:r.parse(_(u,o),c)};return s}const Qe=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],Je=t=>"x"===t?"y":"x";function tn(t,e,n,i){const r=t.skip?e:t,o=e,s=n.skip?e:n,a=X(o,r),l=X(s,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:o.x-d*(s.x-r.x),y:o.y-d*(s.y-r.y)},next:{x:o.x+h*(s.x-r.x),y:o.y+h*(s.y-r.y)}}}function en(t,e="x"){const n=Je(e),i=t.length,r=Array(i).fill(0),o=Array(i);let s,a,l,c=Ze(t,0);for(s=0;s<i;++s)if(a=l,l=c,c=Ze(t,s+1),l){if(c){const t=c[e]-l[e];r[s]=0!==t?(c[n]-l[n])/t:0}o[s]=a?c?F(r[s-1])!==F(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}!function(t,e,n){const i=t.length;let r,o,s,a,l,c=Ze(t,0);for(let u=0;u<i-1;++u)l=c,c=Ze(t,u+1),l&&c&&(j(e[u],0,Qe)?n[u]=n[u+1]=0:(r=n[u]/e[u],o=n[u+1]/e[u],a=Math.pow(r,2)+Math.pow(o,2),a<=9||(s=3/Math.sqrt(a),n[u]=r*s*e[u],n[u+1]=o*s*e[u])))}(t,r,o),function(t,e,n="x"){const i=Je(n),r=t.length;let o,s,a,l=Ze(t,0);for(let c=0;c<r;++c){if(s=a,a=l,l=Ze(t,c+1),!a)continue;const r=a[n],u=a[i];s&&(o=(r-s[n])/3,a["cp1"+n]=r-o,a["cp1"+i]=u-o*e[c]),l&&(o=(l[n]-r)/3,a["cp2"+n]=r+o,a["cp2"+i]=u+o*e[c])}}(t,o,e)}function nn(t,e,n){return Math.max(Math.min(t,n),e)}function rn(t,e,n,i,r){let o,s,a,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)en(t,r);else{let n=i?t[t.length-1]:t[0];for(o=0,s=t.length;o<s;++o)a=t[o],l=tn(n,a,t[Math.min(o+1,s-(i?0:1))%s],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,r,o,s,a=De(t[0],e);for(n=0,i=t.length;n<i;++n)s=o,o=a,a=n<i-1&&De(t[n+1],e),o&&(r=t[n],s&&(r.cp1x=nn(r.cp1x,e.left,e.right),r.cp1y=nn(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=nn(r.cp2x,e.left,e.right),r.cp2y=nn(r.cp2y,e.top,e.bottom)))}(t,n)}const on=t=>0===t||1===t,sn=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*E/n),an=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*E/n)+1,ln={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*L),easeOutSine:t=>Math.sin(t*L),easeInOutSine:t=>-.5*(Math.cos(D*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>on(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>on(t)?t:sn(t,.075,.3),easeOutElastic:t=>on(t)?t:an(t,.075,.3),easeInOutElastic(t){const e=.1125;return on(t)?t:t<.5?.5*sn(2*t,e,.45):.5+.5*an(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ln.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ln.easeInBounce(2*t):.5*ln.easeOutBounce(2*t-1)+.5};function cn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function un(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function dn(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=cn(t,r,n),a=cn(r,o,n),l=cn(o,e,n),c=cn(s,a,n),u=cn(a,l,n);return cn(c,u,n)}const hn=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fn(t,e){const n=(""+t).match(hn);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const gn=t=>+t||0;function mn(t,e){const n={},i=o(e),r=i?Object.keys(e):e,s=o(t)?i?n=>l(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=gn(s(t));return n}function vn(t){return mn(t,{top:"y",right:"x",bottom:"y",left:"x"})}function yn(t){return mn(t,["topLeft","topRight","bottomLeft","bottomRight"])}function bn(t){const e=vn(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function xn(t,e){t=t||{},e=e||ae.font;let n=l(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=l(t.style,e.style);i&&!(""+i).match(pn)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:l(t.family,e.family),lineHeight:fn(l(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:l(t.weight,e.weight),string:""};return r.string=we(r),r}function wn(t,e,n,i){let o,s,a,l=!0;for(o=0,s=t.length;o<s;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==n&&r(a)&&(a=a[n%a.length],l=!1),void 0!==a))return i&&!l&&(i.cacheable=!1),a}function _n(t,e,n){const{min:i,max:r}=t,o=u(e,(r-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function Cn(t,e){return Object.assign(Object.create(t),e)}function kn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Sn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Tn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function An(t){return"angle"===t?{between:Q,compare:G,normalize:K}:{between:tt,compare:(t,e)=>t-e,normalize:t=>t}}function Dn({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function En(t,e,n){if(!n)return[t];const{property:i,start:r,end:o}=n,s=e.length,{compare:a,between:l,normalize:c}=An(i),{start:u,end:d,loop:h,style:p}=function(t,e,n){const{property:i,start:r,end:o}=n,{between:s,normalize:a}=An(i),l=e.length;let c,u,{start:d,end:h,loop:p}=t;if(p){for(d+=l,h+=l,c=0,u=l;c<u&&s(a(e[d%l][i]),r,o);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:p,style:t.style}}(t,e,n),f=[];let g,m,v,y=!1,b=null;for(let t=u,n=u;t<=d;++t)m=e[t%s],m.skip||(g=c(m[i]),g!==v&&(y=l(g,r,o),null===b&&(y||l(r,v,g)&&0!==a(r,v))&&(b=0===a(g,r)?t:n),null!==b&&(!y||0===a(o,g)||l(o,v,g))&&(f.push(Dn({start:b,end:t,loop:h,count:s,style:p})),b=null),n=t,v=g));return null!==b&&f.push(Dn({start:b,end:d,loop:h,count:s,style:p})),f}function Mn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const o=En(i[r],t.points,e);o.length&&n.push(...o)}return n}function On(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const o=!!t._loop,{start:s,end:a}=function(t,e,n,i){let r=0,o=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(o+=r);o>r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(n,r,o,i);return Pn(t,!0===i?[{start:s,end:a,loop:o}]:function(t,e,n,i){const r=t.length,o=[];let s,a=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%r];n.skip||n.stop?l.skip||(i=!1,o.push({start:e%r,end:(s-1)%r,loop:i}),e=a=n.stop?s:null):(a=s,l.skip&&(e=s)),l=n}return null!==a&&o.push({start:e%r,end:a%r,loop:i}),o}(n,s,a<s?a+r:a,!!t._fullLoop&&0===s&&a===r-1),n,e)}function Pn(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const r=t._chart.getContext(),o=Ln(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=n.length,c=[];let u=o,d=e[0].start,h=d;function p(t,e,i,r){const o=a?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:r}),u=r,d=e%l)}}for(const t of e){d=a?d:t.start;let e,o=n[d%l];for(h=d+1;h<=t.end;h++){const a=n[h%l];e=Ln(i.setContext(Cn(r,{type:"segment",p0:o,p1:a,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:s}))),In(e,u)&&p(d,h-1,t.loop,u),o=a,u=e}d<h-1&&p(d,h-1,t.loop,u)}return c}(t,e,n,i):e}function Ln(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function In(t,e){if(!e)return!1;const n=[],i=function(t,e){return Xt(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,i)!==JSON.stringify(e,i)}var Nn=Object.freeze({__proto__:null,HALF_PI:L,INFINITY:O,PI:D,PITAU:M,QUARTER_PI:I,RAD_PER_DEG:P,TAU:E,TWO_THIRDS_PI:N,_addGrace:_n,_alignPixel:ke,_alignStartEnd:pt,_angleBetween:Q,_angleDiff:G,_arrayUnique:lt,_attachContext:je,_bezierCurveTo:Pe,_bezierInterpolation:dn,_boundSegment:En,_boundSegments:Mn,_capitalize:C,_computeSegments:On,_createResolver:Fe,_decimalPlaces:V,_deprecated:function(t,e,n,i){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+i+'" instead')},_descriptors:$e,_elementsEqual:p,_factorize:z,_filterBetween:rt,_getParentNode:ce,_getStartAndCountOfVisiblePoints:gt,_int16Range:J,_isBetween:tt,_isClickEvent:A,_isDomSupported:le,_isPointInArea:De,_limitValue:Z,_longestText:Ce,_lookup:et,_lookupByKey:nt,_measureText:_e,_merger:m,_mergerIf:b,_normalizeAngle:K,_parseObjectDataRadialScale:Ke,_pointInLine:cn,_readValueToProps:mn,_rlookupByKey:it,_scaleRangesChanged:mt,_setMinAndMaxByKey:W,_splitKey:w,_steppedInterpolation:un,_steppedLineTo:Oe,_textX:ft,_toLeftRightCenter:ht,_updateBezierControlPoints:rn,addRoundedRectPath:Re,almostEquals:j,almostWhole:B,callback:d,clearCanvas:Se,clipArea:Ee,clone:f,color:Gt,createContext:Cn,debounce:dt,defined:k,distanceBetweenPoints:X,drawPoint:Te,drawPointLegend:Ae,each:h,easingEffects:ln,finiteOrDefault:a,fontString:function(t,e,n){return e+" "+t+"px "+n},formatNumber:te,getAngleFromPoint:Y,getHoverColor:Kt,getMaximumSize:ve,getRelativePosition:ge,getRtlAdapter:kn,getStyle:he,isArray:r,isFinite:s,isFunction:S,isNullOrUndef:i,isNumber:H,isObject:o,isPatternOrGradient:Xt,listenArrayEvents:st,log10:R,merge:v,mergeIf:y,niceNum:$,noop:e,overrideTextDirection:Sn,readUsedSize:xe,renderText:Ne,requestAnimFrame:ct,resolve:wn,resolveObjectKey:_,restoreTextDirection:Tn,retinaScale:ye,setsEqual:T,sign:F,splineCurve:tn,splineCurveMonotone:en,supportsEventListenerOptions:be,throttled:ut,toDegrees:U,toDimension:u,toFont:xn,toFontString:we,toLineHeight:fn,toPadding:bn,toPercentage:c,toRadians:q,toTRBL:vn,toTRBLCorners:yn,uid:n,unclipArea:Me,unlistenArrayEvents:at,valueOrDefault:l});function Rn(t,e,n,r){const{controller:o,data:s,_sorted:a}=t,l=o._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(l&&e===l.axis&&"r"!==e&&a&&s.length){const a=l._reversePixels?it:nt;if(!r){const r=a(s,e,n);if(c){const{vScale:e}=o._cachedMeta,{_parsed:n}=t,s=n.slice(0,r.lo+1).reverse().findIndex(t=>!i(t[e.axis]));r.lo-=Math.max(0,s);const a=n.slice(r.hi).findIndex(t=>!i(t[e.axis]));r.hi+=Math.max(0,a)}return r}if(o._sharedOptions){const t=s[0],i="function"==typeof t.getRange&&t.getRange(e);if(i){const t=a(s,e,n-i),r=a(s,e,n+i);return{lo:t.lo,hi:r.hi}}}}return{lo:0,hi:s.length-1}}function Fn(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=Rn(o[t],e,s,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function jn(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(Fn(t,n,e,(function(n,s,a){(r||De(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:s,index:a})}),!0),o):o}function $n(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return Fn(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!o&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})})),s}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return Fn(t,n,e,(function(t,n,o){const{startAngle:s,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Y(t,{x:e.x,y:e.y});Q(l,s,a)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function zn(t,e,n,i,r){const o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return Fn(t,n,e,(t,i,l)=>{t[s]&&t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))}),i&&!a?[]:o}var Hn={evaluateInteractionItems:Fn,modes:{index(t,e,n,i){const r=ge(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?jn(t,r,o,i,s):$n(t,r,o,!1,i,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const r=ge(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?jn(t,r,o,i,s):$n(t,r,o,!1,i,s);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>jn(t,ge(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=ge(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return $n(t,r,o,n.intersect,i,s)},x:(t,e,n,i)=>zn(t,ge(e,t),"x",n.intersect,i),y:(t,e,n,i)=>zn(t,ge(e,t),"y",n.intersect,i)}};const Bn=["left","top","right","bottom"];function Wn(t,e){return t.filter(t=>t.pos===e)}function qn(t,e){return t.filter(t=>-1===Bn.indexOf(t.pos)&&t.box.axis===e)}function Un(t,e){return t.sort((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function Vn(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Yn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Xn(t,e,n,i){const{pos:r,box:s}=n,a=t.maxPadding;if(!o(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[r]+=n.size}s.getPadding&&Yn(a,s.getPadding());const l=Math.max(0,e.outerWidth-Vn(a,t,"left","right")),c=Math.max(0,e.outerHeight-Vn(a,t,"top","bottom")),u=l!==t.w,d=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function Gn(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}(t?["left","right"]:["top","bottom"])}function Kn(t,e,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Gn(a.horizontal,e));const{same:s,other:d}=Xn(e,n,a,i);c|=s&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&Kn(r,e,n,i)||u}function Qn(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function Zn(t,e,n,i){const r=n.padding;let{x:o,y:s}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;k(l.start)&&(s=l.start),t.fullSize?Qn(t,r.left,s,n.outerWidth-r.right-r.left,o):Qn(t,e.left+l.placed,s,i,o),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;k(l.start)&&(o=l.start),t.fullSize?Qn(t,o,r.top,s,n.outerHeight-r.bottom-r.top):Qn(t,o,e.top+l.placed,s,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=s}var Jn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=bn(t.options.layout.padding),o=Math.max(e-r.width,0),s=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,o,s,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),n=Un(e.filter(t=>t.box.fullSize),!0),i=Un(Wn(e,"left"),!0),r=Un(Wn(e,"right")),o=Un(Wn(e,"top"),!0),s=Un(Wn(e,"bottom")),a=qn(e,"x"),l=qn(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:Wn(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;h(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),p=Object.assign({},r);Yn(p,bn(i));const f=Object.assign({maxPadding:p,w:o,h:s,x:r.left,y:r.top},r),g=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!Bn.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:s&&e.availableHeight)}return n}(l.concat(c),d);Kn(a.fullSize,f,d,g),Kn(l,f,d,g),Kn(c,f,d,g)&&Kn(l,f,d,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),Zn(a.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,Zn(a.rightAndBottom,f,d,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},h(a.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ti{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ei extends ti{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ni="$chartjs",ii={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ri=t=>null===t||""===t,oi=!!be&&{passive:!0};function si(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,oi)}function ai(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function li(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||ai(n.addedNodes,i),e=e&&!ai(n.removedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function ci(t,e,n){const i=t.canvas,r=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||ai(n.removedNodes,i),e=e&&!ai(n.addedNodes,i);e&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const ui=new Map;let di=0;function hi(){const t=window.devicePixelRatio;t!==di&&(di=t,ui.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function pi(t,e,n){const i=t.canvas,r=i&&ce(i);if(!r)return;const o=ut((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()},window),s=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)});return s.observe(r),function(t,e){ui.size||window.addEventListener("resize",hi),ui.set(t,e)}(t,o),s}function fi(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){ui.delete(t),ui.size||window.removeEventListener("resize",hi)}(t)}function gi(t,e,n){const i=t.canvas,r=ut(e=>{null!==t.ctx&&n(function(t,e){const n=ii[t.type]||t.type,{x:i,y:r}=ge(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))},t);return function(t,e,n){t&&t.addEventListener(e,n,oi)}(i,e,r),r}class mi extends ti{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[ni]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ri(r)){const e=xe(t,"width");void 0!==e&&(t.width=e)}if(ri(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=xe(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[ni])return!1;const n=e[ni].initial;["height","width"].forEach(t=>{const r=n[t];i(r)?e.removeAttribute(t):e.setAttribute(t,r)});const r=n.style||{};return Object.keys(r).forEach(t=>{e.style[t]=r[t]}),e.width=e.width,delete e[ni],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:li,detach:ci,resize:pi}[e]||gi;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:fi,detach:fi,resize:fi}[e]||si)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return ve(t,e,n,i)}isAttached(t){const e=t&&ce(t);return!(!e||!e.isConnected)}}function vi(t){return!le()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ei:mi}var yi=Object.freeze({__proto__:null,BasePlatform:ti,BasicPlatform:ei,DomPlatform:mi,_detectPlatform:vi});const bi="transparent",xi={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Gt(t||bi),r=i.valid&&Gt(e||bi);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class wi{constructor(t,e,n,i){const r=e[n];i=wn([t.to,i,r,t.from]);const o=wn([t.from,r,i]);this._active=!0,this._fn=t.fn||xi[t.type||typeof o],this._easing=ln[t.easing]||ln.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=wn([t.to,e,i,t.from]),this._from=wn([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class _i{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!o(t))return;const e=Object.keys(ae.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!o(s))return;const a={};for(const t of e)a[t]=s[t];(r(s.properties)&&s.properties||[i]).forEach(t=>{t!==i&&n.has(t)||n.set(t,a)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(r[l]=u=new wi(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(vt.add(this._chart,n),!0):void 0}}function Ci(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function ki(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Si(t,e,n,i={}){const r=t.keys,o="single"===i.mode;let a,l,c,u;if(null===e)return;let d=!1;for(a=0,l=r.length;a<l;++a){if(c=+r[a],c===n){if(d=!0,i.all)continue;break}u=t.values[c],s(u)&&(o||0===e||F(e)===F(u))&&(e+=u)}return d||i.all?e:0}function Ti(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ai(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Di(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Ei(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Ai(r,u,o),h[a]=d,h._top=Di(h,s,!0,i.type),h._bottom=Di(h,s,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function Mi(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Oi(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const Pi=t=>"reset"===t||"none"===t,Li=(t,e)=>e?t:Object.assign({},t);class Ii{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ti(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Oi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=l(n.xAxisID,Mi(t,"x")),o=e.yAxisID=l(n.yAxisID,Mi(t,"y")),s=e.rAxisID=l(n.rAxisID,Mi(t,"r")),a=e.indexAxis,c=e.iAxisID=i(a,r,o,s),u=e.vAxisID=i(a,o,r,s);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&at(this._data,this),t._stacked&&Oi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(o(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",o="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[r]:u,[o]:t[u]};return a}(e,t)}else if(n!==e){if(n){at(n,this);const t=this._cachedMeta;Oi(t),t._parsed=[]}e&&Object.isExtensible(e)&&st(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Ti(e.vScale,e),e.stack!==n.stack&&(i=!0,Oi(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Ei(this,e._parsed),e._stacked=Ti(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:s,_stacked:a}=n,l=s.axis;let c,u,d,h=0===t&&e===i.length||n._sorted,p=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,d=i;else{d=r(i[t])?this.parseArrayData(n,i,t,e):o(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const s=()=>null===u[l]||p&&u[l]<p[l];for(c=0;c<e;++c)n._parsed[c+t]=u=d[c],h&&(s()&&(h=!1),p=u);n._sorted=h}a&&Ei(this,d)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,l=r.getLabels(),c=r===o,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[s]:c||r.parse(l[p],p),[a]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:r.parse(u[0],c),y:o.parse(u[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(_(h,s),d),y:o.parse(_(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return Si({keys:ki(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,o=Si(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,o=i.length,a=this._getOtherScale(t),l=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ki(n,!0),values:null})(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let h,p;function f(){p=i[h];const e=p[a.axis];return!s(p[t.axis])||u>e||d<e}for(h=0;h<o&&(f()||(this.updateRangeFromParsed(c,t,p,l),!r));++h);if(r)for(h=o-1;h>=0;--h)if(!f()){this.updateRangeFromParsed(c,t,p,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i][t.axis],s(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return o(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(l(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Ci(t,n),r=Ci(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return Cn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return Cn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,s=r[o],a=this.enableOptionSharing&&k(n);if(s)return Li(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[t+"Hover","hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(ae.elements[t]),p=l.resolveNamedOptions(d,h,()=>this.getContext(n,i,e),u);return p.$shared&&(p.$shared=a,r[o]=Object.freeze(Li(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o="animation-"+e,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const l=new _i(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Pi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){Pi(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Pi(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Oi(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class Ni{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return H(this.x)&&H(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}function Ri(t,e){const n=t.options.ticks,r=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),o=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=s.length,l=s[0],c=s[a-1],u=[];if(a>o)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=n[o*i])}(e,u,s,a/o),u;const d=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=z(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>r)return e}return Math.max(r,1)}(s,e,o);if(a>0){let t,n;const r=a>1?Math.round((c-l)/(a-1)):null;for(Fi(e,u,d,i(r)?0:l-r,l),t=0,n=a-1;t<n;t++)Fi(e,u,d,s[t],s[t+1]);return Fi(e,u,d,c,i(r)?e.length:c+r),u}return Fi(e,u,d),u}function Fi(t,e,n,i,r){const o=l(i,0),s=Math.min(l(r,t.length),t.length);let a,c,u,d=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),u=o;u<0;)d++,u=Math.round(o+d*n);for(c=Math.max(o,0);c<s;c++)c===u&&(e.push(t[c]),d++,u=Math.round(o+d*n))}const ji=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,$i=(t,e)=>Math.min(e||t,t);function zi(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function Hi(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-o,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<o-a||c>s+a)))return c}function Bi(t){return t.drawTicks?t.tickLength:0}function Wi(t,e){if(!t.display)return 0;const n=xn(t.font,e),i=bn(t.padding);return(r(t.text)?t.text.length:1)*n.lineHeight+i.height}function qi(t,e,n){let i=ht(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class Ui extends Ni{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=a(t,Number.POSITIVE_INFINITY),e=a(e,Number.NEGATIVE_INFINITY),n=a(n,Number.POSITIVE_INFINITY),i=a(i,Number.NEGATIVE_INFINITY),{min:a(t,n),max:a(e,i),minDefined:s(t),maxDefined:s(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:a(n,a(i,n)),max:a(i,a(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_n(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?zi(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Ri(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(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(){d(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),d(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=d(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=$i(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let o,s,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Z(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),s=this.maxHeight-Bi(t.grid)-e.padding-Wi(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=U(Math.min(Math.asin(Z((c.highest.height+6)/o,-1,1)),Math.asin(Z(s/a,-1,1))-Math.asin(Z(d/a,-1,1)))),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const o=Wi(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=Bi(r)+o):(t.height=this.maxHeight,t.width=Bi(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),a=2*n.padding,l=q(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(s){const e=n.mirror?0:u*r.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:s}=this.options,a=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;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_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(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)i(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=zi(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:o,_longestTextCache:s}=this,a=[],l=[],c=Math.floor(e/$i(e,n));let u,d,p,f,g,m,v,y,b,x,w,_=0,C=0;for(u=0;u<e;u+=c){if(f=t[u].label,g=this._resolveTickFontOptions(u),o.font=m=g.string,v=s[m]=s[m]||{data:{},gc:[]},y=g.lineHeight,b=x=0,i(f)||r(f)){if(r(f))for(d=0,p=f.length;d<p;++d)w=f[d],i(w)||r(w)||(b=_e(o,v.data,v.gc,b,w),x+=y)}else b=_e(o,v.data,v.gc,b,f),x=y;a.push(b),l.push(x),_=Math.max(b,_),C=Math.max(x,C)}!function(t,e){h(t,t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}})}(s,e);const k=a.indexOf(_),S=l.indexOf(C),T=t=>({width:a[t]||0,height:l[t]||0});return{first:T(0),last:T(e-1),widest:T(k),highest:T(S),widths:a,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return J(this._alignToPixels?ke(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Cn(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Cn(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=q(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,s=r?r.widest.width+o:0,a=r?r.highest.height+o:0;return this.isHorizontal()?a*n>s*i?s/n:a/i:a*i<s*n?a/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:s,border:a}=i,c=r.offset,u=this.isHorizontal(),d=this.ticks.length+(c?1:0),h=Bi(r),p=[],f=a.setContext(this.getContext()),g=f.display?f.width:0,m=g/2,v=function(t){return ke(n,t,g)};let y,b,x,w,_,C,k,S,T,A,D,E;if("top"===s)y=v(this.bottom),C=this.bottom-h,S=y-m,A=v(t.top)+m,E=t.bottom;else if("bottom"===s)y=v(this.top),A=t.top,E=v(t.bottom)-m,C=y+m,S=this.top+h;else if("left"===s)y=v(this.right),_=this.right-h,k=y-m,T=v(t.left)+m,D=t.right;else if("right"===s)y=v(this.left),T=t.left,D=v(t.right)-m,_=y+m,k=this.left+h;else if("x"===e){if("center"===s)y=v((t.top+t.bottom)/2+.5);else if(o(s)){const t=Object.keys(s)[0],e=s[t];y=v(this.chart.scales[t].getPixelForValue(e))}A=t.top,E=t.bottom,C=y+m,S=C+h}else if("y"===e){if("center"===s)y=v((t.left+t.right)/2);else if(o(s)){const t=Object.keys(s)[0],e=s[t];y=v(this.chart.scales[t].getPixelForValue(e))}_=y-m,k=_-h,T=t.left,D=t.right}const M=l(i.ticks.maxTicksLimit,d),O=Math.max(1,Math.ceil(d/M));for(b=0;b<d;b+=O){const t=this.getContext(b),e=r.setContext(t),i=a.setContext(t),o=e.lineWidth,s=e.color,l=i.dash||[],d=i.dashOffset,h=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;x=Hi(this,b,c),void 0!==x&&(w=ke(n,x,o),u?_=k=T=D=w:C=S=A=E=w,p.push({tx1:_,ty1:C,tx2:k,ty2:S,x1:T,y1:A,x2:D,y2:E,width:o,color:s,borderDash:l,borderDashOffset:d,tickWidth:h,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=d,this._borderValue=y,p}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:s}=n,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:d,mirror:h}=s,p=Bi(n.grid),f=p+d,g=h?-d:f,m=-q(this.labelRotation),v=[];let y,b,x,w,_,C,k,S,T,A,D,E,M="middle";if("top"===i)C=this.bottom-g,k=this._getXAxisLabelAlignment();else if("bottom"===i)C=this.top+g,k=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(p);k=t.textAlign,_=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(p);k=t.textAlign,_=t.x}else if("x"===e){if("center"===i)C=(t.top+t.bottom)/2+f;else if(o(i)){const t=Object.keys(i)[0],e=i[t];C=this.chart.scales[t].getPixelForValue(e)+f}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)_=(t.left+t.right)/2-f;else if(o(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(p).textAlign}"y"===e&&("start"===c?M="top":"end"===c&&(M="bottom"));const O=this._getLabelSizes();for(y=0,b=l.length;y<b;++y){x=l[y],w=x.label;const t=s.setContext(this.getContext(y));S=this.getPixelForTick(y)+s.labelOffset,T=this._resolveTickFontOptions(y),A=T.lineHeight,D=r(w)?w.length:1;const e=D/2,n=t.color,o=t.textStrokeColor,c=t.textStrokeWidth;let d,p=k;if(a?(_=S,"inner"===k&&(p=y===b-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),E="top"===i?"near"===u||0!==m?-D*A+A/2:"center"===u?-O.highest.height/2-e*A+A:-O.highest.height+A/2:"near"===u||0!==m?A/2:"center"===u?O.highest.height/2-e*A:O.highest.height-D*A,h&&(E*=-1),0===m||t.showLabelBackdrop||(_+=A/2*Math.sin(m))):(C=S,E=(1-D)*A/2),t.showLabelBackdrop){const e=bn(t.backdropPadding),n=O.heights[y],i=O.widths[y];let r=E-e.top,o=0-e.left;switch(M){case"middle":r-=n/2;break;case"bottom":r-=n}switch(k){case"center":o-=i/2;break;case"right":o-=i;break;case"inner":y===b-1?o-=i:y>0&&(o-=i/2)}d={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}v.push({label:w,font:T,textOffset:E,options:{rotation:m,color:n,strokeColor:o,strokeWidth:c,textAlign:p,textBaseline:M,translation:[_,C],backdrop:d}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-q(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=ke(t,this.left,o)-o/2,c=ke(t,this.right,s)+s/2,u=d=a):(u=ke(t,this.top,o)-o/2,d=ke(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Ee(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;Ne(e,t.label,0,t.textOffset,i,n)}n&&Me(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const s=xn(n.font),a=bn(n.padding),l=n.align;let c=s.lineHeight/2;"bottom"===e||"center"===e||o(e)?(c+=a.bottom,r(n.text)&&(c+=s.lineHeight*(n.text.length-1))):c+=a.top;const{titleX:u,titleY:d,maxWidth:h,rotation:p}=function(t,e,n,i){const{top:r,left:s,bottom:a,right:l,chart:c}=t,{chartArea:u,scales:d}=c;let h,p,f,g=0;const m=a-r,v=l-s;if(t.isHorizontal()){if(p=pt(i,s,l),o(n)){const t=Object.keys(n)[0],i=n[t];f=d[t].getPixelForValue(i)+m-e}else f="center"===n?(u.bottom+u.top)/2+m-e:ji(t,n,e);h=l-s}else{if(o(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)-v+e}else p="center"===n?(u.left+u.right)/2-v+e:ji(t,n,e);f=pt(i,a,r),g="left"===n?-L:L}return{titleX:p,titleY:f,maxWidth:h,rotation:g}}(this,c,e,l);Ne(t,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:p,textAlign:qi(l,e,i),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=l(t.grid&&t.grid.z,-1),i=l(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Ui.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return xn(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Vi{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=v(Object.create(null),[n?ae.get(n):{},ae.get(e),t.defaults]);ae.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");ae.route(o,r,l,a)})}(e,t.defaultRoutes),t.descriptors&&ae.describe(e,t.descriptors)}(t,o,n),this.override&&ae.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in ae[i]&&(delete ae[i][n],this.override&&delete ie[n])}}var Yi=new class{constructor(){this.controllers=new Vi(Ii,"datasets",!0),this.elements=new Vi(Ni,"elements"),this.plugins=new Vi(Object,"plugins"),this.scales=new Vi(Ui,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):h(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=C(t);d(n["before"+i],[],n),e[t](n),d(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class Xi{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===d(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=l(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(Yi.plugins.items);for(let t=0;t<i.length;t++)n.push(Yi.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],s=t.getContext();for(const a of e){const e=a.id,l=Gi(i[e],r);null!==l&&o.push({plugin:a,options:Ki(t.config,{plugin:a,local:n[e]},l,s)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Gi(t,e){return e||!1!==t?!0===t?{}:t:null}function Ki(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Qi(t,e){const n=ae.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Zi(t){if("x"===t||"y"===t||"r"===t)return t}function Ji(t,...e){if(Zi(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&Zi(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function tr(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function er(t){const e=t.options||(t.options={});e.plugins=l(e.plugins,{}),e.scales=function(t,e){const n=ie[t.type]||{scales:{}},i=e.scales||{},r=Qi(t.type,e),s=Object.create(null);return Object.keys(i).forEach(e=>{const a=i[e];if(!o(a))return console.error("Invalid scale configuration for scale: "+e);if(a._proxy)return console.warn("Ignoring resolver passed as options for scale: "+e);const l=Ji(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(n.length)return tr(t,"x",n[0])||tr(t,"y",n[0])}return{}}(e,t),ae.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(l,r),u=n.scales||{};s[e]=y(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(n=>{const r=n.type||t.type,o=n.indexAxis||Qi(r,e),a=(ie[r]||{}).scales||{};Object.keys(a).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),r=n[e+"AxisID"]||e;s[r]=s[r]||Object.create(null),y(s[r],[{axis:e},i[r],a[t]])})}),Object.keys(s).forEach(t=>{const e=s[t];y(e,[ae.scales[e.type],ae.scale])}),s}(t,e)}function nr(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ir=new Map,rr=new Set;function or(t,e){let n=ir.get(t);return n||(n=e(),ir.set(t,n),rr.add(n)),n}const sr=(t,e,n)=>{const i=_(e,n);void 0!==i&&t.add(i)};class ar{constructor(t){this._config=function(t){return(t=t||{}).data=nr(t.data),er(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=nr(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),er(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return or(t,()=>[["datasets."+t,""]])}datasetAnimationScopeKeys(t,e){return or(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,"transitions."+e],["datasets."+t,""]])}datasetElementScopeKeys(t,e){return or(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,"datasets."+t,"elements."+e,""]])}pluginScopeKeys(t){const e=t.id;return or(`${this.type}-plugin-${e}`,()=>[["plugins."+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),s=o.get(e);if(s)return s;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>sr(a,t,e))),e.forEach(t=>sr(a,i,t)),e.forEach(t=>sr(a,ie[r]||{},t)),e.forEach(t=>sr(a,ae,t)),e.forEach(t=>sr(a,re,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),rr.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ie[e]||{},ae.datasets[e]||{},{type:e},ae,re]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=lr(this._resolverCache,t,i);let l=s;(function(t,e){const{isScriptable:n,isIndexable:i}=$e(t);for(const o of e){const e=n(o),s=i(o),a=(s||e)&&t[o];if(e&&(S(a)||cr(a))||s&&r(a))return!0}return!1})(s,e)&&(o.$shared=!1,l=je(s,n=S(n)?n():n,this.createResolver(t,n,a)));for(const t of e)o[t]=l[t];return o}createResolver(t,e,n=[""],i){const{resolver:r}=lr(this._resolverCache,t,n);return o(e)?je(r,e,void 0,i):r}}function lr(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:Fe(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(r,o)),o}const cr=t=>o(t)&&Object.getOwnPropertyNames(t).some(e=>S(t[e])),ur=["top","bottom","left","right","chartArea"];function dr(t,e){return"top"===t||"bottom"===t||-1===ur.indexOf(t)&&"x"===e}function hr(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function pr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),d(n&&n.onComplete,[t],e)}function fr(t){const e=t.chart,n=e.options.animation;d(n&&n.onProgress,[t],e)}function gr(t){return le()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const mr={},vr=t=>{const e=gr(t);return Object.values(mr).filter(t=>t.canvas===e).pop()};function yr(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}function br(t,e,n){return t.options.clip?t[n]:e[n]}class xr{static defaults=ae;static instances=mr;static overrides=ie;static registry=Yi;static version="4.4.8";static getChart=vr;static register(...t){Yi.add(...t),wr()}static unregister(...t){Yi.remove(...t),wr()}constructor(t,e){const i=this.config=new ar(e),r=gr(t),o=vr(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||vi(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=n(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,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 Xi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=dt(t=>this.update(t),s.resizeDelay||0),this._dataChanges=[],mr[this.id]=this,a&&l?(vt.listen(this,"complete",pr),vt.listen(this,"progress",fr),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:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:o}=this;return i(t)?e&&o?o:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Yi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ye(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Se(this.canvas,this.ctx),this}stop(){return vt.stop(this),this}resize(t,e){vt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ye(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),d(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){h(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let r=[];e&&(r=r.concat(Object.keys(e).map(t=>{const n=e[t],i=Ji(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}}))),h(r,e=>{const r=e.options,o=r.id,s=Ji(o,r),a=l(r.type,e.dtype);void 0!==r.position&&dr(r.position,s)===dr(e.dposition)||(r.position=e.dposition),i[o]=!0;let c=null;o in n&&n[o].type===a?c=n[o]:(c=new(Yi.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(r,t)}),h(i,(t,e)=>{t||delete n[e]}),h(n,t=>{Jn.configure(this,t,t.options),Jn.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(hr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||Qi(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Yi.getController(o),{datasetElementType:i,dataElementType:s}=ae.datasets[o];Object.assign(e,{dataElementType:Yi.getElement(s),datasetElementType:i&&Yi.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){h(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||h(r,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(hr("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){h(this.scales,t=>{Jn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);T(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)yr(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!T(i,n(t)))return;return Array.from(i).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Jn.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],h(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,S(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vt.has(this)?this.attached&&!vt.running(this)&&vt.start(this):(this.draw(),pr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:br(n,e,"left"),right:br(n,e,"right"),top:br(i,e,"top"),bottom:br(i,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&Ee(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&Me(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return De(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=Hn.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Cn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);k(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update(e=>e.datasetIndex===t?i:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),vt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Se(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete mr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};h(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){h(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},h(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!p(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,s=this._getActiveElements(t,i,n,o),a=A(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,d(r.onHover,[t,s,this],this),a&&d(r.onClick,[t,s,this],this));const c=!p(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function wr(){return h(xr.instances,t=>t._plugins.invalidate())}function _r(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Cr{static override(t){Object.assign(Cr.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return _r()}parse(){return _r()}format(){return _r()}add(){return _r()}diff(){return _r()}startOf(){return _r()}endOf(){return _r()}}var kr={_date:Cr};function Sr(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=lt(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,r,o,s,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(k(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),l();return a}function Tr(t,e,n,i){return r(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Ar(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(s[c],c),l.push(Tr(h,d,o,c));return l}function Dr(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Er(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[Mr(u,s,a,l)]=!0,r=c)),o[Mr(r,s,a,l)]=!0,t.borderSkipped=o}function Mr(t,e,n,i){var r,o,s;return i?(s=n,t=Or(t=(r=t)===(o=e)?s:r===s?o:r,n,e)):t=Or(t,e,n),t}function Or(t,e,n){return"start"===t?e:"end"===t?n:t}function Pr(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Lr extends Ii{static id="doughnut";static 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"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map((e,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:i,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let r,s,a=t=>+n[t];if(o(n[t])){const{key:t="value"}=this._parsing;a=e=>+_(n[e],t)}for(r=t,s=t+e;r<s;++r)i._parsed[r]=a(r)}}_getRotation(){return q(this.options.rotation-90)}_getCircumference(){return q(this.options.circumference)}_getRotationExtents(){let t=E,e=-E;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),o=i._getCircumference();t=Math.min(t,r),e=Math.max(e,r+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,r=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-o)/2,0),a=Math.min(c(this.options.cutout,s),1),l=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:g,offsetY:m}=function(t,e,n){let i=1,r=1,o=0,s=0;if(e<E){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),p=(t,e,i)=>Q(t,a,l,!0)?1:Math.max(e,e*n,i,i*n),f=(t,e,i)=>Q(t,a,l,!0)?-1:Math.min(e,e*n,i,i*n),g=p(0,c,d),m=p(L,u,h),v=f(D,c,d),y=f(D+L,u,h);i=(g-v)/2,r=(m-y)/2,o=-(g+v)/2,s=-(m+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}(h,d,a),v=(n.width-o)/p,y=(n.height-o)/f,b=Math.max(Math.min(v,y)/2,0),x=u(this.options.radius,b),w=(x-Math.max(x*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*l,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*r/E)}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,s=o.chartArea,a=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,u=r&&a.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:h,innerRadius:d};f&&(o.options=p||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,o,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?E*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=te(e._parsed[t],n.options.locale);return{label:i[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,o,s,a;if(!t)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,s=o.controller;break}if(!t)return 0;for(i=0,r=t.length;i<r;++i)a=s.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(l(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Ir extends Ii{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map((e,r)=>{const o=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:i,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=te(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:r}}parseObjectData(t,e,n,i){return Ke.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(i/2,0),o=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,s=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,u=a.getIndexAngle(0)-.5*D;let d,h=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,i,p);for(d=e;d<e+n;d++){const e=t[d];let n=h,f=h+this._computeAngle(d,i,p),g=o.getDataVisibility(d)?a.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=f,r&&(s.animateScale&&(g=0),s.animateRotate&&(n=f=u));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,e.active?"active":i)};this.updateElement(e,d,m,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?q(this.resolveDataElementOptions(t,e).angle||n):0}}var Nr=Object.freeze({__proto__:null,BarController:class extends Ii{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return Ar(t,e,n,i)}parseArrayData(t,e,n,i){return Ar(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?s:a,c="x"===o.axis?s:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(_(f,l),d),u.push(Tr(_(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,s=Dr(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const o="reset"===r,{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,r);for(let p=e;p<e+n;p++){const e=this.getParsed(p),n=o||i(e[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),f=this._calculateBarIndexPixels(p,u),g=(e._stacks||{})[a.axis],m={horizontal:c,base:n.base,enableBorderRadius:!g||Dr(e._custom)||s===g._top||s===g._bottom,x:c?n.head:f.center,y:c?f.center:n.head,height:c?f.size:Math.abs(n.size),width:c?Math.abs(n.size):f.size};h&&(m.options=d||this.resolveDataElementOptions(p,t[p].active?"active":r));const v=m.options||t[p].options;Er(m,v,g,s),Pr(m,v,u.ratio),this.updateElement(t[p],p,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[n.axis],c=t=>{const e=t._parsed.find(t=>t[n.axis]===l),r=e&&e[t.vScale.axis];if(i(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!c(n))&&((!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const s=t.barThickness;return{min:s||Sr(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,u=Dr(c);let d,h,p=l[e.axis],f=0,g=n?this.applyStack(e,l,n):p;g!==p&&(f=g-p,g=p),u&&(p=c.barStart,g=c.barEnd-c.barStart,0!==p&&F(p)!==F(c.barEnd)&&(f=0),f+=p);const m=i(o)||u?f:o;let v=e.getPixelForValue(m);if(d=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):v,h=d-v,Math.abs(h)<s){h=function(t,e,n){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,a)*s,p===a&&(v-=h/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),o=Math.min(t,i),c=Math.max(t,i);v=Math.max(Math.min(v,c),o),d=v+h,n&&!u&&(l._stacks[e.axis]._visualValues[r]=e.getValueForPixel(d)-e.getValueForPixel(v))}if(v===e.getPixelForValue(a)){const t=F(h)*e.getLineWidthForValue(a)/2;v+=t,h-=t}return{size:h,base:v,head:d,center:d+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,s=l(r.maxBarThickness,1/0);let a,c;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,r,n):function(t,e,n,r){const o=n.barThickness;let s,a;return i(o)?(s=e.min*n.categoryPercentage,a=n.barPercentage):(s=o*r,a=1),{chunk:s/r,ratio:a,start:e.pixels[t]-s/2}}(t,e,r,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*u+l.chunk/2,c=Math.min(s,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(s,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}},BubbleController:class extends Ii{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const r=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+n).radius;return r}parseArrayData(t,e,n,i){const r=super.parseArrayData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=l(i[2],this.resolveDataElementOptions(t+n).radius)}return r}parseObjectData(t,e,n,i){const r=super.parseObjectData(t,e,n,i);for(let t=0;t<r.length;t++){const i=e[n+t];r[t]._custom=l(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=e,o=this.getParsed(t),s=i.getLabelForValue(o.x),a=r.getLabelForValue(o.y),l=o._custom;return{label:n[t]||"",value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,i),c=o.axis,u=s.axis;for(let d=e;d<e+n;d++){const e=t[d],n=!r&&this.getParsed(d),h={},p=h[c]=r?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),f=h[u]=r?s.getBasePixel():s.getPixelForValue(n[u]);h.skip=isNaN(p)||isNaN(f),l&&(h.options=a||this.resolveDataElementOptions(d,e.active?"active":i),r&&(h.options.radius=0)),this.updateElement(e,d,h,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return"active"!==e&&(i.radius=0),i.radius+=l(n&&n._custom,r),i}},DoughnutController:Lr,LineController:class extends Ii{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:r}=e,o=this.chart._animationsDisabled;let{start:s,count:a}=gt(e,i,o);this._drawStart=s,this._drawCount=a,mt(e)&&(s=0,a=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(i,s,a,t)}updateElements(t,e,n,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r),h=s.axis,p=a.axis,{spanGaps:f,segment:g}=this.options,m=H(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===r,y=e+n,b=t.length;let x=e>0&&this.getParsed(e-1);for(let n=0;n<b;++n){const f=t[n],b=v?f:{};if(n<e||n>=y){b.skip=!0;continue}const w=this.getParsed(n),_=i(w[p]),C=b[h]=s.getPixelForValue(w[h],n),k=b[p]=o||_?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,w,l):w[p],n);b.skip=isNaN(C)||isNaN(k)||_,b.stop=n>0&&Math.abs(w[h]-x[h])>m,g&&(b.parsed=w,b.raw=c.data[n]),d&&(b.options=u||this.resolveDataElementOptions(n,f.active?"active":r)),v||this.updateElement(f,n,b,r),x=w}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Lr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Ir,RadarController:class extends Ii{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Ke.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],r=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const r=this._cachedMeta.rScale,o="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),a=r.getPointPositionForValue(s,this.getParsed(s).r),l=o?r.xCenter:a.x,c=o?r.yCenter:a.y,u={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,s,u,i)}}},ScatterController:class extends Ii{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:r}=e,o=this.getParsed(t),s=i.getLabelForValue(o.x),a=r.getLabelForValue(o.y);return{label:n[t]||"",value:"("+s+", "+a+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:r,count:o}=gt(e,n,i);if(this._drawStart=r,this._drawCount=o,mt(e)&&(r=0,o=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:o}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:s},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,r,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,r),d=this.getSharedOptions(u),h=this.includeOptions(r,d),p=s.axis,f=a.axis,{spanGaps:g,segment:m}=this.options,v=H(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||"none"===r;let b=e>0&&this.getParsed(e-1);for(let u=e;u<e+n;++u){const e=t[u],n=this.getParsed(u),g=y?e:{},x=i(n[f]),w=g[p]=s.getPixelForValue(n[p],u),_=g[f]=o||x?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,n,l):n[f],u);g.skip=isNaN(w)||isNaN(_)||x,g.stop=u>0&&Math.abs(n[p]-b[p])>v,m&&(g.parsed=n,g.raw=c.data[u]),h&&(g.options=d||this.resolveDataElementOptions(u,e.active?"active":r)),y||this.updateElement(e,u,g,r),b=n}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,r,o)/2}}});function Rr(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Fr(t,e,n,i,r,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let p=0;const f=r-l;if(i){const t=((u>0?u-i:0)+(d>0?d-i:0))/2;p=(f-(0!==t?f*t/(t+i):f))/2}const g=(f-Math.max(.001,f*d-n/D)/d)/2,m=l+g+p,v=r-g-p,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:w}=function(t,e,n,i){const r=mn(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(n-e)/2,s=Math.min(o,i*e/2),a=t=>{const e=(n-Math.min(o,t))*i/2;return Z(t,0,Math.min(o,e))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Z(r.innerStart,0,s),innerEnd:Z(r.innerEnd,0,s)}}(e,h,d,v-m),_=d-y,C=d-b,k=m+y/_,S=v-b/C,T=h+x,A=h+w,E=m+x/T,M=v-w/A;if(t.beginPath(),o){const e=(k+S)/2;if(t.arc(s,a,d,k,e),t.arc(s,a,d,e,S),b>0){const e=Rr(C,S,s,a);t.arc(e.x,e.y,b,S,v+L)}const n=Rr(A,v,s,a);if(t.lineTo(n.x,n.y),w>0){const e=Rr(A,M,s,a);t.arc(e.x,e.y,w,v+L,M+Math.PI)}const i=(v-w/h+(m+x/h))/2;if(t.arc(s,a,h,v-w/h,i,!0),t.arc(s,a,h,i,m+x/h,!0),x>0){const e=Rr(T,E,s,a);t.arc(e.x,e.y,x,E+Math.PI,m-L)}const r=Rr(_,m,s,a);if(t.lineTo(r.x,r.y),y>0){const e=Rr(_,k,s,a);t.arc(e.x,e.y,y,m-L,k)}}else{t.moveTo(s,a);const e=Math.cos(k)*d+s,n=Math.sin(k)*d+a;t.lineTo(e,n);const i=Math.cos(S)*d+s,r=Math.sin(S)*d+a;t.lineTo(i,r)}t.closePath()}function jr(t,e,n=e){t.lineCap=l(n.borderCapStyle,e.borderCapStyle),t.setLineDash(l(n.borderDash,e.borderDash)),t.lineDashOffset=l(n.borderDashOffset,e.borderDashOffset),t.lineJoin=l(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=l(n.borderWidth,e.borderWidth),t.strokeStyle=l(n.borderColor,e.borderColor)}function $r(t,e,n){t.lineTo(n.x,n.y)}function zr(t,e,n={}){const i=t.length,{start:r=0,end:o=i-1}=n,{start:s,end:a}=e,l=Math.max(r,s),c=Math.min(o,a),u=r<s&&o<s||r>a&&o>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!u?i+c-l:c-l}}function Hr(t,e,n,i){const{points:r,options:o}=e,{count:s,start:a,loop:l,ilen:c}=zr(r,n,i),u=function(t){return t.stepped?Oe:t.tension||"monotone"===t.cubicInterpolationMode?Pe:$r}(o);let d,h,p,{move:f=!0,reverse:g}=i||{};for(d=0;d<=c;++d)h=r[(a+(g?c-d:d))%s],h.skip||(f?(t.moveTo(h.x,h.y),f=!1):u(t,p,h,g,o.stepped),p=h);return l&&(h=r[(a+(g?c:0))%s],u(t,p,h,g,o.stepped)),!!l}function Br(t,e,n,i){const r=e.points,{count:o,start:s,ilen:a}=zr(r,n,i),{move:l=!0,reverse:c}=i||{};let u,d,h,p,f,g,m=0,v=0;const y=t=>(s+(c?a-t:t))%o,b=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(d=r[y(0)],t.moveTo(d.x,d.y)),u=0;u<=a;++u){if(d=r[y(u)],d.skip)continue;const e=d.x,n=d.y,i=0|e;i===h?(n<p?p=n:n>f&&(f=n),m=(v*m+e)/++v):(b(),t.lineTo(e,n),h=i,v=0,p=f=n),g=n}b()}function Wr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?Hr:Br}const qr="function"==typeof Path2D;class Ur extends Ni{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){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,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;rn(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=On(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],r=this.points,o=Mn(this,{property:e,start:i,end:i});if(!o.length)return;const s=[],a=function(t){return t.stepped?un:t.tension||"monotone"===t.cubicInterpolationMode?dn:cn}(n);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:u}=o[l],d=r[c],h=r[u];if(d===h){s.push(d);continue}const p=a(d,h,Math.abs((i-d[e])/(h[e]-d[e])),n.stepped);p[e]=t[e],s.push(p)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return Wr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,r=Wr(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)o&=r(t,this,s,{start:e,end:e+n-1});return!!o}draw(t,e,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),function(t,e,n,i){qr&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),jr(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:o}=e,s=Wr(e);for(const a of r)jr(t,o,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Vr(t,e,n,i){const r=t.options,{[n]:o}=t.getProps([n],i);return Math.abs(e-o)<r.radius+r.hitRadius}function Yr(t,e){const{x:n,y:i,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Xr(t,e,n,i){return t?0:Z(e,n,i)}function Gr(t){const e=Yr(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=vn(i);return{t:Xr(r.top,o.top,0,n),r:Xr(r.right,o.right,0,e),b:Xr(r.bottom,o.bottom,0,n),l:Xr(r.left,o.left,0,e)}}(t,n/2,i/2),s=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,s=yn(r),a=Math.min(e,n),l=t.borderSkipped,c=i||o(r);return{topLeft:Xr(!c||l.top||l.left,s.topLeft,0,a),topRight:Xr(!c||l.top||l.right,s.topRight,0,a),bottomLeft:Xr(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:Xr(!c||l.bottom||l.right,s.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:s},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}function Kr(t,e,n,i){const r=null===e,o=null===n,s=t&&!(r&&o)&&Yr(t,i);return s&&(r||tt(e,s.left,s.right))&&(o||tt(n,s.top,s.bottom))}function Qr(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zr(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}var Jr=Object.freeze({__proto__:null,ArcElement:class extends Ni{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:r,distance:o}=Y(i,{x:t,y:e}),{startAngle:s,endAngle:a,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=(this.options.spacing+this.options.borderWidth)/2,p=l(d,a-s),f=Q(r,s,a)&&s!==a,g=p>=E||f,m=tt(o,c+h,u+h);return g&&m}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(i+r)/2,u=(o+s+l+a)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/4,r=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>E?Math.floor(n/E):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const a=i*(1-Math.sin(Math.min(D,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,i,r){const{fullCircles:o,startAngle:s,circumference:a}=e;let l=e.endAngle;if(o){Fr(t,e,n,i,l,r);for(let e=0;e<o;++e)t.fill();isNaN(a)||(l=s+(a%E||E))}Fr(t,e,n,i,l,r),t.fill()}(t,this,a,r,o),function(t,e,n,i,r){const{fullCircles:o,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=h,p?(t.lineWidth=2*c,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let f=e.endAngle;if(o){Fr(t,e,n,i,f,r);for(let e=0;e<o;++e)t.stroke();isNaN(a)||(f=s+(a%E||E))}p&&function(t,e,n){const{startAngle:i,pixelMargin:r,x:o,y:s,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(o,s,a,i-c,n+c),l>r?(c=r/l,t.arc(o,s,l,n+c,i-c,!0)):t.arc(o,s,r,n+L,i-L),t.closePath(),t.clip()}(t,e,f),o||(Fr(t,e,n,i,f,r),t.stroke())}(t,this,a,r,o),t.restore()}},BarElement:class extends Ni{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){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,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=Gr(this),s=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Re:Qr;var a;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),s(t,Zr(o,e,r)),t.clip(),s(t,Zr(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Zr(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Kr(this,t,e,n)}inXRange(t,e){return Kr(this,t,null,e)}inYRange(t,e){return Kr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:Ur,PointElement:class extends Ni{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Vr(this,t,"x",e)}inYRange(t,e){return Vr(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!De(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Te(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});function to(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function eo(t,e,{horizontal:n,minRotation:i}){const r=q(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class no extends Ui{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return i(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,s=t=>r=n?r:t;if(t){const t=F(i),e=F(r);t<0&&e<0?s(0):t>0&&e>0&&o(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);s(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(t,e){const n=[],{bounds:r,step:o,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,p=o||1,f=u-1,{min:g,max:m}=e,v=!i(s),y=!i(a),b=!i(c),x=(m-g)/(d+1);let w,_,C,k,S=$((m-g)/f/p)*p;if(S<1e-14&&!v&&!y)return[{value:g},{value:m}];k=Math.ceil(m/S)-Math.floor(g/S),k>f&&(S=$(k*S/f/p)*p),i(l)||(w=Math.pow(10,l),S=Math.ceil(S*w)/w),"ticks"===r?(_=Math.floor(g/S)*S,C=Math.ceil(m/S)*S):(_=g,C=m),v&&y&&o&&B((a-s)/o,S/1e3)?(k=Math.round(Math.min((a-s)/S,u)),S=(a-s)/k,_=s,C=a):b?(_=v?s:_,C=y?a:C,k=c-1,S=(C-_)/k):(k=(C-_)/S,k=j(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const T=Math.max(V(S),V(_));w=Math.pow(10,i(l)?T:l),_=Math.round(_*w)/w,C=Math.round(C*w)/w;let A=0;for(v&&(h&&_!==s?(n.push({value:s}),_<s&&A++,j(Math.round((_+A*S)*w)/w,s,eo(s,x,t))&&A++):_<s&&A++);A<k;++A){const t=Math.round((_+A*S)*w)/w;if(y&&t>a)break;n.push({value:t})}return y&&h&&C!==a?n.length&&j(n[n.length-1].value,a,eo(a,x,t))?n[n.length-1].value=a:n.push({value:a}):y&&C!==a||n.push({value:C}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&W(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return te(t,this.chart.options.locale,this.options.ticks.format)}}class io extends no{static id="linear";static defaults={ticks:{callback:ne.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=s(t)?t:0,this.max=s(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=q(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const ro=t=>Math.floor(R(t)),oo=(t,e)=>Math.pow(10,ro(t)+e);function so(t){return 1==t/Math.pow(10,ro(t))}function ao(t,e,n){const i=Math.pow(10,n),r=Math.floor(t/i);return Math.ceil(e/i)-r}class lo extends Ui{static id="logarithmic";static defaults={ticks:{callback:ne.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=no.prototype.parse.apply(this,[t,e]);if(0!==n)return s(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=s(t)?Math.max(0,t):null,this.max=s(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!s(this._userMin)&&(this.min=t===oo(this.min,0)?oo(this.min,-1):oo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const r=e=>n=t?n:e,o=t=>i=e?i:t;n===i&&(n<=0?(r(1),o(10)):(r(oo(n,-1)),o(oo(i,1)))),n<=0&&r(oo(i,-1)),i<=0&&o(oo(n,1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,{min:e,max:n}){e=a(t.min,e);const i=[],r=ro(e);let o=function(t,e){let n=ro(e-t);for(;ao(t,e,n)>10;)n++;for(;ao(t,e,n)<10;)n--;return Math.min(n,ro(t))}(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=r>o?Math.pow(10,r):0,u=Math.round((e-c)*s)/s,d=Math.floor((e-c)/l/10)*l*10;let h=Math.floor((u-d)/Math.pow(10,o)),p=a(t.min,Math.round((c+d+h*Math.pow(10,o))*s)/s);for(;p<n;)i.push({value:p,major:so(p),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((c+d+h*Math.pow(10,o))*s)/s;const f=a(t.max,p);return i.push({value:f,major:so(f),significand:h}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&W(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":te(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=R(t),this._valueRange=R(this.max)-R(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(R(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function co(t){const e=t.ticks;if(e.display&&t.display){const t=bn(e.backdropPadding);return l(e.font&&e.font.size,ae.font.size)+t.height}return 0}function uo(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function ho(t,e,n,i,r){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;i.start<e.l?(a=(e.l-i.start)/o,t.l=Math.min(t.l,e.l-a)):i.end>e.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),r.start<e.t?(l=(e.t-r.start)/s,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function po(t,e,n){const i=t.drawingArea,{extra:r,additionalAngle:o,padding:s,size:a}=n,l=t.getPointPosition(e,i+r+s,o),c=Math.round(U(K(l.angle+L))),u=function(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}(l.y,a.h,c),d=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),h=function(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+a.w,bottom:u+a.h}}function fo(t,e){if(!e)return!0;const{left:n,top:i,right:r,bottom:o}=t;return!(De({x:n,y:i},e)||De({x:n,y:o},e)||De({x:r,y:i},e)||De({x:r,y:o},e))}function go(t,e,n){const{left:r,top:o,right:s,bottom:a}=n,{backdropColor:l}=e;if(!i(l)){const n=yn(e.borderRadius),i=bn(e.backdropPadding);t.fillStyle=l;const c=r-i.left,u=o-i.top,d=s-r+i.width,h=a-o+i.height;Object.values(n).some(t=>0!==t)?(t.beginPath(),Re(t,{x:c,y:u,w:d,h:h,radius:n}),t.fill()):t.fillRect(c,u,d,h)}}function mo(t,e,n,i){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,E);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let o=1;o<i;o++)n=t.getPointPosition(o,e),r.lineTo(n.x,n.y)}}class vo extends no{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ne.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=bn(co(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=s(t)&&!isNaN(t)?t:0,this.max=s(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/co(this.options))}generateTickLabels(t){no.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=d(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?D/s:0;for(let h=0;h<s;h++){const s=a.setContext(t.getPointLabelContext(h));o[h]=s.padding;const p=t.getPointPosition(h,t.drawingArea+o[h],l),f=xn(s.font),g=(c=t.ctx,u=f,d=r(d=t._pointLabels[h])?d:[d],{w:Ce(c,u.string,d),h:d.length*u.lineHeight});i[h]=g;const m=K(t.getIndexAngle(h)+l),v=Math.round(U(m));ho(n,e,m,uo(v,p.x,g.w,0,180),uo(v,p.y,g.h,90,270))}var c,u,d;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],r=t._pointLabels.length,o=t.options,{centerPointLabels:s,display:a}=o.pointLabels,l={extra:co(o)/2,additionalAngle:s?D/r:0};let c;for(let o=0;o<r;o++){l.padding=n[o],l.size=e[o];const r=po(t,o,l);i.push(r),"auto"===a&&(r.visible=fo(r,c),r.visible&&(c=r))}return i}(t,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return K(t*(E/(this._pointLabels.length||1))+q(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(i(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(i(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Cn(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-L+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),mo(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i,border:r}=e,o=this._pointLabels.length;let s,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let r=e-1;r>=0;r--){const e=t._pointLabelItems[r];if(!e.visible)continue;const o=i.setContext(t.getPointLabelContext(r));go(n,o,e);const s=xn(o.font),{x:a,y:l,textAlign:c}=e;Ne(n,t._pointLabels[r],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e||0===e&&this.min<0){a=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),s=i.setContext(n),l=r.setContext(n);!function(t,e,n,i,r){const o=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!i||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(r.dash||[]),o.lineDashOffset=r.dashOffset,o.beginPath(),mo(t,n,s,i),o.closePath(),o.stroke(),o.restore())}(this,s,a,o,l)}}),n.display){for(t.save(),s=o-1;s>=0;s--){const i=n.setContext(this.getPointLabelContext(s)),{color:r,lineWidth:o}=i;o&&r&&(t.lineWidth=o,t.strokeStyle=r,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let r,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,s)=>{if(0===s&&this.min>=0&&!e.reverse)return;const a=n.setContext(this.getContext(s)),l=xn(a.font);if(r=this.getDistanceFromCenterForValue(this.ticks[s].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(i.label).width,t.fillStyle=a.backdropColor;const e=bn(a.backdropPadding);t.fillRect(-o/2-e.left,-r-l.size/2-e.top,o+e.width,l.size+e.height)}Ne(t,i.label,0,-r,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})}),t.restore()}drawTitle(){}}const yo={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}},bo=Object.keys(yo);function xo(t,e){return t-e}function wo(t,e){if(i(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:a}=t._parseOpts;let l=e;return"function"==typeof r&&(l=r(l)),s(l)||(l="string"==typeof r?n.parse(l,r):n.parse(l)),null===l?null:(o&&(l="week"!==o||!H(a)&&!0!==a?n.startOf(l,o):n.startOf(l,"isoWeek",a)),+l)}function _o(t,e,n,i){const r=bo.length;for(let o=bo.indexOf(t);o<r-1;++o){const t=yo[bo[o]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=i)return bo[o]}return bo[r-1]}function Co(t,e,n){if(n){if(n.length){const{lo:i,hi:r}=et(n,e);t[n[i]>=e?n[i]:n[r]]=!0}}else t[e]=!0}function ko(t,e,n){const i=[],r={},o=e.length;let s,a;for(s=0;s<o;++s)a=e[s],r[a]=s,i.push({value:a,major:!1});return 0!==o&&n?function(t,e,n,i){const r=t._adapter,o=+r.startOf(e[0].value,i),s=e[e.length-1].value;let a,l;for(a=o;a<=s;a=+r.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}(t,i,r,n):i}class So extends Ui{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),i=this._adapter=new kr._date(t.adapters.date);i.init(e),y(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:wo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function l(t){o||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(r=Math.max(r,t.max))}o&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),i=s(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),r=s(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=rt(i,r,this.max);return this._unit=e.unit||(n.autoSkip?_o(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,i,r){for(let o=bo.length-1;o>=bo.indexOf(n);o--){const n=bo[o];if(yo[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return bo[n?bo.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=bo.indexOf(t)+1,n=bo.length;e<n;++e)if(yo[bo[e]].common)return bo[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&o.reverse(),ko(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,n,i=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;i=Z(i,0,o),r=Z(r,0,o),this._offsets={start:i,end:r,factor:1/(i+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,r=i.time,o=r.unit||_o(r.minUnit,e,n,this._getLabelCapacity(e)),s=l(i.ticks.stepSize,1),a="week"===o&&r.isoWeekday,c=H(a)||!0===a,u={};let d,h,p=e;if(c&&(p=+t.startOf(p,"isoWeek",a)),p=+t.startOf(p,c?"day":o),t.diff(n,e,o)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+o);const f="data"===i.ticks.source&&this.getDataTimestamps();for(d=p,h=0;d<n;d=+t.add(d,s,o),h++)Co(u,d,f);return d!==n&&"ticks"!==i.bounds&&1!==h||Co(u,d,f),Object.keys(u).sort(xo).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,i=this._unit,r=e||n[i];return this._adapter.format(t,r)}_tickFormatFunction(t,e,n,i){const r=this.options,o=r.ticks.callback;if(o)return d(o,[t,e,n],this);const s=r.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&s[a],u=l&&s[l],h=n[e],p=l&&u&&h&&h.major;return this._adapter.format(t,i||(p?u:c))}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=q(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*r+s*o,h:n*o+s*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,ko(this,[t],this._majorUnit),i),o=this._getLabelSize(r),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(wo(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lt(t.sort(xo))}}function To(t,e,n){let i,r,o,s,a=0,l=t.length-1;n?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=nt(t,"pos",e)),({pos:i,time:o}=t[a]),({pos:r,time:s}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=nt(t,"time",e)),({time:i,pos:o}=t[a]),({time:r,pos:s}=t[l]));const c=r-i;return c?o+(s-o)*(e-i)/c:o}var Ao=Object.freeze({__proto__:null,CategoryScale:class extends Ui{static id="category";static defaults={ticks:{callback:to}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(i(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Z(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,l(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return to.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:io,LogarithmicScale:lo,RadialLinearScale:vo,TimeScale:So,TimeSeriesScale:class extends So{static id="timeseries";static defaults=So.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=To(e,this.min),this._tableRange=To(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let o,s,a,l,c;for(o=0,s=t.length;o<s;++o)l=t[o],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,s=i.length;o<s;++o)c=i[o+1],a=i[o-1],l=i[o],Math.round((c+a)/2)!==l&&r.push({time:l,pos:o/(s-1)});return r}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort((t,e)=>t-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(To(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return To(this._table,n*this._tableRange+this._minPos,!0)}}});const Do=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Eo=Do.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Mo(t){return Do[t%Do.length]}function Oo(t){return Eo[t%Eo.length]}function Po(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Lo={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:i},options:r}=t.config,{elements:o}=r,s=Po(i)||(a=r)&&(a.borderColor||a.backgroundColor)||o&&Po(o)||"rgba(0,0,0,0.1)"!==ae.borderColor||"rgba(0,0,0,0.1)"!==ae.backgroundColor;var a;if(!n.forceOverride&&s)return;const l=function(t){let e=0;return(n,i)=>{const r=t.getDatasetMeta(i).controller;r instanceof Lr?e=function(t,e){return t.backgroundColor=t.data.map(()=>Mo(e++)),e}(n,e):r instanceof Ir?e=function(t,e){return t.backgroundColor=t.data.map(()=>Oo(e++)),e}(n,e):r&&(e=function(t,e){return t.borderColor=Mo(e),t.backgroundColor=Oo(e),++e}(n,e))}}(t);i.forEach(l)}};function Io(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function No(t){t.data.datasets.forEach(t=>{Io(t)})}var Ro={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void No(t);const r=t.width;t.data.datasets.forEach((e,o)=>{const{_data:s,indexAxis:a}=e,l=t.getDatasetMeta(o),c=s||e.data;if("y"===wn([a,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(t.options.parsing)return;let d,{start:h,count:p}=function(t,e){const n=e.length;let i,r=0;const{iScale:o}=t,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Z(nt(e,o.axis,s).lo,0,n-1)),i=c?Z(nt(e,o.axis,a).hi+1,r,n)-r:n-r,{start:r,count:i}}(l,c);if(p<=(n.threshold||4*r))Io(e);else{switch(i(s)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":d=function(t,e,n,i,r){const o=r.samples||i;if(o>=n)return t.slice(e,e+n);const s=[],a=(n-2)/(o-2);let l=0;const c=e+n-1;let u,d,h,p,f,g=e;for(s[l++]=t[g],u=0;u<o-2;u++){let i,r=0,o=0;const c=Math.floor((u+1)*a)+1+e,m=Math.min(Math.floor((u+2)*a)+1,n)+e,v=m-c;for(i=c;i<m;i++)r+=t[i].x,o+=t[i].y;r/=v,o/=v;const y=Math.floor(u*a)+1+e,b=Math.min(Math.floor((u+1)*a)+1,n)+e,{x:x,y:w}=t[g];for(h=p=-1,i=y;i<b;i++)p=.5*Math.abs((x-r)*(t[i].y-w)-(x-t[i].x)*(o-w)),p>h&&(h=p,d=t[i],f=i);s[l++]=d,g=f}return s[l++]=t[c],s}(c,h,p,r,n);break;case"min-max":d=function(t,e,n,r){let o,s,a,l,c,u,d,h,p,f,g=0,m=0;const v=[],y=e+n-1,b=t[e].x,x=t[y].x-b;for(o=e;o<e+n;++o){s=t[o],a=(s.x-b)/x*r,l=s.y;const e=0|a;if(e===c)l<p?(p=l,u=o):l>f&&(f=l,d=o),g=(m*g+s.x)/++m;else{const n=o-1;if(!i(u)&&!i(d)){const e=Math.min(u,d),i=Math.max(u,d);e!==h&&e!==n&&v.push({...t[e],x:g}),i!==h&&i!==n&&v.push({...t[i],x:g})}o>0&&n!==h&&v.push(t[n]),v.push(s),c=e,m=0,p=f=l,u=d=h=o}}return v}(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=d}})},destroy(t){No(t)}};function Fo(t,e,n,i){if(i)return;let r=e[t],o=n[t];return"angle"===t&&(r=K(r),o=K(o)),{property:t,start:r,end:o}}function jo(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function $o(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function zo(t,e){let n=[],i=!1;return r(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,o=[];return e.segments.forEach(({start:t,end:e})=>{e=jo(t,e,r);const s=r[t],a=r[e];null!==i?(o.push({x:s.x,y:i}),o.push({x:a.x,y:i})):null!==n&&(o.push({x:n,y:s.y}),o.push({x:n,y:a.y}))}),o}(t,e),n.length?new Ur({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function Ho(t){return t&&!1!==t.fill}function Bo(t,e,n){let i=t[e].fill;const r=[e];let o;if(!n)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!s(i))return i;if(o=t[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function Wo(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=l(n&&n.target,n);return void 0===i&&(i=!!e.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(o(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return s(r)&&Math.floor(r)===r?function(t,e,n,i){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=i)&&n}(i[0],e,r,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function qo(t,e,n){const i=[];for(let r=0;r<n.length;r++){const o=n[r],{first:s,last:a,point:l}=Uo(o,e,"x");if(!(!l||s&&a))if(s)i.unshift(l);else if(t.push(l),!a)break}t.push(...i)}function Uo(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const r=i[n],o=t.segments,s=t.points;let a=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],i=s[e.start][n],c=s[e.end][n];if(tt(r,i,c)){a=r===i,l=r===c;break}}return{first:a,last:l,point:i}}class Vo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:r,radius:o}=this;return e=e||{start:0,end:E},t.arc(i,r,o,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,r=t.angle;return{x:e+Math.cos(r)*i,y:n+Math.sin(r)*i,angle:r}}}function Yo(t){const{chart:e,fill:n,line:i}=t;if(s(n))return function(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,r=[],o=i.segments,s=i.points,a=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const r=i[t];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}(e,n);a.push(zo({x:null,y:e.bottom},i));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)qo(r,s[t],a)}return new Ur({points:r,options:{}})}(t);if("shape"===n)return!0;const r=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:n}=t,i=e.options,r=e.getLabels().length,s=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:o(t)?t.value:e.getBaseValue(),i}(n,e,s),l=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,s);return new Vo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<r;++t)l.push(e.getPointPositionForValue(t,a));return l}(t):function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:o(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(s(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return r instanceof Vo?r:zo(r,i)}function Xo(t,e,n){const i=Yo(e),{line:r,scale:o,axis:s}=e,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};i&&r.points.length&&(Ee(t,n),function(t,e){const{line:n,target:i,above:r,below:o,area:s,scale:a}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&o!==r&&(Go(t,i,s.top),Ko(t,{line:n,target:i,color:r,scale:a,property:l}),t.restore(),t.save(),Go(t,i,s.bottom)),Ko(t,{line:n,target:i,color:o,scale:a,property:l}),t.restore()}(t,{line:r,target:i,above:u,below:d,area:n,scale:o,axis:s}),Me(t))}function Go(t,e,n){const{segments:i,points:r}=e;let o=!0,s=!1;t.beginPath();for(const a of i){const{start:i,end:l}=a,c=r[i],u=r[jo(i,l,r)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ko(t,e){const{line:n,target:i,property:r,color:o,scale:s}=e,a=function(t,e,n){const i=t.segments,r=t.points,o=e.points,s=[];for(const t of i){let{start:i,end:a}=t;a=jo(i,a,r);const l=Fo(n,r[i],r[a],t.loop);if(!e.segments){s.push({source:t,target:l,start:r[i],end:r[a]});continue}const c=Mn(e,l);for(const e of c){const i=Fo(n,o[e.start],o[e.end],e.loop),a=En(t,r,i);for(const t of a)s.push({source:t,target:e,start:{[n]:$o(l,i,"start",Math.max)},end:{[n]:$o(l,i,"end",Math.min)}})}}return s}(n,i,r);for(const{source:e,target:l,start:c,end:u}of a){const{style:{backgroundColor:a=o}={}}=e,d=!0!==i;t.save(),t.fillStyle=a,Qo(t,s,d&&Fo(r,c,u)),t.beginPath();const h=!!n.pathSegment(t,e);let p;if(d){h?t.closePath():Zo(t,i,u,r);const e=!!i.pathSegment(t,l,{move:h,reverse:!0});p=h&&e,p||Zo(t,i,c,r)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function Qo(t,e,n){const{top:i,bottom:r}=e.chart.chartArea,{property:o,start:s,end:a}=n||{};"x"===o&&(t.beginPath(),t.rect(s,i,a-s,r-i),t.clip())}function Zo(t,e,n,i){const r=e.interpolate(n,i);r&&t.lineTo(r.x,r.y)}var Jo={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,r=[];let o,s,a,l;for(s=0;s<i;++s)o=t.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Ur&&(l={visible:t.isDatasetVisible(s),index:s,fill:Wo(a,s,i),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,r.push(l);for(s=0;s<i;++s)l=r[s],l&&!1!==l.fill&&(l.fill=Bo(r,s,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,r=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&n.fill&&Xo(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;Ho(n)&&Xo(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;Ho(i)&&"beforeDatasetDraw"===n.drawTime&&Xo(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ts=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class es extends Ni{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,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 t=this.options.labels||{};let e=d(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=xn(n.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:a}=ts(n,r);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,r,s,a)+10):(c=this.maxHeight,l=this._fitCols(o,i,s,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let u=t;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach((t,p)=>{const f=n+e/2+r.measureText(t.text).width;(0===p||l[l.length-1]+f+2*s>o)&&(u+=c,l[l.length-(p>0?0:1)]=0,h+=c,d++),a[p]={left:0,top:h,row:d,width:f,height:i},l[l.length-1]+=f+s}),u}_fitCols(t,e,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let u=s,d=0,h=0,p=0,f=0;return this.legendItems.forEach((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,i,r){return{itemWidth:function(t,e,n,i){let r=t.text;return r&&"string"!=typeof r&&(r=r.reduce((t,e)=>t.length>e.length?t:e)),e+n.size/2+i.measureText(r).width}(i,t,e,n),itemHeight:function(t,e,n){let i=t;return"string"!=typeof e.text&&(i=ns(e,n)),i}(r,i,e.lineHeight)}}(n,e,r,t,i);o>0&&h+m+2*s>c&&(u+=d+s,l.push({width:d,height:h}),p+=d+s,f++,d=h=0),a[o]={left:p,top:h,col:f,width:g,height:m},d=Math.max(d,g),h+=m+s}),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:r}}=this,o=kn(r,this.left,this.width);if(this.isHorizontal()){let r=0,s=pt(n,this.left+i,this.right-this.lineWidths[r]);for(const a of e)r!==a.row&&(r=a.row,s=pt(n,this.left+i,this.right-this.lineWidths[r])),a.top+=this.top+t+i,a.left=o.leftForLtr(o.x(s),a.width),s+=a.width+i}else{let r=0,s=pt(n,this.top+t+i,this.bottom-this.columnSizes[r].height);for(const a of e)a.col!==r&&(r=a.col,s=pt(n,this.top+t+i,this.bottom-this.columnSizes[r].height)),a.top=s,a.left+=this.left+i,a.left=o.leftForLtr(o.x(a.left),a.width),s+=a.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ee(t,this),this._draw(),Me(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:r,labels:o}=t,s=ae.color,a=kn(t.rtl,this.left,this.width),c=xn(o.font),{padding:u}=o,d=c.size,h=d/2;let p;this.drawTitle(),i.textAlign=a.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:f,boxHeight:g,itemHeight:m}=ts(o,d),v=this.isHorizontal(),y=this._computeTitleHeight();p=v?{x:pt(r,this.left+u,this.right-n[0]),y:this.top+u+y,line:0}:{x:this.left+u,y:pt(r,this.top+y+u,this.bottom-e[0].height),line:0},Sn(this.ctx,t.textDirection);const b=m+u;this.legendItems.forEach((x,w)=>{i.strokeStyle=x.fontColor,i.fillStyle=x.fontColor;const _=i.measureText(x.text).width,C=a.textAlign(x.textAlign||(x.textAlign=o.textAlign)),k=f+h+_;let S=p.x,T=p.y;if(a.setWidth(this.width),v?w>0&&S+k+u>this.right&&(T=p.y+=b,p.line++,S=p.x=pt(r,this.left+u,this.right-n[p.line])):w>0&&T+b>this.bottom&&(S=p.x=S+e[p.line].width+u,p.line++,T=p.y=pt(r,this.top+y+u,this.bottom-e[p.line].height)),function(t,e,n){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;i.save();const r=l(n.lineWidth,1);if(i.fillStyle=l(n.fillStyle,s),i.lineCap=l(n.lineCap,"butt"),i.lineDashOffset=l(n.lineDashOffset,0),i.lineJoin=l(n.lineJoin,"miter"),i.lineWidth=r,i.strokeStyle=l(n.strokeStyle,s),i.setLineDash(l(n.lineDash,[])),o.usePointStyle){const s={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=a.xPlus(t,f/2);Ae(i,s,l,e+h,o.pointStyleWidth&&f)}else{const o=e+Math.max((d-g)/2,0),s=a.leftForLtr(t,f),l=yn(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?Re(i,{x:s,y:o,w:f,h:g,radius:l}):i.rect(s,o,f,g),i.fill(),0!==r&&i.stroke()}i.restore()}(a.x(S),T,x),S=ft(C,S+f+h,v?S+k:this.right,t.rtl),function(t,e,n){Ne(i,n.text,t,e+m/2,c,{strikethrough:n.hidden,textAlign:a.textAlign(n.textAlign)})}(a.x(S),T,x),v)p.x+=k+u;else if("string"!=typeof x.text){const t=c.lineHeight;p.y+=ns(x,t)+u}else p.y+=b}),Tn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=xn(e.font),i=bn(e.padding);if(!e.display)return;const r=kn(t.rtl,this.left,this.width),o=this.ctx,s=e.position,a=n.size/2,l=i.top+a;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=pt(t.align,u,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+pt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=pt(s,u,u+d);o.textAlign=r.textAlign(ht(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,Ne(o,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=xn(t.font),n=bn(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,r;if(tt(t,this.left,this.right)&&tt(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],tt(t,i.left,i.left+i.width)&&tt(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,s=(r=n,null!==(i=o)&&null!==r&&i.datasetIndex===r.datasetIndex&&i.index===r.index);o&&!s&&d(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!s&&d(e.onHover,[t,n,this],this)}else n&&d(e.onClick,[t,n,this],this);var i,r}}function ns(t,e){return e*(t.text?t.text.length:0)}var is={id:"legend",_element:es,start(t,e,n){const i=t.legend=new es({ctx:t.ctx,options:n,chart:t});Jn.configure(t,i,n),Jn.addBox(t,i)},stop(t){Jn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Jn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(n?0:void 0),c=bn(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:s&&(a||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class rs extends Ni{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=r(n.text)?n.text.length:1;this._padding=bn(n.padding);const o=i*xn(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:r,options:o}=this,s=o.align;let a,l,c,u=0;return this.isHorizontal()?(l=pt(s,n,r),c=e+t,a=r-n):("left"===o.position?(l=n+t,c=pt(s,i,e),u=-.5*D):(l=r-t,c=pt(s,e,i),u=.5*D),a=i-e),{titleX:l,titleY:c,maxWidth:a,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=xn(e.font),i=n.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:s,rotation:a}=this._drawArgs(i);Ne(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:a,textAlign:ht(e.align),textBaseline:"middle",translation:[r,o]})}}var os={id:"title",_element:rs,start(t,e,n){!function(t,e){const n=new rs({ctx:t.ctx,options:e,chart:t});Jn.configure(t,n,e),Jn.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Jn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;Jn.configure(t,i,n),i.options=n},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 ss=new WeakMap;var as={id:"subtitle",start(t,e,n){const i=new rs({ctx:t.ctx,options:n,chart:t});Jn.configure(t,i,n),Jn.addBox(t,i),ss.set(t,i)},stop(t){Jn.removeBox(t,ss.get(t)),ss.delete(t)},beforeUpdate(t,e,n){const i=ss.get(t);Jn.configure(t,i,n),i.options=n},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 ls={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i.add(t.x),r+=t.y,++o}}return 0!==o&&0!==i.size&&{x:[...i].reduce((t,e)=>t+e)/i.size,y:r/o}},nearest(t,e){if(!t.length)return!1;let n,i,r,o=e.x,s=e.y,a=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=X(e,i.getCenterPoint());t<a&&(a=t,r=i)}}if(r){const t=r.tooltipPosition();o=t.x,s=t.y}return{x:o,y:s}}};function cs(t,e){return e&&(r(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function us(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ds(t,e){const{element:n,datasetIndex:i,index:r}=e,o=t.getDatasetMeta(i).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:t,label:s,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function hs(t,e){const n=t.chart.ctx,{body:i,footer:r,title:o}=t,{boxWidth:s,boxHeight:a}=e,l=xn(e.bodyFont),c=xn(e.titleFont),u=xn(e.footerFont),d=o.length,p=r.length,f=i.length,g=bn(e.padding);let m=g.height,v=0,y=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);y+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y&&(m+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(y-f)*l.lineHeight+(y-1)*e.bodySpacing),p&&(m+=e.footerMarginTop+p*u.lineHeight+(p-1)*e.footerSpacing);let b=0;const x=function(t){v=Math.max(v,n.measureText(t).width+b)};return n.save(),n.font=c.string,h(t.title,x),n.font=l.string,h(t.beforeBody.concat(t.afterBody),x),b=e.displayColors?s+2+e.boxPadding:0,h(i,t=>{h(t.before,x),h(t.lines,x),h(t.after,x)}),b=0,n.font=u.string,h(t.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function ps(t,e,n,i){const{x:r,width:o}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=r<=(a+l)/2?"left":"right":r<=o/2?c="left":r>=s-o/2&&(c="right"),function(t,e,n,i){const{x:r,width:o}=i,s=n.caretSize+n.caretPadding;return"left"===t&&r+o+s>e.width||"right"===t&&r-o-s<0||void 0}(c,t,e,n)&&(c="center"),c}function fs(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||ps(t,e,n,i),yAlign:i}}function gs(t,e,n,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=r+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=yn(s);let f=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,a);const g=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,l,c);return"center"===l?"left"===a?f+=c:"right"===a&&(f-=c):"left"===a?f-=Math.max(u,h)+r:"right"===a&&(f+=Math.max(d,p)+r),{x:Z(f,0,i.width-e.width),y:Z(g,0,i.height-e.height)}}function ms(t,e,n){const i=bn(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function vs(t){return cs([],us(t))}function ys(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const bs={beforeTitle:e,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:e,beforeBody:e,beforeLabel:e,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return i(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:e,afterBody:e,beforeFooter:e,footer:e,afterFooter:e};function xs(t,e,n,i){const r=t[e].call(n,i);return void 0===r?bs[e].call(n,i):r}class ws extends Ni{static positioners=ls;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new _i(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(this,Cn(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,i=xs(n,"beforeTitle",this,t),r=xs(n,"title",this,t),o=xs(n,"afterTitle",this,t);let s=[];return s=cs(s,us(i)),s=cs(s,us(r)),s=cs(s,us(o)),s}getBeforeBody(t,e){return vs(xs(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,i=[];return h(t,t=>{const e={before:[],lines:[],after:[]},r=ys(n,t);cs(e.before,us(xs(r,"beforeLabel",this,t))),cs(e.lines,xs(r,"label",this,t)),cs(e.after,us(xs(r,"afterLabel",this,t))),i.push(e)}),i}getAfterBody(t,e){return vs(xs(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=xs(n,"beforeFooter",this,t),r=xs(n,"footer",this,t),o=xs(n,"afterFooter",this,t);let s=[];return s=cs(s,us(i)),s=cs(s,us(r)),s=cs(s,us(o)),s}_createItems(t){const e=this._active,n=this.chart.data,i=[],r=[],o=[];let s,a,l=[];for(s=0,a=e.length;s<a;++s)l.push(ds(this.chart,e[s]));return t.filter&&(l=l.filter((e,i,r)=>t.filter(e,i,r,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),h(l,e=>{const n=ys(t.callbacks,e);i.push(xs(n,"labelColor",this,e)),r.push(xs(n,"labelPointStyle",this,e)),o.push(xs(n,"labelTextColor",this,e))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const t=ls[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=hs(this,n),s=Object.assign({},t,e),a=fs(this.chart,n,s),l=gs(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:s}=n,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:u}=yn(s),{x:d,y:h}=t,{width:p,height:f}=e;let g,m,v,y,b,x;return"center"===r?(b=h+f/2,"left"===i?(g=d,m=g-o,y=b+o,x=b-o):(g=d+p,m=g+o,y=b-o,x=b+o),v=g):(m="left"===i?d+Math.max(a,c)+o:"right"===i?d+p-Math.max(l,u)-o:this.caretX,"top"===r?(y=h,b=y-o,g=m-o,v=m+o):(y=h+f,b=y+o,g=m+o,v=m-o),x=y),{x1:g,x2:m,x3:v,y1:y,y2:b,y3:x}}drawTitle(t,e,n){const i=this.title,r=i.length;let o,s,a;if(r){const l=kn(n.rtl,this.x,this.width);for(t.x=ms(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=xn(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,a=0;a<r;++a)e.fillText(i[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,a+1===r&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,r){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=r,u=xn(r.bodyFont),d=ms(this,"left",r),h=i.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,f=e.y+p;if(r.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(h,c)+c/2,o=f+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Te(t,e,n,o),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Te(t,e,n,o)}else{t.lineWidth=o(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=i.leftForLtr(h,c),n=i.leftForLtr(i.xPlus(h,1),c-2),a=yn(s.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,Re(t,{x:e,y:f,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Re(t,{x:n,y:f+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,f,c,l),t.strokeRect(e,f,c,l),t.fillStyle=s.backgroundColor,t.fillRect(n,f+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:s,boxHeight:a,boxWidth:l,boxPadding:c}=n,u=xn(n.bodyFont);let d=u.lineHeight,p=0;const f=kn(n.rtl,this.x,this.width),g=function(n){e.fillText(n,f.x(t.x+p),t.y+d/2),t.y+=d+r},m=f.textAlign(o);let v,y,b,x,w,_,C;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=ms(this,m,n),e.fillStyle=n.bodyColor,h(this.beforeBody,g),p=s&&"right"!==m?"center"===o?l/2+c:l+2+c:0,x=0,_=i.length;x<_;++x){for(v=i[x],y=this.labelTextColors[x],e.fillStyle=y,h(v.before,g),b=v.lines,s&&b.length&&(this._drawColorBox(e,t,x,f,n),d=Math.max(u.lineHeight,a)),w=0,C=b.length;w<C;++w)g(b[w]),d=u.lineHeight;h(v.after,g)}p=0,d=u.lineHeight,h(this.afterBody,g),t.y-=r}drawFooter(t,e,n){const i=this.footer,r=i.length;let o,s;if(r){const a=kn(n.rtl,this.x,this.width);for(t.x=ms(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=a.textAlign(n.footerAlign),e.textBaseline="middle",o=xn(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,s=0;s<r;++s)e.fillText(i[s],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:r,yAlign:o}=this,{x:s,y:a}=t,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=yn(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+u,a),"top"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+l-d,a),e.quadraticCurveTo(s+l,a,s+l,a+d),"center"===o&&"right"===r&&this.drawCaret(t,e,n,i),e.lineTo(s+l,a+c-p),e.quadraticCurveTo(s+l,a+c,s+l-p,a+c),"bottom"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+h,a+c),e.quadraticCurveTo(s,a+c,s,a+c-h),"center"===o&&"left"===r&&this.drawCaret(t,e,n,i),e.lineTo(s,a+u),e.quadraticCurveTo(s,a,s+u,a),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=ls[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=hs(this,t),s=Object.assign({},n,this._size),a=fs(e,t,s),l=gs(t,s,a,e);i._to===l.x&&r._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=bn(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,i,e),Sn(t,e.textDirection),r.y+=o.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),Tn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),r=!p(n,i),o=this._positionChanged(i,e);(r||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(t,r,e,n),s=this._positionChanged(o,t),a=e||!p(o,r)||s;return a&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const o=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,o=ls[r.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}var _s={id:"tooltip",_element:ws,positioners:ls,afterInit(t,e,n){n&&(t.tooltip=new ws({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:bs},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};return xr.register(Nr,Ao,Jr,t),xr.helpers={...Nn},xr._adapters=kr,xr.Animation=wi,xr.Animations=_i,xr.animator=vt,xr.controllers=Yi.controllers.items,xr.DatasetController=Ii,xr.Element=Ni,xr.elements=Jr,xr.Interaction=Hn,xr.layouts=Jn,xr.platforms=yi,xr.Scale=Ui,xr.Ticks=ne,Object.assign(xr,Nr,Ao,Jr,t,yi),xr.Chart=xr,"undefined"!=typeof window&&(window.Chart=xr),xr})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).noUiSlider={})}(this,(function(t){"use strict";function e(t){return"object"==typeof t&&"function"==typeof t.to}function n(t){t.parentElement.removeChild(t)}function i(t){return null!=t}function r(t){t.preventDefault()}function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function s(t,e,n){0<n&&(u(t,e),setTimeout((function(){d(t,e)}),n))}function a(t){return Math.max(Math.min(t,100),0)}function l(t){return Array.isArray(t)?t:[t]}function c(t){return 1<(t=(t=String(t)).split(".")).length?t[1].length:0}function u(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function d(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function h(t){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:(n?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(n?t.documentElement:t.body).scrollTop}}function p(t,e){return 100/(e-t)}function f(t,e,n){return 100*e/(t[n+1]-t[n])}function g(t,e){for(var n=1;t>=e[n];)n+=1;return n}t.PipsMode=void 0,(G=t.PipsMode||(t.PipsMode={})).Range="range",G.Steps="steps",G.Positions="positions",G.Count="count",G.Values="values",t.PipsType=void 0,(G=t.PipsType||(t.PipsType={}))[G.None=-1]="None",G[G.NoValue=0]="NoValue",G[G.LargeValue=1]="LargeValue",G[G.SmallValue=2]="SmallValue";var m=(v.prototype.getDistance=function(t){for(var e=[],n=0;n<this.xNumSteps.length-1;n++)e[n]=f(this.xVal,t,n);return e},v.prototype.getAbsoluteDistance=function(t,e,n){var i=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[i+1];)i++;else t===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);n||t!==this.xPct[i+1]||i++;for(var r,o=1,s=(e=null===e?[]:e)[i],a=0,l=0,c=0,u=n?(t-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-t)/(this.xPct[i+1]-this.xPct[i]);0<s;)r=this.xPct[i+1+c]-this.xPct[i+c],100<e[i+c]*o+100-100*u?(a=r*u,o=(s-100*u)/e[i+c],u=1):(a=e[i+c]*r/100*o,o=0),n?(l-=a,1<=this.xPct.length+c&&c--):(l+=a,1<=this.xPct.length-c&&c++),s=e[i+c]*o;return t+l},v.prototype.toStepping=function(t){return function(t,e,n){if(n>=t.slice(-1)[0])return 100;var i=t[(o=g(n,t))-1],r=t[o],o=(t=e[o-1],e[o]);return t+(n=n,f(r=[i,r],r[0]<0?n+Math.abs(r[0]):n-r[0],0)/p(t,o))}(this.xVal,this.xPct,t)},v.prototype.fromStepping=function(t){return function(t,e,n){if(100<=n)return t.slice(-1)[0];var i,r=t[(i=g(n,e))-1],o=t[i];return(n-(t=e[i-1]))*p(t,i=e[i])*((o=[r,o])[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t)},v.prototype.getStep=function(t){return function(t,e,n,i){if(100===i)return i;var r=g(i,t),o=t[r-1],s=t[r];return n?(s-o)/2<i-o?s:o:e[r-1]?t[r-1]+(t=i-t[r-1],r=e[r-1],Math.round(t/r)*r):i}(this.xPct,this.xSteps,this.snap,t)},v.prototype.getDefaultStep=function(t,e,n){var i=g(t,this.xPct);return(100===t||e&&t===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},v.prototype.getNearbySteps=function(t){return t=g(t,this.xPct),{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]}}},v.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(c);return Math.max.apply(null,t)},v.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},v.prototype.convert=function(t){return this.getStep(this.toStepping(t))},v.prototype.handleEntryPoint=function(t,e){if(!o(t="min"===t?0:"max"===t?100:parseFloat(t))||!o(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(t),this.xVal.push(e[0]),e=Number(e[1]),t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},v.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]!==this.xVal[t+1]?(this.xSteps[t]=f([this.xVal[t],this.xVal[t+1]],e,0)/p(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e):this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t])},v);function v(t,e,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=e;var r=[];for(Object.keys(t).forEach((function(e){r.push([l(t[e]),e])})),r.sort((function(t,e){return t[0][0]-e[0][0]})),i=0;i<r.length;i++)this.handleEntryPoint(r[i][1],r[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}var y={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},b={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"},x=".__tooltips",w=".__aria";function _(t,e){if(!o(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function C(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function k(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function S(t,e){if(!o(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function T(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new m(e,t.snap||!1,t.singleStep)}function A(t,e){if(e=l(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function D(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function E(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function M(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function O(t,e){var n,i=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n<t.handles;n++)i.push(e);i.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");i=e}t.connect=i}function P(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function L(t,e){if(!o(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function I(t,e){if(!o(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function N(t,e){var n;if(!o(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!o(e[0])&&!o(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],n=0;n<t.spectrum.xNumSteps.length-1;n++)if(t.padding[0][n]<0||t.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1];e=t.spectrum.xVal[0];if(1<i/(t.spectrum.xVal[t.spectrum.xVal.length-1]-e))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function R(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function F(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=0<=e.indexOf("tap"),i=0<=e.indexOf("drag"),r=0<=e.indexOf("fixed"),o=0<=e.indexOf("snap"),s=0<=e.indexOf("hover"),a=0<=e.indexOf("unconstrained"),l=0<=e.indexOf("invert-connects"),c=0<=e.indexOf("drag-all");e=0<=e.indexOf("smooth-steps");if(r){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");L(t,t.start[1]-t.start[0])}if(l&&2!==t.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:n||o,drag:i,dragAll:c,smoothSteps:e,fixed:r,snap:o,hover:s,unconstrained:a,invertConnects:l}}function j(t,n){if(!1!==n)if(!0===n||e(n)){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(n)}else{if((n=l(n)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");n.forEach((function(t){if("boolean"!=typeof t&&!e(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),t.tooltips=n}}function $(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function z(t,n){if(!e(n))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=n}function H(t,n){if(!e(i=n)||"function"!=typeof i.from)throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");var i;t.format=n}function B(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function W(t,e){t.documentElement=e}function q(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function U(t,e){if("object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof t.cssPrefix?(t.cssClasses={},Object.keys(e).forEach((function(n){t.cssClasses[n]=t.cssPrefix+e[n]}))):t.cssClasses=e}function V(t){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:y,format:y},n={step:{r:!1,t:_},keyboardPageMultiplier:{r:!1,t:C},keyboardMultiplier:{r:!1,t:k},keyboardDefaultStep:{r:!1,t:S},start:{r:!0,t:A},connect:{r:!0,t:O},direction:{r:!0,t:R},snap:{r:!1,t:D},animate:{r:!1,t:E},animationDuration:{r:!1,t:M},range:{r:!0,t:T},orientation:{r:!1,t:P},margin:{r:!1,t:L},limit:{r:!1,t:I},padding:{r:!1,t:N},behaviour:{r:!0,t:F},ariaFormat:{r:!1,t:z},format:{r:!1,t:H},tooltips:{r:!1,t:j},keyboardSupport:{r:!0,t:B},documentElement:{r:!1,t:W},cssPrefix:{r:!0,t:q},cssClasses:{r:!0,t:U},handleAttributes:{r:!1,t:$}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:b,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(o){if(i(t[o])||void 0!==r[o])n[o].t(e,(i(t[o])?t:r)[o]);else if(n[o].r)throw new Error("noUiSlider: '"+o+"' is required.")})),e.pips=t.pips;var o=void 0!==(s=document.createElement("div")).style.msTransform,s=void 0!==s.style.transform;return e.transformRule=s?"transform":o?"msTransform":"webkitTransform",e.style=[["left","top"],["right","bottom"]][e.dir][e.ort],e}function Y(e,o,c){var p,f,g,m,v,y,b=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 t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),C=e,k=o.spectrum,S=[],T=[],A=[],D=0,E={},M=!1,P=e.ownerDocument,L=o.documentElement||P.documentElement,I=P.body,N="rtl"===P.dir||1===o.ort?0:100;function R(t,e){var n=P.createElement("div");return e&&u(n,e),t.appendChild(n),n}function F(t,e){t=R(t,o.cssClasses.origin);var n,i=R(t,o.cssClasses.handle);return R(i,o.cssClasses.touchArea),i.setAttribute("data-handle",String(e)),o.keyboardSupport&&(i.setAttribute("tabindex","0"),i.addEventListener("keydown",(function(t){return function(t,e){if(z()||H(e))return!1;var n=["Left","Right"],i=["Down","Up"],r=["PageDown","PageUp"],s=["Home","End"];o.dir&&!o.ort?n.reverse():o.ort&&!o.dir&&(i.reverse(),r.reverse());var a=t.key.replace("Arrow",""),l=a===r[0],c=a===r[1];r=a===i[0]||a===n[0]||l,i=a===i[1]||a===n[1]||c,n=a===s[0],s=a===s[1];if(!(r||i||n||s))return!0;if(t.preventDefault(),i||r){var u=r?0:1;if(null===(u=yt(e)[u]))return!1;!1===u&&(u=k.getDefaultStep(T[e],r,o.keyboardDefaultStep)),u*=c||l?o.keyboardPageMultiplier:o.keyboardMultiplier,u=Math.max(u,1e-7),u*=r?-1:1,u=S[e]+u}else u=s?o.spectrum.xVal[o.spectrum.xVal.length-1]:o.spectrum.xVal[0];return pt(e,k.toStepping(u),!0,!0),st("slide",e),st("update",e),st("change",e),st("set",e),!1}(t,e)}))),void 0!==o.handleAttributes&&(n=o.handleAttributes[e],Object.keys(n).forEach((function(t){i.setAttribute(t,n[t])}))),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",o.ort?"vertical":"horizontal"),0===e?u(i,o.cssClasses.handleLower):e===o.handles-1&&u(i,o.cssClasses.handleUpper),t.handle=i,t}function j(t,e){return!!e&&R(t,o.cssClasses.connect)}function $(t,e){return!(!o.tooltips||!o.tooltips[e])&&R(t.firstChild,o.cssClasses.tooltip)}function z(){return C.hasAttribute("disabled")}function H(t){return g[t].hasAttribute("disabled")}function B(){y&&(ot("update"+x),y.forEach((function(t){t&&n(t)})),y=null)}function W(){B(),y=g.map($),rt("update"+x,(function(t,e,n){y&&o.tooltips&&!1!==y[e]&&(t=t[e],!0!==o.tooltips[e]&&(t=o.tooltips[e].to(n[e])),y[e].innerHTML=t)}))}function q(t,e){return t.map((function(t){return k.fromStepping(e?k.getStep(t):t)}))}function U(){v&&(n(v),v=null)}function Y(e){U();var n=function(e){var n=function(e){if(e.mode===t.PipsMode.Range||e.mode===t.PipsMode.Steps)return k.xVal;if(e.mode!==t.PipsMode.Count)return e.mode===t.PipsMode.Positions?q(e.values,e.stepped):e.mode===t.PipsMode.Values?e.stepped?e.values.map((function(t){return k.fromStepping(k.getStep(k.toStepping(t)))})):e.values:[];if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var n=e.values-1,i=100/n,r=[];n--;)r[n]=n*i;return r.push(100),q(r,e.stepped)}(e),i={},r=k.xVal[0],o=k.xVal[k.xVal.length-1],s=!1,a=!1,l=0;return(n=n.slice().sort((function(t,e){return t-e})).filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==r&&(n.unshift(r),s=!0),n[n.length-1]!==o&&(n.push(o),a=!0),n.forEach((function(r,o){r=r;var c,u,d,h,p,f,g,m,v=n[o+1],y=e.mode===t.PipsMode.Steps,b=(b=y?k.xNumSteps[o]:b)||v-r;for(void 0===v&&(v=r),b=Math.max(b,1e-7),c=r;c<=v;c=Number((c+b).toFixed(7))){for(f=(h=(d=k.toStepping(c))-l)/(e.density||1),m=h/(g=Math.round(f)),u=1;u<=g;u+=1)i[(p=l+u*m).toFixed(5)]=[k.fromStepping(p),0];f=-1<n.indexOf(c)?t.PipsType.LargeValue:y?t.PipsType.SmallValue:t.PipsType.NoValue,!o&&s&&c!==v&&(f=0),c===v&&a||(i[d.toFixed(5)]=[c,f]),l=d}})),i}(e),i=e.filter;e=e.format||{to:function(t){return String(Math.round(t))}};return v=C.appendChild(function(e,n,i){var r,s=P.createElement("div"),a=((r={})[t.PipsType.None]="",r[t.PipsType.NoValue]=o.cssClasses.valueNormal,r[t.PipsType.LargeValue]=o.cssClasses.valueLarge,r[t.PipsType.SmallValue]=o.cssClasses.valueSub,r),l=((r={})[t.PipsType.None]="",r[t.PipsType.NoValue]=o.cssClasses.markerNormal,r[t.PipsType.LargeValue]=o.cssClasses.markerLarge,r[t.PipsType.SmallValue]=o.cssClasses.markerSub,r),c=[o.cssClasses.valueHorizontal,o.cssClasses.valueVertical],d=[o.cssClasses.markerHorizontal,o.cssClasses.markerVertical];function h(t,e){var n=e===o.cssClasses.value;return e+" "+(n?c:d)[o.ort]+" "+(n?a:l)[t]}return u(s,o.cssClasses.pips),u(s,0===o.ort?o.cssClasses.pipsHorizontal:o.cssClasses.pipsVertical),Object.keys(e).forEach((function(r){var a,l,c;l=e[a=r][0],c=e[r][1],(c=n?n(l,c):c)!==t.PipsType.None&&((r=R(s,!1)).className=h(c,o.cssClasses.marker),r.style[o.style]=a+"%",c>t.PipsType.NoValue&&((r=R(s,!1)).className=h(c,o.cssClasses.value),r.setAttribute("data-value",String(l)),r.style[o.style]=a+"%",r.innerHTML=String(i.to(l))))})),s}(n,i,e))}function X(){var t=p.getBoundingClientRect(),e="offset"+["Width","Height"][o.ort];return 0===o.ort?t.width||p[e]:t.height||p[e]}function G(t,e,n,i){function r(r){var s,a=function(t,e,n){var i=0===t.type.indexOf("touch"),r=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer"),s=0,a=0;if(0===t.type.indexOf("MSPointer")&&(o=!0),"mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(i){var l=function(e){return(e=e.target)===n||n.contains(e)||t.composed&&t.composedPath().shift()===n};if("touchstart"===t.type){if(1<(i=Array.prototype.filter.call(t.touches,l)).length)return!1;s=i[0].pageX,a=i[0].pageY}else{if(!(l=Array.prototype.find.call(t.changedTouches,l)))return!1;s=l.pageX,a=l.pageY}}return e=e||h(P),(r||o)&&(s=t.clientX+e.x,a=t.clientY+e.y),t.pageOffset=e,t.points=[s,a],t.cursor=r||o,t}(r,i.pageOffset,i.target||e);return!!a&&!(z()&&!i.doNotReject)&&(s=C,r=o.cssClasses.tap,!((s.classList?s.classList.contains(r):new RegExp("\\b"+r+"\\b").test(s.className))&&!i.doNotReject)&&!(t===b.start&&void 0!==a.buttons&&1<a.buttons)&&(!i.hover||!a.buttons)&&(_||a.preventDefault(),a.calcPoint=a.points[o.ort],void n(a,i)))}var s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,r,!!_&&{passive:!0}),s.push([t,r])})),s}function K(t){var e,n,i=a(i=100*(t-(i=p,e=o.ort,n=i.getBoundingClientRect(),i=(t=i.ownerDocument).documentElement,t=h(t),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),e?n.top+t.y-i.clientTop:n.left+t.x-i.clientLeft))/X());return o.dir?100-i:i}function Q(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&J(t,e)}function Z(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return J(t,e);ct(0<(t=(o.dir?-1:1)*(t.calcPoint-e.startCalcPoint)),100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function J(t,e){e.handle&&(d(e.handle,o.cssClasses.active),--D),e.listeners.forEach((function(t){L.removeEventListener(t[0],t[1])})),0===D&&(d(C,o.cssClasses.drag),ht(),t.cursor&&(I.style.cursor="",I.removeEventListener("selectstart",r))),o.events.smoothSteps&&(e.handleNumbers.forEach((function(t){pt(t,T[t],!0,!0,!1,!1)})),e.handleNumbers.forEach((function(t){st("update",t)}))),e.handleNumbers.forEach((function(t){st("change",t),st("set",t),st("end",t)}))}function tt(t,e){var n,i,s,a;e.handleNumbers.some(H)||(1===e.handleNumbers.length&&(a=g[e.handleNumbers[0]].children[0],D+=1,u(a,o.cssClasses.active)),t.stopPropagation(),i=G(b.move,L,Z,{target:t.target,handle:a,connect:e.connect,listeners:n=[],startCalcPoint:t.calcPoint,baseSize:X(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:T.slice()}),s=G(b.end,L,J,{target:t.target,handle:a,listeners:n,doNotReject:!0,handleNumbers:e.handleNumbers}),a=G("mouseout",L,Q,{target:t.target,handle:a,listeners:n,doNotReject:!0,handleNumbers:e.handleNumbers}),n.push.apply(n,i.concat(s,a)),t.cursor&&(I.style.cursor=getComputedStyle(t.target).cursor,1<g.length&&u(C,o.cssClasses.drag),I.addEventListener("selectstart",r,!1)),e.handleNumbers.forEach((function(t){st("start",t)})))}function et(t){t.stopPropagation();var e,n,i,r=K(t.calcPoint),a=(e=r,i=!(n=100),g.forEach((function(t,r){var o,s;H(r)||(o=T[r],((s=Math.abs(o-e))<n||s<=n&&o<e||100===s&&100===n)&&(i=r,n=s))})),i);!1!==a&&(o.events.snap||s(C,o.cssClasses.tap,o.animationDuration),pt(a,r,!0,!0),ht(),st("slide",a,!0),st("update",a,!0),o.events.snap?tt(t,{handleNumbers:[a]}):(st("change",a,!0),st("set",a,!0)))}function nt(t){t=K(t.calcPoint),t=k.getStep(t);var e=k.fromStepping(t);Object.keys(E).forEach((function(t){"hover"===t.split(".")[0]&&E[t].forEach((function(t){t.call(xt,e)}))}))}function it(t){t.fixed||g.forEach((function(t,e){G(b.start,t.children[0],tt,{handleNumbers:[e]})})),t.tap&&G(b.start,p,et,{}),t.hover&&G(b.move,p,nt,{hover:!0}),t.drag&&m.forEach((function(e,n){var i,r,s,a,l;!1!==e&&0!==n&&n!==m.length-1&&(i=g[n-1],r=g[n],s=[e],a=[i,r],l=[n-1,n],u(e,o.cssClasses.draggable),t.fixed&&(s.push(i.children[0]),s.push(r.children[0])),t.dragAll&&(a=g,l=A),s.forEach((function(t){G(b.start,t,tt,{handles:a,handleNumbers:l,connect:e})})))}))}function rt(t,e){E[t]=E[t]||[],E[t].push(e),"update"===t.split(".")[0]&&g.forEach((function(t,e){st("update",e)}))}function ot(t){var e=t&&t.split(".")[0],n=e?t.substring(e.length):t;Object.keys(E).forEach((function(t){var i=t.split(".")[0],r=t.substring(i.length);e&&e!==i||n&&n!==r||((i=r)!==w&&i!==x||n===r)&&delete E[t]}))}function st(t,e,n){Object.keys(E).forEach((function(i){var r=i.split(".")[0];t===r&&E[i].forEach((function(t){t.call(xt,S.map(o.format.to),e,S.slice(),n||!1,T.slice(),xt)}))}))}function at(t,e,n,i,r,s,l){var c;return 1<g.length&&!o.events.unconstrained&&(i&&0<e&&(c=k.getAbsoluteDistance(t[e-1],o.margin,!1),n=Math.max(n,c)),r&&e<g.length-1&&(c=k.getAbsoluteDistance(t[e+1],o.margin,!0),n=Math.min(n,c))),1<g.length&&o.limit&&(i&&0<e&&(c=k.getAbsoluteDistance(t[e-1],o.limit,!1),n=Math.min(n,c)),r&&e<g.length-1&&(c=k.getAbsoluteDistance(t[e+1],o.limit,!0),n=Math.max(n,c))),o.padding&&(0===e&&(c=k.getAbsoluteDistance(0,o.padding[0],!1),n=Math.max(n,c)),e===g.length-1&&(c=k.getAbsoluteDistance(100,o.padding[1],!0),n=Math.min(n,c))),!((n=a(n=l?n:k.getStep(n)))===t[e]&&!s)&&n}function lt(t,e){var n=o.ort;return(n?e:t)+", "+(n?t:e)}function ct(t,e,n,i,r){var s=n.slice(),a=i[0],l=o.events.smoothSteps,c=[!t,t],u=[t,!t];i=i.slice(),t&&i.reverse(),1<i.length?i.forEach((function(t,n){!1===(n=at(s,t,s[t]+e,c[n],u[n],!1,l))?e=0:(e=n-s[t],s[t]=n)})):c=u=[!0];var d=!1;i.forEach((function(t,i){d=pt(t,n[t]+e,c[i],u[i],!1,l)||d})),d&&(i.forEach((function(t){st("update",t),st("slide",t)})),null!=r&&st("drag",a))}function ut(t,e){return o.dir?100-t-e:t}function dt(t,e){if(T[t]=e,S[t]=k.fromStepping(e),e="translate("+lt(ut(e,0)-N+"%","0")+")",g[t].style[o.transformRule]=e,o.events.invertConnects&&1<T.length&&(e=T.every((function(t,e,n){return 0===e||t>=n[e-1]})),M!==!e))return M=!M,O(o,o.connect.map((function(t){return!t}))),void bt();ft(t),ft(t+1),M&&(ft(t-1),ft(t+2))}function ht(){A.forEach((function(t){var e=50<T[t]?-1:1;e=3+(g.length+e*t);g[t].style.zIndex=String(e)}))}function pt(t,e,n,i,r,o){return!1!==(e=r?e:at(T,t,e,n,i,!1,o))&&(dt(t,e),!0)}function ft(t){var e,n,i;m[t]&&(e=T.slice(),M&&e.sort((function(t,e){return t-e})),i=100,n="translate("+lt(ut(n=(n=0)!==t?e[t-1]:n,i=(i=t!==m.length-1?e[t]:i)-n)+"%","0")+")",i="scale("+lt(i/100,"1")+")",m[t].style[o.transformRule]=n+" "+i)}function gt(t,e){return null===t||!1===t||void 0===t?T[e]:("number"==typeof t&&(t=String(t)),!1===(t=!1!==(t=o.format.from(t))?k.toStepping(t):t)||isNaN(t)?T[e]:t)}function mt(t,e,n){var i=l(t);t=void 0===T[0];e=void 0===e||e,o.animate&&!t&&s(C,o.cssClasses.tap,o.animationDuration),A.forEach((function(t){pt(t,gt(i[t],t),!0,!1,n)}));var r,a=1===A.length?0:1;for(t&&k.hasNoSize()&&(n=!0,T[0]=0,1<A.length&&(r=100/(A.length-1),A.forEach((function(t){T[t]=t*r}))));a<A.length;++a)A.forEach((function(t){pt(t,T[t],!0,!0,n)}));ht(),A.forEach((function(t){st("update",t),null!==i[t]&&e&&st("set",t)}))}function vt(t){return(t=void 0!==t&&t)?1===S.length?S[0]:S.slice(0):1===(t=S.map(o.format.to)).length?t[0]:t}function yt(t){var e=T[t],n=k.getNearbySteps(e),i=S[t],r=n.thisStep.step;t=null;return o.snap?[i-n.stepBefore.startValue||null,n.stepAfter.startValue-i||null]:(!1!==r&&i+r>n.stepAfter.startValue&&(r=n.stepAfter.startValue-i),t=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?r=null:0===e&&(t=null),e=k.countStepDecimals(),null!==r&&!1!==r&&(r=Number(r.toFixed(e))),[t=null!==t&&!1!==t?Number(t.toFixed(e)):t,r])}function bt(){for(;f.firstChild;)f.removeChild(f.firstChild);for(var t=0;t<=o.handles;t++)m[t]=j(f,o.connect[t]),ft(t);it({drag:o.events.drag,fixed:!0})}u(e=C,o.cssClasses.target),0===o.dir?u(e,o.cssClasses.ltr):u(e,o.cssClasses.rtl),0===o.ort?u(e,o.cssClasses.horizontal):u(e,o.cssClasses.vertical),u(e,"rtl"===getComputedStyle(e).direction?o.cssClasses.textDirectionRtl:o.cssClasses.textDirectionLtr),p=R(e,o.cssClasses.base),function(t,e){f=R(e,o.cssClasses.connects),g=[],(m=[]).push(j(f,t[0]));for(var n=0;n<o.handles;n++)g.push(F(e,n)),A[n]=n,m.push(j(f,t[n+1]))}(o.connect,p),it(o.events),mt(o.start),o.pips&&Y(o.pips),o.tooltips&&W(),ot("update"+w),rt("update"+w,(function(t,e,n,i,r){A.forEach((function(t){var e=g[t],i=at(T,t,0,!0,!0,!0),s=at(T,t,100,!0,!0,!0),a=r[t];t=String(o.ariaFormat.to(n[t])),i=k.fromStepping(i).toFixed(1),s=k.fromStepping(s).toFixed(1),a=k.fromStepping(a).toFixed(1);e.children[0].setAttribute("aria-valuemin",i),e.children[0].setAttribute("aria-valuemax",s),e.children[0].setAttribute("aria-valuenow",a),e.children[0].setAttribute("aria-valuetext",t)}))}));var xt={destroy:function(){for(ot(w),ot(x),Object.keys(o.cssClasses).forEach((function(t){d(C,o.cssClasses[t])}));C.firstChild;)C.removeChild(C.firstChild);delete C.noUiSlider},steps:function(){return A.map(yt)},on:rt,off:ot,get:vt,set:mt,setHandle:function(t,e,n,i){if(!(0<=(t=Number(t))&&t<A.length))throw new Error("noUiSlider: invalid handle number, got: "+t);pt(t,gt(e,t),!0,!0,i),st("update",t),n&&st("set",t)},reset:function(t){mt(o.start,t)},disable:function(t){null!=t?(g[t].setAttribute("disabled",""),g[t].handle.removeAttribute("tabindex")):(C.setAttribute("disabled",""),g.forEach((function(t){t.handle.removeAttribute("tabindex")})))},enable:function(t){null!=t?(g[t].removeAttribute("disabled"),g[t].handle.setAttribute("tabindex","0")):(C.removeAttribute("disabled"),g.forEach((function(t){t.removeAttribute("disabled"),t.handle.setAttribute("tabindex","0")})))},__moveHandles:function(t,e,n){ct(t,e,T,n)},options:c,updateOptions:function(t,e){var n=vt(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];r.forEach((function(e){void 0!==t[e]&&(c[e]=t[e])}));var s=V(c);r.forEach((function(e){void 0!==t[e]&&(o[e]=s[e])})),k=s.spectrum,o.margin=s.margin,o.limit=s.limit,o.padding=s.padding,o.pips?Y(o.pips):U(),(o.tooltips?W:B)(),T=[],mt(i(t.start)?t.start:n,e),t.connect&&bt()},target:C,removePips:U,removeTooltips:B,getPositions:function(){return T.slice()},getTooltips:function(){return y},getOrigins:function(){return g},pips:Y};return xt}function X(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");return e=Y(t,V(e),e),t.noUiSlider=e}var G={__spectrum:m,cssClasses:b,create:X};t.create=X,t.cssClasses=b,t.default=G,Object.defineProperty(t,"__esModule",{value:!0})})),function(t){"use strict";var e;"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?(e=require("jquery"),"undefined"==typeof window?module.exports=function(n,i){return n=n||window,i=i||e(n),t(i,n,n.document)}:module.exports=t(e,window,window.document)):window.DataTable=t(jQuery,window,document)}((function(t,e,n){"use strict";function i(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function r(t,e,n,i){var r=typeof t,o="string"==r;return"number"==r||"bigint"==r||!(!i||!w(t))||(e&&o&&(t=_(t,e)),n&&o&&(t=t.replace(x,"")),!isNaN(parseFloat(t))&&isFinite(t))}function o(t,e,n,i){var o;return!(!i||!w(t))||("string"!=typeof t||!t.match(/<(input|select)/i))&&(w(o=t)||"string"==typeof o)&&!!r(k(t),e,n,i)||null}function s(t,e,n,i){var r=[],o=0,s=e.length;if(void 0!==i)for(;o<s;o++)t[e[o]]&&t[e[o]][n]&&r.push(t[e[o]][n][i]);else for(;o<s;o++)t[e[o]]&&r.push(t[e[o]][n]);return r}function a(t,e){var n,i=[];void 0===e?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)i.push(r);return i}function l(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e}var c,u,d,h,p=function(n,i){var r,o,s;return p.factory(n,i)?p:this instanceof p?t(n).DataTable(i):(o=void 0===(i=n),s=(r=this).length,o&&(i={}),this.api=function(){return new u(this)},this.each((function(){var n=1<s?Vt({},i,!0):i,a=0,l=this.getAttribute("id"),c=p.defaults,d=t(this);if("table"!=this.nodeName.toLowerCase())qt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{n.on&&n.on.options&&ee(d,"options",n.on.options),d.trigger("options.dt",n),L(c),I(c.column),O(c,c,!0),O(c.column,c.column,!0),O(c,t.extend(n,d.data()),!0);var h=p.settings;for(a=0,V=h.length;a<V;a++){var f=h[a];if(f.nTable==this||f.nTHead&&f.nTHead.parentNode==this||f.nTFoot&&f.nTFoot.parentNode==this){var g=(void 0!==n.bRetrieve?n:c).bRetrieve,m=(void 0!==n.bDestroy?n:c).bDestroy;if(o||g)return f.oInstance;if(m){new p.Api(f).destroy();break}return void qt(f,0,"Cannot reinitialise DataTable",3)}if(f.sTableId==this.id){h.splice(a,1);break}}null!==l&&""!==l||(l="DataTables_Table_"+p.ext._unique++,this.id=l);var v,y=t.extend(!0,{},p.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:l,sTableId:l,colgroup:t("<colgroup>").prependTo(this),fastData:function(t,e,n){return G(y,t,e,n)}}),b=(l=(y.nTable=this,y.oInit=n,h.push(y),y.api=new u(y),y.oInstance=1===r.length?r:d.dataTable(),L(n),n.aLengthMenu&&!n.iDisplayLength&&(n.iDisplayLength=Array.isArray(n.aLengthMenu[0])?n.aLengthMenu[0][0]:t.isPlainObject(n.aLengthMenu[0])?n.aLengthMenu[0].value:n.aLengthMenu[0]),n=Vt(t.extend(!0,{},c),n),Ut(y.oFeatures,n,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Ut(y,n,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Ut(y.oScroll,n,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Ut(y.oLanguage,n,"fnInfoCallback"),Xt(y,"aoDrawCallback",n.fnDrawCallback),Xt(y,"aoStateSaveParams",n.fnStateSaveParams),Xt(y,"aoStateLoadParams",n.fnStateLoadParams),Xt(y,"aoStateLoaded",n.fnStateLoaded),Xt(y,"aoRowCallback",n.fnRowCallback),Xt(y,"aoRowCreatedCallback",n.fnCreatedRow),Xt(y,"aoHeaderCallback",n.fnHeaderCallback),Xt(y,"aoFooterCallback",n.fnFooterCallback),Xt(y,"aoInitComplete",n.fnInitComplete),Xt(y,"aoPreDrawCallback",n.fnPreDrawCallback),y.rowIdFn=tt(n.rowId),n.on&&Object.keys(n.on).forEach((function(t){ee(d,t,n.on[t])})),y),p.__browser||(x={},p.__browser=x,v=(b=(_=t("<div/>").css({position:"fixed",top:0,left:-1*e.pageXOffset,height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body")).children()).children(),x.barWidth=b[0].offsetWidth-b[0].clientWidth,x.bScrollbarLeft=1!==Math.round(v.offset().left),_.remove()),t.extend(l.oBrowser,p.__browser),l.oScroll.iBarWidth=p.__browser.barWidth,y.oClasses),x=(t.extend(b,p.ext.classes,n.oClasses),d.addClass(b.table),y.oFeatures.bPaginate||(n.iDisplayStart=0),void 0===y.iInitDisplayStart&&(y.iInitDisplayStart=n.iDisplayStart,y._iDisplayStart=n.iDisplayStart),n.iDeferLoading),w=(null!==x&&(y.deferLoading=!0,v=Array.isArray(x),y._iRecordsDisplay=v?x[0]:x,y._iRecordsTotal=v?x[1]:x),[]),_=this.getElementsByTagName("thead");l=mt(y,_[0]);if(n.aoColumns)w=n.aoColumns;else if(l.length)for(V=l[a=0].length;a<V;a++)w.push(null);for(a=0,V=w.length;a<V;a++)N(y);var C,k,S,T,A,D,E,M=y,P=n.aoColumnDefs,F=w,j=l,$=function(t,e){R(y,t,e)},z=M.aoColumns;if(F)for(C=0,k=F.length;C<k;C++)F[C]&&F[C].name&&(z[C].sName=F[C].name);if(P)for(C=P.length-1;0<=C;C--){var H=void 0!==(E=P[C]).target?E.target:void 0!==E.targets?E.targets:E.aTargets;for(Array.isArray(H)||(H=[H]),S=0,T=H.length;S<T;S++){var B=H[S];if("number"==typeof B&&0<=B){for(;z.length<=B;)N(M);$(B,E)}else if("number"==typeof B&&B<0)$(z.length+B,E);else if("string"==typeof B)for(A=0,D=z.length;A<D;A++)"_all"===B?$(A,E):-1!==B.indexOf(":name")?z[A].sName===B.replace(":name","")&&$(A,E):j.forEach((function(e){e[A]&&(e=t(e[A].cell),B.match(/^[a-z][\w-]*$/i)&&(B="."+B),e.is(B))&&$(A,E)}))}}if(F)for(C=0,k=F.length;C<k;C++)$(C,F[C]);var W,q=((l=d.children("tbody").find("tr:first-child").eq(0)).length&&(W=function(t,e){return null!==t.getAttribute("data-"+e)?e:null},t(l[0]).children("th, td").each((function(t,e){var n,i=y.aoColumns[t];i||qt(y,0,"Incorrect column count",18),i.mData===t&&(n=W(e,"sort")||W(e,"order"),e=W(e,"filter")||W(e,"search"),null===n&&null===e||(i.mData={_:t+".display",sort:null!==n?t+".@data-"+n:void 0,type:null!==n?t+".@data-"+n:void 0,filter:null!==e?t+".@data-"+e:void 0},i._isArrayHost=!0,R(y,t)))}))),Xt(y,"aoDrawCallback",Bt),y.oFeatures);if(n.bStateSave&&(q.bStateSave=!0),void 0===n.aaSorting)for(var U=y.aaSorting,V=(a=0,U.length);a<V;a++)U[a][1]=y.aoColumns[a].asSorting[0];Ht(y),Xt(y,"aoDrawCallback",(function(){(y.bSorted||"ssp"===Zt(y)||q.bDeferRender)&&Ht(y)}));l=d.children("caption");var Y=(0===(l=(0===(l=(y.caption&&(l=0===l.length?t("<caption/>").appendTo(d):l).html(y.caption),l.length&&(l[0]._captionSide=l.css("caption-side"),y.captionNode=l[0]),0===_.length&&(_=t("<thead/>").appendTo(d)),y.nTHead=_[0],d.children("tbody"))).length&&(l=t("<tbody/>").insertAfter(_)),y.nTBody=l[0],d.children("tfoot"))).length&&(l=t("<tfoot/>").appendTo(d)),y.nTFoot=l[0],y.aiDisplay=y.aiDisplayMaster.slice(),y.bInitialised=!0,y.oLanguage);t.extend(!0,Y,n.oLanguage),Y.sUrl?t.ajax({dataType:"json",url:Y.sUrl,success:function(e){O(c.oLanguage,e),t.extend(!0,Y,e,y.oInit.oLanguage),Gt(y,null,"i18n",[y],!0),St(y)},error:function(){qt(y,0,"i18n file loading error",21),St(y)}}):(Gt(y,null,"i18n",[y],!0),St(y))}})),r=null,this)},f=(p.ext=c={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:p.fnVersionCheck,iApiIndex:0,sVersion:p.version},t.extend(c,{afnFiltering:c.search,aTypes:c.type.detect,ofnSearch:c.type.search,oSort:c.type.order,afnSortData:c.order,aoFeatures:c.feature,oStdClasses:c.classes,oPagination:c.pager}),t.extend(p.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}}),{}),g=/[\r\n\u2028]/g,m=/<([^>]*>)/g,v=Math.pow(2,28),y=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,b=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),x=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,w=function(t){return!t||!0===t||"-"===t},_=function(t,e){return f[e]||(f[e]=new RegExp(_t(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(f[e],"."):t},C=function(t,e,n){var i=[],r=0,o=t.length;if(void 0!==n)for(;r<o;r++)t[r]&&t[r][e]&&i.push(t[r][e][n]);else for(;r<o;r++)t[r]&&i.push(t[r][e]);return i},k=function(t){if(!t||"string"!=typeof t)return t;if(t.length>v)throw new Error("Exceeded max str len");var e;for(t=t.replace(m,"");(t=(e=t).replace(/<script/i,""))!==e;);return e},S=function(t){return"string"==typeof(t=Array.isArray(t)?t.join(","):t)?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t},T=function(t,e){var n;return"string"!=typeof t?t:(n=t.normalize?t.normalize("NFD"):t).length!==t.length?(!0===e?t+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},A=function(t){if(Array.from&&Set)return Array.from(new Set(t));if(function(t){if(!(t.length<2))for(var e=t.slice().sort(),n=e[0],i=1,r=e.length;i<r;i++){if(e[i]===n)return!1;n=e[i]}return!0}(t))return t.slice();var e,n,i,r=[],o=t.length,s=0;t:for(n=0;n<o;n++){for(e=t[n],i=0;i<s;i++)if(r[i]===e)continue t;r.push(e),s++}return r},D=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)D(t,e[n]);else t.push(e);return t};function E(t,e){e&&e.split(" ").forEach((function(e){e&&t.classList.add(e)}))}function M(e){var n,i,r={};t.each(e,(function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=t.replace(n[0],n[2].toLowerCase()),r[i]=t,"o"===n[1])&&M(e[t])})),e._hungarianMap=r}function O(e,n,i){var r;e._hungarianMap||M(e),t.each(n,(function(o){void 0===(r=e._hungarianMap[o])||!i&&void 0!==n[r]||("o"===r.charAt(0)?(n[r]||(n[r]={}),t.extend(!0,n[r],n[o]),O(e[r],n[r],i)):n[r]=n[o])}))}p.util={diacritics:function(t,e){if("function"!=typeof t)return T(t,e);T=t},debounce:function(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){t.apply(i,r)}),e||250)}},throttle:function(t,e){var n,i,r=void 0!==e?e:200;return function(){var e=this,o=+new Date,s=arguments;n&&o<n+r?(clearTimeout(i),i=setTimeout((function(){n=void 0,t.apply(e,s)}),r)):(n=o,t.apply(e,s))}},escapeRegex:function(t){return t.replace(b,"\\$1")},set:function(e){var n;return t.isPlainObject(e)?p.util.set(e._):null===e?function(){}:"function"==typeof e?function(t,n,i){e(t,"set",n,i)}:"string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("(")?function(t,n){t[e]=n}:(n=function(t,e,i){for(var r,o,s,a,l=J(i),c=(i=l[l.length-1],0),u=l.length-1;c<u;c++){if("__proto__"===l[c]||"constructor"===l[c])throw new Error("Cannot set prototype values");if(r=l[c].match(Q),o=l[c].match(Z),r){if(l[c]=l[c].replace(Q,""),t[l[c]]=[],(r=l.slice()).splice(0,c+1),a=r.join("."),Array.isArray(e))for(var d=0,h=e.length;d<h;d++)n(s={},e[d],a),t[l[c]].push(s);else t[l[c]]=e;return}o&&(l[c]=l[c].replace(Z,""),t=t[l[c]](e)),null!==t[l[c]]&&void 0!==t[l[c]]||(t[l[c]]={}),t=t[l[c]]}i.match(Z)?t[i.replace(Z,"")](e):t[i.replace(Q,"")]=e},function(t,i){return n(t,i,e)})},get:function(e){var n,i;return t.isPlainObject(e)?(n={},t.each(e,(function(t,e){e&&(n[t]=p.util.get(e))})),function(t,e,i,r){var o=n[e]||n._;return void 0!==o?o(t,e,i,r):t}):null===e?function(t){return t}:"function"==typeof e?function(t,n,i,r){return e(t,n,i,r)}:"string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("(")?function(t){return t[e]}:(i=function(t,e,n){var r,o,s;if(""!==n)for(var a=J(n),l=0,c=a.length;l<c;l++){if(h=a[l].match(Q),r=a[l].match(Z),h){if(a[l]=a[l].replace(Q,""),""!==a[l]&&(t=t[a[l]]),o=[],a.splice(0,l+1),s=a.join("."),Array.isArray(t))for(var u=0,d=t.length;u<d;u++)o.push(i(t[u],e,s));var h=h[0].substring(1,h[0].length-1);t=""===h?o:o.join(h);break}if(r)a[l]=a[l].replace(Z,""),t=t[a[l]]();else{if(null===t||null===t[a[l]])return null;if(void 0===t||void 0===t[a[l]])return;t=t[a[l]]}}return t},function(t,n){return i(t,n,e)})},stripHtml:function(t){var e=typeof t;if("function"!=e)return"string"==e?k(t):t;k=t},escapeHtml:function(t){var e=typeof t;if("function"!=e)return"string"==e||Array.isArray(t)?S(t):t;S=t},unique:A};var P=function(t,e,n){void 0!==t[e]&&(t[n]=t[e])};function L(t){P(t,"ordering","bSort"),P(t,"orderMulti","bSortMulti"),P(t,"orderClasses","bSortClasses"),P(t,"orderCellsTop","bSortCellsTop"),P(t,"order","aaSorting"),P(t,"orderFixed","aaSortingFixed"),P(t,"paging","bPaginate"),P(t,"pagingType","sPaginationType"),P(t,"pageLength","iDisplayLength"),P(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),"object"==typeof t.bSort?(t.orderIndicators=void 0===t.bSort.indicators||t.bSort.indicators,t.orderHandler=void 0===t.bSort.handler||t.bSort.handler,t.bSort=!0):!1===t.bSort&&(t.orderIndicators=!1,t.orderHandler=!1),"boolean"==typeof t.bSortCellsTop&&(t.titleRow=t.bSortCellsTop);var e=t.aoSearchCols;if(e)for(var n=0,i=e.length;n<i;n++)e[n]&&O(p.models.oSearch,e[n]);t.serverSide&&!t.searchDelay&&(t.searchDelay=400)}function I(t){P(t,"orderable","bSortable"),P(t,"orderData","aDataSort"),P(t,"orderSequence","asSorting"),P(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function N(e){var n=p.defaults.column,i=e.aoColumns.length;n=t.extend({},p.models.oColumn,n,{aDataSort:n.aDataSort||[i],mData:n.mData||i,idx:i,searchFixed:{},colEl:t("<col>").attr("data-dt-column",i)});(n=(e.aoColumns.push(n),e.aoPreSearchCols))[i]=t.extend({},p.models.oSearch,n[i])}function R(n,i,r){function o(t){return"string"==typeof t&&-1!==t.indexOf("@")}var s=n.aoColumns[i],a=(null!=r&&(I(r),O(p.defaults.column,r,!0),void 0===r.mDataProp||r.mData||(r.mData=r.mDataProp),r.sType&&(s._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),i=s.sClass,t.extend(s,r),Ut(s,r,"sWidth","sWidthOrig"),i!==s.sClass&&(s.sClass=i+" "+s.sClass),void 0!==r.iDataSort&&(s.aDataSort=[r.iDataSort]),Ut(s,r,"aDataSort")),s.mData),l=tt(a);s.mRender&&Array.isArray(s.mRender)&&(r=(i=s.mRender.slice()).shift(),s.mRender=p.render[r].apply(e,i)),s._render=s.mRender?tt(s.mRender):null,s._bAttrSrc=t.isPlainObject(a)&&(o(a.sort)||o(a.type)||o(a.filter)),s._setter=null,s.fnGetData=function(t,e,n){var i=l(t,e,void 0,n);return s._render&&e?s._render(i,e,t,n):i},s.fnSetData=function(t,e,n){return et(a)(t,e,n)},"number"==typeof a||s._isArrayHost||(n._rowReadObject=!0),n.oFeatures.bSort||(s.bSortable=!1)}function F(i){!function(i){if(i.oFeatures.bAutoWidth){var r,o,s=i.nTable,a=i.aoColumns,l=(d=i.oScroll).sY,u=d.sX,d=d.sXInner,h=H(i,"bVisible"),f=s.getAttribute("width"),g=s.parentNode,m=s.style.width;if((v=Lt(i))===i.containerWidth)return;i.containerWidth=v,m||f||(s.style.width="100%",m="100%"),m&&-1!==m.indexOf("%")&&(f=m),Gt(i,null,"column-calc",{visible:h},!1);var v,y=((v=t(s.cloneNode()).css("visibility","hidden").removeAttr("id")).append("<tbody>"),t("<tr/>").appendTo(v.find("tbody")));for(v.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),v.find("tfoot th, tfoot td").css("width",""),v.find("thead th, thead td").each((function(){var e=U(i,this,!0,!1);e?(this.style.width=e,u&&(this.style.minWidth=e,t(this).append(t("<div/>").css({width:e,margin:0,padding:0,border:0,height:1})))):this.style.width=""})),r=0;r<h.length;r++){o=a[b=h[r]];var b=function(t,e){var n=t.aoColumns[e];if(!n.maxLenString){for(var i,r="",o=-1,s=0,a=t.aiDisplayMaster.length;s<a;s++){var l;l=(l=(l=st(t,l=t.aiDisplayMaster[s])[e])&&"object"==typeof l&&l.nodeType?l.innerHTML:l+"").replace(/id=".*?"/g,"").replace(/name=".*?"/g,""),(i=k(l).replace(/&nbsp;/g," ")).length>o&&(r=l,o=i.length)}n.maxLenString=r}return n.maxLenString}(i,b),x=c.type.className[o.sType],w=b+o.sContentPadding;b=-1===b.indexOf("<")?n.createTextNode(w):w;t("<td/>").addClass(x).addClass(o.sClass).append(b).appendTo(y)}t("[name]",v).removeAttr("name");m=t("<div/>").css(u||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(v).appendTo(g);var _,C,S=(u&&d?v.width(d):u?(v.css("width","auto"),v.removeAttr("width"),v.outerWidth()<g.clientWidth&&f&&v.outerWidth(g.clientWidth)):l?v.outerWidth(g.clientWidth):f&&v.outerWidth(f),0),T=v.find("tbody tr").eq(0).children();for(r=0;r<h.length;r++){var A=T[r].getBoundingClientRect().width;S+=A,a[h[r]].sWidth=It(A)}s.style.width=It(S),m.remove(),f&&(s.style.width=It(f)),!f&&!u||i._reszEvt||(_=p.util.throttle((function(){var t=Lt(i);i.bDestroying||0===t||F(i)})),e.ResizeObserver?(C=t(i.nTableWrapper).is(":visible"),d=t("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(i.nTableWrapper),i.resizeObserver=new ResizeObserver((function(t){C?C=!1:_()})),i.resizeObserver.observe(d[0])):t(e).on("resize.DT-"+i.sInstance,_),i._reszEvt=!0)}}(i);for(var r=i,o=r.aoColumns,s=0;s<o.length;s++){var a=U(r,[s],!1,!1);o[s].colEl.css("width",a),r.oScroll.sX&&o[s].colEl.css("min-width",a)}var l=i.oScroll;""===l.sY&&""===l.sX||Pt(i),Gt(i,null,"column-sizing",[i])}function j(t,e){return"number"==typeof(t=H(t,"bVisible"))[e]?t[e]:null}function $(t,e){return-1!==(t=H(t,"bVisible").indexOf(e))?t:null}function z(e){var n=e.aoHeader,i=e.aoColumns,r=0;if(n.length)for(var o=0,s=n[0].length;o<s;o++)i[o].bVisible&&"none"!==t(n[0][o].cell).css("display")&&r++;return r}function H(t,e){var n=[];return t.aoColumns.map((function(t,i){t[e]&&n.push(i)})),n}function B(t,e){return!0===e?t._name:e}function W(t){for(var e,n,i,r,o,s,a=t.aoColumns,l=t.aoData,u=p.ext.type.detect,d=0,h=a.length;d<h;d++){if(s=[],!(o=a[d]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){if(!t.typeDetect)return;for(e=0,n=u.length;e<n;e++){var f=u[e],g=f.oneOf,m=f.allOf||f,v=f.init,y=!1,b=null;if(v&&(b=B(f,v(t,o,d)))){o.sType=b;break}for(i=0,r=l.length;i<r;i++)if(l[i]){if(void 0===s[i]&&(s[i]=G(t,i,d,"type")),g&&!y&&(y=B(f,g(s[i],t))),!(b=B(f,m(s[i],t)))&&e!==u.length-3)break;if("html"===b&&!w(s[i]))break}if(g&&y&&b||!g&&b){o.sType=b;break}}o.sType||(o.sType="string")}var x;if((x=((x=c.type.className[o.sType])&&(q(t.aoHeader,d,x),q(t.aoFooter,d,x)),c.type.render[o.sType]))&&!o._render){o._render=p.util.get(x),_=T=S=void 0;for(var _,C=t,k=d,S=C.aoData,T=0;T<S.length;T++)S[T].nTr&&(_=G(C,T,k,"display"),S[T].displayData[k]=_,K(S[T].anCells[k],_))}}}function q(t,e,n){t.forEach((function(t){t[e]&&t[e].unique&&E(t[e].cell,n)}))}function U(t,e,n,i){Array.isArray(e)||(e=V(e));for(var r,o=0,s=t.aoColumns,a=0,l=e.length;a<l;a++){var c=s[e[a]],u=n?c.sWidthOrig:c.sWidth;if(i||!1!==c.bVisible){if(null==u)return null;"number"==typeof u?(r="px",o+=u):(c=u.match(/([\d\.]+)([^\d]*)/))&&(o+=+c[1],r=3===c.length?c[2]:"px")}}return o+r}function V(e){return(e=t(e).closest("[data-dt-column]").attr("data-dt-column"))?e.split(",").map((function(t){return+t})):[]}function Y(e,n,i,r){for(var o=e.aoData.length,s=t.extend(!0,{},p.models.oRow,{src:i?"dom":"data",idx:o}),a=(s._aData=n,e.aoData.push(s),e.aoColumns),l=0,c=a.length;l<c;l++)a[l].sType=null;return e.aiDisplayMaster.push(o),void 0!==(n=e.rowIdFn(n))&&(e.aIds[n]=s),!i&&e.oFeatures.bDeferRender||at(e,o,i,r),o}function X(e,n){var i;return(n=n instanceof t?n:t(n)).map((function(t,n){return i=ot(e,n),Y(e,i.data,n,i.cells)}))}function G(t,e,n,i){if("search"===i?i="filter":"order"===i&&(i="sort"),s=t.aoData[e]){var r=t.iDraw,o=t.aoColumns[n],s=s._aData,a=o.sDefaultContent,l=o.fnGetData(s,i,{settings:t,row:e,col:n});if(void 0===(l="display"!==i&&l&&"object"==typeof l&&l.nodeName?l.innerHTML:l))return t.iDrawError!=r&&null===a&&(qt(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),a;if(l!==s&&null!==l||null===a||void 0===i){if("function"==typeof l)return l.call(s)}else l=a;return null===l&&"display"===i?"":l="filter"===i&&(e=p.ext.type.search)[o.sType]?e[o.sType](l):l}}function K(e,n){n&&"object"==typeof n&&n.nodeName?t(e).empty().append(n):e.innerHTML=n}var Q=/\[.*?\]$/,Z=/\(\)$/;function J(t){return(t.match(/(\\.|[^.])+/g)||[""]).map((function(t){return t.replace(/\\\./g,".")}))}var tt=p.util.get,et=p.util.set;function nt(t){return C(t.aoData,"_aData")}function it(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function rt(t,e,n,i){var r,o,s=t.aoData[e];if(s._aSortData=null,s._aFilterData=null,s.displayData=null,"dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var a=s.anCells,l=st(t,e);if(a)if(void 0!==i)K(a[i],l[i]);else for(r=0,o=a.length;r<o;r++)K(a[r],l[r])}else s._aData=ot(t,s,i,void 0===i?void 0:s._aData).data;var c=t.aoColumns;if(void 0!==i)c[i].sType=null,c[i].maxLenString=null;else{for(r=0,o=c.length;r<o;r++)c[r].sType=null,c[r].maxLenString=null;lt(t,s)}}function ot(t,e,n,i){function r(t,e){var n;"string"==typeof t&&-1!==(n=t.indexOf("@"))&&(n=t.substring(n+1),et(t)(i,e.getAttribute(n)))}function o(t){void 0!==n&&n!==d||(a=h[d],l=t.innerHTML.trim(),a&&a._bAttrSrc?(et(a.mData._)(i,l),r(a.mData.sort,t),r(a.mData.type,t),r(a.mData.filter,t)):p?(a._setter||(a._setter=et(a.mData)),a._setter(i,l)):i[d]=l),d++}var s,a,l,c=[],u=e.firstChild,d=0,h=t.aoColumns,p=t._rowReadObject;if(i=void 0!==i?i:p?{}:[],u)for(;u;)"TD"!=(s=u.nodeName.toUpperCase())&&"TH"!=s||(o(u),c.push(u)),u=u.nextSibling;else for(var f=0,g=(c=e.anCells).length;f<g;f++)o(c[f]);return(e=e.firstChild?e:e.nTr)&&(e=e.getAttribute("id"))&&et(t.rowId)(i,e),{data:i,cells:c}}function st(t,e){var n=t.aoData[e],i=t.aoColumns;if(!n.displayData){n.displayData=[];for(var r=0,o=i.length;r<o;r++)n.displayData.push(G(t,e,r,"display"))}return n.displayData}function at(e,i,r,o){var s,a,l,c,u,d,h=e.aoData[i],p=h._aData,f=[],g=e.oClasses.tbody.row;if(null===h.nTr){for(s=r||n.createElement("tr"),h.nTr=s,h.anCells=f,E(s,g),s._DT_RowIndex=i,lt(e,h),c=0,u=e.aoColumns.length;c<u;c++){l=e.aoColumns[c],(a=(d=!r||!o[c])?n.createElement(l.sCellType):o[c])||qt(e,0,"Incorrect column count",18),a._DT_CellIndex={row:i,column:c},f.push(a);var m=st(e,i);!d&&(!l.mRender&&l.mData===c||t.isPlainObject(l.mData)&&l.mData._===c+".display")||K(a,m[c]),E(a,l.sClass),l.bVisible&&d?s.appendChild(a):l.bVisible||d||a.parentNode.removeChild(a),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,a,G(e,i,c),p,i,c)}Gt(e,"aoRowCreatedCallback","row-created",[s,p,i,f])}else E(h.nTr,g)}function lt(e,n){var i=n.nTr,r=n._aData;i&&((e=e.rowIdFn(r))&&(i.id=e),r.DT_RowClass&&(e=r.DT_RowClass.split(" "),n.__rowc=n.__rowc?A(n.__rowc.concat(e)):e,t(i).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&t(i).attr(r.DT_RowAttr),r.DT_RowData)&&t(i).data(r.DT_RowData)}function ct(e,n){var i,r,o,s=e.oClasses,a=e.aoColumns,l="header"===n?e.nTHead:e.nTFoot,c="header"===n?"sTitle":n;if(l){if(("header"===n||C(e.aoColumns,c).join(""))&&1===(o=(o=t("tr",l)).length?o:t("<tr/>").appendTo(l)).length){var u=0;for(t("td, th",o).each((function(){u+=this.colSpan})),i=u,r=a.length;i<r;i++)t("<th/>").html(a[i][c]||"").appendTo(o)}var d=mt(e,l,!0);"header"===n?(e.aoHeader=d,t("tr",l).addClass(s.thead.row)):(e.aoFooter=d,t("tr",l).addClass(s.tfoot.row)),t(l).children("tr").children("th, td").each((function(){Qt(e,n)(e,t(this),s)}))}}function ut(e,n,i){var r,o,s,l,c,u=[],d=[],h=e.aoColumns;e=h.length;if(n){for(i=i||a(e).filter((function(t){return h[t].bVisible})),r=0;r<n.length;r++)u[r]=n[r].slice().filter((function(t,e){return i.includes(e)})),d.push([]);for(r=0;r<u.length;r++)for(o=0;o<u[r].length;o++)if(c=l=1,void 0===d[r][o]){for(s=u[r][o].cell;void 0!==u[r+l]&&u[r][o].cell==u[r+l][o].cell;)d[r+l][o]=null,l++;for(;void 0!==u[r][o+c]&&u[r][o].cell==u[r][o+c].cell;){for(var p=0;p<l;p++)d[r+p][o+c]=null;c++}var f=t("span.dt-column-title",s);d[r][o]={cell:s,colspan:c,rowspan:l,title:(f.length?f:t(s)).html()}}return d}}function dt(e,n){for(var i,r,o=ut(e,n),s=0;s<n.length;s++){if(i=n[s].row)for(;r=i.firstChild;)i.removeChild(r);for(var a=0;a<o[s].length;a++){var l=o[s][a];l&&t(l.cell).appendTo(i).attr("rowspan",l.rowspan).attr("colspan",l.colspan)}}}function ht(e,n){if(s="ssp"==Zt(u=e),void 0!==(l=u.iInitDisplayStart)&&-1!==l&&(u._iDisplayStart=!s&&l>=u.fnRecordsDisplay()?0:l,u.iInitDisplayStart=-1),-1!==Gt(e,"aoPreDrawCallback","preDraw",[e]).indexOf(!1))Et(e,!1);else{var i,r=[],o=0,s="ssp"==Zt(e),a=e.aiDisplay,l=e._iDisplayStart,u=e.fnDisplayEnd(),d=e.aoColumns,h=t(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,Et(e,!1);else if(s){if(!e.bDestroying&&!n)return 0===e.iDraw&&h.empty().append(ft(e)),(i=e).iDraw++,Et(i,!0),void vt(i,function(t){function e(t,e){return"function"==typeof n[t][e]?"function":n[t][e]}var n=t.aoColumns,i=t.oFeatures,r=t.oPreviousSearch,o=t.aoPreSearchCols;return{draw:t.iDraw,columns:n.map((function(t,n){return{data:e(n,"mData"),name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:o[n].search,regex:o[n].regex,fixed:Object.keys(t.searchFixed).map((function(e){return{name:e,term:t.searchFixed[e].toString()}}))}}})),order:$t(t).map((function(t){return{column:t.col,dir:t.dir,name:e(t.col,"sName")}})),start:t._iDisplayStart,length:i.bPaginate?t._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(t.searchFixed).map((function(e){return{name:e,term:t.searchFixed[e].toString()}}))}}}(i),(function(t){var e=i,n=yt(e,t=t),r=bt(e,"draw",t),o=bt(e,"recordsTotal",t);t=bt(e,"recordsFiltered",t);if(void 0!==r){if(+r<e.iDraw)return;e.iDraw=+r}n=n||[],it(e),e._iRecordsTotal=parseInt(o,10),e._iRecordsDisplay=parseInt(t,10);for(var s=0,a=n.length;s<a;s++)Y(e,n[s]);e.aiDisplay=e.aiDisplayMaster.slice(),W(e),ht(e,!0),Tt(e),Et(e,!1)}))}else e.iDraw++;if(0!==a.length)for(var p=s?e.aoData.length:u,f=s?0:l;f<p;f++){for(var g=a[f],m=e.aoData[g],v=(null===m.nTr&&at(e,g),m.nTr),y=0;y<d.length;y++){var b=d[y],x=m.anCells[y];E(x,c.type.className[b.sType]),E(x,e.oClasses.tbody.cell)}Gt(e,"aoRowCallback",null,[v,m._aData,o,f,g]),r.push(v),o++}else r[0]=ft(e);Gt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],nt(e),l,u,a]),Gt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],nt(e),l,u,a]),h[0].replaceChildren?h[0].replaceChildren.apply(h[0],r):(h.children().detach(),h.append(t(r))),t(e.nTableWrapper).toggleClass("dt-empty-footer",0===t("tr",e.nTFoot).length),Gt(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function pt(t,e,n){var i=(r=t.oFeatures).bSort,r=r.bFilter;void 0!==n&&!0!==n||(W(t),i&&zt(t),r?xt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice()),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,ht(t),t._drawHold=!1}function ft(e){var n=e.oLanguage,i=n.sZeroRecords,r=Zt(e);return"ssp"!==r&&"ajax"!==r||e.json?n.sEmptyTable&&0===e.fnRecordsTotal()&&(i=n.sEmptyTable):i=n.sLoadingRecords,t("<tr/>").append(t("<td />",{colSpan:z(e),class:e.oClasses.empty.row}).html(i))[0]}function gt(e,n,i){var r=[];t.each(n,(function(e,n){var o,s;null!==n&&(o=(e=e.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/))[2]?+e[2]:0,s=e[3]?e[3].toLowerCase():"full",e[1]===i)&&function e(n,i,r){if(Array.isArray(r))for(var o=0;o<r.length;o++)e(n,i,r[o]);else{var s=n[i];t.isPlainObject(r)?r.features?(r.rowId&&(n.id=r.rowId),r.rowClass&&(n.className=r.rowClass),s.id=r.id,s.className=r.className,e(n,i,r.features)):Object.keys(r).map((function(t){s.contents.push({feature:t,opts:r[t]})})):s.contents.push(r)}}(function(t,e,n){for(var i,r=0;r<t.length;r++)if((i=t[r]).rowNum===e&&("full"===n&&i.full||("start"===n||"end"===n)&&(i.start||i.end)))return i[n]||(i[n]={contents:[]}),i;return(i={rowNum:e})[n]={contents:[]},t.push(i),i}(r,o,s),s,n)})),r.sort((function(t,e){var n=t.rowNum,r=e.rowNum;return n===r?(t=t.full&&!e.full?-1:1,"bottom"===i?-1*t:t):r-n})),"bottom"===i&&r.reverse();for(var o=0;o<r.length;o++)delete r[o].rowNum,function(e,n){function i(t,n){return c.features[t]||qt(e,0,"Unknown feature: "+t),c.features[t].apply(this,[e,n])}function r(r){if(n[r])for(var o,s=n[r].contents,a=0,l=s.length;a<l;a++)s[a]&&("string"==typeof s[a]?s[a]=i(s[a],null):t.isPlainObject(s[a])?s[a]=i(s[a].feature,s[a].opts):"function"==typeof s[a].node?s[a]=s[a].node(e):"function"==typeof s[a]&&(o=s[a](e),s[a]="function"==typeof o.node?o.node():o))}r("start"),r("end"),r("full")}(e,r[o]);return r}function mt(e,n,i){for(var r,o,s,a,l,c,u=e.aoColumns,d=t(n).children("tr"),h=e.titleRow,p=n&&"thead"===n.nodeName.toLowerCase(),f=[],g=0,m=d.length;g<m;g++)f.push([]);for(g=0,m=d.length;g<m;g++)for(o=(r=d[g]).firstChild;o;){if("TD"==o.nodeName.toUpperCase()||"TH"==o.nodeName.toUpperCase()){var v,y,b,x,w,_=[],C=t(o);for(x=(x=+o.getAttribute("colspan"))&&0!=x&&1!=x?x:1,w=(w=+o.getAttribute("rowspan"))&&0!=w&&1!=w?w:1,l=function(t,e,n){for(var i=t[e];i[n];)n++;return n}(f,g,0),c=1==x,i&&(c&&(R(e,l,C.data()),v=u[l],y=o.getAttribute("width")||null,(b=o.style.width.match(/width:\s*(\d+[pxem%]+)/))&&(y=b[1]),v.sWidthOrig=v.sWidth||y,p?(null===v.sTitle||v.autoTitle||(!0===h&&0===g||!1===h&&g===d.length-1||h===g||null===h)&&(o.innerHTML=v.sTitle),!v.sTitle&&c&&(v.sTitle=k(o.innerHTML),v.autoTitle=!0)):v.footer&&(o.innerHTML=v.footer),v.ariaTitle||(v.ariaTitle=C.attr("aria-label")||v.sTitle),v.className)&&C.addClass(v.className),0===t("span.dt-column-title",o).length&&t("<span>").addClass("dt-column-title").append(o.childNodes).appendTo(o),e.orderIndicators&&p&&0!==C.filter(":not([data-dt-order=disable])").length&&0!==C.parent(":not([data-dt-order=disable])").length&&0===t("span.dt-column-order",o).length&&t("<span>").addClass("dt-column-order").appendTo(o),0===t("span.dt-column-"+(b=p?"header":"footer"),o).length)&&t("<div>").addClass("dt-column-"+b).append(o.childNodes).appendTo(o),a=0;a<x;a++){for(s=0;s<w;s++)f[g+s][l+a]={cell:o,unique:c},f[g+s].row=r;_.push(l+a)}o.setAttribute("data-dt-column",A(_).join(","))}o=o.nextSibling}return f}function vt(e,n,i){function r(t){var n=e.jqXHR?e.jqXHR.status:null;if((null===t||"number"==typeof n&&204==n)&&yt(e,t={},[]),(n=t.error||t.sError)&&qt(e,0,n),t.d&&"string"==typeof t.d)try{t=JSON.parse(t.d)}catch(t){}e.json=t,Gt(e,null,"xhr",[e,t,e.jqXHR],!0),i(t)}var o,s=e.ajax,a=e.oInstance,l=(t.isPlainObject(s)&&s.data&&(l="function"==typeof(o=s.data)?o(n,e):o,n="function"==typeof o&&l?l:t.extend(!0,n,l),delete s.data),{url:"string"==typeof s?s:"",data:n,success:r,dataType:"json",cache:!1,type:e.sServerMethod,error:function(t,n){-1===Gt(e,null,"xhr",[e,null,e.jqXHR],!0).indexOf(!0)&&("parsererror"==n?qt(e,0,"Invalid JSON response",1):4===t.readyState&&qt(e,0,"Ajax error",7)),Et(e,!1)}});t.isPlainObject(s)&&t.extend(l,s),e.oAjaxData=n,Gt(e,null,"preXhr",[e,n,l],!0),"json"===l.submitAs&&"object"==typeof n&&(l.data=JSON.stringify(n)),"function"==typeof s?e.jqXHR=s.call(a,n,r,e):""===s.url?(a={},p.util.set(s.dataSrc)(a,[]),r(a)):e.jqXHR=t.ajax(l),o&&(s.data=o)}function yt(e,n,i){var r="data";if(t.isPlainObject(e.ajax)&&void 0!==e.ajax.dataSrc&&("string"==typeof(e=e.ajax.dataSrc)||"function"==typeof e?r=e:void 0!==e.data&&(r=e.data)),!i)return"data"===r?n.aaData||n[r]:""!==r?tt(r)(n):n;et(r)(n,i)}function bt(e,n,i){return(e=t.isPlainObject(e.ajax)?e.ajax.dataSrc:null)&&e[n]?tt(e[n])(i):(e="","draw"===n?e="sEcho":"recordsTotal"===n?e="iTotalRecords":"recordsFiltered"===n&&(e="iTotalDisplayRecords"),void 0!==i[e]?i[e]:i[n])}function xt(e,n){var i=e.aoPreSearchCols;if("ssp"!=Zt(e)){for(var r,o,s,a,l,c=e,u=c.aoColumns,d=c.aoData,h=0;h<d.length;h++)if(d[h]&&!(l=d[h])._aFilterData){for(s=[],r=0,o=u.length;r<o;r++)u[r].bSearchable?"string"!=typeof(a=null===(a=G(c,h,r,"filter"))?"":a)&&a.toString&&(a=a.toString()):a="",a.indexOf&&-1!==a.indexOf("&")&&(Ct.innerHTML=a,a=kt?Ct.textContent:Ct.innerText),a.replace&&(a=a.replace(/[\r\n\u2028]/g,"")),s.push(a);l._aFilterData=s,l._sFilterRow=s.join("  ")}e.aiDisplay=e.aiDisplayMaster.slice(),wt(e.aiDisplay,e,n.search,n),t.each(e.searchFixed,(function(t,n){wt(e.aiDisplay,e,n,{})}));for(var f=0;f<i.length;f++){var g=i[f];wt(e.aiDisplay,e,g.search,g,f),t.each(e.aoColumns[f].searchFixed,(function(t,n){wt(e.aiDisplay,e,n,{},f)}))}for(var m,v,y=e,b=p.ext.search,x=y.aiDisplay,w=0,_=b.length;w<_;w++){for(var C=[],k=0,S=x.length;k<S;k++)v=x[k],m=y.aoData[v],b[w](y,m._aFilterData,v,m._aData,k)&&C.push(v);x.length=0,te(x,C)}}e.bFiltered=!0,Gt(e,null,"search",[e])}function wt(e,n,i,r,o){if(""!==i){var s=0,a=[],l="function"==typeof i?i:null,c=i instanceof RegExp?i:l?null:function(e,n){var i,r,o,s=[];n=t.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},n);return"string"!=typeof e&&(e=e.toString()),e=T(e),n.exact?new RegExp("^"+_t(e)+"$",n.caseInsensitive?"i":""):(e=n.regex?e:_t(e),n.smart&&(i=(e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map((function(t){var e,n=!1;return"!"===t.charAt(0)&&(n=!0,t=t.substring(1)),'"'===t.charAt(0)?t=(e=t.match(/^"(.*)"$/))?e[1]:t:"“"===t.charAt(0)&&(t=(e=t.match(/^\u201C(.*)\u201D$/))?e[1]:t),n&&(1<t.length&&s.push("(?!"+t+")"),t=""),t.replace(/"/g,"")})),r=s.length?s.join(""):"",e="^(?=.*?"+(o=n.boundary?"\\b":"")+i.join(")(?=.*?"+o)+")("+r+".)*$"),new RegExp(e,n.caseInsensitive?"i":""))}(i,r);for(s=0;s<e.length;s++){var u=n.aoData[e[s]],d=void 0===o?u._sFilterRow:u._aFilterData[o];(l&&l(d,u._aData,e[s],o)||c&&c.test(d))&&a.push(e[s])}for(e.length=a.length,s=0;s<a.length;s++)e[s]=a[s]}}var _t=p.util.escapeRegex,Ct=t("<div>")[0],kt=void 0!==Ct.textContent;function St(e){var n,i,r,o,s=e.oInit,a=e.deferLoading,l=Zt(e);e.bInitialised?(ct(e,"header"),ct(e,"footer"),r=function(){dt(e,e.aoHeader),dt(e,e.aoFooter);var i=e.iInitDisplayStart;if(s.aaData)for(n=0;n<s.aaData.length;n++)Y(e,s.aaData[n]);else!a&&"dom"!=l||X(e,t(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),function(e){var n,i=e.oClasses,r=t(e.nTable),o=t("<div/>").attr({id:e.sTableId+"_wrapper",class:i.container}).insertBefore(r);if(e.nTableWrapper=o[0],e.sDom)for(var s,a,l,c,u,d,h=e,f=(i=e.sDom,o),g=i.match(/(".*?")|('.*?')|./g),m=0;m<g.length;m++)s=null,"<"==(a=g[m])?(l=t("<div/>"),"'"!=(c=g[m+1])[0]&&'"'!=c[0]||(u="",-1!=(c=c.replace(/['"]/g,"")).indexOf(".")?(u=(d=c.split("."))[0],d=d[1]):"#"==c[0]?u=c:d=c,l.attr("id",u.substring(1)).addClass(d),m++),f.append(l),f=l):">"==a?f=f.parent():"t"==a?s=Ot(h):p.ext.feature.forEach((function(t){a==t.cFeature&&(s=t.fnInit(h))})),s&&f.append(s);else{r=gt(e,e.layout,"top"),i=gt(e,e.layout,"bottom");var v=Qt(e,"layout");r.forEach((function(t){v(e,o,t)})),v(e,o,{full:{table:!0,contents:[Ot(e)]}}),i.forEach((function(t){v(e,o,t)}))}i=(r=e).nTable;var y=""!==r.oScroll.sX||""!==r.oScroll.sY;r.oFeatures.bProcessing&&(n=t("<div/>",{id:r.sTableId+"_processing",class:r.oClasses.processing.container,role:"status"}).html(r.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>"),y?n.prependTo(t("div.dt-scroll",r.nTableWrapper)):n.insertBefore(i),t(i).on("processing.dt.DT",(function(t,e,i){n.css("display",i?"block":"none")})))}(e);var r=e,o=r.nTHead,c=o.querySelectorAll("tr"),u=r.titleRow,d=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';!0===u?o=c[0]:!1===u?o=c[c.length-1]:null!==u&&(o=c[u]),r.orderHandler&&Rt(r,o,o===r.nTHead?"tr"+d+" th"+d+", tr"+d+" td"+d:"th"+d+", td"+d),jt(r,c=[],r.aaSorting),r.aaSorting=c,Nt(e),Et(e,!0),Gt(e,null,"preInit",[e],!0),pt(e),"ssp"==l&&!a||("ajax"==l?vt(e,{},(function(t){var r=yt(e,t);for(n=0;n<r.length;n++)Y(e,r[n]);e.iInitDisplayStart=i,pt(e),Et(e,!1),Tt(e)})):(Tt(e),Et(e,!1)))},(i=e).oFeatures.bStateSave?void 0!==(o=i.fnStateLoadCallback.call(i.oInstance,i,(function(t){Wt(i,t,r)})))&&Wt(i,o,r):r()):setTimeout((function(){St(e)}),200)}function Tt(t){var e;t._bInitComplete||(e=[t,t.json],t._bInitComplete=!0,F(t),Gt(t,null,"plugin-init",e,!0),Gt(t,"aoInitComplete","init",e,!0))}function At(t,e){e=parseInt(e,10),t._iDisplayLength=e,Kt(t),Gt(t,null,"length",[t,e])}function Dt(t,e,n){var i=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();if(0===o||-1===r)i=0;else if("number"==typeof e)o<(i=e*r)&&(i=0);else if("first"==e)i=0;else if("previous"==e)(i=0<=r?i-r:0)<0&&(i=0);else if("next"==e)i+r<o&&(i+=r);else if("last"==e)i=Math.floor((o-1)/r)*r;else{if("ellipsis"===e)return;qt(t,0,"Unknown paging action: "+e,5)}o=t._iDisplayStart!==i,t._iDisplayStart=i,Gt(t,null,o?"page":"page-nc",[t]),o&&n&&ht(t)}function Et(t,e){t.bDrawing&&!1===e||Gt(t,null,"processing",[t,e])}function Mt(t,e,n){e?(Et(t,!0),setTimeout((function(){n(),Et(t,!1)}),0)):n()}function Ot(e){var n,i,r,o,s,a,l,c,u,d,h,p,f,g=t(e.nTable),m=e.oScroll;return""===m.sX&&""===m.sY?e.nTable:(n=m.sX,i=m.sY,r=e.oClasses.scrolling,s=(o=e.captionNode)?o._captionSide:null,u=t(g[0].cloneNode(!1)),a=t(g[0].cloneNode(!1)),d=function(t){return t?It(t):null},(l=g.children("tfoot")).length||(l=null),u=t(c="<div/>",{class:r.container}).append(t(c,{class:r.header.self}).css({overflow:"hidden",position:"relative",border:0,width:n?d(n):"100%"}).append(t(c,{class:r.header.inner}).css({"box-sizing":"content-box",width:m.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===s?o:null).append(g.children("thead"))))).append(t(c,{class:r.body}).css({position:"relative",overflow:"auto",width:d(n)}).append(g)),l&&u.append(t(c,{class:r.footer.self}).css({overflow:"hidden",border:0,width:n?d(n):"100%"}).append(t(c,{class:r.footer.inner}).append(a.removeAttr("id").css("margin-left",0).append("bottom"===s?o:null).append(g.children("tfoot"))))),d=u.children(),h=d[0],p=d[1],f=l?d[2]:null,t(p).on("scroll.DT",(function(){var t=this.scrollLeft;h.scrollLeft=t,l&&(f.scrollLeft=t)})),t("th, td",h).on("focus",(function(){var t=h.scrollLeft;p.scrollLeft=t,l&&(p.scrollLeft=t)})),t(p).css("max-height",i),m.bCollapse||t(p).css("height",i),e.nScrollHead=h,e.nScrollBody=p,e.nScrollFoot=f,e.aoDrawCallback.push(Pt),u[0])}function Pt(e){var n=e.oScroll,i=n.iBarWidth,r=t(e.nScrollHead).children("div"),o=r.children("table"),s=e.nScrollBody,a=t(s),l=t(e.nScrollFoot).children("div"),c=l.children("table"),u=t(e.nTHead),d=t(e.nTable),h=e.nTFoot&&t("th, td",e.nTFoot).length?t(e.nTFoot):null,p=e.oBrowser,f=s.scrollHeight>s.clientHeight;if(e.scrollBarVis!==f&&void 0!==e.scrollBarVis)e.scrollBarVis=f,F(e);else{if(e.scrollBarVis=f,d.children("thead, tfoot").remove(),(f=u.clone().prependTo(d)).find("th, td").removeAttr("tabindex"),f.find("[id]").removeAttr("id"),h&&(w=h.clone().prependTo(d)).find("[id]").removeAttr("id"),e.aiDisplay.length){for(var g=null,m="ssp"!==Zt(e)?e._iDisplayStart:0,v=m;v<m+e.aiDisplay.length;v++){var y=e.aiDisplay[v];if(y=e.aoData[y].nTr){g=y;break}}if(g){var b=t(g).children("th, td").map((function(n){return{idx:j(e,n),width:t(this).outerWidth()}}));for(v=0;v<b.length;v++){var x=e.aoColumns[b[v].idx].colEl[0];x.style.width.replace("px","")!==b[v].width&&(x.style.width=b[v].width+"px",n.sX)&&(x.style.minWidth=b[v].width+"px")}}}o.find("colgroup").remove(),o.append(e.colgroup.clone()),h&&(c.find("colgroup").remove(),c.append(e.colgroup.clone())),t("th, td",f).each((function(){t(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')})),h&&t("th, td",w).each((function(){t(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}));u=Math.floor(d.height())>s.clientHeight||"scroll"==a.css("overflow-y"),f="padding"+(p.bScrollbarLeft?"Left":"Right");var w=d.outerWidth();o.css("width",It(w)),r.css("width",It(w)).css(f,u?i+"px":"0px"),h&&(c.css("width",It(w)),l.css("width",It(w)).css(f,u?i+"px":"0px")),d.children("colgroup").prependTo(d),a.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(s.scrollTop=0)}}function Lt(e){return t(e.nTableWrapper).is(":visible")?t(e.nTableWrapper).width():0}function It(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Nt(t){var e=t.aoColumns;for(t.colgroup.empty(),Oe=0;Oe<e.length;Oe++)e[Oe].bVisible&&t.colgroup.append(e[Oe].colEl)}function Rt(t,e,n,i,r){Yt(e,n,(function(e){var n=!1,o=void 0===i?V(e.target):Array.isArray(i)?i:[i];if(o.length){for(var s=0,a=o.length;s<a&&(!1!==function(t,e,n,i){function r(t,e){var n=t._idx;return(n=void 0===n?l.indexOf(t[1]):n)+1<l.length?n+1:e?null:0}var o,s=t.aoColumns[e],a=t.aaSorting,l=s.asSorting;if(!s.bSortable)return!1;"number"==typeof a[0]&&(a=t.aaSorting=[a]),(i||n)&&t.oFeatures.bSortMulti?-1!==(s=C(a,"0").indexOf(e))?null===(o=null===(o=r(a[s],!0))&&1===a.length?0:o)?a.splice(s,1):(a[s][1]=l[o],a[s]._idx=o):(i?a.push([e,l[0],0]):a.push([e,a[0][1],0]),a[a.length-1]._idx=0):a.length&&a[0][0]==e?(o=r(a[0]),a.length=1,a[0][1]=l[o],a[0]._idx=o):(a.length=0,a.push([e,l[0]]),a[0]._idx=0)}(t,o[s],s,e.shiftKey)&&(n=!0),1!==t.aaSorting.length||""!==t.aaSorting[0][1]);s++);n&&Mt(t,!0,(function(){zt(t),Ft(t,t.aiDisplay),pt(t,!1,!1),r&&r()}))}}))}function Ft(t,e){if(!(e.length<2)){for(var n=t.aiDisplayMaster,i={},r={},o=0;o<n.length;o++)i[n[o]]=o;for(o=0;o<e.length;o++)r[e[o]]=i[e[o]];e.sort((function(t,e){return r[t]-r[e]}))}}function jt(e,n,i){function r(i){var r;t.isPlainObject(i)?void 0!==i.idx?n.push([i.idx,i.dir]):i.name&&-1!==(r=C(e.aoColumns,"sName").indexOf(i.name))&&n.push([r,i.dir]):n.push(i)}if(t.isPlainObject(i))r(i);else if(i.length&&"number"==typeof i[0])r(i);else if(i.length)for(var o=0;o<i.length;o++)r(i[o])}function $t(e){var n,i,r,o,s,a,l,c=[],u=p.ext.type.order,d=e.aoColumns,h=e.aaSortingFixed,f=t.isPlainObject(h),g=[];if(e.oFeatures.bSort)for(Array.isArray(h)&&jt(e,g,h),f&&h.pre&&jt(e,g,h.pre),jt(e,g,e.aaSorting),f&&h.post&&jt(e,g,h.post),n=0;n<g.length;n++)if(d[l=g[n][0]])for(i=0,r=(o=d[l].aDataSort).length;i<r;i++)a=d[s=o[i]].sType||"string",void 0===g[n]._idx&&(g[n]._idx=d[s].asSorting.indexOf(g[n][1])),g[n][1]&&c.push({src:l,col:s,dir:g[n][1],index:g[n]._idx,type:a,formatter:u[a+"-pre"],sorter:u[a+"-"+g[n][1]]});return c}function zt(t,e,n){var i,r,o,s,a,l=[],c=p.ext.type.order,u=t.aoData,d=t.aiDisplayMaster;for(W(t),void 0!==e?(s=t.aoColumns[e],a=[{src:e,col:e,dir:n,index:0,type:s.sType,formatter:c[s.sType+"-pre"],sorter:c[s.sType+"-"+n]}],d=d.slice()):a=$t(t),i=0,r=a.length;i<r;i++){_=x=g=f=h=b=void 0;var h,f,g,m=t,v=a[i].col,y=m.aoColumns[v],b=p.ext.order[y.sSortDataType];b&&(h=b.call(m.oInstance,m,v,$(m,v)));for(var x=p.ext.type.order[y.sType+"-pre"],w=m.aoData,_=0;_<w.length;_++)w[_]&&((f=w[_])._aSortData||(f._aSortData=[]),f._aSortData[v]&&!b||(g=b?h[_]:G(m,_,v,"sort"),f._aSortData[v]=x?x(g,m):g))}if("ssp"!=Zt(t)&&0!==a.length){for(i=0,o=d.length;i<o;i++)l[i]=i;a.length&&"desc"===a[0].dir&&t.orderDescReverse&&l.reverse(),d.sort((function(t,e){for(var n,i,r,o,s=a.length,c=u[t]._aSortData,d=u[e]._aSortData,h=0;h<s;h++)if(n=c[(o=a[h]).col],i=d[o.col],o.sorter){if(0!==(r=o.sorter(n,i)))return r}else if(0!=(r=n<i?-1:i<n?1:0))return"asc"===o.dir?r:-r;return(n=l[t])<(i=l[e])?-1:i<n?1:0}))}else 0===a.length&&d.sort((function(t,e){return t<e?-1:e<t?1:0}));return void 0===e&&(t.bSorted=!0,t.sortDetails=a,Gt(t,null,"order",[t,a])),d}function Ht(e){var n,i,r,o=e.aLastSort,s=e.oClasses.order.position,a=$t(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,i=o.length;n<i;n++)r=o[n].src,t(C(e.aoData,"anCells",r)).removeClass(s+(n<2?n+1:3));for(n=0,i=a.length;n<i;n++)r=a[n].src,t(C(e.aoData,"anCells",r)).addClass(s+(n<2?n+1:3))}e.aLastSort=a}function Bt(e){var n,i;e._bLoadingState||(jt(e,i=[],e.aaSorting),n=e.aoColumns,i={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:i.map((function(t){return n[t[0]]&&n[t[0]].sName?[n[t[0]].sName,t[1]]:t.slice()})),search:t.extend({},e.oPreviousSearch),columns:e.aoColumns.map((function(n,i){return{name:n.sName,visible:n.bVisible,search:t.extend({},e.aoPreSearchCols[i])}}))},e.oSavedState=i,Gt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,i))}function Wt(e,n,i){var r,o,s=e.aoColumns,a=C(e.aoColumns,"sName"),l=(e._bLoadingState=!0,e._bInitComplete?new p.Api(e):null);if(n&&n.time){var c=e.iStateDuration;if(0<c&&n.time<+new Date-1e3*c)e._bLoadingState=!1;else if(-1!==Gt(e,"aoStateLoadParams","stateLoadParams",[e,n]).indexOf(!1))e._bLoadingState=!1;else{if(e.oLoadedState=t.extend(!0,{},n),Gt(e,null,"stateLoadInit",[e,n],!0),void 0!==n.length&&(l?l.page.len(n.length):e._iDisplayLength=n.length),void 0!==n.start&&(null===l?(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start):Dt(e,n.start/e._iDisplayLength)),void 0!==n.order&&(e.aaSorting=[],t.each(n.order,(function(t,n){var i=[n[0],n[1]];if("string"==typeof n[0]){if((n=a.indexOf(n[0]))<0)return;i[0]=n}else if(i[0]>=s.length)return;e.aaSorting.push(i)}))),void 0!==n.search&&t.extend(e.oPreviousSearch,n.search),n.columns){var u,d=n.columns,h=C(n.columns,"name");if(h.join("").length&&h.join("")!==a.join(""))for(d=[],r=0;r<a.length;r++)""!=a[r]&&0<=(u=h.indexOf(a[r]))?d.push(n.columns[u]):d.push({});if(d.length===s.length){for(r=0,o=d.length;r<o;r++){var f=d[r];void 0!==f.visible&&(l?l.column(r).visible(f.visible,!1):s[r].bVisible=f.visible),void 0!==f.search&&t.extend(e.aoPreSearchCols[r],f.search)}l&&l.columns.adjust()}}e._bLoadingState=!1,Gt(e,"aoStateLoaded","stateLoaded",[e,n])}}else e._bLoadingState=!1;i()}function qt(t,n,i,r){if(i="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+i,r&&(i+=". For more information about this error, please see https://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(i);else if(n=(n=p.ext).sErrMode||n.errMode,t&&Gt(t,null,"dt-error",[t,r,i],!0),"alert"==n)alert(i);else{if("throw"==n)throw new Error(i);"function"==typeof n&&n(t,r,i)}}function Ut(e,n,i,r){Array.isArray(i)?t.each(i,(function(t,i){Array.isArray(i)?Ut(e,n,i[0],i[1]):Ut(e,n,i)})):(void 0===r&&(r=i),void 0!==n[i]&&(e[r]=n[i]))}function Vt(e,n,i){var r,o;for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r=n[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):i&&"data"!==o&&"aaData"!==o&&Array.isArray(r)?e[o]=r.slice():e[o]=r);return e}function Yt(e,n,i){t(e).on("click.DT",n,(function(t){i(t)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),i(t))})).on("selectstart.DT",n,(function(){return!1}))}function Xt(t,e,n){n&&t[e].push(n)}function Gt(e,n,i,r,o){var s=[];return n&&(s=e[n].slice().reverse().map((function(t){return t.apply(e.oInstance,r)}))),null!==i&&(n=t.Event(i+".dt"),i=t(e.nTable),n.dt=e.api,i[o?"trigger":"triggerHandler"](n,r),o&&0===i.parents("body").length&&t("body").trigger(n,r),s.push(n.result)),s}function Kt(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;n<=e&&(e=n-i),e-=e%i,t._iDisplayStart=e=-1===i||e<0?0:e}function Qt(e,n){e=e.renderer;var i=p.ext.renderer[n];return t.isPlainObject(e)&&e[n]?i[e[n]]||i._:"string"==typeof e&&i[e]||i._}function Zt(t){return t.oFeatures.bServerSide?"ssp":t.ajax?"ajax":"dom"}function Jt(t,e,n){var i=t.fnFormatNumber,r=t._iDisplayStart+1,o=t._iDisplayLength,s=t.fnRecordsDisplay(),a=t.fnRecordsTotal(),l=-1===o;return e.replace(/_START_/g,i.call(t,r)).replace(/_END_/g,i.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,i.call(t,a)).replace(/_TOTAL_/g,i.call(t,s)).replace(/_PAGE_/g,i.call(t,l?1:Math.ceil(r/o))).replace(/_PAGES_/g,i.call(t,l?1:Math.ceil(s/o))).replace(/_ENTRIES_/g,t.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,t.api.i18n("entries","",a)).replace(/_ENTRIES-TOTAL_/g,t.api.i18n("entries","",s))}function te(t,e){if(e)if(e.length<1e4)t.push.apply(t,e);else for(Oe=0;Oe<e.length;Oe++)t.push(e[Oe])}function ee(t,e,n){for(Array.isArray(n)||(n=[n]),Oe=0;Oe<n.length;Oe++)t.on(e+".dt",n[Oe])}var ne=[],ie=Array.prototype;function re(t,e,n){var i,r;n&&(i=new u(t)).one("draw",(function(){n(i.ajax.json())})),"ssp"==Zt(t)?pt(t,e):(Et(t,!0),(r=t.jqXHR)&&4!==r.readyState&&r.abort(),vt(t,{},(function(n){it(t);for(var i=yt(t,n),r=0,o=i.length;r<o;r++)Y(t,i[r]);pt(t,e),Tt(t),Et(t,!1)})))}function oe(t,e,n,i,r){for(var o,s=[],a=typeof e,l=0,u=(e=e&&"string"!=a&&"function"!=a&&void 0!==e.length?e:[e]).length;l<u;l++)(o=(o=n("string"==typeof e[l]?e[l].trim():e[l])).filter((function(t){return null!=t})))&&o.length&&(s=s.concat(o));var d=c.selector[t];if(d.length)for(l=0,u=d.length;l<u;l++)s=d[l](i,r,s);return A(s)}function se(e){return(e=e||{}).filter&&void 0===e.search&&(e.search=e.filter),t.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)}function ae(t){var e=new u(t.context[0]);return t.length&&e.push(t[0]),e.selector=t.selector,e.length&&1<e[0].length&&e[0].splice(1),e}function le(e,n){var i=e.context;if(i.length&&e.length&&(s=i[0].aoData[e[0]])._details){(s._detailsShow=n)?(s._details.insertAfter(s.nTr),t(s.nTr).addClass("dt-hasChild")):(s._details.detach(),t(s.nTr).removeClass("dt-hasChild")),Gt(i[0],null,"childRow",[n,e.row(e[0])]);var r=i[0],o=new u(r),s=(n="draw"+(s=".dt.DT_details"),e="column-sizing"+s,"destroy"+s),a=r.aoData;o.off(n+" "+e+" "+s),C(a,"_details").length>0&&(o.on(n,(function(t,e){r===e&&o.rows({page:"current"}).eq(0).each((function(t){var e=a[t];e._detailsShow&&e._details.insertAfter(e.nTr)}))})),o.on(e,(function(e,n){if(r===n)for(var i,o=z(n),s=0,l=a.length;s<l;s++)(i=a[s])&&i._details&&i._details.each((function(){var e=t(this).children("td");1==e.length&&e.attr("colspan",o)}))})),o.on(s,(function(t,e){if(r===e)for(var n=0,i=a.length;n<i;n++)a[n]&&a[n]._details&&me(o,n)}))),ge(i)}}function ce(t,e,n,i,r,o){for(var s=[],a=0,l=r.length;a<l;a++)s.push(G(t,r[a],e,o));return s}function ue(e,n,i){var r=e.aoHeader,o=(e=e.titleRow,null);if(void 0!==i)o=i;else if(!0===e)o=0;else if(!1===e)o=r.length-1;else if(null!==e)o=e;else{for(var s=0;s<r.length;s++)r[s][n].unique&&t("span.dt-column-title",r[s][n].cell).text()&&(o=s);null===o&&(o=0)}return r[o][n].cell}u=function(e,n){if(!(this instanceof u))return new u(e,n);function i(e){e=e,i=p.settings,r=C(i,"nTable");var n,i,r,s=e?e.nTable&&e.oFeatures?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(s=r.indexOf(e))?[i[s]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e).get():e instanceof t&&(n=e.get()),n?i.filter((function(t,e){return n.includes(r[e])})):void 0):[];s&&o.push.apply(o,s)}var r,o=[];if(Array.isArray(e))for(r=0;r<e.length;r++)i(e[r]);else i(e);this.context=1<o.length?A(o):o,te(this,n),this.selector={rows:null,cols:null,opts:null},u.extend(this,this,ne)},p.Api=u,t.extend(u.prototype,{any:function(){return 0!==this.count()},context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new u(e[t],this[t]):null},filter:function(t){return t=ie.filter.call(this,t,this),new u(this.context,t)},flatten:function(){var t=[];return new u(this.context,t.concat.apply(t,this.toArray()))},get:function(t){return this[t]},join:ie.join,includes:function(t){return-1!==this.indexOf(t)},indexOf:ie.indexOf,iterator:function(t,e,n,i){var r,o,s,a,l,c,d,h,p=[],f=this.context,g=this.selector;for("string"==typeof t&&(i=n,n=e,e=t,t=!1),o=0,s=f.length;o<s;o++){var m=new u(f[o]);if("table"===e)void 0!==(r=n.call(m,f[o],o))&&p.push(r);else if("columns"===e||"rows"===e)void 0!==(r=n.call(m,f[o],this[o],o))&&p.push(r);else if("every"===e||"column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[o],"column-rows"===e&&(c=pe(f[o],g.opts)),a=0,l=d.length;a<l;a++)h=d[a],void 0!==(r="cell"===e?n.call(m,f[o],h.row,h.column,o,a):n.call(m,f[o],h,o,a,c))&&p.push(r)}return p.length||i?((t=(i=new u(f,t?p.concat.apply([],p):p)).selector).rows=g.rows,t.cols=g.cols,t.opts=g.opts,i):this},lastIndexOf:ie.lastIndexOf,length:0,map:function(t){return t=ie.map.call(this,t,this),new u(this.context,t)},pluck:function(t){var e=p.util.get(t);return this.map((function(t){return e(t)}))},pop:ie.pop,push:ie.push,reduce:ie.reduce,reduceRight:ie.reduceRight,reverse:ie.reverse,selector:null,shift:ie.shift,slice:function(){return new u(this.context,this)},sort:ie.sort,splice:ie.splice,toArray:function(){return ie.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new u(this.context,A(this.toArray()))},unshift:ie.unshift}),e.__apiStruct=ne,u.extend=function(t,e,n){if(n.length&&e&&(e instanceof u||e.__dt_wrapper))for(var i,r=0,o=n.length;r<o;r++)"__proto__"!==(i=n[r]).name&&(e[i.name]="function"===i.type?function(t,e,n){return function(){var i=e.apply(t||this,arguments);return u.extend(i,i,n.methodExt),i}}(t,i.val,i):"object"===i.type?{}:i.val,e[i.name].__dt_wrapper=!0,u.extend(t,e[i.name],i.propExt))},u.register=d=function(e,n){if(Array.isArray(e))for(var i=0,r=e.length;i<r;i++)u.register(e[i],n);else for(var o=e.split("."),s=ne,a=0,l=o.length;a<l;a++){var c,d,h=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n];return null}(s,d=(c=-1!==o[a].indexOf("()"))?o[a].replace("()",""):o[a]);h||s.push(h={name:d,val:{},methodExt:[],propExt:[],type:"object"}),a===l-1?(h.val=n,h.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):s=c?h.methodExt:h.propExt}},u.registerPlural=h=function(t,e,n){u.register(t,n),u.register(e,(function(){var t=n.apply(this,arguments);return t===this?this:t instanceof u?t.length?Array.isArray(t[0])?new u(t.context,t[0]):t[0]:void 0:t}))},d("tables()",(function(e){return null!=e?new u(function e(n,i){var r,o;return Array.isArray(n)?(r=[],n.forEach((function(t){t=e(t,i),te(r,t)})),r.filter((function(t){return t}))):"number"==typeof n?[i[n]]:(o=i.map((function(t){return t.nTable})),t(o).filter(n).map((function(){var t=o.indexOf(this);return i[t]})).toArray())}(e,this.context)):this})),d("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new u(e[0]):t})),[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach((function(t){h("tables()."+t[0]+"()","table()."+t[1]+"()",(function(){return this.iterator("table",(function(e){return e[t[2]]}),1)}))})),[["header","aoHeader"],["footer","aoFooter"]].forEach((function(t){d("table()."+t[0]+".structure()",(function(e){var n=this.columns(e).indexes().flatten().toArray(),i=(e=ut(e=this.context[0],e[t[1]],n),n.slice().sort((function(t,e){return t-e})));return e.map((function(t){return n.map((function(e){return t[i.indexOf(e)]}))}))}))})),h("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),d("tables().every()",(function(t){var e=this;return this.iterator("table",(function(n,i){t.call(e.table(i),i)}))})),d("caption()",(function(e,n){var i,r=this.context;return void 0===e?(i=r[0].captionNode)&&r.length?i.innerHTML:null:this.iterator("table",(function(i){var r=t(i.nTable),o=t(i.captionNode),s=t(i.nTableWrapper);o.length||(o=t("<caption/>").html(e),i.captionNode=o[0],n)||(r.prepend(o),n=o.css("caption-side")),o.html(e),n&&(o.css("caption-side",n),o[0]._captionSide=n),(s.find("div.dataTables_scroll").length?(i="top"===n?"Head":"Foot",s.find("div.dataTables_scroll"+i+" table")):r).prepend(o)}),1)})),d("caption.node()",(function(){var t=this.context;return t.length?t[0].captionNode:null})),d("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?ht(e):pt(e,!1===(t="string"==typeof t?"full-hold"!==t:t))}))})),d("page()",(function(t){return void 0===t?this.page.info().page:this.iterator("table",(function(e){Dt(e,t)}))})),d("page.info()",(function(){var t,e,n,i,r;if(0!==this.context.length)return e=(t=this.context[0])._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,i=t.fnRecordsDisplay(),{page:(r=-1===n)?0:Math.floor(e/n),pages:r?1:Math.ceil(i/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===Zt(t)}})),d("page.len()",(function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",(function(e){At(e,t)}))})),d("ajax.json()",(function(){var t=this.context;if(0<t.length)return t[0].json})),d("ajax.params()",(function(){var t=this.context;if(0<t.length)return t[0].oAjaxData})),d("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){re(n,!1===e,t)}))})),d("ajax.url()",(function(e){var n=this.context;return void 0===e?0===n.length?void 0:(n=n[0],t.isPlainObject(n.ajax)?n.ajax.url:n.ajax):this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e}))})),d("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){re(n,!1===e,t)}))}));var de,he,pe=function(t,e){var n,i=[],r=t.aiDisplay,o=t.aiDisplayMaster,s=e.search,l=e.order;e=e.page;if("ssp"==Zt(t))return"removed"===s?[]:a(0,o.length);if("current"==e)for(u=t._iDisplayStart,d=t.fnDisplayEnd();u<d;u++)i.push(r[u]);else if("current"==l||"applied"==l){if("none"==s)i=o.slice();else if("applied"==s)i=r.slice();else if("removed"==s){for(var c={},u=0,d=r.length;u<d;u++)c[r[u]]=null;o.forEach((function(t){Object.prototype.hasOwnProperty.call(c,t)||i.push(t)}))}}else if("index"==l||"original"==l)for(u=0,d=t.aoData.length;u<d;u++)t.aoData[u]&&("none"==s||-1===(n=r.indexOf(u))&&"removed"==s||0<=n&&"applied"==s)&&i.push(u);else if("number"==typeof l){var h=zt(t,l,"asc");if("none"===s)i=h;else for(u=0;u<h.length;u++)(-1===(n=r.indexOf(h[u]))&&"removed"==s||0<=n&&"applied"==s)&&i.push(h[u])}return i},fe=(d("rows()",(function(e,n){void 0===e?e="":t.isPlainObject(e)&&(n=e,e=""),n=se(n);var r=this.iterator("table",(function(r){return a=oe("row",a=e,(function(e){var n=i(e),r=o.aoData;if(null!==n&&!c)return[n];if(u=u||pe(o,c),null!==n&&-1!==u.indexOf(n))return[n];if(null==e||""===e)return u;if("function"==typeof e)return u.map((function(t){var n=r[t];return e(t,n._aData,n.nTr)?t:null}));if(e.nodeName)return n=e._DT_RowIndex,a=e._DT_CellIndex,void 0!==n?r[n]&&r[n].nTr===e?[n]:[]:a?r[a.row]&&r[a.row].nTr===e.parentNode?[a.row]:[]:(n=t(e).closest("*[data-dt-row]")).length?[n.data("dt-row")]:[];if("string"==typeof e&&"#"===e.charAt(0)){var a=o.aIds[e.replace(/^#/,"")];if(void 0!==a)return[a.idx]}return n=l(s(o.aoData,u,"nTr")),t(n).filter(e).map((function(){return this._DT_RowIndex})).toArray()}),o=r,c=n),"current"!==c.order&&"applied"!==c.order||Ft(o,a),a;var o,a,c,u}),1);return r.selector.rows=e,r.selector.opts=n,r})),d("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||void 0}),1)})),d("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return s(t.aoData,e,"_aData")}),1)})),h("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){return e=e.aoData[n],"search"===t?e._aFilterData:e._aSortData}),1)})),h("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){rt(e,n,t)}))})),h("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),h("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,i=0,r=n.length;i<r;i++)for(var o=0,s=this[i].length;o<s;o++){var a=n[i].rowIdFn(n[i].aoData[this[i][o]]._aData);e.push((!0===t?"#":"")+a)}return new u(n,e)})),h("rows().remove()","row().remove()",(function(){return this.iterator("row",(function(t,e){var n,i=t.aoData,r=i[e];void 0!==(n=(-1!==(n=t.aiDisplayMaster.indexOf(e))&&t.aiDisplayMaster.splice(n,1),0<t._iRecordsDisplay&&t._iRecordsDisplay--,Kt(t),t.rowIdFn(r._aData)))&&delete t.aIds[n],i[e]=null})),this})),d("rows.add()",(function(t){var e=this.iterator("table",(function(e){for(var n,i=[],r=0,o=t.length;r<o;r++)(n=t[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?i.push(X(e,n)[0]):i.push(Y(e,n));return i}),1),n=this.rows(-1);return n.pop(),te(n,e),n})),d("row()",(function(t,e){return ae(this.rows(t,e))})),d("row().data()",(function(t){var e,n=this.context;return void 0===t?n.length&&this.length&&this[0].length?n[0].aoData[this[0]]._aData:void 0:((e=n[0].aoData[this[0]])._aData=t,Array.isArray(t)&&e.nTr&&e.nTr.id&&et(n[0].rowId)(t,e.nTr.id),rt(n[0],this[0],"data"),this)})),d("row().node()",(function(){var t=this.context;return t.length&&this.length&&this[0].length&&(t=t[0].aoData[this[0]])&&t.nTr?t.nTr:null})),d("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?X(t,e)[0]:Y(t,e)}));return this.row(n[0])})),t(n).on("plugin-init.dt",(function(t,e){var n=new u(e);n.on("stateSaveParams.DT",(function(t,e,n){for(var i=e.rowIdFn,r=e.aiDisplayMaster,o=[],s=0;s<r.length;s++){var a=r[s];(a=e.aoData[a])._detailsShow&&o.push("#"+i(a._aData))}n.childRows=o})),n.on("stateLoaded.DT",(function(t,e,i){fe(n,i)})),fe(n,n.state.loaded())})),function(t,e){e&&e.childRows&&t.rows(e.childRows.map((function(t){return t.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")}))).every((function(){Gt(t.settings()[0],null,"requestChild",[this])}))}),ge=p.util.throttle((function(t){Bt(t[0])}),500),me=function(e,n){var i=e.context;i.length&&(n=i[0].aoData[void 0!==n?n:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=void 0,n._details=void 0,t(n.nTr).removeClass("dt-hasChild"),ge(i))},ve="row().child",ye=ve+"()",be=(d(ye,(function(e,n){var i=this.context;return void 0===e?i.length&&this.length&&i[0].aoData[this[0]]?i[0].aoData[this[0]]._details:void 0:(!0===e?this.child.show():!1===e?me(this):i.length&&this.length&&function(e,n,i,r){var o=[];(function i(r,s){var a;if(Array.isArray(r)||r instanceof t)for(var l=0,c=r.length;l<c;l++)i(r[l],s);else r.nodeName&&"tr"===r.nodeName.toLowerCase()?(r.setAttribute("data-dt-row",n.idx),o.push(r)):(a=t("<tr><td></td></tr>").attr("data-dt-row",n.idx).addClass(s),t("td",a).addClass(s).html(r)[0].colSpan=z(e),o.push(a[0]))})(i,r),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(i[0],i[0].aoData[this[0]],e,n),this)})),d([ve+".show()",ye+".show()"],(function(){return le(this,!0),this})),d([ve+".hide()",ye+".hide()"],(function(){return le(this,!1),this})),d([ve+".remove()",ye+".remove()"],(function(){return me(this),this})),d(ve+".isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]&&t[0].aoData[this[0]]._detailsShow||!1})),/^([^:]+)?:(name|title|visIdx|visible)$/);function xe(e,n){t(e).find("span.dt-column-order").remove(),t(e).find("span.dt-column-title").each((function(){var e=t(this).html();t(this).parent().parent().append(e),t(this).remove()})),t(e).find("div.dt-column-"+n).remove(),t("th, td",e).removeAttr("data-dt-column")}function we(t,e){return function(n){return w(n)||"string"!=typeof n||(n=n.replace(g," "),t&&(n=k(n)),e&&(n=T(n,!1))),n}}function _e(t,e,n,i,r){return ke?t[e](r):Ce?t[n](r):i?t[i](r):t}d("columns()",(function(e,n){void 0===e?e="":t.isPlainObject(e)&&(n=e,e=""),n=se(n);var r=this.iterator("table",(function(r){return s=e,l=n,d=(o=r).aoColumns,h=function(t){for(var e=[],n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++){var r=t[n][i].cell;e.includes(r)||e.push(r)}return e}(o.aoHeader),s=oe("column",s,(function(e){var n,r=i(e);if(""===e)return a(d.length);if(null!==r)return[0<=r?r:d.length+r];if("function"==typeof e)return n=pe(o,l),d.map((function(t,i){return e(i,ce(o,i,0,0,n),ue(o,i))?i:null}));var s,p,f="string"==typeof e?e.match(be):"";if(f)switch(f[2]){case"visIdx":case"visible":return f[1]&&f[1].match(/^\d+$/)?(s=parseInt(f[1],10))<0?[(p=d.map((function(t,e){return t.bVisible?e:null})))[p.length+s]]:[j(o,s)]:d.map((function(e,n){return e.bVisible&&(!f[1]||0<t(h[n]).filter(f[1]).length)?n:null}));case"name":return(c=c||C(d,"sName")).map((function(t,e){return t===f[1]?e:null}));case"title":return(u=u||C(d,"sTitle")).map((function(t,e){return t===f[1]?e:null}));default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(r=t(h).filter(e).map((function(){return V(this)})).toArray().sort((function(t,e){return t-e}))).length||!e.nodeName?r:(r=t(e).closest("*[data-dt-column]")).length?[r.data("dt-column")]:[]}),o,l),l.columnOrder&&"index"===l.columnOrder?s.sort((function(t,e){return t-e})):s;var o,s,l,c,u,d,h}),1);return r.selector.cols=e,r.selector.opts=n,r})),h("columns().header()","column().header()",(function(t){return this.iterator("column",(function(e,n){return ue(e,n,t)}),1)})),h("columns().footer()","column().footer()",(function(t){return this.iterator("column",(function(e,n){return e.aoFooter.length?e.aoFooter[void 0!==t?t:0][n].cell:null}),1)})),h("columns().data()","column().data()",(function(){return this.iterator("column-rows",ce,1)})),h("columns().render()","column().render()",(function(t){return this.iterator("column-rows",(function(e,n,i,r,o){return ce(e,n,0,0,o,t)}),1)})),h("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),h("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,i,r,o){return s(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),h("columns().init()","column().init()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e]}),1)})),h("columns().names()","column().name()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].sName}),1)})),h("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,i,r){return s(t.aoData,r,"anCells",e)}),1)})),h("columns().titles()","column().title()",(function(e,n){return this.iterator("column",(function(i,r){return"number"==typeof e&&(n=e,e=void 0),r=t("span.dt-column-title",this.column(r).header(n)),void 0!==e?(r.html(e),this):r.html()}),1)})),h("columns().types()","column().type()",(function(){return this.iterator("column",(function(t,e){return(e=t.aoColumns[e].sType)||W(t),e}),1)})),h("columns().visible()","column().visible()",(function(e,n){var i=this,r=[],o=this.iterator("column",(function(n,i){if(void 0===e)return n.aoColumns[i].bVisible;!function(e,n,i){var r,o,s=e.aoColumns,a=s[n],l=e.aoData;if(void 0===i)return a.bVisible;if(a.bVisible===i)return!1;if(i)for(var c=C(s,"bVisible").indexOf(!0,n+1),u=0,d=l.length;u<d;u++)l[u]&&(o=l[u].nTr,r=l[u].anCells,o)&&o.insertBefore(r[n],r[c]||null);else t(C(e.aoData,"anCells",n)).detach();return a.bVisible=i,Nt(e),!0}(n,i,e)||r.push(i)}));return void 0!==e&&this.iterator("table",(function(o){dt(o,o.aoHeader),dt(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",z(o)),Bt(o),i.iterator("column",(function(t,i){r.includes(i)&&Gt(t,null,"column-visibility",[t,i,e,n])})),r.length&&(void 0===n||n)&&i.columns.adjust()})),o})),h("columns().widths()","column().width()",(function(){var e=this.columns(":visible").count(),n=(e=t("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>"),t(this.table().body()).append(e),e.children().map((function(){return t(this).outerWidth()})));return e.remove(),this.iterator("column",(function(t,e){return null!==(t=$(t,e))?n[t]:0}),1)})),h("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?$(e,n):n}),1)})),d("columns.adjust()",(function(){return this.iterator("table",(function(t){t.containerWidth=-1,F(t)}),1)})),d("column.index()",(function(t,e){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===t||"toData"===t?j(n,e):"fromData"===t||"toVisible"===t?$(n,e):void 0})),d("column()",(function(t,e){return ae(this.columns(t,e))})),d("cells()",(function(e,n,i){var r,o,a,c,u,d,h;return t.isPlainObject(e)&&(void 0===e.row?(i=e,e=null):(i=n,n=null)),t.isPlainObject(n)&&(i=n,n=null),null==n?this.iterator("table",(function(n){return r=n,n=e,o=se(i),g=r.aoData,m=pe(r,o),v=l(s(g,m,"anCells")),y=t(D([],v)),b=r.aoColumns.length,oe("cell",n,(function(e){var n,i="function"==typeof e;if(null==e||i){for(c=[],u=0,d=m.length;u<d;u++)for(a=m[u],h=0;h<b;h++)p={row:a,column:h},(!i||(f=g[a],e(p,G(r,a,h),f.anCells?f.anCells[h]:null)))&&c.push(p);return c}return t.isPlainObject(e)?void 0!==e.column&&void 0!==e.row&&-1!==m.indexOf(e.row)?[e]:[]:(n=y.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()).length||!e.nodeName?n:(f=t(e).closest("*[data-dt-row]")).length?[{row:f.data("dt-row"),column:f.data("dt-column")}]:[]}),r,o);var r,o,a,c,u,d,h,p,f,g,m,v,y,b})):(h=i?{page:i.page,order:i.order,search:i.search}:{},r=this.columns(n,h),o=this.rows(e,h),h=this.iterator("table",(function(t,e){var n=[];for(a=0,c=o[e].length;a<c;a++)for(u=0,d=r[e].length;u<d;u++)n.push({row:o[e][a],column:r[e][u]});return n}),1),h=i&&i.selected?this.cells(h,i):h,t.extend(h.selector,{cols:n,rows:e,opts:i}),h)})),h("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:void 0}),1)})),d("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return G(t,e,n)}),1)})),h("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,i){return e.aoData[n][t][i]}),1)})),h("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,i){return G(e,n,i,t)}),1)})),h("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:$(t,n)}}),1)})),h("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,i){rt(e,n,t,i)}))})),d("cell()",(function(t,e,n){return ae(this.cells(t,e,n))})),d("cell().data()",(function(t){var e,n,i,r,o,s=this.context,a=this[0];return void 0===t?s.length&&a.length?G(s[0],a[0].row,a[0].column):void 0:(e=s[0],n=a[0].row,i=a[0].column,r=e.aoColumns[i],o=e.aoData[n]._aData,r.fnSetData(o,t,{settings:e,row:n,col:i}),rt(s[0],a[0].row,"data",a[0].column),this)})),d("order()",(function(t,e){var n=this.context,i=Array.prototype.slice.call(arguments);return void 0===t?0!==n.length?n[0].aaSorting:void 0:("number"==typeof t?t=[[t,e]]:1<i.length&&(t=i),this.iterator("table",(function(e){var n=[];jt(e,n,t),e.aaSorting=n})))})),d("order.listener()",(function(t,e,n){return this.iterator("table",(function(i){Rt(i,t,{},e,n)}))})),d("order.fixed()",(function(e){var n;return e?this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},e)})):(n=(n=this.context).length?n[0].aaSortingFixed:void 0,Array.isArray(n)?{pre:n}:n)})),d(["columns().order()","column().order()"],(function(t){var e=this;return t?this.iterator("table",(function(n,i){n.aaSorting=e[i].map((function(e){return[e,t]}))})):this.iterator("column",(function(t,e){for(var n=$t(t),i=0,r=n.length;i<r;i++)if(n[i].col===e)return n[i].dir;return null}),1)})),h("columns().orderable()","column().orderable()",(function(t){return this.iterator("column",(function(e,n){return e=e.aoColumns[n],t?e.asSorting:e.bSortable}),1)})),d("processing()",(function(t){return this.iterator("table",(function(e){Et(e,t)}))})),d("search()",(function(e,n,i,r){var o=this.context;return void 0===e?0!==o.length?o[0].oPreviousSearch.search:void 0:this.iterator("table",(function(o){o.oFeatures.bFilter&&xt(o,"object"==typeof n?t.extend(o.oPreviousSearch,n,{search:e}):t.extend(o.oPreviousSearch,{search:e,regex:null!==n&&n,smart:null===i||i,caseInsensitive:null===r||r}))}))})),d("search.fixed()",(function(t,e){var n=this.iterator(!0,"table",(function(n){return n=n.searchFixed,t?void 0===e?n[t]:(null===e?delete n[t]:n[t]=e,this):Object.keys(n)}));return void 0!==t&&void 0===e?n[0]:n})),h("columns().search()","column().search()",(function(e,n,i,r){return this.iterator("column",(function(o,s){var a=o.aoPreSearchCols;if(void 0===e)return a[s].search;o.oFeatures.bFilter&&("object"==typeof n?t.extend(a[s],n,{search:e}):t.extend(a[s],{search:e,regex:null!==n&&n,smart:null===i||i,caseInsensitive:null===r||r}),xt(o,o.oPreviousSearch))}))})),d(["columns().search.fixed()","column().search.fixed()"],(function(t,e){var n=this.iterator(!0,"column",(function(n,i){return n=n.aoColumns[i].searchFixed,t?void 0===e?n[t]||null:(null===e?delete n[t]:n[t]=e,this):Object.keys(n)}));return void 0!==t&&void 0===e?n[0]:n})),d("state()",(function(e,n){var i;return e?(i=t.extend(!0,{},e),this.iterator("table",(function(t){!1!==n&&(i.time=+new Date+100),Wt(t,i,(function(){}))}))):this.context.length?this.context[0].oSavedState:null})),d("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),d("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),d("state.save()",(function(){return this.iterator("table",(function(t){Bt(t)}))})),p.use=function(i,r){var o="string"==typeof i?r:i;r="string"==typeof r?r:i;if(void 0===o&&"string"==typeof r)switch(r){case"lib":case"jq":return t;case"win":return e;case"datetime":return p.DateTime;case"luxon":return Ce;case"moment":return ke;case"bootstrap":return de||e.bootstrap;case"foundation":return he||e.Foundation;default:return null}"lib"===r||"jq"===r||o&&o.fn&&o.fn.jquery?t=o:"win"===r||o&&o.document?n=(e=o).document:"datetime"===r||o&&"DateTime"===o.type?p.DateTime=o:"luxon"===r||o&&o.FixedOffsetZone?Ce=o:"moment"===r||o&&o.isMoment?ke=o:"bootstrap"===r||o&&o.Modal&&"modal"===o.Modal.NAME?de=o:("foundation"===r||o&&o.Reveal)&&(he=o)},p.factory=function(i,r){var o=!1;return i&&i.document&&(n=(e=i).document),r&&r.fn&&r.fn.jquery&&(t=r,o=!0),o},p.versionCheck=function(t,e){for(var n,i,r=(e||p.version).split("."),o=t.split("."),s=0,a=o.length;s<a;s++)if((n=parseInt(r[s],10)||0)!==(i=parseInt(o[s],10)||0))return i<n;return!0},p.isDataTable=function(e){var n=t(e).get(0),i=!1;return e instanceof p.Api||(t.each(p.settings,(function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,s=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&s!==n||(i=!0)})),i)},p.tables=function(e){var n=!1,i=(t.isPlainObject(e)&&(n=e.api,e=e.visible),p.settings.filter((function(n){return!(e&&!t(n.nTable).is(":visible"))})).map((function(t){return t.nTable})));return n?new u(i):i},p.camelToHungarian=O,d("$()",(function(e,n){return n=this.rows(n).nodes(),n=t(n),t([].concat(n.filter(e).toArray(),n.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){d(n+"()",(function(){var e=Array.prototype.slice.call(arguments),i=(e[0]=e[0].split(/\s/).map((function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" "),t(this.tables().nodes()));return i[n].apply(i,e),this}))})),d("clear()",(function(){return this.iterator("table",(function(t){it(t)}))})),d("error()",(function(t){return this.iterator("table",(function(e){qt(e,0,t)}))})),d("settings()",(function(){return new u(this.context,this.context)})),d("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),d("data()",(function(){return this.iterator("table",(function(t){return C(t.aoData,"_aData")})).flatten()})),d("trigger()",(function(t,e,n){return this.iterator("table",(function(i){return Gt(i,null,t,e,n)})).flatten()})),d("ready()",(function(t){var e=this.context;return t?this.tables().every((function(){var e=this;this.context[0]._bInitComplete?t.call(e):this.on("init.dt.DT",(function(){t.call(e)}))})):e.length?e[0]._bInitComplete||!1:null})),d("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(i){var r=i.oClasses,o=i.nTable,s=i.nTBody,a=i.nTHead,l=i.nTFoot,c=t(o),d=(s=t(s),t(i.nTableWrapper)),h=i.aoData.map((function(t){return t?t.nTr:null})),f=r.order;i.bDestroying=!0,Gt(i,"aoDestroyCallback","destroy",[i],!0),n||new u(i).columns().visible(!0),i.resizeObserver&&i.resizeObserver.disconnect(),d.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+i.sInstance),o!=a.parentNode&&(c.children("thead").detach(),c.append(a)),l&&o!=l.parentNode&&(c.children("tfoot").detach(),c.append(l)),xe(a,"header"),xe(l,"footer"),i.colgroup.remove(),i.aaSorting=[],i.aaSortingFixed=[],Ht(i),t(c).find("th, td").removeClass(t.map(p.ext.type.className,(function(t){return t})).join(" ")),t("th, td",a).removeClass(f.none+" "+f.canAsc+" "+f.canDesc+" "+f.isAsc+" "+f.isDesc).css("width","").removeAttr("aria-sort"),s.children().detach(),s.append(h),l=i.nTableWrapper.parentNode,a=i.nTableWrapper.nextSibling;-1!==(s=(c[f=n?"remove":"detach"](),d[f](),!n&&l&&(l.insertBefore(o,a),c.css("width",i.sDestroyWidth).removeClass(r.table)),p.settings.indexOf(i)))&&p.settings.splice(s,1)}))})),t.each(["column","row","cell"],(function(t,e){d(e+"s().every()",(function(t){var n,i=this.selector.opts,r=this,o=0;return this.iterator("every",(function(s,a,l){n=r[e](a,i),"cell"===e?t.call(n,n[0][0].row,n[0][0].column,l,o):t.call(n,a,l,o),o++}))}))})),d("i18n()",(function(e,n,i){var r=this.context[0];e=tt(e)(r.oLanguage);return"string"==typeof(e=t.isPlainObject(e=void 0===e?n:e)?void 0!==i&&void 0!==e[i]?e[i]:e._:e)?e.replace("%d",i):e})),p.version="2.3.0",p.settings=[],p.models={},p.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1},p.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null},p.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,maxLenString:null,searchFixed:null},p.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:t.extend({},p.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null},M(p.defaults),p.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},M(p.defaults.column),p.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Zt(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Zt(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!o||i<n||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null},ye=p.ext.pager,t.extend(ye,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:ze,numbers_length:7}),t.extend(!0,p.ext.renderer,{pagingButton:{_:function(e,n,i,r,o){var s=[(e=e.oClasses.paging).button];return r&&s.push(e.active),o&&s.push(e.disabled),{display:r="ellipsis"===n?t('<span class="ellipsis"></span>').html(i)[0]:t("<button>",{class:s.join(" "),role:"link",type:"button"}).html(i),clicker:r}}},pagingContainer:{_:function(t,e){return e}}});var Ce,ke,Se=!1;function Te(t,n,i){var r;if(e.luxon&&!Ce&&(Ce=e.luxon),ke=e.moment&&!ke?e.moment:ke){if(!(r=ke.utc(t,n,i,!0)).isValid())return null}else if(Ce){if(!(r=n&&"string"==typeof t?Ce.DateTime.fromFormat(t,n):Ce.DateTime.fromISO(t)).isValid)return null;r=r.setLocale(i)}else n?(Se||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Se=!0):r=new Date(t);return r}function Ae(t){return function(e,n,i,r){0===arguments.length?(i="en",e=n=null):1===arguments.length?(i="en",n=e,e=null):2===arguments.length&&(i=n,n=e,e=null);var o="datetime"+(n?"-"+n:"");return p.ext.type.order[o+"-pre"]||p.type(o,{detect:function(t){return t===o&&o},order:{pre:function(t){return t.valueOf()}},className:"dt-right"}),function(s,a){var l;return null==s&&(s="--now"===r?(l=new Date,new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()))):""),"type"===a?o:""===s?"sort"!==a?"":Te("0000-01-01 00:00:00",null,i):(null===n||e!==n||"sort"===a||"type"===a||s instanceof Date)&&null!==(l=Te(s,e,i))?"sort"===a?l:(s=null===n?_e(l,"toDate","toJSDate","")[t]():_e(l,"format","toFormat","toISOString",n),"display"===a?S(s):s):s}}}var De=",",Ee=".";if(void 0!==e.Intl)try{for(var Me=(new Intl.NumberFormat).formatToParts(100000.1),Oe=0;Oe<Me.length;Oe++)"group"===Me[Oe].type?De=Me[Oe].value:"decimal"===Me[Oe].type&&(Ee=Me[Oe].value)}catch(h){}function Pe(t,e){return t=null!=t?t.toString().toLowerCase():"",e=null!=e?e.toString().toLowerCase():"",t.localeCompare(e,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})}function Le(t,e){return Pe(t=k(t),e=k(e))}p.datetime=function(t,e){var n="datetime-"+t;e=e||"en",p.ext.type.order[n]||p.type(n,{detect:function(i){var r=Te(i,t,e);return!(""!==i&&!r)&&n},order:{pre:function(n){return Te(n,t,e)||0}},className:"dt-right"})},p.render={date:Ae("toLocaleDateString"),datetime:Ae("toLocaleString"),time:Ae("toLocaleTimeString"),number:function(t,e,n,i,r){return null==t&&(t=De),null==e&&(e=Ee),{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;if(""===o||null===o)return o;var s=o<0?"-":"",a=parseFloat(o),l=Math.abs(a);return 1e11<=l||l<1e-4&&0!==l?(l=a.toExponential(n).split(/e\+?/))[0]+" x 10<sup>"+l[1]+"</sup>":isNaN(a)?S(o):(a=a.toFixed(n),o=Math.abs(a),l=parseInt(o,10),a=n?e+(o-l).toFixed(n).substring(2):"",(s=0===l&&0===parseFloat(a)?"":s)+(i||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+a+(r||""))}}},text:function(){return{display:S,filter:S}}};var Ie=p.ext.type,Ne=(p.type=function(t,e,n){if(!e)return{className:Ie.className[t],detect:Ie.detect.find((function(e){return e._name===t})),order:{pre:Ie.order[t+"-pre"],asc:Ie.order[t+"-asc"],desc:Ie.order[t+"-desc"]},render:Ie.render[t],search:Ie.search[t]};function i(e,n){Ie[e][t]=n}function r(e){Object.defineProperty(e,"_name",{value:t});var n=Ie.detect.findIndex((function(e){return e._name===t}));-1===n?Ie.detect.unshift(e):Ie.detect.splice(n,1,e)}function o(e){Ie.order[t+"-pre"]=e.pre,Ie.order[t+"-asc"]=e.asc,Ie.order[t+"-desc"]=e.desc}void 0===n&&(n=e,e=null),"className"===e?i("className",n):"detect"===e?r(n):"order"===e?o(n):"render"===e?i("render",n):"search"===e?i("search",n):e||(n.className&&i("className",n.className),void 0!==n.detect&&r(n.detect),n.order&&o(n.order),void 0!==n.render&&i("render",n.render),void 0!==n.search&&i("search",n.search))},p.types=function(){return Ie.detect.map((function(t){return t._name}))},p.type("string",{detect:function(){return"string"},order:{pre:function(t){return w(t)&&"boolean"!=typeof t?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""}},search:we(!1,!0)}),p.type("string-utf8",{detect:{allOf:function(t){return!0},oneOf:function(t){return!w(t)&&navigator.languages&&"string"==typeof t&&t.match(/[^\x00-\x7F]/)}},order:{asc:Pe,desc:function(t,e){return-1*Pe(t,e)}},search:we(!1,!0)}),p.type("html",{detect:{allOf:function(t){return w(t)||"string"==typeof t&&-1!==t.indexOf("<")},oneOf:function(t){return!w(t)&&"string"==typeof t&&-1!==t.indexOf("<")}},order:{pre:function(t){return w(t)?"":t.replace?k(t).trim().toLowerCase():t+""}},search:we(!0,!0)}),p.type("html-utf8",{detect:{allOf:function(t){return w(t)||"string"==typeof t&&-1!==t.indexOf("<")},oneOf:function(t){return navigator.languages&&!w(t)&&"string"==typeof t&&-1!==t.indexOf("<")&&"string"==typeof t&&t.match(/[^\x00-\x7F]/)}},order:{asc:Le,desc:function(t,e){return-1*Le(t,e)}},search:we(!0,!0)}),p.type("date",{className:"dt-type-date",detect:{allOf:function(t){var e;return!t||t instanceof Date||y.test(t)?null!==(e=Date.parse(t))&&!isNaN(e)||w(t):null},oneOf:function(t){return t instanceof Date||"string"==typeof t&&y.test(t)}},order:{pre:function(t){return t=Date.parse(t),isNaN(t)?-1/0:t}}}),p.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(t,e){return o(t,e=e.oLanguage.sDecimal,!0,!1)},oneOf:function(t,e){return o(t,e=e.oLanguage.sDecimal,!0,!1)}},order:{pre:function(t,e){return e=e.oLanguage.sDecimal,Ne(t,e,m,x)}},search:we(!0,!0)}),p.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(t,e){return o(t,e=e.oLanguage.sDecimal,!1,!0)},oneOf:function(t,e){return o(t,e=e.oLanguage.sDecimal,!1,!1)}},order:{pre:function(t,e){return e=e.oLanguage.sDecimal,Ne(t,e,m)}},search:we(!0,!0)}),p.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(t,e){return r(t,e=e.oLanguage.sDecimal,!0,!0)},oneOf:function(t,e){return r(t,e=e.oLanguage.sDecimal,!0,!1)}},order:{pre:function(t,e){return e=e.oLanguage.sDecimal,Ne(t,e,x)}}}),p.type("num",{className:"dt-type-numeric",detect:{allOf:function(t,e){return r(t,e=e.oLanguage.sDecimal,!1,!0)},oneOf:function(t,e){return r(t,e=e.oLanguage.sDecimal,!1,!1)}},order:{pre:function(t,e){return e=e.oLanguage.sDecimal,Ne(t,e)}}}),function(t,e,n,i){var r;return 0===t||t&&"-"!==t?"number"==(r=typeof t)||"bigint"==r?t:+(t=(t=e?_(t,e):t).replace&&(n&&(t=t.replace(n,"")),i)?t.replace(i,""):t):-1/0});function Re(t,e,n){n&&(t[e]=n)}t.extend(!0,p.ext.renderer,{footer:{_:function(t,e,n){e.addClass(n.tfoot.cell)}},header:{_:function(e,n,i){n.addClass(i.thead.cell),e.oFeatures.bSort||n.addClass(i.order.none);var r=e.titleRow,o=n.closest("thead").find("tr"),s=n.parent().index();"disable"===n.attr("data-dt-order")||"disable"===n.parent().attr("data-dt-order")||!0===r&&0!==s||!1===r&&s!==o.length-1||"number"==typeof r&&s!==r||t(e.nTable).on("order.dt.DT column-visibility.dt.DT",(function(t,r,o){if(e===r){var s=r.sortDetails;if(s){var a=C(s,"col");if("column-visibility"!==t.type||a.includes(o)){t=i.order,o=r.api.columns(n);for(var l=e.aoColumns[o.flatten()[0]],c=o.orderable().includes(!0),u="",d=o.indexes(),h=o.orderable(!0).flatten(),p=e.iTabIndex,f=r.orderHandler&&c,g=(n.removeClass(t.isAsc+" "+t.isDesc).toggleClass(t.none,!c).toggleClass(t.canAsc,f&&h.includes("asc")).toggleClass(t.canDesc,f&&h.includes("desc")),!0),m=0;m<d.length;m++)a.includes(d[m])||(g=!1);g&&(f=o.order(),n.addClass(f.includes("asc")?t.isAsc:""+f.includes("desc")?t.isDesc:""));var v=-1;for(m=0;m<a.length;m++)if(e.aoColumns[a[m]].bVisible){v=a[m];break}d[0]==v?(h=s[0],o=l.asSorting,n.attr("aria-sort","asc"===h.dir?"ascending":"descending"),u=o[h.index+1]?"Reverse":"Remove"):n.removeAttr("aria-sort"),c&&((f=n.find(".dt-column-order")).attr("role","button").attr("aria-label",c?l.ariaTitle+r.api.i18n("oAria.orderable"+u):l.ariaTitle),-1!==p)&&f.attr("tabindex",p)}}}}))}},layout:{_:function(e,n,i){var r=e.oClasses.layout,o=t("<div/>").attr("id",i.id||null).addClass(i.className||r.row).appendTo(n);p.ext.renderer.layout._forLayoutRow(i,(function(e,n){var i;"id"!==e&&"className"!==e&&(i="",n.table&&(o.addClass(r.tableRow),i+=r.tableCell+" "),i+="start"===e?r.start:"end"===e?r.end:r.full,t("<div/>").attr({id:n.id||null,class:n.className||r.cell+" "+i}).append(n.contents).appendTo(o))}))},_forLayoutRow:function(t,e){function n(t){switch(t){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}}Object.keys(t).sort((function(t,e){return n(t)-n(e)})).forEach((function(n){e(n,t[n])}))}}}),p.feature={},p.feature.register=function(t,e,n){p.ext.features[t]=e,n&&c.feature.push({cFeature:n,fnInit:e})},p.feature.register("div",(function(e,n){var i=t("<div>")[0];return n&&(Re(i,"className",n.className),Re(i,"id",n.id),Re(i,"innerHTML",n.html),Re(i,"textContent",n.text)),i})),p.feature.register("info",(function(e,n){var i,r,o;return e.oFeatures.bInfo?(i=e.oLanguage,r=e.sTableId,o=t("<div/>",{class:e.oClasses.info.container}),n=t.extend({callback:i.fnInfoCallback,empty:i.sInfoEmpty,postfix:i.sInfoPostFix,search:i.sInfoFiltered,text:i.sInfo},n),e.aoDrawCallback.push((function(t){var e=n,i=o,r=t._iDisplayStart+1,s=t.fnDisplayEnd(),a=t.fnRecordsTotal(),l=t.fnRecordsDisplay(),c=l?e.text:e.empty;l!==a&&(c+=" "+e.search),c=Jt(t,c+=e.postfix),e.callback&&(c=e.callback.call(t.oInstance,t,r,s,a,l,c)),i.html(c),Gt(t,null,"info",[t,i[0],c])})),e._infoEl||(o.attr({"aria-live":"polite",id:r+"_info",role:"status"}),t(e.nTable).attr("aria-describedby",r+"_info"),e._infoEl=o),o):null}),"i");var Fe=0;function je(t){var e=[];return t.numbers&&e.push("numbers"),t.previousNext&&(e.unshift("previous"),e.push("next")),t.firstLast&&(e.unshift("first"),e.push("last")),e}function $e(t,e,n,i){var r=t.oLanguage.oPaginate,o={display:"",active:!1,disabled:!1};switch(e){case"ellipsis":o.display="&#x2026;";break;case"first":o.display=r.sFirst,0===n&&(o.disabled=!0);break;case"previous":o.display=r.sPrevious,0===n&&(o.disabled=!0);break;case"next":o.display=r.sNext,0!==i&&n!==i-1||(o.disabled=!0);break;case"last":o.display=r.sLast,0!==i&&n!==i-1||(o.disabled=!0);break;default:"number"==typeof e&&(o.display=t.fnFormatNumber(e+1),n===e)&&(o.active=!0)}return o}function ze(t,e,n,i){var r=[],o=Math.floor(n/2),s=i?2:1,l=i?1:0;return e<=n?r=a(0,e):1===n?r=[t]:3===n?t<=1?r=[0,1,"ellipsis"]:e-2<=t?(r=a(e-2,e)).unshift("ellipsis"):r=["ellipsis",t,"ellipsis"]:t<=o?((r=a(0,n-s)).push("ellipsis"),i&&r.push(e-1)):e-1-o<=t?((r=a(e-(n-s),e)).unshift("ellipsis"),i&&r.unshift(0)):((r=a(t-o+s,t+o-l)).push("ellipsis"),r.unshift("ellipsis"),i&&(r.push(e-1),r.unshift(0))),r}p.feature.register("search",(function(e,i){var r,o,s,a,l,c,u,d,h,f;return e.oFeatures.bFilter?(r=e.oClasses.search,o=e.sTableId,h=e.oLanguage,s=e.oPreviousSearch,a='<input type="search" class="'+r.input+'"/>',-1===(i=t.extend({placeholder:h.sSearchPlaceholder,processing:!1,text:h.sSearch},i)).text.indexOf("_INPUT_")&&(i.text+="_INPUT_"),i.text=Jt(e,i.text),h=i.text.match(/_INPUT_$/),u=i.text.match(/^_INPUT_/),l=i.text.replace(/_INPUT_/,""),c="<label>"+i.text+"</label>",u?c="_INPUT_<label>"+l+"</label>":h&&(c="<label>"+l+"</label>_INPUT_"),(u=t("<div>").addClass(r.container).append(c.replace(/_INPUT_/,a))).find("label").attr("for","dt-search-"+Fe),u.find("input").attr("id","dt-search-"+Fe),Fe++,d=function(t){var n=this.value;s.return&&"Enter"!==t.key||n!=s.search&&Mt(e,i.processing,(function(){s.search=n,xt(e,s),e._iDisplayStart=0,ht(e)}))},h=null!==e.searchDelay?e.searchDelay:0,f=t("input",u).val(s.search).attr("placeholder",i.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?p.util.debounce(d,h):d).on("mouseup.DT",(function(t){setTimeout((function(){d.call(f[0],t)}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",o),t(e.nTable).on("search.dt.DT",(function(t,i){e===i&&f[0]!==n.activeElement&&f.val("function"!=typeof s.search?s.search:"")})),u):null}),"f"),p.feature.register("paging",(function(e,i){if(!e.oFeatures.bPaginate)return null;function r(){!function e(i,r,o){if(i._bInitComplete){var s=o.type?p.ext.pager[o.type]:je,a=i.oLanguage.oAria.paginate||{},l=i._iDisplayStart,c=i._iDisplayLength,u=i.fnRecordsDisplay(),d=-1===c,h=d?0:Math.ceil(l/c),f=d?1:Math.ceil(u/c),g=[],m=[];l=s(o).map((function(t){return"numbers"===t?ze(h,f,o.buttons,o.boundaryNumbers):t}));g=g.concat.apply(g,l);for(var v=0;v<g.length;v++){var y=g[v],b=$e(i,y,h,f),x=Qt(i,"pagingButton")(i,y,b.display,b.active,b.disabled),w="string"==typeof y?a[y]:a.number?a.number+(y+1):null;t(x.clicker).attr({"aria-controls":i.sTableId,"aria-disabled":b.disabled?"true":null,"aria-current":b.active?"page":null,"aria-label":w,"data-dt-idx":y,tabIndex:b.disabled?-1:i.iTabIndex&&"span"!==x.clicker[0].nodeName.toLowerCase()?i.iTabIndex:null}),"number"!=typeof y&&t(x.clicker).addClass(y),Yt(x.clicker,{action:y},(function(t){t.preventDefault(),Dt(i,t.data.action,!0)})),m.push(x.display)}d=Qt(i,"pagingContainer")(i,m),u=r.find(n.activeElement).data("dt-idx"),r.empty().append(d),void 0!==u&&r.find("[data-dt-idx="+u+"]").trigger("focus"),m.length&&(c=t(m[0]).outerHeight(),1<o.buttons)&&0<c&&t(r).height()>=2*c-10&&e(i,r,t.extend({},o,{buttons:o.buttons-2}))}}(e,o.children(),i)}i=t.extend({buttons:p.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},i);var o=t("<div/>").addClass(e.oClasses.paging.container+(i.type?" paging_"+i.type:"")).append(t("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav));return e.aoDrawCallback.push(r),t(e.nTable).on("column-sizing.dt.DT",r),o}),"p");var He=0;return p.feature.register("pageLength",(function(e,n){if(!(i=e.oFeatures).bPaginate||!i.bLengthChange)return null;n=t.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},n);var i=e.oClasses.length,r=e.sTableId,o=n.menu,s=[],a=[];if(Array.isArray(o[0]))s=o[0],a=o[1];else for(g=0;g<o.length;g++)t.isPlainObject(o[g])?(s.push(o[g].value),a.push(o[g].label)):(s.push(o[g]),a.push(o[g]));for(var l=n.text.match(/_MENU_$/),c=n.text.match(/^_MENU_/),u=n.text.replace(/_MENU_/,""),d=(n="<label>"+n.text+"</label>",c=(c?n="_MENU_<label>"+u+"</label>":l&&(n="<label>"+u+"</label>_MENU_"),"tmp-"+ +new Date),t("<div/>").addClass(i.container).append(n.replace("_MENU_",'<span id="'+c+'"></span>'))),h=[],p=(Array.prototype.slice.call(d.find("label")[0].childNodes).forEach((function(t){t.nodeType===Node.TEXT_NODE&&h.push({el:t,text:t.textContent})})),function(t){h.forEach((function(n){n.el.textContent=Jt(e,n.text,t)}))}),f=t("<select/>",{"aria-controls":r,class:i.select}),g=0;g<s.length;g++){var m=e.api.i18n("lengthLabels."+s[g],null);null===m&&(m="number"==typeof a[g]?e.fnFormatNumber(a[g]):a[g]),f[0][g]=new Option(m,s[g])}return d.find("label").attr("for","dt-length-"+He),f.attr("id","dt-length-"+He),He++,d.find("#"+c).replaceWith(f),t("select",d).val(e._iDisplayLength).on("change.DT",(function(){At(e,t(this).val()),ht(e)})),t(e.nTable).on("length.dt.DT",(function(n,i,r){e===i&&(t("select",d).val(r),p(r))})),p(e._iDisplayLength),d}),"l"),((t.fn.dataTable=p).$=t).fn.dataTableSettings=p.settings,t.fn.dataTableExt=p.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(p,(function(e,n){t.fn.DataTable[e]=n})),p})),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(i,r){return i=i||window,r=r||e(i),n(i,r),t(r,i,i.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}((function(t,e,n){"use strict";function i(e,n){if(!r.versionCheck||!r.versionCheck("2"))throw"DataTables Responsive requires DataTables 2 or newer";this.s={childNodeStore:{},columns:[],current:[],dt:new r.Api(e)},this.s.dt.settings()[0].responsive||(n&&"string"==typeof n.details?n.details={type:n.details}:n&&!1===n.details?n.details={type:!1}:n&&!0===n.details&&(n.details={type:"inline"}),this.c=t.extend(!0,{},i.defaults,r.defaults.responsive,n),(e.responsive=this)._constructor())}var r=t.fn.dataTable,o=(t.extend(i.prototype,{_constructor:function(){var n=this,i=this.s.dt,o=t(e).innerWidth(),s=(i.settings()[0]._responsive=this,t(e).on("orientationchange.dtr",r.util.throttle((function(){var i=t(e).innerWidth();i!==o&&(n._resize(),o=i)}))),i.on("row-created.dtr",(function(e,r,o,s){-1!==t.inArray(!1,n.s.current)&&t(">td, >th",r).each((function(e){e=i.column.index("toData",e),!1===n.s.current[e]&&t(this).css("display","none").addClass("dtr-hidden")}))})),i.on("destroy.dtr",(function(){i.off(".dtr"),t(i.table().body()).off(".dtr"),t(e).off("resize.dtr orientationchange.dtr"),i.cells(".dtr-control").nodes().to$().removeClass("dtr-control"),t(i.table().node()).removeClass("dtr-inline collapsed"),t.each(n.s.current,(function(t,e){!1===e&&n._setColumnVis(t,!0)}))})),this.c.breakpoints.sort((function(t,e){return t.width<e.width?1:t.width>e.width?-1:0})),this._classLogic(),this.c.details);!1!==s.type&&(n._detailsInit(),i.on("column-visibility.dtr",(function(){n._timer&&clearTimeout(n._timer),n._timer=setTimeout((function(){n._timer=null,n._classLogic(),n._resizeAuto(),n._resize(!0),n._redrawChildren()}),100)})),i.on("draw.dtr",(function(){n._redrawChildren()})),t(i.table().node()).addClass("dtr-"+s.type)),i.on("column-calc.dt",(function(t,e){for(var i=n.s.current,r=0;r<i.length;r++){var o=e.visible.indexOf(r);!1===i[r]&&0<=o&&e.visible.splice(o,1)}})),i.on("preXhr.dtr",(function(){var t=[];i.rows().every((function(){this.child.isShown()&&t.push(this.id(!0))})),i.one("draw.dtr",(function(){n._resizeAuto(),n._resize(),i.rows(t).every((function(){n._detailsDisplay(this,!1)}))}))})),i.on("draw.dtr",(function(){n._controlClass()})).ready((function(){n._resizeAuto(),n._resize(),i.on("column-reorder.dtr",(function(t,e,i){n._classLogic(),n._resizeAuto(),n._resize(!0)})),i.on("column-sizing.dtr",(function(){n._resizeAuto(),n._resize()}))}))},_colGroupAttach:function(t,e,n){var i=null;if(e[n].get(0).parentNode!==t[0]){for(var r=n+1;r<e.length;r++)if(t[0]===e[r].get(0).parentNode){i=r;break}null!==i?e[n].insertBefore(e[i][0]):t.append(e[n])}},_childNodes:function(t,e,n){var i=e+"-"+n;if(this.s.childNodeStore[i])return this.s.childNodeStore[i];for(var r=[],o=t.cell(e,n).node().childNodes,s=0,a=o.length;s<a;s++)r.push(o[s]);return this.s.childNodeStore[i]=r},_childNodesRestore:function(t,e,n){var i=e+"-"+n;if(this.s.childNodeStore[i]){var r=t.cell(e,n).node();if(0<(t=this.s.childNodeStore[i]).length){for(var o=t[0].parentNode.childNodes,s=[],a=0,l=o.length;a<l;a++)s.push(o[a]);for(var c=0,u=s.length;c<u;c++)r.appendChild(s[c])}this.s.childNodeStore[i]=void 0}},_columnsVisiblity:function(e){for(var n=this.s.dt,i=this.s.columns,r=i.map((function(t,e){return{columnIdx:e,priority:t.priority}})).sort((function(t,e){return t.priority!==e.priority?t.priority-e.priority:t.columnIdx-e.columnIdx})),o=t.map(i,(function(i,r){return!1===n.column(r).visible()?"not-visible":(!i.auto||null!==i.minWidth)&&(!0===i.auto?"-":-1!==t.inArray(e,i.includeIn))})),s=0,a=0,l=o.length;a<l;a++)!0===o[a]&&(s+=i[a].minWidth);var c=(c=n.settings()[0].oScroll).sY||c.sX?c.iBarWidth:0,u=n.table().container().offsetWidth-c-s;for(a=0,l=o.length;a<l;a++)i[a].control&&(u-=i[a].minWidth);var d=!1;for(a=0,l=r.length;a<l;a++){var h=r[a].columnIdx;"-"===o[h]&&!i[h].control&&i[h].minWidth&&(d||u-i[h].minWidth<0?o[h]=!(d=!0):o[h]=!0,u-=i[h].minWidth)}var p=!1;for(a=0,l=i.length;a<l;a++)if(!i[a].control&&!i[a].never&&!1===o[a]){p=!0;break}for(a=0,l=i.length;a<l;a++)i[a].control&&(o[a]=p),"not-visible"===o[a]&&(o[a]=!1);return-1===t.inArray(!0,o)&&(o[0]=!0),o},_classLogic:function(){function e(t,e,s,a){var l,c,u;if(s){if("max-"===s)for(l=n._find(e).width,c=0,u=i.length;c<u;c++)i[c].width<=l&&o(t,i[c].name);else if("min-"===s)for(l=n._find(e).width,c=0,u=i.length;c<u;c++)i[c].width>=l&&o(t,i[c].name);else if("not-"===s)for(c=0,u=i.length;c<u;c++)-1===i[c].name.indexOf(a)&&o(t,i[c].name)}else r[t].includeIn.push(e)}var n=this,i=this.c.breakpoints,r=this.s.dt.columns().eq(0).map((function(t){var e=(t=this.column(t)).header().className,n=t.init().responsivePriority;t=t.header().getAttribute("data-priority");return void 0===n&&(n=null==t?1e4:+t),{className:e,includeIn:[],auto:!1,control:!1,never:!!e.match(/\b(dtr\-)?never\b/),priority:n}})),o=function(e,n){e=r[e].includeIn,-1===t.inArray(n,e)&&e.push(n)};r.each((function(n,r){for(var o=n.className.split(" "),s=!1,a=0,l=o.length;a<l;a++){var c=o[a].trim();if("all"===c||"dtr-all"===c)return s=!0,void(n.includeIn=t.map(i,(function(t){return t.name})));if("none"===c||"dtr-none"===c||n.never)return void(s=!0);if("control"===c||"dtr-control"===c)return s=!0,void(n.control=!0);t.each(i,(function(t,n){var i=n.name.split("-"),o=new RegExp("(min\\-|max\\-|not\\-)?("+i[0]+")(\\-[_a-zA-Z0-9])?");(o=c.match(o))&&(s=!0,o[2]===i[0]&&o[3]==="-"+i[1]?e(r,n.name,o[1],o[2]+o[3]):o[2]!==i[0]||o[3]||e(r,n.name,o[1],o[2]))}))}s||(n.auto=!0)})),this.s.columns=r},_controlClass:function(){var e,n,i;"inline"===this.c.details.type&&(e=this.s.dt,n=this.s.current,i=t.inArray(!0,n),e.cells(null,(function(t){return t!==i}),{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control"),0<=i)&&e.cells(null,i,{page:"current"}).nodes().to$().addClass("dtr-control"),this._tabIndexes()},_detailsDisplay:function(e,n){function r(i){t(e.node()).toggleClass("dtr-expanded",!1!==i),t(a.table().node()).triggerHandler("responsive-display.dt",[a,e,i,n])}var o,s=this,a=this.s.dt,l=this.c.details;l&&!1!==l.type&&(o="string"==typeof l.renderer?i.renderer[l.renderer]():l.renderer,"boolean"==typeof(l=l.display(e,n,(function(){return o.call(s,a,e[0][0],s._detailsObj(e[0]))}),(function(){r(!1)}))))&&r(l)},_detailsInit:function(){var e=this,n=this.s.dt,i=("inline"===(r=this.c.details).type&&(r.target="td.dtr-control, th.dtr-control"),t(n.table().body()).on("keyup.dtr","td, th",(function(e){13===e.keyCode&&t(this).data("dtr-keyboard")&&t(this).click()})),r.target),r="string"==typeof i?i:"td, th";void 0===i&&null===i||t(n.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",r,(function(r){if(t(n.table().node()).hasClass("collapsed")&&-1!==t.inArray(t(this).closest("tr").get(0),n.rows().nodes().toArray())){if("number"==typeof i){var o=i<0?n.columns().eq(0).length+i:i;if(n.cell(this).index().column!==o)return}o=n.row(t(this).closest("tr")),"click"===r.type?e._detailsDisplay(o,!1):"mousedown"===r.type?t(this).css("outline","none"):"mouseup"===r.type&&t(this).trigger("blur").css("outline","")}}))},_detailsObj:function(e){var n=this,i=this.s.dt;return t.map(this.s.columns,(function(t,r){if(!t.never&&!t.control)return{className:i.settings()[0].aoColumns[r].sClass,columnIndex:r,data:i.cell(e,r).render(n.c.orthogonal),hidden:i.column(r).visible()&&!n.s.current[r],rowIndex:e,title:i.column(r).title()}}))},_find:function(t){for(var e=this.c.breakpoints,n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n]},_redrawChildren:function(){var t=this,e=this.s.dt;e.rows({page:"current"}).iterator("row",(function(n,i){t._detailsDisplay(e.row(i),!0)}))},_resize:function(n){for(var i,r=this,o=this.s.dt,s=t(e).innerWidth(),a=this.c.breakpoints,l=a[0].name,c=this.s.columns,u=this.s.current.slice(),d=a.length-1;0<=d;d--)if(s<=a[d].width){l=a[d].name;break}var h=this._columnsVisiblity(l),p=(this.s.current=h,!1);for(d=0,i=c.length;d<i;d++)if(!1===h[d]&&!c[d].never&&!c[d].control&&0==!o.column(d).visible()){p=!0;break}t(o.table().node()).toggleClass("collapsed",p);var f=!1,g=0,m=o.settings()[0],v=t(o.table().node()).children("colgroup"),y=m.aoColumns.map((function(t){return t.colEl}));o.columns().eq(0).each((function(t,e){o.column(t).visible()&&(!0===h[e]&&g++,!n&&h[e]===u[e]||(f=!0,r._setColumnVis(t,h[e])),h[e]?r._colGroupAttach(v,y,e):y[e].detach())})),f&&(o.columns.adjust(),this._redrawChildren(),t(o.table().node()).trigger("responsive-resize.dt",[o,this._responsiveOnlyHidden()]),0===o.page.info().recordsDisplay)&&t("td",o.table().body()).eq(0).attr("colspan",g),r._controlClass()},_resizeAuto:function(){var e=this.s.dt,n=this.s.columns,i=this,r=e.columns().indexes().filter((function(t){return e.column(t).visible()}));if(this.c.auto&&-1!==t.inArray(!0,t.map(n,(function(t){return t.auto})))){for(var o=e.table().node().cloneNode(!1),s=t(e.table().header().cloneNode(!1)).appendTo(o),a=t(e.table().footer().cloneNode(!1)).appendTo(o),l=t(e.table().body()).clone(!1,!1).empty().appendTo(o),c=(o.style.width="auto",e.table().header.structure(r).forEach(e=>{e=e.filter((function(t){return!!t})).map((function(e){return t(e.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)})),t("<tr/>").append(e).appendTo(s)}),t("<tr/>").appendTo(l)),u=0;u<r.count();u++)c.append("<td/>");this.c.details.renderer._responsiveMovesNodes?e.rows({page:"current"}).every((function(n){var o,s=this.node();s&&(o=s.cloneNode(!1),e.cells(n,r).every((function(e,r){((r=i.s.childNodeStore[n+"-"+r])?t(this.node().cloneNode(!1)).append(t(r).clone()):t(this.node()).clone(!1)).appendTo(o)})),l.append(o))})):t(l).append(t(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display",""),l.find("th, td").css("display",""),e.table().footer.structure(r).forEach(e=>{e=e.filter((function(t){return!!t})).map((function(e){return t(e.cell).clone(!1).css("display","table-cell").css("width","auto").css("min-width",0)})),t("<tr/>").append(e).appendTo(a)}),"inline"===this.c.details.type&&t(o).addClass("dtr-inline collapsed"),t(o).find("[name]").removeAttr("name"),t(o).css("position","relative"),(o=t("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(o)).insertBefore(e.table().node()),c.children().each((function(t){t=e.column.index("fromVisible",t),n[t].minWidth=this.offsetWidth||0})),o.remove()}},_responsiveOnlyHidden:function(){var e=this.s.dt;return t.map(this.s.current,(function(t,n){return!1===e.column(n).visible()||t}))},_setColumnVis:function(e,n){var i=this,r=this.s.dt,o=n?"":"none";this._setHeaderVis(e,n,r.table().header.structure()),this._setHeaderVis(e,n,r.table().footer.structure()),r.column(e).nodes().to$().css("display",o).toggleClass("dtr-hidden",!n),t.isEmptyObject(this.s.childNodeStore)||r.cells(null,e).indexes().each((function(t){i._childNodesRestore(r,t.row,t.column)}))},_setHeaderVis:function(e,n,i){var r=this,o=n?"":"none";i.forEach((function(t,e){for(var n=0;n<t.length;n++)if(t[n]&&1<t[n].rowspan)for(var r=t[n].rowspan,o=1;o<r;o++)i[e+o][n]={}})),i.forEach((function(i){if(i[e]&&i[e].cell)t(i[e].cell).css("display",o).toggleClass("dtr-hidden",!n);else for(var s=e;0<=s;){if(i[s]&&i[s].cell){i[s].cell.colSpan=r._colspan(i,s);break}s--}}))},_colspan:function(t,e){for(var n=1,i=e+1;i<t.length;i++)if(null===t[i]&&this.s.current[i])n++;else if(t[i])break;return n},_tabIndexes:function(){var e=this.s.dt,n=e.cells({page:"current"}).nodes().to$(),i=e.settings()[0],r=this.c.details.target;n.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"),("number"==typeof r?e.cells(null,r,{page:"current"}).nodes().to$():("td:first-child, th:first-child"===r&&(r=">td:first-child, >th:first-child"),n=e.rows({page:"current"}).nodes(),"tr"===r?t(n):t(r,n))).attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1)}}),i.defaults={breakpoints:i.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}],auto:!0,details:{display:(i.display={childRow:function(e,n,i){var r=t(e.node());return n?r.hasClass("dtr-expanded")?(e.child(i(),"child").show(),!0):void 0:r.hasClass("dtr-expanded")?(e.child(!1),!1):!1!==(n=i())&&(e.child(n,"child").show(),!0)},childRowImmediate:function(e,n,i){var r=t(e.node());return!n&&r.hasClass("dtr-expanded")||!e.responsive.hasHidden()?(e.child(!1),!1):!1!==(n=i())&&(e.child(n,"child").show(),!0)},modal:function(e){return function(i,r,o,s){if(!1===(o=o()))return!1;if(r){if(!(l=t("div.dtr-modal-content")).length||i.index()!==l.data("dtr-row-idx"))return null;l.empty().append(o)}else{var a=function(){l.remove(),t(n).off("keypress.dtr"),t(i.node()).removeClass("dtr-expanded"),s()},l=t('<div class="dtr-modal"/>').append(t('<div class="dtr-modal-display"/>').append(t('<div class="dtr-modal-content"/>').data("dtr-row-idx",i.index()).append(o)).append(t('<div class="dtr-modal-close">&times;</div>').click((function(){a()})))).append(t('<div class="dtr-modal-background"/>').click((function(){a()}))).appendTo("body");t(i.node()).addClass("dtr-expanded"),t(n).on("keyup.dtr",(function(t){27===t.keyCode&&(t.stopPropagation(),a())}))}return e&&e.header&&t("div.dtr-modal-content").prepend("<h2>"+e.header(i)+"</h2>"),!0}}}).childRow,renderer:(i.renderer={listHiddenNodes:function(){function e(e,n,i){var r=this,o=t('<ul data-dtr-index="'+n+'" class="dtr-details"/>'),s=!1;return t.each(i,(function(n,i){var a;i.hidden&&(a=i.className?'class="'+i.className+'"':"",t("<li "+a+' data-dtr-index="'+i.columnIndex+'" data-dt-row="'+i.rowIndex+'" data-dt-column="'+i.columnIndex+'"><span class="dtr-title">'+i.title+"</span> </li>").append(t('<span class="dtr-data"/>').append(r._childNodes(e,i.rowIndex,i.columnIndex))).appendTo(o),s=!0)})),!!s&&o}return e._responsiveMovesNodes=!0,e},listHidden:function(){return function(e,n,i){return!!(i=t.map(i,(function(t){var e=t.className?'class="'+t.className+'"':"";return t.hidden?"<li "+e+' data-dtr-index="'+t.columnIndex+'" data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><span class="dtr-title">'+t.title+'</span> <span class="dtr-data">'+t.data+"</span></li>":""})).join(""))&&t('<ul data-dtr-index="'+n+'" class="dtr-details"/>').append(i)}},tableAll:function(e){return e=t.extend({tableClass:""},e),function(n,i,r){return r=t.map(r,(function(t){return"<tr "+(t.className?'class="'+t.className+'"':"")+' data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+(""!==t.title?t.title+":":"")+"</td> <td>"+t.data+"</td></tr>"})).join(""),t('<table class="'+e.tableClass+' dtr-details" width="100%"/>').append(r)}}}).listHidden(),target:0,type:"inline"},orthogonal:"display"},t.fn.dataTable.Api);return o.register("responsive()",(function(){return this})),o.register("responsive.index()",(function(e){return{column:(e=t(e)).data("dtr-index"),row:e.parent().data("dtr-index")}})),o.register("responsive.rebuild()",(function(){return this.iterator("table",(function(t){t._responsive&&t._responsive._classLogic()}))})),o.register("responsive.recalc()",(function(){return this.iterator("table",(function(t){t._responsive&&(t._responsive._resizeAuto(),t._responsive._resize())}))})),o.register("responsive.hasHidden()",(function(){var e=this.context[0];return!!e._responsive&&-1!==t.inArray(!1,e._responsive._responsiveOnlyHidden())})),o.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",(function(){return this.iterator("column",(function(t,e){return!!t._responsive&&t._responsive._responsiveOnlyHidden()[e]}),1)})),i.version="3.0.4",t.fn.dataTable.Responsive=i,t.fn.DataTable.Responsive=i,t(n).on("preInit.dt.dtr",(function(e,n,o){"dt"===e.namespace&&(t(n.nTable).hasClass("responsive")||t(n.nTable).hasClass("dt-responsive")||n.oInit.responsive||r.defaults.responsive)&&!1!==(e=n.oInit.responsive)&&new i(n,t.isPlainObject(e)?e:{})})),r})),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(i,r){return i=i||window,r=r||e(i),n(i,r),t(r,0,i.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}((function(t,e,n){"use strict";var i=t.fn.dataTable;return t.extend(!0,i.defaults,{renderer:"bootstrap"}),t.extend(!0,i.ext.classes,{container:"dt-container dt-bootstrap4",search:{input:"form-control form-control-sm"},length:{select:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"},layout:{row:"row justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto mr-auto",end:"dt-layout-end col-md-auto ml-auto",full:"dt-layout-full col-md"}}),i.ext.renderer.pagingButton.bootstrap=function(e,n,i,r,o){var s=["dt-paging-button","page-item"];return{display:r=(r&&s.push("active"),o&&s.push("disabled"),t("<li>").addClass(s.join(" "))),clicker:t("<a>",{href:o?null:"#",class:"page-link"}).html(i).appendTo(r)}},i.ext.renderer.pagingContainer.bootstrap=function(e,n){return t("<ul/>").addClass("pagination").append(n)},i})),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-responsive"],(function(e){return t(e,window,document)})):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net-bs4")(t,e),e.fn.dataTable.Responsive||require("datatables.net-responsive")(t,e)},"undefined"==typeof window?module.exports=function(i,r){return i=i||window,r=r||e(i),n(i,r),t(r,0,i.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}((function(t,e,n){"use strict";var i=t.fn.dataTable,r=i.Responsive.display,o=r.modal,s=t('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body"/></div></div></div>');return r.modal=function(e){return function(i,r,a,l){if(t.fn.modal){var c,u,d=a();if(!1===d)return!1;if(r){if(!t.contains(n,s[0])||i.index()!==s.data("dtr-row-idx"))return null;s.find("div.modal-body").empty().append(d)}else e&&e.header&&(u=(c=s.find("div.modal-header")).find("button").detach(),c.empty().append('<h4 class="modal-title">'+e.header(i)+"</h4>").append(u)),s.find("div.modal-body").empty().append(d),s.data("dtr-row-idx",i.index()).one("hidden.bs.modal",l).appendTo("body").modal();return!0}return o(i,r,a,l)}},i})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(self,(function(){return function(){var t={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,n){var i=n(111);t.exports=function(t){if(!i(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:function(t,e,n){var i=n(5112),r=n(30),o=n(3070),s=i("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},1530:function(t,e,n){"use strict";var i=n(8710).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},5787:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},9670:function(t,e,n){var i=n(111);t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,n){"use strict";var i,r=n(4019),o=n(9781),s=n(7854),a=n(111),l=n(6656),c=n(648),u=n(8880),d=n(1320),h=n(3070).f,p=n(9518),f=n(7674),g=n(5112),m=n(9711),v=s.Int8Array,y=v&&v.prototype,b=s.Uint8ClampedArray,x=b&&b.prototype,w=v&&p(v),_=y&&p(y),C=Object.prototype,k=C.isPrototypeOf,S=g("toStringTag"),T=m("TYPED_ARRAY_TAG"),A=r&&!!f&&"Opera"!==c(s.opera),D=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},M={BigInt64Array:8,BigUint64Array:8},O=function(t){if(!a(t))return!1;var e=c(t);return l(E,e)||l(M,e)};for(i in E)s[i]||(A=!1);if((!A||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},A))for(i in E)s[i]&&f(s[i],w);if((!A||!_||_===C)&&(_=w.prototype,A))for(i in E)s[i]&&f(s[i].prototype,_);if(A&&p(x)!==_&&f(x,_),o&&!l(_,S))for(i in D=!0,h(_,S,{get:function(){return a(this)?this[T]:void 0}}),E)s[i]&&u(s[i],T,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:D&&T,aTypedArray:function(t){if(O(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(f){if(k.call(w,t))return t}else for(var e in E)if(l(E,i)){var n=s[e];if(n&&(t===n||k.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var i in E){var r=s[i];r&&l(r.prototype,t)&&delete r.prototype[t]}_[t]&&!n||d(_,t,n?e:A&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var i,r;if(o){if(f){if(n)for(i in E)(r=s[i])&&l(r,t)&&delete r[t];if(w[t]&&!n)return;try{return d(w,t,n?e:A&&v[t]||e)}catch(t){}}for(i in E)!(r=s[i])||r[t]&&!n||d(r,t,e)}},isView:function(t){if(!a(t))return!1;var e=c(t);return"DataView"===e||l(E,e)||l(M,e)},isTypedArray:O,TypedArray:w,TypedArrayPrototype:_}},3331:function(t,e,n){"use strict";var i=n(7854),r=n(9781),o=n(4019),s=n(8880),a=n(2248),l=n(7293),c=n(5787),u=n(9958),d=n(7466),h=n(7067),p=n(1179),f=n(9518),g=n(7674),m=n(8006).f,v=n(3070).f,y=n(1285),b=n(8003),x=n(9909),w=x.get,_=x.set,C="ArrayBuffer",k="DataView",S="Wrong index",T=i.ArrayBuffer,A=T,D=i.DataView,E=D&&D.prototype,M=Object.prototype,O=i.RangeError,P=p.pack,L=p.unpack,I=function(t){return[255&t]},N=function(t){return[255&t,t>>8&255]},R=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},F=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},j=function(t){return P(t,23,4)},$=function(t){return P(t,52,8)},z=function(t,e){v(t.prototype,e,{get:function(){return w(this)[e]}})},H=function(t,e,n,i){var r=h(n),o=w(t);if(r+e>o.byteLength)throw O(S);var s=w(o.buffer).bytes,a=r+o.byteOffset,l=s.slice(a,a+e);return i?l:l.reverse()},B=function(t,e,n,i,r,o){var s=h(n),a=w(t);if(s+e>a.byteLength)throw O(S);for(var l=w(a.buffer).bytes,c=s+a.byteOffset,u=i(+r),d=0;d<e;d++)l[c+d]=u[o?d:e-d-1]};if(o){if(!l((function(){T(1)}))||!l((function(){new T(-1)}))||l((function(){return new T,new T(1.5),new T(NaN),T.name!=C}))){for(var W,q=(A=function(t){return c(this,A),new T(h(t))}).prototype=T.prototype,U=m(T),V=0;U.length>V;)(W=U[V++])in A||s(A,W,T[W]);q.constructor=A}g&&f(E)!==M&&g(E,M);var Y=new D(new A(2)),X=E.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||a(E,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},{unsafe:!0})}else A=function(t){c(this,A,C);var e=h(t);_(this,{bytes:y.call(new Array(e),0),byteLength:e}),r||(this.byteLength=e)},D=function(t,e,n){c(this,D,k),c(t,A,k);var i=w(t).byteLength,o=u(e);if(o<0||o>i)throw O("Wrong offset");if(o+(n=void 0===n?i-o:d(n))>i)throw O("Wrong length");_(this,{buffer:t,byteLength:n,byteOffset:o}),r||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},r&&(z(A,"byteLength"),z(D,"buffer"),z(D,"byteLength"),z(D,"byteOffset")),a(D.prototype,{getInt8:function(t){return H(this,1,t)[0]<<24>>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t){var e=H(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=H(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return F(H(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return F(H(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return L(H(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return L(H(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){B(this,1,t,I,e)},setUint8:function(t,e){B(this,1,t,I,e)},setInt16:function(t,e){B(this,2,t,N,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){B(this,2,t,N,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){B(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){B(this,4,t,R,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){B(this,4,t,j,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){B(this,8,t,$,e,arguments.length>2?arguments[2]:void 0)}});b(A,C),b(D,k),t.exports={ArrayBuffer:A,DataView:D}},1048:function(t,e,n){"use strict";var i=n(7908),r=n(1400),o=n(7466),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),l=r(t,a),c=r(e,a),u=arguments.length>2?arguments[2]:void 0,d=s((void 0===u?a:r(u,a))-c,a-l),h=1;for(c<l&&l<c+d&&(h=-1,c+=d-1,l+=d-1);d-- >0;)c in n?n[l]=n[c]:delete n[l],l+=h,c+=h;return n}},1285:function(t,e,n){"use strict";var i=n(7908),r=n(1400),o=n(7466);t.exports=function(t){for(var e=i(this),n=o(e.length),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>a;)e[a++]=t;return e}},8533:function(t,e,n){"use strict";var i=n(2092).forEach,r=n(9341)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var i=n(9974),r=n(7908),o=n(3411),s=n(7659),a=n(7466),l=n(6135),c=n(1246);t.exports=function(t){var e,n,u,d,h,p,f=r(t),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=c(f),x=0;if(y&&(v=i(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&s(b))for(n=new g(e=a(f.length));e>x;x++)p=y?v(f[x],x):f[x],l(n,x,p);else for(h=(d=b.call(f)).next,n=new g;!(u=h.call(d)).done;x++)p=y?o(d,v,[u.value,x],!0):u.value,l(n,x,p);return n.length=x,n}},1318:function(t,e,n){var i=n(5656),r=n(7466),o=n(1400),s=function(t){return function(e,n,s){var a,l=i(e),c=r(l.length),u=o(s,c);if(t&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var i=n(9974),r=n(8361),o=n(7908),s=n(7466),a=n(5417),l=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,u=4==t,d=6==t,h=7==t,p=5==t||d;return function(f,g,m,v){for(var y,b,x=o(f),w=r(x),_=i(g,m,3),C=s(w.length),k=0,S=v||a,T=e?S(f,C):n||h?S(f,0):void 0;C>k;k++)if((p||k in w)&&(b=_(y=w[k],k,x),t))if(e)T[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:l.call(T,y)}else switch(t){case 4:return!1;case 7:l.call(T,y)}return d?-1:c||u?u:T}};t.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(t,e,n){"use strict";var i=n(5656),r=n(9958),o=n(7466),s=n(9341),a=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=s("lastIndexOf"),d=c||!u;t.exports=d?function(t){if(c)return l.apply(this,arguments)||0;var e=i(this),n=o(e.length),s=n-1;for(arguments.length>1&&(s=a(s,r(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:l},1194:function(t,e,n){var i=n(7293),r=n(5112),o=n(7392),s=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var i=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var i=n(3099),r=n(7908),o=n(8361),s=n(7466),a=function(t){return function(e,n,a,l){i(n);var c=r(e),u=o(c),d=s(c.length),h=t?d-1:0,p=t?-1:1;if(a<2)for(;;){if(h in u){l=u[h],h+=p;break}if(h+=p,t?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:d>h;h+=p)h in u&&(l=n(l,u[h],h,c));return l}};t.exports={left:a(!1),right:a(!0)}},5417:function(t,e,n){var i=n(111),r=n(3157),o=n(5112)("species");t.exports=function(t,e){var n;return r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},3411:function(t,e,n){var i=n(9670),r=n(9212);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){throw r(t),e}}},7072:function(t,e,n){var i=n(5112)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:function(t,e,n){var i=n(1694),r=n(4326),o=n(5112)("toStringTag"),s="Arguments"==r(function(){return arguments}());t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:s?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},9920:function(t,e,n){var i=n(6656),r=n(3887),o=n(1236),s=n(3070);t.exports=function(t,e){for(var n=r(e),a=s.f,l=o.f,c=0;c<n.length;c++){var u=n[c];i(t,u)||a(t,u,l(e,u))}}},8544:function(t,e,n){var i=n(7293);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var i=n(3383).IteratorPrototype,r=n(30),o=n(9114),s=n(8003),a=n(7497),l=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=r(i,{next:o(1,n)}),s(t,c,!1,!0),a[c]=l,t}},8880:function(t,e,n){var i=n(9781),r=n(3070),o=n(9114);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var i=n(7593),r=n(3070),o=n(9114);t.exports=function(t,e,n){var s=i(e);s in t?r.f(t,s,o(0,n)):t[s]=n}},654:function(t,e,n){"use strict";var i=n(2109),r=n(4994),o=n(9518),s=n(7674),a=n(8003),l=n(8880),c=n(1320),u=n(5112),d=n(1913),h=n(7497),p=n(3383),f=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",x=function(){return this};t.exports=function(t,e,n,u,p,w,_){r(n,e,u);var C,k,S,T=function(t){if(t===p&&O)return O;if(!g&&t in E)return E[t];switch(t){case v:case y:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",D=!1,E=t.prototype,M=E[m]||E["@@iterator"]||p&&E[p],O=!g&&M||T(p),P="Array"==e&&E.entries||M;if(P&&(C=o(P.call(new t)),f!==Object.prototype&&C.next&&(d||o(C)===f||(s?s(C,f):"function"!=typeof C[m]&&l(C,m,x)),a(C,A,!0,!0),d&&(h[A]=x))),p==y&&M&&M.name!==y&&(D=!0,O=function(){return M.call(this)}),d&&!_||E[m]===O||l(E,m,O),h[e]=O,p)if(k={values:T(y),keys:w?O:T(v),entries:T(b)},_)for(S in k)(g||D||!(S in E))&&c(E,S,k[S]);else i({target:e,proto:!0,forced:g||D},k);return k}},9781:function(t,e,n){var i=n(7293);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var i=n(7854),r=n(111),o=i.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},8324:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(t,e,n){var i=n(5005);t.exports=i("navigator","userAgent")||""},7392:function(t,e,n){var i,r,o=n(7854),s=n(8113),a=o.process,l=a&&a.versions,c=l&&l.v8;c?r=(i=c.split("."))[0]+i[1]:s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=i[1]),t.exports=r&&+r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var i=n(7854),r=n(1236).f,o=n(8880),s=n(1320),a=n(3505),l=n(9920),c=n(4705);t.exports=function(t,e){var n,u,d,h,p,f=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[f]||a(f,{}):(i[f]||{}).prototype)for(u in e){if(h=e[u],d=t.noTargetGet?(p=r(n,u))&&p.value:n[u],!c(g?u:f+(m?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),s(n,u,h,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var i=n(1320),r=n(7293),o=n(5112),s=n(2261),a=n(8880),l=o("species"),c=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=o("replace"),h=!!/./[d]&&""===/./[d]("a","$0"),p=!r((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var f=o(t),g=!r((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),m=g&&!r((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!g||!m||"replace"===t&&(!c||!u||h)||"split"===t&&!p){var v=/./[f],y=n(f,""[t],(function(t,e,n,i,r){return e.exec===s?g&&!r?{done:!0,value:v.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[0],x=y[1];i(String.prototype,t,b),i(RegExp.prototype,f,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}d&&a(RegExp.prototype[f],"sham",!0)}},9974:function(t,e,n){var i=n(3099);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},5005:function(t,e,n){var i=n(857),r=n(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t])||o(r[t]):i[t]&&i[t][e]||r[t]&&r[t][e]}},1246:function(t,e,n){var i=n(648),r=n(7497),o=n(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||r[i(t)]}},8554:function(t,e,n){var i=n(9670),r=n(1246);t.exports=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return i(e.call(t))}},647:function(t,e,n){var i=n(7908),r=Math.floor,o="".replace,s=/\$([$&'`]|\d\d?|<[^>]*>)/g,a=/\$([$&'`]|\d\d?)/g;t.exports=function(t,e,n,l,c,u){var d=n+t.length,h=l.length,p=a;return void 0!==c&&(c=i(c),p=s),o.call(u,p,(function(i,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(d);case"<":s=c[o.slice(1,-1)];break;default:var a=+o;if(0===a)return i;if(a>h){var u=r(a/10);return 0===u?i:u<=h?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):i}s=l[a-1]}return void 0===s?"":s}))}},7854:function(t,e,n){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},3501:function(t){t.exports={}},490:function(t,e,n){var i=n(5005);t.exports=i("document","documentElement")},4664:function(t,e,n){var i=n(9781),r=n(7293),o=n(317);t.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1179:function(t){var e=Math.abs,n=Math.pow,i=Math.floor,r=Math.log,o=Math.LN2;t.exports={pack:function(t,s,a){var l,c,u,d=new Array(a),h=8*a-s-1,p=(1<<h)-1,f=p>>1,g=23===s?n(2,-24)-n(2,-77):0,m=t<0||0===t&&1/t<0?1:0,v=0;for((t=e(t))!=t||t===1/0?(c=t!=t?1:0,l=p):(l=i(r(t)/o),t*(u=n(2,-l))<1&&(l--,u*=2),(t+=l+f>=1?g/u:g*n(2,1-f))*u>=2&&(l++,u/=2),l+f>=p?(c=0,l=p):l+f>=1?(c=(t*u-1)*n(2,s),l+=f):(c=t*n(2,f-1)*n(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*m,d},unpack:function(t,e){var i,r=t.length,o=8*r-e-1,s=(1<<o)-1,a=s>>1,l=o-7,c=r-1,u=t[c--],d=127&u;for(u>>=7;l>0;d=256*d+t[c],c--,l-=8);for(i=d&(1<<-l)-1,d>>=-l,l+=e;l>0;i=256*i+t[c],c--,l-=8);if(0===d)d=1-a;else{if(d===s)return i?NaN:u?-1/0:1/0;i+=n(2,e),d-=a}return(u?-1:1)*i*n(2,d-e)}}},8361:function(t,e,n){var i=n(7293),r=n(4326),o="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},9587:function(t,e,n){var i=n(111),r=n(7674);t.exports=function(t,e,n){var o,s;return r&&"function"==typeof(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&r(t,s),t}},2788:function(t,e,n){var i=n(5465),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return r.call(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var i,r,o,s=n(8536),a=n(7854),l=n(111),c=n(8880),u=n(6656),d=n(5465),h=n(6200),p=n(3501),f=a.WeakMap;if(s){var g=d.state||(d.state=new f),m=g.get,v=g.has,y=g.set;i=function(t,e){return e.facade=t,y.call(g,t,e),e},r=function(t){return m.call(g,t)||{}},o=function(t){return v.call(g,t)}}else{var b=h("state");p[b]=!0,i=function(t,e){return e.facade=t,c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var i=n(5112),r=n(7497),o=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},3157:function(t,e,n){var i=n(4326);t.exports=Array.isArray||function(t){return"Array"==i(t)}},4705:function(t,e,n){var i=n(7293),r=/#|\.prototype\./,o=function(t,e){var n=a[s(t)];return n==c||n!=l&&("function"==typeof e?i(e):!!e)},s=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},7850:function(t,e,n){var i=n(111),r=n(4326),o=n(5112)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},9212:function(t,e,n){var i=n(9670);t.exports=function(t){var e=t.return;if(void 0!==e)return i(e.call(t)).value}},3383:function(t,e,n){"use strict";var i,r,o,s=n(7293),a=n(9518),l=n(8880),c=n(6656),u=n(5112),d=n(1913),h=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(i=r):p=!0);var f=null==i||s((function(){var t={};return i[h].call(t)!==t}));f&&(i={}),d&&!f||c(i,h)||l(i,h,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},7497:function(t){t.exports={}},133:function(t,e,n){var i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},590:function(t,e,n){var i=n(7293),r=n(5112),o=n(1913),s=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,i){e.delete("b"),n+=i+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[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"!==n||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,n){var i=n(7854),r=n(2788),o=i.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},1574:function(t,e,n){"use strict";var i=n(9781),r=n(7293),o=n(1956),s=n(5181),a=n(5296),l=n(7908),c=n(8361),u=Object.assign,d=Object.defineProperty;t.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||o(u({},e)).join("")!=r}))?function(t,e){for(var n=l(t),r=arguments.length,u=1,d=s.f,h=a.f;r>u;)for(var p,f=c(arguments[u++]),g=d?o(f).concat(d(f)):o(f),m=g.length,v=0;m>v;)p=g[v++],i&&!h.call(f,p)||(n[p]=f[p]);return n}:u},30:function(t,e,n){var i,r=n(9670),o=n(6048),s=n(748),a=n(3501),l=n(490),c=n(317),u=n(6200)("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},p=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;p=i?function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e}(i):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var n=s.length;n--;)delete p.prototype[s[n]];return p()};a[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=r(t),n=new d,d.prototype=null,n[u]=t):n=p(),void 0===e?n:o(n,e)}},6048:function(t,e,n){var i=n(9781),r=n(3070),o=n(9670),s=n(1956);t.exports=i?Object.defineProperties:function(t,e){o(t);for(var n,i=s(e),a=i.length,l=0;a>l;)r.f(t,n=i[l++],e[n]);return t}},3070:function(t,e,n){var i=n(9781),r=n(4664),o=n(9670),s=n(7593),a=Object.defineProperty;e.f=i?a:function(t,e,n){if(o(t),e=s(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var i=n(9781),r=n(5296),o=n(9114),s=n(5656),a=n(7593),l=n(6656),c=n(4664),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=s(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},8006:function(t,e,n){var i=n(6324),r=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var i=n(6656),r=n(7908),o=n(6200),s=n(8544),a=o("IE_PROTO"),l=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=r(t),i(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},6324:function(t,e,n){var i=n(6656),r=n(5656),o=n(1318).indexOf,s=n(3501);t.exports=function(t,e){var n,a=r(t),l=0,c=[];for(n in a)!i(s,n)&&i(a,n)&&c.push(n);for(;e.length>l;)i(a,n=e[l++])&&(~o(c,n)||c.push(n));return c}},1956:function(t,e,n){var i=n(6324),r=n(748);t.exports=Object.keys||function(t){return i(t,r)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var i=n(9670),r=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return i(n),r(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},288:function(t,e,n){"use strict";var i=n(1694),r=n(648);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},3887:function(t,e,n){var i=n(5005),r=n(8006),o=n(5181),s=n(9670);t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(s(t)),n=o.f;return n?e.concat(n(t)):e}},857:function(t,e,n){var i=n(7854);t.exports=i},2248:function(t,e,n){var i=n(1320);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},1320:function(t,e,n){var i=n(7854),r=n(8880),o=n(6656),s=n(3505),a=n(2788),l=n(9909),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var l,c=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||r(n,"name",e),(l=u(n)).source||(l.source=d.join("string"==typeof e?e:""))),t!==i?(c?!p&&t[e]&&(h=!0):delete t[e],h?t[e]=n:r(t,e,n)):h?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},7651:function(t,e,n){var i=n(4326),r=n(2261);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},2261:function(t,e,n){"use strict";var i,r,o=n(7066),s=n(2999),a=RegExp.prototype.exec,l=String.prototype.replace,c=a,u=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),d=s.UNSUPPORTED_Y||s.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(u||h||d)&&(c=function(t){var e,n,i,r,s=this,c=d&&s.sticky,p=o.call(s),f=s.source,g=0,m=t;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(t).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==t[s.lastIndex-1])&&(f="(?: "+f+")",m=" "+m,g++),n=new RegExp("^(?:"+f+")",p)),h&&(n=new RegExp("^"+f+"$(?!\\s)",p)),u&&(e=s.lastIndex),i=a.call(c?n:s,m),c?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:u&&i&&(s.lastIndex=s.global?i.index+i[0].length:e),h&&i&&i.length>1&&l.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),t.exports=c},7066:function(t,e,n){"use strict";var i=n(9670);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,n){"use strict";var i=n(7293);function r(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=i((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,n){var i=n(7854),r=n(8880);t.exports=function(t,e){try{r(i,t,e)}catch(n){i[t]=e}return e}},6340:function(t,e,n){"use strict";var i=n(5005),r=n(3070),o=n(5112),s=n(9781),a=o("species");t.exports=function(t){var e=i(t),n=r.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var i=n(3070).f,r=n(6656),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},6200:function(t,e,n){var i=n(2309),r=n(9711),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,n){var i=n(7854),r=n(3505),o="__core-js_shared__",s=i[o]||r(o,{});t.exports=s},2309:function(t,e,n){var i=n(1913),r=n(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(t,e,n){var i=n(9670),r=n(3099),o=n(5112)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||null==(n=i(s)[o])?e:r(n)}},8710:function(t,e,n){var i=n(9958),r=n(4488),o=function(t){return function(e,n){var o,s,a=String(r(e)),l=i(n),c=a.length;return l<0||l>=c?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},3197:function(t){"use strict";var e=2147483647,n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,r="Overflow: input needs wider integers to process",o=Math.floor,s=String.fromCharCode,a=function(t){return t+22+75*(t<26)},l=function(t,e,n){var i=0;for(t=n?o(t/700):t>>1,t+=o(t/e);t>455;i+=36)t=o(t/35);return o(i+36*t/(t+38))},c=function(t){var n,i,c=[],u=(t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&r)<<10)+(1023&o)+65536):(e.push(r),n--)}else e.push(r)}return e}(t)).length,d=128,h=0,p=72;for(n=0;n<t.length;n++)(i=t[n])<128&&c.push(s(i));var f=c.length,g=f;for(f&&c.push("-");g<u;){var m=e;for(n=0;n<t.length;n++)(i=t[n])>=d&&i<m&&(m=i);var v=g+1;if(m-d>o((e-h)/v))throw RangeError(r);for(h+=(m-d)*v,d=m,n=0;n<t.length;n++){if((i=t[n])<d&&++h>e)throw RangeError(r);if(i==d){for(var y=h,b=36;;b+=36){var x=b<=p?1:b>=p+26?26:b-p;if(y<x)break;var w=y-x,_=36-x;c.push(s(a(x+w%_))),y=o(w/_)}c.push(s(a(y))),p=l(h,v,g==f),h=0,++g}}++h,++d}return c.join("")};t.exports=function(t){var e,r,o=[],s=t.toLowerCase().replace(i,".").split(".");for(e=0;e<s.length;e++)r=s[e],o.push(n.test(r)?"xn--"+c(r):r);return o.join(".")}},6091:function(t,e,n){var i=n(7293),r=n(1361);t.exports=function(t){return i((function(){return!!r[t]()||"​…᠎"!="​…᠎"[t]()||r[t].name!==t}))}},3111:function(t,e,n){var i=n(4488),r="["+n(1361)+"]",o=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),a=function(t){return function(e){var n=String(i(e));return 1&t&&(n=n.replace(o,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},1400:function(t,e,n){var i=n(9958),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},7067:function(t,e,n){var i=n(9958),r=n(7466);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length or index");return n}},5656:function(t,e,n){var i=n(8361),r=n(4488);t.exports=function(t){return i(r(t))}},9958:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:function(t,e,n){var i=n(9958),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},7908:function(t,e,n){var i=n(4488);t.exports=function(t){return Object(i(t))}},4590:function(t,e,n){var i=n(3002);t.exports=function(t,e){var n=i(t);if(n%e)throw RangeError("Wrong offset");return n}},3002:function(t,e,n){var i=n(9958);t.exports=function(t){var e=i(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},7593:function(t,e,n){var i=n(111);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},1694:function(t,e,n){var i={};i[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(i)},9843:function(t,e,n){"use strict";var i=n(2109),r=n(7854),o=n(9781),s=n(3832),a=n(260),l=n(3331),c=n(5787),u=n(9114),d=n(8880),h=n(7466),p=n(7067),f=n(4590),g=n(7593),m=n(6656),v=n(648),y=n(111),b=n(30),x=n(7674),w=n(8006).f,_=n(7321),C=n(2092).forEach,k=n(6340),S=n(3070),T=n(1236),A=n(9909),D=n(9587),E=A.get,M=A.set,O=S.f,P=T.f,L=Math.round,I=r.RangeError,N=l.ArrayBuffer,R=l.DataView,F=a.NATIVE_ARRAY_BUFFER_VIEWS,j=a.TYPED_ARRAY_TAG,$=a.TypedArray,z=a.TypedArrayPrototype,H=a.aTypedArrayConstructor,B=a.isTypedArray,W="BYTES_PER_ELEMENT",q="Wrong length",U=function(t,e){for(var n=0,i=e.length,r=new(H(t))(i);i>n;)r[n]=e[n++];return r},V=function(t,e){O(t,e,{get:function(){return E(this)[e]}})},Y=function(t){var e;return t instanceof N||"ArrayBuffer"==(e=v(t))||"SharedArrayBuffer"==e},X=function(t,e){return B(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},G=function(t,e){return X(t,e=g(e,!0))?u(2,t[e]):P(t,e)},K=function(t,e,n){return!(X(t,e=g(e,!0))&&y(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?O(t,e,n):(t[e]=n.value,t)};o?(F||(T.f=G,S.f=K,V(z,"buffer"),V(z,"byteOffset"),V(z,"byteLength"),V(z,"length")),i({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:G,defineProperty:K}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,a=t+(n?"Clamped":"")+"Array",l="get"+t,u="set"+t,g=r[a],m=g,v=m&&m.prototype,S={},T=function(t,e){O(t,e,{get:function(){return function(t,e){var n=E(t);return n.view[l](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=E(t);n&&(i=(i=L(i))<0?0:i>255?255:255&i),r.view[u](e*o+r.byteOffset,i,!0)}(this,e,t)},enumerable:!0})};F?s&&(m=e((function(t,e,n,i){return c(t,m,a),D(y(e)?Y(e)?void 0!==i?new g(e,f(n,o),i):void 0!==n?new g(e,f(n,o)):new g(e):B(e)?U(m,e):_.call(m,e):new g(p(e)),t,m)})),x&&x(m,$),C(w(g),(function(t){t in m||d(m,t,g[t])})),m.prototype=v):(m=e((function(t,e,n,i){c(t,m,a);var r,s,l,u=0,d=0;if(y(e)){if(!Y(e))return B(e)?U(m,e):_.call(m,e);r=e,d=f(n,o);var g=e.byteLength;if(void 0===i){if(g%o)throw I(q);if((s=g-d)<0)throw I(q)}else if((s=h(i)*o)+d>g)throw I(q);l=s/o}else l=p(e),r=new N(s=l*o);for(M(t,{buffer:r,byteOffset:d,byteLength:s,length:l,view:new R(r)});u<l;)T(t,u++)})),x&&x(m,$),v=m.prototype=b(z)),v.constructor!==m&&d(v,"constructor",m),j&&d(v,j,a),S[a]=m,i({global:!0,forced:m!=g,sham:!F},S),W in m||d(m,W,o),W in v||d(v,W,o),k(a)}):t.exports=function(){}},3832:function(t,e,n){var i=n(7854),r=n(7293),o=n(7072),s=n(260).NATIVE_ARRAY_BUFFER_VIEWS,a=i.ArrayBuffer,l=i.Int8Array;t.exports=!s||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new a(2),1,void 0).length}))},3074:function(t,e,n){var i=n(260).aTypedArrayConstructor,r=n(6707);t.exports=function(t,e){for(var n=r(t,t.constructor),o=0,s=e.length,a=new(i(n))(s);s>o;)a[o]=e[o++];return a}},7321:function(t,e,n){var i=n(7908),r=n(7466),o=n(1246),s=n(7659),a=n(9974),l=n(260).aTypedArrayConstructor;t.exports=function(t){var e,n,c,u,d,h,p=i(t),f=arguments.length,g=f>1?arguments[1]:void 0,m=void 0!==g,v=o(p);if(null!=v&&!s(v))for(h=(d=v.call(p)).next,p=[];!(u=h.call(d)).done;)p.push(u.value);for(m&&f>2&&(g=a(g,arguments[2],2)),n=r(p.length),c=new(l(this))(n),e=0;n>e;e++)c[e]=m?g(p[e],e):p[e];return c}},9711:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:function(t,e,n){var i=n(133);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,n){var i=n(7854),r=n(2309),o=n(6656),s=n(9711),a=n(133),l=n(3307),c=r("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||s;t.exports=function(t){return o(c,t)||(a&&o(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8264:function(t,e,n){"use strict";var i=n(2109),r=n(7854),o=n(3331),s=n(6340),a=o.ArrayBuffer;i({global:!0,forced:r.ArrayBuffer!==a},{ArrayBuffer:a}),s("ArrayBuffer")},2222:function(t,e,n){"use strict";var i=n(2109),r=n(7293),o=n(3157),s=n(111),a=n(7908),l=n(7466),c=n(6135),u=n(5417),d=n(1194),h=n(5112),p=n(7392),f=h("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=p>=51||!r((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),y=d("concat"),b=function(t){if(!s(t))return!1;var e=t[f];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,forced:!v||!y},{concat:function(t){var e,n,i,r,o,s=a(this),d=u(s,0),h=0;for(e=-1,i=arguments.length;e<i;e++)if(b(o=-1===e?s:arguments[e])){if(h+(r=l(o.length))>g)throw TypeError(m);for(n=0;n<r;n++,h++)n in o&&c(d,h,o[n])}else{if(h>=g)throw TypeError(m);c(d,h++,o)}return d.length=h,d}})},7327:function(t,e,n){"use strict";var i=n(2109),r=n(2092).filter;i({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},2772:function(t,e,n){"use strict";var i=n(2109),r=n(1318).indexOf,o=n(9341),s=[].indexOf,a=!!s&&1/[1].indexOf(1,-0)<0,l=o("indexOf");i({target:"Array",proto:!0,forced:a||!l},{indexOf:function(t){return a?s.apply(this,arguments)||0:r(this,t,arguments.length>1?arguments[1]:void 0)}})},6992:function(t,e,n){"use strict";var i=n(5656),r=n(1223),o=n(7497),s=n(9909),a=n(654),l="Array Iterator",c=s.set,u=s.getterFor(l);t.exports=a(Array,"Array",(function(t,e){c(this,{type:l,target:i(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},1249:function(t,e,n){"use strict";var i=n(2109),r=n(2092).map;i({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:function(t,e,n){"use strict";var i=n(2109),r=n(111),o=n(3157),s=n(1400),a=n(7466),l=n(5656),c=n(6135),u=n(5112),d=n(1194)("slice"),h=u("species"),p=[].slice,f=Math.max;i({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var n,i,u,d=l(this),g=a(d.length),m=s(t,g),v=s(void 0===e?g:e,g);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(d,m,v);for(i=new(void 0===n?Array:n)(f(v-m,0)),u=0;m<v;m++,u++)m in d&&c(i,u,d[m]);return i.length=u,i}})},561:function(t,e,n){"use strict";var i=n(2109),r=n(1400),o=n(9958),s=n(7466),a=n(7908),l=n(5417),c=n(6135),u=n(1194)("splice"),d=Math.max,h=Math.min,p=9007199254740991,f="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!u},{splice:function(t,e){var n,i,u,g,m,v,y=a(this),b=s(y.length),x=r(t,b),w=arguments.length;if(0===w?n=i=0:1===w?(n=0,i=b-x):(n=w-2,i=h(d(o(e),0),b-x)),b+n-i>p)throw TypeError(f);for(u=l(y,i),g=0;g<i;g++)(m=x+g)in y&&c(u,g,y[m]);if(u.length=i,n<i){for(g=x;g<b-i;g++)v=g+n,(m=g+i)in y?y[v]=y[m]:delete y[v];for(g=b;g>b-i+n;g--)delete y[g-1]}else if(n>i)for(g=b-i;g>x;g--)v=g+n-1,(m=g+i-1)in y?y[v]=y[m]:delete y[v];for(g=0;g<n;g++)y[g+x]=arguments[g+2];return y.length=b-i+n,u}})},8309:function(t,e,n){var i=n(9781),r=n(3070).f,o=Function.prototype,s=o.toString,a=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return s.call(this).match(a)[1]}catch(t){return""}}})},489:function(t,e,n){var i=n(2109),r=n(7293),o=n(7908),s=n(9518),a=n(8544);i({target:"Object",stat:!0,forced:r((function(){s(1)})),sham:!a},{getPrototypeOf:function(t){return s(o(t))}})},1539:function(t,e,n){var i=n(1694),r=n(1320),o=n(288);i||r(Object.prototype,"toString",o,{unsafe:!0})},4916:function(t,e,n){"use strict";var i=n(2109),r=n(2261);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:function(t,e,n){"use strict";var i=n(1320),r=n(9670),o=n(7293),s=n(7066),a="toString",l=RegExp.prototype,c=l.toString,u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=a;(u||d)&&i(RegExp.prototype,a,(function(){var t=r(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in l)?s.call(t):n)}),{unsafe:!0})},8783:function(t,e,n){"use strict";var i=n(8710).charAt,r=n(9909),o=n(654),s="String Iterator",a=r.set,l=r.getterFor(s);o(String,"String",(function(t){a(this,{type:s,string:String(t),index:0})}),(function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})}))},4723:function(t,e,n){"use strict";var i=n(7007),r=n(9670),o=n(7466),s=n(4488),a=n(1530),l=n(7651);i("match",1,(function(t,e,n){return[function(e){var n=s(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var s=r(t),c=String(this);if(!s.global)return l(s,c);var u=s.unicode;s.lastIndex=0;for(var d,h=[],p=0;null!==(d=l(s,c));){var f=String(d[0]);h[p]=f,""===f&&(s.lastIndex=a(c,o(s.lastIndex),u)),p++}return 0===p?null:h}]}))},5306:function(t,e,n){"use strict";var i=n(7007),r=n(9670),o=n(7466),s=n(9958),a=n(4488),l=n(1530),c=n(647),u=n(7651),d=Math.max,h=Math.min;i("replace",2,(function(t,e,n,i){var p=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,f=i.REPLACE_KEEPS_$0,g=p?"$":"$0";return[function(n,i){var r=a(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r,i):e.call(String(r),n,i)},function(t,i){if(!p&&f||"string"==typeof i&&-1===i.indexOf(g)){var a=n(e,t,this,i);if(a.done)return a.value}var m=r(t),v=String(this),y="function"==typeof i;y||(i=String(i));var b=m.global;if(b){var x=m.unicode;m.lastIndex=0}for(var w=[];;){var _=u(m,v);if(null===_)break;if(w.push(_),!b)break;""===String(_[0])&&(m.lastIndex=l(v,o(m.lastIndex),x))}for(var C,k="",S=0,T=0;T<w.length;T++){_=w[T];for(var A=String(_[0]),D=d(h(s(_.index),v.length),0),E=[],M=1;M<_.length;M++)E.push(void 0===(C=_[M])?C:String(C));var O=_.groups;if(y){var P=[A].concat(E,D,v);void 0!==O&&P.push(O);var L=String(i.apply(void 0,P))}else L=c(A,v,D,E,O,i);D>=S&&(k+=v.slice(S,D)+L,S=D+A.length)}return k+v.slice(S)}]}))},3123:function(t,e,n){"use strict";var i=n(7007),r=n(7850),o=n(9670),s=n(4488),a=n(6707),l=n(1530),c=n(7466),u=n(7651),d=n(2261),h=n(7293),p=[].push,f=Math.min,g=4294967295,m=!h((function(){return!RegExp(g,"y")}));i("split",2,(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(s(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===t)return[i];if(!r(t))return e.call(i,t,o);for(var a,l,c,u=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,m=new RegExp(t.source,h+"g");(a=d.call(m,i))&&!((l=m.lastIndex)>f&&(u.push(i.slice(f,a.index)),a.length>1&&a.index<i.length&&p.apply(u,a.slice(1)),c=a[0].length,f=l,u.length>=o));)m.lastIndex===a.index&&m.lastIndex++;return f===i.length?!c&&m.test("")||u.push(""):u.push(i.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var r=s(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,r,n):i.call(String(r),e,n)},function(t,r){var s=n(i,t,this,r,i!==e);if(s.done)return s.value;var d=o(t),h=String(this),p=a(d,RegExp),v=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),b=new p(m?d:"^(?:"+d.source+")",y),x=void 0===r?g:r>>>0;if(0===x)return[];if(0===h.length)return null===u(b,h)?[h]:[];for(var w=0,_=0,C=[];_<h.length;){b.lastIndex=m?_:0;var k,S=u(b,m?h:h.slice(_));if(null===S||(k=f(c(b.lastIndex+(m?0:_)),h.length))===w)_=l(h,_,v);else{if(C.push(h.slice(w,_)),C.length===x)return C;for(var T=1;T<=S.length-1;T++)if(C.push(S[T]),C.length===x)return C;_=w=k}}return C.push(h.slice(w)),C}]}),!m)},3210:function(t,e,n){"use strict";var i=n(2109),r=n(3111).trim;i({target:"String",proto:!0,forced:n(6091)("trim")},{trim:function(){return r(this)}})},2990:function(t,e,n){"use strict";var i=n(260),r=n(1048),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return r.call(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},8927:function(t,e,n){"use strict";var i=n(260),r=n(2092).every,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3105:function(t,e,n){"use strict";var i=n(260),r=n(1285),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("fill",(function(t){return r.apply(o(this),arguments)}))},5035:function(t,e,n){"use strict";var i=n(260),r=n(2092).filter,o=n(3074),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(t){var e=r(s(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},7174:function(t,e,n){"use strict";var i=n(260),r=n(2092).findIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},4345:function(t,e,n){"use strict";var i=n(260),r=n(2092).find,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},2846:function(t,e,n){"use strict";var i=n(260),r=n(2092).forEach,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},4731:function(t,e,n){"use strict";var i=n(260),r=n(1318).includes,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},7209:function(t,e,n){"use strict";var i=n(260),r=n(1318).indexOf,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},6319:function(t,e,n){"use strict";var i=n(7854),r=n(260),o=n(6992),s=n(5112)("iterator"),a=i.Uint8Array,l=o.values,c=o.keys,u=o.entries,d=r.aTypedArray,h=r.exportTypedArrayMethod,p=a&&a.prototype[s],f=!!p&&("values"==p.name||null==p.name),g=function(){return l.call(d(this))};h("entries",(function(){return u.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",g,!f),h(s,g,!f)},8867:function(t,e,n){"use strict";var i=n(260),r=i.aTypedArray,o=i.exportTypedArrayMethod,s=[].join;o("join",(function(t){return s.apply(r(this),arguments)}))},7789:function(t,e,n){"use strict";var i=n(260),r=n(6583),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(t){return r.apply(o(this),arguments)}))},3739:function(t,e,n){"use strict";var i=n(260),r=n(2092).map,o=n(6707),s=i.aTypedArray,a=i.aTypedArrayConstructor;(0,i.exportTypedArrayMethod)("map",(function(t){return r(s(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(o(t,t.constructor)))(e)}))}))},4483:function(t,e,n){"use strict";var i=n(260),r=n(3671).right,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(t){return r(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},9368:function(t,e,n){"use strict";var i=n(260),r=n(3671).left,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(t){return r(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},2056:function(t,e,n){"use strict";var i=n(260),r=i.aTypedArray,o=i.exportTypedArrayMethod,s=Math.floor;o("reverse",(function(){for(var t,e=this,n=r(e).length,i=s(n/2),o=0;o<i;)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},3462:function(t,e,n){"use strict";var i=n(260),r=n(7466),o=n(4590),s=n(7908),a=n(7293),l=i.aTypedArray;(0,i.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=s(t),a=r(i.length),c=0;if(a+e>n)throw RangeError("Wrong length");for(;c<a;)this[e+c]=i[c++]}),a((function(){new Int8Array(1).set({})})))},678:function(t,e,n){"use strict";var i=n(260),r=n(6707),o=n(7293),s=i.aTypedArray,a=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod,c=[].slice;l("slice",(function(t,e){for(var n=c.call(s(this),t,e),i=r(this,this.constructor),o=0,l=n.length,u=new(a(i))(l);l>o;)u[o]=n[o++];return u}),o((function(){new Int8Array(1).slice()})))},7462:function(t,e,n){"use strict";var i=n(260),r=n(2092).some,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},3824:function(t,e,n){"use strict";var i=n(260),r=i.aTypedArray,o=i.exportTypedArrayMethod,s=[].sort;o("sort",(function(t){return s.call(r(this),t)}))},5021:function(t,e,n){"use strict";var i=n(260),r=n(7466),o=n(1400),s=n(6707),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("subarray",(function(t,e){var n=a(this),i=n.length,l=o(t,i);return new(s(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===e?i:o(e,i))-l))}))},2974:function(t,e,n){"use strict";var i=n(7854),r=n(260),o=n(7293),s=i.Int8Array,a=r.aTypedArray,l=r.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!s&&o((function(){c.call(new s(1))}));l("toLocaleString",(function(){return c.apply(d?u.call(a(this)):a(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()}))||!o((function(){s.prototype.toLocaleString.call([1,2])})))},5016:function(t,e,n){"use strict";var i=n(260).exportTypedArrayMethod,r=n(7293),o=n(7854).Uint8Array,s=o&&o.prototype||{},a=[].toString,l=[].join;r((function(){a.call({})}))&&(a=function(){return l.call(this)});var c=s.toString!=a;i("toString",a,c)},2472:function(t,e,n){n(9843)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},4747:function(t,e,n){var i=n(7854),r=n(8324),o=n(8533),s=n(8880);for(var a in r){var l=i[a],c=l&&l.prototype;if(c&&c.forEach!==o)try{s(c,"forEach",o)}catch(t){c.forEach=o}}},3948:function(t,e,n){var i=n(7854),r=n(8324),o=n(6992),s=n(8880),a=n(5112),l=a("iterator"),c=a("toStringTag"),u=o.values;for(var d in r){var h=i[d],p=h&&h.prototype;if(p){if(p[l]!==u)try{s(p,l,u)}catch(t){p[l]=u}if(p[c]||s(p,c,d),r[d])for(var f in o)if(p[f]!==o[f])try{s(p,f,o[f])}catch(t){p[f]=o[f]}}}},1637:function(t,e,n){"use strict";n(6992);var i=n(2109),r=n(5005),o=n(590),s=n(1320),a=n(2248),l=n(8003),c=n(4994),u=n(9909),d=n(5787),h=n(6656),p=n(9974),f=n(648),g=n(9670),m=n(111),v=n(30),y=n(9114),b=n(8554),x=n(1246),w=n(5112),_=r("fetch"),C=r("Headers"),k=w("iterator"),S="URLSearchParams",T="URLSearchParamsIterator",A=u.set,D=u.getterFor(S),E=u.getterFor(T),M=/\+/g,O=Array(4),P=function(t){return O[t-1]||(O[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},L=function(t){try{return decodeURIComponent(t)}catch(e){return t}},I=function(t){var e=t.replace(M," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(P(n--),L);return e}},N=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(t){return R[t]},j=function(t){return encodeURIComponent(t).replace(N,F)},$=function(t,e){if(e)for(var n,i,r=e.split("&"),o=0;o<r.length;)(n=r[o++]).length&&(i=n.split("="),t.push({key:I(i.shift()),value:I(i.join("="))}))},z=function(t){this.entries.length=0,$(this.entries,t)},H=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=c((function(t,e){A(this,{type:T,iterator:b(D(t).entries),kind:e})}),"Iterator",(function(){var t=E(this),e=t.kind,n=t.iterator.next(),i=n.value;return n.done||(n.value="keys"===e?i.key:"values"===e?i.value:[i.key,i.value]),n})),W=function(){d(this,W,S);var t,e,n,i,r,o,s,a,l,c=arguments.length>0?arguments[0]:void 0,u=this,p=[];if(A(u,{type:S,entries:p,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(m(c))if("function"==typeof(t=x(c)))for(n=(e=t.call(c)).next;!(i=n.call(e)).done;){if((s=(o=(r=b(g(i.value))).next).call(r)).done||(a=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");p.push({key:s.value+"",value:a.value+""})}else for(l in c)h(c,l)&&p.push({key:l,value:c[l]+""});else $(p,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},q=W.prototype;a(q,{append:function(t,e){H(arguments.length,2);var n=D(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){H(arguments.length,1);for(var e=D(this),n=e.entries,i=t+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;e.updateURL()},get:function(t){H(arguments.length,1);for(var e=D(this).entries,n=t+"",i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){H(arguments.length,1);for(var e=D(this).entries,n=t+"",i=[],r=0;r<e.length;r++)e[r].key===n&&i.push(e[r].value);return i},has:function(t){H(arguments.length,1);for(var e=D(this).entries,n=t+"",i=0;i<e.length;)if(e[i++].key===n)return!0;return!1},set:function(t,e){H(arguments.length,1);for(var n,i=D(this),r=i.entries,o=!1,s=t+"",a=e+"",l=0;l<r.length;l++)(n=r[l]).key===s&&(o?r.splice(l--,1):(o=!0,n.value=a));o||r.push({key:s,value:a}),i.updateURL()},sort:function(){var t,e,n,i=D(this),r=i.entries,o=r.slice();for(r.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(r[e].key>t.key){r.splice(e,0,t);break}e===n&&r.push(t)}i.updateURL()},forEach:function(t){for(var e,n=D(this).entries,i=p(t,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((e=n[r++]).value,e.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(q,k,q.entries),s(q,"toString",(function(){for(var t,e=D(this).entries,n=[],i=0;i<e.length;)t=e[i++],n.push(j(t.key)+"="+j(t.value));return n.join("&")}),{enumerable:!0}),l(W,S),i({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof _||"function"!=typeof C||i({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,i,r=[t];return arguments.length>1&&(m(e=arguments[1])&&(n=e.body,f(n)===S&&((i=e.headers?new C(e.headers):new C).has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=v(e,{body:y(0,String(n)),headers:y(0,i)}))),r.push(e)),_.apply(this,r)}}),t.exports={URLSearchParams:W,getState:D}},285:function(t,e,n){"use strict";n(8783);var i,r=n(2109),o=n(9781),s=n(590),a=n(7854),l=n(6048),c=n(1320),u=n(5787),d=n(6656),h=n(1574),p=n(8457),f=n(8710).codeAt,g=n(3197),m=n(8003),v=n(1637),y=n(9909),b=a.URL,x=v.URLSearchParams,w=v.getState,_=y.set,C=y.getterFor("URL"),k=Math.floor,S=Math.pow,T="Invalid scheme",A="Invalid host",D="Invalid port",E=/[A-Za-z]/,M=/[\d+-.A-Za-z]/,O=/\d/,P=/^(0x|0X)/,L=/^[0-7]+$/,I=/^\d+$/,N=/^[\dA-Fa-f]+$/,R=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,F=/[\u0000\t\u000A\u000D #/:?@[\\]]/,j=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$=/[\t\u000A\u000D]/g,z=function(t,e){var n,i,r;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return A;if(!(n=B(e.slice(1,-1))))return A;t.host=n}else if(K(t)){if(e=g(e),R.test(e))return A;if(null===(n=H(e)))return A;t.host=n}else{if(F.test(e))return A;for(n="",i=p(e),r=0;r<i.length;r++)n+=X(i[r],q);t.host=n}},H=function(t){var e,n,i,r,o,s,a,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(e=l.length)>4)return t;for(n=[],i=0;i<e;i++){if(""==(r=l[i]))return t;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=P.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)s=0;else{if(!(10==o?I:8==o?L:N).test(r))return t;s=parseInt(r,o)}n.push(s)}for(i=0;i<e;i++)if(s=n[i],i==e-1){if(s>=S(256,5-e))return null}else if(s>255)return null;for(a=n.pop(),i=0;i<n.length;i++)a+=n[i]*S(256,3-i);return a},B=function(t){var e,n,i,r,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return t.charAt(d)};if(":"==h()){if(":"!=t.charAt(1))return;d+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&N.test(h());)e=16*e+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,c>6)return;for(i=0;h();){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!O.test(h()))return;for(;O.test(h());){if(o=parseInt(h(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=e}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(s=c-u,c=7;0!=c&&s>0;)a=l[c],l[c--]=l[u+s-1],l[u+--s]=a;else if(8!=c)return;return l},W=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=k(t/256);return e.join(".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(e=i,n=r),e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},q={},U=h({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),V=h({},U,{"#":1,"?":1,"{":1,"}":1}),Y=h({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(t,e){var n=f(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},G={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return d(G,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},Z=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},J=function(t,e){var n;return 2==t.length&&E.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},tt=function(t){var e;return t.length>1&&J(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},et=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&J(e[0],!0)||e.pop()},nt=function(t){return"."===t||"%2e"===t.toLowerCase()},it={},rt={},ot={},st={},at={},lt={},ct={},ut={},dt={},ht={},pt={},ft={},gt={},mt={},vt={},yt={},bt={},xt={},wt={},_t={},Ct={},kt=function(t,e,n,r){var o,s,a,l,c,u=n||it,h=0,f="",g=!1,m=!1,v=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(j,"")),e=e.replace($,""),o=p(e);h<=o.length;){switch(s=o[h],u){case it:if(!s||!E.test(s)){if(n)return T;u=ot;continue}f+=s.toLowerCase(),u=rt;break;case rt:if(s&&(M.test(s)||"+"==s||"-"==s||"."==s))f+=s.toLowerCase();else{if(":"!=s){if(n)return T;f="",u=ot,h=0;continue}if(n&&(K(t)!=d(G,f)||"file"==f&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=f,n)return void(K(t)&&G[t.scheme]==t.port&&(t.port=null));f="","file"==t.scheme?u=mt:K(t)&&r&&r.scheme==t.scheme?u=st:K(t)?u=ut:"/"==o[h+1]?(u=at,h++):(t.cannotBeABaseURL=!0,t.path.push(""),u=wt)}break;case ot:if(!r||r.cannotBeABaseURL&&"#"!=s)return T;if(r.cannotBeABaseURL&&"#"==s){t.scheme=r.scheme,t.path=r.path.slice(),t.query=r.query,t.fragment="",t.cannotBeABaseURL=!0,u=Ct;break}u="file"==r.scheme?mt:lt;continue;case st:if("/"!=s||"/"!=o[h+1]){u=lt;continue}u=dt,h++;break;case at:if("/"==s){u=ht;break}u=xt;continue;case lt:if(t.scheme=r.scheme,s==i)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query;else if("/"==s||"\\"==s&&K(t))u=ct;else if("?"==s)t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query="",u=_t;else{if("#"!=s){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.path.pop(),u=xt;continue}t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,t.path=r.path.slice(),t.query=r.query,t.fragment="",u=Ct}break;case ct:if(!K(t)||"/"!=s&&"\\"!=s){if("/"!=s){t.username=r.username,t.password=r.password,t.host=r.host,t.port=r.port,u=xt;continue}u=ht}else u=dt;break;case ut:if(u=dt,"/"!=s||"/"!=f.charAt(h+1))continue;h++;break;case dt:if("/"!=s&&"\\"!=s){u=ht;continue}break;case ht:if("@"==s){g&&(f="%40"+f),g=!0,a=p(f);for(var y=0;y<a.length;y++){var b=a[y];if(":"!=b||v){var x=X(b,Y);v?t.password+=x:t.username+=x}else v=!0}f=""}else if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&K(t)){if(g&&""==f)return"Invalid authority";h-=p(f).length+1,f="",u=pt}else f+=s;break;case pt:case ft:if(n&&"file"==t.scheme){u=yt;continue}if(":"!=s||m){if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&K(t)){if(K(t)&&""==f)return A;if(n&&""==f&&(Q(t)||null!==t.port))return;if(l=z(t,f))return l;if(f="",u=bt,n)return;continue}"["==s?m=!0:"]"==s&&(m=!1),f+=s}else{if(""==f)return A;if(l=z(t,f))return l;if(f="",u=gt,n==ft)return}break;case gt:if(!O.test(s)){if(s==i||"/"==s||"?"==s||"#"==s||"\\"==s&&K(t)||n){if(""!=f){var w=parseInt(f,10);if(w>65535)return D;t.port=K(t)&&w===G[t.scheme]?null:w,f=""}if(n)return;u=bt;continue}return D}f+=s;break;case mt:if(t.scheme="file","/"==s||"\\"==s)u=vt;else{if(!r||"file"!=r.scheme){u=xt;continue}if(s==i)t.host=r.host,t.path=r.path.slice(),t.query=r.query;else if("?"==s)t.host=r.host,t.path=r.path.slice(),t.query="",u=_t;else{if("#"!=s){tt(o.slice(h).join(""))||(t.host=r.host,t.path=r.path.slice(),et(t)),u=xt;continue}t.host=r.host,t.path=r.path.slice(),t.query=r.query,t.fragment="",u=Ct}}break;case vt:if("/"==s||"\\"==s){u=yt;break}r&&"file"==r.scheme&&!tt(o.slice(h).join(""))&&(J(r.path[0],!0)?t.path.push(r.path[0]):t.host=r.host),u=xt;continue;case yt:if(s==i||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&J(f))u=xt;else if(""==f){if(t.host="",n)return;u=bt}else{if(l=z(t,f))return l;if("localhost"==t.host&&(t.host=""),n)return;f="",u=bt}continue}f+=s;break;case bt:if(K(t)){if(u=xt,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=i&&(u=xt,"/"!=s))continue}else t.fragment="",u=Ct;else t.query="",u=_t;break;case xt:if(s==i||"/"==s||"\\"==s&&K(t)||!n&&("?"==s||"#"==s)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(et(t),"/"==s||"\\"==s&&K(t)||t.path.push("")):nt(f)?"/"==s||"\\"==s&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&J(f)&&(t.host&&(t.host=""),f=f.charAt(0)+":"),t.path.push(f)),f="","file"==t.scheme&&(s==i||"?"==s||"#"==s))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==s?(t.query="",u=_t):"#"==s&&(t.fragment="",u=Ct)}else f+=X(s,V);break;case wt:"?"==s?(t.query="",u=_t):"#"==s?(t.fragment="",u=Ct):s!=i&&(t.path[0]+=X(s,q));break;case _t:n||"#"!=s?s!=i&&("'"==s&&K(t)?t.query+="%27":t.query+="#"==s?"%23":X(s,q)):(t.fragment="",u=Ct);break;case Ct:s!=i&&(t.fragment+=X(s,U))}h++}},St=function(t){var e,n,i=u(this,St,"URL"),r=arguments.length>1?arguments[1]:void 0,s=String(t),a=_(i,{type:"URL"});if(void 0!==r)if(r instanceof St)e=C(r);else if(n=kt(e={},String(r)))throw TypeError(n);if(n=kt(a,s,null,e))throw TypeError(n);var l=a.searchParams=new x,c=w(l);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(l)||null},o||(i.href=At.call(i),i.origin=Dt.call(i),i.protocol=Et.call(i),i.username=Mt.call(i),i.password=Ot.call(i),i.host=Pt.call(i),i.hostname=Lt.call(i),i.port=It.call(i),i.pathname=Nt.call(i),i.search=Rt.call(i),i.searchParams=Ft.call(i),i.hash=jt.call(i))},Tt=St.prototype,At=function(){var t=C(this),e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,c=e+":";return null!==r?(c+="//",Q(t)&&(c+=n+(i?":"+i:"")+"@"),c+=W(r),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},Dt=function(){var t=C(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&K(t)?e+"://"+W(t.host)+(null!==n?":"+n:""):"null"},Et=function(){return C(this).scheme+":"},Mt=function(){return C(this).username},Ot=function(){return C(this).password},Pt=function(){var t=C(this),e=t.host,n=t.port;return null===e?"":null===n?W(e):W(e)+":"+n},Lt=function(){var t=C(this).host;return null===t?"":W(t)},It=function(){var t=C(this).port;return null===t?"":String(t)},Nt=function(){var t=C(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Rt=function(){var t=C(this).query;return t?"?"+t:""},Ft=function(){return C(this).searchParams},jt=function(){var t=C(this).fragment;return t?"#"+t:""},$t=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(Tt,{href:$t(At,(function(t){var e=C(this),n=String(t),i=kt(e,n);if(i)throw TypeError(i);w(e.searchParams).updateSearchParams(e.query)})),origin:$t(Dt),protocol:$t(Et,(function(t){var e=C(this);kt(e,String(t)+":",it)})),username:$t(Mt,(function(t){var e=C(this),n=p(String(t));if(!Z(e)){e.username="";for(var i=0;i<n.length;i++)e.username+=X(n[i],Y)}})),password:$t(Ot,(function(t){var e=C(this),n=p(String(t));if(!Z(e)){e.password="";for(var i=0;i<n.length;i++)e.password+=X(n[i],Y)}})),host:$t(Pt,(function(t){var e=C(this);e.cannotBeABaseURL||kt(e,String(t),pt)})),hostname:$t(Lt,(function(t){var e=C(this);e.cannotBeABaseURL||kt(e,String(t),ft)})),port:$t(It,(function(t){var e=C(this);Z(e)||(""==(t=String(t))?e.port=null:kt(e,t,gt))})),pathname:$t(Nt,(function(t){var e=C(this);e.cannotBeABaseURL||(e.path=[],kt(e,t+"",bt))})),search:$t(Rt,(function(t){var e=C(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",kt(e,t,_t)),w(e.searchParams).updateSearchParams(e.query)})),searchParams:$t(Ft),hash:$t(jt,(function(t){var e=C(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",kt(e,t,Ct)):e.fragment=null}))}),c(Tt,"toJSON",(function(){return At.call(this)}),{enumerable:!0}),c(Tt,"toString",(function(){return At.call(this)}),{enumerable:!0}),b){var zt=b.createObjectURL,Ht=b.revokeObjectURL;zt&&c(St,"createObjectURL",(function(t){return zt.apply(b,arguments)})),Ht&&c(St,"revokeObjectURL",(function(t){return Ht.apply(b,arguments)}))}m(St,"URL"),r({global:!0,forced:!s,sham:!o},{URL:St})}},e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";function t(t,n){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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,a=!0,l=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(l)throw s}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(i),n.d(i,{Dropzone:function(){return y},default:function(){return C}}),n(2222),n(7327),n(2772),n(6992),n(1249),n(7042),n(561),n(8264),n(8309),n(489),n(1539),n(4916),n(9714),n(8783),n(4723),n(5306),n(3123),n(3210),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(4747),n(3948),n(285);var r=function(){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e)}var n;return(n=[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};for(var n=this._callbacks[e],i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(n){var s,a=t(n,!0);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.apply(this,r)}}catch(t){a.e(t)}finally{a.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+e,{args:r})),this}},{key:"makeEvent",value:function(t,e){var n={bubbles:!0,cancelable:!0,detail:e};if("function"==typeof window.CustomEvent)return new CustomEvent(t,n);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var i=0;i<n.length;i++){var r=n[i];if(r===e){n.splice(i,1);break}}return this}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(e.prototype,n),e}();function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,a=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var a={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(t,e,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var e,n=o(this.element.getElementsByTagName("div"),!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(/(^| )dz-message($| )/.test(i.className)){t=i,i.className="dz-message";break}}}catch(t){n.e(t)}finally{n.f()}t||(t=y.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var r=t.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,i){var r={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},o=t.width/t.height;null==e&&null==n?(e=r.srcWidth,n=r.srcHeight):null==e?e=n*o:null==n&&(n=e/o);var s=(e=Math.min(e,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>e||r.srcHeight>n)if("crop"===i)o>s?(r.srcHeight=t.height,r.srcWidth=r.srcHeight*s):(r.srcWidth=t.width,r.srcHeight=r.srcWidth/s);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));o>s?n=e/o:e=n*o}return r.srcX=(t.width-r.srcWidth)/2,r.srcY=(t.height-r.srcHeight)/2,r.trgWidth=e,r.trgHeight=n,r},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},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(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){t.previewElement=y.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var n,i=o(t.previewElement.querySelectorAll("[data-dz-name]"),!0);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.textContent=t.name}}catch(t){i.e(t)}finally{i.f()}var s,a=o(t.previewElement.querySelectorAll("[data-dz-size]"),!0);try{for(a.s();!(s=a.n()).done;)(r=s.value).innerHTML=this.filesize(t.size)}catch(t){a.e(t)}finally{a.f()}this.options.addRemoveLinks&&(t._removeLink=y.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var l,c=function(n){return n.preventDefault(),n.stopPropagation(),t.status===y.UPLOADING?y.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?y.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},u=o(t.previewElement.querySelectorAll("[data-dz-remove]"),!0);try{for(u.s();!(l=u.n()).done;)l.value.addEventListener("click",c)}catch(t){u.e(t)}finally{u.f()}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var n,i=o(t.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.alt=t.name,r.src=e}}catch(t){i.e(t)}finally{i.f()}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"string"!=typeof e&&e.error&&(e=e.error);var n,i=o(t.previewElement.querySelectorAll("[data-dz-errormessage]"),!0);try{for(i.s();!(n=i.n()).done;)n.value.textContent=e}catch(t){i.e(t)}finally{i.f()}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement){var i,r=o(t.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;"PROGRESS"===s.nodeName?s.value=e:s.style.width="".concat(e,"%")}}catch(t){r.e(t)}finally{r.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}};function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(o,t);var e,n,i=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,i=v(e);if(n){var r=v(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return g(this,t)});function o(t,e){var n,r,s;if(d(this,o),(n=i.call(this)).element=t,n.version=o.version,n.clickableElements=[],n.listeners=[],n.files=[],"string"==typeof n.element&&(n.element=document.querySelector(n.element)),!n.element||null==n.element.nodeType)throw new Error("Invalid dropzone element.");if(n.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(m(n)),n.element.dropzone=m(n);var l=null!=(s=o.optionsForElement(n.element))?s:{};if(n.options=o.extend({},a,l,null!=e?e:{}),n.options.previewTemplate=n.options.previewTemplate.replace(/\n*/g,""),n.options.forceFallback||!o.isBrowserSupported())return g(n,n.options.fallback.call(m(n)));if(null==n.options.url&&(n.options.url=n.element.getAttribute("action")),!n.options.url)throw new Error("No URL provided.");if(n.options.acceptedFiles&&n.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(n.options.uploadMultiple&&n.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return n.options.acceptedMimeTypes&&(n.options.acceptedFiles=n.options.acceptedMimeTypes,delete n.options.acceptedMimeTypes),null!=n.options.renameFilename&&(n.options.renameFile=function(t){return n.options.renameFilename.call(m(n),t.name,t)}),"string"==typeof n.options.method&&(n.options.method=n.options.method.toUpperCase()),(r=n.getExistingFallback())&&r.parentNode&&r.parentNode.removeChild(r),!1!==n.options.previewsContainer&&(n.options.previewsContainer?n.previewsContainer=o.getElement(n.options.previewsContainer,"previewsContainer"):n.previewsContainer=n.element),n.options.clickable&&(!0===n.options.clickable?n.clickableElements=[n.element]:n.clickableElements=o.getElements(n.options.clickable,"clickable")),n.init(),n}return p(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===o.UPLOADING||t.status===o.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length&&function e(){t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.setAttribute("tabindex","-1"),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",o.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var n=t.hiddenFileInput.files;if(n.length){var i,r=c(n,!0);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.addFile(o)}}catch(t){r.e(t)}finally{r.f()}}t.emit("addedfiles",n),e()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;var e,n=c(this.events,!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.on(i,this.options[i])}}catch(t){n.e(t)}finally{n.f()}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var r=function(t){if(function(t){if(t.dataTransfer.types)for(var e=0;e<t.dataTransfer.types.length;e++)if("Files"===t.dataTransfer.types[e])return!0;return!1}(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return r(e),t.emit("dragenter",e)},dragover:function(e){var n;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return r(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||o.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.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,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,n=0;if(this.getActiveFiles().length){var i,r=c(this.getActiveFiles(),!0);try{for(r.s();!(i=r.n()).done;){var o=i.value;e+=o.upload.bytesSent,n+=o.upload.total}}catch(t){r.e(t)}finally{r.f()}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e;if(t=this.getExistingFallback())return t;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 i=o.createElement(n);return"FORM"!==this.element.tagName?(e=o.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:i}},{key:"getExistingFallback",value:function(){for(var t=function(t){var e,n=c(t,!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(/(^| )fallback($| )/.test(i.className))return i}}catch(t){n.e(t)}finally{n.f()}},e=0,n=["div","form"];e<n.length;e++){var i,r=n[e];if(i=t(this.element.getElementsByTagName(r)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.addEventListener(n,i,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.removeEventListener(n,i,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var o=i[r];if(t>=Math.pow(this.options.filesizeBase,4-r)/10){e=t/Math.pow(this.options.filesizeBase,4-r),n=o;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{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(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(e.length){var i=t.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=(null!=(e=null!=t?t.clipboardData:void 0)?function(t){return t.items}(e):void 0)){var e;this.emit("paste",t);var n=t.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(t){var e,n=c(t,!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.addFile(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var n,i=[],r=c(t,!0);try{for(r.s();!(n=r.n()).done;){var o,s=n.value;null!=s.webkitGetAsEntry&&(o=s.webkitGetAsEntry())?o.isFile?i.push(e.addFile(s.getAsFile())):o.isDirectory?i.push(e._addFilesFromDirectory(o,o.name)):i.push(void 0):null==s.getAsFile||null!=s.kind&&"file"!==s.kind?i.push(void 0):i.push(e.addFile(s.getAsFile()))}}catch(t){r.e(t)}finally{r.f()}return i}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,i=t.createReader(),r=function(t){return n=function(e){return e.log(t)},null!=(e=console)&&"function"==typeof e.log?n(e):void 0;var e,n};return function t(){return i.readEntries((function(i){if(i.length>0){var r,o=c(i,!0);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.isFile?s.file((function(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),n.addFile(t)})):s.isDirectory&&n._addFilesFromDirectory(s,"".concat(e,"/").concat(s.name))}}catch(t){o.e(t)}finally{o.f()}t()}return null}),r)}()}},{key:"accept",value:function(t,e){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;t.upload={uuid:o.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=o.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){var e,n=c(t,!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.enqueueFile(i)}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==o.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===o.UPLOADING&&this.cancelUpload(t),this.files=b(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var e,n=c(this.files.slice(),!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;(i.status!==o.UPLOADING||t)&&this.removeFile(i)}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"resizeImage",value:function(t,e,n,i,r){var s=this;return this.createThumbnail(t,e,n,i,!0,(function(e,n){if(null==n)return r(t);var i=s.options.resizeMimeType;null==i&&(i=t.type);var a=n.toDataURL(i,s.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(a=_.restore(t.dataURL,a)),r(o.dataURItoBlob(a))}))}},{key:"createThumbnail",value:function(t,e,n,i,r,o){var s=this,a=new FileReader;a.onload=function(){t.dataURL=a.result,"image/svg+xml"!==t.type?s.createThumbnailFromUrl(t,e,n,i,r,o):null!=o&&o(a.result)},a.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,n,i){var r=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",t),this.emit("complete",t),o){var s=function(e){r.emit("thumbnail",t,e),n&&n()};t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,s,i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,r,o,s){var a=this,l=document.createElement("img");return s&&(l.crossOrigin=s),r="from-image"!=getComputedStyle(document.body).imageOrientation&&r,l.onload=function(){var s=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(s=function(t){return EXIF.getData(l,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),s((function(r){t.width=l.width,t.height=l.height;var s=a.options.resize.call(a,t,e,n,i),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=s.trgWidth,c.height=s.trgHeight,r>4&&(c.width=s.trgHeight,c.height=s.trgWidth),r){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)}w(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!=o)return o(d,c)}))},null!=o&&(l.onerror=o),l.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-e));for(;n<t;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var e,n=c(t,!0);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.processing=!0,i.status=o.UPLOADING,this.emit("processing",i)}}catch(t){n.e(t)}finally{n.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===o.UPLOADING){var e,n=this._getFilesWithXhr(t.xhr),i=c(n,!0);try{for(i.s();!(e=i.n()).done;)e.value.status=o.CANCELED}catch(t){i.e(t)}finally{i.f()}void 0!==t.xhr&&t.xhr.abort();var r,s=c(n,!0);try{for(s.s();!(r=s.n()).done;){var a=r.value;this.emit("canceled",a)}}catch(t){s.e(t)}finally{s.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else t.status!==o.ADDED&&t.status!==o.QUEUED||(t.status=o.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t.apply(this,n)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(e.options.chunking){var i=n[0];t[0].upload.chunked=e.options.chunking&&(e.options.forceChunking||i.size>e.options.chunkSize),t[0].upload.totalChunkCount=Math.ceil(i.size/e.options.chunkSize)}if(t[0].upload.chunked){var r=t[0],s=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){var i=n*e.options.chunkSize,a=Math.min(i+e.options.chunkSize,s.size),l={name:e._getParamName(0),data:s.webkitSlice?s.webkitSlice(i,a):s.slice(i,a),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:o.UPLOADING,progress:0,retries:0},e._uploadData(t,[l])}};if(r.upload.finishedChunkUpload=function(n,i){var s=!0;n.status=o.SUCCESS,n.dataBlock=null,n.xhr=null;for(var l=0;l<r.upload.totalChunkCount;l++){if(void 0===r.upload.chunks[l])return a();r.upload.chunks[l].status!==o.SUCCESS&&(s=!1)}s&&e.options.chunksUploaded(r,(function(){e._finished(t,i,null)}))},e.options.parallelChunkUploads)for(var l=0;l<r.upload.totalChunkCount;l++)a();else a()}else{for(var c=[],u=0;u<t.length;u++)c[u]={name:e._getParamName(u),data:n[u],filename:t[u].upload.filename};e._uploadData(t,c)}}))}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){var n,i=this,r=new XMLHttpRequest,s=c(t,!0);try{for(s.s();!(n=s.n()).done;)n.value.xhr=r}catch(t){s.e(t)}finally{s.f()}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=r);var a=this.resolveOption(this.options.method,t),l=this.resolveOption(this.options.url,t);r.open(a,l,!0),this.resolveOption(this.options.timeout,t)&&(r.timeout=this.resolveOption(this.options.timeout,t)),r.withCredentials=!!this.options.withCredentials,r.onload=function(e){i._finishedUploading(t,r,e)},r.ontimeout=function(){i._handleUploadError(t,r,"Request timedout after ".concat(i.options.timeout/1e3," seconds"))},r.onerror=function(){i._handleUploadError(t,r)},(null!=r.upload?r.upload:r).onprogress=function(e){return i._updateFilesUploadProgress(t,r,e)};var u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var d in this.options.headers&&o.extend(u,this.options.headers),u){var h=u[d];h&&r.setRequestHeader(d,h)}var p=new FormData;if(this.options.params){var f=this.options.params;for(var g in"function"==typeof f&&(f=f.call(this,t,r,t[0].upload.chunked?this._getChunk(t[0],r):null)),f){var m=f[g];if(Array.isArray(m))for(var v=0;v<m.length;v++)p.append(g,m[v]);else p.append(g,m)}}var y,b=c(t,!0);try{for(b.s();!(y=b.n()).done;){var x=y.value;this.emit("sending",x,r,p)}}catch(t){b.e(t)}finally{b.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",t,r,p),this._addFormElementData(p);for(var w=0;w<e.length;w++){var _=e[w];p.append(_.name,_.data,_.filename)}this.submitRequest(r,p,t)}},{key:"_transformFiles",value:function(t,e){for(var n=this,i=[],r=0,o=function(o){n.options.transformFile.call(n,t[o],(function(n){i[o]=n,++r===t.length&&e(i)}))},s=0;s<t.length;s++)o(s)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName){var e,n=c(this.element.querySelectorAll("input, textarea, select, button"),!0);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.getAttribute("name"),o=i.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=r)if("SELECT"===i.tagName&&i.hasAttribute("multiple")){var s,a=c(i.options,!0);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.selected&&t.append(r,l.value)}}catch(t){a.e(t)}finally{a.f()}}else(!o||"checkbox"!==o&&"radio"!==o||i.checked)&&t.append(r,i.value)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){if(t[0].upload.chunked){var i=t[0],r=this._getChunk(i,e);n?(r.progress=100*n.loaded/n.total,r.total=n.total,r.bytesSent=n.loaded):(r.progress=100,r.bytesSent=r.total),i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var o=0;o<i.upload.totalChunkCount;o++)i.upload.chunks[o]&&void 0!==i.upload.chunks[o].progress&&(i.upload.progress+=i.upload.chunks[o].progress,i.upload.total+=i.upload.chunks[o].total,i.upload.bytesSent+=i.upload.chunks[o].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount,this.emit("uploadprogress",i,i.upload.progress,i.upload.bytesSent)}else{var s,a=c(t,!0);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.upload.total&&l.upload.bytesSent&&l.upload.bytesSent==l.upload.total||(n?(l.upload.progress=100*n.loaded/n.total,l.upload.total=n.total,l.upload.bytesSent=n.loaded):(l.upload.progress=100,l.upload.bytesSent=l.upload.total),this.emit("uploadprogress",l,l.upload.progress,l.upload.bytesSent))}}catch(t){a.e(t)}finally{a.f()}}}},{key:"_finishedUploading",value:function(t,e,n){var i;if(t[0].status!==o.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(i=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(t){n=t,i="Invalid JSON response from server."}this._updateFilesUploadProgress(t,e),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e),i):this._finished(t,i,n):this._handleUploadError(t,e,i)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==o.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(t[0],e);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,n){1==t.readyState?t.send(e):console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}},{key:"_finished",value:function(t,e,n){var i,r=c(t,!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;s.status=o.SUCCESS,this.emit("success",s,e,n),this.emit("complete",s)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){var i,r=c(t,!0);try{for(r.s();!(i=r.n()).done;){var s=i.value;s.status=o.ERROR,this.emit("error",s,e,n),this.emit("complete",s)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),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(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var s=o[r];for(var a in s){var l=s[a];t[a]=l}}return t}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),o}(r);y.initClass(),y.version="5.9.3",y.options={},y.optionsForElement=function(t){return t.getAttribute("id")?y.options[x(t.getAttribute("id"))]:void 0},y.instances=[],y.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.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 t.dropzone},y.autoDiscover=!0,y.discover=function(){var t;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){var n,i=[],r=c(e,!0);try{for(r.s();!(n=r.n()).done;){var o=n.value;/(^| )dropzone($| )/.test(o.className)?i.push(t.push(o)):i.push(void 0)}}catch(t){r.e(t)}finally{r.f()}return i}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e,n=[],i=c(t,!0);try{for(i.s();!(e=i.n()).done;){var r=e.value;!1!==y.optionsForElement(r)?n.push(new y(r)):n.push(void 0)}}catch(t){i.e(t)}finally{i.f()}return n}()},y.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],y.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==y.blacklistedBrowsers&&(y.blockedBrowsers=y.blacklistedBrowsers);var e,n=c(y.blockedBrowsers,!0);try{for(n.s();!(e=n.n()).done;)e.value.test(navigator.userAgent)&&(t=!1)}catch(t){n.e(t)}finally{n.f()}}else t=!1;else t=!1;return t},y.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i),o=0,s=e.length,a=0<=s;a?o<=s:o>=s;a?o++:o--)r[o]=e.charCodeAt(o);return new Blob([i],{type:n})};var b=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},x=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};y.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},y.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},y.getElement=function(t,e){var n;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},y.getElements=function(t,e){var n,i;if(t instanceof Array){i=[];try{var r,o=c(t,!0);try{for(o.s();!(r=o.n()).done;)n=r.value,i.push(this.getElement(n,e))}catch(t){o.e(t)}finally{o.f()}}catch(t){i=null}}else if("string"==typeof t){i=[];var s,a=c(document.querySelectorAll(t),!0);try{for(a.s();!(s=a.n()).done;)n=s.value,i.push(n)}catch(t){a.e(t)}finally{a.f()}}else null!=t.nodeType&&(i=[t]);if(null==i||!i.length)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},y.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},y.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var n,i=t.type,r=i.replace(/\/.*$/,""),o=c(e,!0);try{for(o.s();!(n=o.n()).done;){var s=n.value;if("."===(s=s.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(s.toLowerCase(),t.name.length-s.length))return!0}else if(/\/\*$/.test(s)){if(r===s.replace(/\/.*$/,""))return!0}else if(i===s)return!0}}catch(t){o.e(t)}finally{o.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new y(this,t)}))}),y.ADDED="added",y.QUEUED="queued",y.ACCEPTED=y.QUEUED,y.UPLOADING="uploading",y.PROCESSING=y.UPLOADING,y.CANCELED="canceled",y.ERROR="error",y.SUCCESS="success";var w=function(t,e,n,i,r,o,s,a,l,c){var u=function(t){t.naturalWidth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var i=n.getContext("2d");i.drawImage(t,0,0);for(var r=i.getImageData(1,0,1,e).data,o=0,s=e,a=e;a>o;)0===r[4*(a-1)+3]?s=a:o=a,a=s+o>>1;var l=a/e;return 0===l?1:l}(e);return t.drawImage(e,n,i,r,o,s,a,l,c/u)},_=function(){function t(){d(this,t)}return p(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,i=void 0,r="",o=void 0,s=void 0,a=void 0,l="",c=0;o=(n=t[c++])>>2,s=(3&n)<<4|(i=t[c++])>>4,a=(15&i)<<2|(r=t[c++])>>6,l=63&r,isNaN(i)?a=l=64:isNaN(r)&&(l=64),e=e+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),n=i=r="",o=s=a=l="",c<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(e,i);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),i=this.insertExif(t,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(255===(e=t[n])[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),o=i.slice(0,r),s=i.slice(r);return o.concat(e).concat(s)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];!(255===t[e]&218===t[e+1]);){if(255===t[e]&216===t[e+1])e+=2;else{var i=e+(256*t[e+2]+t[e+3])+2,r=t.slice(e,i);n.push(r),e=i}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,i="",r=void 0,o=void 0,s="",a=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&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."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(a++))<<2|(r=this.KEY_STR.indexOf(t.charAt(a++)))>>4,n=(15&r)<<4|(o=this.KEY_STR.indexOf(t.charAt(a++)))>>2,i=(3&o)<<6|(s=this.KEY_STR.indexOf(t.charAt(a++))),l.push(e),64!==o&&l.push(n),64!==s&&l.push(i),e=n=i="",r=o=s="",a<t.length;);return l}}]),t}();_.initClass(),y._autoDiscoverFunction=function(){if(y.autoDiscover)return y.discover()},function(t,e){var n=!1,i=!0,r=t.document,o=r.documentElement,s=r.addEventListener?"addEventListener":"attachEvent",a=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",c=function i(o){if("readystatechange"!==o.type||"complete"===r.readyState)return("load"===o.type?t:r)[a](l+o.type,i,!1),!n&&(n=!0)?e.call(t,o.type||o):void 0};if("complete"!==r.readyState){if(r.createEventObject&&o.doScroll){try{i=!t.frameElement}catch(t){}i&&function t(){try{o.doScroll("left")}catch(e){return void setTimeout(t,50)}return c("poll")}()}r[s](l+"DOMContentLoaded",c,!1),r[s](l+"readystatechange",c,!1),t[s](l+"load",c,!1)}}(window,y._autoDiscoverFunction),window.Dropzone=y;var C=y}(),i}()})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}((function(t,e){function n(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function r(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(n,i){return function(){return i!==e&&t.fn.datepicker.deprecated(i),this[n].apply(this,arguments)}}function s(e,n){function i(t,e){return e.toLowerCase()}var r=t(e).data(),o={},s=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),r)n.test(a)&&(o[a.replace(s,i)]=r[a]);return o}function a(e){var n={};if(g[e]||(e=e.split("-")[0],g[e])){var i=g[e];return t.each(f,(function(t,e){e in i&&(n[e]=i[e])})),n}}var l=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,i=this.length;n<i;n++)if(0<=this[n].valueOf()-e&&this[n].valueOf()-e<864e5)return n;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(Array.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new l;return t.replace(this),t}};return function(){var n=[];return n.push.apply(n,arguments),t.extend(n,e),n}}(),c=function(e,n){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(n),this.dates=new l,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=t(m.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",(function(t,e){return Number(e)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(e){return t.each(m.viewModes,(function(n,i){if(e===n||-1!==t.inArray(e,i.names))return e=n,!1})),e},_resolveDaysOfWeek:function(e){return Array.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(n){try{return n!==e&&""!==n&&((n.match(/[<>]/g)||[]).length<=0||t(n).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var r=this.o=t.extend({},this._o),o=r.language;g[o]||(o=o.split("-")[0],g[o]||(o=p.language)),r.language=o,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var s=m.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=m.parseDate(r.startDate,s,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=m.parseDate(r.endDate,s,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],Array.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=t.map(r.datesDisabled,(function(t){return m.parseDate(t,s,r.language,r.assumeNearbyYear)}));var a=String(r.orientation).toLowerCase().split(/\s+/g),l=r.orientation.toLowerCase();if(a=t.grep(a,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),r.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":r.orientation.y=a[0];break;case"left":case"right":r.orientation.x=a[0]}else l=t.grep(a,(function(t){return/^left|right$/.test(t)})),r.orientation.x=l[0]||"auto",l=t.grep(a,(function(t){return/^top|bottom$/.test(t)})),r.orientation.y=l[0]||"auto";if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=m.parseDate(r.defaultViewDate,s,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var c=r.defaultViewDate.year||(new Date).getFullYear(),u=r.defaultViewDate.month||0,d=r.defaultViewDate.day||1;r.defaultViewDate=n(c,u,d)}else r.defaultViewDate=i()},_applyEvents:function(t){for(var n,i,r,o=0;o<t.length;o++)n=t[o][0],2===t[o].length?(i=e,r=t[o][1]):3===t[o].length&&(i=t[o][1],r=t[o][2]),n.on(r,i)},_unapplyEvents:function(t){for(var n,i,r,o=0;o<t.length;o++)n=t[o][0],2===t[o].length?(r=e,i=t[o][1]):3===t[o].length&&(r=t[o][1],i=t[o][2]),n.off(i,r)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,n){var i=n||this.dates.get(-1),r=this._utc_to_local(i);this.element.trigger({type:e,date:r,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var n=this.dates.get(t);return m.formatDate(n,e,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var n;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))n=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;n=window.clipboardData.getData("Text")}this.setDate(n),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&n(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(n){n===e&&(n=this.o.format);var i=this.o.language;return t.map(this.dates,(function(t){return m.formatDate(t,n,i)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),n=this.picker.outerHeight(),i=t(this.o.container),r=i.width(),o="body"===this.o.container?t(document).scrollTop():i.scrollTop(),s=i.offset(),a=[0];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&a.push(Number(e))}));var l=Math.max.apply(Math,a)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),u=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),h=c.left-s.left,p=c.top-s.top;"body"!==this.o.container&&(p+=o),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(h-=e-d)):c.left<0?(this.picker.addClass("datepicker-orient-left"),h-=c.left-10):h+e>r?(this.picker.addClass("datepicker-orient-right"),h+=d-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-o+p-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=n+parseInt(this.picker.css("padding-top")):p+=u,this.o.rtl){var g=r-(h+d);this.picker.css({top:p,right:g,zIndex:l})}else this.picker.css({top:p,left:h,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],i=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)}),this)),i=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=t.map(n,t.proxy((function(t){return m.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=t.grep(n,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),i?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,n="<tr>";for(this.o.calendarWeeks&&(n+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)n+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(n+=" disabled"),n+='">'+g[this.o.language].daysMin[e++%7]+"</th>";n+="</tr>",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+='<span class="month'+(t&&t.getMonth()===n?" focused":"")+'">'+g[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var n=[],o=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a=i();return e.getUTCFullYear()<o||e.getUTCFullYear()===o&&e.getUTCMonth()<s?n.push("old"):(e.getUTCFullYear()>o||e.getUTCFullYear()===o&&e.getUTCMonth()>s)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&r(e,a)&&n.push("today"),-1!==this.dates.contains(e)&&n.push("active"),this.dateWithinRange(e)||n.push("disabled"),this.dateIsDisabled(e)&&n.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&n.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&n.push("selected"),e.valueOf()===this.range[0]&&n.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&n.push("range-end")),n},_fill_yearsView:function(n,i,r,o,s,a,l){for(var c,u,d,h="",p=r/10,f=this.picker.find(n),g=Math.floor(o/r)*r,m=g+9*p,v=Math.floor(this.viewDate.getFullYear()/p)*p,y=t.map(this.dates,(function(t){return Math.floor(t.getUTCFullYear()/p)*p})),b=g-p;b<=m+p;b+=p)c=[i],u=null,b===g-p?c.push("old"):b===m+p&&c.push("new"),-1!==t.inArray(b,y)&&c.push("active"),(b<s||b>a)&&c.push("disabled"),b===v&&c.push("focused"),l!==t.noop&&((d=l(new Date(b,0,1)))===e?d={}:"boolean"==typeof d?d={enabled:d}:"string"==typeof d&&(d={classes:d}),!1===d.enabled&&c.push("disabled"),d.classes&&(c=c.concat(d.classes.split(/\s+/))),d.tooltip&&(u=d.tooltip)),h+='<span class="'+c.join(" ")+'"'+(u?' title="'+u+'"':"")+">"+b+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(h)},fill:function(){var r,o,s=new Date(this.viewDate),a=s.getUTCFullYear(),l=s.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,p=g[this.o.language].today||g.en.today||"",f=g[this.o.language].clear||g.en.clear||"",v=g[this.o.language].titleFormat||g.en.titleFormat,y=i(),b=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&y>=this.o.startDate&&y<=this.o.endDate&&!this.weekOfDateIsDisabled(y);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(m.formatDate(s,v,this.o.language)),this.picker.find("tfoot .today").text(p).css("display",b?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var x=n(a,l,0),w=x.getUTCDate();x.setUTCDate(w-(x.getUTCDay()-this.o.weekStart+7)%7);var _=new Date(x);x.getUTCFullYear()<100&&_.setUTCFullYear(x.getUTCFullYear()),_.setUTCDate(_.getUTCDate()+42),_=_.valueOf();for(var C,k,S=[];x.valueOf()<_;){if((C=x.getUTCDay())===this.o.weekStart&&(S.push("<tr>"),this.o.calendarWeeks)){var T=new Date(+x+(this.o.weekStart-C-7)%7*864e5),A=new Date(Number(T)+(11-T.getUTCDay())%7*864e5),D=new Date(Number(D=n(A.getUTCFullYear(),0,1))+(11-D.getUTCDay())%7*864e5),E=(A-D)/864e5/7+1;S.push('<td class="cw">'+E+"</td>")}(k=this.getClassNames(x)).push("day");var M=x.getUTCDate();this.o.beforeShowDay!==t.noop&&((o=this.o.beforeShowDay(this._utc_to_local(x)))===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&k.push("disabled"),o.classes&&(k=k.concat(o.classes.split(/\s+/))),o.tooltip&&(r=o.tooltip),o.content&&(M=o.content)),k="function"==typeof t.uniqueSort?t.uniqueSort(k):t.unique(k),S.push('<td class="'+k.join(" ")+'"'+(r?' title="'+r+'"':"")+' data-date="'+x.getTime().toString()+'">'+M+"</td>"),r=null,C===this.o.weekEnd&&S.push("</tr>"),x.setUTCDate(x.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(S.join(""));var O=g[this.o.language].monthsTitle||g.en.monthsTitle||"Months",P=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?O:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===a&&P.eq(e.getUTCMonth()).addClass("active")})),(a<c||a>d)&&P.addClass("disabled"),a===c&&P.slice(0,u).addClass("disabled"),a===d&&P.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var L=this;t.each(P,(function(n,i){var r=new Date(a,n,1),o=L.o.beforeShowMonth(r);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(i).hasClass("disabled")||t(i).addClass("disabled"),o.classes&&t(i).addClass(o.classes),o.tooltip&&t(i).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,a,c,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<=o,e=Math.floor(i/c)*c+c>a;break;case 0:t=i<=o&&r<=s,e=i>=a&&r>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var r,o,s;e.preventDefault(),e.stopPropagation(),(r=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(s=r.parent().find("span").index(r),o=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s)):(s=0,o=Number(r.text()),this.viewDate.setUTCFullYear(o)),this._trigger(m.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(o,s,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var n=t(e.currentTarget).data("date"),i=new Date(n);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(i)},navArrowsClick:function(e){var n=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*m.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(m.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!function(t){return t&&!isNaN(t.getTime())}(t))return this.o.defaultViewDate;if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),a=Math.abs(e);if(e=e>0?1:-1,1===a)i=-1===e?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==n},n=s+e,r.setUTCMonth(n),n=(n+12)%12;else{for(var l=0;l<a;l++)r=this.moveMonth(r,e);n=r.getUTCMonth(),r.setUTCDate(o),i=function(){return n!==r.getUTCMonth()}}for(;i();)r.setUTCDate(--o),r.setUTCMonth(n);return r},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,n){do{if(t=this[n](t,e),!this.dateWithinRange(t))return!1;n="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,(function(t){return r(e,t)})).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+m.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(e,n){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(n.inputs,(function(t){return t.jquery?t[0]:t})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,h.call(t(this.inputs),n).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,n){n.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var i=t.data(n.target,"datepicker");if(i!==e){var r=i.getUTCDate(),o=this.keepEmptyValues,s=t.inArray(n.target,this.inputs),a=s-1,l=s+1,c=this.inputs.length;if(-1!==s){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==i&&o||e.setUTCDate(r)})),r<this.dates[a])for(;a>=0&&r<this.dates[a]&&(this.pickers[a].element.val()||"").length>0;)this.pickers[a--].setUTCDate(r);else if(r>this.dates[l])for(;l<c&&r>this.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,h=function(n){var i,r=Array.apply(null,arguments);if(r.shift(),this.each((function(){var e=t(this),o=e.data("datepicker"),l="object"==typeof n&&n;if(!o){var d=s(this,"date"),h=a(t.extend({},p,d,l).language),f=t.extend({},p,h,d,l);e.hasClass("input-daterange")||f.inputs?(t.extend(f,{inputs:f.inputs||e.find("input").toArray()}),o=new u(this,f)):o=new c(this,f),e.data("datepicker",o)}"string"==typeof n&&"function"==typeof o[n]&&(i=o[n].apply(o,r))})),i===e||i instanceof c||i instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return i};t.fn.datepicker=h;var p=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},f=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var g=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},m={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,r,o,s){function a(){var t=this.slice(0,l[h].length),e=l[h].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!n)return e;if(n instanceof Date)return n;if("string"==typeof r&&(r=m.parseFormat(r)),r.toValue)return r.toValue(n,r,o);var l,u,d,h,p,f={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in v&&(n=v[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,h=0;h<l.length;h++)u=l[h].match(/([\-+]\d+)([dmwy])/i),d=Number(u[1]),p=f[u[2].toLowerCase()],n=c.prototype[p](n,d);return c.prototype._zero_utc_time(n)}l=n&&n.match(this.nonpunctuation)||[];var y,b,x={},w=["yyyy","yy","M","MM","m","mm","d","dd"],_={yyyy:function(t,e){return t.setUTCFullYear(s?function(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}(e,s):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};_.yy=_.yyyy,_.M=_.MM=_.mm=_.m,_.dd=_.d,n=i();var C=r.parts.slice();if(l.length!==C.length&&(C=t(C).filter((function(e,n){return-1!==t.inArray(n,w)})).toArray()),l.length===C.length){var k,S,T;for(h=0,k=C.length;h<k;h++){if(y=parseInt(l[h],10),u=C[h],isNaN(y))switch(u){case"MM":b=t(g[o].months).filter(a),y=t.inArray(b[0],g[o].months)+1;break;case"M":b=t(g[o].monthsShort).filter(a),y=t.inArray(b[0],g[o].monthsShort)+1}x[u]=y}for(h=0;h<w.length;h++)(T=w[h])in x&&!isNaN(x[T])&&(S=new Date(n),_[T](S,x[T]),isNaN(S)||(n=S))}return n},formatDate:function(e,n,i){if(!e)return"";if("string"==typeof n&&(n=m.parseFormat(n)),n.toDisplay)return n.toDisplay(e,n,i);var r={d:e.getUTCDate(),D:g[i].daysShort[e.getUTCDay()],DD:g[i].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:g[i].monthsShort[e.getUTCMonth()],MM:g[i].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};r.dd=(r.d<10?"0":"")+r.d,r.mm=(r.m<10?"0":"")+r.m,e=[];for(var o=t.extend([],n.separators),s=0,a=n.parts.length;s<=a;s++)o.length&&e.push(o.shift()),e.push(r[n.parts[s]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+p.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+p.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};m.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+m.headTemplate+"<tbody></tbody>"+m.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=m,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.10.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),h.call(n,"show"))})),t((function(){h.call(t('[data-provide="datepicker-inline"]'))}))})),"undefined"!=typeof jQuery&&function(t,e){function n(t,e,n){return new Array(n+1-t.length).join(e)+t}function i(){if(1===arguments.length){var e=arguments[0];return"string"==typeof e&&(e=t.fn.timepicker.parseTime(e)),new Date(0,0,0,e.getHours(),e.getMinutes(),e.getSeconds())}return 3===arguments.length?new Date(0,0,0,arguments[0],arguments[1],arguments[2]):2===arguments.length?new Date(0,0,0,arguments[0],arguments[1],0):new Date(0,0,0)}var r,o;t.TimePicker=function(){var e=this;e.container=t(".ui-timepicker-container"),e.ui=e.container.find(".ui-timepicker"),0===e.container.length&&(e.container=t("<div></div>").addClass("ui-timepicker-container").addClass("ui-timepicker-hidden ui-helper-hidden").appendTo("body").hide(),e.ui=t("<div></div>").addClass("ui-timepicker").addClass("ui-widget ui-widget-content ui-menu").addClass("ui-corner-all").appendTo(e.container),e.viewport=t("<ul></ul>").addClass("ui-timepicker-viewport").appendTo(e.ui),t.fn.jquery>="1.4.2"&&e.ui.delegate("a","mouseenter.timepicker",(function(){e.activate(!1,t(this).parent())})).delegate("a","mouseleave.timepicker",(function(){e.deactivate(!1)})).delegate("a","click.timepicker",(function(n){n.preventDefault(),e.select(!1,t(this).parent())})))},t.TimePicker.count=0,t.TimePicker.instance=function(){return t.TimePicker._instance||(t.TimePicker._instance=new t.TimePicker),t.TimePicker._instance},t.TimePicker.prototype={keyCode:{ALT:18,BLOQ_MAYUS:20,CTRL:17,DOWN:40,END:35,ENTER:13,HOME:36,LEFT:37,NUMPAD_ENTER:108,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,TAB:9,UP:38},_items:function(e,n){var r,o,s=t("<ul></ul>"),a=null;for(-1===e.options.timeFormat.indexOf("m")&&e.options.interval%60!=0&&(e.options.interval=60*Math.max(Math.round(e.options.interval/60),1)),r=n?i(n):e.options.startTime?i(e.options.startTime):i(e.options.startHour,e.options.startMinutes),o=new Date(r.getTime()+864e5);r<o;)this._isValidTime(e,r)&&(a=t("<li>").addClass("ui-menu-item").appendTo(s),t("<a>").addClass("ui-corner-all").text(t.fn.timepicker.formatTime(e.options.timeFormat,r)).appendTo(a),a.data("time-value",r)),r=new Date(r.getTime()+60*e.options.interval*1e3);return s.children()},_isValidTime:function(t,e){var n=null,r=null;return e=i(e),null!==t.options.minTime?n=i(t.options.minTime):null===t.options.minHour&&null===t.options.minMinutes||(n=i(t.options.minHour,t.options.minMinutes)),null!==t.options.maxTime?r=i(t.options.maxTime):null===t.options.maxHour&&null===t.options.maxMinutes||(r=i(t.options.maxHour,t.options.maxMinutes)),null!==n&&null!==r?e>=n&&e<=r:null!==n?e>=n:null===r||e<=r},_hasScroll:function(){var t=void 0!==this.ui.prop?"prop":"attr";return this.ui.height()<this.ui[t]("scrollHeight")},_move:function(t,e,n){if(this.closed()&&this.open(t),this.active){var i=this.active[e+"All"](".ui-menu-item").eq(0);i.length?this.activate(t,i):this.activate(t,this.viewport.children(n))}else this.activate(t,this.viewport.children(n))},register:function(e,n){var i=this,r={};r.element=t(e),r.element.data("TimePicker")||(r.options=t.metadata?t.extend({},n,r.element.metadata()):t.extend({},n),r.widget=i,t.extend(r,{next:function(){return i.next(r)},previous:function(){return i.previous(r)},first:function(){return i.first(r)},last:function(){return i.last(r)},selected:function(){return i.selected(r)},open:function(){return i.open(r)},close:function(){return i.close(r)},closed:function(){return i.closed(r)},destroy:function(){return i.destroy(r)},parse:function(t){return i.parse(r,t)},format:function(t,e){return i.format(r,t,e)},getTime:function(){return i.getTime(r)},setTime:function(t,e){return i.setTime(r,t,e)},option:function(t,e){return i.option(r,t,e)}}),i._setDefaultTime(r),i._addInputEventsHandlers(r),r.element.data("TimePicker",r))},_setDefaultTime:function(e){"now"===e.options.defaultTime?e.setTime(i(new Date)):e.options.defaultTime&&e.options.defaultTime.getFullYear?e.setTime(i(e.options.defaultTime)):e.options.defaultTime&&e.setTime(t.fn.timepicker.parseTime(e.options.defaultTime))},_addInputEventsHandlers:function(e){var n=this;e.element.bind("keydown.timepicker",(function(t){switch(t.which||t.keyCode){case n.keyCode.ENTER:case n.keyCode.NUMPAD_ENTER:t.preventDefault(),n.closed()?e.element.trigger("change.timepicker"):n.select(e,n.active);break;case n.keyCode.UP:e.previous();break;case n.keyCode.DOWN:e.next();break;default:n.closed()||e.close(!0)}})).bind("focus.timepicker",(function(){e.open()})).bind("blur.timepicker",(function(){setTimeout((function(){e.element.data("timepicker-user-clicked-outside")&&e.close()}))})).bind("change.timepicker",(function(){e.closed()&&e.setTime(t.fn.timepicker.parseTime(e.element.val()))}))},select:function(e,n){var i=!1===e?this.instance:e;this.setTime(i,t.fn.timepicker.parseTime(n.children("a").text())),this.close(i,!0)},activate:function(t,e){if((!1===t?this.instance:t)===this.instance){if(this.deactivate(),this._hasScroll()){var n=e.offset().top-this.ui.offset().top,i=this.ui.scrollTop(),r=this.ui.height();n<0?this.ui.scrollTop(i+n):n>=r&&this.ui.scrollTop(i+n-r+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-item").end()}},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this.active=null)},next:function(t){return(this.closed()||this.instance===t)&&this._move(t,"next",".ui-menu-item:first"),t.element},previous:function(t){return(this.closed()||this.instance===t)&&this._move(t,"prev",".ui-menu-item:last"),t.element},first:function(t){return this.instance===t&&(this.active&&0===this.active.prevAll(".ui-menu-item").length)},last:function(t){return this.instance===t&&(this.active&&0===this.active.nextAll(".ui-menu-item").length)},selected:function(t){return this.instance===t&&this.active?this.active:null},open:function(e){var n=this,i=e.getTime(),r=e.options.dynamic&&i;if(!e.options.dropdown)return e.element;switch(e.element.data("timepicker-event-namespace",Math.random()),t(document).bind("click.timepicker-"+e.element.data("timepicker-event-namespace"),(function(t){e.element.get(0)===t.target?e.element.data("timepicker-user-clicked-outside",!1):e.element.data("timepicker-user-clicked-outside",!0).blur()})),(e.rebuild||!e.items||r)&&(e.items=n._items(e,r?i:null)),(e.rebuild||n.instance!==e||r)&&(t.fn.jquery<"1.4.2"?(n.viewport.children().remove(),n.viewport.append(e.items),n.viewport.find("a").bind("mouseover.timepicker",(function(){n.activate(e,t(this).parent())})).bind("mouseout.timepicker",(function(){n.deactivate(e)})).bind("click.timepicker",(function(i){i.preventDefault(),n.select(e,t(this).parent())}))):(n.viewport.children().detach(),n.viewport.append(e.items))),e.rebuild=!1,n.container.removeClass("ui-helper-hidden ui-timepicker-hidden ui-timepicker-standard ui-timepicker-corners").show(),e.options.theme){case"standard":n.container.addClass("ui-timepicker-standard");break;case"standard-rounded-corners":n.container.addClass("ui-timepicker-standard ui-timepicker-corners")}n.container.hasClass("ui-timepicker-no-scrollbar")||e.options.scrollbar||(n.container.addClass("ui-timepicker-no-scrollbar"),n.viewport.css({paddingRight:40}));var o=n.container.outerHeight()-n.container.height(),s=e.options.zindex?e.options.zindex:e.element.offsetParent().css("z-index"),a=e.element.offset();n.container.css({top:a.top+e.element.outerHeight(),left:a.left}),n.container.show(),n.container.css({left:e.element.offset().left,height:n.ui.outerHeight()+o,width:e.element.outerWidth(),zIndex:s,cursor:"default"});var l=n.container.width()-(n.ui.outerWidth()-n.ui.width());return n.ui.css({width:l}),n.viewport.css({width:l}),e.items.css({width:l}),n.instance=e,i?e.items.each((function(){var r=t(this);return(t.fn.jquery<"1.4.2"?t.fn.timepicker.parseTime(r.find("a").text()):r.data("time-value")).getTime()!==i.getTime()||(n.activate(e,r),!1)})):n.deactivate(e),e.element},close:function(e){return this.instance===e&&(this.container.addClass("ui-helper-hidden ui-timepicker-hidden").hide(),this.ui.scrollTop(0),this.ui.children().removeClass("ui-state-hover")),t(document).unbind("click.timepicker-"+e.element.data("timepicker-event-namespace")),e.element},closed:function(){return this.ui.is(":hidden")},destroy:function(t){return this.close(t,!0),t.element.unbind(".timepicker").data("TimePicker",null)},parse:function(e,n){return t.fn.timepicker.parseTime(n)},format:function(e,n,i){return i=i||e.options.timeFormat,t.fn.timepicker.formatTime(i,n)},getTime:function(e){var n=t.fn.timepicker.parseTime(e.element.val());return n instanceof Date&&!this._isValidTime(e,n)?null:n instanceof Date&&e.selectedTime?e.format(n)===e.format(e.selectedTime)?e.selectedTime:n:n instanceof Date?n:null},setTime:function(e,n,r){var o=e.selectedTime;if("string"==typeof n&&(n=e.parse(n)),n&&n.getMinutes&&this._isValidTime(e,n)){if(n=i(n),e.selectedTime=n,e.element.val(e.format(n,e.options.timeFormat)),r)return e}else e.selectedTime=null;return null===o&&null===e.selectedTime||(e.element.trigger("time-change",[n]),t.isFunction(e.options.change)&&e.options.change.apply(e.element,[n])),e.element},option:function(e,n,i){if(void 0===i)return e.options[n];var r,o,s=e.getTime();"string"==typeof n?(r={})[n]=i:r=n,o=["minHour","minMinutes","minTime","maxHour","maxMinutes","maxTime","startHour","startMinutes","startTime","timeFormat","interval","dropdown"],t.each(r,(function(n){e.options[n]=r[n],e.rebuild=e.rebuild||t.inArray(n,o)>-1})),e.rebuild&&e.setTime(s)}},t.TimePicker.defaults={timeFormat:"hh:mm p",minHour:null,minMinutes:null,minTime:null,maxHour:null,maxMinutes:null,maxTime:null,startHour:null,startMinutes:null,startTime:null,interval:30,dynamic:!0,theme:"standard",zindex:null,dropdown:!0,scrollbar:!1,change:function(){}},t.TimePicker.methods={chainable:["next","previous","open","close","destroy","setTime"]},t.fn.timepicker=function(e){if("string"==typeof e){var n,i,r=Array.prototype.slice.call(arguments,1);return i=this[n="option"===e&&arguments.length>2||-1!==t.inArray(e,t.TimePicker.methods.chainable)?"each":"map"]((function(){var n=t(this).data("TimePicker");if("object"==typeof n)return n[e].apply(n,r)})),"map"===n&&1===this.length?t.makeArray(i).shift():"map"===n?t.makeArray(i):i}if(1===this.length&&this.data("TimePicker"))return this.data("TimePicker");var o=t.extend({},t.TimePicker.defaults,e);return this.each((function(){t.TimePicker.instance().register(this,o)}))},t.fn.timepicker.formatTime=function(t,e){var i=e.getHours(),r=i%12,o=e.getMinutes(),s=e.getSeconds(),a={hh:n((0===r?12:r).toString(),"0",2),HH:n(i.toString(),"0",2),mm:n(o.toString(),"0",2),ss:n(s.toString(),"0",2),h:0===r?12:r,H:i,m:o,s:s,p:i>11?"PM":"AM"},l=t,c="";for(c in a)a.hasOwnProperty(c)&&(l=l.replace(new RegExp(c,"g"),a[c]));return l=l.replace(new RegExp("a","g"),i>11?"pm":"am")},t.fn.timepicker.parseTime=(o=(r=[[/^(\d+)$/,"$1"],[/^:(\d)$/,"$10"],[/^:(\d+)/,"$1"],[/^(\d):([7-9])$/,"0$10$2"],[/^(\d):(\d\d)$/,"$1$2"],[/^(\d):(\d{1,})$/,"0$1$20"],[/^(\d\d):([7-9])$/,"$10$2"],[/^(\d\d):(\d)$/,"$1$20"],[/^(\d\d):(\d*)$/,"$1$2"],[/^(\d{3,}):(\d)$/,"$10$2"],[/^(\d{3,}):(\d{2,})/,"$1$2"],[/^(\d):(\d):(\d)$/,"0$10$20$3"],[/^(\d{1,2}):(\d):(\d\d)/,"$10$2$3"]]).length,function(e){var n,s,a=i(new Date),l=!1,c=!1,u=!1;if(void 0===e||!e.toLowerCase)return null;e=e.toLowerCase(),s=!(n=/a/.test(e))&&/p/.test(e),e=e.replace(/[^0-9:]/g,"").replace(/:+/g,":");for(var d=0;d<o;d+=1)if(r[d][0].test(e)){e=e.replace(r[d][0],r[d][1]);break}return 1===(e=e.replace(/:/g,"")).length||2===e.length?l=e:3===e.length||5===e.length?(l=e.substr(0,1),c=e.substr(1,2),u=e.substr(3,2)):(4===e.length||e.length>5)&&(l=e.substr(0,2),c=e.substr(2,2),u=e.substr(4,2)),e.length>0&&e.length<5&&(e.length<3&&(c=0),u=0),!1!==l&&!1!==c&&!1!==u&&(l=parseInt(l,10),c=parseInt(c,10),u=parseInt(u,10),n&&12===l?l=0:s&&l<12&&(l+=12),l>24?e.length>=6?t.fn.timepicker.parseTime(e.substr(0,5)):t.fn.timepicker.parseTime(e+"0"+(n?"a":"")+(s?"p":"")):(a.setHours(l,c,u),a))})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){"use strict";var e={},n=Math.max,i=Math.min;e.c={},e.c.d=t(document),e.c.t=function(t){return t.originalEvent.touches.length-1},e.o=function(){var n=this;this.o=null,this.$=null,this.i=null,this.g=null,this.v=null,this.cv=null,this.x=0,this.y=0,this.w=0,this.h=0,this.$c=null,this.c=null,this.t=0,this.isInit=!1,this.fgColor=null,this.pColor=null,this.dH=null,this.cH=null,this.eH=null,this.rH=null,this.scale=1,this.relative=!1,this.relativeWidth=!1,this.relativeHeight=!1,this.$div=null,this.run=function(){var e=function(t,e){var i;for(i in e)n.o[i]=e[i];n._carve().init(),n._configure()._draw()};if(!this.$.data("kontroled")){if(this.$.data("kontroled",!0),this.extend(),this.o=t.extend({min:void 0!==this.$.data("min")?this.$.data("min"):0,max:void 0!==this.$.data("max")?this.$.data("max"):100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"===this.$.attr("readonly"),cursor:(!0===this.$.data("cursor")?30:this.$.data("cursor"))||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(t){return t},parse:function(t){return parseFloat(t)}},this.o),this.o.flip="anticlockwise"===this.o.rotation||"acw"===this.o.rotation,this.o.inputColor||(this.o.inputColor=this.o.fgColor),this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each((function(e){var i=t(this);n.i[e]=i,n.v[e]=n.o.parse(i.val()),i.bind("change blur",(function(){var t={};t[e]=i.val(),n.val(n._validate(t))}))})),this.$.find("legend").remove()):(this.i=this.$,this.v=this.o.parse(this.$.val()),""===this.v&&(this.v=this.o.min),this.$.bind("change blur",(function(){n.val(n._validate(n.o.parse(n.$.val())))}))),!this.o.displayInput&&this.$.hide(),this.$c=t(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height}),this.$div=t('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+'px;"></div>'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};return this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!=0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!=0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",e).parent().bind("configure",e),this._listen()._configure()._xy().init(),this.isInit=!0,this.$.val(this.o.format(this.v)),this._draw(),this}},this._carve=function(){if(this.relative){var t=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),e=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(t,e)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var t=!0;n.g=n.c,n.clear(),n.dH&&(t=n.dH()),!1!==t&&n.draw()},this._touch=function(t){var i=function(t){var e=n.xy2val(t.originalEvent.touches[n.t].pageX,t.originalEvent.touches[n.t].pageY);e!=n.cv&&(n.cH&&!1===n.cH(e)||(n.change(n._validate(e)),n._draw()))};return this.t=e.c.t(t),i(t),e.c.d.bind("touchmove.k",i).bind("touchend.k",(function(){e.c.d.unbind("touchmove.k touchend.k"),n.val(n.cv)})),this},this._mouse=function(t){var i=function(t){var e=n.xy2val(t.pageX,t.pageY);e!=n.cv&&(n.cH&&!1===n.cH(e)||(n.change(n._validate(e)),n._draw()))};return i(t),e.c.d.bind("mousemove.k",i).bind("keyup.k",(function(t){if(27===t.keyCode){if(e.c.d.unbind("mouseup.k mousemove.k keyup.k"),n.eH&&!1===n.eH())return;n.cancel()}})).bind("mouseup.k",(function(t){e.c.d.unbind("mousemove.k mouseup.k keyup.k"),n.val(n.cv)})),this},this._xy=function(){var t=this.$c.offset();return this.x=t.left,this.y=t.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",(function(t){t.preventDefault(),n._xy()._mouse(t)})).bind("touchstart",(function(t){t.preventDefault(),n._xy()._touch(t)})),this.listen()),this.relative&&t(window).resize((function(){n._carve().init(),n._draw()})),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(t){var e=~~((t<0?-.5:.5)+t/this.o.step)*this.o.step;return Math.round(100*e)/100},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(t){},this.val=function(t){},this.xy2val=function(t,e){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(t,e){var n;return t=t.substring(1,7),"rgba("+(n=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)])[0]+","+n[1]+","+n[2]+","+e+")"},this.copy=function(t,e){for(var n in t)e[n]=t[n]}},e.Dial=function(){e.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=t.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(t,e){if(null==t)return this.v;t=this.o.parse(t),!1!==e&&t!=this.v&&this.rH&&!1===this.rH(t)||(this.cv=this.o.stopper?n(i(t,this.o.max),this.o.min):t,this.v=this.cv,this.$.val(this.o.format(this.v)),this._draw())},this.xy2val=function(t,e){var r,o;return r=Math.atan2(t-(this.x+this.w2),-(e-this.y-this.w2))-this.angleOffset,this.o.flip&&(r=this.angleArc-r-this.PI2),this.angleArc!=this.PI2&&r<0&&r>-.5?r=0:r<0&&(r+=this.PI2),o=r*(this.o.max-this.o.min)/this.angleArc+this.o.min,this.o.stopper&&(o=n(i(o,this.o.max),this.o.min)),o},this.listen=function(){var e,r,o,s,a=this,l=function(t){t.preventDefault();var o=t.originalEvent,s=o.detail||o.wheelDeltaX,l=o.detail||o.wheelDeltaY,c=a._validate(a.o.parse(a.$.val()))+(s>0||l>0?a.o.step:s<0||l<0?-a.o.step:0);c=n(i(c,a.o.max),a.o.min),a.val(c,!1),a.rH&&(clearTimeout(e),e=setTimeout((function(){a.rH(c),e=null}),100),r||(r=setTimeout((function(){e&&a.rH(c),r=null}),200)))},c=1,u={37:-a.o.step,38:a.o.step,39:a.o.step,40:-a.o.step};this.$.bind("keydown",(function(e){var r=e.keyCode;if(r>=96&&r<=105&&(r=e.keyCode=r-48),o=parseInt(String.fromCharCode(r)),isNaN(o)&&(13!==r&&8!==r&&9!==r&&189!==r&&(190!==r||a.$.val().match(/\./))&&e.preventDefault(),t.inArray(r,[37,38,39,40])>-1)){e.preventDefault();var l=a.o.parse(a.$.val())+u[r]*c;a.o.stopper&&(l=n(i(l,a.o.max),a.o.min)),a.change(a._validate(l)),a._draw(),s=window.setTimeout((function(){c*=2}),30)}})).bind("keyup",(function(t){isNaN(o)?s&&(window.clearTimeout(s),s=null,c=1,a.val(a.$.val())):a.$.val()>a.o.max&&a.$.val(a.o.max)||a.$.val()<a.o.min&&a.$.val(a.o.min)})),this.$c.bind("mousewheel DOMMouseScroll",l),this.$.bind("mousewheel DOMMouseScroll",l)},this.init=function(){(this.v<this.o.min||this.v>this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var t=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/t>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(t){this.cv=t,this.$.val(this.o.format(t))},this.angle=function(t){return(t-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.arc=function(t){var e,n;return t=this.angle(t),n=this.o.flip?(e=this.endAngle+1e-5)-t-1e-5:(e=this.startAngle-1e-5)+t+1e-5,this.o.cursor&&(e=n-this.cursorExt)&&(n+=this.cursorExt),{s:e,e:n,d:this.o.flip&&!this.o.cursor}},this.draw=function(){var t,e=this.g,n=this.arc(this.cv),i=1;e.lineWidth=this.lineWidth,e.lineCap=this.lineCap,"none"!==this.o.bgColor&&(e.beginPath(),e.strokeStyle=this.o.bgColor,e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),e.stroke()),this.o.displayPrevious&&(t=this.arc(this.v),e.beginPath(),e.strokeStyle=this.pColor,e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d),e.stroke(),i=this.cv==this.v),e.beginPath(),e.strokeStyle=i?this.o.fgColor:this.fgColor,e.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d),e.stroke()},this.cancel=function(){this.val(this.v)}},t.fn.dial=t.fn.knob=function(n){return this.each((function(){var i=new e.Dial;i.o=n,i.$=t(this),i.run()})).parent()}})),function(t,e){function n(n,i,r){var o=n.children(i.headerTag),s=n.children(i.bodyTag);o.length>s.length?O($,"contents"):o.length<s.length&&O($,"titles");var a=i.startIndex;if(r.stepCount=o.length,i.saveState&&t.cookie){var l=t.cookie(I+d(n)),u=parseInt(l,0);!isNaN(u)&&u<r.stepCount&&(a=u)}r.currentIndex=a,o.each((function(i){var r=t(this),o=s.eq(i),a=o.data("mode"),l=null==a?z.html:h(z,/^\s*$/.test(a)||isNaN(a)?a:parseInt(a,0)),u=l===z.html||o.data("url")===e?"":o.data("url"),d=l!==z.html&&"1"===o.data("loaded"),p=t.extend({},W,{title:r.html(),content:l===z.html?o.html():"",contentUrl:u,contentMode:l,contentLoaded:d});!function(t,e){c(t).push(e)}(n,p)}))}function i(t,e){var n=t.find(".steps li").eq(e.currentIndex);t.triggerHandler("finishing",[e.currentIndex])?(n.addClass("done").removeClass("error"),t.triggerHandler("finished",[e.currentIndex])):n.addClass("error")}function r(t){var e=t.data("eventNamespace");return null==e&&(e="."+d(t),t.data("eventNamespace",e)),e}function o(t,e){var n=d(t);return t.find("#"+n+N+e)}function s(t,e){var n=d(t);return t.find("#"+n+R+e)}function a(t){return t.data("options")}function l(t){return t.data("state")}function c(t){return t.data("steps")}function u(t,e){var n=c(t);return(0>e||e>=n.length)&&O(j),n[e]}function d(t){var e=t.data("uid");return null==e&&(null==(e=t._id())&&(e="steps-uid-".concat(L),t._id(e)),L++,t.data("uid",e)),e}function h(t,n){if(P("enumType",t),P("keyOrValue",n),"string"==typeof n){var i=t[n];return i===e&&O("The enum key '{0}' does not exist.",n),i}if("number"==typeof n){for(var r in t)if(t[r]===n)return n;O("Invalid enum value '{0}'.",n)}else O("Invalid key or value type.")}function p(t,e,n){return b(t,e,n,function(t,e){return t.currentIndex+e}(n,1))}function f(t,e,n){return b(t,e,n,function(t,e){return t.currentIndex-e}(n,1))}function g(e){var i=t.extend(!0,{},q,e);return this.each((function(){var e=t(this),s={currentIndex:i.startIndex,currentStep:null,stepCount:0,transitionElement:null};e.data("options",i),e.data("state",s),e.data("steps",[]),n(e,i,s),function(e,n,i){var r='<{0} class="{1}">{2}</{0}>',o=h(H,n.stepsOrientation)===H.vertical?" vertical":"",s=t(r.format(n.contentContainerTag,"content "+n.clearFixCssClass,e.html())),a=t(r.format(n.stepsContainerTag,"steps "+n.clearFixCssClass,'<ul role="tablist"></ul>')),l=s.children(n.headerTag),c=s.children(n.bodyTag);e.attr("role","application").empty().append(a).append(s).addClass(n.cssClass+" "+n.clearFixCssClass+o),c.each((function(n){S(e,i,t(this),n)})),l.each((function(r){A(e,n,i,t(this),r)})),_(e,n,i),function(t,e,n){if(e.enablePagination){var i='<li><a href="#{0}" role="menuitem">{1}</a></li>',r="";e.forceMoveForward||(r+=i.format("previous",e.labels.previous)),r+=i.format("next",e.labels.next),e.enableFinishButton&&(r+=i.format("finish",e.labels.finish)),e.enableCancelButton&&(r+=i.format("cancel",e.labels.cancel)),t.append('<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>'.format(e.actionContainerTag,e.clearFixCssClass,e.labels.pagination,r)),w(t,e,n),y(t,e,n)}}(e,n,i)}(e,i,s),function(t,e){var n=r(t);t.bind("canceled"+n,e.onCanceled),t.bind("contentLoaded"+n,e.onContentLoaded),t.bind("finishing"+n,e.onFinishing),t.bind("finished"+n,e.onFinished),t.bind("init"+n,e.onInit),t.bind("stepChanging"+n,e.onStepChanging),t.bind("stepChanged"+n,e.onStepChanged),e.enableKeyNavigation&&t.bind("keyup"+n,v),t.find(".actions a").bind("click"+n,x)}(e,i),i.autoFocus&&0===L&&o(e,i.startIndex).focus(),e.triggerHandler("init",[i.startIndex])}))}function m(e,n,i,r,o){(0>r||r>i.stepCount)&&O(j),function(t,e,n){c(t).splice(e,0,n)}(e,r,o=t.extend({},W,o)),i.currentIndex!==i.stepCount&&i.currentIndex>=r&&(i.currentIndex++,D(e,n,i)),i.stepCount++;var a=e.find(".content"),l=t("<{0}>{1}</{0}>".format(n.headerTag,o.title)),u=t("<{0}></{0}>".format(n.bodyTag));return(null==o.contentMode||o.contentMode===z.html)&&u.html(o.content),0===r?a.prepend(u).prepend(l):s(e,r-1).after(u).after(l),S(e,i,u,r),A(e,n,i,l,r),C(e,n,i,r),r===i.currentIndex&&_(e,n,i),w(e,n,i),e}function v(e){var n=t(this),i=a(n),r=l(n);if(i.suppressPaginationOnFocus&&n.find(":focus").is(":input"))return e.preventDefault(),!1;var o=37,s=39;e.keyCode===o?(e.preventDefault(),f(n,i,r)):e.keyCode===s&&(e.preventDefault(),p(n,i,r))}function y(e,n,i){if(i.stepCount>0){var r=i.currentIndex,o=u(e,r);if(!n.enableContentCache||!o.contentLoaded)switch(h(z,o.contentMode)){case z.iframe:e.find(".content > .body").eq(i.currentIndex).empty().html('<iframe src="'+o.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case z.async:var a=s(e,r)._aria("busy","true").empty().append(T(n.loadingTemplate,{text:n.labels.loading}));t.ajax({url:o.contentUrl,cache:!1}).done((function(t){a.empty().html(t)._aria("busy","false").data("loaded","1"),e.triggerHandler("contentLoaded",[r])}))}}}function b(t,e,n,i){var r=n.currentIndex;if(i>=0&&i<n.stepCount&&!(e.forceMoveForward&&i<n.currentIndex)){var s=o(t,i),a=s.parent(),l=a.hasClass("disabled");return a._enableAria(),s.click(),r!==n.currentIndex||!l||(a._enableAria(!1),!1)}return!1}function x(e){e.preventDefault();var n=t(this),r=n.parent().parent().parent().parent(),o=a(r),s=l(r),c=n.attr("href");switch(c.substring(c.lastIndexOf("#")+1)){case"cancel":!function(t){t.triggerHandler("canceled")}(r);break;case"finish":i(r,s);break;case"next":p(r,o,s);break;case"previous":f(r,o,s)}}function w(t,e,n){if(e.enablePagination){var i=t.find(".actions a[href$='#finish']").parent(),r=t.find(".actions a[href$='#next']").parent();if(!e.forceMoveForward)t.find(".actions a[href$='#previous']").parent()._enableAria(n.currentIndex>0);e.enableFinishButton&&e.showFinishButtonAlways?(i._enableAria(n.stepCount>0),r._enableAria(n.stepCount>1&&n.stepCount>n.currentIndex+1)):(i._showAria(e.enableFinishButton&&n.stepCount===n.currentIndex+1),r._showAria(0===n.stepCount||n.stepCount>n.currentIndex+1)._enableAria(n.stepCount>n.currentIndex+1||!e.enableFinishButton))}}function _(e,n,i,r){var s=o(e,i.currentIndex),a=t('<span class="current-info audible">'+n.labels.current+" </span>"),l=e.find(".content > .title");if(null!=r){var c=o(e,r);c.parent().addClass("done").removeClass("error")._selectAria(!1),l.eq(r).removeClass("current").next(".body").removeClass("current"),a=c.find(".current-info"),s.focus()}s.prepend(a).parent()._selectAria().removeClass("done")._enableAria(),l.eq(i.currentIndex).addClass("current").next(".body").addClass("current")}function C(t,e,n,i){for(var r=d(t),o=i;o<n.stepCount;o++){var s=r+N+o,a=r+R+o,l=r+F+o,c=t.find(".title").eq(o)._id(l);t.find(".steps a").eq(o)._id(s)._aria("controls",a).attr("href","#"+l).html(T(e.titleTemplate,{index:o+1,title:c.html()})),t.find(".body").eq(o)._id(a)._aria("labelledby",l)}}function k(t,e,n,i){return!(0>i||i>=n.stepCount||n.currentIndex===i)&&(function(t,e){c(t).splice(e,1)}(t,i),n.currentIndex>i&&(n.currentIndex--,D(t,e,n)),n.stepCount--,function(t,e){var n=d(t);return t.find("#"+n+F+e)}(t,i).remove(),s(t,i).remove(),o(t,i).parent().remove(),0===i&&t.find(".steps li").first().addClass("first"),i===n.stepCount&&t.find(".steps li").eq(i).addClass("last"),C(t,e,n,i),w(t,e,n),!0)}function S(t,e,n,i){var r=d(t),o=r+R+i,s=r+F+i;n._id(o).attr("role","tabpanel")._aria("labelledby",s).addClass("body")._showAria(e.currentIndex===i)}function T(t,n){for(var i=t.match(/#([a-z]*)#/gi),r=0;r<i.length;r++){var o=i[r],s=o.substring(1,o.length-1);n[s]===e&&O("The key '{0}' does not exist in the substitute collection!",s),t=t.replace(o,n[s])}return t}function A(e,n,i,o,s){var a=d(e),l=a+N+s,c=a+R+s,u=a+F+s,h=e.find(".steps > ul"),p=T(n.titleTemplate,{index:s+1,title:o.html()}),f=t('<li role="tab"><a id="'+l+'" href="#'+u+'" aria-controls="'+c+'">'+p+"</a></li>");f._enableAria(n.enableAllSteps||i.currentIndex>s),i.currentIndex>s&&f.addClass("done"),o._id(u).attr("tabindex","-1").addClass("title"),0===s?h.prepend(f):h.find("li").eq(s-1).after(f),0===s&&h.find("li").removeClass("first").eq(s).addClass("first"),s===i.stepCount-1&&h.find("li").removeClass("last").eq(s).addClass("last"),f.children("a").bind("click"+r(e),M)}function D(e,n,i){n.saveState&&t.cookie&&t.cookie(I+d(e),i.currentIndex)}function E(e,n,i,r,o,s){var a=e.find(".content > .body"),c=h(B,n.transitionEffect),u=n.transitionEffectSpeed,d=a.eq(r),p=a.eq(o);switch(c){case B.fade:case B.slide:var f=c===B.fade?"fadeOut":"slideUp",g=c===B.fade?"fadeIn":"slideDown";i.transitionElement=d,p[f](u,(function(){var e=l(t(this)._showAria(!1).parent().parent());e.transitionElement&&(e.transitionElement[g](u,(function(){t(this)._showAria()})).promise().done(s),e.transitionElement=null)}));break;case B.slideLeft:var m=p.outerWidth(!0),v=r>o?-m:m,y=r>o?m:-m;t.when(p.animate({left:v},u,(function(){t(this)._showAria(!1)})),d.css("left",y+"px")._showAria().animate({left:0},u)).done(s);break;default:t.when(p._showAria(!1),d._showAria()).done(s)}}function M(e){e.preventDefault();var n=t(this),i=n.parent().parent().parent().parent(),r=a(i),s=l(i),c=s.currentIndex;if(n.parent().is(":not(.disabled):not(.current)")){var u=n.attr("href");!function(t,e,n,i){if((0>i||i>=n.stepCount)&&O(j),!(e.forceMoveForward&&i<n.currentIndex)){var r=n.currentIndex;t.triggerHandler("stepChanging",[n.currentIndex,i])?(n.currentIndex=i,D(t,e,n),_(t,e,n,r),w(t,e,n),y(t,e,n),E(t,e,n,i,r,(function(){t.triggerHandler("stepChanged",[i,r])}))):t.find(".steps li").eq(r).addClass("error")}}(i,r,s,parseInt(u.substring(u.lastIndexOf("-")+1),0))}return c===s.currentIndex?(o(i,c).focus(),!1):void 0}function O(t){throw arguments.length>1&&(t=t.format(Array.prototype.slice.call(arguments,1))),new Error(t)}function P(t,e){null==e&&O("The argument '{0}' is null or undefined.",t)}t.fn.extend({_aria:function(t,e){return this.attr("aria-"+t,e)},_removeAria:function(t){return this.removeAttr("aria-"+t)},_enableAria:function(t){return null==t||t?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(t){return null==t||t?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(t){return null==t||t?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(t){return t?this.attr("id",t):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var e=1===arguments.length&&t.isArray(arguments[0])?arguments[0]:arguments,n=this,i=0;i<e.length;i++){var r=new RegExp("\\{"+i+"\\}","gm");n=n.replace(r,e[i])}return n});var L=0,I="jQu3ry_5teps_St@te_",N="-t-",R="-p-",F="-h-",j="Index out of range.",$="One or more corresponding step {0} are missing.";t.fn.steps=function(e){return t.fn.steps[e]?t.fn.steps[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.steps"):g.apply(this,arguments)},t.fn.steps.add=function(t){var e=l(this);return m(this,a(this),e,e.stepCount,t)},t.fn.steps.destroy=function(){return function(e,n){var i=r(e);e.unbind(i).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(i),e.removeClass(n.clearFixCssClass+" vertical");var o=e.find(".content > *");o.removeData("loaded").removeData("mode").removeData("url"),o.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),e.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var s=t('<{0} class="{1}"></{0}>'.format(e.get(0).tagName,e.attr("class"))),a=e._id();return null!=a&&""!==a&&s._id(a),s.html(e.find(".content").html()),e.after(s),e.remove(),s}(this,a(this))},t.fn.steps.finish=function(){i(this,l(this))},t.fn.steps.getCurrentIndex=function(){return l(this).currentIndex},t.fn.steps.getCurrentStep=function(){return u(this,l(this).currentIndex)},t.fn.steps.getStep=function(t){return u(this,t)},t.fn.steps.insert=function(t,e){return m(this,a(this),l(this),t,e)},t.fn.steps.next=function(){return p(this,a(this),l(this))},t.fn.steps.previous=function(){return f(this,a(this),l(this))},t.fn.steps.remove=function(t){return k(this,a(this),l(this),t)},t.fn.steps.setStep=function(){throw new Error("Not yet implemented!")},t.fn.steps.skip=function(){throw new Error("Not yet implemented!")};var z=t.fn.steps.contentMode={html:0,iframe:1,async:2},H=t.fn.steps.stepsOrientation={horizontal:0,vertical:1},B=t.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},W=t.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:z.html,contentLoaded:!1},q=t.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOrientation:H.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:B.none,transitionEffectSpeed:200,onStepChanging:function(){return!0},onStepChanged:function(){},onCanceled:function(){},onFinishing:function(){return!0},onFinished:function(){},onContentLoaded:function(){},onInit:function(){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}((function(t){function e(){}function n(t,e){u.ev.on(T+t+A,e)}function i(e,n,i,r){var o=document.createElement("div");return o.className="mfp-"+e,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=t(o),n&&o.appendTo(n)),o}function r(t,e){u.ev.triggerHandler(T+t,e),u.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),u.st.callbacks[t])&&u.st.callbacks[t].apply(u,Array.isArray(e)?e:[e])}function o(e){return e===g&&u.currTemplate.closeBtn||(u.currTemplate.closeBtn=t(u.st.closeMarkup.replace("%title%",u.st.tClose)),g=e),u.currTemplate.closeBtn}function s(){t.magnificPopup.instance||((u=new e).init(),t.magnificPopup.instance=u)}function a(){y&&(v.after(y.addClass(m)).detach(),y=null)}function l(){b&&t(document.body).removeClass(b)}function c(){l(),u.req&&u.req.abort()}var u,d,h,p,f,g,m,v,y,b,x,w="Close",_="BeforeClose",C="MarkupParse",k="Open",S="Change",T="mfp",A="."+T,D="mfp-ready",E="mfp-removing",M="mfp-prevent-close",O=!!window.jQuery,P=t(window),L=(t.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;u.isLowIE=u.isIE8=document.all&&!document.addEventListener,u.isAndroid=/android/gi.test(e),u.isIOS=/iphone|ipad|ipod/gi.test(e),u.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),u.probablyMobile=u.isAndroid||u.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),h=t(document),u.popupsCache={}},open:function(e){if(!1===e.isObj){u.items=e.items.toArray(),u.index=0;for(var s,a=e.items,l=0;l<a.length;l++)if((s=(s=a[l]).parsed?s.el[0]:s)===e.el[0]){u.index=l;break}}else u.items=Array.isArray(e.items)?e.items:[e.items],u.index=e.index||0;if(!u.isOpen){u.types=[],f="",e.mainEl&&e.mainEl.length?u.ev=e.mainEl.eq(0):u.ev=h,e.key?(u.popupsCache[e.key]||(u.popupsCache[e.key]={}),u.currTemplate=u.popupsCache[e.key]):u.currTemplate={},u.st=t.extend(!0,{},t.magnificPopup.defaults,e),u.fixedContentPos="auto"===u.st.fixedContentPos?!u.probablyMobile:u.st.fixedContentPos,u.st.modal&&(u.st.closeOnContentClick=!1,u.st.closeOnBgClick=!1,u.st.showCloseBtn=!1,u.st.enableEscapeKey=!1),u.bgOverlay||(u.bgOverlay=i("bg").on("click"+A,(function(){u.close()})),u.wrap=i("wrap").attr("tabindex",-1).on("click"+A,(function(t){u._checkIfClose(t.target)&&u.close()})),u.container=i("container",u.wrap)),u.contentContainer=i("content"),u.st.preloader&&(u.preloader=i("preloader",u.container,u.st.tLoading));var c=t.magnificPopup.modules;for(l=0;l<c.length;l++){var d=(d=c[l]).charAt(0).toUpperCase()+d.slice(1);u["init"+d].call(u)}r("BeforeOpen"),u.st.showCloseBtn&&(u.st.closeBtnInside?(n(C,(function(t,e,n,i){n.close_replaceWith=o(i.type)})),f+=" mfp-close-btn-in"):u.wrap.append(o())),u.st.alignTop&&(f+=" mfp-align-top"),u.fixedContentPos?u.wrap.css({overflow:u.st.overflowY,overflowX:"hidden",overflowY:u.st.overflowY}):u.wrap.css({top:P.scrollTop(),position:"absolute"}),!1!==u.st.fixedBgPos&&("auto"!==u.st.fixedBgPos||u.fixedContentPos)||u.bgOverlay.css({height:h.height(),position:"absolute"}),u.st.enableEscapeKey&&h.on("keyup"+A,(function(t){27===t.keyCode&&u.close()})),P.on("resize"+A,(function(){u.updateSize()})),u.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&u.wrap.addClass(f);var p=u.wH=P.height(),g={},m=(u.fixedContentPos&&u._hasScrollBar(p)&&(m=u._getScrollbarSize())&&(g.marginRight=m),u.fixedContentPos&&(u.isIE7?t("body, html").css("overflow","hidden"):g.overflow="hidden"),u.st.mainClass);return u.isIE7&&(m+=" mfp-ie7"),m&&u._addClassToMFP(m),u.updateItemHTML(),r("BuildControls"),t("html").css(g),u.bgOverlay.add(u.wrap).prependTo(u.st.prependTo||t(document.body)),u._lastFocusedEl=document.activeElement,setTimeout((function(){u.content?(u._addClassToMFP(D),u._setFocus()):u.bgOverlay.addClass(D),h.on("focusin"+A,u._onFocusIn)}),16),u.isOpen=!0,u.updateSize(p),r(k),e}u.updateItemHTML()},close:function(){u.isOpen&&(r(_),u.isOpen=!1,u.st.removalDelay&&!u.isLowIE&&u.supportsTransition?(u._addClassToMFP(E),setTimeout((function(){u._close()}),u.st.removalDelay)):u._close())},_close:function(){r(w);var e=E+" "+D+" ";u.bgOverlay.detach(),u.wrap.detach(),u.container.empty(),u.st.mainClass&&(e+=u.st.mainClass+" "),u._removeClassFromMFP(e),u.fixedContentPos&&(e={marginRight:""},u.isIE7?t("body, html").css("overflow",""):e.overflow="",t("html").css(e)),h.off("keyup.mfp focusin"+A),u.ev.off(A),u.wrap.attr("class","mfp-wrap").removeAttr("style"),u.bgOverlay.attr("class","mfp-bg"),u.container.attr("class","mfp-container"),!u.st.showCloseBtn||u.st.closeBtnInside&&!0!==u.currTemplate[u.currItem.type]||u.currTemplate.closeBtn&&u.currTemplate.closeBtn.detach(),u.st.autoFocusLast&&u._lastFocusedEl&&t(u._lastFocusedEl).trigger("focus"),u.currItem=null,u.content=null,u.currTemplate=null,u.prevHeight=0,r("AfterClose")},updateSize:function(t){var e;u.isIOS?(e=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*e,u.wrap.css("height",e),u.wH=e):u.wH=t||P.height(),u.fixedContentPos||u.wrap.css("height",u.wH),r("Resize")},updateItemHTML:function(){var e=u.items[u.index],n=(u.contentContainer.detach(),u.content&&u.content.detach(),(e=e.parsed?e:u.parseEl(u.index)).type),i=(r("BeforeChange",[u.currItem?u.currItem.type:"",n]),u.currItem=e,u.currTemplate[n]||(r("FirstMarkupParse",i=!!u.st[n]&&u.st[n].markup),u.currTemplate[n]=!i||t(i)),p&&p!==e.type&&u.container.removeClass("mfp-"+p+"-holder"),u["get"+n.charAt(0).toUpperCase()+n.slice(1)](e,u.currTemplate[n]));u.appendContent(i,n),e.preloaded=!0,r(S,e),p=e.type,u.container.prepend(u.contentContainer),r("AfterChange")},appendContent:function(t,e){(u.content=t)?u.st.showCloseBtn&&u.st.closeBtnInside&&!0===u.currTemplate[e]?u.content.find(".mfp-close").length||u.content.append(o()):u.content=t:u.content="",r("BeforeAppend"),u.container.addClass("mfp-"+e+"-holder"),u.contentContainer.append(u.content)},parseEl:function(e){var n,i=u.items[e];if((i=i.tagName?{el:t(i)}:(n=i.type,{data:i,src:i.src})).el){for(var o=u.types,s=0;s<o.length;s++)if(i.el.hasClass("mfp-"+o[s])){n=o[s];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=n||u.st.type||"inline",i.index=e,i.parsed=!0,u.items[e]=i,r("ElementParse",i),u.items[e]},addGroup:function(t,e){function n(n){n.mfpEl=this,u._openClick(n,t,e)}var i="click.magnificPopup";(e=e||{}).mainEl=t,e.items?(e.isObj=!0,t.off(i).on(i,n)):(e.isObj=!1,e.delegate?t.off(i).on(i,e.delegate,n):(e.items=t).off(i).on(i,n))},_openClick:function(e,n,i){var r=(void 0!==i.midClick?i:t.magnificPopup.defaults).midClick;if(r||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){if(r=(void 0!==i.disableOn?i:t.magnificPopup.defaults).disableOn)if("function"==typeof r){if(!r.call(u))return!0}else if(P.width()<r)return!0;e.type&&(e.preventDefault(),u.isOpen)&&e.stopPropagation(),i.el=t(e.mfpEl),i.delegate&&(i.items=n.find(i.delegate)),u.open(i)}},updateStatus:function(t,e){var n;u.preloader&&(d!==t&&u.container.removeClass("mfp-s-"+d),r("UpdateStatus",n={status:t,text:e=e||"loading"!==t?e:u.st.tLoading}),t=n.status,e=n.text,u.st.allowHTMLInStatusIndicator?u.preloader.html(e):u.preloader.text(e),u.preloader.find("a").on("click",(function(t){t.stopImmediatePropagation()})),u.container.addClass("mfp-s-"+t),d=t)},_checkIfClose:function(e){if(!t(e).closest("."+M).length){var n=u.st.closeOnContentClick,i=u.st.closeOnBgClick;if(n&&i)return!0;if(!u.content||t(e).closest(".mfp-close").length||u.preloader&&e===u.preloader[0])return!0;if(e===u.content[0]||t.contains(u.content[0],e)){if(n)return!0}else if(i&&t.contains(document,e))return!0;return!1}},_addClassToMFP:function(t){u.bgOverlay.addClass(t),u.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),u.wrap.removeClass(t)},_hasScrollBar:function(t){return(u.isIE7?h.height():document.body.scrollHeight)>(t||P.height())},_setFocus:function(){(u.st.focus?u.content.find(u.st.focus).eq(0):u.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==u.wrap[0]&&!t.contains(u.wrap[0],e.target))return u._setFocus(),!1},_parseMarkup:function(e,n,i){var o;i.data&&(n=t.extend(i.data,n)),r(C,[e,n,i]),t.each(n,(function(n,i){if(void 0===i||!1===i)return!0;var r,s;1<(o=n.split("_")).length?0<(r=e.find(A+"-"+o[0])).length&&("replaceWith"===(s=o[1])?r[0]!==i[0]&&r.replaceWith(i):"img"===s?r.is("img")?r.attr("src",i):r.replaceWith(t("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)):u.st.allowHTMLInTemplate?e.find(A+"-"+n).html(i):e.find(A+"-"+n).text(i)}))},_getScrollbarSize:function(){var t;return void 0===u.scrollbarSize&&((t=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),u.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),u.scrollbarSize}},modules:[],open:function(e,n){return s(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=n||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,n){n.options&&(t.magnificPopup.defaults[e]=n.options),t.extend(this.proto,n.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},t.fn.magnificPopup=function(e){s();var n,i,r,o=t(this);return"string"==typeof e?"open"===e?(n=O?o.data("magnificPopup"):o[0].magnificPopup,i=parseInt(arguments[1],10)||0,r=n.items?n.items[i]:(r=o,(r=n.delegate?r.find(n.delegate):r).eq(i)),u._openClick({mfpEl:r},o,n)):u.isOpen&&u[e].apply(u,Array.prototype.slice.call(arguments,1)):(e=t.extend(!0,{},e),O?o.data("magnificPopup",e):o[0].magnificPopup=e,u.addGroup(o,e)),o},"inline"),I=(t.magnificPopup.registerModule(L,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){u.types.push(L),n(w+"."+L,(function(){a()}))},getInline:function(e,n){var r,o,s;return a(),e.src?(r=u.st.inline,(o=t(e.src)).length?((s=o[0].parentNode)&&s.tagName&&(v||(m=r.hiddenClass,v=i(m),m="mfp-"+m),y=o.after(v).detach().removeClass(m)),u.updateStatus("ready")):(u.updateStatus("error",r.tNotFound),o=t("<div>")),e.inlineElement=o):(u.updateStatus("ready"),u._parseMarkup(n,{},e),n)}}}),"ajax");function N(t){var e;u.currTemplate[$]&&(e=u.currTemplate[$].find("iframe")).length&&(t||(e[0].src="//about:blank"),u.isIE8)&&e.css("display",t?"block":"none")}function R(t){var e=u.items.length;return e-1<t?t-e:t<0?e+t:t}function F(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)}t.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){u.types.push(I),b=u.st.ajax.cursor,n(w+"."+I,c),n("BeforeChange."+I,c)},getAjax:function(e){b&&t(document.body).addClass(b),u.updateStatus("loading");var n=t.extend({url:e.src,success:function(n,i,o){r("ParseAjax",n={data:n,xhr:o}),u.appendContent(t(n.data),I),e.finished=!0,l(),u._setFocus(),setTimeout((function(){u.wrap.addClass(D)}),16),u.updateStatus("ready"),r("AjaxContentAdded")},error:function(){l(),e.finished=e.loadError=!0,u.updateStatus("error",u.st.ajax.tError.replace("%url%",e.src))}},u.st.ajax.settings);return u.req=t.ajax(n),""}}}),t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var e=u.st.image,i=".image";u.types.push("image"),n(k+i,(function(){"image"===u.currItem.type&&e.cursor&&t(document.body).addClass(e.cursor)})),n(w+i,(function(){e.cursor&&t(document.body).removeClass(e.cursor),P.off("resize"+A)})),n("Resize"+i,u.resizeImage),u.isLowIE&&n("AfterChange",u.resizeImage)},resizeImage:function(){var t,e=u.currItem;e&&e.img&&u.st.image.verticalFit&&(t=0,u.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",u.wH-t))},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,x&&clearInterval(x),t.isCheckingImgSize=!1,r("ImageHasSize",t),t.imgHidden)&&(u.content&&u.content.removeClass("mfp-loading"),t.imgHidden=!1)},findImageSize:function(t){var e=0,n=t.img[0];!function i(r){x&&clearInterval(x),x=setInterval((function(){0<n.naturalWidth?u._onImageHasSize(t):(200<e&&clearInterval(x),3==++e?i(10):40===e?i(50):100===e&&i(500))}),r)}(1)},getImage:function(e,n){function i(){e&&(e.img.off(".mfploader"),e===u.currItem&&(u._onImageHasSize(e),u.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}var o,s=0,a=u.st.image,l=n.find(".mfp-img");return l.length&&((o=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(o.alt=e.el.find("img").attr("alt")),e.img=t(o).on("load.mfploader",(function t(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===u.currItem&&(u._onImageHasSize(e),u.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,r("ImageLoadComplete")):++s<200?setTimeout(t,100):i())})).on("error.mfploader",i),o.src=e.src,l.is("img")&&(e.img=e.img.clone()),0<(o=e.img[0]).naturalWidth?e.hasSize=!0:o.width||(e.hasSize=!1)),u._parseMarkup(n,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var e=u.st.image.titleSrc;if(e){if("function"==typeof e)return e.call(u,t);if(t.el)return t.el.attr(e)||""}return""}(e),img_replaceWith:e.img},e),u.resizeImage(),e.hasSize?(x&&clearInterval(x),e.loadError?(n.addClass("mfp-loading"),u.updateStatus("error",a.tError.replace("%url%",e.src))):(n.removeClass("mfp-loading"),u.updateStatus("ready"))):(u.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,n.addClass("mfp-loading"),u.findImageSize(e))),n}}}),t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,e,i,o,s,a,l=u.st.zoom,c=".zoom";l.enabled&&u.supportsTransition&&(e=l.duration,i=function(t){t=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image");var e="all "+l.duration/1e3+"s "+l.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return n["-webkit-"+i]=n["-moz-"+i]=n["-o-"+i]=n[i]=e,t.css(n),t},o=function(){u.content.css("visibility","visible")},n("BuildControls"+c,(function(){u._allowZoom()&&(clearTimeout(s),u.content.css("visibility","hidden"),(t=u._getItemToZoom())?((a=i(t)).css(u._getOffset()),u.wrap.append(a),s=setTimeout((function(){a.css(u._getOffset(!0)),s=setTimeout((function(){o(),setTimeout((function(){a.remove(),t=a=null,r("ZoomAnimationEnded")}),16)}),e)}),16)):o())})),n(_+c,(function(){if(u._allowZoom()){if(clearTimeout(s),u.st.removalDelay=e,!t){if(!(t=u._getItemToZoom()))return;a=i(t)}a.css(u._getOffset(!0)),u.wrap.append(a),u.content.css("visibility","hidden"),setTimeout((function(){a.css(u._getOffset())}),16)}})),n(w+c,(function(){u._allowZoom()&&(o(),a&&a.remove(),t=null)})))},_allowZoom:function(){return"image"===u.currItem.type},_getItemToZoom:function(){return!!u.currItem.hasSize&&u.currItem.img},_getOffset:function(e){var n=(e=e?u.currItem.img:u.st.zoom.opener(u.currItem.el||u.currItem)).offset(),i=parseInt(e.css("padding-top"),10),r=parseInt(e.css("padding-bottom"),10);n.top-=t(window).scrollTop()-i,e={width:e.width(),height:(O?e.innerHeight():e[0].offsetHeight)-r-i};return(j=void 0===j?void 0!==document.createElement("p").style.MozTransform:j)?e["-moz-transform"]=e.transform="translate("+n.left+"px,"+n.top+"px)":(e.left=n.left,e.top=n.top),e}}});var j,$="iframe",z=(t.magnificPopup.registerModule($,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){u.types.push($),n("BeforeChange",(function(t,e,n){e!==n&&(e===$?N():n===$&&N(!0))})),n(w+"."+$,(function(){N()}))},getIframe:function(e,n){var i=e.src,r=u.st.iframe,o=(t.each(r.patterns,(function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1})),{});return r.srcAction&&(o[r.srcAction]=i),u._parseMarkup(n,o,e),u.updateStatus("ready"),n}}}),t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var e=u.st.gallery,i=".mfp-gallery";if(u.direction=!0,!e||!e.enabled)return!1;e.langDir||(e.langDir=document.dir||"ltr"),f+=" mfp-gallery",n(k+i,(function(){e.navigateByImgClick&&u.wrap.on("click"+i,".mfp-img",(function(){if(1<u.items.length)return u.next(),!1})),h.on("keydown"+i,(function(t){37===t.keyCode?"rtl"===e.langDir?u.next():u.prev():39===t.keyCode&&("rtl"===e.langDir?u.prev():u.next())})),u.updateGalleryButtons()})),n("UpdateStatus"+i,(function(){u.updateGalleryButtons()})),n("UpdateStatus"+i,(function(t,e){e.text&&(e.text=F(e.text,u.currItem.index,u.items.length))})),n(C+i,(function(t,n,i,r){var o=u.items.length;i.counter=1<o?F(e.tCounter,r.index,o):""})),n("BuildControls"+i,(function(){var n,i,r,o,s;1<u.items.length&&e.arrows&&!u.arrowLeft&&(i="rtl"===e.langDir?(o=e.tNext,n=e.tPrev,s="next","prev"):(o=e.tPrev,n=e.tNext,s="prev","next"),r=e.arrowMarkup,o=u.arrowLeft=t(r.replace(/%title%/gi,o).replace(/%action%/gi,s).replace(/%dir%/gi,"left")).addClass(M),s=u.arrowRight=t(r.replace(/%title%/gi,n).replace(/%action%/gi,i).replace(/%dir%/gi,"right")).addClass(M),"rtl"===e.langDir?(u.arrowNext=o,u.arrowPrev=s):(u.arrowNext=s,u.arrowPrev=o),o.on("click",(function(){"rtl"===e.langDir?u.next():u.prev()})),s.on("click",(function(){"rtl"===e.langDir?u.prev():u.next()})),u.container.append(o.add(s)))})),n(S+i,(function(){u._preloadTimeout&&clearTimeout(u._preloadTimeout),u._preloadTimeout=setTimeout((function(){u.preloadNearbyImages(),u._preloadTimeout=null}),16)})),n(w+i,(function(){h.off(i),u.wrap.off("click"+i),u.arrowRight=u.arrowLeft=null}))},next:function(){var t=R(u.index+1);if(!u.st.gallery.loop&&0===t)return!1;u.direction=!0,u.index=t,u.updateItemHTML()},prev:function(){var t=u.index-1;if(!u.st.gallery.loop&&t<0)return!1;u.direction=!1,u.index=R(t),u.updateItemHTML()},goTo:function(t){u.direction=t>=u.index,u.index=t,u.updateItemHTML()},preloadNearbyImages:function(){for(var t=u.st.gallery.preload,e=Math.min(t[0],u.items.length),n=Math.min(t[1],u.items.length),i=1;i<=(u.direction?n:e);i++)u._preloadItem(u.index+i);for(i=1;i<=(u.direction?e:n);i++)u._preloadItem(u.index-i)},_preloadItem:function(e){var n;e=R(e),u.items[e].preloaded||((n=u.items[e]).parsed||(n=u.parseEl(e)),r("LazyLoad",n),"image"===n.type&&(n.img=t('<img class="mfp-img" />').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,r("LazyLoadError",n)})).attr("src",n.src)),n.preloaded=!0)},updateGalleryButtons:function(){u.st.gallery.loop||"object"!=typeof u.arrowPrev||null===u.arrowPrev||(0===u.index?u.arrowPrev.hide():u.arrowPrev.show(),u.index===u.items.length-1?u.arrowNext.hide():u.arrowNext.show())}}}),"retina");t.magnificPopup.registerModule(z,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){var t,e;1<window.devicePixelRatio&&(t=u.st.retina,e=t.ratio,1<(e=isNaN(e)?e():e))&&(n("ImageHasSize."+z,(function(t,n){n.img.css({"max-width":n.img[0].naturalWidth/e,width:"100%"})})),n("ElementParse."+z,(function(n,i){i.src=t.replaceSrc(i,e)})))}}}),s()}));var q=null;window.PR_SHOULD_USE_CONTINUATION=!0,function(){function t(t,e,n,i){e&&(n(t={a:e,d:t}),i.push.apply(i,t.e))}function e(e,n){var i,r={};!function(){for(var t=e.concat(n),o=[],s={},a=0,l=t.length;a<l;++a){var c=t[a],u=c[3];if(u)for(var d=u.length;--d>=0;)r[u.charAt(d)]=c;u=""+(c=c[1]),s.hasOwnProperty(u)||(o.push(c),s[u]=q)}o.push(/[\S\s]/),i=function(t){function e(t){var e=t.charCodeAt(0);if(92!==e)return e;var n=t.charAt(1);return(e=d[n])?e:"0"<=n&&n<="7"?parseInt(t.substring(1),8):"u"===n||"x"===n?parseInt(t.substring(2),16):t.charCodeAt(1)}function n(t){return t<32?(t<16?"\\x0":"\\x")+t.toString(16):("\\"!==(t=String.fromCharCode(t))&&"-"!==t&&"["!==t&&"]"!==t||(t="\\"+t),t)}function i(t){for(var i=t.substring(1,t.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),r=(t=[],[]),o="^"===i[0],s=o?1:0,a=i.length;s<a;++s){var l=i[s];if(/\\[bdsw]/i.test(l))t.push(l);else{var c;l=e(l);s+2<a&&"-"===i[s+1]?(c=e(i[s+2]),s+=2):c=l,r.push([l,c]),c<65||l>122||(c<65||l>90||r.push([32|Math.max(65,l),32|Math.min(c,90)]),c<97||l>122||r.push([-33&Math.max(97,l),-33&Math.min(c,122)]))}}for(r.sort((function(t,e){return t[0]-e[0]||e[1]-t[1]})),i=[],l=[NaN,NaN],s=0;s<r.length;++s)(a=r[s])[0]<=l[1]+1?l[1]=Math.max(l[1],a[1]):i.push(l=a);for(r=["["],o&&r.push("^"),r.push.apply(r,t),s=0;s<i.length;++s)a=i[s],r.push(n(a[0])),a[1]>a[0]&&(a[1]+1>a[0]&&r.push("-"),r.push(n(a[1])));return r.push("]"),r.join("")}function r(t){for(var e=t.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),n=e.length,r=[],a=0,l=0;a<n;++a){var c=e[a];"("===c?++l:"\\"===c.charAt(0)&&(c=+c.substring(1))&&c<=l&&(r[c]=-1)}for(a=1;a<r.length;++a)-1===r[a]&&(r[a]=++o);for(l=a=0;a<n;++a)"("===(c=e[a])?void 0===r[++l]&&(e[a]="(?:"):"\\"===c.charAt(0)&&(c=+c.substring(1))&&c<=l&&(e[a]="\\"+r[l]);for(l=a=0;a<n;++a)"^"===e[a]&&"^"!==e[a+1]&&(e[a]="");if(t.ignoreCase&&s)for(a=0;a<n;++a)t=(c=e[a]).charAt(0),c.length>=2&&"["===t?e[a]=i(c):"\\"!==t&&(e[a]=c.replace(/[A-Za-z]/g,(function(t){return t=t.charCodeAt(0),"["+String.fromCharCode(-33&t,32|t)+"]"})));return e.join("")}for(var o=0,s=!1,a=!1,l=0,c=t.length;l<c;++l){var u=t[l];if(u.ignoreCase)a=!0;else if(/[a-z]/i.test(u.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0,a=!1;break}}var d={b:8,t:9,n:10,v:11,f:12,r:13},h=[];for(l=0,c=t.length;l<c;++l){if((u=t[l]).global||u.multiline)throw Error(""+u);h.push("(?:"+r(u)+")")}return RegExp(h.join("|"),a?"gi":"g")}(o)}();var s=n.length;return function e(a){for(var l=a.d,c=[l,"pln"],u=0,d=a.a.match(i)||[],h={},p=0,f=d.length;p<f;++p){var g,m=d[p],v=h[m],y=void 0;if("string"==typeof v)g=!1;else{var b=r[m.charAt(0)];if(b)y=m.match(b[1]),v=b[0];else{for(g=0;g<s;++g)if(b=n[g],y=m.match(b[1])){v=b[0];break}y||(v="pln")}!(g=v.length>=5&&"lang-"===v.substring(0,5))||y&&"string"==typeof y[1]||(g=!1,v="src"),g||(h[m]=v)}if(b=u,u+=m.length,g){g=y[1];var x=m.indexOf(g),w=x+g.length;y[2]&&(x=(w=m.length-y[2].length)-g.length),v=v.substring(5),t(l+b,m.substring(0,x),e,c),t(l+b+x,g,o(v,g),c),t(l+b+w,m.substring(w),e,c)}else c.push(l+b,v)}a.e=c}}function n(t){var n=[],i=[];t.tripleQuotedStrings?n.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):t.multiLineStrings?n.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,q,"'\"`"]):n.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]),t.verbatimStrings&&i.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var r=t.hashComments;return r&&(t.cStyleComments?(r>1?n.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):n.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),i.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):n.push(["com",/^#[^\n\r]*/,q,"#"])),t.cStyleComments&&(i.push(["com",/^\/\/[^\n\r]*/,q]),i.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q])),t.regexLiterals&&i.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]),(r=t.types)&&i.push(["typ",r]),(t=(""+t.keywords).replace(/^ | $/g,"")).length&&i.push(["kwd",RegExp("^(?:"+t.replace(/[\s,]+/g,"|")+")\\b"),q]),n.push(["pln",/^\s+/,q," \r\n\t "]),i.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]),e(n,i)}function i(t,e){function n(t){switch(t.nodeType){case 1:if(o.test(t.className))break;if("BR"===t.nodeName)i(t),t.parentNode&&t.parentNode.removeChild(t);else for(t=t.firstChild;t;t=t.nextSibling)n(t);break;case 3:case 4:if(l){var e=t.nodeValue,r=e.match(s);if(r){var c=e.substring(0,r.index);t.nodeValue=c,(e=e.substring(r.index+r[0].length))&&t.parentNode.insertBefore(a.createTextNode(e),t.nextSibling),i(t),c||t.parentNode.removeChild(t)}}}}function i(t){for(;!t.nextSibling;)if(!(t=t.parentNode))return;var e;for(t=function t(e,n){var i=n?e.cloneNode(!1):e;if(r=e.parentNode){var r=t(r,1),o=e.nextSibling;r.appendChild(i);for(var s=o;s;s=o)o=s.nextSibling,r.appendChild(s)}return i}(t.nextSibling,0);(e=t.parentNode)&&1===e.nodeType;)t=e;c.push(t)}var r,o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=t.ownerDocument;t.currentStyle?r=t.currentStyle.whiteSpace:window.getComputedStyle&&(r=a.defaultView.getComputedStyle(t,q).getPropertyValue("white-space"));var l=r&&"pre"===r.substring(0,3);for(r=a.createElement("LI");t.firstChild;)r.appendChild(t.firstChild);for(var c=[r],u=0;u<c.length;++u)n(c[u]);e===(0|e)&&c[0].setAttribute("value",e);var d=a.createElement("OL");d.className="linenums";for(var h=Math.max(0,e-1|0)||0,p=(u=0,c.length);u<p;++u)(r=c[u]).className="L"+(u+h)%10,r.firstChild||r.appendChild(a.createTextNode(" ")),d.appendChild(r);t.appendChild(d)}function r(t,e){for(var n=e.length;--n>=0;){var i=e[n];v.hasOwnProperty(i)?window.console&&console.warn("cannot override language handler %s",i):v[i]=t}}function o(t,e){return t&&v.hasOwnProperty(t)||(t=/^\s*</.test(e)?"default-markup":"default-code"),v[t]}function s(t){var e=t.g;try{var n=(c=function(t){var e,n=/(?:^|\s)nocode(?:\s|$)/,i=[],r=0,o=[],s=0;t.currentStyle?e=t.currentStyle.whiteSpace:window.getComputedStyle&&(e=document.defaultView.getComputedStyle(t,q).getPropertyValue("white-space"));var a=e&&"pre"===e.substring(0,3);return function t(e){switch(e.nodeType){case 1:if(n.test(e.className))break;for(var l=e.firstChild;l;l=l.nextSibling)t(l);"BR"!==(l=e.nodeName)&&"LI"!==l||(i[s]="\n",o[s<<1]=r++,o[s++<<1|1]=e);break;case 3:case 4:(l=e.nodeValue).length&&(l=a?l.replace(/\r\n?/g,"\n"):l.replace(/[\t\n\r ]+/g," "),i[s]=l,o[s<<1]=r,r+=l.length,o[s++<<1|1]=e)}}(t),{a:i.join("").replace(/\n$/,""),c:o}}(t.h)).a;t.a=n,t.c=c.c,t.d=0,o(e,n)(t);var i,r,s=/\bMSIE\b/.test(navigator.userAgent),a=(e=/\n/g,t.a),l=a.length,c=0,u=t.c,d=u.length,h=(n=0,t.e),p=h.length;t=0;for(h[p]=l,r=i=0;r<p;)h[r]!==h[r+2]?(h[i++]=h[r++],h[i++]=h[r++]):r+=2;for(p=i,r=i=0;r<p;){for(var f=h[r],g=h[r+1],m=r+2;m+2<=p&&h[m+1]===g;)m+=2;h[i++]=f,h[i++]=g,r=m}for(h.length=i;n<d;){var v,y=u[n+2]||l,b=h[t+2]||l,x=(m=Math.min(y,b),u[n+1]);if(1!==x.nodeType&&(v=a.substring(c,m))){s&&(v=v.replace(e,"\r")),x.nodeValue=v;var w=x.ownerDocument,_=w.createElement("SPAN");_.className=h[t+1];var C=x.parentNode;C.replaceChild(_,x),_.appendChild(x),c<y&&(u[n+1]=x=w.createTextNode(a.substring(m,y)),C.insertBefore(x,_.nextSibling))}(c=m)>=y&&(n+=2),c>=b&&(t+=2)}}catch(t){"console"in window&&console.log(t&&t.stack?t.stack:t)}}var a,l,c=[a=[[l=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],u=[a,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],d=[u,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],h=[l,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],p=[l,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],f=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,g=/\S/,m=n({keywords:[c,d,a=[a,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+h,p,l=[l,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),v={};r(m,["default-code"]),r(e([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),r(e([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),r(e([],[["atv",/^[\S\s]+/]]),["uq.val"]),r(n({keywords:c,hashComments:!0,cStyleComments:!0,types:f}),["c","cc","cpp","cxx","cyc","m"]),r(n({keywords:"null,true,false"}),["json"]),r(n({keywords:d,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:f}),["cs"]),r(n({keywords:u,cStyleComments:!0}),["java"]),r(n({keywords:l,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]),r(n({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]),r(n({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]),r(n({keywords:p,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]),r(n({keywords:a,cStyleComments:!0,regexLiterals:!0}),["js"]),r(n({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),r(e([],[["str",/^[\S\s]+/]]),["regex"]),window.prettyPrintOne=function(t,e,n){var r=document.createElement("PRE");return r.innerHTML=t,n&&i(r,n),s({g:e,i:n,h:r}),r.innerHTML},window.prettyPrint=function(t){for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],n=[],r=0;r<e.length;++r)for(var o=0,a=e[r].length;o<a;++o)n.push(e[r][o]);e=q;var l=Date;l.now||(l={now:function(){return+new Date}});var c=0,u=/\blang(?:uage)?-([\w.]+)(?!\S)/;!function e(){for(var r=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:1/0;c<n.length&&l.now()<r;c++){var o=n[c];if((a=o.className).indexOf("prettyprint")>=0){var a,d,h;if(h=!(a=a.match(u))){for(var p=void 0,f=(h=o).firstChild;f;f=f.nextSibling){var m=f.nodeType;p=1===m?p?h:f:3===m&&g.test(f.nodeValue)?h:p}h=(d=p===h?void 0:p)&&"CODE"===d.tagName}for(h&&(a=d.className.match(u)),a&&(a=a[1]),h=!1,p=o.parentNode;p;p=p.parentNode)if(("pre"===p.tagName||"code"===p.tagName||"xmp"===p.tagName)&&p.className&&p.className.indexOf("prettyprint")>=0){h=!0;break}h||((h=!!(h=o.className.match(/\blinenums\b(?::(\d+))?/))&&(!h[1]||!h[1].length||+h[1]))&&i(o,h),s({g:a,h:o,i:h}))}}c<n.length?setTimeout(e,250):t&&t()}()},window.PR={createSimpleLexer:e,registerLangHandler:r,sourceDecorator:n,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}}();

Выполнить команду


Для локальной разработки. Не используйте в интернете!