%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/webmin/authentic-theme/unauthenticated/js/
Upload File :
Create Path :
Current File : //usr/share/webmin/authentic-theme/unauthenticated/js/bundle.min.js

/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var i,o,a=(n=n||r).createElement("script");if(a.text=e,t)for(i in y)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,o);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.4.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||w.isPlainObject(n)?n:{},i=!1,a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=i(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){m(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),S=ue(),k=ue(),N=ue(),A=function(e,t){return e===t&&(f=!0),0},D={}.hasOwnProperty,j=[],q=j.pop,L=j.push,H=j.push,O=j.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",$=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(j=O.call(w.childNodes),w.childNodes),j[w.childNodes.length].nodeType}catch(t){H={apply:j.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=Z.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!N[e+" "]&&(!v||!v.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===T&&U.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+xe(h[s]);y=h.join(","),m=ee.test(e)&&ye(t.parentNode)||t}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){N(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le(function(t){return t=+t,le(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&g&&!N[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){N(t,!0)}return 0<se(t,d,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&D.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(A),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i.replace(F," ")+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&0<=x/r}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):1<i.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:le(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:le(function(e){return function(t){return 0<se(e,t).length}}),contains:le(function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||i(t)).indexOf(e)}}),lang:le(function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if((c[o]=p)[2]=e(t,n,u))return!0}return!1}}function we(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&-1<(l=i?P(o,f):p[c])&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be(function(e){return e===t},s,!0),f=be(function(e){return-1<P(t,e)},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(1<u&&we(p),1<u&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,u).slice(0)},s=se.compile=function(e,t){var n,i,o,s,u,c,f=[],h=[],v=k[e+" "];if(!v){for(t||(t=a(e)),n=t.length;n--;)(v=Ee(t[n]))[b]?f.push(v):h.push(v);(v=k(e,(i=h,s=0<(o=f).length,u=0<i.length,c=function(e,t,n,a,c){var f,h,v,y=0,m="0",x=e&&[],b=[],w=l,C=e||u&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,S=C.length;for(c&&(l=t===d||t||c);m!==S&&null!=(f=C[m]);m++){if(u&&f){for(h=0,t||f.ownerDocument===d||(p(f),n=!g);v=i[h++];)if(v(f,t||d,n)){a.push(f);break}c&&(T=E)}s&&((f=!v&&f)&&y--,e&&x.push(f))}if(y+=m,s&&m!==y){for(h=0;v=o[h++];)v(x,b,t,n);if(e){if(0<y)for(;m--;)x[m]||b[m]||(b[m]=q.call(a));b=Te(b)}H.apply(a,b),c&&!e&&0<b.length&&1<y+o.length&&se.uniqueSort(a)}return c&&(T=E,l=w),x},s?le(c):c))).selector=e}return v},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if(2<(u=d[0]=d[0].slice(0)).length&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(A).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(e);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return-1<u.call(t,e)!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return 1<r?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),D.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&w(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),1<this.length&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var R=/[^\x20\t\r\n\f]+/g;function M(e){return e}function I(e){throw e}function W(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},w.each(t.match(R)||[],function(e,t){n[t]=!0}),n):w.extend({},e);var r,i,o,a,s=[],u=[],l=-1,c=function(){for(a=a||e.once,o=r=!0;u.length;l=-1)for(i=u.shift();++l<s.length;)!1===s[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=s.length,i=!1);e.memory||(i=!1),r=!1,a&&(s=i?[]:"")},f={add:function(){return s&&(i&&!r&&(l=s.length-1,u.push(i)),function t(n){w.each(n,function(n,r){g(r)?e.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),i&&!r&&c()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;-1<(n=w.inArray(t,s,n));)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<w.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=u=[],i||r||(s=i=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,M,i),a(o,n,I,i)):(o++,l.call(e,a(o,n,M,i),a(o,n,I,i),a(o,n,M,n.notifyWith))):(r!==M&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),o<=t+1&&(r!==I&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:M,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:M)),n[2][3].add(a(0,e,g(r)?r:I))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=1<arguments.length?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(W(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n--;)W(i[n],s(n),a.reject);return a.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&$.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();function B(){r.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),w.ready()}w.fn.ready=function(e){return F.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||F.resolveWith(r,[w])}}),w.ready.then=F.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(w.ready):(r.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var _=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)_(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},z=/^-ms-/,U=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function V(e){return e.replace(z,"ms-").replace(U,X)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=w.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in r?[t]:t.match(R)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Q=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:K.test(i)?JSON.parse(i):i)}catch(e){}J.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=V(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):_(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))?n:void 0!==(n=ee(o,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){w.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:w.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=r.documentElement,oe=function(e){return w.contains(e.ownerDocument,e)},ae={composed:!0};ie.getRootNode&&(oe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===w.css(e,"display")},ue=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,"")},u=s(),l=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==l&&+u)&&ne.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)w.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ce={};function fe(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Q.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ce[s])||(o=a.body.appendChild(a.createElement(s)),u=w.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ce[s]=u)))):"none"!==n&&(l[c]="none",Q.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}w.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?w(this).show():w(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var me,xe,be=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))w.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&-1<w.inArray(o,r))i&&i.push(o);else if(l=oe(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}me=r.createDocumentFragment().appendChild(r.createElement("div")),(xe=r.createElement("input")).setAttribute("type","radio"),xe.setAttribute("checked","checked"),xe.setAttribute("name","t"),me.appendChild(xe),h.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function ke(){return!1}function Ne(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}function De(e,t,n){n?(Q.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Q.set(this,t,a),r=n(this,t),this[t](),a!==(i=Q.get(this,t))||r?Q.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else a.length&&(Q.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&w.event.add(e,t,Se)}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(ie,i),n.guid||(n.guid=w.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(R)||[""]).length;l--;)d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(R)||[""]).length;l--;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||w.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=w.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=w.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=w.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((w.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<w(i,this).index(l):w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click",Se),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Q.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){w.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)w.event.add(t,i,l[i][n]);J.hasData(e)&&(s=J.access(e),u=w.extend({},s),J.set(t,u))}}function Ie(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||1<p&&"string"==typeof v&&!h.checkClone&&Le.test(v))return e.each(function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),Ie(o,t,n,r)});if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=w.map(ve(i,"script"),Pe)).length;f<p;f++)l=i,f!==d&&(l=w.clone(l,!0,!0),u&&w.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,w.map(s,Re),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Q.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):m(l.textContent.replace(He,""),l,c))}return e}function We(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(ve(r)),r.parentNode&&(n&&oe(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Me(o[r],a[r]);else Me(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),w.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return _(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return _(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!qe.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ve(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),w(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var $e=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Fe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Be=new RegExp(re.join("|"),"i");function _e(e,t,n){var r,i,o,a,s=e.style;return(n=n||Fe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||oe(e)||(a=w.style(e,t)),!h.pixelBoxStyles()&&$e.test(a)&&Be.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),ie.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Ue=["Webkit","Moz","ms"],Xe=r.createElement("div").style,Ve={};function Ge(e){return w.cssProps[e]||Ve[e]||(e in Xe?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Xe)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=w.css(e,n+re[a],!0,i)),r?("content"===n&&(u-=w.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(u-=w.css(e,"border"+re[a]+"Width",!0,i))):(u+=w.css(e,"padding"+re[a],!0,i),"padding"!==n?u+=w.css(e,"border"+re[a]+"Width",!0,i):s+=w.css(e,"border"+re[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=Fe(e),i=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),o=i,a=_e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===w.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=_e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=V(t),u=Qe.test(t),l=e.style;if(u||(t=Ge(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=V(t);return Qe.test(t)||(t=Ge(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=_e(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Ye.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):ue(e,Je,function(){return tt(e,t,r)})},set:function(e,n,r){var i,o=Fe(e),a=!h.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,o),u=r?et(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),u&&(i=ne.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ze(0,n,u)}}}),w.cssHooks.marginLeft=ze(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(_e(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+re[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=Ze)}),w.fn.extend({css:function(e,t){return _(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,1<arguments.length)}}),((w.Tween=nt).prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}}).init.prototype=nt.prototype,(nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=nt.prototype.init,w.fx.step={};var rt,it,ot,at,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function lt(){it&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lt):e.setTimeout(lt,w.fx.interval),w.fx.tick())}function ct(){return e.setTimeout(function(){rt=void 0}),rt=Date.now()}function ft(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function dt(e,t,n){var r,i,o=0,a=dt.prefilters.length,s=w.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=rt||ct(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=V(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=dt.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,pt,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(R);for(var n,r=0,i=e.length;r<i;r++)n=e[r],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&se(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Q.get(e,"display")),"none"===(c=w.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=w.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===w.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Q.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&fe([e],!0),p.done(function(){for(r in g||fe([e]),Q.remove(e,"fxshow"),d)w.style(e,r,d[r])})),u=pt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=dt(this,w.extend({},e),o);(i||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=w.timers,a=Q.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ut.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,i)}}),w.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),rt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){it||(it=!0,lt())},w.fx.stop=function(){it=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},ot=r.createElement("input"),at=r.createElement("select").appendChild(r.createElement("option")),ot.type="checkbox",h.checkOn=""!==ot.value,h.optSelected=at.selected,(ot=r.createElement("input")).value="t",ot.type="radio",h.radioValue="t"===ot.value;var ht,gt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return _(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=gt[t]||w.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function mt(e){return(e.match(R)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}w.fn.extend({prop:function(e,t){return _(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).addClass(e.call(this,t,xt(this)))});if((t=bt(e)).length)for(;n=this[u++];)if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).removeClass(e.call(this,t,xt(this)))});if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[u++];)if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=t[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,xt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=w(this),a=bt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=xt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+mt(xt(n))+" ").indexOf(t))return!0;return!1}});var wt=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:mt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<w.inArray(w.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var Tt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!Tt.test(m+w.event.triggered)&&(-1<m.indexOf(".")&&(m=(x=m.split(".")).shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[w.expando]?t:new w.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),d=w.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,Tt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=1<a?l:d.bindType||m,(p=(Q.get(s,"events")||{})[t.type]&&Q.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&G(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!G(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),w.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Ct),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Ct),w.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Q.access(r,t);i||r.addEventListener(e,n,!0),Q.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Q.access(r,t)-1;i?Q.access(r,t,i):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}});var Et=e.location,St=Date.now(),kt=/\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var Nt=/\[\]$/,At=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function qt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||Nt.test(e)?r(e,i):qt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)qt(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)qt(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&jt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Lt=/%20/g,Ht=/#.*$/,Ot=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Mt=/^\/\//,It={},Wt={},$t="*/".concat("*"),Ft=r.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(R)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function _t(e,t,n,r){var i={},o=e===Wt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function zt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Ft.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?zt(zt(e,w.ajaxSettings),t):zt(w.ajaxSettings,e)},ajaxPrefilter:Bt(It),ajaxTransport:Bt(Wt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=w.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?w(g):w.event,y=w.Deferred(),m=w.Callbacks("once memory"),x=h.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Pt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),S(0,t),this}};if(y.promise(E),h.url=((t||h.url||Et.href)+"").replace(Mt,Et.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),_t(It,h,n,E),c)return E;for(p in(f=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),o=h.url.replace(Ht,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(kt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Ot,"$1"),d=(kt.test(o)?"&":"?")+"_="+St+++d),h.url=o+d),h.ifModified&&(w.lastModified[o]&&E.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&E.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$t+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=_t(Wt,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&0<h.timeout&&(u=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,i.send(b,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,n,r,s){var l,p,d,b,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=0<t?4:0,l=200<=t&&t<300||304===t,r&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,b,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(w.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,l=!(d=b.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e,t){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Xt=w.ajaxSettings.xhr();h.cors=!!Xt&&"withCredentials"in Xt,h.ajax=Xt=!!Xt,w.ajaxTransport(function(t){var n,r;if(h.cors||Xt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ut[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(i){if(n)throw i}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||w.expando+"_"+St++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Yt,"$1"+i):!1!==t.jsonp&&(t.url+=(kt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||w.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0}),"script"}),h.createHTMLDocument=((Vt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),a=!n&&[],(o=D.exec(e))?[t.createElement(o[1])]:(o=we([e],t,a),a&&a.length&&w(a).remove(),w.merge([],o.childNodes)));var i,o,a},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=mt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&w.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),u=w.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return _(this,function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=ze(h.pixelPosition,function(e,n){if(n)return n=_e(e,t),$e.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return _(this,function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)},t,a?i:void 0,a)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=g,w.isWindow=v,w.camelCase=V,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Qt=e.jQuery,Jt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Jt),t&&e.jQuery===w&&(e.jQuery=Qt),w},t||(e.jQuery=e.$=w),w});/*!
 * Bootstrap v3.4.1 (https://getbootstrap.com/)
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under the MIT license
 */
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});return setTimeout(function(){i||t(o).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var o=t(this),n=o.attr("data-target");n||(n=(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),n="#"===n?[]:n;var s=t(document).find(n);function a(){s.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a())};var o=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var o=t(this),n=o.data("bs.alert");n||o.data("bs.alert",n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.isLoading=!1};function i(i){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof i&&i;n||o.data("bs.button",n=new e(this,s)),"toggle"==i?n.toggle():i&&n.setState(i)})}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var o=t(e.target).closest(".btn");i.call(o,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),o.is("input,button")?o.trigger("focus"):o.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(e){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(o)}function o(i){return this.each(function(){var o=t(this),n=o.data("bs.collapse"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i);!n&&s.toggle&&/show|hide/.test(i)&&(s.toggle=!1),n||o.data("bs.collapse",n=new e(this,s)),"string"==typeof i&&n[i]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=0,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(i=n.data("bs.collapse"))&&i.transitioning)){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){n&&n.length&&(o.call(n,"hide"),i||n.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var o=this.dimension();this.$element[o](this.$element[o]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return n.call(this);this.$element[o](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,o){var n=t(o);this.addAriaAndCollapsedClass(i(n),n)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=o,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var n=t(this);n.attr("data-target")||e.preventDefault();var s=i(n),a=s.data("bs.collapse")?"toggle":n.data();o.call(s,a)})}(jQuery),function(t){"use strict";var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o="#"!==i?t(document).find(i):null;return o&&o.length?o:e.parent()}function s(o){o&&3===o.which||(t(e).remove(),t(i).each(function(){var e=t(this),i=n(e),s={relatedTarget:this};i.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&t.contains(i[0],o.target)||(i.trigger(o=t.Event("hide.bs.dropdown",s)),o.isDefaultPrevented()||(e.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",s)))))}))}o.VERSION="3.4.1",o.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var o=n(i),a=o.hasClass("open");if(s(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",s);var r={relatedTarget:this};if(o.trigger(e=t.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",r))}return!1}},o.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=n(o),a=s.hasClass("open");if(!a&&27!=e.which||a&&27==e.which)return 27==e.which&&s.find(i).trigger("focus"),o.trigger("click");var r=s.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var l=r.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<r.length-1&&l++,~l||(l=0),r.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof e&&n[e].call(i)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",i,o.prototype.toggle).on("keydown.bs.dropdown.data-api",i,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,o){return this.each(function(){var n=t(this),s=n.data("bs.modal"),a=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);s||n.data("bs.modal",s=new e(this,a)),"string"==typeof i?s[i](o):a.show&&s.show(o)})}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(i){var o=this,n=t.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),n&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:i});n?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(e.TRANSITION_DURATION):o.$element.trigger("focus").trigger(s)}))},e.prototype.hide=function(i){i&&i.preventDefault(),i=t.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(i){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;s?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),i&&i()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else i&&i()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each(function(e,o){var n=o.style.paddingRight,s=t(o).css("padding-right");t(o).data("padding-right",n).css("padding-right",parseFloat(s)+i+"px")}))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,i){var o=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=o||""})},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var o=t(this),n=o.attr("href"),s=o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(s),r=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},a.data(),o.data());o.is("a")&&e.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),i.call(a,r,this)})}(jQuery),function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],o={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(e,o){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,o))return-1===t.inArray(a,i)||Boolean(e.nodeValue.match(n)||e.nodeValue.match(s));for(var r=t(o).filter(function(t,e){return e instanceof RegExp}),l=0,d=r.length;l<d;l++)if(a.match(r[l]))return!0;return!1}function r(e,i,o){if(0===e.length)return e;if(o&&"function"==typeof o)return o(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var n=document.implementation.createHTMLDocument("sanitization");n.body.innerHTML=e;for(var s=t.map(i,function(t,e){return e}),r=t(n.body).find("*"),l=0,d=r.length;l<d;l++){var h=r[l],p=h.nodeName.toLowerCase();if(-1!==t.inArray(p,s))for(var c=t.map(h.attributes,function(t){return t}),u=[].concat(i["*"]||[],i[p]||[]),f=0,g=c.length;f<g;f++)a(c[f],u)||h.removeAttribute(c[f].nodeName);else h.parentNode.removeChild(h)}return n.body.innerHTML}var l=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:o},l.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var a=n[s];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var o=this.$element.data();for(var n in o)o.hasOwnProperty(n)&&-1!==t.inArray(n,e)&&delete o[n];return(i=t.extend({},this.getDefaults(),o,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=r(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,d=r.test(a);d&&(a=a.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),p=n[0].offsetWidth,c=n[0].offsetHeight;if(d){var u=a,f=this.getPosition(this.$viewport);a="bottom"==a&&h.bottom+c>f.bottom?"top":"top"==a&&h.top-c<f.top?"bottom":"right"==a&&h.right+p>f.width?"left":"left"==a&&h.left-p<f.left?"right":a,n.removeClass(u).addClass(a)}var g=this.getCalculatedOffset(a,h,p,c);this.applyPlacement(g,a);var m=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(l.TRANSITION_DURATION):m()}},l.prototype.applyPlacement=function(e,i){var o=this.tip(),n=o[0].offsetWidth,s=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),r=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top+=a,e.left+=r,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,d=o[0].offsetHeight;"top"==i&&d!=s&&(e.top=e.top+s-d);var h=this.getViewportAdjustedDelta(i,e,l,d);h.left?e.left+=h.left:e.top+=h.top;var p=/top|bottom/.test(i),c=p?2*h.left-n+l:2*h.top-s+d,u=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][u],p)},l.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=r(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var i=this,o=t(this.$tip),n=t.Event("hide.bs."+this.type);function s(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}if(this.$element.trigger(n),!n.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(l.TRANSITION_DURATION):s(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],o="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=window.SVGElement&&i instanceof window.SVGElement,a=o?{top:0,left:0}:s?null:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,l,a)},l.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var d=e.left-s,h=e.left+s+i;d<a.left?n.left=a.left-d:h>a.right&&(n.left=a.left+a.width-h)}return n},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return r(t,this.options.whiteList,this.options.sanitizeFn)};var d=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new l(this,n)),"string"==typeof e&&o[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=d,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof i&&i;!n&&/destroy|hide/.test(i)||(n||o.data("bs.popover",n=new e(this,s)),"string"==typeof i&&n[i]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function i(i){return this.each(function(){var o=t(this),n=o.data("bs.tab");n||o.data("bs.tab",n=new e(this)),"string"==typeof i&&n[i]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=60,e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=(o=e.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a"),s=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(s),e.trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){var r=t(document).find(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},e.prototype.activate=function(i,o,n){var s=o.find("> .active"),a=n&&t.support.transition&&(s.length&&s.hasClass("fade")||!!o.find("> .fade").length);function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),s.removeClass("in")};var o=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var n=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery);
/* ========================================================================
 * Bootstrap: affix.js v3.4.1
 * https://getbootstrap.com/docs/3.4/javascript/#affix
 * ========================================================================
 * Copyright 2011-2019 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== *//*! Chartist.js 0.11.4
 * Copyright © 2019 Gion Kunz
 * Free to use under either the WTFPL license or the MIT license.
 * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL
 * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT
 */
!function(e,t){"function"==typeof define&&define.amd?define("Chartist",[],function(){return e.Chartist=t()}):"object"==typeof module&&module.exports?module.exports=t():e.Chartist=t()}(this,function(){var e={version:"0.11.4"};return function(e,t){"use strict";var i=e.window,n=e.document;t.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"/ct/"},t.noop=function(e){return e},t.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},t.extend=function(e){var i,n,s;for(e=e||{},i=1;i<arguments.length;i++)for(var r in n=arguments[i])"object"!=typeof(s=n[r])||null===s||s instanceof Array?e[r]=s:e[r]=t.extend(e[r],s);return e},t.replaceAll=function(e,t,i){return e.replace(new RegExp(t,"g"),i)},t.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},t.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},t.querySelector=function(e){return e instanceof Node?e:n.querySelector(e)},t.times=function(e){return Array.apply(null,new Array(e))},t.sum=function(e,t){return e+(t||0)},t.mapMultiply=function(e){return function(t){return t*e}},t.mapAdd=function(e){return function(t){return t+e}},t.serialMap=function(e,i){var n=[],s=Math.max.apply(null,e.map(function(e){return e.length}));return t.times(s).forEach(function(t,s){var r=e.map(function(e){return e[s]});n[s]=i.apply(null,r)}),n},t.roundWithPrecision=function(e,i){var n=Math.pow(10,i||t.precision);return Math.round(e*n)/n},t.precision=8,t.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},t.serialize=function(e){return null===e||void 0===e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(t.escapingMap).reduce(function(e,i){return t.replaceAll(e,i,t.escapingMap[i])},e))},t.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(t.escapingMap).reduce(function(e,i){return t.replaceAll(e,t.escapingMap[i],i)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},t.createSvg=function(e,i,n,s){var r;return i=i||"100%",n=n||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(t.namespaces.xmlns,"ct")}).forEach(function(t){e.removeChild(t)}),(r=new t.Svg("svg").attr({width:i,height:n}).addClass(s))._node.style.width=i,r._node.style.height=n,e.appendChild(r._node),r},t.normalizeData=function(e,i,n){var s,r={raw:e,normalized:{}};return r.normalized.series=t.getDataArray({series:e.series||[]},i,n),s=r.normalized.series.every(function(e){return e instanceof Array})?Math.max.apply(null,r.normalized.series.map(function(e){return e.length})):r.normalized.series.length,r.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(r.normalized.labels,t.times(Math.max(0,s-r.normalized.labels.length)).map(function(){return""})),i&&t.reverseData(r.normalized),r},t.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},t.isDataHoleValue=function(e){return null===e||void 0===e||"number"==typeof e&&isNaN(e)},t.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},t.getDataArray=function(e,i,n){return e.series.map(function e(i){if(t.safeHasProperty(i,"value"))return e(i.value);if(t.safeHasProperty(i,"data"))return e(i.data);if(i instanceof Array)return i.map(e);if(!t.isDataHoleValue(i)){if(n){var s={};return"string"==typeof n?s[n]=t.getNumberOrUndefined(i):s.y=t.getNumberOrUndefined(i),s.x=i.hasOwnProperty("x")?t.getNumberOrUndefined(i.x):s.x,s.y=i.hasOwnProperty("y")?t.getNumberOrUndefined(i.y):s.y,s}return t.getNumberOrUndefined(i)}})},t.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},t.getMetaData=function(e,t){var i=e.data?e.data[t]:e[t];return i?i.meta:void 0},t.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},t.projectLength=function(e,t,i){return t/i.range*e},t.getAvailableHeight=function(e,i){return Math.max((t.quantity(i.height).value||e.height())-(i.chartPadding.top+i.chartPadding.bottom)-i.axisX.offset,0)},t.getHighLow=function(e,i,n){var s={high:void 0===(i=t.extend({},i,n?i["axis"+n.toUpperCase()]:{})).high?-Number.MAX_VALUE:+i.high,low:void 0===i.low?Number.MAX_VALUE:+i.low},r=void 0===i.high,a=void 0===i.low;return(r||a)&&function e(t){if(void 0!==t)if(t instanceof Array)for(var i=0;i<t.length;i++)e(t[i]);else{var o=n?+t[n]:+t;r&&o>s.high&&(s.high=o),a&&o<s.low&&(s.low=o)}}(e),(i.referenceValue||0===i.referenceValue)&&(s.high=Math.max(i.referenceValue,s.high),s.low=Math.min(i.referenceValue,s.low)),s.high<=s.low&&(0===s.low?s.high=1:s.low<0?s.high=0:s.high>0?s.low=0:(s.high=1,s.low=0)),s},t.isNumeric=function(e){return null!==e&&isFinite(e)},t.isFalseyButZero=function(e){return!e&&0!==e},t.getNumberOrUndefined=function(e){return t.isNumeric(e)?+e:void 0},t.isMultiValue=function(e){return"object"==typeof e&&("x"in e||"y"in e)},t.getMultiValue=function(e,i){return t.isMultiValue(e)?t.getNumberOrUndefined(e[i||"y"]):t.getNumberOrUndefined(e)},t.rho=function(e){if(1===e)return e;function t(e,i){return e%i==0?i:t(i,e%i)}function i(e){return e*e+1}var n,s=2,r=2;if(e%2==0)return 2;do{s=i(s)%e,r=i(i(r))%e,n=t(Math.abs(s-r),e)}while(1===n);return n},t.getBounds=function(e,i,n,s){var r,a,o,l=0,h={high:i.high,low:i.low};h.valueRange=h.high-h.low,h.oom=t.orderOfMagnitude(h.valueRange),h.step=Math.pow(10,h.oom),h.min=Math.floor(h.low/h.step)*h.step,h.max=Math.ceil(h.high/h.step)*h.step,h.range=h.max-h.min,h.numberOfSteps=Math.round(h.range/h.step);var c=t.projectLength(e,h.step,h)<n,u=s?t.rho(h.range):0;if(s&&t.projectLength(e,1,h)>=n)h.step=1;else if(s&&u<h.step&&t.projectLength(e,u,h)>=n)h.step=u;else for(;;){if(c&&t.projectLength(e,h.step,h)<=n)h.step*=2;else{if(c||!(t.projectLength(e,h.step/2,h)>=n))break;if(h.step/=2,s&&h.step%1!=0){h.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var d=2.221e-16;function p(e,t){return e===(e+=t)&&(e*=1+(t>0?d:-d)),e}for(h.step=Math.max(h.step,d),a=h.min,o=h.max;a+h.step<=h.low;)a=p(a,h.step);for(;o-h.step>=h.high;)o=p(o,-h.step);h.min=a,h.max=o,h.range=h.max-h.min;var f=[];for(r=h.min;r<=h.max;r=p(r,h.step)){var m=t.roundWithPrecision(r);m!==f[f.length-1]&&f.push(m)}return h.values=f,h},t.polarToCartesian=function(e,t,i,n){var s=(n-90)*Math.PI/180;return{x:e+i*Math.cos(s),y:t+i*Math.sin(s)}},t.createChartRect=function(e,i,n){var s=!(!i.axisX&&!i.axisY),r=s?i.axisY.offset:0,a=s?i.axisX.offset:0,o=e.width()||t.quantity(i.width).value||0,l=e.height()||t.quantity(i.height).value||0,h=t.normalizePadding(i.chartPadding,n);o=Math.max(o,r+h.left+h.right),l=Math.max(l,a+h.top+h.bottom);var c={padding:h,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return s?("start"===i.axisX.position?(c.y2=h.top+a,c.y1=Math.max(l-h.bottom,c.y2+1)):(c.y2=h.top,c.y1=Math.max(l-h.bottom-a,c.y2+1)),"start"===i.axisY.position?(c.x1=h.left+r,c.x2=Math.max(o-h.right,c.x1+1)):(c.x1=h.left,c.x2=Math.max(o-h.right-r,c.x1+1))):(c.x1=h.left,c.x2=Math.max(o-h.right,c.x1+1),c.y2=h.top,c.y1=Math.max(l-h.bottom,c.y2+1)),c},t.createGrid=function(e,i,n,s,r,a,o,l){var h={};h[n.units.pos+"1"]=e,h[n.units.pos+"2"]=e,h[n.counterUnits.pos+"1"]=s,h[n.counterUnits.pos+"2"]=s+r;var c=a.elem("line",h,o.join(" "));l.emit("draw",t.extend({type:"grid",axis:n,index:i,group:a,element:c},h))},t.createGridBackground=function(e,t,i,n){var s=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},i,!0);n.emit("draw",{type:"gridBackground",group:e,element:s})},t.createLabel=function(e,i,s,r,a,o,l,h,c,u,d){var p,f={};if(f[a.units.pos]=e+l[a.units.pos],f[a.counterUnits.pos]=l[a.counterUnits.pos],f[a.units.len]=i,f[a.counterUnits.len]=Math.max(0,o-10),u){var m=n.createElement("span");m.className=c.join(" "),m.setAttribute("xmlns",t.namespaces.xhtml),m.innerText=r[s],m.style[a.units.len]=Math.round(f[a.units.len])+"px",m.style[a.counterUnits.len]=Math.round(f[a.counterUnits.len])+"px",p=h.foreignObject(m,t.extend({style:"overflow: visible;"},f))}else p=h.elem("text",f,c.join(" ")).text(r[s]);d.emit("draw",t.extend({type:"label",axis:a,index:s,group:h,element:p,text:r[s]},f))},t.getSeriesOption=function(e,t,i){if(e.name&&t.series&&t.series[e.name]){var n=t.series[e.name];return n.hasOwnProperty(i)?n[i]:t[i]}return t[i]},t.optionsProvider=function(e,n,s){var r,a,o=t.extend({},e),l=[];function h(e){var l=r;if(r=t.extend({},o),n)for(a=0;a<n.length;a++){i.matchMedia(n[a][0]).matches&&(r=t.extend(r,n[a][1]))}s&&e&&s.emit("optionsChanged",{previousOptions:l,currentOptions:r})}if(!i.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(n)for(a=0;a<n.length;a++){var c=i.matchMedia(n[a][0]);c.addListener(h),l.push(c)}return h(),{removeMediaQueryListeners:function(){l.forEach(function(e){e.removeListener(h)})},getCurrentOptions:function(){return t.extend({},r)}}},t.splitIntoSegments=function(e,i,n){n=t.extend({},{increasingX:!1,fillHoles:!1},n);for(var s=[],r=!0,a=0;a<e.length;a+=2)void 0===t.getMultiValue(i[a/2].value)?n.fillHoles||(r=!0):(n.increasingX&&a>=2&&e[a]<=e[a-2]&&(r=!0),r&&(s.push({pathCoordinates:[],valueData:[]}),r=!1),s[s.length-1].pathCoordinates.push(e[a],e[a+1]),s[s.length-1].valueData.push(i[a/2]));return s}}(this||global,e),function(e,t){"use strict";t.Interpolation={},t.Interpolation.none=function(e){return e=t.extend({},{fillHoles:!1},e),function(i,n){for(var s=new t.Svg.Path,r=!0,a=0;a<i.length;a+=2){var o=i[a],l=i[a+1],h=n[a/2];void 0!==t.getMultiValue(h.value)?(r?s.move(o,l,!1,h):s.line(o,l,!1,h),r=!1):e.fillHoles||(r=!0)}return s}},t.Interpolation.simple=function(e){e=t.extend({},{divisor:2,fillHoles:!1},e);var i=1/Math.max(1,e.divisor);return function(n,s){for(var r,a,o,l=new t.Svg.Path,h=0;h<n.length;h+=2){var c=n[h],u=n[h+1],d=(c-r)*i,p=s[h/2];void 0!==p.value?(void 0===o?l.move(c,u,!1,p):l.curve(r+d,a,c-d,u,c,u,!1,p),r=c,a=u,o=p):e.fillHoles||(r=c=o=void 0)}return l}},t.Interpolation.cardinal=function(e){e=t.extend({},{tension:1,fillHoles:!1},e);var i=Math.min(1,Math.max(0,e.tension)),n=1-i;return function s(r,a){var o=t.splitIntoSegments(r,a,{fillHoles:e.fillHoles});if(o.length){if(o.length>1){var l=[];return o.forEach(function(e){l.push(s(e.pathCoordinates,e.valueData))}),t.Svg.Path.join(l)}if(r=o[0].pathCoordinates,a=o[0].valueData,r.length<=4)return t.Interpolation.none()(r,a);for(var h=(new t.Svg.Path).move(r[0],r[1],!1,a[0]),c=0,u=r.length;u-2>c;c+=2){var d=[{x:+r[c-2],y:+r[c-1]},{x:+r[c],y:+r[c+1]},{x:+r[c+2],y:+r[c+3]},{x:+r[c+4],y:+r[c+5]}];u-4===c?d[3]=d[2]:c||(d[0]={x:+r[c],y:+r[c+1]}),h.curve(i*(-d[0].x+6*d[1].x+d[2].x)/6+n*d[2].x,i*(-d[0].y+6*d[1].y+d[2].y)/6+n*d[2].y,i*(d[1].x+6*d[2].x-d[3].x)/6+n*d[2].x,i*(d[1].y+6*d[2].y-d[3].y)/6+n*d[2].y,d[2].x,d[2].y,!1,a[(c+2)/2])}return h}return t.Interpolation.none()([])}},t.Interpolation.monotoneCubic=function(e){return e=t.extend({},{fillHoles:!1},e),function i(n,s){var r=t.splitIntoSegments(n,s,{fillHoles:e.fillHoles,increasingX:!0});if(r.length){if(r.length>1){var a=[];return r.forEach(function(e){a.push(i(e.pathCoordinates,e.valueData))}),t.Svg.Path.join(a)}if(n=r[0].pathCoordinates,s=r[0].valueData,n.length<=4)return t.Interpolation.none()(n,s);var o,l,h=[],c=[],u=n.length/2,d=[],p=[],f=[],m=[];for(o=0;o<u;o++)h[o]=n[2*o],c[o]=n[2*o+1];for(o=0;o<u-1;o++)f[o]=c[o+1]-c[o],m[o]=h[o+1]-h[o],p[o]=f[o]/m[o];for(d[0]=p[0],d[u-1]=p[u-2],o=1;o<u-1;o++)0===p[o]||0===p[o-1]||p[o-1]>0!=p[o]>0?d[o]=0:(d[o]=3*(m[o-1]+m[o])/((2*m[o]+m[o-1])/p[o-1]+(m[o]+2*m[o-1])/p[o]),isFinite(d[o])||(d[o]=0));for(l=(new t.Svg.Path).move(h[0],c[0],!1,s[0]),o=0;o<u-1;o++)l.curve(h[o]+m[o]/3,c[o]+d[o]*m[o]/3,h[o+1]-m[o]/3,c[o+1]-d[o+1]*m[o]/3,h[o+1],c[o+1],!1,s[o+1]);return l}return t.Interpolation.none()([])}},t.Interpolation.step=function(e){return e=t.extend({},{postpone:!0,fillHoles:!1},e),function(i,n){for(var s,r,a,o=new t.Svg.Path,l=0;l<i.length;l+=2){var h=i[l],c=i[l+1],u=n[l/2];void 0!==u.value?(void 0===a?o.move(h,c,!1,u):(e.postpone?o.line(h,r,!1,a):o.line(s,c,!1,u),o.line(h,c,!1,u)),s=h,r=c,a=u):e.fillHoles||(s=r=a=void 0)}return o}}}(this||global,e),function(e,t){"use strict";t.EventEmitter=function(){var e=[];return{addEventHandler:function(t,i){e[t]=e[t]||[],e[t].push(i)},removeEventHandler:function(t,i){e[t]&&(i?(e[t].splice(e[t].indexOf(i),1),0===e[t].length&&delete e[t]):delete e[t])},emit:function(t,i){e[t]&&e[t].forEach(function(e){e(i)}),e["*"]&&e["*"].forEach(function(e){e(t,i)})}}}}(this||global,e),function(e,t){"use strict";t.Class={extend:function(e,i){var n=i||this.prototype||t.Class,s=Object.create(n);t.Class.cloneDefinitions(s,e);var r=function(){var e,i=s.constructor||function(){};return e=this===t?Object.create(s):this,i.apply(e,Array.prototype.slice.call(arguments,0)),e};return r.prototype=s,r.super=n,r.extend=this.extend,r},cloneDefinitions:function(){var e=function(e){var t=[];if(e.length)for(var i=0;i<e.length;i++)t.push(e[i]);return t}(arguments),t=e[0];return e.splice(1,e.length-1).forEach(function(e){Object.getOwnPropertyNames(e).forEach(function(i){delete t[i],Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}),t}}}(this||global,e),function(e,t){"use strict";var i=e.window;t.Base=t.Class.extend({constructor:function(e,n,s,r,a){this.container=t.querySelector(e),this.data=n||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=s,this.options=r,this.responsiveOptions=a,this.eventEmitter=t.EventEmitter(),this.supportsForeignObject=t.Svg.isSupported("Extensibility"),this.supportsAnimations=t.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(function(){i.addEventListener("resize",this.resizeListener),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(e,i,n){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),i&&(this.options=t.extend({},n?this.options:this.defaultOptions,i),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?i.clearTimeout(this.initializeTimeoutId):(i.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(e,t){return this.eventEmitter.addEventHandler(e,t),this},off:function(e,t){return this.eventEmitter.removeEventHandler(e,t),this},version:t.version,supportsForeignObject:!1})}(this||global,e),function(e,t){"use strict";var i=e.document;t.Svg=t.Class.extend({constructor:function(e,n,s,r,a){e instanceof Element?this._node=e:(this._node=i.createElementNS(t.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":t.namespaces.ct})),n&&this.attr(n),s&&this.addClass(s),r&&(a&&r._node.firstChild?r._node.insertBefore(this._node,r._node.firstChild):r._node.appendChild(this._node))},attr:function(e,i){return"string"==typeof e?i?this._node.getAttributeNS(i,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(i){if(void 0!==e[i])if(-1!==i.indexOf(":")){var n=i.split(":");this._node.setAttributeNS(t.namespaces[n[0]],i,e[i])}else if(this._node)try{"rect"===this._node.nodeName&&"height"===i&&e[i]<0||this._node&&this._node.setAttribute(i,e[i])}catch(e){}}.bind(this)),this)},elem:function(e,i,n,s){return new t.Svg(e,i,n,this,s)},parent:function(){return this._node.parentNode instanceof SVGElement?new t.Svg(this._node.parentNode):null},root:function(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new t.Svg(e)},querySelector:function(e){var i=this._node.querySelector(e);return i?new t.Svg(i):null},querySelectorAll:function(e){var i=this._node.querySelectorAll(e);return i.length?new t.Svg.List(i):null},getNode:function(){return this._node},foreignObject:function(e,n,s,r){if("string"==typeof e){var a=i.createElement("div");a.innerHTML=e,e=a.firstChild}e.setAttribute("xmlns",t.namespaces.xmlns);var o=this.elem("foreignObject",n,s,r);return o._node.appendChild(e),o},text:function(e){return this._node.appendChild(i.createTextNode(e)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(e){return this._node.parentNode.replaceChild(e._node,this._node),e},append:function(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter(function(e,t,i){return i.indexOf(e)===t}).join(" ")),this},removeClass:function(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(e){return-1===t.indexOf(e)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(e,i,n){return void 0===i&&(i=!0),Object.keys(e).forEach(function(s){function r(e,i){var r,a,o,l={};e.easing&&(o=e.easing instanceof Array?e.easing:t.Svg.Easing[e.easing],delete e.easing),e.begin=t.ensureUnit(e.begin,"ms"),e.dur=t.ensureUnit(e.dur,"ms"),o&&(e.calcMode="spline",e.keySplines=o.join(" "),e.keyTimes="0;1"),i&&(e.fill="freeze",l[s]=e.from,this.attr(l),a=t.quantity(e.begin||0).value,e.begin="indefinite"),r=this.elem("animate",t.extend({attributeName:s},e)),i&&setTimeout(function(){try{r._node.beginElement()}catch(t){l[s]=e.to,this.attr(l),r.remove()}}.bind(this),a),n&&r._node.addEventListener("beginEvent",function(){n.emit("animationBegin",{element:this,animate:r._node,params:e})}.bind(this)),r._node.addEventListener("endEvent",function(){n&&n.emit("animationEnd",{element:this,animate:r._node,params:e}),i&&(l[s]=e.to,this.attr(l),r.remove())}.bind(this))}e[s]instanceof Array?e[s].forEach(function(e){r.bind(this)(e,!1)}.bind(this)):r.bind(this)(e[s],i)}.bind(this)),this}}),t.Svg.isSupported=function(e){return i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};t.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},t.Svg.List=t.Class.extend({constructor:function(e){var i=this;this.svgElements=[];for(var n=0;n<e.length;n++)this.svgElements.push(new t.Svg(e[n]));Object.keys(t.Svg.prototype).filter(function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)}).forEach(function(e){i[e]=function(){var n=Array.prototype.slice.call(arguments,0);return i.svgElements.forEach(function(i){t.Svg.prototype[e].apply(i,n)}),i}})}})}(this||global,e),function(e,t){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},n={accuracy:3};function s(e,i,n,s,r,a){var o=t.extend({command:r?e.toLowerCase():e.toUpperCase()},i,a?{data:a}:{});n.splice(s,0,o)}function r(e,t){e.forEach(function(n,s){i[n.command.toLowerCase()].forEach(function(i,r){t(n,i,s,r,e)})})}t.Svg.Path=t.Class.extend({constructor:function(e,i){this.pathElements=[],this.pos=0,this.close=e,this.options=t.extend({},n,i)},position:function(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos},remove:function(e){return this.pathElements.splice(this.pos,e),this},move:function(e,t,i,n){return s("M",{x:+e,y:+t},this.pathElements,this.pos++,i,n),this},line:function(e,t,i,n){return s("L",{x:+e,y:+t},this.pathElements,this.pos++,i,n),this},curve:function(e,t,i,n,r,a,o,l){return s("C",{x1:+e,y1:+t,x2:+i,y2:+n,x:+r,y:+a},this.pathElements,this.pos++,o,l),this},arc:function(e,t,i,n,r,a,o,l,h){return s("A",{rx:+e,ry:+t,xAr:+i,lAf:+n,sf:+r,x:+a,y:+o},this.pathElements,this.pos++,l,h),this},scale:function(e,t){return r(this.pathElements,function(i,n){i[n]*="x"===n[0]?e:t}),this},translate:function(e,t){return r(this.pathElements,function(i,n){i[n]+="x"===n[0]?e:t}),this},transform:function(e){return r(this.pathElements,function(t,i,n,s,r){var a=e(t,i,n,s,r);(a||0===a)&&(t[i]=a)}),this},parse:function(e){var n=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e},[]);"Z"===n[n.length-1][0].toUpperCase()&&n.pop();var s=n.map(function(e){var n=e.shift(),s=i[n.toLowerCase()];return t.extend({command:n},s.reduce(function(t,i,n){return t[i]=+e[n],t},{}))}),r=[this.pos,0];return Array.prototype.push.apply(r,s),Array.prototype.splice.apply(this.pathElements,r),this.pos+=s.length,this},stringify:function(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,n){var s=i[n.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}.bind(this));return t+n.command+s.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(e){var i=new t.Svg.Path(e||this.close);return i.pos=this.pos,i.pathElements=this.pathElements.slice().map(function(e){return t.extend({},e)}),i.options=t.extend({},this.options),i},splitByCommand:function(e){var i=[new t.Svg.Path];return this.pathElements.forEach(function(n){n.command===e.toUpperCase()&&0!==i[i.length-1].pathElements.length&&i.push(new t.Svg.Path),i[i.length-1].pathElements.push(n)}),i}}),t.Svg.Path.elementDescriptions=i,t.Svg.Path.join=function(e,i,n){for(var s=new t.Svg.Path(i,n),r=0;r<e.length;r++)for(var a=e[r],o=0;o<a.pathElements.length;o++)s.pathElements.push(a.pathElements[o]);return s}}(this||global,e),function(e,t){"use strict";e.window,e.document;var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};t.Axis=t.Class.extend({constructor:function(e,t,n,s){this.units=e,this.counterUnits=e===i.x?i.y:i.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=s},createGridAndLabels:function(e,i,n,s,r){var a=s["axis"+this.units.pos.toUpperCase()],o=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(a.labelInterpolationFnc);o.forEach(function(h,c){var u,d={x:0,y:0};u=o[c+1]?o[c+1]-h:Math.max(this.axisLength-h,30),t.isFalseyButZero(l[c])&&""!==l[c]||("x"===this.units.pos?(h=this.chartRect.x1+h,d.x=s.axisX.labelOffset.x,"start"===s.axisX.position?d.y=this.chartRect.padding.top+s.axisX.labelOffset.y+(n?5:20):d.y=this.chartRect.y1+s.axisX.labelOffset.y+(n?5:20)):(h=this.chartRect.y1-h,d.y=s.axisY.labelOffset.y-(n?u:0),"start"===s.axisY.position?d.x=n?this.chartRect.padding.left+s.axisY.labelOffset.x:this.chartRect.x1-10:d.x=this.chartRect.x2+s.axisY.labelOffset.x+10),a.showGrid&&t.createGrid(h,c,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[s.classNames.grid,s.classNames[this.units.dir]],r),a.showLabel&&t.createLabel(h,u,c,l,this,a.offset,d,i,[s.classNames.label,s.classNames[this.units.dir],"start"===a.position?s.classNames[a.position]:s.classNames.end],n,r))}.bind(this))},projectValue:function(e,t,i){throw new Error("Base axis can't be instantiated!")}}),t.Axis.units=i}(this||global,e),function(e,t){"use strict";e.window,e.document;t.AutoScaleAxis=t.Axis.extend({constructor:function(e,i,n,s){var r=s.highLow||t.getHighLow(i,s,e.pos);this.bounds=t.getBounds(n[e.rectEnd]-n[e.rectStart],r,s.scaleMinSpace||20,s.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},t.AutoScaleAxis.super.constructor.call(this,e,n,this.bounds.values,s)},projectValue:function(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}})}(this||global,e),function(e,t){"use strict";e.window,e.document;t.FixedScaleAxis=t.Axis.extend({constructor:function(e,i,n,s){var r=s.highLow||t.getHighLow(i,s,e.pos);this.divisor=s.divisor||1,this.ticks=s.ticks||t.times(this.divisor).map(function(e,t){return r.low+(r.high-r.low)/this.divisor*t}.bind(this)),this.ticks.sort(function(e,t){return e-t}),this.range={min:r.low,max:r.high},t.FixedScaleAxis.super.constructor.call(this,e,n,this.ticks,s),this.stepLength=this.axisLength/this.divisor},projectValue:function(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(this||global,e),function(e,t){"use strict";e.window,e.document;t.StepAxis=t.Axis.extend({constructor:function(e,i,n,s){t.StepAxis.super.constructor.call(this,e,n,s.ticks,s);var r=Math.max(1,s.ticks.length-(s.stretch?1:0));this.stepLength=this.axisLength/r},projectValue:function(e,t){return this.stepLength*t}})}(this||global,e),function(e,t){"use strict";e.window,e.document;var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};t.Line=t.Base.extend({constructor:function(e,n,s,r){t.Line.super.constructor.call(this,e,n,i,t.extend({},i,s),r)},createChart:function(e){var n=t.normalizeData(this.data,e.reverseData,!0);this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var s,r,a=this.svg.elem("g").addClass(e.classNames.gridGroup),o=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),h=t.createChartRect(this.svg,e,i.padding);s=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,n.normalized.series,h,t.extend({},e.axisX,{ticks:n.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(t,t.Axis.units.x,n.normalized.series,h,e.axisX),r=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,n.normalized.series,h,t.extend({},e.axisY,{high:t.isNumeric(e.high)?e.high:e.axisY.high,low:t.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(t,t.Axis.units.y,n.normalized.series,h,e.axisY),s.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),r.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(a,h,e.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach(function(i,a){var l=o.elem("g");l.attr({"ct:series-name":i.name,"ct:meta":t.serialize(i.meta)}),l.addClass([e.classNames.series,i.className||e.classNames.series+"-"+t.alphaNumerate(a)].join(" "));var c=[],u=[];n.normalized.series[a].forEach(function(e,o){var l={x:h.x1+s.projectValue(e,o,n.normalized.series[a]),y:h.y1-r.projectValue(e,o,n.normalized.series[a])};c.push(l.x,l.y),u.push({value:e,valueIndex:o,meta:t.getMetaData(i,o)})}.bind(this));var d={lineSmooth:t.getSeriesOption(i,e,"lineSmooth"),showPoint:t.getSeriesOption(i,e,"showPoint"),showLine:t.getSeriesOption(i,e,"showLine"),showArea:t.getSeriesOption(i,e,"showArea"),areaBase:t.getSeriesOption(i,e,"areaBase")},p=("function"==typeof d.lineSmooth?d.lineSmooth:d.lineSmooth?t.Interpolation.monotoneCubic():t.Interpolation.none())(c,u);if(d.showPoint&&p.pathElements.forEach(function(n){var o=l.elem("line",{x1:n.x,y1:n.y,x2:n.x+.01,y2:n.y},e.classNames.point).attr({"ct:value":[n.data.value.x,n.data.value.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(n.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:n.data.value,index:n.data.valueIndex,meta:n.data.meta,series:i,seriesIndex:a,axisX:s,axisY:r,group:l,element:o,x:n.x,y:n.y})}.bind(this)),d.showLine){var f=l.elem("path",{d:p.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:n.normalized.series[a],path:p.clone(),chartRect:h,index:a,series:i,seriesIndex:a,seriesMeta:i.meta,axisX:s,axisY:r,group:l,element:f})}if(d.showArea&&r.range){var m=Math.max(Math.min(d.areaBase,r.range.max),r.range.min),g=h.y1-r.projectValue(m);p.splitByCommand("M").filter(function(e){return e.pathElements.length>1}).map(function(e){var t=e.pathElements[0],i=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(i.x,g)}).forEach(function(t){var o=l.elem("path",{d:t.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:n.normalized.series[a],path:t.clone(),series:i,seriesIndex:a,axisX:s,axisY:r,chartRect:h,index:a,group:l,element:o})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:r.bounds,chartRect:h,axisX:s,axisY:r,svg:this.svg,options:e})}})}(this||global,e),function(e,t){"use strict";e.window,e.document;var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};t.Bar=t.Base.extend({constructor:function(e,n,s,r){t.Bar.super.constructor.call(this,e,n,i,t.extend({},i,s),r)},createChart:function(e){var n,s;e.distributeSeries?(n=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=n.normalized.series.map(function(e){return[e]}):n=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var r=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),o=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==n.normalized.series.length){var l=t.serialMap(n.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(e){return e}).reduce(function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}},{x:0,y:0})});s=t.getHighLow([l],e,e.horizontalBars?"x":"y")}else s=t.getHighLow(n.normalized.series,e,e.horizontalBars?"x":"y");s.high=+e.high||(0===e.high?0:s.high),s.low=+e.low||(0===e.low?0:s.low);var h,c,u,d,p,f=t.createChartRect(this.svg,e,i.padding);c=e.distributeSeries&&e.stackBars?n.normalized.labels.slice(0,1):n.normalized.labels,e.horizontalBars?(h=d=void 0===e.axisX.type?new t.AutoScaleAxis(t.Axis.units.x,n.normalized.series,f,t.extend({},e.axisX,{highLow:s,referenceValue:0})):e.axisX.type.call(t,t.Axis.units.x,n.normalized.series,f,t.extend({},e.axisX,{highLow:s,referenceValue:0})),u=p=void 0===e.axisY.type?new t.StepAxis(t.Axis.units.y,n.normalized.series,f,{ticks:c}):e.axisY.type.call(t,t.Axis.units.y,n.normalized.series,f,e.axisY)):(u=d=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,n.normalized.series,f,{ticks:c}):e.axisX.type.call(t,t.Axis.units.x,n.normalized.series,f,e.axisX),h=p=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,n.normalized.series,f,t.extend({},e.axisY,{highLow:s,referenceValue:0})):e.axisY.type.call(t,t.Axis.units.y,n.normalized.series,f,t.extend({},e.axisY,{highLow:s,referenceValue:0})));var m=e.horizontalBars?f.x1+h.projectValue(0):f.y1-h.projectValue(0),g=[];u.createGridAndLabels(r,o,this.supportsForeignObject,e,this.eventEmitter),h.createGridAndLabels(r,o,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(r,f,e.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach(function(i,s){var r,o,l=s-(n.raw.series.length-1)/2;r=e.distributeSeries&&!e.stackBars?u.axisLength/n.normalized.series.length/2:e.distributeSeries&&e.stackBars?u.axisLength/2:u.axisLength/n.normalized.series[s].length/2,(o=a.elem("g")).attr({"ct:series-name":i.name,"ct:meta":t.serialize(i.meta)}),o.addClass([e.classNames.series,i.className||e.classNames.series+"-"+t.alphaNumerate(s)].join(" ")),n.normalized.series[s].forEach(function(a,c){var x,v,y,b;if(b=e.distributeSeries&&!e.stackBars?s:e.distributeSeries&&e.stackBars?0:c,x=e.horizontalBars?{x:f.x1+h.projectValue(a&&a.x?a.x:0,c,n.normalized.series[s]),y:f.y1-u.projectValue(a&&a.y?a.y:0,b,n.normalized.series[s])}:{x:f.x1+u.projectValue(a&&a.x?a.x:0,b,n.normalized.series[s]),y:f.y1-h.projectValue(a&&a.y?a.y:0,c,n.normalized.series[s])},u instanceof t.StepAxis&&(u.options.stretch||(x[u.units.pos]+=r*(e.horizontalBars?-1:1)),x[u.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),y=g[c]||m,g[c]=y-(m-x[u.counterUnits.pos]),void 0!==a){var w={};w[u.units.pos+"1"]=x[u.units.pos],w[u.units.pos+"2"]=x[u.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[u.counterUnits.pos+"1"]=m,w[u.counterUnits.pos+"2"]=x[u.counterUnits.pos]):(w[u.counterUnits.pos+"1"]=y,w[u.counterUnits.pos+"2"]=g[c]),w.x1=Math.min(Math.max(w.x1,f.x1),f.x2),w.x2=Math.min(Math.max(w.x2,f.x1),f.x2),w.y1=Math.min(Math.max(w.y1,f.y2),f.y1),w.y2=Math.min(Math.max(w.y2,f.y2),f.y1);var E=t.getMetaData(i,c);v=o.elem("line",w,e.classNames.bar).attr({"ct:value":[a.x,a.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(E)}),this.eventEmitter.emit("draw",t.extend({type:"bar",value:a,index:c,meta:E,series:i,seriesIndex:s,axisX:d,axisY:p,chartRect:f,group:o,element:v},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:h.bounds,chartRect:f,axisX:d,axisY:p,svg:this.svg,options:e})}})}(this||global,e),function(e,t){"use strict";e.window,e.document;var i={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:t.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function n(e,t,i){var n=t.x>e.x;return n&&"explode"===i||!n&&"implode"===i?"start":n&&"implode"===i||!n&&"explode"===i?"end":"middle"}t.Pie=t.Base.extend({constructor:function(e,n,s,r){t.Pie.super.constructor.call(this,e,n,i,t.extend({},i,s),r)},createChart:function(e){var s,r,a,o,l,h=t.normalizeData(this.data),c=[],u=e.startAngle;this.svg=t.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),r=t.createChartRect(this.svg,e,i.padding),a=Math.min(r.width()/2,r.height()/2),l=e.total||h.normalized.series.reduce(function(e,t){return e+t},0);var d=t.quantity(e.donutWidth);"%"===d.unit&&(d.value*=a/100),a-=e.donut&&!e.donutSolid?d.value/2:0,o="outside"===e.labelPosition||e.donut&&!e.donutSolid?a:"center"===e.labelPosition?0:e.donutSolid?a-d.value/2:a/2,o+=e.labelOffset;var p={x:r.x1+r.width()/2,y:r.y2+r.height()/2},f=1===h.raw.series.filter(function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e}).length;h.raw.series.forEach(function(e,t){c[t]=this.svg.elem("g",null,null)}.bind(this)),e.showLabel&&(s=this.svg.elem("g",null,null)),h.raw.series.forEach(function(i,r){if(0!==h.normalized.series[r]||!e.ignoreEmptyValues){c[r].attr({"ct:series-name":i.name}),c[r].addClass([e.classNames.series,i.className||e.classNames.series+"-"+t.alphaNumerate(r)].join(" "));var m=l>0?u+h.normalized.series[r]/l*360:0,g=Math.max(0,u-(0===r||f?0:.2));m-g>=359.99&&(m=g+359.99);var x,v,y,b=t.polarToCartesian(p.x,p.y,a,g),w=t.polarToCartesian(p.x,p.y,a,m),E=new t.Svg.Path(!e.donut||e.donutSolid).move(w.x,w.y).arc(a,a,0,m-u>180,0,b.x,b.y);e.donut?e.donutSolid&&(y=a-d.value,x=t.polarToCartesian(p.x,p.y,y,u-(0===r||f?0:.2)),v=t.polarToCartesian(p.x,p.y,y,m),E.line(x.x,x.y),E.arc(y,y,0,m-u>180,1,v.x,v.y)):E.line(p.x,p.y);var S=e.classNames.slicePie;e.donut&&(S=e.classNames.sliceDonut,e.donutSolid&&(S=e.classNames.sliceDonutSolid));var A=c[r].elem("path",{d:E.stringify()},S);if(A.attr({"ct:value":h.normalized.series[r],"ct:meta":t.serialize(i.meta)}),e.donut&&!e.donutSolid&&(A._node.style.strokeWidth=d.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:h.normalized.series[r],totalDataSum:l,index:r,meta:i.meta,series:i,group:c[r],element:A,path:E.clone(),center:p,radius:a,startAngle:u,endAngle:m}),e.showLabel){var C,z;C=1===h.raw.series.length?{x:p.x,y:p.y}:t.polarToCartesian(p.x,p.y,o,u+(m-u)/2),z=h.normalized.labels&&!t.isFalseyButZero(h.normalized.labels[r])?h.normalized.labels[r]:h.normalized.series[r];var M=e.labelInterpolationFnc(z,r);if(M||0===M){var O=s.elem("text",{dx:C.x,dy:C.y,"text-anchor":n(p,C,e.labelDirection)},e.classNames.label).text(""+M);this.eventEmitter.emit("draw",{type:"label",index:r,group:s,element:O,text:""+M,x:C.x,y:C.y})}}u=m}}.bind(this)),this.eventEmitter.emit("created",{chartRect:r,svg:this.svg,options:e})},determineAnchorPosition:n})}(this||global,e),e}),function(e,t){"function"==typeof define&&define.amd?define(["chartist"],function(i){return e.returnExportsGlobal=t(i)}):"object"==typeof exports?module.exports=t(require("chartist")):e["Chartist.plugins.ctAxisTitle"]=t(Chartist)}(this,function(e){return function(e,t,i){"use strict";var n={axisTitle:"",axisClass:"ct-axis-title",offset:{x:0,y:0},textAnchor:"middle",flipTitle:!1},s={axisX:n,axisY:n},r=function(e){return e instanceof Function?e():e},a=function(e){return e instanceof Function?e():e};i.plugins=i.plugins||{},i.plugins.ctAxisTitle=function(e){return e=i.extend({},s,e),function(t){t.on("created",function(t){if(!e.axisX.axisTitle&&!e.axisY.axisTitle)throw new Error("ctAxisTitle plugin - You must provide at least one axis title");if(!t.axisX&&!t.axisY)throw new Error("ctAxisTitle plugin can only be used on charts that have at least one axis");var n,s,o,l=i.normalizePadding(t.options.chartPadding);if(e.axisX.axisTitle&&t.axisX&&(n=t.axisX.axisLength/2+t.options.axisY.offset+l.left,s=l.top,"end"===t.options.axisY.position&&(n-=t.options.axisY.offset),"end"===t.options.axisX.position&&(s+=t.axisY.axisLength),(o=new i.Svg("text")).addClass(a(e.axisX.axisClass)),o.text(r(e.axisX.axisTitle)),o.attr({x:n+e.axisX.offset.x,y:s+e.axisX.offset.y,"text-anchor":e.axisX.textAnchor}),t.svg.append(o,!0)),e.axisY.axisTitle&&t.axisY){n=0,s=t.axisY.axisLength/2+l.top,"start"===t.options.axisX.position&&(s+=t.options.axisX.offset),"end"===t.options.axisY.position&&(n=t.axisX.axisLength);var h="rotate("+(e.axisY.flipTitle?-90:90)+", "+n+", "+s+")";(o=new i.Svg("text")).addClass(a(e.axisY.axisClass)),o.text(r(e.axisY.axisTitle)),o.attr({x:n+e.axisY.offset.x,y:s+e.axisY.offset.y,transform:h,"text-anchor":e.axisY.textAnchor}),t.svg.append(o,!0)}})}}}(window,document,e),e.plugins.ctAxisTitle}),
/* chartist-plugin-threshold 0.0.2
 * Copyright © 2018 Gion Kunz
 * Free to use under the WTFPL license.
 * http://www.wtfpl.net/
 */
function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["chartist"],function(i){return e["Chartist.plugins.ctThreshold"]=t(i)}):"object"==typeof module&&module.exports?module.exports=t(require("chartist")):e["Chartist.plugins.ctThreshold"]=t(e.Chartist)}(this,function(e){return function(e,t,i){"use strict";var n={threshold:0,classNames:{aboveThreshold:"ct-threshold-above",belowThreshold:"ct-threshold-below"},maskNames:{aboveThreshold:"ct-threshold-mask-above",belowThreshold:"ct-threshold-mask-below"}};i.plugins=i.plugins||{},i.plugins.ctThreshold=function(e){return-1===(e=i.extend({},n,e)).threshold?function(){}:function(t){(t instanceof i.Line||t instanceof i.Bar)&&(t.on("draw",function(t){"point"===t.type?t.element.addClass(t.value.y>=e.threshold?e.classNames.aboveThreshold:e.classNames.belowThreshold):"line"!==t.type&&"bar"!==t.type&&"area"!==t.type||(t.element.parent().elem(t.element._node.cloneNode(!0)).attr({mask:"url(#"+e.maskNames.aboveThreshold+")"}).addClass(e.classNames.aboveThreshold),t.element.attr({mask:"url(#"+e.maskNames.belowThreshold+")"}).addClass(e.classNames.belowThreshold))}),t.on("created",function(t){!function(e,t){var i=e.svg.querySelector("defs")||e.svg.elem("defs"),n=e.chartRect.height()-e.axisY.projectValue(t.threshold)+e.chartRect.y2,s=e.svg.width(),r=e.svg.height();i.elem("mask",{x:0,y:0,width:s,height:r,id:t.maskNames.aboveThreshold}).elem("rect",{x:0,y:0,width:s,height:n,fill:"white"}),i.elem("mask",{x:0,y:0,width:s,height:r,id:t.maskNames.belowThreshold}).elem("rect",{x:0,y:n,width:s,height:r-n,fill:"white"})}(t,e)}))}}}(window,document,e),e.plugins.ctThreshold});/*!
 * $.fn.scrollIntoView - similar to the default browser scrollIntoView
 * The default browser behavior always places the element at the top or bottom of its container.
 * This override is smart enough to not scroll if the element is already visible.
 *
 * Copyright 2011 Arwid Bancewicz
 * Licensed under the MIT license
 * http://www.opensource.org/licenses/mit-license.php
 *
 * @date 8 Jan 2013
 * @author Arwid Bancewicz http://arwid.ca
 * @version 0.3
 */
!function(o){o.fn.scrollIntoView=function(t,e,n){var l=o.extend({},o.fn.scrollIntoView.defaults);"object"==o.type(t)?o.extend(l,t):"number"==o.type(t)?o.extend(l,{duration:t,easing:e,complete:n}):0==t&&(l.smooth=!1);var s=1/0,i=0;1==this.length?null==(s=this.get(0).offsetTop)||(i=s+this.get(0).offsetHeight):this.each(function(o,t){t.offsetTop<s?s=t.offsetTop:t.offsetTop+t.offsetHeight>i&&(i=t.offsetTop+t.offsetHeight)}),i-=s;for(var r=this.commonAncestor().get(0),c=o(window).height();r;){var f=r.scrollTop,a=r.clientHeight;if(a>c&&(a=c),0==a&&"BODY"==r.tagName&&(a=c),r.scrollTop!=(null==(r.scrollTop+=1)||r.scrollTop)&&null!=(r.scrollTop-=1)||r.scrollTop!=(null==(r.scrollTop-=1)||r.scrollTop)&&null!=(r.scrollTop+=1))return void p(r,s<=f?s:s+i>f+a?s+i-a:void 0);r=r.parentNode}function p(t,e){void 0===e?o.isFunction(l.complete)&&l.complete.call(t):l.smooth?o(t).stop().animate({scrollTop:e},l):(t.scrollTop=e,o.isFunction(l.complete)&&l.complete.call(t))}return this},o.fn.scrollIntoView.defaults={smooth:!0,duration:null,easing:o.easing&&o.easing.easeOutExpo?"easeOutExpo":null,complete:o.noop(),step:null,specialEasing:{}},o.fn.isOutOfView=function(o){var t=!0;return this.each(function(){var e=this.parentNode,n=e.scrollTop,l=e.clientHeight,s=this.offsetTop,i=this.offsetHeight;(o?s>n+l:s+i>n+l)||(o?s+i<n:s<n)||(t=!1)}),t},o.fn.commonAncestor=function(){var t=[],e=1/0;o(this).each(function(){var n=o(this).parents();t.push(n),e=Math.min(e,n.length)});for(var n=0;n<t.length;n++)t[n]=t[n].slice(t[n].length-e);for(n=0;n<t[0].length;n++){var l=!0;for(var s in t)if(t[s][n]!=t[0][n]){l=!1;break}if(l)return o(t[0][n])}return o([])}}(jQuery);/*!
 * bootbox.js [v4.4.0]
 *
 * http://bootboxjs.com/license.txt
 */
!function(t,o){"use strict";"function"==typeof define&&define.amd?define(["jquery"],o):"object"==typeof exports?module.exports=o(require("jquery")):t.bootbox=o(t.jQuery)}(this,function t(o,e){"use strict";var a={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off autocorrect=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' autocorrect='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off autocorrect=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off autocorrect=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off autocorrect=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' autocorrect='off' type='password' />"}},n={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},r={};function c(t){var o=f[n.locale];return o?o[t]:f.en[t]}function l(t,e,a){t.stopPropagation(),t.preventDefault(),o.isFunction(a)&&!1===a.call(e,t)||e.modal("hide")}function i(t,e){var a=0;o.each(t,function(t,o){e(t,o,a++)})}function s(t,e,a){return o.extend(!0,{},t,function(t,o){var e=t.length,a={};if(e<1||e>2)throw new Error("Invalid argument length");return 2===e||"string"==typeof t[0]?(a[o[0]]=t[0],a[o[1]]=t[1]):a=t[0],a}(e,a))}function u(t,o,e,a){return b(s({className:"bootbox-"+t,buttons:p.apply(null,o)},a,e),o)}function p(){for(var t={},o=0,e=arguments.length;o<e;o++){var a=arguments[o],n=a.toLowerCase(),r=a.toUpperCase();t[n]={label:c(r)}}return t}function b(t,o){var a={};return i(o,function(t,o){a[o]=!0}),i(t.buttons,function(t){if(a[t]===e)throw new Error("button key "+t+" is not allowed (options are "+o.join("\n")+")")}),t}r.alert=function(){var t;if((t=u("alert",["ok"],["message","callback"],arguments)).callback&&!o.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return!o.isFunction(t.callback)||t.callback.call(this)},r.dialog(t)},r.confirm=function(){var t;if((t=u("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!o.isFunction(t.callback))throw new Error("confirm requires a callback");return r.dialog(t)},r.prompt=function(){var t,n,c,l,u,f,d;if(l=o(a.form),n={className:"bootbox-prompt",buttons:p("cancel","confirm"),value:"",inputType:"text"},f=(t=b(s(n,arguments,["title","callback"]),["cancel","confirm"])).show===e||t.show,t.message=l,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var e;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":e=u.val();break;case"checkbox":var a=u.find("input:checked");e=[],i(a,function(t,a){e.push(o(a).val())})}return t.callback.call(this,e)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!o.isFunction(t.callback))throw new Error("prompt requires a callback");if(!a.inputs[t.inputType])throw new Error("invalid prompt type");switch(u=o(a.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":u.val(t.value);break;case"select":var m={};if(d=t.inputOptions||[],!o.isArray(d))throw new Error("Please pass an array of input options");if(!d.length)throw new Error("prompt with select requires options");i(d,function(t,a){var n=u;if(a.value===e||a.text===e)throw new Error("given options in wrong format");a.group&&(m[a.group]||(m[a.group]=o("<optgroup/>").attr("label",a.group)),n=m[a.group]),n.append("<option value='"+a.value+"'>"+a.text+"</option>")}),i(m,function(t,o){u.append(o)}),u.val(t.value);break;case"checkbox":var C=o.isArray(t.value)?t.value:[t.value];if(!(d=t.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");if(!d[0].value||!d[0].text)throw new Error("given options in wrong format");u=o("<div/>"),i(d,function(e,n){var r=o(a.inputs[t.inputType]);r.find("input").attr("value",n.value),r.find("label").append(n.text),i(C,function(t,o){o===n.value&&r.find("input").prop("checked",!0)}),u.append(r)})}return t.placeholder&&u.attr("placeholder",t.placeholder),t.pattern&&u.attr("pattern",t.pattern),t.maxlength&&u.attr("maxlength",t.maxlength),l.append(u),l.on("submit",function(t){t.preventDefault(),t.stopPropagation(),c.find(".btn-primary").click()}),(c=r.dialog(t)).off("shown.bs.modal"),c.on("shown.bs.modal",function(){u.focus()}),!0===f&&c.modal("show"),c},r.dialog=function(t){t=function(t){var e,a;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return(t=o.extend({},n,t)).buttons||(t.buttons={}),e=t.buttons,a=function(t){var o,e=0;for(o in t)e++;return e}(e),i(e,function(t,n,r){if(o.isFunction(n)&&(n=e[t]={callback:n}),"object"!==o.type(n))throw new Error("button with key "+t+" must be an object");n.label||(n.label=t),n.className||(n.className=a<=2&&r===a-1?"btn-primary":"btn-default")}),t}(t);var r=o(a.dialog),c=r.find(".modal-dialog"),s=r.find(".modal-body"),u=t.buttons,p="",b={onEscape:t.onEscape};if(o.fn.modal===e)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(i(u,function(t,o){p+="<button data-bb-handler='"+t+"' type='button' class='btn "+o.className+"'>"+o.label+"</button>",b[t]=o.callback}),s.find(".bootbox-body").html(t.message),!0===t.animate&&r.addClass("fade"),t.className&&r.addClass(t.className),"large"===t.size?c.addClass("modal-lg"):"small"===t.size&&c.addClass("modal-sm"),t.title&&s.before(a.header),t.closeButton){var f=o(a.closeButton);t.title?r.find(".modal-header").prepend(f):f.css("margin-top","-10px").prependTo(s)}return t.title&&r.find(".modal-title").html(t.title),p.length&&(s.after(a.footer),r.find(".modal-footer").html(p)),r.on("hidden.bs.modal",function(t){t.target===this&&r.remove()}),r.on("shown.bs.modal",function(){r.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&r.on("click.dismiss.bs.modal",function(t){r.children(".modal-backdrop").length&&(t.currentTarget=r.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&r.trigger("escape.close.bb")}),r.on("escape.close.bb",function(t){b.onEscape&&l(t,r,b.onEscape)}),r.on("click",".modal-footer button",function(t){var e=o(this).data("bb-handler");l(t,r,b[e])}),r.on("click",".bootbox-close-button",function(t){l(t,r,b.onEscape)}),r.on("keyup",function(t){27===t.which&&r.trigger("escape.close.bb")}),o(t.container).append(r),r.modal({backdrop:!!t.backdrop&&"static",keyboard:!1,show:!1}),t.show&&r.modal("show"),r},r.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],o.extend(n,t)},r.hideAll=function(){return o(".bootbox").modal("hide"),r};var f={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return r.addLocale=function(t,e){return o.each(["OK","CANCEL","CONFIRM"],function(t,o){if(!e[o])throw new Error("Please supply a translation for '"+o+"'")}),f[t]={OK:e.OK,CANCEL:e.CANCEL,CONFIRM:e.CONFIRM},r},r.removeLocale=function(t){return delete f[t],r},r.setLocale=function(t){return r.setDefaults("locale",t)},r.init=function(e){return t(e||o)},r});/*!
 * Bootstrap Tags Input [v0.8.0]
 * https://github.com/bootstrap-tagsinput/bootstrap-tagsinput
 * https://github.com/bootstrap-tagsinput/bootstrap-tagsinput/blob/master/LICENSE
 */
!function(t){"use strict";var e={tagClass:function(t){return"label label-info"},itemValue:function(t){return t?t.toString():t},itemText:function(t){return this.itemValue(t)},itemTitle:function(t){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!0,onTagExists:function(t,e){e.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};function i(e,i){this.itemsArray=[],this.$element=t(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=i&&i.itemValue,this.placeholderText=e.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=t('<div class="bootstrap-tagsinput"></div>'),this.$input=t('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(i)}function n(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(t){return t[i]}}}function a(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(){return i}}}i.prototype={constructor:i,add:function(e,i,n){var a=this,r=e;if(e=e.replace(/\[em\]/g,"").replace(/\[\/em\]/g,"").replace(/\[i.*\]/g,"").replace(/\[\/i\]/g,""),!(a.options.maxTags&&a.itemsArray.length>=a.options.maxTags)&&(!1===e||e)){if("string"==typeof e&&a.options.trimValue&&(e=t.trim(e)),"object"==typeof e&&!a.objectItems)throw"Can't add objects when itemValue option is not set";if(!e.toString().match(/^\s*$/)){if(a.isSelect&&!a.multiple&&a.itemsArray.length>0&&a.remove(a.itemsArray[0]),"string"==typeof e&&"INPUT"===this.$element[0].tagName){var s=a.options.delimiterRegex?a.options.delimiterRegex:a.options.delimiter,l=e.split(s);if(l.length>1){for(var u=0;u<l.length;u++)this.add(l[u],!0);return void(i||a.pushVal())}}var p=a.options.itemValue(e),c=a.options.itemText(r),h=a.options.tagClass(e),m=a.options.itemTitle(e),f=t.grep(a.itemsArray,function(t){return a.options.itemValue(t)===p})[0];if(!f||a.options.allowDuplicates){if(!(a.items().toString().length+e.length+1>a.options.maxInputLength)){var d=t.Event("beforeItemAdd",{item:e,cancel:!1,options:n});if(a.$element.trigger(d),!d.cancel){a.itemsArray.push(e);var g=t('<span class="tag '+o(h)+(null!==m?'" title="'+m:"")+'">'+o(c)+'<span data-role="remove"></span></span>');if(g.data("item",e),a.findInputWrapper().before(g),g.after(" "),a.isSelect&&!t('option[value="'+encodeURIComponent(p)+'"]',a.$element)[0]){var v=t("<option selected>"+o(c)+"</option>");v.data("item",e),v.attr("value",p),a.$element.append(v)}i||a.pushVal(),a.options.maxTags!==a.itemsArray.length&&a.items().toString().length!==a.options.maxInputLength||a.$container.addClass("bootstrap-tagsinput-max"),a.$element.trigger(t.Event("itemAdded",{item:e,options:n}))}}}else if(a.options.onTagExists){var y=t(".tag",a.$container).filter(function(){return t(this).data("item")===f});a.options.onTagExists(e,y)}}}},remove:function(e,i,n){var a=this;if(a.objectItems&&(e=(e="object"==typeof e?t.grep(a.itemsArray,function(t){return a.options.itemValue(t)==a.options.itemValue(e)}):t.grep(a.itemsArray,function(t){return a.options.itemValue(t)==e}))[e.length-1]),e){var r=a.recentlyDeleted?[e,a.recentlyDeleted]:e,o=t.Event("beforeItemRemove",{item:r,cancel:!1,options:n});if(a.$element.trigger(o),o.cancel)return;a.recentlyDeleted?t(".tag",a.$container).filter(function(){return t(this).data("item")===e&&t(this).attr("data-reference")===a.recentlyDeleted}).remove():t(".tag",a.$container).filter(function(){return t(this).data("item")===e}).remove(),t("option",a.$element).filter(function(){return t(this).data("item")===e}).remove(),-1!==t.inArray(e,a.itemsArray)&&a.itemsArray.splice(t.inArray(e,a.itemsArray),1)}i||a.pushVal(),a.options.maxTags>a.itemsArray.length&&a.$container.removeClass("bootstrap-tagsinput-max");var s=a.recentlyDeleted?[e,a.recentlyDeleted]:e;a.$element.trigger(t.Event("itemRemoved",{item:s,options:n}))},removeAll:function(){for(t(".tag",this.$container).remove(),t("option",this.$element).remove();this.itemsArray.length>0;)this.itemsArray.pop();this.pushVal()},refresh:function(){var e=this;t(".tag",e.$container).each(function(){var i=t(this),n=i.data("item"),a=e.options.itemValue(n),r=e.options.itemText(n),s=e.options.tagClass(n);(i.attr("class",null),i.addClass("tag "+o(s)),i.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=o(r),e.isSelect)&&t("option",e.$element).filter(function(){return t(this).data("item")===n}).attr("value",a)})},items:function(){return this.itemsArray},pushVal:function(){var e=this,i=t.map(e.items(),function(t){return e.options.itemValue(t).toString()});e.$element.val(i,!0).trigger("change")},build:function(i){var r=this;if(r.options=t.extend({},e,i),r.objectItems&&(r.options.freeInput=!1),n(r.options,"itemValue"),n(r.options,"itemText"),a(r.options,"tagClass"),r.options.typeahead){var o=r.options.typeahead||{};a(o,"source"),r.$input.typeahead(t.extend({},o,{source:function(e,i){function n(t){for(var e=[],n=0;n<t.length;n++){var o=r.options.itemText(t[n]);a[o]=t[n],e.push(o)}i(e)}this.map={};var a=this.map,s=o.source(e);t.isFunction(s.success)?s.success(n):t.isFunction(s.then)?s.then(n):t.when(s).then(n)},updater:function(t){return r.add(this.map[t]),this.map[t]},matcher:function(t){return-1!==t.toLowerCase().indexOf(this.query.trim().toLowerCase())},sorter:function(t){return t.sort()},highlighter:function(t){var e=new RegExp("("+this.query+")","gi");return t.replace(e,"<strong>$1</strong>")}}))}if(r.options.typeaheadjs){var l=null,u={},p=r.options.typeaheadjs;t.isArray(p)?(l=p[0],u=p[1]):u=p,r.$input.typeahead(l,u).on("typeahead:selected",t.proxy(function(t,e){u.valueKey?r.add(e[u.valueKey]):r.add(e),r.$input.typeahead("val","")},r))}r.$container.on("click",t.proxy(function(t){r.$element.attr("disabled")||r.$input.removeAttr("disabled"),r.$input.focus()},r)),r.options.addOnBlur&&r.options.freeInput&&r.$input.on("focusout",t.proxy(function(e){0===t(".typeahead, .twitter-typeahead",r.$container).length&&(r.add(r.$input.val()),r.$input.val(""))},r)),r.$container.on("keydown","input",t.proxy(function(e){var i=t(e.target),n=r.findInputWrapper();if(r.$element.attr("disabled"))r.$input.attr("disabled","disabled");else{switch(e.which){case 8:if(0===s(i[0])){var a=n.prev();a.length&&r.remove(a.data("item"))}break;case 46:if(0===s(i[0])){var o=n.next();o.length&&r.remove(o.data("item"))}break;case 37:var l=n.prev();0===i.val().length&&l[0]&&(l.before(n),i.focus());break;case 39:var u=n.next();0===i.val().length&&u[0]&&(u.after(n),i.focus())}var p=i.val().length;Math.ceil(p/5);i.attr("size",Math.max(this.inputSize,i.val().length))}},r)),r.$container.on("keypress","input",t.proxy(function(e){var i=t(e.target);if(r.$element.attr("disabled"))r.$input.attr("disabled","disabled");else{var n,a,o,s=i.val(),l=r.options.maxChars&&s.length>=r.options.maxChars;r.options.freeInput&&(n=e,a=r.options.confirmKeys,o=!1,t.each(a,function(t,e){if("number"==typeof e&&n.which===e)return o=!0,!1;if(n.which===e.which){var i=!e.hasOwnProperty("altKey")||n.altKey===e.altKey,a=!e.hasOwnProperty("shiftKey")||n.shiftKey===e.shiftKey,r=!e.hasOwnProperty("ctrlKey")||n.ctrlKey===e.ctrlKey;if(i&&a&&r)return o=!0,!1}}),o||l)&&(0!==s.length&&(r.add(l?s.substr(0,r.options.maxChars):s),i.val("")),!1===r.options.cancelConfirmKeysOnEmpty&&e.preventDefault());var u=i.val().length;Math.ceil(u/5);i.attr("size",Math.max(this.inputSize,i.val().length))}},r)),r.$container.on("click","[data-role=remove]",t.proxy(function(e){r.$element.attr("disabled")||(r.recentlyDeleted=t(e.target).closest(".tag").attr("data-reference")||0,r.remove(t(e.target).closest(".tag").data("item")))},r)),r.options.itemValue===e.itemValue&&("INPUT"===r.$element[0].tagName?r.add(r.$element.val()):t("option",r.$element).each(function(){r.add(t(this).attr("value"),!0)}))},destroy:function(){this.$container.off("keypress","input"),this.$container.off("click","[role=remove]"),this.$container.remove(),this.$element.removeData("tagsinput"),this.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],i=this.$container[0];e&&e.parentNode!==i;)e=e.parentNode;return t(e)}},t.fn.tagsinput=function(e,n,a){var r=[];return this.each(function(){var o=t(this).data("tagsinput");if(o)if(e||n){if(void 0!==o[e]){if(3===o[e].length&&void 0!==a)var s=o[e](n,null,a);else s=o[e](n);void 0!==s&&r.push(s)}}else r.push(o);else o=new i(this,e),t(this).data("tagsinput",o),r.push(o),"SELECT"===this.tagName&&t("option",t(this)).attr("selected","selected"),t(this).val(t(this).val())}),"string"==typeof e?r.length>1?r:r[0]:r},t.fn.tagsinput.Constructor=i;var r=t("<div />");function o(t){if(t){var e=r.text(t).html();return e=e.replace(/\[em\]/g,"<em>").replace(/\[\/em\]/g,"</em>").replace(/\[i/g,"<i").replace(/\"\]/g,'">').replace(/\[\/i\]/g,"</i>")}return""}function s(t){var e=0;if(document.selection){t.focus();var i=document.selection.createRange();i.moveStart("character",-t.value.length),e=i.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart);return e}t(function(){t("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery);/*!
 * Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker)
 *
 * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function a(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var e=new Date;return a(e.getFullYear(),e.getMonth(),e.getDate())}function s(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function n(a,i){return function(){return i!==t&&e.fn.datepicker.deprecated(i),this[a].apply(this,arguments)}}function r(t){var a={};if(f[t]||(t=t.split("-")[0],f[t])){var i=f[t];return e.each(p,function(e,t){t in i&&(a[t]=i[t])}),a}}var o=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),a=0,i=this.length;a<i;a++)if(0<=this[a].valueOf()-t&&this[a].valueOf()-t<864e5)return a;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var e=new o;return e.replace(this),e}};return function(){var a=[];return a.push.apply(a,arguments),e.extend(a,t),a}}(),h=function(t,a){e.data(t,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(a),this.dates=new o,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),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),this.isInline=!this.component&&this.element.is("div"),this.picker=e(g.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(e,t){return Number(t)+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()};h.prototype={constructor:h,_resolveViewName:function(t){return e.each(g.viewModes,function(a,i){if(t===a||-1!==e.inArray(t,i.names))return t=a,!1}),t},_resolveDaysOfWeek:function(t){return e.isArray(t)||(t=t.split(/[,\s]*/)),e.map(t,Number)},_check_template:function(a){try{return a!==t&&""!==a&&((a.match(/[<>]/g)||[]).length<=0||e(a).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var s=this.o=e.extend({},this._o),n=s.language;f[n]||(n=n.split("-")[0],f[n]||(n=c.language)),s.language=n,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),!0!==s.multidate&&(s.multidate=Number(s.multidate)||!1,!1!==s.multidate&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var r=g.parseFormat(s.format);s.startDate!==-1/0&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=g.parseDate(s.startDate,r,s.language,s.assumeNearbyYear):s.startDate=-1/0),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=g.parseDate(s.endDate,r,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],e.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=e.map(s.datesDisabled,function(e){return g.parseDate(e,r,s.language,s.assumeNearbyYear)});var o=String(s.orientation).toLowerCase().split(/\s+/g),h=s.orientation.toLowerCase();if(o=e.grep(o,function(e){return/^auto|left|right|top|bottom$/.test(e)}),s.orientation={x:"auto",y:"auto"},h&&"auto"!==h)if(1===o.length)switch(o[0]){case"top":case"bottom":s.orientation.y=o[0];break;case"left":case"right":s.orientation.x=o[0]}else h=e.grep(o,function(e){return/^left|right$/.test(e)}),s.orientation.x=h[0]||"auto",h=e.grep(o,function(e){return/^top|bottom$/.test(e)}),s.orientation.y=h[0]||"auto";if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=g.parseDate(s.defaultViewDate,r,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var d=s.defaultViewDate.year||(new Date).getFullYear(),l=s.defaultViewDate.month||0,u=s.defaultViewDate.day||1;s.defaultViewDate=a(d,l,u)}else s.defaultViewDate=i()},_applyEvents:function(e){for(var a,i,s,n=0;n<e.length;n++)a=e[n][0],2===e[n].length?(i=t,s=e[n][1]):3===e[n].length&&(i=e[n][1],s=e[n][2]),a.on(s,i)},_unapplyEvents:function(e){for(var a,i,s,n=0;n<e.length;n++)a=e[n][0],2===e[n].length?(s=t,i=e[n][1]):3===e[n].length&&(s=e[n][1],i=e[n][2]),a.off(i,s)},_buildEvents:function(){var t={keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this),paste:e.proxy(this.paste,this)};!0===this.o.showOnFocus&&(t.focus=e.proxy(this.show,this)),this.isInput?this._events=[[this.element,t]]:this.component&&this.inputField.length?this._events=[[this.inputField,t],[this.component,{click:e.proxy(this.show,this)}]]:this._events=[[this.element,{click:e.proxy(this.show,this),keydown:e.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:e.proxy(function(e){this._focused_from=e.target},this)}],[this.element,{blur:e.proxy(function(e){this._focused_from=e.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":e.proxy(function(e){this.update(e.date)},this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[this.picker,".prev, .next",{click:e.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:e.proxy(this.dayCellClick,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.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(t,a){var i=a||this.dates.get(-1),s=this._utc_to_local(i);this.element.trigger({type:t,date:s,viewMode:this.viewMode,dates:e.map(this.dates,this._utc_to_local),format:e.proxy(function(e,t){0===arguments.length?(e=this.dates.length-1,t=this.o.format):"string"==typeof e&&(t=e,e=this.dates.length-1),t=t||this.o.format;var a=this.dates.get(e);return g.formatDate(a,t,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&&e(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(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(t){var a;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==e.inArray("text/plain",t.originalEvent.clipboardData.types))a=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;a=window.clipboardData.getData("Text")}this.setDate(a),this.update(),t.preventDefault()},_utc_to_local:function(e){if(!e)return e;var t=new Date(e.getTime()+6e4*e.getTimezoneOffset());return t.getTimezoneOffset()!==e.getTimezoneOffset()&&(t=new Date(e.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset())},_zero_time:function(e){return e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return e&&a(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,function(e){return new Date(e)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var e=this.dates.get(-1);return e!==t?new Date(e):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,e.map(t,this._utc_to_local)),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var e=this.getFormattedDate();return this.inputField.val(e),this},getFormattedDate:function(a){a===t&&(a=this.o.format);var i=this.o.language;return e.map(this.dates,function(e){return g.formatDate(e,a,i)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(e){return this._process_options({startDate:e}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(e){return this._process_options({endDate:e}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(e){return this._process_options({daysOfWeekDisabled:e}),this.update(),this},setDaysOfWeekHighlighted:function(e){return this._process_options({daysOfWeekHighlighted:e}),this.update(),this},setDatesDisabled:function(e){return this._process_options({datesDisabled:e}),this.update(),this},place:function(){if(this.isInline)return this;var t=this.picker.outerWidth(),a=this.picker.outerHeight(),i=e(this.o.container),s=i.width(),n="body"===this.o.container?e(document).scrollTop():i.scrollTop(),r=i.offset(),o=[0];this.element.parents().each(function(){var t=e(this).css("z-index");"auto"!==t&&0!==Number(t)&&o.push(Number(t))});var h=Math.max.apply(Math,o)+this.o.zIndexOffset,d=this.component?this.component.parent().offset():this.element.offset(),l=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),c=d.left-r.left,p=d.top-r.top;"body"!==this.o.container&&(p+=n),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&&(c-=t-u)):d.left<0?(this.picker.addClass("datepicker-orient-left"),c-=d.left-10):c+t>s?(this.picker.addClass("datepicker-orient-right"),c+=u-t):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=-n+p-a<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=a+parseInt(this.picker.css("padding-top")):p+=l,this.o.rtl){var g=s-(c+u);this.picker.css({top:p,right:g,zIndex:h})}else this.picker.css({top:p,left:c,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),a=[],i=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),a.push(t)},this)),i=!0):(a=(a=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?a.split(this.o.multidateSeparator):[a],delete this.element.data().date),a=e.map(a,e.proxy(function(e){return g.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),a=e.grep(a,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(a),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(t)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,a="<tr>";for(this.o.calendarWeeks&&(a+='<th class="cw">&#160;</th>');t<this.o.weekStart+7;)a+='<th class="dow',-1!==e.inArray(t,this.o.daysOfWeekDisabled)&&(a+=" disabled"),a+='">'+f[this.o.language].daysMin[t++%7]+"</th>";a+="</tr>",this.picker.find(".datepicker-days thead").append(a)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",a=0;a<12;a++)t+='<span class="month'+(e&&e.getMonth()===a?" focused":"")+'">'+f[this.o.language].monthsShort[a]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var a=[],n=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),o=i();return t.getUTCFullYear()<n||t.getUTCFullYear()===n&&t.getUTCMonth()<r?a.push("old"):(t.getUTCFullYear()>n||t.getUTCFullYear()===n&&t.getUTCMonth()>r)&&a.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&a.push("focused"),this.o.todayHighlight&&s(t,o)&&a.push("today"),-1!==this.dates.contains(t)&&a.push("active"),this.dateWithinRange(t)||a.push("disabled"),this.dateIsDisabled(t)&&a.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&a.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&a.push("range"),-1!==e.inArray(t.valueOf(),this.range)&&a.push("selected"),t.valueOf()===this.range[0]&&a.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&a.push("range-end")),a},_fill_yearsView:function(a,i,s,n,r,o,h){for(var d,l,u,c="",p=s/10,f=this.picker.find(a),g=Math.floor(n/s)*s,m=g+9*p,y=Math.floor(this.viewDate.getFullYear()/p)*p,D=e.map(this.dates,function(e){return Math.floor(e.getUTCFullYear()/p)*p}),v=g-p;v<=m+p;v+=p)d=[i],l=null,v===g-p?d.push("old"):v===m+p&&d.push("new"),-1!==e.inArray(v,D)&&d.push("active"),(v<r||v>o)&&d.push("disabled"),v===y&&d.push("focused"),h!==e.noop&&((u=h(new Date(v,0,1)))===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&d.push("disabled"),u.classes&&(d=d.concat(u.classes.split(/\s+/))),u.tooltip&&(l=u.tooltip)),c+='<span class="'+d.join(" ")+'"'+(l?' title="'+l+'"':"")+">"+v+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(c)},fill:function(){var s,n,r=new Date(this.viewDate),o=r.getUTCFullYear(),h=r.getUTCMonth(),d=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,l=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,p=f[this.o.language].today||f.en.today||"",m=f[this.o.language].clear||f.en.clear||"",y=f[this.o.language].titleFormat||f.en.titleFormat,D=i(),v=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&D>=this.o.startDate&&D<=this.o.endDate&&!this.weekOfDateIsDisabled(D);if(!isNaN(o)&&!isNaN(h)){this.picker.find(".datepicker-days .datepicker-switch").text(g.formatDate(r,y,this.o.language)),this.picker.find("tfoot .today").text(p).css("display",v?"table-cell":"none"),this.picker.find("tfoot .clear").text(m).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 w=a(o,h,0),k=w.getUTCDate();w.setUTCDate(k-(w.getUTCDay()-this.o.weekStart+7)%7);var b=new Date(w);w.getUTCFullYear()<100&&b.setUTCFullYear(w.getUTCFullYear()),b.setUTCDate(b.getUTCDate()+42),b=b.valueOf();for(var M,C,_=[];w.valueOf()<b;){if((M=w.getUTCDay())===this.o.weekStart&&(_.push("<tr>"),this.o.calendarWeeks)){var T=new Date(+w+(this.o.weekStart-M-7)%7*864e5),S=new Date(Number(T)+(11-T.getUTCDay())%7*864e5),U=new Date(Number(U=a(S.getUTCFullYear(),0,1))+(11-U.getUTCDay())%7*864e5),F=(S-U)/864e5/7+1;_.push('<td class="cw">'+F+"</td>")}(C=this.getClassNames(w)).push("day");var A=w.getUTCDate();this.o.beforeShowDay!==e.noop&&((n=this.o.beforeShowDay(this._utc_to_local(w)))===t?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1===n.enabled&&C.push("disabled"),n.classes&&(C=C.concat(n.classes.split(/\s+/))),n.tooltip&&(s=n.tooltip),n.content&&(A=n.content)),C=e.isFunction(e.uniqueSort)?e.uniqueSort(C):e.unique(C),_.push('<td class="'+C.join(" ")+'"'+(s?' title="'+s+'"':"")+' data-date="'+w.getTime().toString()+'">'+A+"</td>"),s=null,M===this.o.weekEnd&&_.push("</tr>"),w.setUTCDate(w.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(_.join(""));var V=f[this.o.language].monthsTitle||f.en.monthsTitle||"Months",N=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?V:o).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===o&&N.eq(t.getUTCMonth()).addClass("active")}),(o<d||o>u)&&N.addClass("disabled"),o===d&&N.slice(0,l).addClass("disabled"),o===u&&N.slice(c+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var O=this;e.each(N,function(a,i){var s=new Date(o,a,1),n=O.o.beforeShowMonth(s);n===t?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1!==n.enabled||e(i).hasClass("disabled")||e(i).addClass("disabled"),n.classes&&e(i).addClass(n.classes),n.tooltip&&e(i).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,o,d,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,o,d,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,o,d,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,a=new Date(this.viewDate),i=a.getUTCFullYear(),s=a.getUTCMonth(),n=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=1;switch(this.viewMode){case 4:d*=10;case 3:d*=10;case 2:d*=10;case 1:e=Math.floor(i/d)*d<=n,t=Math.floor(i/d)*d+d>o;break;case 0:e=i<=n&&s<=r,t=i>=o&&s>=h}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var s,n,r,o;t.preventDefault(),t.stopPropagation(),(s=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),n=1,1===this.viewMode?(o=s.parent().find("span").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o)):(o=0,r=Number(s.text()),this.viewDate.setUTCFullYear(r)),this._trigger(g.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(a(r,o,n)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var a=e(t.currentTarget).data("date"),i=new Date(a);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(t){var a=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(a*=12*g.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,a),this._trigger(g.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var a=new Date(e);return a.setUTCDate(e.getUTCDate()+t),a},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var a,i,s=new Date(e.valueOf()),n=s.getUTCDate(),r=s.getUTCMonth(),o=Math.abs(t);if(t=t>0?1:-1,1===o)i=-1===t?function(){return s.getUTCMonth()===r}:function(){return s.getUTCMonth()!==a},a=r+t,s.setUTCMonth(a),a=(a+12)%12;else{for(var h=0;h<o;h++)s=this.moveMonth(s,t);a=s.getUTCMonth(),s.setUTCDate(n),i=function(){return a!==s.getUTCMonth()}}for(;i();)s.setUTCDate(--n),s.setUTCMonth(a);return s},moveYear:function(e,t){return this.moveMonth(e,12*t)},moveAvailableDate:function(e,t,a){do{if(e=this[a](e,t),!this.dateWithinRange(e))return!1;a="moveDay"}while(this.dateIsDisabled(e));return e},weekOfDateIsDisabled:function(t){return-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||e.grep(this.o.datesDisabled,function(e){return s(t,e)}).length>0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,a,i=!1,s=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(a=this.moveAvailableDate(s,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(a=this.moveAvailableDate(s,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?a=this.moveAvailableDate(s,t,"moveDay"):this.weekOfDateIsDisabled(s)||(a=this.moveAvailableDate(s,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),a=this.moveAvailableDate(s,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),a=this.moveAvailableDate(s,t,"moveYear")),a&&(this.focusDate=this.viewDate=a,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.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!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+g.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var d=function(t,a){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(a.inputs,function(e){return e.jquery?e[0]:e}),delete a.inputs,this.keepEmptyValues=a.keepEmptyValues,delete a.keepEmptyValues,u.call(e(this.inputs),a).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};d.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,a){a.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(a){if(!this.updating){this.updating=!0;var i=e.data(a.target,"datepicker");if(i!==t){var s=i.getUTCDate(),n=this.keepEmptyValues,r=e.inArray(a.target,this.inputs),o=r-1,h=r+1,d=this.inputs.length;if(-1!==r){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==i&&n||t.setUTCDate(s)}),s<this.dates[o])for(;o>=0&&s<this.dates[o];)this.pickers[o--].setUTCDate(s);else if(s>this.dates[h])for(;h<d&&s>this.dates[h];)this.pickers[h++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var l=e.fn.datepicker,u=function(a){var i,s=Array.apply(null,arguments);if(s.shift(),this.each(function(){var t=e(this),n=t.data("datepicker"),o="object"==typeof a&&a;if(!n){var l=function(t,a){function i(e,t){return t.toLowerCase()}var s=e(t).data(),n={},r=new RegExp("^"+a.toLowerCase()+"([A-Z])");for(var o in a=new RegExp("^"+a.toLowerCase()),s)a.test(o)&&(n[o.replace(r,i)]=s[o]);return n}(this,"date"),u=r(e.extend({},c,l,o).language),p=e.extend({},c,u,l,o);t.hasClass("input-daterange")||p.inputs?(e.extend(p,{inputs:p.inputs||t.find("input").toArray()}),n=new d(this,p)):n=new h(this,p),t.data("datepicker",n)}"string"==typeof a&&"function"==typeof n[a]&&(i=n[a].apply(n,s))}),i===t||i instanceof h||i instanceof d)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+a+" function)");return i};e.fn.datepicker=u;var c=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",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},p=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=h;var f=e.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"}},g={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(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),a=e.match(this.validParts);if(!t||!t.length||!a||0===a.length)throw new Error("Invalid date format.");return{separators:t,parts:a}},parseDate:function(a,s,n,r){function o(){var e=this.slice(0,d[c].length),t=d[c].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!a)return t;if(a instanceof Date)return a;if("string"==typeof s&&(s=g.parseFormat(s)),s.toValue)return s.toValue(a,s,n);var d,l,u,c,p,m={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(a in y&&(a=y[a]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(a)){for(d=a.match(/([\-+]\d+)([dmwy])/gi),a=new Date,c=0;c<d.length;c++)l=d[c].match(/([\-+]\d+)([dmwy])/i),u=Number(l[1]),p=m[l[2].toLowerCase()],a=h.prototype[p](a,u);return h.prototype._zero_utc_time(a)}d=a&&a.match(this.nonpunctuation)||[];var D,v,w={},k=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(e,t){return e.setUTCFullYear(r?function(e,t){return!0===t&&(t=10),e<100&&(e+=2e3)>(new Date).getFullYear()+t&&(e-=100),e}(t,r):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};b.yy=b.yyyy,b.M=b.MM=b.mm=b.m,b.dd=b.d,a=i();var M=s.parts.slice();if(d.length!==M.length&&(M=e(M).filter(function(t,a){return-1!==e.inArray(a,k)}).toArray()),d.length===M.length){var C,_,T;for(c=0,C=M.length;c<C;c++){if(D=parseInt(d[c],10),l=M[c],isNaN(D))switch(l){case"MM":v=e(f[n].months).filter(o),D=e.inArray(v[0],f[n].months)+1;break;case"M":v=e(f[n].monthsShort).filter(o),D=e.inArray(v[0],f[n].monthsShort)+1}w[l]=D}for(c=0;c<k.length;c++)(T=k[c])in w&&!isNaN(w[T])&&(_=new Date(a),b[T](_,w[T]),isNaN(_)||(a=_))}return a},formatDate:function(t,a,i){if(!t)return"";if("string"==typeof a&&(a=g.parseFormat(a)),a.toDisplay)return a.toDisplay(t,a,i);var s={d:t.getUTCDate(),D:f[i].daysShort[t.getUTCDay()],DD:f[i].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:f[i].monthsShort[t.getUTCMonth()],MM:f[i].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,t=[];for(var n=e.extend([],a.separators),r=0,o=a.parts.length;r<=o;r++)n.length&&t.push(n.shift()),t.push(s[a.parts[r]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+c.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+c.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>'};g.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+g.headTemplate+"<tbody></tbody>"+g.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=g,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=l,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var a=e(this);a.data("datepicker")||(t.preventDefault(),u.call(a,"show"))}),e(function(){u.call(e('[data-provide="datepicker-inline"]'))})}),jQuery.fn.datepicker.dates.da={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør","Søn"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø","Sø"],months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthsShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],today:"I Dag",clear:"Nulstil"},jQuery.fn.datepicker.dates.de={days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],daysShort:["Son","Mon","Die","Mit","Don","Fre","Sam","Son"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa","So"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen",weekStart:1,format:"dd.mm.yyyy"},jQuery.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy",clear:"Borrar",weekStart:1,format:"dd/mm/yyyy"},jQuery.fn.datepicker.dates.fr={days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"],daysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam.","dim."],daysMin:["d","l","ma","me","j","v","s","d"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],today:"Aujourd'hui",clear:"Effacer",weekStart:1,format:"dd/mm/yyyy"},jQuery.fn.datepicker.dates.it={days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato","Domenica"],daysShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab","Dom"],daysMin:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthsShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],today:"Oggi",clear:"Cancella",weekStart:1,format:"dd/mm/yyyy"},jQuery.fn.datepicker.dates.nl={days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag","zondag"],daysShort:["zo","ma","di","wo","do","vr","za","zo"],daysMin:["zo","ma","di","wo","do","vr","za","zo"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthsShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],today:"Vandaag",clear:"Wissen",weekStart:1,format:"dd-mm-yyyy"},jQuery.fn.datepicker.dates.no={days:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],daysShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],daysMin:["Sø","Ma","Ti","On","To","Fr","Lø"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],today:"I dag",clear:"Nullstill",weekStart:1,format:"dd.mm.yyyy"},jQuery.fn.datepicker.dates.pl={days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],daysShort:["Nie","Pn","Wt","Śr","Czw","Pt","So","Nie"],daysMin:["N","Pn","Wt","Śr","Cz","Pt","So","N"],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthsShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],today:"Dzisiaj",weekStart:1,clear:"Wyczyść"},jQuery.fn.datepicker.dates.pt={days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado","Domingo"],daysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],daysMin:["Do","Se","Te","Qu","Qu","Se","Sa","Do"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],today:"Hoje",clear:"Limpar"},jQuery.fn.datepicker.dates.ro={days:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă","Duminică"],daysShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm","Dum"],daysMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ","Du"],months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthsShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],today:"Astăzi",clear:"Șterge",weekStart:1},jQuery.fn.datepicker.dates.ru={days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота","Воскресенье"],daysShort:["Вск","Пнд","Втр","Срд","Чтв","Птн","Суб","Вск"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб","Вс"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",format:"dd.mm.yyyy",weekStart:1},jQuery.fn.datepicker.dates.zh={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["日","一","二","三","四","五","六","日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],today:"今日",format:"yyyy年mm月dd日",weekStart:1,clear:"清空"};!function(t){var e='<i class="fa fa-1_50x fa-fw fa-upload-cloud vertical-align-middle"></i>&nbsp;&nbsp;&nbsp;';t.fn.bootstrapFileInput=function(i){this.each(function(a,n){var l=t(n);if(void 0===l.attr("data-bfi-disabled")){void 0!==l.attr("title")&&l.attr("title");var s="";l.attr("class")&&(s=" "+l.attr("class"));var f=i?e+theme_language("upload_initial_info"):'<i class="fa fa-fw fa-paperclip -cs"></i>';l.wrap('<a class="file-input-wrapper '+(i?" "+i[0]+" ":String())+" btn "+(i?" btn-transparent-link ":" btn-default ")+" "+s+'"></a>').parent().prepend(t("<span></span>").html(f))}}).promise().done(function(){t(".file-input-wrapper").mousemove(function(e){var i,a,n,l,s,f,p,r;i=(a=t(this)).find("input"),n=a.offset().left,l=a.offset().top,s=i.width(),f=i.height(),p=e.pageX,r=e.pageY,moveInputX=p-n-s+20,moveInputY=r-l-f/2,i.css({left:moveInputX,top:moveInputY})});t("body").off("change.fiw"),t("body").on("change.fiw",".file-input-wrapper input[type=file]",function(){var e;if(e=Convert.htmlEscape(t(this).val()),t(this).parent().next(".file-input-name").remove(),e=t(this).prop("files")&&t(this).prop("files").length>1?t(this)[0].files.length+" files":e.substring(e.lastIndexOf("\\")+1,e.length)){var a=theme_language("global_file_selected"),n=theme_language("global_files_selected"),l=$(this.files).map(function(t,e){return e.name}).get().join("\n");if(i){var s=(this&&this.files.length>0?this.files.length:"")+" "+(this&&this.files.length>0?1===this.files.length?a:n:theme_language("upload_initial_info"));t(this).siblings("span").html(s),t(this).attr("title",l);var f=i[1];this&&0!==this.files.length?f.removeClass("disabled"):f.addClass("disabled")}else{var p;if($(this).attr("multiple")){var r=this.files.length;p=r+" "+(r>1?n:a),t(this).attr("title",l)}else p="1 "+a,t(this).attr("title",e);t(this).parent().after('<span class="file-input-name">'+p+"</span>")}}})})},t.fn.bootstrapFileInputReset=function(t){$.each(t.find(".file-input-wrapper"),function(){$(this).find("span").html(e+theme_language("upload_initial_info")),$(this).find('input[type="file"]').attr("title",String())})}}(jQuery);/*!
* DataTables 1.10.20
* ©2008-2019 SpryMedia Ltd - datatables.net/license
*/
/*
   Copyright 2008-2019 SpryMedia Ltd.

 This source file is free software, available under the following license:
   MIT license - http://datatables.net/license

 This source file is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.

 For details please refer to: http://www.datatables.net
 DataTables 1.10.20
 ©2008-2019 SpryMedia Ltd - datatables.net/license
*/
var $jscomp;($jscomp=$jscomp||{}).scope={},$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(var a=t.length,r=0;r<a;r++){var o=t[r];if(e.call(n,o,r,t))return{i:r,v:o}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,a){if(e){for(n=$jscomp.global,t=t.split("."),a=0;a<t.length-1;a++){var r=t[a];r in n||(n[r]={}),n=n[r]}(e=e(a=n[t=t[t.length-1]]))!=a&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.find",function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).v}},"es6","es3"),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){function r(e){var n,a,o={};t.each(e,function(t,i){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),o[a]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=o}function o(e,n,i){var s;e._hungarianMap||r(e),t.each(n,function(r,l){(s=e._hungarianMap[r])===a||!i&&n[s]!==a||("o"===s.charAt(0)?(n[s]||(n[s]={}),t.extend(!0,n[s],n[r]),o(e[s],n[s],i)):n[s]=n[r])})}function i(t){var e=Vt.defaults.oLanguage,n=e.sDecimal;if(n&&Wt(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&jt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&jt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&n!==t&&Wt(t)}}function s(t){if(le(t,"ordering","bSort"),le(t,"orderMulti","bSortMulti"),le(t,"orderClasses","bSortClasses"),le(t,"orderCellsTop","bSortCellsTop"),le(t,"order","aaSorting"),le(t,"orderFixed","aaSortingFixed"),le(t,"paging","bPaginate"),le(t,"pagingType","sPaginationType"),le(t,"pageLength","iDisplayLength"),le(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e<n;e++)t[e]&&o(Vt.models.oSearch,t[e])}function l(e){le(e,"orderable","bSortable"),le(e,"orderData","aDataSort"),le(e,"orderSequence","asSorting"),le(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"!=typeof n||t.isArray(n)||(e.aDataSort=[n])}function u(n){if(!Vt.__browser){var a={};Vt.__browser=a;var r=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=r.children(),i=o.children();a.barWidth=o[0].offsetWidth-o[0].clientWidth,a.bScrollOversize=100===i[0].offsetWidth&&100!==o[0].clientWidth,a.bScrollbarLeft=1!==Math.round(i.offset().left),a.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(n.oBrowser,Vt.__browser),n.oScroll.iBarWidth=Vt.__browser.barWidth}function c(t,e,n,r,o,i){var s=!1;if(n!==a){var l=n;s=!0}for(;r!==o;)t.hasOwnProperty(r)&&(l=s?e(l,t[r],r,t):t[r],s=!0,r+=i);return l}function d(e,a){var r=Vt.defaults.column,o=e.aoColumns.length;r=t.extend({},Vt.models.oColumn,r,{nTh:a||n.createElement("th"),sTitle:r.sTitle?r.sTitle:a?a.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o}),e.aoColumns.push(r),(r=e.aoPreSearchCols)[o]=t.extend({},Vt.models.oSearch,r[o]),f(e,o,t(a).data())}function f(e,n,r){n=e.aoColumns[n];var i=e.oClasses,s=t(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var u=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(n.sWidthOrig=u[1])}r!==a&&null!==r&&(l(r),o(Vt.defaults.column,r,!0),r.mDataProp===a||r.mData||(r.mData=r.mDataProp),r.sType&&(n._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&s.addClass(r.sClass),t.extend(n,r),jt(n,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(n.aDataSort=[r.iDataSort]),jt(n,r,"aDataSort"));var c=n.mData,d=x(c),f=n.mRender?x(n.mRender):null;r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")},n._bAttrSrc=t.isPlainObject(c)&&(r(c.sort)||r(c.type)||r(c.filter)),n._setter=null,n.fnGetData=function(t,e,n){var r=d(t,e,a,n);return f&&e?f(r,e,t,n):r},n.fnSetData=function(t,e,n){return w(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,s.addClass(i.sSortableNone)),e=-1!==t.inArray("asc",n.asSorting),r=-1!==t.inArray("desc",n.asSorting),n.bSortable&&(e||r)?e&&!r?(n.sSortingClass=i.sSortableAsc,n.sSortingClassJUI=i.sSortJUIAscAllowed):!e&&r?(n.sSortingClass=i.sSortableDesc,n.sSortingClassJUI=i.sSortJUIDescAllowed):(n.sSortingClass=i.sSortable,n.sSortingClassJUI=i.sSortJUI):(n.sSortingClass=i.sSortableNone,n.sSortingClassJUI="")}function h(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;gt(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}""===(e=t.oScroll).sY&&""===e.sX||ht(t),Ot(t,null,"column-sizing",[t])}function p(t,e){return"number"==typeof(t=m(t,"bVisible"))[e]?t[e]:null}function g(e,n){return e=m(e,"bVisible"),-1!==(n=t.inArray(n,e))?n:null}function b(e){var n=0;return t.each(e.aoColumns,function(e,a){a.bVisible&&"none"!==t(a.nTh).css("display")&&n++}),n}function m(e,n){var a=[];return t.map(e.aoColumns,function(t,e){t[n]&&a.push(e)}),a}function v(t){var e,n,r,o=t.aoColumns,i=t.aoData,s=Vt.ext.type.detect,l=0;for(e=o.length;l<e;l++){var u=o[l],c=[];if(!u.sType&&u._sManualType)u.sType=u._sManualType;else if(!u.sType){var d=0;for(n=s.length;d<n;d++){var f=0;for(r=i.length;f<r;f++){c[f]===a&&(c[f]=y(t,f,l,"type"));var h=s[d](c[f],t);if(!h&&d!==s.length-1)break;if("html"===h)break}if(h){u.sType=h;break}}u.sType||(u.sType="string")}}}function S(e,n,r,o){var i,s,l,u=e.aoColumns;if(n)for(i=n.length-1;0<=i;i--){var c=n[i],f=c.targets!==a?c.targets:c.aTargets;t.isArray(f)||(f=[f]);var h=0;for(s=f.length;h<s;h++)if("number"==typeof f[h]&&0<=f[h]){for(;u.length<=f[h];)d(e);o(f[h],c)}else if("number"==typeof f[h]&&0>f[h])o(u.length+f[h],c);else if("string"==typeof f[h]){var p=0;for(l=u.length;p<l;p++)("_all"==f[h]||t(u[p].nTh).hasClass(f[h]))&&o(p,c)}}if(r)for(i=0,e=r.length;i<e;i++)o(i,r[i])}function D(e,n,r,o){var i=e.aoData.length,s=t.extend(!0,{},Vt.models.oRow,{src:r?"dom":"data",idx:i});s._aData=n,e.aoData.push(s);for(var l=e.aoColumns,u=0,c=l.length;u<c;u++)l[u].sType=null;return e.aiDisplayMaster.push(i),(n=e.rowIdFn(n))!==a&&(e.aIds[n]=s),!r&&e.oFeatures.bDeferRender||L(e,i,r,o),i}function _(e,n){var a;return n instanceof t||(n=t(n)),n.map(function(t,n){return a=j(e,n),D(e,a.data,n,a.cells)})}function y(t,e,n,r){var o=t.iDraw,i=t.aoColumns[n],s=t.aoData[e]._aData,l=i.sDefaultContent,u=i.fnGetData(s,r,{settings:t,row:e,col:n});if(u===a)return t.iDrawError!=o&&null===l&&(Ft(t,0,"Requested unknown parameter "+("function"==typeof i.mData?"{function}":"'"+i.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),l;if(u!==s&&null!==u||null===l||r===a){if("function"==typeof u)return u.call(s)}else u=l;return null===u&&"display"==r?"":u}function C(t,e,n,a){t.aoColumns[n].fnSetData(t.aoData[e]._aData,a,{settings:t,row:e,col:n})}function T(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function x(e){if(t.isPlainObject(e)){var n={};return t.each(e,function(t,e){e&&(n[t]=x(e))}),function(t,e,r,o){var i=n[e]||n._;return i!==a?i(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,a,r){return e(t,n,a,r)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){return t[e]};var r=function(e,n,o){if(""!==o)for(var i=T(o),s=0,l=i.length;s<l;s++){o=i[s].match(ue);var u=i[s].match(ce);if(o){if(i[s]=i[s].replace(ue,""),""!==i[s]&&(e=e[i[s]]),u=[],i.splice(0,s+1),i=i.join("."),t.isArray(e))for(s=0,l=e.length;s<l;s++)u.push(r(e[s],n,i));e=""===(e=o[0].substring(1,o[0].length-1))?u:u.join(e);break}if(u)i[s]=i[s].replace(ce,""),e=e[i[s]]();else{if(null===e||e[i[s]]===a)return a;e=e[i[s]]}}return e};return function(t,n){return r(t,n,e)}}function w(e){if(t.isPlainObject(e))return w(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,a){e(t,"set",n,a)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var n=function(e,r,o){for(var i,s,l=(o=T(o))[o.length-1],u=0,c=o.length-1;u<c;u++){if(i=o[u].match(ue),s=o[u].match(ce),i){if(o[u]=o[u].replace(ue,""),e[o[u]]=[],(l=o.slice()).splice(0,u+1),i=l.join("."),t.isArray(r))for(s=0,c=r.length;s<c;s++)n(l={},r[s],i),e[o[u]].push(l);else e[o[u]]=r;return}s&&(o[u]=o[u].replace(ce,""),e=e[o[u]](r)),null!==e[o[u]]&&e[o[u]]!==a||(e[o[u]]={}),e=e[o[u]]}l.match(ce)?e[l.replace(ce,"")](r):e[l.replace(ue,"")]=r};return function(t,a){return n(t,a,e)}}function I(t){return ae(t.aoData,"_aData")}function A(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function R(t,e,n){for(var r=-1,o=0,i=t.length;o<i;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&n===a&&t.splice(r,1)}function F(t,e,n,r){var o,i=t.aoData[e],s=function(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=y(t,e,a,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==i.src)){var l=i.anCells;if(l)if(r!==a)s(l[r],r);else for(n=0,o=l.length;n<o;n++)s(l[n],n)}else i._aData=j(t,i,r,r===a?a:i._aData).data;if(i._aSortData=null,i._aFilterData=null,s=t.aoColumns,r!==a)s[r].sType=null;else{for(n=0,o=s.length;n<o;n++)s[n].sType=null;P(t,i)}}function j(e,n,r,o){var i,s,l=[],u=n.firstChild,c=0,d=e.aoColumns,f=e._rowReadObject;o=o!==a?o:f?{}:[];var h=function(t,e){if("string"==typeof t){var n=t.indexOf("@");-1!==n&&(n=t.substring(n+1),w(t)(o,e.getAttribute(n)))}},p=function(e){r!==a&&r!==c||(i=d[c],s=t.trim(e.innerHTML),i&&i._bAttrSrc?(w(i.mData._)(o,s),h(i.mData.sort,e),h(i.mData.type,e),h(i.mData.filter,e)):f?(i._setter||(i._setter=w(i.mData)),i._setter(o,s)):o[c]=s),c++};if(u)for(;u;){var g=u.nodeName.toUpperCase();"TD"!=g&&"TH"!=g||(p(u),l.push(u)),u=u.nextSibling}else for(u=0,g=(l=n.anCells).length;u<g;u++)p(l[u]);return(n=n.firstChild?n:n.nTr)&&(n=n.getAttribute("id"))&&w(e.rowId)(o,n),{data:o,cells:l}}function L(e,a,r,o){var i,s,l=e.aoData[a],u=l._aData,c=[];if(null===l.nTr){var d=r||n.createElement("tr");l.nTr=d,l.anCells=c,d._DT_RowIndex=a,P(e,l);var f=0;for(i=e.aoColumns.length;f<i;f++){var h=e.aoColumns[f],p=(s=!r)?n.createElement(h.sCellType):o[f];p._DT_CellIndex={row:a,column:f},c.push(p),!s&&(r&&!h.mRender&&h.mData===f||t.isPlainObject(h.mData)&&h.mData._===f+".display")||(p.innerHTML=y(e,a,f,"display")),h.sClass&&(p.className+=" "+h.sClass),h.bVisible&&!r?d.appendChild(p):!h.bVisible&&r&&p.parentNode.removeChild(p),h.fnCreatedCell&&h.fnCreatedCell.call(e.oInstance,p,y(e,a,f),u,a,f)}Ot(e,"aoRowCreatedCallback",null,[d,u,a,c])}l.nTr.setAttribute("role","row")}function P(e,n){var a=n.nTr,r=n._aData;a&&((e=e.rowIdFn(r))&&(a.id=e),r.DT_RowClass&&(e=r.DT_RowClass.split(" "),n.__rowc=n.__rowc?se(n.__rowc.concat(e)):e,t(a).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&t(a).attr(r.DT_RowAttr),r.DT_RowData&&t(a).data(r.DT_RowData))}function N(e){var n,a,r=e.nTHead,o=e.nTFoot,i=0===t("th, td",r).length,s=e.oClasses,l=e.aoColumns;i&&(a=t("<tr/>").appendTo(r));var u=0;for(n=l.length;u<n;u++){var c=l[u],d=t(c.nTh).addClass(c.sClass);i&&d.appendTo(a),e.oFeatures.bSort&&(d.addClass(c.sSortingClass),!1!==c.bSortable&&(d.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Tt(e,c.nTh,u))),c.sTitle!=d[0].innerHTML&&d.html(c.sTitle),Mt(e,"header")(e,d,c,s)}if(i&&E(e.aoHeader,r),t(r).find(">tr").attr("role","row"),t(r).find(">tr>th, >tr>td").addClass(s.sHeaderTH),t(o).find(">tr>th, >tr>td").addClass(s.sFooterTH),null!==o)for(u=0,n=(e=e.aoFooter[0]).length;u<n;u++)(c=l[u]).nTf=e[u].cell,c.sClass&&t(c.nTf).addClass(c.sClass)}function O(e,n,r){var o,i,s=[],l=[],u=e.aoColumns.length;if(n){r===a&&(r=!1);var c=0;for(o=n.length;c<o;c++){for(s[c]=n[c].slice(),s[c].nTr=n[c].nTr,i=u-1;0<=i;i--)e.aoColumns[i].bVisible||r||s[c].splice(i,1);l.push([])}for(c=0,o=s.length;c<o;c++){if(e=s[c].nTr)for(;i=e.firstChild;)e.removeChild(i);for(i=0,n=s[c].length;i<n;i++){var d=u=1;if(l[c][i]===a){for(e.appendChild(s[c][i].cell),l[c][i]=1;s[c+u]!==a&&s[c][i].cell==s[c+u][i].cell;)l[c+u][i]=1,u++;for(;s[c][i+d]!==a&&s[c][i].cell==s[c][i+d].cell;){for(r=0;r<u;r++)l[c+r][i+d]=1;d++}t(s[c][i].cell).attr("rowspan",u).attr("colspan",d)}}}}}function k(e){var n=Ot(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,n))dt(e,!1);else{n=[];var r=0,o=e.asStripeClasses,i=o.length,s=e.oLanguage,l=e.iInitDisplayStart,u="ssp"==Ht(e),c=e.aiDisplay;e.bDrawing=!0,l!==a&&-1!==l&&(e._iDisplayStart=u?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1),l=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,dt(e,!1);else if(u){if(!e.bDestroying&&!U(e))return}else e.iDraw++;if(0!==c.length)for(s=u?e.aoData.length:d,u=u?0:l;u<s;u++){var f=c[u],h=e.aoData[f];null===h.nTr&&L(e,f);var p=h.nTr;if(0!==i){var g=o[r%i];h._sRowStripe!=g&&(t(p).removeClass(h._sRowStripe).addClass(g),h._sRowStripe=g)}Ot(e,"aoRowCallback",null,[p,h._aData,r,u,f]),n.push(p),r++}else r=s.sZeroRecords,1==e.iDraw&&"ajax"==Ht(e)?r=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(r=s.sEmptyTable),n[0]=t("<tr/>",{class:i?o[0]:""}).append(t("<td />",{valign:"top",colSpan:b(e),class:e.oClasses.sRowEmpty}).html(r))[0];Ot(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],I(e),l,d,c]),Ot(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],I(e),l,d,c]),(o=t(e.nTBody)).children().detach(),o.append(t(n)),Ot(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function M(t,e){var n=t.oFeatures,a=n.bFilter;n.bSort&&_t(t),a?q(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,k(t),t._drawHold=!1}function H(e){var n=e.oClasses,a=t(e.nTable);a=t("<div/>").insertBefore(a);var r=e.oFeatures,o=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=a[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var i,s,l,u,c,d,f=e.sDom.split(""),h=0;h<f.length;h++){if(i=null,"<"==(s=f[h])){if(l=t("<div/>")[0],"'"==(u=f[h+1])||'"'==u){for(c="",d=2;f[h+d]!=u;)c+=f[h+d],d++;"H"==c?c=n.sJUIHeader:"F"==c&&(c=n.sJUIFooter),-1!=c.indexOf(".")?(u=c.split("."),l.id=u[0].substr(1,u[0].length-1),l.className=u[1]):"#"==c.charAt(0)?l.id=c.substr(1,c.length-1):l.className=c,h+=d}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)i=st(e);else if("f"==s&&r.bFilter)i=J(e);else if("r"==s&&r.bProcessing)i=ct(e);else if("t"==s)i=ft(e);else if("i"==s&&r.bInfo)i=et(e);else if("p"==s&&r.bPaginate)i=lt(e);else if(0!==Vt.ext.feature.length)for(d=0,u=(l=Vt.ext.feature).length;d<u;d++)if(s==l[d].cFeature){i=l[d].fnInit(e);break}i&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(i),o.append(i))}a.replaceWith(o),e.nHolding=null}function E(e,n){var a,r,o;n=t(n).children("tr"),e.splice(0,e.length);var i=0;for(o=n.length;i<o;i++)e.push([]);for(i=0,o=n.length;i<o;i++){var s=n[i];for(a=s.firstChild;a;){if("TD"==a.nodeName.toUpperCase()||"TH"==a.nodeName.toUpperCase()){var l=1*a.getAttribute("colspan"),u=1*a.getAttribute("rowspan");l=l&&0!==l&&1!==l?l:1,u=u&&0!==u&&1!==u?u:1;var c=0;for(r=e[i];r[c];)c++;var d=c,f=1===l;for(r=0;r<l;r++)for(c=0;c<u;c++)e[i+c][d+r]={cell:a,unique:f},e[i+c].nTr=s}a=a.nextSibling}}}function W(t,e,n){var a=[];n||(n=t.aoHeader,e&&E(n=[],e)),e=0;for(var r=n.length;e<r;e++)for(var o=0,i=n[e].length;o<i;o++)!n[e][o].unique||a[o]&&t.bSortCellsTop||(a[o]=n[e][o].cell);return a}function B(e,n,a){if(Ot(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var r={},o=/(.*?)\[\]$/;t.each(n,function(t,e){(t=e.name.match(o))?(t=t[0],r[t]||(r[t]=[]),r[t].push(e.value)):r[e.name]=e.value}),n=r}var i=e.ajax,s=e.oInstance,l=function(t){Ot(e,null,"xhr",[e,t,e.jqXHR]),a(t)};if(t.isPlainObject(i)&&i.data){var u=i.data,c="function"==typeof u?u(n,e):u;n="function"==typeof u&&c?c:t.extend(!0,n,c),delete i.data}c={data:n,success:function(t){var n=t.error||t.sError;n&&Ft(e,0,n),e.json=t,l(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,a,r){r=Ot(e,null,"xhr",[e,null,e.jqXHR]),-1===t.inArray(!0,r)&&("parsererror"==a?Ft(e,0,"Invalid JSON response",1):4===n.readyState&&Ft(e,0,"Ajax error",7)),dt(e,!1)}},e.oAjaxData=n,Ot(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(s,e.sAjaxSource,t.map(n,function(t,e){return{name:e,value:t}}),l,e):e.sAjaxSource||"string"==typeof i?e.jqXHR=t.ajax(t.extend(c,{url:i||e.sAjaxSource})):"function"==typeof i?e.jqXHR=i.call(s,n,l,e):(e.jqXHR=t.ajax(t.extend(c,i)),i.data=u)}function U(t){return!t.bAjaxDataGet||(t.iDraw++,dt(t,!0),B(t,$(t),function(e){X(t,e)}),!1)}function $(e){var n=e.aoColumns,a=n.length,r=e.oFeatures,o=e.oPreviousSearch,i=e.aoPreSearchCols,s=[],l=Dt(e),u=e._iDisplayStart,c=!1!==r.bPaginate?e._iDisplayLength:-1,d=function(t,e){s.push({name:t,value:e})};d("sEcho",e.iDraw),d("iColumns",a),d("sColumns",ae(n,"sName").join(",")),d("iDisplayStart",u),d("iDisplayLength",c);var f={draw:e.iDraw,columns:[],order:[],start:u,length:c,search:{value:o.sSearch,regex:o.bRegex}};for(u=0;u<a;u++){var h=n[u],p=i[u];c="function"==typeof h.mData?"function":h.mData,f.columns.push({data:c,name:h.sName,searchable:h.bSearchable,orderable:h.bSortable,search:{value:p.sSearch,regex:p.bRegex}}),d("mDataProp_"+u,c),r.bFilter&&(d("sSearch_"+u,p.sSearch),d("bRegex_"+u,p.bRegex),d("bSearchable_"+u,h.bSearchable)),r.bSort&&d("bSortable_"+u,h.bSortable)}return r.bFilter&&(d("sSearch",o.sSearch),d("bRegex",o.bRegex)),r.bSort&&(t.each(l,function(t,e){f.order.push({column:e.col,dir:e.dir}),d("iSortCol_"+t,e.col),d("sSortDir_"+t,e.dir)}),d("iSortingCols",l.length)),null===(n=Vt.ext.legacy.ajax)?e.sAjaxSource?s:f:n?s:f}function X(t,e){var n=function(t,n){return e[t]!==a?e[t]:e[n]},r=V(t,e),o=n("sEcho","draw"),i=n("iTotalRecords","recordsTotal");if(n=n("iTotalDisplayRecords","recordsFiltered"),o){if(1*o<t.iDraw)return;t.iDraw=1*o}for(A(t),t._iRecordsTotal=parseInt(i,10),t._iRecordsDisplay=parseInt(n,10),o=0,i=r.length;o<i;o++)D(t,r[o]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,k(t),t._bInitComplete||ot(t,e),t.bAjaxDataGet=!0,dt(t,!1)}function V(e,n){return"data"===(e=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==a?e.ajax.dataSrc:e.sAjaxDataProp)?n.aaData||n[e]:""!==e?x(e)(n):n}function J(e){var a=e.oClasses,r=e.sTableId,o=e.oLanguage,i=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+a.sFilterInput+'"/>',u=o.sSearch;u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l,a=t("<div/>",{id:s.f?null:r+"_filter",class:a.sFilter}).append(t("<label/>").append(u)),s=function(){var t=this.value?this.value:"";t!=i.sSearch&&(q(e,{sSearch:t,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive}),e._iDisplayStart=0,k(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===Ht(e)?400:0;var c=t("input",a).val(i.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?ge(s,l):s).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",r);return t(e.nTable).on("search.dt.DT",function(t,a){if(e===a)try{c[0]!==n.activeElement&&c.val(i.sSearch)}catch(t){}}),a[0]}function q(t,e,n){var r=t.oPreviousSearch,o=t.aoPreSearchCols,i=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive},s=function(t){return t.bEscapeRegex!==a?!t.bEscapeRegex:t.bRegex};if(v(t),"ssp"!=Ht(t)){for(z(t,e.sSearch,n,s(e),e.bSmart,e.bCaseInsensitive),i(e),e=0;e<o.length;e++)G(t,o[e].sSearch,e,s(o[e]),o[e].bSmart,o[e].bCaseInsensitive);Y(t)}else i(e);t.bFiltered=!0,Ot(t,null,"search",[t])}function Y(e){for(var n,a,r=Vt.ext.search,o=e.aiDisplay,i=0,s=r.length;i<s;i++){for(var l=[],u=0,c=o.length;u<c;u++)a=o[u],n=e.aoData[a],r[i](e,n._aFilterData,a,n._aData,u)&&l.push(a);o.length=0,t.merge(o,l)}}function G(t,e,n,a,r,o){if(""!==e){var i=[],s=t.aiDisplay;for(a=Z(e,a,r,o),r=0;r<s.length;r++)e=t.aoData[s[r]]._aFilterData[n],a.test(e)&&i.push(s[r]);t.aiDisplay=i}}function z(t,e,n,a,r,o){r=Z(e,a,r,o);var i=t.oPreviousSearch.sSearch,s=t.aiDisplayMaster;o=[],0!==Vt.ext.search.length&&(n=!0);var l=Q(t);if(0>=e.length)t.aiDisplay=s.slice();else{for((l||n||a||i.length>e.length||0!==e.indexOf(i)||t.bSorted)&&(t.aiDisplay=s.slice()),e=t.aiDisplay,n=0;n<e.length;n++)r.test(t.aoData[e[n]]._sFilterRow)&&o.push(e[n]);t.aiDisplay=o}}function Z(e,n,a,r){return e=n?e:de(e),a&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(e,r?"i":"")}function Q(t){var e,n,a=t.aoColumns,r=Vt.ext.type.search,o=!1,i=0;for(e=t.aoData.length;i<e;i++){var s=t.aoData[i];if(!s._aFilterData){var l=[],u=0;for(n=a.length;u<n;u++){if((o=a[u]).bSearchable){var c=y(t,i,u,"filter");r[o.sType]&&(c=r[o.sType](c)),null===c&&(c=""),"string"!=typeof c&&c.toString&&(c=c.toString())}else c="";c.indexOf&&-1!==c.indexOf("&")&&(fe.innerHTML=c,c=he?fe.textContent:fe.innerText),c.replace&&(c=c.replace(/[\r\n\u2028]/g,"")),l.push(c)}s._aFilterData=l,s._sFilterRow=l.join("  "),o=!0}}return o}function K(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var n=e.sTableId,a=e.aanFeatures.i,r=t("<div/>",{class:e.oClasses.sInfo,id:a?null:n+"_info"});return a||(e.aoDrawCallback.push({fn:nt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),r[0]}function nt(e){var n=e.aanFeatures.i;if(0!==n.length){var a=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),i=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?a.sInfo:a.sInfoEmpty;s!==i&&(l+=" "+a.sInfoFiltered),l=at(e,l+=a.sInfoPostFix),null!==(a=a.fnInfoCallback)&&(l=a.call(e.oInstance,e,r,o,i,s,l)),t(n).html(l)}}function at(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),i=-1===r;return e.replace(/_START_/g,n.call(t,a)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,i?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(t,i?1:Math.ceil(o/r)))}function rt(t){var e=t.iInitDisplayStart,n=t.aoColumns,a=t.oFeatures,r=t.bDeferLoading;if(t.bInitialised){H(t),N(t),O(t,t.aoHeader),O(t,t.aoFooter),dt(t,!0),a.bAutoWidth&&gt(t);var o=0;for(a=n.length;o<a;o++){var i=n[o];i.sWidth&&(i.nTh.style.width=St(i.sWidth))}Ot(t,null,"preInit",[t]),M(t),("ssp"!=(n=Ht(t))||r)&&("ajax"==n?B(t,[],function(n){var a=V(t,n);for(o=0;o<a.length;o++)D(t,a[o]);t.iInitDisplayStart=e,M(t),dt(t,!1),ot(t,n)}):(dt(t,!1),ot(t)))}else setTimeout(function(){rt(t)},200)}function ot(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&h(t),Ot(t,null,"plugin-init",[t,e]),Ot(t,"aoInitComplete","init",[t,e])}function it(t,e){e=parseInt(e,10),t._iDisplayLength=e,kt(t),Ot(t,null,"length",[t,e])}function st(e){var n=e.oClasses,a=e.sTableId,r=e.aLengthMenu,o=t.isArray(r[0]),i=o?r[0]:r;r=o?r[1]:r,o=t("<select/>",{name:a+"_length","aria-controls":a,class:n.sLengthSelect});for(var s=0,l=i.length;s<l;s++)o[0][s]=new Option("number"==typeof r[s]?e.fnFormatNumber(r[s]):r[s],i[s]);var u=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(u[0].id=a+"_length"),u.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),t("select",u).val(e._iDisplayLength).on("change.DT",function(n){it(e,t(this).val()),k(e)}),t(e.nTable).on("length.dt.DT",function(n,a,r){e===a&&t("select",u).val(r)}),u[0]}function lt(e){var n=e.sPaginationType,a=Vt.ext.pager[n],r="function"==typeof a,o=function(t){k(t)};n=t("<div/>").addClass(e.oClasses.sPaging+n)[0];var i=e.aanFeatures;return r||a.fnInit(e,n,o),i.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,n=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),u=-1===s;for(n=u?0:Math.ceil(n/s),s=u?1:Math.ceil(l/s),l=a(n,s),u=0,e=i.p.length;u<e;u++)Mt(t,"pageButton")(t,i.p[u],u,l,n,s)}else a.fnUpdate(t,o)},sName:"pagination"})),n}function ut(t,e,n){var a=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();return 0===o||-1===r?a=0:"number"==typeof e?(a=e*r)>o&&(a=0):"first"==e?a=0:"previous"==e?0>(a=0<=r?a-r:0)&&(a=0):"next"==e?a+r<o&&(a+=r):"last"==e?a=Math.floor((o-1)/r)*r:Ft(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==a,t._iDisplayStart=a,e&&(Ot(t,null,"page",[t]),n&&k(t)),e}function ct(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function dt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),Ot(e,null,"processing",[e,n])}function ft(e){var n=t(e.nTable);n.attr("role","grid");var a=e.oScroll;if(""===a.sX&&""===a.sY)return e.nTable;var r=a.sX,o=a.sY,i=e.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,u=t(n[0].cloneNode(!1)),c=t(n[0].cloneNode(!1)),d=n.children("tfoot");d.length||(d=null),u=t("<div/>",{class:i.sScrollWrapper}).append(t("<div/>",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?St(r):null:"100%"}).append(t("<div/>",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:a.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(t("<div/>",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?St(r):null}).append(n)),d&&u.append(t("<div/>",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?St(r):null:"100%"}).append(t("<div/>",{class:i.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var f=(n=u.children())[0];i=n[1];var h=d?n[2]:null;return r&&t(i).on("scroll.DT",function(t){t=this.scrollLeft,f.scrollLeft=t,d&&(h.scrollLeft=t)}),t(i).css(o&&a.bCollapse?"max-height":"height",o),e.nScrollHead=f,e.nScrollBody=i,e.nScrollFoot=h,e.aoDrawCallback.push({fn:ht,sName:"scrolling"}),u[0]}function ht(e){var n=e.oScroll,r=n.sX,o=n.sXInner,i=n.sY;n=n.iBarWidth;var s=t(e.nScrollHead),l=s[0].style,u=s.children("div"),c=u[0].style,d=u.children("table");u=e.nScrollBody;var f,g=t(u),b=u.style,m=t(e.nScrollFoot).children("div"),v=m.children("table"),S=t(e.nTHead),D=t(e.nTable),_=D[0],y=_.style,C=e.nTFoot?t(e.nTFoot):null,T=e.oBrowser,x=T.bScrollOversize,w=ae(e.aoColumns,"nTh"),I=[],A=[],R=[],F=[],j=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},L=u.scrollHeight>u.clientHeight;if(e.scrollBarVis!==L&&e.scrollBarVis!==a)e.scrollBarVis=L,h(e);else{if(e.scrollBarVis=L,D.children("thead, tfoot").remove(),C){var P=C.clone().prependTo(D),N=C.find("tr");P=P.find("tr")}var O=S.clone().prependTo(D);S=S.find("tr"),L=O.find("tr"),O.find("th, td").removeAttr("tabindex"),r||(b.width="100%",s[0].style.width="100%"),t.each(W(e,O),function(t,n){f=p(e,t),n.style.width=e.aoColumns[f].sWidth}),C&&pt(function(t){t.style.width=""},P),s=D.outerWidth(),""===r?(y.width="100%",x&&(D.find("tbody").height()>u.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=St(D.outerWidth()-n)),s=D.outerWidth()):""!==o&&(y.width=St(o),s=D.outerWidth()),pt(j,L),pt(function(e){R.push(e.innerHTML),I.push(St(t(e).css("width")))},L),pt(function(e,n){-1!==t.inArray(e,w)&&(e.style.width=I[n])},S),t(L).height(0),C&&(pt(j,P),pt(function(e){F.push(e.innerHTML),A.push(St(t(e).css("width")))},P),pt(function(t,e){t.style.width=A[e]},N),t(P).height(0)),pt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+R[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=I[e]},L),C&&pt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=A[e]},P),D.outerWidth()<s?(N=u.scrollHeight>u.offsetHeight||"scroll"==g.css("overflow-y")?s+n:s,x&&(u.scrollHeight>u.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=St(N-n)),""!==r&&""===o||Ft(e,1,"Possible column misalignment",6)):N="100%",b.width=St(N),l.width=St(N),C&&(e.nScrollFoot.style.width=St(N)),!i&&x&&(b.height=St(_.offsetHeight+n)),r=D.outerWidth(),d[0].style.width=St(r),c.width=St(r),o=D.height()>u.clientHeight||"scroll"==g.css("overflow-y"),c[i="padding"+(T.bScrollbarLeft?"Left":"Right")]=o?n+"px":"0px",C&&(v[0].style.width=St(r),m[0].style.width=St(r),m[0].style[i]=o?n+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),g.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(u.scrollTop=0)}}function pt(t,e,n){for(var a,r,o=0,i=0,s=e.length;i<s;){for(a=e[i].firstChild,r=n?n[i].firstChild:null;a;)1===a.nodeType&&(n?t(a,r,o):t(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;i++}}function gt(n){var a,r=n.nTable,o=n.aoColumns,i=n.oScroll,s=i.sY,l=i.sX,u=i.sXInner,c=o.length,d=m(n,"bVisible"),f=t("th",n.nTHead),g=r.getAttribute("width"),v=r.parentNode,S=!1,D=n.oBrowser;for(i=D.bScrollOversize,(a=r.style.width)&&-1!==a.indexOf("%")&&(g=a),a=0;a<d.length;a++){var _=o[d[a]];null!==_.sWidth&&(_.sWidth=bt(_.sWidthOrig,v),S=!0)}if(i||!S&&!l&&!s&&c==b(n)&&c==f.length)for(a=0;a<c;a++)null!==(d=p(n,a))&&(o[d].sWidth=St(f.eq(a).width()));else{(c=t(r).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var y=t("<tr/>").appendTo(c.find("tbody"));for(c.find("thead, tfoot").remove(),c.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),c.find("tfoot th, tfoot td").css("width",""),f=W(n,c.find("thead")[0]),a=0;a<d.length;a++)_=o[d[a]],f[a].style.width=null!==_.sWidthOrig&&""!==_.sWidthOrig?St(_.sWidthOrig):"",_.sWidthOrig&&l&&t(f[a]).append(t("<div/>").css({width:_.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a<d.length;a++)_=o[S=d[a]],t(mt(n,S)).clone(!1).append(_.sContentPadding).appendTo(y);for(t("[name]",c).removeAttr("name"),_=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(c).appendTo(v),l&&u?c.width(u):l?(c.css("width","auto"),c.removeAttr("width"),c.width()<v.clientWidth&&g&&c.width(v.clientWidth)):s?c.width(v.clientWidth):g&&c.width(g),a=s=0;a<d.length;a++)u=(v=t(f[a])).outerWidth()-v.width(),s+=v=D.bBounding?Math.ceil(f[a].getBoundingClientRect().width):v.outerWidth(),o[d[a]].sWidth=St(v-u);r.style.width=St(s),_.remove()}g&&(r.style.width=St(g)),!g&&!l||n._reszEvt||(r=function(){t(e).on("resize.DT-"+n.sInstance,ge(function(){h(n)}))},i?setTimeout(r,1e3):r(),n._reszEvt=!0)}function bt(e,a){return e?(a=(e=t("<div/>").css("width",St(e)).appendTo(a||n.body))[0].offsetWidth,e.remove(),a):0}function mt(e,n){var a=vt(e,n);if(0>a)return null;var r=e.aoData[a];return r.nTr?r.anCells[n]:t("<td/>").html(y(e,a,n,"display"))[0]}function vt(t,e){for(var n,a=-1,r=-1,o=0,i=t.aoData.length;o<i;o++)(n=(n=(n=y(t,o,e,"display")+"").replace(pe,"")).replace(/&nbsp;/g," ")).length>a&&(a=n.length,r=o);return r}function St(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Dt(e){var n=[],r=e.aoColumns,o=e.aaSortingFixed,i=t.isPlainObject(o),s=[],l=function(e){e.length&&!t.isArray(e[0])?s.push(e):t.merge(s,e)};for(t.isArray(o)&&l(o),i&&o.pre&&l(o.pre),l(e.aaSorting),i&&o.post&&l(o.post),e=0;e<s.length;e++){var u=s[e][0];for(o=0,i=(l=r[u].aDataSort).length;o<i;o++){var c=l[o],d=r[c].sType||"string";s[e]._idx===a&&(s[e]._idx=t.inArray(s[e][1],r[c].asSorting)),n.push({src:u,col:c,dir:s[e][1],index:s[e]._idx,type:d,formatter:Vt.ext.type.order[d+"-pre"]})}}return n}function _t(t){var e,n=[],a=Vt.ext.type.order,r=t.aoData,o=0,i=t.aiDisplayMaster;v(t);var s=Dt(t),l=0;for(e=s.length;l<e;l++){var u=s[l];u.formatter&&o++,wt(t,u.col)}if("ssp"!=Ht(t)&&0!==s.length){for(l=0,e=i.length;l<e;l++)n[i[l]]=l;o===s.length?i.sort(function(t,e){var a,o=s.length,i=r[t]._aSortData,l=r[e]._aSortData;for(a=0;a<o;a++){var u=s[a],c=i[u.col],d=l[u.col];if(0!==(c=c<d?-1:c>d?1:0))return"asc"===u.dir?c:-c}return(c=n[t])<(d=n[e])?-1:c>d?1:0}):i.sort(function(t,e){var o,i=s.length,l=r[t]._aSortData,u=r[e]._aSortData;for(o=0;o<i;o++){var c=s[o],d=l[c.col],f=u[c.col];if(0!==(d=(c=a[c.type+"-"+c.dir]||a["string-"+c.dir])(d,f)))return d}return(d=n[t])<(f=n[e])?-1:d>f?1:0})}t.bSorted=!0}function yt(t){var e=t.aoColumns,n=Dt(t);t=t.oLanguage.oAria;for(var a=0,r=e.length;a<r;a++){var o=e[a],i=o.asSorting,s=o.sTitle.replace(/<.*?>/g,""),l=o.nTh;l.removeAttribute("aria-sort"),o.bSortable&&(0<n.length&&n[0].col==a?(l.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),o=i[n[0].index+1]||i[0]):o=i[0],s+="asc"===o?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",s)}}function Ct(e,n,r,o){var i=e.aaSorting,s=e.aoColumns[n].asSorting,l=function(e,n){var r=e._idx;return r===a&&(r=t.inArray(e[1],s)),r+1<s.length?r+1:n?null:0};"number"==typeof i[0]&&(i=e.aaSorting=[i]),r&&e.oFeatures.bSortMulti?-1!==(r=t.inArray(n,ae(i,"0")))?(null===(n=l(i[r],!0))&&1===i.length&&(n=0),null===n?i.splice(r,1):(i[r][1]=s[n],i[r]._idx=n)):(i.push([n,s[0],0]),i[i.length-1]._idx=0):i.length&&i[0][0]==n?(n=l(i[0]),i.length=1,i[0][1]=s[n],i[0]._idx=n):(i.length=0,i.push([n,s[0]]),i[0]._idx=0),M(e),"function"==typeof o&&o(e)}function Tt(t,e,n,a){var r=t.aoColumns[n];Pt(e,{},function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(dt(t,!0),setTimeout(function(){Ct(t,n,e.shiftKey,a),"ssp"!==Ht(t)&&dt(t,!1)},0)):Ct(t,n,e.shiftKey,a))})}function xt(e){var n,a=e.aLastSort,r=e.oClasses.sSortColumn,o=Dt(e),i=e.oFeatures;if(i.bSort&&i.bSortClasses){for(i=0,n=a.length;i<n;i++){var s=a[i].src;t(ae(e.aoData,"anCells",s)).removeClass(r+(2>i?i+1:3))}for(i=0,n=o.length;i<n;i++)s=o[i].src,t(ae(e.aoData,"anCells",s)).addClass(r+(2>i?i+1:3))}e.aLastSort=o}function wt(t,e){var n,a=t.aoColumns[e],r=Vt.ext.order[a.sSortDataType];r&&(n=r.call(t.oInstance,t,e,g(t,e)));for(var o,i=Vt.ext.type.order[a.sType+"-pre"],s=0,l=t.aoData.length;s<l;s++)(a=t.aoData[s])._aSortData||(a._aSortData=[]),(!a._aSortData[e]||r)&&(o=r?n[s]:y(t,s,e,"sort"),a._aSortData[e]=i?i(o):o)}function It(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:K(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:K(e.aoPreSearchCols[n])}})};Ot(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function At(e,n,r){var o,i,s=e.aoColumns;if(n=function(n){if(n&&n.time){var l=Ot(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,l)&&!(0<(l=e.iStateDuration)&&n.time<+new Date-1e3*l||n.columns&&s.length!==n.columns.length)){if(e.oLoadedState=t.extend(!0,{},n),n.start!==a&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==a&&(e._iDisplayLength=n.length),n.order!==a&&(e.aaSorting=[],t.each(n.order,function(t,n){e.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)})),n.search!==a&&t.extend(e.oPreviousSearch,tt(n.search)),n.columns)for(o=0,i=n.columns.length;o<i;o++)(l=n.columns[o]).visible!==a&&(s[o].bVisible=l.visible),l.search!==a&&t.extend(e.aoPreSearchCols[o],tt(l.search));Ot(e,"aoStateLoaded","stateLoaded",[e,n])}}r()},e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,n);l!==a&&n(l)}else r()}function Rt(e){var n=Vt.settings;return-1!==(e=t.inArray(e,ae(n,"nTable")))?n[e]:null}function Ft(t,n,a,r){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see http://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(a);else if(n=(n=Vt.ext).sErrMode||n.errMode,t&&Ot(t,null,"error",[t,r,a]),"alert"==n)alert(a);else{if("throw"==n)throw Error(a);"function"==typeof n&&n(t,r,a)}}function jt(e,n,r,o){t.isArray(r)?t.each(r,function(a,r){t.isArray(r)?jt(e,n,r[0],r[1]):jt(e,n,r)}):(o===a&&(o=r),n[r]!==a&&(e[o]=n[r]))}function Lt(e,n,a){var r;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];t.isPlainObject(o)?(t.isPlainObject(e[r])||(e[r]={}),t.extend(!0,e[r],o)):a&&"data"!==r&&"aaData"!==r&&t.isArray(o)?e[r]=o.slice():e[r]=o}return e}function Pt(e,n,a){t(e).on("click.DT",n,function(n){t(e).blur(),a(n)}).on("keypress.DT",n,function(t){13===t.which&&(t.preventDefault(),a(t))}).on("selectstart.DT",function(){return!1})}function Nt(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function Ot(e,n,a,r){var o=[];return n&&(o=t.map(e[n].slice().reverse(),function(t,n){return t.fn.apply(e.oInstance,r)})),null!==a&&(n=t.Event(a+".dt"),t(e.nTable).trigger(n,r),o.push(n.result)),o}function kt(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;e>=n&&(e=n-a),e-=e%a,(-1===a||0>e)&&(e=0),t._iDisplayStart=e}function Mt(e,n){e=e.renderer;var a=Vt.ext.renderer[n];return t.isPlainObject(e)&&e[n]?a[e[n]]||a._:"string"==typeof e&&a[e]||a._}function Ht(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Et(t,e){var n=Re.numbers_length,a=Math.floor(n/2);return e<=n?t=oe(0,e):t<=a?((t=oe(0,n-2)).push("ellipsis"),t.push(e-1)):(t>=e-1-a?t=oe(e-(n-2),e):((t=oe(t-a+2,t+a-1)).push("ellipsis"),t.push(e-1)),t.splice(0,0,"ellipsis"),t.splice(0,0,0)),t.DT_el="span",t}function Wt(e){t.each({num:function(t){return Fe(t,e)},"num-fmt":function(t){return Fe(t,e,Zt)},"html-num":function(t){return Fe(t,e,Yt)},"html-num-fmt":function(t){return Fe(t,e,Yt,Zt)}},function(t,n){Ut.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(Ut.type.search[t+e]=Ut.type.search.html)})}function Bt(t){return function(){var e=[Rt(this[Vt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Vt.ext.internal[t].apply(this,e)}}var Ut,$t,Xt,Vt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new ve(t?Rt(this[Ut.iApiIndex]):this)},this.fnAddData=function(e,n){var r=this.api(!0);return e=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e),(n===a||n)&&r.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;t===a||t?e.draw(!1):(""!==r.sX||""!==r.sY)&&ht(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===a||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),o=(t=r.rows(t)).settings()[0],i=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,i),(n===a||n)&&r.draw(),i},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,o,i){o=this.api(!0),null===e||e===a?o.search(t,n,r,i):o.column(e).search(t,n,r,i),o.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==a){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==a||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==a?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){t=this.api(!0).page(t),(e===a||e)&&t.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),(n===a||n)&&t.columns.adjust().draw()},this.fnSettings=function(){return Rt(this[Ut.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,o){var i=this.api(!0);return n===a||null===n?i.row(e).data(t):i.cell(e,n).data(t),(o===a||o)&&i.columns.adjust(),(r===a||r)&&i.draw(),0},this.fnVersionCheck=Ut.fnVersionCheck;var n=this,r=e===a,c=this.length;for(var h in r&&(e={}),this.oApi=this.internal=Ut.internal,Vt.ext.internal)h&&(this[h]=Bt(h));return this.each(function(){var h,p={},g=1<c?Lt(p,e,!0):e,b=0;p=this.getAttribute("id");var m=!1,v=Vt.defaults,y=t(this);if("table"!=this.nodeName.toLowerCase())Ft(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(v),l(v.column),o(v,v,!0),o(v.column,v.column,!0),o(v,t.extend(g,y.data()),!0);var C=Vt.settings;for(b=0,h=C.length;b<h;b++){var T=C[b];if(T.nTable==this||T.nTHead&&T.nTHead.parentNode==this||T.nTFoot&&T.nTFoot.parentNode==this){var w=g.bRetrieve!==a?g.bRetrieve:v.bRetrieve;if(r||w)return T.oInstance;if(g.bDestroy!==a?g.bDestroy:v.bDestroy){T.oInstance.fnDestroy();break}return void Ft(T,0,"Cannot reinitialise DataTable",3)}if(T.sTableId==this.id){C.splice(b,1);break}}null!==p&&""!==p||(this.id=p="DataTables_Table_"+Vt.ext._unique++);var I=t.extend(!0,{},Vt.models.oSettings,{sDestroyWidth:y[0].style.width,sInstance:p,sTableId:p});I.nTable=this,I.oApi=n.internal,I.oInit=g,C.push(I),I.oInstance=1===n.length?n:y.dataTable(),s(g),i(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Lt(t.extend(!0,{},v),g),jt(I.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),jt(I,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),jt(I.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),jt(I.oLanguage,g,"fnInfoCallback"),Nt(I,"aoDrawCallback",g.fnDrawCallback,"user"),Nt(I,"aoServerParams",g.fnServerParams,"user"),Nt(I,"aoStateSaveParams",g.fnStateSaveParams,"user"),Nt(I,"aoStateLoadParams",g.fnStateLoadParams,"user"),Nt(I,"aoStateLoaded",g.fnStateLoaded,"user"),Nt(I,"aoRowCallback",g.fnRowCallback,"user"),Nt(I,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Nt(I,"aoHeaderCallback",g.fnHeaderCallback,"user"),Nt(I,"aoFooterCallback",g.fnFooterCallback,"user"),Nt(I,"aoInitComplete",g.fnInitComplete,"user"),Nt(I,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),I.rowIdFn=x(g.rowId),u(I);var A=I.oClasses;t.extend(A,Vt.ext.classes,g.oClasses),y.addClass(A.sTable),I.iInitDisplayStart===a&&(I.iInitDisplayStart=g.iDisplayStart,I._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(I.bDeferLoading=!0,p=t.isArray(g.iDeferLoading),I._iRecordsDisplay=p?g.iDeferLoading[0]:g.iDeferLoading,I._iRecordsTotal=p?g.iDeferLoading[1]:g.iDeferLoading);var R=I.oLanguage;t.extend(!0,R,g.oLanguage),R.sUrl&&(t.ajax({dataType:"json",url:R.sUrl,success:function(e){i(e),o(v.oLanguage,e),t.extend(!0,R,e),rt(I)},error:function(){rt(I)}}),m=!0),null===g.asStripeClasses&&(I.asStripeClasses=[A.sStripeOdd,A.sStripeEven]),p=I.asStripeClasses;var F=y.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(p,function(t,e){return F.hasClass(t)}))&&(t("tbody tr",this).removeClass(p.join(" ")),I.asDestroyStripes=p.slice()),p=[],0!==(C=this.getElementsByTagName("thead")).length&&(E(I.aoHeader,C[0]),p=W(I)),null===g.aoColumns)for(C=[],b=0,h=p.length;b<h;b++)C.push(null);else C=g.aoColumns;for(b=0,h=C.length;b<h;b++)d(I,p?p[b]:null);if(S(I,g.aoColumnDefs,C,function(t,e){f(I,t,e)}),F.length){var j=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(F[0]).children("th, td").each(function(t,e){var n=I.aoColumns[t];if(n.mData===t){var r=j(e,"sort")||j(e,"order");e=j(e,"filter")||j(e,"search"),null===r&&null===e||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:a,type:null!==r?t+".@data-"+r:a,filter:null!==e?t+".@data-"+e:a},f(I,t))}})}var L=I.oFeatures;p=function(){if(g.aaSorting===a){var e=I.aaSorting;for(b=0,h=e.length;b<h;b++)e[b][1]=I.aoColumns[b].asSorting[0]}xt(I),L.bSort&&Nt(I,"aoDrawCallback",function(){if(I.bSorted){var e=Dt(I),n={};t.each(e,function(t,e){n[e.src]=e.dir}),Ot(I,null,"order",[I,e,n]),yt(I)}}),Nt(I,"aoDrawCallback",function(){(I.bSorted||"ssp"===Ht(I)||L.bDeferRender)&&xt(I)},"sc"),e=y.children("caption").each(function(){this._captionSide=t(this).css("caption-side")});var n=y.children("thead");if(0===n.length&&(n=t("<thead/>").appendTo(y)),I.nTHead=n[0],0===(n=y.children("tbody")).length&&(n=t("<tbody/>").appendTo(y)),I.nTBody=n[0],0===(n=y.children("tfoot")).length&&0<e.length&&(""!==I.oScroll.sX||""!==I.oScroll.sY)&&(n=t("<tfoot/>").appendTo(y)),0===n.length||0===n.children().length?y.addClass(A.sNoFooter):0<n.length&&(I.nTFoot=n[0],E(I.aoFooter,I.nTFoot)),g.aaData)for(b=0;b<g.aaData.length;b++)D(I,g.aaData[b]);else(I.bDeferLoading||"dom"==Ht(I))&&_(I,t(I.nTBody).children("tr"));I.aiDisplay=I.aiDisplayMaster.slice(),I.bInitialised=!0,!1===m&&rt(I)},g.bStateSave?(L.bStateSave=!0,Nt(I,"aoDrawCallback",It,"state_save"),At(I,g,p)):p()}}),n=null,this},Jt={},qt=/[\r\n\u2028]/g,Yt=/<.*?>/g,Gt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,zt=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Zt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qt=function(t){return!t||!0===t||"-"===t},Kt=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},te=function(t,e){return Jt[e]||(Jt[e]=new RegExp(de(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Jt[e],"."):t},ee=function(t,e,n){var a="string"==typeof t;return!!Qt(t)||(e&&a&&(t=te(t,e)),n&&a&&(t=t.replace(Zt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ne=function(t,e,n){return!!Qt(t)||((Qt(t)||"string"==typeof t)&&!!ee(t.replace(Yt,""),e,n)||null)},ae=function(t,e,n){var r=[],o=0,i=t.length;if(n!==a)for(;o<i;o++)t[o]&&t[o][e]&&r.push(t[o][e][n]);else for(;o<i;o++)t[o]&&r.push(t[o][e]);return r},re=function(t,e,n,r){var o=[],i=0,s=e.length;if(r!==a)for(;i<s;i++)t[e[i]][n]&&o.push(t[e[i]][n][r]);else for(;i<s;i++)o.push(t[e[i]][n]);return o},oe=function(t,e){var n=[];if(e===a){e=0;var r=t}else r=e,e=t;for(t=e;t<r;t++)n.push(t);return n},ie=function(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e},se=function(t){t:{if(!(2>t.length))for(var e=t.slice().sort(),n=e[0],a=1,r=e.length;a<r;a++){if(e[a]===n){e=!1;break t}n=e[a]}e=!0}if(e)return t.slice();e=[],r=t.length;var o,i=0;a=0;t:for(;a<r;a++){for(n=t[a],o=0;o<i;o++)if(e[o]===n)continue t;e.push(n),i++}return e};Vt.util={throttle:function(t,e){var n,r,o=e!==a?e:200;return function(){var e=this,i=+new Date,s=arguments;n&&i<n+o?(clearTimeout(r),r=setTimeout(function(){n=a,t.apply(e,s)},o)):(n=i,t.apply(e,s))}},escapeRegex:function(t){return t.replace(zt,"\\$1")}};var le=function(t,e,n){t[e]!==a&&(t[n]=t[e])},ue=/\[.*?\]$/,ce=/\(\)$/,de=Vt.util.escapeRegex,fe=t("<div>")[0],he=fe.textContent!==a,pe=/<.*?>/g,ge=Vt.util.throttle,be=[],me=Array.prototype,ve=function(e,n){if(!(this instanceof ve))return new ve(e,n);var a=[],r=function(e){(e=function(e){var n,a=Vt.settings,r=t.map(a,function(t,e){return t.nTable});if(!e)return[];if(e.nTable&&e.oApi)return[e];if(e.nodeName&&"table"===e.nodeName.toLowerCase()){var o=t.inArray(e,r);return-1!==o?[a[o]]:null}return e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e):e instanceof t&&(n=e),n?n.map(function(e){return-1!==(o=t.inArray(this,r))?a[o]:null}).toArray():void 0)}(e))&&a.push.apply(a,e)};if(t.isArray(e))for(var o=0,i=e.length;o<i;o++)r(e[o]);else r(e);this.context=se(a),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},ve.extend(this,this,be)};Vt.Api=ve,t.extend(ve.prototype,{any:function(){return 0!==this.count()},concat:me.concat,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 ve(e[t],this[t]):null},filter:function(t){var e=[];if(me.filter)e=me.filter.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new ve(this.context,e)},flatten:function(){var t=[];return new ve(this.context,t.concat.apply(t,this.toArray()))},join:me.join,indexOf:me.indexOf||function(t,e){e=e||0;for(var n=this.length;e<n;e++)if(this[e]===t)return e;return-1},iterator:function(t,e,n,r){var o,i,s,l=[],u=this.context,c=this.selector;"string"==typeof t&&(r=n,n=e,e=t,t=!1);var d=0;for(o=u.length;d<o;d++){var f=new ve(u[d]);if("table"===e){var h=n.call(f,u[d],d);h!==a&&l.push(h)}else if("columns"===e||"rows"===e)(h=n.call(f,u[d],this[d],d))!==a&&l.push(h);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e){var p=this[d];"column-rows"===e&&(s=Ce(u[d],c.opts));var g=0;for(i=p.length;g<i;g++)h=p[g],(h="cell"===e?n.call(f,u[d],h.row,h.column,d,g):n.call(f,u[d],h,d,g,s))!==a&&l.push(h)}}return l.length||r?((e=(t=new ve(u,t?l.concat.apply([],l):l)).selector).rows=c.rows,e.cols=c.cols,e.opts=c.opts,t):this},lastIndexOf:me.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(me.map)e=me.map.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)e.push(t.call(this,this[n],n));return new ve(this.context,e)},pluck:function(t){return this.map(function(e){return e[t]})},pop:me.pop,push:me.push,reduce:me.reduce||function(t,e){return c(this,t,e,0,this.length,1)},reduceRight:me.reduceRight||function(t,e){return c(this,t,e,this.length-1,-1,-1)},reverse:me.reverse,selector:null,shift:me.shift,slice:function(){return new ve(this.context,this)},sort:me.sort,splice:me.splice,toArray:function(){return me.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new ve(this.context,se(this))},unshift:me.unshift}),ve.extend=function(t,e,n){if(n.length&&e&&(e instanceof ve||e.__dt_wrapper)){var a,r=function(t,e,n){return function(){var a=e.apply(t,arguments);return ve.extend(a,a,n.methodExt),a}},o=0;for(a=n.length;o<a;o++){var i=n[o];e[i.name]="function"===i.type?r(t,i.val,i):"object"===i.type?{}:i.val,e[i.name].__dt_wrapper=!0,ve.extend(t,e[i.name],i.propExt)}}},ve.register=$t=function(e,n){if(t.isArray(e))for(var a=0,r=e.length;a<r;a++)ve.register(e[a],n);else{r=e.split(".");var o,i=be;for(e=0,a=r.length;e<a;e++){var s=(o=-1!==r[e].indexOf("()"))?r[e].replace("()",""):r[e];t:{for(var l=0,u=i.length;l<u;l++)if(i[l].name===s){l=i[l];break t}l=null}l||(l={name:s,val:{},methodExt:[],propExt:[],type:"object"},i.push(l)),e===a-1?(l.val=n,l.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):i=o?l.methodExt:l.propExt}}},ve.registerPlural=Xt=function(e,n,r){ve.register(e,r),ve.register(n,function(){var e=r.apply(this,arguments);return e===this?this:e instanceof ve?e.length?t.isArray(e[0])?new ve(e.context,e[0]):e[0]:a:e})};$t("tables()",function(e){return e?new ve(function(e,n){if("number"==typeof e)return[n[e]];var a=t.map(n,function(t,e){return t.nTable});return t(a).filter(e).map(function(e){return e=t.inArray(this,a),n[e]}).toArray()}(e,this.context)):this}),$t("table()",function(t){var e=(t=this.tables(t)).context;return e.length?new ve(e[0]):t}),Xt("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Xt("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Xt("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Xt("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Xt("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),$t("draw()",function(t){return this.iterator("table",function(e){"page"===t?k(e):("string"==typeof t&&(t="full-hold"!==t),M(e,!1===t))})}),$t("page()",function(t){return t===a?this.page.info().page:this.iterator("table",function(e){ut(e,t)})}),$t("page.info()",function(t){if(0===this.context.length)return a;var e=(t=this.context[0])._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,r=t.fnRecordsDisplay(),o=-1===n;return{page:o?0:Math.floor(e/n),pages:o?1:Math.ceil(r/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===Ht(t)}}),$t("page.len()",function(t){return t===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",function(e){it(e,t)})});var Se=function(t,e,n){if(n){var a=new ve(t);a.one("draw",function(){n(a.ajax.json())})}if("ssp"==Ht(t))M(t,e);else{dt(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),B(t,[],function(n){A(t);for(var a=0,r=(n=V(t,n)).length;a<r;a++)D(t,n[a]);M(t,e),dt(t,!1)})}};$t("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),$t("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),$t("ajax.reload()",function(t,e){return this.iterator("table",function(n){Se(n,!1===e,t)})}),$t("ajax.url()",function(e){var n=this.context;return e===a?0===n.length?a:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e})}),$t("ajax.url().load()",function(t,e){return this.iterator("table",function(n){Se(n,!1===e,t)})});var De=function(e,n,r,o,i){var s,l,u,c=[],d=typeof n;for(n&&"string"!==d&&"function"!==d&&n.length!==a||(n=[n]),d=0,l=n.length;d<l;d++){var f=n[d]&&n[d].split&&!n[d].match(/[\[\(:]/)?n[d].split(","):[n[d]],h=0;for(u=f.length;h<u;h++)(s=r("string"==typeof f[h]?t.trim(f[h]):f[h]))&&s.length&&(c=c.concat(s))}if((e=Ut.selector[e]).length)for(d=0,l=e.length;d<l;d++)c=e[d](o,i,c);return se(c)},_e=function(e){return e||(e={}),e.filter&&e.search===a&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},ye=function(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Ce=function(e,n){var a=[],r=e.aiDisplay,o=e.aiDisplayMaster,i=n.search,s=n.order;if(n=n.page,"ssp"==Ht(e))return"removed"===i?[]:oe(0,o.length);if("current"==n)for(s=e._iDisplayStart,e=e.fnDisplayEnd();s<e;s++)a.push(r[s]);else if("current"==s||"applied"==s){if("none"==i)a=o.slice();else if("applied"==i)a=r.slice();else if("removed"==i){var l={};for(s=0,e=r.length;s<e;s++)l[r[s]]=null;a=t.map(o,function(t){return l.hasOwnProperty(t)?null:t})}}else if("index"==s||"original"==s)for(s=0,e=e.aoData.length;s<e;s++)"none"==i?a.push(s):(-1===(o=t.inArray(s,r))&&"removed"==i||0<=o&&"applied"==i)&&a.push(s);return a};$t("rows()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=_e(n);var r=this.iterator("table",function(r){return function(e,n,r){var o;return De("row",n,function(n){var i=Kt(n),s=e.aoData;if(null!==i&&!r)return[i];if(o||(o=Ce(e,r)),null!==i&&-1!==t.inArray(i,o))return[i];if(null===n||n===a||""===n)return o;if("function"==typeof n)return t.map(o,function(t){var e=s[t];return n(t,e._aData,e.nTr)?t:null});if(n.nodeName){i=n._DT_RowIndex;var l=n._DT_CellIndex;return i!==a?s[i]&&s[i].nTr===n?[i]:[]:l?s[l.row]&&s[l.row].nTr===n.parentNode?[l.row]:[]:(i=t(n).closest("*[data-dt-row]")).length?[i.data("dt-row")]:[]}return"string"==typeof n&&"#"===n.charAt(0)&&(i=e.aIds[n.replace(/^#/,"")])!==a?[i.idx]:(i=ie(re(e.aoData,o,"nTr")),t(i).filter(n).map(function(){return this._DT_RowIndex}).toArray())},e,r)}(r,e,n)},1);return r.selector.rows=e,r.selector.opts=n,r}),$t("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||a},1)}),$t("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return re(t.aoData,e,"_aData")},1)}),Xt("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)}),Xt("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){F(e,n,t)})}),Xt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Xt("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a<r;a++)for(var o=0,i=this[a].length;o<i;o++){var s=n[a].rowIdFn(n[a].aoData[this[a][o]]._aData);e.push((!0===t?"#":"")+s)}return new ve(n,e)}),Xt("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,n,r){var o,i,s=e.aoData,l=s[n];s.splice(n,1);var u=0;for(o=s.length;u<o;u++){var c=s[u],d=c.anCells;if(null!==c.nTr&&(c.nTr._DT_RowIndex=u),null!==d)for(c=0,i=d.length;c<i;c++)d[c]._DT_CellIndex.row=u}R(e.aiDisplayMaster,n),R(e.aiDisplay,n),R(t[r],n,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,kt(e),(n=e.rowIdFn(l._aData))!==a&&delete e.aIds[n]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),$t("rows.add()",function(e){var n=this.iterator("table",function(t){var n,a=[],r=0;for(n=e.length;r<n;r++){var o=e[r];o.nodeName&&"TR"===o.nodeName.toUpperCase()?a.push(_(t,o)[0]):a.push(D(t,o))}return a},1),a=this.rows(-1);return a.pop(),t.merge(a,n),a}),$t("row()",function(t,e){return ye(this.rows(t,e))}),$t("row().data()",function(e){var n=this.context;if(e===a)return n.length&&this.length?n[0].aoData[this[0]]._aData:a;var r=n[0].aoData[this[0]];return r._aData=e,t.isArray(e)&&r.nTr.id&&w(n[0].rowId)(e,r.nTr.id),F(n[0],this[0],"data"),this}),$t("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),$t("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()?_(t,e)[0]:D(t,e)});return this.row(n[0])});var Te=function(t,e){var n=t.context;n.length&&(t=n[0].aoData[e!==a?e:t[0]])&&t._details&&(t._details.remove(),t._detailsShow=a,t._details=a)},xe=function(t,e){var n=t.context;n.length&&t.length&&((t=n[0].aoData[t[0]])._details&&((t._detailsShow=e)?t._details.insertAfter(t.nTr):t._details.detach(),we(n[0])))},we=function(t){var e=new ve(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<ae(n,"_details").length&&(e.on("draw.dt.DT_details",function(a,r){t===r&&e.rows({page:"current"}).eq(0).each(function(t){(t=n[t])._detailsShow&&t._details.insertAfter(t.nTr)})}),e.on("column-visibility.dt.DT_details",function(e,a,r,o){if(t===a)for(a=b(a),r=0,o=n.length;r<o;r++)(e=n[r])._details&&e._details.children("td[colspan]").attr("colspan",a)}),e.on("destroy.dt.DT_details",function(a,r){if(t===r)for(a=0,r=n.length;a<r;a++)n[a]._details&&Te(e,a)}))};$t("row().child()",function(e,n){var r=this.context;return e===a?r.length&&this.length?r[0].aoData[this[0]]._details:a:(!0===e?this.child.show():!1===e?Te(this):r.length&&this.length&&function(e,n,a,r){var o=[],i=function(n,a){if(t.isArray(n)||n instanceof t)for(var r=0,s=n.length;r<s;r++)i(n[r],a);else n.nodeName&&"tr"===n.nodeName.toLowerCase()?o.push(n):(r=t("<tr><td/></tr>").addClass(a),t("td",r).addClass(a).html(n)[0].colSpan=b(e),o.push(r[0]))};i(a,r),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(r[0],r[0].aoData[this[0]],e,n),this)}),$t(["row().child.show()","row().child().show()"],function(t){return xe(this,!0),this}),$t(["row().child.hide()","row().child().hide()"],function(){return xe(this,!1),this}),$t(["row().child.remove()","row().child().remove()"],function(){return Te(this),this}),$t("row().child.isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});var Ie=/^([^:]+):(name|visIdx|visible)$/,Ae=function(t,e,n,a,r){n=[],a=0;for(var o=r.length;a<o;a++)n.push(y(t,r[a],e));return n};$t("columns()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=_e(n);var r=this.iterator("table",function(a){return function(e,n,a){var r=e.aoColumns,o=ae(r,"sName"),i=ae(r,"nTh");return De("column",n,function(n){var s=Kt(n);if(""===n)return oe(r.length);if(null!==s)return[0<=s?s:r.length+s];if("function"==typeof n){var l=Ce(e,a);return t.map(r,function(t,a){return n(a,Ae(e,a,0,0,l),i[a])?a:null})}var u="string"==typeof n?n.match(Ie):"";if(u)switch(u[2]){case"visIdx":case"visible":if(0>(s=parseInt(u[1],10))){var c=t.map(r,function(t,e){return t.bVisible?e:null});return[c[c.length+s]]}return[p(e,s)];case"name":return t.map(o,function(t,e){return t===u[1]?e:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(s=t(i).filter(n).map(function(){return t.inArray(this,i)}).toArray()).length||!n.nodeName?s:(s=t(n).closest("*[data-dt-column]")).length?[s.data("dt-column")]:[]},e,a)}(a,e,n)},1);return r.selector.cols=e,r.selector.opts=n,r}),Xt("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Xt("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Xt("columns().data()","column().data()",function(){return this.iterator("column-rows",Ae,1)}),Xt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Xt("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,a,r,o){return re(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),Xt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,a,r){return re(t.aoData,r,"anCells",e)},1)}),Xt("columns().visible()","column().visible()",function(e,n){var r=this,o=this.iterator("column",function(n,r){if(e===a)return n.aoColumns[r].bVisible;var o,i=n.aoColumns,s=i[r],l=n.aoData;if(e!==a&&s.bVisible!==e){if(e){var u=t.inArray(!0,ae(i,"bVisible"),r+1);for(i=0,o=l.length;i<o;i++){var c=l[i].nTr;n=l[i].anCells,c&&c.insertBefore(n[r],n[u]||null)}}else t(ae(n.aoData,"anCells",r)).detach();s.bVisible=e}});return e!==a&&this.iterator("table",function(o){O(o,o.aoHeader),O(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",b(o)),It(o),r.iterator("column",function(t,a){Ot(t,null,"column-visibility",[t,a,e,n])}),(n===a||n)&&r.columns.adjust()}),o}),Xt("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?g(e,n):n},1)}),$t("columns.adjust()",function(){return this.iterator("table",function(t){h(t)},1)}),$t("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return p(n,e);if("fromData"===t||"toVisible"===t)return g(n,e)}}),$t("column()",function(t,e){return ye(this.columns(t,e))});$t("cells()",function(e,n,r){if(t.isPlainObject(e)&&(e.row===a?(r=e,e=null):(r=n,n=null)),t.isPlainObject(n)&&(r=n,n=null),null===n||n===a)return this.iterator("table",function(n){return function(e,n,r){var o,i,s,l,u,c,d,f=e.aoData,h=Ce(e,r),p=ie(re(f,h,"anCells")),g=t([].concat.apply([],p)),b=e.aoColumns.length;return De("cell",n,function(n){var r="function"==typeof n;if(null===n||n===a||r){for(i=[],s=0,l=h.length;s<l;s++)for(o=h[s],u=0;u<b;u++)c={row:o,column:u},r?(d=f[o],n(c,y(e,o,u),d.anCells?d.anCells[u]:null)&&i.push(c)):i.push(c);return i}return t.isPlainObject(n)?n.column!==a&&n.row!==a&&-1!==t.inArray(n.row,h)?[n]:[]:(r=g.filter(n).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray()).length||!n.nodeName?r:(d=t(n).closest("*[data-dt-row]")).length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[]},e,r)}(n,e,_e(r))});var o,i,s,l,u=r?{page:r.page,order:r.order,search:r.search}:{},c=this.columns(n,u),d=this.rows(e,u);return u=this.iterator("table",function(t,e){for(t=[],o=0,i=d[e].length;o<i;o++)for(s=0,l=c[e].length;s<l;s++)t.push({row:d[e][o],column:c[e][s]});return t},1),u=r&&r.selected?this.cells(u,r):u,t.extend(u.selector,{cols:n,rows:e,opts:r}),u}),Xt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:a},1)}),$t("cells().data()",function(){return this.iterator("cell",function(t,e,n){return y(t,e,n)},1)}),Xt("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,n,a){return e.aoData[n][t][a]},1)}),Xt("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,a){return y(e,n,a,t)},1)}),Xt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:g(t,n)}},1)}),Xt("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,a){F(e,n,t,a)})}),$t("cell()",function(t,e,n){return ye(this.cells(t,e,n))}),$t("cell().data()",function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?y(e[0],n[0].row,n[0].column):a:(C(e[0],n[0].row,n[0].column,t),F(e[0],n[0].row,"data",n[0].column),this)}),$t("order()",function(e,n){var r=this.context;return e===a?0!==r.length?r[0].aaSorting:a:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),$t("order.listener()",function(t,e,n){return this.iterator("table",function(a){Tt(a,t,e,n)})}),$t("order.fixed()",function(e){if(!e){var n=this.context;return n=n.length?n[0].aaSortingFixed:a,t.isArray(n)?{pre:n}:n}return this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)})}),$t(["columns().order()","column().order()"],function(e){var n=this;return this.iterator("table",function(a,r){var o=[];t.each(n[r],function(t,n){o.push([n,e])}),a.aaSorting=o})}),$t("search()",function(e,n,r,o){var i=this.context;return e===a?0!==i.length?i[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&q(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),Xt("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(i,s){var l=i.aoPreSearchCols;if(e===a)return l[s].sSearch;i.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),q(i,i.oPreviousSearch,1))})}),$t("state()",function(){return this.context.length?this.context[0].oSavedState:null}),$t("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),$t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),$t("state.save()",function(){return this.iterator("table",function(t){It(t)})}),Vt.versionCheck=Vt.fnVersionCheck=function(t){for(var e,n,a=Vt.version.split("."),r=0,o=(t=t.split(".")).length;r<o;r++)if((e=parseInt(a[r],10)||0)!==(n=parseInt(t[r],10)||0))return e>n;return!0},Vt.isDataTable=Vt.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof Vt.Api||(t.each(Vt.settings,function(e,r){e=r.nScrollHead?t("table",r.nScrollHead)[0]:null;var o=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&e!==n&&o!==n||(a=!0)}),a)},Vt.tables=Vt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var a=t.map(Vt.settings,function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable});return n?new ve(a):a},Vt.camelToHungarian=o,$t("$()",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){$t(n+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var a=t(this.tables().nodes());return a[n].apply(a,e),this})}),$t("clear()",function(){return this.iterator("table",function(t){A(t)})}),$t("settings()",function(){return new ve(this.context,this.context)}),$t("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),$t("data()",function(){return this.iterator("table",function(t){return ae(t.aoData,"_aData")}).flatten()}),$t("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r=a.nTableWrapper.parentNode,o=a.oClasses,i=a.nTable,s=a.nTBody,l=a.nTHead,u=a.nTFoot,c=t(i);s=t(s);var d,f=t(a.nTableWrapper),h=t.map(a.aoData,function(t){return t.nTr});a.bDestroying=!0,Ot(a,"aoDestroyCallback","destroy",[a]),n||new ve(a).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),i!=l.parentNode&&(c.children("thead").detach(),c.append(l)),u&&i!=u.parentNode&&(c.children("tfoot").detach(),c.append(u)),a.aaSorting=[],a.aaSortingFixed=[],xt(a),t(h).removeClass(a.asStripeClasses.join(" ")),t("th, td",l).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),s.children().detach(),s.append(h),c[l=n?"remove":"detach"](),f[l](),!n&&r&&(r.insertBefore(i,a.nTableReinsertBefore),c.css("width",a.sDestroyWidth).removeClass(o.sTable),(d=a.asDestroyStripes.length)&&s.children().each(function(e){t(this).addClass(a.asDestroyStripes[e%d])})),-1!==(r=t.inArray(a,Vt.settings))&&Vt.settings.splice(r,1)})}),t.each(["column","row","cell"],function(t,e){$t(e+"s().every()",function(t){var n=this.selector.opts,r=this;return this.iterator(e,function(o,i,s,l,u){t.call(r[e](i,"cell"===e?s:n,"cell"===e?n:a),i,s,l,u)})})}),$t("i18n()",function(e,n,r){var o=this.context[0];return(e=x(e)(o.oLanguage))===a&&(e=n),r!==a&&t.isPlainObject(e)&&(e=e[r]!==a?e[r]:e._),e.replace("%d",r)}),Vt.version="1.10.20",Vt.settings=[],Vt.models={},Vt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Vt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Vt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Vt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},Vt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Vt.defaults),Vt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(Vt.defaults.column),Vt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:a,oAjaxData:a,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ht(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ht(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,a=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+a:Math.min(e+t,this._iRecordsDisplay):!o||n>a||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Vt.ext=Ut={buttons:{},classes:{},build:"bs/dt-1.10.20/cr-1.5.2",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Vt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Vt.version},t.extend(Ut,{afnFiltering:Ut.search,aTypes:Ut.type.detect,ofnSearch:Ut.type.search,oSort:Ut.type.order,afnSortData:Ut.order,aoFeatures:Ut.feature,oApi:Ut.internal,oStdClasses:Ut.classes,oPagination:Ut.pager}),t.extend(Vt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Re=Vt.ext.pager;t.extend(Re,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Et(t,e)]},simple_numbers:function(t,e){return["previous",Et(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Et(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Et(t,e),"last"]},_numbers:Et,numbers_length:7}),t.extend(!0,Vt.ext.renderer,{pageButton:{_:function(e,r,o,i,s,l){var u,c,d=e.oClasses,f=e.oLanguage.oPaginate,h=e.oLanguage.oAria.paginate||{},p=0,g=function(n,a){var r,i=d.sPageButtonDisabled,b=function(t){ut(e,t.data.action,!0)},m=0;for(r=a.length;m<r;m++){var v=a[m];if(t.isArray(v)){var S=t("<"+(v.DT_el||"div")+"/>").appendTo(n);g(S,v)}else{switch(u=null,c=v,S=e.iTabIndex,v){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":u=f.sFirst,0===s&&(S=-1,c+=" "+i);break;case"previous":u=f.sPrevious,0===s&&(S=-1,c+=" "+i);break;case"next":u=f.sNext,s===l-1&&(S=-1,c+=" "+i);break;case"last":u=f.sLast,s===l-1&&(S=-1,c+=" "+i);break;default:u=v+1,c=s===v?d.sPageButtonActive:""}null!==u&&(Pt(S=t("<a>",{class:d.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":h[v],"data-dt-idx":p,tabindex:S,id:0===o&&"string"==typeof v?e.sTableId+"_"+v:null}).html(u).appendTo(n),{action:v},b),p++)}}};try{var b=t(r).find(n.activeElement).data("dt-idx")}catch(t){}g(t(r).empty(),i),b!==a&&t(r).find("[data-dt-idx="+b+"]").focus()}}}),t.extend(Vt.ext.type.detect,[function(t,e){return e=e.oLanguage.sDecimal,ee(t,e)?"num"+e:null},function(t,e){return(!t||t instanceof Date||Gt.test(t))&&(null!==(e=Date.parse(t))&&!isNaN(e)||Qt(t))?"date":null},function(t,e){return e=e.oLanguage.sDecimal,ee(t,e,!0)?"num-fmt"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ne(t,e)?"html-num"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ne(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return Qt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Vt.ext.type.search,{html:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," ").replace(Yt,""):""},string:function(t){return Qt(t)?t:"string"==typeof t?t.replace(qt," "):t}});var Fe=function(t,e,n,a){return 0===t||t&&"-"!==t?(e&&(t=te(t,e)),t.replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),1*t):-1/0};t.extend(Ut.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Qt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Qt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Wt(""),t.extend(!0,Vt.ext.renderer,{header:{_:function(e,n,a,r){t(e.nTable).on("order.dt.DT",function(t,o,i,s){e===o&&(t=a.idx,n.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:a.sSortingClass))})},jqueryui:function(e,n,a,r){t("<div/>").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",function(t,o,i,s){e===o&&(t=a.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:a.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[t]?r.sSortJUIAsc:"desc"==s[t]?r.sSortJUIDesc:a.sSortingClassJUI))})}}});var je=function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};return Vt.render={number:function(t,e,n,a,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var i=0>o?"-":"",s=parseFloat(o);return isNaN(s)?je(o):(s=s.toFixed(n),o=Math.abs(s),s=parseInt(o,10),o=n?e+(o-s).toFixed(n).substring(2):"",i+(a||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(r||""))}}},text:function(){return{display:je,filter:je}}},t.extend(Vt.ext.internal,{_fnExternApiFunc:Bt,_fnBuildAjax:B,_fnAjaxUpdate:U,_fnAjaxParameters:$,_fnAjaxUpdateDraw:X,_fnAjaxDataSrc:V,_fnAddColumn:d,_fnColumnOptions:f,_fnAdjustColumnSizing:h,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:b,_fnGetColumns:m,_fnColumnTypes:v,_fnApplyColumnDefs:S,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:i,_fnBrowserDetect:u,_fnAddData:D,_fnAddTr:_,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==a?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,a){return t.inArray(a,e.aoData[n].anCells)},_fnGetCellData:y,_fnSetCellData:C,_fnSplitObjNotation:T,_fnGetObjectDataFn:x,_fnSetObjectDataFn:w,_fnGetDataMaster:I,_fnClearTable:A,_fnDeleteIndex:R,_fnInvalidate:F,_fnGetRowElements:j,_fnCreateTr:L,_fnBuildHead:N,_fnDrawHead:O,_fnDraw:k,_fnReDraw:M,_fnAddOptionsHtml:H,_fnDetectHeader:E,_fnGetUniqueThs:W,_fnFeatureHtmlFilter:J,_fnFilterComplete:q,_fnFilterCustom:Y,_fnFilterColumn:G,_fnFilter:z,_fnFilterCreateSearch:Z,_fnEscapeRegex:de,_fnFilterData:Q,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:at,_fnInitialise:rt,_fnInitComplete:ot,_fnLengthChange:it,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ut,_fnFeatureHtmlProcessing:ct,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ft,_fnScrollDraw:ht,_fnApplyToChildren:pt,_fnCalculateColumnWidths:gt,_fnThrottle:ge,_fnConvertToWidth:bt,_fnGetWidestNode:mt,_fnGetMaxLenString:vt,_fnStringToCss:St,_fnSortFlatten:Dt,_fnSort:_t,_fnSortAria:yt,_fnSortListener:Ct,_fnSortAttachListener:Tt,_fnSortingClasses:xt,_fnSortData:wt,_fnSaveState:It,_fnLoadState:At,_fnSettingsFromNode:Rt,_fnLog:Ft,_fnMap:jt,_fnBindAction:Pt,_fnCallbackReg:Nt,_fnCallbackFire:Ot,_fnLengthOverflow:kt,_fnRenderer:Mt,_fnDataSource:Ht,_fnRowAttributes:P,_fnExtend:Lt,_fnCalculateEnd:function(){}}),t.fn.dataTable=Vt,Vt.$=t,t.fn.dataTableSettings=Vt.settings,t.fn.dataTableExt=Vt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Vt,function(e,n){t.fn.DataTable[e]=n}),t.fn.dataTable}),($jscomp=$jscomp||{}).scope={},$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(var a=t.length,r=0;r<a;r++){var o=t[r];if(e.call(n,o,r,t))return{i:r,v:o}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,a){if(e){for(n=$jscomp.global,t=t.split("."),a=0;a<t.length-1;a++){var r=t[a];r in n||(n[r]={}),n=n[r]}(e=e(a=n[t=t[t.length-1]]))!=a&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.find",function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).v}},"es6","es3"),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){var r=t.fn.dataTable;return t.extend(!0,r.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),t.extend(r.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"}),r.ext.renderer.pageButton.bootstrap=function(e,o,i,s,l,u){var c,d,f=new r.Api(e),h=e.oClasses,p=e.oLanguage.oPaginate,g=e.oLanguage.oAria.paginate||{},b=0,m=function(n,a){var r,o=function(e){e.preventDefault(),t(e.currentTarget).hasClass("disabled")||f.page()==e.data.action||f.page(e.data.action).draw("page")},s=0;for(r=a.length;s<r;s++){var v=a[s];if(t.isArray(v))m(n,v);else{switch(d=c="",v){case"ellipsis":c="&#x2026;",d="disabled";break;case"first":c=p.sFirst,d=v+(0<l?"":" disabled");break;case"previous":c=p.sPrevious,d=v+(0<l?"":" disabled");break;case"next":c=p.sNext,d=v+(l<u-1?"":" disabled");break;case"last":c=p.sLast,d=v+(l<u-1?"":" disabled");break;default:c=v+1,d=l===v?"active":""}if(c){var S=t("<li>",{class:h.sPageButton+" "+d,id:0===i&&"string"==typeof v?e.sTableId+"_"+v:null}).append(t("<a>",{href:"#","aria-controls":e.sTableId,"aria-label":g[v],"data-dt-idx":b,tabindex:e.iTabIndex}).html(c)).appendTo(n);e.oApi._fnBindAction(S,{action:v},o),b++}}}};try{var v=t(o).find(n.activeElement).data("dt-idx")}catch(t){}m(t(o).empty().html('<ul class="pagination"/>').children("ul"),s),v!==a&&t(o).find("[data-dt-idx="+v+"]").focus()},r}),
/*!
   Copyright 2010-2019 SpryMedia Ltd.

 This source file is free software, available under the following license:
   MIT license - http://datatables.net/license/mit

 This source file is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.

 For details please refer to: http://www.datatables.net
 ColReorder 1.5.2
 ©2010-2019 SpryMedia Ltd - datatables.net/license
*/
function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){function r(t){for(var e=[],n=0,a=t.length;n<a;n++)e[t[n]]=n;return e}function o(t,e,n){e=t.splice(e,1)[0],t.splice(n,0,e)}function i(t,e,n){for(var a=[],r=0,o=t.childNodes.length;r<o;r++)1==t.childNodes[r].nodeType&&a.push(t.childNodes[r]);e=a[e],null!==n?t.insertBefore(e,a[n]):t.appendChild(e)}var s=t.fn.dataTable;t.fn.dataTableExt.oApi.fnColReorder=function(e,n,s,l,u){var c,d,f=e.aoColumns.length,h=function(t,e,n){if(t[e]&&"function"!=typeof t[e]){var a=t[e].split("."),r=a.shift();isNaN(1*r)||(t[e]=n[1*r]+"."+a.join("."))}};if(n!=s)if(0>n||n>=f)this.oApi._fnLog(e,1,"ColReorder 'from' index is out of bounds: "+n);else if(0>s||s>=f)this.oApi._fnLog(e,1,"ColReorder 'to' index is out of bounds: "+s);else{var p=[],g=0;for(c=f;g<c;g++)p[g]=g;o(p,n,s);var b=r(p);for(g=0,c=e.aaSorting.length;g<c;g++)e.aaSorting[g][0]=b[e.aaSorting[g][0]];if(null!==e.aaSortingFixed)for(g=0,c=e.aaSortingFixed.length;g<c;g++)e.aaSortingFixed[g][0]=b[e.aaSortingFixed[g][0]];for(g=0,c=f;g<c;g++){var m=e.aoColumns[g];for(p=0,d=m.aDataSort.length;p<d;p++)m.aDataSort[p]=b[m.aDataSort[p]];m.idx=b[m.idx]}for(t.each(e.aLastSort,function(t,n){e.aLastSort[t].src=b[n.src]}),g=0,c=f;g<c;g++)"number"==typeof(m=e.aoColumns[g]).mData?m.mData=b[m.mData]:t.isPlainObject(m.mData)&&(h(m.mData,"_",b),h(m.mData,"filter",b),h(m.mData,"sort",b),h(m.mData,"type",b));if(e.aoColumns[n].bVisible){for(h=this.oApi._fnColumnIndexToVisible(e,n),d=null,g=s<n?s:s+1;null===d&&g<f;)d=this.oApi._fnColumnIndexToVisible(e,g),g++;for(g=0,c=(p=e.nTHead.getElementsByTagName("tr")).length;g<c;g++)i(p[g],h,d);if(null!==e.nTFoot)for(g=0,c=(p=e.nTFoot.getElementsByTagName("tr")).length;g<c;g++)i(p[g],h,d);for(g=0,c=e.aoData.length;g<c;g++)null!==e.aoData[g].nTr&&i(e.aoData[g].nTr,h,d)}for(o(e.aoColumns,n,s),g=0,c=f;g<c;g++)e.oApi._fnColumnOptions(e,g,{});for(o(e.aoPreSearchCols,n,s),g=0,c=e.aoData.length;g<c;g++){if(m=(d=e.aoData[g]).anCells)for(o(m,n,s),p=0,h=m.length;p<h;p++)m[p]&&m[p]._DT_CellIndex&&(m[p]._DT_CellIndex.column=p);"dom"!==d.src&&t.isArray(d._aData)&&o(d._aData,n,s)}for(g=0,c=e.aoHeader.length;g<c;g++)o(e.aoHeader[g],n,s);if(null!==e.aoFooter)for(g=0,c=e.aoFooter.length;g<c;g++)o(e.aoFooter[g],n,s);for((u||u===a)&&t.fn.dataTable.Api(e).rows().invalidate(),g=0,c=f;g<c;g++)t(e.aoColumns[g].nTh).off(".DT"),this.oApi._fnSortAttachListener(e,e.aoColumns[g].nTh,g);t(e.oInstance).trigger("column-reorder.dt",[e,{from:n,to:s,mapping:b,drop:l,iFrom:n,iTo:s,aiInvertMapping:b}])}};var l=function(e,n){if((e=new t.fn.dataTable.Api(e).settings()[0])._colReorder)return e._colReorder;!0===n&&(n={});var a=t.fn.dataTable.camelToHungarian;return a&&(a(l.defaults,l.defaults,!0),a(l.defaults,n||{})),this.s={dt:null,enable:null,init:t.extend(!0,{},l.defaults,n),fixed:0,fixedRight:0,reorderCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]},this.dom={drag:null,pointer:null},this.s.enable=this.s.init.bEnable,this.s.dt=e,this.s.dt._colReorder=this,this._fnConstruct(),this};return t.extend(l.prototype,{fnEnable:function(t){if(!1===t)return fnDisable();this.s.enable=!0},fnDisable:function(){this.s.enable=!1},fnReset:function(){return this._fnOrderColumns(this.fnOrder()),this},fnGetCurrentOrder:function(){return this.fnOrder()},fnOrder:function(e,n){var o,i=[],s=this.s.dt.aoColumns;if(e===a){for(n=0,o=s.length;n<o;n++)i.push(s[n]._ColReorder_iOrigCol);return i}if(n){for(s=this.fnOrder(),n=0,o=e.length;n<o;n++)i.push(t.inArray(e[n],s));e=i}return this._fnOrderColumns(r(e)),this},fnTranspose:function(e,n){n||(n="toCurrent");var a=this.fnOrder(),r=this.s.dt.aoColumns;return"toCurrent"===n?t.isArray(e)?t.map(e,function(e){return t.inArray(e,a)}):t.inArray(e,a):t.isArray(e)?t.map(e,function(t){return r[t]._ColReorder_iOrigCol}):r[e]._ColReorder_iOrigCol},_fnConstruct:function(){var e,n=this,a=this.s.dt.aoColumns.length,o=this.s.dt.nTable;for(this.s.init.iFixedColumns&&(this.s.fixed=this.s.init.iFixedColumns),this.s.init.iFixedColumnsLeft&&(this.s.fixed=this.s.init.iFixedColumnsLeft),this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0,this.s.init.fnReorderCallback&&(this.s.reorderCallback=this.s.init.fnReorderCallback),e=0;e<a;e++)e>this.s.fixed-1&&e<a-this.s.fixedRight&&this._fnMouseListener(e,this.s.dt.aoColumns[e].nTh),this.s.dt.aoColumns[e]._ColReorder_iOrigCol=e;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(t,e){n._fnStateSave.call(n,e)},"ColReorder_State");var i=null;if(this.s.init.aiOrder&&(i=this.s.init.aiOrder.slice()),this.s.dt.oLoadedState&&void 0!==this.s.dt.oLoadedState.ColReorder&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length&&(i=this.s.dt.oLoadedState.ColReorder),i)if(n.s.dt._bInitComplete)a=r(i),n._fnOrderColumns.call(n,a);else{var s=!1;t(o).on("draw.dt.colReorder",function(){if(!n.s.dt._bInitComplete&&!s){s=!0;var t=r(i);n._fnOrderColumns.call(n,t)}})}else this._fnSetColumnIndexes();t(o).on("destroy.dt.colReorder",function(){t(o).off("destroy.dt.colReorder draw.dt.colReorder"),t.each(n.s.dt.aoColumns,function(e,n){t(n.nTh).off(".ColReorder"),t(n.nTh).removeAttr("data-column-index")}),n.s.dt._colReorder=null,n.s=null})},_fnOrderColumns:function(e){var n=!1;if(e.length!=this.s.dt.aoColumns.length)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");else{for(var a=0,r=e.length;a<r;a++){var i=t.inArray(a,e);a!=i&&(o(e,i,a),this.s.dt.oInstance.fnColReorder(i,a,!0,!1),n=!0)}this._fnSetColumnIndexes(),n&&(t.fn.dataTable.Api(this.s.dt).rows().invalidate(),""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY||this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))}},_fnStateSave:function(e){var n,a,r=this.s.dt.aoColumns;if(e.ColReorder=[],e.aaSorting){for(n=0;n<e.aaSorting.length;n++)e.aaSorting[n][0]=r[e.aaSorting[n][0]]._ColReorder_iOrigCol;var o=t.extend(!0,[],e.aoSearchCols);for(n=0,a=r.length;n<a;n++){var i=r[n]._ColReorder_iOrigCol;e.aoSearchCols[i]=o[n],e.abVisCols[i]=r[n].bVisible,e.ColReorder.push(i)}}else if(e.order){for(n=0;n<e.order.length;n++)e.order[n][0]=r[e.order[n][0]]._ColReorder_iOrigCol;for(o=t.extend(!0,[],e.columns),n=0,a=r.length;n<a;n++)i=r[n]._ColReorder_iOrigCol,e.columns[i]=o[n],e.ColReorder.push(i)}},_fnMouseListener:function(e,n){var a=this;t(n).on("mousedown.ColReorder",function(t){a.s.enable&&1===t.which&&a._fnMouseDown.call(a,t,n)}).on("touchstart.ColReorder",function(t){a.s.enable&&a._fnMouseDown.call(a,t,n)})},_fnMouseDown:function(e,r){var o=this,i=t(e.target).closest("th, td").offset();(r=parseInt(t(r).attr("data-column-index"),10))!==a&&(this.s.mouse.startX=this._fnCursorPosition(e,"pageX"),this.s.mouse.startY=this._fnCursorPosition(e,"pageY"),this.s.mouse.offsetX=this._fnCursorPosition(e,"pageX")-i.left,this.s.mouse.offsetY=this._fnCursorPosition(e,"pageY")-i.top,this.s.mouse.target=this.s.dt.aoColumns[r].nTh,this.s.mouse.targetIndex=r,this.s.mouse.fromIndex=r,this._fnRegions(),t(n).on("mousemove.ColReorder touchmove.ColReorder",function(t){o._fnMouseMove.call(o,t)}).on("mouseup.ColReorder touchend.ColReorder",function(t){o._fnMouseUp.call(o,t)}))},_fnMouseMove:function(t){var e=this;if(null===this.dom.drag){if(5>Math.pow(Math.pow(this._fnCursorPosition(t,"pageX")-this.s.mouse.startX,2)+Math.pow(this._fnCursorPosition(t,"pageY")-this.s.mouse.startY,2),.5))return;this._fnCreateDragNode()}this.dom.drag.css({left:this._fnCursorPosition(t,"pageX")-this.s.mouse.offsetX,top:this._fnCursorPosition(t,"pageY")-this.s.mouse.offsetY});var n=this.s.mouse.toIndex;t=this._fnCursorPosition(t,"pageX");for(var a=function(t){for(;0<=t;){if(0>=--t)return null;if(e.s.aoTargets[t+1].x!==e.s.aoTargets[t].x)return e.s.aoTargets[t]}},r=function(){for(var t=0;t<e.s.aoTargets.length-1;t++)if(e.s.aoTargets[t].x!==e.s.aoTargets[t+1].x)return e.s.aoTargets[t]},o=function(){for(var t=e.s.aoTargets.length-1;0<t;t--)if(e.s.aoTargets[t].x!==e.s.aoTargets[t-1].x)return e.s.aoTargets[t]},i=1;i<this.s.aoTargets.length;i++){var s=a(i);s||(s=r());var l=s.x+(this.s.aoTargets[i].x-s.x)/2;if(this._fnIsLtr()){if(t<l){var u=s;break}}else if(t>l){u=s;break}}u?(this.dom.pointer.css("left",u.x),this.s.mouse.toIndex=u.to):(this.dom.pointer.css("left",o().x),this.s.mouse.toIndex=o().to),this.s.init.bRealtime&&n!==this.s.mouse.toIndex&&(this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex),this.s.mouse.fromIndex=this.s.mouse.toIndex,""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY||this.s.dt.oInstance.fnAdjustColumnSizing(!1),this._fnRegions())},_fnMouseUp:function(e){t(n).off(".ColReorder"),null!==this.dom.drag&&(this.dom.drag.remove(),this.dom.pointer.remove(),this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!0),this._fnSetColumnIndexes(),""===this.s.dt.oScroll.sX&&""===this.s.dt.oScroll.sY||this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))},_fnRegions:function(){var e=this.s.dt.aoColumns,n=this._fnIsLtr();this.s.aoTargets.splice(0,this.s.aoTargets.length);var a=t(this.s.dt.nTable).offset().left,r=[];t.each(e,function(e,o){if(o.bVisible&&"none"!==o.nTh.style.display){var i=(o=t(o.nTh)).offset().left;n&&(i+=o.outerWidth()),r.push({index:e,bound:i}),a=i}else r.push({index:e,bound:a})});var o=r[0];for(e=t(e[o.index].nTh).outerWidth(),this.s.aoTargets.push({to:0,x:o.bound-e}),o=0;o<r.length;o++){var i=(e=r[o]).index;e.index<this.s.mouse.fromIndex&&i++,this.s.aoTargets.push({to:i,x:e.bound})}0!==this.s.fixedRight&&this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight),0!==this.s.fixed&&this.s.aoTargets.splice(0,this.s.fixed)},_fnCreateDragNode:function(){var e=""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY,n=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh,a=n.parentNode,r=a.parentNode,o=r.parentNode,i=t(n).clone();this.dom.drag=t(o.cloneNode(!1)).addClass("DTCR_clonedTable").append(t(r.cloneNode(!1)).append(t(a.cloneNode(!1)).append(i[0]))).css({position:"absolute",top:0,left:0,width:t(n).outerWidth(),height:t(n).outerHeight()}).appendTo("body"),this.dom.pointer=t("<div></div>").addClass("DTCR_pointer").css({position:"absolute",top:e?t("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:t(this.s.dt.nTable).offset().top,height:e?t("div.dataTables_scroll",this.s.dt.nTableWrapper).height():t(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){t.each(this.s.dt.aoColumns,function(e,n){t(n.nTh).attr("data-column-index",e)})},_fnCursorPosition:function(t,e){return-1!==t.type.indexOf("touch")?t.originalEvent.touches[0][e]:t[e]},_fnIsLtr:function(){return"rtl"!==t(this.s.dt.nTable).css("direction")}}),l.defaults={aiOrder:null,bEnable:!0,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null},l.version="1.5.2",t.fn.dataTable.ColReorder=l,t.fn.DataTable.ColReorder=l,"function"==typeof t.fn.dataTable&&"function"==typeof t.fn.dataTableExt.fnVersionCheck&&t.fn.dataTableExt.fnVersionCheck("1.10.8")?t.fn.dataTableExt.aoFeatures.push({fnInit:function(t){var e=t.oInstance;return t._colReorder?e.oApi._fnLog(t,1,"ColReorder attempted to initialise twice. Ignoring second"):(e=t.oInit,new l(t,e.colReorder||e.oColReorder||{})),null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download"),t(n).on("preInit.dt.colReorder",function(e,n){if("dt"===e.namespace){e=n.oInit.colReorder;var a=s.defaults.colReorder;(e||a)&&(a=t.extend({},e,a),!1!==e&&new l(n,a))}}),t.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(t){t._colReorder.fnReset()})}),t.fn.dataTable.Api.register("colReorder.order()",function(t,e){return t?this.iterator("table",function(n){n._colReorder.fnOrder(t,e)}):this.context.length?this.context[0]._colReorder.fnOrder():null}),t.fn.dataTable.Api.register("colReorder.transpose()",function(t,e){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(t,e):t}),t.fn.dataTable.Api.register("colReorder.move()",function(t,e,n,a){return this.context.length&&(this.context[0]._colReorder.s.dt.oInstance.fnColReorder(t,e,n,a),this.context[0]._colReorder._fnSetColumnIndexes()),this}),t.fn.dataTable.Api.register("colReorder.enable()",function(t){return this.iterator("table",function(e){e._colReorder&&e._colReorder.fnEnable(t)})}),t.fn.dataTable.Api.register("colReorder.disable()",function(){return this.iterator("table",function(t){t._colReorder&&t._colReorder.fnDisable()})}),l});$.fn.dataTableExt.aTypes.unshift(function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)?"ip-address":null}),$.fn.dataTable.Api.register("order.neutral()",function(){return this.iterator("table",function(t){t.aaSorting.length=0,t.aiDisplay.sort(function(t,n){return t-n}),t.aiDisplayMaster.sort(function(t,n){return t-n})})});/**!
 * easy-pie-chart
 * Lightweight plugin to render simple, animated and retina optimized pie charts
 *
 * @license
 * @author Robert Fleischmann <rendro87@gmail.com> (https://rendro.github.io/easy-pie-chart/)
 * @version 2.1.7
 **/
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){var t=function(e,t){var a,n=document.createElement("canvas");e.appendChild(n),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var i=n.getContext("2d");n.width=n.height=t.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,n.style.width=n.style.height=[t.size,"px"].join(""),n.width=n.height=t.size*r,i.scale(r,r)),i.translate(t.size/2,t.size/2),i.rotate((t.rotate/180-.5)*Math.PI);var o=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(o-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(e,t,a){var n=(a=Math.min(Math.max(-1,a||0),1))<=0;i.beginPath(),i.arc(0,0,o,0,2*Math.PI*a,n),i.strokeStyle=e,i.lineWidth=t,i.stroke()},d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},h=function(){t.scaleColor&&function(){var e,a;i.lineWidth=1,i.fillStyle=t.scaleColor,i.save();for(var n=24;n>0;--n)n%6==0?(a=t.scaleLength,e=0):(a=.6*t.scaleLength,e=t.scaleLength-a),i.fillRect(-t.size/2+e,0,a,1),i.rotate(Math.PI/12);i.restore()}(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return i},this.clear=function(){i.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var n;t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?a?i.putImageData(a,0,0):(h(),a=i.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),h()):this.clear(),i.lineCap=t.lineCap,n="function"==typeof t.barColor?t.barColor(e):t.barColor,s(n,t.lineWidth,e/100)}.bind(this),this.animate=function(e,a){var n=Date.now();t.onStart(e,a);var i=function(){var r=Math.min(Date.now()-n,t.animate.duration),o=t.easing(this,r,e,a-e,t.animate.duration);this.draw(o),t.onStep(e,a,o),r>=t.animate.duration?t.onStop(e,a):d(i)}.bind(this);d(i)}.bind(this)};e.fn.easyPieChart=function(a){return this.each(function(){var n;e.data(this,"easyPieChart")||(n=e.extend({},a,e(this).data()),e.data(this,"easyPieChart",new function(e,a){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t+a:-n/2*(--t*(t-2)-1)+a},onStart:function(e,t){},onStep:function(e,t,a){},onStop:function(e,t){}};n.renderer=t;var i={},r=0,o=function(){for(var t in this.el=e,this.options=i,n)n.hasOwnProperty(t)&&(i[t]=a&&void 0!==a[t]?a[t]:n[t],"function"==typeof i[t]&&(i[t]=i[t].bind(this)));"string"==typeof i.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[i.easing])?i.easing=jQuery.easing[i.easing]:i.easing=n.easing,"number"==typeof i.animate&&(i.animate={duration:i.animate,enabled:!0}),"boolean"!=typeof i.animate||i.animate||(i.animate={duration:1e3,enabled:i.animate}),this.renderer=new i.renderer(e,i),this.renderer.draw(r),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),i.animate.enabled?this.renderer.animate(r,e):this.renderer.draw(e),r=e,this}.bind(this),this.disableAnimation=function(){return i.animate.enabled=!1,this},this.enableAnimation=function(){return i.animate.enabled=!0,this},o()}(this,n)))})}});/*!
 * clipboard.js v1.7.1
 * https://zenorocha.github.io/clipboard.js
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),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},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
/*!
 * Bootstrap Contextmenu 0.3.3 (https://github.com/sydcanem/bootstrap-contextmenu)
 * Copyright 2015 James Santos
 * Licensed under MIT
 */
!function(e,t){e.fn.contextMenu=function(n){var a=e("#content"),r=".dropdown-submenu";return this.each(function(){e(this).on("contextmenu",function(a){if(e(n.menuSelector).find(r).removeClass("right"),!e(a.target).parents("tr").hasClass("directory_go_up")&&!e(a.target).parents("tr").find("td.dataTables_empty").length)return a.ctrlKey||a.altKey||a.shiftKey?(a.preventDefault(),a.stopPropagation(),"function"==typeof t.getSelection&&t.getSelection().removeAllRanges(),void e(a.target).parents("tr").find('td.ui_checked_checkbox input[type="checkbox"]').trigger("click")):(___contextmenu__triggered___=1,e(n.menuSelector).data("invokedOn",e(a.target)).show(0,!1,function(){n.menuSelectorTriggered.call(this,e(this).data("invokedOn"),e(a.target)),delete ___contextmenu__triggered___}).css({position:"absolute",left:i(e("body").data("mousePageX"),"width","scrollLeft",a),top:i(e("body").data("mousePageY"),"height","scrollTop",a)}).off("click").on("click",function(t){if(e(t.target).parent().hasClass("disabled")||e(t.target).parents("[data-go_up-target]").hasClass("disabled")||e(t.target).is("[data-prevent-default]")||e(t.target).is(".dropdown-menu")||e(t.target).is(".divider"))t.preventDefault();else{e(this).hide();var a=e(this).data("invokedOn"),r=e(t.target);n.menuSelected.call(this,a,r),t.preventDefault()}}),e("body").off("click.fmcmenu"),e("body").on("click.fmcmenu",function(t){e(t.target).closest(e(n.menuSelector)).length||(e(n.menuSelector).hide(),delete ___contextmenu__triggered___)}),!1);a.preventDefault()})});function i(i,o,c,l){var d=e(t)[c](),s=parseInt(a.css("margin-left")),u=content_page_calc_width(),_=content_page_calc_height(),f=i-("width"===o?s:0)+d,g=e(n.menuSelector).width(),h=e(n.menuSelector).height(),m=e($v__fm__container_fluid).offset().top,p=e($v__fm__container_fluid).offset().left;if("height"===o){f-=m;var v=h/1.02;_<i+v&&v<i-m&&(f-=h)}var y=1.8*g;return"width"===o&&u<i+y&&y<i-p&&(f-=g,e(n.menuSelector).find(r).addClass("right")),f}}}(jQuery,window);/*!
 * Copyright 2012, Chris Wanstrath
 * Released under the MIT License
 * https://github.com/defunkt/jquery-pjax
 */
!function(e){function t(t,a,r){return r=g(a,r),this.on("click.pjax",t,function(t){var a=r;a.container||((a=e.extend({},r)).container=e(this).attr("data-pjax")),n(t,a)})}function n(t,n,a){a=g(n,a);var i=t.currentTarget,o=e(i);if("A"!==i.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(t.which>1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||location.protocol!==i.protocol||location.hostname!==i.hostname||i.href.indexOf("#")>-1&&v(i)==v(location)||t.isDefaultPrevented())){var s={url:i.href,container:o.attr("data-pjax"),target:i},c=e.extend({},s,a),l=e.Event("pjax:click");o.trigger(l,[c]),l.isDefaultPrevented()||(r(c),t.preventDefault(),o.trigger("pjax:clicked",[c]))}}function a(t,n,a){a=g(n,a);var i=t.currentTarget,o=e(i);if("FORM"!==i.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(o.attr("method")||"GET").toUpperCase(),url:o.attr("action"),container:o.attr("data-pjax"),target:i};if("GET"!==s.type&&void 0!==window.FormData){var c=o.attr("enctype")&&o.attr("enctype").indexOf("form-data")>-1?0:1;s.data=c?o.serialize():new FormData(o[0]),s.processData=!1,s.contentType=!1}else{if(o.find(":file").length)return;s.data=o.serializeArray()}r(e.extend({},s,a)),t.preventDefault()}function r(t){t=e.extend(!0,{},e.ajaxSettings,r.defaults,t),e.isFunction(t.url)&&(t.url=t.url());var n=_(t.url).hash,a=e.type(t.container);if("string"!==a)throw"expected string value for 'container' option; got "+a;var i,s=t.context=e(t.container);if(!s.length)throw"the container selector '"+t.container+"' did not match anything";function c(n,a,r){r||(r={}),r.relatedTarget=t.target;var i=e.Event(n,r);return s.trigger(i,a),!i.isDefaultPrevented()}t.data||(t.data={}),t.beforeSend=function(e,a){if("GET"!==a.type&&(a.timeout=0),e.setRequestHeader("X-PJAX","true"),e.setRequestHeader("X-PJAX-Container",t.container),e.setRequestHeader("X-PJAX-URL",t.url),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module()),!c("pjax:beforeSend",[e,a]))return!1;a.timeout>0&&(i=setTimeout(function(){c("pjax:timeout",[e,t])&&e.abort("timeout")},a.timeout),a.timeout=0);var r=_(a.url);n&&(r.hash=n),t.requestUrl=m(r)},t.complete=function(e,n){i&&clearTimeout(i),c("pjax:complete",[e,n,t]),c("pjax:end",[e,t])},t.error=function(e,n,a){var r=y("",e,t),i=c("pjax:error",[e,n,a,t]);"GET"==t.type&&"abort"!==n&&i&&o(r.url)},t.success=function(a,i,o){if(Test.strContains(a,v___page_signin_form))v___available_session=0;else if(!v___theme_reload){var l=a.substring(0,2048),u=l.match(/.*<title.*>(ConfigServer Security.*Firewall)/),p=l.match(/.*<html.*data-csf='(.*?)'/);if(u&&u[1]&&!p)return vars.pjax.event.end=0,plugins.messenger.post('<i class="fa fa-lg fa-fw fa-info-circle"></i>'+theme_language("notify_patching_module_style").replace("$1","<em>"+theme_language("csf")+"</em>")+" "+theme_language("global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',300,"info","csf_patching"),theme.veiled(1),setTimeout(function(){v___module="csf",window.history.pushState({},!1,link_type_convert(v___location_prefix+"/csf/index.cgi",2)),theme_title_generate()},200),void setTimeout(function(){location.reload()},5e3);var d=r.state,h="function"==typeof e.pjax.defaults.version?e.pjax.defaults.version():e.pjax.defaults.version,m=o.getResponseHeader("X-PJAX-Version"),v=y(a,o,t),g=_(v.url);if(n&&(g.hash=n,v.url=g.href),h&&m&&h!==m)return theme_open_new_tab(v.url),void page_remove_progress();if(!v.contents){var x=XHR.headers(o)[1];return a.includes("data-predownload")||!Test.strContains(x,"text/html")&&!Test.strContains(x,"text/plain")?(theme_open_new_tab(g.href),setTimeout(function(){page_remove_progress()},300)):core.curModule("theme")||core.curModule("change-user")||core.curModuleFile("webmin","change_theme.cgi")?window.location.href=location.origin+v___location_prefix:theme_open_new_tab(v.url),void page_remove_progress()}if(r.state={id:t.id||f(),url:v.url,title:v.title,container:t.container,fragment:t.fragment,timeout:t.timeout},t.push||t.replace){var j=(v.url.endsWith("/")||Test.strContains(v.url,".cgi")?v.url:v.url+"/")+(Test.strContains(v.url,$__theme_navigation)?"":(Test.strContains(v.url,"?")?"&":"?")+$__theme_navigation);1===v___theme_pjax_call?("/"===v.url&&(j=link_type_convert(v___location_prefix+"/sysinfo.cgi",2)),window.history.replaceState(r.state,v.title,j)):link_type_convert(location.href,1)===r.state.url&&(!vars.pjax.page_cache||r.state.url.includes("/csf")||r.state.url.includes("/"+v___module_file_manager)||r.state.url.includes("/webmin/edit_themes.cgi")||r.state.url.includes("/settings-user.cgi"))||window.history.pushState(r.state,v.title,j)}if(e.contains(t.container,document.activeElement))try{document.activeElement.blur()}catch(e){}c("pjax:beforeReplace",[v.contents,t],{state:r.state,previousState:d}),vars.pjax_replace_contents&&s.html(v.contents),vars.pjax_replace_contents=1;var w=s.find("input[autofocus], textarea[autofocus]").last()[0];w&&document.activeElement!==w&&w.focus(),function(t){if(!t)return;var n=e("script[src]");t.each(function(){var t=this.src,a=n.filter(function(){return this.src===t});if(!a.length){var r=document.createElement("script"),i=e(this).attr("type");i&&(r.type=i),r.src=e(this).attr("src"),document.head.appendChild(r)}})}(v.scripts);var b=t.scrollTo;if(n){var T=decodeURIComponent(n.slice(1)),S=document.getElementById(T)||document.getElementsByName(T)[0];S&&(b=e(S).offset().top)}"number"==typeof b&&e(window).scrollTop(b),c("pjax:success",[a,i,o,t])}},r.state||(r.state={id:f(),url:window.location.href,title:document.title,container:t.container,fragment:t.fragment,timeout:t.timeout},window.history.replaceState(r.state,document.title)),d(r.xhr),r.options=t;var l=r.xhr=e.ajax(t);return l.readyState>0&&!v___theme_ajax_error&&(t.push&&!t.replace&&(1!==v___theme_pjax_call&&S(r.state.id,[t.container,h(s)]),v___location_previous=location.href,v___module_previous=v___module),c("pjax:start",[l,t]),c("pjax:send",[l,t])),r.xhr}function i(t,n){var a={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return r(e.extend(a,g(t,n)))}function o(e){window.history.replaceState(null,"",r.state.url),window.location.replace(e)}var s=!0,c=window.location.href,l=window.history.state;function u(t){var n=t.state.url&&(t.state.url.includes("/csf")||!vars.pjax.page_cache||t.state.url.includes("/"+v___module_file_manager)||t.state.url.includes("/webmin/edit_themes.cgi")||t.state.url.includes("/settings-user.cgi"));if(e(".__page").hasClass("progressing")||n)n&&get_pjax_content(t.state.url);else{if(e(".container-fluid-loading").length)return theme.veiled(1),void theme_reload(1);s||d(r.xhr);var a,i=r.state,l=t.state;if(l&&l.container){if(s&&c==l.url)return;if(i){if(i.id===l.id)return;a=i.id<l.id?"forward":"back"}var u=w[l.id]||[],p=u[0]||l.container,f=e(p),m=u[1];if(f.length){i&&function(e,t,n){var a,i;w[t]=n,"forward"===e?(a=T,i=b):(a=b,i=T);a.push(t),(t=i.pop())&&delete w[t];E(a,r.defaults.maxCacheLength)}(a,i.id,[p,h(f)]);var _=e.Event("pjax:popstate",{state:l,hasContents:m?1:0,direction:a});f.trigger(_);var v={id:l.id,url:l.url,container:p,push:!1,fragment:l.fragment,timeout:l.timeout,scrollTo:!1};if(m){f.trigger("pjax:start",[null,v]),r.state=l,l.title&&(document.title=l.title);var g=e.Event("pjax:beforeReplace",{state:l,previousState:i});f.trigger(g,[m,v]),f.html(m),f.trigger("pjax:end",[null,v])}else r(v);f[0].offsetHeight,theme_title_generate()}else o(location.href)}s=!1}}function p(t){var n=e.isFunction(t.url)?t.url():t.url,a=t.type?t.type.toUpperCase():"GET",r=e("<form>",{method:"GET"===a?"GET":"POST",action:n,style:"display:none"});"GET"!==a&&"POST"!==a&&r.append(e("<input>",{type:"hidden",name:"_method",value:a.toLowerCase()}));var i=t.data;if("string"==typeof i)e.each(i.split("&"),function(t,n){var a=n.split("=");r.append(e("<input>",{type:"hidden",name:a[0],value:a[1]}))});else if(e.isArray(i))e.each(i,function(t,n){r.append(e("<input>",{type:"hidden",name:n.name,value:n.value}))});else if("object"==typeof i){var o;for(o in i)r.append(e("<input>",{type:"hidden",name:o,value:i[o]}))}e(document.body).append(r),r.submit()}function d(t){t&&t.readyState<4&&(t.onreadystatechange=e.noop,t.abort())}function f(){return(new Date).getTime()}function h(e){var t=e.clone();return t.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),t.contents()}function m(e){return e.search=e.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),e.href.replace(/\?($|#)/,"$1")}function _(e){var t=document.createElement("a");return t.href=e,t}function v(e){return e.href.replace(/#.*/,"")}function g(t,n){return t&&n?((n=e.extend({},n)).container=t,n):e.isPlainObject(t)?t:{container:t}}function x(e,t){return e.filter(t).add(e.find(t))}function j(t){return e.parseHTML(t,document,!0)}function y(t,n,a){var r={},i=/<html/i.test(t),o=t.match(/.*<html.*data-redirect="(.*?)"/),s=String();o&&o[1]&&(s=o[1]);var c=n.getResponseHeader("X-PJAX-URL");if(r.url=c?m(_(c)):a.requestUrl,s&&(r.url=s),i){var l=e(j(t.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0])),u=t.match(/<body[^>]*>([\s\S.]*)<\/body>/i);if(u&&u.length)var p=e(j(u[0]));else p=e(j(extract_content(t,"<body>","</body>",0)))}else l=p=e(j(t));if(0===p.length)return r;if(r.title=x(l,"title").last().text(),a.fragment){if("body"===a.fragment)var d=p;else d=x(p,a.fragment).first();d.length&&(r.contents="body"===a.fragment?d:d.contents(),r.title||(r.title=d.attr("title")||d.data("title")))}else i||(r.contents=p);return r.contents&&(r.contents=r.contents.not(function(){return e(this).is("title")}),r.contents.find("title").remove(),r.scripts=x(r.contents,"script[src]").remove(),r.contents=r.contents.not(r.scripts)),r.title&&(r.title=e.trim(r.title)),r}l&&l.container&&(r.state=l),"state"in window.history&&(s=!1);var w={},b=[],T=[];function S(t,n,a){(vars.pjax.page_cache&&"csf"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file||a)&&(a&&(t=e.pjax.state.id,n=[e.pjax.options.container,h(a[0])],e.pjax.state={id:f(),url:a[1],title:a[2],container:e.pjax.options.container,fragment:e.pjax.options.fragment,timeout:e.pjax.options.timeout},window.history.pushState(e.pjax.state,a[2],a[1])),w[t]=n,T.push(t),E(b,0),E(T,r.defaults.maxCacheLength))}function E(e,t){for(;e.length>t;)delete w[e.shift()]}function C(){return e("meta").filter(function(){var t=e(this).attr("http-equiv");return t&&"X-PJAX-VERSION"===t.toUpperCase()}).attr("content")}function R(){e.fn.pjax=t,e.pjax=r,e.pjax.enable=e.noop,e.pjax.disable=P,e.pjax.click=n,e.pjax.submit=a,e.pjax.reload=i,e.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:10,version:C},e(window).on("popstate.pjax",u)}function P(){e.fn.pjax=function(){return this},e.pjax=p,e.pjax.enable=R,e.pjax.disable=e.noop,e.pjax.click=e.noop,e.pjax.submit=e.noop,e.pjax.reload=function(){window.location.reload()},e(window).off("popstate.pjax",u)}r.cache=S,e.event.props&&e.inArray("state",e.event.props)<0?e.event.props.push("state"):"state"in e.Event.prototype||e.event.addProp("state"),e.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),e.support.pjax?R():P()}(jQuery);/*!
 * jQuery Mousewheel 3.1.13
 * Copyright 2015 jQuery Foundation and other contributors
 * Released under the MIT license.
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,u=0,f=0,h=0,m=0,p=0;if((t=e.event.fix(r)).type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(u=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(u=-1*f,f=0),c=0===f?u:f,"deltaY"in r&&(c=f=-1*r.deltaY),"deltaX"in r&&(u=r.deltaX,0===f&&(c=-1*u)),0!==f||0!==u){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,f*=g,u*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,f*=v,u*=v}if(h=Math.max(Math.abs(f),Math.abs(u)),(!i||i>h)&&(i=h,a(r,h)&&(i/=40)),a(r,h)&&(c/=40,u/=40,f/=40),c=Math[c>=1?"floor":"ceil"](c/i),u=Math[u>=1?"floor":"ceil"](u/i),f=Math[f>=1?"floor":"ceil"](f/i),d.settings.normalizeOffset&&this.getBoundingClientRect){var x=this.getBoundingClientRect();m=t.clientX-x.left,p=t.clientY-x.top}return t.deltaX=u,t.deltaY=f,t.deltaFactor=i,t.offsetX=m,t.offsetY=p,t.deltaMode=0,l.unshift(t,c,u,f),n&&clearTimeout(n),n=setTimeout(o,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function o(){i=null}function a(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var n,i,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var o=l.length;o;)this.addEventListener(l[--o],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var o=l.length;o;)this.removeEventListener(l[--o],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var o=e(t),a=o["offsetParent"in e.fn?"offsetParent":"parent"]();return a.length||(a=e("body")),parseInt(a.css("fontSize"),10)||parseInt(o.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),
/*!
 * Malihu Scrollbar Plugin 3.1.5
 * Copyright 2014 Manos Malihutsakis (http://manos.malihu.gr)
 * Licensed under MIT (https://github.com/malihu/malihu-custom-scrollbar-plugin/blob/master/COPYING.txt)
 */
/*
 == malihu jquery custom scrollbar plugin ==
 Version: 3.1.5
 Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller
 Author: malihu
 Author URI: http://manos.malihu.gr
 License: MIT License (MIT)
 */
/*
 Copyright Manos Malihutsakis (email: manos@malihu.gr)

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,o,a,n,i,r,s,c,d,u,f,m,p,g,v,x,S,_,C,b,y,B,T,M,k,O,D,I,E,W,R,L,A,z,H,P,U,Y,X,j,F,q,N,V,Q,Z,G,J,K,$,ee,te,oe,ae,ne,ie,re,le;ie="function"==typeof define&&define.amd,re="undefined"!=typeof module&&module.exports,le="https:"==document.location.protocol?"https:":"http:",ie||(re?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+le+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),o="mCustomScrollbar",a={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,i={},r=window.attachEvent&&!window.addEventListener?1:0,s=!1,c=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],d={init:function(t){var t=e.extend(!0,{},a,t),o=u.call(this);if(t.live){var r=t.liveSelector||this.selector||".mCustomScrollbar",l=e(r);if("off"===t.live)return void m(r);i[r]=setTimeout(function(){l.mCustomScrollbar(t),"once"===t.live&&l.length&&m(r)},500)}else m(r);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),f(t),e(o).each(function(){var o=e(this);if(!o.data("mCS")){o.data("mCS",{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var a=o.data("mCS"),i=a.opt,r=o.data("mcs-axis"),l=o.data("mcs-scrollbar-position"),s=o.data("mcs-theme");r&&(i.axis=r),l&&(i.scrollbarPosition=l),s&&(i.theme=s,f(i)),v.call(this),a&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+a.idx+"_container img:not(."+c[2]+")").addClass(c[2]),d.update.call(null,o)}})},update:function(t,o){var a=t||u.call(this);return e(a).each(function(){var t=e(this);if(t.data("mCS")){var a=t.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container"),r=e("#mCSB_"+a.idx),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(!i.length)return;a.tweenRunning&&Q(t),o&&a&&n.callbacks.onBeforeUpdate&&"function"==typeof n.callbacks.onBeforeUpdate&&n.callbacks.onBeforeUpdate.call(this),t.hasClass(c[3])&&t.removeClass(c[3]),t.hasClass(c[4])&&t.removeClass(c[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),S.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||i.css("width",x(i)),a.overflowed=B.call(this),O.call(this),n.autoDraggerLength&&C.call(this),b.call(this),M.call(this);var s=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==n.axis&&(a.overflowed[0]?l[0].height()>l[0].parent().height()?T.call(this):(Z(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(T.call(this),"y"===n.axis?k.call(this):"yx"===n.axis&&a.overflowed[1]&&Z(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(a.overflowed[1]?l[1].width()>l[1].parent().width()?T.call(this):(Z(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(T.call(this),"x"===n.axis?k.call(this):"yx"===n.axis&&a.overflowed[0]&&Z(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&a&&(2===o&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===o&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),V.call(this)}})},scrollTo:function(t,o){if(void 0!==t&&null!=t){var a=u.call(this);return e(a).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r={trigger:"external",scrollInertia:i.scrollInertia,scrollOffset:0,scrollOffsetEdge:!0,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,o),s=q.call(this,t),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;s[0]=N.call(this,s[0],"y"),s[1]=N.call(this,s[1],"x"),l.moveDragger&&(s[0]*=n.scrollRatio.y,s[1]*=n.scrollRatio.x),l.dur=ne()?0:c,setTimeout(function(){if(null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&n.overflowed[0]){l.dir="y",l.overwrite="all";var o=s[0];if(0!==l.scrollOffset&&"object"==typeof l.scrollOffset){var r=l.scrollOffset[0],c=parseInt(r.height()),d=l.scrollOffset[1],u=l.scrollOffset[2],f=parseInt(c/d),h=parseInt(c/u);o-=f;var m=t.offset().top-r.offset().top;p=r,g=e(t),x=(v=p).scrollTop()+50,S=x+v.height(),(w=g.offset().top)+g.height()<=S&&w>=x&&c-m>h&&(l.scrollOffsetEdge=!1)}l.scrollOffsetEdge&&Z(a,o.toString(),l)}var p,g,v,x,S,w;null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&n.overflowed[1]&&(l.dir="x",l.overwrite="none",Z(a,s[1].toString(),l))},l.timeout)}})}},stop:function(){var t=u.call(this);return e(t).each(function(){var t=e(this);t.data("mCS")&&Q(t)})},disable:function(t){var o=u.call(this);return e(o).each(function(){var o=e(this);o.data("mCS")&&(o.data("mCS"),V.call(this,"remove"),k.call(this),t&&T.call(this),O.call(this,!0),o.addClass(c[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var a=e(this);if(a.data("mCS")){var n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx),l=e("#mCSB_"+n.idx+"_container"),s=e(".mCSB_"+n.idx+"_scrollbar");i.live&&m(i.liveSelector||e(t).selector),V.call(this,"remove"),k.call(this),T.call(this),a.removeData("mCS"),$(this,"mcs"),s.remove(),l.find("img."+c[2]).removeClass(c[2]),r.replaceWith(l.contents()),a.removeClass(o+" _mCS_"+n.idx+" "+c[6]+" "+c[7]+" "+c[5]+" "+c[3]).addClass(c[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?".mCustomScrollbar":this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){i[e]&&(clearTimeout(i[e]),$(i,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),a=t.data("mCS"),n=a.opt,i=n.autoExpandScrollbar?" "+c[1]+"_expand":"",r=["<div id='mCSB_"+a.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+c[12]+"'><div id='mCSB_"+a.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+a.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+c[12]+"'><div id='mCSB_"+a.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",s="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],d="yx"===n.axis?"<div id='mCSB_"+a.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=n.autoHideScrollbar?" "+c[6]:"",f="x"!==n.axis&&"rtl"===a.langDir?" "+c[7]:"";n.setWidth&&t.css("width",n.setWidth),n.setHeight&&t.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===a.langDir?"989999px":n.setLeft,t.addClass(o+" _mCS_"+a.idx+u+f).wrapInner("<div id='mCSB_"+a.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+l+"'><div id='mCSB_"+a.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+a.langDir+"' /></div>");var h=e("#mCSB_"+a.idx),m=e("#mCSB_"+a.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||m.css("width",x(m)),"outside"===n.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),h.addClass("mCSB_outside").after(s)):(h.addClass("mCSB_inside").append(s),m.wrap(d)),_.call(this);var p=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},S=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx+"_container");if(a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(n[0].scrollWidth);3===a.advanced.autoExpandHorizontalScroll||2!==a.advanced.autoExpandHorizontalScroll&&i>n.parent().width()?n.css({width:i,"min-width":"100%","overflow-x":"inherit"}):n.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e(".mCSB_"+o.idx+"_scrollbar:first"),i=oe(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+c[13]+"' "+i+" />","<a href='#' class='"+c[14]+"' "+i+" />","<a href='#' class='"+c[15]+"' "+i+" />","<a href='#' class='"+c[16]+"' "+i+" />"],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},C=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],s=a.height()/n.outerHeight(!1),c=a.width()/n.outerWidth(!1);ratio=[Math.min(s,1),Math.min(c,1)],l=[parseInt(i[0].css("min-height")),Math.round(ratio[0]*i[0].parent().height()),parseInt(i[1].css("min-width")),Math.round(ratio[1]*i[1].parent().width())],h=r&&l[1]<l[0]?l[0]:l[1],w=r&&l[3]<l[2]?l[2]:l[3],i[0].css({height:h,"max-height":i[0].parent().height()-(1!=ratio[0]?10:0)}).find(".mCSB_dragger_bar").css({"line-height":l[0]+"px"}),i[1].css({width:w,"max-width":i[1].parent().width()-(1!=ratio[1]?10:0)})},b=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],r=[n.outerHeight(!1)-a.height(),n.outerWidth(!1)-a.width()],l=[r[0]/(i[0].parent().height()-i[0].height()),r[1]/(i[1].parent().width()-i[1].width())];o.scrollRatio={y:l[0],x:l[1]}},y=function(e,t,o){var a=o?c[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(c[0]+" "+a),n.toggleClass(c[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(c[0]),n.removeClass(c[1])):(e.addClass(c[0]),n.addClass(c[1])))},B=function(){var t=e(this),o=t.data("mCS"),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),i=null==o.overflowed?n.height():n.outerHeight(!1),r=null==o.overflowed?n.width():n.outerWidth(!1),l=n[0].scrollHeight,s=n[0].scrollWidth;return l>i&&(i=l),s>r&&(r=s),[i>a.height(),r>a.width()]},T=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&(r[0].add(i).css("top",0),Z(t,"_resetY")),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var l=dx=0;"rtl"===o.langDir&&(l=n.width()-i.outerWidth(!1),dx=Math.abs(l/o.scrollRatio.x)),i.css("left",l),r[1].css("left",dx),Z(t,"_resetX")}},M=function(){var t=e(this),o=t.data("mCS"),a=o.opt;if(!o.bindEvents){var n;if(I.call(this),a.contentTouchScroll&&E.call(this),W.call(this),a.mouseWheel.enable)!function o(){n=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(n),R.call(t[0])):o()},100)}();P.call(this),Y.call(this),a.advanced.autoScrollOnFocus&&U.call(this),a.scrollButtons.enable&&X.call(this),a.keyboard.enable&&j.call(this),o.bindEvents=!0}},k=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=".mCSB_"+o.idx+"_scrollbar",r=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+i+" ."+c[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+i+">a"),l=e("#mCSB_"+o.idx+"_container");a.advanced.releaseDraggableSelectors&&r.add(e(a.advanced.releaseDraggableSelectors)),a.advanced.extraDraggableSelectors&&r.add(e(a.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+n),r.each(function(){e(this).unbind("."+n)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),$(l[0],"onCompleteTimeout"),o.bindEvents=!1)},O=function(t){var o=e(this),a=o.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container_wrapper"),r=i.length?i:e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],s=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==n.axis&&(a.overflowed[0]&&!t?(l[0].add(s[0]).add(l[0].children("a")).css("display","block"),r.removeClass(c[8]+" "+c[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&s[0].css("display","none"),r.removeClass(c[10])):(l[0].css("display","none"),r.addClass(c[10])),r.addClass(c[8]))),"y"!==n.axis&&(a.overflowed[1]&&!t?(l[1].add(s[1]).add(l[1].children("a")).css("display","block"),r.removeClass(c[9]+" "+c[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&s[1].css("display","none"),r.removeClass(c[11])):(l[1].css("display","none"),r.addClass(c[11])),r.addClass(c[9]))),a.overflowed[0]||a.overflowed[1]?o.removeClass(c[5]):o.addClass(c[5])},D=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){var t,o,a,n=e(this),i=n.data("mCS"),l=i.opt,c="mCS_"+i.idx,d=["mCSB_"+i.idx+"_dragger_vertical","mCSB_"+i.idx+"_dragger_horizontal"],u=e("#mCSB_"+i.idx+"_container"),f=e("#"+d[0]+",#"+d[1]),h=l.advanced.releaseDraggableSelectors?f.add(e(l.advanced.releaseDraggableSelectors)):f,m=l.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(l.advanced.extraDraggableSelectors)):e(!A()||top.document);function p(e,o,a,r){if(u[0].idleTimer=l.scrollInertia<233?250:0,t.attr("id")===d[1])var s="x",c=(t[0].offsetLeft-o+r)*i.scrollRatio.x;else var s="y",c=(t[0].offsetTop-e+a)*i.scrollRatio.y;Z(n,c.toString(),{dir:s,drag:!0})}f.bind("contextmenu."+c,function(e){e.preventDefault()}).bind("mousedown."+c+" touchstart."+c+" pointerdown."+c+" MSPointerDown."+c,function(i){if(i.stopImmediatePropagation(),i.preventDefault(),ee(i)){s=!0,r&&(document.onselectstart=function(){return!1}),z.call(u,!1),Q(n);var c=(t=e(this)).offset(),d=D(i)[0]-c.top,f=D(i)[1]-c.left,h=t.height()+c.top,m=t.width()+c.left;d<h&&d>0&&f<m&&f>0&&(o=d,a=f),y(t,"active",l.autoExpandScrollbar)}}).bind("touchmove."+c,function(e){e.stopImmediatePropagation(),e.preventDefault();var n=t.offset(),i=D(e)[0]-n.top,r=D(e)[1]-n.left;p(o,a,i,r)}),e(document).add(m).bind("mousemove."+c+" pointermove."+c+" MSPointerMove."+c,function(e){if(t){var n=t.offset(),i=D(e)[0]-n.top,r=D(e)[1]-n.left;if(o===i&&a===r)return;p(o,a,i,r)}}).add(h).bind("mouseup."+c+" touchend."+c+" pointerup."+c+" MSPointerUp."+c,function(e){t&&(y(t,"active",l.autoExpandScrollbar),t=null),s=!1,r&&(document.onselectstart=null),z.call(u,!0)})},E=function(){var o,a,n,i,r,l,c,d,u,f,h,m,p,g,v=e(this),x=v.data("mCS"),S=x.opt,w="mCS_"+x.idx,_=e("#mCSB_"+x.idx),C=e("#mCSB_"+x.idx+"_container"),b=[e("#mCSB_"+x.idx+"_dragger_vertical"),e("#mCSB_"+x.idx+"_dragger_horizontal")],y=[],B=[],T=0,M="yx"===S.axis?"none":"all",k=[],O=C.find("iframe"),I=["touchstart."+w+" pointerdown."+w+" MSPointerDown."+w,"touchmove."+w+" pointermove."+w+" MSPointerMove."+w,"touchend."+w+" pointerup."+w+" MSPointerUp."+w],E=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function W(e){if(!te(e)||s||D(e)[2])t=0;else{t=1,p=0,g=0,o=1,v.removeClass("mCS_touch_action");var i=C.offset();a=D(e)[0]-i.top,n=D(e)[1]-i.left,k=[D(e)[0],D(e)[1]]}}function R(e){if(te(e)&&!s&&!D(e)[2]&&(S.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!g||p)&&o)){c=J();var t=_.offset(),i=D(e)[0]-t.top,r=D(e)[1]-t.left;if(y.push(i),B.push(r),k[2]=Math.abs(D(e)[0]-k[0]),k[3]=Math.abs(D(e)[1]-k[1]),x.overflowed[0])var l=b[0].parent().height()-b[0].height(),d=a-i>0&&i-a>-l*x.scrollRatio.y&&(2*k[3]<k[2]||"yx"===S.axis);if(x.overflowed[1])var u=b[1].parent().width()-b[1].width(),f=n-r>0&&r-n>-u*x.scrollRatio.x&&(2*k[2]<k[3]||"yx"===S.axis);d||f?(E||e.preventDefault(),p=1):(g=1,v.addClass("mCS_touch_action")),E&&e.preventDefault(),h="yx"===S.axis?[a-i,n-r]:"x"===S.axis?[null,n-r]:[a-i,null],C[0].idleTimer=250,x.overflowed[0]&&P(h[0],T,"mcsLinearOut","y","all",!0),x.overflowed[1]&&P(h[1],T,"mcsLinearOut","x",M,!0)}}function L(e){if(!te(e)||s||D(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),Q(v),l=J();var o=_.offset();i=D(e)[0]-o.top,r=D(e)[1]-o.left,y=[],B=[]}}function z(e){if(te(e)&&!s&&!D(e)[2]){o=0,e.stopImmediatePropagation(),p=0,g=0,d=J();var t=_.offset(),a=D(e)[0]-t.top,n=D(e)[1]-t.left;if(!(d-c>30)){var v=(f=1e3/(d-l))<2.5,w=v?[y[y.length-2],B[B.length-2]]:[0,0];u=v?[a-w[0],n-w[1]]:[a-i,n-r];var b=[Math.abs(u[0]),Math.abs(u[1])];f=v?[Math.abs(u[0]/4),Math.abs(u[1]/4)]:[f,f];var T=[Math.abs(C[0].offsetTop)-u[0]*H(b[0]/f[0],f[0]),Math.abs(C[0].offsetLeft)-u[1]*H(b[1]/f[1],f[1])];h="yx"===S.axis?[T[0],T[1]]:"x"===S.axis?[null,T[1]]:[T[0],null],m=[4*b[0]+S.scrollInertia,4*b[1]+S.scrollInertia];var k=parseInt(S.contentTouchScroll)||0;h[0]=b[0]>k?h[0]:0,h[1]=b[1]>k?h[1]:0,x.overflowed[0]&&P(h[0],m[0],"mcsEaseOut","y",M,!1),x.overflowed[1]&&P(h[1],m[1],"mcsEaseOut","x",M,!1)}}}function H(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function P(e,t,o,a,n,i){e&&Z(v,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}C.bind(I[0],function(e){W(e)}).bind(I[1],function(e){R(e)}),_.bind(I[0],function(e){L(e)}).bind(I[2],function(e){z(e)}),O.length&&O.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(I[0],function(e){W(e),L(e)}).bind(I[1],function(e){R(e)}).bind(I[2],function(e){z(e)})})})},W=function(){var o,a=e(this),n=a.data("mCS"),i=n.opt,r=n.sequential,l="mCS_"+n.idx,c=e("#mCSB_"+n.idx+"_container"),d=c.parent();function u(e,t,n){r.type=n&&o?"stepped":"stepless",r.scrollAmount=10,F(a,e,t,"mcsLinearOut",n?60:null)}c.bind("mousedown."+l,function(e){t||o||(o=1,s=!0)}).add(document).bind("mousemove."+l,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var a=c.offset(),l=D(e)[0]-a.top+c[0].offsetTop,s=D(e)[1]-a.left+c[0].offsetLeft;l>0&&l<d.height()&&s>0&&s<d.width()?r.step&&u("off",null,"stepped"):("x"!==i.axis&&n.overflowed[0]&&(l<0?u("on",38):l>d.height()&&u("on",40)),"y"!==i.axis&&n.overflowed[1]&&(s<0?u("on",37):s>d.width()&&u("on",39)))}}).bind("mouseup."+l+" dragend."+l,function(e){t||(o&&(o=0,u("off",null)),s=!1)})},R=function(){if(e(this).data("mCS")){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],s=e("#mCSB_"+o.idx+"_container").find("iframe");s.length&&s.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,t){c(e,t)})})}),i.bind("mousewheel."+n,function(e,t){c(e,t)})}function c(n,s){if(e(n.target).closest(".mCustomScrollbar").trigger("mcswheel",s),Q(t),a.mouseWheel&&a.mouseWheel.enable&&!H(t,n.target)){var c="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):r&&n.deltaFactor<100?100:n.deltaFactor||100,d=a.scrollInertia;if("yx"===a.axis&&(0!==n.deltaX?a.mouseWheel.axis="x":0!==n.deltaY&&(a.mouseWheel.axis="y")),"x"===a.axis||"x"===a.mouseWheel.axis)var u="x",f=[Math.ceil(c*o.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?f[1]:f[0]>=i.width()?.9*i.width():f[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=l[1][0].offsetLeft,g=l[1].parent().width()-l[1].width(),v=n.deltaY||s;else var u="y",f=[Math.ceil(c*o.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?f[1]:f[0]>=i.height()?.9*i.height():f[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=l[0][0].offsetTop,g=l[0].parent().height()-l[0].height(),v=n.deltaY||s;"y"===u&&!o.overflowed[0]||"x"===u&&!o.overflowed[1]||((a.mouseWheel.invert||n.webkitDirectionInvertedFromDevice)&&(v=-v),a.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==p||v<0&&p!==g||a.mouseWheel.preventDefault)&&(n.stopImmediatePropagation(),n.preventDefault()),n.deltaFactor<5&&!a.mouseWheel.normalizeDelta&&(h=n.deltaFactor,d=17),Z(t,(m-v*h).toString(),{dir:u,dur:d}))}}},L=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),!1!==a&&void 0!==L[a])return L[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(e){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(e){}o=null!==n}return!1!==a&&(L[a]=o),o},z=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},H=function(t,o){var a=o.nodeName.toLowerCase(),n=t.data("mCS").opt.mouseWheel.disableOver;return e.inArray(a,n)>-1&&!(e.inArray(a,["select","textarea"])>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),a=o.data("mCS"),n="mCS_"+a.idx,i=e("#mCSB_"+a.idx+"_container"),r=i.parent(),l=e(".mCSB_"+a.idx+"_scrollbar ."+c[12]);l.bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(o){s=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(e){s=!1}).bind("click."+n,function(n){if(t&&(t=0,e(n.target).hasClass(c[12])||e(n.target).hasClass("mCSB_draggerRail"))){Q(o);var l=e(this),s=l.find(".mCSB_dragger");if(l.parent(".mCSB_scrollTools_horizontal").length>0){if(!a.overflowed[1])return;var d="x",u=n.pageX>s.offset().left?-1:1,f=Math.abs(i[0].offsetLeft)-u*(.9*r.width())}else{if(!a.overflowed[0])return;var d="y",u=n.pageY>s.offset().top?-1:1,f=Math.abs(i[0].offsetTop)-u*(.9*r.height())}Z(o,f.toString(),{dir:d,scrollEasing:"mcsEaseInOut"})}})},U=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n="mCS_"+o.idx,i=e("#mCSB_"+o.idx+"_container"),r=i.parent();i.bind("focusin."+n,function(o){var n=e(document.activeElement),l=i.find(".mCustomScrollBox").length;n.is(a.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=l?17*l:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(n)[0],ae(n)[1]],o=[i[0].offsetTop,i[0].offsetLeft],l=[o[0]+e[0]>=0&&o[0]+e[0]<r.height()-n.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<r.width()-n.outerWidth(!1)],s="yx"!==a.axis||l[0]||l[1]?"all":"none";"x"===a.axis||l[0]||Z(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0}),"y"===a.axis||l[1]||Z(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0})},t[0]._focusTimer))})},Y=function(){var t=e(this),o=t.data("mCS"),a="mCS_"+o.idx,n=e("#mCSB_"+o.idx+"_container").parent();n.bind("scroll."+a,function(t){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},X=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=o.sequential,i="mCS_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e(r+">a");l.bind("contextmenu."+i,function(e){e.preventDefault()}).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(i){if(i.preventDefault(),ee(i)){var r=e(this).attr("class");switch(n.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;s=!0,o.tweenRunning=!1,l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;s=!1,n.dir&&l("off",r);break;case"click":if("stepped"!==n.type||o.tweenRunning)return;l("on",r)}}function l(e,o){n.scrollAmount=a.scrollButtons.scrollAmount,F(t,e,o)}})},j=function(){var t=e(this),o=t.data("mCS"),a=o.opt,n=o.sequential,i="mCS_"+o.idx,r=e("#mCSB_"+o.idx),l=e("#mCSB_"+o.idx+"_container"),s=l.parent(),c="input,textarea,select,datalist,keygen,[contenteditable='true']",d=l.find("iframe"),u=["blur."+i+" keydown."+i+" keyup."+i];function f(i){switch(i.type){case"blur":o.tweenRunning&&n.dir&&m("off",null);break;case"keydown":case"keyup":var r=i.keyCode?i.keyCode:i.which,d="on";if("x"!==a.axis&&(38===r||40===r)||"y"!==a.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===i.type&&(d="off"),e(document.activeElement).is(c)||(i.preventDefault(),i.stopImmediatePropagation(),m(d,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type){Q(t);var u=34===r?-1:1;if("x"===a.axis||"yx"===a.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",h=Math.abs(l[0].offsetLeft)-u*(.9*s.width());else var f="y",h=Math.abs(l[0].offsetTop)-u*(.9*s.height());Z(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(c)&&((o.overflowed[0]||o.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type)){if("x"===a.axis||"yx"===a.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",h=35===r?Math.abs(s.width()-l.outerWidth(!1)):0;else var f="y",h=35===r?Math.abs(s.height()-l.outerHeight(!1)):0;Z(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}function m(e,i){n.type=a.keyboard.scrollType,n.scrollAmount=a.keyboard.scrollAmount,"stepped"===n.type&&o.tweenRunning||F(t,e,i)}}d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(u[0],function(e){f(e)})})}),r.attr("tabindex","0").bind(u[0],function(e){f(e)})},F=function(t,o,a,n,i){var r=t.data("mCS"),l=r.opt,s=r.sequential,d=e("#mCSB_"+r.idx+"_container"),u="stepped"===s.type,f=l.scrollInertia<26?26:l.scrollInertia,h=l.scrollInertia<1?17:l.scrollInertia;switch(o){case"on":if(s.dir=[a===c[16]||a===c[15]||39===a||37===a?"x":"y",a===c[13]||a===c[15]||38===a||37===a?-1:1],Q(t),oe(a)&&"stepped"===s.type)return;m(u);break;case"off":clearTimeout(s.step),$(s,"step"),Q(t),(u||r.tweenRunning&&s.dir)&&m(!0)}function m(e){l.snapAmount&&(s.scrollAmount=l.snapAmount instanceof Array?"x"===s.dir[0]?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount);var o="stepped"!==s.type,a=i||(e?o?f/1.5:h:1e3/60),c=e?o?7.5:40:2.5,u=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],p=[r.scrollRatio.y>10?10:r.scrollRatio.y,r.scrollRatio.x>10?10:r.scrollRatio.x],g="x"===s.dir[0]?u[1]+s.dir[1]*(p[1]*c):u[0]+s.dir[1]*(p[0]*c),v="x"===s.dir[0]?u[1]+s.dir[1]*parseInt(s.scrollAmount):u[0]+s.dir[1]*parseInt(s.scrollAmount),x="auto"!==s.scrollAmount?v:g,S=n||(e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),w=!!e;e&&a<17&&(x="x"===s.dir[0]?u[1]:u[0]),Z(t,x.toString(),{dir:s.dir[0],scrollEasing:S,dur:a,onComplete:w}),e?s.dir=!1:(clearTimeout(s.step),s.step=setTimeout(function(){m()},a))}},q=function(t){var o=e(this).data("mCS").opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},N=function(t,o){if(null!=t&&void 0!==t){var a=e(this),n=a.data("mCS"),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=typeof t;o||(o="x"===i.axis?"x":"y");var c="x"===o?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===o?r[0].offsetLeft:r[0].offsetTop,f="x"===o?"left":"top";switch(s){case"function":return t();case"object":var h=t.jquery?t:e(t);if(!h.length)return;return"x"===o?ae(h)[1]:ae(h)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(c*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(u-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var m=u+parseInt(t.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var h=r.find(":"+t);return"x"===o?ae(h)[1]:ae(h)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(r.css(f,t),void d.update.call(null,a[0]))}}},V=function(t){var o=e(this),a=o.data("mCS"),n=a.opt,i=e("#mCSB_"+a.idx+"_container");if(t)return clearTimeout(i[0].autoUpdate),void $(i[0],"autoUpdate");function r(e){clearTimeout(i[0].autoUpdate),d.update.call(null,o[0],e)}!function t(){clearTimeout(i[0].autoUpdate),0!==o.parents("html").length?i[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(a.poll.change.n=function(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=i.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),a.poll.change.n!==a.poll.change.o)?(a.poll.change.o=a.poll.change.n,void r(3)):n.advanced.updateOnContentResize&&(a.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+i[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,a.poll.size.n!==a.poll.size.o)?(a.poll.size.o=a.poll.size.n,void r(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(a.poll.img.n=i.find("img").length,a.poll.img.n===a.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&t()):(a.poll.img.o=a.poll.img.n,void i.find("img").each(function(){!function(t){if(e(t).hasClass(c[2]))r();else{var o,a,n=new Image;n.onload=(o=n,a=function(){this.onload=null,e(t).addClass(c[2]),r(2)},function(){return a.apply(o,arguments)}),n.src=t.src}}(this)}))},n.advanced.autoUpdateTimeout):o=null}()},Q=function(t){var o=t.data("mCS"),a=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");a.each(function(){K.call(this)})},Z=function(t,o,a){var n=t.data("mCS"),i=n.opt,r={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:i.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(r,a),l=[a.dur,a.drag?0:a.dur],s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u=i.callbacks.onTotalScrollOffset?q.call(t,i.callbacks.onTotalScrollOffset):[0,0],f=i.callbacks.onTotalScrollBackOffset?q.call(t,i.callbacks.onTotalScrollBackOffset):[0,0];if(n.trigger=a.trigger,0===d.scrollTop()&&0===d.scrollLeft()||(e(".mCSB_"+n.idx+"_scrollbar").css("visibility","visible"),d.scrollTop(0).scrollLeft(0)),"_resetY"!==o||n.contentReset.y||(b("onOverflowYNone")&&i.callbacks.onOverflowYNone.call(t[0]),n.contentReset.y=1),"_resetX"!==o||n.contentReset.x||(b("onOverflowXNone")&&i.callbacks.onOverflowXNone.call(t[0]),n.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!n.contentReset.y&&t[0].mcs||!n.overflowed[0]||(b("onOverflowY")&&i.callbacks.onOverflowY.call(t[0]),n.contentReset.x=null),!n.contentReset.x&&t[0].mcs||!n.overflowed[1]||(b("onOverflowX")&&i.callbacks.onOverflowX.call(t[0]),n.contentReset.x=null),i.snapAmount){var h=i.snapAmount instanceof Array?"x"===a.dir?i.snapAmount[1]:i.snapAmount[0]:i.snapAmount;o=function(e,t,o){return Math.round(e/t)*t-o}(o,h,i.snapOffset)}switch(a.dir){case"x":var m=e("#mCSB_"+n.idx+"_dragger_horizontal"),p="left",g=c[0].offsetLeft,v=[s.width()-c.outerWidth(!1),m.parent().width()-m.width()],x=[o,0===o?0:o/n.scrollRatio.x],S=u[1],w=f[1],_=S>0?S/n.scrollRatio.x:0,C=w>0?w/n.scrollRatio.x:0;break;case"y":var m=e("#mCSB_"+n.idx+"_dragger_vertical"),p="top",g=c[0].offsetTop,v=[s.height()-c.outerHeight(!1),m.parent().height()-m.height()],x=[o,0===o?0:o/n.scrollRatio.y],S=u[0],w=f[0],_=S>0?S/n.scrollRatio.y:0,C=w>0?w/n.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=v[1]?x=[v[0],v[1]]:x[0]=-x[0],t[0].mcs||(B(),b("onInit")&&i.callbacks.onInit.call(t[0])),clearTimeout(c[0].onCompleteTimeout),G(m[0],p,Math.round(x[1]),l[1],a.scrollEasing),!n.tweenRunning&&(0===g&&x[0]>=0||g===v[0]&&x[0]<=v[0])||G(c[0],p,Math.round(x[0]),l[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!n.tweenRunning&&(b("onScrollStart")&&(B(),i.callbacks.onScrollStart.call(t[0])),n.tweenRunning=!0,y(m),n.cbOffsets=[i.callbacks.alwaysTriggerOffsets||g>=v[0]+S,i.callbacks.alwaysTriggerOffsets||g<=-w])},onUpdate:function(){a.callbacks&&a.onUpdate&&b("whileScrolling")&&(B(),i.callbacks.whileScrolling.apply(t[0],[{options:a,delta:g-x[0]}]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===i.axis&&clearTimeout(c[0].onCompleteTimeout);var e=c[0].idleTimer||0;c[0].onCompleteTimeout=setTimeout(function(){b("onScroll")&&(B(),i.callbacks.onScroll.call(t[0])),b("onTotalScroll")&&x[1]>=v[1]-_&&n.cbOffsets[0]&&(B(),i.callbacks.onTotalScroll.call(t[0])),b("onTotalScrollBack")&&x[1]<=C&&n.cbOffsets[1]&&(B(),i.callbacks.onTotalScrollBack.call(t[0])),n.tweenRunning=!1,c[0].idleTimer=0,y(m,"hide")},e)}}})}function b(e){return n&&i.callbacks[e]&&"function"==typeof i.callbacks[e]}function B(){var e=[c[0].offsetTop,c[0].offsetLeft],o=[m[0].offsetTop,m[0].offsetLeft],n=[c.outerHeight(!1),c.outerWidth(!1)],i=[s.height(),s.width()];t[0].mcs={content:c,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}},G=function(e,t,o,a,n,i,r){e._mTween||(e._mTween={top:{},left:{}});var l,s,r=r||{},c=r.onStart||function(){},d=r.onUpdate||function(){},u=r.onComplete||function(){},f=J(),h=0,m=e.offsetTop,p=e.style,g=e._mTween[t];"left"===t&&(m=e.offsetLeft);var v=o-m;function x(){g.stop||(h||c.call(),h=J()-f,S(),h>=g.time&&(g.time=h>g.time?h+l-(h-g.time):h+l-1,g.time<h+1&&(g.time=h+1)),g.time<a?g.id=s(x):u.call())}function S(){a>0?(g.currVal=function(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=a/2)<1?o/2*e*e+t:-o/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=a/2)<1?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=a/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=a,-o*(--e*e*e*e-1)+t;case"easeOutStrong":return o*(1-Math.pow(2,-10*e/a))+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}(g.time,m,v,a,n),p[t]=Math.round(g.currVal)+"px"):p[t]=o+"px",d.call()}g.stop=0,"none"!==i&&null!=g.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(g.id):clearTimeout(g.id),g.id=null),l=1e3/60,g.time=h+l,s=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return S(),setTimeout(e,.01)},g.id=s(x)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},K=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]},e.fn[o]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[o]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},e[o].defaults=a,window[o]=!0,e(window).bind("load",function(){e(".mCustomScrollbar")[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),(a=[i[0].offsetTop,i[0].offsetLeft])[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],r[0]-i[0]*(l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]])[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data("mCS");if(o)return o.overflowed[0]||o.overflowed[1]}})})});/*!
 * Ajax Autocomplete for jQuery v1.3.0
 * https://github.com/devbridge/jQuery-Autocomplete
 *
 * Licensed under MIT (https://github.com/devbridge/jQuery-Autocomplete/blob/master/license.txt)
 */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(t){"use strict";var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},s=27,i=9,n=13,o=38,a=39,l=40;function r(e,s){var i=t.noop,n={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},externalEvent:r.externalEvent,formatResult:r.formatResult,formatGroup:r.formatGroup,delimiter:null,zIndex:11001,type:"GET",noCache:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,s){return-1!==t.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};this.element=e,this.el=t(e),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.intervalId=0,this.cachedResponse={},this.onChangeInterval=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=t.extend({},n,s),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(s)}r.utils=e,t.Autocomplete=r,r.formatResult=function(t,s){if(!s)return t.value;var i="("+e.escapeRegExChars(s)+")";return t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},r.formatGroup=function(t,e){return'<div class="autocomplete-group"><strong>'+e+"</strong></div>"},r.prototype={killerFn:null,initialize:function(){var e,s=this,i="."+s.classes.suggestion,n=s.classes.selected,o=s.options;s.element.setAttribute("autocomplete","off"),s.killerFn=function(e){t(e.target).closest("."+s.options.containerClass).length||(s.killSuggestions(),s.disableKillerFn())},s.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),s.suggestionsContainer=r.utils.createNode(o.containerClass),(e=t(s.suggestionsContainer)).appendTo(o.appendTo),"auto"!==o.width&&e.css("width",o.width),e.on("mouseover.autocomplete",i,function(){s.activate(t(this).data("index"))}),e.on("mouseout.autocomplete",function(){s.selectedIndex=-1,e.children("."+n).removeClass(n)}),e.on("click.autocomplete",i,function(){return s.select(t(this).data("index")),!1}),s.fixPositionCapture=function(){s.visible&&s.fixPosition()},t(window).on("resize.autocomplete",s.fixPositionCapture),s.el.on("keydown.autocomplete",function(t){s.onKeyPress(t)}),s.el.on("keyup.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("input.autocomplete",function(t){s.onKeyUp(t)})},onFocus:function(){this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var s=this.options;t.extend(s,e),this.isLocal=t.isArray(s.lookup),this.isLocal&&(s.lookup=this.verifySuggestionsFormat(s.lookup)),s.orientation=this.validateOrientation(s.orientation,"bottom"),t(this.suggestionsContainer).css({"max-height":s.maxHeight+"px",width:s.width+"px","z-index":s.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearInterval(this.onChangeInterval),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=t(this.suggestionsContainer),s=e.parent().get(0);if(s===document.body||this.options.forceFixPosition){var i=this.options.orientation,n=e.outerHeight(),o=this.el.outerHeight(),a=this.el.offset(),l={top:a.top,left:a.left};if("auto"===i){var r=t(window).height(),u=t(window).scrollTop(),h=-u+a.top-n,c=u+r-(a.top+o+n);i=Math.max(h,c)===h?"top":"bottom"}if(l.top+="top"===i?-n:o,s!==document.body){var g,d=e.css("opacity");this.visible||e.css("opacity",0).show(),g=e.offsetParent().offset(),l.top-=g.top,l.left-=g.left,this.visible||e.css("opacity",d).hide()}"auto"===this.options.width&&(l.width=this.el.outerWidth()+"px"),e.css(l)}},enableKillerFn:function(){t(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){t(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var t=this;t.stopKillSuggestions(),t.intervalId=window.setInterval(function(){t.visible&&(t.options.preserveInput||t.el.val(t.currentValue),t.hide()),t.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var t,e=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||t.which!==l||!this.currentValue){if(!this.disabled&&this.visible){switch(r.externalEvent=t,t.which){case s:this.el.val(this.currentValue),this.hide();break;case a:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case i:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case n:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case o:this.moveUp();break;case l:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case o:case l:return}clearInterval(e.onChangeInterval),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeInterval=setInterval(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){var e=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearInterval(this.onChangeInterval),this.currentValue=s,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<e.minChars?this.hide():this.getSuggestions(i)},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var s,i=this.options.delimiter;return i?(s=e.split(i),t.trim(s[s.length-1])):e},getSuggestionsLocal:function(e){var s,i=this.options,n=e.toLowerCase(),o=i.lookupFilter,a=parseInt(i.lookupLimit,10);return s={suggestions:t.grep(i.lookup,function(t){return o(t,e,n)})},a&&s.suggestions.length>a&&(s.suggestions=s.suggestions.slice(0,a)),s},getSuggestions:function(e){var s,i,n,o,a=this,l=a.options,r=l.serviceUrl;l.params[l.paramName]=e,i=l.ignoreParams?null:l.params,!1!==l.onSearchStart.call(a.element,l.params)&&(t.isFunction(l.lookup)?l.lookup(e,function(t){a.suggestions=t.suggestions,a.suggest(),l.onSearchComplete.call(a.element,e,t.suggestions)}):(a.isLocal?s=a.getSuggestionsLocal(e):(t.isFunction(r)&&(r=r.call(a.element,e)),n=r+"?"+t.param(i||{}),s=a.cachedResponse[n]),s&&t.isArray(s.suggestions)?(a.suggestions=s.suggestions,a.suggest(),l.onSearchComplete.call(a.element,e,s.suggestions)):a.isBadQuery(e)?l.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),o={url:r,data:i,type:l.type,dataType:l.dataType},t.extend(o,l.ajaxSettings),a.currentRequest=t.ajax(o).done(function(t){var s;a.currentRequest=null,s=l.transformResult(t,e),a.processResponse(s,e,n),l.onSearchComplete.call(a.element,e,s.suggestions)}).fail(function(t,s,i){l.onSearchError.call(a.element,e,t,s,i)}))))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,s=e.length;s--;)if(0===t.indexOf(e[s]))return!0;return!1},hide:function(){var e=t(this.suggestionsContainer);t.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,e),this.visible=!1,this.selectedIndex=-1,clearInterval(this.onChangeInterval),t(this.suggestionsContainer).hide(),this.signalHint(null)},suggest:function(){if(this.suggestions.length){var e,s=this.options,i=s.groupBy,n=s.formatResult,o=this.getQuery(this.currentValue),a=this.classes.suggestion,l=this.classes.selected,r=t(this.suggestionsContainer),u=t(this.noSuggestionsContainer),h=s.beforeRender,c="";s.triggerSelectOnValidInput&&this.isExactMatch(o)?this.select(0):(t.each(this.suggestions,function(t,l){i&&(c+=function(t,n){var o=t.data[i];return e===o?"":(e=o,s.formatGroup(t,e))}(l,0)),c+='<div class="'+a+'" data-index="'+t+'">'+n(l,o,t)+"</div>"}),this.adjustContainerWidth(),u.detach(),r.html(c),t.isFunction(h)&&h.call(this.element,r,this.suggestions),this.fixPosition(),r.show(),s.autoSelectFirst&&(this.selectedIndex=0,r.scrollTop(0),r.children("."+a).first().addClass(l)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=t(this.suggestionsContainer),s=t(this.noSuggestionsContainer);this.adjustContainerWidth(),s.detach(),e.empty(),e.append(s),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e,s=this.options,i=t(this.suggestionsContainer);"auto"===s.width?(e=this.el.outerWidth(),i.css("width",e>0?e:300)):"flex"===s.width&&i.css("width","")},findBestHint:function(){var e=this.el.val().toLowerCase(),s=null;e&&(t.each(this.suggestions,function(t,i){var n=0===i.value.toLowerCase().indexOf(e);return n&&(s=i),!n}),this.signalHint(s))},signalHint:function(e){var s="";e&&(s=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==s&&(this.hintValue=s,this.hint=e,(this.options.onHint||t.noop)(s))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,s){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=s),e},processResponse:function(t,e,s){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[s]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(e){var s,i=this.classes.selected,n=t(this.suggestionsContainer),o=n.find("."+this.classes.suggestion);return n.find("."+i).removeClass(i),this.selectedIndex=e,-1!==this.selectedIndex&&o.length>this.selectedIndex?(s=o.get(this.selectedIndex),t(s).addClass(i),s):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.hide(),this.onSelect(t),this.disableKillerFn()},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(t(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var s=this.activate(e);if(s){var i,n,o,a=t(s).outerHeight();i=s.offsetTop,o=(n=t(this.suggestionsContainer).scrollTop())+this.options.maxHeight-a,i<n?t(this.suggestionsContainer).scrollTop(i):i>o&&t(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+a),this.options.preserveInput||this.el.val(this.getValue(this.suggestions[e].value)),this.signalHint(null)}},onSelect:function(e){var s=this.options.onSelect,i=this.suggestions[e];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.signalHint(null),this.suggestions=[],this.selection=i,t.isFunction(s)&&s.call(this.element,i)},getValue:function(t){var e,s,i=this.options.delimiter;return i?1===(s=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-s[s.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),this.disableKillerFn(),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.autocomplete=t.fn.devbridgeAutocomplete=function(e,s){return arguments.length?this.each(function(){var i=t(this),n=i.data("autocomplete");"string"==typeof e?n&&"function"==typeof n[e]&&n[e](s):(n&&n.dispose&&n.dispose(),n=new r(this,e),i.data("autocomplete",n))}):this.first().data("autocomplete")}});!function(t){"use strict";var a=function(a,e){function s(t,a){for(var e="",s=!1,n=0;n<a.length;n++){s=!0;for(var r=0;r<t&&r+n+t<a.length;r++)s=s&&a.charAt(r+n)===a.charAt(r+n+t);r<t&&(s=!1),s?(n+=t-1,s=!1):e+=a.charAt(n)}return e}return e=t.extend({},{shortPass:"",badPass:"",goodPass:"",strongPass:"",containsUsername:"",enterPass:"",showPercent:!1,showText:!0,animate:!0,animateSpeed:"fast",username:!1,usernamePartialMatch:!0,minimumLength:4},e),function(){if("wpass"!==a.attr("name")){var n=!0,r=e.showText,i=e.showPercent,o=t("<div>").addClass("pass-graybar"),p=t("<div>").addClass("pass-colorbar"),d=a.outerWidth(),l=t("<div>").addClass("pass-wrapper").css("width",d).append(o.append(p)),h=a.parent(".pass-wrapper-cont");h.find(".pass-wrapper").remove(),h.find(".password-plain").parent(".btn-group").remove(),h.contents().unwrap(),a.attr("type","password"),a.addClass("pass-inputter-obj"),a.wrap('<div class="pass-wrapper-cont"></div>'),a.parent().addClass("pass-strength-visible"),e.animate&&(l.css("display","none"),n=!1,a.parent().removeClass("pass-strength-visible")),e.showPercent&&(i=t("<span>").addClass("pass-percent").text("0%"),l.append(i)),e.showText&&(r=t("<span>").addClass("pass-text").html(e.enterPass),l.append(r)),a.after(l),a.keyup(function(n){var o=e.username||"";o&&(o=t(o).val());var d=function(t,a){var n=0;if(t.length<e.minimumLength)return-1;if(e.username){if(t.toLowerCase()===a.toLowerCase())return-2;if(e.usernamePartialMatch&&a.length){var r=new RegExp(a.toLowerCase());if(t.toLowerCase().match(r))return-2}}n+=4*t.length,n+=s(1,t).length-t.length,n+=s(2,t).length-t.length,n+=s(3,t).length-t.length,n+=s(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(n+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(n+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(n+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(n+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(n+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(n+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(n-=10),n>100&&(n=100),n<0&&(n=0),n}(a.val(),o);a.trigger("password.score",[d]);var l=d<0?0:d;if(p.css({backgroundPosition:"0px -"+l+"px",width:l+"%"}),e.showPercent&&i.html(l+"%"),e.showText){var h=function(t){return-1===t?e.shortPass:-2===t?e.containsUsername:(t=t<0?0:t)<34?e.badPass:t<68?e.goodPass:e.strongPass}(d);!a.val().length&&d<=0&&(h=e.enterPass),r.html()!==t("<div>").html(h).html()&&(r.html(h),a.trigger("password.text",[h,d]))}});var c=function(){l.slideDown(e.animateSpeed,function(){n=!0,a.parent().addClass("pass-strength-visible")})};e.animate&&(a.focus(function(){n||c()}),a.blur(function(){!a.val().length&&n&&l.slideUp(e.animateSpeed,function(){n=!1,a.parent().removeClass("pass-strength-visible")})})),setTimeout(function(){a.val()&&(c(),a.trigger("keyup"))},50);var f=a.outerHeight()<=28?"heighter-28":String(),g="not_yet_def"===a.attr("name")?" hidden ":String(),u="old"===a.attr("name")||"new2"===a.attr("name")||"repeat"===a.attr("name")?" hidden ":String(),m='<div class="btn-group"><button data-nref data-toggle="tooltip" data-container=".container-fluid" data-title="'+theme_language("global_toggle_password_visibility")+'" class="btn btn-default '+f+" margined-left--1 password-plain"+g+'"><i class="fa2 fa2-eye"></i></button>',w='<button class="btn btn-default '+f+" margined-left--1 generate-password-key"+u+'" data-nref data-toggle="tooltip" data-container=".container-fluid" data-title="'+Convert.strUpInitial(theme_language("password_generator_new"))+'"><i class="fa fa-1_15x fa-key-plus"></i></button></div>';return a.css("width",d).css("max-width",d),a.after(m+w),a.next(".btn-group").find(".password-plain").on("click",function(a){a.preventDefault();var e=t(this).parents(".pass-wrapper-cont").find("input"),s=t(this).find(".fa2"),n=s.hasClass("fa2-eye-off")?1:0;e[0].disabled||(n?(e.attr("type","password"),s.addClass("fa2-eye").removeClass("fa2-eye-off")):(e.attr("type","text"),s.removeClass("fa2-eye").addClass("fa2-eye-off")))}),a.next(".btn-group").find(".generate-password-key").on("click",function(e){e.preventDefault();var s=t(this).parents(".pass-wrapper-cont").find("input"),n=theme_password_generator();s[0].disabled||(s.val(n),theme_copy_to_clipboard(n),a.trigger("keyup"),a.trigger("focus"),a.trigger("input"))}),this}}.call(this)};t.fn.password=function(e){return this.each(function(){new a(t(this),e)})}}(jQuery);/*!
 * CodeMirror v5.41.0
 * https://codemirror.net
 *
 * Licensed under MIT (https://codemirror.net/LICENSE)
 */
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: https://codemirror.net/LICENSE
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=r||i||o,a=l&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),x=/\bCrOS\b/.test(e),b=/win/i.test(t),C=f&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(f=!1,s=!0);var w=y&&(c||f&&(null==C||C<12.11)),k=n||l&&a>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,M=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return T(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function N(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function F(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function P(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function E(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}L=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var H=function(e){e.select()};function W(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function I(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function R(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,l=i||0;;){var a=e.indexOf("\t",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}m?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(H=function(e){try{e.select()}catch(e){}});var _=function(){this.id=null};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}_.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var j=30,z={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},U={origin:"*mouse"},G={origin:"+move"};function V(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var l=o-r;if(o==e.length||i+l>=t)return r+Math.min(l,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var K=[""];function $(e){for(;K.length<=e;)K.push(X(K)+" ");return K[e]}function X(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Q(){}function J(e,t){var n;return Object.create?n=Object.create(e):(Q.prototype=e,n=new Q),t&&I(t,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function te(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&re.test(e)}function oe(e,t,n){for(;(n<0?t>0:t<e.length)&&ie(e.charAt(t));)t+=n;return t}function le(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ae(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function se(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function ce(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function ue(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function fe(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function he(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l].height;if(t<a)break;t-=a}return n+l}function de(e,t){return t>=e.first&&t<e.first+e.size}function pe(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function me(e,t,n){if(void 0===n&&(n=null),!(this instanceof me))return new me(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ge(e,t){return e.line-t.line||e.ch-t.ch}function ve(e,t){return e.sticky==t.sticky&&0==ge(e,t)}function ye(e){return me(e.line,e.ch)}function xe(e,t){return ge(e,t)<0?t:e}function be(e,t){return ge(e,t)<0?e:t}function Ce(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function we(e,t){if(t.line<e.first)return me(e.first,0);var n=e.first+e.size-1;return t.line>n?me(n,ae(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?me(e.line,t):n<0?me(e.line,0):e}(t,ae(e,t.line).text.length)}function ke(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=we(e,t[r]);return n}var Se=!1,Le=!1;function Me(e,t,n){this.marker=e,this.from=t,this.to=n}function Te(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ae(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Oe(e,t){if(t.full)return null;var n=de(e,t.from.line)&&ae(e,t.from.line).markedSpans,r=de(e,t.to.line)&&ae(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,l=0==ge(t.from,t.to),a=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==l.type&&(!n||!o.marker.insertLeft)){var a=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Me(l,o.from,a?null:o.to))}}return r}(n,i,l),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker;if(null==o.to||(l.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Me(l,a?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,l),c=1==t.text.length,u=X(t.text).length+(c?i:0);if(a)for(var f=0;f<a.length;++f){var h=a[f];if(null==h.to){var d=Te(s,h.marker);d?c&&(h.to=null==d.to?null:d.to+u):h.to=i}}if(s)for(var p=0;p<s.length;++p){var m=s[p];if(null!=m.to&&(m.to+=u),null==m.from)Te(a,m.marker)||(m.from=u,c&&(a||(a=[])).push(m));else m.from+=u,c&&(a||(a=[])).push(m)}a&&(a=Ne(a)),s&&s!=a&&(s=Ne(s));var g=[a];if(!c){var v,y=t.text.length-2;if(y>0&&a)for(var x=0;x<a.length;++x)null==a[x].to&&(v||(v=[])).push(new Me(a[x].marker,null,null));for(var b=0;b<y;++b)g.push(v);g.push(s)}return g}function Ne(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Fe(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function De(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Pe(e){return e.inclusiveLeft?-1:0}function Ee(e){return e.inclusiveRight?1:0}function He(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ge(r.from,i.from)||Pe(e)-Pe(t);if(o)return-o;var l=ge(r.to,i.to)||Ee(e)-Ee(t);return l||t.id-e.id}function We(e,t){var n,r=Le&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||He(n,i.marker)<0)&&(n=i.marker);return n}function Ie(e){return We(e,!0)}function Re(e){return We(e,!1)}function _e(e,t){var n,r=Le&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||He(n,o.marker)<0)&&(n=o.marker)}return n}function Be(e,t,n,r,i){var o=ae(e,t),l=Le&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(s.marker.collapsed){var c=s.marker.find(0),u=ge(c.from,n)||Pe(s.marker)-Pe(i),f=ge(c.to,r)||Ee(s.marker)-Ee(i);if(!(u>=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ge(c.to,n)>=0:ge(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ge(c.from,r)<=0:ge(c.from,r)<0)))return!0}}}function je(e){for(var t;t=Ie(e);)e=t.find(-1,!0).line;return e}function ze(e,t){var n=ae(e,t),r=je(n);return n==r?t:fe(r)}function qe(e,t){if(t>e.lastLine())return t;var n,r=ae(e,t);if(!Ue(e,r))return t;for(;n=Re(r);)r=n.find(1,!0).line;return fe(r)+1}function Ue(e,t){var n=Le&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ge(e,t,r))return!0}}function Ge(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Ge(e,r.line,Te(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ge(e,t,i))return!0}function Ve(e){for(var t=0,n=(e=je(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==n)break;t+=a.height}return t}function Ke(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Ie(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Re(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function $e(e){var t=e.display,n=e.doc;t.maxLine=ae(n,n.first),t.maxLineLength=Ke(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Ke(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Xe=null;function Ye(e,t,n){var r;Xe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Xe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Xe=i)}return null!=r?r:Xe}var Qe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,i=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,c){var u="ltr"==c?"L":"R";if(0==s.length||"ltr"==c&&!n.test(s))return!1;for(var f,h=s.length,d=[],p=0;p<h;++p)d.push((f=s.charCodeAt(p))<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":8204==f?"b":"L");for(var m=0,g=u;m<h;++m){var v=d[m];"m"==v?d[m]=g:g=v}for(var y=0,x=u;y<h;++y){var b=d[y];"1"==b&&"r"==x?d[y]="n":i.test(b)&&(x=b,"r"==b&&(d[y]="R"))}for(var C=1,w=d[0];C<h-1;++C){var k=d[C];"+"==k&&"1"==w&&"1"==d[C+1]?d[C]="1":","!=k||w!=d[C+1]||"1"!=w&&"n"!=w||(d[C]=w),w=k}for(var S=0;S<h;++S){var L=d[S];if(","==L)d[S]="N";else if("%"==L){var M=void 0;for(M=S+1;M<h&&"%"==d[M];++M);for(var T=S&&"!"==d[S-1]||M<h&&"1"==d[M]?"1":"N",A=S;A<M;++A)d[A]=T;S=M-1}}for(var O=0,N=u;O<h;++O){var F=d[O];"L"==N&&"1"==F?d[O]="L":i.test(F)&&(N=F)}for(var D=0;D<h;++D)if(r.test(d[D])){var P=void 0;for(P=D+1;P<h&&r.test(d[P]);++P);for(var E="L"==(D?d[D-1]:u),H=E==("L"==(P<h?d[P]:u))?E?"L":"R":u,W=D;W<P;++W)d[W]=H;D=P-1}for(var I,R=[],_=0;_<h;)if(o.test(d[_])){var B=_;for(++_;_<h&&o.test(d[_]);++_);R.push(new a(0,B,_))}else{var j=_,z=R.length;for(++_;_<h&&"L"!=d[_];++_);for(var q=j;q<_;)if(l.test(d[q])){j<q&&R.splice(z,0,new a(1,j,q));var U=q;for(++q;q<_&&l.test(d[q]);++q);R.splice(z,0,new a(2,U,q)),j=q}else++q;j<_&&R.splice(z,0,new a(1,j,_))}return"ltr"==c&&(1==R[0].level&&(I=s.match(/^\s+/))&&(R[0].from=I[0].length,R.unshift(new a(0,0,I[0].length))),1==X(R).level&&(I=s.match(/\s+$/))&&(X(R).to-=I[0].length,R.push(new a(0,h-I[0].length,h)))),"rtl"==c?R.reverse():R}}();function Je(e,t){var n=e.order;return null==n&&(n=e.order=Qe(e.text,t)),n}var Ze=[],et=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Ze).concat(n)}};function tt(e,t){return e._handlers&&e._handlers[t]||Ze}function nt(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=B(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function rt(e,t){var n=tt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function it(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),rt(e,n||t.type,e,t),ut(t)||t.codemirrorIgnore}function ot(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function lt(e,t){return tt(e,t).length>0}function at(e){e.prototype.on=function(e,t){et(this,e,t)},e.prototype.off=function(e,t){nt(this,e,t)}}function st(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ct(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ut(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ft(e){st(e),ct(e)}function ht(e){return e.target||e.srcElement}function dt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var pt,mt,gt=function(){if(l&&a<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function vt(e){if(null==pt){var t=O("span","​");A(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(pt=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var n=pt?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function yt(e){if(null!=mt)return mt;var t=A(e,document.createTextNode("AخA")),n=L(t,0,1).getBoundingClientRect(),r=L(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(mt=r.right-n.right<3)}var xt,bt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ct=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},wt="oncopy"in(xt=O("div"))||(xt.setAttribute("oncopy","return;"),"function"==typeof xt.oncopy),kt=null;var St={},Lt={};function Mt(e){if("string"==typeof e&&Lt.hasOwnProperty(e))e=Lt[e];else if(e&&"string"==typeof e.name&&Lt.hasOwnProperty(e.name)){var t=Lt[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Mt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Mt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Tt(e,t){t=Mt(t);var n=St[t.name];if(!n)return Tt(e,"text/plain");var r=n(e,t);if(At.hasOwnProperty(t.name)){var i=At[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var At={};function Ot(e,t){I(t,At.hasOwnProperty(e)?At[e]:At[e]={})}function Nt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ft(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Dt(e,t,n){return!e.startState||e.startState(t,n)}var Pt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Pt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Et=function(e,t){this.state=e,this.lookAhead=t},Ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Wt(e,t,n,r){var i=[e.state.modeGen],o={};Gt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var l=n.state,a=function(r){n.baseTokens=i;var a=e.state.overlays[r],s=1,c=0;n.state=!0,Gt(e,t.text,a.mode,n,function(e,t){for(var n=s;c<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(a.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=l,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function It(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Rt(e,fe(t)),i=t.text.length>e.options.maxHighlightLength&&Nt(e.doc.mode,r.state),o=Wt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=ae(o,a-1),c=s.stateAfter;if(c&&(!n||a+(c instanceof Et?c.lookAhead:0)<=o.modeFrontier))return a;var u=R(s.text,null,e.options.tabSize);(null==i||r>u)&&(i=a-1,r=u)}return i}(e,t,n),l=o>r.first&&ae(r,o-1).stateAfter,a=l?Ht.fromSaved(r,l,o):new Ht(r,Dt(r.mode),o);return r.iter(o,t,function(n){_t(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()}),n&&(r.modeFrontier=a.line),a}function _t(e,t,n,r){var i=e.doc.mode,o=new Pt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Bt(i,n.state);!o.eol();)jt(i,o,n.state),o.start=o.pos}function Bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ft(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function jt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ft(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ht.fromSaved=function(e,t,n){return t instanceof Et?new Ht(e,Nt(e.mode,t.state),n,t.lookAhead):new Ht(e,Nt(e.mode,t),n)},Ht.prototype.save=function(e){var t=!1!==e?Nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Et(t,this.maxLookAhead):t};var zt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function qt(e,t,n,r){var i,o,l=e.doc,a=l.mode,s=ae(l,(t=we(l,t)).line),c=Rt(e,t.line,n),u=new Pt(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=jt(a,u,c.state),r&&o.push(new zt(u,i,Nt(l.mode,c.state)));return r?o:new zt(u,i,c.state)}function Ut(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Gt(e,t,n,r,i,o,l){var a=n.flattenSpans;null==a&&(a=e.options.flattenSpans);var s,c=0,u=null,f=new Pt(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&Ut(Bt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,l&&_t(e,t,r,f.pos),f.pos=t.length,s=null):s=Ut(jt(n,f,r.state,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||u!=s){for(;c<f.start;)i(c=Math.min(f.start,c+5e3),u);u=s}f.start=f.pos}for(;c<f.pos;){var p=Math.min(f.pos,c+5e3);i(p,u),c=p}}var Vt=function(e,t,n){this.text=e,De(this,t),this.height=n?n(this):1};function Kt(e){e.parent=null,Fe(e)}Vt.prototype.lineNo=function(){return fe(this)},at(Vt);var $t={},Xt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:$t;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var n=N("span",null,null,s?"padding-right: .1px":null),r={pre:N("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Zt,yt(e.display.measure)&&(l=Je(o,e.doc.direction))&&(r.addToken=en(r.addToken,l)),r.map=[],nn(o,r,It(e,o,t!=e.display.externalMeasured&&fe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=E(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=E(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(vt(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=E(r.pre.className,r.textClass||"")),r}function Jt(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,s){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,h=!1;if(f.test(t)){c=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var p=f.exec(t),m=p?p.index-d:t.length-d;if(m){var g=document.createTextNode(u.slice(d,d+m));l&&a<9?c.appendChild(O("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;d+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,x=y-e.col%y;(v=c.appendChild(O("span",$(x),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=x}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(O("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&a<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),l&&a<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||s){var b=n||"";r&&(b+=r),i&&(b+=i);var C=O("span",[c],b,s);return o&&(C.title=o),e.content.appendChild(C)}e.content.appendChild(c)}}function en(e,t){return function(n,r,i,o,l,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var f=void 0,h=0;h<t.length&&!((f=t[h]).to>c&&f.from<=c);h++);if(f.to>=u)return e(n,r,i,o,l,a,s);e(n,r.slice(0,f.to-c),i,o,null,a,s),o=null,r=r.slice(f.to-c),c=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var l,a,s,c,u,f,h,d=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=c=u=f=a="",h=null,v=1/0;for(var y=[],x=void 0,b=0;b<r.length;++b){var C=r[b],w=C.marker;"bookmark"==w.type&&C.from==p&&w.widgetNode?y.push(w):C.from<=p&&(null==C.to||C.to>p||w.collapsed&&C.to==p&&C.from==p)?(null!=C.to&&C.to!=p&&v>C.to&&(v=C.to,c=""),w.className&&(s+=" "+w.className),w.css&&(a=(a?a+";":"")+w.css),w.startStyle&&C.from==p&&(u+=" "+w.startStyle),w.endStyle&&C.to==v&&(x||(x=[])).push(w.endStyle,C.to),w.title&&!f&&(f=w.title),w.collapsed&&(!h||He(h.marker,w)<0)&&(h=C)):C.from>p&&v>C.from&&(v=C.from)}if(x)for(var k=0;k<x.length;k+=2)x[k+1]==v&&(c+=" "+x[k]);if(!h||h.from==p)for(var S=0;S<y.length;++S)tn(t,0,y[S]);if(h&&(h.from||0)==p){if(tn(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var L=Math.min(d,v);;){if(g){var M=p+g.length;if(!h){var T=M>L?g.slice(0,L-p):g;t.addToken(t,T,l?l+s:s,u,p+T.length==v?c:"",f,a)}if(M>=L){g=g.slice(L-p),p=L;break}p=M,u=""}g=i.slice(o,o=n[m++]),l=Yt(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),Yt(n[A+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Re(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?fe(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ue(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var l=new rn(e.doc,ae(e.doc,o),o);r=o+l.size,i.push(l)}return i}var ln=null;var an=null;function sn(e,t){var n=tt(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ln?r=ln.delayedCallbacks:an?r=an:(r=an=[],setTimeout(cn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},l=0;l<n.length;++l)o(l)}}function cn(){var e=an;an=null;for(var t=0;t<e.length;++t)e[t]()}function un(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?pn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&a<8&&(e.node.style.zIndex=2)),e.node}function hn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Qt(e,t)}function dn(e,t){var n=t.text.className,r=hn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,pn(e,t)):n&&(t.text.className=n)}function pn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=fn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var l=fn(t),a=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),l.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(O("div",pe(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.options.gutters.length;++s){var c=e.options.gutters[s],u=o.hasOwnProperty(c)&&o[c];u&&a.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);yn(e,t,n)}function vn(e,t,n,r){var i=hn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),pn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(xn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)xn(e,t.rest[r],t,n,!1)}function xn(e,t,n,r,i){if(t.widgets)for(var o=fn(n),l=0,a=t.widgets;l<a.length;++l){var s=a[l],c=O("div",[s.node],"CodeMirror-linewidget");s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),bn(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),sn(s,"redraw")}}function bn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!F(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function wn(e,t){for(var n=ht(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function Sn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,O("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Mn(e){return j-e.display.nativeBarWidth}function Tn(e){return e.display.scroller.clientWidth-Mn(e)-e.display.barWidth}function An(e){return e.display.scroller.clientHeight-Mn(e)-e.display.barHeight}function On(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(fe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Nn(e,t,n,r){return Pn(e,Dn(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[sr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Dn(e,t){var n=fe(t),r=Fn(e,n);r&&!r.text?r=null:r&&r.changes&&(un(e,r,n,rr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=fe(t=je(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Qt(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}(e,t));var i=On(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Pn(e,t,n,r,i){t.before&&(n=-1);var o,s=n+(r||"");return t.cache.hasOwnProperty(s)?o=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&Tn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),a=0;a<l.length-1;a++){var s=l[a],c=l[a+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Wn(t.map,n,r),s=o.node,c=o.start,u=o.end,f=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;c&&ie(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+u));)++u;if((i=l&&a<9&&0==c&&u==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():In(L(s,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,f="right"}l&&a<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=kt)return kt;var t=A(e,O("span","x")),n=t.getBoundingClientRect(),r=L(t,0,1).getBoundingClientRect();return kt=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;c>0&&(f=r="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!c&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+nr(e.display),top:p.top,bottom:p.bottom}:Hn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,x=0;x<y.length-1&&!(v<y[x]);x++);var b=x?y[x-1]:0,C=y[x],w={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:b,bottom:C};i.left||i.right||(w.bogus=!0);e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=g);return w}(e,t,n,r)).bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var En,Hn={left:0,right:0,top:0,bottom:0};function Wn(e,t,n){for(var r,i,o,l,a,s,c=0;c<e.length;c+=3)if(a=e[c],s=e[c+1],t<a?(i=0,o=1,l="left"):t<s?o=(i=t-a)+1:(c==e.length-3||t==s&&e[c+3]>t)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(r=e[c+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],l="left";if("right"==n&&i==s-a)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],l="right";break}return{node:r,start:i,end:o,collapse:l,coverStart:a,coverEnd:s}}function In(e,t){var n=Hn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function _n(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Rn(e.display.view[t])}function Bn(e){_n(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function jn(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zn(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Cn(e.widgets[n]));return t}function Un(e,t,n,r,i){if(!i){var o=qn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var l=Ve(t);if("local"==r?l+=kn(e.display):l-=e.display.viewOffset,"page"==r||"window"==r){var a=e.display.lineSpace.getBoundingClientRect();l+=a.top+("window"==r?0:zn());var s=a.left+("window"==r?0:jn());n.left+=s,n.right+=s}return n.top+=l,n.bottom+=l,n}function Gn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=jn(),i-=zn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:r-l.left,top:i-l.top}}function Vn(e,t,n,r,i){return r||(r=ae(e.doc,t.line)),Un(e,r,Nn(e,r,t.ch,i),n)}function Kn(e,t,n,r,i,o){function l(t,l){var a=Pn(e,i,t,l?"right":"left",o);return l?a.left=a.right:a.right=a.left,Un(e,r,a,n)}r=r||ae(e.doc,t.line),i||(i=Dn(e,r));var a=Je(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!a)return l("before"==c?s-1:s,"before"==c);function u(e,t,n){var r=1==a[t].level;return l(n?e-1:e,r!=n)}var f=Ye(a,s,c),h=Xe,d=u(s,f,"before"==c);return null!=h&&(d.other=u(s,h,"before"!=c)),d}function $n(e,t){var n=0;t=we(e.doc,t),e.options.lineWrapping||(n=nr(e.display)*t.ch);var r=ae(e.doc,t.line),i=Ve(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Xn(e,t,n,r,i){var o=me(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Xn(r.first,0,null,!0,-1);var i=he(r,n),o=r.first+r.size-1;if(i>o)return Xn(r.first+r.size-1,ae(r,o).text.length,null,!0,1);t<0&&(t=0);for(var l=ae(r,i);;){var a=er(e,l,i,t,n),s=_e(l,a.ch+(a.xRel>0?1:0));if(!s)return a;var c=s.find(1);if(c.line==i)return c;l=ae(r,i=c.line)}}function Qn(e,t,n,r){r-=qn(t);var i=t.text.length,o=le(function(t){return Pn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=le(function(t){return Pn(e,n,t).top>r},o,i)}}function Jn(e,t,n,r){return n||(n=Dn(e,t)),Qn(e,t,n,Un(e,t,Pn(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ve(t);var o=Dn(e,t),l=qn(t),a=0,s=t.text.length,c=!0,u=Je(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,l){var a=Qn(e,t,r,l),s=a.begin,c=a.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,f=null,h=0;h<i.length;h++){var d=i[h];if(!(d.from>=c||d.to<=s)){var p=1!=d.level,m=Pn(e,r,p?Math.min(c,d.to)-1:Math.max(s,d.from)).right,g=m<o?o-m+1e9:m-o;(!u||f>g)&&(u=d,f=g)}}u||(u=i[i.length-1]);u.from<s&&(u={from:s,to:u.to,level:u.level});u.to>c&&(u={from:u.from,to:c,level:u.level});return u}:function(e,t,n,r,i,o,l){var a=le(function(a){var s=i[a],c=1!=s.level;return Zn(Kn(e,me(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var c=1!=s.level,u=Kn(e,me(n,c?s.from:s.to,c?"after":"before"),"line",t,r);Zn(u,o,l,!0)&&u.top>l&&(s=i[a-1])}return s})(e,t,n,o,u,r,i);a=(c=1!=f.level)?f.from:f.to-1,s=c?f.to:f.from-1}var h,d,p=null,m=null,g=le(function(t){var n=Pn(e,o,t);return n.top+=l,n.bottom+=l,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},a,s),v=!1;if(m){var y=r-m.left<m.right-r,x=y==c;g=p+(x?0:1),d=x?"after":"before",h=y?m.left:m.right}else{c||g!=s&&g!=a||g++,d=0==g?"after":g==t.text.length?"before":Pn(e,o,g-(c?1:0)).bottom+l<=i==c?"after":"before";var b=Kn(e,me(n,g,d),"line",t,o);h=b.left,v=i<b.top||i>=b.bottom}return Xn(n,g=oe(t.text,g,1),d,v,r-h)}function tr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==En){En=O("pre");for(var t=0;t<49;++t)En.appendChild(document.createTextNode("x")),En.appendChild(O("br"));En.appendChild(document.createTextNode("x"))}A(e.measure,En);var n=En.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function nr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t]);A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function rr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)n[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[l]]=o.clientWidth;return{fixedPos:ir(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ir(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function or(e){var t=tr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/nr(e.display)-3);return function(i){if(Ue(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=or(e);t.iter(function(e){var t=n(e);t!=e.height&&ue(e,t)})}function ar(e,t,n,r){var i=e.display;if(!n&&"true"==ht(t).getAttribute("cm-not-content"))return null;var o,l,a=i.lineSpace.getBoundingClientRect();try{o=t.clientX-a.left,l=t.clientY-a.top}catch(t){return null}var s,c=Yn(e,o,l);if(r&&1==c.xRel&&(s=ae(e.doc,c.line).text).length==c.ch){var u=R(s,s.length,e.options.tabSize)-s.length;c=me(c.line,Math.max(0,Math.round((o-Ln(e.display).left)/nr(e.display))-u))}return c}function sr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function cr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ur(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=0;l<n.sel.ranges.length;l++)if(t||l!=n.sel.primIndex){var a=n.sel.ranges[l];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var s=a.empty();(s||e.options.showCursorWhenSelecting)&&fr(e,a.head,i),s||dr(e,a,o)}}return r}function fr(e,t,n){var r=Kn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function hr(e,t){return e.top-t.top||e.left-t.left}function dr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Ln(e.display),a=l.left,s=Math.max(r.sizerWidth,Tn(e)-r.sizer.offsetLeft)-l.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,r){var o,l,f=ae(i,t),h=f.text.length;function d(n,r){return Vn(e,me(t,n),"div",f,r)}function p(t,n,r){var i=Jn(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=Je(f,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<n&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?h:r,function(e,t,i,f){var g="ltr"==i,v=d(e,g?"left":"right"),y=d(t-1,g?"right":"left"),x=null==n&&0==e,b=null==r&&t==h,C=0==f,w=!m||f==m.length-1;if(y.top-v.top<=3){var k=(c?b:x)&&w,S=(c?x:b)&&C?a:(g?v:y).left,L=k?s:(g?y:v).right;u(S,v.top,L-S,v.bottom)}else{var M,T,A,O;g?(M=c&&x&&C?a:v.left,T=c?s:p(e,i,"before"),A=c?a:p(t,i,"after"),O=c&&b&&w?s:y.right):(M=c?p(e,i,"before"):a,T=!c&&x&&C?s:v.right,A=!c&&b&&w?a:y.left,O=c?p(t,i,"after"):s),u(M,v.top,T-M,v.bottom),v.bottom<y.top&&u(a,v.bottom,null,y.top),u(A,y.top,O-A,y.bottom)}(!o||hr(v,o)<0)&&(o=v),hr(y,o)<0&&(o=y),(!l||hr(v,l)<0)&&(l=v),hr(y,l)<0&&(l=y)}),{start:o,end:l}}var h=t.from(),d=t.to();if(h.line==d.line)f(h.line,h.ch,d.ch);else{var p=ae(i,h.line),m=ae(i,d.line),g=je(p)==je(m),v=f(h.line,h.ch,g?p.text.length+1:null).end,y=f(d.line,g?0:null,d.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(a,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(a,v.bottom,null,y.top)}n.appendChild(o)}function pr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function mr(e){e.state.focused||(e.display.input.focus(),vr(e))}function gr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,yr(e))},100)}function vr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(rt(e,"focus",e,t),e.state.focused=!0,P(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),pr(e))}function yr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function xr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(l&&a<8){var s=i.node.offsetTop+i.node.offsetHeight;o=s-n,n=s}else{var c=i.node.getBoundingClientRect();o=c.bottom-c.top}var u=i.line.height-o;if(o<2&&(o=tr(t)),(u>.005||u<-.005)&&(ue(i.line,o),br(i.line),i.rest))for(var f=0;f<i.rest.length;f++)br(i.rest[f])}}}function br(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Cr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=he(t,r),l=he(t,i);if(n&&n.ensure){var a=n.ensure.from.line,s=n.ensure.to.line;a<o?(o=a,l=he(t,Ve(ae(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=l&&(o=he(t,Ve(ae(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function wr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ir(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l<n.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var a=n[l].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function kr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=pe(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,l=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-l)+1,r.lineNumWidth=r.lineNumInnerWidth+l,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",si(e),!0}return!1}function Sr(e,t){var n=e.display,r=tr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=An(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Sn(n),s=t.top<r,c=t.bottom>a-r;if(t.top<i)l.scrollTop=s?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?a:t.bottom)-o);u!=i&&(l.scrollTop=u)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Tn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.left<f?l.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>h+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Lr(e,t){null!=t&&(Ar(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mr(e){Ar(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Ar(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ar(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Or(e,$n(e,t.from),$n(e,t.to),t.margin))}function Or(e,t,n,r){var i=Sr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,i.scrollLeft,i.scrollTop)}function Nr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ai(e,{top:t}),Fr(e,t,!0),n&&ai(e),ni(e,100))}function Fr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Dr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,wr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Sn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Mn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Er=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),et(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),et(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Er.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Er.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Er.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Er.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _,this.disableVert=new _},Er.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Er.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Wr(e,t){t||(t=Pr(e));var n=e.display.barWidth,r=e.display.barHeight;Ir(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&xr(e),Ir(e,Pr(e)),n=e.display.barWidth,r=e.display.barHeight}function Ir(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Rr={native:Er,null:Hr};function _r(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Rr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),et(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Dr(e,t):Nr(e,t)},e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var Br=0;function jr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Br},t=e.curOp,ln?ln.ops.push(t):t.ownsGroup=ln={ops:[t],delayedCallbacks:[]}}function zr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{ln=null,t(n)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)qr(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&oi(i.cm,i.update);var i;for(var o=0;o<t.length;o++)Ur(t[o]);for(var l=0;l<t.length;l++)Gr(t[l]);for(var a=0;a<t.length;a++)Vr(t[a])}(e)})}function qr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Mn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Mn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&$e(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ii(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ur(e){var t=e.cm,n=t.display;e.updatedDisplay&&xr(t),e.barMeasure=Pr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Nn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Mn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Tn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Gr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Dr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wr(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&pr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&mr(e.cm)}function Vr(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&li(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Fr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Dr(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!it(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=O("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Mn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?me(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?me(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var l=!1,a=Kn(e,t),s=n&&n!=t?Kn(e,n):a,c=Sr(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r}),u=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(Nr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(l=!0)),null!=c.scrollLeft&&(Dr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}(t,we(r,e.scrollToPos.from),we(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||rt(i[l],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&rt(o[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&rt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Kr(e,t){if(e.curOp)return t();jr(e);try{return t()}finally{zr(e)}}function $r(e,t){return function(){if(e.curOp)return t.apply(e,arguments);jr(e);try{return t.apply(e,arguments)}finally{zr(e)}}}function Xr(e){return function(){if(this.curOp)return e.apply(this,arguments);jr(this);try{return e.apply(this,arguments)}finally{zr(this)}}}function Yr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);jr(t);try{return e.apply(this,arguments)}finally{zr(t)}}}function Qr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Le&&ze(e.doc,t)<i.viewTo&&Zr(e);else if(n<=i.viewFrom)Le&&qe(e.doc,n+r)>i.viewFrom?Zr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Zr(e);else if(t<=i.viewFrom){var o=ei(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Zr(e)}else if(n>=i.viewTo){var l=ei(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):Zr(e)}else{var a=ei(e,t,t,-1),s=ei(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(on(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Zr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Jr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[sr(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==B(l,n)&&l.push(n)}}}function Zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ei(e,t,n,r){var i,o=sr(e,t),l=e.display.view;if(!Le||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var a=e.display.viewFrom,s=0;s<o;s++)a+=l[s].size;if(a!=t){if(r>0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,n+=i}for(;ze(e.doc,n)!=n;){if(o==(r<0?0:l.length-1))return null;n+=r*l[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function ti(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function ni(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,W(ri,e))}function ri(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Rt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Nt(t.mode,r.state):null,s=Wt(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var c=o.styleClasses,u=s.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!f&&h<l.length;++h)f=l[h]!=o.styles[h];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&_t(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ni(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Kr(e,function(){for(var t=0;t<i.length;t++)Jr(e,i[t],"text")})}}var ii=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Cr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Tn(e),this.force=n,this.dims=rr(e),this.events=[]};function oi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Zr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ti(e))return!1;kr(e)&&(Zr(e),t.dims=rr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>l&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Le&&(o=ze(e.doc,o),l=qe(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(sr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,sr(e,n)))),r.viewTo=n}(e,o,l),n.viewOffset=Ve(ae(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=ti(e);if(!a&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=D();if(!t||!F(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&F(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,f=0;f<c.length;f++){var h=c[f];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;l!=h.node;)l=a(l);var d=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&(B(h.changes,"gutter")>-1&&(d=!1),un(e,h,u,n)),d&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(pe(e.options,u)))),l=h.node.nextSibling}else{var p=vn(e,h,u,n);o.insertBefore(p,l)}u+=h.size}for(;l;)l=a(l)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=D()&&(e.activeElt.focus(),e.anchorNode&&F(document.body,e.anchorNode)&&F(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ni(e,400)),n.updateLineNumbers=null,!0}function li(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Tn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Sn(e.display)-An(e),n.top)}),t.visible=Cr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&oi(e,t);r=!1){xr(e);var i=Pr(e);cr(e),Wr(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ai(e,t){var n=new ii(e,t);if(oi(e,n)){xr(e),li(e,n);var r=Pr(e);cr(e),Wr(e,r),ci(e,r),n.finish()}}function si(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Mn(e)+"px"}function ui(e){var t=e.display.gutters,n=e.options.gutters;T(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(O("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",si(e)}function fi(e){var t=B(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}ii.prototype.signal=function(e,t){lt(e,t)&&this.events.push(arguments)},ii.prototype.finish=function(){for(var e=0;e<this.events.length;e++)rt.apply(null,this.events[e])};var hi=0,di=null;function pi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function mi(e){var t=pi(e);return t.x*=di,t.y*=di,t}function gi(e,t){var r=pi(t),i=r.x,o=r.y,l=e.display,a=l.scroller,c=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(i&&c||o&&u){if(o&&y&&s)e:for(var h=t.target,d=l.view;h!=a;h=h.parentNode)for(var p=0;p<d.length;p++)if(d[p].node==h){e.display.currentWheelTarget=h;break e}if(i&&!n&&!f&&null!=di)return o&&u&&Nr(e,Math.max(0,a.scrollTop+o*di)),Dr(e,Math.max(0,a.scrollLeft+i*di)),(!o||o&&u)&&st(t),void(l.wheelStartX=null);if(o&&null!=di){var m=o*di,g=e.doc.scrollTop,v=g+l.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),ai(e,{top:g,bottom:v})}hi<20&&(null==l.wheelStartX?(l.wheelStartX=a.scrollLeft,l.wheelStartY=a.scrollTop,l.wheelDX=i,l.wheelDY=o,setTimeout(function(){if(null!=l.wheelStartX){var e=a.scrollLeft-l.wheelStartX,t=a.scrollTop-l.wheelStartY,n=t&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX;l.wheelStartX=l.wheelStartY=null,n&&(di=(di*hi+n)/(hi+1),++hi)}},200)):(l.wheelDX+=i,l.wheelDY+=o))}}l?di=-.53:n?di=15:u?di=-.7:h&&(di=-1/3);var vi=function(e,t){this.ranges=e,this.primIndex=t};vi.prototype.primary=function(){return this.ranges[this.primIndex]},vi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ve(n.anchor,r.anchor)||!ve(n.head,r.head))return!1}return!0},vi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new yi(ye(this.ranges[t].anchor),ye(this.ranges[t].head));return new vi(e,this.primIndex)},vi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},vi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ge(t,r.from())>=0&&ge(e,r.to())<=0)return n}return-1};var yi=function(e,t){this.anchor=e,this.head=t};function xi(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ge(e.from(),t.from())}),n=B(t,i);for(var o=1;o<t.length;o++){var l=t[o],a=t[o-1],s=ge(a.to(),l.from());if(r&&!l.empty()?s>0:s>=0){var c=be(a.from(),l.from()),u=xe(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new yi(f?u:c,f?c:u))}}return new vi(t,n)}function bi(e,t){return new vi([new yi(e,t||e)],0)}function Ci(e){return e.text?me(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function wi(e,t){if(ge(e,t.from)<0)return e;if(ge(e,t.to)<=0)return Ci(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ci(t).ch-t.to.ch),me(n,r)}function ki(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new yi(wi(i.anchor,t),wi(i.head,t)))}return xi(e.cm,n,e.sel.primIndex)}function Si(e,t,n){return e.line==t.line?me(n.line,e.ch-t.ch+n.ch):me(n.line+(e.line-t.line),e.ch)}function Li(e){e.doc.mode=Tt(e.options,e.doc.modeOption),Mi(e)}function Mi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ni(e,100),e.state.modeGen++,e.curOp&&Qr(e)}function Ti(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ai(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Fe(e),De(e,n);var i=r?r(e):1;i!=e.height&&ue(e,i)}(e,n,i,r),sn(e,"change",e,t)}function l(e,t){for(var n=[],o=e;o<t;++o)n.push(new Vt(c[o],i(o),r));return n}var a=t.from,s=t.to,c=t.text,u=ae(e,a.line),f=ae(e,s.line),h=X(c),d=i(c.length-1),p=s.line-a.line;if(t.full)e.insert(0,l(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ti(e,t)){var m=l(0,c.length-1);o(f,f.text,d),p&&e.remove(a.line,p),m.length&&e.insert(a.line,m)}else if(u==f)if(1==c.length)o(u,u.text.slice(0,a.ch)+h+u.text.slice(s.ch),d);else{var g=l(1,c.length-1);g.push(new Vt(h+u.text.slice(s.ch),d,r)),o(u,u.text.slice(0,a.ch)+c[0],i(0)),e.insert(a.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,a.ch)+c[0]+f.text.slice(s.ch),i(0)),e.remove(a.line+1,p);else{o(u,u.text.slice(0,a.ch)+c[0],i(0)),o(f,h+f.text.slice(s.ch),d);var v=l(1,c.length-1);p>1&&e.remove(a.line+1,p-1),e.insert(a.line+1,v)}sn(e,"change",e,t)}function Oi(e,t,n){!function e(r,i,o){if(r.linked)for(var l=0;l<r.linked.length;++l){var a=r.linked[l];if(a.doc!=i){var s=o&&a.sharedHist;n&&!s||(t(a.doc,s),e(a.doc,r,s))}}}(e,null,!0)}function Ni(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Li(e),Fi(e),e.options.lineWrapping||$e(e),e.options.mode=t.modeOption,Qr(e)}function Fi(e){("rtl"==e.doc.direction?P:M)(e.display.lineDiv,"CodeMirror-rtl")}function Di(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Pi(e,t){var n={from:ye(t.from),to:Ci(t),text:se(e,t.from,t.to)};return Ri(e,n,t.from.line,t.to.line+1),Oi(e,function(e){return Ri(e,n,t.from.line,t.to.line+1)},!0),n}function Ei(e){for(;e.length;){if(!X(e).ranges)break;e.pop()}}function Hi(e,t,n,r){var i=e.history;i.undone.length=0;var o,l,a=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ei(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(i,i.lastOp==r)))l=X(o.changes),0==ge(t.from,t.to)&&0==ge(t.from,l.to)?l.to=Ci(t):o.changes.push(Pi(e,t));else{var s=X(i.done);for(s&&s.ranges||Ii(e.sel,i.done),o={changes:[Pi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||rt(e,"historyAdded")}function Wi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,X(i.done),t))?i.done[i.done.length-1]=t:Ii(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ei(i.undone)}function Ii(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ri(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function _i(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Bi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(_i(n[i]));return r}(e,t),r=Oe(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],l=r[i];if(o&&l)e:for(var a=0;a<l.length;++a){for(var s=l[a],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else l&&(n[i]=l)}return n}function ji(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?vi.prototype.deepCopy.call(o):o);else{var l=o.changes,a=[];r.push({changes:a});for(var s=0;s<l.length;++s){var c=l[s],u=void 0;if(a.push({from:c.from,to:c.to,text:c.text}),t)for(var f in c)(u=f.match(/^spans_(\d+)$/))&&B(t,Number(u[1]))>-1&&(X(a)[f]=c[f],delete c[f])}}}return r}function zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ge(t,i)<0;o!=ge(n,i)<0?(i=t,t=n):o!=ge(t,n)<0&&(t=n)}return new yi(i,t)}return new yi(n||t,t)}function qi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$i(e,new vi([zi(e.sel.primary(),t,n,i)],0),r)}function Ui(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=zi(e.sel.ranges[o],t[o],null,i);$i(e,xi(e.cm,r,e.sel.primIndex),n)}function Gi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,$i(e,xi(e.cm,i,e.sel.primIndex),r)}function Vi(e,t,n,r){$i(e,bi(t,n),r)}function Ki(e,t,n){var r=e.history.done,i=X(r);i&&i.ranges?(r[r.length-1]=t,Xi(e,t,n)):$i(e,t,n)}function $i(e,t,n){Xi(e,t,n),Wi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Xi(e,t,n){(lt(e,"beforeSelectionChange")||e.cm&&lt(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new yi(we(e,t[n].anchor),we(e,t[n].head))},origin:n&&n.origin};return rt(e,"beforeSelectionChange",e,r),e.cm&&rt(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?xi(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n)),Yi(e,Ji(e,t,n&&n.bias||(ge(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||Mr(e.cm)}function Yi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,ot(e.cm)),sn(e,"cursorActivity",e))}function Qi(e){Yi(e,Ji(e,e.sel,null,!1))}function Ji(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=eo(e,l.anchor,a&&a.anchor,n,r),c=eo(e,l.head,a&&a.head,n,r);(i||s!=l.anchor||c!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new yi(s,c))}return i?xi(e.cm,i,t.primIndex):t}function Zi(e,t,n,r,i){var o=ae(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var a=o.markedSpans[l],s=a.marker;if((null==a.from||(s.inclusiveLeft?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(s.inclusiveRight?a.to>=t.ch:a.to>t.ch))){if(i&&(rt(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(n){var c=s.find(r<0?1:-1),u=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(c=to(e,c,-r,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=ge(c,n))&&(r<0?u<0:u>0))return Zi(e,c,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=to(e,f,r,f.line==t.line?o:null)),f?Zi(e,f,t,r,i):null}}return t}function eo(e,t,n,r,i){var o=r||1,l=Zi(e,t,n,o,i)||!i&&Zi(e,t,n,o,!0)||Zi(e,t,n,-o,i)||!i&&Zi(e,t,n,-o,!0);return l||(e.cantEdit=!0,me(e.first,0))}function to(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?we(e,me(t.line-1)):null:n>0&&t.ch==(r||ae(e,t.line)).text.length?t.line<e.first+e.size-1?me(t.line+1,0):null:new me(t.line,t.ch+n)}function no(e){e.setSelection(me(e.firstLine(),0),me(e.lastLine()),q)}function ro(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=we(e,t)),n&&(r.to=we(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),rt(e,"beforeChange",e,r),e.cm&&rt(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function io(e,t,n){if(e.cm){if(!e.cm.curOp)return $r(e.cm,io)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(lt(e,"beforeChange")||e.cm&&lt(e.cm,"beforeChange"))||(t=ro(e,t,!0))){var r=Se&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<i.length;++s){var c=i[s];if(!(ge(c.to,a.from)<0||ge(c.from,a.to)>0)){var u=[s,1],f=ge(c.from,a.from),h=ge(c.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&u.push({from:c.from,to:a.from}),(h>0||!l.inclusiveRight&&!h)&&u.push({from:a.to,to:c.to}),i.splice.apply(i,u),s+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)oo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else oo(e,t)}}function oo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ge(t.from,t.to)){var n=ki(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),so(e,t,n,Oe(e,t));var r=[];Oi(e,function(e,n){n||-1!=B(r,e.history)||(ho(e.history,t),r.push(e.history)),so(e,t,null,Oe(e,t))})}}function lo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c<a.length&&(i=a[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=a.pop()).ranges){if(r)return void a.push(i);break}if(Ii(i,s),n&&!i.equals(e.sel))return void $i(e,i,{clearRedo:!1});l=i}var u=[];Ii(l,s),s.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=lt(e,"beforeChange")||e.cm&&lt(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,f&&!ro(e,r,!1))return a.length=0,{};u.push(Pi(e,r));var o=n?ki(e,r):X(a);so(e,r,o,Bi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ci(r)});var l=[];Oi(e,function(e,t){t||-1!=B(l,e.history)||(ho(e.history,r),l.push(e.history)),so(e,r,null,Bi(e,r))})},d=i.changes.length-1;d>=0;--d){var p=h(d);if(p)return p.v}}}}function ao(e,t){if(0!=t&&(e.first+=t,e.sel=new vi(Y(e.sel.ranges,function(e){return new yi(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Qr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Jr(e.cm,r,"gutter")}}function so(e,t,n,r){if(e.cm&&!e.cm.curOp)return $r(e.cm,so)(e,t,n,r);if(t.to.line<e.first)ao(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ao(e,i),t={from:me(e.first,0),to:me(t.to.line+i,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:me(o,ae(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=se(e,t.from,t.to),n||(n=ki(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=fe(je(ae(r,o.line))),r.iter(s,l.line+1,function(e){if(e==i.maxLine)return a=!0,!0}));r.sel.contains(t.from,t.to)>-1&&ot(e);Ai(r,t,n,or(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=Ke(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=ae(e,r).stateAfter;if(i&&(!(i instanceof Et)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),ni(e,400);var c=t.text.length-(l.line-o.line)-1;t.full?Qr(e):o.line!=l.line||1!=t.text.length||Ti(e.doc,t)?Qr(e,o.line,l.line+1,c):Jr(e,o.line,"text");var u=lt(e,"changes"),f=lt(e,"change");if(f||u){var h={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&sn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}(e.cm,t,r):Ai(e,t,r),Xi(e,n,q)}}function co(e,t,n,r,i){var o;r||(r=n),ge(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),io(e,{from:n,to:r,text:t,origin:i})}function uo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function fo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)uo(o.ranges[a].anchor,t,n,r),uo(o.ranges[a].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=me(c.from.line+r,c.from.ch),c.to=me(c.to.line+r,c.to.ch);else if(t<=c.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function ho(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;fo(e.done,n,r,i),fo(e.undone,n,r,i)}function po(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=ae(e,Ce(e,t)):i=fe(t),null==i?null:(r(o,i)&&e.cm&&Jr(e.cm,i,n),o)}function mo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function go(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}yi.prototype.from=function(){return be(this.anchor,this.head)},yi.prototype.to=function(){return xe(this.anchor,this.head)},yi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},mo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Kt(i),sn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},go.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),l=r.height;if(r.removeInner(e,o),this.height-=l-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof mo))){var a=[];this.collapse(a),this.children=[new mo(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var l=i.lines.length%25+25,a=l;a<i.lines.length;){var s=new mo(i.lines.slice(a,a+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new go(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=B(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new go(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,n))return!0;if(0==(t-=l))break;e=0}else e-=o}}};var vo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function yo(e,t,n){Ve(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Lr(e,n)}vo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=fe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Cn(this);ue(n,Math.max(0,n.height-o)),e&&(Kr(e,function(){yo(e,n,-o),Jr(e,r,"widget")}),sn(e,"lineWidgetCleared",e,this,r))}},vo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-t;i&&(Ue(this.doc,r)||ue(r,r.height+i),n&&Kr(n,function(){n.curOp.forceUpdate=!0,yo(n,r,i),sn(n,"lineWidgetChanged",n,e,fe(r))}))},at(vo);var xo=0,bo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++xo};function Co(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=I(r)).shared=!1;var o=[Co(e,t,n,r,i)],l=o[0],a=r.widgetNode;return Oi(e,function(e){a&&(r.widgetNode=a.cloneNode(!0)),o.push(Co(e,we(e,t),we(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;l=X(o)}),new wo(o,l)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return $r(e.cm,Co)(e,t,n,r,i);var o=new bo(e,i),l=ge(t,n);if(r&&I(r,o,!1),l>0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Be(e,t.line,t,n,o)||t.line!=n.line&&Be(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Le=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,s=t.line,c=e.cm;if(e.iter(s,n.line+1,function(e){c&&o.collapsed&&!c.options.lineWrapping&&je(e)==c.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&ue(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Me(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Ue(e,t)&&ue(t,0)}),o.clearOnEnter&&et(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Se=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++xo,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)Qr(c,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var u=t.line;u<=n.line;u++)Jr(c,u,"text");o.atomic&&Qi(c.doc),sn(c,"markerAdded",c,o)}return o}bo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&jr(e),lt(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],a=Te(l.markedSpans,this);e&&!this.collapsed?Jr(e,fe(l),"text"):e&&(null!=a.to&&(i=fe(l)),null!=a.from&&(r=fe(l))),l.markedSpans=Ae(l.markedSpans,a),null==a.from&&this.collapsed&&!Ue(this.doc,l)&&e&&ue(l,tr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=je(this.lines[s]),u=Ke(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Qr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qi(e.doc)),e&&sn(e,"markerCleared",e,this,r,i),t&&zr(e),this.parent&&this.parent.clear()}},bo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],l=Te(o.markedSpans,this);if(null!=l.from&&(n=me(t?o:fe(o),l.from),-1==e))return n;if(null!=l.to&&(r=me(t?o:fe(o),l.to),1==e))return r}return n&&{from:n,to:r}},bo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Kr(r,function(){var i=t.line,o=fe(t.line),l=Fn(r,o);if(l&&(Rn(l),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ue(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var s=Cn(n)-a;s&&ue(i,i.height+s)}sn(r,"markerChanged",r,e)})},bo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},bo.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},at(bo);var wo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ko(e){return e.findMarks(me(e.first,0),e.clipPos(me(e.lastLine())),function(e){return e.parent})}function So(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Oi(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();sn(this,"clear")}},wo.prototype.find=function(e,t){return this.primary.find(e,t)},at(wo);var Lo=0,Mo=function(e,t,n,r,i){if(!(this instanceof Mo))return new Mo(e,t,n,r,i);null==n&&(n=0),go.call(this,[new mo([new Vt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=me(n,0);this.sel=bi(o),this.history=new Di(null),this.id=++Lo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ai(this,{from:o,to:o,text:e}),$i(this,bi(o),q)};Mo.prototype=J(go.prototype,{constructor:Mo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ce(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Yr(function(e){var t=me(this.first,0),n=this.first+this.size-1;io(this,{from:t,to:me(n,ae(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),$i(this,bi(t),q)}),replaceRange:function(e,t,n,r){co(this,e,t=we(this,t),n=n?we(this,n):t,r)},getRange:function(e,t,n){var r=se(this,we(this,e),we(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(de(this,e))return ae(this,e)},getLineNumber:function(e){return fe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=ae(this,e)),je(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Yr(function(e,t,n){Vi(this,we(this,"number"==typeof e?me(e,t||0):e),null,n)}),setSelection:Yr(function(e,t,n){Vi(this,we(this,e),we(this,t||e),n)}),extendSelection:Yr(function(e,t,n){qi(this,we(this,e),t&&we(this,t),n)}),extendSelections:Yr(function(e,t){Ui(this,ke(this,e),t)}),extendSelectionsBy:Yr(function(e,t){Ui(this,ke(this,Y(this.sel.ranges,e)),t)}),setSelections:Yr(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new yi(we(this,e[i].anchor),we(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$i(this,xi(this.cm,r,t),n)}}),addSelection:Yr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new yi(we(this,e),we(this,t||e))),$i(this,xi(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=se(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=se(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Yr(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];r[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:n}}for(var a=t&&"end"!=t&&function(e,t,n){for(var r=[],i=me(e.first,0),o=i,l=0;l<t.length;l++){var a=t[l],s=Si(a.from,i,o),c=Si(Ci(a),i,o);if(i=a.to,o=c,"around"==n){var u=e.sel.ranges[l],f=ge(u.head,u.anchor)<0;r[l]=new yi(f?c:s,f?s:c)}else r[l]=new yi(s,s)}return new vi(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)io(this,r[s]);a?Ki(this,a):this.cm&&Mr(this.cm)}),undo:Yr(function(){lo(this,"undo")}),redo:Yr(function(){lo(this,"redo")}),undoSelection:Yr(function(){lo(this,"undo",!0)}),redoSelection:Yr(function(){lo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new Di(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ji(this.history.done),undone:ji(this.history.undone)}},setHistory:function(e){var t=this.history=new Di(this.history.maxGeneration);t.done=ji(e.done.slice(0),null,!0),t.undone=ji(e.undone.slice(0),null,!0)},setGutterMarker:Yr(function(e,t,n){return po(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ne(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Yr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&po(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ne(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!de(this,e))return null;if(t=e,!(e=ae(this,e)))return null}else if(null==(t=fe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Yr(function(e,t,n){return po(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Yr(function(e,t,n){return po(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var l=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return!0})}),addLineWidget:Yr(function(e,t,n){return function(e,t,n,r){var i=new vo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),po(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ue(e,t)){var r=Ve(t)<e.scrollTop;ue(t,t.height+Cn(i)),r&&Lr(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&sn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:fe(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Co(this,we(this,e),we(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Co(this,e=we(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=ae(this,(e=we(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=we(this,e),t=we(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a<l.length;a++){var s=l[a];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),we(this,me(n,t))},indexFromPos:function(e){var t=(e=we(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Mo(ce(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Mo(ce(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(ge(o,l)){var a=Co(e,o,l,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,ko(this)),r},unlinkDoc:function(e){if(e instanceof kl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),So(ko(this));break}}if(e.history==this.history){var n=[e.id];Oi(e,function(e){return n.push(e.id)},!0),e.history=new Di(null),e.history.done=ji(this.history.done,n),e.history.undone=ji(this.history.undone,n)}},iterLinkedDocs:function(e){Oi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):bt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Yr(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Kr(t=this.cm,function(){Fi(t),Qr(t)}))})}),Mo.prototype.eachLine=Mo.prototype.iter;var To=0;function Ao(e){var t=this;if(Oo(t),!it(t,e)&&!wn(t.display,e)){st(e),l&&(To=+new Date);var n=ar(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,s=function(e,r){if(!t.options.allowDropFileTypes||-1!=B(t.options.allowDropFileTypes,e.type)){var l=new FileReader;l.onload=$r(t,function(){var e=l.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){var s={from:n=we(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};io(t.doc,s),Ki(t.doc,bi(n,Ci(s)))}}),l.readAsText(e)}},c=0;c<i;++c)s(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Xi(t.doc,bi(n,n)),f)for(var h=0;h<f.length;++h)co(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Oo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function No(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}var Fo=!1;function Do(){var e;Fo||(et(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,No(Po)},100))}),et(window,"blur",function(){return No(yr)}),Fo=!0)}function Po(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Eo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ho=0;Ho<10;Ho++)Eo[Ho+48]=Eo[Ho+96]=String(Ho);for(var Wo=65;Wo<=90;Wo++)Eo[Wo]=String.fromCharCode(Wo);for(var Io=1;Io<=12;Io++)Eo[Io+111]=Eo[Io+63235]="F"+Io;var Ro={};function _o(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l<o.length-1;l++){var a=o[l];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Bo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),_o),o=0;o<i.length;o++){var l=void 0,a=void 0;o==i.length-1?(a=i.join(" "),l=r):(a=i.slice(0,o+1).join(" "),l="...");var s=t[a];if(s){if(s!=l)throw new Error("Inconsistent bindings for "+a)}else t[a]=l}delete e[n]}for(var c in t)e[c]=t[c];return e}function jo(e,t,n,r){var i=(t=Go(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return jo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var l=jo(e,t.fallthrough[o],n,r);if(l)return l}}}function zo(e){var t="string"==typeof e?e:Eo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Uo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Eo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),qo(n,e,t))}function Go(e){return"string"==typeof e?Ro[e]:e}function Vo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ge(o.from,X(r).to)<=0;){var l=r.pop();if(ge(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}Kr(e,function(){for(var t=r.length-1;t>=0;t--)co(e.doc,"",r[t].from,r[t].to,"+delete");Mr(e)})}function Ko(e,t,n){var r=oe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function $o(e,t,n){var r=Ko(e,t.ch,n);return null==r?null:new me(t.line,r,n<0?"after":"before")}function Xo(e,t,n,r,i){if(e){var o=Je(n,t.doc.direction);if(o){var l,a=i<0?X(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var c=Dn(t,n);l=i<0?n.text.length-1:0;var u=Pn(t,c,l).top;l=le(function(e){return Pn(t,c,e).top==u},i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=Ko(n,l,1))}else l=i<0?a.to:a.from;return new me(r,l,s)}}return new me(r,i<0?n.text.length:0,i<0?"before":"after")}Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ro.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ro.default=y?Ro.macDefault:Ro.pcDefault;var Yo={selectAll:no,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Vo(e,function(t){if(t.empty()){var n=ae(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:me(t.head.line+1,0)}:{from:t.head,to:me(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Vo(e,function(t){return{from:me(t.from().line,0),to:we(e.doc,me(t.to().line+1,0))}})},delLineLeft:function(e){return Vo(e,function(e){return{from:me(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Vo(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Vo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(me(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(me(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Jo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=ae(e.doc,t),r=function(e){for(var t;t=Re(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=fe(r));return Xo(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},G)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},G)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Jo(e,t.head):r},G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),l=R(e.getLine(o.line),o.ch,r);t.push($(r-l%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Kr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=ae(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new me(i.line,i.ch-1)),i.ch>0)i=new me(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),me(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=ae(e.doc,i.line-1).text;l&&(i=new me(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),me(i.line-1,l.length-1),i,"+transpose"))}n.push(new yi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Kr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Mr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qo(e,t){var n=ae(e.doc,t),r=je(n);return r!=n&&(t=fe(r)),Xo(!0,e,r,t,1)}function Jo(e,t){var n=Qo(e,t.line),r=ae(e.doc,n.line),i=Je(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),l=t.line==n.line&&t.ch<=o&&t.ch;return me(n.line,l?0:o,n.sticky)}return n}function Zo(e,t,n){if("string"==typeof t&&!(t=Yo[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=z}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var el=new _;function tl(e,t,n,r){var i=e.state.keySeq;if(i){if(zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:el.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),nl(e,i+" "+t,n,r))return!0}return nl(e,t,n,r)}function nl(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=jo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&jo(t,e.options.extraKeys,n,e)||jo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&sn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(st(n),pr(e)),!!i}function rl(e,t){var n=Uo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?tl(e,"Shift-"+n,t,function(t){return Zo(e,t,!0)})||tl(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Zo(e,t)}):tl(e,n,t,function(t){return Zo(e,t)}))}var il=null;function ol(e){var t=this;if(t.curOp.focus=D(),!it(t,e)){l&&a<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=rl(t,e);f&&(il=r?n:null,!r&&88==n&&!wt&&(y?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(M(t,"CodeMirror-crosshair"),nt(document,"keyup",n),nt(document,"mouseover",n))}P(t,"CodeMirror-crosshair"),et(document,"keyup",n),et(document,"mouseover",n)}(t)}}function ll(e){16==e.keyCode&&(this.doc.sel.shift=!1),it(this,e)}function al(e){var t=this;if(!(wn(t.display,e)||it(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==il)return il=null,void st(e);if(!f||e.which&&!(e.which<10)||!rl(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return tl(e,"'"+n+"'",t,function(t){return Zo(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var sl,cl,ul=function(e,t,n){this.time=e,this.pos=t,this.button=n};function fl(e){var t=this,n=t.display;if(!(it(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,wn(n,e))s||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!pl(t,e)){var r=ar(t,e),i=dt(e),o=r?function(e,t){var n=+new Date;return cl&&cl.compare(n,e,t)?(sl=cl=null,"triple"):sl&&sl.compare(n,e,t)?(cl=new ul(n,e,t),sl=null,"double"):(sl=new ul(n,e,t),cl=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o);return tl(e,qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Yo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=z}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){l?setTimeout(W(mr,e),0):e.curOp.focus=D();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey));return i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&gt&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(ge((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(ge(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=$r(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,nt(i.wrapper.ownerDocument,"mouseup",c),nt(i.wrapper.ownerDocument,"mousemove",u),nt(i.scroller,"dragstart",f),nt(i.scroller,"drop",c),o||(st(t),r.addNew||qi(e.doc,n,null,null,r.extend),s||l&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(i.scroller.draggable=!0);e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();et(i.wrapper.ownerDocument,"mouseup",c),et(i.wrapper.ownerDocument,"mousemove",u),et(i.scroller,"dragstart",f),et(i.scroller,"drop",c),gr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;st(t);var l,a,s=o.sel,c=s.ranges;r.addNew&&!r.extend?(a=o.sel.contains(n),l=a>-1?c[a]:new yi(n,n)):(l=o.sel.primary(),a=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(l=new yi(n,n)),n=ar(e,t,!0,!0),a=-1;else{var u=hl(e,n,r.unit);l=r.extend?zi(l,u.anchor,u.head,r.extend):u}r.addNew?-1==a?(a=c.length,$i(o,xi(e,c.concat([l]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==r.unit&&!r.extend?($i(o,xi(e,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Gi(o,a,l,U):(a=0,$i(o,new vi([l],0),U),s=o.sel);var f=n;function h(t){if(0!=ge(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=R(ae(o,n.line).text,n.ch,c),h=R(ae(o,t.line).text,t.ch,c),d=Math.min(u,h),p=Math.max(u,h),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=ae(o,m).text,y=V(v,d,c);d==p?i.push(new yi(me(m,y),me(m,y))):v.length>y&&i.push(new yi(me(m,y),me(m,V(v,p,c))))}i.length||i.push(new yi(n,n)),$i(o,xi(e,s.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,b=l,C=hl(e,t,r.unit),w=b.anchor;ge(C.anchor,w)>0?(x=C.head,w=be(b.from(),C.anchor)):(x=C.anchor,w=xe(b.to(),C.head));var k=s.ranges.slice(0);k[a]=function(e,t){var n=t.anchor,r=t.head,i=ae(e.doc,n.line);if(0==ge(n,r)&&n.sticky==r.sticky)return t;var o=Je(i);if(!o)return t;var l=Ye(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s,c=l+(a.from==n.ch==(1!=a.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=Ye(o,r.ch,r.sticky),f=u-l||(r.ch-n.ch)*(1==a.level?-1:1);s=u==c-1||u==c?f<0:f>0}var h=o[c+(s?-1:0)],d=s==(1==h.level),p=d?h.from:h.to,m=d?"after":"before";return n.ch==p&&n.sticky==m?t:new yi(new me(n.line,p,m),r)}(e,new yi(we(o,w),x)),$i(o,xi(e,k,a),U)}}var d=i.wrapper.getBoundingClientRect(),p=0;function m(t){e.state.selectingText=!1,p=1/0,st(t),i.input.focus(),nt(i.wrapper.ownerDocument,"mousemove",g),nt(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=$r(e,function(t){0!==t.buttons&&dt(t)?function t(n){var l=++p;var a=ar(e,n,!0,"rectangle"==r.unit);if(!a)return;if(0!=ge(a,f)){e.curOp.focus=D(),h(a);var s=Cr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout($r(e,function(){p==l&&t(n)}),150)}else{var c=n.clientY<d.top?-20:n.clientY>d.bottom?20:0;c&&setTimeout($r(e,function(){p==l&&(i.scroller.scrollTop+=c,t(n))}),50)}}(t):m(t)}),v=$r(e,m);e.state.selectingText=v,et(i.wrapper.ownerDocument,"mousemove",g),et(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):ht(e)==n.scroller&&st(e):2==i?(r&&qi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(k?t.display.input.onContextMenu(e):gr(t)))}}function hl(e,t,n){if("char"==n)return new yi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new yi(me(t.line,0),we(e.doc,me(t.line+1,0)));var r=n(e,t);return new yi(r.from,r.to)}function dl(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&st(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!lt(e,n))return ut(t);o-=a.top-l.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var c=l.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i)return rt(e,n,e,he(e.doc,o),e.options.gutters[s],t),ut(t)}}function pl(e,t){return dl(e,t,"gutterClick",!0)}function ml(e,t){wn(e.display,t)||function(e,t){if(!lt(e,"gutterContextMenu"))return!1;return dl(e,t,"gutterContextMenu",!1)}(e,t)||it(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function gl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bn(e)}ul.prototype.compare=function(e,t,n){return this.time+400>e&&0==ge(t,this.pos)&&n==this.button};var vl={toString:function(){return"CodeMirror.Init"}},yl={},xl={};function bl(e){ui(e),Qr(e),wr(e)}function Cl(e,t,n){if(!t!=!(n&&n!=vl)){var r=e.display.dragFunctions,i=t?et:nt;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function wl(e){e.options.lineWrapping?(P(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),$e(e)),lr(e),Qr(e),Bn(e),setTimeout(function(){return Wr(e)},100)}function kl(e,t){var r=this;if(!(this instanceof kl))return new kl(e,t);this.options=t=t?I(t):{},I(yl,t,!1),fi(t);var i=t.value;"string"==typeof i?i=new Mo(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var o=new kl.inputStyles[t.inputStyle](this),c=this.display=new function(e,t,r){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=N("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=N("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=N("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+j+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),l&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||n&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}(e,i,o);for(var u in c.wrapper.CodeMirror=this,ui(this),gl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_r(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new _,keySeq:null,specialChars:null},t.autofocus&&!v&&c.input.focus(),l&&a<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;et(t.scroller,"mousedown",$r(e,fl)),et(t.scroller,"dblclick",l&&a<11?$r(e,function(t){if(!it(e,t)){var n=ar(e,t);if(n&&!pl(e,t)&&!wn(e.display,t)){st(t);var r=e.findWordAt(n);qi(e.doc,r.anchor,r.head)}}}):function(t){return it(e,t)||st(t)});et(t.scroller,"contextmenu",function(t){return ml(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}et(t.scroller,"touchstart",function(i){if(!it(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!pl(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),et(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),et(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var l,a=e.coordsChar(t.activeTouch,"page");l=!r.prev||o(r,r.prev)?new yi(a,a):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(a):new yi(me(a.line,0),we(e.doc,me(a.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),st(n)}i()}),et(t.scroller,"touchcancel",i),et(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Nr(e,t.scroller.scrollTop),Dr(e,t.scroller.scrollLeft,!0),rt(e,"scroll",e))}),et(t.scroller,"mousewheel",function(t){return gi(e,t)}),et(t.scroller,"DOMMouseScroll",function(t){return gi(e,t)}),et(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){it(e,t)||ft(t)},over:function(t){it(e,t)||(!function(e,t){var n=ar(e,t);if(n){var r=document.createDocumentFragment();fr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),ft(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-To<100))ft(t);else if(!it(e,t)&&!wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:$r(e,Ao),leave:function(t){it(e,t)||Oo(e)}};var s=t.input.getField();et(s,"keyup",function(t){return ll.call(e,t)}),et(s,"keydown",$r(e,ol)),et(s,"keypress",$r(e,al)),et(s,"focus",function(t){return vr(e,t)}),et(s,"blur",function(t){return yr(e,t)})}(this),Do(),jr(this),this.curOp.forceUpdate=!0,Ni(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout(W(vr,this),20):yr(this),xl)xl.hasOwnProperty(u)&&xl[u](r,t[u],vl);kr(this),t.finishInit&&t.finishInit(this);for(var d=0;d<Sl.length;++d)Sl[d](r);zr(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(c.lineDiv).textRendering&&(c.lineDiv.style.textRendering="auto")}kl.defaults=yl,kl.optionHandlers=xl;var Sl=[];function Ll(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Rt(e,t).state:n="prev");var l=e.options.tabSize,a=ae(o,t),s=R(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var c,u=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((c=o.mode.indent(i,a.text.slice(u.length),a.text))==z||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?R(ae(o,t-1).text,null,l):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/l);d;--d)h+=l,f+="\t";if(h<c&&(f+=$(c-h)),f!=u)return co(o,f,me(t,0),me(t,u.length),"+input"),a.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var g=me(t,u.length);Gi(o,p,new yi(g,g));break}}}kl.defineInitHook=function(e){return Sl.push(e)};var Ml=null;function Tl(e){Ml=e}function Al(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var l,a=e.state.pasteIncoming||"paste"==i,s=bt(t),c=null;if(a&&r.ranges.length>1)if(Ml&&Ml.text.join("\n")==t){if(r.ranges.length%Ml.text.length==0){c=[];for(var u=0;u<Ml.text.length;u++)c.push(o.splitLines(Ml.text[u]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Y(s,function(e){return[e]}));for(var f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=me(d.line,d.ch-n):e.state.overwrite&&!a?p=me(p.line,Math.min(ae(o,p.line).text.length,p.ch+X(s).length)):a&&Ml&&Ml.lineWise&&Ml.text.join("\n")==t&&(d=p=me(d.line,0))),l=e.curOp.updateInput;var m={from:d,to:p,text:c?c[f%c.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};io(e.doc,m),sn(e,"inputRead",e,m)}t&&!a&&Nl(e,t),Mr(e),e.curOp.updateInput=l,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ol(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Kr(t,function(){return Al(t,n,0,null,"paste")}),!0}function Nl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(t.indexOf(o.electricChars.charAt(a))>-1){l=Ll(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ae(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Ll(e,i.head.line,"smart"));l&&sn(e,"electricInput",e,i.head.line)}}}function Fl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:me(i,0),head:me(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Dl(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Pl(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Dl(e),t}function El(e,t,n,r,i){var o=t,l=n,a=ae(e,t.line);function s(r){var o,l;if(null==(o=i?function(e,t,n,r){var i=Je(t,e.doc.direction);if(!i)return $o(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Ye(i,n.ch,n.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(r>0?l.to>n.ch:l.from<n.ch))return $o(t,n,r);var a,s=function(e,n){return Ko(t,e instanceof me?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(a=a||Dn(e,t),Jn(e,t,a,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==l.level){var f=1==l.level==r<0,h=s(n,f?1:-1);if(null!=h&&(f?h<=l.to&&h<=u.end:h>=l.from&&h>=u.begin)){var d=f?"before":"after";return new me(n.line,h,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new me(n.line,s(e,1),"before"):new me(n.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],a=t>0==(1!=l.level),c=a?r.begin:s(r.end,-1);if(l.from<=c&&c<l.to)return o(c,a);if(c=a?l.from:s(l.to,-1),r.begin<=c&&c<r.end)return o(c,a)}},m=p(o+r,r,u);if(m)return m;var g=r>0?u.end:s(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=p(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,a,t,n):$o(a,t,n))){if(r||(l=t.line+n)<e.first||l>=e.first+e.size||(t=new me(l,t.ch,t.sticky),!(a=ae(e,l))))return!1;t=Xo(i,e.cm,a,t.line,n)}else t=o;return!0}if("char"==r)s();else if("column"==r)s(!0);else if("word"==r||"group"==r)for(var c=null,u="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||s(!h);h=!1){var d=a.text.charAt(t.ch)||"\n",p=te(d,f)?"w":u&&"\n"==d?"n":!u||/\s/.test(d)?null:"p";if(!u||h||p||(p="s"),c&&c!=p){n<0&&(n=1,s(),t.sticky="after");break}if(p&&(c=p),n>0&&!s(!h))break}var m=eo(e,t,o,l,!0);return ve(o,m)&&(m.hitSide=!0),m}function Hl(e,t,n,r){var i,o,l=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*tr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Yn(e,a,i)).outside;){if(n<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*n}return o}var Wl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Il(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=ae(e.doc,t.line),i=On(n,r,t.line),o=Je(r,e.doc.direction),l="left";o&&(l=Ye(o,t.ch)%2?"right":"left");var a=Wn(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function Rl(e,t){return t&&(e.bad=!0),e}function _l(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Rl(e.clipPos(me(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Bl(o,t,n)}}function Bl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!F(r,t))return Rl(me(fe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return Rl(me(fe(o),o.text.length),i)}var l=3==t.nodeType?t:null,a=t;for(l||1!=t.childNodes.length||3!=t.firstChild.nodeType||(l=t.firstChild,n&&(n=l.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var s=e.measure,c=s.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?s.map:c[i],l=0;l<o.length;l+=3){var a=o[l+2];if(a==t||a==n){var u=fe(i<0?e.line:e.rest[i]),f=o[l]+r;return(r<0||a!=t)&&(f=o[l+(r?1:0)]),me(u,f)}}}var f=u(l,a,n);if(f)return Rl(f,i);for(var h=a.nextSibling,d=l?l.nodeValue.length-n:0;h;h=h.nextSibling){if(f=u(h,h.firstChild,0))return Rl(me(f.line,f.ch-d),i);d+=h.textContent.length}for(var p=a.previousSibling,m=n;p;p=p.previousSibling){if(f=u(p,p.firstChild,-1))return Rl(me(f.line,f.ch+m),i);m+=p.textContent.length}}Wl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!it(r,e)){if(r.somethingSelected())Tl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Fl(r);Tl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var o=Ml.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var l=Pl(),a=l.firstChild;r.display.lineSpace.insertBefore(l,r.display.lineSpace.firstChild),a.value=Ml.text.join("\n");var s=document.activeElement;H(a),setTimeout(function(){r.display.lineSpace.removeChild(l),s.focus(),s==i&&n.showPrimarySelection()},50)}}Dl(i,r.options.spellcheck),et(i,"paste",function(e){it(r,e)||Ol(e,r)||a<=11&&setTimeout($r(r,function(){return t.updateFromDOM()}),20)}),et(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),et(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),et(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),et(i,"touchstart",function(){return n.forceCompositionEnd()}),et(i,"input",function(){t.composing||t.readFromDOMSoon()}),et(i,"copy",o),et(i,"cut",o)},Wl.prototype.prepareSelection=function(){var e=ur(this.cm,!1);return e.focus=this.cm.state.focused,e},Wl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Wl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var l=_l(t,e.anchorNode,e.anchorOffset),a=_l(t,e.focusNode,e.focusOffset);if(!l||l.bad||!a||a.bad||0!=ge(be(l,a),i)||0!=ge(xe(l,a),o)){var s=t.display.view,c=i.line>=t.display.viewFrom&&Il(t,i)||{node:s[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Il(t,o);if(!u){var f=s[s.length-1].measure,h=f.maps?f.maps[f.maps.length-1]:f.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var d,p=e.rangeCount&&e.getRangeAt(0);try{d=L(c.node,c.offset,u.offset,u.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Wl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Wl.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Wl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Wl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return F(this.div,t)},Wl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wl.prototype.blur=function(){this.div.blur()},Wl.prototype.getField=function(){return this.div},Wl.prototype.supportsTouch=function(){return!0},Wl.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Kr(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Wl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Wl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&u&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=_l(t,e.anchorNode,e.anchorOffset),r=_l(t,e.focusNode,e.focusOffset);n&&r&&Kr(t,function(){$i(t.doc,bi(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Wl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),l=o.from(),a=o.to();if(0==l.ch&&l.line>r.firstLine()&&(l=me(l.line-1,ae(r.doc,l.line-1).length)),a.ch==ae(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=me(a.line+1,0)),l.line<i.viewFrom||a.line>i.viewTo-1)return!1;l.line==i.viewFrom||0==(e=sr(r,l.line))?(t=fe(i.view[0].line),n=i.view[0].node):(t=fe(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,c,u=sr(r,a.line);if(u==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=fe(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function c(){l&&(o+=a,s&&(o+=a),l=s=!1)}function u(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(me(r,0),me(i+1,0),(g=+h,function(e){return e.id==g}));return void(d.length&&(o=d[0].find(0))&&u(se(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),p&&(l=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;f(t),t!=n;)t=t.nextSibling,s=!1;return o}(r,n,c,t,s)),h=se(r.doc,me(t,0),me(s,ae(r.doc,s).text.length));f.length>1&&h.length>1;)if(X(f)==X(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}for(var d=0,p=0,m=f[0],g=h[0],v=Math.min(m.length,g.length);d<v&&m.charCodeAt(d)==g.charCodeAt(d);)++d;for(var y=X(f),x=X(h),b=Math.min(y.length-(1==f.length?d:0),x.length-(1==h.length?d:0));p<b&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)++p;if(1==f.length&&1==h.length&&t==l.line)for(;d&&d>l.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var C=me(t,d),w=me(s,h.length?X(h).length-p:0);return f.length>1||f[0]||ge(C,w)?(co(r.doc,f,C,w,"+input"),!0):void 0},Wl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wl.prototype.reset=function(){this.forceCompositionEnd()},Wl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Wl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Kr(this.cm,function(){return Qr(e.cm)})},Wl.prototype.setUneditable=function(e){e.contentEditable="false"},Wl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$r(this.cm,Al)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Wl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Wl.prototype.onContextMenu=function(){},Wl.prototype.resetPosition=function(){},Wl.prototype.needsContentAttribute=!0;var jl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new _,this.hasSelection=!1,this.composing=null};jl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!it(r,e)){if(r.somethingSelected())Tl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Fl(r);Tl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(r.state.cutIncoming=!0)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),et(i,"input",function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),et(i,"paste",function(e){it(r,e)||Ol(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),et(i,"cut",o),et(i,"copy",o),et(e.scroller,"paste",function(t){wn(e,t)||it(r,t)||(r.state.pasteIncoming=!0,n.focus())}),et(e.lineSpace,"selectstart",function(t){wn(e,t)||st(t)}),et(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),et(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},jl.prototype.createField=function(e){this.wrapper=Pl(),this.textarea=this.wrapper.firstChild},jl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=ur(e);if(e.options.moveInputWithCursor){var i=Kn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},jl.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},jl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&H(this.textarea),l&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null))}},jl.prototype.getField=function(){return this.textarea},jl.prototype.supportsTouch=function(){return!1},jl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},jl.prototype.blur=function(){this.textarea.blur()},jl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jl.prototype.receivedFocus=function(){this.slowPoll()},jl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},jl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},jl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ct(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(r.length,i.length);s<c&&r.charCodeAt(s)==i.charCodeAt(s);)++s;return Kr(t,function(){Al(t,i.slice(s),r.length-s,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jl.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},jl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,o=ar(n,e),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&$r(n,$i)(n.doc,bi(o),q);var u=i.style.cssText,h=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var d,p=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(d=window.scrollY),r.input.focus(),s&&window.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),l&&a>=9&&g(),k){ft(e);var m=function(){nt(window,"mouseup",m),setTimeout(v,20)};et(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=u,l&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart){(!l||l&&a<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?$r(n,no)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},jl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},jl.prototype.setUneditable=function(){},jl.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=vl&&i(e,t,n)}:i)}e.defineOption=n,e.Init=vl,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Li(e)},!0),n("indentUnit",2,Li,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Mi(e),Bn(e),Qr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(me(r,o))}r++});for(var i=n.length-1;i>=0;i--)co(e.doc,t,n[i],me(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=vl&&e.refresh()}),n("specialCharPlaceholder",Jt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){gl(e),bl(e)},!0),n("keyMap","default",function(e,t,n){var r=Go(t),i=n!=vl&&Go(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,wl,!0),n("gutters",[],function(e){fi(e.options),bl(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ir(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Wr(e)},!0),n("scrollbarStyle","native",function(e){_r(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e){fi(e.options),bl(e)},!0),n("firstLineNumber",1,bl,!0),n("lineNumberFormatter",function(e){return e},bl,!0),n("showCursorWhenSelecting",!1,cr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(yr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Cl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,cr,!0),n("singleCursorHeightPerLine",!0,cr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Mi,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(kl),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&$r(this,t[e])(this,n,i),rt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Go(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Xr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Qr(this)}),removeOverlay:Xr(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Qr(this)}}),indentLine:Xr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),de(this.doc,e)&&Ll(this,e,t,n)}),indentSelection:Xr(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ll(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var o=i.from(),l=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s<n;++s)Ll(this,s,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Gi(this.doc,r,new yi(o,c[r].to()),q)}}}),getTokenAt:function(e,t){return qt(this,e,t)},getLineTokens:function(e,t){return qt(this,me(e),t,!0)},getTokenTypeAt:function(e){e=we(this.doc,e);var t,n=It(this,ae(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]<o)){t=n[2*l+2];break}r=l+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var l=0;l<o[t].length;l++){var a=i[o[t][l]];a&&r.push(a)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var c=i._global[s];c.pred(o,this)&&-1==B(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return Rt(this,(e=Ce(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Kn(this,null==e?n.head:"object"==typeof e?we(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Vn(this,we(this.doc,e),t||"page")},coordsChar:function(e,t){return Yn(this,(e=Gn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Gn(this,{top:e,left:0},t||"page").top,he(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=ae(this.doc,e)}else r=e;return Un(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ve(r):0)},defaultTextHeight:function(){return tr(this.display)},defaultCharWidth:function(){return nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,l,a,s=this.display,c=(e=Kn(this,we(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var f=Math.max(s.wrapper.clientHeight,this.doc.height),h=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(c=e.bottom),u+t.offsetWidth>h&&(u=h-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,l={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(a=Sr(o,l)).scrollTop&&Nr(o,a.scrollTop),null!=a.scrollLeft&&Dr(o,a.scrollLeft))},triggerOnKeyDown:Xr(ol),triggerOnKeyPress:Xr(al),triggerOnKeyUp:ll,triggerOnMouseDown:Xr(fl),execCommand:function(e){if(Yo.hasOwnProperty(e))return Yo[e].call(null,this)},triggerElectric:Xr(function(e){Nl(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=we(this.doc,e),l=0;l<t&&!(o=El(this.doc,o,i,n,r)).hitSide;++l);return o},moveH:Xr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?El(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},G)}),deleteH:Xr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Vo(this,function(n){var i=El(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var l=we(this.doc,e),a=0;a<t;++a){var s=Kn(this,l,"div");if(null==o?o=s.left:s.left=o,(l=Hl(this,s,i,n)).hitSide)break}return l},moveV:Xr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var a=Kn(n,l.head,"div");null!=l.goalColumn&&(a.left=l.goalColumn),i.push(a.left);var s=Hl(n,a,e,t);return"page"==t&&l==r.sel.primary()&&Lr(n,Vn(n,s,"div").top-a.top),s},G),i.length)for(var l=0;l<r.sel.ranges.length;l++)r.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=ae(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),l=te(o,i)?function(e){return te(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};n>0&&l(t.charAt(n-1));)--n;for(;r<t.length&&l(t.charAt(r));)++r}return new yi(me(e.line,n),me(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?P(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Xr(function(e,t){Tr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Mn(this)-this.display.barHeight,width:e.scrollWidth-Mn(this)-this.display.barWidth,clientHeight:An(this),clientWidth:Tn(this)}},scrollIntoView:Xr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:me(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ar(e),e.curOp.scrollToPos=t}(this,e):Or(this,e.from,e.to,e.margin)}),setSize:Xr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&_n(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Jr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,rt(this,"refresh",this)}),operation:function(e){return Kr(this,e)},startOperation:function(){return jr(this)},endOperation:function(){return zr(this)},refresh:Xr(function(){var e=this.display.cachedTextHeight;Qr(this),this.curOp.forceUpdate=!0,Bn(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),si(this),(null==e||Math.abs(e-tr(this.display))>.5)&&lr(this),rt(this,"refresh",this)}),swapDoc:Xr(function(e){var t=this.doc;return t.cm=null,Ni(this,e),Bn(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},at(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(kl);var zl="iter insert remove copy getEditor constructor".split(" ");for(var ql in Mo.prototype)Mo.prototype.hasOwnProperty(ql)&&B(zl,ql)<0&&(kl.prototype[ql]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[ql]));return at(Mo),kl.inputStyles={textarea:jl,contenteditable:Wl},kl.defineMode=function(e){kl.defaults.mode||"null"==e||(kl.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),St[e]=t}.apply(this,arguments)},kl.defineMIME=function(e,t){Lt[e]=t},kl.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),kl.defineMIME("text/plain","null"),kl.defineExtension=function(e,t){kl.prototype[e]=t},kl.defineDocExtension=function(e,t){Mo.prototype[e]=t},kl.fromTextArea=function(e,t){if((t=t?I(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(et(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var a=kl(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=nt,e.on=et,e.wheelEventPixels=mi,e.Doc=Mo,e.splitLines=bt,e.countColumn=R,e.findColumn=V,e.isWordChar=ee,e.Pass=z,e.signal=rt,e.Line=Vt,e.changeEnd=Ci,e.scrollbarModel=Rr,e.Pos=me,e.cmpPos=ge,e.modes=St,e.mimeModes=Lt,e.resolveMode=Mt,e.getMode=Tt,e.modeExtensions=At,e.extendMode=Ot,e.copyState=Nt,e.startState=Dt,e.innerMode=Ft,e.commands=Yo,e.keyMap=Ro,e.keyName=Uo,e.isModifierKey=zo,e.lookupKey=jo,e.normalizeKeyMap=Bo,e.StringStream=Pt,e.SharedTextMarker=wo,e.TextMarker=bo,e.LineWidget=vo,e.e_preventDefault=st,e.e_stopPropagation=ct,e.e_stop=ft,e.addClass=P,e.contains=F,e.rmClass=M,e.keyNames=Eo}(kl),kl.version="5.41.0",kl}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("rpm-changes",function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)  ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var e=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(l,a){if(l.string.trim().startsWith("#"))return l.skipToEnd(),"comment";if(l.string.trim().match(/<VirtualHost|VirtualHost>/))return l.skipToEnd(),"header";if(l.string.trim().match(/<Directory|Directory>|<Files|Files>|<Location|Location>/))return l.skipToEnd(),"keyword";if(l.string.trim().match(/<IfModule|IfModule>|<Proxy|Proxy>/))return l.skipToEnd(),"def";if(l.sol()){if(l.match(t))return"header";if(l.match(n))return"atom"}if(l.match(/^\$\w+/))return"def";if(l.match(/^\$\{\w+\}/))return"def";if(l.match(i))return"keyword";if(l.match(r))return a.controlFlow=!0,"keyword";if(a.controlFlow){if(l.match(o))return"operator";if(l.match(/^(\d+)/))return"number";l.eol()&&(a.controlFlow=!1)}if(l.match(e))return l.eol()&&(a.controlFlow=!1),"number";if(l.match(/^%[\w]+/))return l.match(/^\(/)&&(a.macroParameters=!0),"keyword";if(a.macroParameters){if(l.match(/^\d+/))return"number";if(l.match(/^\)/))return a.macroParameters=!1,"keyword"}return l.match(/^%\{\??[\w \-\:\!]+\}/)?(l.eol()&&(a.controlFlow=!1),"def"):(l.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,n){var r;return(r=e.getWrapperElement().appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),r}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){function l(e){if("string"==typeof e)f.value=e;else{if(c)return;c=!0,s.parentNode.removeChild(s),u.focus(),o.onClose&&o.onClose(s)}}o||(o={}),n(this,null);var a,s=t(this,r,o.bottom),c=!1,u=this,f=s.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",function(e){o.onInput(e,f.value,l)}),o.onKeyUp&&e.on(f,"keyup",function(e){o.onKeyUp(e,f.value,l)}),e.on(f,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),l()),13==t.keyCode&&i(f.value,t))}),!1!==o.closeOnBlur&&e.on(f,"blur",l)):(a=s.getElementsByTagName("button")[0])&&(e.on(a,"click",function(){l(),u.focus()}),!1!==o.closeOnBlur&&e.on(a,"blur",l),a.focus()),l}),e.defineExtension("openConfirm",function(r,i,o){function l(){c||(c=!0,a.parentNode.removeChild(a),u.focus())}n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),c=!1,u=this,f=1;s[0].focus();for(var h=0;h<s.length;++h){var d=s[h];!function(t){e.on(d,"click",function(n){e.e_preventDefault(n),l(),t&&t(u)})}(i[h]),e.on(d,"blur",function(){--f,setTimeout(function(){0>=f&&l()},200)}),e.on(d,"focus",function(){++f})}}),e.defineExtension("openNotification",function(r,i){function o(){s||(s=!0,clearTimeout(l),a.parentNode.removeChild(a))}n(this,o);var l,a=t(this,r,i&&i.bottom),s=!1,c=i&&void 0!==i.duration?i.duration:5e3;return e.on(a,"click",function(t){e.e_preventDefault(t),o()}),c&&(l=setTimeout(o,c)),o})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return e.state.search||(e.state.search=new function(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null})}function n(e){return"string"==typeof e&&e==e.toLowerCase()}function r(e,t,r){return e.getSearchCursor(t,r,{caseFold:n(t),multiline:!0})}function i(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function o(e){return e.replace(/\\(.)/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":t})}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=o(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function a(e,t,r){t.queryText=r,t.query=l(r),e.removeOverlay(t.overlay,n(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);return n&&n.index==t.pos?(t.pos+=n[0].length||1,"searching"):void(n?t.pos=n.index:t.skipToEnd())}}}(t.query,n(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,n(t.query)))}function s(n,r,o,l){var s=t(n);if(s.query)return c(n,r);var f=n.getSelection()||s.lastQuery;if(f instanceof RegExp&&"x^"==f.source&&(f=null),o&&n.openDialog){var h=null,p=function(t,r){e.e_stop(r),t&&(t!=s.queryText&&(a(n,s,t),s.posFrom=s.posTo=n.getCursor()),h&&(h.style.opacity=1),c(n,r.shiftKey,function(e,t){var r;t.line<3&&document.querySelector&&(r=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((h=r).style.opacity=.4)}))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){u(e)},onKeyDown:i})})(n,d,f,p,function(r,i){var o=e.keyName(r),l=n.getOption("extraKeys"),s=l&&l[o]||e.keyMap[n.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),a(n,t(n),i),n.execCommand(s)):("find"==s||"findPersistent"==s)&&(e.e_stop(r),p(i,r))}),l&&f&&(a(n,s,f),c(n,r))}else i(n,d,"Search for:",f,function(e){e&&!s.query&&n.operation(function(){a(n,s,e),s.posFrom=s.posTo=n.getCursor(),c(n,r)})})}function c(n,i,o){n.operation(function(){var l=t(n),a=r(n,l.query,i?l.posFrom:l.posTo);(a.find(i)||(a=r(n,l.query,i?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0))).find(i))&&(n.setSelection(a.from(),a.to()),n.scrollIntoView({from:a.from(),to:a.to()},20),l.posFrom=a.from(),l.posTo=a.to(),o&&o(a.from(),a.to()))})}function u(e){e.operation(function(){var n=t(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}function f(e,t,n){e.operation(function(){for(var i=r(e,t);i.findNext();)if("string"!=typeof t){var o=e.getRange(i.from(),i.to()).match(t);i.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else i.replace(n)})}function h(e,n){if(!e.getOption("readOnly")){var a=e.getSelection()||t(e).lastQuery,s='<span class="CodeMirror-search-label">'+(n?"Replace all:":"Replace:")+"</span>";i(e,s+p,s,a,function(t){t&&(t=l(t),i(e,m,"Replace with:","",function(i){if(i=o(i),n)f(e,t,i);else{u(e);var l=r(e,t,e.getCursor("from")),a=function(){var n,o=l.from();!(n=l.findNext())&&(l=r(e,t),!(n=l.findNext())||o&&l.from().line==o.line&&l.from().ch==o.ch)||(e.setSelection(l.from(),l.to()),e.scrollIntoView({from:l.from(),to:l.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,g,"Replace?",[function(){s(n)},a,function(){f(e,t,i)}]))},s=function(e){l.replace("string"==typeof t?i:i.replace(/\$(\d)/g,function(t,n){return e[n]})),a()};a()}}))})}}var d='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',p=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',m='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',g='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';e.commands.find=function(e){u(e),s(e)},e.commands.findPersistent=function(e){u(e),s(e,!1,!0)},e.commands.findPersistentNext=function(e){s(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){s(e,!0,!0,!0)},e.commands.findNext=s,e.commands.findPrev=function(e){s(e,!0)},e.commands.clearSearch=u,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return e.global?e:new RegExp(e.source,function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e)+"g")}function n(e,n,r){n=t(n);for(var i=r.line,o=r.ch,l=e.lastLine();l>=i;i++,o=0){n.lastIndex=o;var a=e.getLine(i),s=n.exec(a);if(s)return{from:d(i,s.index),to:d(i,s.index+s[0].length),match:s}}}function r(e,r,i){if(!function(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}(r))return n(e,r,i);r=t(r);for(var o,l=1,a=i.line,s=e.lastLine();s>=a;){for(var c=0;l>c;c++){var u=e.getLine(a++);o=null==o?u:o+"\n"+u}l*=2,r.lastIndex=i.ch;var f=r.exec(o);if(f){var h=o.slice(0,f.index).split("\n"),p=f[0].split("\n"),m=i.line+h.length-1,g=h[h.length-1].length;return{from:d(m,g),to:d(m+p.length-1,1==p.length?g+p[0].length:p[p.length-1].length),match:f}}}}function i(e,t){for(var n,r=0;;){t.lastIndex=r;var i=t.exec(e);if(!i)return n;if((r=(n=i).index+(n[0].length||1))==e.length)return n}}function o(e,n,r){n=t(n);for(var o=r.line,l=r.ch,a=e.firstLine();o>=a;o--,l=-1){var s=e.getLine(o);l>-1&&(s=s.slice(0,l));var c=i(s,n);if(c)return{from:d(o,c.index),to:d(o,c.index+c[0].length),match:c}}}function l(e,n,r){n=t(n);for(var o,l=1,a=r.line,s=e.firstLine();a>=s;){for(var c=0;l>c;c++){var u=e.getLine(a--);o=null==o?u.slice(0,r.ch):u+"\n"+o}l*=2;var f=i(o,n);if(f){var h=o.slice(0,f.index).split("\n"),p=f[0].split("\n"),m=a+h.length,g=h[h.length-1].length;return{from:d(m,g),to:d(m+p.length-1,1==p.length?g+p[0].length:p[p.length-1].length),match:f}}}}function a(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var l=i+o>>1,a=r(e.slice(0,l)).length;if(a==n)return l;a>n?o=l:i=l+1}}function s(e,t,n,r){if(!t.length)return null;var i=r?f:h,o=i(t).split(/\r|\n\r?/);e:for(var l=n.line,s=n.ch,c=e.lastLine()+1-o.length;c>=l;l++,s=0){var u=e.getLine(l).slice(s),p=i(u);if(1==o.length){var m=p.indexOf(o[0]);if(-1==m)continue e;n=a(u,p,m,i)+s;return{from:d(l,a(u,p,m,i)+s),to:d(l,a(u,p,m+o[0].length,i)+s)}}var g=p.length-o[0].length;if(p.slice(g)==o[0]){for(var v=1;v<o.length-1;v++)if(i(e.getLine(l+v))!=o[v])continue e;var y=e.getLine(l+o.length-1),x=i(y),b=o[o.length-1];if(x.slice(0,b.length)==b)return{from:d(l,a(u,p,g,i)+s),to:d(l+o.length-1,a(y,x,b.length,i))}}}}function c(e,t,n,r){if(!t.length)return null;var i=r?f:h,o=i(t).split(/\r|\n\r?/);e:for(var l=n.line,s=n.ch,c=e.firstLine()-1+o.length;l>=c;l--,s=-1){var u=e.getLine(l);s>-1&&(u=u.slice(0,s));var p=i(u);if(1==o.length){var m=p.lastIndexOf(o[0]);if(-1==m)continue e;return{from:d(l,a(u,p,m,i)),to:d(l,a(u,p,m+o[0].length,i))}}var g=o[o.length-1];if(p.slice(0,g.length)==g){var v=1;for(n=l-o.length+1;v<o.length-1;v++)if(i(e.getLine(n+v))!=o[v])continue e;var y=e.getLine(l+1-o.length),x=i(y);if(x.slice(x.length-o[0].length)==o[0])return{from:d(l+1-o.length,a(y,x,y.length-o[0].length,i)),to:d(l,a(u,p,g.length,i))}}}}function u(e,i,a,u){var f;this.atOccurrence=!1,this.doc=e,a=a?e.clipPos(a):d(0,0),this.pos={from:a,to:a},"object"==typeof u?f=u.caseFold:(f=u,u=null),"string"==typeof i?(null==f&&(f=!1),this.matches=function(t,n){return(t?c:s)(e,i,n,f)}):(i=t(i),u&&!1===u.multiline?this.matches=function(t,r){return(t?o:n)(e,i,r)}:this.matches=function(t,n){return(t?l:r)(e,i,n)})}var f,h,d=e.Pos;String.prototype.normalize?(f=function(e){return e.normalize("NFD").toLowerCase()},h=function(e){return e.normalize("NFD")}):(f=function(e){return e.toLowerCase()},h=function(e){return e}),u.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=d(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(d(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=d(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,d(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var r=d(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:r,to:r},this.atOccurrence=!1},from:function(){return this.atOccurrence?this.pos.from:void 0},to:function(){return this.atOccurrence?this.pos.to:void 0},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=d(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new u(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new u(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n){return t.indent(e.base,n)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!e.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}function n(e,t){if(!e)return/(?:)/;var n="";return e instanceof RegExp?(e.ignoreCase&&(n="i"),e=e.source):e=String(e),new RegExp((!1===t?"":"^")+"(?:"+e+")",n)}function r(e,r){(e.next||e.push)&&t(r,e.next||e.push),this.regex=n(e.regex),this.token=function(e){if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");for(var t=[],n=0;n<e.length;n++)t.push(e[n]&&e[n].replace(/\./g," "));return t}(e.token),this.data=e}function i(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=0;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)||!i(e[r],t[r]))return!1;n++}for(var r in t)t.hasOwnProperty(r)&&n--;return 0==n}function o(t,r,o,l){var a;if(o.persistent)for(var s=r.persistentStates;s&&!a;s=s.next)(o.spec?i(o.spec,s.spec):o.mode==s.mode)&&(a=s);var c=a?a.mode:o.mode||e.getMode(t,o.spec),u=a?a.state:e.startState(c);o.persistent&&!a&&(r.persistentStates={mode:c,spec:o.spec,state:u,next:r.persistentStates}),r.localState=u,r.local={mode:c,end:o.end&&n(o.end),endScan:o.end&&!1!==o.forceEnd&&n(o.end,!1),endToken:l&&l.join?l[l.length-1]:l}}e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,i){t(i,"start");var l={},a=i.meta||{},s=!1;for(var c in i)if(c!=a&&i.hasOwnProperty(c))for(var u=l[c]=[],f=i[c],h=0;h<f.length;h++){var d=f[h];u.push(new r(d,i)),(d.indent||d.dedent)&&(s=!0)}var p,m,g,v,y={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:s?[]:null}},copyState:function(t){var n={state:t.state,pending:t.pending,local:t.local,localState:null,indent:t.indent&&t.indent.slice(0)};t.localState&&(n.localState=e.copyState(t.local.mode,t.localState)),t.stack&&(n.stack=t.stack.slice(0));for(var r=t.persistentStates;r;r=r.next)n.persistentStates={mode:r.mode,spec:r.spec,state:r.state==t.localState?n.localState:e.copyState(r.mode,r.state),next:n.persistentStates};return n},token:(g=l,v=n,function(e,t){if(t.pending){var n=t.pending.shift();return 0==t.pending.length&&(t.pending=null),e.pos+=n.text.length,n.token}if(t.local){if(t.local.end&&e.match(t.local.end)){var r=t.local.endToken||null;return t.local=t.localState=null,r}var i;r=t.local.mode.token(e,t.localState);return t.local.endScan&&(i=t.local.endScan.exec(e.current()))&&(e.pos=e.start+i.index),r}for(var l=g[t.state],a=0;a<l.length;a++){var s=l[a],c=(!s.data.sol||e.sol())&&e.match(s.regex);if(c){s.data.next?t.state=s.data.next:s.data.push?((t.stack||(t.stack=[])).push(t.state),t.state=s.data.push):s.data.pop&&t.stack&&t.stack.length&&(t.state=t.stack.pop()),s.data.mode&&o(v,t,s.data.mode,s.token),s.data.indent&&t.indent.push(e.indentation()+v.indentUnit),s.data.dedent&&t.indent.pop();var u=s.token;if(u&&u.apply&&(u=u(c)),2<c.length&&s.token&&"string"!=typeof s.token){t.pending=[];for(var f=2;f<c.length;f++)c[f]&&t.pending.push({text:c[f],token:s.token[f-1]});return e.backUp(c[0].length-(c[1]?c[1].length:0)),u[0]}return u&&u.join?u[0]:u}}return e.next(),null}),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:(p=l,m=a,function(t,n,r){if(t.local&&t.local.mode.indent)return t.local.mode.indent(t.localState,n,r);if(null==t.indent||t.local||m.dontIndentStates&&-1<function(e,t){for(var n=0;n<t.length;n++)if(t[n]===e)return!0}(t.state,m.dontIndentStates))return e.Pass;var i=t.indent.length-1,o=p[t.state];e:for(;;){for(var l=0;l<o.length;l++){var a=o[l];if(a.data.dedent&&!1!==a.data.dedentIfLineStart){var s=a.regex.exec(n);if(s&&s[0]){i--,(a.next||a.push)&&(o=p[a.next||a.push]),n=n.slice(s[0].length);continue e}}}break}return i<0?0:t.indent[i]})};if(a)for(var x in a)a.hasOwnProperty(x)&&(y[x]=a[x]);return y}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.multiplexingMode=function(t){var n=Array.prototype.slice.call(arguments,1);function r(e,t,n,r){if("string"==typeof t){var i=e.indexOf(t,n);return r&&-1<i?i+t.length:i}var o=t.exec(n?e.slice(n):e);return o?o.index+n+(r?o[0].length:0):-1}return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner)}},token:function(i,o){if(o.innerActive){var l=o.innerActive;if(c=i.string,!l.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((f=l.close?r(c,l.close,i.pos,l.parseDelimiters):-1)==i.pos&&!l.parseDelimiters)return i.match(l.close),o.innerActive=o.inner=null,l.delimStyle&&l.delimStyle+" "+l.delimStyle+"-close";-1<f&&(i.string=c.slice(0,f));var a=l.mode.token(i,o.inner);return-1<f&&(i.string=c),f==i.pos&&l.parseDelimiters&&(o.innerActive=o.inner=null),l.innerStyle&&(a=a?a+" "+l.innerStyle:l.innerStyle),a}for(var s=1/0,c=i.string,u=0;u<n.length;++u){var f,h=n[u];if((f=r(c,h.open,i.pos))==i.pos){h.parseDelimiters||i.match(h.open),o.innerActive=h;var d=0;if(t.indent){var p=t.indent(o.outer,"");p!==e.Pass&&(d=p)}return o.inner=e.startState(h.mode,d),h.delimStyle&&h.delimStyle+" "+h.delimStyle+"-open"}-1!=f&&f<s&&(s=f)}s!=1/0&&(i.string=c.slice(0,s));var m=t.token(i,o.outer);return s!=1/0&&(i.string=c),m},indent:function(n,r){var i=n.innerActive?n.innerActive.mode:t;return i.indent?i.indent(n.innerActive?n.inner:n.outer,r):e.Pass},blankLine:function(r){var i=r.innerActive?r.innerActive.mode:t;if(i.blankLine&&i.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)"\n"===r.innerActive.close&&(r.innerActive=r.inner=null);else for(var o=0;o<n.length;++o){var l=n[o];"\n"===l.open&&(r.innerActive=l,r.inner=e.startState(l.mode,i.indent?i.indent(r.outer,""):0))}},electricChars:t.electricChars,innerMode:function(e){return e.inner?{state:e.inner,mode:e.innerActive.mode}:{state:e.outer,mode:t}}}}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}(e,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var l=this;e.on("change",this.changeHandler=function(e,t){l.onChange(t)})}function n(e,t,n){return t>=e?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length;t++){if((i=this.matches[t]).from.line>=this.gap.to)break;i.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold),r=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>r)break}this.gap=null}},t.prototype.onChange=function(t){var r=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var l=0;l<this.matches.length;l++){var a=this.matches[l],s=n(a.from.line,r,o);s!=a.from.line&&(a.from=e.Pos(s,a.from.ch));var c=n(a.to.line,r,o);c!=a.to.line&&(a.to=e.Pos(c,a.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout(function(){u.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./matchesonscrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&r(e,t)}function n(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,r(e,t))}function r(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){l(e)},t.options.delay)}function i(e,t,n,r){var i=e.state.matchHighlighter;if(e.addOverlay(i.overlay=function(e,t,n){return{token:function(r){return!r.match(e)||t&&!function(e,t){return!(e.start&&t.test(e.string.charAt(e.start-1))||e.pos!=e.string.length&&t.test(e.string.charAt(e.pos)))}(r,t)?(r.next(),void(r.skipTo(e.charAt(0))||r.skipToEnd())):n}}}(t,n,r)),i.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp("\\b"+t+"\\b"):t;i.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function o(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function l(e){e.operation(function(){var t=e.state.matchHighlighter;if(o(e),e.somethingSelected()||!t.options.showToken){var n=e.getCursor("from"),r=e.getCursor("to");if(n.line==r.line&&(!t.options.wordsOnly||function(e,t,n){if(null!==e.getRange(t,n).match(/^\w+$/)){if(t.ch>0){var r={line:t.line,ch:t.ch-1},i=e.getRange(r,t);if(null===i.match(/\W/))return!1}if(n.ch<e.getLine(t.line).length){var r={line:n.line,ch:n.ch+1},i=e.getRange(n,r);if(null===i.match(/\W/))return!1}return!0}return!1}(e,n,r))){var l=e.getRange(n,r);t.options.trim&&(l=l.replace(/^\s+|\s+$/g,"")),l.length>=t.options.minChars&&i(e,l,!1,t.options.style)}}else{for(var a=!0===t.options.showToken?/[\w$]/:t.options.showToken,s=e.getCursor(),c=e.getLine(s.line),u=s.ch,f=u;u&&a.test(c.charAt(u-1));)--u;for(;f<c.length&&a.test(c.charAt(f));)++f;f>u&&i(e,c.slice(u,f),a,t.options.style)}})}var a={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};e.defineOption("highlightSelectionMatches",!1,function(r,i,s){if(s&&s!=e.Init&&(o(r),clearTimeout(r.state.matchHighlighter.timeout),r.state.matchHighlighter=null,r.off("cursorActivity",t),r.off("focus",n)),i){var c=r.state.matchHighlighter=new function(e){for(var t in this.options={},a)this.options[t]=(e&&e.hasOwnProperty(t)?e:a)[t];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}(i);r.hasFocus()?(c.active=!0,l(r)):r.on("focus",n),r.on("cursorActivity",t)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout(function(){r.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout(function(){r.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("change",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;return t!=this.hScale?(this.hScale=t,!0):void 0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){function t(e,t){return s!=e.line&&(s=e.line,c=n.getLineHandle(s)),c.widgets&&c.widgets.length||l&&c.height>a?n.charCoords(e,"local")[t?"top":"bottom"]:n.heightAtLine(c,"local")+(t?0:c.height)}!1!==e&&this.computeScale();var n=this.cm,r=this.hScale,i=document.createDocumentFragment(),o=this.annotations,l=n.getOption("lineWrapping"),a=l&&1.5*n.defaultTextHeight(),s=null,c=null,u=n.lastLine();if(n.display.barWidth)for(var f,h=0;h<o.length;h++){var d=o[h];if(!(d.to.line>u)){for(var p=f||t(d.from,!0)*r,m=t(d.to,!1)*r;h<o.length-1&&!(o[h+1].to.line>u)&&!((f=t(o[h+1].from,!0)*r)>m+.9);)m=t((d=o[++h]).to,!1)*r;if(m!=p){var g=Math.max(m-p,3),v=i.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(n.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+g+"px",v.className=this.options.className,d.id&&v.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/edit/matchbrackets")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n,r){if(0>r&&0==n.ch)return t.clipPos(f(n.line-1));var i=t.getLine(n.line);if(r>0&&n.ch>=i.length)return t.clipPos(f(n.line+1,0));for(var o,l="start",a=n.ch,s=0>r?0:i.length,c=0;a!=s;a+=r,c++){var u=i.charAt(0>r?a-1:a),h="_"!=u&&e.isWordChar(u)?"w":"o";if("w"==h&&u.toUpperCase()==u&&(h="W"),"start"==l)"o"!=h&&(l="in",o=h);else if("in"==l&&o!=h){if("w"==o&&"W"==h&&0>r&&a--,"W"==o&&"w"==h&&r>0){o="w";continue}break}}return f(n.line,a)}function n(e,n){e.extendSelectionsBy(function(r){return e.display.shift||e.doc.extend||r.empty()?t(e.doc,r.head,n):0>n?r.from():r.to()})}function r(t,n){for(var r=n.ch,i=r,o=t.getLine(n.line);r&&e.isWordChar(o.charAt(r-1));)--r;for(;i<o.length&&e.isWordChar(o.charAt(i));)++i;return{from:f(n.line,r),to:f(n.line,i),word:o.slice(r,i)}}function i(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r].head,o=e.scanForBracket(i,-1);if(!o)return!1;for(;;){var l=e.scanForBracket(i,1);if(!l)return!1;if(l.ch==g.charAt(g.indexOf(o.ch)+1)){n.push({anchor:f(o.pos.line,o.pos.ch+1),head:l.pos});break}i=f(l.pos.line,l.pos.ch+1)}}return e.setSelections(n),!0}function o(t,n){if(t.isReadOnly())return e.Pass;for(var r,i=t.listSelections(),o=[],l=0;l<i.length;l++){var a=i[l];if(!a.empty()){for(var s=a.from().line,c=a.to().line;l<i.length-1&&i[l+1].from().line==c;)c=i[++l].to().line;i[l].to().ch||c--,o.push(s,c)}}o.length?r=!0:o.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],i=0;i<o.length;i+=2){var l=o[i],a=o[i+1],s=f(l,0),c=f(a),u=t.getRange(s,c,!1);n?u.sort():u.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),t>e?-1:e==t?0:1}),t.replaceRange(u,s,c),r&&e.push({anchor:s,head:f(a+1,0)})}r&&t.setSelections(e,0)})}function l(t,n){t.operation(function(){for(var i=t.listSelections(),o=[],l=[],a=0;a<i.length;a++){(c=i[a]).empty()?(o.push(a),l.push("")):l.push(n(t.getRange(c.from(),c.to())))}t.replaceSelections(l,"around","case");var s;for(a=o.length-1;a>=0;a--){var c=i[o[a]];if(!(s&&e.cmpPos(c.head,s)>0)){var u=r(t,c.head);s=u.from,t.replaceRange(n(u.word),u.from,u.to)}}})}function a(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var o=r(t,n);if(!o.word)return;n=o.from,i=o.to}return{from:n,to:i,query:t.getRange(n,i),word:o}}function s(e,t){var n=a(e);if(n){var r=n.query,i=e.getSearchCursor(r,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(r,t?f(e.firstLine(),0):e.clipPos(f(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}var c=e.keyMap.sublime={fallthrough:"default"},u=e.commands,f=e.Pos,h=e.keyMap.default==e.keyMap.macDefault,d=h?"Cmd-":"Ctrl-",p=h?"Ctrl-":"Alt-";u[c[p+"Left"]="goSubwordLeft"]=function(e){n(e,-1)},u[c[p+"Right"]="goSubwordRight"]=function(e){n(e,1)},h&&(c["Cmd-Left"]="goLineStartSmart");var m=h?"Ctrl-Alt-":"Ctrl-";u[c[m+"Up"]="scrollLineUp"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},u[c[m+"Down"]="scrollLineDown"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},u[c["Shift-"+d+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var i=t[r].from(),o=t[r].to(),l=i.line;l<=o.line;++l)o.line>i.line&&l==o.line&&0==o.ch||n.push({anchor:l==i.line?i:f(l,0),head:l==o.line?o:f(l)});e.setSelections(n,0)},c["Shift-Tab"]="indentLess",u[c.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},u[c[d+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r];n.push({anchor:f(i.from().line,0),head:f(i.to().line+1,0)})}e.setSelections(n)},c["Shift-Ctrl-K"]="deleteLine",u[c[d+"D"]="selectNextOccurrence"]=function(t){var n=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,i)){var l=r(t,n);if(!l.word)return;t.setSelection(l.from,l.to),o=!0}else{var a=t.getRange(n,i),s=o?new RegExp("\\b"+a+"\\b"):a,c=t.getSearchCursor(s,i),u=c.findNext();if(u||(u=(c=t.getSearchCursor(s,f(t.firstLine(),0))).findNext()),!u||function(e,t,n){for(var r=0;r<e.length;r++)if(e[r].from()==t&&e[r].to()==n)return!0;return!1}(t.listSelections(),c.from(),c.to()))return e.Pass;t.addSelection(c.from(),c.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)};var g="(){}[]";u[c["Shift-"+d+"Space"]="selectScope"]=function(e){i(e)||e.execCommand("selectAll")},u[c["Shift-"+d+"M"]="selectBetweenBrackets"]=function(t){return i(t)?void 0:e.Pass},u[c[d+"M"]="goToBracket"]=function(t){t.extendSelectionsBy(function(n){var r=t.scanForBracket(n.head,1);if(r&&0!=e.cmpPos(r.pos,n.head))return r.pos;var i=t.scanForBracket(n.head,-1);return i&&f(i.pos.line,i.pos.ch+1)||n.head})};var v=h?"Cmd-Ctrl-":"Shift-Ctrl-";u[c[v+"Up"]="swapLineUp"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.firstLine()-1,o=[],l=0;l<n.length;l++){var a=n[l],s=a.from().line-1,c=a.to().line;o.push({anchor:f(a.anchor.line-1,a.anchor.ch),head:f(a.head.line-1,a.head.ch)}),0!=a.to().ch||a.empty()||--c,s>i?r.push(s,c):r.length&&(r[r.length-1]=c),i=c}t.operation(function(){for(var e=0;e<r.length;e+=2){var n=r[e],i=r[e+1],l=t.getLine(n);t.replaceRange("",f(n,0),f(n+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+l,f(t.lastLine()),null,"+swapLine"):t.replaceRange(l+"\n",f(i,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()})},u[c[v+"Down"]="swapLineDown"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),r=[],i=t.lastLine()+1,o=n.length-1;o>=0;o--){var l=n[o],a=l.to().line+1,s=l.from().line;0!=l.to().ch||l.empty()||a--,i>a?r.push(a,s):r.length&&(r[r.length-1]=s),i=s}t.operation(function(){for(var e=r.length-2;e>=0;e-=2){var n=r[e],i=r[e+1],o=t.getLine(n);n==t.lastLine()?t.replaceRange("",f(n-1),f(n),"+swapLine"):t.replaceRange("",f(n,0),f(n+1,0),"+swapLine"),t.replaceRange(o+"\n",f(i,0),null,"+swapLine")}t.scrollIntoView()})},u[c[d+"/"]="toggleCommentIndented"]=function(e){e.toggleComment({indent:!0})},u[c[d+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){for(var i=t[r],o=i.from(),l=o.line,a=i.to().line;r<t.length-1&&t[r+1].from().line==a;)a=t[++r].to().line;n.push({start:l,end:a,anchor:!i.empty()&&o})}e.operation(function(){for(var t=0,r=[],i=0;i<n.length;i++){for(var o,l=n[i],a=l.anchor&&f(l.anchor.line-t,l.anchor.ch),s=l.start;s<=l.end;s++){var c=s-t;s==l.end&&(o=f(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",f(c),f(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}r.push({anchor:a||o,head:o})}e.setSelections(r,0)})},u[c["Shift-"+d+"D"]="duplicateLine"]=function(e){e.operation(function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];r.empty()?e.replaceRange(e.getLine(r.head.line)+"\n",f(r.head.line,0)):e.replaceRange(e.getRange(r.from(),r.to()),r.from())}e.scrollIntoView()})},h||(c[d+"T"]="transposeChars"),u[c.F9="sortLines"]=function(e){o(e,!0)},u[c[d+"F9"]="sortLinesInsensitive"]=function(e){o(e,!1)},u[c.F2="nextBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},u[c["Shift-F2"]="prevBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},u[c[d+"F2"]="toggleBookmark"]=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),l=e.findMarks(i,o),a=0;a<l.length;a++)if(l[a].sublimeBookmark){l[a].clear();for(var s=0;s<n.length;s++)n[s]==l[a]&&n.splice(s--,1);break}a==l.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},u[c["Shift-"+d+"F2"]="clearBookmarks"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},u[c["Alt-F2"]="selectBookmarks"]=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},c["Alt-Q"]="wrapLines";var y=d+"K ";c[y+d+"Backspace"]="delLineLeft",u[c.Backspace="smartBackspace"]=function(t){return t.somethingSelected()?e.Pass:void t.operation(function(){for(var n=t.listSelections(),r=t.getOption("indentUnit"),i=n.length-1;i>=0;i--){var o=n[i].head,l=t.getRange({line:o.line,ch:0},o),a=e.countColumn(l,null,t.getOption("tabSize")),s=t.findPosH(o,-1,"char",!1);if(l&&!/\S/.test(l)&&a%r==0){var c=new f(o.line,e.findColumn(l,a-r,r));c.ch!=o.ch&&(s=c)}t.replaceRange("",s,o,"+delete")}})},u[c[y+d+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,f(t[n].to().line),"+delete");e.scrollIntoView()})},u[c[y+d+"U"]="upcaseAtCursor"]=function(e){l(e,function(e){return e.toUpperCase()})},u[c[y+d+"L"]="downcaseAtCursor"]=function(e){l(e,function(e){return e.toLowerCase()})},u[c[y+d+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},u[c[y+d+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},u[c[y+d+"W"]="deleteToSublimeMark"]=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},u[c[y+d+"X"]="swapWithSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},u[c[y+d+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},c[y+d+"G"]="clearBookmarks",u[c[y+d+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)};var x=h?"Ctrl-Shift-":"Ctrl-Alt-";u[c[x+"Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line>e.firstLine()&&e.addSelection(f(r.head.line-1,r.head.ch))}})},u[c[x+"Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line<e.lastLine()&&e.addSelection(f(r.head.line+1,r.head.ch))}})},u[c[d+"F3"]="findUnder"]=function(e){s(e,!0)},u[c["Shift-"+d+"F3"]="findUnderPrevious"]=function(e){s(e,!1)},u[c["Alt-F3"]="findAllUnder"]=function(e){var t=a(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}},c["Shift-"+d+"["]="fold",c["Shift-"+d+"]"]="unfold",c[y+d+"0"]=c[y+d+"J"]="unfoldAll",c[d+"I"]="findIncremental",c["Shift-"+d+"I"]="findIncrementalReverse",c[d+"H"]="replace",c.F3="findNext",c["Shift-F3"]="findPrev",e.normalizeKeyMap(c)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,r){var i=e.getLineHandle(t.line),o=t.ch-1,s=r&&r.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=!s&&o>=0&&a[i.text.charAt(o)]||a[i.text.charAt(++o)];if(!c)return null;var u=">"==c.charAt(1)?1:-1;if(r&&r.strict&&u>0!=(o==t.ch))return null;var f=e.getTokenTypeAt(l(t.line,o+1)),h=n(e,l(t.line,o+(u>0?1:0)),u,f||null,r);return null==h?null:{from:l(t.line,o),to:h&&h.pos,match:h&&h.ch==c.charAt(0),forward:u>0}}function n(e,t,n,r,i){for(var o=i&&i.maxScanLineLength||1e4,s=i&&i.maxScanLines||1e3,c=[],u=i&&i.bracketRegex?i.bracketRegex:/[(){}[\]]/,f=n>0?Math.min(t.line+s,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-s),h=t.line;h!=f;h+=n){var d=e.getLine(h);if(d){var p=n>0?0:d.length-1,m=n>0?d.length:-1;if(!(d.length>o))for(h==t.line&&(p=t.ch-(0>n?1:0));p!=m;p+=n){var g=d.charAt(p);if(u.test(g)&&(void 0===r||e.getTokenTypeAt(l(h,p+1))==r))if(">"==a[g].charAt(1)==n>0)c.push(g);else{if(!c.length)return{pos:l(h,p),ch:g};c.pop()}}}}return h-n!=(n>0?e.lastLine():e.firstLine())&&null}function r(e,n,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,a=[],s=e.listSelections(),c=0;c<s.length;c++){var u=s[c].empty()&&t(e,s[c].head,r);if(u&&e.getLine(u.from.line).length<=i){var f=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";a.push(e.markText(u.from,l(u.from.line,u.from.ch+1),{className:f})),u.to&&e.getLine(u.to.line).length<=i&&a.push(e.markText(u.to,l(u.to.line,u.to.ch+1),{className:f}))}}if(a.length){o&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<a.length;e++)a[e].clear()})};if(!n)return h;setTimeout(h,800)}}function i(e){e.operation(function(){s&&(s(),s=null),s=r(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),l=e.Pos,a={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},s=null;e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",i),s&&(s(),s=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",i))}),e.defineExtension("matchBrackets",function(){r(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,r){return(r||"boolean"==typeof n)&&(r?(r.strict=n,n=r):n=n?{strict:!0}:null),t(this,e,n)}),e.defineExtension("scanForBracket",function(e,t,r,i){return n(this,e,t,r,i)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:u[t]}function n(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";h[i]||(h[i]=r(n))}}function r(e){return function(t){return l(t,e)}}function i(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new f(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new f(t.head.line,t.head.ch+(n?1:-1))}}function l(n,r){var l=i(n);if(!l||n.getOption("disableInput"))return e.Pass;var s=t(l,"pairs"),u=s.indexOf(r);if(-1==u)return e.Pass;for(var h,d=t(l,"triples"),p=s.charAt(u+1)==r,m=n.listSelections(),g=u%2==0,v=0;v<m.length;v++){var y,x=m[v],b=x.head,C=n.getRange(b,f(b.line,b.ch+1));if(g&&!x.empty())y="surround";else if(!p&&g||C!=r)if(p&&b.ch>1&&d.indexOf(r)>=0&&n.getRange(f(b.line,b.ch-2),b)==r+r&&(b.ch<=2||n.getRange(f(b.line,b.ch-3),f(b.line,b.ch-2))!=r))y="addFour";else if(p){var w=0==b.ch?" ":n.getRange(f(b.line,b.ch-1),b);if(e.isWordChar(C)||w==r||e.isWordChar(w))return e.Pass;y="both"}else{if(!g||n.getLine(b.line).length!=b.ch&&!a(C,s)&&!/\s/.test(C))return e.Pass;y="both"}else y=p&&c(n,b)?"both":d.indexOf(r)>=0&&n.getRange(b,f(b.line,b.ch+3))==r+r+r?"skipThree":"skip";if(h){if(h!=y)return e.Pass}else h=y}var k=u%2?s.charAt(u-1):r,S=u%2?r:s.charAt(u+1);n.operation(function(){if("skip"==h)n.execCommand("goCharRight");else if("skipThree"==h)for(var e=0;3>e;e++)n.execCommand("goCharRight");else if("surround"==h){var t=n.getSelections();for(e=0;e<t.length;e++)t[e]=k+t[e]+S;n.replaceSelections(t,"around"),t=n.listSelections().slice();for(e=0;e<t.length;e++)t[e]=o(t[e]);n.setSelections(t)}else"both"==h?(n.replaceSelection(k+S,null),n.triggerElectric(k+S),n.execCommand("goCharLeft")):"addFour"==h&&(n.replaceSelection(k+k+k+k,"before"),n.execCommand("goCharRight"))})}function a(e,t){var n=t.lastIndexOf(e);return n>-1&&n%2==1}function s(e,t){var n=e.getRange(f(t.line,t.ch-1),f(t.line,t.ch+1));return 2==n.length?n:null}function c(e,t){var n=e.getTokenAt(f(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var u={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},f=e.Pos;e.defineOption("autoCloseBrackets",!1,function(r,i,o){o&&o!=e.Init&&(r.removeKeyMap(h),r.state.closeBrackets=null),i&&(n(t(i,"pairs")),r.state.closeBrackets=i,r.addKeyMap(h))});var h={Backspace:function(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),l=n.listSelections(),a=0;a<l.length;a++){if(!l[a].empty())return e.Pass;var c=s(n,l[a].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(a=l.length-1;a>=0;a--){var u=l[a].head;n.replaceRange("",f(u.line,u.ch-1),f(u.line,u.ch+1),"+delete")}},Enter:function(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var l=n.listSelections(),a=0;a<l.length;a++){if(!l[a].empty())return e.Pass;var c=s(n,l[a].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),n.execCommand("goCharLeft"),l=n.listSelections();for(var t=0;t<l.length;t++){var r=l[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}})}};n(u.pairs+"`")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){function r(r){for(var a=n.ch,s=0;;){var c=0>=a?-1:l.lastIndexOf(r,a-1);if(-1!=c){if(1==s&&c<n.ch)break;if(i=t.getTokenTypeAt(e.Pos(o,c+1)),!/^(comment|string)/.test(i))return c+1;a=c-1}else{if(1==s)break;s=1,a=l.length}}}var i,o=n.line,l=t.getLine(o),a="{",s="}",c=r("{");if(null==c&&(a="[",s="]",c=r("[")),null!=c){var u,f,h=1,d=t.lastLine();e:for(var p=o;d>=p;++p)for(var m=t.getLine(p),g=p==o?c:0;;){var v=m.indexOf(a,g),y=m.indexOf(s,g);if(0>v&&(v=m.length),0>y&&(y=m.length),(g=Math.min(v,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(p,g+1))==i)if(g==v)++h;else if(!--h){u=p,f=g;break e}++g}if(null!=u&&(o!=u||f!=c))return{from:e.Pos(o,c),to:e.Pos(u,f)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);o>=i;++i){var l=t.getLine(i).indexOf(";");if(-1!=l)return{startCh:r.end,end:e.Pos(i,l)}}}var i,o=n.line,l=r(o);if(!l||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var a=l.end;;){var s=r(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(o,l.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var l=i;;){if(null==r(l+1))break;++l}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(l))}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var l,a=n.line,s=t.getLine(a),c=n.ch,u=0;;){var f=0>=c?-1:s.lastIndexOf(i,c-1);if(-1!=f){if(1==u&&f<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(a,f+1)))&&(0==f||s.slice(f-o.length,f)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(a,f))))){l=f+i.length;break}c=f-1}else{if(1==u)return;u=1,c=s.length}}var h,d,p=1,m=t.lastLine();e:for(var g=a;m>=g;++g)for(var v=t.getLine(g),y=g==a?l:0;;){var x=v.indexOf(i,y),b=v.indexOf(o,y);if(0>x&&(x=v.length),0>b&&(b=v.length),(y=Math.min(x,b))==v.length)break;if(y==x)++p;else if(!--p){h=g,d=y;break e}++y}if(null!=h&&(a!=h||d!=l))return{from:e.Pos(a,l),to:e.Pos(h,d)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,r,i,o){function l(e){var n=a(t,r);if(!n||n.to.line-n.from.line<s)return null;for(var i=t.findMarksAt(n.from),l=0;l<i.length;++l)if(i[l].__isFold&&"fold"!==o){if(!e)return null;n.cleared=!0,i[l].clear()}return n}if(i&&i.call){var a=i;i=null}else a=n(t,i,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var s=n(t,i,"minFoldSize"),c=l(!0);if(n(t,i,"scanUp"))for(;!c&&r.line>t.firstLine();)r=e.Pos(r.line-1,0),c=l(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t){var r=n(e,t,"widget");if("string"==typeof r){var i=document.createTextNode(r);(r=document.createElement("span")).appendChild(i),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}(t,i);e.on(u,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:n(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var r={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return n(this,e,t)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){for(var n=e.findMarks(c(t,0),c(t+1,0)),r=0;r<n.length;++r)if(n[r].__isFold&&n[r].find().from.line==t)return n[r]}function n(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function r(e,r,i){var o=e.state.foldGutter.options,l=r,a=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder");e.eachLine(r,i,function(r){var i=null;if(t(e,l))i=n(o.indicatorFolded);else{var u=c(l,0),f=s&&s(e,u);f&&f.to.line-f.from.line>=a&&(i=n(o.indicatorOpen))}e.setGutterMarker(r,o.gutter,i),++l})}function i(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){r(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function o(e,n,r){var i=e.state.foldGutter;if(i){var o=i.options;if(r==o.gutter){var l=t(e,n);l?l.clear():e.foldCode(c(n,0),o.rangeFinder)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){i(e)},n.foldOnChangeTimeSpan||600)}}function a(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?i(e):e.operation(function(){n.from<t.from&&(r(e,n.from,t.from),t.from=n.from),n.to>t.to&&(r(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function s(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&i<n.to&&r(e,i,i+1)}}e.defineOption("foldGutter",!1,function(t,n,r){r&&r!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",o),t.off("change",l),t.off("viewportChange",a),t.off("fold",s),t.off("unfold",s),t.off("swapDoc",l)),n&&(t.state.foldGutter=new function(e){this.options=e,this.from=this.to=0}(function(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}(n)),i(t),t.on("gutterClick",o),t.on("change",l),t.on("viewportChange",a),t.on("fold",s),t.on("unfold",s),t.on("swapDoc",l))});var c=e.Pos}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n){var r=t.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,i+1)))?-1:e.countColumn(r,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",function(n,r){var i=t(n,r.line);if(!(0>i)){for(var o=null,l=r.line+1,a=n.lastLine();a>=l;++l){var s=t(n,l);if(-1==s);else{if(!(s>i))break;o=l}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","markdown",function(t,n){function r(n){var r=t.getTokenTypeAt(e.Pos(n,0));return r&&/\bheader\b/.test(r)}function i(e,t,n){var i=t&&t.match(/^#+/);return i&&r(e)?i[0].length:(i=n&&n.match(/^[=\-]+\s*$/))&&r(e+1)?"="==n[0]?1:2:o}var o=100,l=t.getLine(n.line),a=t.getLine(n.line+1),s=i(n.line,l,a);if(s!==o){for(var c=t.lastLine(),u=n.line,f=t.getLine(u+2);c>u&&!(i(u+1,a,f)<=s);)++u,a=f,f=t.getLine(u+2);return{from:e.Pos(n.line,l.length),to:e.Pos(u,t.getLine(u).length)}}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function n(e,t){var n=e.cm.getTokenTypeAt(f(e.line,t));return n&&/\btag\b/.test(n)}function r(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function i(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function o(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}if(n(e,t+1)){var i=e.text.lastIndexOf("/",t),o=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}function l(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(i(e))continue;return}if(n(e,t+1)){d.lastIndex=t,e.ch=t;var r=d.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function a(e){for(;;){d.lastIndex=e.ch;var t=d.exec(e.text);if(!t){if(r(e))continue;return}if(n(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(i(e))continue;return}if(n(e,t+1)){var r=e.text.lastIndexOf("/",t),o=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t}}function c(e,t){for(var n=[];;){var r,i=a(e),l=e.line,s=e.ch-(i?i[0].length:0);if(!i||!(r=o(e)))return;if("selfClose"!=r)if(i[1]){for(var c=n.length-1;c>=0;--c)if(n[c]==i[2]){n.length=c;break}if(0>c&&(!t||t==i[2]))return{tag:i[2],from:f(l,s),to:f(e.line,e.ch)}}else n.push(i[2])}}function u(e,t){for(var n=[];;){var r=s(e);if(!r)return;if("selfClose"!=r){var i=e.line,o=e.ch,a=l(e);if(!a)return;if(a[1])n.push(a[2]);else{for(var c=n.length-1;c>=0;--c)if(n[c]==a[2]){n.length=c;break}if(0>c&&(!t||t==a[2]))return{tag:a[2],from:f(e.line,e.ch),to:f(i,o)}}}else l(e)}}var f=e.Pos,h="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",d=new RegExp("<(/?)(["+h+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,n){for(var r=new t(e,n.line,0);;){var i,l=a(r);if(!l||r.line!=n.line||!(i=o(r)))return;if(!l[1]&&"selfClose"!=i){var s=f(r.line,r.ch),u=c(r,l[2]);return u&&{from:s,to:u.from}}}}),e.findMatchingTag=function(e,n,r){var i=new t(e,n.line,n.ch,r);if(-1!=i.text.indexOf(">")||-1!=i.text.indexOf("<")){var a=o(i),s=a&&f(i.line,i.ch),h=a&&l(i);if(a&&h&&!(function(e,t){return e.line-t.line||e.ch-t.ch}(i,n)>0)){var d={from:f(i.line,i.ch),to:s,tag:h[2]};return"selfClose"==a?{open:d,close:null,at:"open"}:h[1]?{open:u(i,h[2]),close:d,at:"close"}:{open:d,close:c(i=new t(e,s.line,s.ch,r),h[2]),at:"open"}}}},e.findEnclosingTag=function(e,n,r,i){for(var o=new t(e,n.line,n.ch,r);;){var l=u(o,i);if(!l)break;var a=c(new t(e,n.line,n.ch,r),l.tag);if(a)return{open:l,close:a}}},e.scanForClosingTag=function(e,n,r,i){return c(new t(e,n.line,n.ch,i?{from:0,to:i}:null),r)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(e){return"string"==typeof e?e:e.text}function r(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function i(t,i){this.completion=t,this.data=i,this.picked=!1;var o=this,s=t.cm,c=this.hints=document.createElement("ul");c.className="CodeMirror-hints",this.selectedHint=i.selectedHint||0;for(var u=i.list,f=0;f<u.length;++f){var h=c.appendChild(document.createElement("li")),d=u[f],p=l+(f!=this.selectedHint?"":" "+a);null!=d.className&&(p=d.className+" "+p),h.className=p,d.render?d.render(h,i,d):h.appendChild(document.createTextNode(d.displayText||n(d))),h.hintId=f}var m=s.cursorCoords(t.options.alignWithWord?i.from:null),g=m.left,v=m.bottom,y=!0;c.style.left=g+"px",c.style.top=v+"px";var x=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),b=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(t.options.container||document.body).appendChild(c);var C=c.getBoundingClientRect(),w=C.bottom-b,k=c.scrollHeight>c.clientHeight+1,S=s.getScrollInfo();if(w>0){var L=C.bottom-C.top;if(m.top-(m.bottom-C.top)-L>0)c.style.top=(v=m.top-L)+"px",y=!1;else if(L>b){c.style.height=b-5+"px",c.style.top=(v=m.bottom-C.top)+"px";var M=s.getCursor();i.from.ch!=M.ch&&(m=s.cursorCoords(M),c.style.left=(g=m.left)+"px",C=c.getBoundingClientRect())}}var T,A=C.right-x;if(A>0&&(C.right-C.left>x&&(c.style.width=x-5+"px",A-=C.right-C.left-x),c.style.left=(g=m.left-A)+"px"),k)for(var O=c.firstChild;O;O=O.nextSibling)O.style.paddingRight=s.display.nativeBarWidth+"px";(s.addKeyMap(this.keyMap=function(e,t){function n(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},i=e.options.customKeys,o=i?{}:r;if(i)for(var l in i)i.hasOwnProperty(l)&&n(l,i[l]);var a=e.options.extraKeys;if(a)for(var l in a)a.hasOwnProperty(l)&&n(l,a[l]);return o}(t,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:u.length,close:function(){t.close()},pick:function(){o.pick()},data:i})),t.options.closeOnUnfocus)&&(s.on("blur",this.onBlur=function(){T=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(T)}));return s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),r=v+S.top-e.top,i=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);return y||(i+=c.offsetHeight),i<=n.top||i>=n.bottom?t.close():(c.style.top=r+"px",void(c.style.left=g+S.left-e.left+"px"))}),e.on(c,"dblclick",function(e){var t=r(c,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(c,"click",function(e){var n=r(c,e.target||e.srcElement);n&&null!=n.hintId&&(o.changeActive(n.hintId),t.options.completeOnSingleClick&&o.pick())}),e.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(i,"select",u[this.selectedHint],c.childNodes[this.selectedHint]),!0}function o(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}var l="CodeMirror-hint",a="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new t(this,n);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}});var s=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var i=t.list[r];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(n(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||e.ch&&this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=s(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;o(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new i(this,t),e.signal(t,"shown")))}},i.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:0>t&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r.className=r.className.replace(" "+a,""),(r=this.hints.childNodes[this.selectedHint=t]).className+=" "+a,r.offsetTop<this.hints.scrollTop?this.hints.scrollTop=r.offsetTop-3:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var l=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(l){return l==r.length?t(null):void o(r[l],e,n,function(e){e&&e.list.length>0?t(e):i(l+1)})}(0)};return l.async=!0,l.supportsSelection=!0,l}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r=t.getCursor(),i=t.getTokenAt(r),o=e.Pos(r.line,i.end);if(i.string&&/\w/.test(i.string[i.string.length-1]))var l=i.string,a=e.Pos(r.line,i.start);else l="",a=o;for(var s=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,l.length)==l&&s.push(u)}return s.length?{list:s,from:a,to:o}:void 0}),e.commands.autocomplete=e.showHint;var u={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t=/[\w$]+/;e.registerHelper("hint","anyword",function(n,r){for(var i=r&&r.word||t,o=r&&r.range||500,l=n.getCursor(),a=n.getLine(l.line),s=l.ch,c=s;c&&i.test(a.charAt(c-1));)--c;for(var u=c!=s&&a.slice(c,s),f=r&&r.list||[],h={},d=new RegExp(i.source,"g"),p=-1;1>=p;p+=2)for(var m=l.line,g=Math.min(Math.max(m+p*o,n.firstLine()),n.lastLine())+p;m!=g;m+=p)for(var v,y=n.getLine(m);v=d.exec(y);)(m!=l.line||v[0]!==u)&&(u&&0!=v[0].lastIndexOf(u,0)||Object.prototype.hasOwnProperty.call(h,v[0])||(h[v[0]]=!0,f.push(v[0])));return{list:f,from:e.Pos(l.line,c),to:e.Pos(l.line,s)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",i),e.removeLineClass(e.state.activeLines[t],"background",o),e.removeLineClass(e.state.activeLines[t],"gutter",l)}function n(e,n){for(var r=[],a=0;a<n.length;a++){var s=n[a],c=e.getOption("styleActiveLine");if("object"==typeof c&&c.nonEmpty?s.anchor.line==s.head.line:s.empty()){var u=e.getLineHandleVisualStart(s.head.line);r[r.length-1]!=u&&r.push(u)}}(function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0})(e.state.activeLines,r)||e.operation(function(){t(e);for(var n=0;n<r.length;n++)e.addLineClass(r[n],"wrap",i),e.addLineClass(r[n],"background",o),e.addLineClass(r[n],"gutter",l);e.state.activeLines=r})}function r(e,t){n(e,t.ranges)}var i="CodeMirror-activeline",o="CodeMirror-activeline-background",l="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(i,o,l){var a=l!=e.Init&&l;o!=a&&(a&&(i.off("beforeSelectionChange",r),t(i),delete i.state.activeLines),o&&(i.state.activeLines=[],n(i,i.listSelections()),i.on("beforeSelectionChange",r)))})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){var t=e.search(i);return-1==t?0:t}function n(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}var r={},i=/[^\s\u00a0]/,o=e.Pos;e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=r);for(var t=this,n=1/0,i=this.listSelections(),l=null,a=i.length-1;a>=0;a--){var s=i[a].from(),c=i[a].to();s.line>=n||(c.line>=n&&(c=o(n,0)),n=s.line,null==l?t.uncomment(s,c,e)?l="un":(t.lineComment(s,c,e),l="line"):"un"==l?t.uncomment(s,c,e):t.lineComment(s,c,e))}}),e.defineExtension("lineComment",function(e,l,a){a||(a=r);var s=this,c=n(s,e),u=s.getLine(e.line);if(null!=u&&!function(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(o(t.line,0)))&&!/^[\'\"\`]/.test(n)}(s,e,u)){var f=a.lineComment||c.lineComment;if(!f)return void((a.blockCommentStart||c.blockCommentStart)&&(a.fullLines=!0,s.blockComment(e,l,a)));var h=Math.min(0!=l.ch||l.line==e.line?l.line+1:l.line,s.lastLine()+1),d=null==a.padding?" ":a.padding,p=a.commentBlankLines||e.line==l.line;s.operation(function(){if(a.indent){for(var n=null,r=e.line;h>r;++r){var l=(c=s.getLine(r)).slice(0,t(c));(null==n||n.length>l.length)&&(n=l)}for(r=e.line;h>r;++r){var c=s.getLine(r),u=n.length;(p||i.test(c))&&(c.slice(0,u)!=n&&(u=t(c)),s.replaceRange(n+f+d,o(r,0),o(r,u)))}}else for(r=e.line;h>r;++r)(p||i.test(s.getLine(r)))&&s.replaceRange(f+d,o(r,0))})}}),e.defineExtension("blockComment",function(e,t,l){l||(l=r);var a=this,s=n(a,e),c=l.blockCommentStart||s.blockCommentStart,u=l.blockCommentEnd||s.blockCommentEnd;if(c&&u){if(!/\bcomment\b/.test(a.getTokenTypeAt(o(e.line,0)))){var f=Math.min(t.line,a.lastLine());f!=e.line&&0==t.ch&&i.test(a.getLine(f))&&--f;var h=null==l.padding?" ":l.padding;e.line>f||a.operation(function(){if(0!=l.fullLines){var n=i.test(a.getLine(f));a.replaceRange(h+u,o(f)),a.replaceRange(c+h,o(e.line,0));var r=l.blockCommentLead||s.blockCommentLead;if(null!=r)for(var d=e.line+1;f>=d;++d)(d!=f||n)&&a.replaceRange(r+h,o(d,0))}else a.replaceRange(u,t),a.replaceRange(c,e)})}}else(l.lineComment||s.lineComment)&&0!=l.fullLines&&a.lineComment(e,t,l)}),e.defineExtension("uncomment",function(e,t,l){l||(l=r);var a,s=this,c=n(s,e),u=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,s.lastLine()),f=Math.min(e.line,u),h=l.lineComment||c.lineComment,d=[],p=null==l.padding?" ":l.padding;e:if(h){for(var m=f;u>=m;++m){var g=s.getLine(m),v=g.indexOf(h);if(v>-1&&!/comment/.test(s.getTokenTypeAt(o(m,v+1)))&&(v=-1),-1==v&&i.test(g))break e;if(v>-1&&i.test(g.slice(0,v)))break e;d.push(g)}if(s.operation(function(){for(var e=f;u>=e;++e){var t=d[e-f],n=t.indexOf(h),r=n+h.length;0>n||(t.slice(r,r+p.length)==p&&(r+=p.length),a=!0,s.replaceRange("",o(e,n),o(e,r)))}}),a)return!0}var y=l.blockCommentStart||c.blockCommentStart,x=l.blockCommentEnd||c.blockCommentEnd;if(!y||!x)return!1;var b=l.blockCommentLead||c.blockCommentLead,C=s.getLine(f),w=C.indexOf(y);if(-1==w)return!1;var k=u==f?C:s.getLine(u),S=k.indexOf(x,u==f?w+y.length:0),L=o(f,w+1),M=o(u,S+1);if(-1==S||!/comment/.test(s.getTokenTypeAt(L))||!/comment/.test(s.getTokenTypeAt(M))||s.getRange(L,M,"\n").indexOf(x)>-1)return!1;var T=C.lastIndexOf(y,e.ch),A=-1==T?-1:C.slice(0,e.ch).indexOf(x,T+y.length);if(-1!=T&&-1!=A&&A+x.length!=e.ch)return!1;A=k.indexOf(x,t.ch);var O=k.slice(t.ch).lastIndexOf(y,A-t.ch);return T=-1==A||-1==O?-1:t.ch+O,(-1==A||-1==T||T==t.ch)&&(s.operation(function(){s.replaceRange("",o(u,S-(p&&k.slice(S-p.length,S)==p?p.length:0)),o(u,S+x.length));var e=w+y.length;if(p&&C.slice(e,e+p.length)==p&&(e+=p.length),s.replaceRange("",o(f,w),o(f,e)),b)for(var t=f+1;u>=t;++t){var n=s.getLine(t),r=n.indexOf(b);if(-1!=r&&!i.test(n.slice(0,r))){var l=r+b.length;p&&n.slice(l,l+p.length)==p&&(l+=p.length),s.replaceRange("",o(t,r),o(t,l))}}}),!0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var r,i=t.listSelections(),o=[],l=0;l<i.length;l++){var a=i[l].head;if(!/\bcomment\b/.test(t.getTokenTypeAt(a)))return e.Pass;var s=t.getModeAt(a);if(r){if(r!=s)return e.Pass}else r=s;var c=null;if(r.blockCommentStart&&r.blockCommentContinue){var u,f,h=(f=t.getLine(a.line).slice(0,a.ch)).lastIndexOf(r.blockCommentEnd);if(-1!=h&&h==a.ch-r.blockCommentEnd.length);else if((u=f.lastIndexOf(r.blockCommentStart))>-1&&u>h){if(c=f.slice(0,u),/\S/.test(c)){c="";for(var d=0;u>d;++d)c+=" "}}else(u=f.indexOf(r.blockCommentContinue))>-1&&!/\S/.test(f.slice(0,u))&&(c=f.slice(0,u));null!=c&&(c+=r.blockCommentContinue)}if(null==c&&r.lineComment&&n(t))(u=(f=t.getLine(a.line)).indexOf(r.lineComment))>-1&&(c=f.slice(0,u),/\S/.test(c)?c=null:c+=r.lineComment+f.slice(u+r.lineComment.length).match(/^\s*/)[0]);if(null==c)return e.Pass;o[l]="\n"+c}t.operation(function(){for(var e=i.length-1;e>=0;e--)t.replaceRange(o[e],i[e].from(),i[e].to(),"+insert")})}function n(e){var t=e.getOption("continueComments");return!t||"object"!=typeof t||!1!==t.continueLineComment}e.defineOption("continueComments",null,function(n,r,i){if(i&&i!=e.Init&&n.removeKeyMap("continueComment"),r){var o="Enter";"string"==typeof r?o=r:"object"==typeof r&&r.key&&(o=r.key);var l={name:"continueComment"};l[o]=t,n.addKeyMap(l)}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.className="CodeMirror-placeholder";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),i=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,o,l){var a=l&&l!=e.Init;if(o&&!a)n.on("blur",r),n.on("change",i),n.on("swapDoc",i),i(n);else if(!o&&a){n.off("blur",r),n.off("change",i),n.off("swapDoc",i),t(n);var s=n.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&r(n)})}),
// From https://code.google.com/p/google-diff-match-patch/ , licensed under the Apache License 2.0
function(){function e(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}e.prototype.diff_main=function(e,t,n,r){if(void 0===r&&(r=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout),null==e||null==t)throw Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===n&&(n=!0);var i=n,o=this.diff_commonPrefix(e,t);n=e.substring(0,o),e=e.substring(o),t=t.substring(o);o=this.diff_commonSuffix(e,t);var l=e.substring(e.length-o);return e=e.substring(0,e.length-o),t=t.substring(0,t.length-o),e=this.diff_compute_(e,t,i,r),n&&e.unshift([0,n]),l&&e.push([0,l]),this.diff_cleanupMerge(e),e},e.prototype.diff_compute_=function(e,t,n,r){if(!e)return[[1,t]];if(!t)return[[-1,e]];var i=e.length>t.length?e:t,o=e.length>t.length?t:e,l=i.indexOf(o);return-1!=l?(n=[[1,i.substring(0,l)],[0,o],[1,i.substring(l+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=-1),n):1==o.length?[[-1,e],[1,t]]:(i=this.diff_halfMatch_(e,t))?(o=i[0],e=i[1],l=i[2],t=i[3],i=i[4],o=this.diff_main(o,l,n,r),n=this.diff_main(e,t,n,r),o.concat([[0,i]],n)):n&&100<e.length&&100<t.length?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},e.prototype.diff_lineMode_=function(e,t,n){var r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2,r=r.lineArray,e=this.diff_main(e,t,!1,n),this.diff_charsToLines_(e,r),this.diff_cleanupSemantic(e),e.push([0,""]);for(var i=r=t=0,o="",l="";t<e.length;){switch(e[t][0]){case 1:i++,l+=e[t][1];break;case-1:r++,o+=e[t][1];break;case 0:if(1<=r&&1<=i){for(e.splice(t-r-i,r+i),t=t-r-i,i=(r=this.diff_main(o,l,!1,n)).length-1;0<=i;i--)e.splice(t,0,r[i]);t+=r.length}r=i=0,l=o=""}t++}return e.pop(),e},e.prototype.diff_bisect_=function(e,t,n){for(var r=e.length,i=t.length,o=Math.ceil((r+i)/2),l=o,a=2*o,s=Array(a),c=Array(a),u=0;u<a;u++)s[u]=-1,c[u]=-1;s[l+1]=0,c[l+1]=0;for(var f=0!=(u=r-i)%2,h=0,d=0,p=0,m=0,g=0;g<o&&!((new Date).getTime()>n);g++){for(var v=-g+h;v<=g-d;v+=2){for(var y,x=l+v,b=(y=v==-g||v!=g&&s[x-1]<s[x+1]?s[x+1]:s[x-1]+1)-v;y<r&&b<i&&e.charAt(y)==t.charAt(b);)y++,b++;if(s[x]=y,y>r)d+=2;else if(b>i)h+=2;else if(f&&(0<=(x=l+u-v)&&x<a&&-1!=c[x])){var C=r-c[x];if(y>=C)return this.diff_bisectSplit_(e,t,y,b,n)}}for(v=-g+p;v<=g-m;v+=2){for(x=l+v,y=(C=v==-g||v!=g&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-v;C<r&&y<i&&e.charAt(r-C-1)==t.charAt(i-y-1);)C++,y++;if(c[x]=C,C>r)m+=2;else if(y>i)p+=2;else if(!f&&(0<=(x=l+u-v)&&x<a&&-1!=s[x]&&(b=l+(y=s[x])-x,y>=(C=r-C))))return this.diff_bisectSplit_(e,t,y,b,n)}}return[[-1,e],[1,t]]},e.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),l=t.substring(0,r);return e=e.substring(n),t=t.substring(r),o=this.diff_main(o,l,!1,i),i=this.diff_main(e,t,!1,i),o.concat(i)},e.prototype.diff_linesToChars_=function(e,t){function n(e){for(var t="",n=0,o=-1,l=r.length;o<e.length-1;){-1==(o=e.indexOf("\n",n))&&(o=e.length-1);var a=e.substring(n,o+1);n=o+1;(i.hasOwnProperty?i.hasOwnProperty(a):void 0!==i[a])?t+=String.fromCharCode(i[a]):(t+=String.fromCharCode(l),i[a]=l,r[l++]=a)}return t}var r=[],i={};return r[0]="",{chars1:n(e),chars2:n(t),lineArray:r}},e.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},e.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},e.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i},e.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;if(n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n)),n=Math.min(n,r),e==t)return n;r=0;for(var i=1;;){var o=e.substring(n-i);if(-1==(o=t.indexOf(o)))return r;i+=o,0!=o&&e.substring(n-i)!=t.substring(0,i)||(r=i,i++)}},e.prototype.diff_halfMatch_=function(e,t){function n(e,t,n){for(var r,i,o,l,s=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(s,c+1));){var f=a.diff_commonPrefix(e.substring(n),t.substring(c)),h=a.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<h+f&&(u=t.substring(c-h,c)+t.substring(c,c+f),r=e.substring(0,n-h),i=e.substring(n+f),o=t.substring(0,c-h),l=t.substring(c+f))}return 2*u.length>=e.length?[r,i,o,l,u]:null}if(0>=this.Diff_Timeout)return null;var r=e.length>t.length?e:t,i=e.length>t.length?t:e;if(4>r.length||2*i.length<r.length)return null;var o,l,a=this,s=n(r,i,Math.ceil(r.length/4));r=n(r,i,Math.ceil(r.length/2));return s||r?(o=r?s&&s[4].length>r[4].length?s:r:s,e.length>t.length?(s=o[0],r=o[1],i=o[2],l=o[3]):(i=o[0],l=o[1],s=o[2],r=o[3]),[s,r,i,l,o=o[4]]):null},e.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,i=null,o=0,l=0,a=0,s=0,c=0;o<e.length;)0==e[o][0]?(n[r++]=o,l=s,a=c,c=s=0,i=e[o][1]):(1==e[o][0]?s+=e[o][1].length:c+=e[o][1].length,i&&i.length<=Math.max(l,a)&&i.length<=Math.max(s,c)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,o=0<--r?n[r-1]:-1,c=s=a=l=0,i=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;)-1==e[o-1][0]&&1==e[o][0]&&(t=e[o-1][1],n=e[o][1],(r=this.diff_commonOverlap_(t,n))>=(i=this.diff_commonOverlap_(n,t))?(r>=t.length/2||r>=n.length/2)&&(e.splice(o,0,[0,n.substring(0,r)]),e[o-1][1]=t.substring(0,t.length-r),e[o+1][1]=n.substring(r),o++):(i>=t.length/2||i>=n.length/2)&&(e.splice(o,0,[0,t.substring(0,i)]),e[o-1][0]=1,e[o-1][1]=n.substring(0,n.length-i),e[o+1][0]=-1,e[o+1][1]=t.substring(i),o++),o++),o++},e.prototype.diff_cleanupSemanticLossless=function(t){function n(t,n){if(!t||!n)return 6;var r=t.charAt(t.length-1),i=n.charAt(0),o=r.match(e.nonAlphaNumericRegex_),l=i.match(e.nonAlphaNumericRegex_),a=o&&r.match(e.whitespaceRegex_),s=l&&i.match(e.whitespaceRegex_),c=(r=a&&r.match(e.linebreakRegex_),i=s&&i.match(e.linebreakRegex_),r&&t.match(e.blanklineEndRegex_)),u=i&&n.match(e.blanklineStartRegex_);return c||u?5:r||i?4:o&&!a&&s?3:a||s?2:o||l?1:0}for(var r=1;r<t.length-1;){if(0==t[r-1][0]&&0==t[r+1][0]){var i=t[r-1][1],o=t[r][1],l=t[r+1][1];if(s=this.diff_commonSuffix(i,o)){var a=o.substring(o.length-s);i=i.substring(0,i.length-s),o=a+o.substring(0,o.length-s),l=a+l}for(var s=i,c=(a=o,l),u=n(i,o)+n(o,l);o.charAt(0)===l.charAt(0);){i=i+o.charAt(0),o=o.substring(1)+l.charAt(0),l=l.substring(1);var f=n(i,o)+n(o,l);f>=u&&(u=f,s=i,a=o,c=l)}t[r-1][1]!=s&&(s?t[r-1][1]=s:(t.splice(r-1,1),r--),t[r][1]=a,c?t[r+1][1]=c:(t.splice(r+1,1),r--))}r++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,i=null,o=0,l=!1,a=!1,s=!1,c=!1;o<e.length;)0==e[o][0]?(e[o][1].length<this.Diff_EditCost&&(s||c)?(n[r++]=o,l=s,a=c,i=e[o][1]):(r=0,i=null),s=c=!1):(-1==e[o][0]?c=!0:s=!0,i&&(l&&a&&s&&c||i.length<this.Diff_EditCost/2&&3==l+a+s+c)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,i=null,l&&a?(s=c=!0,r=0):(o=0<--r?n[r-1]:-1,s=c=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)},e.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,i=0,o="",l="";n<e.length;)switch(e[n][0]){case 1:i++,l+=e[n][1],n++;break;case-1:r++,o+=e[n][1],n++;break;case 0:1<r+i?(0!==r&&0!==i&&(0!==(t=this.diff_commonPrefix(l,o))&&(0<n-r-i&&0==e[n-r-i-1][0]?e[n-r-i-1][1]+=l.substring(0,t):(e.splice(0,0,[0,l.substring(0,t)]),n++),l=l.substring(t),o=o.substring(t)),0!==(t=this.diff_commonSuffix(l,o))&&(e[n][1]=l.substring(l.length-t)+e[n][1],l=l.substring(0,l.length-t),o=o.substring(0,o.length-t))),0===r?e.splice(n-i,r+i,[1,l]):0===i?e.splice(n-r,r+i,[-1,o]):e.splice(n-r-i,r+i,[-1,o],[1,l]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=i=0,l=o=""}for(""===e[e.length-1][1]&&e.pop(),r=!1,n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),r=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),r=!0)),n++;r&&this.diff_cleanupMerge(e)},e.prototype.diff_xIndex=function(e,t){var n,r=0,i=0,o=0,l=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),-1!==e[n][0]&&(i+=e[n][1].length),!(r>t));n++)o=r,l=i;return e.length!=n&&-1===e[n][0]?l:l+(t-o)},e.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,i=/>/g,o=/\n/g,l=0;l<e.length;l++){var a=e[l][0],s=(s=e[l][1]).replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(o,"&para;<br>");switch(a){case 1:t[l]='<ins style="background:#e6ffe6;">'+s+"</ins>";break;case-1:t[l]='<del style="background:#ffe6e6;">'+s+"</del>";break;case 0:t[l]="<span>"+s+"</span>"}}return t.join("")},e.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},e.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},e.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var o=e[i][0],l=e[i][1];switch(o){case 1:n+=l.length;break;case-1:r+=l.length;break;case 0:t+=Math.max(n,r),r=n=0}}return t+Math.max(n,r)},e.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},e.prototype.diff_fromDelta=function(e,t){for(var n=[],r=0,i=0,o=t.split(/\t/g),l=0;l<o.length;l++){var a=o[l].substring(1);switch(o[l].charAt(0)){case"+":try{n[r++]=[1,decodeURI(a)]}catch(e){throw Error("Illegal escape in diff_fromDelta: "+a)}break;case"-":case"=":var s=parseInt(a,10);if(isNaN(s)||0>s)throw Error("Invalid number in diff_fromDelta: "+a);a=e.substring(i,i+=s),"="==o[l].charAt(0)?n[r++]=[0,a]:n[r++]=[-1,a];break;default:if(o[l])throw Error("Invalid diff operation in diff_fromDelta: "+o[l])}}if(i!=e.length)throw Error("Delta length ("+i+") does not equal source text length ("+e.length+").");return n},e.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},e.prototype.match_bitap_=function(e,t,n){function r(e,r){var i=e/t.length,l=Math.abs(n-r);return o.Match_Distance?i+l/o.Match_Distance:l?1:i}if(t.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),o=this,l=this.Match_Threshold;-1!=(f=e.indexOf(t,n))&&(l=Math.min(r(0,f),l),-1!=(f=e.lastIndexOf(t,n+t.length))&&(l=Math.min(r(0,f),l)));for(var a,s,c,u=1<<t.length-1,f=-1,h=t.length+e.length,d=0;d<t.length;d++){for(a=0,s=h;a<s;)r(d,n+s)<=l?a=s:h=s,s=Math.floor((h-a)/2+a);h=s,a=Math.max(1,n-s+1);var p=Math.min(n+s,e.length)+t.length;for((s=Array(p+2))[p+1]=(1<<d)-1;p>=a;p--){var m=i[e.charAt(p-1)];if(s[p]=0===d?(s[p+1]<<1|1)&m:(s[p+1]<<1|1)&m|(c[p+1]|c[p])<<1|1|c[p+1],s[p]&u&&(m=r(d,p-1))<=l){if(l=m,!((f=p-1)>n))break;a=Math.max(1,2*n-f)}}if(r(d+1,n)>l)break;c=s}return f},e.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},e.prototype.patch_addContext_=function(e,t){if(0!=t.length){for(var n=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,(n=t.substring(e.start2-r,e.start2))&&e.diffs.unshift([0,n]),(r=t.substring(e.start2+e.length1,e.start2+e.length1+r))&&e.diffs.push([0,r]),e.start1-=n.length,e.start2-=n.length,e.length1+=n.length+r.length,e.length2+=n.length+r.length}},e.prototype.patch_make=function(t,n,r){var i;if("string"==typeof t&&"string"==typeof n&&void 0===r)i=t,2<(n=this.diff_main(i,n,!0)).length&&(this.diff_cleanupSemantic(n),this.diff_cleanupEfficiency(n));else if(t&&"object"==typeof t&&void 0===n&&void 0===r)n=t,i=this.diff_text1(n);else if("string"==typeof t&&n&&"object"==typeof n&&void 0===r)i=t;else{if("string"!=typeof t||"string"!=typeof n||!r||"object"!=typeof r)throw Error("Unknown call format to patch_make.");i=t,n=r}if(0===n.length)return[];r=[],t=new e.patch_obj;for(var o=0,l=0,a=0,s=i,c=0;c<n.length;c++){var u=n[c][0],f=n[c][1];switch(!o&&0!==u&&(t.start1=l,t.start2=a),u){case 1:t.diffs[o++]=n[c],t.length2+=f.length,i=i.substring(0,a)+f+i.substring(a);break;case-1:t.length1+=f.length,t.diffs[o++]=n[c],i=i.substring(0,a)+i.substring(a+f.length);break;case 0:f.length<=2*this.Patch_Margin&&o&&n.length!=c+1?(t.diffs[o++]=n[c],t.length1+=f.length,t.length2+=f.length):f.length>=2*this.Patch_Margin&&o&&(this.patch_addContext_(t,s),r.push(t),t=new e.patch_obj,o=0,s=i,l=a)}1!==u&&(l+=f.length),-1!==u&&(a+=f.length)}return o&&(this.patch_addContext_(t,s),r.push(t)),r},e.prototype.patch_deepCopy=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=new e.patch_obj;o.diffs=[];for(var l=0;l<i.diffs.length;l++)o.diffs[l]=i.diffs[l].slice();o.start1=i.start1,o.start2=i.start2,o.length1=i.length1,o.length2=i.length2,n[r]=o}return n},e.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,i=[],o=0;o<e.length;o++){var l,a=e[o].start2+r,s=-1;if((u=this.diff_text1(e[o].diffs)).length>this.Match_MaxBits?-1!=(l=this.match_main(t,u.substring(0,this.Match_MaxBits),a))&&(-1==(s=this.match_main(t,u.substring(u.length-this.Match_MaxBits),a+u.length-this.Match_MaxBits))||l>=s)&&(l=-1):l=this.match_main(t,u,a),-1==l)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=l-a,u==(a=-1==s?t.substring(l,l+u.length):t.substring(l,s+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[o].diffs)+t.substring(l+u.length);else if(a=this.diff_main(u,a,!1),u.length>this.Match_MaxBits&&this.diff_levenshtein(a)/u.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(a);var c,u=0;for(s=0;s<e[o].diffs.length;s++){var f=e[o].diffs[s];0!==f[0]&&(c=this.diff_xIndex(a,u)),1===f[0]?t=t.substring(0,l+c)+f[1]+t.substring(l+c):-1===f[0]&&(t=t.substring(0,l+c)+t.substring(l+this.diff_xIndex(a,u+f[1].length))),-1!==f[0]&&(u+=f[1].length)}}}return[t=t.substring(n.length,t.length-n.length),i]},e.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",r=1;r<=t;r++)n+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var i=(r=e[0]).diffs;if(0==i.length||0!=i[0][0])i.unshift([0,n]),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>i[0][1].length){var o=t-i[0][1].length;i[0][1]=n.substring(i[0][1].length)+i[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}return 0==(i=(r=e[e.length-1]).diffs).length||0!=i[i.length-1][0]?(i.push([0,n]),r.length1+=t,r.length2+=t):t>i[i.length-1][1].length&&(o=t-i[i.length-1][1].length,i[i.length-1][1]+=n.substring(0,o),r.length1+=o,r.length2+=o),n},e.prototype.patch_splitMax=function(t){for(var n=this.Match_MaxBits,r=0;r<t.length;r++)if(!(t[r].length1<=n)){var i=t[r];t.splice(r--,1);for(var o=i.start1,l=i.start2,a="";0!==i.diffs.length;){var s=new e.patch_obj,c=!0;for(s.start1=o-a.length,s.start2=l-a.length,""!==a&&(s.length1=s.length2=a.length,s.diffs.push([0,a]));0!==i.diffs.length&&s.length1<n-this.Patch_Margin;){a=i.diffs[0][0];var u=i.diffs[0][1];1===a?(s.length2+=u.length,l+=u.length,s.diffs.push(i.diffs.shift()),c=!1):-1===a&&1==s.diffs.length&&0==s.diffs[0][0]&&u.length>2*n?(s.length1+=u.length,o+=u.length,c=!1,s.diffs.push([a,u]),i.diffs.shift()):(u=u.substring(0,n-s.length1-this.Patch_Margin),s.length1+=u.length,o+=u.length,0===a?(s.length2+=u.length,l+=u.length):c=!1,s.diffs.push([a,u]),u==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(u.length))}a=(a=this.diff_text2(s.diffs)).substring(a.length-this.Patch_Margin),""!==(u=this.diff_text1(i.diffs).substring(0,this.Patch_Margin))&&(s.length1+=u.length,s.length2+=u.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=u:s.diffs.push([0,u])),c||t.splice(++r,0,s)}}},e.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},e.prototype.patch_fromText=function(t){var n=[];if(!t)return n;t=t.split("\n");for(var r=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<t.length;){var o=t[r].match(i);if(!o)throw Error("Invalid patch string: "+t[r]);var l=new e.patch_obj;for(n.push(l),l.start1=parseInt(o[1],10),""===o[2]?(l.start1--,l.length1=1):"0"==o[2]?l.length1=0:(l.start1--,l.length1=parseInt(o[2],10)),l.start2=parseInt(o[3],10),""===o[4]?(l.start2--,l.length2=1):"0"==o[4]?l.length2=0:(l.start2--,l.length2=parseInt(o[4],10)),r++;r<t.length;){o=t[r].charAt(0);try{var a=decodeURI(t[r].substring(1))}catch(e){throw Error("Illegal escape in patch_fromText: "+a)}if("-"==o)l.diffs.push([-1,a]);else if("+"==o)l.diffs.push([1,a]);else if(" "==o)l.diffs.push([0,a]);else{if("@"==o)break;if(""!==o)throw Error('Invalid patch mode "'+o+'" in: '+a)}r++}}return n},e.patch_obj=function(){this.diffs=[],this.start2=this.start1=null,this.length2=this.length1=0},e.patch_obj.prototype.toString=function(){var e,t,n;for(e=["@@ -"+(e=0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(t=0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],t=0;t<this.diffs.length;t++){switch(this.diffs[t][0]){case 1:n="+";break;case-1:n="-";break;case 0:n=" "}e[t+1]=n+encodeURI(this.diffs[t][1])+"\n"}return e.join("").replace(/%20/g," ")},this.diff_match_patch=e,this.DIFF_DELETE=-1,this.DIFF_INSERT=1,this.DIFF_EQUAL=0}(),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","diff_match_patch"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.mv=e,this.type=t,this.classes="left"==t?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}function n(t){t.diffOutOfDate&&(t.diff=k(t.orig.getValue(),t.edit.getValue(),t.mv.options.ignoreWhitespace),t.chunks=S(t.diff),t.diffOutOfDate=!1,e.signal(t.edit,"updateDiff",t.diff))}function r(t){function r(e){G=!0,m=!1,"full"==e&&(t.svg&&D(t.svg),t.copyButtons&&D(t.copyButtons),s(t.edit,d.marked,t.classes),s(t.orig,p.marked,t.classes),d.from=d.to=p.from=p.to=0),n(t),t.showDifferences&&(c(t.edit,t.diff,d,DIFF_INSERT,t.classes),c(t.orig,t.diff,p,DIFF_DELETE,t.classes)),"align"==t.mv.options.connect&&g(t),h(t),null!=t.needsScrollSync&&i(t,t.needsScrollSync),G=!1}function o(e){G||(t.dealigned=!0,l(e))}function l(e){G||m||(clearTimeout(f),!0===e&&(m=!0),f=setTimeout(r,!0===e?20:250))}function a(e,n){t.diffOutOfDate||(t.diffOutOfDate=!0,d.from=d.to=p.from=p.to=0),o(n.text.length-1!=n.to.line-n.from.line)}function u(){t.diffOutOfDate=!0,t.dealigned=!0,r("full")}var f,d={from:0,to:0,marked:[]},p={from:0,to:0,marked:[]},m=!1;return t.edit.on("change",a),t.orig.on("change",a),t.edit.on("swapDoc",u),t.orig.on("swapDoc",u),"align"==t.mv.options.connect&&(e.on(t.edit.state.trackAlignable,"realign",o),e.on(t.orig.state.trackAlignable,"realign",o)),t.edit.on("viewportChange",function(){l(!1)}),t.orig.on("viewportChange",function(){l(!1)}),r(),r}function i(e,t){if(e.diffOutOfDate)return e.lockScroll&&null==e.needsScrollSync&&(e.needsScrollSync=t),!1;if(e.needsScrollSync=null,!e.lockScroll)return!0;var n,r,i=+new Date;if(t?(n=e.edit,r=e.orig):(n=e.orig,r=e.edit),n.state.scrollSetBy==e&&(n.state.scrollSetAt||0)+250>i)return!1;var l=n.getScrollInfo();if("align"==e.mv.options.connect)g=l.top;else{var a,s,c=.5*l.clientHeight,u=l.top+c,f=n.lineAtHeight(u,"local"),h=function(e,t,n){for(var r,i,o,l,a=0;a<e.length;a++){var s=e[a],c=n?s.editFrom:s.origFrom,u=n?s.editTo:s.origTo;null==i&&(c>t?(i=s.editFrom,l=s.origFrom):u>t&&(i=s.editTo,l=s.origTo)),t>=u?(r=s.editTo,o=s.origTo):t>=c&&(r=s.editFrom,o=s.origFrom)}return{edit:{before:r,after:i},orig:{before:o,after:l}}}(e.chunks,f,t),d=o(n,t?h.edit:h.orig),p=o(r,t?h.orig:h.edit),m=(u-d.top)/(d.bot-d.top),g=p.top-c+m*(p.bot-p.top);if(g>l.top&&(s=l.top/c)<1)g=g*s+l.top*(1-s);else if((a=l.height-l.clientHeight-l.top)<c){var v=r.getScrollInfo();v.height-v.clientHeight-g>a&&(s=a/c)<1&&(g=g*s+(v.height-v.clientHeight-a)*(1-s))}}return r.scrollTo(l.left,g),r.state.scrollSetAt=i,r.state.scrollSetBy=e,!0}function o(e,t){var n=t.after;return null==n&&(n=e.lastLine()+1),{top:e.heightAtLine(t.before||0,"local"),bot:e.heightAtLine(n,"local")}}function l(e,t,n){e.lockScroll=t,t&&0!=n&&i(e,DIFF_INSERT)&&h(e),e.lockButton.innerHTML=t?"⇛⇚":"⇛&nbsp;&nbsp;⇚"}function a(e,t,n){for(var r=n.classLocation,i=0;i<r.length;i++)e.removeLineClass(t,r[i],n.chunk),e.removeLineClass(t,r[i],n.start),e.removeLineClass(t,r[i],n.end)}function s(t,n,r){for(var i=0;i<n.length;++i){var o=n[i];o instanceof e.TextMarker?o.clear():o.parent&&a(t,o,r)}n.length=0}function c(e,t,n,r,i){var o=e.getViewport();e.operation(function(){n.from==n.to||o.from-n.to>20||n.from-o.to>20?(s(e,n.marked,i),f(e,t,r,n.marked,o.from,o.to,i),n.from=o.from,n.to=o.to):(o.from<n.from&&(f(e,t,r,n.marked,o.from,n.from,i),n.from=o.from),o.to>n.to&&(f(e,t,r,n.marked,n.to,o.to,i),n.to=o.to))})}function u(e,t,n,r,i,o){for(var l=n.classLocation,a=e.getLineHandle(t),s=0;s<l.length;s++)r&&e.addLineClass(a,l[s],n.chunk),i&&e.addLineClass(a,l[s],n.start),o&&e.addLineClass(a,l[s],n.end);return a}function f(e,t,n,r,i,o,l){function a(t,n){for(var a=Math.max(i,t),s=Math.min(o,n),c=a;s>c;++c)r.push(u(e,c,l,!0,c==t,c==n-1));t==n&&a==n&&s==n&&(a?r.push(u(e,a-1,l,!1,!1,!0)):r.push(u(e,a,l,!1,!0,!1)))}for(var s=q(0,0),c=q(i,0),f=e.clipPos(q(o-1)),h=n==DIFF_DELETE?l.del:l.insert,d=0,p=!1,m=0;m<t.length;++m){var g=t[m],v=g[0],y=g[1];if(v==DIFF_EQUAL){var x=s.line+(M(t,m)?0:1);H(s,y);var b=s.line+(L(t,m)?1:0);b>x&&(p&&(a(d,x),p=!1),d=b)}else if(p=!0,v==n){var C=H(s,y,!0),w=R(c,s),k=I(f,C);_(w,k)||r.push(e.markText(w,k,{className:h})),s=C}}p&&a(d,s.line+1)}function h(e){if(e.showDifferences){if(e.svg){D(e.svg);var t=e.gap.offsetWidth;P(e.svg,"width",t,"height",e.gap.offsetHeight)}e.copyButtons&&D(e.copyButtons);for(var n=e.edit.getViewport(),r=e.orig.getViewport(),i=e.mv.wrap.getBoundingClientRect().top,o=i-e.edit.getScrollerElement().getBoundingClientRect().top+e.edit.getScrollInfo().top,l=i-e.orig.getScrollerElement().getBoundingClientRect().top+e.orig.getScrollInfo().top,a=0;a<e.chunks.length;a++){var s=e.chunks[a];s.editFrom<=n.to&&s.editTo>=n.from&&s.origFrom<=r.to&&s.origTo>=r.from&&x(e,s,l,o,t)}}}function d(e,t){for(var n=0,r=0,i=0;i<t.length;i++){var o=t[i];if(o.editTo>e&&o.editFrom<=e)return null;if(o.editFrom>e)break;n=o.editTo,r=o.origTo}return r+(e-n)}function p(e,t,n){for(var r=e.state.trackAlignable,i=e.firstLine(),o=0,l=[],a=0;;a++){for(var s=t[a],c=s?n?s.origFrom:s.editFrom:1e9;o<r.alignable.length;o+=2){var u=r.alignable[o]+1;if(!(i>=u)){if(!(c>=u))break;l.push(u)}}if(!s)break;l.push(i=n?s.origTo:s.editTo)}return l}function m(e,t,n,r){var i=0,o=0,l=0,a=0;e:for(;;i++){var s=e[i],c=t[o];if(!s&&null==c)break;for(var u=s?s[0]:1e9,f=null==c?1e9:c;l<n.length;){var h=n[l];if(h.origFrom<=f&&h.origTo>f){o++,i--;continue e}if(h.editTo>u){if(h.editFrom<=u)continue e;break}a+=h.origTo-h.origFrom-(h.editTo-h.editFrom),l++}if(u==f-a)s[r]=f,o++;else if(f-a>u)s[r]=u+a;else{var d=[f-a,null,null];d[r]=f,e.splice(i,0,d),o++}}}function g(e,t){if(e.dealigned||t){if(!e.orig.curOp)return e.orig.operation(function(){g(e,t)});e.dealigned=!1;var r=e.mv.left==e?e.mv.right:e.mv.left;r&&(n(r),r.dealigned=!1);for(var i=function(e,t){var n=p(e.edit,e.chunks,!1),r=[];if(t)for(var i=0,o=0;i<t.chunks.length;i++){for(var l=t.chunks[i].editTo;o<n.length&&n[o]<l;)o++;(o==n.length||n[o]!=l)&&n.splice(o++,0,l)}for(i=0;i<n.length;i++)r.push([n[i],null,null]);return m(r,p(e.orig,e.chunks,!0),e.chunks,1),t&&m(r,p(t.orig,t.chunks,!0),t.chunks,2),r}(e,r),o=e.mv.aligners,l=0;l<o.length;l++)o[l].clear();o.length=0;var a=[e.edit,e.orig],s=[];r&&a.push(r.orig);for(l=0;l<a.length;l++)s.push(a[l].getScrollInfo().top);for(var c=0;c<i.length;c++)v(a,i[c],o);for(l=0;l<a.length;l++)a[l].scrollTo(null,s[l])}}function v(e,t,n){for(var r=0,i=[],o=0;o<e.length;o++)if(null!=t[o]){var l=e[o].heightAtLine(t[o],"local");i[o]=l,r=Math.max(r,l)}for(o=0;o<e.length;o++)if(null!=t[o]){var a=r-i[o];a>1&&n.push(y(e[o],t[o],a))}}function y(e,t,n){var r=!0;t>e.lastLine()&&(t--,r=!1);var i=document.createElement("div");return i.className="CodeMirror-merge-spacer",i.style.height=n+"px",i.style.minWidth="1px",e.addLineWidget(t,i,{height:n,above:r,mergeSpacer:!0,handleMouseEvents:!0})}function x(e,t,n,r,i){var o="left"==e.type,l=e.orig.heightAtLine(t.origFrom,"local",!0)-n;if(e.svg){var a=l,s=e.edit.heightAtLine(t.editFrom,"local",!0)-r;if(o){var c=a;a=s,s=c}var u=e.orig.heightAtLine(t.origTo,"local",!0)-n,f=e.edit.heightAtLine(t.editTo,"local",!0)-r;if(o){c=u;u=f,f=c}var h=" C "+i/2+" "+s+" "+i/2+" "+a+" "+(i+2)+" "+a,d=" C "+i/2+" "+u+" "+i/2+" "+f+" -1 "+f;P(e.svg.appendChild(document.createElementNS(U,"path")),"d","M -1 "+s+h+" L "+(i+2)+" "+u+d+" z","class",e.classes.connect)}if(e.copyButtons){var p=e.copyButtons.appendChild(F("div","left"==e.type?"⇝":"⇜","CodeMirror-merge-copy")),m=e.mv.options.allowEditingOriginals;if(p.title=m?"Push to left":"Revert chunk",p.chunk=t,p.style.top=(t.origTo>t.origFrom?l:e.edit.heightAtLine(t.editFrom,"local")-r)+"px",m){var g=e.edit.heightAtLine(t.editFrom,"local")-r,v=e.copyButtons.appendChild(F("div","right"==e.type?"⇝":"⇜","CodeMirror-merge-copy-reverse"));v.title="Push to right",v.chunk={editFrom:t.origFrom,editTo:t.origTo,origFrom:t.editFrom,origTo:t.editTo},v.style.top=g+"px","right"==e.type?v.style.left="2px":v.style.right="2px"}}}function b(e,t,n,r){if(!e.diffOutOfDate){var i=r.origTo>n.lastLine()?q(r.origFrom-1):q(r.origFrom,0),o=q(r.origTo,0),l=r.editTo>t.lastLine()?q(r.editFrom-1):q(r.editFrom,0),a=q(r.editTo,0),s=e.mv.options.revertChunk;s?s(e.mv,n,i,o,t,l,a):t.replaceRange(n.getRange(i,o),l,a)}}function C(t){var n=t.lockButton=F("div",null,"CodeMirror-merge-scrolllock");n.title="Toggle locked scrolling";var r=F("div",[n],"CodeMirror-merge-scrolllock-wrap");e.on(n,"click",function(){l(t,!t.lockScroll)});var i=[r];if(!1!==t.mv.options.revertButtons&&(t.copyButtons=F("div",null,"CodeMirror-merge-copybuttons-"+t.type),e.on(t.copyButtons,"click",function(e){var n=e.target||e.srcElement;if(n.chunk)return"CodeMirror-merge-copy-reverse"==n.className?void b(t,t.orig,t.edit,n.chunk):void b(t,t.edit,t.orig,n.chunk)}),i.unshift(t.copyButtons)),"align"!=t.mv.options.connect){var o=document.createElementNS&&document.createElementNS(U,"svg");o&&!o.createSVGRect&&(o=null),t.svg=o,o&&i.push(o)}return t.gap=F("div",i,"CodeMirror-merge-gap")}function w(e){return"string"==typeof e?e:e.getValue()}function k(e,t,n){K||(K=new diff_match_patch);for(var r=K.diff_main(e,t),i=0;i<r.length;++i){var o=r[i];(n?/[^ \t]/.test(o[1]):o[1])?i&&r[i-1][0]==o[0]&&(r.splice(i--,1),r[i][1]+=o[1]):r.splice(i--,1)}return r}function S(e){for(var t=[],n=0,r=0,i=q(0,0),o=q(0,0),l=0;l<e.length;++l){var a=e[l],s=a[0];if(s==DIFF_EQUAL){var c=!M(e,l)||i.line<n||o.line<r?1:0,u=i.line+c,f=o.line+c;H(i,a[1],null,o);var h=L(e,l)?1:0,d=i.line+h,p=o.line+h;d>u&&(l&&t.push({origFrom:r,origTo:f,editFrom:n,editTo:u}),n=d,r=p)}else H(s==DIFF_INSERT?i:o,a[1])}return(n<=i.line||r<=o.line)&&t.push({origFrom:r,origTo:o.line+1,editFrom:n,editTo:i.line+1}),t}function L(e,t){if(t==e.length-1)return!0;var n=e[t+1][1];return!(1==n.length&&t<e.length-2||10!=n.charCodeAt(0))&&(t==e.length-2||((n=e[t+2][1]).length>1||t==e.length-3)&&10==n.charCodeAt(0))}function M(e,t){if(0==t)return!0;var n=e[t-1][1];return 10==n.charCodeAt(n.length-1)&&(1==t||10==(n=e[t-2][1]).charCodeAt(n.length-1))}function T(t,n,r){function i(){l.clear(),t.removeLineClass(n,"wrap","CodeMirror-merge-collapsed-line")}t.addLineClass(n,"wrap","CodeMirror-merge-collapsed-line");var o=document.createElement("span");o.className="CodeMirror-merge-collapsed-widget",o.title="Identical text collapsed. Click to expand.";var l=t.markText(q(n,0),q(r-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:o,clearOnEnter:!0});return l.explicitlyCleared&&i(),e.on(o,"click",i),l.on("clear",i),e.on(o,"click",i),{mark:l,clear:i}}function A(e,t){function n(){for(var e=0;e<r.length;e++)r[e].clear()}for(var r=[],i=0;i<t.length;i++){var o=t[i],l=T(o.cm,o.line,o.line+e);r.push(l),l.mark.on("clear",n)}return r[0].mark}function O(e,t,n,r){for(var i=0;i<e.chunks.length;i++)for(var o=e.chunks[i],l=o.editFrom-t;l<o.editTo+t;l++){var a=l+n;a>=0&&a<r.length&&(r[a]=!1)}}function N(e,t){"number"!=typeof t&&(t=2);for(var n=[],r=e.editor(),i=r.firstLine(),o=i,l=r.lastLine();l>=o;o++)n.push(!0);e.left&&O(e.left,t,i,n),e.right&&O(e.right,t,i,n);for(var a=0;a<n.length;a++)if(n[a]){for(var s=a+i,c=1;a<n.length-1&&n[a+1];a++,c++);if(c>t){var u=[{line:s,cm:r}];e.left&&u.push({line:d(s,e.left.chunks),cm:e.left.orig}),e.right&&u.push({line:d(s,e.right.chunks),cm:e.right.orig});var f=A(c,u);e.options.onCollapse&&e.options.onCollapse(e,s,c,f)}}}function F(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild)}function P(e){for(var t=1;t<arguments.length;t+=2)e.setAttribute(arguments[t],arguments[t+1])}function E(e,t){for(var n in t||(t={}),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(e,t,n,r){for(var i=n?q(e.line,e.ch):e,o=0;;){var l=t.indexOf("\n",o);if(-1==l)break;++i.line,r&&++r.line,o=l+1}return i.ch=(o?0:i.ch)+(t.length-o),r&&(r.ch=(o?0:r.ch)+(t.length-o)),i}function W(e){this.cm=e,this.alignable=[],this.height=e.doc.height;var t=this;e.on("markerAdded",function(e,n){if(n.collapsed){var r=n.find(1);null!=r&&t.set(r.line,Y)}}),e.on("markerCleared",function(e,n,r,i){null!=i&&n.collapsed&&t.check(i,Y,t.hasMarker)}),e.on("markerChanged",this.signal.bind(this)),e.on("lineWidgetAdded",function(e,n,r){n.mergeSpacer||(n.above?t.set(r-1,X):t.set(r,$))}),e.on("lineWidgetCleared",function(e,n,r){n.mergeSpacer||(n.above?t.check(r-1,X,t.hasWidgetBelow):t.check(r,$,t.hasWidget))}),e.on("lineWidgetChanged",this.signal.bind(this)),e.on("change",function(e,n){var r=n.from.line,i=n.to.line-n.from.line,o=n.text.length-1,l=r+o;(i||o)&&t.map(r,i,o),t.check(l,Y,t.hasMarker),(i||o)&&t.check(n.from.line,Y,t.hasMarker)}),e.on("viewportChange",function(){t.cm.doc.height!=t.height&&t.signal()})}function I(e,t){return(e.line-t.line||e.ch-t.ch)<0?e:t}function R(e,t){return(e.line-t.line||e.ch-t.ch)>0?e:t}function _(e,t){return e.line==t.line&&e.ch==t.ch}function B(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r],o=(n?i.origTo:i.editTo)-1;if(t>o)return o}}function j(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],o=n?i.origFrom:i.editFrom;if(o>t)return o}}function z(t,r){var i=null,o=t.state.diffViews,l=t.getCursor().line;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=t==s.orig;n(s);var u=0>r?B(s.chunks,l,c):j(s.chunks,l,c);null==u||null!=i&&!(0>r?u>i:i>u)||(i=u)}return null==i?e.Pass:void t.setCursor(i,0)}var q=e.Pos,U="http://www.w3.org/2000/svg";t.prototype={constructor:t,init:function(t,n,r){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=e(t,E({value:n,readOnly:!this.mv.options.allowEditingOriginals},E(r))),"align"==this.mv.options.connect&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new W(this.edit)),this.orig.state.trackAlignable=new W(this.orig)),this.orig.state.diffViews=[this];var i=r.chunkClassLocation||"background";"[object Array]"!=Object.prototype.toString.call(i)&&(i=[i]),this.classes.classLocation=i,this.diff=k(w(n),w(r.value),this.mv.options.ignoreWhitespace),this.chunks=S(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=!1!==r.showDifferences},registerEvents:function(e){this.forceUpdate=r(this),l(this,!0,!1),function(e,t){e.edit.on("scroll",function(){i(e,!0)&&h(e)}),e.orig.on("scroll",function(){i(e,!1)&&h(e),t&&i(t,!0)&&h(t)})}(this,e)},setShowDifferences:function(e){(e=!1!==e)!=this.showDifferences&&(this.showDifferences=e,this.forceUpdate("full"))}};var G=!1,V=e.MergeView=function(n,r){if(!(this instanceof V))return new V(n,r);this.options=r;var i=r.origLeft,o=null==r.origRight?r.orig:r.origRight,l=null!=i,a=null!=o,s=1+(l?1:0)+(a?1:0),c=[],u=this.left=null,f=this.right=null,d=this;if(l){u=this.left=new t(this,"left");var p=F("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");c.push(p),c.push(C(u))}var m=F("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(c.push(m),a){f=this.right=new t(this,"right"),c.push(C(f));var v=F("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");c.push(v)}(a?v:m).className+=" CodeMirror-merge-pane-rightmost",c.push(F("div",null,null,"height: 0; clear: both;"));var y=this.wrap=n.appendChild(F("div",c,"CodeMirror-merge CodeMirror-merge-"+s+"pane"));this.edit=e(m,E(r)),u&&u.init(p,i,r),f&&f.init(v,o,r),r.collapseIdentical&&this.editor().operation(function(){N(d,r.collapseIdentical)}),"align"==r.connect&&(this.aligners=[],g(this.left||this.right,!0)),u&&u.registerEvents(f),f&&f.registerEvents(u);var x=function(){u&&h(u),f&&h(f)};e.on(window,"resize",x);var b=setInterval(function(){for(var t=y.parentNode;t&&t!=document.body;t=t.parentNode);t||(clearInterval(b),e.off(window,"resize",x))},5e3)};V.prototype={constructor:V,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(e){this.right&&this.right.setShowDifferences(e),this.left&&this.left.setShowDifferences(e)},rightChunks:function(){return this.right?(n(this.right),this.right.chunks):void 0},leftChunks:function(){return this.left?(n(this.left),this.left.chunks):void 0}};var K,$=1,X=2,Y=4;W.prototype={signal:function(){e.signal(this,"realign"),this.height=this.cm.doc.height},set:function(e,t){for(var n=-1;n<this.alignable.length;n+=2){var r=this.alignable[n]-e;if(0==r){if((this.alignable[n+1]&t)==t)return;return this.alignable[n+1]|=t,void this.signal()}if(r>0)break}this.signal(),this.alignable.splice(n,0,e,t)},find:function(e){for(var t=0;t<this.alignable.length;t+=2)if(this.alignable[t]==e)return t;return-1},check:function(e,t,n){var r=this.find(e);if(-1!=r&&this.alignable[r+1]&t&&!n.call(this,e)){this.signal();var i=this.alignable[r+1]&~t;i?this.alignable[r+1]=i:this.alignable.splice(r,2)}},hasMarker:function(e){var t=this.cm.getLineHandle(e);if(t.markedSpans)for(var n=0;n<t.markedSpans.length;n++)if(t.markedSpans[n].mark.collapsed&&null!=t.markedSpans[n].to)return!0;return!1},hasWidget:function(e){var t=this.cm.getLineHandle(e);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(!t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},hasWidgetBelow:function(e){if(e==this.cm.lastLine())return!1;var t=this.cm.getLineHandle(e+1);if(t.widgets)for(var n=0;n<t.widgets.length;n++)if(t.widgets[n].above&&!t.widgets[n].mergeSpacer)return!0;return!1},map:function(e,t,n){for(var r=n-t,i=e+t,o=-1,l=-1,a=0;a<this.alignable.length;a+=2){var s=this.alignable[a];s==e&&this.alignable[a+1]&X&&(o=a),s==i&&this.alignable[a+1]&X&&(l=a),e>=s||(i>s?this.alignable.splice(a--,2):this.alignable[a]+=r)}if(o>-1){var c=this.alignable[o+1];c==X?this.alignable.splice(o,2):this.alignable[o+1]=c&~X}l>-1&&n&&this.set(e+n,X)}},e.commands.goNextDiff=function(e){return z(e,1)},e.commands.goPrevDiff=function(e){return z(e,-1)}}),
// Distributed under an MIT license: https://codemirror.net/LICENSE
function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror")):"function"==typeof define&&define.amd?define(["../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["cgi","pl","pm"]},{name:"PHP",mimes:["application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}),
// Distributed under an MIT license: http://codemirror.net/LICENSE
function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),"cjs"):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],function(t){e(t,"amd")}):e(CodeMirror,"plain")}(function(e,t){e.modeURL||(e.modeURL="../mode/%N/%N.js");var n={};function r(t,n){var r;if(e.modes[t]&&(r=e.modes[t].dependencies),!r)return n();for(var i=[],o=0;o<r.length;++o)e.modes.hasOwnProperty(r[o])||i.push(r[o]);if(!i.length)return n();var l=function(e,t){var n=t;return function(){0==--n&&e()}}(n,i.length);for(o=0;o<i.length;++o)e.requireMode(i[o],l)}e.requireMode=function(i,o){if("string"!=typeof i&&(i=i.name),e.modes.hasOwnProperty(i))return r(i,o);if(n.hasOwnProperty(i))return n[i].push(o);var l=e.modeURL.replace(/%N/g,i);if("plain"==t){var a=document.createElement("script");a.src=l;var s=document.getElementsByTagName("script")[0],c=n[i]=[o];e.on(a,"load",function(){r(i,function(){for(var e=0;e<c.length;++e)c[e]()})}),s.parentNode.insertBefore(a,s)}else"cjs"==t?(require(l),o()):"amd"==t&&requirejs([l],o)},e.autoLoadMode=function(t,n){e.modes.hasOwnProperty(n)||e.requireMode(n,function(){t.setOption("mode",t.getOption("mode"))})}});!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.moment=a()}(this,function(){"use strict";var e,a;function t(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e){return void 0===e}function r(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,a){var t,s=[];for(t=0;t<e.length;++t)s.push(a(e[t],t));return s}function o(e,a){return Object.prototype.hasOwnProperty.call(e,a)}function m(e,a){for(var t in a)o(a,t)&&(e[t]=a[t]);return o(a,"toString")&&(e.toString=a.toString),o(a,"valueOf")&&(e.valueOf=a.valueOf),e}function u(e,a,t,s){return Sa(e,a,t,s,!0).utc()}function l(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function M(e){if(null==e._isValid){var t=l(e),s=a.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function h(e){var a=u(NaN);return null!=e?m(l(a),e):l(a).userInvalidated=!0,a}a=Array.prototype.some?Array.prototype.some:function(e){for(var a=Object(this),t=a.length>>>0,s=0;s<t;s++)if(s in a&&e.call(this,a[s],s,a))return!0;return!1};var L=t.momentProperties=[];function c(e,a){var t,s,n;if(d(a._isAMomentObject)||(e._isAMomentObject=a._isAMomentObject),d(a._i)||(e._i=a._i),d(a._f)||(e._f=a._f),d(a._l)||(e._l=a._l),d(a._strict)||(e._strict=a._strict),d(a._tzm)||(e._tzm=a._tzm),d(a._isUTC)||(e._isUTC=a._isUTC),d(a._offset)||(e._offset=a._offset),d(a._pf)||(e._pf=l(a)),d(a._locale)||(e._locale=a._locale),L.length>0)for(t=0;t<L.length;t++)d(n=a[s=L[t]])||(e[s]=n);return e}var Y=!1;function y(e){c(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Y&&(Y=!0,t.updateOffset(this),Y=!1)}function f(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var a=+e,t=0;return 0!==a&&isFinite(a)&&(t=p(a)),t}function D(e,a,t){var s,n=Math.min(e.length,a.length),d=Math.abs(e.length-a.length),r=0;for(s=0;s<n;s++)(t&&e[s]!==a[s]||!t&&k(e[s])!==k(a[s]))&&r++;return r+d}function T(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function g(e,a){var s=!0;return m(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),s){for(var n,d=[],r=0;r<arguments.length;r++){if(n="","object"==typeof arguments[r]){for(var _ in n+="\n["+r+"] ",arguments[0])n+=_+": "+arguments[0][_]+", ";n=n.slice(0,-2)}else n=arguments[r];d.push(n)}T(e+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack),s=!1}return a.apply(this,arguments)},a)}var w,v={};function S(e,a){null!=t.deprecationHandler&&t.deprecationHandler(e,a),v[e]||(T(a),v[e]=!0)}function H(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e,a){var t,s=m({},e);for(t in a)o(a,t)&&(n(e[t])&&n(a[t])?(s[t]={},m(s[t],e[t]),m(s[t],a[t])):null!=a[t]?s[t]=a[t]:delete s[t]);for(t in e)o(e,t)&&!o(a,t)&&n(e[t])&&(s[t]=m({},s[t]));return s}function j(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,w=Object.keys?Object.keys:function(e){var a,t=[];for(a in e)o(e,a)&&t.push(a);return t};var x={};function P(e,a){var t=e.toLowerCase();x[t]=x[t+"s"]=x[a]=e}function O(e){return"string"==typeof e?x[e]||x[e.toLowerCase()]:void 0}function W(e){var a,t,s={};for(t in e)o(e,t)&&(a=O(t))&&(s[a]=e[t]);return s}var E={};function A(e,a){E[e]=a}function F(e,a,t){var s=""+Math.abs(e),n=a-s.length;return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},R={};function I(e,a,t,s){var n=s;"string"==typeof s&&(n=function(){return this[s]()}),e&&(R[e]=n),a&&(R[a[0]]=function(){return F(n.apply(this,arguments),a[1],a[2])}),t&&(R[t]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function C(e,a){return e.isValid()?(a=G(a,e.localeData()),N[a]=N[a]||function(e){var a,t,s,n=e.match(z);for(a=0,t=n.length;a<t;a++)R[n[a]]?n[a]=R[n[a]]:n[a]=(s=n[a]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(a){var s,d="";for(s=0;s<t;s++)d+=H(n[s])?n[s].call(a,e):n[s];return d}}(a),N[a](e)):e.localeData().invalidDate()}function G(e,a){var t=5;function s(e){return a.longDateFormat(e)||e}for(J.lastIndex=0;t>=0&&J.test(e);)e=e.replace(J,s),J.lastIndex=0,t-=1;return e}var U=/\d/,V=/\d\d/,K=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,B=/\d\d?/,q=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,ee=/\d{1,4}/,ae=/[+-]?\d{1,6}/,te=/\d+/,se=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e={};function ie(e,a,t){_e[e]=H(a)?a:function(e,s){return e&&t?t:a}}function oe(e,a){return o(_e,e)?_e[e](a._strict,a._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,a,t,s,n){return a||t||s||n})))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ue={};function le(e,a){var t,s=a;for("string"==typeof e&&(e=[e]),r(a)&&(s=function(e,t){t[a]=k(e)}),t=0;t<e.length;t++)ue[e[t]]=s}function Me(e,a){le(e,function(e,t,s,n){s._w=s._w||{},a(e,s._w,s,n)})}function he(e,a,t){null!=a&&o(ue,e)&&ue[e](a,t._a,t,e)}var Le=0,ce=1,Ye=2,ye=3,fe=4,pe=5,ke=6,De=7,Te=8;function ge(e){return we(e)?366:365}function we(e){return e%4==0&&e%100!=0||e%400==0}I("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),P("year","y"),A("year",1),ie("Y",se),ie("YY",B,V),ie("YYYY",ee,Z),ie("YYYYY",ae,$),ie("YYYYYY",ae,$),le(["YYYYY","YYYYYY"],Le),le("YYYY",function(e,a){a[Le]=2===e.length?t.parseTwoDigitYear(e):k(e)}),le("YY",function(e,a){a[Le]=t.parseTwoDigitYear(e)}),le("Y",function(e,a){a[Le]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var ve,Se=He("FullYear",!0);function He(e,a){return function(s){return null!=s?(je(this,e,s),t.updateOffset(this,a),this):be(this,e)}}function be(e,a){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+a]():NaN}function je(e,a,t){e.isValid()&&!isNaN(t)&&("FullYear"===a&&we(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+a](t,e.month(),xe(t,e.month())):e._d["set"+(e._isUTC?"UTC":"")+a](t))}function xe(e,a){if(isNaN(e)||isNaN(a))return NaN;var t,s=(a%(t=12)+t)%t;return e+=(a-s)/12,1===s?we(e)?29:28:31-s%7%2}ve=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var a;for(a=0;a<this.length;++a)if(this[a]===e)return a;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),A("month",8),ie("M",B),ie("MM",B,V),ie("MMM",function(e,a){return a.monthsShortRegex(e)}),ie("MMMM",function(e,a){return a.monthsRegex(e)}),le(["M","MM"],function(e,a){a[ce]=k(e)-1}),le(["MMM","MMMM"],function(e,a,t,s){var n=t._locale.monthsParse(e,s,t._strict);null!=n?a[ce]=n:l(t).invalidMonth=e});var Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var We="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ee(e,a){var t;if(!e.isValid())return e;if("string"==typeof a)if(/^\d+$/.test(a))a=k(a);else if(!r(a=e.localeData().monthsParse(a)))return e;return t=Math.min(e.date(),xe(e.year(),a)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](a,t),e}function Ae(e){return null!=e?(Ee(this,e),t.updateOffset(this,!0),this):be(this,"Month")}var Fe=re;var ze=re;function Je(){function e(e,a){return a.length-e.length}var a,t,s=[],n=[],d=[];for(a=0;a<12;a++)t=u([2e3,a]),s.push(this.monthsShort(t,"")),n.push(this.months(t,"")),d.push(this.months(t,"")),d.push(this.monthsShort(t,""));for(s.sort(e),n.sort(e),d.sort(e),a=0;a<12;a++)s[a]=me(s[a]),n[a]=me(n[a]);for(a=0;a<24;a++)d[a]=me(d[a]);this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ne(e){var a=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(a.getUTCFullYear())&&a.setUTCFullYear(e),a}function Re(e,a,t){var s=7+a-t;return-((7+Ne(e,0,s).getUTCDay()-a)%7)+s-1}function Ie(e,a,t,s,n){var d,r,_=1+7*(a-1)+(7+t-s)%7+Re(e,s,n);return _<=0?r=ge(d=e-1)+_:_>ge(e)?(d=e+1,r=_-ge(e)):(d=e,r=_),{year:d,dayOfYear:r}}function Ce(e,a,t){var s,n,d=Re(e.year(),a,t),r=Math.floor((e.dayOfYear()-d-1)/7)+1;return r<1?s=r+Ge(n=e.year()-1,a,t):r>Ge(e.year(),a,t)?(s=r-Ge(e.year(),a,t),n=e.year()+1):(n=e.year(),s=r),{week:s,year:n}}function Ge(e,a,t){var s=Re(e,a,t),n=Re(e+1,a,t);return(ge(e)-s+n)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),A("week",5),A("isoWeek",5),ie("w",B),ie("ww",B,V),ie("W",B),ie("WW",B,V),Me(["w","ww","W","WW"],function(e,a,t,s){a[s.substr(0,1)]=k(e)});I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),ie("d",B),ie("e",B),ie("E",B),ie("dd",function(e,a){return a.weekdaysMinRegex(e)}),ie("ddd",function(e,a){return a.weekdaysShortRegex(e)}),ie("dddd",function(e,a){return a.weekdaysRegex(e)}),Me(["dd","ddd","dddd"],function(e,a,t,s){var n=t._locale.weekdaysParse(e,s,t._strict);null!=n?a.d=n:l(t).invalidWeekday=e}),Me(["d","e","E"],function(e,a,t,s){a[s]=k(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ze=re;var $e=re;var Be=re;function qe(){function e(e,a){return a.length-e.length}var a,t,s,n,d,r=[],_=[],i=[],o=[];for(a=0;a<7;a++)t=u([2e3,1]).day(a),s=this.weekdaysMin(t,""),n=this.weekdaysShort(t,""),d=this.weekdays(t,""),r.push(s),_.push(n),i.push(d),o.push(s),o.push(n),o.push(d);for(r.sort(e),_.sort(e),i.sort(e),o.sort(e),a=0;a<7;a++)_[a]=me(_[a]),i[a]=me(i[a]),o[a]=me(o[a]);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,a){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}function ea(e,a){return a._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Qe.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),P("hour","h"),A("hour",13),ie("a",ea),ie("A",ea),ie("H",B),ie("h",B),ie("k",B),ie("HH",B,V),ie("hh",B,V),ie("kk",B,V),ie("hmm",q),ie("hmmss",Q),ie("Hmm",q),ie("Hmmss",Q),le(["H","HH"],ye),le(["k","kk"],function(e,a,t){var s=k(e);a[ye]=24===s?0:s}),le(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),le(["h","hh"],function(e,a,t){a[ye]=k(e),l(t).bigHour=!0}),le("hmm",function(e,a,t){var s=e.length-2;a[ye]=k(e.substr(0,s)),a[fe]=k(e.substr(s)),l(t).bigHour=!0}),le("hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ye]=k(e.substr(0,s)),a[fe]=k(e.substr(s,2)),a[pe]=k(e.substr(n)),l(t).bigHour=!0}),le("Hmm",function(e,a,t){var s=e.length-2;a[ye]=k(e.substr(0,s)),a[fe]=k(e.substr(s))}),le("Hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ye]=k(e.substr(0,s)),a[fe]=k(e.substr(s,2)),a[pe]=k(e.substr(n))});var aa,ta=He("Hours",!0),sa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:We,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ke,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},na={},da={};function ra(e){return e?e.toLowerCase().replace("_","-"):e}function _a(e){var a=null;if(!na[e]&&"undefined"!=typeof module&&module&&module.exports)try{a=aa._abbr,require("./locale/"+e),ia(a)}catch(e){}return na[e]}function ia(e,a){var t;return e&&((t=d(a)?ma(e):oa(e,a))?aa=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),aa._abbr}function oa(e,a){if(null!==a){var t,s=sa;if(a.abbr=e,null!=na[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=na[e]._config;else if(null!=a.parentLocale)if(null!=na[a.parentLocale])s=na[a.parentLocale]._config;else{if(null==(t=_a(a.parentLocale)))return da[a.parentLocale]||(da[a.parentLocale]=[]),da[a.parentLocale].push({name:e,config:a}),null;s=t._config}return na[e]=new j(b(s,a)),da[e]&&da[e].forEach(function(e){oa(e.name,e.config)}),ia(e),na[e]}return delete na[e],null}function ma(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return aa;if(!s(e)){if(a=_a(e))return a;e=[e]}return function(e){for(var a,t,s,n,d=0;d<e.length;){for(a=(n=ra(e[d]).split("-")).length,t=(t=ra(e[d+1]))?t.split("-"):null;a>0;){if(s=_a(n.slice(0,a).join("-")))return s;if(t&&t.length>=a&&D(n,t,!0)>=a-1)break;a--}d++}return aa}(e)}function ua(e){var a,t=e._a;return t&&-2===l(e).overflow&&(a=t[ce]<0||t[ce]>11?ce:t[Ye]<1||t[Ye]>xe(t[Le],t[ce])?Ye:t[ye]<0||t[ye]>24||24===t[ye]&&(0!==t[fe]||0!==t[pe]||0!==t[ke])?ye:t[fe]<0||t[fe]>59?fe:t[pe]<0||t[pe]>59?pe:t[ke]<0||t[ke]>999?ke:-1,l(e)._overflowDayOfYear&&(a<Le||a>Ye)&&(a=Ye),l(e)._overflowWeeks&&-1===a&&(a=De),l(e)._overflowWeekday&&-1===a&&(a=Te),l(e).overflow=a),e}function la(e,a,t){return null!=e?e:null!=a?a:t}function Ma(e){var a,s,n,d,r,_=[];if(!e._d){for(n=function(e){var a=new Date(t.now());return e._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}(e),e._w&&null==e._a[Ye]&&null==e._a[ce]&&function(e){var a,t,s,n,d,r,_,i;if(null!=(a=e._w).GG||null!=a.W||null!=a.E)d=1,r=4,t=la(a.GG,e._a[Le],Ce(Ha(),1,4).year),s=la(a.W,1),((n=la(a.E,1))<1||n>7)&&(i=!0);else{d=e._locale._week.dow,r=e._locale._week.doy;var o=Ce(Ha(),d,r);t=la(a.gg,e._a[Le],o.year),s=la(a.w,o.week),null!=a.d?((n=a.d)<0||n>6)&&(i=!0):null!=a.e?(n=a.e+d,(a.e<0||a.e>6)&&(i=!0)):n=d}s<1||s>Ge(t,d,r)?l(e)._overflowWeeks=!0:null!=i?l(e)._overflowWeekday=!0:(_=Ie(t,s,n,d,r),e._a[Le]=_.year,e._dayOfYear=_.dayOfYear)}(e),null!=e._dayOfYear&&(r=la(e._a[Le],n[Le]),(e._dayOfYear>ge(r)||0===e._dayOfYear)&&(l(e)._overflowDayOfYear=!0),s=Ne(r,0,e._dayOfYear),e._a[ce]=s.getUTCMonth(),e._a[Ye]=s.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=_[a]=n[a];for(;a<7;a++)e._a[a]=_[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[ye]&&0===e._a[fe]&&0===e._a[pe]&&0===e._a[ke]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Ne:function(e,a,t,s,n,d,r){var _=new Date(e,a,t,s,n,d,r);return e<100&&e>=0&&isFinite(_.getFullYear())&&_.setFullYear(e),_}).apply(null,_),d=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==d&&(l(e).weekdayMismatch=!0)}}var ha=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,La=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ca=/Z|[+-]\d\d(?::?\d\d)?/,Ya=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ya=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fa=/^\/?Date\((\-?\d+)/i;function pa(e){var a,t,s,n,d,r,_=e._i,i=ha.exec(_)||La.exec(_);if(i){for(l(e).iso=!0,a=0,t=Ya.length;a<t;a++)if(Ya[a][1].exec(i[1])){n=Ya[a][0],s=!1!==Ya[a][2];break}if(null==n)return void(e._isValid=!1);if(i[3]){for(a=0,t=ya.length;a<t;a++)if(ya[a][1].exec(i[3])){d=(i[2]||" ")+ya[a][0];break}if(null==d)return void(e._isValid=!1)}if(!s&&null!=d)return void(e._isValid=!1);if(i[4]){if(!ca.exec(i[4]))return void(e._isValid=!1);r="Z"}e._f=n+(d||"")+(r||""),wa(e)}else e._isValid=!1}var ka=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Da(e,a,t,s,n,d){var r=[function(e){var a=parseInt(e,10);if(a<=49)return 2e3+a;if(a<=999)return 1900+a;return a}(e),We.indexOf(a),parseInt(t,10),parseInt(s,10),parseInt(n,10)];return d&&r.push(parseInt(d,10)),r}var Ta={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ga(e){var a=ka.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(a){var t=Da(a[4],a[3],a[2],a[5],a[6],a[7]);if(!function(e,a,t){return!e||Ve.indexOf(e)===new Date(a[0],a[1],a[2]).getDay()||(l(t).weekdayMismatch=!0,t._isValid=!1,!1)}(a[1],t,e))return;e._a=t,e._tzm=function(e,a,t){if(e)return Ta[e];if(a)return 0;var s=parseInt(t,10),n=s%100;return(s-n)/100*60+n}(a[8],a[9],a[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),l(e).rfc2822=!0}else e._isValid=!1}function wa(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],l(e).empty=!0;var a,s,n,d,r,_=""+e._i,i=_.length,o=0;for(n=G(e._f,e._locale).match(z)||[],a=0;a<n.length;a++)d=n[a],(s=(_.match(oe(d,e))||[])[0])&&((r=_.substr(0,_.indexOf(s))).length>0&&l(e).unusedInput.push(r),_=_.slice(_.indexOf(s)+s.length),o+=s.length),R[d]?(s?l(e).empty=!1:l(e).unusedTokens.push(d),he(d,s,e)):e._strict&&!s&&l(e).unusedTokens.push(d);l(e).charsLeftOver=i-o,_.length>0&&l(e).unusedInput.push(_),e._a[ye]<=12&&!0===l(e).bigHour&&e._a[ye]>0&&(l(e).bigHour=void 0),l(e).parsedDateParts=e._a.slice(0),l(e).meridiem=e._meridiem,e._a[ye]=function(e,a,t){var s;if(null==t)return a;return null!=e.meridiemHour?e.meridiemHour(a,t):null!=e.isPM?((s=e.isPM(t))&&a<12&&(a+=12),s||12!==a||(a=0),a):a}(e._locale,e._a[ye],e._meridiem),Ma(e),ua(e)}else ga(e);else pa(e)}function va(e){var a=e._i,o=e._f;return e._locale=e._locale||ma(e._l),null===a||void 0===o&&""===a?h({nullInput:!0}):("string"==typeof a&&(e._i=a=e._locale.preparse(a)),f(a)?new y(ua(a)):(_(a)?e._d=a:s(o)?function(e){var a,t,s,n,d;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;n<e._f.length;n++)d=0,a=c({},e),null!=e._useUTC&&(a._useUTC=e._useUTC),a._f=e._f[n],wa(a),M(a)&&(d+=l(a).charsLeftOver,d+=10*l(a).unusedTokens.length,l(a).score=d,(null==s||d<s)&&(s=d,t=a));m(e,t||a)}(e):o?wa(e):function(e){var a=e._i;d(a)?e._d=new Date(t.now()):_(a)?e._d=new Date(a.valueOf()):"string"==typeof a?function(e){var a=fa.exec(e._i);null===a?(pa(e),!1===e._isValid&&(delete e._isValid,ga(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+a[1])}(e):s(a)?(e._a=i(a.slice(0),function(e){return parseInt(e,10)}),Ma(e)):n(a)?function(e){if(!e._d){var a=W(e._i);e._a=i([a.year,a.month,a.day||a.date,a.hour,a.minute,a.second,a.millisecond],function(e){return e&&parseInt(e,10)}),Ma(e)}}(e):r(a)?e._d=new Date(a):t.createFromInputFallback(e)}(e),M(e)||(e._d=null),e))}function Sa(e,a,t,d,r){var _,i={};return!0!==t&&!1!==t||(d=t,t=void 0),(n(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var a;for(a in e)if(e.hasOwnProperty(a))return!1;return!0}(e)||s(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=t,i._i=e,i._f=a,i._strict=d,(_=new y(ua(va(i))))._nextDay&&(_.add(1,"d"),_._nextDay=void 0),_}function Ha(e,a,t,s){return Sa(e,a,t,s,!1)}t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ba=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ha.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),ja=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ha.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()});function xa(e,a){var t,n;if(1===a.length&&s(a[0])&&(a=a[0]),!a.length)return Ha();for(t=a[0],n=1;n<a.length;++n)a[n].isValid()&&!a[n][e](t)||(t=a[n]);return t}var Pa=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Oa(e){var a=W(e),t=a.year||0,s=a.quarter||0,n=a.month||0,d=a.week||0,r=a.day||0,_=a.hour||0,i=a.minute||0,o=a.second||0,m=a.millisecond||0;this._isValid=function(e){for(var a in e)if(-1===ve.call(Pa,a)||null!=e[a]&&isNaN(e[a]))return!1;for(var t=!1,s=0;s<Pa.length;++s)if(e[Pa[s]]){if(t)return!1;parseFloat(e[Pa[s]])!==k(e[Pa[s]])&&(t=!0)}return!0}(a),this._milliseconds=+m+1e3*o+6e4*i+1e3*_*60*60,this._days=+r+7*d,this._months=+n+3*s+12*t,this._data={},this._locale=ma(),this._bubble()}function Wa(e){return e instanceof Oa}function Ea(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Aa(e,a){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+F(~~(e/60),2)+a+F(~~e%60,2)})}Aa("Z",":"),Aa("ZZ",""),ie("Z",de),ie("ZZ",de),le(["Z","ZZ"],function(e,a,t){t._useUTC=!0,t._tzm=za(de,e)});var Fa=/([\+\-]|\d\d)/gi;function za(e,a){var t=(a||"").match(e);if(null===t)return null;var s=((t[t.length-1]||[])+"").match(Fa)||["-",0,0],n=60*s[1]+k(s[2]);return 0===n?0:"+"===s[0]?n:-n}function Ja(e,a){var s,n;return a._isUTC?(s=a.clone(),n=(f(e)||_(e)?e.valueOf():Ha(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),t.updateOffset(s,!1),s):Ha(e).local()}function Na(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ra(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}t.updateOffset=function(){};var Ia=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ga(e,a){var t,s,n,d=e,_=null;return Wa(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:r(e)?(d={},a?d[a]=e:d.milliseconds=e):(_=Ia.exec(e))?(t="-"===_[1]?-1:1,d={y:0,d:k(_[Ye])*t,h:k(_[ye])*t,m:k(_[fe])*t,s:k(_[pe])*t,ms:k(Ea(1e3*_[ke]))*t}):(_=Ca.exec(e))?(t="-"===_[1]?-1:(_[1],1),d={y:Ua(_[2],t),M:Ua(_[3],t),w:Ua(_[4],t),d:Ua(_[5],t),h:Ua(_[6],t),m:Ua(_[7],t),s:Ua(_[8],t)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(n=function(e,a){var t;if(!e.isValid()||!a.isValid())return{milliseconds:0,months:0};a=Ja(a,e),e.isBefore(a)?t=Va(e,a):((t=Va(a,e)).milliseconds=-t.milliseconds,t.months=-t.months);return t}(Ha(d.from),Ha(d.to)),(d={}).ms=n.milliseconds,d.M=n.months),s=new Oa(d),Wa(e)&&o(e,"_locale")&&(s._locale=e._locale),s}function Ua(e,a){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*a}function Va(e,a){var t={milliseconds:0,months:0};return t.months=a.month()-e.month()+12*(a.year()-e.year()),e.clone().add(t.months,"M").isAfter(a)&&--t.months,t.milliseconds=+a-+e.clone().add(t.months,"M"),t}function Ka(e,a){return function(t,s){var n;return null===s||isNaN(+s)||(S(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=s,s=n),Za(this,Ga(t="string"==typeof t?+t:t,s),e),this}}function Za(e,a,s,n){var d=a._milliseconds,r=Ea(a._days),_=Ea(a._months);e.isValid()&&(n=null==n||n,_&&Ee(e,be(e,"Month")+_*s),r&&je(e,"Date",be(e,"Date")+r*s),d&&e._d.setTime(e._d.valueOf()+d*s),n&&t.updateOffset(e,r||_))}Ga.fn=Oa.prototype,Ga.invalid=function(){return Ga(NaN)};var $a=Ka(1,"add"),Ba=Ka(-1,"subtract");function qa(e,a){var t=12*(a.year()-e.year())+(a.month()-e.month()),s=e.clone().add(t,"months");return-(t+(a-s<0?(a-s)/(s-e.clone().add(t-1,"months")):(a-s)/(e.clone().add(t+1,"months")-s)))||0}function Qa(e){var a;return void 0===e?this._locale._abbr:(null!=(a=ma(e))&&(this._locale=a),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xa=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function et(){return this._locale}function at(e,a){I(0,[e,e.length],0,a)}function tt(e,a,t,s,n){var d;return null==e?Ce(this,s,n).year:(a>(d=Ge(e,s,n))&&(a=d),function(e,a,t,s,n){var d=Ie(e,a,t,s,n),r=Ne(d.year,0,d.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,a,t,s,n))}I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),at("gggg","weekYear"),at("ggggg","weekYear"),at("GGGG","isoWeekYear"),at("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),ie("G",se),ie("g",se),ie("GG",B,V),ie("gg",B,V),ie("GGGG",ee,Z),ie("gggg",ee,Z),ie("GGGGG",ae,$),ie("ggggg",ae,$),Me(["gggg","ggggg","GGGG","GGGGG"],function(e,a,t,s){a[s.substr(0,2)]=k(e)}),Me(["gg","GG"],function(e,a,s,n){a[n]=t.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),P("quarter","Q"),A("quarter",7),ie("Q",U),le("Q",function(e,a){a[ce]=3*(k(e)-1)}),I("D",["DD",2],"Do","date"),P("date","D"),A("date",9),ie("D",B),ie("DD",B,V),ie("Do",function(e,a){return e?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),le(["D","DD"],Ye),le("Do",function(e,a){a[Ye]=k(e.match(B)[0])});var st=He("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),A("dayOfYear",4),ie("DDD",X),ie("DDDD",K),le(["DDD","DDDD"],function(e,a,t){t._dayOfYear=k(e)}),I("m",["mm",2],0,"minute"),P("minute","m"),A("minute",14),ie("m",B),ie("mm",B,V),le(["m","mm"],fe);var nt=He("Minutes",!1);I("s",["ss",2],0,"second"),P("second","s"),A("second",15),ie("s",B),ie("ss",B,V),le(["s","ss"],pe);var dt,rt=He("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),A("millisecond",16),ie("S",X,U),ie("SS",X,V),ie("SSS",X,K),dt="SSSS";dt.length<=9;dt+="S")ie(dt,te);function _t(e,a){a[ke]=k(1e3*("0."+e))}for(dt="S";dt.length<=9;dt+="S")le(dt,_t);var it=He("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ot=y.prototype;function mt(e){return e}ot.add=$a,ot.calendar=function(e,a){var s=e||Ha(),n=Ja(s,this).startOf("day"),d=t.calendarFormat(this,n)||"sameElse",r=a&&(H(a[d])?a[d].call(this,s):a[d]);return this.format(r||this.localeData().calendar(d,this,Ha(s)))},ot.clone=function(){return new y(this)},ot.diff=function(e,a,t){var s,n,d;if(!this.isValid())return NaN;if(!(s=Ja(e,this)).isValid())return NaN;switch(n=6e4*(s.utcOffset()-this.utcOffset()),a=O(a)){case"year":d=qa(this,s)/12;break;case"month":d=qa(this,s);break;case"quarter":d=qa(this,s)/3;break;case"second":d=(this-s)/1e3;break;case"minute":d=(this-s)/6e4;break;case"hour":d=(this-s)/36e5;break;case"day":d=(this-s-n)/864e5;break;case"week":d=(this-s-n)/6048e5;break;default:d=this-s}return t?d:p(d)},ot.endOf=function(e){return void 0===(e=O(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},ot.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var a=C(this,e);return this.localeData().postformat(a)},ot.from=function(e,a){return this.isValid()&&(f(e)&&e.isValid()||Ha(e).isValid())?Ga({to:this,from:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()},ot.fromNow=function(e){return this.from(Ha(),e)},ot.to=function(e,a){return this.isValid()&&(f(e)&&e.isValid()||Ha(e).isValid())?Ga({from:this,to:e}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()},ot.toNow=function(e){return this.to(Ha(),e)},ot.get=function(e){return H(this[e=O(e)])?this[e]():this},ot.invalidAt=function(){return l(this).overflow},ot.isAfter=function(e,a){var t=f(e)?e:Ha(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(a=O(d(a)?"millisecond":a))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(a).valueOf())},ot.isBefore=function(e,a){var t=f(e)?e:Ha(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(a=O(d(a)?"millisecond":a))?this.valueOf()<t.valueOf():this.clone().endOf(a).valueOf()<t.valueOf())},ot.isBetween=function(e,a,t,s){return("("===(s=s||"()")[0]?this.isAfter(e,t):!this.isBefore(e,t))&&(")"===s[1]?this.isBefore(a,t):!this.isAfter(a,t))},ot.isSame=function(e,a){var t,s=f(e)?e:Ha(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(a=O(a||"millisecond"))?this.valueOf()===s.valueOf():(t=s.valueOf(),this.clone().startOf(a).valueOf()<=t&&t<=this.clone().endOf(a).valueOf()))},ot.isSameOrAfter=function(e,a){return this.isSame(e,a)||this.isAfter(e,a)},ot.isSameOrBefore=function(e,a){return this.isSame(e,a)||this.isBefore(e,a)},ot.isValid=function(){return M(this)},ot.lang=Xa,ot.locale=Qa,ot.localeData=et,ot.max=ja,ot.min=ba,ot.parsingFlags=function(){return m({},l(this))},ot.set=function(e,a){if("object"==typeof e)for(var t=function(e){var a=[];for(var t in e)a.push({unit:t,priority:E[t]});return a.sort(function(e,a){return e.priority-a.priority}),a}(e=W(e)),s=0;s<t.length;s++)this[t[s].unit](e[t[s].unit]);else if(H(this[e=O(e)]))return this[e](a);return this},ot.startOf=function(e){switch(e=O(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},ot.subtract=Ba,ot.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ot.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ot.toDate=function(){return new Date(this.valueOf())},ot.toISOString=function(e){if(!this.isValid())return null;var a=!0!==e,t=a?this.clone().utc():this;return t.year()<0||t.year()>9999?C(t,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",C(t,"Z")):C(t,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ot.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",a="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z");var t="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]';return this.format(t+s+"-MM-DD[T]HH:mm:ss.SSS"+n)},ot.toJSON=function(){return this.isValid()?this.toISOString():null},ot.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ot.unix=function(){return Math.floor(this.valueOf()/1e3)},ot.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ot.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ot.year=Se,ot.isLeapYear=function(){return we(this.year())},ot.weekYear=function(e){return tt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ot.isoWeekYear=function(e){return tt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ot.quarter=ot.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ot.month=Ae,ot.daysInMonth=function(){return xe(this.year(),this.month())},ot.week=ot.weeks=function(e){var a=this.localeData().week(this);return null==e?a:this.add(7*(e-a),"d")},ot.isoWeek=ot.isoWeeks=function(e){var a=Ce(this,1,4).week;return null==e?a:this.add(7*(e-a),"d")},ot.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},ot.isoWeeksInYear=function(){return Ge(this.year(),1,4)},ot.date=st,ot.day=ot.days=function(e){if(!this.isValid())return null!=e?this:NaN;var a=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,a){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=a.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-a,"d")):a},ot.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return null==e?a:this.add(e-a,"d")},ot.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var a=function(e,a){return"string"==typeof e?a.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?a:a-7)}return this.day()||7},ot.dayOfYear=function(e){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?a:this.add(e-a,"d")},ot.hour=ot.hours=ta,ot.minute=ot.minutes=nt,ot.second=ot.seconds=rt,ot.millisecond=ot.milliseconds=it,ot.utcOffset=function(e,a,s){var n,d=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=za(de,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&a&&(n=Na(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),d!==e&&(!a||this._changeInProgress?Za(this,Ga(e-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?d:Na(this)},ot.utc=function(e){return this.utcOffset(0,e)},ot.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Na(this),"m")),this},ot.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=za(ne,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ot.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ha(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ot.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ot.isLocal=function(){return!!this.isValid()&&!this._isUTC},ot.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ot.isUtc=Ra,ot.isUTC=Ra,ot.zoneAbbr=function(){return this._isUTC?"UTC":""},ot.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ot.dates=g("dates accessor is deprecated. Use date instead.",st),ot.months=g("months accessor is deprecated. Use month instead",Ae),ot.years=g("years accessor is deprecated. Use year instead",Se),ot.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}),ot.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e={};if(c(e,this),(e=va(e))._a){var a=e._isUTC?u(e._a):Ha(e._a);this._isDSTShifted=this.isValid()&&D(e._a,a.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var ut=j.prototype;function lt(e,a,t,s){var n=ma(),d=u().set(s,a);return n[t](d,e)}function Mt(e,a,t){if(r(e)&&(a=e,e=void 0),e=e||"",null!=a)return lt(e,a,t,"month");var s,n=[];for(s=0;s<12;s++)n[s]=lt(e,s,t,"month");return n}function ht(e,a,t,s){"boolean"==typeof e?(r(a)&&(t=a,a=void 0),a=a||""):(t=a=e,e=!1,r(a)&&(t=a,a=void 0),a=a||"");var n,d=ma(),_=e?d._week.dow:0;if(null!=t)return lt(a,(t+_)%7,s,"day");var i=[];for(n=0;n<7;n++)i[n]=lt(a,(n+_)%7,s,"day");return i}ut.calendar=function(e,a,t){var s=this._calendar[e]||this._calendar.sameElse;return H(s)?s.call(a,t):s},ut.longDateFormat=function(e){var a=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return a||!t?a:(this._longDateFormat[e]=t.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},ut.invalidDate=function(){return this._invalidDate},ut.ordinal=function(e){return this._ordinal.replace("%d",e)},ut.preparse=mt,ut.postformat=mt,ut.relativeTime=function(e,a,t,s){var n=this._relativeTime[t];return H(n)?n(e,a,t,s):n.replace(/%d/i,e)},ut.pastFuture=function(e,a){var t=this._relativeTime[e>0?"future":"past"];return H(t)?t(a):t.replace(/%s/i,a)},ut.set=function(e){var a,t;for(t in e)H(a=e[t])?this[t]=a:this["_"+t]=a;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ut.months=function(e,a){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(a)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},ut.monthsShort=function(e,a){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(a)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ut.monthsParse=function(e,a,t){var s,n,d;if(this._monthsParseExact)return function(e,a,t){var s,n,d,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)d=u([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(d,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(d,"").toLocaleLowerCase();return t?"MMM"===a?-1!==(n=ve.call(this._shortMonthsParse,r))?n:null:-1!==(n=ve.call(this._longMonthsParse,r))?n:null:"MMM"===a?-1!==(n=ve.call(this._shortMonthsParse,r))?n:-1!==(n=ve.call(this._longMonthsParse,r))?n:null:-1!==(n=ve.call(this._longMonthsParse,r))?n:-1!==(n=ve.call(this._shortMonthsParse,r))?n:null}.call(this,e,a,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=u([2e3,s]),t&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),t||this._monthsParse[s]||(d="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(d.replace(".",""),"i")),t&&"MMMM"===a&&this._longMonthsParse[s].test(e))return s;if(t&&"MMM"===a&&this._shortMonthsParse[s].test(e))return s;if(!t&&this._monthsParse[s].test(e))return s}},ut.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ze),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},ut.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},ut.week=function(e){return Ce(e,this._week.dow,this._week.doy).week},ut.firstDayOfYear=function(){return this._week.doy},ut.firstDayOfWeek=function(){return this._week.dow},ut.weekdays=function(e,a){return e?s(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(a)?"format":"standalone"][e.day()]:s(this._weekdays)?this._weekdays:this._weekdays.standalone},ut.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},ut.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},ut.weekdaysParse=function(e,a,t){var s,n,d;if(this._weekdaysParseExact)return function(e,a,t){var s,n,d,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)d=u([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(d,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(d,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(d,"").toLocaleLowerCase();return t?"dddd"===a?-1!==(n=ve.call(this._weekdaysParse,r))?n:null:"ddd"===a?-1!==(n=ve.call(this._shortWeekdaysParse,r))?n:null:-1!==(n=ve.call(this._minWeekdaysParse,r))?n:null:"dddd"===a?-1!==(n=ve.call(this._weekdaysParse,r))?n:-1!==(n=ve.call(this._shortWeekdaysParse,r))?n:-1!==(n=ve.call(this._minWeekdaysParse,r))?n:null:"ddd"===a?-1!==(n=ve.call(this._shortWeekdaysParse,r))?n:-1!==(n=ve.call(this._weekdaysParse,r))?n:-1!==(n=ve.call(this._minWeekdaysParse,r))?n:null:-1!==(n=ve.call(this._minWeekdaysParse,r))?n:-1!==(n=ve.call(this._weekdaysParse,r))?n:-1!==(n=ve.call(this._shortWeekdaysParse,r))?n:null}.call(this,e,a,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=u([2e3,1]).day(s),t&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(d="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(d.replace(".",""),"i")),t&&"dddd"===a&&this._fullWeekdaysParse[s].test(e))return s;if(t&&"ddd"===a&&this._shortWeekdaysParse[s].test(e))return s;if(t&&"dd"===a&&this._minWeekdaysParse[s].test(e))return s;if(!t&&this._weekdaysParse[s].test(e))return s}},ut.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},ut.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ut.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Be),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ut.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},ut.meridiem=function(e,a,t){return e>11?t?"pm":"PM":t?"am":"AM"},ia("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1===k(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),t.lang=g("moment.lang is deprecated. Use moment.locale instead.",ia),t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",ma);var Lt=Math.abs;function ct(e,a,t,s){var n=Ga(a,t);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Yt(e){return e<0?Math.floor(e):Math.ceil(e)}function yt(e){return 4800*e/146097}function ft(e){return 146097*e/4800}function pt(e){return function(){return this.as(e)}}var kt=pt("ms"),Dt=pt("s"),Tt=pt("m"),gt=pt("h"),wt=pt("d"),vt=pt("w"),St=pt("M"),Ht=pt("y");function bt(e){return function(){return this.isValid()?this._data[e]:NaN}}var jt=bt("milliseconds"),xt=bt("seconds"),Pt=bt("minutes"),Ot=bt("hours"),Wt=bt("days"),Et=bt("months"),At=bt("years");var Ft=Math.round,zt={ss:44,s:45,m:45,h:22,d:26,M:11};var Jt=Math.abs;function Nt(e){return(e>0)-(e<0)||+e}function Rt(){if(!this.isValid())return this.localeData().invalidDate();var e,a,t=Jt(this._milliseconds)/1e3,s=Jt(this._days),n=Jt(this._months);a=p((e=p(t/60))/60),t%=60,e%=60;var d=p(n/12),r=n%=12,_=s,i=a,o=e,m=t?t.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var l=u<0?"-":"",M=Nt(this._months)!==Nt(u)?"-":"",h=Nt(this._days)!==Nt(u)?"-":"",L=Nt(this._milliseconds)!==Nt(u)?"-":"";return l+"P"+(d?M+d+"Y":"")+(r?M+r+"M":"")+(_?h+_+"D":"")+(i||o||m?"T":"")+(i?L+i+"H":"")+(o?L+o+"M":"")+(m?L+m+"S":"")}var It=Oa.prototype;It.isValid=function(){return this._isValid},It.abs=function(){var e=this._data;return this._milliseconds=Lt(this._milliseconds),this._days=Lt(this._days),this._months=Lt(this._months),e.milliseconds=Lt(e.milliseconds),e.seconds=Lt(e.seconds),e.minutes=Lt(e.minutes),e.hours=Lt(e.hours),e.months=Lt(e.months),e.years=Lt(e.years),this},It.add=function(e,a){return ct(this,e,a,1)},It.subtract=function(e,a){return ct(this,e,a,-1)},It.as=function(e){if(!this.isValid())return NaN;var a,t,s=this._milliseconds;if("month"===(e=O(e))||"year"===e)return a=this._days+s/864e5,t=this._months+yt(a),"month"===e?t:t/12;switch(a=this._days+Math.round(ft(this._months)),e){case"week":return a/7+s/6048e5;case"day":return a+s/864e5;case"hour":return 24*a+s/36e5;case"minute":return 1440*a+s/6e4;case"second":return 86400*a+s/1e3;case"millisecond":return Math.floor(864e5*a)+s;default:throw new Error("Unknown unit "+e)}},It.asMilliseconds=kt,It.asSeconds=Dt,It.asMinutes=Tt,It.asHours=gt,It.asDays=wt,It.asWeeks=vt,It.asMonths=St,It.asYears=Ht,It.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},It._bubble=function(){var e,a,t,s,n,d=this._milliseconds,r=this._days,_=this._months,i=this._data;return d>=0&&r>=0&&_>=0||d<=0&&r<=0&&_<=0||(d+=864e5*Yt(ft(_)+r),r=0,_=0),i.milliseconds=d%1e3,e=p(d/1e3),i.seconds=e%60,a=p(e/60),i.minutes=a%60,t=p(a/60),i.hours=t%24,_+=n=p(yt(r+=p(t/24))),r-=Yt(ft(n)),s=p(_/12),_%=12,i.days=r,i.months=_,i.years=s,this},It.clone=function(){return Ga(this)},It.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},It.milliseconds=jt,It.seconds=xt,It.minutes=Pt,It.hours=Ot,It.days=Wt,It.weeks=function(){return p(this.days()/7)},It.months=Et,It.years=At,It.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var a=this.localeData(),t=function(e,a,t){var s=Ga(e).abs(),n=Ft(s.as("s")),d=Ft(s.as("m")),r=Ft(s.as("h")),_=Ft(s.as("d")),i=Ft(s.as("M")),o=Ft(s.as("y")),m=n<=zt.ss&&["s",n]||n<zt.s&&["ss",n]||d<=1&&["m"]||d<zt.m&&["mm",d]||r<=1&&["h"]||r<zt.h&&["hh",r]||_<=1&&["d"]||_<zt.d&&["dd",_]||i<=1&&["M"]||i<zt.M&&["MM",i]||o<=1&&["y"]||["yy",o];return m[2]=a,m[3]=+e>0,m[4]=t,function(e,a,t,s,n){return n.relativeTime(a||1,!!t,e,s)}.apply(null,m)}(this,!e,a);return e&&(t=a.pastFuture(+this,t)),a.postformat(t)},It.toISOString=Rt,It.toString=Rt,It.toJSON=Rt,It.locale=Qa,It.localeData=et,It.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rt),It.lang=Xa,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ie("x",se),ie("X",/[+-]?\d+(\.\d{1,3})?/),le("X",function(e,a,t){t._d=new Date(1e3*parseFloat(e,10))}),le("x",function(e,a,t){t._d=new Date(k(e))}),t.version="2.21.0",e=Ha,t.fn=ot,t.min=function(){return xa("isBefore",[].slice.call(arguments,0))},t.max=function(){return xa("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=u,t.unix=function(e){return Ha(1e3*e)},t.months=function(e,a){return Mt(e,a,"months")},t.isDate=_,t.locale=ia,t.invalid=h,t.duration=Ga,t.isMoment=f,t.weekdays=function(e,a,t){return ht(e,a,t,"weekdays")},t.parseZone=function(){return Ha.apply(null,arguments).parseZone()},t.localeData=ma,t.isDuration=Wa,t.monthsShort=function(e,a){return Mt(e,a,"monthsShort")},t.weekdaysMin=function(e,a,t){return ht(e,a,t,"weekdaysMin")},t.defineLocale=oa,t.updateLocale=function(e,a){if(null!=a){var t,s,n=sa;null!=(s=_a(e))&&(n=s._config),(t=new j(a=b(n,a))).parentLocale=na[e],na[e]=t,ia(e)}else null!=na[e]&&(null!=na[e].parentLocale?na[e]=na[e].parentLocale:null!=na[e]&&delete na[e]);return na[e]},t.locales=function(){return w(na)},t.weekdaysShort=function(e,a,t){return ht(e,a,t,"weekdaysShort")},t.normalizeUnits=O,t.relativeTimeRounding=function(e){return void 0===e?Ft:"function"==typeof e&&(Ft=e,!0)},t.relativeTimeThreshold=function(e,a){return void 0!==zt[e]&&(void 0===a?zt[e]:(zt[e]=a,"s"===e&&(zt.ss=a-1),!0))},t.calendarFormat=function(e,a){var t=e.diff(a,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},t.prototype=ot,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"vm":"VM":t?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),t.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var Ct={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Gt=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Ut={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Vt=function(e){return function(a,t,s,n){var d=Gt(a),r=Ut[e][Gt(a)];return 2===d&&(r=r[t?0:1]),r.replace(/%d/i,a)}},Kt=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:Kt,monthsShort:Kt,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Vt("s"),ss:Vt("s"),m:Vt("m"),mm:Vt("m"),h:Vt("h"),hh:Vt("h"),d:Vt("d"),dd:Vt("d"),M:Vt("M"),MM:Vt("M"),y:Vt("y"),yy:Vt("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Ct[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});var Zt={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},$t={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return $t[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Zt[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Bt={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},qt={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Qt=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Xt={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},es=function(e){return function(a,t,s,n){var d=Qt(a),r=Xt[e][Qt(a)];return 2===d&&(r=r[t?0:1]),r.replace(/%d/i,a)}},as=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:as,monthsShort:as,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,a,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:es("s"),ss:es("s"),m:es("m"),mm:es("m"),h:es("h"),hh:es("h"),d:es("d"),dd:es("d"),M:es("M"),MM:es("M"),y:es("y"),yy:es("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return qt[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Bt[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var ts={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};function ss(e,a,t){var s,n;return"m"===t?a?"хвіліна":"хвіліну":"h"===t?a?"гадзіна":"гадзіну":e+" "+(s=+e,n={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:a?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[t].split("_"),s%10==1&&s%100!=11?n[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?n[1]:n[2])}t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,a,t){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var a=e%10;return e+(ts[a]||ts[e%100-a]||ts[e>=100?100:null])},week:{dow:1,doy:7}}),t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:ss,mm:ss,h:ss,hh:ss,d:"дзень",dd:ss,M:"месяц",MM:ss,y:"год",yy:ss},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var ns={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},ds={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return ds[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ns[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,a){return 12===e&&(e=0),"রাত"===a&&e>=4||"দুপুর"===a&&e<5||"বিকাল"===a?e+12:e},meridiem:function(e,a,t){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var rs={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},_s={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};function is(e,a,t){return e+" "+function(e,a){if(2===a)return function(e){var a={m:"v",b:"v",d:"z"};if(void 0===a[e.charAt(0)])return e;return a[e.charAt(0)]+e.substring(1)}(e);return e}({mm:"munutenn",MM:"miz",dd:"devezh"}[t],e)}function os(e,a,t){var s=e+" ";switch(t){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return _s[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return rs[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,a){return 12===e&&(e=0),"མཚན་མོ"===a&&e>=4||"ཉིན་གུང"===a&&e<5||"དགོང་དག"===a?e+12:e},meridiem:function(e,a,t){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:is,h:"un eur",hh:"%d eur",d:"un devezh",dd:is,M:"ur miz",MM:is,y:"ur bloaz",yy:function(e){switch(function e(a){return a>9?e(a%10):a}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:os,m:os,mm:os,h:os,hh:os,d:"dan",dd:os,M:"mjesec",MM:os,y:"godinu",yy:os},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,a){var t=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==a&&"W"!==a||(t="a"),e+t},week:{dow:1,doy:4}});var ms="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),us="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function ls(e){return e>1&&e<5&&1!=~~(e/10)}function Ms(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"pár sekund":"pár sekundami";case"ss":return a||s?n+(ls(e)?"sekundy":"sekund"):n+"sekundami";case"m":return a?"minuta":s?"minutu":"minutou";case"mm":return a||s?n+(ls(e)?"minuty":"minut"):n+"minutami";case"h":return a?"hodina":s?"hodinu":"hodinou";case"hh":return a||s?n+(ls(e)?"hodiny":"hodin"):n+"hodinami";case"d":return a||s?"den":"dnem";case"dd":return a||s?n+(ls(e)?"dny":"dní"):n+"dny";case"M":return a||s?"měsíc":"měsícem";case"MM":return a||s?n+(ls(e)?"měsíce":"měsíců"):n+"měsíci";case"y":return a||s?"rok":"rokem";case"yy":return a||s?n+(ls(e)?"roky":"let"):n+"lety"}}function hs(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}function Ls(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}function cs(e,a,t,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return a?n[t][0]:n[t][1]}t.defineLocale("cs",{months:ms,monthsShort:us,monthsParse:function(e,a){var t,s=[];for(t=0;t<12;t++)s[t]=new RegExp("^"+e[t]+"$|^"+a[t]+"$","i");return s}(ms,us),shortMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(us),longMonthsParse:function(e){var a,t=[];for(a=0;a<12;a++)t[a]=new RegExp("^"+e[a]+"$","i");return t}(ms),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Ms,ss:Ms,m:Ms,mm:Ms,h:Ms,hh:Ms,d:Ms,dd:Ms,M:Ms,MM:Ms,y:Ms,yy:Ms},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var a="";return e>20?a=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(a=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+a},week:{dow:1,doy:4}}),t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:hs,mm:"%d Minuten",h:hs,hh:"%d Stunden",d:hs,dd:hs,M:hs,MM:hs,y:hs,yy:hs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Ls,mm:"%d Minuten",h:Ls,hh:"%d Stunden",d:Ls,dd:Ls,M:Ls,MM:Ls,y:Ls,yy:Ls},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:cs,mm:"%d Minuten",h:cs,hh:"%d Stunden",d:cs,dd:cs,M:cs,MM:cs,y:cs,yy:cs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ys=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],ys=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:Ys,monthsShort:Ys,weekdays:ys,weekdaysShort:ys,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,a,t){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,a){return e?"string"==typeof a&&/D/.test(a.substring(0,a.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,a,t){return e>11?t?"μμ":"ΜΜ":t?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,a){var t=this._calendarEl[e],s=a&&a.hours();return H(t)&&(t=t.apply(a)),t.replace("{}",s%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}}),t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}}),t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,a,t){return e>11?t?"p.t.m.":"P.T.M.":t?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var fs="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ps="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ks=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ds=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?ps[e.month()]:fs[e.month()]:fs},monthsRegex:Ds,monthsShortRegex:Ds,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ks,longMonthsParse:ks,shortMonthsParse:ks,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var Ts="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),gs="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?gs[e.month()]:Ts[e.month()]:Ts},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}});var ws="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),vs="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ss=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Hs=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function bs(e,a,t,s){var n={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return a?n[t][2]?n[t][2]:n[t][1]:s?n[t][0]:n[t][1]}t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?vs[e.month()]:ws[e.month()]:ws},monthsRegex:Hs,monthsShortRegex:Hs,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ss,longMonthsParse:Ss,shortMonthsParse:Ss,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:bs,ss:bs,m:bs,mm:bs,h:bs,hh:bs,d:bs,dd:"%d päeva",M:bs,MM:bs,y:bs,yy:bs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var js={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},xs={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,a,t){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return xs[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return js[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}});var Ps="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Os=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Ps[7],Ps[8],Ps[9]];function Ws(e,a,t,s){var n="";switch(t){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":return s?"sekunnin":"sekuntia";case"m":return s?"minuutin":"minuutti";case"mm":n=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":n=s?"tunnin":"tuntia";break;case"d":return s?"päivän":"päivä";case"dd":n=s?"päivän":"päivää";break;case"M":return s?"kuukauden":"kuukausi";case"MM":n=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":n=s?"vuoden":"vuotta"}return n=function(e,a){return e<10?a?Os[e]:Ps[e]:e}(e,s)+" "+n}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Ws,ss:Ws,m:Ws,mm:Ws,h:Ws,hh:Ws,d:Ws,dd:Ws,M:Ws,MM:Ws,y:Ws,yy:Ws},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,a){switch(a){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,a){switch(a){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var Es="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),As="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?As[e.month()]:Es[e.month()]:Es},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});function Fs(e,a,t,s){var n={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return a?n[t][0]:n[t][1]}t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:Fs,ss:Fs,m:Fs,mm:Fs,h:Fs,hh:Fs,d:Fs,dd:Fs,M:Fs,MM:Fs,y:Fs,yy:Fs},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,a){switch(a){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,a){return 12===e&&(e=0),"rati"===a?e<4?e:e+12:"sokalli"===a?e:"donparam"===a?e>12?e:e+12:"sanje"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});var zs={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Js={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return Js[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return zs[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,a){return 12===e&&(e=0),"રાત"===a?e<4?e:e+12:"સવાર"===a?e:"બપોર"===a?e>=10?e:e+12:"સાંજ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,a,t){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?t?'לפנה"צ':"לפני הצהריים":e<18?t?'אחה"צ':"אחרי הצהריים":"בערב"}});var Ns={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Rs={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Is(e,a,t){var s=e+" ";switch(t){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return a?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}t.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return Rs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ns[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात"===a?e<4?e:e+12:"सुबह"===a?e:"दोपहर"===a?e>=10?e:e+12:"शाम"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:Is,m:Is,mm:Is,h:Is,hh:Is,d:"dan",dd:Is,M:"mjesec",MM:Is,y:"godinu",yy:Is},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Cs="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function Gs(e,a,t,s){var n=e;switch(t){case"s":return s||a?"néhány másodperc":"néhány másodperce";case"ss":return n+(s||a)?" másodperc":" másodperce";case"m":return"egy"+(s||a?" perc":" perce");case"mm":return n+(s||a?" perc":" perce");case"h":return"egy"+(s||a?" óra":" órája");case"hh":return n+(s||a?" óra":" órája");case"d":return"egy"+(s||a?" nap":" napja");case"dd":return n+(s||a?" nap":" napja");case"M":return"egy"+(s||a?" hónap":" hónapja");case"MM":return n+(s||a?" hónap":" hónapja");case"y":return"egy"+(s||a?" év":" éve");case"yy":return n+(s||a?" év":" éve")}return""}function Us(e){return(e?"":"[múlt] ")+"["+Cs[this.day()]+"] LT[-kor]"}function Vs(e){return e%100==11||e%10!=1}function Ks(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return Vs(e)?n+(a||s?"sekúndur":"sekúndum"):n+"sekúnda";case"m":return a?"mínúta":"mínútu";case"mm":return Vs(e)?n+(a||s?"mínútur":"mínútum"):a?n+"mínúta":n+"mínútu";case"hh":return Vs(e)?n+(a||s?"klukkustundir":"klukkustundum"):n+"klukkustund";case"d":return a?"dagur":s?"dag":"degi";case"dd":return Vs(e)?a?n+"dagar":n+(s?"daga":"dögum"):a?n+"dagur":n+(s?"dag":"degi");case"M":return a?"mánuður":s?"mánuð":"mánuði";case"MM":return Vs(e)?a?n+"mánuðir":n+(s?"mánuði":"mánuðum"):a?n+"mánuður":n+(s?"mánuð":"mánuði");case"y":return a||s?"ár":"ári";case"yy":return Vs(e)?n+(a||s?"ár":"árum"):n+(a||s?"ár":"ári")}}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,a,t){return e<12?!0===t?"de":"DE":!0===t?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return Us.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return Us.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:Gs,ss:Gs,m:Gs,mm:Gs,h:Gs,hh:Gs,d:Gs,dd:Gs,M:Gs,MM:Gs,y:Gs,yy:Gs},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,a){switch(a){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"siang"===a?e>=11?e:e+12:"sore"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:Ks,ss:Ks,m:Ks,mm:Ks,h:"klukkustund",hh:Ks,d:Ks,dd:Ks,M:Ks,MM:Ks,y:Ks,yy:Ks},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,a,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,a){return 12===e&&(e=0),"enjing"===a?e:"siyang"===a?e>=11?e:e+12:"sonten"===a||"ndalu"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),t.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის უკან"):/წელი/.test(e)?e.replace(/წელი$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var Zs={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(Zs[e]||Zs[e%10]||Zs[e>=100?100:null])},week:{dow:1,doy:7}}),t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});var $s={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Bs={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return Bs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return $s[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,a){return 12===e&&(e=0),"ರಾತ್ರಿ"===a?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===a?e:"ಮಧ್ಯಾಹ್ನ"===a?e>=10?e:e+12:"ಸಂಜೆ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,a,t){return e<12?"오전":"오후"}});var qs={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};function Qs(e,a,t,s){var n={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return a?n[t][0]:n[t][1]}function Xs(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var a=e%10;return Xs(0===a?e/10:a)}if(e<1e4){for(;e>=10;)e/=10;return Xs(e)}return Xs(e/=1e3)}t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(qs[e]||qs[e%10]||qs[e>=100?100:null])},week:{dow:1,doy:7}}),t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return Xs(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return Xs(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:Qs,mm:"%d Minutten",h:Qs,hh:"%d Stonnen",d:Qs,dd:"%d Deeg",M:Qs,MM:"%d Méint",y:Qs,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,a,t){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var en={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function an(e,a,t,s){return a?sn(t)[0]:s?sn(t)[1]:sn(t)[2]}function tn(e){return e%10==0||e>10&&e<20}function sn(e){return en[e].split("_")}function nn(e,a,t,s){var n=e+" ";return 1===e?n+an(0,a,t[0],s):a?n+(tn(e)?sn(t)[1]:sn(t)[0]):s?n+sn(t)[1]:n+(tn(e)?sn(t)[1]:sn(t)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,a,t,s){return a?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"},ss:nn,m:an,mm:nn,h:an,hh:nn,d:an,dd:nn,M:an,MM:nn,y:an,yy:nn},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var dn={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function rn(e,a,t){return t?a%10==1&&a%100!=11?e[2]:e[3]:a%10==1&&a%100!=11?e[0]:e[1]}function _n(e,a,t){return e+" "+rn(dn[t],e,a)}function on(e,a,t){return rn(dn[t],e,a)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,a){return a?"dažas sekundes":"dažām sekundēm"},ss:_n,m:on,mm:_n,h:on,hh:_n,d:on,dd:_n,M:on,MM:_n,y:on,yy:_n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var mn={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=mn.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+mn.correctGrammaticalCase(e,s)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:mn.translate,m:mn.translate,mm:mn.translate,h:mn.translate,hh:mn.translate,d:"dan",dd:mn.translate,M:"mjesec",MM:mn.translate,y:"godinu",yy:mn.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var a=e%10,t=e%100;return 0===e?e+"-ев":0===t?e+"-ен":t>10&&t<20?e+"-ти":1===a?e+"-ви":2===a?e+"-ри":7===a||8===a?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,a){return 12===e&&(e=0),"രാത്രി"===a&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===a||"വൈകുന്നേരം"===a?e+12:e},meridiem:function(e,a,t){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});var un={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ln={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Mn(e,a,t,s){var n="";if(a)switch(t){case"s":n="काही सेकंद";break;case"ss":n="%d सेकंद";break;case"m":n="एक मिनिट";break;case"mm":n="%d मिनिटे";break;case"h":n="एक तास";break;case"hh":n="%d तास";break;case"d":n="एक दिवस";break;case"dd":n="%d दिवस";break;case"M":n="एक महिना";break;case"MM":n="%d महिने";break;case"y":n="एक वर्ष";break;case"yy":n="%d वर्षे"}else switch(t){case"s":n="काही सेकंदां";break;case"ss":n="%d सेकंदां";break;case"m":n="एका मिनिटा";break;case"mm":n="%d मिनिटां";break;case"h":n="एका तासा";break;case"hh":n="%d तासां";break;case"d":n="एका दिवसा";break;case"dd":n="%d दिवसां";break;case"M":n="एका महिन्या";break;case"MM":n="%d महिन्यां";break;case"y":n="एका वर्षा";break;case"yy":n="%d वर्षां"}return n.replace(/%d/i,e)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Mn,ss:Mn,m:Mn,mm:Mn,h:Mn,hh:Mn,d:Mn,dd:Mn,M:Mn,MM:Mn,y:Mn,yy:Mn},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return ln[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return un[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात्री"===a?e<4?e:e+12:"सकाळी"===a?e:"दुपारी"===a?e>=10?e:e+12:"सायंकाळी"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,t){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});var hn={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},Ln={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return Ln[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return hn[e]})},week:{dow:1,doy:4}}),t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var cn={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Yn={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return Yn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return cn[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,a){return 12===e&&(e=0),"राति"===a?e<4?e:e+12:"बिहान"===a?e:"दिउँसो"===a?e>=10?e:e+12:"साँझ"===a?e+12:void 0},meridiem:function(e,a,t){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var yn="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),fn="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),pn=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],kn=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?fn[e.month()]:yn[e.month()]:yn},monthsRegex:kn,monthsShortRegex:kn,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:pn,longMonthsParse:pn,shortMonthsParse:pn,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});var Dn="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Tn="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),gn=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],wn=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?Tn[e.month()]:Dn[e.month()]:Dn},monthsRegex:wn,monthsShortRegex:wn,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:gn,longMonthsParse:gn,shortMonthsParse:gn,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var vn={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Sn={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return Sn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return vn[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,a){return 12===e&&(e=0),"ਰਾਤ"===a?e<4?e:e+12:"ਸਵੇਰ"===a?e:"ਦੁਪਹਿਰ"===a?e>=10?e:e+12:"ਸ਼ਾਮ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var Hn="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),bn="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function jn(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function xn(e,a,t){var s=e+" ";switch(t){case"ss":return s+(jn(e)?"sekundy":"sekund");case"m":return a?"minuta":"minutę";case"mm":return s+(jn(e)?"minuty":"minut");case"h":return a?"godzina":"godzinę";case"hh":return s+(jn(e)?"godziny":"godzin");case"MM":return s+(jn(e)?"miesiące":"miesięcy");case"yy":return s+(jn(e)?"lata":"lat")}}function Pn(e,a,t){var s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[t]}function On(e,a,t){var s,n;return"m"===t?a?"минута":"минуту":e+" "+(s=+e,n={ss:a?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:a?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[t].split("_"),s%10==1&&s%100!=11?n[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?n[1]:n[2])}t.defineLocale("pl",{months:function(e,a){return e?""===a?"("+bn[e.month()]+"|"+Hn[e.month()]+")":/D MMMM/.test(a)?bn[e.month()]:Hn[e.month()]:Hn},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:xn,m:xn,mm:xn,h:xn,hh:xn,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:xn,y:"rok",yy:xn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"}),t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:Pn,m:"un minut",mm:Pn,h:"o oră",hh:Pn,d:"o zi",dd:Pn,M:"o lună",MM:Pn,y:"un an",yy:Pn},week:{dow:1,doy:7}});var Wn=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Wn,longMonthsParse:Wn,shortMonthsParse:Wn,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:On,m:On,mm:On,h:"час",hh:On,d:"день",dd:On,M:"месяц",MM:On,y:"год",yy:On},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});var En=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],An=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:En,monthsShort:En,weekdays:An,weekdaysShort:An,weekdaysMin:An,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,a,t){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,a,t){return e>11?t?"ප.ව.":"පස් වරු":t?"පෙ.ව.":"පෙර වරු"}});var Fn="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),zn="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function Jn(e){return e>1&&e<5}function Nn(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"pár sekúnd":"pár sekundami";case"ss":return a||s?n+(Jn(e)?"sekundy":"sekúnd"):n+"sekundami";case"m":return a?"minúta":s?"minútu":"minútou";case"mm":return a||s?n+(Jn(e)?"minúty":"minút"):n+"minútami";case"h":return a?"hodina":s?"hodinu":"hodinou";case"hh":return a||s?n+(Jn(e)?"hodiny":"hodín"):n+"hodinami";case"d":return a||s?"deň":"dňom";case"dd":return a||s?n+(Jn(e)?"dni":"dní"):n+"dňami";case"M":return a||s?"mesiac":"mesiacom";case"MM":return a||s?n+(Jn(e)?"mesiace":"mesiacov"):n+"mesiacmi";case"y":return a||s?"rok":"rokom";case"yy":return a||s?n+(Jn(e)?"roky":"rokov"):n+"rokmi"}}function Rn(e,a,t,s){var n=e+" ";switch(t){case"s":return a||s?"nekaj sekund":"nekaj sekundami";case"ss":return n+=1===e?a?"sekundo":"sekundi":2===e?a||s?"sekundi":"sekundah":e<5?a||s?"sekunde":"sekundah":"sekund";case"m":return a?"ena minuta":"eno minuto";case"mm":return n+=1===e?a?"minuta":"minuto":2===e?a||s?"minuti":"minutama":e<5?a||s?"minute":"minutami":a||s?"minut":"minutami";case"h":return a?"ena ura":"eno uro";case"hh":return n+=1===e?a?"ura":"uro":2===e?a||s?"uri":"urama":e<5?a||s?"ure":"urami":a||s?"ur":"urami";case"d":return a||s?"en dan":"enim dnem";case"dd":return n+=1===e?a||s?"dan":"dnem":2===e?a||s?"dni":"dnevoma":a||s?"dni":"dnevi";case"M":return a||s?"en mesec":"enim mesecem";case"MM":return n+=1===e?a||s?"mesec":"mesecem":2===e?a||s?"meseca":"mesecema":e<5?a||s?"mesece":"meseci":a||s?"mesecev":"meseci";case"y":return a||s?"eno leto":"enim letom";case"yy":return n+=1===e?a||s?"leto":"letom":2===e?a||s?"leti":"letoma":e<5?a||s?"leta":"leti":a||s?"let":"leti"}}t.defineLocale("sk",{months:Fn,monthsShort:zn,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Nn,ss:Nn,m:Nn,mm:Nn,h:Nn,hh:Nn,d:Nn,dd:Nn,M:Nn,MM:Nn,y:Nn,yy:Nn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Rn,ss:Rn,m:Rn,mm:Rn,h:Rn,hh:Rn,d:Rn,dd:Rn,M:Rn,MM:Rn,y:Rn,yy:Rn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,a,t){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var In={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=In.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+In.correctGrammaticalCase(e,s)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:In.translate,m:In.translate,mm:In.translate,h:In.translate,hh:In.translate,d:"дан",dd:In.translate,M:"месец",MM:In.translate,y:"годину",yy:In.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Cn={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,a,t){var s=Cn.words[t];return 1===t.length?a?s[0]:s[1]:e+" "+Cn.correctGrammaticalCase(e,s)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Cn.translate,m:Cn.translate,mm:Cn.translate,h:Cn.translate,hh:Cn.translate,d:"dan",dd:Cn.translate,M:"mesec",MM:Cn.translate,y:"godinu",yy:Cn.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,a,t){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,a){return 12===e&&(e=0),"ekuseni"===a?e:"emini"===a?e>=11?e:e+12:"entsambama"===a||"ebusuku"===a?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"e":1===a?"a":2===a?"a":"e")},week:{dow:1,doy:4}}),t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var Gn={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Un={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return Un[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Gn[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,a,t){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,a){return 12===e&&(e=0),"யாமம்"===a?e<2?e:e+12:"வைகறை"===a||"காலை"===a?e:"நண்பகல்"===a&&e>=10?e:e+12},week:{dow:0,doy:6}}),t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,a){return 12===e&&(e=0),"రాత్రి"===a?e<4?e:e+12:"ఉదయం"===a?e:"మధ్యాహ్నం"===a?e>=10?e:e+12:"సాయంత్రం"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}});var Vn={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,a){return 12===e&&(e=0),"шаб"===a?e<4?e:e+12:"субҳ"===a?e:"рӯз"===a?e>=11?e:e+12:"бегоҳ"===a?e+12:void 0},meridiem:function(e,a,t){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(Vn[e]||Vn[e%10]||Vn[e>=100?100:null])},week:{dow:1,doy:7}}),t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,a,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var Kn="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function Zn(e,a,t,s){var n=function(e){var a=Math.floor(e%1e3/100),t=Math.floor(e%100/10),s=e%10,n="";a>0&&(n+=Kn[a]+"vatlh");t>0&&(n+=(""!==n?" ":"")+Kn[t]+"maH");s>0&&(n+=(""!==n?" ":"")+Kn[s]);return""===n?"pagh":n}(e);switch(t){case"ss":return n+" lup";case"mm":return n+" tup";case"hh":return n+" rep";case"dd":return n+" jaj";case"MM":return n+" jar";case"yy":return n+" DIS"}}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var a=e;return a=-1!==e.indexOf("jaj")?a.slice(0,-3)+"leS":-1!==e.indexOf("jar")?a.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?a.slice(0,-3)+"nem":a+" pIq"},past:function(e){var a=e;return a=-1!==e.indexOf("jaj")?a.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?a.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?a.slice(0,-3)+"ben":a+" ret"},s:"puS lup",ss:Zn,m:"wa’ tup",mm:Zn,h:"wa’ rep",hh:Zn,d:"wa’ jaj",dd:Zn,M:"wa’ jar",MM:Zn,y:"wa’ DIS",yy:Zn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var $n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};function Bn(e,a,t,s){var n={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s?n[t][0]:a?n[t][0]:n[t][1]}function qn(e,a,t){var s,n;return"m"===t?a?"хвилина":"хвилину":"h"===t?a?"година":"годину":e+" "+(s=+e,n={ss:a?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:a?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:a?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[t].split("_"),s%10==1&&s%100!=11?n[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?n[1]:n[2])}function Qn(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,a){switch(a){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var t=e%10;return e+($n[t]||$n[e%100-t]||$n[e>=100?100:null])}},week:{dow:1,doy:7}}),t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,a,t){return e>11?t?"d'o":"D'O":t?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Bn,ss:Bn,m:Bn,mm:Bn,h:Bn,hh:Bn,d:Bn,dd:Bn,M:Bn,MM:Bn,y:Bn,yy:Bn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,a){return 12===e&&(e=0),"يېرىم كېچە"===a||"سەھەر"===a||"چۈشتىن بۇرۇن"===a?e:"چۈشتىن كېيىن"===a||"كەچ"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var s=100*e+a;return s<600?"يېرىم كېچە":s<900?"سەھەر":s<1130?"چۈشتىن بۇرۇن":s<1230?"چۈش":s<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}}),t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,a){var t={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?t[/(\[[ВвУу]\]) ?dddd/.test(a)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(a)?"genitive":"nominative"][e.day()]:t.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Qn("[Сьогодні "),nextDay:Qn("[Завтра "),lastDay:Qn("[Вчора "),nextWeek:Qn("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Qn("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Qn("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:qn,m:qn,mm:qn,h:"годину",hh:qn,d:"день",dd:qn,M:"місяць",MM:qn,y:"рік",yy:qn},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,a,t){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,a){switch(a){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var Xn=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],ed=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return t.defineLocale("ur",{months:Xn,monthsShort:Xn,weekdays:ed,weekdaysShort:ed,weekdaysMin:ed,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,a,t){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,a,t){return e<12?t?"sa":"SA":t?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}}),t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"下午"===a||"晚上"===a?e+12:e>=11?e:e+12},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,a){return 12===e&&(e=0),"凌晨"===a||"早上"===a||"上午"===a?e:"中午"===a?e>=11?e:e+12:"下午"===a||"晚上"===a?e+12:void 0},meridiem:function(e,a,t){var s=100*e+a;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,a){switch(a){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),t.locale("en"),t});/**
 * @license MIT
 * @fileOverview Favico animations
 * @author Miroslav Magda, https://github.com/ejci/favico.js/
 * @version 0.3.10
 */
!function(){var t=function(t){"use strict";t=t||{};var e,o,n,r,i,a,s,l,f,c,h,u,d,y,w,g,x={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,dataUrl:!1,win:window};(d={}).ff="undefined"!=typeof InstallTrigger,d.chrome=!!window.chrome,d.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,d.ie=!1,d.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,d.supported=d.chrome||d.ff||d.opera;var p=[];h=function(){},l=u=!1;var m={ready:function(){l=!0,m.reset(),h()},reset:function(){l&&(p=[],f=!1,c=!1,a.clearRect(0,0,r,n),a.drawImage(s,0,0,r,n),I.setIcon(i),window.clearTimeout(y),window.clearTimeout(w))}};m.start=function(){if(l&&!c){if(p.length>0){c=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(t){t in p[0].options&&(e[t]=p[0].options[t])}),A.run(p[0].options,function(){f=p[0],c=!1,p.length>0&&(p.shift(),m.start())},!1)};f?A.run(f.options,function(){t()},!0):t()}}};var b={},v=function(t){return t.n="number"==typeof t.n?Math.abs(0|t.n):t.n,t.x=r*t.x,t.y=n*t.y,t.w=r*t.w,t.h=n*t.h,t.len=(""+t.n).length,t};b.circle=function(t){var o=!1;2===(t=v(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w,o=!0):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w,o=!0),a.clearRect(0,0,r,n),a.drawImage(s,0,0,r,n),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.85:1))+"px "+e.fontFamily,a.font=a.font?a.font.replace("10px","9px"):a.font,a.textAlign="center",o?(a.moveTo(t.x+t.w/2,t.y),a.lineTo(t.x+t.w-t.h/2,t.y),a.quadraticCurveTo(t.x+t.w,t.y,t.x+t.w,t.y+t.h/2),a.lineTo(t.x+t.w,t.y+t.h-t.h/2),a.quadraticCurveTo(t.x+t.w,t.y+t.h,t.x+t.w-t.h/2,t.y+t.h),a.lineTo(t.x+t.h/2,t.y+t.h),a.quadraticCurveTo(t.x,t.y+t.h,t.x,t.y+t.h-t.h/2),a.lineTo(t.x,t.y+t.h/2),a.quadraticCurveTo(t.x,t.y,t.x+t.h/2,t.y)):a.arc(t.x+t.w/2,t.y+t.h/2,t.h/2,0,2*Math.PI),a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fill(),a.closePath(),a.beginPath(),a.stroke(),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()},b.rectangle=function(t){2===(t=v(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w),a.clearRect(0,0,r,n),a.drawImage(s,0,0,r,n),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.9:1))+"px "+e.fontFamily,a.textAlign="center",a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fillRect(t.x,t.y,t.w,t.h),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()};function C(t){if(t.paused||t.ended||u)return!1;try{a.clearRect(0,0,r,n),a.drawImage(t,0,0,r,n)}catch(t){}w=setTimeout(function(){C(t)},A.duration),I.setIcon(i)}var I={};function T(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,o,n){return e+e+o+o+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return!!e&&{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}}function E(t,e){var o,n={};for(o in t)n[o]=t[o];for(o in e)n[o]=e[o];return n}I.getIcon=function(){var t=!1;return e.element?t=e.element:e.elementId?(t=g.getElementById(e.elementId)).setAttribute("href",t.getAttribute("src")):!1===(t=function(){for(var t=document.getElementsByTagName("head")[0].getElementsByTagName("link"),e=!1,o=t.length-1;o>=0;o--)/(^|\s)icon(\s|$)/i.test(t[o].getAttribute("rel"))&&(e?d.chrome&&t[o].parentNode.removeChild(t[o]):e=t[o]);return e}())&&((t=g.createElement("link")).setAttribute("rel","icon"),g.getElementsByTagName("head")[0].appendChild(t)),t.setAttribute("type","image/png"),t},I.setIcon=function(t){var n=t.toDataURL("image/png");if(e.dataUrl&&e.dataUrl(n),e.element)e.element.setAttribute("href",n),e.element.setAttribute("src",n);else if(e.elementId){var r=g.getElementById(e.elementId);r.setAttribute("href",n),r.setAttribute("src",n)}else if(d.ff||d.opera){var i=o;o=g.createElement("link"),d.opera&&o.setAttribute("rel","icon"),o.setAttribute("rel","icon"),o.setAttribute("type","image/png"),g.getElementsByTagName("head")[0].appendChild(o),o.setAttribute("href",n),i.parentNode&&i.parentNode.removeChild(i)}else o.setAttribute("href",n)};var A={duration:40,types:{}};return A.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],A.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],A.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],A.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],A.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],A.run=function(t,o,n,r){var a=A.types[g.hidden||g.msHidden||g.webkitHidden||g.mozHidden?"none":e.animation];r=!0===n?void 0!==r?r:a.length-1:void 0!==r?r:0,o=o||function(){},r<a.length&&r>=0?(b[e.type](E(t,a[r])),y=setTimeout(function(){n?r-=1:r+=1,A.run(t,o,n,r)},A.duration),I.setIcon(i)):o()},function(){(e=E(x,t)).bgColor=T(e.bgColor),e.textColor=T(e.textColor),e.position=e.position.toLowerCase(),e.animation=A.types[""+e.animation]?e.animation:x.animation,g=e.win.document;var l=e.position.indexOf("up")>-1,f=e.position.indexOf("left")>-1;if(l||f)for(var c in A.types)for(var h=0;h<A.types[c].length;h++){var u=A.types[c][h];l&&(u.y<.6?u.y=u.y-.4:u.y=u.y-2*u.y+(1-u.w)),f&&(u.x<.6?u.x=u.x-.4:u.x=u.x-2*u.x+(1-u.h)),A.types[c][h]=u}e.type=b[""+e.type]?e.type:x.type,o=I.getIcon(),i=document.createElement("canvas"),s=document.createElement("img"),o.hasAttribute("href")?(s.setAttribute("crossOrigin","anonymous"),s.onload=function(){n=s.height>0?s.height:32,r=s.width>0?s.width:32,i.height=n,i.width=r,a=i.getContext("2d"),m.ready()},s.setAttribute("src",o.getAttribute("href"))):(s.onload=function(){n=32,r=32,s.height=n,s.width=r,i.height=n,i.width=r,a=i.getContext("2d"),m.ready()},s.setAttribute("src",""))}(),{badge:function(t,e){e=("string"==typeof e?{animation:e}:e)||{},h=function(){try{if("number"==typeof t?t>0:""!==t){var o={type:"badge",options:{n:t}};if("animation"in e&&A.types[""+e.animation]&&(o.options.animation=""+e.animation),"type"in e&&b[""+e.type]&&(o.options.type=""+e.type),["bgColor","textColor"].forEach(function(t){t in e&&(o.options[t]=T(e[t]))}),["fontStyle","fontFamily"].forEach(function(t){t in e&&(o.options[t]=e[t])}),p.push(o),p.length>100)throw new Error("Too many badges requests in queue.");m.start()}else m.reset()}catch(t){throw new Error("Error setting badge. Message: "+t.message)}},l&&h()},video:function(t){h=function(){try{if("stop"===t)return u=!0,m.reset(),void(u=!1);t.addEventListener("play",function(){C(this)},!1)}catch(t){throw new Error("Error setting video. Message: "+t.message)}},l&&h()},image:function(t){h=function(){try{var e=t.width,o=t.height,s=document.createElement("img"),l=e/r<o/n?e/r:o/n;s.setAttribute("crossOrigin","anonymous"),s.onload=function(){a.clearRect(0,0,r,n),a.drawImage(s,0,0,r,n),I.setIcon(i)},s.setAttribute("src",t.getAttribute("src")),s.height=o/l,s.width=e/l}catch(t){throw new Error("Error setting image. Message: "+t.message)}},l&&h()},webcam:function(t){if(window.URL&&window.URL.createObjectURL||(window.URL=window.URL||{},window.URL.createObjectURL=function(t){return t}),d.supported){var e=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,h=function(){try{if("stop"===t)return u=!0,m.reset(),void(u=!1);(e=document.createElement("video")).width=r,e.height=n,navigator.getUserMedia({video:!0,audio:!1},function(t){e.src=URL.createObjectURL(t),e.play(),C(e)},function(){})}catch(t){throw new Error("Error setting webcam. Message: "+t.message)}},l&&h()}},reset:m.reset,browser:{supported:d.supported}}};"undefined"!=typeof define&&define.amd?define([],function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:this.Favico=t}(),function(){var t=document.getElementsByTagName("title")[0],e=0,o=Number.MAX_VALUE,n=/^\(\d*\+?\) /;function r(){0!==e?(notificationTotalstr=e,e>o&&(notificationTotalstr=o+"+"),n.exec(t.text)?t.text=t.text.replace(n,"("+notificationTotalstr+") "):t.text="("+notificationTotalstr+") "+t.text):t.text=t.text.replace(n,"")}function i(t){return!isNaN(parseFloat(t))&&isFinite(t)}window.titlenotifier={add:function(t){void 0===t&&(t=1),e+=parseInt(t,10),r()},sub:function(t){void 0===t&&(t=1),t=parseInt(t,10),0!==e&&(t>e?e=0:e-=parseInt(t,10),r())},set:function(t){!i(t)||t<0||(e=parseInt(t,10),r())},reset:function(){e=0,r()},get:function(){return e},max:function(t){!i(t)||t<=0||(o=parseInt(t,10),r())}}}();/*!
 * Select2 4.0.5
 * https://select2.github.io
 *
 * Released under the MIT license
 * https://github.com/select2/select2/blob/master/LICENSE.md
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o,r;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,s,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,i,o,r,s,a,l,c,d,p,h,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(p=g.length;p>0;p-=1)if((o=m[g.slice(0,p).join("/")])&&(o=o[i])){r=o,a=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function w(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error("No "+n);return l[n]}function _(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function $(e){return e?_(e):[]}s=function(e,t){var n,i,o=_(e),r=o[0],s=t[1];return e=o[1],r&&(n=w(r=m(r,s))),r?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(r=(o=_(e=m(e,s)))[0],e=o[1],r&&(n=w(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},a={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:function(e){return function(){return u&&u.config&&u.config[e]||{}}}(e)}}},t=function(t,n,i,o){var r,u,p,h,f,m,_,b=[],x=typeof i;if(m=$(o=o||t),"undefined"===x||"function"===x){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=s(n[f],m)).f))b[f]=a.require(t);else if("exports"===u)b[f]=a.exports(t),_=!0;else if("module"===u)r=b[f]=a.module(t);else if(g(l,u)||g(c,u)||g(d,u))b[f]=w(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,v(o,!0),y(u),{}),b[f]=l[u]}p=i?i.apply(l[t],b):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&_||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,c){if("string"==typeof n)return a[n]?a[n](i):w(s(n,$(i)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},"function"==typeof o&&(o=l,l=c),l?t(e,n,i,o):setTimeout(function(){t(e,n,i,o)},4),r},r.config=function(e){return r(e)},n._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<o.length;s++){var a=o[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];r.prototype[u]=l(u)}return r};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.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(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var t=e(this),n=e.data(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};for(var o in t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]),i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,o=t.id+"-results";this.$results.attr("id",o),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===n?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),o=n.data("data");"true"!==n.attr("aria-selected")?i.trigger("select",{originalEvent:t,data:o}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:o}):i.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(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 e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target).closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=n[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.options.get("disabled")){var n=e(this).parent().data("data");o.trigger("unselect",{originalEvent:t,data:n})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=this.display(o,r);r.append(s),r.prop("title",o.title||o.text),r.data("data",o),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,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(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">&times;</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<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="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this;e.call(this,t,i),t.on("open",function(){o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(e){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");o.searchRemoveChoice(i),e.preventDefault()}}});var r=document.documentMode,s=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"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","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];(e=[e]).push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,"data",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],r=0;r<i.length;r++){var s=n(i[r]),a=this.item(s);o.push(a)}t.children=o}return(t=this._normalizeItem(t)).element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=o.filter(a(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(f,g)}s.push(f)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=o.transport(o,function(o){var r=i.processResults(o,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){r.status&&"0"===r.status||i.trigger("results:message",{message:"errorLoading"})});i._request=r}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(o,r){for(var s=o.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(o.data=s,void n(o))}if(r)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}o.results=s,n(o)}):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,function(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}!function(e){o.trigger("select",{data:e})}(n)});r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.focus()),n.term=r.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(o(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<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="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),n.on("focus",function(){n.isOpen()||o.$search.focus()}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&t&&(o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+s+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-a,d=c>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f=h.offset();p.top-=f.top,p.left-=f.left,n||i||(o="below"),d||!u||n?!u&&d&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(p.top=s.top-f.top-a),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.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(e,t,n,i,o,r,s,a,l,c,u,d,p,h,f,g,m,v,y,w,_,$,b,x,A,C,S,O,E){function D(){this.reset()}return D.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,w)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var E=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,E)}if(null!=d.initSelection){var D=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,S))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var T=c.Decorate(_,$);d.dropdownAdapter=T}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,C)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var q=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,q)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,A)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var j=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,j)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var L=d.language.split("-")[0];d.language=[d.language,L]}else d.language=[d.language];if(e.isArray(d.language)){var k=new u;d.language.push("en");for(var P=d.language,I=0;I<P.length;I++){var M=P[I],R={};try{R=u.loadPath(M)}catch(e){try{M=this.defaults.amdLanguageBase+M,R=u.loadPath(M)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}k.extend(R)}d.translations=k}else{var z=u.loadPath(this.defaults.amdLanguageBase+"en"),H=new u(d.language);H.extend(z),d.translations=H}return d},D.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:E,matcher:function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--)null==n(i,o.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},D.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(this.defaults,o)},new D}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("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.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);for(var s in r=i._convertData(r))t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.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)},o.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 i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),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))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.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",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),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},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("select2/compat/utils",["jquery"],function(e){return{syncCssClasses:function(t,n,i){var o,r,s=[];(o=e.trim(t.attr("class")))&&e((o=""+o).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)}),(o=e.trim(n.attr("class")))&&e((o=""+o).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)}),t.attr("class",s.join(" "))}}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("containerCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("dropdownCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,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,e.call(this,t,n)}return t.prototype.current=function(t,n){var i=this;this._isInitialized?t.call(this,n):this.initSelection.call(null,this.$element,function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.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."),e.call(this,t,n)}return t.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},t.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("change")})},t.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},t.prototype.addOptions=function(t,n){var i=e.map(n,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,i)},t}),t.define("select2/compat/matcher",["jquery"],function(e){return function(t){return function(n,i){var o=e.extend(!0,{},i);if(null==n.term||""===e.trim(n.term))return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}}}),t.define("select2/compat/query",[],function(){function e(e,t,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."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,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(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,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(e){e.stopPropagation()})},e}),
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
r=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(e.event.fixHooks)for(var s=i.length;s;)e.event.fixHooks[i[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(i){var o,s=i||window.event,l=r.call(arguments,1),d=0,p=0,h=0,f=0,g=0;if((i=e.event.fix(s)).type="mousewheel","detail"in s&&(h=-1*s.detail),"wheelDelta"in s&&(h=s.wheelDelta),"wheelDeltaY"in s&&(h=s.wheelDeltaY),"wheelDeltaX"in s&&(p=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*h,h=0),d=0===h?p:h,"deltaY"in s&&(d=h=-1*s.deltaY),"deltaX"in s&&(p=s.deltaX,0===h&&(d=-1*p)),0!==h||0!==p){if(1===s.deltaMode){var m=e.data(this,"mousewheel-line-height");d*=m,h*=m,p*=m}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");d*=v,h*=v,p*=v}if(o=Math.max(Math.abs(h),Math.abs(p)),(!n||o<n)&&(n=o,u(s,o)&&(n/=40)),u(s,o)&&(d/=40,p/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/n),p=Math[p>=1?"floor":"ceil"](p/n),h=Math[h>=1?"floor":"ceil"](h/n),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=i.clientX-y.left,g=i.clientY-y.top}return i.deltaX=p,i.deltaY=h,i.deltaFactor=n,i.offsetX=f,i.offsetY=g,i.deltaMode=0,l.unshift(i,d,p,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function c(){n=null}function u(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],r):"object"==typeof exports?module.exports=r:r(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,r)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n});!function(t){"function"==typeof define&&define.amd?define(t):window.purl=t()}(function(){var t={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href",embed:"src",object:"data"},e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],r={anchor:"fragment"},n={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},s=/^[0-9]+$/;function a(t,e){if(0===t[e].length)return t[e]={};var r={};for(var n in t[e])r[n]=t[e][n];return t[e]=r,r}function i(t,e,r){if(~e.indexOf("]")){!function t(e,r,n,i){var o=e.shift();if(o){var u=r[n]=r[n]||[];"]"==o?h(u)?""!==i&&u.push(i):"object"==typeof u?u[function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}(u).length]=i:u=r[n]=[r[n],i]:~o.indexOf("]")?(o=o.substr(0,o.length-1),!s.test(o)&&h(u)&&(u=a(r,n)),t(e,u,o,i)):(!s.test(o)&&h(u)&&(u=a(r,n)),t(e,u,o,i))}else h(r[n])?r[n].push(i):"object"==typeof r[n]?r[n]=i:void 0===r[n]?r[n]=i:r[n]=[r[n],i]}(e.split("["),t,"base",r)}else{if(!s.test(e)&&h(t.base)){var n={};for(var i in t.base)n[i]=t.base[i];t.base=n}""!==e&&function(t,e,r){var n=t[e];void 0===n?t[e]=r:h(n)?n.push(r):t[e]=[n,r]}(t.base,e,r)}return t}function o(t){return function(t,e){var r=0,n=t.length>>0,s=arguments[2];for(;r<n;)r in t&&(s=e.call(void 0,s,t[r],r,t)),++r;return s}(String(t).split(/&|;/),function(t,e){try{e=decodeURIComponent(e)}catch(t){}var r=e.indexOf("="),n=function(t){for(var e,r,n=t.length,s=0;s<n;++s)if("]"==(r=t[s])&&(e=!1),"["==r&&(e=!0),"="==r&&!e)return s}(e),s=e.substr(0,n||r),a=e.substr(n||r,e.length);return a=a.substr(a.indexOf("=")+1,a.length),""===s&&(s=e,a=""),i(t,s,a)},{base:{}}).base}function h(t){return"[object Array]"===Object.prototype.toString.call(t)}function u(t,s){return 1===arguments.length&&!0===t&&(s=!0,t=void 0),s=s||!1,{data:function(t,r){for(var s=decodeURI(t),a=n[r?"strict":"loose"].exec(s),i={attr:{},param:{},seg:{}},h=14;h--;)i.attr[e[h]]=a[h]||"";return i.param.query=o(i.attr.query),i.param.fragment=o(i.attr.fragment),i.seg.path=i.attr.path.replace(/^\/+|\/+$/g,"").split("/"),i.seg.fragment=i.attr.fragment.replace(/^\/+|\/+$/g,"").split("/"),i.attr.base=i.attr.host?(i.attr.protocol?i.attr.protocol+"://"+i.attr.host:i.attr.host)+(i.attr.port?":"+i.attr.port:""):"",i}(t=t||window.location.toString(),s),attr:function(t){return void 0!==(t=r[t]||t)?this.data.attr[t]:this.data.attr},param:function(t){return void 0!==t?this.data.param.query[t]:this.data.param.query},fparam:function(t){return void 0!==t?this.data.param.fragment[t]:this.data.param.fragment},segment:function(t){return void 0===t?this.data.seg.path:(t=t<0?this.data.seg.path.length+t:t-1,this.data.seg.path[t])},fsegment:function(t){return void 0===t?this.data.seg.fragment:(t=t<0?this.data.seg.fragment.length+t:t-1,this.data.seg.fragment[t])}}}return u.jQuery=function(e){null!=e&&(e.fn.url=function(r){var n="";return this.length&&(n=e(this).attr(function(e){var r=e.tagName;return void 0!==r?t[r.toLowerCase()]:r}(this[0]))||""),u(n,r)},e.url=u)},u.jQuery(window.jQuery),u}),
/*
 URI.js - Mutating URLs
 IPv6 Support

 Version: 1.18.9

 Author: Rodney Rehm
 Web: http://medialize.github.io/URI.js/

 Licensed under
   MIT License http://www.opensource.org/licenses/mit-license

 URI.js - Mutating URLs

 Version: 1.18.9

 Author: Rodney Rehm
 Web: http://medialize.github.io/URI.js/

 Licensed under
   MIT License http://www.opensource.org/licenses/mit-license

*/
function(t,e){"object"==typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.IPv6=e(t)}(this,function(t){var e=t&&t.IPv6;return{best:function(t){var e,r=(t=t.toLowerCase().split(":")).length,n=8;for(""===t[0]&&""===t[1]&&""===t[2]?(t.shift(),t.shift()):""===t[0]&&""===t[1]?t.shift():""===t[r-1]&&""===t[r-2]&&t.pop(),-1!==t[(r=t.length)-1].indexOf(".")&&(n=7),e=0;e<r&&""!==t[e];e++);if(e<n)for(t.splice(e,1,"0000");t.length<n;)t.splice(e,0,"0000");for(e=0;e<n;e++){r=t[e].split("");for(var s=0;3>s&&("0"===r[0]&&1<r.length);s++)r.splice(0,1);t[e]=r.join("")}r=-1;var a=s=0,i=-1,o=!1;for(e=0;e<n;e++)o?"0"===t[e]?a+=1:(o=!1,a>s&&(r=i,s=a)):"0"===t[e]&&(o=!0,i=e,a=1);for(a>s&&(r=i,s=a),1<s&&t.splice(r,s,""),r=t.length,n="",""===t[0]&&(n=":"),e=0;e<r&&(n+=t[e],e!==r-1);e++)n+=":";return""===t[r-1]&&(n+=":"),n},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}),function(t,e){"object"==typeof module&&module.exports?module.exports=e(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)}(this,function(t,e,r,n){function s(t,e){var r=1<=arguments.length,n=2<=arguments.length;if(!(this instanceof s))return r?n?new s(t,e):new s(t):new s;if(void 0===t){if(r)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&r)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}function a(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function i(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function o(t){return"Array"===i(t)}function h(t,e){var r,n,s={};if("RegExp"===i(e))s=null;else if(o(e))for(r=0,n=e.length;r<n;r++)s[e[r]]=!0;else s[e]=!0;for(r=0,n=t.length;r<n;r++)(s&&void 0!==s[t[r]]||!s&&e.test(t[r]))&&(t.splice(r,1),n--,r--);return t}function u(t,e){var r,n;if(o(e)){for(r=0,n=e.length;r<n;r++)if(!u(t,e[r]))return!1;return!0}var s=i(e);for(r=0,n=t.length;r<n;r++)if("RegExp"===s){if("string"==typeof t[r]&&t[r].match(e))return!0}else if(t[r]===e)return!0;return!1}function p(t,e){if(!o(t)||!o(e)||t.length!==e.length)return!1;t.sort(),e.sort();for(var r=0,n=t.length;r<n;r++)if(t[r]!==e[r])return!1;return!0}function c(t){return t.replace(/^\/+|\/+$/g,"")}function l(t){return escape(t)}function d(t){return encodeURIComponent(t).replace(/[!'()*]/g,l).replace(/\*/g,"%2A")}function f(t){return function(e,r){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!r),this)}}function m(t,e){return function(r,n){return void 0===r?this._parts[t]||"":(null!==r&&((r+="").charAt(0)===e&&(r=r.substring(1))),this._parts[t]=r,this.build(!n),this)}}var g=n&&n.URI;s.version="1.18.9";var y=s.prototype,v=Object.prototype.hasOwnProperty;s._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:s.duplicateQueryParameters,escapeQuerySpace:s.escapeQuerySpace}},s.duplicateQueryParameters=!1,s.escapeQuerySpace=!0,s.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,s.idn_expression=/[^a-z0-9\.-]/i,s.punycode_expression=/(xn--)/i,s.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,s.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,s.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/gi,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return s.domAttributes[e]}},s.encode=d,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=d,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(t,e){var r=s.encode(t+"");return void 0===e&&(e=s.escapeQuerySpace),e?r.replace(/%20/g,"+"):r},s.decodeQuery=function(t,e){t+="",void 0===e&&(e=s.escapeQuerySpace);try{return s.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var _,b={encode:"encode",decode:"decode"},w=function(t,e){return function(r){try{return s[e](r+"").replace(s.characters[t][e].expression,function(r){return s.characters[t][e].map[r]})}catch(t){return r}}};for(_ in b)s[_+"PathSegment"]=w("pathname",b[_]),s[_+"UrnPathSegment"]=w("urnpath",b[_]);b=function(t,e,r){return function(n){var a;a=r?function(t){return s[e](s[r](t))}:s[e];for(var i=0,o=(n=(n+"").split(t)).length;i<o;i++)n[i]=a(n[i]);return n.join(t)}},s.decodePath=b("/","decodePathSegment"),s.decodeUrnPath=b(":","decodeUrnPathSegment"),s.recodePath=b("/","encodePathSegment","decode"),s.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),s.encodeReserved=w("reserved","encode"),s.parse=function(t,e){var r;return e||(e={}),-1<(r=t.indexOf("#"))&&(e.fragment=t.substring(r+1)||null,t=t.substring(0,r)),-1<(r=t.indexOf("?"))&&(e.query=t.substring(r+1)||null,t=t.substring(0,r)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=s.parseAuthority(t,e)):-1<(r=t.indexOf(":"))&&(e.protocol=t.substring(0,r)||null,e.protocol&&!e.protocol.match(s.protocol_expression)?e.protocol=void 0:"//"===t.substring(r+1,r+3)?(t=t.substring(r+3),t=s.parseAuthority(t,e)):(t=t.substring(r+1),e.urn=!0)),e.path=t,e},s.parseHost=function(t,e){var r,n=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===n&&(n=t.length),"["===t.charAt(0))r=t.indexOf("]"),e.hostname=t.substring(1,r)||null,e.port=t.substring(r+2,n)||null,"/"===e.port&&(e.port=null);else{var s=t.indexOf(":");r=t.indexOf("/"),-1!==(s=t.indexOf(":",s+1))&&(-1===r||s<r)?(e.hostname=t.substring(0,n)||null,e.port=null):(r=t.substring(0,n).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(n).charAt(0)&&(n++,t="/"+t),t.substring(n)||"/"},s.parseAuthority=function(t,e){return t=s.parseUserinfo(t,e),s.parseHost(t,e)},s.parseUserinfo=function(t,e){var r=t.indexOf("/"),n=t.lastIndexOf("@",-1<r?r:t.length-1);return-1<n&&(-1===r||n<r)?(r=t.substring(0,n).split(":"),e.username=r[0]?s.decode(r[0]):null,r.shift(),e.password=r[0]?s.decode(r.join(":")):null,t=t.substring(n+1)):(e.username=null,e.password=null),t},s.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,a={},i=t.split("&"),o=i.length,h=0;h<o;h++)r=i[h].split("="),n=s.decodeQuery(r.shift(),e),r=r.length?s.decodeQuery(r.join("="),e):null,v.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(r)):a[n]=r;return a},s.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=s.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},s.buildHost=function(t){var e="";return t.hostname?(e=s.ip6_expression.test(t.hostname)?e+"["+t.hostname+"]":e+t.hostname,t.port&&(e+=":"+t.port),e):""},s.buildAuthority=function(t){return s.buildUserinfo(t)+s.buildHost(t)},s.buildUserinfo=function(t){var e="";return t.username&&(e+=s.encode(t.username)),t.password&&(e+=":"+s.encode(t.password)),e&&(e+="@"),e},s.buildQuery=function(t,e,r){var n,a,i,h,u="";for(a in t)if(v.call(t,a)&&a)if(o(t[a]))for(n={},i=0,h=t[a].length;i<h;i++)void 0!==t[a][i]&&void 0===n[t[a][i]+""]&&(u+="&"+s.buildQueryParameter(a,t[a][i],r),!0!==e&&(n[t[a][i]+""]=!0));else void 0!==t[a]&&(u+="&"+s.buildQueryParameter(a,t[a],r));return u.substring(1)},s.buildQueryParameter=function(t,e,r){return s.encodeQuery(t,r)+(null!==e?"="+s.encodeQuery(e,r):"")},s.addQuery=function(t,e,r){if("object"==typeof e)for(var n in e)v.call(e,n)&&s.addQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");void 0===t[e]?t[e]=r:("string"==typeof t[e]&&(t[e]=[t[e]]),o(r)||(r=[r]),t[e]=(t[e]||[]).concat(r))}},s.removeQuery=function(t,e,r){var n;if(o(e))for(r=0,n=e.length;r<n;r++)t[e[r]]=void 0;else if("RegExp"===i(e))for(n in t)e.test(n)&&(t[n]=void 0);else if("object"==typeof e)for(n in e)v.call(e,n)&&s.removeQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===i(r)?!o(t[e])&&r.test(t[e])?t[e]=void 0:t[e]=h(t[e],r):t[e]!==String(r)||o(r)&&1!==r.length?o(t[e])&&(t[e]=h(t[e],r)):t[e]=void 0:t[e]=void 0}},s.hasQuery=function(t,e,r,n){switch(i(e)){case"String":break;case"RegExp":for(var a in t)if(v.call(t,a)&&e.test(a)&&(void 0===r||s.hasQuery(t,a,r)))return!0;return!1;case"Object":for(var h in e)if(v.call(e,h)&&!s.hasQuery(t,h,e[h]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(i(r)){case"Undefined":return e in t;case"Boolean":return r===(t=!(o(t[e])?!t[e].length:!t[e]));case"Function":return!!r(t[e],e,t);case"Array":return!!o(t[e])&&(n?u:p)(t[e],r);case"RegExp":return o(t[e])?!!n&&u(t[e],r):!(!t[e]||!t[e].match(r));case"Number":r=String(r);case"String":return o(t[e])?!!n&&u(t[e],r):t[e]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},s.joinPaths=function(){for(var t=[],e=[],r=0,n=0;n<arguments.length;n++){var a=new s(arguments[n]);t.push(a);a=a.segment();for(var i=0;i<a.length;i++)"string"==typeof a[i]&&e.push(a[i]),a[i]&&r++}return e.length&&r?(e=new s("").segment(e),""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||e.path("/"+e.path()),e.normalize()):new s("")},s.commonPath=function(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r)){r--;break}return 1>r?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(r)&&"/"===e.charAt(r)||(r=t.substring(0,r).lastIndexOf("/")),t.substring(0,r+1))},s.withinString=function(t,e,r){r||(r={});var n=r.start||s.findUri.start,a=r.end||s.findUri.end,i=r.trim||s.findUri.trim,o=r.parens||s.findUri.parens,h=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var u=n.exec(t);if(!u)break;var p=u.index;if(r.ignoreHtml)if((l=t.slice(Math.max(p-3,0),p))&&h.test(l))continue;var c=p+t.slice(p).search(a),l=t.slice(p,c);for(c=-1;;){var d=o.exec(l);if(!d)break;c=Math.max(c,d.index+d[0].length)}(l=-1<c?l.slice(0,c)+l.slice(c).replace(i,""):l.replace(i,"")).length<=u[0].length||r.ignore&&r.ignore.test(l)||(void 0===(u=e(l,p,c=p+l.length,t))?n.lastIndex=c:(u=String(u),t=t.slice(0,p)+u+t.slice(c),n.lastIndex=p+u.length))}return n.lastIndex=0,t},s.ensureValidHostname=function(e){if(e.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(t.toASCII(e).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]')}},s.noConflict=function(t){return t?(t={URI:this.noConflict()},n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t):(n.URI===this&&(n.URI=g),this)},y.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},y.clone=function(){return new s(this)},y.valueOf=y.toString=function(){return this.build(!1)._string},y.protocol=f("protocol"),y.username=f("username"),y.password=f("password"),y.hostname=f("hostname"),y.port=f("port"),y.query=m("query","?"),y.fragment=m("fragment","#"),y.search=function(t,e){var r=this.query(t,e);return"string"==typeof r&&r.length?"?"+r:r},y.hash=function(t,e){var r=this.fragment(t,e);return"string"==typeof r&&r.length?"#"+r:r},y.pathname=function(t,e){if(void 0===t||!0===t){var r=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?s.decodeUrnPath:s.decodePath)(r):r}return this._parts.path=this._parts.urn?t?s.recodeUrnPath(t):"":t?s.recodePath(t):"/",this.build(!e),this},y.path=y.pathname,y.href=function(t,e){var r;if(void 0===t)return this.toString();this._string="",this._parts=s._parts();var n=t instanceof s,a="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName&&(t=t[a=s.getDomAttribute(t)]||"",a=!1),!n&&a&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=s.parse(String(t),this._parts);else{if(!n&&!a)throw new TypeError("invalid input");for(r in n=n?t._parts:t)v.call(this._parts,r)&&(this._parts[r]=n[r])}return this.build(!e),this},y.is=function(t){var e=!1,n=!1,a=!1,i=!1,o=!1,h=!1,u=!1,p=!this._parts.urn;switch(this._parts.hostname&&(p=!1,n=s.ip4_expression.test(this._parts.hostname),a=s.ip6_expression.test(this._parts.hostname),o=(i=!(e=n||a))&&r&&r.has(this._parts.hostname),h=i&&s.idn_expression.test(this._parts.hostname),u=i&&s.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return p;case"absolute":return!p;case"domain":case"name":return i;case"sld":return o;case"ip":return e;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return a;case"idn":return h;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var Q=y.protocol,A=y.port,x=y.hostname;y.protocol=function(t,e){if(void 0!==t&&t&&!(t=t.replace(/:(\/\/)?$/,"")).match(s.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return Q.call(this,t,e)},y.scheme=y.protocol,y.port=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),t.match(/[^0-9]/))))throw new TypeError('Port "'+t+'" contains characters other than [0-9]');return A.call(this,t,e)},y.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var r={};if("/"!==s.parseHost(t,r))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=r.hostname}return x.call(this,t,e)},y.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}return r=s(t),this.protocol(r.protocol()).authority(r.authority()).build(!e),this},y.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?s.buildHost(this._parts):"";if("/"!==s.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},y.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?s.buildAuthority(this._parts):"";if("/"!==s.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},y.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=s.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==t[t.length-1]&&(t+="@"),s.parseUserinfo(t,this._parts),this.build(!e),this},y.resource=function(t,e){var r;return void 0===t?this.path()+this.search()+this.hash():(r=s.parse(t),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!e),this)},y.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}return r=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,r),r=new RegExp("^"+a(r)),t&&"."!==t.charAt(t.length-1)&&(t+="."),t&&s.ensureValidHostname(t),this._parts.hostname=this._parts.hostname.replace(r,t),this.build(!e),this},y.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);return r&&2>r.length?this._parts.hostname:(r=this._parts.hostname.length-this.tld(e).length-1,r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||"")}if(!t)throw new TypeError("cannot set domain empty");return s.ensureValidHostname(t),!this._parts.hostname||this.is("IP")?this._parts.hostname=t:(r=new RegExp(a(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(r,t)),this.build(!e),this},y.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf(".");n=this._parts.hostname.substring(n+1);return!0!==e&&r&&r.list[n.toLowerCase()]&&r.get(this._parts.hostname)||n}if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');n=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(n,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");n=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(n,t)}return this.build(!e),this},y.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1;r=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return t?s.decodePath(r):r}return r=this._parts.path.length-this.filename().length,r=this._parts.path.substring(0,r),r=new RegExp("^"+a(r)),this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=s.recodePath(t),this._parts.path=this._parts.path.replace(r,t),this.build(!e),this},y.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/");r=this._parts.path.substring(r+1);return t?s.decodePathSegment(r):r}r=!1,"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(r=!0);var n=new RegExp(a(this.filename())+"$");return t=s.recodePath(t),this._parts.path=this._parts.path.replace(n,t),r?this.normalizePath(e):this.build(!e),this},y.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var r=this.filename(),n=r.lastIndexOf(".");return-1===n?"":(r=r.substring(n+1),r=/^[a-z0-9%]+$/i.test(r)?r:"",t?s.decodePathSegment(r):r)}if("."===t.charAt(0)&&(t=t.substring(1)),r=this.suffix())n=t?new RegExp(a(r)+"$"):new RegExp(a("."+r)+"$");else{if(!t)return this;this._parts.path+="."+s.recodePath(t)}return n&&(t=s.recodePath(t),this._parts.path=this._parts.path.replace(n,t)),this.build(!e),this},y.segment=function(t,e,r){var n=this._parts.urn?":":"/",s="/"===(a=this.path()).substring(0,1),a=a.split(n);if(void 0!==t&&"number"!=typeof t&&(r=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw Error('Bad segment "'+t+'", must be 0-based integer');if(s&&a.shift(),0>t&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(o(e)){a=[],t=0;for(var i=e.length;t<i;t++)(e[t].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(c(e[t])))}else(e||"string"==typeof e)&&(e=c(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=c(e):a.splice(t,1);return s&&a.unshift(""),this.path(a.join(n),r)},y.segmentCoded=function(t,e,r){var n,a;if("number"!=typeof t&&(r=e,e=t,t=void 0),void 0===e){if(o(t=this.segment(t,e,r)))for(n=0,a=t.length;n<a;n++)t[n]=s.decode(t[n]);else t=void 0!==t?s.decode(t):void 0;return t}if(o(e))for(n=0,a=e.length;n<a;n++)e[n]=s.encode(e[n]);else e="string"==typeof e||e instanceof String?s.encode(e):e;return this.segment(t,e,r)};var P=y.query;return y.query=function(t,e){if(!0===t)return s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var r=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=t.call(this,r);return this._parts.query=s.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=s.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):P.call(this,t,e)},y.setQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)n[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var a in t)v.call(t,a)&&(n[a]=t[a])}return this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.addQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.addQuery(n,t,void 0===e?null:e),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.removeQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.removeQuery(n,t,e),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},y.hasQuery=function(t,e,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.hasQuery(n,t,e,r)},y.setSearch=y.setQuery,y.addSearch=y.addQuery,y.removeSearch=y.removeQuery,y.hasSearch=y.hasQuery,y.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},y.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},y.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},y.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===s.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},y.normalizePath=function(t){if(!(e=this._parts.path))return this;if(this._parts.urn)return this._parts.path=s.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var e,r,n,a,i="";for("/"!==(e=s.recodePath(e)).charAt(0)&&(r=!0,e="/"+e),"/.."!==e.slice(-3)&&"/."!==e.slice(-2)||(e+="/"),e=e.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),r&&(i=e.substring(1).match(/^(\.\.\/)+/)||"")&&(i=i[0]);-1!==(n=e.search(/\/\.\.(\/|$)/));)0!==n?(-1===(a=e.substring(0,n).lastIndexOf("/"))&&(a=n),e=e.substring(0,a)+e.substring(n+3)):e=e.substring(3);return r&&this.is("relative")&&(e=i+e.substring(1)),this._parts.path=e,this.build(!t),this},y.normalizePathname=y.normalizePath,y.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(s.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},y.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},y.normalizeSearch=y.normalizeQuery,y.normalizeHash=y.normalizeFragment,y.iso8859=function(){var t=s.encode,e=s.decode;s.encode=escape,s.decode=decodeURIComponent;try{this.normalize()}finally{s.encode=t,s.decode=e}return this},y.unicode=function(){var t=s.encode,e=s.decode;s.encode=d,s.decode=unescape;try{this.normalize()}finally{s.encode=t,s.decode=e}return this},y.readable=function(){var e=this.clone();e.username("").password("").normalize();var r="";if(e._parts.protocol&&(r+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(r+=t.toUnicode(e._parts.hostname),e._parts.port&&(r+=":"+e._parts.port)):r+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(r+="/"),r+=e.path(!0),e._parts.query){for(var n="",a=0,i=e._parts.query.split("&"),o=i.length;a<o;a++){var h=(i[a]||"").split("=");n=n+"&"+s.decodeQuery(h[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");void 0!==h[1]&&(n+="="+s.decodeQuery(h[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+s.decodeQuery(e.hash(),!0)},y.absoluteTo=function(t){var e,r,n=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t instanceof s||(t=new s(t)),n._parts.protocol)return n;if(n._parts.protocol=t._parts.protocol,this._parts.hostname)return n;for(e=0;r=a[e];e++)n._parts[r]=t._parts[r];return n._parts.path?(".."===n._parts.path.substring(-2)&&(n._parts.path+="/"),"/"!==n.path().charAt(0)&&(a=(a=t.directory())?a:0===t.path().indexOf("/")?"/":"",n._parts.path=(a?a+"/":"")+n._parts.path,n.normalizePath())):(n._parts.path=t._parts.path,n._parts.query||(n._parts.query=t._parts.query)),n.build(),n},y.relativeTo=function(t){var e,r,n,a=this.clone().normalize();if(a._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");if(t=new s(t).normalize(),e=a._parts,r=t._parts,n=a.path(),t=t.path(),"/"!==n.charAt(0))throw Error("URI is already relative");if("/"!==t.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");return e.protocol===r.protocol&&(e.protocol=null),e.username!==r.username||e.password!==r.password||null!==e.protocol||null!==e.username||null!==e.password||e.hostname!==r.hostname||e.port!==r.port?a.build():(e.hostname=null,e.port=null,n===t?(e.path="",a.build()):(n=s.commonPath(n,t))?(r=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),e.path=r+e.path.substring(n.length)||"./",a.build()):a.build())},y.equals=function(t){var e,r,n,a=this.clone(),i=new s(t);if(t={},a.normalize(),i.normalize(),a.toString()===i.toString())return!0;if(r=a.query(),e=i.query(),a.query(""),i.query(""),a.toString()!==i.toString()||r.length!==e.length)return!1;for(n in a=s.parseQuery(r,this._parts.escapeQuerySpace),e=s.parseQuery(e,this._parts.escapeQuerySpace),a)if(v.call(a,n)){if(o(a[n])){if(!p(a[n],e[n]))return!1}else if(a[n]!==e[n])return!1;t[n]=!0}for(n in e)if(v.call(e,n)&&!t[n])return!1;return!0},y.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},y.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},s});/*
 * jquery.injectCSS.js - jquery css injection plugin
 * Copyright (C) 2013, Robert Kajic (robert@kajic.com)
 * http://kajic.com
 *
 * https://github.com/kajic/jquery-injectCSS
 * Allows for injection of CSS defined as javascript JSS objects.
 *
 * Based on JSS (http://jss-lang.org/).
 *
 * Licensed under the MIT License.
 *
 * Date: 2013-01-08
 * Version: 0.1
 */
!function(jQuery){"use strict";function toCSS(jss,options){function jsonToCSS(e,t){for(var r in e&&!result[e]&&(result[e]={}),t){var s=t[r];if(s instanceof Array)for(var a=s,n=0;n<a.length;n++)addProperty(e,r,a[n]);else switch(typeof s){case"number":case"string":addProperty(e,r,s);break;case"object":var o=r.charAt(r.length-1);if(!e||"_"!==o&&"-"!==o)jsonToCSS(makeSelectorName(e,r),s);else{var i=s;for(var l in i)for(var u=l.split(/\s*,\s*/),c=0;c<u.length;c++){var v=i[l];if(v instanceof Array)for(var f=v,y=0;y<f.length;y++)addProperty(e,r+u[c],f[y]);else addProperty(e,r+u[c],i[l])}}}}}function makePropertyName(e){return e.replace(/_/g,"-")}function makeSelectorName(e,t){for(var r=[],s=t.split(/\s*,\s*/),a=e.split(/\s*,\s*/),n=0;n<a.length;n++)for(var o=a[n],i=0;i<s.length;i++){var l=s[i];"&"===l.charAt(0)?r.push(o+l.substr(1)):r.push(o?o+" "+l:l)}return r.join(", ")}function addProperty(e,t,r){"number"!=typeof r||options.useRawValues||(r+="px");for(var s=t.split(/\s*,\s*/),a=0;a<s.length;a++){var n=makePropertyName(s[a]);result[e][n]?result[e][n].push(r):result[e][n]=[r]}}var result={};if("string"==typeof jss)try{eval("var jss = {"+jss+"}")}catch(e){return"/*\nUnable to parse JSS: "+e+"\n*/"}jsonToCSS("",jss);var ret="";for(var a in result){var css=result[a];for(var i in ret+=a+" {\n",css)for(var values=css[i],j=0;j<values.length;j++)ret+="\t"+i+": "+values[j]+";\n";ret+="}\n"}return ret}var defaults={truncateFirst:!1,container:null,containerName:"injected-css",useRawValues:!1};jQuery.injectCSS=function(e,t){(t=jQuery.extend({},defaults,t)).media=t.media||"all";var r=t.container&&jQuery(t.container)||jQuery("#"+t.containerName);r.length||(r=jQuery("<style data-persist></style>").appendTo("head").attr({media:t.media,type:"text/css"}));var s=r[0],a=void 0!==s.styleSheet&&void 0!==s.styleSheet.cssText,n="";return t.truncateFirst||(n+=a?s.styleSheet.cssText:r.text()),n+=toCSS(e,t),a?s.styleSheet.cssText=n:r.text(n),r}}(jQuery);!function(i){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera);/*!
 * jQuery Transit - CSS3 transitions and transformations
 * (c) 2011-2014 Rico Sta. Cruz
 * MIT Licensed.
 *
 * http://ricostacruz.com/jquery.transit
 * http://github.com/rstacruz/jquery.transit
 */
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){t.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var e=document.createElement("div"),n={};function i(t){if(t in e.style)return t;for(var n=["Moz","Webkit","O","ms"],i=t.charAt(0).toUpperCase()+t.substr(1),r=0;r<n.length;++r){var s=n[r]+i;if(s in e.style)return s}}var r=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;n.transition=i("transition"),n.transitionDelay=i("transitionDelay"),n.transform=i("transform"),n.transformOrigin=i("transformOrigin"),n.filter=i("Filter"),n.transform3d=(e.style[n.transform]="",e.style[n.transform]="rotateY(90deg)",""!==e.style[n.transform]);var s=n.transitionEnd={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[n.transition]||null;for(var a in n)n.hasOwnProperty(a)&&void 0===t.support[a]&&(t.support[a]=n[a]);function o(t){return"string"==typeof t&&this.parse(t),this}function u(t,e,n){!0===e?t.queue(n):e?t.queue(e,n):t.each(function(){n.call(this)})}function c(e,i,r,s){var a=function(e){var i=[];return t.each(e,function(e){e=t.camelCase(e),e=l(e=t.transit.propertyMap[e]||t.cssProps[e]||e),n[e]&&(e=l(n[e])),-1===t.inArray(e,i)&&i.push(e)}),i}(e);t.cssEase[r]&&(r=t.cssEase[r]);var o=d(i)+" "+r;parseInt(s,10)>0&&(o+=" "+d(s));var u=[];return t.each(a,function(t,e){u.push(e+" "+o)}),u.join(", ")}function f(e,i){i||(t.cssNumber[e]=!0),t.transit.propertyMap[e]=n.transform,t.cssHooks[e]={get:function(n){return t(n).css("transit:transform").get(e)},set:function(n,i){var r=t(n).css("transit:transform");r.setFromString(e,i),t(n).css({"transit:transform":r})}}}function l(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function p(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+e:t}function d(e){var n=e;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n=t.fx.speeds[n]||t.fx.speeds._default),p(n,"ms")}return e=null,t.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},t.cssHooks["transit:transform"]={get:function(e){return t(e).data("transform")||new o},set:function(e,i){var s=i;s instanceof o||(s=new o(s)),"WebkitTransform"!==n.transform||r?e.style[n.transform]=s.toString():e.style[n.transform]=s.toString(!0),t(e).data("transform",s)}},t.cssHooks.transform={set:t.cssHooks["transit:transform"].set},t.cssHooks.filter={get:function(t){return t.style[n.filter]},set:function(t,e){t.style[n.filter]=e}},t.fn.jquery<"1.8"&&(t.cssHooks.transformOrigin={get:function(t){return t.style[n.transformOrigin]},set:function(t,e){t.style[n.transformOrigin]=e}},t.cssHooks.transition={get:function(t){return t.style[n.transition]},set:function(t,e){t.style[n.transition]=e}}),f("scale"),f("scaleX"),f("scaleY"),f("translate"),f("rotate"),f("rotateX"),f("rotateY"),f("rotate3d"),f("perspective"),f("skewX"),f("skewY"),f("x",!0),f("y",!0),o.prototype={setFromString:function(t,e){var n="string"==typeof e?e.split(","):e.constructor===Array?e:[e];n.unshift(t),o.prototype.set.apply(this,n)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);this.setter[t]?this.setter[t].apply(this,e):this[t]=e.join(",")},get:function(t){return this.getter[t]?this.getter[t].apply(this):this[t]||0},setter:{rotate:function(t){this.rotate=p(t,"deg")},rotateX:function(t){this.rotateX=p(t,"deg")},rotateY:function(t){this.rotateY=p(t,"deg")},scale:function(t,e){void 0===e&&(e=t),this.scale=t+","+e},skewX:function(t){this.skewX=p(t,"deg")},skewY:function(t){this.skewY=p(t,"deg")},perspective:function(t){this.perspective=p(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!==t&&void 0!==t&&(this._translateX=p(t,"px")),null!==e&&void 0!==e&&(this._translateY=p(e,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");return t[0]&&(t[0]=parseFloat(t[0])),t[1]&&(t[1]=parseFloat(t[1])),t[0]===t[1]?t[0]:t},rotate3d:function(){for(var t=(this.rotate3d||"0,0,0,0deg").split(","),e=0;e<=3;++e)t[e]&&(t[e]=parseFloat(t[e]));return t[3]&&(t[3]=p(t[3],"deg")),t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(t){var e=[];for(var i in this)if(this.hasOwnProperty(i)){if(!n.transform3d&&("rotateX"===i||"rotateY"===i||"perspective"===i||"transformOrigin"===i))continue;"_"!==i[0]&&(t&&"scale"===i?e.push(i+"3d("+this[i]+",1)"):t&&"translate"===i?e.push(i+"3d("+this[i]+",0)"):e.push(i+"("+this[i]+")"))}return e.join(" ")}},t.fn.transition=t.fn.transit=function(e,i,r,a){var o=this,f=0,l=!0,p=t.extend(!0,{},e);"function"==typeof i&&(a=i,i=void 0),"object"==typeof i&&(r=i.easing,f=i.delay||0,l=void 0===i.queue||i.queue,a=i.complete,i=i.duration),"function"==typeof r&&(a=r,r=void 0),void 0!==p.easing&&(r=p.easing,delete p.easing),void 0!==p.duration&&(i=p.duration,delete p.duration),void 0!==p.complete&&(a=p.complete,delete p.complete),void 0!==p.queue&&(l=p.queue,delete p.queue),void 0!==p.delay&&(f=p.delay,delete p.delay),void 0===i&&(i=t.fx.speeds._default),void 0===r&&(r=t.cssEase._default),i=d(i);var h=c(p,i,r,f),b=t.transit.enabled&&n.transition?parseInt(i,10)+parseInt(f,10):0;if(0===b){return u(o,l,function(t){o.css(p),a&&a.apply(o),t&&t()}),o}var g={};return u(o,l,function(e){var i,r,u;this.offsetWidth=this.offsetWidth,i=e,r=!1,u=function(){r&&o.unbind(s,u),b>0&&o.each(function(){this.style[n.transition]=g[this]||null}),"function"==typeof a&&a.apply(o),"function"==typeof i&&i()},b>0&&s&&t.transit.useTransitionEnd?(r=!0,o.bind(s,u)):window.setTimeout(u,b),o.each(function(){b>0&&(this.style[n.transition]=h),t(this).css(p)})}),this},t.transit.getTransitionValue=c,t});(function(){var e,t=window.Messenger;e=window.Messenger=function(){return e._call.apply(this,arguments)},window.Messenger.noConflict=function(){return window.Messenger=t,e}})(),window.Messenger._=function(){if(window._)return window._;var e=Array.prototype,t=Object.prototype,n=Function.prototype,s=(e.push,e.slice),r=(e.concat,t.toString);t.hasOwnProperty;var o=e.forEach,i=(e.map,e.reduce,e.reduceRight,e.filter),a=(e.every,e.some,e.indexOf,e.lastIndexOf,Array.isArray,Object.keys),l=n.bind,u={},c={},h=u.each=u.forEach=function(e,t,n){if(null!=e)if(o&&e.forEach===o)e.forEach(t,n);else if(e.length===+e.length){for(var s=0,r=e.length;r>s;s++)if(t.call(n,e[s],s,e)===c)return}else for(var i in e)if(u.has(e,i)&&t.call(n,e[i],i,e)===c)return};u.result=function(e,t){if(null==e)return null;var n=e[t];return u.isFunction(n)?n.call(e):n},u.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}};var p=0;return u.uniqueId=function(e){var t=++p+"";return e?e+t:t},u.filter=u.select=function(e,t,n){var s=[];return null==e?s:i&&e.filter===i?e.filter(t,n):(h(e,function(e,r,o){t.call(n,e,r,o)&&(s[s.length]=e)}),s)},h(["Arguments","Function","String","Number","Date","RegExp"],function(e){u["is"+e]=function(t){return r.call(t)=="[object "+e+"]"}}),u.defaults=function(e){return h(s.call(arguments,1),function(t){if(t)for(var n in t)null==e[n]&&(e[n]=t[n])}),e},u.extend=function(e){return h(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},u.keys=a||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)u.has(e,n)&&(t[t.length]=n);return t},u.bind=function(e,t){if(e.bind===l&&l)return l.apply(e,s.call(arguments,1));var n=s.call(arguments,2);return function(){return e.apply(t,n.concat(s.call(arguments)))}},u.isObject=function(e){return e===Object(e)},u}(),window.Messenger.Events=function(){if(window.Backbone&&Backbone.Events)return Backbone.Events;return function(){var e=/\s+/,t=function(t,n,s,r){if(!s)return!0;if("object"==typeof s)for(var o in s)t[n].apply(t,[o,s[o]].concat(r));else{if(!e.test(s))return!0;for(var i=s.split(e),a=0,l=i.length;l>a;a++)t[n].apply(t,[i[a]].concat(r))}},n=function(e,t){var n,s=-1,r=e.length;switch(t.length){case 0:for(;r>++s;)(n=e[s]).callback.call(n.ctx);return;case 1:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0]);return;case 2:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0],t[1]);return;case 3:for(;r>++s;)(n=e[s]).callback.call(n.ctx,t[0],t[1],t[2]);return;default:for(;r>++s;)(n=e[s]).callback.apply(n.ctx,t)}},s={on:function(e,n,s){return t(this,"on",e,[n,s])&&n?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:n,context:s,ctx:s||this}),this):this},once:function(e,n,s){if(!t(this,"once",e,[n,s])||!n)return this;var r=this,o=_.once(function(){r.off(e,o),n.apply(this,arguments)});return o._callback=n,this.on(e,o,s),this},off:function(e,n,s){var r,o,i,a,l,u,c,h;if(!this._events||!t(this,"off",e,[n,s]))return this;if(!e&&!n&&!s)return this._events={},this;for(l=0,u=(a=e?[e]:_.keys(this._events)).length;u>l;l++)if(e=a[l],r=this._events[e]){if(i=[],n||s)for(c=0,h=r.length;h>c;c++)o=r[c],(n&&n!==o.callback&&n!==o.callback._callback||s&&s!==o.context)&&i.push(o);this._events[e]=i}return this},trigger:function(e){if(!this._events)return this;var s=Array.prototype.slice.call(arguments,1);if(!t(this,"trigger",e,s))return this;var r=this._events[e],o=this._events.all;return r&&n(r,s),o&&n(o,arguments),this},listenTo:function(e,t,n){return(this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=_.uniqueId("l"))]=e,e.on(t,"object"==typeof t?this:n,this),this},stopListening:function(e,t,n){var s=this._listeners;if(s){if(e)e.off(t,"object"==typeof t?this:n,this),t||n||delete s[e._listenerId];else{for(var r in"object"==typeof t&&(n=this),s)s[r].off(t,n,this);this._listeners={}}return this}}};return s.bind=s.on,s.unbind=s.off,s}()}(),function(){var e,t,n,s,r,o,i,a,l,u,c,h={}.hasOwnProperty,p=function(e,t){function n(){this.constructor=e}for(var s in t)h.call(t,s)&&(e[s]=t[s]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},d=[].slice,f=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=jQuery,o=null!=(l=window._)?l:window.Messenger._,s=null!=(u="undefined"!=typeof Backbone&&null!==Backbone?Backbone.Events:void 0)?u:window.Messenger.Events,n=function(){function t(t){e.extend(this,s),o.isObject(t)&&(t.el&&this.setElement(t.el),this.model=t.model),this.initialize.apply(this,arguments)}return t.prototype.setElement=function(t){return this.$el=e(t),this.el=this.$el[0]},t.prototype.delegateEvents=function(e){var t,n,s,r,i,a,l;if(e||(e=o.result(this,"events"))){for(s in this.undelegateEvents(),t=/^(\S+)\s*(.*)$/,l=[],e){if(i=e[s],o.isFunction(i)||(i=this[e[s]]),!i)throw Error('Method "'+e[s]+'" does not exist');n=(r=s.match(t))[1],a=r[2],i=o.bind(i,this),n+=".delegateEvents"+this.cid,""===a?l.push(this.jqon(n,i)):l.push(this.jqon(n,a,i))}return l}},t.prototype.jqon=function(e,t,n){var s;return null!=this.$el.on?(s=this.$el).on.apply(s,arguments):(null==n&&(n=t,t=void 0),null!=t?this.$el.delegate(t,e,n):this.$el.bind(e,n))},t.prototype.jqoff=function(e){var t;return null!=this.$el.off?(t=this.$el).off.apply(t,arguments):(this.$el.undelegate(),this.$el.unbind(e))},t.prototype.undelegateEvents=function(){return this.jqoff(".delegateEvents"+this.cid)},t.prototype.remove=function(){return this.undelegateEvents(),this.$el.remove()},t}(),i=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,t),n.prototype.defaults={hideAfter:10,scroll:!0,closeButtonText:"&times;",escapeText:!1},n.prototype.initialize=function(t){return null==t&&(t={}),this.shown=!1,this.rendered=!1,this.messenger=t.messenger,this.options=e.extend({},this.options,t,this.defaults)},n.prototype.show=function(){var e;return this.rendered||this.render(),this.$message.removeClass("messenger-hidden"),e=this.shown,this.shown=!0,e?void 0:this.trigger("show")},n.prototype.hide=function(){var e;if(this.rendered)return this.$message.addClass("messenger-hidden"),e=this.shown,this.shown=!1,e?this.trigger("hide"):void 0},n.prototype.cancel=function(){return this.hide()},n.prototype.update=function(t){var n,s=this;return o.isString(t)&&(t={message:t}),e.extend(this.options,t),this.lastUpdate=new Date,this.rendered=!1,this.events=null!=(n=this.options.events)?n:{},this.render(),this.actionsToEvents(),this.delegateEvents(),this.checkClickable(),this.options.hideAfter?(this.$message.addClass("messenger-will-hide-after"),null!=this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(function(){return s.hide()},1e3*this.options.hideAfter)):this.$message.removeClass("messenger-will-hide-after"),this.options.hideOnNavigate?(this.$message.addClass("messenger-will-hide-on-navigate"),null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.history:void 0)&&Backbone.history.on("route",function(){return s.hide()})):this.$message.removeClass("messenger-will-hide-on-navigate"),this.trigger("update",this)},n.prototype.scrollTo=function(){return this.options.scroll?e.scrollTo(this.$el,{duration:400,offset:{left:0,top:-20}}):void 0},n.prototype.timeSinceUpdate=function(){return this.lastUpdate?new Date-this.lastUpdate:null},n.prototype.actionsToEvents=function(){var e,t,n,s,r=this;for(t in s=[],n=this.options.actions)e=n[t],s.push(this.events['click [data-action="'+t+'"] a']=function(e){return function(n){return n.preventDefault(),n.stopPropagation(),r.trigger("action:"+t,e,n),e.action.call(r,n,r)}}(e));return s},n.prototype.checkClickable=function(){var e,t,n;for(e in n=[],t=this.events)t[e],"click"===e?n.push(this.$message.addClass("messenger-clickable")):n.push(void 0);return n},n.prototype.undelegateEvents=function(){var e;return n.__super__.undelegateEvents.apply(this,arguments),null!=(e=this.$message)?e.removeClass("messenger-clickable"):void 0},n.prototype.parseActions=function(){var t,n,s,r,o;for(r in n=[],o=this.options.actions)t=o[r],(s=e.extend({},t)).name=r,null==s.label&&(s.label=r),n.push(s);return n},n.prototype.template=function(t){var n,s,r,o,i,a,l,u,c,h,p=this;for(i=e("<div class='messenger-message message alert "+t.type+" message-"+t.type+" alert-"+t.type+"'>"),t.showCloseButton&&((r=e('<button type="button" class="messenger-close" data-dismiss="alert">')).html(t.closeButtonText),r.click(function(){var e;return p.cancel(),"function"==typeof(e=p.options).onClickClose&&e.onClickClose(),!0}),i.append(r)),a=t.escapeText?e('<div class="messenger-message-inner"></div>').text(t.message):e('<div class="messenger-message-inner">'+t.message+"</div>"),i.append(a),t.actions.length&&(s=e('<div class="messenger-actions">')),u=0,c=(h=t.actions).length;c>u;u++)l=h[u],(n=e("<span>")).attr("data-action",""+l.name),(o=e("<a>")).html(l.label),n.append(e('<span class="messenger-phrase">')),n.append(o),s.append(n);return i.append(s),i},n.prototype.render=function(){var t;if(!this.rendered)return this._hasSlot||(this.setElement(this.messenger._reserveMessageSlot(this)),this._hasSlot=!0),t=e.extend({},this.options,{actions:this.parseActions()}),this.$message=e(this.template(t)),this.$el.html(this.$message),this.shown=!0,this.rendered=!0,this.trigger("render")},n}(n),r=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return p(t,i),t.prototype.initialize=function(){return t.__super__.initialize.apply(this,arguments),this._timers={}},t.prototype.cancel=function(){return this.clearTimers(),this.hide(),null!=this._actionInstance&&null!=this._actionInstance.abort?this._actionInstance.abort():void 0},t.prototype.clearTimers=function(){var e,t,n,s;for(e in n=this._timers)t=n[e],clearTimeout(t);return this._timers={},null!=(s=this.$message)?s.removeClass("messenger-retry-soon messenger-retry-later"):void 0},t.prototype.render=function(){var e,n,s,r;for(n in t.__super__.render.apply(this,arguments),this.clearTimers(),r=[],s=this.options.actions)(e=s[n]).auto?r.push(this.startCountdown(n,e)):r.push(void 0);return r},t.prototype.renderPhrase=function(e,t){return e.phrase.replace("TIME",this.formatTime(t))},t.prototype.formatTime=function(e){var t;return t=function(e,t){return 1!==(e=Math.floor(e))&&(t+="s"),"in "+e+" "+t},0===Math.floor(e)?"now...":60>e?t(e,"second"):60>(e/=60)?t(e,"minute"):t(e/=60,"hour")},t.prototype.startCountdown=function(e,t){var n,s,r,o,i=this;if(null==this._timers[e])return n=this.$message.find("[data-action='"+e+"'] .messenger-phrase"),10>=(s=null!=(o=t.delay)?o:3)?(this.$message.removeClass("messenger-retry-later"),this.$message.addClass("messenger-retry-soon")):(this.$message.removeClass("messenger-retry-soon"),this.$message.addClass("messenger-retry-later")),(r=function(){var o;return n.text(i.renderPhrase(t,s)),s>0?(o=Math.min(s,1),s-=o,i._timers[e]=setTimeout(r,1e3*o)):(i.$message.removeClass("messenger-retry-soon messenger-retry-later"),delete i._timers[e],t.action())})()},t}(),a=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,t),n.prototype.tagName="ul",n.prototype.className="messenger",n.prototype.messageDefaults={type:"info"},n.prototype.initialize=function(t){return this.options=null!=t?t:{},this.history=[],this.messageDefaults=e.extend({},this.messageDefaults,this.options.messageDefaults)},n.prototype.render=function(){return this.updateMessageSlotClasses()},n.prototype.findById=function(e){return o.filter(this.history,function(t){return t.msg.options.id===e})},n.prototype._reserveMessageSlot=function(t){var n,s,r=this;for((n=e("<li>")).addClass("messenger-message-slot"),this.$el.prepend(n),this.history.push({msg:t,$slot:n}),this._enforceIdConstraint(t),t.on("update",function(){return r._enforceIdConstraint(t)});this.options.maxMessages&&this.history.length>this.options.maxMessages;)(s=this.history.shift()).msg.remove(),s.$slot.remove();return n},n.prototype._enforceIdConstraint=function(e){var t,n,s,r;if(null!=e.options.id)for(t=0,n=(r=this.history).length;n>t;t++)if(null!=(s=r[t].msg).options.id&&s.options.id===e.options.id&&e!==s){if(e.options.singleton)return void e.hide();s.hide()}},n.prototype.newMessage=function(e){var t,n,s,o,a=this;return null==e&&(e={}),e.messenger=this,i=null!=(n=null!=(s=Messenger.themes[null!=(o=e.theme)?o:this.options.theme])?s.Message:void 0)?n:r,(t=new i(e)).on("show",function(){return e.scrollTo&&"fixed"!==a.$el.css("position")?t.scrollTo():void 0}),t.on("hide show render",this.updateMessageSlotClasses,this),t},n.prototype.updateMessageSlotClasses=function(){var e,t,n,s,r,o,i;for(s=!0,t=null,e=!1,r=0,o=(i=this.history).length;o>r;r++)(n=i[r]).$slot.removeClass("messenger-first messenger-last messenger-shown"),n.msg.shown&&n.msg.rendered&&(n.$slot.addClass("messenger-shown"),e=!0,t=n,s&&(s=!1,n.$slot.addClass("messenger-first")));return null!=t&&t.$slot.addClass("messenger-last"),this.$el[(e?"remove":"add")+"Class"]("messenger-empty")},n.prototype.hideAll=function(){var e,t,n,s,r;for(r=[],t=0,n=(s=this.history).length;n>t;t++)e=s[t],r.push(e.msg.hide());return r},n.prototype.post=function(t){var n;return o.isString(t)&&(t={message:t}),t=e.extend(!0,{},this.messageDefaults,t),(n=this.newMessage(t)).update(t),n},n}(n),t=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return p(n,a),n.prototype.doDefaults={progressMessage:null,successMessage:null,errorMessage:"Error connecting to the server.",showSuccessWithoutError:!0,retry:{auto:!0,allow:!0},action:e.ajax},n.prototype.hookBackboneAjax=function(t){var n,s=this;if(null==t&&(t={}),null==window.Backbone)throw"Expected Backbone to be defined";return t=o.defaults(t,{id:"BACKBONE_ACTION",errorMessage:!1,successMessage:"Request completed successfully.",showSuccessWithoutError:!1}),n=function(e){var n;return n=o.extend({},t,e.messenger),s.do(n,e)},null!=Backbone.ajax?(Backbone.ajax._withoutMessenger&&(Backbone.ajax=Backbone.ajax._withoutMessenger),(null==t.action||t.action===this.doDefaults.action)&&(t.action=Backbone.ajax),n._withoutMessenger=Backbone.ajax,Backbone.ajax=n):Backbone.sync=o.wrap(Backbone.sync,function(){var t,s,r;return r=arguments[0],t=arguments.length>=2?d.call(arguments,1):[],s=e.ajax,e.ajax=n,r.call.apply(r,[this].concat(d.call(t))),e.ajax=s})},n.prototype._getHandlerResponse=function(e){return!1!==e&&(!0===e||null==e||e)},n.prototype._parseEvents=function(e){var t,n,s,r,o,i;for(r in null==e&&(e={}),o={},e)s=e[r],n=r.indexOf(" "),i=r.substring(0,n),t=r.substring(n+1),null==o[i]&&(o[i]={}),o[i][t]=s;return o},n.prototype._normalizeResponse=function(){var e,t,n,s,r,i,a;for(s=null,r=null,e=null,i=0,a=(n=arguments.length>=1?d.call(arguments,0):[]).length;a>i;i++)"success"===(t=n[i])||"timeout"===t||"abort"===t?s=t:null!=(null!=t?t.readyState:void 0)&&null!=(null!=t?t.responseText:void 0)?r=t:o.isObject(t)&&(e=t);return[s,e,r]},n.prototype.run=function(){var t,n,s,r,i,a,l,u,c,h,p=this;if(a=arguments[0],u=arguments[1],t=arguments.length>=3?d.call(arguments,2):[],null==u&&(u={}),a=e.extend(!0,{},this.messageDefaults,this.doDefaults,null!=a?a:{}),n=this._parseEvents(a.events),s=function(e,t){var n;return n=a[e+"Message"],o.isFunction(n)?n.call(p,e,t):n},l=null!=(h=a.messageInstance)?h:this.newMessage(a),null!=a.id&&(l.options.id=a.id),null!=a.progressMessage&&l.update(e.extend({},a,{message:s("progress",null),type:"info"})),i={},o.each(["error","success"],function(r){var c;return c=u[r],i[r]=function(){var i,h,g,m,y,v,_,w,b,x,C,M;return y=arguments.length>=1?d.call(arguments,0):[],m=(w=p._normalizeResponse.apply(p,y))[0],w[1],_=w[2],"success"===r&&null==l.errorCount&&!1===a.showSuccessWithoutError&&(a.successMessage=null),"error"===r&&(null==a.errorCount&&(a.errorCount=0),a.errorCount+=1),h=a.returnsPromise?y[0]:"function"==typeof c?c.apply(null,y):void 0,v=p._getHandlerResponse(h),o.isString(v)&&(v={message:v}),"error"!==r||0!==(null!=_?_.status:void 0)&&"abort"!==m?"error"===r&&null!=a.ignoredErrorCodes&&(b=null!=_?_.status:void 0,f.call(a.ignoredErrorCodes,b)>=0)?void l.hide():(i={message:s(r,_),type:r,events:null!=(x=n[r])?x:{},hideOnNavigate:"success"===r},"number"==typeof(null!=(C=(g=e.extend({},a,i,v)).retry)?C.allow:void 0)&&g.retry.allow--,"error"===r&&(null!=_?_.status:void 0)>=500&&(null!=(M=g.retry)?M.allow:void 0)?(null==g.retry.delay&&(g.retry.delay=4>g.errorCount?10:300),g.hideAfter&&(null==g._hideAfter&&(g._hideAfter=g.hideAfter),g.hideAfter=g._hideAfter+g.retry.delay),g._retryActions=!0,g.actions={retry:{label:"retry now",phrase:"Retrying TIME",auto:g.retry.auto,delay:g.retry.delay,action:function(){return g.messageInstance=l,setTimeout(function(){return p.do.apply(p,[g,u].concat(d.call(t)))},0)}},cancel:{action:function(){return l.cancel()}}}):g._retryActions&&(delete g.actions.retry,delete g.actions.cancel,delete a._retryActions),l.update(g),v&&g.message?(Messenger(o.extend({},p.options,{instance:p})),l.show()):l.hide()):void l.hide()}}),!a.returnsPromise)for(c in i)r=i[c],u[c],u[c]=r;return l._actionInstance=a.action.apply(a,[u].concat(d.call(t))),a.returnsPromise&&l._actionInstance.then(i.success,i.error),l},n.prototype.do=n.prototype.run,n.prototype.ajax=function(){var t,n;return n=arguments[0],t=arguments.length>=2?d.call(arguments,1):[],n.action=e.ajax,this.run.apply(this,[n].concat(d.call(t)))},n.prototype.expectPromise=function(e,t){return t=o.extend({},t,{action:e,returnsPromise:!0}),this.run(t)},n.prototype.error=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="error",this.post(e)},n.prototype.info=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="info",this.post(e)},n.prototype.success=function(e){return null==e&&(e={}),"string"==typeof e&&(e={message:e}),e.type="success",this.post(e)},n}(),e.fn.messenger=function(){var n,s,r,i,l,u,c,h;return r=arguments[0],s=arguments.length>=2?d.call(arguments,1):[],null==r&&(r={}),n=this,null!=r&&o.isString(r)?(h=n.data("messenger"))[r].apply(h,s):(l=r,null==n.data("messenger")&&(a=null!=(u=null!=(c=Messenger.themes[l.theme])?c.Messenger:void 0)?u:t,n.data("messenger",i=new a(e.extend({el:n},l))),i.render()),n.data("messenger"))},window.Messenger._call=function(t){var n,s,r,o,i,a,l,u,c,h;if(i={extraClasses:"messenger-fixed messenger-on-bottom messenger-on-right",theme:"future",maxMessages:9,parentLocations:["body"]},null!=(t=e.extend(i,e._messengerDefaults,Messenger.options,t)).theme&&(t.extraClasses+=" messenger-theme-"+t.theme),a=t.instance||Messenger.instance,null==t.instance){for(s=null,null,c=0,h=(u=t.parentLocations).length;h>c;c++)if(l=u[c],(s=e(l)).length){r=l;break}a?e(a._location).is(e(r))||(a.$el.detach(),s.prepend(a.$el)):(n=e("<ul>"),s.prepend(n),(a=n.messenger(t))._location=r,Messenger.instance=a)}return null!=a._addedClasses&&a.$el.removeClass(a._addedClasses),a.$el.addClass(o=a.className+" "+t.extraClasses),a._addedClasses=o,a},e.extend(Messenger,{Message:r,Messenger:t,themes:null!=(c=Messenger.themes)?c:{}}),e.globalMessenger=window.Messenger=Messenger}.call(this);!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.sortable=t(e.jQuery)}(this,function(e){"use strict";var t,a,r=e(),n=[],i=function(e){e.off("dragstart.h5s"),e.off("dragend.h5s"),e.off("selectstart.h5s"),e.off("dragover.h5s"),e.off("dragenter.h5s"),e.off("drop.h5s")},o=function(e){e.off("dragover.h5s"),e.off("dragenter.h5s"),e.off("drop.h5s")},d=function(e,t){e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text",""),e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(t.item,t.x,t.y)},s=function(e,t){var a=function(e){return{item:e[0],draggedItem:e}}(t);a=function(e,t){return t.x||(t.x=parseInt(e.pageX-t.draggedItem.offset().left)),t.y||(t.y=parseInt(e.pageY-t.draggedItem.offset().top)),t}(e,a),d(e,a)},l=function(e,t){return e[0]===t[0]||void 0!==e.data("connectWith")&&e.data("connectWith")===t.data("connectWith")},f=function(t){var a=t.data("opts"),r=t.children(a.items),n=a.handle?r.find(a.handle):r;t.attr("aria-dropeffect","move"),n.attr("draggable","true"),"function"!=typeof(document||window.document).createElement("span").dragDrop||a.disableIEFix||n.on("mousedown.h5s",function(){-1!==r.index(this)?this.dragDrop():e(this).parents(a.items)[0].dragDrop()})},h=function(e){var t=e.data("opts"),a=e.children(t.items),r=t.handle?a.find(t.handle):a;i(a),r.off("mousedown.h5s"),o(e)},u=function(i,o){var c=e(i),g=String(o);return o=e.extend({connectWith:!1,placeholder:null,dragImage:null,disableIEFix:!1,placeholderClass:"sortable-placeholder",draggingClass:"sortable-dragging",hoverClass:!1},o),c.each(function(){var i=e(this);if(/enable|disable|destroy/.test(g))u[g](i);else{o=function(e,t){return void 0===e?t:e}(i.data("opts"),o),i.data("opts",o),h(i);var c,m,p,v=i.children(o.items),b=null===o.placeholder?e("<"+(/^ul|ol$/i.test(this.tagName)?"li":"div")+' class="'+o.placeholderClass+'"/>'):e(o.placeholder).addClass(o.placeholderClass);if(!i.attr("data-sortable-id")){var x=n.length;n[x]=i,i.attr("data-sortable-id",x),v.attr("data-item-sortable-id",x)}if(i.data("items",o.items),r=r.add(b),o.connectWith&&i.data("connectWith",o.connectWith),f(i),v.attr("role","option"),v.attr("aria-grabbed","false"),o.hoverClass){var I="sortable-over";"string"==typeof o.hoverClass&&(I=o.hoverClass),v.hover(function(){e(this).addClass(I)},function(){e(this).removeClass(I)})}v.on("dragstart.h5s",function(r){r.stopImmediatePropagation(),o.dragImage?(d(r.originalEvent,{item:o.dragImage,x:0,y:0}),console.log("WARNING: dragImage option is deprecated and will be removed in the future!")):s(r.originalEvent,e(this),o.dragImage),(t=e(this)).addClass(o.draggingClass),t.attr("aria-grabbed","true"),c=t.index(),a=t.height(),m=e(this).parent(),t.parent().triggerHandler("sortstart",{item:t,placeholder:b,startparent:m})}),v.on("dragend.h5s",function(){t&&(t.removeClass(o.draggingClass),t.attr("aria-grabbed","false"),t.show(),r.detach(),p=e(this).parent(),t.parent().triggerHandler("sortstop",{item:t,startparent:m}),(c!==t.index()||m.get(0)!==p.get(0))&&t.parent().triggerHandler("sortupdate",{item:t,index:p.children(p.data("items")).index(t),oldindex:v.index(t),elementIndex:t.index(),oldElementIndex:c,startparent:m,endparent:p}),t=null,a=null)}),e(this).add([b]).on("drop.h5s",function(a){return l(i,e(t).parent())?(a.stopPropagation(),r.filter(":visible").after(t),t.trigger("dragend.h5s"),!1):void 0}),v.add([this]).on("dragover.h5s dragenter.h5s",function(n){if(l(i,e(t).parent())){if(n.preventDefault(),n.originalEvent.dataTransfer.dropEffect="move",v.is(this)){var d=e(this).height();if(o.forcePlaceholderSize&&b.height(a),d>a){var s=d-a,f=e(this).offset().top;if(b.index()<e(this).index()&&n.originalEvent.pageY<f+s)return!1;if(b.index()>e(this).index()&&n.originalEvent.pageY>f+d-s)return!1}t.hide(),b.index()<e(this).index()?e(this).after(b):e(this).before(b),r.not(b).detach()}else r.is(this)||e(this).children(o.items).length||(r.detach(),e(this).append(b));return!1}})}})};return u.destroy=function(e){!function(e){var t=e.data("opts")||{},a=e.children(t.items),r=t.handle?a.find(t.handle):a;o(e),function(e){e.removeData("opts"),e.removeData("connectWith"),e.removeData("items"),e.removeAttr("aria-dropeffect")}(e),r.off("mousedown.h5s"),i(a),function(e){e.removeAttr("aria-grabbed"),e.removeAttr("draggable"),e.removeAttr("role")}(a)}(e)},u.enable=function(e){f(e)},u.disable=function(e){!function(e){var t=e.data("opts"),a=e.children(t.items),r=t.handle?a.find(t.handle):a;e.attr("aria-dropeffect","none"),r.attr("draggable",!1),r.off("mousedown.h5s")}(e)},e.fn.sortable=function(e){return u(this,e)},u}),function(e){function t(t){var a=e(this);a.data("mouseheld_timeout",setTimeout(function(){a.trigger("mouseheld")},t.data))}function a(){var t=e(this);clearTimeout(t.data("mouseheld_timeout"))}var r=e.event.special.mouseheld={setup:function(n){var i=e(this);i.bind("mousedown",+n||r.time,t),i.bind("mouseleave mouseup",a)},teardown:function(){var r=e(this);r.unbind("mousedown",t),r.unbind("mouseleave mouseup",a)},time:750}}(jQuery);/*!
  LegoMushroom @legomushroom http://legomushroom.com
  MIT License 2014
 */
(function(){var e;e=function(){function e(e){this.o=null!=e?e:{},window.isAnyResizeEventInited||(this.vars(),this.redefineProto())}return e.prototype.vars=function(){return window.isAnyResizeEventInited=!0,this.allowedProtos=[HTMLDivElement,HTMLFormElement,HTMLLinkElement,HTMLBodyElement,HTMLParagraphElement,HTMLFieldSetElement,HTMLLegendElement,HTMLLabelElement,HTMLButtonElement,HTMLUListElement,HTMLOListElement,HTMLLIElement,HTMLHeadingElement,HTMLQuoteElement,HTMLPreElement,HTMLBRElement,HTMLFontElement,HTMLHRElement,HTMLModElement,HTMLParamElement,HTMLMapElement,HTMLTableElement,HTMLTableCaptionElement,HTMLImageElement,HTMLTableCellElement,HTMLSelectElement,HTMLInputElement,HTMLTextAreaElement,HTMLAnchorElement,HTMLObjectElement,HTMLTableColElement,HTMLTableSectionElement,HTMLTableRowElement],this.timerElements={img:1,textarea:1,input:1,embed:1,object:1,svg:1,canvas:1,tr:1,tbody:1,thead:1,tfoot:1,a:1,select:1,option:1,optgroup:1,dl:1,dt:1,br:1,basefont:1,font:1,col:1,iframe:1}},e.prototype.redefineProto=function(){var e,t,n;return t=this,function(){var o,i,r,l;for(r=this.allowedProtos,l=[],e=o=0,i=r.length;o<i;e=++o)null!=(n=r[e]).prototype&&l.push(function(e){return function(n){var o;o=function(){return this===window&&this===document||"onresize"===arguments[0]&&!this.isAnyResizeEventInited&&t.handleResize({args:arguments,that:this}),n.apply(this,arguments)},e.prototype.addEventListener?e.prototype.addEventListener=o:e.prototype.attachEvent&&(e.prototype.attachEvent=o)}(e.prototype.addEventListener||e.prototype.attachEvent),function(t){var n;return n=function(){return this.isAnyResizeEventInited=!1,this.iframe&&this.removeChild(this.iframe),t.apply(this,arguments)},e.prototype.removeEventListener?e.prototype.removeEventListener=n:e.prototype.detachEvent?e.prototype.detachEvent=wrappedListener:void 0}(e.prototype.removeEventListener||e.prototype.detachEvent)}(n));return l}.call(this)},e.prototype.handleResize=function(e){var t,n,o,i,r,l,s;return n=e.that,this.timerElements[n.tagName.toLowerCase()]?this.initTimer(n):(o=document.createElement("iframe"),n.appendChild(o),o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.zIndex=-999,o.style.opacity=0,o.style.top=0,o.style.left=0,r="static"===(t=window.getComputedStyle?getComputedStyle(n):n.currentStyle).position&&""===n.style.position,i=""===t.position&&""===n.style.position,(r||i)&&(n.style.position="relative"),null!=(l=o.contentWindow)&&(l.onresize=(s=this,function(e){return s.dispatchEvent(n)})),n.iframe=o),n.isAnyResizeEventInited=!0},e.prototype.initTimer=function(e){var t,n,o;return n=0,t=0,this.interval=setInterval((o=this,function(){var i,r;if(r=e.offsetWidth,i=e.offsetHeight,r!==n||i!==t)return o.dispatchEvent(e),n=r,t=i}),this.o.interval||62.5)},e.prototype.dispatchEvent=function(e){var t;return document.createEvent?((t=document.createEvent("HTMLEvents")).initEvent("onresize",!1,!1),e.dispatchEvent(t)):!!document.createEventObject&&(t=document.createEventObject(),e.fireEvent("onresize",t))},e.prototype.destroy=function(){var e,t,n,o,i,r;for(clearInterval(this.interval),this.interval=null,window.isAnyResizeEventInited=!1,this,r=[],e=n=0,o=(i=this.allowedProtos).length;n<o;e=++n)null!=(t=i[e]).prototype&&r.push(function(e){return e.prototype.addEventListener||e.prototype.attachEvent,e.prototype.addEventListener?e.prototype.addEventListener=Element.prototype.addEventListener:e.prototype.attachEvent&&(e.prototype.attachEvent=Element.prototype.attachEvent),e.prototype.removeEventListener?e.prototype.removeEventListener=Element.prototype.removeEventListener:e.prototype.detachEvent?e.prototype.detachEvent=Element.prototype.detachEvent:void 0}(t));return r},e}(),"function"==typeof define&&define.amd?define("any-resize-event",[],function(){return new e}):"object"==typeof module&&"object"==typeof module.exports?module.exports=new e:("undefined"!=typeof window&&null!==window&&(window.AnyResizeEvent=e),"undefined"!=typeof window&&null!==window&&(window.anyResizeEvent=new e))}).call(this);/*!
 * Authentic Theme (https://github.com/authentic-theme/authentic-theme)
 * Copyright Ilia Rostovtsev <programming@rostovtsev.io>
 * Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
 */
Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),n=a.length>>>0;if(0===n)return!1;var r,i,o=0|t,s=Math.max(o>=0?o:n-Math.abs(o),0);for(;s<n;){if((r=a[s])===(i=e)||"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))return!0;s++}return!1}}),Object.values||(Object.values=function(e){return Object.keys(e).map(function(t){return e[t]})}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),a=t.length,n=new Array(a);a--;)n[a]=[t[a],e[t[a]]];return n}),Array.prototype.some||(Array.prototype.some=function(e,t){"use strict";if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var a=Object(this),n=a.length>>>0,r=0;r<n;r++)if(r in a&&e.call(t,a[r],r,a))return!0;return!1}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const vars={page_user_inactive:1,available_modules:0,navigation_select:!1,navigation:{select:{back:!1}},previous_request:String(),source_request:String(),previous_request_progressive:String(),requested_page:String(),allow_ui_features:1,slider_pinned:-1,navigation_pinned:-1,pjax_replace_contents:1,pjax_cancel:0,jspanels_reversed:0,event:{stopped_typing_delay:200,double_click_delay:400},local_storage:1,shell:{history:0,processing:0},events:{keypressed:{shift:!1,alt:!1},blocked:!1,scrolled:0},pjax:{post_reboot:!1,post_page_fetch:!1,page_cache:!0,event:{end:1}},ajax:{post_success:!1},level:-1},browser={detect:{internet_explorer:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),a=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return t&&(e=new Number(RegExp.$1)),-1!=navigator.appVersion.indexOf("MSIE 10")&&(e=10),a&&-1!=n&&(e=11),e},safari:function(e){var t=window.navigator.userAgent,a=!(!t.match(/iPad/i)&&!t.match(/iPhone/i)||!t.match(/WebKit/i)||t.match(/CriOS/i)||t.match(/OPiOS/i)),n=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?a:n},firefox:function(){return/firefox/i.test(navigator.userAgent)}},storage:{size:function(e){var t=String(),a=e?"MB":"KB";for(var n in window.localStorage)window.localStorage.hasOwnProperty(n)&&(t+=window.localStorage[n]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+a:"Empty (0 "+a+")"}}},platform={detect:function(){var e=window.navigator.userAgent,t=window.navigator.platform,a=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?a="mac":-1!==["iPhone","iPad","iPod"].indexOf(t)?a="ios":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?a="windows":/Android/.test(e)?a="android":!a&&/Linux/.test(t)&&(a="linux"),a},set:function(){var e=this.detect();e&&$(document.body).attr("data-platform",e)}},Convert={arrFlip:function(e){var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[e[t]]=t);return a},uriDecodeComponent:function(e,t){var a,n,r,i=String(),o=0;if(void 0===t&&(t=0),a=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(a))return e;for(n=a.length;o<n;o++){try{r=decodeURIComponent(a[o])}catch(e){r=t?a[o].replace(/%(?!\d+)/g,"%25"):a[o]}i+=r}return i},uriEncodeComponent:function(e,t){return this.uriDecodeComponent(e)===e&&(e=encodeURIComponent(e)),t&&(e=e.replace(/%20/g," ").replace(/%26/g,"&").replace(/%2F/g,"/").replace(/%3A/g,":").replace(/%5B/g,"[").replace(/%5D/g,"]")),e},encodeURIComponentConsistent:function(e){return(e=encodeURIComponent(e))&&(e.includes("-")||e.includes("!")||e.includes("'")||e.includes("(")||e.includes(")")||e.includes("*")||e.includes("_"))&&(e=e.replace(/[-!'()*_]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})),e},quoteEscape:function(e,t){t||(t='"');var a="&quot;";return"'"===t&&(a="&#39;"),e&&(e=e.replace(new RegExp(t,"g"),a)),e},htmlEscape:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","=":"&#61;"};return String(e).replace(/[&<>"'=]/g,function(e){return t[e]})},htmlUnEscape:function(e){var t=[["amp","&"],["apos","'"],["#x27","'"],["#x2F","/"],["#39","'"],["#47","/"],["#61","="],["lt","<"],["gt",">"],["nbsp"," "],["quot",'"']];if(e)for(var a=0,n=t.length;a<n;++a)e=String(e).replace(new RegExp("&"+t[a][0]+";","g"),t[a][1]);return e||""},htmlDecode:function(e){return e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],16))})},textTruncate:function(e,t,a){if(e.length<=t)return e;var n=t-(a=a||"...").length,r=Math.ceil(n/2),i=Math.floor(n/2);return e.substr(0,r)+a+e.substr(e.length-i)},htmlStrip:function(e){return(new DOMParser).parseFromString(e,"text/html").body.textContent||""},pathnamePopLast:function(e){var t=~e.indexOf("%2F")?"%2F":"/",a=e.split(t);return a.pop(),a.join(t)||"/"},strUpFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},strUpFirstEach:function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},strUpInitial:function(e){return e.length?this.strUpFirst(e.toLowerCase()):e},json_to_query:function(e){return"object"!=typeof e?String():""+Object.entries(e).map(function(e){var t=e[0],a=e[1];return t+"="+encodeURIComponent(a)}).join("&")},serialized_to_json:function(e){(e.startsWith('"')||e.endsWith('"'))&&(e=e.replace(/^"|"$/g,String()));for(var t={},a=("?"===e[0]?e.substr(1):e).split("&"),n=0;n<a.length;n++){var r=a[n].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t},nice_number:function(e){return e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},extactText:function(e){var t=e.contents().filter(function(){return 3==this.nodeType});return t&&t[0]?t[0].nodeValue:String()},nice_size:function(e,t){var a=!t||t&&!t.hasOwnProperty("decimal")||0===t.decimal?1024:1e3,n=!t||t&&!t.hasOwnProperty("bits")||0===t.bits?1:8,r=!t||t&&!t.hasOwnProperty("round")||0===t.round?0:1,i=!t||t&&!t.hasOwnProperty("fixed")?2:t.fixed;if(e*=n,Math.abs(e)<1e3)return e+" "+theme_language("nice_size_b");var o=1^n?"B":1024===a?"I":String(),s=[theme_language("nice_size_k"+o+"B"),theme_language("nice_size_M"+o+"B"),theme_language("nice_size_G"+o+"B"),theme_language("nice_size_T"+o+"B"),theme_language("nice_size_P"+o+"B")],l=-1;do{e/=a,++l}while(Math.abs(e)>=1e3&&l<s.length-1);var c=e.toFixed(i);return r&&(c>=5&&c<=100?c=5*Math.round(c/5):c>100&&c<=1e3?c=50*Math.round(c/50):c>1e3&&c<=1e4?c=100*Math.round(c/100):c>1e4&&c<=1e5?c=250*Math.round(c/250):c>1e5&&(c=500*Math.round(c/500))),c+" "+s[l]}},core={get_global_vars:function(e,t){for(var a=t?{}:[],n=window,r=0;r<e.length;r++)for(var i in n)0==i.indexOf(e[r])&&(a[i]=n[i]);return a},fnExtend:function(e,t){window[e]=function(e){return function(){e(),t()}}(window[e])},linkSameOrigin:function(e){return e.attr("href")&&(e.attr("href").match("^http:")||e.attr("href").match("^https:")||e.attr("href").match("^ftp:")||e.attr("href").match("^ftps:"))&&URI(e.attr("href")).hostname()!=v___location_hostname||e.attr("data-href")&&(e.attr("data-href").match("^http:")||e.attr("data-href").match("^https:")||e.attr("data-href").match("^ftp:")||e.attr("data-href").match("^ftps:"))&&URI(e.attr("data-href")).hostname()!=v___location_hostname?0:1},moduleAvailable:function(e){var t=vars.available_modules;return t=t||get_server_data("available-modules"),void 0!=get_server_data(e)?Test.true(get_server_data(e)):$.inArray(e,t)>-1},curModuleFileQuery:function(e,t,a){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(a)},curModuleFile:function(e,t){var a=v___location_file==t;return t||(void 0===t&&(t=""),a=v___location_file===t||"index.cgi"===v___location_file),$('body[class*="'+e+'"]').length&&a},curModule:function(e,t){return t=t?String():"*",$("body[class"+t+'="'+e+'"]').length},moduleFile:function(e,t,a){if(e.includes("/")&&e.includes(".cgi")){var n,r,i,o=e.split("/");if(o.filter(function(e,t){e.includes(".cgi")&&(n=t)}),r=o[n-1],i=o[n],r&&r.includes(t)&&i&&i.includes(a))return 1}return 0},updateModuleData:function(e,t,a){$.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var n=$(e).find("form.ui_form");$.each(a,function(e,t){n.find('[name="'+e+'"]').val(t)}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+t,data:$(n).serialize(),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},100)}},error:function(){}})},getModuleData:function(e){return $.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})},setModuleData:function(e,t){this.getModuleData(e).then(function(e){return $(e).find("form.ui_form").serializeArray()}).done(function(e){var a={};$.each($(e),function(){a[this.name]=this.value}).promise().done(function(){$.each(t,function(e,t){var n=$('[name="'+t+'"]');n.val(a[t]),n.is("select")&&n.find("[data-clear]").remove()})})})}},HTML={bottom_progress:function(e,t,a){return'<div data-progress-id="'+e+'" class="bottom_progress'+(a?" bottom_progress_horizontal":"")+'">'+(a?'<div class="bottom_progress_filename"></div><div class="bottom_progress_lane"></div>':"")+'<div class="bottom_progress_level '+t+'"></div><span class="bottom_progress_overlay">'+(a?"":"1%")+(a?'<span class="bottom_progress_data"></span><span class="bottom_progress_percent"></span>':"")+'</span><span class="fa fa-times-circle-o bottom_progress_cancel"></span></div>'},label:{temperature:function(e,t){var a="bg-semi-transparent";return t?e<=30?a:e>30&&e<=60?a:e>60&&e<=80?"bg-warning":e>80?"bg-danger":"":e<=86?a:e>86&&e<=140?a:e>140&&e<=176?"bg-warning":e>176?"bg-danger":""},rpm:function(e){return e<=2*rpmFactor?bg_semi_tr:e>2*rpmFactor&&e<=3*rpmFactor?bg_semi_tr:e>3*rpmFactor&&e<=4*rpmFactor?bg_warn:e>4*rpmFactor?bg_danger:""}},template:{accordion:function(e,t,a,n){for(var r='<div class="panel-group panel-filter" id="'+e+'" role="tablist" aria-multiselectable="true">',i=0;i<t.length;i++){var o=!$.isArray(n)||$.isEmptyObject(n)?0===i?1:0:n[i]?1:0,s=$.isEmptyObject(n)||!$.isEmptyObject(n)&&n.filter(function(e){return 1===e}).length<=1,l=$.isArray(n)&&2===n[i]?1:0;connected_grouped=e.endsWith("_-grouped")&&s?1:0,r+='<div class="panel panel-default"><div class="panel-heading" aria-static="'+(l?"true":"false")+'" data-toggle="collapse" data-target="#'+e+"_c_"+i+'" role="tab" id="'+e+"_h_"+i+'"><h4 class="panel-title"><a role="button" data-toggle="collapse" '+(connected_grouped?' data-parent="#'+e+'"':" ")+' href="#'+e+"_c_"+i+'" aria-static="'+(l?"true":"false")+'" aria-expanded="'+(o||l?"true":"false")+'" aria-controls="'+e+"_c_"+i+'">'+t[i]+'</a></h4></div><div id="'+e+"_c_"+i+'" class="panel-collapse collapse'+(o||l?" in":"")+'" aria-static="'+(l?"true":"false")+'" role="tabpanel" aria-labelledby="'+e+"_h_"+i+'"><div class="panel-body inner">'+a[i]+"</div></div></div>"}return r+="</div>"},page_content_preloader:function(e,t){return'<div class="container-fluid-loading '+(page.handle.content.offset()?"col-lg-10 col-lg-offset-1":"margined-top-15")+(t?" "+t:"")+'"><div class="panel-loading panel-default-loading"><div class="panel-heading-loading text-center"><button class="fa fa-fw fa-inverse fa-2x text-lighter favorites xcustom-favorites fa-star-o dummy"></button>&nbsp;<span>'+e+'</span></div><div class="panel-body-loading"><span class="cspinner"><span class="cspinner-icon light"></span></span></div></div></div>'},reauthenticate:function(e){var t=Test.strContains(get_server_data("webprefix"),"servers/link.cgi")?1:0;return'<div class="'+e+'"><div class="'+e+'-container-center animated slideInDown"><div class="'+e+'-header"><div class="'+e+'-header-icon"><i class="fa fa-lock fa-lg"></i></div><div class="'+e+'-header-title"><h3>'+theme_language("session_expired")+"</h3><small>"+theme_language("session_expired_details")+'</small></div></div><div class="panel"><div class="panel-body"><form action="'+v___location_prefix+'/session_login.cgi"><div class="form-group hidden"><label data-user for="user">'+theme_language("login_user")+'</label><input type="text" value="'+get_server_data("user")+'" name="user" class="form-control form-control-rea" required readonly></div><div class="form-group"><label data-pass for="pass">'+theme_language("login_pass")+'</label><input autofocus type="password" placeholder="******************" name="pass" autocomplete="off" autocorrect="off" class="form-control form-control-rea"></div><div class="form-group" data-container-twofactor><label data-twofactor for="twofactor">'+theme_language("login_token")+'</label><input type="number" placeholder="123456" name="twofactor" autocomplete="off" autocorrect="off" class="form-control form-control-rea"></div><div><input type="hidden" name="ajax" value="1"><button data-submit class="btn btn-success pull-right"><i class="fa fa-fw fa-unlock"></i> '+theme_language("global_reauthenticate")+'</button><a data-nref class="btn btn-'+(t?"warning btn-block":"default")+'" href="'+v___location_prefix+'/"><i class="fa fa-fw fa-'+(t?"sign-out":"user-switch")+'"></i> '+(t?theme_language("global_reauthenticate"):theme_language("tooltip_switch_user"))+"</a>"+(t?'<a data-nref class="btn btn-default btn-block" onclick="javascript:session.reauthenticate.end()"><i class="fa fa-fw fa-arrow-circle-o-left"></i> '+theme_language("global_continue")+"</a>":"")+"</div></form></div></div></div></div>"}}},load={loaded:[],bundle:function($scripts__,$css__,callBack__,callBackCalledNoEval__){var execute_load=function($script,$css,callBack,callBackCalledNoEval){var head=$("head"),initial_name=$script;callBack="object"==typeof callBack&&callBack;var css=($css?1===$css?$script:$css:0)+"."+v___source_type+".css",js=$script+"."+v___source_type+".js";Test.strContains(initial_name,v___server_extensions_path)||Test.strContains(initial_name,v___server_js_path)||(css=v___server_css_path+"/"+css,js=v___server_js_path+"/"+js);var processCallbacks=function(_callBack,_callBackCalledNoEval){_callBack&&!_callBackCalledNoEval?$.each(_callBack,function(i2,v2){try{eval(v2)}catch(e){var attemp=0,check_loaded_func=setInterval(function(){attemp++,attemp>1e3&&clearInterval(check_loaded_func);try{eval(v2),clearInterval(check_loaded_func)}catch(e){}},10)}}):_callBack&&_callBackCalledNoEval&&2!==_callBackCalledNoEval&&3!==_callBackCalledNoEval?$.each(_callBack,function(e,t){t.call()}):_callBack&&_callBackCalledNoEval&&(2===_callBackCalledNoEval||3===_callBackCalledNoEval)&&$.each(_callBack,function(e,t){3===_callBackCalledNoEval?window[e].call(null,t):window[e].apply(null,t)})};if(load.loaded.includes(initial_name))(callBack||callBackCalledNoEval)&&processCallbacks(callBack,callBackCalledNoEval);else{o___gotten_scripts.push(js),load.loaded.push(initial_name);var thecsslink='<link href="'+css+"?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">';$css&&(css.includes(v___server_extensions_path)?head.append(thecsslink):head.find('link[rel="stylesheet"]:first').before(thecsslink)),$.getScript(js+"?"+v___theme_version_plain,function(){processCallbacks(callBack,callBackCalledNoEval)}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})}};$.isArray($scripts__)?$scripts__.forEach(function(e,t,a){Object.is(a.length-1,t)?execute_load(e,$css__,callBack__,callBackCalledNoEval__):execute_load(e,$css__,0,0)}):execute_load($scripts__,$css__,callBack__,callBackCalledNoEval__)}},page={handle:{content:{offset:function(e){var t=core.curModuleFileQuery("syslog","save_log.cgi","view=")||core.curModuleFile("virtual-server","edit_html.cgi")||core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi")||core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi")||core.curModule(v___module_file_manager)||v___page_hasEditor||!settings_enable_container_offset?0:1;if(!e)return t;var a=$(".container-fluid");page.handle.content.offset()?a.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"):a.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")},preloader_dismiss:function(){$(".container-fluid-loading").length&&page.handle.content.preloader()},preloader:function(e,t){var a=this,n=$("#content"),r=$(".container-fluid"),i=$(".container-fluid-loading"),o=t||$("span[data-main_title]").text(),s=-2===e?"container-fluid-loading-persistent":0,l=HTML.template.page_content_preloader(o,s);if(-2!==e&&i.length&&i.hasClass("container-fluid-loading-persistent"))i.removeClass("container-fluid-loading-persistent");else{if(-1===e)return n.hasClass("progressing");i.length?(i.remove(),r.removeClass("invisible"),n.removeClass("progressing progressing-preloading"),setTimeout(function(){progress.progress()&&progress.end()},10)):(n.addClass("progressing progressing-preloading").prepend(l),r.addClass("invisible")),e&&-2!==e&&setTimeout(function(){a.preloader()},e)}}}},render:{content:{filter:{init:function(e,t){var a=this,n="container-fluid .nav.nav-tabs",r="dataTables_filter",i=$(".__page ."+r),o=$(".__page .panel-filter"),s=".panel-filter .panel.panel-default",l="filter-value",c="btn-filter-top-right",d="btn-accordion-filter",u=$("body");(i.length||o.length)&&setTimeout(function(){$("."+c).length||$("."+d).length||($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('<a class="btn btn-link text-lighter btn-filter-gl btn-'+(e?"accordion-filter":"filter-top-right")+' text-decoration-none pull-left" data-container="body" data-placement="bottom" data-toggle="tooltip" data-nref><label>&nbsp;&nbsp;<span class="fa fa-times-circle-o vertical-align-middle filter_mirror_clear text-lighter"></span><input type="text" class="dataTable-mirror" placeholder="'+theme_language("filter_content")+'"></label><i class="fa fa-filter'+(e?"2":"")+'"></i></a>'+(e?'<a class="btn btn-link text-lighter btn-toggle-accordions text-decoration-none pull-left'+(1===o.find(".panel").length?" hidden":"")+'" data-placement="left" data-toggle="tooltip" data-skip data-nref><i class="fa fa-toggle-switch-off fa-1_25x"></i></a>':""))),$(".btn-filter-gl").data("title",theme_language("datatable_filter")).attr("aria-label",theme_language("datatable_filter")),$(".btn-toggle-accordions").data("title",theme_language("toggle_accordions")).attr("aria-label",theme_language("toggle_accordions")),$(".btn-group").tooltip({selector:'a[data-toggle="tooltip"][data-skip]',container:"body",trigger:"hover",delay:{show:600,hide:30}}),a.clear(),$("."+n).length&&(e&&u.on("hide.bs.tab",'a[data-toggle="tab"]',function(e){a.clear()}),u.on("shown.bs.tab",'a[data-toggle="tab"]',function(e){var t=$(e.target).parent(".active");t.data(l)?$(".dataTable-mirror").val(t.data(l)).trigger("input"):$(".dataTable-mirror").val("").trigger("input"),a.visibility(c,d,"btn-toggle-accordions",n)})),u.undelegate(s,"shown.bs.collapse.config hidden.bs.collapse.config"),u.on("shown.bs.collapse.config hidden.bs.collapse.config",s,function(e){$(".container-fluid .collapsing").length||setTimeout(function(){var e=$(".container-fluid").find(".btn-toggle-accordions").find("i");o.find(".panel-collapse").length===o.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},0)});var t,i=$(".btn-toggle-accordions");e?$(o).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($(".dataTable-mirror").val()).length&&page.render.content.filter.clear(),e.originalEvent&&$(".btn-toggle-accordions").find("i").removeClass("fa-toggle-switch text-light")}):$("."+r).hide();function f(t){var a=t.val(),o=$(".__page .panel-filter:visible");if(e)if(a){$.support.transition&&($.support.transition=!1),i.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),o.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged"),o.find('.panel tbody tr:containsi("'+a+'")').removeClass("hidden-forged"),$.each($(s=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var u=$(".__page .panel-filter:visible");$.each(u.find(".panel"),function(){var e=$(this).find("tr").first().find("td").length;rows=$(this).find("tbody").find("tr:not([data-empty-row])"),hidden_rows=$(this).find("tbody tr:not([data-empty-row]):hidden");var t=$(this).find("tbody tr[data-empty-row]");rows.length===hidden_rows.length?t.length?$(this).find("tbody").find("var[data-query-str]").text(a):$(this).find("tbody").append('<tr data-empty-row colspan="'+e+'"><td class="text-center">'+theme_language("filter_content_no_matches_query").replace("%str","<var data-query-str>"+a+"</var>")+"</td></tr>"):t.remove()})}else i.find(".fa-toggle-switch").trigger("click"),o.find(".panel tr").removeClass("hidden-forged"),o.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{var f="."+r+" input";$("."+n).length?($(".nav-tabs li.active").data(l,a),$(".active "+f).val(a).trigger("input")):$(f).val(a).trigger("input")}var p="."+c+" span, ."+d+" span",g="."+c+" i, ."+d+" i";$.trim(a).length>0?($(p).removeClass("text-lighter"),$(g).addClass("text-danger")):($(p).addClass("text-lighter"),$(g).removeClass("text-danger"))}$(".filter_mirror_clear").mousedown(function(e){$(e.target).is(".filter_mirror_clear")&&a.clear()}),$("."+c+", ."+d).click(function(e){!$(e.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})}),i.click(function(e){e.stopImmediatePropagation();var t=$(this).find(".fa"),n=$(this).find(".fa-toggle-switch").length?1:0,r=$(".__page .panel-filter:visible");0===n?(r.find(".panel-collapse.in").length,r.find(".panel-collapse").length,r.find(".panel-collapse:not(.in):not(.collapsing)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):r.find(".panel-collapse.in:not(.collapsing)").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),t.toggleClass("fa-toggle-switch text-light"),void 0!==e.originalEvent&&$("."+d+" input").val().length&&a.clear()});$(".dataTable-mirror").keydown(function(e){var n=void 0!==e.originalEvent?200:0;76==e.keyCode&&e.ctrlKey?(e.preventDefault(),e.stopPropagation(),n?setTimeout(function(){a.clear()},n):a.clear()):n&&clearTimeout(t)}).on("input keyup",function(e){var a=$(this),n=void 0!==e.originalEvent?200:0;$(".btn-filter-gl").tooltip("hide"),n?(clearTimeout(t),t=setTimeout(function(){f(a)},n)):f(a)}),$("."+c+" input, ."+d+" input").blur(function(e){$(this).parent("label").slideToggle(0)}),a.visibility(c,d,"btn-toggle-accordions",n)},0)},visibility:function(e,t,a,n){var r=$("."+e+", ."+t+", ."+a);$("."+n).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+n).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?r.show():r.hide()},clear:function(){var e=$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror"),t=$(".btn-filter-top-right input, .btn-accordion-filter input");e.val("").trigger("input"),t.is(":visible")&&t.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}},module_config:function(e){var t=v___page_container.find(".table-title:visible").parents(".table:visible"),a=t.parent("div.table-responsive:visible"),n=t.find("tbody > tr > td > table:visible"),r=0,i=1;$.each(n.find("tr"),function(e,t){var a=$(this);a.find(".col_header").length?(r+=1,a.attr("tj",r+":0")):a.attr("tj",r+":1")}).promise().done(function(){var n=$('tr[tj$=":0"]').map(function(){return $.trim($(this).text())});0===n.length&&(n.push(theme_language("config_configurable_options")),i=0);for(var r=[],o=1;o<n.length+1;o++){var s='<table class="table sub_table_container table-hardcoded"><tbody>';s+=(i?$('[tj="'+o+':0"]').nextAll('[tj="'+o+':1"]'):t.find('tbody > tr[tj="0:1"]')).map(function(){return this.outerHTML}).get().join("\n"),s+="</tbody></table>",r[o-1]=s}var l="conf-_-gr";a.replaceWith(HTML.template.accordion(l,n,r,i?e:[2])),page.render.content.filter.init(1),$(".container-fluid > .panel > .panel-body").on("hide.bs.collapse show.bs.collapse","#conf-_-gr",function(){$(".module-help .close-popover-trigger").trigger("click")})})}}},pjax={clear:{modules:function(e){"csf"===v___module&&"function"==typeof __c_____undel&&__c_____undel(e.url),v___module===v___module_file_manager&&"function"==typeof __f_____undel&&"object"==typeof jsPanel&&"string"==typeof $v__fm__container_fluid&&(Test.strContains(e.url,v___module_file_manager+"/config.cgi")||Test.strContains(e.url,v___module_file_manager+"/index.cgi")||Test.strContains(e.url,"save_config.cgi")||__f_____undel()),"mysql"!==v___module&&"postgresql"!==v___module||"function"!=typeof __sql_____undel||__sql_____undel(),"syslog"===v___module&&"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,a,n){$(this.body).find(".bottom_progresses").length||$(this.body).append('<div class="bottom_progresses"></div>');var r=$(this.body).find(".bottom_progresses");if(!r.find('div[data-progress-id="'+e+'"]').length){if(r.append(HTML.bottom_progress(e,t,n)),n||r.find(".bottom_progress_horizontal").length){var i=(r=$(this.body).find(".bottom_progresses")).find('.bottom_progress:not(".bottom_progress_horizontal")').addClass("no-animation").detach();r.prepend(i)}r.find('div[data-progress-id="'+e+'"]').find(".bottom_progress_cancel").one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(".bottom_progress_level").removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3),window["progress_id_ref_"+t].abort(),n&&window["progress_id_ref_"+t+"_tracker"].abort()})}var o=r.find('div[data-progress-id="'+e+'"]');if(o.find(".bottom_progress_level").css("height",a+"%"),n){var s=o.find(".bottom_progress_overlay"),l=".bottom_progress_";o.find(l+"filename").html('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+Convert.htmlEscape(Convert.textTruncate(Convert.htmlDecode(n[0]),24))).attr("title",Convert.htmlEscape(n[0])),s.find(l+"data").text($(Convert.htmlDecode(n[1])).text()),s.find(l+"percent").text(n[2]+"%")}else o.find(".bottom_progress_overlay").text(a+"%");100==a&&(o.find(".bottom_progress_cancel").remove(),setTimeout(function(){o.remove(),0===r.find("div[data-progress-id]").length&&r.remove()},1e3))}},progress={target:"body",element:"top-aprogress",progress:function(){return!settings_hide_top_loader},start:function(){var e=this;setTimeout(function(){e.progress()&&!$(e.target).find("."+e.element).length&&vars.allow_ui_features&&$(e.target).append('<div class="'+e.element+'"></div>')},100)},end:function(){0===v___theme_progress?$(this.target).find("."+this.element).remove():setTimeout(function(){v___theme_progress=0},0)}},session={reauthenticate:{start:function(){var e=this,t=e.target;!$("."+t).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",success:function(a){var n=Test.strContains(a,v___page_signin_form+" pam_");if(!Test.strContains(a,v___page_signin_banner)){var r=$(a).find('input[name="twofactor"]').length,i=e.lock_targets,o=e.lock_type,s=$("body").find(".-shell-port-"),l='<input type="hidden" name="ajax" value="1">',c=$(a).find("._logo_welcome > img").attr("src");$(i).addClass(o),$("body").append(HTML.template.reauthenticate(t)),plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock(),plugins.shell.close(s),r||$("."+t).find("[data-container-twofactor]").remove(),c&&$("."+t).append("<style>.session-reauthenticate-container-center:before{background-image: url("+c+");}</style>"),$("."+t).find("form").on("submit",function(e){(e.preventDefault(),e.stopImmediatePropagation(),n)&&$("."+t).find('form input[name="user"]').attr("name","answer").val(get_server_data("user"));var r=$(a).find("form").append(l).attr("action"),i=$("."+t).find("form").serialize(),o=$("."+t).find("[data-submit]"),s=$("."+t+"-header-icon i"),c=$("."+t+"-header-title h3"),d=$("."+t+"-header-title small");function u(e,a,n,r){if(a){var i="session_failed"===theme_language(a,1)?theme_language("session_failed_password"):a;i.endsWith(".")||(i+="."),i=i.replace(/\n/gm,""),d.text(i).addClass("text-danger").removeClass("loading-dots"),o.removeClass("btn-grey disabled").addClass("btn-success");var l=$(r).find(".alert[data-twofactor]").length?$("."+t).find('input[name="twofactor"]'):$("."+t).find('input:not([name="user"]):not([name="twofactor"])');l.addClass("faa-horizontal animated"),l[0].focus(),setTimeout(function(){l.removeClass("faa-horizontal animated")},1e3)}else e&&!n&&(d.text(theme_language("signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),s.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),c.text(theme_language("session_unlocked")),v___available_session=1,setTimeout(function(){session.reauthenticate.end()},1800))}o.hasClass("disabled")||(d.text(theme_language("signing_in")+"").removeClass("text-danger").addClass("loading-dots"),o.addClass("btn-grey disabled").removeClass("btn-success"),$.ajax({type:"GET",url:r,data:i,dataType:"text",success:function(e){var a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length;if(n){var s=$(e).find("form").append(l),c=(s.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val()),s.serialize());$.ajax({type:"GET",url:r,data:c,dataType:"text",success:function(e){a=$(e).find(".switch-toggle").text().length,i=$(e).find(".alert span").text(),o=i.length,u(a,i,o,e)}})}else u(a,i,o,e)},error:function(){o.removeClass("btn-grey disabled").addClass("btn-success"),d.text(theme_language("connection_error")).addClass("text-danger").addClass("loading-dots")}}))})}}})},end:function(){v___available_session=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .form-control.sidebar-search, .jsPanel, #jsPanel-replacement-container, .popover, .container-fluid, .right-side-tabs, .right-side-tabs-toggler",lock_type:"pointer-events-none bg-filter-blur3-grayscale100-opacity35-contrast1-2-brightness0-9 disabled"}},Test={true:function(e){return!/^(false|0)$/i.test(e)&&!!e},false:function(e){return/^(false|0)$/i.test(e)||!e},numeric:function(e){return Number(parseFloat(e))==e},string:function(e){return"string"==typeof e||e instanceof String?1:0},strContains:function(e,t){return"string"==typeof e&&!!~e.indexOf(t)},str_contains_multi:function(e,t){for(var a in t){var n=t[a];if(e.indexOf(n)>-1)return!0}return!1},arrContains:function(e,t,a){return void 0===a&&(a=0),e=$.inArray(t,e),a?e:-1<e?1:0},arrIntersect:function(e,t){var a=[];return $.each(e,function(e,n){t.match(new RegExp(n,"gi"))&&a.push(n)}),!$.isEmptyObject(a)},json:function(e){var t=!0;try{$.parseJSON(e)}catch(e){t=!1}return t},input:{radio:function(e,t){var a=t?":visible":"",n=$("body").find('[name="'+e+'"]:checked'+a);return n.length?n.val():-1}},html:function(e){if($.trim(e).startsWith("{")||$.trim(e).endsWith("}"))return!1;var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(function(e){return 1===e.nodeType})},scrolledIntoView:function(e){var t=$(e),a=$(window),n=a.scrollTop(),r=n+a.height(),i=t.offset(),o=i?i.top:0;return o+t.height()<=r&&o>=n},occurrences:function(e,t,a){if(e+="",(t+="").length<=0)return e.length+1;for(var n=0,r=0,i=a?1:t.length;(r=e.indexOf(t,r))>=0;)++n,r+=i;return n},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length||$('[contenteditable="true"]:focus').length}},theme={download:function(e,t,a,n){if(n=void 0===n||1==n||!0===n?String():'target="_blank"',e&&t){t="string"==typeof t?t:$.param(t);var r="";$.each(t.split("&"),function(){var e=this.split("=");r+='<input type="hidden" name="'+e[0]+'" value="'+e[1]+'" />'}),$("<form "+n+' data-download="true" action="'+e+'" method="'+(a||"post")+'">'+r+"</form>").appendTo("body").submit().remove()}},veiled:function(e){var t=$(".container-fluid, .jsPanel").add($("aside")).add($("#right-side-tabs")).add($(".right-side-tabs-toggler")),a="pointer-events-none bg-filter-blur-grayscale-opacity50";if(-1===e)return t.hasClass(a);e?t.addClass(a):t.removeClass(a)},update:function(e,t){var a=1===e?"-release":"-beta";theme.veiled(1),set_onbeforeunload_status(1,0),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("git_patch_initiated")+" "+theme_language("global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',1800,"info","themeUpgrade",0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-update=1&xhr-update-type="+a+"&xhr-update-force="+t,data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:e[0]&&e[0].success?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+e[0].success,4,"success","themeUpgrade"),plugins.slider.notifications.dismiss("authentic_remote_version"),set_server_theme_temp_data("goto",v___location_prefix+"/sysinfo.cgi"),setTimeout(function(){theme_reload()},2e3)):e[0]&&e[0].no_connection?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-unplugged"></i>'+e[0].no_connection,40,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].no_git?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+e[0].no_git,20,"warning","themeUpgrade"),theme.veiled(0)):e[0]&&e[0].incompatible?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+e[0].incompatible,120,"error","themeUpgrade"),theme.veiled(0)):(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0))},error:function(e){plugins.messenger.post('<i class="fa fa-lg fa-fw fa-git-pull"></i>'+theme_language("git_patch_update"),20,"error","themeUpgrade"),theme.veiled(0)},complete:function(e){set_onbeforeunload_status(0,0)}})},version:function(){return v___theme_version},visibility:function(e){0===v___theme_visibility_check&&(v___theme_visibility_check=1,settings_sysinfo_real_time_stored||(0===e?"object"==typeof stats&&stats.general.disable():"object"==typeof stats&&stats.general.enable()),setTimeout(function(){v___theme_visibility_check=0,vars.events.keypressed.shift=!1,vars.events.keypressed.alt=!1},0))}},quirks={active_element:function(){return document.activeElement&&$(document.activeElement).is("body")?v___page_activeElement:document.activeElement},local_storage:{safari:function(){if("object"==typeof localStorage)try{localStorage.setItem("d41d8cd98f00",1),localStorage.removeItem("d41d8cd98f00")}catch(e){Storage.prototype._setItem=Storage.prototype.setItem,Storage.prototype.setItem=function(){},vars.local_storage=0}}},render:{apple:function(){browser.detect.safari(1)&&$("html").css("overflow","auto");var e=$(".__page");browser.detect.safari()&&e.addClass("browser_safari"),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;")}}},regex={matches:function(e,t,a,n){a||(a=1);for(var r,i=[];r=t.exec(e);)i.push(r[a]);return n&&(i=i.slice(-1)[0]),i}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition"),e.getResponseHeader("content-length")]}};const plugins={};plugins.shell=function(){var e=function(){return $("body").find(".-shell-port-").hasClass("opened")},t=function(){return $t_uri_cloudmin&&$('a[target="page"][href*="/server-manager/save_serv.cgi"][href*="shell=1"]').length},a=function(e,t,a,i){return'<form class="hidden" role="form" action="'+e+'" method="post" enctype="multipart/form-data">'+(t?'<input type="hidden" id="id" name="id" value="'+$('select[name="sid"]').val()+'">':"")+(null===a?'<input type="hidden" id="clearcmds" name="clearcmds" value="clearcmds">':!1===a?"":'<input type="hidden" id="cmd" name="cmd" value="'+a.replace(/"/g,"&quot;")+'">')+'<input type="hidden" id="pwd" name="pwd" value="'+i+'"></form>'},n=function(e){var a=t(),i=$('select[name="sid"]').val();e||(e=""),i||(i=0),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-insert=1&xhr-shell-inserted="+e+"&xhr-shell-cms="+a+"&xhr-shell-cmsid="+i,dataType:"text",complete:function(e){if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=JSON.parse(e);localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t))}}})},s=function(e,t,a){$(e).next("pre").remove(),c(),o(t),a.scrollTop(a[0].scrollHeight),setTimeout(function(){vars.shell.processing=0,vars.shell.history=0,t.removeAttr("readonly").focus()},100)},o=function(e){e.val(""),e.focus()},r=function(e){var t=$("body").find(".-shell-port-"),a=a=void 0!==e&&(e.startsWith("!")?e.substr(1):e),i=t.find("input"),s=(t.find(".-shell-port-pwd").attr("data-pwd"),t.find("[data-shell-host]")),o=s.attr("data-shell-host");if($t_uri_cloudmin){var r=$('aside [name="sid"] option:selected');current_host_name=r.attr("title")||r.text(),s.text(current_host_name)}else s.text(o);if(n(!1),a){i.val(a);var l=$.Event("keydown");l.which=13,i.trigger(l)}t.css("bottom","0vh").addClass("opened"),p(),c(),setTimeout(function(){a||(focus(),i.focus())},20)},l=function(){$("body").find(".-shell-port-").css("bottom","100vh").removeClass("opened"),v___module==v___module_file_manager&&"function"==typeof __f__state__changed&&__f__state__changed(),$(".command-shell-editor-spinner").remove(),p(!0)},_=function(e){var t=$(".-shell-port-container .-shell-port-cmd");e?t.addClass("invisible"):t.removeClass("invisible")},c=function(){if(1==core.moduleAvailable("shell")){var e=parseInt($("body").find(".-shell-port-cmd").width()),t=parseInt($("body").find(".-shell-port-prompt").width());$("body").find('.-shell-port- input[data-command="true"]').css("width",e-t-50+"px")}},d=function(){var e=t();return 1==core.moduleAvailable("shell")||e?1:0},p=function(p){var f=$(document.body).find(".-shell-port-"),u=f.find('input[data-command="true"]'),m=f.find("div[data-output]"),h=f.find(".-shell-port-container"),v=f.data("autocomplete"),b=$(window),x=".plugin-shell";if(p)return b.off("keydown"+x),b.off("keyup"+x),void h.off("click"+x);b.on("keydown"+x,function(t){var a=this,i=e(),n=$(".modal-shell-config:visible").length,s=String.fromCharCode(t.which).toLowerCase();if(t[settings_hotkey_toggle_modifier]&&s==settings_hotkey_shell&&theme_shortcuts_modifier_unique(t))return t.preventDefault(),void(i&&l());if((t.altKey||t.ctrlKey)&&"l"==String.fromCharCode(t.which).toLowerCase()&&t.preventDefault(),void 0===a.shell_request_interrupted&&(a.shell_request_interrupted=0),void 0===this.last_pressed_times?this.last_pressed_times=0:this.last_pressed_times+=1,setTimeout(function(){a.last_pressed_times=0},vars.event.double_click_delay),"c"===s&&a.last_pressed_times>1&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey)return a.shell_request_interrupted=1,"object"==typeof a.shell_request&&"pending"===a.shell_request.state()&&a.shell_request.abort(),void setTimeout(function(){a.shell_request_interrupted=0},1e3);if(this.searching||"r"===s&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey){if(t.preventDefault(),"object"==typeof a.shell_request&&"pending"===a.shell_request.state())return;var o=$(".-shell-port-type"),r=$('.-shell-port- input[data-command="true"]');if(h.scrollTop(h[0].scrollHeight),this.searching=1,run_search=function(e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")).filter(function(t){return t.includes(e)});return $.unique(t).reverse()},update_search=function(e,i){if(this.used_index&&!i||(this.used_index=0),t.ctrlKey){if("c"===s)return void cancel_search(1);if("r"!==s)return}JSON.stringify(e)!=JSON.stringify(this.results)||i?this.results=e:t.shiftKey?--this.used_index:++this.used_index,e.length<=this.used_index&&(this.used_index=0),this.used_index<0&&(this.used_index=e.length-this.used_index-2);var n=this.searching_shell_str_replaced.find("span[data-searching]"),o=n.text(),l=localStorage.getItem(v___server_hostname+"-shell_command_last");if(!a.pre_searched&&l&&("undefined"===l&&(l=String()),a.pre_searched=l),o||!a.pre_searched)o&&e.length?(success_search(),e&&r.val(Convert.htmlUnEscape(e[this.used_index])),c()):failed_search();else{n.text(a.pre_searched);var _=run_search(a.pre_searched);update_search(_,0)}},failed_search=function(){var e=a.searching_shell_str_replaced.html();e.includes("failed reverse")||a.searching_shell_str_replaced.html(e.replace("reverse-i-search","failed reverse-i-search")),c(),new Audio("data:audio/ogg; codecs=opus;base64,T2dnUwACAAAAAAAAAAArS957AAAAAAff6O0BHgF2b3JiaXMAAAAAAkSsAAAAAAAAAO4CAAAAAAC4AU9nZ1MAAAAAAAAAAAAAK0veewEAAABiry0KEC3//////////////////3EDdm9yYmlzHQAAAFhpcGguT3JnIGxpYlZvcmJpcyBJIDIwMDcwNjIyAAAAAAEFdm9yYmlzK0JDVgEACAAAADFMIMWA0JBVAAAQAABgJCkOk2ZJKaWUoSh5mJRISSmllMUwiZiUicUYY4wxxhhjjDHGGGOMIDRkFQAABACAKAmOo+ZJas45ZxgnjnKgOWlOOKcgB4pR4DkJwvUmY26mtKZrbs4pJQgNWQUAAAIAQEghhRRSSCGFFGKIIYYYYoghhxxyyCGnnHIKKqigggoyyCCDTDLppJNOOumoo4466ii00EILLbTSSkwx1VZjrr0GXXxzzjnnnHPOOeecc84JQkNWAQAgAAAEQgYZZBBCCCGFFFKIKaaYcgoyyIDQkFUAACAAgAAAAABHkRRJsRTLsRzN0SRP8ixREzXRM0VTVE1VVVVVdV1XdmXXdnXXdn1ZmIVbuH1ZuIVb2IVd94VhGIZhGIZhGIZh+H3f933f930gNGQVACABAKAjOZbjKaIiGqLiOaIDhIasAgBkAAAEACAJkiIpkqNJpmZqrmmbtmirtm3LsizLsgyEhqwCAAABAAQAAAAAAKBpmqZpmqZpmqZpmqZpmqZpmqZpmmZZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZlmVZQGjIKgBAAgBAx3Ecx3EkRVIkx3IsBwgNWQUAyAAACABAUizFcjRHczTHczzHczxHdETJlEzN9EwPCA1ZBQAAAgAIAAAAAABAMRzFcRzJ0SRPUi3TcjVXcz3Xc03XdV1XVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYHQkFUAAAQAACGdZpZqgAgzkGEgNGQVAIAAAAAYoQhDDAgNWQUAAAQAAIih5CCa0JrzzTkOmuWgqRSb08GJVJsnuamYm3POOeecbM4Z45xzzinKmcWgmdCac85JDJqloJnQmnPOeRKbB62p0ppzzhnnnA7GGWGcc85p0poHqdlYm3POWdCa5qi5FJtzzomUmye1uVSbc84555xzzjnnnHPOqV6czsE54Zxzzonam2u5CV2cc875ZJzuzQnhnHPOOeecc84555xzzglCQ1YBAEAAAARh2BjGnYIgfY4GYhQhpiGTHnSPDpOgMcgppB6NjkZKqYNQUhknpXSC0JBVAAAgAACEEFJIIYUUUkghhRRSSCGGGGKIIaeccgoqqKSSiirKKLPMMssss8wyy6zDzjrrsMMQQwwxtNJKLDXVVmONteaec645SGultdZaK6WUUkoppSA0ZBUAAAIAQCBkkEEGGYUUUkghhphyyimnoIIKCA1ZBQAAAgAIAAAA8CTPER3RER3RER3RER3RER3P8RxREiVREiXRMi1TMz1VVFVXdm1Zl3Xbt4Vd2HXf133f141fF4ZlWZZlWZZlWZZlWZZlWZZlCUJDVgEAIAAAAEIIIYQUUkghhZRijDHHnINOQgmB0JBVAAAgAIAAAAAAR3EUx5EcyZEkS7IkTdIszfI0T/M00RNFUTRNUxVd0RV10xZlUzZd0zVl01Vl1XZl2bZlW7d9WbZ93/d93/d93/d93/d939d1IDRkFQAgAQCgIzmSIimSIjmO40iSBISGrAIAZAAABACgKI7iOI4jSZIkWZImeZZniZqpmZ7pqaIKhIasAgAAAQAEAAAAAACgaIqnmIqniIrniI4oiZZpiZqquaJsyq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rukBoyCoAQAIAQEdyJEdyJEVSJEVyJAcIDVkFAMgAAAgAwDEcQ1Ikx7IsTfM0T/M00RM90TM9VXRFFwgNWQUAAAIACAAAAAAAwJAMS7EczdEkUVIt1VI11VItVVQ9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV1TRN0zSB0JCVAAAZAAACKcWahFCSQU5K7EVpxiAHrQblKYQYk9iL6ZhCyFFQKmQMGeRAydQxhhDzYmOnFELMi/Glc4xBL8a4UkIowQhCQ1YEAFEAAAZJIkkkSfI0okj0JM0jijwRgCR6PI/nSZ7I83geAEkUeR7Pk0SR5/E8AQAAAQ4AAAEWQqEhKwKAOAEAiyR5HknyPJLkeTRNFCGKkqaJIs8zTZ5mikxTVaGqkqaJIs8zTZonmkxTVaGqniiqKlV1XarpumTbtmHLniiqKlV1XabqumzZtiHbAAAAJE9TTZpmmjTNNImiakJVJc0zVZpmmjTNNImiqUJVPVN0XabpukzTdbmuLEOWPdF0XaapukzTdbmuLEOWAQAASJ6nqjTNNGmaaRJFU4VqSp6nqjTNNGmaaRJFVYWpeqbpukzTdZmm63JlWYYte6bpukzTdZmm65JdWYYsAwAA0EzTlomi7BJF12WargvX1UxTtomiKxNF12WargvXFVXVlqmmLVNVWea6sgxZFlVVtpmqbFNVWea6sgxZBgAAAAAAAAAAgKiqtk1VZZlqyjLXlWXIsqiqtk1VZZmpyjLXtWXIsgAAgAEHAIAAE8pAoSErAYAoAACH4liWpokix7EsTRNNjmNZmmaKJEnTPM80oVmeZ5rQNFFUVWiaKKoqAAACAAAKHAAAAmzQlFgcoNCQlQBASACAw3EsS9M8z/NEUTRNk+NYlueJoiiapmmqKsexLM8TRVE0TdNUVZalaZ4niqJomqqqqtA0zxNFUTRNVVVVaJoomqZpqqqqui40TRRN0zRVVVVdF5rmeaJomqrquq4LPE8UTVNVXdd1AQAAAAAAAAAAAAAAAAAAAAAEAAAcOAAABBhBJxlVFmGjCRcegEJDVgQAUQAAgDGIMcWYUQpCKSU0SkEJJZQKQmmppJRJSK211jIpqbXWWiWltJZay6Ck1lprmYTWWmutAACwAwcAsAMLodCQlQBAHgAAgoxSjDnnHDVGKcacc44aoxRjzjlHlVLKOecgpJQqxZxzDlJKGXPOOecopYw555xzlFLnnHPOOUqplM455xylVErnnHOOUiolY845JwAAqMABACDARpHNCUaCCg1ZCQCkAgAYHMeyPM/zTNE0LUnSNFEURdNUVUuSNE0UTVE1VZVlaZoomqaqui5N0zRRNE1VdV2q6nmmqaqu67pUV/RMU1VdV5YBAAAAAAAAAAAAAQDgCQ4AQAU2rI5wUjQWWGjISgAgAwAAMQYhZAxCyBiEFEIIKaUQEgAAMOAAABBgQhkoNGQlAJAKAAAYo5RzzklJpUKIMecglNJShRBjzkEopaWoMcYglJJSa1FjjEEoJaXWomshlJJSSq1F10IoJaXWWotSqlRKaq3FGKVUqZTWWosxSqlzSq3FGGOUUveUWoux1iildDLGGGOtzTnnZIwxxloLAEBocAAAO7BhdYSTorHAQkNWAgB5AAAIQkoxxhhjECGlGGPMMYeQUowxxhhUijHGHGMOQsgYY4wxByFkjDHnnIMQMsYYY85BCJ1zjjHnIITQOceYcxBC55xjzDkIoXOMMeacAACgAgcAgAAbRTYnGAkqNGQlABAOAAAYw5hzjDkGnYQKIecgdA5CKqlUCDkHoXMQSkmpeA46KSGUUkoqxXMQSgmhlJRaKy6GUkoopaTUUpExhFJKKSWl1ooxpoSQUkqptVaMMaGEVFJKKbZijI2lpNRaa60VY2wsJZXWWmutGGOMaym1FmOsxRhjXEuppRhrLMYY43tqLcZYYzHGGJ9baimmXAsAMHlwAIBKsHGGlaSzwtHgQkNWAgC5AQAIQkoxxphjzjnnnHPOSaUYc8455yCEEEIIIZRKMeacc85BByGEEEIoGXPOOQchhBBCCCGEUFLqmHMOQgghhBBCCCGl1DnnIIQQQgghhBBCSqlzzkEIIYQQQgghhJRSCCGEEEIIIYQQQggppZRCCCGEEEIIIZQSUkophRBCCCWEEkoIJaSUUgohhBBCKaWEUkJJKaUUQgillFBKKaGUkFJKKaUQQiillFBKKSWllFJKJZRSSikllFBKSimllEoooZRQSimllJRSSimVUkopJZRSSgkppZRSSqmUUkoppZRSUkoppZRSKaWUUkoppaSUUkoppVJKKaWUEkpJKaWUUkqllFBKKaWUUlJKKaWUSgqllFJKKaUAAKADBwCAACMqLcROM648AkcUMkxAhYasBABSAQAAQiillFJKKTWMUUoppZRSihyklFJKKaWUUkoppZRSSimVUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKAcDdFw6APhM2rI5wUjQWWGjISgAgFQAAMIYxxphyzjmllHPOOQadlEgp5yB0TkopPYQQQgidhJR6ByGEEEIpKfUYQyghlJRS67GGTjoIpbTUaw8hhJRaaqn3HjKoKKWSUu89tVBSainG3ntLJbPSWmu9595LKinG2nrvObeSUkwtFgBgEuEAgLhgw+oIJ0VjgYWGrAIAYgAACEMMQkgppZRSSinGGGOMMcYYY4wxxhhjjDHGGGOMMQEAgAkOAAABVrArs7Rqo7ipk7zog8AndMRmZMilVMzkRNAjNdRiJdihFdzgBWChISsBADIAAMRRrDXGXitiGISSaiwNQYxBibllxijlJObWKaWUk1hTyJRSzFmKJXRMKUYpphJCxpSkGGOMKXTSWs49t1RKCwAAgCAAwECEzAQCBVBgIAMADhASpACAwgJDx3AREJBLyCgwKBwTzkmnDQBAECIzRCJiMUhMqAaKiukAYHGBIR8AMjQ20i4uoMsAF3Rx14EQghCEIBYHUEACDk644Yk3POEGJ+gUlToQAAAAAAAIAHgAAEg2gIhoZuY4Ojw+QEJERkhKTE5QUlQEAAAAAAAQAD4AAJIVICKamTmODo8PkBCREZISkxOUFJUAAEAAAQAAAAAQQAACAgIAAAAAAAEAAAACAk9nZ1MAAEAUAAAAAAAAK0veewIAAABnj+O9HJeVV1dTVZqZlJWTVZOLl//3WFxXYJeV//8Y/+Tc/UxIYKVFdYLOWPcLKpEsrrEHETnXiqysLLNdS6y95/ef+7Vi79Z9zVZ919e44pxH0T+fHGONcSbr+Qza425fEvs1zysffUT9+zQaHgrT7V/01BzsuyrXpCXz0qMP4mSLYZ2iYZT7dVnREnYkX1fr+76Ya2rOIWxZqt/+8fu7dPBeNIMvH50Ln/UwOVyC7df/vwOSxAYAnB1ByNXUFeZiWLQlkZiQm/UrEE59c0TW7pJx5T1in2f5ufWtNeqfPh5UhKJ5rdkW3euzR5Bnxl6ZzVEj9x8jle81vvdbX+QF7AwF9aGXl0vbqWO385cr/4ltd2sspXI3JZbe9d13usNKvuGcrs55V9wupuJlY2SjF3pHn3vGm7VOUVPVZ8767T912a/rarz46AM0sASMAUWc62z2vGvAFJAwodfkUjqDTLGzVPSOi9SKWYilemD7LM7PZDfiZ1+7Wd9jc3HC0/tMv7uMv+Oc0Otg3fEj4k2cmQf4d5xhlz5+lH9zf9pbh576EAJ09fQ8F1hhUuCwmTShJhOPShKBifF//C2oGLikd4xiSI4XPjMvcC/fz6+Y/NSLZJ949nOVksu7IHcbrNCJ7jqvFvahjonXr/Z5SS6ZyX96/29uk57eKQOU8TwkAAINXFDOfChOgCQRgSE25x89VUuxy5tRsMqCWWx3Cft8rdllSMbllX0bvbfFfosLI3sPree1B0v9TTQ7+jL2841/MKsdSr507La/nkbdBYzxfDJhDtLNyW4bkMIJJCCnyDDlv/RQX4SoeaMobphUZvcB8vmn/K3t5z2X7sj+XX1JmOxl07wOHVdzgCU7/dclLZ806G8sziRsKGVPB9v+1wbZmgGc/TBJJAABVw8riiaxOplhpajhMd+fXbRlhCYzzmLvec4vr6tsmj35n+/XQzM352aNu+e0RpP7tawxRql5rht79+81u/Jz/vuUY01kENkbGLKS5UTaS6Va3/++pPF1Xr9O0bz3GvvHouGXQ5J7zb2GKsn9v9VK4nl64fFb0yekKdnWf8P31ynuiHxEwzj+eyudorVr7ed53cwB1A09yjNcLxdb7GCfM+pYEFodXu7nmv79yoNZu7rU36bw6+1r5r37+9mw9dentyvZd5i+WLfGXe/fx7WbEbTu+bNikUDTOz9t12eXvXHf3S0Xr56ufnpbeuS7LSqIHUseattE6vKT8vcDl399cvnIjOLhZVX8/P795f31Ydb/J3H8e3HM7Z9u9TZq58odu57+hutTjjvoDZcwBEa9MNiNz/7Ix0ic6kNwyIbxR20/4uzp+JHIcej6xV4Zo82535pzx/65rWuPZmp2j8yj0ryPj0hXwFUf7Oaz8vPKeS+/OGuFJMOpeO6rx59Vqw4/lVTbffsixD6Gq7eXQ/9X177EP51Hm2rPIlr3q9Ztc7XS3v9sDrHm5/y1lv4Me6165m8OO9NwP87y/acOWh0LABRaRZtYF/+L4LqLWeASZv8aDUXgrdeoqGxf7Vno0uhKTrPz9j7HfK/Rc32P++ftHOO2Wr5iTPb/qNyYvXJk7Ht8nn7jrVlkWK/arnPYU6Lw8PXlE5GdX/MeNaf/C7spMYwCI3LH0KN+tyzb/ancv1y/ePfoOTkXF4g1Z1dM/58v7/0OXeG3l+819X0kMCo+t//wh0kAtGH1IxciZPnRX18fVrpcoMc+jYeed+43PgCN5kLMzu9nxvpJM2dhFiOLa/ZsHk1sWJHd0ytwHSWpl52utUZc3z12TquTYTTviwy6tvIrpesF9lQpoj4Mt5D16Y9/92pXBjZ0ee92bmE7m5du1YT+1oa76ndJvEL6vFN1IbLTCv6+X9/JiivLYm7vHrftvL5+PgEA/EX1IZeObBdctRf12FzJau7WCJVw0kTZprqtCDKop3ifxDvfiaVfd5377OHy3v0Us1Xe/NvK4uf/jzjn0hjvvmoeKtnUjLdPQvCyiDNm8fvLrbUmAARScQ7CfBpJDZp7VbEnzO86Mojtrl5X3zU9Qugxe91zvP1KiJVfZ3+4Z2M4V2aP5hxTWJlxW5+59qYrtB923ztvflqf2YHcepBwsXLILn65YTJ0C+o/yav4U49aXvSnD/c1RI/AF0/dvx7auZM39VHYvumRHtxFN/vf36FKN8V36azKWplP9G3dxdXsSCETskQDAORBCZ0rznlH2jn6poDkikd7BYS72r9VFu2OaDLXyD/dfc/NRuuKa7vrZUSNbFU7W3GO+PWXzZ7H5hGZJLBeLfnHPbzAzFrXoN5Zq0y8QOEdlO1f9O51qhOBuPu+R2rlVnTvoH9IvyKOZnsuvkf87oHOtZ06/69D8W2sfnzveExRd36D3e3McN0JKQC0SXUmMSN87QvKw0LDr6uiPFezdj11Es/zLrHGdGIh1vdntezxaOw+Vv99jH3/bKuv1Tr4QDxlaSYR1RZ7/m69ptWIVr9HjiDDoPnSzh6NX9J5t1CmZ1x/CKvTNa5hCh8Wt3m+iR7ulbabrz8lOa9txqPm1L2dXPwvVOLJd/r2Wnqn1tU3/ex66lu3/s/L9znGc9teLgAAcufkZfE73M4sm1rDr3r+1pqBbl7/dYjrNtas5Dilf+638lzfX93+/D++TR+1zYv9cP7wNXu01LO3Yk+vV1/kmO157N4A3DzFdRcrJfPaAADAj3KvHMeMrLq8OO/Cm4Vm8u+7rXmlh8Sh97fy44euqzcHY/m4mH1tO3/81OsZudgez3e4PWWaQ1tb0wQRpy+6h1NXOTXbrXDtT1leSxuzbyXoul7f15/9fb1752X7xlNtwlw6x8fj8Ls84rfn1sWci5vhsfl+t/PtoXtdOgk3Om+XwMpd3lP7zs2691IP8JBRjNHwPMX8aJPVGd97Z8+RzO7/+9NAhqjpHMUzjtZO8h3O+K1ecoplrYpWl/V83WH2Pjvu2O5uubrOjZvOca73h6q4zq/z6yuNzXzynM7Xw/5Q3cbV/u+ZQh18pohPyJJyW+/uwGAurL0ssIuszAjUH+IoRiksphmNYqkrMorVvZd60ZTVEpbaRm51aS2ap37ueWd6UVs8hPU/ZTJZayFMPRrqlxKsBCABqrV9DFWbsTOFKDA3J6+Hslbecp/eng26l/cby43G4qRpIJdJZzDd7wwY3IEk+od/a/1hdbszvan+cn8JwGvomufx7p7NJUNXTlzp3zQXXaqWOhQfdCnB23pzyWgmZ7hMfN6AcQb2MwavchM4AHQ1r50Se44/Hsa8avmatYGCiLYqyFHgt/zd94qtLNUoghdG8aftHPetsqKvrQOmUwt8mZzyoO9xoplpbgyrXzjvh2fO27KjkptUmXkp78XeDfnYzcPEzwCEHV9/enrUVLhcSdgx5WuePT1FuCNeafR41ldr3hdCCbwpxVIJkZv2rvtSKp61qSkn8WK99H0Xw9T5xf6dMaul7VsaYlNJ6ZoT5pZnJ3b029bX8UpP0vu5x79fAZQpX/9k270+CFwYm4A/fvHs2YkMgTLgrfZWzL4geEMG9UahK891+aRnUhIWqpuO6ys+8OV+7G9LjH3Ztrv4TSa1SoyTTpqaCeM3sSX+dM+wRVZsm6dHAqQxf/DysHM45sDJFa8L+qMfHuOKSwTwX/FeI90L9MSHqEkKsy5ylhvYlPlnZquC3V3/OpfO+/m/Ph8l8Zwy/hZZbpv7fS4f2o3147IRS0lSfvE+L0EeTYx8L2ciPvS8AZxRX//xhnx66HvCjKu+9nuk3FzYDvl+9e67/iZWq2K1ucYaaz2v+xjn+VuuVTdltEkpf8fQmOK0V1ypeCWrGlPh1fdcP/xzv/x083bdX7mmxV9KE1Uvq2LnU1+MW/+f3a3972857cnp+eyNTlrsduzq5ylZP7ef/vfmT/t6esfNLO6R6euW/p7eof2zT49tc+mXbl3hvQKkUV/7Dnv7cfDVrTbpq98GeflYEd915pMZ50crWMG9NmmHte+N2PEJMZ5tK1Grc3qufNJzNdNee/Yb8VVQZIOxdS3YzncMMXJ/GRTSf+/96gzTIvfLxu/Z1Q9Vz6U3eql47z8t32Qmg7S/nUYcrL08VMzWEuldnpx35OvoOUfHt/7Y2vatI1unvs6tU6ddJXzL3N7dCzpG3Mz1S8ABUDf97feQvc3D8FbD55dw08SH0K/bzSMFiBjeauj81yFyXU/1tdeOGPb++u2yp3ld+sAbuaL11OxgaQLmrt6AuvQCMHquK0mxhR2bRJIAzu/tCPlZ4V4xjQ5WF88td97erBgaq0GP+2gpiDdm41R7c9X5FtrZ0q+Wfao9CcY4f+tQbLu6k9IkiWUwSa9Vxav8Px+HbVOnzPXxS1dHxscP5uX2YXO5XvamuzVPd3KvrllzXYnD9aN260vlcibOvy1mujgzjand6qpaRiLrS6WLSq/lxW8T/cNCAmBh6T/DkUHMOe85evrYKWz3z9WsX79c4ppaPvVEFnvt+5CdkcXIZFpk/fq6f08TpqyDHMz9q0xXl3Vc53o0PvnpnIsuKbT3i6y2yh81v533U78uG6ZPTEbGZpT9IQnjeK3XyopF/eJf2nAuFvd9FRZtO9+UxVQCK+z+nCD3CePyW+IM35aGnn+0W/yWuFynSXuo8XtssfSC+l/1PzNd2kzCfgZWMVk/LD1e8euHe4jclkz+bEFpERv78XepH3Cbit8XMdm07dP8T2QczzsHLpJ+Kz5tzLmTb9Eqhizfx+VzAB6eOxbm+mt2+r3Ihb2/Ii+kyi34F5zNp2v+MDgqdoGxnxFfgew1c/bvT++jTVt9Ul757I/Ur/L1Gc3z1u8CfDZVwrUyMjK/XKB4Q21PlyYttwIJAH4V3Eh5qV440zVkyXLGuwoOK3dhH/hDL+uUDbf/ydnuo7eMW675bJxuP59ZebtEmgYvMM5fN3MkVNfUG4DnbQDOOaMmxHZyEQAAGNWWw9TaU9go20s5zr3/B4I4bQctWRG951dK5aNP8LU0z8bIgB09k6p5JBPUjqDY1KwxVp4+LYCHazhrfHjfx1kV54nPzvWKs9SmRcjqsMZbhPouSphMdumV42pkYb/vt5isZ7qoFFaPUk8vSmB68axdvNNVHo4cuF+brNdtbxk2F7dG6aUnsm3UdvlcJmuD825wKvVMfd7Xy+eSc3+pv5/7c4vKy33u0+/fNGHBdJx9tl0sPu8T+79/DkEum0XWJ0eMvryPxfnfDSiWYXQ/L9DE+fkmuoai7InztpFbl5ds813gv9cfZ35x9s9k++zfJe39h+8yQHnQnNn9QHx2htsxffyx4DUyIzW/CeXUpZx/+kE5FXTJwv39Ur2Nxbtl1HLGGxoiietr7YICeHNWvstOd03plLV6tGQXP7Ct+lX21wvsWuapzvnc99/unoY4kQD5/+2egDAN0AOw83322WeigBAjZUUNi3yffd5nMnqGh1/cCvW/zYsF9nlH8N9zn+gBpk1z8r68KGO8e9YMvTvJijVTFzwBAE9nZ1MABAcYAAAAAAAAK0veewMAAAD63TjdAv/mPjWE51OfDSVdk9Eu11E1xM/X++JzOgLu0t2GOOH1n1Ws15//P+eIvXbQx7tjr+el59oLl11Wgw2g4nryAWpMvErF6MYxEgAAAEwJPe9Xlt/pk++eZK/lHE9KfcTQ6+D852DtPkt3soWb7tNULn++n+/rOr38+vT5burg9vnpWHko+qXJvaGl+9vP93o7FLq5ua6Rw/j9PtDT+7w/77Pvz31xvP6Sy5d3J5yrcSkf0LVnPSvpkkuZpHTZwWTtI/nhR95ZHU1YL+UqYkfz8Zvvz6VUl+ulY8GcfSaul+vlPLXrvHz7t2n66YGpX24Xx50YKRUtDrd/70H9f49u1ktNvfQ+0xlnlPu359vTPX0iAyC13P+/f2etbH3lS5uk/92ltLqWdVkj4/patxUt4/j4XOAfSxhbsS8e/b/jm/zha1MBM8nfAr8vym/++MeV5himtKKsn853EtfX16WAXl97b76q5Mgun32iLMqAaaQvvrIAnpHmkqVjWCz0tg7H1F9e7tzNNBkZ9u37PaZf7OVnnsmKI/AuP7odx7ulcTweA84yr8uzDz3LXO6dyTPnqS2yd0bu34a/ns5WAniVgWZ5zWXcp425/7a1pQIA3pSGHse7tGdraQCoPAFuBOXJC0/88nTUywU=").play()},success_search=function(){var e=a.searching_shell_str_replaced.html();a.searching_shell_str_replaced.html(e.replace("failed reverse-i-search","reverse-i-search")),c()},cancel_search=function(e){o.html(a.searching_shell_str),a.searching_shell_str=0,a.searching_shell_str_replaced=0,a.searching=0,e&&r.val(String()),c()},this.searching_shell_str||(this.searching_shell_str=o.html()),this.searching_shell_str_replaced){var _=this.searching_shell_str_replaced.find("span[data-searching]"),d=_.text();if(t.key&&1===t.key.length){var p=t.ctrlKey||t.altKey||t.metaKey?String():t.key,b=d+p;b&&(a.pre_searched=b,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),_.text(b);var x=run_search(_.text());update_search(x,p)}}else this.searching_shell_str_replaced=o.html("(reverse-i-search)`<span data-searching></span>': "),c();if(8===t.keyCode){var y=this.searching_shell_str_replaced.find("span[data-searching]"),A=y.text(),k=A.slice(0,-1);A&&(a.pre_searched=k,localStorage.setItem(v___server_hostname+"-shell_command_last",b)),y.text(k);var w=run_search(y.text());return void update_search(w,1)}9!==t.keyCode&&13!==t.keyCode&&27!==t.keyCode&&37!==t.keyCode&&38!==t.keyCode&&39!==t.keyCode&&40!==t.keyCode||cancel_search()}else if(!i||27!==t.keyCode||n){if(i&&38===t.keyCode&&t.preventDefault(),i&&9===t.keyCode&&u.is(":focus")){if(t.preventDefault(),!v)return;var C=u.val().trim().split(/\s+(?!-)/),S=C.length,I=C[0]&&-1===C[0].indexOf("-")?0:1,V=C[1]&&-1===C[1].indexOf(":")?0:1,T=u.val().endsWith(" "),O="service"===$.trim(C[0]),E="systemctl"===$.trim(C[0]),z=$.trim(C[0])&&$.trim(C[0]).startsWith("chown"),Z=1!==C.length||!u.val().length||I||T?O||E?"services":z?"permissions":"lists":"commands";if(!$.trim(u.val()).length)return;var U=u.val(),q=f.find(".-shell-port-pwd").attr("data-pwd");if("services"===Z){if("systemctl"===(Z=O?"service":"systemctl")&&3!==C.length)return;U="service"==Z?$.trim(C[1]):$.trim(C[2]),"service"===$.trim(C[0])&&(2===C.length&&T||3===C.length)&&(U=3===C.length?"::::"+$.trim(C[1])+"::::"+$.trim(C[2]):"::::"+$.trim(C[1]))}if(z){if(1===S&&!T)return void u.val($.trim(C[0])+" ");V&&$.trim(C[1])?T||C[2]?(Z="lists",U=q+"/::::"+$.trim(C[2])):(Z="groups",U=$.trim($.trim(C[1]).split(":")[1])):(Z="users",U=$.trim(C[1]))}"lists"!==Z||z||(U=q+"/::::"+$.trim(C[1])+"::::"+$.trim(C[0])+"::::"+$.trim(C[2])),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+Z+"&xhr-get_autocomplete_string="+U,data:!1,dataType:"json",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.length;if(1===t)if("service"===Z||"systemctl"===Z||"lists"===Z){var a=$.trim(C[0]),i=$.trim(C[0])+" "+$.trim(C[1]);"lists"===Z?("cd"===a&&e[0].endsWith("/")||"cd"!==a)&&("cd"===a||"cat"===a?u.val(a+" "+e[0]):$.trim(C[2])?u.val(i+" "+e[0]):u.val(a+" "+e[0])):"service"!==a||2!==C.length&&3!==C.length?"systemctl"===a&&3===C.length&&u.val(a+" "+$.trim(C[1])+" "+e[0]):2===C.length?u.val(a+" "+e[0]+" "):3===C.length&&u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0])}else z?V?T||C[2]?u.val($.trim(C[0])+" "+$.trim(C[1])+" "+e[0]):u.val($.trim(C[0])+" "+$.trim($.trim(C[1]).split(":")[0])+":"+e[0]+" "):u.val($.trim(C[0])+" "+e[0]+":"):u.val(e[0]+" ");else if(t>1){var n="<b>"+g()+" "+Convert.htmlEscape(u.val())+"</b>\n";m.find("pre").append(n),m.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),h.scrollTop(h[0].scrollHeight)}setTimeout(function(){u.focus().mousedown()},10)}},error:function(){}})}}else l()}).on("keyup"+x,function(d){var p=this,h=e(),v=$(".modal-shell-config:visible").length;if(h&&!v){var b=0,x=0,y=0,A=$(".form-control.sidebar-search"),k=t(),w=$('select[name="sid"]').val(),C=0,S=t()?v___location_prefix+"/server-manager/shell.cgi":core.moduleAvailable("shell")?v___location_prefix+"/shell/index.cgi":0;if(!S)return;if((h||A.is(":focus"))&&8===d.keyCode&&(vars.shell.history=0),h?(b=$.trim(u.val()),x=1,y=1):(b=A.val(),x=void 0!==A.val(),y=0),(y||x&&(!b.trim()||b.trim().startsWith("!")))&&(38==d.keyCode||40==d.keyCode)){d.preventDefault(),d.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var I=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),V=I?I.length:0;if(0===vars.shell.history&&!b&&40==d.keyCode)return;if(0===vars.shell.history&&b&&38==d.keyCode)return void(C=1);if(vars.shell.history=40==d.keyCode?++vars.shell.history:--vars.shell.history,vars.shell.history<0&&38===d.keyCode?vars.shell.history=V-1:vars.shell.history>V&&(vars.shell.history=0),I&&I[vars.shell.history%V]){if(!$.isEmptyObject(I)&&(vars.shell.history==V&&38===d.keyCode||vars.shell.history==V&&40===d.keyCode||C))return h?u.val("").focus():A.val("").focus(),void(vars.shell.history=0);if(h){var T=I[vars.shell.history%V].replace(/^!/,"");u.val(Convert.htmlUnEscape(T)).focus()}}return}if(x&&b.trim().startsWith("!")&&27==d.keyCode)return d.preventDefault(),d.stopPropagation(),void A.val("").focus();if(x&&b.trim().startsWith("!")&&13==d.keyCode&&(A.addClass("_shell_form_"),d.preventDefault(),d.stopPropagation(),1==core.moduleAvailable("shell")||k)){u.val(b.trim().substring(1)).focus(),r();var O=$.Event("keyup");O.keyCode=13,u.trigger(O)}var E=f.find(".-shell-port-container"),z=f.find(".-shell-port-pwd"),Z=z.attr("data-pwd"),U=$.trim(u.val()),q=0,J=d.keyCode?d.keyCode:d.which,K=(d.altKey||d.ctrlKey)&&"l"==String.fromCharCode(d.which).toLowerCase();if(u.is(":focus")||check_selected_text()||(d.ctrlKey||d.altKey||d.shiftKey||d.metaKey||u.val(u.val()+String.fromCharCode(d.which).toLowerCase()),u.focus()),U&&13===J||K){if(E.find("[data-searching]").length)return;if(core.moduleAvailable("shell")||k){if(1===vars.shell.processing)return;vars.shell.processing=1,("clear"===U||"reset"===U||"exit"===U||K)&&(m.find("pre").html(""),o(u),"exit"==U&&l()),"cd ~"===U&&(q=U,U="cd "+z.attr("data-home"));var M=!1;if("cd /"===U&&(M="/"),"history -c"===U){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var j="<b>"+g()+" "+Convert.htmlEscape(U)+"</b>\n";m.find("pre").append(j),o(u),E.scrollTop(E[0].scrollHeight);var Q=a(S,k,null,Z),R=new FormData($(Q)[0]);return void $.ajax({type:"POST",url:S+"?stripped=1&stripped=2",data:R,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(n(U),vars.shell.processing=0)},error:function(e){}})}if($.trim(U).startsWith("history -d")){var W=U.split(" ")[2];return W&&W.length&&Test.numeric(W)&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-shell-pop="+W+"&xhr-shell-cms="+k+"&xhr-shell-cmsid="+w,data:!1,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if("1"==e){var t=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands"));localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t.filter(function(e,t){return t!==parseInt(W)-1})))}n(U)},error:function(e){}}),o(u),void(vars.shell.processing=0)}if(U.startsWith("history")){o(u);var D=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),P=D?D.length:0,N=P?P.toString().length:0;j="<b>"+g()+" "+Convert.htmlEscape(U)+"</b>\n";return $.each($(D),function(e,t){var a=e.toString().length,n="";for(i=0;i<N+1-a;i++)n+=" ";"string"==typeof t&&(j+=e+1+n+t+"\n")}).promise().done(function(){m.find("pre").append(j),E.scrollTop(E[0].scrollHeight),n(U)}),void(vars.shell.processing=0)}var G=U.split(" "),X=G[0],H=G[1];if(X&&H&&["vim","vi","emacs","nano","edit","editor"].some(function(e){return e===$.trim(X)})){var F=m.find("pre"),L="<b>"+g()+" "+Convert.htmlEscape(u.val());return H.endsWith("/")||H.includes("../")?(F.append(L+" </b>\nCan not open file editor. Unsupported path expression.\n"),void s(ae,u,E)):(edit_file(G[1],Z,[{call:"plugins.shell.toggle"},{call:"plugins.shell.done",params:[ae,u,E]},{call:"plugins.shell.close"}]),F.append(L+" </b>\nOpening internal file editor. "+theme_spinner_small(void 0,"white command-shell-editor-spinner")+"\n"),_(1),E.scrollTop(E[0].scrollHeight),void n(U))}if("clear"===$.trim(U)||"reset"===$.trim(U)||"exit"===$.trim(U)||K)return vars.shell.processing=0,vars.shell.history=0,c(),u.focus(),void(!K&&n(U));var Y=a(S,k,U,Z),B=new FormData($(Y)[0]);u.attr("readonly","true");var ee=0,te=0,ae=".-shell-port-cmd",ie=!1,ne=0;p.shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(Test.strContains(t,v___page_signin_form))return v___available_session=0,void p.shell_request.abort();if(t&&t.length&&/[\x1B]/.test(t))return ne=1,void p.shell_request.abort();if(t&&te++,te>=1&&!ee)t&&($(ae).after("<pre></pre>"),ee++,$(".-shell-port-container").addClass("progressing"));else if(ee){var a=extract_content(t,"<pre>","</pre>",1);a&&(a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),ie=a,$(ae).next("pre").replaceWith(a)),E.scrollTop(E[0].scrollHeight)}},!1),e},type:"POST",url:S+"?stripped=1&stripped=2",data:B,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){$(".-shell-port-container").removeClass("progressing");var t=e.status;if(e=e.responseText,Test.strContains(e,v___page_signin_form))v___available_session=0;else{var a="reboot"===$.trim(U),i="shutdown -h now"===$.trim(U);if(ne||200!==t||3!==get_access_level()&&(a||i)){var o=theme_language("shell_aborted");a?o="The system is rebooting..":i&&(o="The system has been powered off!");var r=200!==t?$.trim(extract_content(ie,"<pre>","</pre>",0))+(p.shell_request_interrupted?"\n^C":String()):o;return 0===t&&(r="Cannot establish connection to the host."),m.find("pre").append("<b>"+g()+" "+Convert.htmlEscape(u.val())+" </b>\n"+r+"\n"),n(U),void s(ae,u,E)}var l=g(),_=($(e).find("pre").length?$(e).find("pre"):$(e).filter("pre")).html().replace(/>&gt;/g,">"+l),c=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(c)),newPwd=$(e).find('input[name="pwd"]').val(),m.find("pre").append(q?_.replace(new RegExp(U,"g"),q):_),z.text(M||(newPwd==z.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0])).attr("data-pwd",Convert.htmlEscape(M||newPwd)).attr("title",Convert.htmlEscape(M||newPwd)),"cd .."===U&&"/"===newPwd&&z.text("/"),s(ae,u,E)}},error:function(e){}})}}}}),h.on("click"+x,"[data-shell-config]",function(){3!==get_access_level()&&$.ajax({type:"GET",url:v___location_prefix+"/config.cgi?shell",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=$(e).find(".ui_form").find("table.sub_table_container"),a=v___location_prefix+"/config_save.cgi";t.find("a").contents().unwrap();var i=t.find("tbody"),n=$(e).find("tr th.table-title b").text();theme_alert(n,'<form><input type="hidden" name="module" value="shell"><table class="table-hover w-100p">'+i[0].outerHTML+'</table><button data-save-shell-config type="submit" class="btn btn-default btn-block margined-bottom--8"><i class="fa fa-fw fa-save-check margined-right-1"></i>'+theme_language("global_save")+"</button></form>",!1,"md","info","cogs",'10 modal-shell-config" data-keyboard="false" data-backdrop="static',0),setTimeout(function(){$("[data-save-shell-config]").on("click",function(e){e.preventDefault();var t=$(this);if(!t.hasClass("disabled")){var i=$(".modal-shell-config"),n=i.find("form").serialize();t.addClass("disabled").find("i").replaceWith(theme_spinner_small(!1," ")),$.ajax({type:"POST",url:a,data:n,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:i.find('[data-dismiss="modal"]').trigger("click")},error:function(){}})}})},300)}}})}).on("click"+x,".-shell-port-close",function(){d()&&l()})},g=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:p,status:e,link:function(){d()?0!=settings_show_terminal_link&&$(".user-link.ported-console").removeClass("hidden"):$(".user-link.ported-console").addClass("hidden")},unlock:function(){vars.shell.processing=0,$('.-shell-port- input[data-command="true"]').removeAttr("readonly")},open:r,close:l,toggle:_,done:s,available:d,adjust:c,set:function(e){var t=$("body").find(".-shell-port-").find(".-shell-port-pwd"),a=t.attr("data-home");if("string"==typeof e){var i=((e=Convert.uriDecodeComponent(e))&&e.endsWith("/")?e.slice(0,-1):e).split("/").pop();i||(i="/",e="/"),2==get_access_level()&&(e=get_user_home()+e),e===a&&(i="~"),e=Convert.htmlEscape(e),t.attr("data-pwd",e).attr("title",e).text(i)}}}}(),plugins.favicon=function(){var e=function(e){a.badge(e),titlenotifier.set(e),a.lastNum=e},t=0;"object"==typeof a&&a.lastNum&&(t=a.lastNum);var a=new Favico({animation:"none"});return e(t),{set:e}}(),plugins.slider=function(){var test_visibility=function(){!0!==settings_side_slider_fixed||$(".mobile-menu-toggler:visible").length&&!vars.navigation_pinned||!$.support.spa||!0===settings_side_slider_fixed&&window.matchMedia("(max-width: 1365px)").matches?set_visibility(0):set_visibility(1)},set_visibility=function(e,t){if(1!==vars.slider_pinned||e||!$(".right-side-tabs i.fa2-collapse-right:visible").length){var a="body .right-side-tabs";"0"==get_server_data("access-level")&&(e?($(a+"-toggler").addClass("hidden"),$(a).css("right","0px").addClass("right-side-tabs-fixed"),settings_side_slider_enabled&&get_server_data("data-slider-fixed","1")):(settings_side_slider_enabled&&(t?$(a+"-toggler").removeClass("hidden").addClass("opened").css("right","300px"):$(a+"-toggler").removeClass("hidden opened").css("right","0")),t?$(a).css("right","0px"):$(a).css("right","-302px"),$(a).removeClass("right-side-tabs-fixed"),get_server_data("data-slider-fixed","0")))}},display_badges=function(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tab-notification-asterix",t="hidden hidden-force",a=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(a),a>0?($(".right-side-tabs-toggler button span.badge").removeClass(t).text(a),$("#right-side-tabs ."+e).removeClass(t).text(a)):($(".right-side-tabs-toggler button span.badge").addClass(t).text(0),$("#right-side-tabs ."+e).addClass(t).text(0))}},check_notifications=function(){var $current_localData_notifications={};$.each(localStorage,function(e,t){if("string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1){var a=e.split("_")[1],i=JSON.parse(t),n=i.title,s=i.time,o=i.timestamp,r=i.message,l=i.readStatus,_=i.type,c=i.link,d=s+"_"+n;"csf_deny"===_&&(d=s+"_"+n.replace(/\W/g,"")+r.replace(/\W/g,"")),$current_localData_notifications[d]=a+"~~~~"+n+"~~~~"+s+"~~~~"+o+"~~~~"+r+"~~~~"+l+"~~~~"+_+"~~~~"+c,$('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length&&$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(moment.unix(s).fromNow())}});var package_message_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("package_message")>-1}).length,csf_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_remote_version")>-1}).length,authentic_remote_version_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("authentic_remote_version")>-1}).length,csf_title_num=Object.values($current_localData_notifications).filter(function(e){return e.indexOf("csf_title")>-1}).length,keys=[];for(var key in $current_localData_notifications)$current_localData_notifications.hasOwnProperty(key)&&keys.push(key);$current_localData_notifications_sorted_keys=keys.sort(),$.each($current_localData_notifications_sorted_keys,function(i,v){var vx=$current_localData_notifications[v],$__id__=vx.split("~~~~")[0],$__data__title=vx.split("~~~~")[1],$__data__time=vx.split("~~~~")[2],$__data__timestamp=vx.split("~~~~")[3],$__data__message=vx.split("~~~~")[4],$__data__readStatus=vx.split("~~~~")[5],$__data__type=vx.split("~~~~")[6],$__data__link=vx.split("~~~~")[7];if("package_message"==$__data__type||"csf_remote_version"==$__data__type||"authentic_remote_version"==$__data__type||"csf_title"==$__data__type){var $__num=eval($__data__type+"_num");i+1<$__num&&($__data__readStatus=1)}$('.list-group-item[id="'+$__id__+'"][data-type="'+$__data__type+'"]').length||add_notification($__id__,$__data__title,$__data__time,$__data__timestamp,$__data__message,$__data__readStatus,$__data__type,$__data__link)})},remove_all_notifications=function(){$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf("notifications_")>-1&&e.indexOf(v___server_hostname)>-1&&delete localStorage[e]})},mark_notification_read=function(e,t,a,i){var n=JSON.parse(localStorage.getItem(v___server_hostname+"-notifications_"+e+"_"+t));n&&localStorage.setItem(v___server_hostname+"-notifications_"+e+"_"+t,JSON.stringify({title:n.title,time:n.time,timestamp:n.timestamp,message:n.message,readStatus:a,type:n.type,link:n.link})),i&&display_badges()},mark_group_notifications_read=function(e){var t="";e&&(t='[data-type="'+e+'"]'),$(".right-side-tabs .list-group-item"+t+":not(.no-notifications)").each(function(){$(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,0)}).promise().done(function(){display_badges()})},add_notification=function(e,t,a,i,n,s,o,r){$(".right-side-tabs .list-group").prepend('        <a class="list-group-item right-side-tabs-notification'+("1"==s?" opacity-0_3":"")+'" data-type="'+o+'" id="'+e+'" href="'+r+'">            <div class="media-body">            <i class="fa fa-fw fa-trash-o pull-right hidden"></i>            <i class="fa fa-fw fa-clear-all pull-right hidden"></i>                <div class="list-group-item-heading">'+t+" <small>"+moment.unix(a).fromNow()+"</small></div>                <small>"+n+"</small>            </div>        </a>        "),$(".right-side-tabs-no-notifications").remove(),display_badges(),v___initial_load||mark_no_notifications()},mark_no_notifications=function(){var e=browser.detect.safari(1),t=e?2:0,a=function(){var e=theme_language("notification_none");$(".right-side-tabs .list-group").prepend('          <div class="right-side-tabs-no-notifications" style="opacity: 0">          <div class="list-group-item text-center no-notifications">          <small class="list-group-item-text text-lighter">'+e.toUpperCase()+"</small>          </div>          </div>        "),$(".right-side-tabs-no-notifications").animate({opacity:"1"},175,function(){})};0===$(".right-side-tabs .list-group-item").length&&(e?setTimeout(function(){a()},2):a()),setTimeout(function(){display_badges()},175+t)},update_right_pane_favorites=function(){if("function"==typeof plugins.favorites.fetch){var e=plugins.favorites.fetch(),t=$("#right-side-tabs .no-favorites_data");$("#right-side-tabs .favorites-dcontainer .right_pane_favorites_link, #right-side-tabs .favorites-dcontainer .right_pane_favorites_num").remove(),e.length?($.each(e,function(e,t){var a=$("#right-side-tabs .favorites-dcontainer");get_server_data("webprefix")&&!t.link.includes("!edit")&&(t.link=get_server_data("webprefix")+t.link);var i=Convert.htmlEscape(t.title);a.append('<span class="right_pane_favorites_num">'+(e+1)+'</span><a class="right_pane_favorites_link" target="page" href="'+Convert.quoteEscape(t.link)+'"><i data-product="'+t.icon+'" class="wbm-'+t.icon+(t.icon,"")+' wbm-sm">&nbsp;&nbsp;</i><span title="'+i+'" class="right_pane_favorites_text">'+i+"</span></a>")}),t.addClass("hidden")):t.removeClass("hidden")}},sysinfo_update=function(){if(!$("body .modal.in").length){if(!e)var e=get_server_data("webprefix");if(0==v___user_level){var t=$("body").find("#system-status"),a=t.length?t[0]:0;$("#right-side-tabs-sysinfo .graph-container").length||$("#right-side-tabs .info-container").html(function(){$_____________got_rp__sys_dat=1;var e=core.moduleAvailable("package-updates"),t=core.moduleAvailable("proc")?"":" pointer-events-none",a=core.moduleAvailable("disk-usage")||core.moduleAvailable("quota")?"":" pointer-events-none",i=e?"":' class="hidden"',n=localStorage.getItem(v___server_hostname+"-sysinfo_package_message"),s=vars.local_storage?String():" hidden",o=$(localStorage.getItem(v___server_hostname+"-sysinfo_local_time")).attr("data-convertible-timestamp-full");return'          <div class="is-sysinfo_data hidden">            <div class="graph-container graph-container-fw cpu_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+'">'+theme_language("global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_cpu")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw mem_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+'">'+theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_mem")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw virt_percent'+t+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+'">'+theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_virt")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+'%"></strong></div></div><br class="'+s+'">            <div class="graph-container graph-container-fw disk_percent'+a+s+'"><div class="graph"><div class="description" title="'+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+'">'+theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% ("+localStorage.getItem(v___server_hostname+"-sysinfo_disk")+')</div><strong class="bar" style="width:'+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+'%"></strong></div></div><br class="'+s+'">                        <div data-stats="cpu" style="height: 10px"></div><strong data-stats="cpu">'+theme_language("body_cputemps")+'</strong><br data-stats="cpu">'+(localStorage.getItem(v___server_hostname+"-sysinfo_cpu_temperature")?localStorage.getItem(v___server_hostname+"-sysinfo_cpu_temperature").replace(/<br>|&nbsp;/gi,""):"")+'<br data-stats="cpu">            <div data-stats="drive" style="height: 10px"></div><strong data-stats="drive">'+theme_language("body_drivetemps")+'</strong><br data-stats="drive">'+(localStorage.getItem(v___server_hostname+"-sysinfo_hdd_temperature")?localStorage.getItem(v___server_hostname+"-sysinfo_hdd_temperature").replace(/<br>|&nbsp;/gi,""):"")+'<br data-stats="drive">                        <div class="info-list-data">              <strong>'+theme_language("body_host")+'</strong><br><span data-data="host">'+localStorage.getItem(v___server_hostname+"-sysinfo_host")+"</span>              <strong>"+theme_language("body_os")+'</strong><br><span data-data="os">'+localStorage.getItem(v___server_hostname+"-sysinfo_os")+"</span>              <strong>"+theme_language("body_time")+'</strong><br><span data-data="local_time">'+(o&&localStorage.getItem(v___server_hostname+"-sysinfo_local_time")?moment.unix(o).format(config_portable_theme_locale_format_long):localStorage.getItem(v___server_hostname+"-sysinfo_local_time"))+"</span>              <strong>"+theme_language("body_kernel")+'</strong><br><span data-data="kernel_arch">'+localStorage.getItem(v___server_hostname+"-sysinfo_kernel_arch")+"</span>              <strong>"+theme_language("body_uptime")+'</strong><br><span data-data="uptime">'+localStorage.getItem(v___server_hostname+"-sysinfo_uptime")+"</span>              <strong>"+theme_language("body_procs")+'</strong><br><span data-data="proc">'+localStorage.getItem(v___server_hostname+"-sysinfo_proc")+"</span>              <strong"+i+">"+theme_language("body_updates")+"</strong><br"+i+'><span data-data="package_message"'+i+">"+(n&&"null"!==n?$(n).html($(n).html().split(",")[0])[0].outerHTML:"")+'</span>            </div>            <div class="warning-list-data">            </div>            <div class="extended-list-data">            </div>                      </div>          <div class="no-sysinfo_data">              <div style="height: 5px"></div>              <small class="list-group-item-text text-lighter">'+theme_language("notification_no_data").toUpperCase()+"</small>          </div>        "}());var i=$(".right-side-tabs-dismiss .fa-reload");i.addClass("fa-spin-fastest cursor-na"),setTimeout(function(){i.removeClass("fa-spin-fastest cursor-na")},3e3),$.ajax({type:"GET",url:e+"/index.cgi/?xhr-info=1&webprefix="+get_server_data("webprefix"),data:!1,dataType:"json",success:function(t){Test.strContains(t,v___page_signin_form)?v___available_session=0:($.each(t[0],function(t,i){var n=$('#right-side-tabs [data-data="'+t+'"]');if(n=(n=n.add(n.prev("br"))).add(n.prev("strong")),null!=i?n.removeClass("hidden hidden-force"):n.addClass("hidden hidden-force"),"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||(Test.numeric(i)?localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats",i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_stats","")),a){if($(a).find('span[data-id="sysinfo_'+t+'"]').html(i),"local_time"==t||"uptime"==t||"proc"==t){var s=$(a).find('span[data-id="sysinfo_'+t+'"]'),o=s.find("a").length?s.find("a"):s.find("span"),r=$(a).find('span[data-id="sysinfo_'+t+'"]').text();"local_time"==t?snippets.datetime.tictac(1,1):o&&o.length&&s.html(o.html(r))}if(page_sysinfo_sensor_update_label(),$(a).find('.piechart[data-charts="sysinfo_'+t+'"]').length){var l=$("body").find('.piechart[data-charts="sysinfo_'+t+'"]');l.length&&!isNaN(parseInt(i))&&l.data("easyPieChart").update(i)}"cpu_percent"!=t&&"mem_percent"!=t&&"virt_percent"!=t&&"disk_percent"!=t||localStorage.setItem(v___server_hostname+"-sysinfo_"+t+"_seen",i),$(a).find(".modal-backdrop").remove()}if($__id__=moment().unix(),"cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t||"csf_title"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"package_message"==t?localStorage.getItem(v___server_hostname+"-sysinfo_"+t)||localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):i&&null!=i&&NaN!=i?localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i):localStorage.setItem(v___server_hostname+"-sysinfo_"+t,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_data"==t&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&i&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i.match(/^\d+|\d+\b|\d+(?=\w)/g)[0]+"."+i.match(/^\d+|\d+\b|\d+(?=\w)/g)[1]),"csf_title"==t||"csf_data"==t||"csf_remote_version"==t||"authentic_remote_version"==t||"authentic_theme_version"==t||"package_message"==t){if("package_message"===t&&!core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+t)!=i||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&i&&i.indexOf("badge-danger")>-1){var _=theme_language("notifications_packages_updates"),c=$(i).html().replace(/badge-danger/g,"badge-success"),d=e+"/package-updates/index.cgi?mode=updates";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(_,c,t,d)}else"package_message"===t&&localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i);$(i).find("i.badge:first-child").length||plugins.slider.notifications.dismiss("package_message")}var p=localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version");if(settings_sysinfo_theme_updates&&(0==localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&localStorage.removeItem(v___server_hostname+"-sysinfo_authentic_remote_version"),p&&localStorage.getItem(v___server_hostname+"-sysinfo_authentic_remote_version")&&"authentic_remote_version"==t&&p<i&&"0"!=i&&"0.00"!=i&&null!=i&&i!=v___theme_version)){var g=theme_language("notifications_theme_update"),f=theme_language("notifications_theme_update_message").replace("%v",i);d=e+"/sysinfo.cgi";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_authentic_remote_version",JSON.stringify({title:g,time:$__id__,timestamp:$__id__,message:f,readStatus:0,type:t,link:d})),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",i),notifications(g,f,t,d)}if("authentic_theme_version"!==t||Test.strContains(i,"CHANGELOG.md")||plugins.slider.notifications.dismiss("authentic_remote_version"),settings_sysinfo_csf_updates){var u=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(u&&null!=u&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==t&&u<i&&"0"!=i&&"0.00"!=i&&null!=i){var m=theme_language("notifications_firewall_update"),h=theme_language("notifications_firewall_update_message").replace("%v",i);d=e+"/csf/index.cgi";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_remote_version",JSON.stringify({title:m,time:$__id__,timestamp:$__id__,message:h,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("csf_remote_version"),localStorage.setItem(v___server_hostname+"-sysinfo_"+t,i),localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",i),notifications(m,h,t,d)}}if("csf_data"===t&&Test.strContains(i,"data-no-update")&&plugins.slider.notifications.dismiss("csf_remote_version"),"csf_title"==t)if(i&&i.indexOf("label-danger")>-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var v=theme_language("notifications_firewall_danger"),b=theme_language("notifications_firewall_danger_message").replace("%v",moment.unix($__id__).format(config_portable_theme_locale_format_long));d=e+"/csf/index.cgi?action=lfdstatus";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:v,time:$__id__,timestamp:$__id__,message:b,readStatus:0,type:t,link:d})),plugins.slider.notifications.dismiss("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(v,b,"csf_remote_version",d)}else i&&-1===i.indexOf("label-danger")&&(plugins.slider.notifications.dismiss("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("csf_deny"==t){var x=JSON.parse(i);$.each(x,function(a,i){var n=(i=i.split("|"))[0],s=i[1],o=i[2],r=i[3],l=(i[4],i[5],i[6],i[7]);if(l=l.replace("*Port Scan*",o&&r?'Port <i data-port-href="http://www.speedguide.net/port.php?port='+r+'" class="badge bg-dark-red">'+r+"</i> scan":"Port scan"),!localStorage.getItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny")){var _=theme_language("notifications_firewall_warning"),c=l+(o&&r?" <span>("+o+":"+r+")</span>":""),d=e+"/csf/index.cgi?action=temp";localStorage.setItem(v___server_hostname+"-notifications_"+(n+s.replace(/\./g,"0"))+"_csf_deny",JSON.stringify({title:_,time:$__id__,timestamp:$__id__,message:c,readStatus:0,type:t,link:d})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(_,c,t,d)}})}if("cpu_percent"==t||"mem_percent"==t||"virt_percent"==t||"disk_percent"==t){var y=$("#right-side-tabs .graph-container-fw."+t);y=y.add(y.next("br")),null!=i?y.removeClass("hidden-force"):y.addClass("hidden-force")}if((localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")||localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats"))&&$("#right-side-tabs-sysinfo .graph-container").length){var A=!localStorage.getItem(v___server_hostname+"-sysinfo_"+t+"_stats"),k=$(".info-container .graph-container."+t);if(A?k.addClass("hidden").next("br").addClass("hidden"):k.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==t){var w=localStorage.getItem(v___server_hostname+"-sysinfo_cpu"),C=w?"("+w+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_cpu")).text(theme_language("global_cpu_load")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"% "+C),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")}if("mem_percent"==t){var S=localStorage.getItem(v___server_hostname+"-sysinfo_mem"),I=S?"("+S+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% "+I),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")}if("virt_percent"==t){var V=localStorage.getItem(v___server_hostname+"-sysinfo_virt"),T=V?"("+V+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% "+T),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")}if("disk_percent"==t){var O=localStorage.getItem(v___server_hostname+"-sysinfo_disk"),E=O?"("+O+")":String();$("#right-side-tabs-sysinfo .graph-container."+t+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% "+E),$("#right-side-tabs-sysinfo .graph-container."+t+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"%")}}if($('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html(i),"package_message"==t&&core.moduleAvailable("package-updates")){var z=i;z&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]').html($(z).html($(z).html().split(",")[0])[0].outerHTML)}if("local_time"==t){var Z=$('#right-side-tabs .info-container .info-list-data span[data-data="'+t+'"]'),U=Z.find("a").length?Z.find("a"):Z.find("span");U&&U.length&&U.html(U.next("span").detach()),settings_theme_make_date?snippets.datetime.tictac(1,1):Z.html(i)}if("cpu_temperature"==t){var q=0;$.each($(i).filter(".badge-cpustatus"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=n,o=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=$(this).text().indexOf("RPM")>-1?HTML.label.rpm(s):HTML.label.temperature(n,o))&&"bg-danger"!=a||(q=1),$("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus").length||$('strong[data-stats="cpu"] + br[data-stats="cpu"]').after(i.replace(/<br>|&nbsp;/gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus.badge-cpustatus")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){q||"undefined"!=typeof config_custom_force_display_cpu_sensors?$('.info-container [data-stats="cpu"]').removeClass("hidden"):$('.info-container [data-stats="cpu"]').addClass("hidden")})}if("hdd_temperature"==t){var J=0;$.each($(i).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var a,n=parseInt($(this).text().split(":")[1]),s=$(this).text().indexOf("°C")>-1;"bg-warning"!=(a=HTML.label.temperature(n,s))&&"bg-danger"!=a||(J=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(i.replace(/<br>|&nbsp;/gi,"")),$($("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)")[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a+"-dark")}).promise().done(function(){J||"undefined"!=typeof config_custom_force_display_drive_sensors?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==t){var K=$("#right-side-tabs .info-container .warning-list-data"),M=i.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/class='ui_submit/g,"class='ui_submit btn btn-default btn-xs").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"').replace(/ui_form_end_submit/g,"ui_form_end_submit btn-tiny");K.html(M),"<br>"===i&&K.empty(),plugins.dashboard.update.alerts(i)}if("extended_si"==t){K=$("#right-side-tabs .info-container .extended-list-data");var j=i.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){j=(j=j.replace('data-toggle="collapse" href="#'+this.id+'" aria-expanded="false" aria-controls="'+this.id+'"','data-toggle="collapse" href="#'+this.id+'" aria-expanded="true" aria-controls="'+this.id+'"')).replace('div id="'+this.id+'" class="panel-collapse collapse"','div id="'+this.id+'" class="panel-collapse collapse in"')}).promise().done(function(){K.html('<div style="height: 11px"></div>'+j);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#mount_disks_info-mount):not(#status_services-status):not(#status-virtual-server):not(#acl_logins-acl):not(#sysinfo-virtual-server):not(#quota-virtual-server):not(#bw-virtual-server)").parent().remove(),$.each(e.find("div.panel-heading .panel-title"),function(){var e=$(this).find("a"),t="true"!=$(this).find("a").attr("aria-expanded")?1:0,a=t?"+":"—";$(this).append('<span class="pull-right panel-title-status'+(t?" margined-right-2":"")+'">'+a+"</span>"),e.text(Convert.strUpFirst($.trim(e.text())))}),e.find(".panel.panel-default").detach().appendTo("#right-side-tabs #extended_sysinfo"),e.find("div.panel-body").find("img").remove(),e.find('input[type="submit"]').addClass("btn btn-default btn-xs"),e.find('input[type="submit"]').parents("form").attr("formtarget","page"),e.find('button[type="button"].ui_submit').addClass("btn btn-default btn-xs"),e.find('button[type="button"].ui_submit').parents("form").attr("formtarget","page");var t=e.find('[data-referrer="acl_logins"] .panel-body > table:first-child');t.removeClass().addClass("table table-striped table-hover"),t.wrap('<div class="table-responsive"></div>'),$("#extended_sysinfo .panel").on("show.bs.collapse",function(){$(this).find(".panel-title-status").removeClass("margined-right-2").text("—")}).on("hide.bs.collapse",function(){$(this).find(".panel-title-status").addClass("margined-right-2").text("+")})})}"collect_interval"==t&&(Test.numeric(i)?settings_side_slider_background_refresh_time=parseFloat(i):settings_side_slider_background_refresh_time=0),$.trim($(".info-list-data").text()).length&&setTimeout(function(){$("#right-side-tabs .is-sysinfo_data").removeClass("hidden"),$("#right-side-tabs .no-sysinfo_data").addClass("hidden")},100)}),sysinfo_replace_dismiss_buttons(),setTimeout(function(){plugins.slider.notifications.check()},3e3),snippets.datetime.locale())}})}settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){sysinfo_update()},6e4*settings_side_slider_background_refresh_time)))}};return document.addEventListener("DOMContentLoaded",function(){if($(document.body).on("click",".right-side-tabs-dismiss i.fa-reload, ._sync_sysinfo_.fa-reload",function(){if(!$(this).hasClass("cursor-na")){var e=core.moduleAvailable("virtual-server")?"virtual-server":"system-status",t=$(this);t.addClass("fa-spin-fastest cursor-na"),$.ajax({type:"GET",url:v___location_prefix+"/"+e+"/recollect.cgi",data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:("sysinfo.cgi"===v___location_file&&get_pjax_content(v___location_prefix+"/sysinfo.cgi"),sysinfo_update())},error:function(e){t.removeClass("fa-spin-fastest cursor-na"),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-refresh-fi"></i>'+theme_language("sysinfo_update_failed"),20,"error","sysinfoRecollect")}})}}),0==v___user_level&&$.support.spa){var e=localStorage.getItem(v___server_hostname+"-right-side-tab")?localStorage.getItem(v___server_hostname+"-right-side-tab"):"#right-side-tabs-sysinfo",t='<div class="no-sysinfo_data"><div style="height: 5px"></div><small class="list-group-item-text text-lighter">'+theme_language("notification_no_data").toUpperCase()+"</small></div>",a='<div class="no-favorites_data"><div style="height: 4px"></div><small class="list-group-item-text text-lighter">'+theme_language("notification_no_favorites").toUpperCase()+"</small></div>",i=String(),n=document.querySelector("aside");n&&n.style&&n.style.filter&&"nav"===settings_side_slider_palette&&(i="filter: "+n.style.filter);var s='<div style="'+i+'" id="right-side-tabs" class="'+(settings_side_slider_enabled?"":" hidden ")+"right-side-tabs"+(settings_side_slider_fixed?" right-side-tabs-fixed":"")+'" data-bgs="'+settings_side_slider_palette+'"><ul class="nav nav-tabs" role="tablist"><li role="presentation" class="'+("#right-side-tabs-sysinfo"==e?"active ":"")+(settings_side_slider_sysinfo_enabled?"":" hidden")+'"><a href="#right-side-tabs-sysinfo" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("titles_dashboard")+'</a></li><li role="presentation" class="'+("#right-side-tabs-favorites"==e?"active ":"")+(settings_side_slider_favorites_enabled&&core.moduleAvailable("webmin")?"":" hidden")+'"><a href="#right-side-tabs-favorites" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("global_favorites")+'</a></li><li role="presentation" class="'+("#right-side-tabs-notifications"==e?"active ":"")+(vars.local_storage&&settings_side_slider_notifications_enabled&&(1==core.moduleAvailable("package-updates")||1==core.moduleAvailable("csf"))?"":" hidden")+'"><span class="right-side-tab-notification-asterix pointer-events-none hidden"></span><a href="#right-side-tabs-notifications" aria-controls="home" role="tab" data-toggle="tab">'+theme_language("global_notifications")+'</a></li></ul><div class="tab-content"><div role="tabpanel" class="tab-pane'+("#right-side-tabs-sysinfo"==e?" active":"")+(settings_side_slider_sysinfo_enabled?"":" hidden")+'" id="right-side-tabs-sysinfo"><div class="info-container">'+t+'</div></div><div role="tabpanel" class="tab-pane'+("#right-side-tabs-favorites"==e?" active":"")+(settings_side_slider_favorites_enabled&&core.moduleAvailable("webmin")?"":" hidden")+'" id="right-side-tabs-favorites"><div class="favorites-dcontainer">'+a+'</div></div><div role="tabpanel" class="tab-pane'+("#right-side-tabs-notifications"==e?" active":"")+(vars.local_storage&&settings_side_slider_notifications_enabled&&(1==core.moduleAvailable("package-updates")||1==core.moduleAvailable("csf"))?"":" hidden")+'" id="right-side-tabs-notifications"><div class="list-group"></div></div><div class="right-side-tabs-dismiss"><i aria-label="'+theme_language("tooltip_side_slider_pinned")+'" data-target-tooltip-callback="tooltip_side_slider_pinned" data-trigger="side_slider_pinned" class="fa fa2 fa-fw fa-lg fa2-collapse-right"'+theme_inject_tooltip("tooltip_side_slider_pinned",".right-side-tabs","right",!1,900)+'></i><i aria-label="'+theme_language("tooltip_side_slider_sync_sysinfo")+'" data-target-tooltip-callback="tooltip_side_slider_sync_sysinfo" class="fa fa-fw fa-lg fa-reload"'+theme_inject_tooltip("tooltip_side_slider_sync_sysinfo",".right-side-tabs","right",!1,900)+'></i><i aria-label="'+theme_language("tooltip_side_slider_open_favorites_control")+'" data-target-tooltip-callback="tooltip_side_slider_open_favorites_control" class="fa fa-fw fa-star-o right-side-tabs-favorites-ctl pull-right"'+theme_inject_tooltip("tooltip_side_slider_open_favorites_control",!1,"left",!1,900)+'></i><div class="dropdown obj-settings dropup pull-right"><i aria-label="'+theme_language("global_settings")+'" data-target-tooltip-callback="global_settings" data-toggle="dropdown" class="dropdown-toggle fa fa-fw fa-lg fa-settings pull-right theme obj-settings"'+theme_inject_tooltip("global_settings",!1,!1,!1,900)+'><b class="caret"></b></i><ul class="dropdown-menu "><li><a data-ss-dd-theme-configuration href="'+v___location_prefix+'/webmin/edit_themes.cgi">'+theme_language("global_theme_configuration")+'</a></li><li class="divider"></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-help tabindex="-1">'+theme_language("global_help")+'</a><ul class="dropdown-menu shifted-top--'+($("#open_virtualmin").length?"50":"")+'" role="menu"><li class="dropdown-submenu right" role="menu"><a data-ss-dd-webmin tabindex="-1">'+theme_language("titles_wm")+'</a><ul class="dropdown-menu shifted-top--20" role="menu"><li><a data-ss-dd-whats-new href="http://webmin.com/changes.html" target="_blank" tabindex="-1">'+theme_language("global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/webmin/webmin/issues" target="_blank" tabindex="-1">'+theme_language("global_report_an_issue")+'</a></li></ul></li><li class="dropdown-submenu right'+($("#open_virtualmin").length?"":" hidden")+'" role="menu"><a data-ss-dd-virtualmin tabindex="-1">'+theme_language("titles_vm")+'</a><ul class="dropdown-menu shifted-top--10" role="menu"><li><a data-ss-dd-whats-new href="http://webmin.com/vchanges.html" target="_blank" tabindex="-1">'+theme_language("global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/virtualmin/virtualmin-gpl/issues" target="_blank" tabindex="-1">'+theme_language("global_report_an_issue")+'</a></li><li><a data-ss-dd-official-website href="http://virtualmin.com" target="_blank" tabindex="-1">'+theme_language("global_official_website")+'</a></li></ul></li><li class="divider"></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-about-theme tabindex="-1">'+theme_language("global_about_theme")+'</a><ul class="dropdown-menu shifted-top--50" role="menu"><li><a data-ss-dd-whats-new tabindex="-1" data-click-about>'+theme_language("global_whats_new")+'</a></li><li><a data-ss-dd-issue-report href="https://github.com/authentic-theme/authentic-theme/issues" target="_blank" tabindex="-1">'+theme_language("global_report_an_issue")+'</a></li><li class="dropdown-submenu right" role="menu"><a data-ss-dd-install-theme-update tabindex="-1" href="#" data-context-select-all="1">'+theme_language("global_update")+'</a><ul class="dropdown-menu shifted-top--20" role="menu"><li><a data-ss-dd-install-release class="authentic_update" data-git="1" data-stable="1" tabindex="-1">'+theme_language("force_upgrade_stable")+'</a></li><li><a data-ss-dd-install-development class="authentic_update" data-git="1" data-stable="0" tabindex="-1">'+theme_language("force_upgrade_beta")+'</a></li></ul></li></ul></li></ul></li></ul></div><i aria-label="'+theme_language("tooltip_side_slider_go_to_dashboard")+'" data-target-tooltip-callback="tooltip_side_slider_go_to_dashboard" class="fa fa-fw fa-lg fa-dashboard pull-right"'+theme_inject_tooltip("tooltip_side_slider_go_to_dashboard",!1,!1,!1,900)+'></i><i aria-label="'+theme_language("tooltip_side_slider_delete_all_notification")+'" data-target-tooltip-callback="tooltip_side_slider_delete_all_notification" class="fa fa-fw fa-lg fa-trash pull-right"'+theme_inject_tooltip("tooltip_side_slider_delete_all_notification",!1,!1,!1,900)+'></i><i aria-label="'+theme_language("tooltip_side_slider_mark_read_all_notification")+'" data-target-tooltip-callback="tooltip_side_slider_mark_read_all_notification" class="fa fa-fw fa-lg fa-clear-all pull-right"'+theme_inject_tooltip("tooltip_side_slider_mark_read_all_notification",!1,!1,!1,900)+'></i></div></div></div><div style="'+i+'" class="'+(settings_side_slider_enabled?"":" hidden ")+"right-side-tabs-toggler"+(settings_side_slider_fixed?" hidden":"")+'" data-bgs="'+settings_side_slider_palette+'"><button aria-label="'+theme_language("side_slider_toggle")+'" type="button" class="btn btn-primary btn-menu-toggler" style="padding-left: 6px; padding-right: 5px;"><span class="badge badge-danger hidden"></span><i class="fa fa-fw fa-lg fa-bell faa-shake animated-hover"></i></button></div>';browser.detect.safari(1)?setTimeout(function(){$(document.body).append(s),test_visibility()}):($(document.body).append(s),test_visibility()),$('a[href="'+e+'"]:visible').length||$("#right-side-tabs ul.nav-tabs li a:visible").trigger("click"),$('#right-side-tabs .nav.nav-tabs a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).attr("href");localStorage.setItem(v___server_hostname+"-right-side-tab",t)}),$(document.body).on("click",'i[data-trigger="side_slider_pinned"]',function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-slider-fixed")?0:1;vars.slider_pinned=t,settings_side_slider_fixed=!settings_side_slider_fixed,set_visibility(t,void 0!==e.originalEvent?1:0),$(".dropdown.open.obj-settings .dropdown-toggle").dropdown("toggle"),$(window).resize()}).on("click",".right-side-tabs-favorites-ctl",function(e){$(".favorites-menu-outer").hasClass("hover")?$(".favorites-menu-close").trigger("click"):$(".user-link.favorites").trigger("click")}).on("click",'#right-side-tabs a:not([data-toggle="collapse"]):not([role="tab"]):not(.list-group-item)',function(e){$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .info-container .graph-container-fw",function(e){var t,a=core.moduleAvailable("proc"),i=$(this).attr("class"),n=i.indexOf("cpu_")>-1?"cpu":i.indexOf("mem_")>-1?"mem":i.indexOf("virt_")>-1?"virt":"disk";"cpu"==n&&a?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=n&&"virt"!=n||!a?"disk"==n&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==n&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&get_pjax_content(t),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs .fa-dashboard",function(e){get_onbeforeunload_status()?(this.href=v___location_prefix+"/sysinfo.cgi",get_onbeforeunload_message(e,this)):get_pjax_content(v___location_prefix+"/sysinfo.cgi"),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice(0)}).on("click",".right-side-tabs-toggler:not(.hidden)",function(e){$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},175),$(".right-side-tabs").animate({right:"-302"},175)):($(this).addClass("opened"),$(this).animate({right:"300"},350),$(".right-side-tabs").animate({right:"0"},350))}),$(".right-side-tabs .tab-pane").each(function(){$(this).css("height",$(document.body).outerHeight()-13)}),$(".right-side-tabs").on("mouseover",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").removeClass("hidden"),!$(this).hasClass("opacity-0_3")&&$(this).find(".fa-clear-all").removeClass("hidden")}).on("mouseout",".list-group-item",function(e){$(this).find(".fa.fa-trash-o").addClass("hidden"),$(this).find(".fa-clear-all").addClass("hidden")}),$(".right-side-tabs").on("click","[data-port-href]",function(e){e.preventDefault(),e.stopPropagation(),open($(this).data("port-href"))}),$(".right-side-tabs").on("click",'a.list-group-item[data-type="csf_deny"]',function(e){e.preventDefault(),e.stopPropagation(),$(e.target).is(".fa.fa-trash-o")||$(e.target).is(".fa-clear-all")||$(e.target).is("[data-port-href]")||(get_bundle_csf(),$(document.body).append('<form action="'+v___location_prefix+'/csf/" method="post" class="hidden" id="csf_temporary_ip_entries"><input type="hidden" name="action" value="temp"></form>'),$("form#csf_temporary_ip_entries").submit().remove(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"))}),$(".right-side-tabs").on("click contextmenu","a.list-group-item",function(e){e.preventDefault();var t=$(e.target).is(".fa.fa-trash-o"),a=$(e.target).is(".fa-clear-all"),i=$(e.target).is("[data-port-href]");if((t||a||i)&&(e.stopPropagation(),e.stopImmediatePropagation()),"contextmenu"==e.type)return $(this).find(".fa-clear-all").trigger("click"),e.preventDefault(),void e.stopPropagation();if(t||a||i){if($(e.target).is(".fa-clear-all"))return $(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),void mark_notification_read($(this).attr("id"),$(this).data("type"),1,1);$(this).animate({opacity:"0"},175,function(){$(this).remove(),localStorage.removeItem(v___server_hostname+"-notifications_"+$(this).attr("id")+"_"+$(this).data("type")),mark_no_notifications()})}else $(this).attr("href")&&$(this).attr("href").length&&"undefined"!=$(this).attr("href")&&"csf_deny"!=$(this).attr("data-type")?($(this).addClass("opacity-0_3"),$(this).find(".fa-clear-all").addClass("hidden"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"),get_pjax_content($(this).attr("href"))):($(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa-clear-all").click(function(e){mark_group_notifications_read(!1)}),$(".right-side-tabs-dismiss i.fa-trash").click(function(e){$(".right-side-tabs .list-group-item:not(.no-notifications)").animate({opacity:"0"},175,function(){$(this).remove(),remove_all_notifications(),mark_no_notifications()})}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1}),mark_no_notifications(),check_notifications()}else get_server_data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden")}),{test:test_visibility,state:set_visibility,badge:display_badges,notifications:{check:check_notifications,dismiss:mark_group_notifications_read},update:{favorites:update_right_pane_favorites},data:{fetch:sysinfo_update}}}(),plugins.dashboard=function(){var e=".container-fluid .panel-group .panel:not(#system-status)";return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("shown.bs.collapse hidden.bs.collapse",""+e,function(){var t=$(""+e),a={};$.each(t,function(){$target=$(this).find(".panel-heading"),id=$target.attr("id"),state=$target.next(".panel-collapse").hasClass("in"),a[id]=state}),localStorage.setItem(v___server_hostname+"-dashboard_panels",JSON.stringify(a))})}),{restore:function(){if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){var t=localStorage.getItem(v___server_hostname+"-dashboard_panels");if(null!=t){t=Object.entries(JSON.parse(t));for(var a=0;a<t.length;a++){var i=t[a][1]?"show":"hide";$(e+' .panel-heading[id="'+t[a][0]+'"]').next().collapse(i),a===t.length-1&&setTimeout(function(){document.querySelector("#content").scrollTo({top:vars.events.scrolled})})}}}},reset:function(){localStorage.removeItem(v___server_hostname+"-dashboard_panels")},update:{alerts:function(e){var t=e&&"<br>"!==e?1:0,a=$("#system-status > .panel-body > .table.table-hover");a.length&&(a.nextAll().remove(),t&&a.after(e))}}}}(),plugins.favorites=function(){var e=function(){return $("#favorites-menu .favorites-menu-content li:not(.exclude)").length},t=function(){var e=[];return $.each($("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var t=$(this).text(),a=$(this).attr("href"),i=$(this).find("[data-product]").attr("data-product");favorite={},get_server_data("webprefix")&&!a.includes("!edit")?favorite.link=link_type_convert(a.replace(get_server_data("webprefix"),""),1):favorite.link=link_type_convert(a,1),favorite.title=t.trim(),favorite.icon="virtualmin"==i?i+"":i,e.push(favorite)}),e},a=function(){$.ajax({type:"POST",url:v___location_prefix+"/settings-favorites_save.cgi",data:{favorites:'{"favorites":'+JSON.stringify(t(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}"},success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:plugins.slider.update.favorites()},error:function(e){}}),sortable("#favorites-menu > div > nav > ul")},i=function(){var t="favorites-menu .favorites-menu-content";0===e()&&($("#"+t+" li.favorites-no-message").removeClass("hidden"),$("#"+t+" .favorites-title sup a").addClass("hidden"))},n=function(t,a,i){var n,s="favorites-menu .favorites-menu-content";0===e()&&($("#"+s+" li.favorites-no-message").addClass("hidden"),$("#"+s+" .favorites-title sup a").removeClass("hidden")),n='class="wbm-'+i+' wbm-sm"',$("#"+s+" li.favorites-title").after('<li class="menu-exclude" draggable="true"><a class="menu-exclude-link" target="page" href="'+link_type_convert(Convert.quoteEscape(t),1)+'"><i data-product="'+i+'" '+n+'>&nbsp;</i><span class="f__c">'+a+'&nbsp;<small class="hidden" style="font-size: 0.6em; position: absolute; margin-top: -1px"><i aria-label="'+theme_language("favorites_remove")+'" class="fa fa-fw fa-times"></i></small></span></a></li>')},s=function(e,t){var n=e.replace(/["\\]/g,"\\$&");$("#favorites-menu .favorites-menu-content").find('a[href="'+n+'"], a[href="'+link_type_convert(n,2)+'"]').parent("li").remove(),!e.startsWith("!edit")&&$("#headln2c > .favorites, .xcustom-favorites").addClass("fa-star-o").removeClass("fa-star text-warning"),t||(i(),a())};return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("click",'.favorites-menu a.menu-exclude-link, .right_pane_favorites_link:not([href^="!edit"])',function(){var e=$(this).attr("href"),t=e.startsWith("!edit"),a=Test.strContains(e,"virtual-server/")?"dom":!!Test.strContains(e,"server-manager/")&&"id",i=Test.strContains(e,"gparent")?"gparent":a,n=URI.parseQuery(URI(e).query())[i],s=$('.switch-toggle input:not([id="open_'+("dom"===a?"virtualmin":"id"===a?"cloudmin":"webmin")+'"]):checked').length;a?setTimeout(function(){$("aside select").val()!=n&&("dom"===a?plugins.navigation.get.virtualmin(n):"id"===a&&plugins.navigation.get.cloudmin(n))},300):!t&&s&&plugins.navigation.get.webmin()}).on("click","#headln2c > .favorites:not(.dummy), .xcustom-favorites:not(.dummy), button.favorites-editor",function(e){e.preventDefault();var t,i=URI(v___location).resource(),o=function(e){var a=edit_file_parse_target(e.prev("strong"));return file__name=a[0],file__path=a[1],t=(t=a[2]).replace(/\/\//g,"/")},r=function(e){var t=theme_language("favorites_remove");e.removeClass("fa-star-o").addClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},l=function(e){var t=theme_language("favorites_add");e.addClass("fa-star-o").removeClass("fa-star text-warning").attr("aria-label",t),e.attr("data-original-title",t).tooltip("fixTitle")},_=$(this),c=_.is(".favorites-editor"),d=$(".jsPanel button.favorites-editor").not(_);if(_.hasClass("fa-star-o")){if(r(_),c){$.each(d,function(){o($(this))===o(_)&&r($(this))}),t=o(_);var p=Convert.htmlEscape(_.prev("[data-file-container]").attr("title")||t);if(2===get_access_level()||3===get_access_level()||4===get_access_level()){var g=new RegExp("^"+get_user_home(),""),f=new RegExp("\\("+get_user_home(),"");t=t.replace(g,""),p=p.replace(f,"(")}t&&n("!edit "+t,theme_language("file_editor")+" - "+p,"editor")}else{var u=Convert.htmlEscape($("#headln2c > span[data-main_title]").text().trim()),m=Convert.htmlEscape($(".has-sub.active").text().trim()),h=Convert.htmlEscape($(".sub_active").text().trim()),v=h.trim()!==u.trim(),b="",x="";($t_uri_virtualmin||$t_uri_cloudmin)&&(b=Convert.htmlEscape($("aside .ui_select option:selected").text())),$('body[class^="'+v___module_file_manager+'"]').length&&(x=(x=Convert.htmlEscape(URI.parseQuery(URI(v___location).query()).path))?"["+x+"]":"[/]"),n(i,(b.length?b+" - ":"")+(m.length?m+"/":"")+(h.length?h+(u.length&&v?": ":""):"")+(v?u:"")+(x.length?" "+x:""),$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin")}a()}else l(_),c?($.each(d,function(){o($(this))===o(_)&&l($(this))}),(t=o(_))&&s("!edit "+t)):s(link_type_convert(i,1))}).on("click","#right-side-tabs .right_pane_favorites_link",function(e){$(".favorites-menu-outer.hover + .favorites-menu-close").trigger("click")}).on("click",".favorites-menu-close, nav.favorites-menu li a",function(){$(".favorites-menu-outer").removeClass("hover")}).on("keydown",function(e){"0px"==$(".favorites-menu-outer").css("left")&&27==e.keyCode&&$(".favorites-menu-outer").removeClass("hover")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")}),$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle"),$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times"),$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)}),$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(e){e.preventDefault(),e.stopPropagation(),s($(this).parents("a").attr("href"))}),"function"==typeof sortable&&$("#favorites-menu > div > nav > ul").length&&sortable("#favorites-menu > div > nav > ul",{items:":not(.favorites-title)",forcePlaceholderSize:!1}).on("sortupdate",function(){a()})}),{detect:function(e,t){i();var a,n,s,o=$("#favorites-menu .favorites-menu-content li:not(.exclude) a").map(function(e,t){return link_type_convert($(t).attr("href"),1)}).toArray();if(e?s=e.find(".favorites-editor"):(s=$("#headln2c > .favorites, .xcustom-favorites"),n=(a=link_type_convert(URI(v___location).resource(),1)).includes("index.cgi")?a.replace("index.cgi",""):a+"index.cgi"),t&&(t=t.replace(/\/\//g,"/")),a&&$.inArray(a,o)>-1||n&&$.inArray(n,o)>-1||o.includes("!edit "+t)){var r=theme_language("favorites_remove");s.addClass("fa-star").removeClass("fa-star-o").attr("aria-label",r),s.attr("data-original-title",r).tooltip("fixTitle")}else{var l=theme_language("favorites_add");s.removeClass("fa-star").addClass("fa-star-o").attr("aria-label",l),s.attr("data-original-title",l).tooltip("fixTitle")}},fetch:t,remove:function(e){var t=$("#favorites-menu li a.menu-exclude-link"),n=$('aside select option[value="'+e+'"]').attr("title");t&&t.length&&$.each(t,function(t,a){var i=$(a),o=i.attr("href"),r=i.find("span").text();o&&(o.includes(e)||r&&$.trim(r).startsWith(n))&&s(o,1)}).promise().done(function(){setTimeout(function(){i(),a()},300)})}}}(),plugins.update_notice=function(){var e="pointer-events-none bg-filter-grayscale-opacity50",t="bg-filter-blur-grayscale-opacity50";$(document.body).on("hide.bs.modal","#update_notice",function(){$(this).hasClass("r")?($(document.body).append('<div class="update_notice_overlay" style="position: absolute; z-index: 10000001; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; background-color: '+$("html").css("background-color")+' !important; pointer-events: none;"></div>'),$("div.update_notice_overlay").animate({opacity:1},480,function(){setTimeout(function(){theme_reload()},100)})):("0px"==___________content_initial_?$("#content").removeAttr("style"):$("#content").animate({"margin-left":___________content_initial_},320/1.5),$("aside").animate({"margin-left":0},320/1.5,function(){$(".right-side-tabs, .right-side-tabs-toggler").removeClass(e),setTimeout(function(){$(".container-fluid").removeClass(e+" "+t)},0)})),$("#update_notice").remove()}).on("show.bs.modal","#update_notice",function(){$("#update_notice").length;var a=$(this),i=$("aside").css("left");___________content_initial_=$("#content").css("margin-left"),________version_date_obj=a.find(".modal-body > h4:first-child"),________version_curr_text=________version_date_obj.text().split(/\s+/)[1],________version_first_text=$(".versionSeparator:last").text(),________multi_in_branch=$(".versionSeparator").length,_____version__x=________version_first_text+"..."+v___theme_version;var n=$(".versionSeparator"),s=theme_language("global_development_version");$.each(n,function(){$(this).attr("target","_blank")}),setTimeout(function(){$(".container-fluid").addClass(t)},0),$("#content").animate({"margin-left":0},320),$("aside").animate({"margin-left":i},320),$(".right-side-tabs, .right-side-tabs-toggler, .container-fluid").addClass(e);var o=$(this).find(".modal-body h4"),r=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var l=new RegExp(RegExp.quote(________version_curr_text),"g");________multi_in_branch&&(o.replaceText(l,"<span>"+_____version__x+"</span>"),o.replaceText(/Version/,"Versions"));var _=$(this).find('.modal-body h4:contains("alpha"), .modal-body h4:contains("beta"), .modal-body h4:contains("RC")').length;if(o.length&&_){var c=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(c?c[0]:v___theme_version);var d=r.text().split("..."),p=0,g=$('a.versionSeparator[href*="releases"]:not(:empty)').first().text();d[1]&&(p=d[0].replace("Versions ",""),r.text(r.text().replace(p,g))),r.append('<a class="btn btn-transparent diffctl text-dark text-force-link-hover'+(c||g?"":" hidden")+'" target="_blank" href="https://github.com/authentic-theme/authentic-theme/compare/'+(g.length?g:latest_release)+'...master"><i class="fa fa-lg fa-git-pull fa-flip-horizontal"></i></a>'),r.after('<span class="versionSeparator version_dev" style="margin-top: -32px;margin-right: 0;"><span class="smaller text-danger"><span>'+s+"</span></span></span>")}else r.append('<a target="_blank" class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover" href="https://github.com/authentic-theme/authentic-theme/blob/master/CHANGELOG.md"><i class="fa fa-1_50x fa-changelog'+(________multi_in_branch?" multi-ver":" single_ver")+'"></i></a>').append('<a target="_blank" href="https://github.com/authentic-theme/authentic-theme/releases/tag/'+________version_curr_text+'" class="versionSeparator margined-top-10">'+________version_curr_text+"</a>")}var f=[];$.each($(this).find('li:contains("Fix")'),function(){var e=$.trim($(this).text()),t="Fix bugs".replace(/\s/," other minor ");if("Fix bugs"===e||e===t){var a=$(this).parent("ul"),i=a.find("li").length,n=a.find("li:contains("+t+")").length;if(1===i||n){var s=a.prev("hr"),o=s.prev(".versionSeparator"),r=o.prev("ul").length,l=o.text();if(r){var _=a.next(".versionSeparator"),c=_.next().next("ul"),d=_.text();d&&(d=d.split("-")[0],_.text(d+"-"+l.split("-").pop()),o.remove(),s.remove(),a.remove(),n||c.find("li:contains(Fix bugs)").length||c.append("<li> Fix bugs</li>"))}}}if($(this).find(".label").length){$(this);var p=$(this),g=p.parent("ul"),u=p.find("a:not(.bctl)");u.length;________multi_in_branch?(f.push(u),1===g.find("li").length&&(g.prev("hr").prev("a").remove(),g.prev("hr").remove(),g.addClass("no-data")),p.remove()):(p.find("a:first").before('<a class="btn btn-xxs btn-transparent bctl margined-right-8 text-semi-dark text-force-link-hover" style="padding-left: 1px; padding-right: 1px" href="javascript:;" ><i class="fa fa-plus-square-o"></i></a>'),p.find("a.bctl").click(function(e){u.toggleClass("hidden"),p.find("a.bctl i").toggleClass("fa-minus-square-o")}),u.addClass("obj-popup hidden"))}}).promise().done(function(){if(________multi_in_branch&&!$(".bctl").length&&f.length){$(".modal-body h4[data-development]").prev("hr").before('<hr class="hr-wavy margined-top-15"><div data-bugs><ul><li><span data-fixed-bugs data-fixed-bugs-obj>Fix bugs</span><span data-bugs-container></span></li></ul></div>'),$(".modal-body span[data-bugs-container]").append(f);$(".modal-body span[data-bugs-container] a").sort(function(e,t){return parseInt($(t).text().replace("#",""))<parseInt($(e).text().replace("#",""))?1:-1}).appendTo(".modal-body span[data-bugs-container]");var e=$("span[data-fixed-bugs]"),t=($("span[data-bugs-container]"),$(".modal-body span[data-bugs-container]").find("a:not(.bctl)")),a=t.length;e.html([e.text().slice(0,4),a+" ",e.text().slice(4)].join("")),e.append('<a class="btn btn-xxs btn-transparent bctl margined-left-4 text-semi-dark text-force-link-hover" style="padding-left: 1px; padding-right: 1px" href="javascript:;" ><i class="fa fa-plus-square-o"></i></a>'),e.find("a.bctl").click(function(){t.toggleClass("hidden"),e.find("a.bctl i").toggleClass("fa-minus-square-o")}),t.addClass("obj-popup hidden");var i=$("div[data-bugs]"),n=i.find("a:not(.bctl)").length;!n&&i.prev(".hr-dashed").remove(),!n&&i.remove()}var s=$(".modal#update_notice h4 span");if(Test.strContains(s.text(),"...")&&Test.strContains(s.text(),"patch")){var o=parseInt(s.text().split("...")[1].substr(-1,1));o&&$.each($(".versionSeparator:not(.version_dev)"),function(e,t){e+1!=o?$(this).addClass("hidden"):$(this).text($(this).text()+"-"+theme_language("global_release").toLowerCase())})}})})},plugins.icons_row=function(){$(document.body).on("click",".inline-row input",function(e){$(this).is(":checked")?$(this).parents(".gl-icon-container").addClass("highlighted"):$(this).parents(".gl-icon-container").removeClass("highlighted")}).on("click contextmenu","div.icons-container, div.small-icons-container",function(e){var t=$(e.target).find("a[href]").first();if("click"===e.type&&$(e.target).is($(this))&&t.length)t.trigger("click");else{if("click"===e.type&&$(e.target).is(".gl-icon-select")&&!$.support.spa)e.preventDefault(),$(this).trigger("contextmenu");else if("contextmenu"===e.type){e.preventDefault(),$(this).find("input").is(":checked")?($(this).find("input").prop("checked",!1),$(this).removeClass("highlighted")):$(this).find("input").length&&($(this).find("input").prop("checked",!0),$(this).addClass("highlighted"));var a=$(e.target).is(".icon_link")?$(e.target).parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).is(".gl-icon-select")?$(e.target):$(e.target).is("img")?$(e.target).parent("a").parent(".gl-icon-container").find(".fa-select, .fa-selected"):$(e.target).find(".fa-select, .fa-selected");a.hasClass("fa-select")?a.removeClass("fa-select").addClass("fa-selected"):a.removeClass("fa-selected").addClass("fa-select")}"function"==typeof db_check_selected&&db_check_selected()}}).on("click",".row.icons-row.vertical-align .icons-container, .row.icons-row.vertical-align .small-icons-container",function(){$(this).hasClass("forged-xx-skip")})},plugins.chooser=function(){var e=!1,t=!1,a=function(e){$(".mppopup .cspinner.hidden").removeClass("hidden"),$.ajax({type:"POST",url:e,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html();i=o(i),a&&(a=a.replace(/<img.*dir.gif.*?>/gm,'<i class="fa fa-fw fa-folder"></i>').replace(/<img.*unknown.gif.*?>/gm,'<i class="fa fa-fw fa-file-o"></i>')),$(".mppopup .modal-body").html(i+'<table class="table table-hover table-condensed table-striped">'+a+"</table>"),$v__mpp__g_gp=0,$(".mppopup_filter_input").focus(),$(".mppopup_filter_input").val("")}}})},i=function(e){return e.replace(/&file.*&chroot/,"&file="+Convert.uriEncodeComponent(($v__mpp__g_ol+"/").replace(/\/\/+/g,"/").replace(/:\//g,"://"))+"&chroot")},n=function(e,t){var a=e.prev('input[type="text"], input[name]');return a.is("input")||e.prev("textarea").length||e.prev("br").prev("textarea").length?a.length||a.is("input")||!t||(a=e.prev("textarea")).length||(a=e.prev("br").prev("textarea")):a=e.prev("span:not(.awradio)").find('input[type="text"]'),a},s=function(a,i,n){if(e&&(t=a),n){if($(".refInputData").is("textarea")){var s=$(".refInputData");s.val()?s.val(s.val()+"\n"+a.replace(/\/\/+/g,"/").replace(/:\//g,"://")):s.val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"))}else $(".refInputData").val(a.replace(/\/\/+/g,"/").replace(/:\//g,"://"));var o=$(".refInputData").parent("td").prev("td").find('input[type="radio"]'),r=$(".refInputData").parent("span").prev("span").find('input[type="radio"]'),l=$(".refInputData").prev("span").find('input[type="radio"]'),_=$(".refInputData").prev("select").find('option[value="*"]');r.length?r.trigger("click"):l.length?l.trigger("click"):_.length?_.parent("select").val("*").trigger("change"):o.trigger("click")}i&&$("body .mppopup").modal("hide")},o=function(e){e=$.url(e).attr("path").replace(/\/$/g,"").split("/");var t="",a="/",i=a,n=2==get_access_level()||3==get_access_level(),s=get_user_home();return n&&(i=s),$.each(e,function(e,o){if(""===o){var r="onclick=\"parentdir('"+i+"'); return false\"";n&&(r=String()),t+="<a "+r+">"+(0==get_access_level()?'<i class="fa fa-folder-root margined-left--5"></i>':'<i class="fa fa-user text-light margined-left--5"></i>')+"</a>\n"}else{r="onclick=\"parentdir('"+(a+=o+"/")+"'); return false\"";n&&!a.includes(s)&&(r=String()),t+="<a "+r+">"+o+"</a>\n"}}),'<nav class="breadcrumbx">'+t+"</nav>"+'<span class="cspinner hidden" style="margin-top: 2px; margin-left: 8px;"><span class="cspinner-icon smaller"></span></span>'};return document.addEventListener("DOMContentLoaded",function(){var r;r=document.body,$(r).on("dblclick",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault()}).on("dblclick",'.mppopup a[onclick*="select("]',function(){$(".mppopup button[data-mppopup_confirm]").trigger("click")}).on("click",'.mppopup a[onclick*="fileclick("], .mppopup a[onclick*="parentdir("]',function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=this;if(t.clicks||(t.clicks=0),t.timer||(t.timer=null),t.clicks++,$data_mppopup_value.val($v__mpp__g_ol),1===t.clicks)t.timer=setTimeout(function(){if(t.clicks=0,"undefined"==typeof $v__mpp__g_gp&&($v__mpp__g_gp=0),$v__mpp__g_gp){var e=i($v__mpp__g_op);a(e)}else s($v__mpp__g_ol,0,0);$v__mpp__g_gp=0},vars.event.double_click_delay);else if(clearTimeout(t.timer),t.clicks=0,$v__mpp__g_olt){var n=i($v__mpp__g_op);a(n)}else s($v__mpp__g_ol,1,1)}).on("click",".mppopup button[data-mppopup_confirm]",function(){var e=$data_mppopup_value.val();s(e,1,1),core.curModule("custom")&&refInput.trigger("input")}).on("show.bs.modal",".mppopup",function(){v__mpp__ml_t__e=0,$data_mppopup_value=$(".mppopup input[data-mppopup_value]"),$('.mppopup input[data-role="tagsinput"]').tagsinput({onTagExists:function(e,t){t.hide().fadeIn(),v__mpp__ml_t__e=1}})}).on("shown.bs.modal",".mppopup",function(){var e=$("body .mppopup").find(".modal-head");$("body .mppopup").find(".modal-body"),$("body .mppopup").find(".modal-body table"),e.find(".mppopup_filter > input"),setTimeout(function(){$(".mppopup_filter_input").animate({opacity:1},0),$(".mppopup_filter_input").focus()},0)}).on("hidden.bs.modal",".mppopup",function(){refInput.removeClass("refInputData"),$('.mppopup input[data-role="tagsinput"]').tagsinput("destroy"),$("body .mppopup").remove(),$("button[data-mmclick].disabled, input[data-mmclick].disabled").removeClass("disabled").removeAttr("disabled")}).on("click",".mppopup_multi_done",function(){refInput.val($.trim($('.mppopup input[data-role="tagsinput"]').val().replace(/,/g," "))),$('.mppopup span[aria-hidden="true"]').trigger("click")}).on("keyup",".mppopup_filter_input",function(e){var t=e.which,a=$(".mppopup table tbody tr:visible"),i=a.find("td:first-child a");if(!$(".mppopup .breadcrumbx").length){if(13!=t||1!==a.length||e.shiftKey){if(13==t&&1===a.length&&e.shiftKey){i.trigger("click").trigger("dblclick");var n=$(".mppopup .mppopup_multi_done:visible");n.length&&setTimeout(function(){n.trigger("click")},240)}}else i.trigger("click");$(".mppopup table tbody tr.noresults").length||$(".mppopup table tbody").append('<tr class="hidden noresults"><td class="text-center" colspan="'+$(".mppopup table tbody tr:first-child td").length+'">'+theme_language("global_no_results_found")+"</td></tr>");var s=$(".mppopup table tbody tr:visible:not(.noresults)"),o=$(".mppopup table tbody tr.noresults");s.length?o.addClass("hidden"):o.removeClass("hidden")}}).on("click","button[data-mmclick]:not(.disabled), input[data-mmclick]:not(.disabled)",function(a){a.preventDefault(),a.stopPropagation(),refInput=n($(this),1),e=!!+$(this).parent("._xcustom_file_select").length,custom_window={shown:function(){t=!1,!0},hidden:function(){!1,e=!1,$("._xcustom_file_select").remove()}};var i=$(this),s=refInput.val(),r=encodeURIComponent(s),l=$(this).attr("data-mmclick").match("window.open\\(['\"]*(.*?)(\\s*['\"]*,.*?)"),_=l[1].match(/(\w+\.[a-z]{3,4})/gi)[0].replace(".cgi","");if(i.addClass("disabled").attr("disabled","disabled"),l[1]){var c=l[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");c=c.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",r);var d=function(t,a,i,n,o,r,l,c,d,p,g){var f;r||(r=String()),l||(l=String()),f=o?'<div class="modal-footer"><div class="input-group"><input data-role="tagsinput" class="form-control ui_textbox" type="text" value="'+(s?s.replace(/ /g,","):"")+'"><span class="input-group-btn mppopup_multi_done"><button type="button" class="btn btn-success heighter-28"><i class="fa fa-fw fa-circle-check"> </i>&nbsp;'+theme_language("global_select")+"</button></span></div></div>":'<div class="modal-footer"><div class="input-group"><input class="form-control ui_textbox" data-mppopup_value type="text" value="'+(refInput.is("textarea")?"":s)+'"><span class="input-group-btn mppopup_string_done"><button type="button" class="btn btn-success heighter-28" data-mppopup_confirm><i class="fa fa-fw fa-circle-check"> </i>&nbsp;'+theme_language("global_select")+"</button></span></div></div>";var u='<div class="modal fade fade5 mppopup '+(e?"_xcustom_window_modal":"")+'" tabindex="-1" role="dialog"><div class="modal-dialog '+r+'" role="document"><div class="modal-content"><div class="modal-header '+l+'"><button type="button" class="close" data-dismiss="modal" aria-label="'+theme_language("global_close")+'"><span aria-hidden="true">&times;</span></button>'+(d?"":'<h4 class="modal-title"><div class="mppopup_filter"><input class="form-control ui_textbox mppopup_filter_input" style="opacity: 0" type="text" placeholder="'+theme_language("datatable_filter")+'" size="50" onkeyup="filter_match(this.value,\'row\',true);"></div></h4>')+'</div><div class="modal-body '+_+'">'+t+"</div>"+(c?"":f)+"</div></div></div>";$(document.body).append(u),refInput.addClass("refInputData"),$("body .mppopup").on("show.bs.modal",function(){g&&"function"==typeof g&&g()}).on("shown.bs.modal",function(){p&&"function"==typeof p&&p(),e&&custom_window.shown()}).on("hidden.bs.modal",function(){e&&custom_window.hidden()}).modal("show")},p=function(e){core.curModule("cluster-useradmin")&&(e[1].startsWith("my_user_chooser")||e[1].startsWith("my_group_chooser"))?$v__mpp__g_op=v___location_prefix+"/useradmin/"+e[1]:e[1].startsWith("/")?$v__mpp__g_op=e[1]:$v__mpp__g_op="/"+e[1]},g=String(),f='form[action*="backup_sched.cgi"], form[action*="save_newquotas.cgi"], form[action*="save_validate.cgi"]';"cron_chooser"===_&&(g="cron_chooser.cgi?complex="+$(f).find('[name="enabled_hidden"], [name="sched_hidden"]').val()),$.ajax({type:"POST",url:g||c,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e,a=e.match('<frame.*?src="([^"]+)"');if("cron_chooser"===_){var i=t;i=(i=$(i).filter("form")[0].outerHTML).replace(/<table/,"<table class='table table-condensed table-hardcoded' "),d('<div class="popup_cron_chooser">'+i+"</div>",0,0,refInput,1,"modal-lg","modal-no-header",1,1,function(){$(".popup_cron_chooser form").on("submit",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),a=$(f),i=t.parents(".modal.mppopup.in"),n=t.serialize();$.ajax({type:"POST",url:$(this).attr("action"),data:n,dataType:"text",success:function(e){var t=e.match(/top\.opener\.hfield\.value\s*=\s*"(.*?)"/),n=e.match(/top\.opener\.cfield\.value\s*=\s*"(.*?)"/);n&&refInput.val(n[1]),t&&a.find('[name="enabled_hidden"], [name="sched_hidden"]').val(t[1]),i.modal("hide")}})})},function(){page_radios_evolve('.popup_cron_chooser input[type="radio"]:not(.iawobject)')})}else if($.isArray(a)&&a[1]&&-1===a[1].indexOf("&multi=1"))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter(".table").html(),i=$(t).filter(".table").prev("b").html(),n=o(i);0===$(a).find("td").length&&(a=(a=a.replace("thead","tbody")).replace("<tr>",'<tr class="tr_tag"><td data-td-e class="text-center">'+theme_language("datatable_semptydirectory")+"</td>")),(t=n+'<table class="table table-hover table-condensed table-striped">'+a+"</table>")&&(t=t.replace(/<img.*dir.gif.*?>/gm,'<i class="fa fa-fw fa-folder"></i>').replace(/<img.*unknown.gif.*?>/gm,'<i class="fa fa-fw fa-file-o"></i>')),d(t,0,0,refInput,0)}}});else if($.isArray(a))p(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter("table").html();d(t='<table class="table table-hover table-condensed table-striped type2">'+a+"</table>",0,0,refInput,1)}}});else{if($.isArray(a)&&-1===a[1].indexOf("&multi=1"))return;i=t;var n=$(i).filter("table").html();d('<table class="table table-hover table-condensed table-striped type2" data-target="'+refInput+'">'+n+"</table>",0,0,refInput,0)}}}})}else $(this).removeClass("disabled"),$(this).attr("onclick",$(this).attr("data-mmclick")).removeAttr("data-mmclick"),$(this).trigger("click")})}),{target:n,file:function(a){var i=String();!a&&(a={}),a.file&&(i=a.file);var n='<div class="_xcustom_file_select hidden hidden-force"><input type="text" id="_xcustom_file_select" name="_xcustom_file_select"><button data-custom-chooser data-mmclick="chooser = window.open(&quot;/chooser.cgi?add=0&type=&chroot=/&file='+encodeURIComponent(i)+', &quot;chooser&quot;); " type="button"></button></div>';if($("body").append(n),$(document).find("._xcustom_file_select button[data-custom-chooser]").trigger("click"),!1!==a.resolve)return new Promise(function(a){setTimeout(function(){var i=setInterval(function(){e||(clearInterval(i),a(t),t=!1)},100)},10)})}}}(),plugins.navigation=function(){document.addEventListener("DOMContentLoaded",function(){n(),o(),$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}).on("click",'a[href*="/file/"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}).on("contextmenu",".switch-toggle label",function(e){e.preventDefault();var t=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){var a=v___location_href;set_server_theme_temp_data("goto",link_type_convert(a,1)),setTimeout(function(){theme_open_new_tab(a)},200)}else if("virtualmin"===t||"cloudmin"===t){var i;i="cloudmin"===t?"/server-manager/index.cgi":"/virtual-server/index.cgi";var n=link_type_convert(i,2);set_server_theme_temp_data("goto",link_type_convert(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===t){var s=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}else{s=v___location_prefix+"/sysinfo.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(s,1)),setTimeout(function(){theme_open_new_tab(s)},200)}}).on("click",".switch-toggle input.dynamic",function(e){if(get_onbeforeunload_status()){e.preventDefault();var t=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+t})}else"open_thirdlane"!=$(this).attr("id")?(d($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),0,0):get_pjax_content(v___location_prefix+"/sysinfo.cgi")):location.href=v___location_prefix+"/asterisk/index.cgi"}).on("focus",".sidebar-search",function(){$("body").hasClass("loading-bg")?$(this).blur():l("c",!1)}).on("blur",".sidebar-search",function(){setTimeout(function(){l("c",!0)},150)}).on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){s()}).on("click",".navigation > li .navigation_external_link",function(e){e.preventDefault(),e.stopPropagation(),b=$(this),window.open(b.attr("href"),"_blank")}).on("click",".navigation > li:not('.sub-wrapper'):not('.menu-container'):not('.navigation_external'):not([data-linked])",function(e){if(e.preventDefault(),e.stopPropagation(),v___blocked_navigation=1,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var t=$("a",this).attr("href"),a=$("a",this).attr("target"),i=$(this);a&&$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$.when($("#sidebar .navigation > li").each(function(){var e=$(this),t=e.find("a").is("[data-has-sub-link]");e.is(i)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp(175))})).done(function(){i.hasClass("active")?i.removeClass("active"):"#hide"!=t&&!a&&i.addClass("active"),setTimeout(function(){$(t).is(":visible")&&"#hide"!=t&&!a?i.addClass("active"):i.removeClass("active"),$processing=!1},350),$(t).slideToggle(175)}),"#search"==t&&$('#sidebar input[name="search"]').focus()}}).on("click",".navigation > li > ul.sub > li:not('.menu-container')",function(e){if(!e.target||!$(e.target).is("li")){var t="MacIntel"===window.navigator.platform?1:0;if(!(!t&&e.ctrlKey||t&&e.metaKey)){var a=$(this);$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(".navigation > li > ul.sub > li").each(function(){$(this).removeClass("sub_active").find("span.current").remove()}),$("#webmin_search_form").find('input[name="search"]').val(""),a.addClass("sub_active").append('<span class="current"></span>')}}}).on("click",'a[data-refresh="true"]',function(e){e.preventDefault(),page_refresh()}).on("focus",".form-control.sidebar-search",function(e){$(".__logo").addClass("inited"),e.preventDefault(),e.stopPropagation(),vars.shell.history=0}).on("keydown","#webmin_search_form",function(e){var t=$(this).find("input.sidebar-search"),a=t.val();$("body").find(".-shell-port-");if(a&&13===e.keyCode)if(e.preventDefault(),a.startsWith("!"))core.moduleAvailable("shell")&&plugins.shell.open(a);else{$(this).find('input[name="mod"], input[name="title"]').remove(),"virtual-server"!==h()&&"server-manager"!==h()||$("<input>").attr({type:"hidden",name:"mod",value:h()}).appendTo($(this));var i=h(1),n=theme_language("search_in_"+("mailbox"===i?"usermin":i));n=n||theme_language("filemanager_context_search"),$("<input>").attr({type:"hidden",name:"title",value:n}).appendTo($(this));var s=$(this).attr("action")+"?"+$(this).serialize();get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:s}):(get_pjax_content(s),t.val(""))}}).on("click","[data-collapse-trigger]",function(e){e.stopImmediatePropagation();var t="1"==get_server_data("data-navigation-collapsed")?0:1;vars.navigation_pinned=t,settings_navigation_always_collapse=!settings_navigation_always_collapse,settings_navigation_always_collapse?(get_server_data("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),s(1,void 0!==e.originalEvent?1:0)):(get_server_data("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},0),$(window).resize()}).on("click",".user-links > li.favorites",function(e){$(".favorites-menu-outer").addClass("hover")}).on("click",".user-link.palette-toggle",function(e){theme_toggle_night_mode()}).on("click",".user-link.ported-console",function(e){plugins.shell.available()&&plugins.shell.open()}).on("click",'li[data-linked] a[href="'+v___location_prefix+'/shell/"], a[href="'+v___location_prefix+'/server-manager/shell.cgi"], a[href*="shell=1"]:not(a[href*="login.cgi"])',function(e){e.preventDefault(),e.stopPropagation(),plugins.shell.open()}).on("click",".__logout-link",function(e){progress.start(),get_server_theme_temp_data("goto",0)}).mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:100,scrollButtons:!1,callbacks:{onScroll:function(){$(".mobile-menu-toggler").is(":visible")||($(".form-control.sidebar-search").blur(),$("aside select")&&$("aside select").length>0&&$("aside select").hasClass("select2-hidden-accessible")&&$("aside select").select2("close"))}}})});var e=function(){var e=".navigation";$(e+" li.has-sub").removeClass("sub_active"),$(e+" > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$(e+" > li > ul.sub > li").removeClass("sub_active").find("span.current").remove(),$(e+" > li.has-sub").removeClass("active"),$(e+" > li > ul.sub").hide(),$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")},t=function(t,a){if(Test.arrContains(["webmin_search.cgi","settings-user.cgi","settings-editor_favorites_read.cgi"],v___location_file))e();else if(!v___blocked_navigation){if(void 0===a){var i=1,n=0,s=$('.navigation a[href*="'+v___location_path+'"]:not([data-parent-hidden]):first');$('.navigation a[href="'+v___location_resource+'"]:not([data-parent-hidden]):first, .navigation a[href*="'+link_type_convert(v___location_path,2)+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,n=1):$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,i=0):Test.strContains(v___location_file,"cgi")&&s.length&&(t=s.attr("href"),i=0,"save_log.cgi"===v___location_file&&Test.strContains(v___location_query,"error")&&Test.strContains(t,"_log")&&(Test.strContains(t,"file=")||Test.strContains(t,"extra="))&&(t=$('.navigation a[href*="'+v___location_path+'"][href*="error"]:not([data-parent-hidden]):first').attr("href")));t=t?t.replace("/edit_users.cgi","/list_users.cgi").replace("/edit_user.cgi","/list_users.cgi").replace("/edit_alias.cgi","/list_aliases.cgi").replace("/edit_database.cgi","/list_databases.cgi").replace("/save_database.cgi","/list_databases.cgi").replace("/edit_script.cgi","/list_scripts.cgi").replace("/script_form.cgi","/list_scripts.cgi"):t;!i||"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file||(t=$t_uri_virtualmin&&!core.curModule("virtualmin-awstats")?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin?v___location_prefix+"/config.cgi?server-manager":$t_uri_webmail?v___location_prefix+"/uconfig.cgi?mailbox":v___location_prefix+"/"+v___location_query+"/");var o=$t_uri_webmin||$t_uri_usermin;if(!t&&o)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,"sysinfo.cgi"))t=v___location_path.replace(v___location_file,""),page_extended()&&(t=v___location_prefix+"/webmin/");else if(!t){var r=new RegExp("^"+v___location_prefix,"i");t=get_server_data("data-uri").replace(r,"").split("/").filter(function(e){return 0!==e.length})[0],t=v___location_prefix+"/"+t}targeted_menu_link=n?$('.navigation a[href="'+t+'"]:not([data-parent-hidden]):first, .navigation a[href="'+link_type_convert(t,2)+'"]:not([data-parent-hidden]):first'):$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e()}else targeted_menu_link=$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first'),targeted_menu_link.length&&e();targeted_menu_link.parent("li:not(.menu-exclude):not(.user-link)").addClass("sub_active").append('<span class="current-large"></span>').parent("ul.sub").show().parent("li:not(.menu-exclude):not(.user-link)").prev("li").addClass("active")}},a=function(){$(".mCSB_container, .mCSB_dragger").css("top","0"),!$("#_menu_loader").length&&$("body ul.navigation").before('<span id="_menu_loader" class="loading loading-sm"></span>'),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","hidden"),$("aside ul.user-html").addClass("invisible")},i=function(){$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),o(),bind_sameorigin(1),theme_to_new_tab()},n=function(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&($("aside").transition({x:settings_leftmenu_width},437.5,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},262.5)}),setTimeout(function(){$(".switch-toggle").css("display","table")},1))},s=function(e,t){var a="mobile-menu-toggler",i=$(quirks.active_element()).is('input[name="settings_navigation_always_collapse"]');if(e&&(i=1),t)return $("."+a).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),void $("."+a).css("transform","translate("+settings_leftmenu_width+"px, 0px)");"function"==typeof jQuery().transition&&$("."+a+":visible").length&&$("."+a).attr("style")&&-1==$("."+a).attr("style").indexOf("ease")&&($(".__logo")&&$(".__logo").transition({y:0},262.5),$("aside, ."+a).transition({x:0},i?0:175,function(){$("."+a).removeClass("selected"),$(".switch-toggle").css("display","none"),$("aside").addClass("hidden-xs")}))},o=function(e){vars.navigation.select.back=!1,$(".form-control.sidebar-search").is(":focus")||$.each($("aside select > option"),function(){var e=$(this).text().match(/^\s{0,4}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(4===e&&-1===t.indexOf("↱")?$(this).html("&nbsp;&nbsp;&nbsp;&nbsp;↱&nbsp;"+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(this).html("&nbsp;&nbsp;↴&nbsp;"+t.replace(/\s/g,"")))}).promise().done(function(){var t=$("aside select");if(t.removeAttr("id"),t.length){t.removeAttr("onchange disabled"),t.data("select2")&&t.select2("destroy"),t.unbind("select2:select"),t.select2({minimumResultsForSearch:3});t.data("select2");e&&t.select2("open"),t.on("select2:selecting",function(){t.data("previous-value",$(this).val())}),t.on("select2:select",function(e){var t=e.currentTarget.value;"dom"===e.currentTarget.name?get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.virtualmin":[t],get_default_virtualmin_content:[t]})):(g(t),get_default_virtualmin_content(t)):"sid"===e.currentTarget.name&&(get_onbeforeunload_status()?(vars.navigation.select.back=!0,get_onbeforeunload_message(e,this,{"plugins.navigation.get.cloudmin":[t],get_default_cloudmin_content:[t]})):(f(t),get_default_cloudmin_content(t)))}),t.on("select2:open",function(e){$.each($("select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$(this);setTimeout(function(){$("body").find('li[id$="'+e.attr("value")+'"]').attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")},1)}}),$("body").find(".select2-container:not(.select2), "+v___class_select2_leak).addClass("select2-aside")}),t.on("select2:closing",function(e){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),1===$("aside select option").length&&($(".select2 span").css("cursor","default"),$(".select2 .select2-selection__arrow").remove(),t.on("select2:open",function(){$(".select2-container .select2-dropdown").css("opacity","0")})),$.each($("aside select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(".select2-selection > .select2-selection__rendered").text().trim()==$(this).text().trim()&&$(".select2-selection > .select2-selection__rendered").attr("style","color: #"+(v___theme_night_mode_enabled?"9a5150":"e97471")+" !important;")})}})},r=function(e,t){var a=$("aside select");a.val(e).trigger("change"),t&&a.trigger("select2:select")},l=function(e,t){var i=function(e){return e&&(e.includes("http://")||e.includes("https://")||e.includes("ftp://")||e.includes("ftps://"))?1:0};if("c"!=e||($(".autocomplete-suggestions").remove(),$(".form-control.sidebar-search").removeAttr("disabled"),$(".form-control.sidebar-search").autocomplete("dispose"),!get_onbeforeunload_status()&&$(".form-control.sidebar-search").val(""),!t)){var n={},o="li:not(.menu-exclude):not(.user-link)";$.each($(o+' > ul[id^="global_"].sub > '+o+' > a, ul.navigation > [data-after] > a, ul.navigation > li > a[href*="virtual-server/index.cgi"], ul.navigation > li > a[href*="server-manager/index.cgi"]'),function(){var e=$(this).attr("href"),t=i(e),a=("/"==e.substring(0,1)?"":"/")+e;t&&(a=e),n[a]=$.trim($(this).text())}),$('li > a[target="page"][data-href="/virtual-server/index.cgi"], '+o+' > a[target="page"][data-href="/sysinfo.cgi"], '+o+' > a[target="page"][data-href="/virtual-server/pro/history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/one_history.cgi"], '+o+' > a[target="page"][data-href="/server-manager/history.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_folders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], '+o+' > a[target="page"][data-href="/mailbox/list_addresses.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_forward.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+o+' > a[target="page"][data-href="/filter/"], '+o+' > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(){n[$(this).attr("data-href")]=$.trim($(this).text())});var l=$.map(n,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:m()}}}),c={};(core.curModule("custom")||v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"||v___location_path==v___location_prefix+"/usermin/"||v___location_path==v___location_prefix+"/usermin/index.cgi"||v___location_path==v___location_prefix+"/webmin/"||v___location_path==v___location_prefix+"/webmin/index.cgi"||v___location_path==v___location_prefix+"/acl/"||v___location_path==v___location_prefix+"/acl/index.cgi"||v___location_path==v___location_prefix+"/init/"||v___location_path==v___location_prefix+"/init/index.cgi"||v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/inittab/"||v___location_path==v___location_prefix+"/inittab/index.cgi"||v___location_path==v___location_prefix+"/logrotate/"||v___location_path==v___location_prefix+"/logrotate/index.cgi"||v___location_path==v___location_prefix+"/mailcap/"||v___location_path==v___location_prefix+"/mailcap/index.cgi"||v___location_path==v___location_prefix+"/pam/"||v___location_path==v___location_prefix+"/pam/index.cgi"||v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/cron/"||v___location_path==v___location_prefix+"/cron/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi"||v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/apache/"||v___location_path==v___location_prefix+"/apache/index.cgi"||v___location_path==v___location_prefix+"/bind8/"||v___location_path==v___location_prefix+"/bind8/index.cgi"||v___location_path==v___location_prefix+"/dhcpd/"||v___location_path==v___location_prefix+"/dhcpd/index.cgi"||v___location_path==v___location_prefix+"/dovecot/"||v___location_path==v___location_prefix+"/dovecot/index.cgi"||v___location_path==v___location_prefix+"/ldap-server/"||v___location_path==v___location_prefix+"/ldap-server/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-nginx/"||v___location_path==v___location_prefix+"/virtualmin-nginx/index.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/fetchmail/index.cgi"||v___location_path==v___location_prefix+"/mysql/"||v___location_path==v___location_prefix+"/mysql/index.cgi"||v___location_path==v___location_prefix+"/mysql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postgresql/"||v___location_path==v___location_prefix+"/postgresql/index.cgi"||v___location_path==v___location_prefix+"/postgresql/edit_dbase.cgi"||v___location_path==v___location_prefix+"/postfix/"||v___location_path==v___location_prefix+"/postfix/index.cgi"||v___location_path==v___location_prefix+"/procmail/"||v___location_path==v___location_prefix+"/procmail/index.cgi"||v___location_path==v___location_prefix+"/proftpd/"||v___location_path==v___location_prefix+"/proftpd/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/"||v___location_path==v___location_prefix+"/mailboxes/index.cgi"||v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"||v___location_path==v___location_prefix+"/samba/"||v___location_path==v___location_prefix+"/samba/index.cgi"||v___location_path==v___location_prefix+"/spam/"||v___location_path==v___location_prefix+"/spam/index.cgi"||v___location_path==v___location_prefix+"/squid/"||v___location_path==v___location_prefix+"/squid/index.cgi"||v___location_path==v___location_prefix+"/sshd/"||v___location_path==v___location_prefix+"/sshd/index.cgi"||v___location_path==v___location_prefix+"/webalizer/"||v___location_path==v___location_prefix+"/webalizer/index.cgi"||v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"||v___location_path==v___location_prefix+"/htaccess-htpasswd/"||v___location_path==v___location_prefix+"/htaccess-htpasswd/index.cgi"||v___location_path==v___location_prefix+"/status/"||v___location_path==v___location_prefix+"/status/index.cgi"||v___location_path==v___location_prefix+"/net/"||v___location_path==v___location_prefix+"/net/index.cgi"||v___location_path==v___location_prefix+"/tcpwrappers/"||v___location_path==v___location_prefix+"/tcpwrappers/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/fail2ban/"||v___location_path==v___location_prefix+"/fail2ban/index.cgi"||v___location_path==v___location_prefix+"/nis/"||v___location_path==v___location_prefix+"/nis/index.cgi"||v___location_path==v___location_prefix+"/passwd/"||v___location_path==v___location_prefix+"/passwd/index.cgi")&&$($(".container-fluid .panel-body a[href]:not([href*='javascript'],[href*='list_users.cgi?dom'],[href*='edit_hdparm.cgi?disk'],[href*='blink.cgi?disk'],[href*='smart-status/index.cgi?drive'],[href*='help.cgi'],[href*='edit_user.cgi?new='],[href*='edit_user.cgi?idx='],[href*='edit_recipe.cgi'],[href*='up.cgi'],[href*='down.cgi'],[href*='virt_index.cgi'],[href*='save_log.cgi'],[href*='backup.cgi'],[href*='activate.cgi'],[href*='#'])")).each(function(){if(v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")c["/"+v___location_path_lead_unslashed+$(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").next("td[data-td-e]").find("a").attr("href")]=$.trim($(this).text());else{v___location_path==v___location_prefix+"/backup-config/"||v___location_path==v___location_prefix+"/backup-config/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/mount/"||v___location_path==v___location_prefix+"/mount/index.cgi"||v___location_path==v___location_prefix+"/quota/"||v___location_path==v___location_prefix+"/quota/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").find("tt").find("tt").text()):v___location_path==v___location_prefix+"/proc/"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"?v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/proc/index_search.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" — "+$.trim($(this).parents("td").next("td").next("td").next("td").text()):v___location_path==v___location_prefix+"/useradmin/"||v___location_path==v___location_prefix+"/useradmin/index.cgi"?$description=$.trim($(this).parents("td").next("td").find("label").text())+" — "+$(this).text()+":"+$.trim($(this).parents("td").next("td").next("td").find("label").text())+" - "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").find("label").text())+", "+$.trim($(this).parents("td").next("td").next("td").next("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/mailboxes/list_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/"||v___location_path==v___location_prefix+"/mailbox/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").next("td").find("label").text())+" — "+$.trim($(this).parents("td").next("td").find("label").text())+" ["+$.trim($(this).parents("td").next("td").next("td").find("label").text())+"]":v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"?$description=$.trim($(this).parents("td").next("td").next("td").find("label").text()):v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"?$description=$.trim($(this).parent("td").next("td[data-td-e]").text())+" - "+$.trim($(this).parent("td").next("td[data-td-e]").next("td[data-td-e]").text()):$description=$.trim($(this).parent("td").next("td[data-td-e]").text()),$description?$_description=!0:$_description=!1;var e=$.trim($(this).text());if(core.curModule("bind8")){var t=$(this).parents("form").prev("br").prev("b").find("tt");if(t.length){var a=t.text();!$(this).parent(".ui_links_row").length&&a&&(e=e+" ("+a+")")}}c[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=e+($_description?" (":"")+$description+($_description?")":"")}});var p=$.map(c,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),g={};$.each($(o+' > ul.sub:not([id^="global_"]) > '+o+' > a, ul.navigation > [data-linked]:not([data-after]) > a:not([href*="virtual-server/index.cgi"]):not([href*="server-manager/index.cgi"])'),function(e,t){g[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$(o+' > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/sysinfo.cgi"],[data-href="/virtual-server/pro/history.cgi"], [data-href="/mailbox/list_folders.cgi"], [data-href="/mailbox/list_ifolders.cgi"], [data-href="/mailbox/list_addresses.cgi"], [data-href="/filter/edit_forward.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/edit_auto.cgi"], [data-href="/filter/"], [data-href="/mailbox/edit_sig.cgi"])').each(function(e,t){$t_uri_usermin||_()||(g[$(this).attr("data-href")]=$.trim($(this).text()))});var f=$.map(g,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside .select2-selection__rendered").text()?'<span style="font-style: italic">'+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"</span>":m()}}}),u={};$("aside select option").each(function(){u[$(this).val()+":::"+$(this).parent("select").attr("name")]=$.trim($(this).text())});var h=$.map(u,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:$("aside select").data("autocomplete-title")}}}).concat(p).concat(f).concat(l);$(".form-control.sidebar-search").on("keydown",function(e){34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(".form-control.sidebar-search").autocomplete({lookup:h,onSelect:function(e,t){var n=$.Autocomplete.externalEvent;if(!$.isEmptyObject(n)){var o=n.keyCode?n.keyCode:n.which;if(n.ctrlKey||n.shiftKey||n.altKey||n.metaKey||20===o||32===o||33===o||34===o||35===o||36===o||37===o||38===o||39===o||40===o||45===o||46===o||112===o||113===o||114===o||115===o||116===o||117===o||118===o||119===o||120===o||121===o||122===o||123===o||144===o||145===o)return}!0===_()&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&d("webmin"),$(this).val("").blur(),s();var l=i(e.url);if("/"==e.url.substring(0,1)||l){if(e.url&&(l||e.url.includes("virtual-server/pro/history.cgi")||e.url.includes("server-manager/history.cgi")||e.url.includes("server-manager/one_history.cgi")))return void theme_open_new_tab(e.url,1);var c=e.url;if(v___location_prefix&&!c.startsWith(v___location_prefix)&&(c=v___location_prefix+c),Test.strContains(v___location_prefix,v___target_servers_index)&&c&&c.endsWith("/servers/"))return;if(c&&(c.includes("switch_user.cgi")||c.includes("/shell")||c.includes("shell=1")))return set_onbeforeunload_status(0,0),void $('aside [data-linked] a[href="'+e.url+'"]').click();get_onbeforeunload_status()?(t&&t.preventDefault(),get_onbeforeunload_message([],{href:c})):get_pjax_content(c,["reference"])}else if(e.url&&e.url.indexOf(":::")>-1){var p=e.url.split(":::")[0];get_onbeforeunload_status()?get_onbeforeunload_message(f,this,{"plugins.navigation.select.set":[p,1]}):(a(),r(p,1))}},groupBy:"category"})}},_=function(){return"1"==c("dashboard")},c=function(e){return e=e?'[id="open_'+e+'"]':String(),$(".switch-toggle input"+e).length},d=function(e){get_onbeforeunload_status()||($('.switch-toggle input:not([id="open_'+e+'"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_"+e).length?$("#open_"+e).prop("checked",!0):$('.dynamic[name="product-switcher"]').first().prop("checked",!0)}),v())},p=function(n){get_onbeforeunload_status()||(a(),d("webmail"==n?"webmail":get_server_data("product")),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type="+("webmail"==n?"webmail":"webmin"),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="webmail"==n?"webmail":get_server_data("product"),$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t(),"webmail"===n&&settings_mail_ui&&("object"==typeof mail?mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"]))}}))},g=function(n){get_onbeforeunload_status()||(a(),d("virtualmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=virtualmin"+(n?"&dom="+n:settings_right_virtualmin_default?"&dom="+settings_right_virtualmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="virtualmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},f=function(n){get_onbeforeunload_status()||(a(),d("cloudmin"),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-navigation=1&xhr-navigation-type=cloudmin"+(n||0===n?"&sid="+n:settings_right_cloudmin_default?"&sid="+settings_right_cloudmin_default:""),data:!1,dataType:"text",success:function(a){if(Test.strContains(a,v___page_signin_form))return v___available_session=0,i(),void e();v___theme_navigation_active="cloudmin",$("body ul.navigation").html(a),u(),i(),!get_server_data("loading")&&t()}}))},u=function(){var e=$("body ul.navigation").find("[data-x-buttons]"),t=e.find("ul[data-x-container]").html();$("body ul.user-links").html(t),e.remove(),plugins.shell.link()},m=function(){return $t_uri_webmin?theme_language("titles_wm"):$t_uri_usermin?theme_language("titles_um"):$t_uri_virtualmin?theme_language("titles_vm"):$t_uri_cloudmin?theme_language("titles_cm"):$t_uri_webmail?theme_language("titles_mail"):$t_uri_dashboard?theme_language("titles_dashboard"):void 0},h=function(e,t){return $t_uri_webmin?"webmin":$t_uri_usermin?"usermin":$t_uri_dashboard?"dashboard":$t_uri_virtualmin?t?"virtualmin":e?"virtualserver":"virtual-server":$t_uri_cloudmin?t?"cloudmin":e?"servermanager":"server-manager":$t_uri_webmail?"mailbox":void 0},v=function(){$t_uri_webmin=$('.switch-toggle input[id="open_webmin"]:checked').length?1:0,$t_uri_usermin=$('.switch-toggle input[id="open_usermin"]:checked').length?1:0,$t_uri_virtualmin=$('.switch-toggle input[id="open_virtualmin"]:checked').length?1:0,$t_uri_cloudmin=$('.switch-toggle input[id="open_cloudmin"]:checked').length?1:0,$t_uri_webmail=$('.switch-toggle input[id="open_webmail"]:checked').length?1:0,$t_uri_dashboard=$('.switch-toggle input[id="open_dashboard"]:checked').length?1:0};return{reset:e,select:{set:r,back:function(){if(vars.navigation.select.back){var e=$("aside select");r(e.data("previous-value"),0),vars.navigation.select.back=!1}},load:o},detect:t,load:{start:a,stop:i},collapse:s,reload:function(e){if(!get_onbeforeunload_status()){e=void 0===e||-1==e||""==e?$("aside select").val():e;var t=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==t?(d("webmin"),p("webmin")):"virtualmin"==t?(d("virtualmin"),g(e)):"cloudmin"==t?(d("cloudmin"),f(e)):"usermin"==t?(d("usermin"),p("usermin")):"mail"==t&&(d("webmail"),p("webmail"))}},update:function(e,t){t||(t=600);var i=$(".switch-toggle"+(e?" #open_"+e:' [id^="open_"]')+":checked");if(i.length){a();var n=0;n||(n++,setTimeout(function(){i.click()},t))}},deform:function(e){var t=$("aside select"),a=t.data("select2");e||(vars.navigation_select=a&&"undefined"!=a&&!e&&t.select2("isOpen")),e?$.each($("aside").find("forms"),function(){$(this).replaceTagName("form")}).promise().done(function(){o(vars.navigation_select)}):(a&&t.select2("destroy"),$.each($("aside").find("form"),function(){$(this).replaceTagName("forms")}))},lock:function(){if("undefined"==typeof settings_leftmenu_width_initial&&(settings_leftmenu_width_initial=settings_leftmenu_width),matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed"))settings_leftmenu_width=260,page_adjust(settings_leftmenu_width,0);else{if(1===v___initial_load)return;settings_leftmenu_width=settings_leftmenu_width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}},switch:{dashboard:{get:_,set:function(){d("dashboard"),e(),get_pjax_content(v___location_prefix+"/sysinfo.cgi")}},available:c,set:d,reset:function(){Test.string(v___theme_navigation_active)&&d(v___theme_navigation_active)}},get:{webmin:p,virtualmin:g,cloudmin:f,buttons:u},intersect:{virtualmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=URI.parseQuery(URI(e).query()).dom||URI.parseQuery(URI(e).query()).gparent,a=$('select[name="dom"]').val();t&&t!=a&&g(t)},cloudmin:function(e){e="object"==typeof e?e.attr("href"):e;var t=(t=URI.parseQuery(URI(e).query()).id)||URI.parseQuery(URI(e).query()).d,a=$('select[name="sid"]').val();t&&t!=a&&f(t)}},state:{title:m,module:h,update:v,loading:function(){return $("#_menu_loader").length}}}}(),plugins.messenger=(document.addEventListener("DOMContentLoaded",function(){(function(){if("function"==typeof Messenger.Message){var e,t,a,i={}.hasOwnProperty;e=jQuery,a='<div class="messenger-spinner">\n    <span class="messenger-spinner-side messenger-spinner-side-left">\n        <span class="messenger-spinner-fill"></span>\n    </span>\n    <span class="messenger-spinner-side messenger-spinner-side-right">\n        <span class="messenger-spinner-fill"></span>\n    </span>\n</div>',t=function(t){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){for(var a in t)i.call(t,a)&&(e[a]=t[a]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,Messenger.Message),n.prototype.template=function(t){var i;return(i=n.__super__.template.apply(this,arguments)).append(e(a)),i},n}(),Messenger.themes.air={Message:t},Messenger.options={extraClasses:"messenger-fixed messenger-on-bottom",theme:"air"}}}).call(this)}),{post:function(e,t,a,i,n,s,o){var r=void 0===i?1:i,l=void 0===n||n;if(s=void 0===s?"":s,o=void 0===o?{}:o,"hide-all"!==e){if($.isArray(e)&&(e='<i class="fa fa-lg fa-fw fa-'+e[0]+'"></i> '+e[1]),$.isArray(s)){var _=s;s="messenger-fixed ",s+="messenger-on-"+_.join(" messenger-on-")}else s=s.length?"messenger-fixed messenger-on-"+s:"messenger-fixed messenger-on-bottom";return"function"==typeof Messenger?(Messenger.options={extraClasses:s,theme:"air"},window["Messenger_"+r]=Messenger().post({message:e,extraClasses:s,hideAfter:t,showCloseButton:l,type:a,id:r,actions:o})):void 0}Messenger().hideAll()}}),plugins.upload=function(e){e.removeAttr("onsubmit"),e.on("submit.fm",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=moment().unix()+""+parseInt(1e5*Math.random()),a=$(this),i=a.find(".ui_form_end_submit"),n=a.find('input[type="file"]')[0],s=n.files.length,o=a.find('input[name="dir"]').val(),r=$(n.files).map(function(e,t){return t.name}).get().join("\n"),l=function(){theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(a),despinnerfy_buttons(0,i),i.addClass("disabled")},_=function(){s>1?plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("upload_successful").replace("$1","<em>"+s+"</em>").replace("$2","`<tt>"+o+"</tt>`").replace("<span",'<span title="'+r+'"'),10,"success","uploadSuccess_"+t,0,["top","right"]):plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("upload_successful_single").replace("$1","<em>"+s+"</em>").replace("$2","`<tt>"+o+"</tt>`").replace("<span",'<span title="'+r+'"'),10,"success","uploadSuccess_"+t,0,["top","right"])};spinnerfy_buttons(i),window["progress_id_ref_"+t]=$.ajax({type:"POST",url:"upload.cgi?id="+t,processData:!1,contentType:!1,data:new FormData(a[0]),complete:function(e){l(),function(e){var a=$(e.responseText).find("h3").text();return a.length?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("global_error")+": "+a.replace(/\s:\s/g," — "),15,"error","uploadError_"+t,0,["top","right"]),1):0}(e)||200===e.status&&_()},error:function(){$("[data-progress-id="+t+"] .bottom_progress_cancel").trigger("click")}}),theme_message_dismiss("upload_error");var c=1;window["progress_id_ref_"+t+"_tracker"]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var a=e.target.responseText,i=regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),n=regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1),s=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);i&&n&&s&&(c&&(c=0,l()),(s=parseInt((s.match(/|/g)||[]).length/50*100))>100&&(s=100),progress_percent.control(t,"success",s,[i,n,s]));if(Test.strContains(a,v___page_signin_form))return v___available_session=0,window["progress_id_ref_"+t].abort(),void window["progress_id_ref_"+t+"_tracker"].abort()},!1),e},type:a.attr("method"),url:v___location_prefix+"/uptracker.cgi?id="+t+"&uid="+(0===get_access_level()||1===get_access_level()?"":get_server_data("user-id")),complete:function(e){c&&(c=0,l()),theme_message_exists("uploadError_"+t)||200===e.status&&_()}})})};const snippets={datetime:{},page:{},patches:{},initial:function(){plugins.dashboard.reset(),snippets.get_goto(),plugins.navigation.update("webmail")},form_pre_submitter:function(){$("body").on("click",'button.ui_form_end_submit[type="button"]:not(.disabled)',function(){var e=$(this).next('input[type="submit"].hidden'),t=$(this).parent(".btn-group").next('input[type="submit"].hidden');e.length||(e=t);var i=e.parent(),a=(i.parent("tr").find("form"),e.parents("form"));if(!a.length)return(a=e.closest("form")).length||(a=i.prev("form")),a.length||(a=i.prev().prev("form")),a.length||(a=i.prev().prev().prev("form")),a.append(a.nextUntil(i)),void $.each(i.find("select, input"),function(){$('<input data-trigger-injected="1">').attr({type:"hidden",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(a)}).promise().done(function(){a.submit()});var n=e.attr("name")?e.attr("name"):e.attr("id"),s=$.trim(e.val());$('<input data-trigger-injected="1">').attr({type:"hidden",name:n,value:s}).appendTo(a),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){core.curModule("csf")?spinnerfy_buttons($(this),[2,-29,"small",!1]):spinnerfy_buttons($(this),!1,!1,!1)})},form_input_tester:function(e){if(e)return $(".btn-group.end_submits:visible button.ui_form_end_submit").hasClass("btn-warning dt-tester-btn");$(document).on("input.tester",'form:not([data-tester="1"]):not(#webmin_search_form)',function(e){if(void 0!==e.originalEvent&&!vars.pjax.post_page_fetch&&v___location_file&&"index.cgi"!==v___location_file){var t=$(this);if(1!=t.attr("data-tester")){var i=t.find(".CodeMirror").length,a=$(this).attr("action");if(i&&!core.curModule("init")||(core.curModuleFile("mysql","")||core.curModuleFile("postgresql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("postgresql","index.cgi"))&&$(".ui_grid_table.table-hardcoded").length||core.curModuleFile("bind8","")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("mailbox","reply_mail.cgi")||core.curModuleFile("virtual-server","wizard.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("virtual-server","list_scripts.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("ruby-gems","index.cgi")||a&&a.includes("edit_tmpl.cgi")||$(".modal.in.mppopup").length)t.attr("data-tester",1);else{var n=$(e.target).is('input[type="checkbox"], input[type="radio"]'),s=$(e.target).parents("tr");if(!(n&&s&&s.length&&s.attr("class")&&s.attr("class").includes("ui_checked"))){theme_restore_buttons_class();var r=t.find(".btn-group.end_submits:visible button.ui_form_end_submit"),o=r.first(),l=String("btn-xclass"),_=1===r.data("click-event");if(o[0]&&o[0].classList){var c=o[0].classList.value.match(/.*(btn-\S+)/);c&&(l=c[1],o.attr("data-class-restore",l))}r&&r.length&&(set_onbeforeunload_status(1),_||(r.data("click-event",1),o.removeClass(l).addClass("btn-warning dt-tester-btn"),t.attr("data-tester",1),r.one("click",function(){r.data("click-event",0),t.attr("data-tester",0),set_onbeforeunload_status(0)}),t.on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which;(13===t&&!$(e.target).is("textarea")||13===t&&e.ctrlKey&&$(e.target).is("textarea"))&&(o.hasClass("btn-warning dt-tester-btn")?(e.preventDefault(),o.trigger("click")):set_onbeforeunload_status(0))})))}}}}})},inject_extra_option:function(e,t,i,a){if("tr/yes:no"===e){var n=$("body"),s=t.parents("form");t.parents("td.col_value").parent("tr").after('          <tr>            <td class="col_label"><b>'+a+'</b></td>            <td class="col_value"><span>            <span class="awradio awobject">              <input class="iawobject" name="'+i+'" id="'+i+'_1" value="true"'+(1==window[i]||void 0===window[i]?" checked":"")+' type="radio">              <label class="lawobject" for="'+i+'_1">'+theme_language("global_yes")+'</label>              <input class="iawobject" name="'+i+'" id="'+i+'_0" value="false"'+(0==window[i]?" checked":"")+' type="radio">              <label class="lawobject" for="'+i+'_0">'+theme_language("global_no")+"</label>            </span>          </span></td>          </tr>        ");var r="submit."+i;n.off(r),n.one(r,s,function(){var e=Test.true($("[name="+i+"]:checked").val());window[i]=e,theme_config_store()})}}};snippets.datetime.tictac=function(e,t){var i=t?"convertible-date-full":"convertible-timestamp-full",a=$("[data-"+i+"]");if(a.parent().contents().filter(function(){return 3===this.nodeType}).remove(),"undefined"!=typeof moment){if(t){var n=a.data(i);if(n){var s=new Date(n);a.data(i,s),s.setSeconds(s.getSeconds()+1),a.text(moment(s.toISOString()).format(config_portable_theme_locale_format_full))}}else a.data(i,parseInt(a.data(i))+1),a.text(moment.unix(a.data(i)).format(config_portable_theme_locale_format_full));!e&&setInterval(snippets.datetime.tictac.bind(null,1,t),1e3)}},snippets.datetime.locale=function(e){if(e){var t=theme_language("title_language_locale"),i=core.curModule("language"),a=core.curModule("change-user"),n=core.curModuleFile("webmin","edit_lang.cgi"),s=$('.container-fluid form select[name="lang"]'),r=i?s.next(".ui_form_end_buttons").find("tbody"):s.parents("tr").first().parent("tbody"),o=r.parents("form").first(),l=i?r:r.find('select[name="lang"]').parents("tr").first();if("insert"===e.type){if(core.curModule("webmin")){var _=$('.icons-container a[href*="edit_lang.cgi"]'),c=$('.small-icons-container a[href*="edit_lang.cgi"]'),d=$('a[href*="edit_lang.cgi"] p > .fa-angle-right');if(_.length){var p=_.find("img").detach();_.text(t).prepend(p,"<br>")}else c.length?(c.find(".hidden").text(t),c.parent().attr("title",t)):d.length&&d.parent().html('<i class="fa fa-fw fa-angle-right">&nbsp;&nbsp;</i>'+t)}if((n||a||i)&&!e.history){a&&$('[name="overlay"]').parent("td").parent("tr").addClass("hidden"),a||$("span[data-main_title]").text(t);var h='            <tr>                <td class="w-25p"><strong>'+(a?theme_language("title_webmin_ui_locale"):theme_language("title_locale_config"))+(i?": &nbsp&nbsp":"")+'</strong></td>                <td>                  <span class="awradio awobject"><input class="iawobject" type="radio" name="config_portable_theme_locale_language" value="0" id="config_portable_theme_locale_language_0"'+(0==config_portable_theme_locale_language?" checked":"")+'>                    <label class="lawobject" for="config_portable_theme_locale_language_0">'+theme_language("title_locale_auto")+'</label>                  </span>                  <span class="awradio awobject"><input class="iawobject" type="radio" name="config_portable_theme_locale_language" value="1" id="config_portable_theme_locale_language_1"'+(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?" checked":"")+'>                    <label class="lawobject" for="config_portable_theme_locale_language_1">'+theme_language("global_manual")+'</label>                  </span>                  </td>            </tr>            <tr class="'+(0==config_portable_theme_locale_language?"hidden _locale_config":"_locale_config")+'">                <td><strong>'+(a?theme_language("title_locale_config_format_ui"):theme_language("title_locale_config_format"))+' <sup><a href="'+v___location_prefix+'/help.cgi/authentic-theme/locale"><i class="fa '+(i?"":" font-size-75p ")+' fa-question-circle text-light"></i></a></sup>'+(i?"&nbsp&nbsp&nbsp&nbsp":"")+"</strong></td>                <td>                  "+theme_language("title_locale_lang_based")+'&nbsp;&nbsp;<select data-select="locales" disabled><option></option></select>&nbsp;                  <span class="text-nowrap">                    '+theme_language("title_locale_full")+'&nbsp;                    <span class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("global_default")+": <i class='text-success'>`LLLL`</i></p><p>"+theme_language("global_output_example")+": <i class='text-warning'>"+moment().format(config_portable_theme_locale_format_full)+'</i></p>">                      <input autocomplete="off" class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_full" size="3" value="'+config_portable_theme_locale_format_full+'">                    </span>&nbsp;                  </span>                  <span class="text-nowrap">                    '+theme_language("title_locale_long")+'&nbsp;                      <span  class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("global_default")+": <i class='text-success'>`LL`</i></p><p>"+theme_language("global_output_example")+": <i class='text-warning'>"+moment().format(config_portable_theme_locale_format_long)+'</i></p>">                        <input autocomplete="off" class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_long" size="2" value="'+config_portable_theme_locale_format_long+'">                      </span>&nbsp;                  </span>                  <span class="text-nowrap">                    '+theme_language("title_locale_short")+'&nbsp;                    <span  class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("global_default")+": <i class='text-success'>`L`</i></p><p>"+theme_language("global_output_example")+": <i class='text-warning'>"+moment().format(config_portable_theme_locale_format_short)+'</i></p>">                      <input autocomplete="off" class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_short" size="1" value="'+config_portable_theme_locale_format_short+'">                    </span>&nbsp;                  </span>                  <span class="text-nowrap">                    '+theme_language("title_locale_time_format")+'&nbsp;                    <span  class="tooltip-wide" data-animation="false" data-placement="auto top" data-container=".container-fluid" data-toggle="tooltip" data-html="true" data-title="<p>'+theme_language("global_default")+": <i class='text-success'>`LTS`</i></p><p>"+theme_language("global_output_example")+": <i class='text-warning'>"+moment().format(config_portable_theme_locale_format_time)+'</i></p>">                      <input autocomplete="off" class="form-control w-auto inline-block" type="text" name="config_portable_theme_locale_format_time" size="2" value="'+config_portable_theme_locale_format_time+'">                    </span>                  </span>                  '+(core.moduleAvailable("webmin")?'<span class="text-nowrap"><br>'+theme_language("title_locale_non_ui_config")+'&nbsp;                                                 <select class="ui_select" name="dateformat">                                                  <option data-clear></option>                                                  <option value="dd/mon/yyyy">dd/mon/yyyy (ie. 16/Sep/2001)</option>                                                  <option value="dd/mm/yyyy">dd/mm/yyyy (ie. 16/09/2001)</option>                                                  <option value="mm/dd/yyyy">mm/dd/yyyy (ie. 09/16/2001)</option>                                                  <option value="yyyy/mm/dd">yyyy/mm/dd (ie. 2001/09/16)</option>                                                  <option value="d. mon yyyy">d. mon yyyy</option>                                                  <option value="dd.mm.yyyy">dd.mm.yyyy</option>                                                  <option value="yyyy-mm-dd">yyyy-mm-dd</option>                                                </select>                                              </span>':"")+"                  </td>            <tr>        ";i?l.prepend(h):(l.after(h),core.setModuleData("/webmin/edit_ui.cgi",["dateformat"]))}return}if("init"===e.type)return void((n||a||i)&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_theme_locale_languages=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){$('select[data-select="locales"]').replaceWith(e),$('#config_portable_theme_locale_languages option[value="ru-su"]').remove();var t='input[id*="config_portable_theme_locale_language"], select[name="config_portable_theme_locale_languages"], input[name="config_portable_theme_locale_format_full"], input[name="config_portable_theme_locale_format_long"], input[name="config_portable_theme_locale_format_short"], input[name="config_portable_theme_locale_format_time"]',i=$(t);$(i).on("change keyup focus",function(e){var t=$(this).attr("name"),i=$(this).parent(),a=i.data("title"),n=$('select[name="config_portable_theme_locale_languages"]').val();fleeting_format=$(this).val(),fleeting_format||(t.includes("short")?fleeting_format="L":t.includes("long")?fleeting_format="LL":t.includes("full")?fleeting_format="LLLL":t.includes("time")&&(fleeting_format="LTS")),t.indexOf("theme_locale_format_")>-1&&setTimeout(function(){i.attr("title",a.replace(/g'>(.*)<\/i>/g,"g'>"+(n?moment().locale(n).format(fleeting_format):moment().format(fleeting_format))+"</i>")).tooltip("fixTitle").tooltip("show")},"focus"===e.type?500:0);var s=$("._locale_config");"config_portable_theme_locale_language"===t&&"1"!=fleeting_format?"focus"!=e.type&&s.addClass("hidden"):"focus"!=e.type&&s.removeClass("hidden")}),$(o).on("submit",function(){var e=$('[name="dateformat"]');e.length&&core.updateModuleData("/webmin/edit_ui.cgi","/webmin/change_ui.cgi",{dateformat:$.trim(e.val())}),$.each($(t.replace('locale_language"]','locale_language"]:checked')),function(){var e=$(this).attr("name"),t=$(this).val();"config_portable_theme_locale_languages"===e&&""===t&&(t=get_server_data("language-full")),localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t}).promise().done(function(){var e=o.find('select[name="lang"]').val();if(e.indexOf(".")>-1&&(e=e.split(".")[0]),a&&"1"==o.find('[name="lang_def"]:checked').val()){var t=$('[name="lang_def"][value="1"]').next("label").text().match(/\(([^)]+)\)/);(t=t&&t[0]&&t[1]?t[1]:get_server_data("language-full")).indexOf(".")>-1&&(t=t.split(".")[0]),e=t}moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:e),theme_config("save"),setTimeout(function(){plugins.navigation.reload()},2e3)})})}}))}var u="x-md-",f=function(e,t){var i=e.tagName.endsWith("-d".toUpperCase())?1:0,a=e.tagName.includes(u+"t")?0:1,n=e.outerHTML.indexOf(";1")>-1?1:0,s=e.outerHTML.indexOf(";2")>-1?1:0,r=e.outerHTML.indexOf(";-1")>-1?1:0,o=core.curModule("proc")?1:0,l=$(e).text(),_=i?l.split(";")[0]:l,c=config_portable_theme_locale_format_short||"L",d=config_portable_theme_locale_format_long||"LL",p=config_portable_theme_locale_format_time||"LTS",h=moment.unix(_).format("l");h=h.indexOf("/")>-1?"/":h.indexOf("-")>-1?"-":".";var f,g=moment.unix(_).format(p),m=s?moment.unix(_).format("YYYY["+h+"]MM["+h+"]DD")+" "+(a?String():g):moment.unix(_).format(n?d:c);if(o&&(r=1,e&&"string"==typeof e.outerHTML&&e.outerHTML.includes(u+"t")&&$(e).remove()),r){isNaN(_)||(_*=1e3);var v=moment(_).fromNow();g=v,m=v}(f=$(e).is("td")?$(e):$(e).parent("td")).is("td")&&f.attr("data-order",_);if(t)return i?m:g;$(e).replaceWith(i?"<span"+(m.indexOf(" ")>-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+(r?moment(_).calendar(null,{sameElse:"LLL"}):moment.unix(_).fromNow())+'"':"")+">"+m+"</span>":g)};$.each($(u+"d").add(u+"t").add($("td:contains("+u+"d)").last()).add($("td:contains("+u+"t)").last()).add("option:contains("+u+"d)").add("option:contains("+u+"t)"),function(e,t){if(!t.tagName.startsWith(u.toUpperCase())){var i=$(t).text(),a=Convert.htmlUnEscape(i),n="";$.each($(a),function(e,t){$(t)[0].tagName&&$(t)[0].tagName.startsWith("x-md".toUpperCase())&&(n+=f($(t)[0],1)+" ")}).promise().done(function(){$(t).text(n)})}else f(t,0)})},snippets.ajax=function(){$(document).ajaxStop(function(){setTimeout(function(){0===v___available_session&&session.reauthenticate.start()},300)}).ajaxSuccess(function(){v___theme_ajax_error=0,"object"==typeof stats&&stats.general.error&&0===get_access_level()&&settings_sysinfo_real_time_status&&(stats.general.disable(),stats.general.enable(),stats.general.error=0)}).ajaxError(function(e,t){"canceled"!==t.statusText&&connection_error(t,0)}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,v___page_signin_form)||e&&("auth-required=1"===e.getResponseHeader("Auth-type")||e.responseText&&e.responseText.indexOf("reset-fonts-grids-base")>-1&&e.responseText.indexOf("window.top.location = window.location;")>-1))&&session.reauthenticate.start()},beforeSend:function(e,t){t.url=link_type_convert(t.url,1),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module())}})},snippets.pjax=function(){$(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"true"!=$(this).attr("data-download"))if("_blank"!==e.target.target){try{page.render.content.filter.clear()}catch(e){}e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e)}else{var t=$(this);setTimeout(function(){t.removeAttr("target"),get_pjax_content(v___location_resource)},100)}}),$(document).on("click","a"+$__theme_default_deselectors,function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),get_onbeforeunload_status()&&$(quirks.active_element()).is("a"+$__theme_event_deselectors)&&(!this.href||this.href&&this.href.length>0&&!this.href.includes("!edit"))){if(e.preventDefault(),null===this.getAttribute("href"))return;get_onbeforeunload_message(e,this)}else get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if("error"===i){var s=$.active;if(s&&($.active=s-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t,i){t&&(get_server_data("loading",1),$("body").addClass("loading-bg")),vars.page_user_inactive=1,vars.requested_page=i.url,"number"==typeof set_server_theme_temp_data_timeout&&clearTimeout(set_server_theme_temp_data_timeout)}),$(document).on("pjax:beforeReplace",function(e,t,i){settings_mail_ui&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1)&&(vars.pjax_replace_contents=0),plugins.navigation.deform(0),pjax.clear.modules(i),!1===i.push&&(Test.strContains(i.url,"/config.cgi?")||Test.strContains(i.url,"/uconfig.cgi?"))&&t.find(".btn-accordion-filter, .btn-toggle-accordions").remove()}),$(document).on("ready pjax:beforeSend",function(e,t,i){if(1===vars.pjax_cancel)return vars.pjax_cancel=0,!1;if(theme_download_link(i))return!1;if($t_uri_webmail&&settings_mail_ui&&core.moduleAvailable("mailbox")&&("object"==typeof mail?0===$("aside .fancytree-container").length&&mail_load_folders():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"])),settings_mail_ui&&core.curModule("mailbox")&&(core.curModuleFile("mailbox","")||core.curModuleFile("mailbox","index.cgi"))&&-1===uri_parse("directory",i.url).indexOf("/mailboxes")&&uri_parse("directory",i.url).indexOf("/mailbox")>-1&&(!uri_parse("file",i.url)||uri_parse("file",i.url).indexOf("index.cgi")>-1))return mail_load(i.url),!1;progress.start(),"number"==typeof v___theme_postponed_fetcher&&clearInterval(v___theme_postponed_fetcher);var a=$(e.relatedTarget),n=a.attr("href");n=n||i.url.replace(v___location_origin,""),clicked_in_nav_menu=a.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle")||"object"==typeof i.callback&&"reference"===i.callback[0],clicked_in_nav_menu&&check_bundle(n),"object"==typeof i.callback&&"beforeSend"===i.callback[0]&&(i.callback[3]?setTimeout(function(){window[i.callback[1].apply(this,i.callback[2])]},i.callback[3]):window[i.callback[1].apply(this,i.callback[2])]),v___theme_pjax_call+=1}),$(document).on("pjax:success",function(event,data,status,xhr,options){theme_message_dismiss("ajaxError"),"object"==typeof options.callback&&"success"===options.callback[0]&&(options.callback[3]?setTimeout(function(){"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])]},options.callback[3]):"string"==typeof options.callback[1]?eval(options.callback[1]):window[options.callback[1].apply(this,options.callback[2])])}),$(document).on("pjax:complete",function(e,t,i){vars.allow_ui_features=1,v___theme_reload&&theme_reload(),setTimeout(function(){$(".container-fluid-loading").length||progress.end()},10),get_server_data("loading",0,1),$("body").removeClass("loading-bg"),v___theme_connection_triggered_origin=0,"object"==typeof stats&&stats.general.error&&(stats.general.disable(),stats.general.enable())}),$(document).on("ready pjax:end",function(e,t){pjax_cache(),vars.pjax.event.end&&0!==v___available_session&&1!==v___theme_reload&&(void 0!=t&&t.responseText&&t.responseText.includes("data-predownload")||(plugins.navigation.deform(1),get_pjax_event_end(e,t),setTimeout(function(){var e=link_type_convert(location.hash,1).replace("#","");if(e&&e.length>0){var t=$('[name="'+e+'"]');t.length&&t[0].scrollIntoView({duration:200,smooth:!0,direction:"vertical",complete:function(){}})}},200),v___page_container.find(".panel > .panel-body:first").one("click mousedown keypress",function(){vars.page_user_inactive=0}),vars.pjax.post_page_fetch=!0,setTimeout(function(){vars.pjax.post_page_fetch=!1},100)))}),$(document).on("pjax:popstate",function(e){e.state;var t=vars.pjax.page_cache&&"csf"!==v___module&&"postfix"!==v___module&&v___module!==v___module_file_manager&&!core.curModuleFile("webmin","edit_themes.cgi")&&"settings-user.cgi"!==v___location_file;e.hasContents&&get_pjax_event_end_funcs(0,!t),vars.previous_request=String(),vars.source_request=String()})},snippets.get_goto=function(){v___theme_navigation_active=$(".switch-toggle input:checked").attr("id"),v___theme_navigation_active=v___theme_navigation_active?v___theme_navigation_active.replace("open_",""):get_server_data("product"),setTimeout(function(){var e=function(){$t_uri_virtualmin&&"undefined"==typeof t_uri_get_content&&get_default_virtualmin_content(!1),$t_uri_cloudmin&&"undefined"==typeof t_uri_get_content&&get_default_cloudmin_content(!1),$t_uri_virtualmin||$t_uri_cloudmin||"undefined"!=typeof t_uri_get_content||get_default_content(),t_uri_get_content=1};$.when(get_server_theme_temp_data("goto",0,e)).then(function(t,i,a){var n=unbuffered_header_processor_allow,s=!n(a.responseText),r=function(e){var t=URI(e).directory();return!(!t||"/"==t||t==v___location_prefix)&&t};if(v___initial_load&&n(a.responseText,1)){s=0;var o=r(a.responseText);if(o)return void get_pjax_content(o)}if(a.responseText&&a.responseText.match(/.*(save|change).*\.cgi$/g)){var l=r(a.responseText);if(l)return void get_pjax_content(l)}if(a.responseText&&!get_server_data("initial-wizard")&&s){if(Test.strContains(a.responseText,v___module_file_manager+"/config.cgi"))return void get_pjax_content(v___location_prefix+"/"+v___module_file_manager);if(Test.strContains(a.responseText,"//")&&URI(a.responseText).hostname()!==URI(location.href).hostname()||Test.strContains(a.responseText,"/servers/link.cgi/")||Test.strContains(a.responseText,"xerror")||"/"===a.responseText||"%2F"===a.responseText||a.responseText==="/?"+$__theme_navigation)return void get_pjax_content(v___location_prefix+"/sysinfo.cgi");if(Test.strContains(a.responseText,"virtual-server")){var _=URI.parseQuery(URI(a.responseText).query()).dom,c=$('select[name="dom"]').val(),d=_||c;plugins.navigation.switch.set("virtualmin"),(!c||_!=c)&&plugins.navigation.get.virtualmin(d||!1)}else if(Test.strContains(a.responseText,"server-manager")){var p=URI.parseQuery(URI(a.responseText).query()).id,h=p||$('select[name="sid"]').val();plugins.navigation.switch.set("cloudmin"),plugins.navigation.get.cloudmin(h||!1)}else $t_uri_webmin||2==v___user_level||3==v___user_level||(plugins.navigation.switch.set("webmin"),plugins.navigation.get.webmin("webmin")),3==v___user_level&&!$t_uri_webmail&&Test.strContains(a.responseText,"mailbox")&&core.moduleAvailable("mailbox")?(plugins.navigation.switch.set("webmail"),setTimeout(function(){plugins.navigation.get.webmin("webmail")},10)):3!=v___user_level||$t_uri_usermin||Test.strContains(a.responseText,"mailbox")||(plugins.navigation.switch.set("usermin"),plugins.navigation.get.webmin("webmin"));check_bundle(a.responseText),get_pjax_content(a.responseText,["success","v___theme_content_history = 1"])}else e()})},20),$.each(theme_config("get_options"),function(e,t){localStorage.setItem(v___server_hostname+"-"+t,window[t])}),setTimeout(function(){plugins.slider.update.favorites()},300)},snippets.tooltips=function(e){if(e){$(".__page").tooltip("destroy").tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',sanitize:!1,placement:"auto "+($(".gl-icon-container").length||$("[data-fbplacement]").length?"bottom":"top"),trigger:"hover",html:!0,delay:{show:600,hide:30}})}else $("aside").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"]',sanitize:!1,container:"body",html:!0,delay:{show:600,hide:30}})},snippets.progressive_button=function(e,t){var i=e.querySelector(".progressing");i&&(i.style.width=t+"%")},snippets.help_popup=function(){var e=$("body");e.on("click",".help_popup",function(t){t.stopPropagation(),t.preventDefault();var i=$(this),a=$(this).attr("href"),n=$(this).parent();n.append('<div class="_tmp_help_content hidden"></div>'),$.ajax({type:"POST",url:i.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+i.attr("href"):i.attr("href"),data:!1,dataType:"text",success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{n.find("._tmp_help_content").html(t.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"")),$help_title=n.find("._tmp_help_content .ui_subheading").first().text(),$help_body=n.find("._tmp_help_content title").remove(),$help_body=n.find("._tmp_help_content h3.ui_subheading").remove(),$help_body=n.find("._tmp_help_content h3").addClass("h3_help"),$help_body=n.find("._tmp_help_content hr").remove();var s=n.find("._tmp_help_content a");void 0!==s.attr("href")&&$.each(s,function(){var t=$(this).attr("href");t.startsWith("http")?$help_body=n.find("._tmp_help_content a").attr("target","_blank").css("text-decoration","none").css("font-style","italic"):e.undelegate('a[href="'+t+'"]',"click").one("click",'a[href="'+t+'"]',function(e){if($(e.target).is($('a[href="'+t+'"]'))){e.preventDefault();var n=Convert.pathnamePopLast(i.attr("href"))+"/"+t;$('a[href="'+a+'"].help_popup').attr("data-initial",a).attr("data-substituted",n),$('a[href="'+a+'"].help_popup').attr("href",n),i.trigger("click")}})}),$help_body=n.find("._tmp_help_content").html(),n.find("._tmp_help_content").remove();var r='<button type="button" class="close pull-right close-popover-trigger font-size-120p">&times;</button>',o=i.attr("href").indexOf("showpass.cgi")>-1,l=i.attr("href").indexOf("/locale")>-1;o&&(r=""),i.popover({html:!0,sanitize:!1,container:".container-fluid",template:'<div class="popover module-help'+(o?" showpass-popover":l?" popover-wider":"")+'" role="tooltip" style="z-index: '+(1061+10*$(".module-help").length)+'"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',title:function(){return r+$help_title},content:function(){return $help_body},placement:matchMedia("(max-width: 767px)").matches?"bottom":"right"}),i.popover("show"),i.on("shown.bs.popover",function(){$help_body.indexOf("<ad>")>-1&&$(".popover").animate({"max-width":"540px"},300),e.find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),setTimeout(function(){var e=$(".module-help"),t=e.length;$.each(e,function(e){t===e+1&&popover_visibility_position($(this))})},10)}),i.on("hidden.bs.popover",function(){e.undelegate(":not(tt)","click"),i.attr("data-initial")&&(i.attr("href",i.attr("data-initial")),i.removeAttr("data-initial").removeAttr("data-substituted"))})}}})})},snippets.page.render_links=function(e){theme_buttonify(["/syslog-ng/list_destinations.cgi"],".container-fluid .table tbody tr td:last-child",'a[href*="view_log.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",""),theme_buttonify(["/virtual-server/edit_newmysqls.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-cog"),theme_buttonify(["/cluster-cron/","/cluster-cron/index.cgi","/cluster-copy/","/cluster-copy/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-play"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-top-1 ---forced","fa-times-circle","","","","|"),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="//"]',"btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/virtualmin-git/","/virtualmin-git/index.cgi"],".container-fluid table td[data-td-e]",'a[href*="help.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced",""),theme_buttonify(["/webalizer/","/webalizer/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1",0),theme_buttonify(["/cpan/edit_mod.cgi"],".container-fluid .table tbody tr td","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-3 margined-right--1 btn-dnwo ---forced","","","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",'.panel-body > a:first[href*="simple"]',"btn btn-default _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/forward/index.cgi","/forward/"],".container-fluid",".panel-body > span[data-unckecked]","btn btn-info _btn-links-top btn-xs vertical-align-top margined-top-1 margined-left-3",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="webminlog/"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/acl/list_sessions.cgi"],".container-fluid table td[data-td-e]",'a[href*="delete_session.cgi"]',"btn btn-danger btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-unplugged"),theme_buttonify(["/sysinfo.cgi","/virtual-server/edit_newchangelog.cgi","/server-manager/edit_newchangelog.cgi"],".container-fluid #newfeatures-virtual-server-1-collapse dt, .container-fluid #newfeatures-server-manager-1-collapse dt, .container-fluid .table td dt","a","btn btn-link btn-link-bordered btn-xxs btn-dnwo f__lnk_t_btn-el margined-left-3 vertical-align-top margined-top-1","fa-eye","|",""),theme_buttonify(["/virtual-server/","/virtual-server/index.cgi","/virtual-server/edit_plan.cgi","/virtual-server/search.cgi"],".container-fluid form table tbody td",'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-hover-hide vertical-align-top margined-top-1",0,"(~)"," ~ ",""),theme_buttonify(["/server-manager/","/server-manager/index.cgi"],".container-fluid form table tbody td",'a[href*="mass_update_form.cgi?"]',"btn btn-link btn-link-bordered btn-xxs btn-transparent btn-link-bordered vertical-align-top margined-left-3 margined-top-1",0,"","","","-"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=3"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-ban"),theme_buttonify(["/quota/","/quota/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="activate.cgi"][href*="&active=0"]',"btn btn-success btn-xxs vertical-align-top margined-top-1","fa-check-circle-o"),theme_buttonify(["/virtualmin-google-analytics/","/virtualmin-google-analytics/index.cgi"],".container-fluid .table tbody td[data-td-e]",'a[href*="edit.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-top-1","fa-pencil-square"),theme_buttonify(["/apache/","/apache/index.cgi"],".container-fluid .table tbody tr td:last-child","a.ui_link","btn btn-transparent btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-external-link"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="view_sfile.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/ldap-server/edit_schema.cgi"],".container-fluid table tr.ui_checked_columns td",'a[href*="edit_sfile.cgi"]',"btn btn-warning btn-xxs vertical-align-top margined-left--2 margined-top-1 ---forced","fa-pencil-square-o"),theme_buttonify(["/virtualmin-awstats/generate.cgi"],".container-fluid .panel-body",'a[href*="view.cgi?config="]',"btn btn-grey btn-xxs vertical-align-top margined-top-2","fa-eye",".","");var t=$(".container-fluid .ui_links_row");if((core.curModule("firewall",1)||core.curModule("firewall6",1))&&t.first().find(".ui_link_empty").addClass("btn-warning").removeClass("btn-success"),($('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/mailboxes/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/view_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/phpini/"||v___location_path==v___location_prefix+"/phpini/index.cgi"||v___location_path==v___location_prefix+"/fsdump/"||v___location_path==v___location_prefix+"/fsdump/index.cgi"||v___location_path==v___location_prefix+"/fdisk/"||v___location_path==v___location_prefix+"/fdisk/index.cgi"||v___location_path==v___location_prefix+"/virtualmin-awstats/"||v___location_path==v___location_prefix+"/virtualmin-awstats/index.cgi"||v___location_path==v___location_prefix+"/syslog/"||v___location_path==v___location_prefix+"/syslog/index.cgi")&&($.each($('tr td:last-child > .ui_links_row, tr td:last-child:contains("|")'),function(){var e=$(this).parent(),t="ui_link btn-inverse btn-tiny>";v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&(e.find('a[href^="backup_form.cgi"]').html(e.find('a[href^="backup_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-floppy-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="restore_form.cgi"]').html(e.find('a[href^="restore_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-reply" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="backuplog.cgi"]').html(e.find('a[href^="backuplog.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-file-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/phpini/"&&v___location_path!=v___location_prefix+"/phpini/index.cgi"||(e.find('a[href^="list_ini.cgi"]').html(e.find('a[href^="list_ini.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-cog" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="edit_manual.cgi"]').html(e.find('a[href^="edit_manual.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass(t).prepend('<i class="fa fa-fw fa-pencil" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||(e.find('a[href^="edit_hdparm.cgi"]').html(e.find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href*="smart-status/index.cgi"]').html(e.find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t),e.find('a[href^="blink.cgi"]').html(e.find('a[href^="blink.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t)),v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"&&(e.find('a[href^="index.cgi"]').html(e.find('a[href^="index.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="edit_auto.cgi"]').html(e.find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-recycle" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="copy_form.cgi"]').html(e.find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-clone" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/mailboxes/view_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/view_mail.cgi"||(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href*="detach.cgi"][target="_blank"]').html(e.find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-external-link" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href*="&save=1"]:not([target="_blank"])').html(e.find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-download" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')),v___location_path!=v___location_prefix+"/virtualmin-awstats/"&&v___location_path!=v___location_prefix+"/virtualmin-awstats/index.cgi"||(e.find('a[href^="view.cgi"]').html(e.find('a[href^="view.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),e.find('a[href^="config.cgi"]').html(e.find('a[href^="config.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).prepend('<i class="fa fa-fw fa-cog" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'))}).promise().done(function(){$(this).is(".ui_links_row")?$(this).contents().unwrap():$('tr td:last-child:contains("|")').replaceText(/\s*/gi,"").replaceText(/\|/gi,"")}),$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file?($('a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass("ui_link"),$('a[href*="edit_mon.cgi?id"]').last().css("margin-left","-1px"),$('tr td:last-child:contains("|")').replaceText(/\|/gi,"")):$('tr td:last-child:contains("|")').contents().filter(function(){return 3==this.nodeType}).remove(),v___location_path!=v___location_prefix+"/fdisk/"&&v___location_path!=v___location_prefix+"/fdisk/index.cgi"||$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').html($("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link"),v___location_path!=v___location_prefix+"/fsdump/"&&v___location_path!=v___location_prefix+"/fsdump/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href^="backup.cgi"]').html($(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-success btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('<i class="fa fa-fw fa-floppy-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),$(this).find('a[href^="kill.cgi"]').html($(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-danger btn-xxs margined-top--2 f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link").prepend('<i class="fa fa-fw fa-trash-o" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"]').html($(this).find('a[href*="save_log.cgi"][href*="view=1"]').text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn btn-primary btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass("ui_link")}),v___location_path==v___location_prefix+"/software/list_pack.cgi")){$('td a.ui_link[href*="view.cgi"]').html('<i class="fa fa-fw fa-eye-fi fa-1_25x"></i>').addClass("ui_link_replaced btn btn-default btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").attr("style","margin-top: 2px !important; margin-bottom: 0 !important; margin-right: 15px").removeClass("ui_link").prepend('<i class="fa fa-fw fa-eye hidden" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>')}if(v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"&&v___location_file&&v___location_file.indexOf("index_")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/index.cgi"||v___location_path===v___location_prefix+"/proc/")&&($("a.ui_link + b").addClass("btn").css("margin-left","3px"),$("b + a.ui_link").addClass("btn").css("margin-left","3px"),$('.panel-body > b:first-child:contains("Display")').length>0&&$(".panel-body > b:first-child").remove(),$(".panel-body > b").addClass("btn btn-success")),$(".panel-body").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body > a.ui_link").addClass("btn").css("margin-left","3px")),!e){v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"fdisk/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"postfix/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"pam/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"syslog/"||$("p > a[href], table + a[href], div.panel-body > a.ui_link").each(function(e,t){$(this).text($(this).text().replace(/\.$/,""))});$(".container-fluid .panel-body a.select_all,.container-fluid .panel-body a.select_invert,.container-fluid .panel-body a.select_invert ~ .ui_link,.container-fluid .panel-body .ui_links_row > *:not(.ui_link_empty, .ui_link_replaced),.container-fluid .panel-body .ui_link:not(.ui_link_empty)").each(function(){if(!(core.curModuleFile("acl")&&this.href&&this.href.includes("edit_user.cgi?user"))&&!($(this).parent("td").length||$(this).parent("label").length||$(this).parent("tt").length||$(this).parents("b").length||$(this).parent("pre").length||v___location_path==v___location_prefix+"/webmin_search.cgi")&&(!core.curModuleFile("virtual-server","history.cgi")&&!core.curModuleFile("server-manager","one_history.cgi")&&!core.curModule("proc")&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"passwd/"&&$(this).text()&&v___location_path!=v___location_prefix+"/mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_path!=v___location_prefix+"/usermin/list_configs.cgi"&&!$(this).hasClass("help_popup")||core.curModule("procmail"))){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced"),$(this).text($(this).text().replace(/\.$/,""));var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});e&&$.each(e,function(){$(this).text()&&$(this).text().length<=3&&$(this).remove()}),$(this).hasClass("select_all")&&$(this).html('<i class="fa fa-fw fa-check-square-o"> </i> '+$(this).text()),$(this).hasClass("select_invert")&&$(this).html('<i class="fa fa-fw fa-share-square-o"> </i> '+$(this).text()),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&($(this).parent('form[action="mass.cgi"]').length||$(this).parent(".ui_links_row").parent('form[action="mass.cgi"]').length)&&(($(this).is(":nth-child(1)")||$(this).is(":nth-child(6)"))&&$(this).html('<i class="fa fa-fw fa-check-square-o"> </i> '+$(this).text()),($(this).is(":nth-child(2)")||$(this).is(":nth-child(7)"))&&$(this).html('<i class="fa fa-fw fa-plug-o fa-1_15x fa-rotate-45"> </i> '+$(this).text()),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html('<i class="fa fa-fw fa-webmin"> </i> '+$(this).text())),$(this).attr("href")&&(0===$(this).attr("href").indexOf("edit")&&0!==$(this).attr("href").indexOf("edit_allow")||0===$(this).attr("href").indexOf("master_form")||0===$(this).attr("href").indexOf("slave_form")||0===$(this).attr("href").indexOf("stub_form")||0===$(this).attr("href").indexOf("forward_form")||0===$(this).attr("href").indexOf("delegation_form")||0===$(this).attr("href").indexOf("mass_form")||0===$(this).attr("href").indexOf("newdb_form"))?$(this).html('<i class="fa fa-fw fa-plus-square-o"> </i> '+$(this).html()):$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_allow")?$(this).html('<i class="fa fa-fw fa-shield"> </i> '+$(this).text()):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html('<i class="fa fa-fw fa-user"> </i> '+$(this).text()),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html('<i class="fa fa-fw fa-clock"> </i> '+$(this).text())),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),core.curModule("custom")&&($(this).attr("href")&&0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text())),$(this).attr("href")||$(this).remove()}});$.each($(".btn-group.ui_links_row > .ui_link_empty"),function(){($(this).prev(".btn-tiny.ui_link_replaced").length||$(this).next(".btn-tiny.ui_link_replaced").length)&&$(this).addClass("btn-tiny ui_link_replaced")}),$.each($(".btn-tiny.ui_link_replaced"),function(){$(this).prev('[class="table table-striped table-condensed"]').length&&$(this).next(':not(".ui_link_replaced")').length&&$(this).removeClass("btn-tiny ui_link_replaced").addClass("ui_link_re-replaced")}),$("a.ui_link_replaced").each(function(){$(this).prev().is("b")&&$(this).prev("b").addClass("btn btn-success btn-tiny"),$(this).next().is("b")&&$(this).next("b").addClass("btn btn-success btn-tiny"),core.curModule("htaccess-htpasswd")&&$("table tr.ui_checked_columns .ui_links_row > a").addClass("btn-link btn-link-bordered btn-xxs btn-hover-hide").removeClass("btn-tiny btn-inverse")}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fetchmail/"&&$("a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","10px").css("margin-top","4px"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove();var e=function(e){return'<i class="fa fa-fw fa-'+e+'"> </i> '};$(this).attr("href").indexOf("edit_poll")>-1&&$(this).prepend(e("plus-square-o")),$(this).attr("href").indexOf("edit_global")>-1&&$(this).prepend(e("pencil-square-o")),$(this).attr("href").indexOf("check")>-1&&$(this).prepend(e("check-square-o"))}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$("a.ui_link").each(function(){function e(e){return'<i class="fa fa-fw fa-'+e+'"> </i> '}$(this).attr("href").indexOf("edit_auto")>-1&&$(this).find("i").replaceWith(e("reply")),$(this).attr("href").indexOf("edit_forward")>-1&&$(this).find("i").replaceWith(e("reply-all"))})}v___location_path!=v___location_prefix+"/virtual-server/domain_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/list_images.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/bwgraph.cgi"||($(".panel-body > .ui_links_row > ").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".panel-body > .ui_links_row > .ui_link_empty"),function(){$(this).text().replace(/[\t\n]+/g," ").length<4?$(this).remove():($(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")),$(this).prev().is("img")&&$(this).removeClass().addClass("margined-left-3"))}),$(".panel-body > b").css("margin-right","7px"),v___location_path==v___location_prefix+"/virtual-server/domain_form.cgi"&&$.each($(".panel-body > .ui_links_row > .btn"),function(e,t){0==e&&$(this).html('<i class="fa fa-fw fa-plus-square"> </i> '+$(this).text()),1==e&&$(this).html('<i class="fa fa-fw fa-level-down"> </i> '+$(this).text()),2==e&&$(this).html('<i class="fa fa-fw fa-reply fa-flip-horizontal"> </i> '+$(this).text()),3==e&&$(this).html('<i class="fa fa-fw fa-reply-all fa-flip-horizontal"> </i> '+$(this).text())})),v___location_path!=v___location_prefix+"/server-manager/edit_serv.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_owner.cgi"||($('.table-striped .col_value a[href^="edit_serv.cgi"], .table-striped .col_value a[href^="edit_owner.cgi"]').each(function(){$(this).addClass("btn btn-inverse btn-xxs ui_link_replaced margined-right--2").removeClass("btn-tiny ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).hasClass("btn-success")&&$(this).removeClass("btn-inverse")}),$.each($(".table-striped .col_value .ui_links_row > .ui_link_empty"),function(){$(this).addClass("btn-xxs ui_link_replaced").removeClass("btn-tiny ui_link"),$(this).text().length<4?$(this).remove():$(this).text($(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,""))})),$("a.ui_link, .btn").each(function(){if("."==$(this).text().substr(-1)&&!$(this).parent().is("label")){var e="."==$(this).text().substr(-1)&&".."==$(this).text().substr(-2)?2:1;$(this).text($(this).text().substr(0,$(this).text().length-e))}})},snippets.page.render=function($is_history_action){var body;if(page_control_header(),plugins.dashboard.restore(),plugins.navigation.state.update(),$is_history_action&&$(".popover.in").remove(),$is_history_action&&"undefined"!=typeof __cm_editor_static&&(__cm_editor_static.toTextArea(),$('button[data-form="submitter"]').unwrap(),$('.CodeMirror, button[data-form="submitter"] + button, .-helper.__helper, .-helper.soft_wt').remove()),body=$("body"),body.off("mousedown.cm1 keydown.cm1"),body.undelegate('button[type="submit"]:not(.disabled)',"click.cm"),body.undelegate('button[data-form="submitter"]:not(.disabled)',"click.cm"),table_proc_size_columns(),$("body").attr("style",get_server_data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),page.handle.content.offset(!0),editor_init_check()){var select_for_edited_file=$('select[name="file"]:first, select[name="manual"]:first');select_for_edited_file.addClass("onchange_form_submit_triggger"),select_for_edited_file.next("button.ui_form_end_submit").addClass("hidden")}if(snippets.datetime.locale(),snippets.datetime.locale({type:"insert",history:$is_history_action}),snippets.datetime.locale({type:"init"}),3==get_access_level()&&core.curModule("quota"))var $_table_quota=$(".container-fluid .panel-body .table"),$_table_quota_empty_label=$_table_quota.find("thead:first-child").add($_table_quota.find("thead:first-child").next("tbody")).remove();$.support.spa&&core.curModule("tunnel")&&$("form").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),$.ajax({type:$(this).attr("method")?"GET":"POST",url:v___location_prefix+"/"+v___module+"/"+$(this).attr("action"),data:get_form_data($(this)),dataType:"text",complete:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(theme_open_new_tab(this.url),t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove())}})}),check_location_resource("/config.cgi?tunnel")&&$('table table[width="100%"] tr:first-child').addClass("hidden"),$.each($('tr td:last-child a:contains("..")'),function(){if(v___location_path==v___location_prefix+"/virtual-server/list_databases.cgi"){if($(this).attr("href")&&$(this).attr("href").includes("showpass.cgi"))return!0;$(this).html($(this).text().replace(/\.\.$/,"&nbsp;")).addClass("ui_link_replaced btn f__lnk_t_btn-el btn-transparent btn-link-bordered btn-xxs margined-top--3").removeClass("ui_link")}}),$.support.spa&&!$is_history_action&&$("#headln2c").prepend("<button  "+theme_inject_tooltip(theme_language("favorites_add"),".container-fluid")+' aria-label="'+theme_language("favorites_add")+'" class="fa fa-fw fa-inverse fa-2x fa-star-o text-lighter favorites"></button>&nbsp;'),plugins.favorites.detect(),$(".switch-toggle").find('label[for="open_thirdlane"]').length&&$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){$("#open_webmin").prop("checked",!0)}),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$("table.table tbody tr").addClass("ui_checked_columns"),page_table_rows_control(),!$is_history_action&&page_radios_evolve();var $onLoad_checkBox=$('.ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked:not(disabled)').parents("tr.ui_checked_columns").addClass("hl-aw");if($("body").hasClass("servers")&&$('form[action="delete_servs.cgi"] a.icon_link, form[action="delete_servs.cgi"] a.ui_link, form[action="delete_servs.cgi"] .col-xs-1').on("click",function(e){if($(e.target).is(".gl-icon-select"))$.support.spa?$(this).trigger("contextmenu"):$(this).parents(".gl-icon-container").trigger("contextmenu");else{var t=v___location_href+$(this).attr("href"),i=$(this).attr("href");$(this);i&&i.indexOf("edit_serv.cgi")>-1||i&&i.indexOf("logout.cgi")>-1?void 0!==e.originalEvent&&$.pjax.click(e,{timeout:0,push:get_pjax_push(),type:get_pjax_type(),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}):i&&-1===i.indexOf("://")?open(link_type_convert(t,1)):open(i),e.preventDefault(),e.stopPropagation()}}),core.curModule("servers")&&$.each($('form[action*="delete_servs.cgi"] a[href*="link.cgi"]'),function(){var e=$(this).attr("href");e&&e.match(/(link.cgi\/\d+)/)&&$(this).attr("target","_blank")}),v___location_path!=v___location_prefix+"/apache/edit_global.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_virt.cgi"&&v___location_path!=v___location_prefix+"/apache/edit_dir.cgi"||$.each($(".ui_opt_textbox.form-control"),function(){$(this).parent("span").next("button.btn.btn-default.chooser_button").length>0&&$(this).css("margin-right","4px")}),!$is_history_action){$(".opener_container").length&&$.each($(".opener_container"),function(){$(this).find(".opener_shown").is(":visible")&&$(this).parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed")}),$(".opener_shown, .opener_hidden").length>0&&$(".opener_trigger").length>0&&($(".panel-body  .ui_form .table  tbody  tr").removeClass("thead"),$(".opener_trigger").parents("table.table").addClass("opener_table_style"),$(".opener_trigger").parents("tr").addClass("_c__op_r").attr("style","border: 0 !important"),$(".opener_trigger").parent("td").addClass("_c__op_d"),$(".opener_trigger").parent("td").find("a").addClass("link_hover_effect link_hover_effect_style_extra"));var target_restore_selector='a[id*="opener"][id$="_restore"]';$(target_restore_selector).parent().is("p")&&($(target_restore_selector).next("a").parent("p").replaceTagName("div"),$(target_restore_selector).next("a").removeClass().addClass("opener_extra_container_a_style link_hover_effect").parent("div").addClass("opener_extra_container opener_extra_container_style margined-top-10"),$(target_restore_selector).remove()),$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').length>0&&($('a[href^="javascript:hidden_opener"]:not(".opener_trigger")').each(function(e,t){var i=!!(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1);if($(this).find("img").length>0&&$(this).remove(),$(this).css("border-bottom","0"),$(this).parents("table.table").addClass("opener_table_style_small"),$(this).parent("td").addClass("opener_table_cell_style_small"),i||($(this).parent("td").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td").parent("tr").parent("tbody").parent("table").parent("div.opener_hidden").addClass("opener_shown_inner").parent(".opener_container").addClass("has_sub_inner")),$(this).parent("td").find("a").addClass("link_hover_effect link_hover_effect_style"),$(this).parent().is(".panel-body")||$(this).parent().is(".ui_form")||$(this).parent().is("p")){var a=$(this),n=a.parent().is(".panel-body")?".panel-body":a.parent().is("p")?"p":".ui_form",s=a.parent(n).find('a[href^="javascript:hidden_opener"]'),r='<div class="opener_extra_container"></div>';core.curModuleFile("bind8","edit_zonekey.cgi")?(s.eq(1).wrapAll(r),s.eq(e+1).wrapAll(r)):s.eq(e+1).wrapAll(r),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var o=a.parent(n).find(".opener_extra_container");$(o).next("br").remove(),$(o).addClass("opener_extra_container_style"),$(o).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(o).next(".opener_hidden").attr("style","padding:8px")}}),$.each($(".opener_hidden"),function(){$(this).css("display","none")})),$("a.opener_trigger").each(function(){$(this).parent("td").css("text-align","left")}),$('form[action*="seen_newfeatures.cgi"]').each(function(){$(this).parents("table.table-striped").next(".ui_form_end_buttons").css("margin-top","14px")}),$("#tall_0").before("<br>"),$(".opener_container").each(function(e,t){$(this).find("div").hasClass("opener_hidden")?$(this).hide():$(this).show()}),$.each($("div.barchart"),function(){var e=$(this).find('img[src*="red.gif"]'),t=$(this).parent("td").contents().filter(function(){return 3==this.nodeType}).text();e&&e.attr("width")&&$(this).parent("td").html('<div class="graph-container graph-container-fw"><div class="graph"><div class="description"> '+t+' </div><strong class="bar" style="width:'+e.attr("width")+'">'+e.attr("width")+"</strong></div></div>")}),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody > tr").css("border","none").parents("table").css("margin-top","20px"),$('.panel-body > form > table > tbody > tr > td:has(input[type="submit"])').parents("table.table-hardcoded > tbody").css("border","none"),$('.ui_grid_table > tbody > tr.ui_grid_row > td:has(button[type="submit"])').parents("table.ui_grid_table").css("border","none"),$("form.ui_form > table label.radio, form.ui_form > table label.checkbox").each(function(){var e=$(this),t=e.find("i.fa"),i=e.find("i.fa").text().trim(),a=e.text().trim();0===i.length&&0===a.length&&t.parent("label").remove()})}if(v___location_path&&(v___location_path.indexOf("/webmin/edit_themes.cgi")>-1||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi")){if(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"){plugins.navigation.reset();var $target_parents_row=$('[name="settings_navigation_color"]').parent("td").parent("tr"),rows='<tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_grayscale_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_grayscale_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_grayscale_level_navigation" value="'+settings_grayscale_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_sepia_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_sepia_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_sepia_level_navigation" value="'+settings_sepia_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_saturate_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_saturate_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="3" step="0.01" name="settings_saturate_level_navigation" value="'+settings_saturate_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_hue_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_hue_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="-360" max="360" step="1" name="settings_hue_level_navigation" value="'+settings_hue_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_invert_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_invert_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0" max="1" step="0.01" name="settings_invert_level_navigation" value="'+settings_invert_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                          <td class="col_label atscontent"><b>'+theme_language("settings_brightness_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_brightness_level_navigation_description")+'</div></td>                          <td class="col_value atscontent"><span>                          <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0.1" max="3" step="0.01" name="settings_brightness_level_navigation" value="'+settings_brightness_level_navigation+'">                      </span></td>                      </tr>                    <tr class="atshover settings_navigation_color_rows hidden-skip hidden">                      <td class="col_label atscontent"><b>'+theme_language("settings_contrast_level_navigation")+'</b><div class="smaller text-normal no-padding">'+theme_language("settings_contrast_level_navigation_description")+'</div></td>                      <td class="col_value atscontent"><span>                      <input style="display: inline; width: 80%; height: 28px; vertical-align: middle;" class="form-control ui_textbox" type="range" min="0.1" max="3" step="0.01" name="settings_contrast_level_navigation" value="'+settings_contrast_level_navigation+'">                      </span></td>                    </tr>';$target_parents_row.after(rows)}var ev_change_atsettings='#atsettings form[action*="settings.cgi"] select, form[action*="save_config.cgi"]#settings_ select, #atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';$("body").undelegate(ev_change_atsettings,"change"),$("body").on("change",ev_change_atsettings,function(e){var t=$(this).val();if("true"==t||"false"==t?"true"==t?c=!0:"false"==t&&(c=!1):c=t,window[$(this).attr("name")]=Test.numeric(c)?c&&c.length>16?c:parseFloat(c):c,void 0!==e.originalEvent)if(v___initial_load&&"settings-user.cgi"!==v___location_file)v___initial_load=0;else{var i='input[name="settings_side_slider_enabled"]';!$(e.target).is(i)&&$(e.target).is(i)||theme_config_controls(1)}});var ev_keydown_atsettings='#atsettings form[action*="settings.cgi"] input, form[action*="save_config.cgi"]#settings_ input';function a(){$("body").undelegate("#atrestore:not(.disabled)","click"),$("#atrestore:not(.disabled)").off("click.confirm"),$("#atrestore:not(.disabled)").on("click",function(){var e=get_onbeforeunload_status();set_onbeforeunload_status(0),e&&setTimeout(function(){set_onbeforeunload_status(e)},2500)}),$("#atrestore:not(.disabled)").confirmation({classNameRemove:"btn-default"},function(){$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]);var t=$(".ui_form").serialize();$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&restore=1",data:t,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)})}$("body").undelegate(ev_keydown_atsettings,"keydown"),$("body").on("keydown",ev_keydown_atsettings,function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-user.cgi"&&$('button[type="button"][name="save_user"]').on("click",function(e){e.preventDefault(),e.stopPropagation(),theme_config_update(),theme_config("save"),plugins.navigation.load.start(),spinnerfy_buttons($(this),[-.5,-25,"small"]),setTimeout(function(){plugins.navigation.reload()},1400)}),core.moduleAvailable("webmin")&&!$is_history_action&&($(".container-fluid .nav.nav-tabs").prepend('<li><a data-toggle="tab" href="#atsettings"><span class="cspinner" style="position: relative"><span class="cspinner-icon" style="width:12px; height:12px; "></span></span></a></li>'),$(".container-fluid .tab-pane").first().before('<div id="atsettings" class="tab-pane text-center"><span class="cspinner" style="margin-top:18px; position: relative"><span class="cspinner-icon"></span></span></div>'),$('.container-fluid .nav-tabs a[href="#atsettings"]').tab("show")),$is_history_action||$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-settings=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#atsettings").html(e);var t=get_server_data("theme-version"),i=$('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr.atshover"),n=i.find("td").first().find(".smaller");i.next("tr").find("td").first().find("b");n.append(' <span class="text-nowrap smaller text-normal">(<span class="smaller text-normal" data-text-installed>'+theme_language("global_installed_version").toLowerCase()+"</span> <em data-theme-stable-version data-theme-version-container>"+t+'</em><span class="hidden" data-theme-versions></span>)</span>'+theme_spinner_small("in-btn-md tmp_spinner_theme_version"," ","width:10px; height:10px; margin-left: 5px;")),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_latest_version=1",data:!1,dataType:"json",success:function(e){var i=String(),a=e[0],n=a!=e[1]&&e[1],s=$("[data-text-installed]"),r=$(".tmp_spinner_theme_version"),o=$("em[data-theme-stable-version]"),l=$("span[data-theme-versions]");a&&a!=t&&(i+=", "+theme_language("global_latest_stable").toLowerCase()+' <em data-theme-version-container class="text-success">'+a+"</em>"),n&&n!=t&&(i+=", "+theme_language("global_latest_beta").toLowerCase()+' <em data-theme-version-container class="text-info">'+n+"</em>"),t&&t.length<=5&&a&&a.length<=5&&a!=t&&o.addClass("text-danger"),i&&!i.length&&(s.text(theme_language("global_installed_and_latest_version").toLowerCase()),o.addClass("text-success")),l.replaceWith(i),r.remove()},error:function(){}}),page.render.module_config([0,1,0,0,0,0,0,0,1]);var s=$("div#atsettings").find(".ui_form");$__theme_text_right_save=s.data("text-save"),$__theme_text_right_saved=s.data("text-settings_right_saved"),$__theme_text_right_saving=s.data("text-settings_right_saving"),$__theme_text_right_restore_defaults=s.data("text-settings_right_restore_defaults"),$__theme_text_right_restored=s.data("text-settings_right_restored"),$__theme_text_right_restoring=s.data("text-settings_right_restoring"),$__theme_text_right_error=s.data("text-error"),$('.container-fluid .nav-tabs a[href="#atsettings"]').text(s.data("text-current_theme")),$("div#atsettings").removeClass("text-center"),a(),theme_config_update();var r=$("body").find(".fa.fa-sub-title").parent("span");$(r).next("br").remove(),$(r).next("div.smaller").attr("style","margin-top: -15px !important"),r.remove(),u(),$('input[name="settings_right_hide_table_icons"]').on("change",function(){u($(this))}),f(),$('input[name="settings_hotkeys_active"]').on("change",function(){f($(this))}),g(),$('input[name="settings_side_slider_enabled"]').on("change",function(){g($(this))}),m(),$('input[name="settings_sysinfo_real_time_status"]').on("change",function(){m($(this))}),v(),$('input[name="settings_sysinfo_real_time_stored"]').on("change",function(){v($(this))});var o=$('input[name="settings_sysinfo_real_time_stored_length"]');o.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value),i=t+" "+theme_language("theme_xhred_global_hour").toLowerCase();t<1?i=10*Math.round(Math.round(60*t)/10)+" "+theme_language("theme_xhred_global_minutes").toLowerCase():1!==t&&t>1&&(i=t+" "+theme_language("theme_xhred_global_hours").toLowerCase()),i=" ("+i+")",e.is("span")?e.text(i):$(this).after('&nbsp;&nbsp;<span class="text-muted">'+i+"</span>")}),o.trigger("input");var l=$('input[name="settings_table_init_datatables"]');l.on("input",function(){var e=$(this).next("span"),t=parseFloat(this.value)+" "+theme_language("theme_xhred_global_rows").toLowerCase();t=" ("+t+")",e.is("span")?e.text(t):$(this).after('&nbsp;&nbsp;<span class="text-muted">'+t+"</span>")}),l.trigger("input"),b(),$('input[name="settings_sysinfo_easypie_charts"]').on("change",function(){b($(this))}),x(),$('input[name="settings_sysinfo_theme_updates"]').on("change",function(){x($(this))}),$('select[name="settings_navigation_color"]').on("keyup change",function(e){var t=$(this).val(),i=$("link[data-palette]"),a="blue"!=t;a&&$("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+t.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),setTimeout(function(){get_server_data("data-theme",t),i.remove(),get_server_data("data-default-theme",t),$("body .user-link.palette-toggle").find(".fa-sun").trigger("click"),theme_config_update()},a?800:0)}),$('select[name="settings_background_color"]').on("click keyup change",function(){var e=$(this).val();get_server_data("data-bgs",e),get_server_data("data-bgs",e),$("link[data-palette]").remove(),"gainsboro"!=e&&($("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+e.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),$('select[name="settings_navigation_color"]').val("gunmetal").trigger("change")),theme_config_update()}),$('input[name="settings_enable_container_offset"]').change(function(){var e=$(this).val(),t=$(".container-fluid");"false"==e?t.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15"):t.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15")}),$('input[name="settings_contrast_mode"]').change(function(){var e=$(this).val();$("link[data-high-contrast]").remove(),"true"==e&&$("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/high-contrast."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-high-contrast>'),get_server_data("data-high-contrast","true"==e?"1":"0")}),$('input[name="settings_right_page_hide_persistent_vscroll"]').change(function(){var e=$(this).val(),t=$("#content.__page");"true"==e?t.removeClass("fvscroll"):t.addClass("fvscroll")}),$('select[name="settings_side_slider_palette"]').change(function(){$("body .right-side-tabs, body .right-side-tabs-toggler").attr("data-bgs",$(this).val()),"nav"===$(this).val()?setTimeout(function(){$('input[name="settings_saturate_level_navigation"]').click()}):$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:""})}),$('input[name="settings_side_slider_enabled"]').change(function(){"true"==$(this).val()?($("body .right-side-tabs-toggler").removeClass("hidden"),$("body .right-side-tabs").removeClass("hidden"),$('input[name="settings_side_slider_sysinfo_enabled"][value="true"], input[name="settings_side_slider_notifications_enabled"][value="true"], input[name="settings_side_slider_favorites_enabled"][value="true"]').trigger("click")):($("body .right-side-tabs-toggler").addClass("hidden"),$("body .right-side-tabs").addClass("hidden")),theme_config_update(),page_resized()}),$('input[name="settings_side_slider_fixed"]').change(function(){vars.slider_pinned=-1;var e=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?(plugins.slider.state(1),e.removeClass("fa-rotate-45")):(plugins.slider.state(0),e.addClass("fa-rotate-45")),theme_config_update()}),$('input[name="settings_side_slider_fixed_toggle"]').change(function(e){var t=$(".right-side-tabs-dismiss .fa2-collapse-right");"true"==$(this).val()?t.removeClass("hidden"):(("true"==$('input[name="settings_side_slider_fixed"]:checked').val()&&t.hasClass("fa-rotate-45")||"false"==$('input[name="settings_side_slider_fixed"]:checked').val()&&!t.hasClass("fa-rotate-45"))&&t.trigger("click"),t.addClass("hidden")),vars.slider_pinned=-1,theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').change(function(e){var t="right-side-tabs-"+$(this).attr("name").split("_")[3],i=$(this).attr("name"),a=$("body").find("#"+t).hasClass("active"),n=$('input[name="settings_side_slider_sysinfo_enabled"][value="true"]:checked, input[name="settings_side_slider_notifications_enabled"][value="true"]:checked, input[name="settings_side_slider_favorites_enabled"][value="true"]:checked').length;"true"==$(this).val()?($("body").find('a[href="#'+t+'"], #'+t).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").removeClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").removeClass("invisible hidden hidden-forged"),setTimeout(function(){"function"==typeof plugins.slider.badge&&plugins.slider.badge()},300))):($("body").find('a[href="#'+t+'"], #'+t).addClass("hidden"),a&&n?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===n&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===i&&($(".right-side-tab-notification-asterix").addClass("invisible hidden hidden-forged"),$(".right-side-tabs-toggler .badge.badge-danger").addClass("invisible hidden hidden-forged"),plugins.favicon.set(0))),theme_config_update()}),$('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').each(function(){$('input[name="'+$(this).attr("name")+'"][value="'+window[$(this).attr("name")]+'"]').trigger("change")}),$('select[name="settings_navigation_color"]').after('<i class="fa fa-fw fa-tune fa-1_25x text-semi-dark text-dark-hoverd text-dark-hoverd-red settings_navigation_color_toggle cursor-pointer" data-name="settings_navigation_color" style="margin-left: 10px; vertical-align: middle; background-color: transparent !important"></i>                                                                         <i class="fa fa-fw fa-refresh text-semi-dark text-dark-hoverd text-dark-hoverd-red settings_navigation_color_reset cursor-pointer hidden" data-name="settings_navigation_color" style="margin-left: 4px; vertical-align: middle; background-color: transparent !important"></i>');var _=$(this).attr("data-name")+"_controller";window[_]="hidden",$(".settings_navigation_color_toggle, .settings_background_color_toggle").on("click",function(){void 0===window[_]||"hidden"==window[_]?($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").removeClass("hidden"),window[_]="shown"):($("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").addClass("hidden"),window[_]="hidden"),$(this).toggleClass("forced")}),$(".settings_navigation_color_reset").on("click",function(){if("settings_navigation_color"==$(this).attr("data-name")){var e="grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1)",t="filter: "+e+";";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+t),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+t),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:e}),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"]').val(0),$('input[name="settings_saturate_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1),$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}});var c=$('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturate_level_navigation"], input[name="settings_hue_level_navigation"], input[name="settings_invert_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]');c.on("click keyup change",function(e){var t="grayscale("+$('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+$('input[name="settings_sepia_level_navigation"]').val()+") saturate("+$('input[name="settings_saturate_level_navigation"]').val()+") hue-rotate("+$('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+$('input[name="settings_invert_level_navigation"]').val()+") brightness("+$('input[name="settings_brightness_level_navigation"]').val()+") contrast("+$('input[name="settings_contrast_level_navigation"]').val()+")";style="filter: "+t+";",$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+style),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+style),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:t}),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update()}),c.each(function(e,t){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr.atshover").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr.atshover").prev("tr").addClass("hidden-dependent-skip")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var d=$('input[name="settings_leftmenu_width"]');d.on("click keyup change",function(e){page_adjust($(this).val(),$(this).val()),$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme_config_update(),settings_leftmenu_width_initial=$(this).val()}),$('input[name="settings_navigation_always_collapse"]').change(function(e){y($(this)),"true"==$(this).val()?($("html").attr("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),plugins.navigation.collapse()):"false"==$(this).val()&&($("html").attr("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")),setTimeout(function(){page_resized()},10)}),y(),d.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),settings_leftmenu_width_initial=$(this).val()}),"restored"==v___location_query&&(c.trigger("click"),d.trigger("click"),$('select[name="settings_navigation_color"], select[name="settings_background_color"]').trigger("change")),$("aside ul.user-html li.user-html-string").html($('input[name="settings_leftmenu_user_html"]').val()),$('input[name="settings_leftmenu_user_html"]').keyup(function(){$("aside ul.user-html li.user-html-string").html($(this).val())}),plugins.navigation.switch.dashboard.get()&&$('input[name="settings_sysinfo_link_mini"]').parent().parent().parent().parent("tr").remove(),$('input[name^="settings_leftmenu_netdata_link"], input[name^="settings_leftmenu_user_html_only_for_administrator"], input[name="settings_sysinfo_real_time_status_disk"], input[name="settings_sysinfo_real_time_stored_length"], input[name="settings_sysinfo_easypie_charts_size"], input[name="settings_sysinfo_easypie_charts_width"], input[name="settings_sysinfo_easypie_charts_scale"], input[name="settings_show_theme_configuration_for_admins_only"]').parents("td.col_value.atscontent").parent("tr.atshover").addClass("settings_option_padded"),$('input[data-role="tagsinput"]').tagsinput(),$("body").css("overflow","auto"),$.getScript(v___location_prefix+"/unauthenticated/js/detector."+v___source_type+".js?"+v___theme_version_plain,function(){var e=new Detector;$.each($('select[name="settings_font_family"] option'),function(){var t=$(this).text();e.detect(t)||"system-default"==$(this).val()||$(this).attr("disabled","disabled").text(t+" ("+theme_language("global_not_available")+")")}),$('select[name="settings_font_family"]').on("keyup change",function(e){var t=$(this).val(),i=($.merge($("head"),$("head")),$("head").find('link[href*="font-"]').add($("head").find('link[href*="font-"]')).add($("head").find('link[href*="fonts-roboto"]')).add($("head").find('link[href*="fonts-roboto"]'))),a=(a=$.merge($("head").find('link[href*="/authentic."]'),$("head").find('link[href*="/authentic."]'))).length?a:$.merge($("head").find('link[href*="/bundle."]'),$("head").find('link[href*="/bundle."]'));i.remove(),"0"==t||"1"==t?"0"==t&&a.after('<link href="'+v___location_prefix+"/unauthenticated/css/fonts-roboto."+v___source_type+".css?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">'):a.after('<link href="'+v___location_prefix+"/unauthenticated/css/font-"+t+"."+v___source_type+".css?"+v___theme_version_plain+'" rel="stylesheet" type="text/css">')})}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}),$('input[name="settings_leftmenu_netdata"]').on("change",function(){var e=$('input[name="settings_leftmenu_netdata_link"]');"true"==$(this).val()?e.removeAttr("disabled"):e.attr("disabled","disabled")}),$('input[name="settings_leftmenu_netdata"]:checked').trigger("change"),$(".right-side-tabs-toggler").length||($('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),$('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized(),$('input[name="settings_show_webmin_tab"]').parents("td").parent("tr").addClass("hidden"),$('[data-toggle="popover"]').popover({sanitize:!1});var p=$('textarea[name="settings_leftmenu_custom_links"]'),h=p.val();p.length&&p.val(Convert.htmlDecode(h).replace(/&#47;/g,"/"));$('form[action*="settings.cgi"] textarea').on("input",function(e){void 0!==e.originalEvent&&theme_config_controls(1)}),theme_config_controls(0),set_onbeforeunload_status(0,0)}function u(e){void 0===e&&(e=$('input[name="settings_right_hide_table_icons"]:checked'));var t=["settings_right_small_table_icons","settings_right_animate_table_icons","settings_right_grayscaled_table_icons"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0),$('input[name="'+t+'"]').parent(".aradio").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1),$('input[name="'+t+'"]').parent(".aradio").removeClass("disabled")})}function f(e){void 0===e&&(e=$('input[name="settings_hotkeys_active"]:checked'));var t=["settings_hotkey_custom_1","settings_hotkey_custom_2","settings_hotkey_custom_3","settings_hotkey_custom_4","settings_hotkey_custom_5","settings_hotkey_custom_6","settings_hotkey_custom_7","settings_hotkey_custom_8","settings_hotkey_custom_9","settings_hotkey_toggle_modifier","settings_hotkey_toggle_key_webmin","settings_hotkey_toggle_key_virtualmin","settings_hotkey_toggle_key_cloudmin","settings_hotkey_toggle_key_usermin","settings_hotkey_toggle_key_webmail","settings_hotkey_shell","settings_hotkey_focus_search","settings_hotkey_navigation","settings_hotkey_slider","settings_hotkey_toggle_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"];"false"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0)}):$.each(t,function(e,t){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1)})}function g(e){void 0===e&&(e=$('input[name="settings_side_slider_enabled"]:checked'));var t=["settings_side_slider_palette","settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"];"false"==e.val()?$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)}):$.each(t,function(e,t){("settings_side_slider_fixed"!=t||"settings_side_slider_fixed"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&("settings_side_slider_fixed_toggle"!=t||"settings_side_slider_fixed_toggle"==t&&"true"!=$('input[name="settings_navigation_always_collapse"]:checked').val())&&$('input[name="'+t+'"], select[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}function m(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_status"]:checked'));var t=["settings_sysinfo_real_time_timeout","settings_sysinfo_real_time_status_disk","settings_sysinfo_real_time_stored","settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function v(e){void 0===e&&(e=$('input[name="settings_sysinfo_real_time_stored"]:checked'));var t=["settings_sysinfo_real_time_stored_length"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function b(e){void 0===e&&(e=$('input[name="settings_sysinfo_easypie_charts"]:checked'));var t=["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"];"true"==e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function x(e){void 0===e&&(e=$('input[name="settings_sysinfo_theme_updates"]:checked'));var t=["settings_cache_interval"];"true"==e.val()?$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!1).removeClass("disabled")}):$.each(t,function(e,t){$('[name="'+t+'"]').prop("disabled",!0).addClass("disabled")})}function y(e){void 0===e&&(e=$('input[name="settings_navigation_always_collapse"]:checked'));var t=["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_leftmenu_width"];"true"==e.val()?(vars.slider_pinned=-1,$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),setTimeout(function(){$('input[name="'+t+'"]').prop("disabled",!0).parent(".aradio").addClass("disabled")},10)})):$.each(t,function(e,t){"settings_side_slider_fixed"!=t&&"settings_side_slider_fixed_toggle"!=t||"false"==$('input[name="settings_side_slider_enabled"]:checked').val()||$('input[name="'+t+'"]').prop("disabled",!1).parent(".aradio").removeClass("disabled")})}}});var ev_click_atsettings="#atsave:not(.btn-inverse):not(.disabled)";$("body").undelegate(ev_click_atsettings,"click"),$("body").on("click",ev_click_atsettings,function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t,[1.5,-33,"small"]),set_onbeforeunload_status(0,0),theme_config_update(),theme_config("save"),core.updateModuleData("/webmin/edit_startpage.cgi","/webmin/change_startpage.cgi",{gotomodule:$.trim($('select[name="goto_webmin_default_module"]').val())}),setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:core.get_global_vars(["settings_"],1),dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(plugins.navigation.reload(),theme_config_controls(0),despinnerfy_buttons(0,t),settings_sysinfo_real_time_status?"object"==typeof stats?(stats.general.timeout=settings_sysinfo_real_time_timeout,stats.general.enable()):load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]):"object"==typeof stats&&stats.general.disable())},error:function(){t.addClass("btn-danger").removeClass("btn-success btn-inverse opacity-0_5")}})},1e3)})}var theme_control_pages=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi";if($is_history_action||!theme_control_pages&&!core.curModuleFile("webmin","edit_themes.cgi")||plugins.navigation.reset(),!$is_history_action&&theme_control_pages){check_location_resource("/settings-logos.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside + .__logo").remove():matchMedia("(max-width: 1080px)").matches||($("aside + .__logo").length?($(".__logo img").attr("src",$("[data-image-lga]").attr("data-image")),$("aside + .__logo").attr("style","transform: translate(0px, 0px);"),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)):($("aside").after('<div class="__logo _logo" style="transform: translate(0px, 0px);"><img src="'+$("[data-image-lga]").attr("data-image")+'"></div>'),setTimeout(function(){$(".__logo").transition({y:"-140px"},1200)},400)))});var ev_click_atsettings2=".authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)";$("body").undelegate(ev_click_atsettings2,"click"),$("body").on("click",ev_click_atsettings2,function(){spinnerfy_buttons($(this),[1.5,-28,"small",!1])}),setTimeout(function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&$(".end_submits").parent("td").after('<td style="text-align: right;">        <a class="btn btn-default page_footer_ajax_submit pull-right" style="margin-top: 5px; margin-right: -2px;" id="edit_bgs" href="'+v___location_prefix+'/settings-backgrounds.cgi"><i class="fa fa-fw fa-image" style="margin-right:5px;"></i>'+theme_language("settings_right_theme_bgs")+'</a>        <a class="btn btn-default page_footer_ajax_submit pull-right" style="margin-top: 5px; margin-right: -2px;" id="edit_logos" href="'+v___location_prefix+'/settings-logos.cgi"><i class="fa fa-fw fa-file-image-o" style="margin-right:5px;"></i>'+theme_language("settings_right_theme_logos")+"</a>        </td").parents(".ui_form_end_buttons").css("width","100%"),$(".btn-group.end_submits").css("margin-left","2px"),setTimeout(function(){(check_location_resource("/settings-logos.cgi?saved=1")||check_location_resource("/settings-backgrounds.cgi?saved=1"))&&$(".ui_form_end_buttons #saved").replaceWith('<button class="btn btn-success file-editor-save page_footer_ajax_submit" type="submit" name="save" id="save"><i class="fa fa-fw fa-floppy-o"></i> '+theme_language("global_save")+" </button>")},1300)},10)}if($is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-backgrounds.cgi"||($(function(){var e=$('input[name="authenticated_logo"]:checked, input[name="authenticated_bg"]:checked'),t=e.val(),i=$('input[name="unauthenticated_logo"]:checked, input[name="unauthenticated_bg"]:checked');i.val();function a(i){void 0===i&&(i=e);var a=["authenticated_logo_file","authenticated_bg_file"];"1"!=i.val()?$.each(a,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(a,function(e,i){$('input[name="'+i+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==t&&$('input[name="'+i+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function n(e){void 0===e&&(e=i);var t=["unauthenticated_logo_file","unauthenticated_bg_file"];"1"!=e.val()?$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").addClass("disabled").prev(".file_chooser_button_preview").addClass("disabled")}):$.each(t,function(e,t){$('input[name="'+t+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==i&&$('input[name="'+t+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}a(),$('input[name="authenticated_logo"], input[name="authenticated_bg"]').on("change",function(){a($(this))}),n(),$('input[name="unauthenticated_logo"], input[name="unauthenticated_bg"]').on("change",function(){n($(this))})}),$(".file_chooser_button_preview").on("mouseout",function(e){$(this).css("background","white")}).on("mouseover",function(e){$(this).css("background","#eee")}),$.each($(".file_chooser_button_preview"),function(){$(this).data("image")&&$(this).popover({trigger:"hover",sanitize:!1,html:!0,content:function(){return"<img src='"+$(this).data("image")+"'>"}})})),$("#system-status > div.panel-body > table > tbody > tr > td").on("mouseover",function(){$(this).find(".btn-hidden").removeClass("hidden")}).on("mouseout",function(){$(this).find(".btn-hidden").addClass("hidden")}),core.curModule("bind8")){var $table_data_recursive_tree=$(".container-fluid table[data-recursive_tree]");$table_data_recursive_tree.length&&($table_data_recursive_tree.removeClass().addClass("table table-hover"),$.each($table_data_recursive_tree.find('img[src*="images/"]'),function(e,t){var i=$(this);Test.strContains(i.attr("src"),"close")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-down text-dark"></i>'),Test.strContains(i.attr("src"),"open")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-right text-dark"></i>'),Test.strContains(i.attr("src"),"smallicon")&&i.replaceWith('<i class="fa fa-fw fa-world text-semi-dark"></i>')}))}if((core.curModule("software")&&(Test.strContains(v___location_file,"tree.cgi")||Test.strContains(v___location_file,"ipkg-tree.cgi"))||core.curModuleFile("cluster-software","edit_host.cgi"))&&($('img[src*="images/"]').each(function(e,t){var i=$(this);i.next("a").removeClass(),Test.strContains(i.attr("src"),"close")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-down text-dark"></i>'),Test.strContains(i.attr("src"),"open")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-caret-right text-dark"></i>'),Test.strContains(i.attr("src"),"pack")&&i.replaceWith('<i class="fa fa-fw fa-lg fa-package-install text-semi-dark"></i>')}),Test.strContains(v___location_file,"ipkg-tree.cgi")&&$('form[action*="ipkg-tree.cgi"] + script + p > a, form[action*="ipkg-tree.cgi"] + script + p + table +p > a').addClass("margined-top-10")),(core.curModule("mysql")||core.curModule("postgresql"))&&($('a > img[src*="images/left.gif"]').each(function(e,t){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-left text-semi-light vertical-align-baseline"></i>')}),$('a > img[src*="images/right.gif"]').each(function(e,t){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-right text-semi-light vertical-align-baseline"></i>')})),core.curModuleFile("virtual-server","list_scripts.cgi")&&($('td > a > img[src*="images/staroff.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staroff.gif")}),$('td > a > img[src*="images/staron.gif"]').each(function(e,t){$(this);$(t).attr("src",v___location_prefix+"/images/staron.gif")})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"status/"&&($('td img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('<i class="fa fa-fw fa-1_15x fa-check text-success"></i>')}),$('td img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('<i class="fa fa-fw fa-1_15x fa-times-circle text-danger"></i>')}),$('td img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(t).replaceWith('<i class="fa fa-fw fa2 fa2-minus text-warning fa-1_15x vertical-align-middle"></i>')})),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/up.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/up.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa-1_15x fa-check text-success"></i>')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/down.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/down.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa-1_15x fa-times-circle text-danger"></i>')}),$('.ui_form[action^="delete_mons"] tr.ui_checked_columns > td > label > img[src="images/not.gif"]:not(".ui_icon_protected"), .ui_form[action^="save_mon"] img[src="images/not.gif"]:not(".ui_icon_protected"), table.ui_buttons_table > tbody > tr.ui_buttons_row > td.ui_buttons_label > img[src="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa2 fa2-minus text-warning fa-1_15x vertical-align-middle"></i>')}),(core.curModule("proc")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("shorewall")||core.curModule("shorewall6")||core.curModuleFile("pam","edit_pam.cgi")||core.curModule("filter"))&&($("td a img[src], td label a img[src]").parents("td").addClass("text-center"),$('td img[src*="images/gap.gif"]').replaceWith('<i class="fa fa-fw fa-caret-down invisible"></i>'),$('td a img[src*="images/down.gif"]').replaceWith('<i title="'+theme_language("move_down")+'" class="fa fa-fw fa-move-down cursor-pointer"></i>'),$('td a img[src*="images/up.gif"]').replaceWith('<i title="'+theme_language("move_up")+'" class="fa fa-fw  fa-move-up cursor-pointer"></i>'),$('td a img[src*="images/after.gif"]').replaceWith('<i title="'+theme_language("add_after")+'" class="fa fa-fw fa-level-down cursor-pointer"></i>'),$('td a img[src*="images/before.gif"]').replaceWith('<i title="'+theme_language("add_before")+'" class="fa fa-fw fa-level-down fa-flip-vertical cursor-pointer"></i>')),(core.curModule("squid")||core.curModule("cron"))&&($('td a img[src*="images/movedown.gif"]').replaceWith('<i title="'+theme_language("move_down")+'" class="fa fa-fw fa-move-down cursor-pointer"></i>'),$('td a img[src*="images/moveup.gif"]').replaceWith('<i title="'+theme_language("move_up")+'" class="fa fa-fw fa-move-up cursor-pointer"></i>')),core.curModule("cron")&&($('td a img[src*="images/bottom.gif"]').replaceWith('<i title="'+theme_language("move_bottom")+'" class="fa fa-fw fa-level-down cursor-pointer"></i>'),$('td a img[src*="images/top.gif"]').replaceWith('<i title="'+theme_language("move_top")+'" class="fa fa-fw fa-level-down fa-flip-vertical cursor-pointer"></i>')),$("input").each(function(e,t){"images/ok.gif"==$(this).attr("src")&&($(t).attr("src",v___location_prefix+"/"+$(this).attr("src")),$(this).parents("td").attr("style","white-space: nowrap"))}),core.curModule("commands")&&$("body").addClass("custom"),!$is_history_action){if(core.curModuleFile("custom","view.cgi")){var $_t_title=$('form[action="save.cgi"]').find(".table-title"),$_tt=$_t_title.find("tt").detach();$("#headln2c").find("[data-main_title]").after("<span data-sub_title><br>"+$_tt[0].outerHTML+"</span>"),$_t_title.remove()}if($.each($("form > table"),function(){$(this).next('input[type="submit"]')&&$(this).attr("style")}),$.each($("table tr"),function(){$(this).is(":empty")&&$(this).remove()}),$.each($("span > input"),function(){var e=$(this).parent("span").next(".chooser_button"),t=$(this).parent("span").next('input[type="button"][onclick]');$(this).parent("span").next("select");e&&e.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; margin-top:4px !important;").find("i.fa-files-o").css("margin-top","0").addClass("vertical-align-middle"),$(this).parents(".tab-content")&&e.css("margin-top","4px"),t&&(t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-files-o").css("margin-top","11px").addClass("vertical-align-middle"),t.attr("style","display: inline; width:40px; height: 28px; margin-right:0 !important; vertical-align: middle").next("i.fa-calendar").attr("style","margin-top: 21px !important; font-size: 11px; margin-left: -27px; pointer-events: none;"))}),$.each($('input[type="button"][onclick^="ifield"]'),function(e,t){$(this).css("margin-left","0").css("width","40px").css("height","28px")}),$('.ui_form[action="switch.cgi"] > input.form-control.ui_textbox').next('input[type="button"][onclick^="ifield"]').attr("style","margin-top: 2px !important; margin-bottom: 2px !important; margin-left: 0 !important"),setTimeout(function(){$('.ui_form[action="switch.cgi"]  .file_chooser_button_attached').attr("style","font-size: 11px; pointer-events: none; margin-top: 14px !important;")},10),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cshrc/"&&$("textarea").each(function(e,t){$(this).attr("style","height: 20em !important")}),v___location_path!=v___location_prefix+"/acl/"&&v___location_path!=v___location_prefix+"/acl/edit_user.cgi"||$('.ui_grid_table.table-hardcoded .ui_grid_row .ui_grid_cell input[type="checkbox"], .table-hardcoded .col_value input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: bottom !important")}),core.curModule("custom")||core.curModule("commands")){$(".panel-body > .ui_grid_table.table-hardcoded").each(function(e,t){$(this).attr("style","margin-top: 3px !important")}),$(".panel-body td > .ui_form").each(function(){$(this).attr("style","padding-top: 0 !important")}),$(".panel-body > a.ui_link").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text())}),$.each($("td[data-td-e] > .ui_links_row"),function(){var e=$(this).parent();e.find('a[href^="edit_"]').addClass("ui_link_replaced btn btn-xxs btn-transparent btn-link-bordered f__lnk_t_btn-el").css("margin-right","3px").removeClass("ui_link").prepend('<i class="fa fa-fw fa-pencil">&nbsp;</i>'),e.parents("table").find("thead > tr > th:eq(2)").addClass("pointer-events-none")}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),$.each($("td.col_value.col_header > .ui_links_row"),function(){}).promise().done(function(){$(this).is(".ui_links_row")&&$(this).contents().unwrap()}),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="form.cgi"]',"btn btn-primary btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="run.cgi"], a[href^="sql.cgi"]',"btn btn-success btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-play fa-0_85x","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="view.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-pencil-square-o","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi","/commands/","/commands/index.cgi"],".container-fluid table td[data-td-e]:nth-child(3)",'a[href^="sqlform.cgi"]',"btn btn-info btn-xxs vertical-align-top margined-top-1 margined-left--2 ---forced","fa-cog","","","","|"),theme_buttonify(["/custom/","/custom/index.cgi"],".container-fluid table.ui_grid_table td:last-child",'a.ui_link[href^="edit_"]',"btn btn-default btn-transparent btn-transparent-link btn-xxs vertical-align-top margined-top-1 margined-right-5 pull-right btn-dnwo ---forced","fa-pencil","","","","|"),$('body[class*="custom"] table.ui_grid_table tr td > form .table-responsive table tr:first-child td.col_header button.ui_submit').prepend('<i class="fa fa-fw fa-stop"></i>'),$.fn.mytxtW=function(e,t){return $.fn.mytxtW.fakeEl||($.fn.mytxtW.fakeEl=$("<span>").hide().appendTo(document.body)),$.fn.mytxtW.fakeEl.text(e||this.val()||this.text()||this.attr("placeholder")).css("font",t||this.css("font")),$.fn.mytxtW.fakeEl.width()+2},$('table.ui_grid_table td input[type="text"], table.ui_grid_table td input[type="password"], table.ui_grid_table td textarea').on("input",function(){var e=$(this).mytxtW()+15;$(this).attr("type"),$(this).css({width:e})}).trigger("input");var is_two_columns=$(".sub_table_container").first().find('td[colspan="4"]').length?0:1,$empty_cells=$("table.ui_grid_table tbody tr.ui_grid_row td.ui_grid_cell");$.each($empty_cells,function(){var e=$(this).html();("<br>"==e||e.length<10)&&$(this).remove(),is_two_columns&&($(this).addClass("no-contents"),$(this).parent("tr").addClass("no-contents"))})}if(check_current_file("config.cgi")&&v___location_query&&v___location_query.includes("custom")&&$('[name="width_def"], [name="height_def"], [name="wrap"]').parent().parent("td").parent("tr").addClass("hidden"),snippets.page.render_links($is_history_action),v___location_path==v___location_prefix+"/fdisk/edit_disk.cgi"){var __delete=[];$.each($(".panel-body > table.table.table-striped tbody tr"),function(e,t){($(this).find("td:nth-child(3)").find('img[src*="images/use"]').length||$(this).find("td:nth-child(3)").find('img[src*="images/gap"]').length)&&($(this).find("td:nth-child(3)").remove(),__delete.push(e))}),$.isEmptyObject(__delete)||($(".panel-body > table.table.table-striped thead").find("th:nth-child(3)").remove(),delete __delete)}if(v___location_path==v___location_prefix+"/virtual-server/edit_link.cgi"&&$(".table-hardcoded").find('input[name="open"]').parent("td").parent("tr").remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"&&$('.table.table-striped.table-condensed tr.tr_tag td[data-td-e] input[type="checkbox"]').each(function(e,t){$(this).attr("style","vertical-align: middle !important")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&$("#signal").attr("style","margin-bottom: 0 !important;"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"procmail/"&&($(".panel-body p:first-child").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),$(".panel-body p:last-child").prev("a.ui_link").remove()),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"cron/"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"cron/index.cgi"||$('.panel-body form.ui_form[action="index.cgi"]').next("script").next("b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"filter/"&&$(".panel-body > b").next("p").contents().filter(function(){return 3==this.nodeType}).remove(),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"dhcpd/"){var $dhcp_target=$(".panel-body > p");$dhcp_target.find('a[href*="../software"]').length||$dhcp_target.contents().filter(function(){return 3==this.nodeType}).remove()}v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"forward/"||$("td table.table-hardcoded.table.table-subtable").removeClass("table-striped"),$(".ui_buttons_hr > td > table.table-hardcoded > tbody > tr > td[nowrap]").each(function(){$(this).parents("table").attr("style","margin-bottom: 15px !important")}),$("textarea.form-control.ui_textarea").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$("textarea.form-control.ui_textarea").next("br").next('button[type="button"].btn-default').each(function(){$(this).prev("textarea").attr("style","margin-bottom: 1px !important"),$(this).attr("style","width:100% !important; padding-top: 0; height:28px !important")}),$(".table-hardcoded > tbody > tr > td > input.form-control.ui_textbox").next('button[type="button"].ui_button').each(function(){$(this).attr("style","margin-top: 2px !important")}),$(".table-hardcoded > tbody > tr > td.col_label b a, .ui_table_row td a").each(function(e,t){$(this).attr("href")||$(this).attr("style","color: #333; text-decoration: none; cursor:default")}),$('input[name="all_weekdays"], .ui_grid_cell > table.table-condensed, table.table-hardcoded table.table-condensed, select[multiple][name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important; padding-left:2px; padding-right:2px;")}),$('input[type="submit"]').each(function(){$(this).addClass("btn btn-default")}),$("table tr th").each(function(){$(this).text()&&$(this).attr("style","width: auto")}),$("table thead th:not(.table-title)").each(function(){$(this).css("border-top","none"),$(this).css("border-bottom","none")}),$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1&&(!$("body").hasClass("file-manager")&&$("body").addClass("file-manager"),$("#headln2l").prepend("<a onClick='window.open(\""+v___location_prefix+'/help.cgi/authentic-theme/file-manager", "help", "toolbar=no,menubar=no,scrollbars=yes,width=600,height=400,resizable=yes"); return false\' href="'+v___location_prefix+'/help.cgi/authentic-theme/file-manager"></a>'));var $table_header_links=$(".panel-heading > .header > div  a");$.each($table_header_links,function(){if($(this).attr("href")&&$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||$(this).attr("href").indexOf("restart_zone.cgi")>-1||$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1||$(this).attr("href").indexOf("start.cgi")>-1||$(this).attr("href").indexOf("stop.cgi")>-1||"//"==$(this).attr("href")&&(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi")||$(this).attr("href").indexOf("delete_")>-1||$(this).attr("href").indexOf("list_mail.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1||$(this).attr("href").indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),$(this).attr("href").indexOf("help.cgi")>-1){var e=$(this),t=$(this).parent("div");$(this).remove(),t.append(e)}$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href")==v___location_directory_trail_slashed||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1?($iconized_class="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=$(this).attr("href")||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-logos.cgi"?$(this).attr("href").indexOf("config.cgi")>-1?($iconized_class="fa-cog",$(this).data("title","")):$(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1?$iconized_class="fa-refresh":$(this).attr("href").indexOf("restart_zone.cgi")>-1?$iconized_class="fa-retweet":$(this).attr("href").indexOf("start.cgi")>-1?$iconized_class="fa-play":$(this).attr("href").indexOf("stop.cgi")>-1?$iconized_class="fa-square":$(this).attr("href").indexOf("man/search.cgi")>-1?$iconized_class="fa-search":$(this).attr("href").indexOf("delete_")>-1?$iconized_class="fa-trash-o":$(this).attr("href").indexOf("list_mail.cgi")>-1?$iconized_class="fa-inbox":$(this).attr("href").indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?$iconized_class="fa-cogs":$(this).attr("href").indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"&&($iconized_class="fa-arrow-left",$(this).data("back",1)):($iconized_class="fa-arrow-left",$(this).attr("href",v___location_prefix+"/webmin/edit_themes.cgi").data("title","").data("back",1));var i=$(this).attr("href").indexOf("help.cgi")>-1;i&&($iconized_class="fa-question-circle",$(this).data("title",""));var a=Convert.strUpInitial(i?theme_language("global_help"):1===$(this).data("back")?core.curModule(v___module_file_manager)?"":theme_language("global_return_to_module_index"):$(this).text());$(this).data("toggle","tooltip").data("title",a).attr("data-container","body").addClass("btn btn-link text-lighter").removeClass("ui_link").append('<i class="fa '+$iconized_class+'"></i>'),$(this).attr("aria-label",a),$(this).contents().filter(function(){return 3==this.nodeType}).remove(),$(this).tooltip({container:"body",placement:"auto top",trigger:"hover",delay:{show:600,hide:30}}),((v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proftpd/")&&($(this).attr("href").indexOf("restart.cgi")>-1||$(this).attr("href").indexOf("apply.cgi")>-1)||$(this).parent("div").find("a")&&1==$(this).parent("div").find("a").length||$(this).attr("href").indexOf("man/search.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("/virtual-")>-1||$(this).attr("href").indexOf("/virtualmin-")>-1||$(this).attr("href").indexOf("/server-")>-1)&&(($(this).attr("href").indexOf("/index.cgi")>-1||$(this).attr("href").indexOf("config.cgi")>-1)&&$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1?$(this).attr("style","margin-right: 0 !important; padding: 6px 12px"):$(this).attr("style","margin-right: 0 !important"))}$("#headln2l").removeClass("invisible")}),$.each($('td.ui_grid_cell:contains("|")'),function(){$(this).contents().filter(function(){return 3==this.nodeType}).remove()}),$('a[href*="help.cgi"][onclick], a[href*="help.cgi/"], a[href*="showpass.cgi?"][onclick]').attr("onclick","").unbind("click").addClass("help_popup"),$(".help_popup").each(function(){$(this).attr("style","color: #333; text-decoration: none; cursor:help")})}if(!$is_history_action){if($('select.ui_select[name="days"]').each(function(){$(this).parent("td").attr("style","vertical-align: top !important")}),v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailboxes/"&&v___location_path!=v___location_prefix+"/mailboxes/index.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"mailbox/"&&v___location_path!=v___location_prefix+"/postfix/view_mailq.cgi"||(v___location_file?"list_mail.cgi"==v___location_file&&$('.container-fluid input:not([type="checkbox"]), .container-fluid .ui_form_end_submit, .container-fluid select').addClass("heighter-34").removeClass("heighter-28").css("margin-bottom","-1px"):($(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top")),$("body").find("form").removeAttr("onsubmit"),$header_tables=$("body").find('input[name="from"]').parents(".tab-pane").parent("td"),$header_tables.children("table").hide(),$.each($header_tables.find("input, textarea, select"),function(){$(this).hasClass("ui_select")||$(this).attr("onclick")||"checkbox"==$(this).attr("type")||"submit"==$(this).attr("type")||$(this).attr("style","width: 60%").addClass("inline-block"),$(this).attr("onclick")&&$(this).addClass("inline-block")}),onbeforeunload=null,1==$("body").find('input.ui_hidden[name="html_edit"]').val()&&editor_html_init(["body",2,!1,"edit_web"],"basic"),$("body").find('input[name="from"]').parents(".tab-pane").prev("table").remove(),$("body").find('input[name="from"]').parents(".tab-pane ").parent("td").find("div, table").each(function(e,t){$(this).find(".col_label").css("width","20%"),$(this).find('input[name="subject"]').parent("td").prev("td").find("b").attr("style","font-size: 13px !important"),$(this).find('input[name="subject"]').parents("table").show(),$(this).find('input[name="subject"]').parent("td").find(".submitter").remove()}),$editor_mode_link_container=$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th:last-child"),$editor_mode_link=$editor_mode_link_container.find("a").addClass("editor_mode_link"),$editor_mode_link_container.parent("tr").find("th:first-child").append($editor_mode_link),$editor_mode_link_container.remove(),$editor_mode_link_button=$("body").find('textarea[id="body"]').parents("table").find(".editor_mode_link"),$editor_mode_link_button_state=!!$editor_mode_link_button.attr("href")&&$editor_mode_link_button.attr("href").indexOf("html=0"),$editor_mode_link_button.attr("title",$editor_mode_link_button.text()).addClass("editor_mode_link_button pull-right btn btn-sm "+(-1==$editor_mode_link_button_state?"btn-success":"btn-primary")).html('<i class="fa '+(-1==$editor_mode_link_button_state?"fa-font":"fa-text-width")+'"> </i>'),$("body").find('textarea[id="body"]').parents("table").find("thead > tr > th").find("b").css("padding-left","45px"),$(".editor_mode_link_button").tooltip(),$fileinput_container=$("body").find('a[onclick="return add_ss_attachment()"]'),$fileinput_container.parent("td").contents().filter(function(){return 3==this.nodeType}).remove(),$fileinput_container.remove(),$fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]'),$fileinput_add_another_attachment.addClass("btn btn-default"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,"")),(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1)&&($table_title_header_container=$(".ui_form").find("div.table-responsive").first().find(".table-title"),$table_title_links_container=$table_title_header_container.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny"),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_links_container.remove(),$table_title_header_container_text_padding=35,$(".table-title > a.table_title_links").each(function(){$table_title_header_container_text_padding=v___location_path==v___location_prefix+"/postfix/view_mailq.cgi"?120:235}),$(".table_title_links_container a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),$table_title_header_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:first-child"),$table_title_links_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child"),2==$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th").length&&$table_title_links_container.remove(),$table_title_links_container.find("a").addClass("table_title_links pull-right btn btn-tiny"),$table_title_links_container.find("a").attr("href")&&$table_title_links_container.find("a").attr("href").indexOf("body=1")>-1?$table_title_links_container.find("a").addClass("btn-info"):$table_title_links_container.find("a").addClass("btn-warning"),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links=$table_title_links_container.html(),$table_title_header_container.append($table_title_links),$table_title_header_container_text_padding=10,$table_title_header_container.find("a").each(function(){$table_title_header_container_text_padding+=$(this).width()}),setTimeout(function(){if($(".ui_form").find("div.table-responsive").first().find("table:first-child").outerWidth()!=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child").outerWidth()){var e=parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$table_title_second_container.find(".table-title").addClass("left").find("b").css("padding-left",e-175),$table_title_second_container.find(".pull-right").removeClass("pull-right").addClass("pull-left")}$.each($table_title_second_container.find("table"),function(){$(this).removeClass().addClass("clear-formatting"),$.each($(this).find("td.col_value"),function(){$(this).css("background-color","white")})})},30),$table_title_header_container.find("b").css("padding-left",$table_title_header_container_text_padding),$table_title_header_container.find("b")&&$table_title_header_container.find("b").length>1&&$table_title_header_container.find("b:first-child").text()==$table_title_header_container.find("b:last-child").text()&&$table_title_header_container.find("b:last-child").remove()),$("td > a").on("click",function(){$(this).attr("onclick"),$("input[type=file]").each(function(){$(this).parent("a").hasClass("file-input-wrapper")||$(this).bootstrapFileInput()})}),settings_mailbox_slash_delimiter&&$('.container-fluid select.ui_select[name="id"] > option').each(function(e,t){$(t).text($(t).text().replace(/\./g,"/").replace(/\/\//g,"/"))}),$.each($('table td[align="right"], table td[align="left"]'),function(e,t){$(this).attr("style","border: 0 !important;"),$(this).parents("tbody").attr("style","border: 0 !important;"),$(this).parents("table.table-hardcoded.table.table-striped.table-condensed.table-subtable").removeClass("table-hardcoded table table-striped table-condensed table-subtable")}),$.each($("div.table-responsive > table tbody tr td > table.table-hardcoded"),function(e,t){$(this).find("tr > td.col_label > b").removeAttr("style"),$(this).removeClass("table table-condensed")}),$.each($("div.table-responsive > table tbody tr td > div.tab-pane"),function(e,t){$(this).find("table").removeClass("table"),$(this).parents("div.table-responsive").find("table").removeClass("table-striped table-subtable")}),$.each($('div.table-responsive > table tbody tr td > div.tab-pane .col_value > input[type="button"][onclick^="ifield"]'),function(e,t){$(this).attr("style","margin-left: 0; margin-top: -27px !important")})),$.each($(".barchart"),function(){$(this).find("img").attr("height",4)}),$("a").each(function(){$(this).attr("href")||$(this).addClass("no_effect")}),$.each($(".container-fluid input:not(.ui_upload)"),function(){"28px"==$(this).css("height")&&$(this).prev("input").addClass("heighter-28")}),(core.curModule("syslog")||core.curModule("phpini"))&&$(".container-fluid .chooser_button + .ui_form_end_submit").addClass("heighter-28"),core.curModuleFile("gnupg","edit_key.cgi")&&$(".container-fluid .sub_table_container .table-condensed .btn-success").addClass("heighter-28").removeClass("btn-success").addClass("btn-default"),core.curModuleFile("virtual-server","backuplog.cgi")&&$('.container-fluid input[name="search"]').addClass("margined-top--1"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid input[name="user"] + button + button').addClass("heighter-34-force"),$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()&&$(this).addClass("heighter-34")}),$.each($(".container-fluid .ui_buttons_row input, .container-fluid .ui_buttons_row select"),function(){$(this).addClass("heighter-34")}),core.curModuleFile("gnupg","list_keys.cgi")&&$('.container-fluid input[id="id"]').addClass("heighter-34"),core.curModule("language")&&$('select[name="lang"]').addClass("heighter-34"),core.curModuleFile("virtual-server","edit_script.cgi")){var x1z1x1c41=$('input[name="version"]');x1z1x1c41.length&&x1z1x1c41.attr("style",x1z1x1c41.attr("style").replace("n: middle","n: bottom !important")).addClass("heighter-34")}if($.each($("tr > .ui_form"),function(){$(this).next().next("td").find("input.submitter")&&$(this).next().next("td").find("input.submitter").addClass("heighter-34")}),$.each($("input.heighter-34").next(".chooser_button"),function(){$(this).addClass("heighter-34"),$(this).find(".fa.fa-files-o").css("margin-top","0").addClass("vertical-align-middle")}),setTimeout(function(){$.each($(".container-fluid select"),function(){32==$(this).next("input").outerHeight()||32==$(this).prev("input").outerHeight()?$(this).addClass("heighter-34").removeClass("heighter-28"):28!=$(this).next("input").outerHeight()&&28!=$(this).prev("input").outerHeight()||$(this).addClass("heighter-28").removeClass("heighter-34")})},1),core.curModule("term")||core.curModuleFile("server-manager","login.cgi")){var tmp__is__m__term=$("iframe");if(tmp__is__m__term.length){var $this=tmp__is__m__term;$this.on("load",function(){$this.contents().find("#term").css("width","99.3%").css("height","96vh").css("margin-top","1px")}),$(this).next("br").remove().next('input[type="button"]').remove(),$(this).next('input[type="button"]').remove(),$(this).next("p").remove()}}if($.each($(".chooser_button"),function(){$(this).prev("input").attr("style")&&$(this).prev("input").attr("style").indexOf("max-width: 100%")>-1&&$(this).prev("input").css("max-width","93%")}),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&1==settings_sysinfo_link_mini&&$(".navigation > li:not('.has-sub')").removeClass("sub_active").find("span.current-large").remove(),$.each($('input[value="..."], input[value=" ..."], input[value="  ..."], input[value="... "], input[value="...  "], input[value=" ... "], input[value="  ...  "]'),function(){$(this).after('<i class="fa fa-fw fa-files-o -cs file_chooser_button_attached vertical-align-middle" style="font-size:11px; pointer-events: none"></i>'),$(this).attr("value","").addClass("file_chooser_button_attached_input")}),$.each($(".chooser_button"),function(){$(this).prev("input").css("margin-top","2px").css("margin-bottom","2px")}),$.each($(".file_chooser_button_attached"),function(){$(this).prev('input[type="button"]').prev("input").css("margin-top","2px").css("margin-bottom","2px"),$(this).parents(".ui_buttons_label").length||$(this).parents(".table-subtable").length||$(this).css("margin-top","11px")}),$.each($(".container-fluid .ui_form > .file_chooser_button_attached"),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&($(this).css("margin-top","16px"),$(this).prev("input[onclick]").css("width","40px"))}),$.each($('.container-fluid .ui_form[action="init_cache.cgi"] > .file_chooser_button_attached'),function(){($(this).prev(".heighter-34")&&$(this).prev(".heighter-34").length||$(this).next(".heighter-34")&&$(this).next(".heighter-34").length)&&$(this).css("margin-top","14px")}),$.each($(".col_value > .file_chooser_button_attached"),function(){$(this).prev("input[onclick]").css("width","40px").css("margin-left","0")}),v___location_path!=v___location_prefix+"/virtualmin-mailman/"&&v___location_path!=v___location_prefix+"/virtualmin-mailman/index.cgi"||$("input[name^=reset_]").addClass("heighter-28"),v___location_path!=v___location_prefix+"/software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/apache/show.cgi"&&v___location_path!=v___location_prefix+"/proc/index_search.cgi"||$.each($(".container-fluid .panel-body .btn:not(.chooser_button)"),function(){$(this).removeClass("heighter-28").addClass("heighter-34")}),v___location_path!=v___location_prefix+"/virtualmin-svn/"&&v___location_path!=v___location_prefix+"/virtualmin-svn/index.cgi"||$.each($("tr > td[data-td-e] > button"),function(){$(this).addClass("btn-hover-wash_off-in-row bhw-sm heighter-28 heighter-28-force margined-top-2 margined-bottom-2"),$(this).find(".fa-backup").length&&$(this).removeClass("heighter-28-force")}),v___location_path!=v___location_prefix+"/virtualmin-init/"&&v___location_path!=v___location_prefix+"/virtualmin-dav/list_shares.cgi"&&v___location_path!=v___location_prefix+"/squid/edit_acl.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-nginx/"&&v___location_path!=v___location_prefix+"/fdisk/edit_disk.cgi"&&v___location_path!=v___location_prefix+"/server-manager/edit_newlinks.cgi"&&v___location_directory_unslashed_trail_slashed!=v___location_prefix_unslashed_trail_slashed+"backup-config/"||$.each($(".container-fluid .panel-body .ui_link_re-replaced"),function(){$(this).addClass("btn-tiny").removeClass("heighter-34")}),v___location_path==v___location_prefix+"/pam/"&&$(".panel-body > a.ui_link").addClass("btn-tiny"),v___location_path!=v___location_prefix+"/software/"&&v___location_path!=v___location_prefix+"/software/index.cgi"||($(".container-fluid input#search").addClass("heighter-34 vertical-align-top"),$('form[action="file_info.cgi"] > .ui_form_end_submit').addClass("heighter-28 heighter-28-force margined-top-0")),v___location_path==v___location_prefix+"/software/tree.cgi"&&$(".ui_link").addClass("margined-top-10"),v___location_path==v___location_prefix+"/syslog/save_log.cgi"&&($.each($(".container-fluid .heighter-34"),function(){$(this).removeClass("heighter-34").addClass("heighter-28")}),$("form:first").next("script").next("br").remove(),$("form:last").css("margin-top","5px")),v___location_path==v___location_prefix+"/status/edit_mon.cgi"&&($('td.col_value > table[cellspacing="1"] tbody').attr("style","border: 0 !important;"),$(".opener_trigger:last-child").css("font-size","16px"),$.each($("table.sub_table_container td > font"),function(){$(this).parents("tbody"),$(this).contents().unwrap().wrap('<i class="fa fa-info-circle"><span class="font-family-default vertical-align-baseline margined-left-3">&nbsp;</span></i>')})),v___location_path!=v___location_prefix+"/shell/"&&v___location_path!=v___location_prefix+"/shell/index.cgi"&&v___location_path!=v___location_prefix+"/server-manager/shell.cgi"&&v___location_path!=v___location_prefix+"/server-manager/massshell.cgi"||($.each($(".container-fluid .btn:not(.btn-link), .container-fluid select, .container-fluid input"),function(){$(this).removeClass("heighter-28").addClass("heighter-34"),$(this).is('input[type="button"]')&&$($(this).addClass("submitter")),$(".form-control.sidebar-search").val()&&$(".form-control.sidebar-search").val().trim().startsWith("!")&&$(".form-control.sidebar-search").val(""),$(".ui_form").find("input.btn.btn-default:first").addClass("btn-success")}),$(".container-fluid input#cmd").focus(),setTimeout(function(){var e=$("#content"),t=e.find(v___page_container).outerHeight();e.scrollTop(t)})),$.each($("input"),function(){28==$(this).outerHeight()&&28!=$(this).next("input").outerHeight()&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){32==$(this).outerHeight()&&32!=$(this).next("select").outerHeight()&&$(this).next("select").addClass("heighter-34")}),v___location_path==v___location_prefix+"/cluster-passwd/edit_passwd.cgi"&&$.each($("input + button"),function(e,t){"28px"==$(this).css("height")&&$(this).addClass("heighter-28").css("line-height","12px").css("margin-top","2px")}),v___location_path==v___location_prefix+"/cluster-shell/"||v___location_path==v___location_prefix+"/cluster-shell/index.cgi"){var $__btn_to_rep=$('button[onclick*="run.cgi?clear"]');if($__btn_to_rep.length){var btn_txt=$__btn_to_rep.text();$__btn_to_rep.replaceWith('<button class="btn btn-default ui_button heighter-28"><a class="no_effect" href="run.cgi?clear=1" data-original-title="" title="">'+btn_txt+"</a></button>")}}if(v___location.pathname!=v___location_prefix+"/virtual-server/pro/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/bwgraph.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/history.cgi"&&v___location.pathname!=v___location_prefix+"/server-manager/one_history.cgi"||($("body").find("table.ui_form_end_buttons .btn.btn-default.submitter.ui_submit").addClass("btn-success"),$(".panel-body > table tr td .ui_link_empty").each(function(e,t){$(this).addClass("btn-tiny ui_link_replaced")}),$(".panel-body > table a").each(function(e,t){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).text($(this).text().replace(/\.$/,"")),$(this).text()&&$(this).text().indexOf("<<")>-1&&($(this).text($(this).text().replace(/\<\</,"")),$(this).html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-angle-double-left"> </i> '+$(this).text())),$(this).text()&&$(this).text().indexOf(">>")>-1&&($(this).text($(this).text().replace(/\>\>/,"")),$(this).html($(this).text()+' <i style="vertical-align: baseline !important;" class="fa fa-fw fa-angle-double-right"> </i>')),$(this).parent().contents().filter(function(){return 3==this.nodeType}).remove(),0===$(this).attr("href").indexOf("edit_cmd.cgi?new")&&$(this).html('<i class="fa fa-fw fa-terminal"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> '+$(this).text()),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> '+$(this).text()),$(this).parents("table").css("margin-bottom","3px")}),$("#history").next("table.ui_grid_table").next("a").length?($("#history").next("table").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("table").next("a").text($("#history").next("table").next("a").text().replace(/\.\.$/,"")),$("#history").next("table").next("a").html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-external-link"></i>&nbsp;'+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html('<i style="vertical-align: baseline !important;" class="fa fa-fw fa-external-link"></i>&nbsp;'+$("#history").next("a").text())),$(".panel-body > hr + b").attr("style","font-size: 16px; font-weight: normal;"),$(".panel-body > hr + b").text($(".panel-body > hr + b").text().replace(/\:$/,"")),onLoad()),$.each($('tr > td[valign="top"][width="50%"]'),function(){var e=$(this).attr("style");$(this).attr("style","vertical-align: top !important; "+(e||""))}),$("body table").each(function(e,t){$(this);$(t).hasClass("table")||$(t).hasClass("header")||$(t).hasClass("ui_form_end_buttons")||$(t).hasClass("ui_table")||($(t).addClass("table-hardcoded"),$t_uri_usermin&&($(t).addClass("table-subtable"),$(t).find("tr.thead").length||$(t).hasClass("sub_table_container table-hardcoded table-subtable")?($(t).find("tr.thead").attr("style","border: 1px solid #efefef"),$(t).attr("style","border: 1px solid #efefef")):$(t).attr("style")&&v___location_path.indexOf("view_mail.cgi")>-1||$(t).attr("style","margin-top: 10px;")))}),v___location_path==v___location_prefix+"/virtual-server/list_scripts.cgi"&&table_data_init($("#att_existing > form > table.table.table-striped.table-condensed, #att_new > form > table.table.table-striped.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path==v___location_prefix+"/virtual-server/edit_newscripts.cgi"&&table_data_init($("#att_summary > table.table.table-striped.table-condensed")),v___location_path!=v___location_prefix+"/server-manager/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-htpasswd/index.cgi"||table_data_init($("body form > table.table.table-striped.table-condensed")),($('body[class*="status"]').length&&!v___location_file&&!$('body[class*="smart-status"]').length||v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"||v___location_path==v___location_prefix+"/webminlog/search.cgi")&&table_data_init($("table.table-striped.table-condensed")),core.curModule("smart-status")&&($('select[name="drive"]').addClass("heighter-34"),$('select[name="drive"] + .ui_form_end_submit').addClass("heighter-34")),$('body[class*="ldap-useradmin"]').length&&table_data_init($("form > table.table.table-striped.table-condensed")),v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"&&table_data_init($(".table.table-striped.table-hover.table-condensed"),!1,!1,{orderable:!1,targets:[0,-1]}),v___location_path!=v___location_prefix+"/servers/"&&v___location_path!=v___location_prefix+"/servers/index.cgi"||($(".ui_checked_columns td table tr td").find('a.ui_link[href*="edit_serv.cgi"]').addClass("margined-left-4 label label-sm label-primary hidden").html('<i class="fa fa-fw fa-pencil-square-o"></i>'),$(".ui_checked_columns").hover(function(){$(this).find("td table tr a.ui_link.label.hidden").removeClass("hidden")},function(){$(this).find("td table tr a.ui_link.label").addClass("hidden")})),$.each($('table.table.table-striped.table-condensed.dataTable.no-footer > thead > tr[role="row"]:first-child'),function(e,t){$(this).attr("style","border-top: 4px solid #f2f2f2 !important")}),$.each($('button[onclick^="ifield"].btn.btn-default.ui_button'),function(){$(this).addClass("file_chooser_button_emulate")}),$.each($(".file_chooser_button_emulate"),function(){$(this).find(".fa-files-o").length||$(this).append('<i class="fa fa-fw fa-files-o -cs vertical-align-middle" style="font-size:11px; pointer-events: none"></i>'),"28px"==$(this).prev("input").css("height")&&$(this).addClass("heighter-28")}),$.each($("label > img"),function(e,t){$(this).attr("style","vertical-align: baseline !important")}),$.each($('select[multiple][name="weekdays"]'),function(){$(this).parents('td[valign="top"], td[data-td-e]').attr("style","vertical-align: top !important"),$(this).parents('table[width="100%"]').parents(".ui_radio_table.table-hardcoded").css("width","100%")}),$.each($("label").find("br"),function(){$(this).parent("label").prev(".aradio, .acheckbox").attr("style","margin-left: 0 !important;"),$(this).parent("label").next(".aradio, .acheckbox").attr("style","margin-left: 0 !important;")}),$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".heighter-34").length&&$.each($(".table-responsive + .table-responsive + .table-hardcoded td"),function(){$(this).find(".btn").addClass("heighter-34")})}),v___location_path==v___location_prefix+"/cpan/edit_mod.cgi"&&$('.container-fluid form[action="download.cgi"]').next().next().next().find(".submitter.ui_submit").addClass("heighter-34"),v___location_path==v___location_prefix+"/cpan/"||v___location_path==v___location_prefix+"/cpan/index.cgi"){var cpan_button=$('input[name="cpan"]').next("button");cpan_button.length&&(cpan_button.html('<i class="fa fa-fw fa-files-o -cs vertical-align-middle" style="font-size:11px; margin-top: -6px; pointer-events: none"></i>').attr("style","width: 40px; height: 28px; vertical-align:middle !important; margin-top:2px; margin-bottom:2px;"),cpan_button.attr("onclick",cpan_button.attr("onclick").replace("document.forms[0]","document.forms[1]")))}function __m_ico_row_tb(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"8px","padding-bottom":"8px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef")}function __m_ico_row_t(){$("body").find(".icons-row:not(._processed_):not(.inline-row)").css({"padding-top":"18px"}),$("body").find(".icons-row:not(._processed_):not(.inline-row)").css("border-top","1px solid #efefef")}if($("form").find(".icons-row:not(.inline-row)").length&&$("form").find(".icons-row").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").length&&$(".ui_subheading + .ui_links_row ~ .icons-row:not(.inline-row)").addClass("_processed_").css("border-top","1px solid #efefef").css("border-bottom","1px solid #efefef").find(".icons-container").addClass("icons-container-stretched"),v___location_path!=v___location_prefix+"/lvm/"&&v___location_path!=v___location_prefix+"/lvm/index.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-support/"&&v___location_path!=v___location_prefix+"/virtualmin-support/index.cgi"&&v___location_path!=v___location_prefix+"/proftpd/virt_index.cgi"&&v___location_path!=v___location_prefix+"/dhcpd/"&&v___location_path!=v___location_prefix+"/dhcpd/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/bind8/"&&v___location_path!=v___location_prefix+"/bind8/index.cgi"&&v___location_path!=v___location_prefix+"/grub/"&&v___location_path!=v___location_prefix+"/grub/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/"&&v___location_path!=v___location_prefix+"/cluster-software/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_user.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/edit_group.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/edit_mod.cgi"&&v___location_path!=v___location_prefix+"/cluster-software/edit_pack.cgi"&&v___location_path!=v___location_prefix+"/cluster-useradmin/"&&v___location_path!=v___location_prefix+"/cluster-useradmin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-usermin/"&&v___location_path!=v___location_prefix+"/cluster-usermin/index.cgi"&&v___location_path!=v___location_prefix+"/cluster-webmin/"&&v___location_path!=v___location_prefix+"/cluster-webmin/index.cgi"||__m_ico_row_tb(),v___location_path!=v___location_prefix+"/proftpd/"&&v___location_path!=v___location_prefix+"/proftpd/index.cgi"&&v___location_path!=v___location_prefix+"/mysql/"&&v___location_path!=v___location_prefix+"/mysql/index.cgi"&&v___location_path!=v___location_prefix+"/postgresql/"&&v___location_path!=v___location_prefix+"/postgresql/index.cgi"&&v___location_path!=v___location_prefix+"/bacula-backup/"&&v___location_path!=v___location_prefix+"/bacula-backup/index.cgi"||__m_ico_row_t(),$.each($(".row.icons-row.inline-row"),function(){$(this).find("a.icon_link").contents().filter(function(){return 3==this.nodeType}).remove()}),$.each($(".row.icons-row:not(.inline-row) .icons-container"),function(){$(this).removeAttr("data-title").removeAttr("data-toggle").removeAttr("data-placement").removeAttr("data-container")}),($("body").find(".icons-row > div.icons-container").length||$("body").find(".icons-row > div.small-icons-container").length)&&($.each($(".icons-row .hidden-forged-6"),function(){$(this).find("input").is(":checked")&&$(this).parents('div[class*="icons-container"]').addClass("highlighted")}),$.each($(".hidden-forged-7 > a"),function(){$(this).removeClass(),$(this).parents(".hidden-forged-7").hasClass("hidden-forged-7-small")?($(this).html('<i aria-label="'+theme_language("edit_current")+'" class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i aria-label="'+theme_language("select_deselect")+'" class="fa fa-fw fa-select text-dark text-dark-hoverd gl-icon-select" style="top:1px; left:-1px"></i>')):($(this).html('<i aria-label="'+theme_language("edit_current")+'"  class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i aria-label="'+theme_language("select_deselect")+'" class="fa fa-fw fa-lg fa-select text-dark text-dark-hoverd gl-icon-select"></i>'))})),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtualmin-registrar/"&&$.each($("td > input "),function(){$(this).parents("table.table-hardcoded").find('form[action="edit.cgi"]').length&&($(this).css("margin-left","5px"),$(this).parent("td").prev("td").find("select").css("margin-left","5px"))}),v___location_path!=v___location_prefix+"/virtual-server/list_scripts.cgi"&&v___location_path!=v___location_prefix+"/virtual-server/edit_newscripts.cgi"||$('form[action="disable_scripts.cgi"] thead + thead tr th, form[action="disable_scripts.cgi"] tbody + thead tr th, form[action="script_form.cgi"] thead + thead tr th, form[action="script_form.cgi"] tbody + thead tr th').attr("colspan","5"),$.each($(".file_chooser_button_attached"),function(e,t){$(this).prev('input[onclick*=".cgi"]')&&$(this).prev('input[onclick*=".cgi"]').css("width","40px")}),!$t_uri_cloudmin||v___location_path!=v___location_prefix+"/server-manager/add_form.cgi"&&v___location_path!=v___location_prefix+"/server-manager/scan_form.cgi"||$.each($("label"),function(){$(this).find("br").remove()}),(v___location_path==v___location_prefix+"/mysql/view_table.cgi"||v___location_path==v___location_prefix+"/postgresql/view_table.cgi")&&$("td[data-td-e] > table.table-hardcoded")){var $tables=$("form .table.table-striped.table-hover.table-condensed");$tables.addClass("table-resizable").resizeableTableColumns(uri_parse_param("table",vars.source_request)||uri_parse_param("table",vars.source_request)||uri_parse_param("table",v___location_file+"?"+$(vars.previous_request.target).serialize())),$tables.find(".ui_checked_checkbox").length&&$tables.find("thead tr th:first-child").addClass("nonresizable");var $___colspan=$("td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$("td[data-td-e] > table.table-hardcoded").parent("td[data-td-e]").attr("colspan",$___colspan).attr("style","padding: 1px !important;")}if(v___location_path==v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_href&&v___location_href.indexOf("?sched=")>-1&&($("body > div > div > div.panel-body > form > table:nth-child(4) > tbody > tr:nth-child(2) > td").css("display","table-cell"),setTimeout(function(){$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]").next().attr("style","").addClass("btn btn-tiny btn-default")},10)),"/config.cgi"===v___location_path&&$("thead tr th.table-title").prepend('<i class="fa fa-fw fa-cogs vertical-align-text-bottom"></i>&nbsp;&nbsp;'),$.each($('form[action="save_global.cgi"], form[action="save_iptables.cgi"], form[action="save_domain.cgi"],form[action="domain_setup.cgi"],form[action="mass_create.cgi"],form[action="save_roundrobin.cgi"],form[action="save_alert.cgi"], body.time form[action="apply.cgi"]'),function(){$(this).find(".col_header").removeClass("col_header")}),(check_location_resource("/virtual-server/edit_newchangelog.cgi")||check_location_resource("/server-manager/edit_newchangelog.cgi")||check_location_resource("/shell/")||check_location_resource("/shell/index.cgi")||check_location_resource("/server-manager/shell.cgi"))&&$("td.col_value.col_value").removeClass("col_header"),check_location_resource("/ldap-server/edit_ldif.cgi")&&$("span > input.ui_opt_textbox").unwrap(),v___location_path==v___location_prefix+"/server-manager/gvnc.cgi"&&$("body.server-manager p > ").css("height","100%").parent("p").attr("style","display: block; height: "+parseInt($(window).outerHeight()/1.4)+"px"),v___location_path==v___location_prefix+"/spam/edit_simple.cgi"||v___location_path==v___location_prefix+"/spam/edit_header.cgi"){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-xs btn-warning").attr("style","position: absolute; right: 23px; margin-top: 7px !important;")}if(v___location_path==v___location_prefix+"/server-manager/edit_pass.cgi"&&$('form[action="save_pass.cgi"]').find('a[href*="edit_pass.cgi?"]:not(.btn)').length){var target=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:first-child"),container=$(".ui_form .table-responsive table.table.table-striped.table-condensed.table-subtable > thead tr th:last-child"),link=container.find("a");target.append(link),container.remove(),target.find("a").addClass("table_title_links pull-right btn btn-info btn-tiny").attr("style","position: absolute; right: 20px; margin-top: 3px !important;")}if($('.panel-default + a[href="/virtual-server/"]').attr("href",v___location_prefix+"/virtual-server/index.cgi"),$('.panel-default + a[href="/server-manager/"]').attr("href",v___location_prefix+"/server-manager/index.cgi"),v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"acl/"){$("body.acl > div > div > div.panel-body > form > div > table > tbody > tr > td > table > tbody > tr:nth-child(1) > td > table > tbody").attr("style","border: 0 !important");var $t__acl_title=$("br").next(".ui_grid_table.table-hardcoded").find("tbody").addClass("border-global-color").parent("table").prev("br").prev("b");$("br").next(".ui_grid_table.table-hardcoded").css("margin-bottom","3px"),$.each($t__acl_title,function(e,t){""==$(this).text()&&($(this).next("br").remove(),$(this).remove())}),$t__acl_title.attr("style","margin-bottom: -3px !important").next("br").remove()}$('body[class*="bandwidth"]').length&&$(".fa.fa-calendar.file_chooser_button_attached").attr("style","font-size: 11px; margin-top: 9px !important; pointer-events: none; margin-left: -27px !important;"),v___location_path!=v___location_prefix+"/mysql/exec_form.cgi"&&v___location_path!=v___location_prefix+"/postgresql/exec_form.cgi"||($('select[name="old"], input[name="clear"], select[name="charset"]').removeClass("heighter-34").addClass("heighter-28"),$('input[name="clear"]').attr("style","margin-bottom: 3px !important;"),$('select[name="old"]').attr("style","margin-bottom: 3px !important; margin-right: 0 !important;")),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||$('input[name="style"]').parents("td.col_value").parent("tr").after('        <tr>            <td class="col_label"><b>'+theme_language("xsql_fit_content_screen_height")+'</b></td>            <td class="col_value"><span>            <span class="awradio awobject">                <input class="iawobject" name="config_portable_module_xsql_fit_content_screen_height" id="config_portable_module_xsql_fit_content_screen_height_1" value="true"'+(config_portable_module_xsql_fit_content_screen_height?" checked":"")+' type="radio">                <label class="lawobject" for="config_portable_module_xsql_fit_content_screen_height_1">'+theme_language("global_yes")+'</label>                <input class="iawobject" name="config_portable_module_xsql_fit_content_screen_height" id="config_portable_module_xsql_fit_content_screen_height_0" value="false"'+(config_portable_module_xsql_fit_content_screen_height?"":" checked")+' type="radio">                <label class="lawobject" for="config_portable_module_xsql_fit_content_screen_height_0">'+theme_language("global_no")+"</label>            </span>        </span></td>        </tr>    "),core.curModuleFile("virtual-server","edit_limits.cgi")&&0===get_access_level()&&setTimeout(function(){var e="settings_show_webmin_tab_"+$("#headln2c tt").text().replace(/\..*/g,"").replace(/\.|\-/g,"");snippets.inject_extra_option("tr/yes:no",$('input[name="demo"]'),e,theme_language("settings_show_webmin_tab"))},300),$(".ui_post_header.hidden").html()&&$(".ui_post_header.hidden").html().length>5?($("#headln2c").append("<span data-sub_title>"+$(".ui_post_header.hidden").html()+"</span>"),$(".ui_post_header.hidden").remove()):$("#headln2c").append('<p class="margined-bottom-5"></p>')}if(v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){if(!$is_history_action){var status_id="#system-status",$status_panel_content=$(status_id+" .panel-body");!$status_panel_content.text().trim()&&$status_panel_content.parent(status_id).remove(),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/up.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa-lg fa-check text-success"></i>')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/down.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa-lg fa-times-circle text-danger"></i>')}),$('#status_services-status-1-collapse .tr_tag [data-td-e] > img[src*="images/not.gif"]:not(".ui_icon_protected")').each(function(e,t){$(this);$(t).replaceWith('<i class="fa fa-fw fa2 fa2-minus text-warning fa-1_25x vertical-align-middle"></i>')}),$.each($(".piechart"),function(){isNaN($(this).data("percent"))&&$(this).parents(".text-center").remove()}).promise().done(function(){var e=$("span[data-charts]"),t='div[class^="col-md-"]',i=e.parents(".row").find(t).length,a=12/i,n=2===i?"3":"1"===i?"6":"";a=n||a;$.each(e.parents(".row"),function(e,n){if($(this).find(t).removeClass().addClass("col-md-"+(2===i?6:a)+" col-md-"+1.5*a+" col-xs-"+1.5*a+" col-xs-"+2*a+" text-center xx"),3===i){$(this).find(t).last().removeClass("col-xs-6 col-xs-8").addClass("col-xs-12")}})});var sorted_data=$(".__page .panel-group .panel-default").sort(function(e,t){return $(e).data("sorter")>$(t).data("sorter")?1:-1}).appendTo("#extended_sysinfo-1.panel-group");$('span[data-entry="nf_seen"]').parent("button").on("click",function(e){e.preventDefault();var t=$(this),i=$('form[action*="seen_newfeatures.cgi"]');$.ajax({type:"GET",url:i.attr("action"),data:!1,statusCode:{200:function(){t.parents(".panel.panel-default").remove()}}})});var aria_label_attr="aria-label";$.each($(".__page [data-title]:not(["+aria_label_attr+"]), .__page [title]:not(["+aria_label_attr+"])"),function(e,t){$(this).attr(aria_label_attr,$(t).attr("data-title")||$(t).attr("title"))})}snippets.datetime.tictac(1,1),setTimeout(theme_title_generate),$("#live_stats-collapse").on("shown.bs.collapse",function(){if(stats&&stats.general){var e=[];Object.keys(stats.general).forEach(function(t){t.startsWith("chart_")&&e.push(t)}),e.forEach(function(e){var t=stats.general[e];"function"==typeof t.resizeListener&&t.resizeListener()})}})}if($is_history_action)reset_dnd_uploads(),init_dnd_uploads();else{if(v___location_path==v___location_prefix+"/virtual-server/edit_phpmode.cgi"&&$("#hiddendiv_phpinfo table tbody tr").css("border","1px solid #"+(v___theme_night_mode_enabled?"393b3f":"eee")),$.each($('a[href*="showpass.cgi?"][onclick]'),function(){$(this).html('<i class="fa fa-fw fa-lg fa-key margined-left-4"></i>').css("color","#555")}),v___location_path==v___location_prefix+"/webmin/edit_startpage.cgi"&&($('select[name="deftab"]').parents("td.col_value").parent("tr").hide(),$('select[name="gotomodule"] option').each(function(){("virtual-server"==$(this).val()||"server-manager"==$(this).val())&&$(this).remove()})),v___location_path==v___location_prefix+"/webmin/edit_ui.cgi"||v___location_path==v___location_prefix+"/usermin/edit_ui.cgi"){$('select[name*="sysinfo"], select[name*="dateformat"], input[name*="showlogin"], input[name*="showhost"], input[name*="sizefile_def"], input[name*="sizeuser_def"], input[name*="sizemodule_def"], input[name*="sizeusers_def"], input[name*="sizemodules_w"], input[name*="cs_link_def"], input[name*="cs_header_def"], input[name*="cs_table_def"], input[name*="cs_text_def"], input[name*="cs_page_def"], input[name*="width_def"], input[name*="height_def"], input[name*="sizedate_def"], input[name*="texttitles"]').parents("td.col_value").parent("tr").addClass("hidden"),$(".sub_table_container tr td.no-border").parent("tr").addClass("hidden");var $container_ui_interface=$(".container-fluid .panel-body");$container_ui_interface.contents().filter(function(){return 3==this.nodeType}).remove(),$container_ui_interface.find("p").first().remove()}if((check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?server-manager"))&&($('input[name="theme_image"], input[name="theme_link"], input[name="theme_alt"]').parents("td.col_value").parent("tr").hide(),0===$('input[name="show_sysinfo"]:checked').length&&$('input[name="show_sysinfo"][value="1"]').attr("checked","checked")),v___location_path==v___location_prefix+"/virtual-server/edit_resel.cgi"&&$('input[name="logo"][id="logo"], input[name="link"]').parents("td.col_value").parent("tr").hide(),v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"){$('.container-fluid tr td:last-child label:contains("|")').replaceText(/\|/gi,"");var $targets_features_and_plugins_links=$(".container-fluid td a.ui_link");$targets_features_and_plugins_links.addClass("ui_link_replaced btn btn-transparent btn-link-bordered f__lnk_t_btn-el margined-left--2 btn-xxs").removeClass("heighter-34").removeClass("ui_link btn-inverse btn-tiny").prepend('<i class="fa fa-fw fa-eye hidden" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>'),$.each($targets_features_and_plugins_links,function(){var e=$(this).parent();e.is(".ui_links_row")&&(e.parent().is("label")&&e.parent().contents().unwrap(),e.contents().unwrap()),$(this).parents("td.cursor-pointer").attr("data-td-e",1)})}if($("#headln2l .btn .fa-arrow-left").length){$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1||$("#headln2l .btn .fa-arrow-left").parent("a").attr("href",$("#headln2l .btn .fa-arrow-left").parent("a").attr("href").replace("index.cgi",""));var v___URI=URI(v___location);v___location_file=v___URI.filename()}$("#headln2r, #headln2l").prepend('<div class="btn-group-vertical-small"><div class="btn-group">').append("</div></div>"),$("#headln2r a").detach().appendTo("#headln2r .btn-group"),$("#headln2l a").detach().appendTo("#headln2l .btn-group"),$.support.spa||$("body").hasClass("file-manager")||$("#headln2l .btn-group").prepend('<a href="'+v___location_prefix+'/" data-container="body" class="btn btn-link text-lighter pd-lf-10 pd-rt-10" data-placement="auto top" data-toggle="tooltip" data-title="'+theme_language("return_home")+'"><i class="fa fa-home fa-md"></i></a>'),$.support.spa||$("body").hasClass("file-manager")||get_server_data("data-slider-fixed",0),$.each($(".ui_form_end_submit"),function(){if(v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"&&v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"&&"edit_dbase.cgi"!=v___location_file&&"edit_pam.cgi"!=v___location_file&&"list_records.cgi"!=v___location_file&&!core.curModule("mailbox")&&!core.curModule("mailboxes")){var e=$(this).parent().find(".ui_form_end_submit");!e.parents(".btn-group").length&&e.length>1&&$(this).parent().find(".ui_form_end_submit, .ui_form_end_submit + input").wrapAll('<div class="btn-group end_submits"></div>')}}).promise().done(function(){$.each($(".end_submits"),function(e,t){($(this).prev(".heighter-28").length||"28px"==$(this).prev("input, select").css("height"))&&$(this).find(".ui_form_end_submit").addClass("heighter-28");var i=$('select[name*="parentuser"]').first();if(core.curModule("virtual-server")&&1===i.length){var a=i.addClass("heighter-34 pull-left").attr("style","margin-top: -1px !important; margin-right: -1px;").detach();$('button[name="add1"] + input').after(a)}})}),$.each($(".btn-group").find("span"),function(){$(this).not("[class]").length&&!$.trim($(this).text()).length&&$(this).remove()}),2===$(".panel-default").nextAll("a.btn.btn-primary").length&&$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left"),3===$(".panel-default").nextAll("a.btn.btn-primary").length&&($(".panel-default").next("a.btn.btn-primary").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-left"),$(".panel-default").next("a.btn.btn-primary").find(".fa.fa-arrow-left").removeClass("fa-arrow-left").addClass("fa-arrow-circle-o-left")),v___location_path==v___location_prefix+"/init/reboot.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-warning"),v___location_path==v___location_prefix+"/init/shutdown.cgi"&&$("input.btn-success").removeClass("btn-success").addClass("btn-danger"),$.support.spa||page_display(),$("table tr.thead td").addClass("tdhead"),(core.curModuleFile("virtual-server","edit_newchroot.cgi")||core.curModuleFile("virtual-server","edit_newglobal.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","edit_newshells.cgi")||core.curModuleFile("virtual-server","view_backuplog.cgi")||core.curModuleFile("virtual-server","edit_phpver.cgi")||core.curModuleFile("virtual-server","edit_spf.cgi")||core.curModuleFile("virtual-server","ratelimit.cgi")||core.curModuleFile("virtual-server","edit_newfields.cgi")||core.curModuleFile("server-manager","edit_docker.cgi")||core.curModuleFile("server-manager","edit_vserver.cgi")||core.curModuleFile("server-manager","edit_zone.cgi")||core.curModuleFile("server-manager","edit_openvz.cgi")||core.curModuleFile("server-manager","list_locations.cgi")||core.curModuleFile("server-manager","edit_lxc.cgi")||core.curModuleFile("server-manager","list_ips.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("cron","edit_cron.cgi")||core.curModuleFile("cluster-copy","edit.cgi")||core.curModuleFile("cluster-cron","edit.cgi")||core.curModuleFile("webalizer","edit_log.cgi")||core.curModuleFile("apache","edit_global.cgi")||core.curModuleFile("logrotate","edit_sched.cgi")||core.curModuleFile("fetchmail","edit_cron.cgi")||$('body[class*="bind8"]').length&&v___location_file||$('body[class*="status"]').length&&"edit_mon.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_sql.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_cmd.cgi"==v___location_file||$('body[class*="custom"]').length&&"edit_file.cgi"==v___location_file)&&$(".table:not(.opener_table_style)").removeClass("table-hover").addClass("no-hover");var dynamic_switch_off_on=$(".fa-toggle-switch-off").parent("button.btn-default");if(1===dynamic_switch_off_on.length){var dynamic_switch__val=dynamic_switch_off_on.parent("td").find('input[type="radio"]:checked').val();"1"==dynamic_switch__val&&dynamic_switch_off_on.find(".fa-toggle-switch-off").addClass("fa-toggle-switch").removeClass("fa-toggle-switch-off")}var $parent_td=dynamic_switch_off_on.parents("td");$parent_td.find('[type="radio"]').length&&$parent_td.addClass("vertical-align-bottom");var my_editor_page=$('form[action*="manual"] > select[name="file"], form[action*="manual.cgi"] > select[name="manual"], form[action*="edit_"] > select[name="file"]');my_editor_page.length&&(my_editor_page.addClass("heighter-34"),$('form[action*="manual"], form[action*="edit_"]').css("margin-bottom","2px")),core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] button').addClass("heighter-28-force")),$('body[class*="proftpd"] .table-hardcoded tr td > input + input.btn.btn-default').removeClass("heighter-28").addClass("heighter-34").prev("input").addClass("heighter-34"),$('body[class*="proftpd"] form[action="find_ftpaccess.cgi"] > input:first-child').removeClass("heighter-34").addClass("heighter-28"),"edit_simple.cgi"==v___location_file&&$('body[class*="spam"]').length&&$("tr td").contents().filter(function(){return 3==this.nodeType}).remove(),"edit_awl.cgi"==v___location_file&&$('body[class*="spam"]').length&&$('input[name="user"]').next("input").addBack().addClass("heighter-34"),core.curModuleFile("usermin","list_sessions.cgi")&&$('.container-fluid #user, .container-fluid input[type="button"]').addClass("heighter-34"),(core.curModuleFile("htaccess-htpasswd","")||core.curModuleFile("htaccess-htpasswd","index.cgi"))&&($("#search, .chooser_button").addClass("heighter-34").css("margin-bottom","-1px"),$("#search").css("margin-top","1px"),$('form[action*="search.cgi"] .ui_form_end_submit').css("margin-top","2px").css("margin-right","-4px")),(core.curModuleFile("mailboxes","")||core.curModuleFile("mailboxes","index.cgi"))&&($("#user").addClass("heighter-34 vertical-align-middle margined-bottom-1"),$(".chooser_button").addClass("margined-top-2 margined-bottom-2")),core.curModuleFile("mailboxes","list_mail.cgi")&&$("#mfolder1, #mfolder2").addClass("heighter-34").css("margin-bottom","-1px").css("margin-top","-1px"),core.curModuleFile("quota","list_users.cgi")&&$("#user, #user + input").addClass("heighter-34"),core.curModuleFile("quota","list_groups.cgi")&&$("#group, #group + input").addClass("heighter-34"),(core.curModuleFile("apache","htaccess.cgi")||core.curModuleFile("virtualmin-registrar","index.cgi")||core.curModuleFile("virtualmin-registrar",""))&&$(".ui_form_end_submit").addClass("heighter-28-force");var attempt_make_all_elem=$('form:not([action="save_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select,                               form:not([action="save_log.cgi"], [action="save_net.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > input,                               form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > select,                               form:not([action="save_user.cgi"], [action="save_group.cgi"]) .table td.opener_container td.col_value table tbody tr td > input,                               form[action="save_newglobal.cgi"] > table tbody tr td input,                               form[action="save_newfields.cgi"] > table tbody tr td input,                               form[action="save_newfields.cgi"] > table tbody tr td select,                               form[action="save_newshells.cgi"] > table tbody tr td select,                               form[action="save_newshells.cgi"] > table tbody tr td input,                               form[action="save_linkcats.cgi"] > table tbody tr td input,                               form[action="save_gen.cgi"] > table tbody tr td input                               ');$.each(attempt_make_all_elem,function(e,t){$(this).parent().find("input[data-mmclick]").length||$(this).parent().find("button[data-mmclick]").length||$(this).parent().find('input[onclick*="window.open"]').length||$(this).parent().find('button[onclick*="window.open"]').length||($(this).prev(".awobject").length?$(this).css("width","auto"):1==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length?$(this).css("width","100%").css("min-width","100%"):2==$(this).parent().find('input:not([type="checkbox"], [type="radio"]), select').length&&($(this).parent().find("input, select").first().css("width","39%"),$(this).parent().find("input, select").last().css("width","60%").css("float","right")))});var $edit_new_style_target=$('a[onclick^="window.open(\\"thumb_style.cgi?"]');if(core.curModuleFile("virtual-server","edit_newstyles.cgi")?$edit_new_style_target.html('<i class="fa fa-fw fa-external-link"></i>').addClass("btn btn-transparent btn-link-bordered btn-xxs margined-top--3"):core.curModule("virtual-server")&&$edit_new_style_target.html('<i class="fa fa-fw fa-external-link" style="margin-top: 7px;"></i>').addClass("btn btn-transparent btn-link-bordered heighter-28-force"),$edit_new_style_target.on("click",function(e){e.stopPropagation()}),core.curModuleFile("virtual-server","edit_html.cgi")){$('.ui_form_end_submit:not([name="create"], [name="cancel"], [name="save"], [name="delete"])').addClass("heighter-28-force");var is_html_mode_edit_web_pages=-1!==v___location_query.indexOf("editok")||-1!==v___location_query.indexOf("createok"),is_text_mode_edit_web_pages=-1!==v___location_query.indexOf("textok");is_html_mode_edit_web_pages&&$("#body").length?($("#editok").removeClass("btn-default").addClass("btn-grey"),$("#body").css("display","none"),$("hr + b").addClass("hidden"),$("#body").after('<div class="display-inline-block text-center __tmp__spinner" style="margin-top: -35px;"><span class="cspinner" style="margin-top:18px; position: relative"><span class="cspinner-icon"></span></span></div>'),editor_html_init(["body",2,!0,"edit_web"])):is_text_mode_edit_web_pages&&($("#textok").removeClass("btn-default").addClass("btn-grey"),editor_init_check()&&editor_init($(".container-fluid > .panel > .panel-body textarea"),!1,!1,"static",!1,!0,!1,$is_history_action)),$(".ui_form_end_submit").click(function(){set_onbeforeunload_status(0,0)}),$("input:file").change(function(){var e=$(this);setTimeout(function(){$('form[action*="upload_html.cgi"]').append(e)},500)})}var $magic_button_selector='        body button[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]),        body input[onclick*="window.open"][onclick*="choose"][onclick*="chooser.cgi"]:not([onclick*="_chooser.cgi"]),                body button[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="cron_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="standard_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="third_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="user_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="group_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="my_group_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="interface_chooser.cgi"],                body button[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"],        body input[onclick*="window.open"][onclick*="choose"][onclick*="module_chooser.cgi"]    ';if($($magic_button_selector).length&&$($magic_button_selector).each(function(){$(this).attr("data-mmclick",$(this).attr("onclick")).removeAttr("onclick"),plugins.chooser.target($(this),0)}),core.curModuleFile("virtualmin-nginx","")||core.curModuleFile("virtualmin-awstats","")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtual-server","edit_newlinks.cgi")||core.curModuleFile("virtualmin-dav","list_shares.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"pam/"&&!v___location_file||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"&&(!v___location_file||"index.cgi"===v___location_file)||v___location_path==v___location_prefix+"/postfix/master.cgi"){var obj=$('.panel-body > .ui_link, .panel-body > .ui_link_replaced,                 body[data-uri*="virtualmin-awstats"] .panel-body > form > .ui_link_replaced,                 body[data-uri*="edit_disk.cgi"] .panel-body p > a.ui_link_replaced,                 body[data-uri*="edit_newlinks.cgi"] .panel-body > form > .ui_link_replaced,                 body[data-uri*="edit_newlinks.cgi"] .panel-body > .ui_emptymsg + p > .ui_link_replaced'),text=$.trim(obj.first().text()),href=obj.first().attr("href");"undefined"!=typeof settings_hidden_force_table_header_links?href&&($("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('          <a href="'+($.support.spa?v___location_directory_trail_slashed:"")+href+'" class="btn btn-link text-lighter text-decoration-none pull-left" data-container="body" data-toggle="tooltip" data-title="'+text+'">          <i class="fa fa-plus"></i>          </a>          '),obj.next("br").remove(),obj.remove()):(obj.addClass("btn btn-inverse btn-tiny ui_link_replaced"),obj.find(".fa").length||obj.prepend('<i class="fa fa-fw fa-plus-square-o"> </i> '))}if(v___theme_night_mode_enabled||v___theme_night_mode){if($(".opener_shown").length>0){var __tmp_ui_grinTable=$(".opener_container, .opener_container:hidden").find(".ui_grid_table, .ui_grid_table:hidden");__tmp_ui_grinTable.length&&$.each(__tmp_ui_grinTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important")})}if($(".opener_table_style_small").length>0){var __tmp_ui_hardTable=$(".opener_table_style_small, .opener_table_style_small:hidden").find(".sub_table_container.table-hardcoded, .sub_table_container.table-hardcoded:hidden");__tmp_ui_hardTable.length&&$.each(__tmp_ui_hardTable,function(e,t){$(this).parent("td").attr("style","padding: 0 !important"),$(this).find("tbody tr td").attr("style","padding-left: 3px !important; padding-right: 3px !important")})}}if($('html[data-script-name*="webmin/edit_assignment.cgi"] table table tbody tr td, html[data-script-name*="usermin/edit_assignment.cgi"] table table tbody tr td').hover(function(){$(this).is("td:nth-child(1)")||$(this).is("td:nth-child(3)")?$(this).addClass("hl-ow").next("td").addClass("hl-ow"):($(this).is("td:nth-child(2)")||$(this).is("td:nth-child(4)"))&&$(this).addClass("hl-ow").prev("td").addClass("hl-ow")},function(){$(this).removeClass("hl-ow").next("td").removeClass("hl-ow"),$(this).removeClass("hl-ow").prev("td").removeClass("hl-ow")}),(core.curModuleFile("server-manager","edit_pass.cgi")&&!v___location_query.includes("force=1")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFileQuery("virtualmin-registrar","edit.cgi","registrar=")||core.curModuleFileQuery("htaccess-htpasswd","edit_user.cgi","new=")||core.curModuleFile("useradmin","edit_group.cgi")||core.curModuleFile("useradmin","edit_user.cgi"))&&setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style",""),$("#headln2r .btn-group").prepend('        <a class="btn btn-link text-lighter text-decoration-none pull-left generate-password-key-g" data-nref data-placement="auto top" data-toggle="tooltip" data-title="'+Convert.strUpInitial(theme_language("password_generator_new"))+'">            <i class="fa fa-1_25x fa-key-plus" style="width: 14px; margin-left: -3px;"></i>        </a>    ')},0),0==v___user_level||(settings_side_slider_enabled=!1,settings_side_slider_enabled=!1,get_server_data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),core.curModuleFile("bind8","edit_zonekey.cgi")&&g__text_breaker($("textarea#ds"),$("#headln2c").find("span[data-sub_title]").text()),core.curModuleFile("virtual-server","edit_script.cgi")&&$('select[name="version"]').addClass("heighter-34 margined-top-4"),core.curModuleFile("virtual-server","transfer_form.cgi")&&$('input[name="newttl"]').addClass("heighter-34"),core.curModule("passwd")&&$('.container-fluid .panel-body input[name="user"]').addClass("heighter-34"),$.each($(".gl-icon-container"),function(e,t){$(this).find("a:first").find("i.fa-edit").length||($(this).find("a:first").prepend('<i aria-label="'+theme_language("select_deselect")+'" class="fa fa-fw fa-lg fa-select text-dark text-dark-hoverd gl-icon-select"></i>'),$(this).find("a:first").prepend('<i aria-label="'+theme_language("edit_current")+'" class="fa fa-fw fa-edit text-semi-dark text-dark-hoverd gl-icon-edit"></i>'))}),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header"),v___module!=v___module_file_manager&&("config.cgi"===v___location_file||"uconfig.cgi"===v___location_file||"settings-user.cgi"===v___location_file)){var visibility=[];"settings-user.cgi"===v___location_file&&(visibility=[1,0,0]),page.render.module_config(visibility)}var $file_upload_inputs=$('input[type="file"]:not([name="upfiles"])');core.curModule("updown")||core.curModuleFile("updown","index.cgi")?init_dnd_uploads():$file_upload_inputs.bootstrapFileInput()}function reset_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('form.ui_form[action*="upload.cgi"]'),t=e.find(".ui_submit.ui_form_end_submit"),i=e.find(".file-input-wrapper");theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(e),despinnerfy_buttons(0,t),i.find("span").remove(),i.contents().unwrap()}}function init_dnd_uploads(){if(core.curModule("updown")||core.curModuleFile("updown","index.cgi")){var e=$('input[type="file"]:not([name="upfiles"])'),t='form.ui_form[action*="upload.cgi"]',i=$(t+" .ui_submit.ui_form_end_submit");$(t+' input[name^="upload"]:not([name="upload0"])').remove(),e.bootstrapFileInput(["dnd dnd_updown",i]),i.addClass("disabled"),plugins.upload($("#att_upload .ui_form")),init_dnd_form($(t))}}function init_dnd_form(e){e.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("drop",function(e){droppedFiles=e.originalEvent.dataTransfer.files,$(this).trigger("input").find('input[type="file"]').prop("files",droppedFiles).trigger("change.fiw")}),e.find(".file-input-wrapper").on("dragover dragenter",function(){$(this).addClass("pulse")}).on("dragleave dragend drop",function(){$(this).removeClass("pulse")})}if(core.curModuleFile("virtual-server","index.cgi")||core.curModuleFile("virtual-server","")){var ui_checked_columns="ui_checked_columns",class_sel="."+ui_checked_columns,$checked_columns=v___page_container.find(class_sel),extra_selector=$checked_columns.length?class_sel:'a[href*="edit_domain.cgi"]';$('a[href*="list_users.cgi"], a[href*="list_aliases.cgi"], '+extra_selector).on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(class_sel)&&(t=$(this).find("a").first()),plugins.navigation.intersect.virtualmin(t))})}(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager","")||vars.requested_page&&vars.requested_page.includes("/server-manager/index.cgi"))&&$('a[href*="mass_update_form.cgi"], .ui_checked_columns').on("click",function(e){var t=$(this);t.off("click"),$(e.target).is('input[type="checkbox"]')||(t.is(".ui_checked_columns")&&(t=$(this).find("a").first()),plugins.navigation.intersect.cloudmin(t))});var codemirror_target_cnt=".container-fluid > .panel > .panel-body";if(editor_init_check()&&editor_init($(codemirror_target_cnt+" textarea"),!1,!1,"static",!1,!0,!1,$is_history_action),core.curModule("cshrc")||core.curModule("plan")||core.curModuleFile("virtual-server","mass_aedit_form.cgi")){var cshrc1=$(codemirror_target_cnt+" form:eq(0) > textarea:visible"),cshrc2=$(codemirror_target_cnt+" form:eq(1) > textarea:visible");$is_history_action&&page_refresh(1),cshrc2.length?(editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.36),editor_init(cshrc2,!1,!1,"static2",!0,!1,!1,$is_history_action,.36)):editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,$is_history_action,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/sysinfo.cgi"){var isNR=v___theme_night_mode_enabled||v___theme_night_mode?1:0;$("body").find("#system-status").find(".piechart").easyPieChart({barColor:function(e){return e<50?isNR?"#269373":"#5cb85c":e<85?isNR?"#c38d40":"#f0ad4e":"#cb3935"},trackColor:isNR?"#3b424b":"#f8f8f8",scaleColor:isNR?"#3b424b":"#dfe0e0",size:parseInt(settings_sysinfo_easypie_charts_size),scaleLength:parseInt(settings_sysinfo_easypie_charts_scale),trackWidth:parseInt(settings_sysinfo_easypie_charts_width),lineWidth:0,lineCap:"square",onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}if(((-1===v___location_path.indexOf(".cgi")||-1!==v___location_path.indexOf("link.cgi")||v___location_path==v___location_prefix+"/proc/open_files.cgi"||v___location_path==v___location_prefix+"/webmin/edit_webmincron.cgi"||v___location_path==v___location_prefix+"/postfix/mailq.cgi"||v___location_path==v___location_prefix+"/webmin_search.cgi"||v___location_path==v___location_prefix+"/useradmin/index.cgi"||v___location_path==v___location_prefix+"/quota/list_users.cgi"||v___location_path==v___location_prefix+"/quota/list_groups.cgi"||v___location_path==v___location_prefix+"/init/index.cgi")&&(v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webmin/"&&-1===v___location_prefix.indexOf("servers/link.cgi")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"proc/"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"webmin_search.cgi"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"postfix/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"virtual-server/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"init/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mount/"||core.curModule("custom")||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"quota/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"php-pear/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fsdump/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"inittab/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"logrotate/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"mailcap/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cron/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"software/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"syslog/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"useradmin/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"apache/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"webalizer/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"cpan/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"htaccess-htpasswd/"||v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"fdisk/")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("cron","index.cgi")||core.curModuleFile("cluster-cron","")||core.curModuleFile("cluster-cron","index.cgi")||core.curModuleFile("cluster-copy","")||core.curModuleFile("cluster-copy","index.cgi")||core.curModuleFile("virtual-server","postgrey.cgi")||core.curModuleFile("virtual-server","list_balancers.cgi")||core.curModuleFile("virtualmin-dav","list_shares.cgi")||core.curModuleFile("ruby-gems","index.cgi")||core.curModuleFile("postfix","master.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("postfix","aliases.cgi")||core.curModuleFile("fail2ban","list_filters.cgi")||core.curModuleFile("fail2ban","list_actions.cgi")||core.curModuleFile("fail2ban","list_jails.cgi")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFile("virtual-server","connectivity.cgi")||core.curModuleFile("fdisk","edit_disk.cgi")||core.curModuleFile("virtualmin-git","")||core.curModuleFile("virtualmin-git","index.cgi")||core.curModuleFile("virtualmin-svn","")||core.curModuleFile("virtualmin-svn","index.cgi")||core.curModuleFile("help","search.cgi")||core.curModuleFile("server-manager","edit_domains.cgi")||core.curModuleFile("net","list_ifcs.cgi")||core.curModuleFile("net","list_hosts.cgi")||core.curModuleFile("bind8","edit_recs.cgi")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("bind8","")||core.curModuleFile("cpan","index.cgi")||core.curModuleFile("virtual-server","list_records.cgi")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("ruby-gems")||v___location_path==v___location_prefix+"/at/"||v___location_path==v___location_prefix+"/at/index.cgi"||v___location_path==v___location_prefix+"/useradmin/list_logins.cgi"||v___location_path==v___location_prefix+"/man/search.cgi"||v___location_path==v___location_prefix+"/proc/index_tree.cgi"||v___location_path==v___location_prefix+"/proc/index_user.cgi"||v___location_path==v___location_prefix+"/proc/index_size.cgi"||v___location_path==v___location_prefix+"/proc/index_cpu.cgi"||v___location_path==v___location_prefix+"/proc/index_search.cgi"||v___location_path==v___location_prefix+"/software/search.cgi"||v___location_path==v___location_prefix+"/software/file_info.cgi"||v___location_path==v___location_prefix+"/software/list_pack.cgi"||v___location_path==v___location_prefix+"/cluster-software/list_pack.cgi"||v___location_path==v___location_prefix+"/virtual-server/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/list_users.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newplan.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newfeatures.cgi"||v___location_path==v___location_prefix+"/virtual-server/edit_newtmpl.cgi"||v___location_path==v___location_prefix+"/virtual-server/backuplog.cgi"||v___location_path==v___location_prefix+"/package-updates/"||v___location_path==v___location_prefix+"/package-updates/index.cgi"||v___location_path==v___location_prefix+"/package-updates/update.cgi"||v___location_path==v___location_prefix+"/security-updates/index.cgi"||v___location_path==v___location_prefix+"/virtual-server/usage.cgi"||v___location_path==v___location_prefix+"/virtual-server/search.cgi"||v___location_path==v___location_prefix+"/fetchmail/"||v___location_path==v___location_prefix+"/filter/")&&$(".__page table.table").each(function(){table_data_init($(this))}).promise().done(function(){page.render.content.filter.init()}),$(".select_all").on("click",function(){var e=$(this).parents("form");e.find('.icons-row div[class*="icons-container"]').length&&$.each(e.find(".icons-row .hidden-forged-6"),function(){$(this).parents('div[class*="icons-container"]').addClass("highlighted").find(".fa-select").removeClass("fa-select").addClass("fa-selected")})}),$(".select_invert").on("click",function(){var e=$(this).parents("form");$.each(e.find(".icons-row .hidden-forged-6"),function(){var e=$(this).parents('div[class*="icons-container"]');$(this).find("input").is(":checked")?e.addClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-select").addClass("fa-selected"):e.removeClass("highlighted").find(".fa-select, .fa-selected").removeClass("fa-selected").addClass("fa-select")})}),$('.icons-row div[class*="icons-container"]').on("mouseover",function(e){$(this).find(".hidden-forged-7").removeClass("hidden-forged")}).on("mouseout",function(e){$(this).find(".hidden-forged-7").addClass("hidden-forged")}),"?dashboard"!=v___location.search&&1==plugins.navigation.switch.dashboard.get()&&("sysinfo.cgi"==v___location_file?(plugins.navigation.switch.set("dashboard"),plugins.navigation.reset()):$("#open_webmin").length>0&&"open_webmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("webmin"):$("#open_virtualmin").length>0&&"open_virtualmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("virtualmin"):$("#open_cloudmin").length>0&&"open_cloudmin"!=$(".switch-toggle input:checked").attr("id")?plugins.navigation.switch.set("cloudmin"):$("#open_usermin").length>0&&"open_usermin"!=$(".switch-toggle input:checked").attr("id")&&plugins.navigation.switch.set("usermin")),$('form[action="bootup.cgi"]').on("submit",function(e){$("#starting").length>0?($("#starting").remove(),$(this).append('<input type="hidden" id="starting" name="starting" value="'+$('input[name="boot"]:checked').val()+'">')):$("#table").length>0?$(this).append('<input type="hidden" id="table" name="table" value="'+$('input[name="boot"]:checked').val()+'">'):$('input[name="boot"][type="hidden"]').length>0&&($('input[name="boot"][type="hidden"]').remove(),$(this).append('<input type="hidden" name="boot" value="'+$('input[name="boot"]:checked').val()+'">'))}),$('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change",function(){var e=$(this).attr("name"),t="true"==$(this).val();localStorage.setItem(v___server_hostname+"-"+e,t),window[e]=t,theme_config("save")}),$('.ui_form_end_submit[onclick^="window.open"]').click(function(){var e=$(this);setTimeout(function(){e.removeClass("disabled"),plugins.navigation.load.stop()},100)}),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1){sysinfo_replace_dismiss_buttons(),$("body").undelegate(".piechart canvas","mouseover mouseleave"),$("body").on("mouseover",".piechart canvas",function(){var e=$(this).parent("span").attr("data-charts").split("_")[1];("cpu"!=e&&"mem"!=e&&"virt"!=e||core.moduleAvailable("proc"))&&("disk"!=e||core.moduleAvailable("disk-usage")||core.moduleAvailable("quota"))&&$(this).addClass("cursor-alias")}),$("body").undelegate("canvas","click"),$("body").on("click","canvas",function(e){e.preventDefault();var t,i=$(this).parent("span").attr("data-charts").split("_")[1];"cpu"==i&&core.moduleAvailable("proc")?t=v___location_prefix+"/proc/index_cpu.cgi":"mem"!=i&&"virt"!=i||!core.moduleAvailable("proc")?"disk"==i&&core.moduleAvailable("disk-usage")?t=v___location_prefix+"/disk-usage":"disk"==i&&core.moduleAvailable("quota")&&(t=v___location_prefix+"/quota/list_users.cgi?dir=%2F"):t=v___location_prefix+"/proc/index_size.cgi",t&&t.length&&get_pjax_content(t)}),page_sysinfo_sensor_update_label(),"0"==v___user_level&&plugins.slider.data.fetch();var chart_size_def_value=172;if(settings_sysinfo_easypie_charts_size!=chart_size_def_value){var diff=parseInt(settings_sysinfo_easypie_charts_size-chart_size_def_value),position_diff_label=.9*diff,position_diff_percent=.2*diff,font_diff_label=settings_sysinfo_easypie_charts_size<chart_size_def_value?settings_sysinfo_easypie_charts_size<chart_size_def_value-20?"8px":"8.5px":"9px",font_diff_percent=settings_sysinfo_easypie_charts_size<chart_size_def_value?settings_sysinfo_easypie_charts_size<chart_size_def_value-20?"1.6em":"1.7em":"1.8em",$piechart_label=$(".piechart .data-cnt .label"),piechart_label_right=parseInt($piechart_label.css("right")),piechart_label_bottom=parseInt($piechart_label.css("bottom")),$piechart_percent=$(".piechart .data-cnt .percent"),piechart_percent_top=parseInt($piechart_percent.css("top")),piechart_percent_left=parseInt($piechart_percent.css("left"));$piechart_label.css({bottom:parseInt(piechart_label_bottom-position_diff_label),right:parseInt(piechart_label_right-position_diff_label),fontSize:font_diff_label}),$piechart_percent.css({top:parseInt(piechart_percent_top+position_diff_percent),left:parseInt(piechart_percent_left+position_diff_percent),fontSize:font_diff_percent})}table_data_init($("#extended_sysinfo-1 #updates-virtual-server-1-collapse .table.table-condensed, #extended_sysinfo-1 #mount_disks_info-mount-1-collapse .table.table-condensed, #extended_sysinfo-1 #acl_logins-acl-1-collapse .table.table-condensed"));var $target_disk_usage=$('#extended_sysinfo-1 div[data-referrer="mount_disks_info"]'),table_responsive_sel=".table-responsive";$target_disk_usage.on("onresize",function(){window.matchMedia("(max-width: 1080px)").matches?$(this).find(table_responsive_sel).width(window.innerWidth-72):$(this).find(table_responsive_sel).width("auto")})}if($t_uri_virtualmin&&core.curModuleFileQuery("syslog","save_log.cgi","view=1")&&($('select[name="idx"] option').filter(function(){return this.text==$.trim($("span[data-sub_title] tt").text())}).attr("selected",!0),$('select[name="idx"]').addClass("hidden")),core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")){var target=".panel-body .fa-refresh-fi",current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),current_icon_class_str=".fa-refresh-fi",refresh_timer_str=".refresh-timer-timeout",btn_str=target+", .panel-body "+refresh_timer_str,timeout_box='<span class="label label-transparent-35 label-sm margined-top-1 refresh-timer-timeout">'+(current_refresh_timer||"0")+"&nbsp;</span>";$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).addClass("btn-xxs").find("i").attr("data-processed",1),$(this).wrap('<div class="btn-group'+(1===e?" dropup":"")+'"></div>'),$(this).after('<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown" data-original-title="" title="" aria-expanded="false"><i class="fa fa-caret-down"></i></button><ul class="dropdown-menu dropdown-menu-right refresh-timer-select"><li><a data-off data-timeout="0">'+theme_language("global_automatic_refresh")+": "+theme_language("global_off")+'</a></li><li class="divider"></li><li><a data-on data-timeout="5">5 '+theme_language("global_seconds")+'</a></li><li><a data-on data-timeout="15">15 '+theme_language("global_seconds")+'</a></li><li><a data-on data-timeout="30">30 '+theme_language("global_seconds")+'</a></li><li><a data-on data-timeout="60">60 '+theme_language("global_seconds")+'</a></li><li><a data-on data-timeout="120">2 '+theme_language("global_minutes")+'</a></li><li><a data-on data-timeout="300">5 '+theme_language("global_minutes")+"</a></li></ul>"),current_refresh_timer&&"0"!=current_refresh_timer){var i=$(btn_str);$(this).find("i").before(timeout_box),$(this).find("i").remove();var a=current_refresh_timer;"number"==typeof refreshTimer&&clearInterval(refreshTimer),refreshTimer=setInterval(function(){--a,$(refresh_timer_str).text(a),a<=0&&($(i[0]).parent().trigger("click"),clearInterval(refreshTimer))},1e3)}}).promise().done(function(){$(".refresh-timer-select li").click(function(){"number"==typeof refreshTimer&&clearInterval(refreshTimer);var e='<span class="label label-transparent-35 label-sm margined-top-1 refresh-timer-timeout">'+(current_refresh_timer||"0")+"&nbsp;</span>";localStorage.setItem(v___server_hostname+"-option_"+v___module+"_refresh",$(this).find("a").data("timeout")),current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh");var t=$(btn_str).parent();if(current_refresh_timer&&"0"!=current_refresh_timer){t.find(refresh_timer_str).length||t.prepend(e),t.find(refresh_timer_str).html(current_refresh_timer+"&nbsp;"),$(current_icon_class_str).remove();var i=current_refresh_timer;refreshTimer=setInterval(function(){if(--i,$(refresh_timer_str).text(i),i<=0){var e=$(btn_str);$(e[0]).parent().trigger("click"),clearInterval(refreshTimer)}},1e3)}else $(refresh_timer_str).remove(),!t.find(current_icon_class_str).length&&t.prepend('<i class="fa fa-fw fa-refresh-fi fa-1_25x refresh-timer-icon"></i>')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"]'),function(){$(this).on("change",function(){var e=$("button.ui_submit.ui_form_end_submit");$(this).next().next('[name="filter"]').val(""),e.first().trigger("click"),e.addClass("disabled")})})}if(core.curModuleFile("virtual-server","summary_domain.cgi")&&$(".__page #headln2l .btn-group, .__page .page_footer_submit").remove(),settings_side_slider_enabled&&(core.curModule("package-updates")&&plugins.slider.notifications.dismiss("package_message"),core.curModule("csf")&&(plugins.slider.notifications.dismiss("csf_remote_version"),plugins.slider.notifications.dismiss("csf_title"))),snippets.tooltips(!0),
// $('[data-dcontainer="1"] [data-toggle="tooltip"], [data-dcontainer="1"] [data-toggle="virtualmin-license"], [data-dcontainer="1"] .panel-body td a, [data-dcontainer="1"] .icons-container').tooltip('destroy');
//   selector: '[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',
$.support.spa&&(window.matchMedia("(max-width: 1080px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.navigation.lock(),$.support.spa&&(window.matchMedia("(max-width: 1365px)").matches||"1"==$("html").attr("data-navigation-collapsed")&&!vars.navigation_pinned)&&plugins.slider.state(),"undefined"!=typeof v___user_level&&0!=v___user_level&&(settings_right_virtualmin_default="sysinfo.cgi",settings_right_cloudmin_default="sysinfo.cgi"),$is_history_action||(core.curModuleFile("mysql","view_table.cgi")||core.curModuleFile("postgresql","view_table.cgi"))&&$.each($('select[name="field"]'),function(){var e=$(this),t=e.nextAll().add(this),i=e.parent("td"),a=i.parent("tr").find('form[action="view_table.cgi"]').first().addClass("inline-block"),n=a.nextAll('input[name="search"], input[name="db"], input[name="table"]').slice(0,3);e.parent("td").prev("form");a.append(n.detach()),i.append(a.detach()),i.find("form").append(t.detach())}),$("body").hasClass("session_login")&&setTimeout(function(){page_display()},200),theme_to_new_tab(),core.curModuleFile("acl","save_twofactor.cgi")&&setTimeout(function(){var e=$("p > img"),t=e.attr("src");e.attr("src",t.replace(v___location_prefix+"/"+v___module+"/",""))},0),v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/edit_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/kill_proc.cgi"||v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"proc/renice_proc.cgi"){var proc_nice_level='form[action*="renice_proc.cgi"]',proc_nice_pid=$(proc_nice_level).next('input[name="pid"]'),proc_target=$('.col_value select[name="nice"]').parent("td"),proc_target_content=proc_target.html();$(proc_nice_level).append(proc_nice_pid.detach(),proc_target_content),proc_target.html($(proc_nice_level).detach()),$('.proc form[action*="kill_proc.cgi"]').on("submit",function(){var e=quirks.active_element(),t=$(this).find("input").filter(function(){return"pid"!=this.name&&"signal"!=this.name&&this.name!=e.name});return t.attr("disabled","disabled"),setTimeout(function(){},1),!0})}setTimeout(function(){v___blocked_navigation=0},10);var date_chooser_button=$(".date_chooser_button");date_chooser_button.length&&$.each(date_chooser_button,function(){var e=$(this).parent('td:contains("/")').find("select"),t=e.prev("input");$year=e.next("input"),cls="margined-left--10",e.addClass(cls),$year.addClass(cls).attr("size",3),t.attr("size",1)}),$.each($(".date_chooser_button"),function(){var e=$('input[name="'+$(this).data("year")+'"]'),t=$('select[name="'+$(this).data("month")+'"]'),i=$('input[name="'+$(this).data("day")+'"]'),a=1==$(t).find("option:eq(0)").val()?0:1;$(this).datepicker({format:" yyyy-m-d",language:get_server_data("language"),todayHighlight:!0,autoclose:!0}).on("changeDate",function(n){var s=(n.date.getFullYear()+"-"+(n.date.getMonth()+1)+"-"+n.date.getDate()).split("-");s&&($(i).val(parseInt(s[2])),$(t).val(parseInt(s[1])-a),$(e).val(parseInt(s[0])))}).on("show",function(n){var s=$(this),r=parseInt($(i).val()),o=!!$(t).val()&&parseInt($(t).val())+a,l=$(e).val();r&&o&&l&&s.datepicker("update",l+"-"+o+"-"+r)})}),core.curModule("mailbox")&&($.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length;e.attr("onclick",t.replace(/document\.forms\[0\]/g,"document.forms["+i+"]")),e.attr("onclick",t.replace(/document\.forms\[1\]/g,"document.forms["+(i+1)+"]"))}),$("#print").on("click",function(e){e.preventDefault(),e.stopPropagation()})),core.curModuleFile("forward","edit_alias.cgi")&&$.each($('[onchange*="document.forms"]'),function(){var e=$(this),t=e.attr("onchange"),i=$("aside form").length;e.attr("onchange",t.replace("document.forms[0]","document.forms["+i+"]"))}),(core.curModuleFile("schedule","edit.cgi")||core.curModule("mailbox"))&&$.each($('[onclick*="address_chooser"]'),function(e,t){$(this).attr("onclick",$(this).attr("onclick").replace(".forms[0]",".forms[1]")),$(this).next(".file_chooser_button_attached").removeClass("fa-files-o").addClass("fa-address-book-o")});var add_clock_icon=function(e){e.removeClass("fa-files-o").addClass("fa-clock").css("font-size","12px").css("line-height","10px")};core.curModuleFile("virtual-server","backup_form.cgi")&&add_clock_icon($('[name="enabled_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("virtual-server","edit_newquotas.cgi")||core.curModuleFile("virtual-server","edit_newvalidate.cgi"))&&add_clock_icon($('[name="sched_complex"] + input + .file_chooser_button_attached')),(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager",""))&&$.each($('[onclick*="document.forms"]'),function(){var e=$(this),t=e.attr("onclick"),i=$("aside form").length,a=$(".container-fluid .panel-body > form").length-1;e.attr("onclick",t.replace(/document\.forms\[\d*\]/g,"document.forms["+(i+a)+"]"))});var selectStr="select",select_for=$(selectStr+'.ui_select[name="module"], '+selectStr+'.ui_select[name="user"], '+selectStr+'.ui_select[name="nuser"],                    '+selectStr+'.ui_select[name="zone"],                    '+selectStr+'.ui_select[name="serv"],                    '+selectStr+'.ui_select[name="mod"],                     '+selectStr+".onchange_form_submit_triggger,                     "+selectStr+'[name="idx"], '+selectStr+'[name="file"]:first, '+selectStr+'[name="manual"]:first'),originalSelectAddedHiddenClass=selectStr+"2-hidden-accessible",select2Class=selectStr+"2",select2ContentTriggerClass=selectStr+"2-content",select2ContentContainerTriggerClass=select2ContentTriggerClass+"-container",heighterStr="heighter",heighterType="34",v___page_hadEditor=0;if($is_history_action&&$.each($(".container-fluid ."+originalSelectAddedHiddenClass+" + ."+select2Class),function(){v___page_hadEditor=1,$(this).prev("."+originalSelectAddedHiddenClass).removeClass(originalSelectAddedHiddenClass),$(this).remove()}),(core.curModuleFile("webminlog","")||core.curModuleFile("webminlog","index.cgi")||core.curModuleFile("time","")||core.curModuleFile("time","index.cgi")||core.curModuleFile("firewalld","edit_serv.cgi")||core.curModuleFile("php-pear","")||core.curModuleFile("php-pear","index.cgi")||core.curModuleFile("mysql","")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","edit_dbase.cgi")||core.curModuleFile("fail2ban","edit_manual.cgi")||core.curModuleFile("postgresql","")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("postgresql","edit_dbase.cgi")||core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")||v___page_hasEditor||v___page_hadEditor)&&((select_for.hasClass(heighterStr+"-28")||select_for.outerHeight()<=28)&&(heighterType="28"),select_for.select2({minimumResultsForSearch:5,containerCssClass:select2ContentTriggerClass+" "+heighterStr+"-"+heighterType,dropdownCssClass:select2ContentTriggerClass+" h"+heighterType}),select_for.next("."+select2Class).addClass(select2ContentContainerTriggerClass),select_for.next("."+select2Class).next(".ui_form_end_submit").addClass(heighterStr+"-"+heighterType),select_for.on("select2:open",function(){$("body").find(".select2-container, "+v___class_select2_leak).removeClass("select2-aside")}),select_for.on("select2:select",function(e){$(this).parents("form").trigger("input")}),setTimeout(function(){bind_sameorigin(0)},100)),"install_mod.cgi"===v___location_file){var prev_req=vars.previous_request,$prev_req_file=$(prev_req.target).find('[name="file"]');"submit"===prev_req.type&&Test.strContains($(prev_req.target).attr("action"),v___location_file)&&$prev_req_file&&$prev_req_file.val()&&Test.strContains($prev_req_file.val(),"csfwebmin")&&($('.container-fluid a[href*="csf"]').on("click",function(e){e.preventDefault(),$('aside a[href*="csf/index.cgi"]').trigger("click")}),plugins.navigation.reload(),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi",success:function(e){},error:function(e){}}))}$is_history_action||v___location_path_lead_unslashed!=v___location_prefix_unslashed_trail_slashed+"settings-editor_read.cgi"||$('form[action*="settings-editor_write.cgi"] .btn-group.end_submits button.btn').on("click",function(){var custom_styles=$("[data-custom-style]"),custom_script=$("[data-custom-script]"),data=$('[name="data"]').val();Test.strContains($('[name="file"]').val(),"styles.css")&&(custom_styles.remove(),$("head").append("<style data-custom-style>"+data+"</style>")),Test.strContains($('[name="file"]').val(),"scripts.js")&&(custom_script.remove(),eval(data))});var $bottom_js_back=$('.btn-lg.page_footer_submit[href*="javascript:history.back"]'),$topBackButton=$("#headln2l a i.fa.fa-arrow-left").parent("a");if($bottom_js_back&&$bottom_js_back.length?($topBackButton.attr("title",theme_language("global_prev_page")).tooltip("fixTitle").attr("href","javascript:history.back()"),$topBackButton.one("click",function(e){e.preventDefault(),e.stopPropagation(),$bottom_js_back[0].click()})):v___module!==v___module_file_manager&&$topBackButton.find("i").addClass("fa-return").parent("a").addClass("btn-squiare-headln2 text-lighter-slight"),core.curModule("backup-config")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[0]);$fetch_form.on("submit",function(e){"4"==$fetch_form.find('input[name="dest_mode"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$fetch_form.find('.ui_submit[name="backup"]'),$mods=$fetch_form.find('select[name="mods"]');$mods.length&&!$mods.val().length&&$submit.addClass("disabled"),$fetch_form.on("change",function(e){$mods.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("webmin","edit_mods.cgi")||core.curModuleFile("usermin","edit_mods.cgi")){var $fetch_form=$($('.container-fluid form[action*=".cgi"].ui_form')[3]);$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="to"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this),"download_is_being_prepared"))});var $submit=$fetch_form.find('.ui_submit[name="ok"]');$submit.addClass("disabled"),$fetch_form.on("change",function(e){$fetch_form.find('select[name="mod"]').val()&&$fetch_form.find('select[name="mod"]').val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")})}if(core.curModuleFile("server-manager","transfer_form.cgi")){var $fetch_form=$('.container-fluid form[action*="download.cgi"].ui_form');$fetch_form.on("submit",function(e){"0"==$fetch_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_open_new_tab(v___location_prefix+"/server-manager/"+$(this).attr("action")+"?"+$(this).serialize()),setTimeout(despinnerfy_buttons,300))})}if((core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi"))&&v___location_query&&v___location_query.includes("db=")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"1"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))})}if(core.curModuleFile("mysql","csv_form.cgi")){var $backup_form=$('.container-fluid form[action*=".cgi"].ui_form');$backup_form.on("submit",function(e){"0"==$backup_form.find('input[name="dest"]:checked').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))});var $submit=$backup_form.find('.ui_submit[name="ok"]'),$select_for_dbs_or_tables=$backup_form.find('select[name="cols"]');$backup_form.on("change",function(e){$select_for_dbs_or_tables.val().length?$submit.removeClass("disabled"):$submit.addClass("disabled")}),$backup_form.trigger("change")}if(core.curModuleFile("virtual-server","backup_form.cgi")){var $vm_backup_form=$('form[action*="backup.cgi/backup"]');$vm_backup_form.on("submit",function(e){"4"==$vm_backup_form.find('select[name^="dest0_"]').val()&&(e.preventDefault(),e.stopPropagation(),theme_download_form($(this)))}),$vm_backup_form.find("a.select_all, a.select_invert").on("click",function(e){$vm_backup_form.trigger("change")}),$vm_backup_form.on("change",function(){var e=$('.ui_submit[name="now"]');(!$vm_backup_form.find('[name="doms"]').length||"1"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"] option').length>=1||"2"==$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length>=1&&$vm_backup_form.find('[name="doms"] option').length>1||"2"!=$vm_backup_form.find('[name="all"]:checked').val()&&$vm_backup_form.find('[name="doms"]').val().length)&&(!$vm_backup_form.find('[name="plan"]').length||"1"==$vm_backup_form.find('[name="plan_def"]:checked').val()||$vm_backup_form.find('[name="plan"]').val().length)&&("1"==$vm_backup_form.find('[name="feature_all"]:checked').val()||$vm_backup_form.find('[name="feature"]:checked').length)?e.removeClass("disabled","1"):e.addClass("disabled","1")}),$vm_backup_form.trigger("change"),$vm_backup_form.find('select[name^="dest0_"]').on("change",function(){var e=$("form").find('input[name="fmt"][value="0"]'),t=$("form").find('input[name="fmt"][value="1"], input[name="fmt"][value="2"]');"4"==$(this).val()?(t.prop("disabled",!0),e.prop("checked",!0)):t.prop("disabled",!1)})}$.each($(".container-fluid a.ui_link_replaced"),function(){this.href.includes("webminlog.csv")&&$(this).removeClass().addClass("btn btn-default ui_submit heighter-34").prepend('<i class="fa fa-fw fa-export"></i> ')}),core.curModuleFile("virtual-server","delete_domain.cgi")&&$('form[action*="delete_domain.cgi"]').on("submit",function(){var e=URI.parseQuery(URI(location.href).query()).dom;plugins.favorites.remove(e)}),core.curModuleFile("server-manager","mass.cgi")&&$('form[action*="mass.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="dereg"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&plugins.favorites.remove(i)})}),core.curModuleFile("server-manager","mass_domains.cgi")&&$('form[action*="mass_domains.cgi"]').on("submit",function(){var e=$(this).find('input[name="d"][type="hidden"]').map(function(e,t){return $(t).val()}).get(),t=$(this).find('input[name="delete"][type="hidden"][value="1"]').length;$.each(e,function(e,i){t&&i&&i.length>3&&i&&i.includes("/")&&(i=i.split("/")[1],plugins.favorites.remove(i))})}),core.curModule("help")&&$('.ui_form_end_submit ~ [type="reset"]').addClass("heighter-34");var $multi_select=$(".ui_multi_select");if($multi_select.length&&$multi_select.find('[onclick^="multi_select_move"]').text("..."),check_reboot(1),v___location_path&&v___location_path.length&&v___location_path.includes("webalizer/view_log.cgi")&&!$is_history_action){var $link_targets=document.querySelectorAll(".container-fluid .panel-body  center  p  small a");$link_targets.forEach(function(e,t){e.innerHTML=e.innerHTML.slice(1,-1),e.classList.add("btn","btn-transparent","btn-link-bordered","btn-xxs")});var title_target_cnt=document.querySelector(".container-fluid #headln2c");title_target=title_target_cnt.querySelector("span"),title_target_fav=title_target_cnt.querySelector("button"),title_target_text=title_target.innerHTML,title_target_text=title_target_text.substr(0,title_target_text.lastIndexOf("-")).trim(),title_target_main=title_target_text.substr(0,title_target_text.lastIndexOf(" ")),title_target_sub=title_target_text.substr(title_target_text.lastIndexOf(" ")+1),title_target_cnt.innerHTML=title_target_fav.outerHTML+"&nbsp;<span data-main_title>"+title_target_main+'</span><span data-sub_title=""><br>'+title_target_sub+"</span>";var $table_broken=$(".container-fluid .panel-body table"),$table_broken_delims=$table_broken.find('[height="4"]');$table_broken.removeClass("table-hardcoded").addClass("table-bordered").find('td[bgcolor="#c0c0c0"], th[bgcolor="#c0c0c0"]').attr("bgcolor","#f5f5f5"),$table_broken_delims.remove(),$.each($table_broken_delims,function(){$(this).parent("tr").remove()})}(core.curModuleFile("acl","edit_user.cgi")||core.curModule("changepass")||core.curModuleFile("virtual-server","clone_form.cgi")||core.curModuleFile("virtual-server","edit_user.cgi")||core.curModuleFile("virtual-server","domain_form.cgi")||core.curModuleFile("samba","edit_euser.cgi")||core.curModuleFile("samba","ask_epass.cgi")||core.curModuleFileQuery("postgresql","edit_user.cgi","new=")||core.curModuleFileQuery("mysql","edit_user.cgi","new=")||core.curModuleFileQuery("passwd","edit_passwd.cgi","user=")||core.curModuleFile("server-manager","edit_pass.cgi")&&v___location_query.includes("force=1"))&&$('.container-fluid .panel-body input[type="password"], .container-fluid .panel-body input.pass-inputter-obj').password({usernamePartialMatch:!1,showText:!1,minimumLength:3,animateSpeed:0});var input_warning_caps="input_warning_caps",input_password_targets=document.querySelectorAll('input[type="password"]');for($(".container-fluid ."+input_warning_caps).remove(),i=0,length=input_password_targets.length;i<length;i++){var span=document.createElement("span"),isLargePassInput=input_password_targets[i].offsetHeight>30?1:0;span.classList.add(input_warning_caps),span.setAttribute("title","Caps Lock"),isLargePassInput&&span.classList.add("large"),input_password_targets[i].classList.add("use_"+input_warning_caps),input_password_targets[i].parentNode.insertBefore(span,input_password_targets[i].nextSibling),input_password_targets[i].addEventListener("blur",function(){this.nextSibling.classList.remove("visible")}),input_password_targets[i].addEventListener("keydown",function(e){"function"==typeof e.getModifierState&&(state=20===e.keyCode?!e.getModifierState("CapsLock"):e.getModifierState("CapsLock"),state?this.nextSibling.classList.add("visible"):this.nextSibling.classList.remove("visible"))})}if($.each($(".container-fluid select:visible"),function(){"28px"===$(this).css("height")&&$(this).nextAll(".btn").addClass("heighter-28")}),$is_history_action&&(core.curModule("mysql")||core.curModule("postgresql"))&&"function"==typeof f__ex__mysql_runner_update&&f__ex__mysql_runner_update(),$(".container-fluid select").on("change",function(){if(this.multiple){var e=$(this).val();$(this.options).removeAttr("selected"),$(this.options).removeAttr("selected");for(var t=0,i=this.options.length;t<i;t++)e.includes(this.options[t].value)&&this.options[t].setAttribute("selected","selected")}else $(this.options).removeAttr("selected"),this.options[this.options.selectedIndex].setAttribute("selected","selected")}),core.curModuleFile("useradmin","edit_group.cgi")&&$.each($(".container-fluid .btn-group.ui_links_row a"),function(){$(this).removeClass("btn-inverse btn-tiny").addClass("btn-transparent btn-transparent-link").find("i").addClass("fa-users").removeClass("fa-plus-square-o")}),!$is_history_action){var cnt_fluid_str="container-fluid",table_str="table",table_hover_str=table_str+"-hover",table_hover_force=table_hover_str+"-force",table_sub_cnt_str="sub_"+table_str+"_container",table_hardcoded_str=table_str+"-hardcoded",table_grig_str="ui_grid_"+table_str,cls_no_hover_str="nh-tr",cls_no_border_str="no-border",multi_sel_str="ui_multi_select",margined_str="margined-",opener_str="opener_",opener_hidden_str=opener_str+"hidden",vs_str="virtual-server",sm_str="server-manager",file_edit_start_str="edit_",cgi_ext_str=".cgi",server_templates_vm_name_sel_str='[name="editmode"]',cm_fl=core.curModuleFile,server_templates_vm=cm_fl(vs_str,file_edit_start_str+"tmpl"+cgi_ext_str),server_templates_vm_query=$("."+cnt_fluid_str+" "+server_templates_vm_name_sel_str).val()&&!$("."+cnt_fluid_str+" "+server_templates_vm_name_sel_str).val().match(/(virt|scripts|autoconfig|php|phpwrappers|avail)$/),number_of_rows_to_trigger=settings_experimental_extended_on_hover?0:2;if((settings_experimental_extended_on_hover||cm_fl("virtualmin-awstats","config"+cgi_ext_str)||cm_fl(vs_str,"rename_form"+cgi_ext_str)||cm_fl(vs_str,"newip_form"+cgi_ext_str)||cm_fl(vs_str,"transfer_form"+cgi_ext_str)||cm_fl(vs_str,"mass_domains_form"+cgi_ext_str)||cm_fl(vs_str,"import_form"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"limits"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"spf"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"mail"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"spam"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"phpmode"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"plan"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"newbw"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"resel"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"newdynip"+cgi_ext_str)||cm_fl(vs_str,file_edit_start_str+"user"+cgi_ext_str)||server_templates_vm||cm_fl(sm_str,file_edit_start_str+"bw"+cgi_ext_str)||cm_fl(vs_str,"domain_form"+cgi_ext_str)||cm_fl(vs_str,"edit_domain"+cgi_ext_str))&&($t_uri_virtualmin||$t_uri_cloudmin)&&$.each($("."+cnt_fluid_str+" "+table_str+"."+opener_str+table_str+"_style ."+opener_str+"container > div > ."+table_hardcoded_str+":not(."+table_grig_str+"), ."+cnt_fluid_str+" .ui_form ."+table_str+"-subtable ."+table_sub_cnt_str+", ."+cnt_fluid_str+" ."+opener_str+table_str+"_style_small ."+opener_hidden_str+" ."+table_hardcoded_str),function(){if(!$(this).find("."+table_grig_str+", ."+multi_sel_str+", ."+table_str+"-hover").length&&!$(this).hasClass(table_sub_cnt_str+" "+table_hardcoded_str)&&$(this).find("tr").length>number_of_rows_to_trigger||server_templates_vm&&server_templates_vm_query){$(this).find("."+table_hover_str).removeClass(table_hover_str).find("tr").addClass(cls_no_hover_str),$(this).addClass(table_hover_str+" "+table_hover_force),"mail"===$("."+cnt_fluid_str+" "+server_templates_vm_name_sel_str).val()&&($("."+cnt_fluid_str+" ."+table_sub_cnt_str+" ."+table_sub_cnt_str+"."+table_hover_str).removeClass(table_hover_str+" "+table_hover_force).find("tr, td").addClass(cls_no_hover_str).parents("."+table_sub_cnt_str).parent().parent("tr").addClass(cls_no_hover_str),$("."+cnt_fluid_str+" ."+table_sub_cnt_str).first().find("tbody").first().find("tr").first().addClass(cls_no_hover_str));var e=$(this).find("td."+cls_no_border_str);server_templates_vm&&e.length&&e.addClass(cls_no_hover_str).parent().addClass(cls_no_hover_str)}else server_templates_vm_query||$(this).find("."+table_hover_str).removeClass(table_hover_str).find("tr").addClass(cls_no_hover_str)}),cm_fl(vs_str,"edit_plan"+cgi_ext_str)){var $tableEditPlan=$(".ui_form ."+table_str+"."+table_hover_str+"."+opener_str+table_str+"_style");$.each($tableEditPlan,function(){var e=$(this);e.find("thead").length&&(e.addClass("text-nowrap").removeClass(table_hover_str+" "+table_hover_force).attr("style","margin-top: 5px !important; ").wrap('<div class="long-'+table_str+"-wrapper "+margined_str+"top--5 "+margined_str+'bottom--4"><div class="long-'+table_str+'-scroll"></div></div>'),e.find(table_str+"."+table_hover_str).first().removeClass(table_hover_str),e.find("."+opener_hidden_str+" > "+table_str).removeClass(table_hover_force).find("tbody > tr > td > "+table_str+"."+table_hover_str).addClass(table_hover_force))})}}};const events={window:function(){window.document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?v___theme_state_visible=0:v___theme_state_visible=1,theme.visibility(v___theme_state_visible)}),window.addEventListener("focus",function(){v___theme_state_visible=1,theme.visibility(v___theme_state_visible),theme_window_focused()}),window.addEventListener("blur",function(){v___theme_state_visible=0,theme.visibility(v___theme_state_visible)}),window.addEventListener("popstate",function(){$('[data-trigger-injected="1"]').remove()}),document.querySelector("#content").addEventListener("scroll",function(e){vars.pjax.post_page_fetch||(vars.events.scrolled=e.target.scrollTop)}),$(document.body).on("keydown",function(e){16===e.keyCode&&(vars.events.keypressed.shift=!0),18===e.keyCode&&(vars.events.keypressed.alt=!0)}).on("keyup",function(e){16===e.keyCode&&(vars.events.keypressed.shift=!1),18===e.keyCode&&(vars.events.keypressed.alt=!1)}),$(window).on("keydown",function(e){!plugins.shell.status()&&v___available_session&&theme_shortcuts(e)}).on("resize",function(){page_resized(),plugins.shell.adjust(),page_control_header()})},body:function(){$(document.body).on("click",function(e){var t=".showpass-popover";$(t).length&&($(t).is(e.target)||0!==$(t).has(e.target).length||0!==$(".popover").has(e.target).length||$(t).popover("hide"));$(".mobile-menu-toggler").is(":visible")&&($(e.target).is('.mCustomScrollBox, .wbm-sm, .fa-stack, input[name="product-switcher"], label[for*="open_"], span, .sidebar-search, .select2-search, .select2-search__field, .select2-selection__rendered, .select2-selection')||plugins.navigation.collapse()),$(".tooltip").tooltip("hide");var i=document.querySelector(".right-side-tabs"),n=!(!i||"0px"!==i.style.right);!settings_side_slider_fixed&&n&&($(e.target).is('select[name="settings_navigation_color"], select[name="settings_background_color"], select[name="settings_side_slider_palette"], input[name="settings_side_slider_fixed"], label[for^="settings_side_slider_fixed"], div.aradio')||$(".right-side-tabs-toggler").hasClass("hidden")||!$(".right-side-tabs-toggler").hasClass("opened")||$(e.target).parents("#right-side-tabs").is("#right-side-tabs")||$(e.target).is(".btn-menu-toggler")||$(e.target).is(".fa-bell")||$(e.target).is(".fa-trash-o")||$(e.target).is("li.user-link.favorites")||$(e.target).is(".badge.badge-danger")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"));var a="MacIntel"===window.navigator.platform?1:0;if((!a&&e.ctrlKey||a&&e.metaKey)&&!e.altKey){var s=link_type_convert($(e.target).attr("href"),1),o=$(e.target).find("a").attr("href")||$(e.target).parents("a").attr("href"),r=link_type_convert(o,1),l=$(e.target).find("a").length?$(e.target).find("a"):$(e.target).parents("a"),c=Math.floor(1e5*Math.random());(s&&!Test.strContains(s,"javascript")||r&&!Test.strContains(r,"javascript"))&&(s?($(e.target).attr("href",link_type_convert(s+(Test.strContains(s,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){$(e.target).attr("href",link_type_convert(s,2))})):r&&(l.attr("href",link_type_convert(r+(Test.strContains(r,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){l.attr("href",link_type_convert(r,2))})))}}).on("keydown",function(e){var t=e.keyCode?e.keyCode:e.which,i=String.fromCharCode(t).toLowerCase(),n=this;"number"==typeof n.timedOut&&clearTimeout(n.timedOut),i&&8!==t&&(n.preValue?n.preValue+=i:n.preValue=i);this.timedOut=setTimeout(function(){var i=n.preValue;n.preValue=null,$("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||vars.events.blocked||$(".-shell-port-").hasClass("opened")||!v___available_session||v___location_path!=v___location_prefix+"/server-manager/gvnc.cgi"&&v___location_path!=v___location_prefix+"/server-manager/login.cgi"&&v___location_path!=v___location_prefix+"/telnet/"&&v___location_path!=v___location_prefix+"/telnet/index.cgi"&&v___location_path!=v___location_prefix+"/stunnel/"&&v___location_path!=v___location_prefix+"/stunnel/index.cgi"&&(!i||!/[a-zA-Z0-9]/.test(i)||e.ctrlKey||e.altKey||e.metaKey||106===t||107===t||109===t||112===t||113===t||114===t||115===t||116===t||117===t||118===t||119===t||120===t||121===t||122===t||123===t||($(".dataTables_filter label input").length||$(".btn-accordion-filter").length?($(".btn-filter-top-right, .btn-accordion-filter").trigger("click"),$(".btn-filter-top-right .dataTable-mirror, .btn-accordion-filter .dataTable-mirror").focus().val(i).trigger("keyup")):setTimeout(function(){var t=$('aside input[name="search"]');e.shiftKey&&"1"==i?t.focus().val("!"):Test.editing()||t.focus().val(i).trigger("change")},1)))},vars.event.stopped_typing_delay)}).on("click","#quota-virtual-server-collapse a.ui_link, #quota-virtual-server-1-collapse a.ui_link, #bw-virtual-server-collapse a.ui_link, #bw-virtual-server-1-collapse a.ui_link",function(){var e=URI.parseQuery(URI($(this).attr("href")).query()).dom,t="virtualmin";$('.switch-toggle input:not([id="open_'+t+'"]):checked').length&&plugins.navigation.switch.set(t),setTimeout(function(){$("aside select").val()!=e&&plugins.navigation.get.virtualmin(e)},300)}).on("click",".file-input-wrapper",function(){var e=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===e.length&&e.prop("checked",!0)}).on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}).on("click",".mobile-menu-toggler",function(e){$this=$(this);$(this).data("opened")||($(this).data("opened",1),plugins.navigation.update("webmail")),$("aside").hasClass("hidden-xs")?($(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$(".__logo")&&($(".__logo").css("transform","translate(0px, 0px)"),setTimeout(function(){$(".__logo").transition({y:"-140px"},262.5)},1100)),$this.css("transform","translate(0px, 0px)"),$("aside").css("transform","translate(0px, 0px)"),$(".switch-toggle").css("display","none"),$("aside").removeClass("hidden-xs"),$("aside, .mobile-menu-toggler").transition({x:settings_leftmenu_width},437.5),$(".switch-toggle").css("display","table")):plugins.navigation.collapse()}).on("click",'a[data-id^="csf_"], a[data-type^="csf_"]',function(e){get_bundle_csf()}).on("click",'a[href*="mysql"], a[href*="postgresql"]',function(e){get_bundle_sql()}).on("shown.bs.modal",".modal.in",function(){$(this).focus()}).on("click",".module-help",function(){popover_visibility_position($(this))}).on("click",".close-popover-trigger",function(e){$(e.target).parent().parent().not(this).popover("hide")}).on("change",'.ui_checked_columns:visible input[type="checkbox"], .ui_checked_columns:visible input[type="radio"]',function(e){var t=$(this).parents("tr.ui_checked_columns:visible");t.length&&t.find("input:first").is($(this))&&($(this).is(":checked")?t.addClass("hl-aw"):t.removeClass("hl-aw"),"undefined"!=typeof v____timeout_cb_ck_row&&"number"==typeof v____timeout_cb_ck_row&&clearTimeout(v____timeout_cb_ck_row),v____timeout_cb_ck_row=setTimeout(function(){"function"==typeof __r____changed&&__r____changed()},1))}).on("click",".authentic_update:not(.disabled)",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),i=tconfig_beta_updates?0:1,n="1"==t.data("force")?1:0,a=t.attr("data-stable");a&&a.length&&(i="1"==a?1:0),theme.update(i,n)}).on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id");$("#"+t).submit()}).on("change",".onchange_form_submit_triggger",function(e){e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(this,"$($eventData).parent('form').submit()","ev"):$(this).parent("form").submit()}).on("click",".generate-password-key-g",function(e){var t=theme_password_generator();theme_copy_to_clipboard(t),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-key-plus"></i>'+theme_language("password_generator_new_success").replace("%password",'&nbsp;<code class="vertical-align-middle">'+Convert.htmlEscape(t)+"</code>&nbsp;"),10,"success","newGeneratedPassword")}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"]',function(e){if(13==e.keyCode){e.preventDefault();var t=$("button.ui_submit.ui_form_end_submit");t.first().trigger("click"),t.addClass("disabled")}}).on("click",'button, input[type="submit"], a',function(e){v___page_activeElement=this}).on("click","._c__op_d",function(e){if($(e.target).is(this)){var t=$(this).find(".opener_trigger").first()[0];t&&t.click()}}).on("click",'form[action*="save_user.cgi"] button[name="but_switch"], a[href*="virtual-server/switch_user.cgi"]',function(){v___theme_reload=1}).on("click",'[href*="javascript:history"]',function(e){v___theme_content_history&&(e.preventDefault(),e.stopPropagation(),v___theme_content_history=0,get_pjax_content(v___location_directory))}).on("click",".ui_multi_select_row select[multiple] option",function(e){var t=$(this).parent("select").parent("td"),i=t.parent("tr"),n=t.index();e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==n&&2!==n||i.find("td:eq(1)").find('[onclick*="multi_select_move"][onclick*="'+(n?0:1)+'"]').trigger("click")}).on("click",'.container-fluid a[href], .container-fluid button, .container-fluid input[type="button"], .right-side-tabs a[href], .right-side-tabs button, .right-side-tabs input[type="button"], .right-side-tabs .info-container .graph-container-fw, .right-side-tabs-dismiss i, .favorites-menu li a',function(){v___blocked_navigation=0}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),i=t.attr("href");if(!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var n=t.find(".fa-refresh");n&&n.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:i,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/sysinfo.cgi",success:function(e){var t="#status-virtual-server-1-collapse",i=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(i),progress.end()}})}}})}}).on("click","[data-href-background]",function(e){e.preventDefault();var t=$(this).attr("data-href-background");progress.start(),$.post(t,function(){plugins.slider.data.fetch(),v___location_path&&v___location_path.indexOf("/sysinfo.cgi")>-1&&page_refresh()})}).on("click","#jsPanel-replacement-container > .jsPanel-replacement > .jsPanel-hdr",function(e){e.preventDefault(),$(this).find(".jsPanel-btn-normalize").trigger("click")}).on("shown.bs.tab",'.nav.nav-tabs > li > a[data-toggle="tab"]',function(){v___module!==v___module_file_manager&&($($.fn.dataTable.tables(!0)).css("width","100%"),$($.fn.dataTable.tables(!0)).DataTable().columns.adjust())})}};function addmodule(e){return adduser(e),!1}function addgroup(e){return adduser(e),!1}function adduser(e){return $v__mpp__g_olt=0,$('.mppopup input[data-role="tagsinput"]').tagsinput("add",e),setTimeout(function(){v__mpp__ml_t__e||($(".mppopup_filter_input").val(""),$(".mppopup_filter_input").focus().trigger("keyup")),v__mpp__ml_t__e=0},440),!1}function addinterface(e){return adduser(e),!1}function parentdir(e){e&&e.length>1&&e.endsWith("/")&&(e=e.replace(/\/$/,"")),fileclick(e,"1"),$v__mpp__g_gp=1}function fileclick(e,t){$v__mpp__g_ol=e,$v__mpp__g_olt=t}function select(e,t){return $data_mppopup_value.val(e),!1}function filter_match(e,t,a){a=a||!1;var n=function(e){e=e||!1;var t=$(".mppopup table tbody tr");if(t.length>0)for(var n=0;n<t.length;n++){var i=t[n],r=i.className;(a||""===r)&&(a&&null===r.match("")||(i.style.display=e?"":"none"))}return t};if(""!==(e=e.trim())){var i=n(!1);if(i.length>0)for(var r=0;r<i.length;r++){var s=i[r].className;if((a||""===s)&&(!a||null!==s.match("")))for(var o=i[r].getElementsByTagName("a"),_=0;_<o.length;_++){var l=o[_].innerHTML.trim();""!==(l=l.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,""))&&(l=l.toLowerCase()).match(e.toLowerCase())&&(i[r].style.display="")}}}else n(!0)}function tab_action(e,t){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t)}function hidden_opener(e,t){0===$("#"+e).parent(".opener_container").length&&$("#"+e).wrapAll('<div class="opener_container opener_sub_container margined-top"></div>'),$("#"+e).hasClass("opener_shown")?($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").removeClass("opener_container_opened").addClass("opener_container_closed"),$("#"+e).parent(".opener_container").show().find("#"+e).slideUp(0,function(){$("#"+e).removeClass("opener_shown").addClass("opener_hidden").parent('.opener_container:not(".opener_sub_container")').hide(),$("#"+e).parent(".opener_sub_container").removeClass("margined-top")})):($("#"+e).parent(".opener_container").prev(".opener_extra_container.opener_extra_container_style").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),$("#"+e).slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown(0).find(".opener_shown").slideDown(0),$("#"+e).parent(".opener_sub_container").addClass("margined-top"))}function select_mode(e){var t=$("aside form").length;for(i=0;i<document.forms[0+t].mode.length;i++)document.forms[0+t].mode[i].checked=document.forms[0+t].mode[i].value==e}function theme_select_all_link(e,t){var a=$("aside form").length,n=document.forms[e+a][t],r=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(n)if(n.length||n.disabled)for(i=0;i<n.length;i++)n[i].disabled||(n[i].checked=!0,r(n[i]));else n.checked=!0,r(n)}function theme_select_invert_link(e,t){var a=$("aside form").length,n=document.forms[e+a][t],r=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(n)if(n.length||n.disabled)for(i=0;i<n.length;i++)n[i].disabled||(n[i].checked=!n[i].checked,r(n[i]));else n.checked=!n.checked,r(n)}function g__text_breaker(e,t){if(e.val()){var a=e.val().split(t),n="";$.each(a,function(e,a){a&&(n+=t+a+"\n")}),e.val(n)}}function extract_content(e,t,a,n){if(!e)return 0;var i=n?0:t.length,r=n?a.length:0,s=e.indexOf(t),o=e.indexOf(a,s),_=-1===o?e.length:o;return e.slice(s+i,_+r)}function get_user_home(){var e=get_server_data("user-home"),t=e.match(/\/chroot\/[0-9]*\/\.(.*)/);return t&&t[1]&&(e=t[1]),e}function get_form_data(e){return(e.attr("enctype")&&e.attr("enctype").indexOf("form-data")>-1?0:1)?e.serialize():new FormData(e[0])}function page_extended(){return"settings-logos.cgi"===v___location_file||"settings-logos_save.cgi"===v___location_file||"settings-backgrounds.cgi"===v___location_file||"settings-backgrounds_save.cgi"===v___location_file||"settings-editor_read.cgi"===v___location_file||"settings-editor_write.cgi"===v___location_file||"settings-favorites_save.cgi"===v___location_file?1:0}function check_bundle(e){(Test.strContains(e,"/mysql/")||Test.strContains(e,"/postgresql/"))&&get_bundle_sql(),Test.strContains(e,"/"+v___module_file_manager+"/")&&get_bundle_file_manager(),Test.strContains(e,"/csf/")&&get_bundle_csf()}function get_bundle_csf(){load.bundle(v___server_extensions_path+"/csf/csf",1)}function get_bundle_file_manager(e){load.bundle(v___server_extensions_path+"/file-manager/file-manager",0,!!e&&["___f__tw()"],0)}function get_bundle_sql(){load.bundle(v___server_extensions_path+"/sql",1)}function theme_open_new_tab(e,t){1!==t&&(e=Test.strContains(e,v___location_origin)?e:v___location_origin+(e.startsWith("/")?e:"/"+e)),$("body").append('<a href="'+e+'" target="_blank" class="hidden" id="theme_open_new_tab"></a>'),$("#theme_open_new_tab").simulateUserClick().remove()}function theme_to_new_tab(){$.each($('a[href*="virtualmin-awstats/view.cgi?config="],             .virtualmin-awstats a[href*="view.cgi?config="]   '),function(){$(this).addClass("--to-new-tab")})}function theme_restore_buttons_class(){$.each($(".container-fluid [data-class-restore]"),function(){var e="btn-xclass",t=$(this).attr("data-class-restore");if($(this)[0]&&$(this)[0].classList){var a=$(this)[0].classList.value.match(/.*(btn-\S+)/);a&&(e=a[1],$(this).removeAttr("data-class-restore"),$(this).removeClass(e).addClass(t))}})}function theme_reload(e){window.location.href=e?link_type_convert(v___location_resource,2):location.origin+v___location_prefix}function theme_update_notice(e,t){0===$("#update_notice").length&&$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-get_update_notice=1",complete:function(e){t&&t.classList.remove("disabled")},success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{$("body").prepend(t);var a=$("#update_notice");e&&a.addClass("r"),a.modal("show")}},error:function(e){}})}function theme_inject_tooltip(e,t,a,n,i,r){var s=v___initial_load?3e3:0,o=e;e=theme_language(e)||e,t||(t="body"),a||(a="auto top"),n||(n="tooltip"),i||(i=600),s&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+o+'"]');e.attr("data-title",theme_language(o)),e.attr("data-delay",'{"show":600, "hide":"30"}'),e.tooltip({container:t,placement:a,sanitize:!1,trigger:"hover",delay:{show:i,hide:20}})},s);var _=String();if(r){var l=new RegExp("(?=\\"+r+")");e=(e=e.split(l)).join("<br>"),_=' data-html="true" '}return' data-container="'+t+'" data-placement="'+a+'" data-delay=\'{"show":"600", "hide":"30"}\' data-toggle="'+n+'" data-title="'+e+'" '+_}function theme_title_generate(e,t){var a=plugins.navigation.state.loading(),n=1==get_server_data("loading")?1:0;if(!a&&!n||$(".__page").hasClass("progressing")){if($.support.spa){var i=$("#headln2c").data("current-module-name"),r=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text(),s=String(),o=$("aside select option:checked").text(),_=v___title_initial,l=" — "+_,c=_+" — ",d=get_server_data("hostname"),g=get_server_data("user"),f=Convert.strUpFirst(get_server_data("product")),u=theme_language("titles_dashboard"),p=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi",m=$(".container-fluid > .error_40x");!i||i===r||$t_uri_virtualmin||$t_uri_cloudmin||(r=i+"/"+r),"csf"===v___module&&(r=theme_language("csf")),p&&(r=u),m.length&&(r=m.find("strong").text()),t&&(r=t);var h=" - "+r;if(1==settings_document_title&&(c=String()),2==settings_document_title&&(l=String()),3==settings_document_title&&(c=String(),l=String()),5==settings_document_title&&(c=d+" - "+_+" — ",l=String()),6==settings_document_title&&(c=g+"@"+d+" - "+_+" — ",l=String()),7==settings_document_title&&(c=String(),l=" — "+f),8==settings_document_title&&(c=d+" — ",l=String()),9==settings_document_title&&(c=g+"@"+d+" — ",l=String()),4==settings_document_title){if(e)return s;document.title=_}else if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var v=v___module_file_manager,b=$('body[class*="'+v+'"] .active form input#path').val();if(b){if(s=c+Convert.uriDecodeComponent(b)+" - "+$("li.sub_active a").text()+l,e)return s;document.title=s}else{if(s=c+$("li.sub_active a").text()+l,e)return s;document.title=s}}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&o&&o.length&&!m.length)if(p){if(s=c+u+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+o+h+l,e)return s;document.title=s}else{if(s=c+plugins.navigation.state.title()+l,e)return s;document.title=s}else if(r&&r.length){if(s=c+r+l,e)return s;document.title=s}else{if(s=_,e)return s;document.title=s}var x=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(x):titlenotifier.set(0)}}else setTimeout(theme_title_generate,100)}function link_type_convert(e,t){if(void 0!==e)return e&&(e=e.replace(/([?&])(_pjax|_)=[^&]*/g,"")),1===t&&(e=e.replace("?"+$__theme_navigation,"").replace("&"+$__theme_navigation,"").replace("&amp;"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+"?"+$__theme_navigation)),e}function get_page_title_subtitle(e){var t=$("[data-sub_title]").text(),a=$('[data-main_title=""]').text(),n=a+(t?": "+t:String());return e?a:n}function pjax_cache(e){vars.pjax.page_cache="disable"!==e}function get_pjax_push(){return!0}function get_pjax_type(e){var t=String();if(e&&e.href&&(t=e.href.match(/([^\/]*)\/*$/)[1]),Test.string(e)){var a=e.replace(v___location_origin+v___location_prefix,""),n=a.replace(v___module,"").replace(/^\/+/g,""),i=(i=$('form[action*="'+a+'"]:visible')).length?i:$('form[action="'+n+'"]:visible'),r=a.match(/\w+.cgi/gi),s=(i=i.length||!r?i:$('form[action*="'+r[0]+'"]:visible')).attr("method");if("multipart/form-data"===i.attr("enctype"))return"post";if(s)return s;if(!s){s=(s=$('form[action="'+a+'"]').attr("method"))||$('form[action="'+URI(a).filename()+'"]').attr("method");var o=$('form[action="'+a+'"]').attr("enctype");return s||o?"multipart/form-data"===o?"post":s:"get"}}else if("object"==typeof e&&$(e).is("form")){var _=e.attr("method");return _||"get"}return"csf"===v___module&&!$('.csf-container textarea[name="formdata"]').length||"shell"===t||e===v___location_prefix+"/shell/"||e&&Test.strContains(e,".cgi?")&&!Test.strContains(e,"config.cgi?")?"GET":"POST"}function get_pjax_content(e,t,a){var n=void 0===a||!0===a||1==a;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:e}):e&&unbuffered_header_processor_allow(e)?unbuffered_header_processor(e,0):(t="object"==typeof t?t:function(){},$type=!!$.isArray(t)&&$("<a>",{href:e})[0],e=link_type_convert(e,1),$.pjax({url:e,timeout:0,push:n,type:get_pjax_type($type||e),container:"[data-dcontainer]",fragment:"[data-dcontainer]",callback:t}))}function get_pjax_event_end(e,t,a){if(v___available_session){if(null!=t&&t.status){var n=$('div[data-dcontainer="1"]'),i=t.status.toString().startsWith("40"),r=t.status.toString().startsWith("50");if(i||r){if($.pjax.cache(!1,!1,[n,link_type_convert(v___location_prefix+"/xerror",2),get_page_title_subtitle(1)]),vars.allow_ui_features=0,setTimeout(function(){vars.allow_ui_features=1},200),i){var s=extract_content(t.responseText,'<div class="container error_40x" data-dcontainer="1">',"</div>",0);s&&n.html(s)}else if(r){var o,_=$(t.responseText).filter("h1").text(),l=$(t.responseText).filter("p").text();o='<div class="alert alert-danger error_40x">',o+='<strong><i class ="fa fa-exclamation-triangle"></i> '+t.status+" - "+_+"</strong><br><span>"+l+"</span>\n",o+="</div>",n.html(o)}return void theme_title_generate()}}if(null!=t&&void 0!==t.responseText){var c=t.getResponseHeader("Content-Disposition");if(!c||-1===c.toLowerCase().indexOf("attachment")){var d,g=t.responseText.match("<html(.*)>");g&&g[0]&&(d=(d=(new DOMParser).parseFromString(g[0],"text/html")).querySelector("html").attributes)&&$(d).each(function(e,t){if("id"!==this.nodeName){if($.support.spa&&"data-redirect"===this.nodeName&&this.nodeValue&&this.nodeValue.length>0&&"/"!=this.nodeValue&&this.nodeValue!="/?"+$__theme_navigation&&this.nodeValue!=location.origin+v___location_prefix+"/"&&this.nodeValue!=location.origin+v___location_prefix+"/?"+$__theme_navigation&&(!Test.strContains(this.nodeValue,"://")||Test.strContains(this.nodeValue,location.host))&&(vars.previous_request=String(),vars.source_request=String()),"data-language"===this.nodeName){var a=get_server_data("uri"),n=get_server_data("language"),i=this.nodeValue;i&&n&&n!==i&&a&&a.match(/change-user|webmin\/edit_lang|virtual-server\/save_lang|\/language\//)&&theme_reload_message("reload_lang_notification")}get_server_data(this.nodeName,this.nodeValue),"data-slider-fixed"===this.nodeName&&-1!==vars.slider_pinned&&get_server_data(this.nodeName,vars.slider_pinned),"data-navigation-collapsed"===this.nodeName&&-1!==vars.navigation_pinned&&get_server_data(this.nodeName,vars.navigation_pinned)}}).promise().done(function(){if(!core.curModule("mailboxes")&&uri_parse("directory",get_server_data("data-uri")).indexOf("/mailbox")>-1&&(!uri_parse("file",get_server_data("data-uri"))||uri_parse("file",get_server_data("data-uri")).indexOf("index.cgi")>-1))return mail_load(get_server_data("data-uri")),page_init(),!1;if(get_pjax_event_end_funcs(1,!1,a),$.each($(".container-fluid img"),function(){var e=$(this),t=e.attr("src");!t||Test.strContains(t,"//")||t.startsWith("/")||e.attr("src",v___location_directory_trail_slashed+t)}),unbuffered_header_post(t),e){var n=$(e.relatedTarget),i=n.attr("href"),r=n.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle");(r&&(Test.strContains(i,"/mysql/")||Test.strContains(i,"/postgresql/"))||Test.strContains(v___module,"mysql")||Test.strContains(v___module,"postgresql"))&&"function"==typeof f__ex__mysql_runner&&f__ex__mysql_runner(),(r&&Test.strContains(i,"/csf/")||Test.strContains(v___module,"csf"))&&csf_init()}})}}}}function get_pjax_event_end_funcs(e,t,a){page_init();var n=function(){if(e&&v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader(),v___module_file_manager&&0!=get_access_level()&&plugins.slider.state(0),!e){get_server_data("data-script-name",v___location_path),get_server_data("data-uri",v___location_resource);var t=new RegExp("^"+v___location_prefix,"i");v___module=get_server_data("data-uri").replace(t,"").split("/").filter(function(e){return 0!==e.length})[0],get_server_data("data-module",v___module),setTimeout(function(){get_server_data("data-title-initial",$("#headln2c span[data-main_title]").text()),snippets.page.render(1),despinnerfy_buttons(),$t_uri_virtualmin?plugins.navigation.intersect.virtualmin(location.href):$t_uri_cloudmin&&plugins.navigation.intersect.cloudmin(location.href)},0)}};if(t){var i=function(){get_server_data("loading")?setTimeout(i,100):(n(),theme_title_generate(),plugins.navigation.detect())};setTimeout(i,0)}else n(),!a&&e&&Test.strContains(v___location_directory,v___module_file_manager)&&("function"==typeof ___f__tw?setTimeout(function(){___f__tw()},100):get_bundle_file_manager(1)),core.curModule("csf")||get_server_data("post",0,1),e&&snippets.page.render(0),$(".tooltip").tooltip("hide"),$(".popover").popover("hide"),theme_title_generate(),plugins.navigation.detect(),e&&$(".__page").scrollTop(0),setTimeout(function(){var e=v___page_container.find("form:visible:first"),t=e.find('input:visible:not([readonly]):not([disabled]):not([type="radio"]):not([type="checkbox"]), textarea:visible:not([readonly]):not([disabled])');t.length&&!t.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"settings-user.cgi"!==v___location_file&&vars.page_user_inactive&&("domain_form.cgi"===v___location_file||Test.strContains(v___location_query,"new=")||e&&e.length&&(e.attr("action").startsWith("create")||e.attr("action").startsWith("add")||e.attr("action").startsWith("new")))&&t&&0===t.val().length&&t[0].focus()},400),!e||core.curModule(v___module_file_manager)||core.curModule("csf")||"settings-user.cgi"===v___location_file||"edit_themes.cgi"===v___location_file||page.handle.content.preloader_dismiss()}function get_pjax_action_submit(e,t){var a=void 0===t||!0===t||1==t;if(!get_onbeforeunload_status())if(vars.previous_request_progressive=e,e&&!v___theme_force_buffered&&e.target&&e.target.action&&unbuffered_header_processor_allow(e.target.action))unbuffered_header_processor(e,1);else{v___theme_force_buffered=0;var n=quirks.active_element(),i=$(n).attr("name"),r=$.trim(n.value)?$.trim(n.value):$.trim(n.innerText),s=n.value,o=n.type,_=n.nodeName.toLowerCase(),l=$(e.target).find('[name="'+i+'"]'),c=l.attr("type");c&&c.length&&(c=c.toLowerCase()),("input"!==_||l.val()==s&&"submit"!==c)&&("button"!==_||$.trim(l.text())==r&&"submit"!==c)||"button"!==c&&"submit"!==c&&"submit"!==o||$('input[type="hidden"][name="'+i+'"][value="'+(r||s)+'"]').length||$('<input data-trigger-injected="1">').attr({type:"hidden",name:i,value:r||s}).appendTo($(e.target)),vars.previous_request=e,vars.source_request=v___location_resource,vars.previous_request_progressive=String(),v___theme_connection_triggered_origin=1,$.pjax.submit(e,"[data-dcontainer]",{timeout:0,push:a,type:get_pjax_type(e.target.action),fragment:"[data-dcontainer]"})}}function get_pjax_action_click(e,t,a){var n=void 0===a||!0===a||1==a;if(void 0!=$(t).attr("href")){var i=$(t).attr("href");if(i&&i.includes("!edit")){e.preventDefault();var r=i.replace("!edit ",""),s=r.split("\\").pop().split("/").pop(),o=r.replace("/"+s,"");return progress.start(),void edit_file(s,o||"/")}if($(e.target).is(".gl-icon-select"))return e.preventDefault(),void $(t).trigger("contextmenu");if(vars.previous_request_progressive=t.href,t&&t.href&&unbuffered_header_processor_allow(t.href))return e.preventDefault(),void unbuffered_header_processor(t.href,0);if(!e||e.shiftKey||e.ctrlKey||e.metaKey||$(t).attr("href",link_type_convert($(t).attr("href"),1)),e&&(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)&&setTimeout(function(){despinnerfy_buttons()},400),v___theme_connection_triggered_origin=1,e.target.href&&$(e.target).hasClass("page_footer_submit")&&e.target.href.includes(".cgi/")&&!e.target.href.includes("/link.cgi/")){var _=URI(e.target.href).directory();if(_&&_.includes(".cgi")){var l=_.split("/");l=(l=l.filter(function(e){return!e.includes(".cgi")})).join("/"),e.target.href=e.target.href.replace(_,l)}}$.pjax.click(e,{timeout:0,push:n,type:get_pjax_type(t),container:"[data-dcontainer]",fragment:"[data-dcontainer]"}),vars.previous_request=e,vars.previous_request_progressive=String()}}function get_onbeforeunload_message($eventData,$thisData,$justEval){var popovers=$(".popover.in"),are_there_popovers=popovers.length,delay=are_there_popovers?120:0,before_onload_class_prompt="bootbox-o__f_m-beforeclose-prompt";are_there_popovers&&popovers.popover("hide"),setTimeout(function(){if(!$("."+before_onload_class_prompt).length){var save_prompt=bootbox.dialog({message:""+theme_language("global_unbeforeunload_message"),title:'<i class="fa fa-fw fa-question-circle font-size-80p '+before_onload_class_prompt+'">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+theme_language("global_unbeforeunload_title")+"</strong>",buttons:{main:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("global_cancel")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top margined-left--2",callback:function(){despinnerfy_buttons(),plugins.navigation.detect(),plugins.navigation.select.back()}},danger:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-right">&nbsp;&nbsp;</i>'+theme_language("global_continue")+"&nbsp;&nbsp;",className:"btn-danger vertical-align-top margined-left--2",callback:function(){if(set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),theme_config_check(),"object"==typeof progressive_request&&1===progressive_request.readyState&&progressive_request.abort(),"ev"!==$justEval){$.each($justEval,function(func,params){var caller=func.includes(".")?eval(func):window[func];caller.apply(null,params)});var switchStr="::switch::";if($thisData&&$thisData.href&&Test.strContains($thisData.href,switchStr))$('.switch-toggle input[id="'+$thisData.href.replace(""+switchStr,"")+'"]').trigger("click");else{var $is_form=$($thisData).is("form");$is_form?$is_form&&get_pjax_action_submit($eventData):$thisData.href&&$thisData.href.length&&get_pjax_content($thisData.href,!1)}}else eval($thisData)}}},onEscape:function(){despinnerfy_buttons(),plugins.navigation.detect()}});save_prompt.on("shown.bs.modal",function(){var e=$(this);setTimeout(function(){e.find('[data-bb-handler="danger"]').focus()},0)})}},delay)}function get_onbeforeunload_status(){return $('.container-fluid > .panel > .panel-body[data-unload-warning="1"]').length||$('html[data-unload-warning="1"]').length}function set_onbeforeunload_status(e,t){var a=t?"html":".container-fluid > .panel > .panel-body";e?$(a).attr("data-unload-warning","1"):$(a).removeAttr("data-unload-warning")}function set_onbeforeunload_status_native(e){e?$("html").attr("data-unload-error","1"):$("html").removeAttr("data-unload-error")}function get_onbeforeunload_status_native(){return $('html[data-unload-error="1"]').length}function theme_cache_clear(e){theme.veiled(1),plugins.messenger.post('<i class="fa fa-lg fa-fw fa2 fa2-delete fa-1_25x margined-top--2"></i>'+theme_language("clear_cache_initiated")+" "+theme_language("global_please_wait")+'&nbsp;&nbsp;&nbsp;<span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',1800,"info","themeUpgrade",0),"undefined"!=typeof stats&&stats.general.disable(),$.post(v___location_prefix+"/index.cgi/?xhr-theme_clear_cache=1"),set_onbeforeunload_status(0,0),localStorage.clear(),$(".right-side-tabs-dismiss .fa-trash, .right-side-tabs-dismiss .fa-refresh").trigger("click"),e&&spinnerfy_buttons($(e),[1.5,-33,"small",1e3]),setTimeout(function(){theme_reload()},1e3)}function theme_password_generator(){var e=settings_global_passgen_format.split("|")[1].split(","),t=parseInt(settings_global_passgen_format.split("|")[0]),a="",n="";$.inArray("a-z",e)>=0&&(a+="abcdefghijklmnopqrstuvwxyz"),$.inArray("A-Z",e)>=0&&(a+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),$.inArray("0-9",e)>=0&&(a+="0123456789"),$.inArray("#",e)>=0&&(a+="![]{}()%&*$#^<>~@|");for(var i=0;i<t;i++)n+=a.charAt(Math.floor(Math.random()*a.length));return n}function get_cookie(e){for(var t=e+"=",a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null}function array_swap(e){var t={};for(var a in e)t[e[a]]=a;return t}function theme_module_check_clone(e){if(e){var t=e.replace(/\//g,"");if(v___module&&v___module!==t&&v___module.includes(t))return 1}return 0}function theme_buttonify(e,t,a,n,i,r,s,o,_,l){void 0===i&&(i=!1),void 0===r&&(r=""),void 0===s&&(s=""),(void 0===o||0==o)&&(o=""),(void 0===_||0==_)&&(_=!1),(void 0===l||0==l)&&(l=!1),$.each(e,function(e,c){(v___location_path==v___location_prefix+c||theme_module_check_clone(c))&&(1===r||$.isArray(r)||(r=r.split("~"),s=s.split("~")),$.each($(r),function(e,a){if(1!==r){var n=new RegExp(RegExp.quote(a),"g");$(t+':not(.f__lnk_t_btn):contains("'+a+'")').replaceText(n,s[e])}}).promise().done(function(){var e="",r="";o&&o.indexOf("~")>-1&&(o=o.split("~"),e=o[0],r=o[1]),$.each($(t).find(a),function(){var s=$(t).find(a).parents(".btn-group.ui_links_row");if(s.length&&s.contents().unwrap(),!$(this).parents(t).hasClass("f__lnk_t_btn")||Test.strContains(n,"---forced")){if(_){var o=new RegExp(RegExp.quote(_),"g");$(this).parent().replaceText(o,l||"")}n&&n.indexOf("__center__")>-1&&$(a).parent().addClass("text-center").addClass("f__lnk_t_btn-el"),$(this).html(e+$(this).text().replace(/\.\.$/,"")+r).addClass(n).addClass("f__lnk_t_btn-el").removeClass("ui_link").prepend(i?'<i class="fa fa-fw margined-left--3 '+i+'" style="vertical-align: baseline !important">&nbsp;&nbsp;</i>':""),$(this).parent(t).addClass("f__lnk_t_btn")}})}))})}function theme_toggle_night_mode(){var e=$("body .user-link.palette-toggle"),t=e.find(".fa-sun").length?0:1,a=(get_server_data("data-night-mode"),get_server_data("data-default-theme")),n=settings_background_color,i=$("input, textarea").is(":focus");if((!$.support.spa||!i)&&$.support.spa&&!$("body").find(".modal.in:visible").length)if(1===t){e.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun vertical-align-middle"),progress.start(),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var r=$("html").find('head link[href*="palettes"][data-palette]'),s=document.styleSheets.length+1;$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/gunmetal."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/nightrider."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),function e(t){function a(){get_server_data("data-theme","gunmetal"),r.remove(),get_server_data("data-bgs","nightRider"),get_server_data("data-night-mode",1),v___theme_night_mode_enabled=1,v___theme_night_mode=1,v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length||setTimeout(function(){progress.end()},201),_()}var n=document.styleSheets;try{if(!n[t]||!n[t].cssRules[0])return void setTimeout(function(){e(t)},200)}catch(e){return"SecurityError"!==e.name?void setTimeout(function(){a()},800):void 0}a()}(s)}else{$("body").find(".settings_navigation_color_toggle").removeClass("hidden"),e.find(".fa-sun").removeClass("fa-sun vertical-align-middle").addClass("fa-moon");var o=$("html").find('head link[href*="gunmetal"]');"blue"!=get_server_data("data-default-theme")&&$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+a.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),get_server_data("data-theme",a),o.remove(),get_server_data("data-bgs",n),get_server_data("data-night-mode",0),"nightRider"!==settings_background_color&&$("html").find('head link[href*="nightrider"]').remove(),v___theme_night_mode_enabled="nightRider"===settings_background_color?1:0,v___theme_night_mode=0,_()}function _(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"sysinfo.cgi"&&$(".__page .piechart").length?($.each($(".piechart"),function(){$(this).addClass("bg-filter-blur-grayscale-invert-opacity75").data("easyPieChart").update(0)}),theme_config("save",['get_pjax_content("'+v___location_prefix+'/sysinfo.cgi")',0])):theme_config("save")}}function theme_spinner_small(e,t,a){return'<span class="cspinner '+(e=e||"in-btn-md")+'" style="position: relative"><span class="cspinner-icon '+(t=t||"dark")+'" style="'+(a=a||"width:12px; height:12px; margin-right: 7px;")+'"></span></span>'}function despinnerfy_buttons(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>0&&void 0!==arguments[1]?arguments[1]:0,a=t||$(".btn.disabled");$.each(a,function(){var t=$(this),a=t.find(".cspinner_container"),n=a.prev("i.invisible");!e&&t.removeClass("disabled"),n.removeClass("invisible"),a.remove()})}function spinnerfy_buttons(e,t,a,n){var i=!!(e.attr("onclick")&&-1!==e.attr("onclick").indexOf("blank")||e.parents("form").attr("target")&&-1!==e.parents("form").attr("target").indexOf("blank")),r=e.hasClass("heighter-28"),s="28px"==e.css("height"),o=e.hasClass("btn-lg"),_=e.find(".fa").hasClass("fa-1_25x"),l=e.find(".fa"),c=void 0!==t&&0!=t&&t,d='<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: '+(c?c[0]+"px":!r&&!s||_||o?_?"1.6px":o?"0.5px":"0":"-0.5px")+" !important; margin-left: "+(c?c[1]+"px":!r&&!s||_||o?o?"-28px":r||s||!_?"-25.5px":"-27.5px":"-23.5px")+' !important;"><span class="cspinner-icon white '+(c?c[2]?c[2]:"":r||s?"smaller":"small")+'"></span></span></span>',g='<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: '+(c?c[0]+"px":!r&&!s||_||o?_?"1.6px":o?"0.5px":"0":"-0.5px")+" !important; margin-left: "+(c?c[1]+"px":!r&&!s||_||o?o?"-28px":r||s||!_?"-25.5px":"-27.5px":"-23.5px")+'  !important;"><span class="cspinner-icon dark '+(c?c[2]?c[2]:"":r||s?"smaller":"small")+'"></span></span></span>';setTimeout(function(){!i&&e.addClass("disabled")},10),l.length&&!i&&setTimeout(function(){e.hasClass("btn-default")?l.addClass("invisible").after(g):l.addClass("invisible").after(d)},10),void 0==typeof a&&(a=!1),void 0==typeof n&&(n=!1),(c[3]||a)&&setTimeout(function(){e.removeClass("disabled"),l.removeClass("invisible"),e.find(".cspinner_container").remove()},a||c[3]),n&&setTimeout(function(){progress.end()},400)}function theme_language(e,t){void 0===t&&(t=!1);var a="theme_xhred_"+e,n=v___theme_language;if(t){var i=Convert.arrFlip(n);return i[$.trim(a)]||i[$.trim(e)]}return n[a]||n[e]}function theme_copy_to_clipboard(e){try{navigator.clipboard.writeText(e)}catch(a){$("body").append('<button class="hidden tmp-clipboard-obj" data-clipboard-text="'+Convert.htmlEscape(e)+'"></button>');var t=new Clipboard(".tmp-clipboard-obj");$(".tmp-clipboard-obj").trigger("click").remove(),t.destroy()}}function theme_config($action,callBack,$singleOptionToSaveName,$singleOptionToSaveValue){var callBack="object"==typeof callBack&&callBack,watched_options=["config_portable_module_csf_style_custom_promoted","config_portable_theme_charset_warning_shown","config_portable_theme_locale_language","config_portable_theme_locale_languages","config_portable_theme_locale_format_full","config_portable_theme_locale_format_long","config_portable_theme_locale_format_short","config_portable_theme_locale_format_time","config_portable_module_xsql_fit_content_screen_height","config_portable_module_filemanager_records_per_page","config_portable_module_filemanager_records_for_server_pagination","config_portable_module_filemanager_default_sort","config_portable_module_filemanager_hide_tree_view","config_portable_module_filemanager_tree_expand_search","config_portable_module_filemanager_tree_view_depth","config_portable_module_filemanager_tree_exclude_on_first_load","config_portable_module_filemanager_hide_toolbar","config_portable_module_filemanager_hovered_toolbar","config_portable_module_filemanager_hide_actions","config_portable_module_filemanager_remember_tabs","config_portable_module_filemanager_calculate_size","config_portable_module_filemanager_force_tar","config_portable_module_filemanager_switch_user"];if("get_options"==$action)return watched_options;if("save"==$action&&$singleOptionToSaveName)return localStorage.setItem(v___server_hostname+"-"+$singleOptionToSaveName,$singleOptionToSaveValue),window[$singleOptionToSaveName]=$singleOptionToSaveValue,void theme_config("save");if("save"==$action){var storeStorage={},val=0;$.each(localStorage,function(e,t){"string"==typeof e&&e.indexOf(v___server_hostname)>-1&&Test.arrIntersect(watched_options,e)&&"undefined"!=(val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t))&&(storeStorage[e.replace(v___server_hostname+"-","")]=val)}),storeStorage.settings_force_night_mode=v___theme_night_mode,storeStorage.settings_font_family=settings_font_family,storeStorage.settings_navigation_color=settings_navigation_color,storeStorage.settings_grayscale_level_navigation=settings_grayscale_level_navigation,storeStorage.settings_sepia_level_navigation=settings_sepia_level_navigation,storeStorage.settings_saturate_level_navigation=settings_saturate_level_navigation,storeStorage.settings_hue_level_navigation=settings_hue_level_navigation,storeStorage.settings_invert_level_navigation=settings_invert_level_navigation,storeStorage.settings_brightness_level_navigation=settings_brightness_level_navigation,storeStorage.settings_contrast_level_navigation=settings_contrast_level_navigation,storeStorage.settings_background_color=settings_background_color,storeStorage.settings_cm_editor_palette=settings_cm_editor_palette,storeStorage.settings_theme_make_date=settings_theme_make_date,storeStorage.settings_enable_container_offset=settings_enable_container_offset,storeStorage.settings_contrast_mode=settings_contrast_mode,storeStorage.settings_usermin_default_module=settings_usermin_default_module,storeStorage.settings_document_title=settings_document_title,storeStorage.settings_right_page_hide_persistent_vscroll=settings_right_page_hide_persistent_vscroll,storeStorage.settings_hide_top_loader=settings_hide_top_loader,storeStorage.settings_collapse_navigation_link=settings_collapse_navigation_link,storeStorage.settings_sysinfo_link_mini=settings_sysinfo_link_mini,storeStorage.settings_show_night_mode_link=settings_show_night_mode_link,storeStorage.settings_show_terminal_link=settings_show_terminal_link,storeStorage.settings_favorites=settings_favorites,storeStorage.settings_theme_options_button=settings_theme_options_button,storeStorage.settings_leftmenu_button_refresh=settings_leftmenu_button_refresh,storeStorage.settings_hotkeys_active=settings_hotkeys_active,storeStorage.settings_mail_ui=settings_mail_ui,setTimeout(function(){$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&save=1",data:storeStorage,dataType:"text",success:function(c){Test.strContains(c,v___page_signin_form)?v___available_session=0:(setTimeout(function(){"0"!=get_access_level()&&(theme_restore_buttons_class(),theme_config_controls(0),despinnerfy_buttons(0,$("#save_user")))},400),callBack&&(callBack[2]?setTimeout(function(){eval(callBack[0])},callBack[2]):eval(callBack[0])))},error:function(){}})},10)}else if("load"===$action){var val=0;$.ajax({type:"GET",url:v___location_prefix+"/index.cgi?xhr-manage-config=1&load=1",data:!1,dataType:"json",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:($.each(e,function(e,t){val="true"==t||"false"!=t&&(Test.numeric(t)?t&&t.length>16?t:parseInt(t):t),localStorage.setItem(v___server_hostname+"-"+e,val),window[e]=val}),theme_config_post_load())},error:function(){}})}}function theme_config_post_load(){moment.locale(config_portable_theme_locale_language&&"0"!=config_portable_theme_locale_language?config_portable_theme_locale_languages:get_server_data("language-full"))}function get_login_required(e){return Test.strContains(e,v___page_signin_form)?(v___available_session=0,1):0}function get_server_data(e,t,a){var n=$("html"),i=$("body"),r="data-"+e,s=e.replace("data-","");if(void 0!==a)e.startsWith("data-")?(n.removeAttr(e),n.removeData(s)):(n.removeAttr(r),n.removeData(e)),"data-uri"===e&&i.removeAttr(e);else{if(void 0===t)return e.startsWith("data-")?n.attr(e):n.data(e);e.startsWith("data-")?n.attr(e,t).data(s,t):n.data(e,t).attr(r),"data-uri"!==e&&"data-module"!==e||(i.attr(e,t),"data-module"===e&&i.removeClass().addClass(t))}}function check_reboot(){core.curModuleFile("init","reboot.cgi")&&!document.querySelector('.container-fluid [action="reboot.cgi"]')&&setTimeout(function(){connection_error({status:0,reboot:1},1,{body:theme_language("connection_reboot_details"),title:theme_language("connection_reboot"),icon:"refresh-mdi"}),vars.pjax.post_reboot=!0},1e3)}function connection_error(e,t,a){var n=function(e){var t=String();if(e.responseText&&$(e.responseText).filter("p")){var a=$(e.responseText).filter("p").html();if(a){var n=a.replace(/\n/g," ").match(/(.*)\sat\s\/|(.*)/);n&&(t=" – "+Convert.htmlStrip(n[2]||n[1]))}}return t},i=n(e);if(502!==e.status||!i||!i.includes("tree.cgi"))if(progress.end(),v___theme_ajax_error=1,1!==v___theme_connection_triggered_origin&&!t||0!==e.status&&400!==e.status&&404!==e.status&&500!==e.status&&502!==e.status&&503!==e.status){var r=n(e),s=String();if(413===e.status){var o=theme_wiki_link("global_error_more_details_online","https://github.com/authentic-theme/authentic-theme/wiki/Error:--413---Request-Entity-Too-Large");o&&(s=". <br>"+o)}200!==e.status&&(e.status&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("global_error")+":&nbsp;&nbsp;"+e.status+" - "+e.statusText+r+s,30,"error","ajaxError"),setTimeout(despinnerfy_buttons,400))}else{var _="modal-connection-warning",l=e;vars.pjax.post_reboot&&(vars.pjax.post_reboot=!1),$("."+_).length||this.called||(this.called=1,$.ajax({context:this,type:"GET",url:v___location_prefix+"/index.cgi/?xhr-error=1",data:!1,dataType:"text",timeout:3e3,success:function(){this.called=0},error:function(){var e=theme_language("connection_error_details").replace("%server",location.host+v___location_prefix),t=theme_language("connection_lost"),n="unplugged",i="danger";a&&(e=a.body,t=a.title,n=a.icon,_+=" modal-reboot",i="warning");var r=new Date;r=moment(r.toISOString()).format(config_portable_theme_locale_format_full);var s='<sup class="fa fa-clock" data-toggle="tooltip" data-title="'+theme_language("connection_lost")+": <br>"+r+'"></sup>';l.reboot&&(s=String()),theme_alert(t+'<span class="loading-dots"></span>'+s,e,!1,"md",i,n+" fa-lg","7 "+_,0),setTimeout(function(){$("."+_+" .loading-dots + .fa").tooltip({placement:"auto bottom",trigger:"hover",html:!0,delay:{show:600,hide:30}})},150),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,this.called=0,$("."+_).on("hidden.bs.modal",function(){v___theme_connection_reestablish=0,progress.end()}))},1),setTimeout(function(){plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock()},100)}}))}}function theme_wiki_link(e,t){var a=theme_language(e),n=a.match(/%1(.*)%1/);if(n){var i=new RegExp(n[1],"g");return a=a.replace(/%1/g,String()).replace(i,'<a target="_blank" class="text-success" href="'+t+'">'+n[1]+"</a>")}return String()}function connection_modal_close(){$(".modal-connection-warning").modal("hide"),v___theme_connection_reestablish=0}function connection_reestablish(){var e="modal-connection-warning";$("."+e).length&&$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-check=1",data:!1,timeout:3e3,dataType:"text",success:function(t){$("."+e).removeClass("modal-reboot"),$("."+e).find(".modal-header").removeClass().addClass("modal-header background-success background--bordered").find("h4").html('<i class="fa fa-fw fa-plug fa-lg">&nbsp;&nbsp;</i> '+theme_language("connection_success")),$("."+e).find(".modal-body").html("<p>"+theme_language("connection_success_details")+"</p>"),vars.pjax.post_reboot?(get_pjax_content(v___location_prefix+"/sysinfo.cgi",["success",connection_modal_close]),vars.pjax.post_reboot=!1):setTimeout(function(){connection_modal_close()},2e3)},error:function(e){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},3e3)}})}function control_server_theme_temp_data(e,t,a,n,i,r){return $.ajax({type:"POST",url:v___location_prefix+"/index.cgi/?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(a?Convert.uriEncodeComponent(a):a)+"&xhr-theme_temp_data_keep="+n,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:"function"==typeof i&&(!e.length||e.length&&1===r)&&i()},error:function(e){}})}function get_server_theme_temp_data(e,t,a,n){return control_server_theme_temp_data("get",e,!1,t,a,n)}function set_server_theme_temp_data(e,t){control_server_theme_temp_data("set",e,t)}function page_control_header(){var e=$(".header #headln2l"),t=$(".header #headln2c");if(matchMedia("(max-width: 767px)").matches){if(e.next().is("#headln2c")){var a=t.detach();e.before(a)}}else if(t.next().is("#headln2l")){a=t.detach();e.after(a)}}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),a=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),a.find("#__tmp_no_overflow").remove()}function page_remove_progress(){despinnerfy_buttons(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0),setTimeout(function(){get_server_theme_temp_data("redirected",0)},100),setTimeout(function(){progress.end()},600)}function page_adjust(e,t){"function"==typeof $.injectCSS&&($("style[data-persist]").remove(),t=!!t&&"translate("+t+"px, 0px) !important",$.injectCSS({"#sidebar":{left:-e+"px",width:e+"px",transform:t},".switch-toggle":{width:e+"px"},"#content.__page":{"margin-left":e+"px"},".autocomplete-suggestions":{"min-width":e-23+"px !important"},".__logo":{width:e+"px","max-width":e+"px"},"#jsPanel-replacement-container":{left:($.support.spa?settings_leftmenu_width-1:-2)+"px"}}),$("aside select").length&&core.curModuleFile("webmin","edit_themes.cgi")&&!$.browser.mobile&&($("aside select[data-autocomplete-title]").attr("style","width:"+(e-24)+"px; margin-top: 0 !important"),plugins.navigation.select.load()))}function theme_modal_dismiss(){$(".modal.in").find("[data-dismiss]").trigger("click")}function theme_shortcut_check(e){return"0"==get_access_level()||!!core.moduleAvailable(URI("/"+e).directory().replace(/\//g,""))}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],a=t.indexOf(settings_hotkey_toggle_modifier),n=!1;return t.splice(a,1),t.map(function(t){e[t]&&!n&&(n=!0)}),!n}function theme_shortcuts(e){if(!Test.editing()&&settings_hotkeys_active){var t=theme_shortcuts_modifier_unique(e);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&"R"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme_cache_clear(),0===get_access_level()&&e.ctrlKey&&e.altKey&&e.shiftKey&&"U"==String.fromCharCode(e.which)&&!theme.veiled(-1)&&theme.update(e.metaKey?0:1),!t)return!0;if(!v___available_session)return void e.preventDefault();if(e[settings_hotkey_toggle_modifier]){if("1"==String.fromCharCode(e.which)&&settings_hotkey_custom_1&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_1)),"2"==String.fromCharCode(e.which)&&settings_hotkey_custom_2&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_2)),"3"==String.fromCharCode(e.which)&&settings_hotkey_custom_3&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_3)),"4"==String.fromCharCode(e.which)&&settings_hotkey_custom_4&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_4)),"5"==String.fromCharCode(e.which)&&settings_hotkey_custom_5&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_5)),"6"==String.fromCharCode(e.which)&&settings_hotkey_custom_6&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_6)),"7"==String.fromCharCode(e.which)&&settings_hotkey_custom_7&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_7)),"8"==String.fromCharCode(e.which)&&settings_hotkey_custom_8&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_8)),"9"==String.fromCharCode(e.which)&&settings_hotkey_custom_9&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9)&&get_pjax_content(v___location_prefix+settings_hotkey_custom_9)),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_focus_search&&(e.preventDefault(),$(".form-control.sidebar-search").focus()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmin&&(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_virtualmin&&(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_cloudmin&&(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_usermin&&(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_webmail&&(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_navigation&&window.matchMedia("(min-width: 1080px)").matches&&(e.preventDefault(),$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_slider&&window.matchMedia("(min-width: 1366px)").matches&&(e.preventDefault(),$('[data-trigger="side_slider_pinned"]').trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_toggle_slider&&(e.preventDefault(),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_reload&&$('.user-links a[data-refresh="true"]')&&(e.preventDefault(),page_refresh()),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_shell&&theme_shortcuts_modifier_unique(e)&&(1==core.moduleAvailable("shell")||plugins.shell.type()))return e.preventDefault(),void(plugins.shell.status()?plugins.shell.close():plugins.shell.open());String.fromCharCode(e.which).toLowerCase()==settings_hotkey_sysinfo&&(e.preventDefault(),1==plugins.navigation.switch.dashboard.get()?plugins.navigation.switch.dashboard.set():get_pjax_content(v___location_prefix+"/sysinfo.cgi")),String.fromCharCode(e.which).toLowerCase()==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover"))}return!1}}function sysinfo_replace_dismiss_buttons(){var e=$('#system-status [onclick*="webmin/hide.cgi?id"], #right-side-tabs [onclick*="webmin/hide.cgi?id"], [data-referrer^="announce"] [onclick*="webmin/hide.cgi?id"]');$.each(e,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val()),$(this).before('<a class="btn btn-grey btn-tiny margined-top-3" data-panel-ctl data-href-background="'+e.split('"')[1]+'"><i class="fa fa-fw fa-times-circle-o"></i> '+t+"</a>"),$(this).remove()});var t=$('#system-status [onclick*="window.open"][onclick*="_new"], #right-side-tabs [onclick*="window.open"][onclick*="_new"], [data-referrer^="announce"] [onclick*="window.open"][onclick*="_new"]');$.each(t,function(){var e=$(this).attr("onclick"),t=$(this).text();$(this).is("input")&&(t=$(this).val());var a="btn-primary",n=e.split('"')[1],i="fa fa-fw fa-external-link";n.includes("patreon")&&(i="fa2 fa-fw fa2-kiss-wink-heart-bold",a="btn-success"),$(this).before('<a class="btn '+a+' btn-tiny margined-top-3" data-panel-ctl target="_blank" rel="noreferrer" href="'+n+'"><i class="'+i+'"></i> '+t+"</a>"),$(this).remove()})}function get_access_level(){return""!=vars.level&&-1!==vars.level?parseInt(vars.level):parseInt(get_server_data("level"))}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return void 0!==window["Messenger_"+e]}function theme_message_dismiss(e){void 0!==window["Messenger_"+e]&&(window["Messenger_"+e].hide(),delete window["Messenger_"+e])}function theme_message_and_unlock(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:String(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"info",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;plugins.messenger.post('<i class="fa fa-lg fa-fw '+e+'"></i>'+theme_language(""+t)+"</code>&nbsp;",r,i,n,s),setTimeout(function(){page_remove_progress(a)},600)}function theme_alert(e,t,a,n,i,r,s,o){(void 0===a||0==a)&&(a=!1),(void 0===n||0==n)&&(n="md"),(void 0===i||0==i)&&(i="danger"),(void 0===r||0==r)&&(r="exclamation-triangle"),(void 0===s||0==s)&&(s="7"),(void 0===o||0==o)&&(o=!1);$.isArray(a);var _="modal-global-notification",l='<div class="modal fade '+_+" "+s+'" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static"><div class="modal-dialog modal-'+n+'"><div class="modal-content"><div class="modal-header background-'+i+' background--bordered"><button type="button" class="close" data-dismiss="modal" aria-label="'+theme_language("global_close")+'"><span aria-hidden="true">&times;</span></button><h4 class="modal-title"><i class="fa fa-fw fa-'+r+'">&nbsp;&nbsp;</i> '+(theme_language(e)?theme_language(e):e)+'</h4></div><div class="modal-body"><p>'+(theme_language(t)?theme_language(t):t)+"</p><div"+($.isArray(a)?"":' class="hidden"')+'><button class="btn btn-default btn-xs btn-block margined-bottom-1" type="button" data-toggle="collapse" data-target="#collapse-'+_+'" aria-expanded="false" aria-controls="collapse-'+_+'">'+theme_language(a[0])+'</button><div class="collapse" id="collapse-'+_+'"><div class="well">'+a[1]+"</div></div></div></div></div></div></div>";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(l),$("."+_).modal("show"),$("."+_).on("click",".modal-body a.label",function(e){$("."+_).modal("hide")}),$("."+_).on("hidden.bs.modal",function(e){$("."+_).remove()}))},o)}function theme_alert_charset(){var e=get_server_data("charset");if(e&&-1===e.toLowerCase().indexOf("utf")&&"true"!=localStorage.getItem(v___server_hostname+"-config_portable_theme_charset_warning_shown")){var t="<p>"+theme_language("encoding_warning").replace("_hidden_",$t_uri_usermin?"hidden":"").replace("%prod",plugins.navigation.state.title()).replace("%lang",get_server_data("language")).replace("%charset",get_server_data("charset")).replace("%link",v___location_prefix+($t_uri_usermin?"/language":"/webmin/edit_lang.cgi"))+"</p>";theme_alert(theme_language("global_warning"),t,!1,"sm","warning",!1,"7 modal-charset-warning",2e3),$("body").on("click",".modal-charset-warning a.label",function(e){$(".modal-charset-warning").modal("hide")}),$("body").on("hide.bs.modal",".modal-charset-warning",function(e){localStorage.setItem(v___server_hostname+"-config_portable_theme_charset_warning_shown","true"),theme_config("save")})}}function get_module_title(){return $_right_menu_title=$("#headln2c"),$_right_menu_title.find("span[data-main_title]").text().length?$_right_menu_title.find("span[data-main_title]").text():$_right_menu_title.text().length?$_right_menu_title.text().text():"->"}function editor_background_save(e,t){if(1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').length&&1===$('.container-fluid textarea[name="data"],.container-fluid textarea[name="text"],.container-fluid textarea[name="directives"],.container-fluid textarea[name="manual"]').parents("form").find('input[type="submit"]').length){if(!$(".CodeMirror").length)return;function a(){"undefined"!=typeof __cm_editor_static&&$(".container-fluid > .panel > .panel-body").attr("data-cm-line",__cm_editor_static.getCursor().line+","+__cm_editor_static.getCursor().ch).attr("data-cm-state",$('[data-form="submitter"]').hasClass("btn-warning")&&!$('[data-form="submitter"]').next("button").hasClass("disabled"))}var n=$(document.body),i=".container-fluid > .panel > .panel-body",r=$(i+' textarea[name="data"], '+i+' textarea[name="text"], '+i+' textarea[name="directives"], '+i+' textarea[name="manual"]').parents("form"),s=r.find('button[type="button"]').length?r.find('button[type="button"]'):r.find('input[type="submit"]'),o=$(i+' textarea[name="directives"]').length?"-12px":"0";$(i+" select").val()?$(i+" select").val():$(".container-fluid .table-title").text()?$(".container-fluid .table-title").text():$(".container-fluid .panel-body tt:first").text()?$(".container-fluid .panel-body tt:first").text():$(".container-fluid #headln2c tt:first").text()&&$(".container-fluid #headln2c tt:first").text();$(i+" .ui_reset").remove(),s.parents("table.ui_form_end_buttons").prev("br").remove(),s.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),s.replaceWith('            <span class="btn-group" style="margin-top: '+o+'">                <button type="button" class="btn btn-'+(e?"warning":"success")+' btn-34 margined-top-5" data-form="submitter" data-form-onbeforeunload="'+(e?"1":"0")+'"><i class="fa fa-fw fa-floppy-o">&nbsp;&nbsp;</i>'+theme_language("global_save")+'&nbsp;</button>                <button type="submit" class="btn btn-default btn-34 margined-top-5"><i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("global_save_and_close")+"&nbsp;</button>            </span>        ");var _=$(i+' button[type="button"]:not(.ui_form_end_submit)'),l=($(i+' button[type="submit"]:not(.ui_form_end_submit)'),window.__cm_editor_static),c='button[type="submit"]:not(.disabled)',d='button[data-form="submitter"]:not(.disabled)';l.on("change",function(e,t){__cm_editor_static.save(),_.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),a()}),n.off("mousedown.cm1").on("mousedown.cm1",i+" .CodeMirror",function(e){a()}).off("keydown.cm1").on("keydown.cm1",function(e){var t=e.keyCode?e.keyCode:e.which,a=$(i+' button[type="button"]:not(.ui_form_end_submit)'),n=a.not(".disabled"),r=$(i+' button[type="submit"]:not(.ui_form_end_submit)'),s=r.not(".disabled");a.find(".cspinner_container").length||r.find(".cspinner_container").length?e.preventDefault():(13==t||83==t)&&l&&l.hasFocus()&&(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),n.length&&n.trigger("click")):e.altKey&&e.ctrlKey&&e.shiftKey&&s.length&&(e.preventDefault(),s.trigger("click")):e.ctrlKey&&e.shiftKey&&s.length?s.trigger("click"):e.ctrlKey&&n.length&&n.trigger("click"))}).undelegate(c,"click.cm").on("click.cm",c,function(e){set_onbeforeunload_status(0,0),$(this).addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible").after('<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: -0.5px; margin-left: -28px;"><span class="cspinner-icon dark small"></span></span></span>'),_.attr("data-form-onbeforeunload",0)}).undelegate(d,"click.cm").on("click.cm",d,function(e){e.preventDefault();var t=$(this).parents("form"),a=(t.attr("enctype")&&t.attr("enctype").indexOf("form-data")>-1?0:1)?t.serialize():new FormData(t[0]);$(this).addClass("disabled").find(".fa.fa-floppy-o").addClass("invisible").after('<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: -0.5px; margin-left: -28px;"><span class="cspinner-icon white small"></span></span></span>'),setTimeout(function(){$.ajax({type:"POST",url:r.attr("action"),data:a,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(!Test.strContains(e,v___page_signin_form))return _.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(i).attr("data-cm-state","false"),set_onbeforeunload_status(0,0),!$(e).find(".panel-body > hr + h3").length||$(e).find(".panel-body .table").length||$(e).find(".panel-body form[action]").length?void 0:(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+$(e).find(".panel-body hr + h3").html(),60,"error","magic_save_error"),_.removeClass("btn-success").addClass("btn-warning").attr("data-form-onbeforeunload",1),void $(i).attr("data-cm-state","true"));v___available_session=0},error:function(e){}})},300)}),editor_config_search(t)}}function editor_config_search(e){var t="dropdown-editor_config_search",a="[data-search-in-files-button]",n='[data-name="search-in-files"]',i="data-search-in-results-container",r="."+t,s=".panel-body form .select2",o="data-search-in-files-icon-find",_=theme_spinner_small(),l="data-no-results-initial",c="data-search-stats",d=0;setTimeout(function(){var e=$(s),g=e.prev("select"),f=g.attr("name"),u=e.parents("form").attr("action");if(e.addClass("z-index-10001"),!(g.find("option").length<=1)){e.parents("form").addClass("text-nowrap"),$(r).length||(e.after('<div data-toggle="tooltip" data-container="body" data-title="'+theme_language("search_in_file")+'" class="btn-group '+t+'">                                    <button aria-label="'+theme_language("search_in_file")+'" data-toggle="dropdown" class="btn btn-default dropdown-toggle" aria-expanded="false">                                       <span class="fa fa-md fa-file-find"></span>                                    </button>                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">                                      <li>                                        <button data-clear-search class="btn btn-link btn-transparent-link hidden"><i aria-label="'+theme_language("global_reset")+'" class="fa fa-times-circle-o"></i></button>                                        <input type="text" name data-name="search-in-files" placeholder="'+theme_language("find_in_config_files")+'" class="heighter-34">                                      </li>                                      <li><span data-search-in-files-container><span data-search-in-files-button class="btn btn-default pull-right disabled"><i '+o+' class="fa fa-search"></i>'+_+theme_language("global_find")+"</span></span></li>                                      <li "+l+' role="separator" class="divider"></li>                                      <li '+l+' data-search-in-results class="'+("monokai"==settings_cm_editor_palette?"dark":"light")+'">                                        <span '+i+"></span>                                        <span "+c+'></span>                                      </li>                                    </ul>                                </div>                                <button data-external-detach data-toggle="tooltip" data-container="body" data-title="'+theme_language("search_in_file_open_external")+'" aria-label="'+theme_language("search_in_file_open_external")+'" class="btn btn-default">                                   <span class="fa2 fa2-link-external vertical-align-baseline fa-mds"></span>                                </button>                                '),setTimeout(function(){var e=uri_parse_param("editor_search");e&&($(n).val(e).trigger("keydown"),setTimeout(function(){$(a).removeClass("disabled").trigger("click")}))})),$(".dropdown-editor_config_search + [data-external-detach]").on("click",function(e){e.preventDefault();if(!$(this).hasClass("disabled")){$(this).addClass("disabled");var t=$(this).parents("form").find("select").val().match(/^(.+)\/([^/]+)$/);t[0]&&t[1]&&t[2]&&(v___page_editor_detached=!0,edit_file(t[2],t[1]))}});var p=$("["+i+"]");p.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+p[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)}),$(r).find("li").on("click",function(e){e.stopPropagation()}),$(r).on("show.bs.dropdown",function(){var e=$(s).prev("select").prev('input[type="submit"]'),t=-1,a=$(s).width();a<360&&(t+=$(s)[0].offsetLeft-(e.length?14:11));var n=t+a+$(r).width();$(this).find(".dropdown-menu").css("min-width",n).css("max-width",n).css("width",n);var i=$(this).parents("form").outerWidth(),o=$(this)[0].offsetLeft;if(o<i/3){var _=(i-o)/1.5;$(this).find(".dropdown-menu-right").removeClass("dropdown-menu-right"),$(this).find(".dropdown-menu").css("min-width",_).css("max-width",_).css("width",_)}}),$(r).on("shown.bs.dropdown",function(){$(n).focus().select();var e=uri_parse_param("editor_scroll");e&&0===d&&(e=parseInt(e),$("["+i+"]")[0].scrollTop=e,d++)}),$(r).on("hidden.bs.dropdown",function(){var e=window.__cm_editor_static;e&&e.focus()}),$("[data-clear-search]").on("click",function(e){e.preventDefault(),e.stopPropagation(),$(n).val("").trigger("keydown"),$(n).focus()}),$(n).on("keydown keyup paste cut",function(e){if("keyup"!==e.type||27!==e.keyCode){if(9==e.keyCode||13==e.keyCode||27==e.keyCode){if(e.preventDefault(),27==e.keyCode&&($(n).val().length?$(n).val(""):$(r).trigger("click")),$(a).hasClass("disabled"))return;13==e.keyCode&&$(a).trigger("click")}var t=$("["+i+"]");if(33===e.keyCode||34===e.keyCode||38===e.keyCode||40===e.keyCode){var s=t[0].scrollTop,o=38===e.keyCode?s-45:40===e.keyCode?s+45:34===e.keyCode?s+315:33===e.keyCode?s-315:s;t[0].scrollTop=o}var _=$(this);setTimeout(function(){_.val().length?($(a).removeClass("disabled"),$("[data-clear-search]").removeClass("hidden")):($(a).addClass("disabled"),$("[data-clear-search]").addClass("hidden"),$("["+l+"]").removeClass("showing-results"),$(r).find("span.fa").removeClass("text-warning"))})}}),$(a).on("click",function(){if(!$(this).hasClass("disabled")){var e=$(n).val(),t=[];$(s).prev("select").find("option").map(function(e,a){t.push(a.value)}),$("["+o+"]").addClass("hidden"),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-search-in-file=1&xhr-search-in-file-files="+t.join(",")+"&xhr-search-in-file-string="+e,data:!1,dataType:"json",success:function(t){if(Test.strContains(t,v___page_signin_form))v___available_session=0;else{var a=$("["+i+"]");if(a.empty(),$("["+l+"]").addClass("showing-results"),$(r).find("span.fa").addClass("text-warning"),t.length){var n=String(),s=new RegExp(RegExp.quote($.trim(e)),"gi"),o=[],_=0;m(0),$.each($(t),function(t,a){o.push(a[0]);var i=a[1][0].match(s);_+=i?i.length:0,n+='<span><span class="pull-right"><a data-href="'+u+"?"+f+"="+a[0]+"&editor_line="+a[1][1]+"&editor_search="+e+'&editor_scroll=">Line: '+a[1][1]+'</a></span><span class="pull-left">'+a[0]+"</span><span>"+a[1][0].replace(s,"<kbd>"+$.trim(e)+"</kbd>")+"</span></span>"}).promise().done(function(){a.append(n),a[0].scrollTop=0,a.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+a[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):get_pjax_content(t)});var t,i=jQuery.unique(o).length;t=(t=1===o.length&&1===_?theme_language("find_in_config_files_result_found_single"):1===o.length&&_>1?theme_language("find_in_config_files_result_found_multi"):theme_language("find_in_config_files_results_found")).replace("$1",_).replace("$2",i).replace("$3","<kbd>"+e+"</kbd>"),$("["+c+"]").html(t)})}else a.append("<span data-no-results>"+theme_language("filemanager_search_no_matches").replace(".","")+"</span>"),m(1),$(r).find("span.fa").removeClass("text-warning")}},complete:function(){$("["+o+"]").removeClass("hidden")},error:function(){}})}})}function m(e){e?$("["+c+"]").addClass("hidden"):$("["+c+"]").removeClass("hidden")}})}function page_resized(){plugins.navigation.lock(),$(".mobile-menu-toggler").hasClass("selected")||"1"==$("html").attr("data-navigation-collapsed")||($("aside").addClass("hidden-xs"),$("aside").css("transform","translate("+settings_leftmenu_width+"px, 0px)"),$(".switch-toggle").css("display","table"),"function"==typeof jQuery().transition&&$(".__logo")&&!$(".mobile-menu-toggler:visible").length?$(".__logo").transition({y:"-140px"},700,function(){}):$(".__logo")&&$(".__logo").css("transform","translate(0px, 0px)")),plugins.slider.test();var e=$('input[name="settings_leftmenu_width"]');if($(".mobile-menu-toggler:visible").length?e.prop("disabled",!0):e.prop("disabled",!1),v___location_path&&v___location_path.indexOf("/webmin/edit_themes.cgi")>-1){var t=!(!settings_navigation_always_collapse&&!window.matchMedia("(max-width: 1365px)").matches),a="false"!=$('input[name="settings_side_slider_enabled"]:checked').val();t&&!$.browser.mobile&&$('input[name="settings_side_slider_fixed"][value="false"], input[name="settings_side_slider_fixed_toggle"][value="false"]').trigger("click"),a&&$('input[name="settings_side_slider_fixed"], input[name="settings_side_slider_fixed_toggle"]').prop("disabled",t)}}function theme_config_store(){if("0"==v___user_level){var e=core.get_global_vars(["settings_"],1);$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-settings=1&save=1",data:e,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)&&(v___available_session=0)},error:function(){}})}}function theme_config_controls(e){var t=$("#atsave, #save_user");e?(set_onbeforeunload_status(1,0),t.addClass("btn-warning")):(set_onbeforeunload_status(0,0),t.removeClass("btn-warning"))}function theme_washout(e){var t=$("aside, .jsPanel, .mobile-menu-toggler, .right-side-tabs, .right-side-tabs-toggler, .container-fluid"),a="pointer-events-none bg-filter-blur2-grayscale100-opacity75";e?t.removeClass(a):t.addClass(a)}function theme_countdown_animated(e,t){if(!e)return'<div class="countdown-animated-circle"><div class="number"></div><svg><circle r="18" cx="20" cy="20"></circle></svg></div>';var a=e.find(".countdown-animated-circle > .number")[0],n=t||5;if(a){a.textContent=n;var i=setInterval(function(){n=--n<=0?clearInterval(i):n,a.textContent=n},1e3)}}function theme_reload_message(e){vars.pjax_cancel=1;var t=bootbox.alert({message:theme_language(e),className:"theme_reload_notice bootbox-centered font-medium warning"});t.init(function(){var e=$(".theme_reload_notice").find(".bootbox-body");e.append(theme_countdown_animated()),theme_countdown_animated(e),theme_washout()}),t.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),theme_reload()}),setTimeout(function(){theme_reload()},4600)}function theme_config_check(){var e=location.pathname.indexOf("/webmin/edit_themes.cgi")>-1,t=location.pathname.indexOf("/settings-user.cgi")>-1,a="settings"+(t?"_"+get_server_data("user"):"")+".js",n=0,i=["settings_font_family","settings_navigation_color","settings_theme_make_date","settings_enable_container_offset","settings_contrast_mode","settings_usermin_default_module","settings_document_title","settings_right_page_hide_persistent_vscroll","settings_side_slider_enabled","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled","settings_side_slider_palette","settings_navigation_always_collapse","settings_leftmenu_width","settings_leftmenu_user_html"];if(v___location_path&&(e||t)){var r=core.get_global_vars(["config_","settings"]);$('script[src*="'+a+'"]').length?$.getScript(v___server_js_path+"/"+a,function(){for(var e=core.get_global_vars(["config_","settings"]),t=0;t<i.length;t++)r[i[t]]!=e[i[t]]&&(n=1);n?theme_reload_message("reload_notification"):page_resized()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)}):theme_reload_message("reload_notification")}}function theme_config_update(){$.each($('#atsettings .ui_form, body[data-uri*="settings-user.cgi"] form[action*="save_config.cgi"]').serializeArray(),function(e,t){if("true"==t.value||"false"==t.value){if("true"==t.value)var a=!0;else if("false"==t.value)a=!1}else a=t.value;window[t.name]=Test.numeric(a)?a&&a.length>16?a:parseFloat(a):a})}function theme_window_focused(){core.curModule("package-updates")&&$("a.btn-tiny + b.btn-success + a.btn-tiny").length&&$(".dataTables_wrapper").length&&!get_onbeforeunload_status()&&(vars.allow_ui_features=0,page_refresh())}function theme_download_form(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"backup_is_being_prepared",a=arguments.length>1&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>1&&void 0!==arguments[3]?arguments[3]:0,i=e.serialize(),r=e.attr("action"),s=e.attr("method");setTimeout(function(){theme.download(r,i,s,n)},3300),theme_message_and_unlock("fa-download-cloud",t,a)}function theme_download_link(e){return v___module.includes("webminlog")&&Test.arrIntersect(["webminlog.csv"],e.url)||v___module.includes("software")&&Test.arrIntersect(["view.cgi"],e.url)||v___module.includes("mysql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postgresql")&&Test.arrIntersect(["download.cgi"],e.url)||v___module.includes("postfix")&&Test.arrIntersect(["detach_queue.cgi"],e.url)||v___module.includes("mailbox")&&Test.arrIntersect(["detach.cgi","detachall.cgi","slideshow.cgi"],e.url)||"view_mail.cgi"===v___location_file&&"1"==uri_parse_param("raw",e.url)?(theme_open_new_tab(e.url),1):0}function theme_unbind(e,t){$(e).off(t)}function bind_sameorigin(e){1===e?$.each($('aside ul.navigation a[href^="http"], aside ul.navigation a[href^="https"], aside ul.navigation a[href^="ftp"], aside ul.navigation a[href^="ftps"], aside ul.navigation a[data-href^="http"], aside ul.navigation a[data-href^="https"], aside ul.navigation a[data-href^="ftp"], aside ul.navigation a[data-href^="ftps"]'),function(){$(this).removeClass("navigation_module_trigger").parents("li").addClass("navigation_external"),$(this).attr("target","_blank"),$(this).attr("href",$(this).data("href")),$(this).removeAttr("data-href")}):$.each($('.container-fluid a[href^="http"], .container-fluid a[href^="https"], .container-fluid a[href^="ftp"], .container-fluid a[href^="ftps"]'),function(){core.linkSameOrigin($(this))||$(this).attr("target","_blank")})}function get_default_content(){get_onbeforeunload_status()||(v___theme_processing_default_content?setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001):(v___theme_processing_default_content=1,$("body").append('<span id="____switch"></span>'),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-default=1",data:!1,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{$("#____switch").html(e),$____switch=$("#____switch").text();var t=v___location_prefix+(3==v___user_level&&core.moduleAvailable("mailbox")&&$t_uri_webmail?"/mailbox/index.cgi?id=INBOX":3==v___user_level?"/"+(settings_usermin_default_module||"sysinfo.cgi"):("/"==$____switch.substring(0,1)?"":"/")+$____switch);check_bundle(t),get_pjax_content(t,["success","v___theme_processing_default_content = 0"]),$("#____switch").remove()}}})))}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{v___theme_processing_default_content=1;var a,n="/virtual-server";if(a=1==get_server_data("initial-wizard")&&v___module!==v___module_file_manager?n+"/wizard.cgi":!1!==e?n+"/summary_domain.cgi?dom="+e:"sysinfo.cgi"==settings_right_virtualmin_default||""==settings_right_virtualmin_default?"/sysinfo.cgi":"index.cgi"==settings_right_virtualmin_default?n+"/index.cgi":n+"/summary_domain.cgi?dom="+settings_right_virtualmin_default,t)return v___location_prefix+a;get_pjax_content(v___location_prefix+a,["success","v___theme_processing_default_content = 0"])}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t)if(v___theme_processing_default_content)setTimeout(function(){v___theme_processing_default_content&&(v___theme_processing_default_content=0)},1001);else{var a;if(v___theme_processing_default_content=1,a=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?"sysinfo.cgi"==settings_right_cloudmin_default||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?"sysinfo.cgi":"index.cgi"==settings_right_cloudmin_default?"server-manager/index.cgi":"server-manager/edit_serv.cgi?id="+settings_right_cloudmin_default:"server-manager/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+a;get_pjax_content(v___location_prefix+"/"+a,["success","v___theme_processing_default_content = 0"])}}function get_navigation_and_content(e,t,a){get_onbeforeunload_status()||("virtualmin"===e?(plugins.navigation.get.virtualmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_virtualmin_content(!1)):"cloudmin"===e?(plugins.navigation.get.cloudmin(!1),1!=settings_right_reload&&1!==t||1===a||get_default_cloudmin_content(!1)):(0==plugins.navigation.switch.dashboard.get()&&plugins.navigation.get.webmin(e),1!=settings_right_reload&&1!==t||1===a||get_default_content()))}function editor_html_toolbar(e){var t;if([{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],t=[{name:"styles",items:["Font","FontSize","Format"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"colors",items:["TextColor","BGColor"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","-","Blockquote","-","Outdent","Indent","-","BidiLtr","BidiRtl","-","RemoveFormat"]}],"basic"===e)return t;return[{name:"document",items:["Source","-","Preview","Print"]},{name:"clipboard",items:["Undo","Redo"]},{name:"editing",items:["Find","-","Emojione"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["InsertPre","CreateDiv","-","Table","base64image","HorizontalRule","PageBreak","Iframe"]},{name:"forms",items:["Form","Checkbox","Radio","TextField","Textarea","Select","Button","ImageButton","HiddenField"]},{name:"tools",items:["ShowBlocks"]},"/"].concat(t)}function edit_files_cascade(e,t,a){var n=$(".jsPanel").filter(function(){return"-9999px"!==$(this).css("left")}),i=n.length,r=$(window).width(),s=$(window).height(),o=r/i,_=s/i,l=$(".jsPanel-controlbar .jsPanel-btn-align"),c=vars.jspanels_reversed?$(n).toArray().reverse():n;e?1==i?l.addClass("disabled"):l.removeClass("disabled"):($.each(c,function(e,n){if("-9999px"!==$(this).css("left")){var l=parseInt($(this).attr("data-uid").replace("jsp_",""));parseInt($(t).attr("id").replace("jsPanel-",""));if(1===a){var c=r-20,d=_-(e+1==i?20:5);window["jsp_"+l].resize(c,d).reposition("left-top 10 "+(10+_*e))}else{c=o-(e+1==i?20:5),d=s-20;window["jsp_"+l].resize(c,d).reposition("left-top "+(10+o*e)+" 10")}}}),1===vars.jspanels_reversed?vars.jspanels_reversed=0:vars.jspanels_reversed=1,vars.jspanels_reversed=0)}function edit_file_parse_target(e){var t=e.find("[data-file-name]").text(),a=e.find("[data-file-path]").text();return[t,a,a+"/"+t]}function edit_file(external_file_name,external_file_name_path,external_callback){if(core.moduleAvailable(v___module_file_manager)){var ____jsPanelId="jsp_"+parseInt(1e18*Math.random()),___target,___file_name,___file_name_path,__file_to_open,htmlDataAttr="htmledit",file_editor_save_button_str="_filemanager_file_editor_save",html_editor_target,is_html_editor;if(external_file_name&&external_file_name_path){var external_file_name_initial=external_file_name,external_file_name_path_initial=external_file_name_path;if(external_file_name.includes("/")&&(external_location_parts=external_file_name.split("/"),external_file_name=external_location_parts.slice(-1)[0],external_location_parts.pop(),external_file_name_path=external_location_parts.join("/"),external_file_name_initial.startsWith("/")||(external_file_name_path=external_file_name_path_initial+"/"+external_file_name_path)),"object"!=typeof jsPanel){var init_script_name="jquery.jspanel";return void load.bundle(init_script_name,1,{edit_file:[external_file_name,external_file_name_path,external_callback]},2)}___file_name=external_file_name,___file_name_path=external_file_name_path}else ___target=$($v__fm__container_fluid_form+" table tbody tr.m-active").find("a[data-filemin-link]"),___file_name=Convert.htmlUnEscape(___target.attr("data-filemin-link")),___file_name_path=fm_path_check_jailed(decodeURIComponent($($v__fm__container_fluid+" #path").val())),html_editor_target=___target.parent("td").parent("tr"),is_html_editor=1==html_editor_target.data(htmlDataAttr)?1:0,html_editor_target.removeData(htmlDataAttr);__file_to_open=v___location_prefix+"/"+v___module_file_manager+"/edit_file.cgi";var __f___es_adj=function(e,t){var a=e.find("option:selected").text(),n=$("<div data-encoding_manual-"+t+' class="invisible inline-block">').html(a);$("body").append(n);var i=$("body").find("div[data-encoding_manual-"+t+"]"),r=i.width();e.css("width",r+13),i.remove()},__f___cm_resize=function(e){var t=parseInt($(e).attr("id").replace("jsPanel-",""))+1;void 0!==window["__hm_editor_html_editor_"+t]&&CKEDITOR.instances["__hm_editor_html_editor_"+t].resize("100%",parseInt($(e).find(".jsPanel-content").css("height")),!1),void 0!==window["__cm_editor_"+t]&&window["__cm_editor_"+t].setSize(e.content.css("width"),e.content.css("height"))},manipulate_file_name=function(e,t){var a=e.find('form input[name="file"]'),n=e.find(".jsPanel-title strong"),i=n.text();if(t){i=i.replace(a.val(),t),n.attr("title",i),n.find("[data-file-name]").text(t);var r=edit_file_parse_target(e.find("strong"));a.val(r[0]),plugins.favorites.detect(e,r[2])}return a.val()},save_file_as=function(e){var t=e.find('form input[name="file"]').val();bootbox.prompt({closeButton:!1,title:'<i class="fa fa2 fa-fw fa2-save-as font-size-80p bootbox-o__f_m-save-prompt">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+theme_language("editor_save_file_as")+"</strong>",value:t,buttons:{confirm:{label:'&nbsp;<i class="fa fa-fw fa-check-circle">&nbsp;</i> '+theme_language("global_save_as")+"&nbsp;&nbsp;",className:"btn-primary vertical-align-top disabled _btn-submit-rename"},cancel:{label:"&nbsp;&nbsp;"+theme_language("global_cancel")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top pull-left"}},callback:function(a){a&&a!=t&&(a=(a=a.replace(/..\//g,"")).replace(/\//g,""),manipulate_file_name(e,a)),setTimeout(function(){var n=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];n&&n.focus(),a&&a!=t&&(e.find("."+file_editor_save_button_str).addClass("text-danger"),set_onbeforeunload_status_native(1))},100)}}).on("shown.bs.modal",function(e){setTimeout(function(){var t=$(e.target),a=t.find("input"),n=a.val(),i=t.find("._btn-submit-rename");a[0].focus(),a.on("keydown input",function(e){n!==$(this).val()?i.removeClass("disabled"):i.addClass("disabled"),13===(e.keyCode?e.keyCode:e.which)&&n===$(this).val()&&(e.preventDefault(),e.stopImmediatePropagation())})},100)})},jsPaneler=function(){var composers=$(".jsPanel.jspShown").length,small_window=window.innerWidth<640,ioffset=composers?5:0,offset=composers?5*ioffset*composers:ioffset,jsPanelPosition=small_window?{offsetX:content_page_center_h_offset()}:{offsetX:parseInt(content_page_center_h_offset())+offset,offsetY:offset};window[____jsPanelId]=$.jsPanel({contentAjax:{url:__file_to_open,dataType:"text",data:{path:___file_name_path,file:___file_name},autoload:!1,fail:function(e){"canceled"!==e.statusText&&connection_error(e,1)},done:function(w,textStatus,jqXHR,jsPanel){var ___file_name_path_local=___file_name_path,$is_non_utf8="UTF-8"!=get_server_data("charset"),x=$(w).find(".ui_form"),the_path_x=___file_name_path,v="<strong data-file-container><span data-file-name>"+Convert.htmlEscape(___file_name)+"</span> (<span data-file-path>"+Convert.htmlEscape(___file_name_path)+"</span>)</strong>",jsPanelContainer_this_initial=this,jsPanelContainer=$(jsPanelContainer_this_initial),jsPanelId=parseInt(jsPanel.attr("id").replace("jsPanel-",""))+1;jsPanel.attr("data-uid",____jsPanelId),$(x).find("textarea").length||(x=$(w).find('form[action="save_file.cgi"]').append($(w).find("#data").removeAttr("id")).prepend($(w).find("#file").removeAttr("id")).prepend($(w).find("#path").removeAttr("id"))),jsPanel.headerTitle(v),jsPanelContainer.data("jspuid",____jsPanelId),is_html_editor||jsPanelContainer.find(".jsPanel-hdr h3").prepend('<i class="fa fa-fw fa-lg fa-edit __helper___ zi-last pointer-events-none">&nbsp;&nbsp;</i>').find("strong").attr("title",$(v).text()).after('<button aria-label="'+theme_language("favorites_add")+'" class="fa fa-fw fa-inverse fa-star-o text-lighter favorites-editor" data-delay=\'{"show":"600", "hide":"30"}\'></button>&nbsp;'),jsPanelContainer.find(".jsPanel-content").html(x);var file_name_parts=edit_file_parse_target(jsPanelContainer.find(".jsPanel-hdr h3").find("strong"));if(file_name_parts[2]&&plugins.favorites.detect(jsPanelContainer,file_name_parts[2]),external_file_name&&external_callback)if("string"==typeof external_callback){var caller=external_callback.includes(".")?eval(external_callback):window[external_callback];caller.call()}else external_callback.forEach(function(r){var caller=r.call.includes(".")?eval(r.call):window[r.call];r.params?caller.apply(null,r.params):caller.call()});var $this=jsPanelContainer.find(".jsPanel-content"),A=$this.find(".ui_form_end_buttons tr td span:first-child input"),z=$this.find(".ui_form_end_buttons tr td span:nth-child(2) input");$this.find(".ui_form_end_buttons").remove(),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('                <div class="jsPanel-btn jsPanel-btn-save '+file_editor_save_button_str+'" title="'+theme_language("global_save")+'" aria-label="'+theme_language("global_save")+'"><i class="fa fa-fw fa-save"></i></div>                <div class="dropdown">                  <span aria-label="'+theme_language("global_menu")+'" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">                    <i class="fa fa-menu"></i>                  </span>                  <ul class="dropdown-menu dropdown-menu-right small">                    <li class="jsPanel-btn-align vertical"><a class="ddm-link" href="javascript:;"><i class="fa fa-align-horizontal-middle pull-left margined-top-2"></i>'+theme_language("filemanager_editor_align_panels_vertically")+'</a></li>                    <li class="jsPanel-btn-align hidden horizontal"><a class="ddm-link" href="javascript:;"><i class="fa fa-align-vertical-middle pull-left margined-top-2"></i>'+theme_language("filemanager_editor_align_panels_horizontally")+'</a></li>                    <li class="jsPanel-btn-togglewrap'+(is_html_editor?" hidden":"")+'"><a class="ddm-link" title="(Ctrl+Alt+W)" href="javascript:;"><i class="fa fa-wrap-text pull-left margined-top-2"></i>'+theme_language("filemanager_editor_toggle_soft_wrap")+'</a></li>                    <li role="separator" class="divider'+(is_html_editor?" hidden":"")+'"></li>                    <li class="jsPanel-btn-save-as"><a class="ddm-link" title="(Ctrl+Shift+S)" href="javascript:;"><i class="fa fa2 fa2-save-as pull-left margined-top-2"></i>'+theme_language("global_save_as")+'...</a></li>                    <li role="separator" class="divider"></li>                    '+($is_non_utf8?"":'<li class="jsPanel-btn-content-refresh hidden"><a class="ddm-link ddm-link-refresh" title="(Alt+S)" href="javascript:;"><i class="fa fa-refresh pull-left margined-top-3"></i>'+theme_language("filemanager_editor_refresh_content")+"</a></li>")+"                    "+($is_non_utf8?"":'<li class="jsPanel-btn-content-revert"><a class="ddm-link ddm-link-revert" title="(Ctrl+Alt+R)" href="javascript:;"><i class="fa fa-1_25x fa-refresh-mdi fa-flip-horizontal pull-left margined-top-3 margined-left--2 line-height-10"></i>'+theme_language("filemanager_editor_revert_content")+"</a></li>")+'                    <li class="__helper___tr'+(is_html_editor?" hidden":"")+'"><a class="ddm-link" href="javascript:;">'+theme_language("global_help")+"</a></li>                  </ul>                </div>            "),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .__helper___tr").click(function(e){var t=jsPanelContainer.find(".jsPanel-hdr .fa-edit");t.removeClass("pointer-events-none").trigger("click"),t.removeClass("pointer-events-none")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-save-as").click(function(){save_file_as(jsPanelContainer)}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-align:not(.disabled)").click(function(e){$(this).hasClass("disabled")||edit_files_cascade(0,jsPanelContainer_this_initial,$(this).hasClass("horizontal")?1:0)}),edit_files_cascade(1,jsPanelContainer_this_initial,0);var $__f__enc=$this.find("form").attr("data-encoding"),__cm_editor_encoding_item=v___server_hostname+"-__cm_editor_encoding",$is_encoding=!!$__f__enc,$__f__enc=$__f__enc||(localStorage.getItem(__cm_editor_encoding_item)?"not_detected":"UTF-8"),select_options="",encodings={"UTF-8":"utf-8","ISO-8859-1":"iso-8859-1 (cp1252)&#x200E;","windows-1252":"cp1252 (iso-8859-1)&#x200E;","windows-1250":"cp1250","windows-1251":"cp1251","windows-1253":"cp1253","windows-1254":"cp1254","windows-1255":"cp1255","windows-1256":"cp1256","ISO-8859-2":"iso-8859-2","ISO-8859-7":"iso-8859-7","ISO-8859-9":"iso-8859-9","ISO-8859-15":"iso-8859-15","US-ASCII":"ascii","x-IBM874":"cp874",IBM866:"cp866","KOI8-R":"koi8","EUC-KR":"EUC encoding, Korean","EUC-JP":"EUC encoding, Japanese",Shift_JIS:"Shift-JIS, Japanese"};encodings.hasOwnProperty($__f__enc)||"not_detected"==$__f__enc||(select_options+='<option value="'+$__f__enc+'" selected>'+$__f__enc.toLowerCase()+"</option>"),$.each(encodings,function(e,t){select_options+='<option value="'+e+'"'+($__f__enc.toLowerCase()!=e.toLowerCase()&&e?"":" selected")+">"+t+"</option>"}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('<div data-encoding-label class="jsPanel-btn text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon'+($is_non_utf8?" pointer-events-none hidden":"")+'"> <select required data-encoding dir="rtl">'+select_options+"</select> </label></div>");var __data_select_encoding=jsPanelContainer.find("select[data-encoding]"),__data_encoding=__data_select_encoding.val(),__cm_editor_save_btn=jsPanelContainer.find("."+file_editor_save_button_str);!is_html_editor&&jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend('<div data-mode-select class="jsPanel-btn text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon">'+editor_modes()+"</label></div>"),__f___es_adj(__data_select_encoding,jsPanelId),__data_encoding==Object.keys(encodings)[2]&&__data_select_encoding.val(Object.keys(encodings)[1]),__data_select_encoding.on("change changed",function(e){if(!$is_non_utf8)if(__cm_editor_save_btn.hasClass("text-danger")&&__cm_editor_save_btn.hasClass("__locked__")&&"changed"!==e.type)"changed"===e.type&&__cm_editor_save_btn.removeClass("text-danger __locked__");else{var t=$(this).val(),a=___file_name_path_local+"/"+manipulate_file_name(jsPanelContainer);__f___es_adj($(this),jsPanelId),!$is_encoding&&localStorage.setItem(__cm_editor_encoding_item,t),2!==get_access_level()&&3!==get_access_level()&&4!==get_access_level()||(a=get_user_home()+a),$.ajax({type:"POST",url:v___location_prefix+"/index.cgi?xhr-encoding_convert=1&xhr-encoding_convert_name="+t+"&xhr-encoding_convert_file="+Convert.encodeURIComponentConsistent(a)+"&xhr-encoding_convert_cmodule="+v___module_file_manager,data:!1,dataType:"text",success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:(void 0!==window["__cm_editor_"+jsPanelId]&&window["__cm_editor_"+jsPanelId].setValue(e),"object"==typeof CKEDITOR&&void 0!==window["__hm_editor_html_editor_"+jsPanelId]&&CKEDITOR.instances["__hm_editor_html_editor_"+jsPanelId].setData(e),__cm_editor_save_btn.removeClass("text-danger __locked__"),__data_select_encoding.removeClass("pointer-events-none"),set_onbeforeunload_status_native($("body").find("."+file_editor_save_button_str+".text-danger").length))},error:function(){}})}});var __cm_editor_encoding=localStorage.getItem(__cm_editor_encoding_item);$is_non_utf8||$is_encoding||!__cm_editor_encoding||__cm_editor_encoding&&encodings.hasOwnProperty(__cm_editor_encoding)&&__data_select_encoding.val(__cm_editor_encoding).trigger("change");var theHeight=parseInt($this.css("height")),theTextarea=$this.find("textarea");is_html_editor?editor_html_init([theTextarea,theHeight,!0,"html_editor_"+jsPanelId]):editor_init(theTextarea,v,[null,theHeight],jsPanelId,!1,!0),jsPanelContainer.addClass("jspShown").css("opacity",0),jsPanelContainer.animate({opacity:1},400,function(){is_html_editor||(window["__cm_editor_"+jsPanelId].focus(),jsPanelContainer.find(".jsPanel-btn-togglewrap").click(function(e){var t=window["__cm_editor_"+jsPanelId],a=!t.getOption("lineWrapping");t.setOption("lineWrapping",a),localStorage.setItem(v___server_hostname+"-"+get_server_data("user")+"-editor-line-wrapping",~~a)}));var e=document.getElementById("jsPanel-"+(jsPanelId-1));$(e).find(".jsPanel-content")[0].addEventListener("onresize",function(){__f___cm_resize(jsPanelContainer_this_initial)})}),jsPanelContainer.click(function(){var e=parseInt($(this).attr("data-uid").replace("jsp_",""));window["jsp_"+e].front()}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar [data-encoding-label], .jsPanel-hdr .jsPanel-controlbar .dropdown, .jsPanel-hdr .jsPanel-controlbar .jsPanel-btn").each(function(e,t){var a="title",n=".jsPanel-btn-";$(this).is(n+"maximize")&&$(this).attr(a,theme_language("global_maximize")),$(this).is(n+"minimize")&&$(this).attr(a,theme_language("global_minimize")),$(this).is(n+"normalize")&&$(this).attr(a,theme_language("global_normalize")),$(this).is(n+"close")&&$(this).attr(a,theme_language("global_close")),$(this).is(n+"save")&&$(this).attr(a,theme_language("global_save")),$(this).is("[data-encoding-label]")&&$(this).attr(a,theme_language("global_set_encoding"))}),__data_select_encoding.click(function(e){if(1===$(this).data("reverting"))return $(this).data("reverting",0),void plugins.messenger.post('<i class="fa fa-1_50x fa-refresh-mdi fa-flip-horizontal line-height-12"></i>'+theme_language("filemanager_editor_reverting_content")+" "+theme_language("global_please_wait"),2,"warning","revertingFileDone");void 0!==e.originalEvent?!$is_non_utf8&&$(this).hasClass("pointer-events-none")&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("filemanager_save_to_change_encoding"),4,"warning","savingFileDone"):$(this).hasClass("pointer-events-none")?plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("filemanager_save_to_refresh_content"),4,"warning","savingFileDone"):plugins.messenger.post('<i class="fa fa-lg fa-fw fa-refresh"></i>'+theme_language("filemanager_save_to_refresh_content_proc")+" "+theme_language("global_please_wait"),2,"info","refreshingFileDone")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-content-refresh").click(function(){__data_select_encoding.val(__data_select_encoding.val()).trigger("change").trigger("click")}),jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar .jsPanel-btn-content-revert").click(function(){__data_select_encoding.data("reverting",1),__data_select_encoding.val(__data_select_encoding.val()).trigger("changed").trigger("click")});var keydown_editor="keydown.feditor"+jsPanelId,keyup_editor="keyup.feditor"+jsPanelId,$$body=$("body");$$body.on(keydown_editor,function(e){jsPanelContainer_this_initial.find(".dropdown").hasClass("open")&&(e.altKey&&!e.shiftKey&&(e.preventDefault(),jsPanelContainer.find(".jsPanel-btn-align.vertical").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.horizontal").removeClass("hidden")),e.shiftKey&&(e.preventDefault(),vars.jspanels_reversed=1))}),$$body.on(keyup_editor,function(e){jsPanelContainer_this_initial.find(".dropdown").hasClass("open")&&(e.preventDefault(),jsPanelContainer.find(".jsPanel-btn-align.horizontal").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.vertical").removeClass("hidden")),e.shiftKey||(e.preventDefault(),vars.jspanels_reversed=0)}),jsPanelContainer.on(keydown_editor,function(e){var t=e.keyCode?e.keyCode:e.which,a=$(":focus").parents(".jsPanel");if(27===t){var n=this;void 0!==n.close_timeout?n.close_timeout+=1:n.close_timeout=0,setTimeout(function(){n.close_timeout=0},320),n.close_timeout>=2&&($(".bootbox.modal").length||(e.ctrlKey?jsPanelContainer_this_initial.minimize():jsPanelContainer_this_initial.close()))}var i=function(e){a.find("."+file_editor_save_button_str).trigger("click"),e&&a.find(".jsPanel-btn-close").trigger("click")};13!=t&&83!=t||!a.is(".jsPanel")||(83==t?!e.shiftKey&&e.ctrlKey?(e.preventDefault(),i()):!e.altKey&&e.ctrlKey&&e.shiftKey?(e.preventDefault(),save_file_as($(this))):e.altKey&&e.ctrlKey&&e.shiftKey&&(e.preventDefault(),i(1)):e.ctrlKey&&e.shiftKey?i(1):e.ctrlKey&&i()),82!==t||!e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||(e.preventDefault(),a.find(".ddm-link-refresh").trigger("click")),82===t&&e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey&&(e.preventDefault(),a.find(".ddm-link-revert").trigger("click"))}),jsPanelContainer_this_initial.find(".dropdown").on("show.bs.dropdown",function(e){jsPanelContainer.find(".jsPanel-btn-align.horizontal").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.vertical").removeClass("hidden")}),__cm_editor_save_btn.click(function(e){$(this).find("i").replaceWith(theme_spinner_small()),$(this).removeClass("text-danger __locked__"),__data_select_encoding.removeClass("pointer-events-none"),jsPanelContainer.find('form[action="save_file.cgi"]').submit()});var u=function(){var e=__cm_editor_save_btn;e.find(".cspinner").remove(),e.find("i").remove(),e.prepend('<i class="fa fa-fw fa-save"></i>')};if(jsPanelContainer.find('form[action="save_file.cgi"]').submit(function(e){e.preventDefault(),e.stopPropagation();var t=Convert.htmlEscape(jsPanelContainer.find(".jsPanel-title strong").text());plugins.messenger.post('<i class="fa fa-lg fa-fw fa-save"></i>'+theme_language("filemanager_saving_file").replace("%value",t)+" "+theme_language("global_please_wait"),5,"info","savingFileDone");var a=jsPanelContainer.find("select[data-encoding]").val(),n=jsPanelContainer.find('form[action="save_file.cgi"] input, form[action="save_file.cgi"] textarea').serialize();a&&(n=n+"&encoding="+a),$.ajax({type:"POST",url:v___location_prefix+"/"+v___module_file_manager+"/save_file.cgi",data:n,dataType:"text",success:function(e){if(Test.strContains(e,v___page_signin_form))v___available_session=0;else{var a=jsPanelContainer.find("."+file_editor_save_button_str+" .cspinner");if(!$(e).find("textarea#data").length){var n=$(e).find(".panel-body h3").html();if(Test.strContains(n,":")){var i=n.split(":"),r=i.pop(),s=i.join(":");n="<strong>"+Convert.htmlEscape(r)+'</strong>: <span class="font-weight-normal">'+Convert.htmlEscape(s)+"</span>"}else n=Convert.htmlEscape(n);return plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+n,10,"error","savingFileError"),1===a.parent(".btn").index()&&theme_modal_dismiss(),void u()}plugins.messenger.post('<i class="fa fa-lg fa-fw fa-check-circle"></i>'+theme_language("filemanager_file_saved").replace("%value",t),1.5,"success","savingFileDone"),u();var o=$("body").find("."+file_editor_save_button_str+".text-danger").length,_=$("body").find('[data-form="submitter"]').hasClass("btn-warning");o||_||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(o)}},error:function(){}})}),progress.end(),v___page_editor_detached){var rj_array=editor_custom_modes(),r=rj_array[0],$panel_select_options=$(document.getElementById("jsPanel-"+(jsPanelId-1))).find(".select-mode-info option");setTimeout(function(){$panel_select_options.filter(function(){return this.value.indexOf(r)>-1}).prop("selected",!0)},80),$(".dropdown-editor_config_search + [data-external-detach]").removeClass("disabled"),v___page_editor_detached=!1}}},footerToolbar:function(e){return""},maximizedMargin:{top:10,right:10,bottom:10,left:10},panelSize:{width:$(window).width()<640?"98%":parseInt(.7*content_page_calc_width()+content_page_center_h_offset()),height:$(window).width()<640?"99%":parseInt(.55*content_page_calc_height())},position:jsPanelPosition,dblclicks:{title:"maximize"},headerControls:{smallify:"remove"},resizeit:{stop:function(){__f___cm_resize(this)}},onresized:function(){__f___cm_resize(this)},onnormalized:function(){var e=parseInt($(this).attr("id").replace("jsPanel-",""));this.resize({width:$(window).width()/1.5,height:$(window).height()/2}),e<parseInt($(window).height()/1.5/11.5)&&this.reposition("left-top "+25*e+"px "+25*e+"px"),edit_files_cascade(1,this,0),__f___cm_resize(this)},onmaximized:function(){edit_files_cascade(1,this,0),__f___cm_resize(this)},onminimized:function(){edit_files_cascade(1,this,0)},onclosed:function(){edit_files_cascade(1,this,0);var e=parseInt(this[0].id.replace(/\D/g,""))+1,t="keydown.feditor"+e,a="keyup.feditor"+e,n=$("body");n.off(t),n.off(a),setTimeout(function(){var e=$("body").find("."+file_editor_save_button_str+".text-danger").length,t=$("body").find('[data-form="submitter"]').hasClass("btn-warning");e||t||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(e)},100)},onbeforeclose:function(){var e=this,t=function(){if(v___module===v___module_file_manager){var t=$("#"+e[0].id).find("span[data-file-name]").text();file_path=$("#"+e[0].id).find("span[data-file-path]").text(),setTimeout(function(){var e=$($v__fm__container_fluid+" #path").val()||"/";if(Convert.uriEncodeComponent(file_path)===Convert.uriEncodeComponent(e)&&"function"==typeof __f__get_fs){var a=_f__table().dataTable().$("tr").find('td:nth-child(3) a[data-filemin-link="'+t+'"]').parent("td").parent("tr");__f__get_fs(a,1)}},300)}};return(!$("body").find(".bootbox-o__f_m-save-prompt").length||!this.find("."+file_editor_save_button_str+".text-danger").length)&&(this.find("."+file_editor_save_button_str+".text-danger").length?(bootbox.dialog({message:theme_language("filemanager_file_edit_but_not_saved")+" <br><br>"+theme_language("filemanager_file_edit_but_not_saved_what_to_do"),title:'<i class="fa fa-fw fa-question-circle font-size-80p bootbox-o__f_m-save-prompt">&nbsp;&nbsp;</i> <strong class="font-size-90p">'+Convert.htmlEscape(e.find(".jsPanel-title strong").text())+"</strong>",buttons:{success:{label:'&nbsp;<i class="fa fa-fw fa-save">&nbsp;&nbsp;</i>'+theme_language("global_save_and_close")+"&nbsp;&nbsp;",className:"btn-primary vertical-align-top ",callback:function(){e.find(".jsPanel-btn-save").trigger("click"),t(),e.find(".jsPanel-btn-close").trigger("click")}},danger:{label:'&nbsp;<i class="fa fa-fw fa-times-circle-o">&nbsp;&nbsp;</i>'+theme_language("global_close_without_saving")+"&nbsp;&nbsp;",className:"btn-danger vertical-align-top margined-left--2",callback:function(){e.find("."+file_editor_save_button_str+".text-danger").removeClass("text-danger"),e.find(".jsPanel-btn-close").trigger("click");var t=$("body").find("."+file_editor_save_button_str+".text-danger").length,a=$("body").find('[data-form="submitter"]').hasClass("btn-warning");t||a||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(t)}},main:{label:'&nbsp;<i class="fa fa-fw fa-arrow-circle-o-left">&nbsp;&nbsp;</i>'+theme_language("global_continue_editing")+"&nbsp;&nbsp;",className:"btn-default vertical-align-top margined-left--2",callback:function(){setTimeout(function(){var t=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];t&&t.focus()},100)}}},onEscape:function(){setTimeout(function(){var t=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];t&&t.focus()},100)}}),!1):void t())}})};if(is_html_editor)if("object"==typeof CKEDITOR)jsPaneler();else{CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/";var init_script_name="ckeditor";$.getScript(v___server_js_path+"/"+init_script_name+"/"+init_script_name+".js?"+v___theme_version_plain,function(){load.loaded.push(init_script_name),jsPaneler()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})}else jsPaneler();"function"==typeof __f___cs&&__f___cs()}}function editor_html_init(e,t){var a,n=!Test.string(e[0]);n?e[3]:e[0];if(n?(a="__hm_editor_"+e[3],e[0].attr("id",a)):a=e[0],"object"==typeof CKEDITOR)i();else{CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/";$.getScript(v___server_js_path+"/ckeditor/ckeditor.js?"+v___theme_version_plain,function(){load.loaded.push("ckeditor"),i()}).fail(function(e){"canceled"!==e.statusText&&connection_error(e,1)})}function i(){CKEDITOR.config.extraPlugins="emojione",CKEDITOR.config.dialog_noConfirmCancel=!0,CKEDITOR.config.fullPage=!0,CKEDITOR.config.toolbar=editor_html_toolbar(t);var i=get_server_data("language-full"),r=$(window).height()/e[1];CKEDITOR.replace(a,{language:i,width:"100%",baseFloatZIndex:20001,height:n?e[1]:r}),CKEDITOR.instances[a].on("instanceReady",function(t){t.editor.on("panelShow",function(e){v___theme_night_mode_enabled||v___theme_night_mode?$(e.data.element.$.children[0]).contents().find("body").addClass("nightRider"):$(e.data.element.$.children[0]).contents().find("body").removeClass("nightRider")}),CKEDITOR.instances[a].resize("100%",n?e[1]:r,!1)}),CKEDITOR.instances[a].on("instanceReady",function(e){$(e.editor.document.$).click(function(){var t=$(e.sender.container.$).parents(".jsPanel").attr("data-uid");t&&t.length&&parent.window["jsp_"+parseInt(t.replace("jsp_",""))].front()}),e.editor.on("dialogShow",function(e){$(e.data._.element.$).find(".cke_dialog_ui_checkbox").removeClass().addClass("awcheckbox awobject"),$(e.data._.element.$).find(".cke_dialog_ui_checkbox_input").removeClass().addClass("iawobject").next("label").addClass("lawobject"),e.data._.name})}),!0===e[2]&&CKEDITOR.instances[a].on("change",function(t){this.updateElement(),set_onbeforeunload_status(1,0);var a=parseInt(e[3].replace("html_editor_",""))-1;$("#jsPanel-"+a).find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$("#jsPanel-"+a).find("select[data-encoding]").addClass("pointer-events-none")}),"edit_web"===e[3]&&setTimeout(function(){$("hr + b").removeClass("hidden"),$(".__tmp__spinner").remove()},100)}}function table_proc_size_columns(){var e=[];$.each($(".container-fluid tr td span[data-filesize-bytes]"),function(){var t=$(this).parents("table"),a=$(this),n=$(this).parents("td"),i=n.index();a.length&&(n.attr("data-order",a.attr("data-filesize-bytes")),!Test.arrContains(e,i)&&e.push(i),t.attr("data-ordered",1),a.contents().unwrap())}).promise().done(function(){for(var t=0;t<e.length;t++)$(".container-fluid [data-ordered] tr td:nth-child("+(e[t]+1)+"):not([data-order])").attr("data-order",0)})}function table_data_init(e,t,a,n){function i(e){if(e[0]&&e[0].tHead&&!e[0].tHead.querySelector("tr:first-child th.table-title")){var i=e[0].querySelectorAll("tr").length,r=i>1e3,s=e.parents(".ui_grid_table").length;if(!s&&r&&(r=0),!(i>settings_table_init_datatables)){var o=s?"i":String(),_=e.DataTable({order:[],aaSorting:[],bDestroy:!0,bPaginate:r,pageLength:parseInt(window.outerHeight/40),columnDefs:[n],bInfo:r,bStateSave:t,destroy:!0,dom:a?"Rlfrtip":r?"tf"+o+'p<"clear">':"f",language:{emptyTable:theme_language("datatable_semptytable"),info:theme_language("datatable_sinfo"),infoEmpty:theme_language("datatable_sinfoempty"),lengthMenu:theme_language("datatable_slengthmenu"),loadingRecords:theme_language("datatable_sloadingrecords"),processing:theme_language("datatable_sprocessing"),search:"",zeroRecords:theme_language("datatable_szerorecords"),paginate:{first:'<i class="fa fa-fw fa-angle-double-left"></i>',last:'<i class="fa fa-fw fa-angle-double-right"></i>',previous:'<i class="fa fa-fw fa-angle-left"></i>',next:'<i class="fa fa-fw fa-angle-right"></i>'}},initComplete:function(e){var t=$(e.nTableWrapper);if((!e.nTable||!$(e.nTable).parent().is(".dt-table-hscroll"))&&t.length){var a=e.nTable.querySelector(".ui_checked_columns:first-child .ui_checked_checkbox, .ui_checked_columns:first-child td > .awcheckbox");a&&$(a).parents("table").find("thead th:first-child").addClass("opacity-0 pointer-events-none");var n=e.nTable.tHead.querySelectorAll("th");n.length&&n.forEach(function(e){e.textContent||e.classList.add("opacity-0","pointer-events-none")}),r?(t.addClass("dt-paginated").parents(".ui_grid_table").addClass("dt-paginated-grid").next(".btn-group.ui_links_row").before("<hr>"),pjax_cache("disable")):t.next("table").wrapAll('<div class="dt-table-hscroll"></div>')}}}),l=!0;e.find("th").on("mouseover touchstart",function(e){l=!!$(e.target).hasClass("sorting")}),_.on("order.dt",function(t){var a=_.order();if((1===e.find("thead .sorting_desc, thead .sorting_asc").length?1:0)&&!vars.events.keypressed.shift&&!l&&a[0]&&"asc"===a[0][1])return _.order.neutral().draw(),void(l=!0);l=!1})}}}if(void 0===t&&(t=!1),void 0===a&&(a=!1),void 0===n&&(n=!1),$.each(e,function(t){$(this).parents("#right-side-tabs").length&&e.splice(t,1)}),core.curModuleFile("virtual-server","index.cgi")&&(t=!0),$.fn.dataTableExt.sErrMode="throw",core.curModuleFile("virtual-server","list_users.cgi")){var r=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();r>-1?$.each(e.find("tbody tr td:nth-child("+(r+1)+")"),function(e,t){var a=$(this).text();/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(a)&&(a=0),$(this).attr("data-sort",a)}).promise().done(function(){i(e)}):i(e)}else i(e)}function mail_load_folders(){this.timeout&&clearInterval(this.timeout),"object"==typeof $.ui&&"function"==typeof $.ui.fancytree&&"object"==typeof mail&&"object"==typeof mail.folders&&"function"==typeof mail.folders.get?mail.folders.get():this.timeout=setTimeout(function(){mail_load_folders()},200)}function mail_load(e){if($t_uri_webmail&&settings_mail_ui){page.handle.content.offset(!0);var t=uri_parse_param("id",e),a=uri_parse_param("folder",e),n=uri_parse_param("start",e);if("object"==typeof mail?mail.messages.get({id:t,folder:a,start:n}):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"]),v___initial_load){t=uri_parse_param("id");"object"==typeof mail?mail.messages.get(t):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"])}}}function page_sysinfo_sensor_update_label(){var e=$("#system-status .badge-drivestatus");e.length&&$.each(e,function(e,t){var a,n=$(this).text(),i=parseInt(n.split(":")[1]),r=i,s=n.indexOf("°C")>-1;a=n.indexOf("RPM")>-1?HTML.label.rpm(r):HTML.label.temperature(i,s),Test.string(a)&&$(this).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(a)})}function page_table_rows_control(){var e=this;this.prev_active=void 0;var t=$("body").attr("class")&&$("body").attr("class").indexOf(v___module_file_manager)>-1,a=core.curModule("init")&&v___location_file.startsWith("edit_");if(!t&&!a){var n=$(".container-fluid table .ui_checked_columns");n.length;$.each(n,function(t,a){!$(a).find("a[href]")||Test.strContains(v___location_path,"init/edit_")||$("body").hasClass("servers")||$(this).hasClass("selectable")||$(a).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer"),$(a).find("td:not(.selectable)").click(function(t){var n="MacIntel"===window.navigator.platform?1:0;if(!(!n&&t.ctrlKey||n&&t.metaKey||check_selected_text()))if(!vars.events.keypressed.shift&&$(this).is("td:nth-child(1)")&&$(t.target).is("td:nth-child(1)")&&$(this).find("input:checkbox").length){var i=$(this).find("input:checkbox").first(),r=i.is(":checked");i.prop("checked",!r).trigger("change")}else{if(setTimeout(function(){e.prev_active=$(a)},50),vars.events.keypressed.shift&&e.prev_active&&!e.prev_active.is($(a))&&t.originalEvent&&!0===t.originalEvent.isTrusted){var s=e.prev_active.index(),o=$(a).index()>s?$(a).prevUntil(e.prev_active):$(a).nextUntil(e.prev_active),_=e.prev_active.find("td:first-child input").is(":checked");o.find("td:first-child input").each(function(t,a){$(a).add(e.prev_active.find("td:first-child input")).prop("checked",_),$(a).trigger("change")})}if($(t.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio, .ui_link, .btn")){if($(t.target).is(".ui_link, .btn")){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var l=$(t.target).attr("href")||$(t.target).find("a").attr("href");if(l&&l.length>1){var c=$(t.target)||$(t.target).find("a");core.linkSameOrigin(c)?get_pjax_content(l):theme_open_new_tab(l,1)}return}}else if($(a).find("a[href]")&&!$("body").hasClass("servers")){var d=$(a).find("a[href]")[0],g=($(this).parents("tr.ui_checked_columns"),$(t.target).find('input[type="checkbox"]:not(":disabled")').length);!d||$(this).find("a").attr("href")!==$(d).attr("href")&&void 0!==$(this).find("a").attr("href")||$(t.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")||0!==$(this).parent("tr").find('a[href*="download.cgi"]').length||($(d).attr("target")?(t.preventDefault(),!g&&window.open($(d).attr("href"),$(d).attr("target"))):t.originalEvent&&(t.preventDefault(),get_pjax_content($(d).attr("href")))),g&&get_pjax_content($(d).attr("href"))}}}),$(a).find("td").contextmenu(function(e){if(vars.events.keypressed.shift){"function"==typeof window.getSelection&&window.getSelection().removeAllRanges();var t=$(this).parents("tr.ui_checked_columns");e.preventDefault(),($(this).parents("tr").find('input[type="checkbox"]:first').length&&0===$(this).parents("tr").find('input[type="checkbox"][disabled]').length||$(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)&&(t.find('input[type="checkbox"]:first').is(":checked")?t.removeClass("hl-aw"):t.addClass("hl-aw"),t.find('input[type="checkbox"]:first').trigger("click"))}else e.stopPropagation()})})}}function page_radios_evolve(e){"conf"!=get_server_data("post")&&(e||(e='.container-fluid input[type="radio"]:not(.iawobject), .container-fluid input[type="checkbox"]:not(.iawobject)'),$.each($(e),function(e,t){if(1!==$(this).data("xdn")&&1!==$(this).hasClass("_select-unselect_")){$(this)[0]&&($___text=$(this)[0].nextSibling);var a=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),n=$___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1,i=(i=$.trim((n?$___text.nodeValue:"&nbsp;").replace(/<hr>/g,"&lt;hr&gt;").replace(/<header>/g,"&lt;header&gt;"))).length&&"&nbsp;"!=i?i+"&nbsp;&nbsp;":i,r=$(this).attr("type").toLowerCase(),s=(s=$(this).parents(".tab-pane").attr("id"))&&s.length?s.replace(/[^a-zA-Z0-9_-]+/g,""):0,o=Math.floor(9e4*Math.random())+1e4,_=$(this).attr("id"),l=("eid_"+(_&&$(this).attr("name")?$(this).attr("name"):o)+"_"+o+"_"+e+"_"+s).replace(/[^a-zA-Z0-9_-]+/g,"_");l=_&&1===$("body").find("#"+_.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?_.replace(/[^a-zA-Z0-9_-]+/g,"_"):l;if(0===$(this).next("label").length&&0===a.length&&n){$(this).addClass("iawobject");var c='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('<label class="lawobject" '+c+">"+i+" </label>"),$($___text).remove(),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).data("xdn",1)}else if(0!==a.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||n)0!==a.length||0!==$(this).next("label").length||n||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">&nbsp;</label>'),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).data("xdn",1));else{var d=$(this).prev("label"),g=d.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">'+g+"</label>"),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),$(this).removeClass("form-control").css("width","initial"),d.remove(),$(this).data("xdn",1)}1===a.length&&0===$(this).next("label").length&&($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'">'+i+"</label>"),$(this).next("label").addBack().wrapAll('<span class="aw'+r+' awobject awobjectm"></span>'),n&&$($___text).remove(),$(this).data("xdn",1))}}))}function popover_visibility_position(e){$.each($(".module-help"),function(t,a){e.is($(this))?$(this).css({"z-index":1061+t,opacity:1}):$(this).css({"z-index":1061-t,opacity:.85})})}function page_refresh(e){if(!$(".modal.in").length)if(e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status())get_onbeforeunload_message(!1,"get_pjax_content(v___location_resource, false, false)","ev");else{var t=vars.previous_request,a=vars.source_request,n=unbuffered_header_processor_allow(!(!t||!t.target)&&t.target.action);"submit"===t.type?get_pjax_action_submit(t,!1):n&&a.length?get_pjax_content(a,!1,!1):get_pjax_content(v___location_resource,!1,!1)}}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=get_server_data("title-initial")),v___location=location,$__theme_name__="authentic",$__theme_navigation="xnavigation=1",$__theme_event_deselectors=':not([href*="index.cgi?path="]):not([href*="config.cgi?path="]):not([href*="download.cgi?file="])',$__theme_default_deselectors=':not([target="_blank"]):not([href^="#"]):not([data-href^="#"]):not([data-toggle="collapse"]):not([href*="javascript:"]):not(.has-sub):not([data-has-sub-link]):not([onclick]):not([data-nref])',v___class_select2_leak=".select2-dropdown, .select2-search, .select2-results, aside .select2, aside .select2-selection, aside .select2-selection__rendered",v___user_level=get_server_data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___debug=parseInt(get_server_data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=get_server_data("usermin"),void 0===$.support.spa&&($.support.spa=get_server_data("navigation")),v___available_session="1"==get_server_data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=get_server_data("user"),v___server_userhome=get_user_home(),v___module=get_server_data("module"),"undefined"==typeof v___module_previous&&(v___module_previous=0),v___script_name=get_server_data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=get_server_data("hostname"),v___server_sestatus=get_server_data("sestatus"),v___theme_version=get_server_data("theme-version").toString(),v___theme_dversion=Test.strContains(v___theme_version,"-"),v___theme_mversion=get_server_data("theme-mversion").toString(),v___theme_version_plain=v___theme_version.replace(/\./g,"").replace(/-alpha.*/g,"").replace(/-beta.*/g,"").replace(/-RC.*/g,"")+(v___debug||v___theme_dversion?moment().unix()+v___theme_mversion:"99999999999"+v___theme_mversion),v___theme_force_buffered=0,v___theme_reload=0,v___theme_connection_reestablish=0,v___theme_connection_triggered_origin=0,v___theme_ajax_error=0,"undefined"==typeof v___theme_pjax_call&&(v___theme_pjax_call=0),v___theme_state_visible=1,v___theme_visibility_check=0,v___theme_progress=0,v___theme_processing_default_content=0,"undefined"==typeof v___theme_content_history&&(v___theme_content_history=0),"undefined"==typeof v___location_previous&&(v___location_previous=0),v___theme_night_mode="1"==get_server_data("data-night-mode")?1:0,v___theme_night_mode_enabled="undefined"!=typeof settings_background_color&&"nightRider"===settings_background_color?1:v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=$(".container-fluid"),v___page_signin_form="container session_login",v___page_signin_banner="form-signin-banner",v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),v___page_editor_detached=!1,v___target_servers_index="servers/link.cgi",v___URI=URI(v___location),v___location_protocol=v___URI.protocol(),v___location_port=v___URI.port(),v___location_origin=v___URI.origin(),v___location_hostname=v___URI.hostname(),v___location_href=v___location.href,v___location_path=v___URI.path().replace(/\/+/g,"/"),v___location_path_unslashed=v___location_path.replace(/^\//g,"").replace(/\/$/g,""),v___location_path_lead_unslashed=v___location_path.replace(/^\//g,""),v___location_file=v___URI.filename(),v___location_directory=v___URI.directory(),v___location_directory_trail_slashed=v___location_directory?v___location_directory.endsWith("/")?v___location_directory:v___location_directory+"/":"/",v___location_directory_unslashed=v___location_directory.replace(/^\//g,"").replace(/\/$/g,""),v___location_directory_unslashed_trail_slashed=v___location_directory_unslashed+"/",v___location_query=link_type_convert(v___URI.query(),1),v___location_resource=link_type_convert(v___URI.resource(),1),v___location_resource_unslashed=v___location_resource.replace(/^\//g,"").replace(/\/$/g,""),v___location_prefix=get_server_data("webprefix"),v___location_prefix_unslashed_trail_slashed=v___location_prefix.replace(/^\//g,"").replace(/\/$/g,"")+"/","/"===v___location_prefix_unslashed_trail_slashed&&(v___location_prefix_unslashed_trail_slashed=""),v___server_css_path=v___location_prefix+"/unauthenticated/css",v___server_css_palettes_path=v___server_css_path+"/palettes",v___server_js_path=v___location_prefix+"/unauthenticated/js",v___server_extensions_path=v___location_prefix+"/extensions",
// $t___license_vm = get_server_data("virtual-server-license"),
// $t___license_cm = get_server_data("server-manager-license"),
plugins.navigation.state.update()}function content_page_center_h_offset(){var e=$("aside"),t=e.length,a=parseInt(get_server_data("navigation-collapsed"))||matchMedia("(max-width: 1080px)").matches,n=parseInt(get_server_data("slider-fixed")),i=0,r=!($(window).width()<640);return!n&&a?i=0:r&&t&&(!a&&!n||a&&!n||!a&&n)&&(i=-20),r&&t&&a&&n&&(i=-150),r&&t&&!a&&!n&&(i=e.outerWidth()/2),i}function content_page_calc_width(){var e=parseInt(get_server_data("navigation-collapsed"))||matchMedia("(max-width: 1080px)").matches?0:$("aside").outerWidth()||0,t=parseInt(get_server_data("slider-fixed"))&&!document.querySelector(".right-side-tabs-toggler").offsetHeight?300:0,a=window.innerWidth-e-t-60-2;return parseInt(a)}function content_page_calc_height(e){var t=0;"editor"===e&&(t=200);var a=$(window).outerHeight()-parseInt($(".container-fluid").css("margin-top"))-parseInt($(".container-fluid > .panel > .panel-heading").outerHeight())-parseInt($(".container-fluid > .panel > .panel-body").css("padding-top"))-t;return parseInt(a>320?a:320)}function editor_change_mode(e,t){var a=CodeMirror.findModeByMIME(t);mode=a.mode,spec=a.mime,e.setOption("mode",spec),CodeMirror.autoLoadMode(e,mode)}function editor_modes(e){var t='<select title="'+theme_language("editor_set_syntax")+'" aria-label="'+theme_language("editor_set_syntax")+'" data-no-appearance class="select-mode-info" dir="rtl">',a=CodeMirror.modeInfo,n=0,i=e&&e.helperType?e.helperType:0;$.each(a,function(a,r){var s=0;e&&(!n&&i&&i==r.mime&&(s=1,n++),i||(n||e.name!=r.mode?!n&&e&&e.name&&r.mime.indexOf(e.name)>-1?(n++,s=1):!n&&e&&e.name&&e.name.indexOf(r.mime)>-1&&(n++,s=1):(s=1,n++))),t+="<option "+(s?" selected":"")+' value="'+r.mime+'">'+r.name+"</option>"}),t+="</select>";var r=0;if(!$(t).find("option[selected]").val()){var s=$(t);s.find('option[value="text/plain"]').attr("selected",1),r=s[0].outerHTML}return r||t}function editor_init_check(){var e=$(".container-fluid > .panel > .panel-body textarea");return 1===e.length&&("data"===e.attr("name")||"text"===e.attr("name")||"conf"===e.attr("name")||"script"===e.attr("name")||core.curModuleFileQuery("virtual-server","edit_html.cgi","textok=")||core.curModuleFileQuery("nginx","edit_server.cgi","editfile=")||v___location_file.indexOf("manual")>-1)?core.curModule("gnupg")||core.curModuleFile("virtual-server","mass_ucreate_form.cgi")||core.curModuleFile("virtual-server","mass_create_form.cgi")||core.curModuleFile("server-manager","edit_pubkey.cgi")||core.curModuleFile("server-manager","edit_key.cgi")||check_location_resource("/config.cgi?server-manager")||core.curModuleFile("useradmin","batch_form.cgi")||core.curModuleFile("useradmin","gbatch_form.cgi")||"mass_form.cgi"===v___location_file||"feedback_form.cgi"===v___location_file||"notes"===$("textarea").attr("id")?0:(v___page_hasEditor=1,1):0}function editor_custom_modes(e){var t,a,n=v___module;return"apache"==n||"postfix"==n||"dovecot"==n||"spam"==n||"sendmail"==n||"samba"==n||"proftpd"==n||"fail2ban"==n||"sshd"==n||"squid"==n||"ldap-server"==n||"mysql"==n||"postgresql"==n?(t="rpm",a="rpm-spec"):"init"==n||"procmail"==n||"shorewall"==n||Test.strContains(n,"nginx")||Test.strContains(n,"cshrc")?(t="shell",a="text/x-sh"):"phpini"==n?(t="z80",a="text/x-z80"):"bind8"==n||core.curModuleFile("virtual-server","manual_records.cgi")?"edit_text.cgi"===v___location_file||"manual_records.cgi"===v___location_file?(t="nsis",a="text/x-nsis"):(t="mscgen",a="text/x-mscgen"):"virtual-server"==n&&e&&"body"==e.attr("name")&&(t="htmlmixed",a="text/html"),[t,a]}function editor_fix_width(e){var t=$(e).parent("form"),a=content_page_calc_width();t&&t.length&&(t.width(a),$(window).off("resize.cmc"),$(window).on("resize.cmc",function(){editor_fix_width(e,a)}))}function editor_init(e,t,a,n,i,r,s,o,_){s=void 0!==s&&0!=s,_=void 0!==_&&0!=_&&_,s||(i=void 0!==i&&0!=i,r=void 0!==r&&0!=r,$.each(e,function(s,l){$(this);var c=v___module;["phpini","bind8"].indexOf(c)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var d=null,g="text/plain",f=!1;core.curModuleFile("custom","view.cgi")?f=$('form[action="save.cgi"]').find(".table-title").find("tt").text():n&&!n.toString().includes("static")?t&&(f=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=f):f=$('select[name="file"]').val();var u,p,m=0,h=t||f;(u=/.+\.([^.]+)$/.exec(h))?(p=CodeMirror.findModeByExtension(u[1]))&&(d=p.mode,g=p.mime,m=[d,g]):/\//.test(h)?(p=CodeMirror.findModeByMIME(h))&&(d=p.mode,m=[d,g=h]):m=[d=null,g="text/plain"];if(n.toString().includes("static")||v___page_editor_detached){var v=editor_custom_modes($(this));d=v[0],g=v[1]}if($current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||i){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})};window["__cm_editor_"+n]=CodeMirror.fromTextArea(l,{tabMode:"indent",matchBrackets:!0,lineNumbers:!0,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!0},lineWrapping:~~localStorage.getItem(v___server_hostname+"-"+get_server_data("user")+"-editor-line-wrapping")||!1,indentUnit:0,autofocus:!0,foldGutter:!0,continueComments:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete","Alt-S":function(){if(l&&$(l).length){var e=$(l).parents(".panel-body").find(".dropdown-editor_config_search");n&&n.toString().includes("static")&&$(l).parents("form")&&e.find('button[data-toggle="dropdown"]').trigger("click")}},"Shift-Cmd-F":"replace","Shift-Ctrl-F":"replace"},styleActiveLine:!0,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette}),n&&n.toString().includes("static")&&(v___page_hasEditor=1),window["__cm_editor_"+n].setOption("mode",g),d&&"rpm"!=d&&CodeMirror.autoLoadMode(window["__cm_editor_"+n],d),window["__cm_editor_"+n].addKeyMap({"Ctrl-Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t),localStorage.setItem(v___server_hostname+"-"+get_server_data("user")+"-editor-line-wrapping",~~t)}});var b=$("body").find(".jsPanel"),x=b&&b.length;page.handle.content.offset(!0),setTimeout(function(){if($("body").find(".jsPanel").length){var e=document.getElementById("jsPanel-"+(n-1)),t=$(e).find("[data-mode-select]").find(".select-mode-info");m&&m[0]&&m[1]&&t.val(m[1]).trigger("change"),t.on("change",function(){editor_change_mode(window["__cm_editor_"+n],$(this).val())})}else{var a=$(".CodeMirror");a.before("<i "+theme_inject_tooltip(theme_language("global_help"))+' aria-label="'+theme_language("global_help")+'" class="fa fa-fw fa-lg fa-question-circle text-muted -helper __helper"></i>'),1===a.length&&core.curModule("custom")&&(a.before('<div data-mode-select data-mode-select-single-mode class="text-light cursor-default"><label class="select-styled select-styled-small select-styled-no-border select-styled-no-icon">'+editor_modes(__cm_editor_static.getMode())+"</label></div>"),a.prev("[data-mode-select]").find(".select-mode-info").on("change",function(){editor_change_mode(__cm_editor_static,$(this).val())}))}var i=$(".fa.fa-question-circle.__helper:not(.soft_wt), .__helper___:not(.soft_wt)");$.ajax({type:"GET",url:v___location_prefix+"/help.cgi/authentic-theme/editor",data:!1,dataType:"text",success:function(e){i.popover({container:"body",placement:"auto left",sanitize:!1,title:'<button type="button" class="close pull-right close-popover-trigger font-size-120p">&times;</button>'+theme_language("editor_help_title"),content:e,trigger:"click",html:!0})}}),i.on("show.bs.popover",function(e){this.classList.contains("zi-last")&&setTimeout(function(){var t=e.delegateTarget.lastElementChild;t&&t.classList&&t.classList.add("zi-99999")})}),i.on("inserted.bs.popover",function(){$("body").find(".editor_help").parents(".popover").addClass("_helper").next("header").remove(),$("body").find(".popover-content > .ui_subheading").remove()})},100),r&&window["__cm_editor_"+n].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||n&&n.toString().includes("static")&&set_onbeforeunload_status(1,0)});var w=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),y=$(".container-fluid > .panel > .panel-body").attr("data-cm-state");o&&(despinnerfy_buttons(),$('[data-form="submitter"]').hasClass("btn-warning")&&set_onbeforeunload_status(1),page.handle.content.offset(!0)),o&&w&&__cm_editor_static.setCursor(parseInt(w.split(",")[0]),parseInt(w.split(",")[1]));var k=uri_parse_param("editor_line");k&&__cm_editor_static.setCursor(parseInt(k)-1,0);var C=0;if(core.curModuleFile("virtual-server","edit_html.cgi")?C-=-200:C-=-50,_){var j=$(l).parents("form"),O=j.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');j.on("submit",function(e){set_onbeforeunload_status(0,0)}),O.prev("br").length&&O.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+n].setSize(null,(content_page_calc_height("editor")-C)*_)}).trigger("resize"),window["__cm_editor_"+n].on("change",function(){set_onbeforeunload_status(1,0),O.removeClass("btn-default btn-success").addClass("btn-danger")})}else{var T;T=a||4,a?(window["__cm_editor_"+n].on("change",function(t,a){e.val(window["__cm_editor_"+n].getValue());var i=$(":focus").parents(".jsPanel");i.is(".jsPanel")&&(i.find("._filemanager_file_editor_save").addClass("text-danger __locked__"),i.find("select[data-encoding]").addClass("pointer-events-none"),set_onbeforeunload_status_native(1))}),window["__cm_editor_"+n].setSize(T[0],T[1])):($window_height=content_page_calc_height("editor")-C,window["__cm_editor_"+n].setSize(null,$window_height),$(window).resize(function(){$window_height=content_page_calc_height("editor")-C,window["__cm_editor_"+n].setSize(null,$window_height)}))}$(".sub_table_container").find(".CodeMirror").length&&($(".sub_table_container").addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced")),n&&n.toString().includes("static")&&editor_background_save(o&&!!w&&"true"==y,o),n&&n.toString().includes("static")&&!x&&editor_fix_width(".container-fluid > .panel .panel-body textarea:hidden")}}))}function viewer_init_check(){return $('body[class^="syslog"]').length&&v___location_query&&(v___location_query.indexOf("view=1")>-1||v___location_query.indexOf("new=")>-1)||$('body[class^="syslog-ng"]').length&&v___location_file&&"view_log.cgi"===v___location_file&&v___location_query&&v___location_query.indexOf("dest=")>-1?1:0}function viewer_init(){if($("pre[data-cm-viewer]").remove(),$(".panel-body pre").find("i").length){var e=0,t=$('.panel-body [name="filter"]');t.length&&t.val()&&(e=1),$(".panel-body pre > i").addClass("label label-transparent-15").text(theme_language(e?"global_no_results_found":"global_empty").toUpperCase()),$(".panel-body pre").addClass("text-center")}else{$(".panel-body pre").each(function(e,t){var a=$(this),n=Convert.htmlStrip(Convert.uriDecodeComponent(a.html()));a.addClass("hidden"),a.after("<pre data-cm-viewer data-cm-viewer-id-"+(e+1)+"></pre>"),$target=$("pre[data-cm-viewer-id-"+(e+1)+"]");var i=$.trim($('[name="filter"]:first').val());i&&i.length&&CodeMirror.defineMode("highlightSearch",function(e,t){var a={token:function(e,t){var a=e.string.match(new RegExp(i,"i"));if(a&&a[1]&&(i="",$.each(a,function(e,t){Test.numeric(e)&&e>0&&(i.length?i+="|"+t:i=t)})),i=new RegExp(i,"i"),e.match(i))return"highlightSearch";for(;null!=e.next()&&!e.match(i,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),a)}),CodeMirror($target[0],{value:n,lineNumbers:!1,mode:i?"highlightSearch":null,theme:v___theme_night_mode?"monokai":settings_cm_editor_palette,readOnly:!0}).addKeyMap({"Ctrl-Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t)}})}).promise().done(function(){})}}function notifications(e,t,a,n){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," ");if("granted"===Notification.permission){var i=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+a+".png"});i.onclick=function(){r(i,n)}}else"denied"!==Notification.permission&&Notification.requestPermission(function(i){if("granted"===i){var s=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+a+".png"});s.onclick=function(){r(s,n)}}})}function r(e,t){t&&(check_bundle(t),plugins.navigation.reset(),get_pjax_content(t),e.close()),window.focus()}}function uri_parse(e,t){var a=URI(t||v___location);return"directory"===e?a.directory():"directory"===e?a.directory():"file"===e?a.filename():"query"===e?a.query():void 0}function uri_parse_param(e,t){var a=URI.parseQuery(URI(t||v___location_resource).query())[e];return a||String()}function uri_parse_param2(e,t){var a=t,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(a);return n?n[1]:null}function unbuffered_header_post(e){var t=this;if(t.is_running||(t.is_running=2),Test.strContains(e.responseText,"theme_post_save")||Test.strContains(e.responseText,"theme_select_server")){if(2!==t.is_running)return;t.is_running=1,setTimeout(function(){t.is_running=2},1e3);var a=e.responseText.match(/theme_post_save(.*)$/gm),n=e.responseText.match(/theme_select_server(.*)$/gm);setTimeout(function(){if(a){var e=a[0].split("=");plugins.navigation.reload(e[1])}else if(n){var t=n[0].split("=");$("aside select").val()!=t[1]&&plugins.navigation.reload("-1"==t[1]?"0":t[1])}},500)}}function unbuffered_header_processor_allow(e,t){var a=URI(v___location).path(),n=vars.previous_request_progressive;return"object"==typeof vars.previous_request_progressive&&(n=$(n.target).serialize()),void 0!==e&&(a=e),(!v___initial_load||t)&&a&&Test.strContains(a,".cgi")&&(Test.strContains(a,"webmin/install_theme.cgi")||Test.strContains(a,"usermin/install_theme.cgi")||a.indexOf("/virtual-server/import.cgi")>-1||a.indexOf("/virtual-server/edit_newlinks.cgi")>-1||a.indexOf("/virtual-server/postsave.cgi")>-1||a.indexOf("/virtual-server/validate.cgi")>-1||a.indexOf("/server-manager/edit_serv.cgi")>-1||a.indexOf("/server-manager/save_serv.cgi")>-1||a.indexOf("/server-manager/list_ifaces.cgi")>-1||a.indexOf("/server-manager/mass_update.cgi")>-1||a.indexOf("/server-manager/mass_update_form.cgi")>-1||a.indexOf("/server-manager/mass_domains.cgi")>-1||a.indexOf("/server-manager/get_images.cgi")>-1||a.indexOf("/server-manager/edit_newlinks.cgi")>-1||a.indexOf("/server-manager/list_gces.cgi")>-1||a.indexOf("/server-manager/list_ec2s.cgi")>-1||a.indexOf("/server-manager/unpause.cgi")>-1||a.indexOf("/server-manager/find.cgi")>-1||a.indexOf("useradmin/batch_exec.cgi")>-1||a.indexOf("useradmin/gbatch_exec.cgi")>-1||a.indexOf("useradmin/mass_delete_user.cgi")>-1||a.indexOf("virtual-server/domain_setup.cgi")>-1||a.indexOf("virtual-server/upgrade.cgi")>-1||a.indexOf("virtual-server/mass_create.cgi")>-1||a.indexOf("virtual-server/restore.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/save_newip.cgi")>-1||a.indexOf("virtual-server/mass_domains_change.cgi")>-1||a.indexOf("virtual-server/install_dkim.cgi")>-1||a.indexOf("virtual-server/save_domain.cgi")>-1||a.indexOf("virtual-server/backup.cgi")>-1||a.indexOf("virtual-server/save_phpmode.cgi")>-1||a.indexOf("virtual-server/script_install.cgi")>-1||a.indexOf("virtual-server/mass_change.cgi")>-1||a.indexOf("virtual-server/save_ratelimit.cgi")>-1||a.indexOf("virtual-server/mass_scripts.cgi")>-1||a.indexOf("virtual-server/mass_upgrade.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/save_newips.cgi")>-1||a.indexOf("virtual-server/letsencrypt.cgi")>-1&&!n.includes("only")||a.indexOf("virtual-server/migrate.cgi")>-1||a.indexOf("virtual-server/save_mail.cgi")>-1||a.indexOf("virtual-server/mass_delete_domains.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/delete_domain.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/unscript_install.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/mass_uninstall.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/clone.cgi")>-1||a.indexOf("virtual-server/fix_symlinks.cgi")>-1&&!n.includes("ignore")||a.indexOf("virtual-server/disable_domain.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/delete_databases.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/move.cgi")>-1||a.indexOf("virtual-server/enable_domain.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/transfer.cgi")>-1||a.indexOf("virtual-server/mass_disable.cgi")>-1||a.indexOf("virtual-server/rename.cgi")>-1||a.indexOf("virtual-server/save_dbname.cgi")>-1||a.indexOf("virtual-server/mass_enable.cgi")>-1||a.indexOf("virtual-server/save_frame.cgi")>-1||a.indexOf("virtual-server/check.cgi")>-1||a.indexOf("virtual-server/save_newchroot.cgi")>-1||a.indexOf("virtual-server/enable_dkim.cgi")>-1||a.indexOf("virtual-server/save_proxy.cgi")>-1||a.indexOf("virtual-server/save_dbpass.cgi")>-1||a.indexOf("virtual-server/save_dbhosts.cgi")>-1||a.indexOf("virtual-server/unalias.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/save_newautoconfig.cgi")>-1||a.indexOf("virtual-server/quotacheck.cgi")>-1||a.indexOf("virtual-server/unsub.cgi")>-1&&n.includes("confirm")||a.indexOf("virtual-server/save_domdkim.cgi")>-1||a.indexOf("virtual-server/fix_modphp.cgi")>-1&&!n.includes("ignore")||a.indexOf("virtual-server/connectivity.cgi")>-1||a.indexOf("virtual-server/all_webmin.cgi")>-1||a.indexOf("virtualmin-support/send_ticket.cgi")>-1||a.indexOf("virtualmin-support/enable_login.cgi")>-1||a.indexOf("virtualmin-support/disable_login.cgi")>-1||a.indexOf("server-manager/empty.cgi")>-1||a.indexOf("server-manager/exec_vbackup.cgi")>-1||a.indexOf("server-manager/exec_vsync.cgi")>-1||a.indexOf("server-manager/failover.cgi")>-1||a.indexOf("server-manager/find.cgi")>-1||a.indexOf("server-manager/gcescan.cgi")>-1||a.indexOf("server-manager/install_kvm.cgi")>-1||a.indexOf("server-manager/install_xen.cgi")>-1||a.indexOf("server-manager/manual_image.cgi")>-1||a.indexOf("server-manager/mass.cgi")>-1&&(n.includes("delete")||n.includes("dereg")||n.includes("script")||n.includes("shutdown")||n.includes("startup")||n.includes("reboot"))||a.indexOf("server-manager/mass_move.cgi")>-1||a.indexOf("server-manager/mass_script.cgi")>-1||a.indexOf("server-manager/massupload.cgi")>-1||a.indexOf("server-manager/move.cgi")>-1||a.indexOf("server-manager/move_disk.cgi")>-1||a.indexOf("server-manager/newami.cgi")>-1||a.indexOf("server-manager/pause.cgi")>-1||a.indexOf("server-manager/reset.cgi")>-1||a.indexOf("server-manager/restore.cgi")>-1||a.indexOf("server-manager/restore_domain.cgi")>-1||a.indexOf("server-manager/save_ec2address.cgi")>-1||a.indexOf("server-manager/save_limits.cgi")>-1||a.indexOf("server-manager/save_pass.cgi")>-1||a.indexOf("server-manager/save_vcpus.cgi")>-1||a.indexOf("server-manager/scan.cgi")>-1||a.indexOf("server-manager/transfer.cgi")>-1||a.indexOf("server-manager/unpause.cgi")>-1||a.indexOf("server-manager/upgrade.cgi")>-1||a.indexOf("server-manager/upload.cgi")>-1||a.indexOf("server-manager/add.cgi")>-1||a.indexOf("server-manager/backup.cgi")>-1||a.indexOf("server-manager/boot.cgi")>-1||a.indexOf("server-manager/clone.cgi")>-1||a.indexOf("server-manager/convert_image.cgi")>-1||a.indexOf("server-manager/create_address.cgi")>-1||a.indexOf("server-manager/create.cgi")>-1||a.indexOf("server-manager/create_dimage.cgi")>-1||a.indexOf("server-manager/create_dkvolume.cgi")>-1||a.indexOf("server-manager/create_domain.cgi")>-1||a.indexOf("server-manager/create_ec2attach.cgi")>-1||a.indexOf("server-manager/create_ec2_snapshot.cgi")>-1||a.indexOf("server-manager/create_gceattach.cgi")>-1||a.indexOf("server-manager/create_gdisk.cgi")>-1||a.indexOf("server-manager/create_gimage.cgi")>-1||a.indexOf("server-manager/create_gsnapshot.cgi")>-1||a.indexOf("server-manager/create_image.cgi")>-1||a.indexOf("server-manager/create_volume.cgi")>-1||a.indexOf("server-manager/delete_addresses.cgi")>-1||a.indexOf("server-manager/delete_backuplogs.cgi")>-1||a.indexOf("server-manager/delete_ec2attach.cgi")>-1||a.indexOf("server-manager/delete_ec2_snapshots.cgi")>-1&&n.includes("confirm")||a.indexOf("server-manager/delete_gceattach.cgi")>-1||a.indexOf("server-manager/delete_volumes.cgi")>-1&&n.includes("confirm")||a.indexOf("server-manager/download.cgi")>-1&&n.includes("dest=1")||a.indexOf("server-manager/ec2scan.cgi")>-1||a.indexOf("cluster-usermin/upgrade.cgi")>-1||a.indexOf("cluster-usermin/install.cgi")>-1||a.indexOf("cluster-usermin/update.cgi")>-1||a.indexOf("cluster-webmin/install.cgi")>-1&&n.includes("source=2")||a.indexOf("cluster-webmin/update.cgi")>-1||a.indexOf("cluster-useradmin/save_user.cgi")>-1||a.indexOf("cluster-useradmin/save_group.cgi")>-1||a.indexOf("cluster-useradmin/delete_user.cgi")>-1||a.indexOf("cluster-useradmin/create_group.cgi")>-1||a.indexOf("cluster-useradmin/create_user.cgi")>-1||a.indexOf("ldap-useradmin/batch_exec.cgi")>-1||a.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||a.indexOf("usermin/upgrade.cgi")>-1||a.indexOf("usermin/update.cgi")>-1||a.indexOf("cpan/download.cgi")>-1&&(n.includes("source=2")||n.includes("source=3"))||a.indexOf("cpan/install.cgi")>-1&&!n.includes("need=")||a.indexOf("burner/save_profile.cgi")>-1||a.indexOf("burner/burn.cgi")>-1||a.indexOf("bind8/mass_create.cgi")>-1||a.indexOf("bind8/mass_rcreate.cgi")>-1||a.indexOf("bind8/mass_delete.cgi")>-1&&n.includes("confirm")||a.indexOf("bind8/mass_update.cgi")>-1||a.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||a.indexOf("bind8/mass_rdelete.cgi")>-1||a.indexOf("bind8/enable_zonekey.cgi")>-1||a.indexOf("bind8/enable_zonedt.cgi")>-1||a.indexOf("bind8/disable_zonedt.cgi")>-1||a.indexOf("webalizer/save_log.cgi")>-1&&!n.includes("view=")&&!n.includes("global=")||a.indexOf("bacula-backup/restore.cgi")>-1||a.indexOf("bacula-backup/backup.cgi")>-1||a.indexOf("bacula-backup/gbackup.cgi")>-1||a.indexOf("bacula-backup/label.cgi")>-1||a.indexOf("bacula-backup/mount.cgi")>-1||a.indexOf("cluster-software/install_pack.cgi")>-1||a.indexOf("updown/download.cgi")>-1||a.indexOf("software/install_pack.cgi")>-1||a.indexOf("software/do_install.cgi")>-1||a.indexOf("software/apt_upgrade.cgi")>-1||a.indexOf("software/rhn_check.cgi")>-1||a.indexOf("software/yum_upgrade.cgi")>-1||a.indexOf("software/urpmi_upgrade.cgi")>-1||a.indexOf("software/csw_upgrade.cgi")>-1||a.indexOf("software/ports_upgrade.cgi")>-1||a.indexOf("webmin/letsencrypt.cgi")>-1&&!n.includes("save=")||a.indexOf("webmin/delete_webmincron.cgi")>-1&&!n.includes("delete=")||a.indexOf("webmin/test_sendmail.cgi")>-1||a.indexOf("package-updates/update.cgi")>-1||core.moduleFile(a,"custom","run.cgi")||core.moduleFile(a,"custom","sql.cgi")||a.indexOf("virtualmin-init/save.cgi")>-1||a.indexOf("virtualmin-init/mass.cgi")>-1||a.indexOf("backup-config/save.cgi")>-1||a.indexOf("squid/init_cache.cgi")>-1||a.indexOf("squid/clear.cgi")>-1&&n.includes("confirm")||a.indexOf("squid/chown.cgi")>-1||a.indexOf("ldap-client/check.cgi")>-1||a.indexOf("sendmail/del_mailqs.cgi")>-1||a.indexOf("sendmail/flushq.cgi")>-1||a.indexOf("init/mass_start_stop.cgi")>-1||a.indexOf("init/mass_launchd.cgi")>-1||a.indexOf("init/mass_systemd.cgi")>-1||a.indexOf("init/mass_upstarts.cgi")>-1||a.indexOf("init/mass_rcs.cgi")>-1||a.indexOf("init/save_services.cgi")>-1||a.indexOf("ldap-server/create.cgi")>-1||a.indexOf("change-user/change.cgi")>-1||a.indexOf("virtualmin-slavedns/save.cgi")>-1||a.indexOf("proc/trace.cgi")>-1||a.indexOf("proc/run.cgi")>-1&&!n.includes("mode=1")||a.indexOf("proc/kill_proc_list.cgi")>-1||a.indexOf("fsdump/backup.cgi")>-1||a.indexOf("fsdump/restore.cgi")>-1||a.indexOf("webmin_search.cgi")>-1||a.indexOf("security-updates/update.cgi")>-1||a.indexOf("virtualmin-mailrelay/save.cgi")>-1||a.indexOf("cluster-copy/exec.cgi")>-1||a.indexOf("cron/save_cron.cgi")>-1||a.indexOf("cron/exec_cron.cgi")>-1||a.indexOf("virtualmin-registrar/import.cgi")>-1||a.indexOf("virtualmin-registrar/save_ns.cgi")>-1||a.indexOf("virtualmin-registrar/transfer.cgi")>-1||a.indexOf("virtualmin-registrar/renew.cgi")>-1||a.indexOf("virtualmin-registrar/create.cgi")>-1||a.indexOf("htaccess-htpasswd/search.cgi")>-1||a.indexOf("acl/makedn.cgi")>-1||a.indexOf("acl/cert_issue.cgi")>-1||a.indexOf("acl/maketables.cgi")>-1||a.indexOf("acl/schema.cgi")>-1||a.indexOf("filter/move.cgi")>-1||a.indexOf("fetchmail/check.cgi")>-1||a.indexOf("servers/find.cgi")>-1||a.indexOf("cluster-cron/exec.cgi")>-1||a.indexOf("raid/mkfs.cgi")>-1||a.indexOf("lvm/pvmove.cgi")>-1||a.indexOf("lvm/mkfs.cgi")>-1||a.indexOf("ppp-client/init.cgi")>-1||a.indexOf("fdisk/mkfs.cgi")>-1||a.indexOf("fdisk/tunefs.cgi")>-1||a.indexOf("fdisk/fsck.cgi")>-1||a.indexOf("spam/deleteall_awl.cgi")>-1||a.indexOf("quota/check_quotas.cgi")>-1||a.indexOf("virtualmin-awstats/save.cgi")>-1&&n.includes("gen=")||a.indexOf("virtualmin-awstats/config_save.cgi")>-1&&n.includes("gen=")||a.indexOf("postfix/flushq.cgi")>-1||a.indexOf("status/delete_mons.cgi")>-1&&!n.includes("delete=")||a.indexOf("/webmin/upgrade.cgi")>-1)?1:0}function unbuffered_header_processor_allow_scroll(){var e=["webmin_search.cgi"],t=core.curModule("package-updates")&&$('form[action*="update.cgi"]').length?1:0;return e.filter(function(e){return vars.requested_page.includes(e)}).length||Test.arrContains(e,v___location_file)||t||!settings_perform_content_scrolling?0:1}function unbuffered_header_processor(e,t){if(t){var a=e,n=$(a.target),i=a.target.action;vars.source_request=v___location_resource;var r=$(quirks.active_element()).attr("name"),s=$.trim(quirks.active_element().innerText),o=quirks.active_element().value;n.find('input[name="'+r+'"]')&&n.find('input[name="'+r+'"]').val()==(s||o)||$('<input data-trigger-injected="1">').attr({type:"hidden",name:r,value:s||o}).appendTo(n);var _=Test.strContains(n.attr("enctype"),"multipart/form-data"),l=_?new FormData(n[0]):n.serialize();if(_||(l=Test.strContains(l,r+"=")?l:l+"&"+r+"="+o),$("input:file:visible").val())return v___theme_force_buffered=1,void n.submit()}var c=0,d=0,g=t?i:e;v___location.href,$('div[data-dcontainer="1"] > .panel.panel-default').clone();progress.start(),set_onbeforeunload_status(1,1),$("body").addClass("loading-bg"),vars.requested_page=g;var f=0,u=0,p='div[data-dcontainer="1"]',m=$(p).clone(),h=get_page_title_subtitle(1),v=String();progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.responseType="text",e.addEventListener("progress",function(t){var a=XHR.headers(e)[1];if(a&&a.includes("application/"))e.responseType="arraybuffer";else{var n=t.target.responseText,i=$(n),r=i.filter(p).html(),s=i.filter(p).find("pre").length;if(Test.strContains(n,v___page_signin_form))return v___available_session=0,void progressive_request.abort();if(r&&d++,(s||d>1)&&!c){if(r){var o=$(".__page");if($(p).html(r),c++,unbuffered_header_processor_allow_scroll())o.hasScrollBar()?f||o.scrollTop(o[0].scrollHeight):o.scrollTop(0);o.scroll(function(e){var t=this.scrollTop===this.scrollHeight-this.offsetHeight;t||(f=1),t&&f&&(f=0)}),o.addClass("progressing"),unbuffered_header_processor_allow_scroll()||o.addClass("static"),get_pjax_event_end(!1,t.target,1);var _=get_server_data("redirect"),l=_||v;$.pjax.cache(!1,!1,[m,link_type_convert(l,2),h])}$("body").addClass("loading-bg")}else if(c){var g=extract_content(n,'<div class="panel-body">',"</div>",0);if(g){var b=$(p).find(".panel-body").html(g);b.find(".btn").addClass("disabled"),b.find(".ui_link.ui_link_empty").remove()}!f&&unbuffered_header_processor_allow_scroll()&&$(".__page").scrollTop($(".__page")[0].scrollHeight),u=$(".__page").scrollTop()}}},!1),e},type:get_pjax_type(n||g),url:g,processData:!t||!_,contentType:(!t||!_)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&l,beforeSend:function(e){e.setRequestHeader("X-Progressive-URL",g),e.setRequestHeader("X-Requested-From",v___module||v___module_previous),e.setRequestHeader("X-Requested-From-Tab",plugins.navigation.state.module()),v=this.url,get_server_data("loading",1)},complete:function(e){var t=$(".__page");get_server_data("loading",0,1);var a=e.responseText,n=$(a).filter(p);$(p).html(n.html()),get_pjax_event_end(!1,e,1),!f&&unbuffered_header_processor_allow_scroll()?t.scrollTop(t[0].scrollHeight):t.scrollTop(u);var i=$(".progressing pre > i");i.is(":first-child")&&i.is(":last-child")&&$(".progressing pre").addClass("no_data").find("i:first-child").addClass("label text-center label-transparent-15 text-uppercase"),t.removeClass("progressing static"),$("#headln2c .favorites").remove(),progress.end(),set_onbeforeunload_status(0,1),$("body").removeClass("loading-bg"),unbuffered_header_post(e),t.off("scroll"),core.curModuleFile("package-updates","update.cgi")&&plugins.slider.data.fetch(),v___theme_state_visible&&document.hasFocus()||notifications(theme_language("global_command_completed"),get_page_title_subtitle(),get_server_data("product")),"webmin_search.cgi"===v___location_file&&t.find(".ui_link.ui_link_empty").remove(),vars.previous_request_progressive=String()}})}function check_selected_text(){return window.getSelection().toString()}function clear_selected_text(){window.getSelection&&window.getSelection().removeAllRanges()}function check_location_resource(e,t){return t&&v___location_resource?v___location_resource.includes(v___location_prefix+e):v___location_resource===v___location_prefix+e}function check_current_file(e){return v___location_file==e}function vwTOpx(e){var t=window,a=document,n=a.documentElement,i=a.getElementsByTagName("body")[0];return(t.innerWidth||n.clientWidth||i.clientWidth)*e/100}function vhTOpx(e){var t=window,a=document,n=a.documentElement,i=a.getElementsByTagName("body")[0];return(t.innerHeight||n.clientHeight||i.clientHeight)*e/100}function pxTOvw(e){var t=window,a=document,n=a.documentElement,i=a.getElementsByTagName("body")[0];return 100*e/(t.innerWidth||n.clientWidth||i.clientWidth)}function pxTOvh(e){var t=window,a=document,n=a.documentElement,i=a.getElementsByTagName("body")[0];return 100*e/(t.innerHeight||n.clientHeight||i.clientHeight)}function load_init(){"grey"===settings_side_slider_palette&&(settings_side_slider_palette="nav"),quirks.local_storage.safari(),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_available_modules=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:get_server_data("available-modules",JSON.parse(e))}}),$.ajax({type:"GET",url:v___location_prefix+"/index.cgi/?xhr-get_user_level=1",data:!1,dataType:"text",async:$.support.spa,success:function(e){Test.strContains(e,v___page_signin_form)?v___available_session=0:vars.level=e}}),theme_config("load"),page_adjust(settings_leftmenu_width,0),plugins.navigation.lock()}get_server_data("navigation")&&browser.detect.internet_explorer()>5&&browser.detect.internet_explorer()<=11&&(setTimeout(function(){var e="<p>"+theme_language("browser_warning")+"</p>";theme_alert(theme_language("global_warning"),e,!1,"md","danger",!1,"10 modal-ie-warning",0)},2e3),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var a=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>a.length)&&(t=a.length),t-=e.length;var n=a.lastIndexOf(e,t);return-1!==n&&n===t}),String.prototype.startsWith||String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t})),$.extend($.expr[":"],{containsi:function(e,t,a,n){return(e.textContent||e.innerText||"").toLowerCase().indexOf((a[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var a=t-this.length;1+a--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("createEvent"in document){var e=this.ownerDocument,t=e.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),this.dispatchEvent(t)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var a=[],n=this.length;n--;){for(var i=document.createElement(t),r=this[n],s=r.attributes,o=s.length-1;o>=0;o--){var _=s[o];i.setAttribute(_.name,_.value)}i.innerHTML=r.innerHTML,e(r).after(i).remove(),a[n-1]=i}return e(a)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(a=document.body.createTextRange()).moveToElementText(t),a.select();else if(window.getSelection){var a,n=window.getSelection();(a=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(a)}},function(e){e.fn.replaceText=function(t,a,n){return this.each(function(){var i,r,s=this.firstChild,o=[];if(s)do{3===s.nodeType&&(r=(i=s.nodeValue).replace(t,a))!==i&&(!n&&/</.test(r)?(e(s).before(r),o.push(s)):s.nodeValue=r)}while(s=s.nextSibling);o.length&&e(o).remove()})}}(jQuery),jQuery.fn.hasScrollBar=function(e){if(this.get(0))return e?this.get(0).scrollWidth>this.width():this.get(0).scrollHeight>this.height()},$.fn.toggleCheckbox=function(){"checkbox"==$(this).attr("type")&&$(this).prop("checked",!$(this).is(":checked"))},jQuery.fn.confirmation=function(e,t){return e=$.extend({className:"btn-danger",classNameRemove:"",timeout:2500},e),$(this).each(function(a,n){var i,r=$(n);r.html();function s(){r.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&r.addClass(e.classNameRemove)}r.data("confirmed",!1),r.on("click.confirm",function(a){a.preventDefault(),r.data("confirmed")?(t.call(r,a),s()):(r.data("confirmed",!0),e.classNameRemove&&r.removeClass(e.classNameRemove),r.append('<em class="tmp_question">?</em>').addClass(e.className).bind("mouseout.confirm",function(){i=setTimeout(s,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(i)}))}).removeClass(e.className),e.classNameRemove&&r.addClass(e.classNameRemove)}),$(this)},RegExp.quote=function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},$.fn.contentText=function(e){return $(this).contents().filter(function(){return $(this).text().trim()==e.trim()})},$(function(){var e,t=".blinking-default:not(.hidden)";setInterval(function(){0==e?($(t).css("opacity","1"),e=1):(e=1)&&($(t).css("opacity","0"),e=0)},900)}),function(e){var t={},a="table-resizable thead th",n=["dblclick.tmp","mousemove.tmp","mousedown.tmp","mouseup.tmp"];e.fn.resizeableTableColumns=function(i){var r,s,o,_,l=!1,c=v___location_file;if(i&&"string"==typeof i&&(c+=i),!jQuery.isEmptyObject(t))for(var d in t){var g=parseInt(d.replace(c,""))+1,f=t[d];isNaN(g)||e("."+a+":nth-child("+g+")").width(f).css("min-width",f)}e(document).on(n[1],function(e){if(l){var a=s+(e.pageX-r);o.css("min-width",a).width(a),t[c+o.index()]=a}}).on(n[3],function(){l&&(_.removeClass("resizing"),l=!1)}).on(n[2],"."+a+":not(.nonresizable):not(:last-child)",function(t){o=e(this),l=!0,r=t.pageX,s=o.width(),_=o.closest(".table-resizable").addClass("resizing")}).on(n[0],"."+a,function(){e(this).css("min-width","").css("width",""),delete t[c+e(this).index()]}),e(document).one("pjax:complete",function(){theme_unbind(document,n.join(" "))})}}(jQuery);page_init(),load_init(),$(function(){var e=isNaN(parseInt(v___theme_mversion))?1:parseInt(v___theme_mversion);if(e=e>1?"-"+e:String(),console.log("Welcome to Authentic Theme "+v___theme_version+e+(v___debug?" (debug)":String())+"\nhttps://github.com/authentic-theme/authentic-theme"),$.support.pjax&&$.support.spa)snippets.form_input_tester(),snippets.ajax(),snippets.pjax();else if(!$.support.spa){$("head").append('<style id="__tmp_no_overflow">body {overflow: hidden}</style>');var t=".container-fluid";$(t).removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$(t).wrap('<div id="content" class="__page single-page"></div>'),v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&page.handle.content.preloader()}snippets.datetime.tictac(0,1),quirks.render.apple(),platform.set(),$.support.spa&&(page_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.general.timeout = settings_sysinfo_real_time_timeout","stats.general.query()"]),0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&get_server_data("data-slider-fixed","1"),snippets.initial(),setTimeout(function(){plugins.slider.data.fetch()},5e3)),events.window(),events.body(),snippets.tooltips(),plugins.update_notice(),plugins.icons_row(),snippets.form_pre_submitter(),snippets.help_popup(),setTimeout(function(){window.onbeforeunload=function(){if(get_onbeforeunload_status()||get_onbeforeunload_status_native())return progress.end(),!0},$(function(){$.support.spa||progress.end()})},100),setTimeout(function(){theme_alert_charset()},2e3),snippets.page.render(0),setTimeout(function(){v___initial_load=0},1e3),setTimeout(function(){vars.available_modules=get_server_data("available-modules")},1e4)});

Zerion Mini Shell 1.0