File: //usr/share/usermin/authentic-theme/unauthenticated/js/bundle.min.js
/*! jQuery v3.7.1 | (c) OpenJS 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=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},v=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||v).createElement("script");if(o.text=e,t)for(r in y)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[l.call(e)]||"object":typeof e}var b="3.7.1",w=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!h(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:b,constructor:T,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(e,t){return t%2}))},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:a,sort:n.sort,splice:n.splice},T.extend=T.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||h(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&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[t]=T.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},T.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]"!==l.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},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},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=T.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?T.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!w.test(t||n&&n.nodeName||"HTML")},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,a=0,s=[];if(C(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&s.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&s.push(i);return o(s)},guid:1,support:d}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=n[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var E=n.pop,k=n.sort,j=n.splice,A="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function q(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(N,q)};var L=v,H=a;!function(){var t,r,o,a,u,l,f,p,h,g,v=H,y=T.expando,m=0,x=0,b=ee(),w=ee(),C=ee(),N=ee(),q=function(e,t){return e===t&&(u=!0),0},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+A+"*("+P+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+A+"*\\]",R=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",I=new RegExp(A+"+","g"),W=new RegExp("^"+A+"*,"+A+"*"),F=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),$=new RegExp(A+"|>"),B=new RegExp(R),_=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),Q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){ue()},K=pe(function(e){return!0===e.disabled&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});try{v.apply(n=i.call(L.childNodes),L.childNodes),n[L.childNodes.length].nodeType}catch(t){v={apply:function(e,t){H.apply(e,i.call(t))},call:function(e){H.apply(e,i.call(arguments,1))}}}function Z(e,t,n,r){var i,o,a,s,u,c,f,g=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!r&&(ue(t),t=t||l,p)){if(11!==m&&(u=V.exec(e)))if(i=u[1]){if(9===m){if(!(a=t.getElementById(i)))return n;if(a.id===i)return v.call(n,a),n}else if(g&&(a=g.getElementById(i))&&Z.contains(t,a)&&a.id===i)return v.call(n,a),n}else{if(u[2])return v.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return v.apply(n,t.getElementsByClassName(i)),n}if(!(N[e+" "]||h&&h.test(e))){if(f=e,g=t,1===m&&($.test(e)||F.test(e))){for((g=G.test(e)&&se(t.parentNode)||t)==t&&d.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=y)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+fe(c[o]);f=c.join(",")}try{return v.apply(n,g.querySelectorAll(f)),n}catch(t){N(e,!0)}finally{s===y&&t.removeAttribute("id")}}}return me(e.replace(D,"$1"),t,n,r)}function ee(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function te(e){return e[y]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return S(t,"input")&&t.type===e}}function ie(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(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&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(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 se(e){return e&&void 0!==e.getElementsByTagName&&e}function ue(e){var t,n=e?e.ownerDocument||e:L;return n!=l&&9===n.nodeType&&n.documentElement&&(f=(l=n).documentElement,p=!T.isXMLDoc(l),g=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&L!=l&&(t=l.defaultView)&&t.top!==t&&t.addEventListener("unload",J),d.getById=ne(function(e){return f.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length}),d.disconnectedMatch=ne(function(e){return g.call(e,"*")}),d.scope=ne(function(){return l.querySelectorAll(":scope")}),d.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),d.getById?(r.filter.ID=function(e){var t=e.replace(Y,Q);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Y,Q);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&&p){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=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},r.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;f.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+A+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+y+"-]").length||h.push("~="),e.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")}),d.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),q=function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==L&&Z.contains(L,e)?-1:t===l||t.ownerDocument==L&&Z.contains(L,t)?1:a?s.call(a,e)-s.call(a,t):0:4&n?-1:1)}),l}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(ue(e),p&&!N[t+" "]&&(!h||!h.test(t)))try{var n=g.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<Z(t,l,null,[e]).length},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&ue(e),T.contains(e,t)},Z.attr=function(e,t){(e.ownerDocument||e)!=l&&ue(e);var n=r.attrHandle[t.toLowerCase()],i=n&&c.call(r.attrHandle,t.toLowerCase())?n(e,t,!p):void 0;return void 0!==i?i:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,o=0;if(u=!d.sortStable,a=!d.sortStable&&i.call(e,0),k.call(e,q),u){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)j.call(e,n[r],1)}return a=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(i.apply(this)))},(r=T.expr={cacheLength:50,createPseudo:te,match:z,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(Y,Q),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,Q),"~="===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]||Z.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]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ce(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(Y,Q).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&b(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=Z.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(I," ")+" ").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=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),x=!u&&!s,b=!1;if(g){if(o){for(;h;){for(f=t;f=f[h];)if(s?S(f,v):1===f.nodeType)return!1;d=h="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&x){for(b=(p=(l=(c=g[y]||(g[y]={}))[e]||[])[0]===m&&l[1])&&l[2],f=p&&g.childNodes[p];f=++p&&f&&f[h]||(b=p=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[m,p,b];break}}else if(x&&(b=p=(l=(c=t[y]||(t[y]={}))[e]||[])[0]===m&&l[1]),!1===b)for(;(f=++p&&f&&f[h]||(b=p=0)||d.pop())&&(!(s?S(f,v):1===f.nodeType)||!++b||(x&&((c=f[y]||(f[y]={}))[e]=[m,b]),f!==t)););return(b-=i)===r||b%r==0&&0<=b/r}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return i[y]?i(t):1<i.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=s.call(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=ye(e.replace(D,"$1"));return r[y]?te(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:te(function(e){return function(t){return 0<Z(e,t).length}}),contains:te(function(e){return e=e.replace(Y,Q),function(t){return-1<(t.textContent||T.text(t)).indexOf(e)}}),lang:te(function(e){return _.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,Q).toLowerCase(),function(t){var n;do{if(n=p?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===f},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!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 U.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ae(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]=re(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ie(t);function le(){}function ce(e,t){var n,i,o,a,s,u,l,c=w[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=W.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=F.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(D," ")}),s=s.slice(n.length)),r.filter)!(i=z[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?Z.error(e):w(e,u).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=x++;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=[m,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=t[y]||(t[y]={}),i&&S(t,i))t=t[r]||t;else{if((l=c[o])&&l[0]===m&&l[1]===s)return f[2]=l[2];if((c[o]=f)[2]=e(t,n,u))return!0}return!1}}function de(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 he(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 ge(e,t,n,r,i,o){return r&&!r[y]&&(r=ge(r)),i&&!i[y]&&(i=ge(i,o)),te(function(o,a,u,l){var c,f,p,d,h=[],g=[],y=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Z(e,t[r],n);return n}(t||"*",u.nodeType?[u]:u,[]),x=!e||!o&&t?m:he(m,h,e,u,l);if(n?n(x,d=i||(o?e:y||r)?[]:a,u,l):d=x,r)for(c=he(d,g),r(c,[],u,l),f=c.length;f--;)(p=c[f])&&(d[g[f]]=!(x[g[f]]=p));if(o){if(i||e){if(i){for(c=[],f=d.length;f--;)(p=d[f])&&c.push(x[f]=p);i(null,d=[],c,l)}for(f=d.length;f--;)(p=d[f])&&-1<(c=i?s.call(o,p):h[f])&&(o[c]=!(a[c]=p))}}else d=he(d===a?d.splice(y,d.length):d),i?i(null,a,d,l):v.apply(a,d)})}function ve(e){for(var t,n,i,a=e.length,u=r.relative[e[0].type],l=u||r.relative[" "],c=u?1:0,f=pe(function(e){return e===t},l,!0),p=pe(function(e){return-1<s.call(t,e)},l,!0),d=[function(e,n,r){var i=!u&&(r||n!=o)||((t=n).nodeType?f(e,n,r):p(e,n,r));return t=null,i}];c<a;c++)if(n=r.relative[e[c].type])d=[pe(de(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[y]){for(i=++c;i<a&&!r.relative[e[i].type];i++);return ge(1<c&&de(d),1<c&&fe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(D,"$1"),n,c<i&&ve(e.slice(c,i)),i<a&&ve(e=e.slice(i)),i<a&&fe(e))}d.push(n)}return de(d)}function ye(e,t){var n,i,a,s,u,c,f=[],d=[],h=C[e+" "];if(!h){for(t||(t=ce(e)),n=t.length;n--;)(h=ve(t[n]))[y]?f.push(h):d.push(h);(h=C(e,(i=d,s=0<(a=f).length,u=0<i.length,c=function(e,t,n,c,f){var d,h,g,y=0,x="0",b=e&&[],w=[],C=o,S=e||u&&r.find.TAG("*",f),k=m+=null==C?1:Math.random()||.1,j=S.length;for(f&&(o=t==l||t||f);x!==j&&null!=(d=S[x]);x++){if(u&&d){for(h=0,t||d.ownerDocument==l||(ue(d),n=!p);g=i[h++];)if(g(d,t||l,n)){v.call(c,d);break}f&&(m=k)}s&&((d=!g&&d)&&y--,e&&b.push(d))}if(y+=x,s&&x!==y){for(h=0;g=a[h++];)g(b,w,t,n);if(e){if(0<y)for(;x--;)b[x]||w[x]||(w[x]=E.call(c));w=he(w)}v.apply(c,w),f&&!e&&0<w.length&&1<y+a.length&&T.uniqueSort(c)}return f&&(m=k,o=C),b},s?te(c):c))).selector=e}return h}function me(e,t,n,i){var o,a,s,u,l,c="function"==typeof e&&e,f=!i&&ce(e=c.selector||e);if(n=n||[],1===f.length){if(2<(a=f[0]=f[0].slice(0)).length&&"ID"===(s=a[0]).type&&9===t.nodeType&&p&&r.relative[a[1].type]){if(!(t=(r.find.ID(s.matches[0].replace(Y,Q),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(o=z.needsContext.test(e)?0:a.length;o--&&(s=a[o],!r.relative[u=s.type]);)if((l=r.find[u])&&(i=l(s.matches[0].replace(Y,Q),G.test(a[0].type)&&se(t.parentNode)||t))){if(a.splice(o,1),!(e=i.length&&fe(a)))return v.apply(n,i),n;break}}return(c||ye(e,f))(i,t,!p,n,!t||G.test(e)&&se(t.parentNode)||t),n}le.prototype=r.filters=r.pseudos,r.setFilters=new le,d.sortStable=y.split("").sort(q).join("")===y,ue(),d.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=ye,Z.select=me,Z.setDocument=ue,Z.tokenize=ce,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var O=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=T.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return h(t)?T.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?T.grep(e,function(e){return e===t!==n}):"string"!=typeof t?T.grep(e,function(e){return-1<s.call(t,e)!==n}):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return 1<r?T.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&M.test(e)?T(e):e||[],!1).length}});var W,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||W,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:F.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),R.test(r[1])&&T.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,W=T(v);var $=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function _(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&T(e);if(!M.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&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(T(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return _(e,"nextSibling")},prev:function(e){return _(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),1<this.length&&(B[e]||T.uniqueSort(i),$.test(e)&&i.reverse()),this.pushStack(i)}});var z=/[^\x20\t\r\n\f]+/g;function X(e){return e}function U(e){throw e}function V(e,t,n,r){var i;try{e&&h(i=e.promise)?i.call(e).done(t).fail(n):e&&h(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},T.each(t.match(z)||[],function(e,t){n[t]=!0}),n):T.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){T.each(n,function(n,r){h(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 T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,s,n));)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<T.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},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.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 T.Deferred(function(t){T.each(n,function(n,r){var i=h(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&h(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,h(l)?i?l.call(e,a(o,n,X,i),a(o,n,U,i)):(o++,l.call(e,a(o,n,X,i),a(o,n,U,i),a(o,n,X,n.notifyWith))):(r!==X&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,c.error),o<=t+1&&(r!==U&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),e.setTimeout(c))}}return T.Deferred(function(e){n[0][3].add(a(0,e,h(i)?i:X,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:X)),n[2][3].add(a(0,e,h(r)?r:U))}).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},o={};return T.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),o=i.call(arguments),a=T.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(V(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||h(o[n]&&o[n].then)))return a.then();for(;n--;)V(o[n],s(n),a.reject);return a.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){e.setTimeout(function(){throw t})};var Y=T.Deferred();function Q(){v.removeEventListener("DOMContentLoaded",Q),e.removeEventListener("load",Q),T.ready()}T.fn.ready=function(e){return Y.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||Y.resolveWith(v,[T])}}),T.ready.then=Y.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(T.ready):(v.addEventListener("DOMContentLoaded",Q),e.addEventListener("load",Q));var J=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)J(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,h(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(T(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},K=/^-ms-/,Z=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(K,"ms-").replace(Z,ee)}var ne=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function re(){this.expando=T.expando+re.uid++}re.uid=1,re.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ne(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[te(t)]=n;else for(r in t)i[te(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(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(te):(t=te(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.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&&!T.isEmptyObject(t)}};var ie=new re,oe=new re,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,se=/[A-Z]/g;function ue(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(se,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:ae.test(i)?JSON.parse(i):i)}catch(e){}oe.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return oe.hasData(e)||ie.hasData(e)},data:function(e,t,n){return oe.access(e,t,n)},removeData:function(e,t){oe.remove(e,t)},_data:function(e,t,n){return ie.access(e,t,n)},_removeData:function(e,t){ie.remove(e,t)}}),T.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=oe.get(o),1===o.nodeType&&!ie.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=te(r.slice(5)),ue(o,r,i[r]));ie.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){oe.set(this,e)}):J(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=oe.get(o,e))||void 0!==(n=ue(o,e))?n:void 0;this.each(function(){oe.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){oe.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie.get(e,t),n&&(!r||Array.isArray(n)?r=ie.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){T.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie.get(e,n)||ie.access(e,n,{empty:T.Callbacks("once memory").add(function(){ie.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each(function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.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=ie.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var le=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ce=new RegExp("^(?:([+-])=|)("+le+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],pe=v.documentElement,de=function(e){return T.contains(e.ownerDocument,e)},he={composed:!0};pe.getRootNode&&(de=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(he)===e.ownerDocument});var ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&de(e)&&"none"===T.css(e,"display")};function ve(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==l&&+u)&&ce.exec(T.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)T.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,T.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 ye={};function me(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]=ie.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ge(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ye[s])||(o=a.body.appendChild(a.createElement(s)),u=T.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ye[s]=u)))):"none"!==n&&(l[c]="none",ie.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}T.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?T(this).show():T(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=v.createDocumentFragment().appendChild(v.createElement("div")),(be=v.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),d.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",d.option=!!xe.lastChild;var Se={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 Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)ie.set(e[n],"globalEval",!t||ie.get(t[n],"globalEval"))}Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead,Se.th=Se.td,d.option||(Se.optgroup=Se.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(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))T.merge(p,o.nodeType?[o]:o);else if(je.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=Se[s]||Se._default,a.innerHTML=u[1]+T.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;T.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<T.inArray(o,r))i&&i.push(o);else if(l=de(o),a=Ee(f.appendChild(o),"script"),l&&ke(a),n)for(c=0;o=a[c++];)Ce.test(o.type||"")&&n.push(o);return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(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)Le(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=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,i,r,n)})}function He(e,t,n){n?(ie.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ie.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),ie.set(this,t,r),this[t](),n=ie.get(this,t),ie.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ie.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===ie.get(e,t)&&T.event.add(e,t,Ne)}T.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=ie.get(e);if(ne(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(pe,i),n.guid||(n.guid=T.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(z)||[""]).length;l--;)d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.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),T.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=ie.hasData(e)&&ie.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(z)||[""]).length;l--;)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=T.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)||T.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)T.event.remove(e,d+t[l],n,r,!0);T.isEmptyObject(u)&&ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=T.event.fix(e),l=(ie.get(this,"events")||Object.create(null))[u.type]||[],c=T.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=T.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.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<T(i,this).index(l):T.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(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(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[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&S(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&S(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&S(t,"input")&&ie.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,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&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(v.documentMode){var n=ie.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(He(this,e,!0),!v.documentMode)return!1;(r=ie.get(this,t))||this.addEventListener(t,n),ie.set(this,t,(r||0)+1)},trigger:function(){return He(this,e),!0},teardown:function(){var e;if(!v.documentMode)return!1;(e=ie.get(this,t)-1)?ie.set(this,t,e):(this.removeEventListener(t,n),ie.remove(this,t))},_default:function(t){return ie.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=v.documentMode?this:r,o=ie.get(i,t);o||(v.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ie.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=v.documentMode?this:r,o=ie.get(i,t)-1;o?ie.set(i,t,o):(v.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ie.remove(i,t))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),T.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(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=qe),this.each(function(){T.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(ie.hasData(e)&&(s=ie.get(e).events))for(i in ie.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)T.event.add(t,i,s[i][n]);oe.hasData(e)&&(o=oe.access(e),a=T.extend({},o),oe.set(t,a))}}function $e(e,t,n,r){t=o(t);var i,a,s,u,l,c,f=0,p=e.length,g=p-1,v=t[0],y=h(v);if(y||1<p&&"string"==typeof v&&!d.checkClone&&Pe.test(v))return e.each(function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),$e(o,t,n,r)});if(p&&(a=(i=Ae(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(u=(s=T.map(Ee(i,"script"),Ie)).length;f<p;f++)l=i,f!==g&&(l=T.clone(l,!0,!0),u&&T.merge(s,Ee(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,T.map(s,We),f=0;f<u;f++)l=s[f],Ce.test(l.type||"")&&!ie.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):m(l.textContent.replace(Me,""),l,c))}return e}function Be(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(Ee(r)),r.parentNode&&(n&&de(r)&&ke(Ee(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=de(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Ee(c),r=0,i=(o=Ee(e)).length;r<i;r++)s=o[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Ee(e),a=a||Ee(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Ee(c,"script")).length&&ke(a,!f&&Ee(e,"script")),c},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(ne(n)){if(t=n[ie.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[ie.expando]=void 0}n[oe.expando]&&(n[oe.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return J(this,function(e){return void 0===e?T.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 $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(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&&(T.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=t??e,this.map(function(){return T.clone(this,e,t)})},html:function(e){return J(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&&!Oe.test(e)&&!Se[(Te.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Ee(this)),n&&n.replaceChild(t,this))},e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(i[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}});var _e=new RegExp("^("+le+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(fe.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(D,"$1")||void 0),""!==a||de(e)||(a=T.style(e,t)),!d.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(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%",pe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),pe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=v.createElement("div"),c=v.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="box-sizing:content-box;border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",pe.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,pe.removeChild(t)),s}}))}();var Qe=["Webkit","Moz","ms"],Je=v.createElement("div").style,Ke={};function Ze(e){return T.cssProps[e]||Ke[e]||(e in Je?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;n--;)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=ce.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=T.css(e,n+fe[a],!0,i)),r?("content"===n&&(u-=T.css(e,"padding"+fe[a],!0,i)),"margin"!==n&&(u-=T.css(e,"border"+fe[a]+"Width",!0,i))):(u+=T.css(e,"padding"+fe[a],!0,i),"padding"!==n?u+=T.css(e,"border"+fe[a]+"Width",!0,i):s+=T.css(e,"border"+fe[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+l}function ot(e,t,n){var r=Xe(e),i=(!d.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&S(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=te(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=T.cssHooks[t]||T.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=ce.exec(n))&&i[1]&&(n=ve(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),d.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=te(t);return ze.test(t)||(t=Ze(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!et.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,r):Ue(e,tt,function(){return ot(e,t,r)})},set:function(e,n,r){var i,o=Xe(e),a=!d.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,o),u=r?it(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-it(e,t,"border",!1,o)-.5)),u&&(i=ce.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),rt(0,n,u)}}}),T.cssHooks.marginLeft=Ye(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+fe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=rt)}),T.fn.extend({css:function(e,t){return J(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=T.css(e,t[a],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)}}),((T.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.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=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=at.prototype.init,T.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(dt):e.setTimeout(dt,T.fx.interval),T.fx.tick())}function ht(){return e.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=fe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(e,t,n){var r,i,o=0,a=yt.prefilters.length,s=T.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=st||ht(),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:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.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=te(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=T.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=yt.prefilters[o].call(l,e,c,l.opts))return h(r.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,vt,l),h(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),T.fx.timer(T.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ve(n.elem,e,ce.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.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&&ge(e),v=ie.get(e,"fxshow");for(r in n.queue||(null==(a=T._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--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.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]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=ie.get(e,"display")),"none"===(c=T.css(e,"display"))&&(l?c=l:(me([e],!0),l=e.style.display||l,c=T.css(e,"display"),me([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.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=ie.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&me([e],!0),p.done(function(){for(r in g||me([e]),ie.remove(e,"fxshow"),d)T.style(e,r,d[r])})),u=vt(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?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),o=T.speed(t,n,r),a=function(){var t=yt(this,T.extend({},e),o);(i||ie.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&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=T.timers,a=ie.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&pt.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||T.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ie.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=T.timers,a=r?r.length:0;for(n.finish=!0,T.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})}}),T.each(["toggle","show","hide"],function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(gt(t,!0),e,r,i)}}),T.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),st=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ut||(ut=!0,dt())},T.fx.stop=function(){ut=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.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)}})},lt=v.createElement("input"),ct=v.createElement("select").appendChild(v.createElement("option")),lt.type="checkbox",d.checkOn=""!==lt.value,d.optSelected=ct.selected,(lt=v.createElement("input")).value="t",lt.type="radio",d.radioValue="t"===lt.value;var mt,xt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return J(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void T.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=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&S(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(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xt[t]||T.find.attr;xt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=xt[a],xt[a]=i,i=null!=n(e,t,r)?a:null,xt[a]=o),i}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(z)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}T.fn.extend({prop:function(e,t){return J(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.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=T.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(T.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)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,r,i,o,a;return h(e)?this.each(function(t){T(this).addClass(e.call(this,t,Ct(this)))}):(t=St(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,i,o,a;return h(e)?this.each(function(t){T(this).removeClass(e.call(this,t,Ct(this)))}):arguments.length?(t=St(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return h(e)?this.each(function(n){T(this).toggleClass(e.call(this,n,Ct(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=St(e),this.each(function(){if(s)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=Ct(this))&&ie.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ie.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var Et=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,function(e){return null==e?"":e+""})),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):n??"":void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.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||!S(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<T.inArray(T.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},d.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=e.location,jt={guid:Date.now()},At=/\?/;T.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(t,n,r,i){var o,a,s,u,l,f,p,d,y=[r||v],m=c.call(t,"type")?t.type:t,x=c.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!Dt.test(m+T.event.triggered)&&(-1<m.indexOf(".")&&(m=(x=m.split(".")).shift(),x.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:T.makeArray(n,[t]),p=T.event.special[m]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(u=p.delegateType||m,Dt.test(u+m)||(a=a.parentNode);a;a=a.parentNode)y.push(a),s=a;s===(r.ownerDocument||v)&&y.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=y[o++])&&!t.isPropagationStopped();)d=a,t.type=1<o?u:p.bindType||m,(f=(ie.get(a,"events")||Object.create(null))[t.type]&&ie.get(a,"handle"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&ne(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(y.pop(),n)||!ne(r)||l&&h(r[m])&&!g(r)&&((s=r[l])&&(r[l]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Nt),r[m](),t.isPropagationStopped()&&d.removeEventListener(m,Nt),T.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,r){var i;if(Array.isArray(t))T.each(t,function(t,i){n||qt.test(e)?r(e,i):Pt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)Pt(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(n??"")};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=v.createElement("a");function Ut(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(z)||[];if(h(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var i={},o=e===_t;function a(s){var u;return i[s]=!0,T.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 Gt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Xt.href=kt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,T.ajaxSettings),t):Gt(T.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,a,s,u,l,c,f,p,d=T.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?T(h):T.event,y=T.Deferred(),m=T.Callbacks("once memory"),x=d.statusCode||{},b={},w={},C="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Wt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)S.always(e[S.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),E(0,t),this}};if(y.promise(S),d.url=((t||d.url||kt.href)+"").replace($t,kt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(z)||[""],null==d.crossDomain){u=v.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Xt.protocol+"//"+Xt.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=T.param(d.data,d.traditional)),Vt(Bt,d,n,S),l)return S;for(f in(c=T.event&&d.global)&&0==T.active++&&T.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ft.test(d.type),i=d.url.replace(Rt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Mt,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(At.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(It,"$1"),p=(At.test(i)?"&":"?")+"_="+jt.guid+++p),d.url=i+p),d.ifModified&&(T.lastModified[i]&&S.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&S.setRequestHeader("If-None-Match",T.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,S,d)||l))return S.abort();if(C="abort",m.add(d.complete),S.done(d.success),S.fail(d.error),r=Vt(_t,d,n,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,d]),l)return S;d.async&&0<d.timeout&&(s=e.setTimeout(function(){S.abort("timeout")},d.timeout));try{l=!1,r.send(b,E)}catch(t){if(l)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,n,a,u){var f,p,v,b,w,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,o=u||"",S.readyState=0<t?4:0,f=200<=t&&t<300||304===t,a&&(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]}(d,S,a)),!f&&-1<T.inArray("script",d.dataTypes)&&T.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),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}}(d,b,S,f),f?(d.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(T.etag[i]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,f=!(v=b.error))):(v=C,!t&&C||(C="error",t<0&&(t=0))),S.status=t,S.statusText=(n||C)+"",f?y.resolveWith(h,[p,C,S]):y.rejectWith(h,[S,C,v]),S.statusCode(x),x=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[S,d,f?p:v]),m.fireWith(h,[S,C]),c&&(g.trigger("ajaxComplete",[S,d]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,t){T[t]=function(e,n,r,i){return h(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return h(e)?this.each(function(t){T(this).wrapInner(e.call(this,t))}):this.each(function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h(e);return this.each(function(n){T(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=T.ajaxSettings.xhr();d.cors=!!Qt&&"withCredentials"in Qt,d.ajax=Qt=!!Qt,T.ajaxTransport(function(t){var n,r;if(d.cors||Qt&&!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(Yt[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()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.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 T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||T.expando+"_"+jt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Zt,"$1"+i):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||T.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?T(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Kt.push(i)),a&&h(o)&&o(a[0]),a=o=void 0}),"script"}),d.createHTMLDocument=((Jt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(i=R.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=T.css(e,"position"),c=T(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),u=T.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),h(t)&&(t=t.call(e,n,T.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)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.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"===T.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"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||pe})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return J(this,function(e,r,i){var o;if(g(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)}}),T.each(["top","left"],function(e,t){T.cssHooks[t]=Ye(d.pixelPosition,function(e,n){if(n)return n=Ge(e,t),_e.test(n)?T(e).position()[t]+"px":n})}),T.each({Height:"height",Width:"width"},function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){T.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return J(this,function(t,n,i){var o;return g(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?T.css(t,n,s):T.style(t,n,i,s)},t,a?i:void 0,a)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.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)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){T.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=S,T.isFunction=h,T.isWindow=g,T.camelCase=te,T.type=x,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var tn=e.jQuery,nn=e.$;return T.noConflict=function(t){return e.$===T&&(e.$=nn),t&&e.jQuery===T&&(e.jQuery=tn),T},void 0===t&&(e.jQuery=e.$=T),T});
/*!
* Bootstrap v3.4.1 (https://getbootstrap.com/)
* Copyright 2011-2019 Twitter, Inc.
* Licensed under MIT
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),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='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function o(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 n(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(e).each(function(){var e=t(this),n=o(e),s={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",s)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var s=o(i),a=s.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var r={relatedTarget:this};if(s.trigger(e=t.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger(t.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=o(n),a=s.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&s.find(e).trigger("focus"),n.trigger("click");var r=s.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var l=r.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<r.length-1&&l++,~l||(l=0),r.eq(l).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var o=t(this),n=o.data("bs.dropdown");n||o.data("bs.dropdown",n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",e,i.prototype.toggle).on("keydown.bs.dropdown.data-api",e,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.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)).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);
/*!
* Chartist.js 0.11.4
* Copyright 2019 Gion Kunz
* Licensed under 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])s=n[r],e[r]="object"!=typeof s||null===s||s instanceof Array?s: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={"&":"&","<":"<",">":">",'"':""","'":"'"},t.serialize=function(e){return null==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||"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.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=2221e-19;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;function n(){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}t.Base=t.Class.extend({constructor:function(e,i,s,r,a){this.container=t.querySelector(e),this.data=i||{},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(n.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}),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 0.3
* Copyright 2013 Arwid Bancewicz (http://arwid.ca)
* Licensed under MIT
*/
!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 (https://github.com/makeusabrew/bootbox)
* Copyright 2011-2020 Nick Payne <nick@kurai.co.uk>
* Licensed under MIT (https://github.com/makeusabrew/bootbox/blob/master/LICENSE.md)
*/
!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'>×</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)
* Copyright 2013 Tim Schlechter
* Licensed under MIT (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 n(e,n){this.itemsArray=[],this.$element=t(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=n&&n.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(n)}function i(t,e){if("function"!=typeof t[e]){var n=t[e];t[e]=function(t){return t[n]}}}function a(t,e){if("function"!=typeof t[e]){var n=t[e];t[e]=function(){return n}}}n.prototype={constructor:n,add:function(e,n,i){var a=this,r=e;if("string"==typeof e&&(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 p=0;p<l.length;p++)this.add(l[p],!0);return void(n||a.pushVal())}}var u=a.options.itemValue(e),c=a.options.itemText(r),m=a.options.tagClass(e),h=a.options.itemTitle(e),f=t.grep(a.itemsArray,function(t){return a.options.itemValue(t)===u})[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:i});if(a.$element.trigger(d),!d.cancel){a.itemsArray.push(e);var g=a.$element.attr("id");/^\S+@\S+\.\S+$/.test(c)&&g&&g.match(/c-(.*?)-\d+/)&&(c=" <"+c+">");var v="";c.match(/^\s+<.*?>$/)&&(v='<span class="invisible">i</span>');var y=t('<span class="tag '+o(m)+(null!==h?'" title="'+h:"")+'">'+v+o(c)+'<span data-role="remove"></span></span>');if(y.data("item",e),a.findInputWrapper().before(y),y.after(" "),a.isSelect&&!t('option[value="'+encodeURIComponent(u)+'"]',a.$element)[0]){var $=t("<option selected>"+o(c)+"</option>");$.data("item",e),$.attr("value",u),a.$element.append($)}n||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:i}))}}}else if(a.options.onTagExists){var x=t(".tag",a.$container).filter(function(){return t(this).data("item")===f});a.options.onTagExists(e,x)}}}},remove:function(e,n,i){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:i});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)}n||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:i}))},removeAll:function(){var e=this;for(t(".tag",e.$container).remove(),t("option",e.$element).remove();e.itemsArray.length>0;)e.itemsArray.pop();e.pushVal()},refresh:function(){var e=this;t(".tag",e.$container).each(function(){var n=t(this),i=n.data("item"),a=e.options.itemValue(i),r=e.options.itemText(i),s=e.options.tagClass(i);(n.attr("class",null),n.addClass("tag "+o(s)),n.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=o(r),e.isSelect)&&t("option",e.$element).filter(function(){return t(this).data("item")===i}).attr("value",a)})},items:function(){return this.itemsArray},pushVal:function(){var e=this,n=t.map(e.items(),function(t){return e.options.itemValue(t).toString()});e.$element.val(n,!0).trigger("change")},build:function(n){var r=this;if(r.options=t.extend({},e,n),r.objectItems&&(r.options.freeInput=!1),i(r.options,"itemValue"),i(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,n){function i(t){for(var e=[],i=0;i<t.length;i++){var o=r.options.itemText(t[i]);a[o]=t[i],e.push(o)}n(e)}this.map={};var a=this.map,s=o.source(e);t.isFunction(s.success)?s.success(i):t.isFunction(s.then)?s.then(i):t.when(s).then(i)},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,p={},u=r.options.typeaheadjs;t.isArray(u)?(l=u[0],p=u[1]):p=u,r.$input.typeahead(l,p).on("typeahead:selected",t.proxy(function(t,e){p.valueKey?r.add(e[p.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 n=t(e.target),i=r.findInputWrapper();if(r.$element.attr("disabled"))r.$input.attr("disabled","disabled");else{switch(e.which){case 8:if(0===s(n[0])){var a=i.prev();a.length&&r.remove(a.data("item"))}break;case 46:if(0===s(n[0])){var o=i.next();o.length&&r.remove(o.data("item"))}break;case 37:var l=i.prev();0===n.val().length&&l[0]&&(l.before(i),n.focus());break;case 39:var p=i.next();0===n.val().length&&p[0]&&(p.after(i),n.focus())}var u=n.val().length;Math.ceil(u/5);n.attr("size",Math.max(this.inputSize,n.val().length))}},r)),r.$container.on("keypress","input",t.proxy(function(e){var n=t(e.target);if(r.$element.attr("disabled"))r.$input.attr("disabled","disabled");else{var i,a,o,s=n.val(),l=r.options.maxChars&&s.length>=r.options.maxChars;r.options.freeInput&&(i=e,a=r.options.confirmKeys,o=!1,t.each(a,function(t,e){if("number"==typeof e&&i.which===e)return o=!0,!1;if(i.which===e.which){var n=!e.hasOwnProperty("altKey")||i.altKey===e.altKey,a=!e.hasOwnProperty("shiftKey")||i.shiftKey===e.shiftKey,r=!e.hasOwnProperty("ctrlKey")||i.ctrlKey===e.ctrlKey;if(n&&a&&r)return o=!0,!1}}),o||l)&&(0!==s.length&&(r.add(l?s.substr(0,r.options.maxChars):s),n.val("")),!1===r.options.cancelConfirmKeysOnEmpty&&e.preventDefault());var p=n.val().length;Math.ceil(p/5);n.attr("size",Math.max(this.inputSize,n.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(){var t=this;t.$container.off("keypress","input"),t.$container.off("click","[role=remove]"),t.$container.remove(),t.$element.removeData("tagsinput"),t.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],n=this.$container[0];e&&e.parentNode!==n;)e=e.parentNode;return t(e)}},t.fn.tagsinput=function(e,i,a){var r=[];return this.each(function(){var o=t(this).data("tagsinput");if(o)if(e||i){if(void 0!==o[e]){if(3===o[e].length&&void 0!==a)var s=o[e](i,null,a);else s=o[e](i);void 0!==s&&r.push(s)}}else r.push(o);else o=new n(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=n;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 n=document.selection.createRange();n.moveStart("character",-t.value.length),e=n.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)
* Copyright 2019 Andrew Rowls
* 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.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"> </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;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),1===this.viewMode?(r=s.parent().find("span").index(s),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r)):(r=0,n=Number(s.text()),this.viewDate.setUTCFullYear(n)),this._trigger(g.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(a(n,r,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(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:"«",rightArrow:"»"},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:"清空"};
/*!
* Bootstrap File Input (https://github.com/grevory/bootstrap-file-input)
* Copyright 2013 Gregory Pike
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
!function(t){var e='<i class="fa fa-1_50x fa-fw fa-upload-cloud vertical-align-middle"></i> ';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})});var e="change.fiw";t("body").off(e),t("body").on(e,".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=$(this).attr("multiple")?null:e,n=theme_language("global_file_selected"),l=theme_language("global_files_selected"),s=$(this.files).map(function(t,e){return e.name}).get().join("\n");if(i){var f=this,p=(f&&f.files.length>0?f.files.length:"")+" "+(f&&f.files.length>0?1===f.files.length?a||n:l:theme_language("upload_initial_info"));t(this).siblings("span").html(p),t(this).attr("title",s);var r=i[1];f&&0!==f.files.length?r.removeClass("disabled"):r.addClass("disabled")}else{let i;if(a){const l="1 "+n;i=a||l,t(this).attr("title",a?l:e)}else{var o=this.files.length;i=o+" "+(o>1?l:n),t(this).attr("title",s)}t(this).parent().after('<span class="file-input-name">'+i+"</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.13.11 (http://datatables.net)
* Copyright 2008-2024 SpryMedia Ltd.
* Licensed under MIT (http://datatables.net/license)
*/
/* DataTables 1.13.11
* ©2008-2023 SpryMedia Ltd - datatables.net/license
*/
!function(t){"use strict";var e;"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?(e=require("jquery"),"undefined"==typeof window?module.exports=function(n,a){return n=n||window,a=a||e(n),t(a,n,n.document)}:module.exports=t(e,window,window.document)):window.DataTable=t(jQuery,window,document)}(function(t,e,n,a){"use strict";function r(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function o(t,e,n){var a=typeof t,r="string"==a;return"number"==a||"bigint"==a||!!S(t)||(e&&r&&(t=w(t,e)),n&&r&&(t=t.replace(x,"")),!isNaN(parseFloat(t))&&isFinite(t))}function l(t,e,n){var a;return!!S(t)||(S(a=t)||"string"==typeof a)&&!!o(t.replace(b,"").replace(/<script/i,""),e,n)||null}function i(t,e,n,r){var o=[],l=0,i=e.length;if(r!==a)for(;l<i;l++)t[e[l]][n]&&o.push(t[e[l]][n][r]);else for(;l<i;l++)o.push(t[e[l]][n]);return o}function s(t,e){var n,r=[];e===a?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)r.push(o);return r}function u(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e}function c(t,e){return-1!==this.indexOf(t,e=e===a?0:e)}var d,f,p,h=function(e,n){if(h.factory(e,n))return h;if(this instanceof h)return t(e).DataTable(n);n=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 Ce(t?le(this[d.iApiIndex]):this)},this.fnAddData=function(e,n){var r=this.api(!0);e=(Array.isArray(e)&&(Array.isArray(e[0])||t.isPlainObject(e[0]))?r.rows:r.row).add(e);return 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||Wt(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],l=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,l),n!==a&&!n||r.draw(),l},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,l){var i=this.api(!0);(null===e||e===a?i:i.column(e)).search(t,n,r,l),i.draw()},this.fnGetData=function(t,e){var n,r=this.api(!0);return t!==a?(n=t.nodeName?t.nodeName.toLowerCase():"",e!==a||"td"==n||"th"==n?r.cell(t,e).data():r.row(t).data()||null):r.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?[(n=e.cell(t).index()).row,n.columnVisible,n.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 le(this[d.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 l=this.api(!0);return(n===a||null===n?l.row(e):l.cell(e,n)).data(t),o!==a&&!o||l.columns.adjust(),r!==a&&!r||l.draw(),0},this.fnVersionCheck=d.fnVersionCheck;var r,o=this,l=n===a,i=this.length;for(r in l&&(n={}),this.oApi=this.internal=d.internal,h.ext.internal)r&&(this[r]=Ve(r));return this.each(function(){var e=1<i?ue({},n,!0):n,r=0,s=this.getAttribute("id"),u=!1,c=h.defaults,d=t(this);if("table"!=this.nodeName.toLowerCase())ie(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{k(c),B(c.column),T(c,c,!0),T(c.column,c.column,!0),T(c,t.extend(e,d.data()),!0);for(var f=h.settings,p=(r=0,f.length);r<p;r++){var m=f[r];if(m.nTable==this||m.nTHead&&m.nTHead.parentNode==this||m.nTFoot&&m.nTFoot.parentNode==this){var g=(e.bRetrieve!==a?e:c).bRetrieve,b=(e.bDestroy!==a?e:c).bDestroy;if(l||g)return m.oInstance;if(b){m.oInstance.fnDestroy();break}return void ie(m,0,"Cannot reinitialise DataTable",3)}if(m.sTableId==this.id){f.splice(r,1);break}}null!==s&&""!==s||(s="DataTables_Table_"+h.ext._unique++,this.id=s);var y,v,x=t.extend(!0,{},h.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:s,sTableId:s}),S=(x.nTable=this,x.oApi=o.internal,x.oInit=e,f.push(x),x.oInstance=1===o.length?o:d.dataTable(),k(e),F(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=(Array.isArray(e.aLengthMenu[0])?e.aLengthMenu[0]:e.aLengthMenu)[0]),e=ue(t.extend(!0,{},c),e),se(x.oFeatures,e,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),se(x,e,["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"]]),se(x.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),se(x.oLanguage,e,"fnInfoCallback"),de(x,"aoDrawCallback",e.fnDrawCallback,"user"),de(x,"aoServerParams",e.fnServerParams,"user"),de(x,"aoStateSaveParams",e.fnStateSaveParams,"user"),de(x,"aoStateLoadParams",e.fnStateLoadParams,"user"),de(x,"aoStateLoaded",e.fnStateLoaded,"user"),de(x,"aoRowCallback",e.fnRowCallback,"user"),de(x,"aoRowCreatedCallback",e.fnCreatedRow,"user"),de(x,"aoHeaderCallback",e.fnHeaderCallback,"user"),de(x,"aoFooterCallback",e.fnFooterCallback,"user"),de(x,"aoInitComplete",e.fnInitComplete,"user"),de(x,"aoPreDrawCallback",e.fnPreDrawCallback,"user"),x.rowIdFn=G(e.rowId),L(x),x.oClasses),w=(t.extend(S,h.ext.classes,e.oClasses),d.addClass(S.sTable),x.iInitDisplayStart===a&&(x.iInitDisplayStart=e.iDisplayStart,x._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading&&(x.bDeferLoading=!0,s=Array.isArray(e.iDeferLoading),x._iRecordsDisplay=s?e.iDeferLoading[0]:e.iDeferLoading,x._iRecordsTotal=s?e.iDeferLoading[1]:e.iDeferLoading),x.oLanguage),I=(s=(t.extend(!0,w,e.oLanguage),w.sUrl?(t.ajax({dataType:"json",url:w.sUrl,success:function(e){T(c.oLanguage,e),F(e),t.extend(!0,w,e,x.oInit.oLanguage),fe(x,null,"i18n",[x]),Lt(x)},error:function(){Lt(x)}}),u=!0):fe(x,null,"i18n",[x]),null===e.asStripeClasses&&(x.asStripeClasses=[S.sStripeOdd,S.sStripeEven]),x.asStripeClasses),d.children("tbody").find("tr").eq(0)),D=(-1!==t.inArray(!0,t.map(s,function(t,e){return I.hasClass(t)}))&&(t("tbody tr",this).removeClass(s.join(" ")),x.asDestroyStripes=s.slice()),[]);if(0!==(s=this.getElementsByTagName("thead")).length&&(ct(x.aoHeader,s[0]),D=dt(x)),null===e.aoColumns)for(y=[],r=0,p=D.length;r<p;r++)y.push(null);else y=e.aoColumns;for(r=0,p=y.length;r<p;r++)P(x,D?D[r]:null);U(x,e.aoColumnDefs,y,function(t,e){R(x,t,e)}),I.length&&(v=function(t,e){return null!==t.getAttribute("data-"+e)?e:null},t(I[0]).children("th, td").each(function(t,e){var n,r=x.aoColumns[t];r||ie(x,0,"Incorrect column count",18),r.mData===t&&(n=v(e,"sort")||v(e,"order"),e=v(e,"filter")||v(e,"search"),null===n&&null===e||(r.mData={_:t+".display",sort:null!==n?t+".@data-"+n:a,type:null!==n?t+".@data-"+n:a,filter:null!==e?t+".@data-"+e:a},r._isArrayHost=!0,R(x,t)))}));var C=x.oFeatures;s=function(){if(e.aaSorting===a){var n=x.aaSorting;for(r=0,p=n.length;r<p;r++)n[r][1]=x.aoColumns[r].asSorting[0]}ee(x),C.bSort&&de(x,"aoDrawCallback",function(){var e,n;x.bSorted&&(e=Gt(x),n={},t.each(e,function(t,e){n[e.src]=e.dir}),fe(x,null,"order",[x,e,n]),Zt(x))}),de(x,"aoDrawCallback",function(){(x.bSorted||"ssp"===me(x)||C.bDeferRender)&&ee(x)},"sc");var o,l=d.children("caption").each(function(){this._captionSide=t(this).css("caption-side")}),i=(0===(o=d.children("thead")).length&&(o=t("<thead/>").appendTo(d)),x.nTHead=o[0],d.children("tbody"));if(0===(o=0===(o=(0===i.length&&(i=t("<tbody/>").insertAfter(o)),x.nTBody=i[0],d.children("tfoot"))).length&&0<l.length&&(""!==x.oScroll.sX||""!==x.oScroll.sY)?t("<tfoot/>").appendTo(d):o).length||0===o.children().length?d.addClass(S.sNoFooter):0<o.length&&(x.nTFoot=o[0],ct(x.aoFooter,x.nTFoot)),e.aaData)for(r=0;r<e.aaData.length;r++)z(x,e.aaData[r]);else!x.bDeferLoading&&"dom"!=me(x)||q(x,t(x.nTBody).children("tr"));x.aiDisplay=x.aiDisplayMaster.slice(),!(x.bInitialised=!0)===u&&Lt(x)};de(x,"aoDrawCallback",ae,"state_save"),e.bStateSave?(C.bStateSave=!0,re(x,0,s)):s()}}),o=null,this},m={},g=/[\r\n\u2028]/g,b=/<.*?>/g,y=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,v=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),x=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,S=function(t){return!t||!0===t||"-"===t},w=function(t,e){return m[e]||(m[e]=new RegExp(It(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(m[e],"."):t},I=function(t,e,n){var r=[],o=0,l=t.length;if(n!==a)for(;o<l;o++)t[o]&&t[o][e]&&r.push(t[o][e][n]);else for(;o<l;o++)t[o]&&r.push(t[o][e]);return r},D=function(t){if(function(t){if(!(t.length<2))for(var e=t.slice().sort(),n=e[0],a=1,r=e.length;a<r;a++){if(e[a]===n)return!1;n=e[a]}return!0}(t))return t.slice();var e,n,a,r=[],o=t.length,l=0;t:for(n=0;n<o;n++){for(e=t[n],a=0;a<l;a++)if(r[a]===e)continue t;r.push(e),l++}return r},C=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)C(t,e[n]);else t.push(e);return t};function _(e){var n,a,r={};t.each(e,function(t,o){(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()),r[a]=t,"o"===n[1])&&_(e[t])}),e._hungarianMap=r}function T(e,n,r){var o;e._hungarianMap||_(e),t.each(n,function(l,i){(o=e._hungarianMap[l])===a||!r&&n[o]!==a||("o"===o.charAt(0)?(n[o]||(n[o]={}),t.extend(!0,n[o],n[l]),T(e[o],n[o],r)):n[o]=n[l])})}function F(t){var e,n=h.defaults.oLanguage,a=n.sDecimal;a&&Re(a),t&&(e=t.sZeroRecords,!t.sEmptyTable&&e&&"No data available in table"===n.sEmptyTable&&se(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&e&&"Loading..."===n.sLoadingRecords&&se(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),e=t.sDecimal)&&a!==e&&Re(e)}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.includes||(Array.prototype.includes=c),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=c),h.util={throttle:function(t,e){var n,r,o=e!==a?e:200;return function(){var e=this,l=+new Date,i=arguments;n&&l<n+o?(clearTimeout(r),r=setTimeout(function(){n=a,t.apply(e,i)},o)):(n=l,t.apply(e,i))}},escapeRegex:function(t){return t.replace(v,"\\$1")},set:function(e){var n;return t.isPlainObject(e)?h.util.set(e._):null===e?function(){}:"function"==typeof e?function(t,n,a){e(t,"set",n,a)}:"string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("(")?function(t,n){t[e]=n}:(n=function(t,e,r){for(var o,l,i,s,u=K(r),c=(r=u[u.length-1],0),d=u.length-1;c<d;c++){if("__proto__"===u[c]||"constructor"===u[c])throw new Error("Cannot set prototype values");if(o=u[c].match($),l=u[c].match(J),o){if(u[c]=u[c].replace($,""),t[u[c]]=[],(o=u.slice()).splice(0,c+1),s=o.join("."),Array.isArray(e))for(var f=0,p=e.length;f<p;f++)n(i={},e[f],s),t[u[c]].push(i);else t[u[c]]=e;return}l&&(u[c]=u[c].replace(J,""),t=t[u[c]](e)),null!==t[u[c]]&&t[u[c]]!==a||(t[u[c]]={}),t=t[u[c]]}r.match(J)?t[r.replace(J,"")](e):t[r.replace($,"")]=e},function(t,a){return n(t,a,e)})},get:function(e){var n,r;return t.isPlainObject(e)?(n={},t.each(e,function(t,e){e&&(n[t]=h.util.get(e))}),function(t,e,r,o){var l=n[e]||n._;return l!==a?l(t,e,r,o):t}):null===e?function(t){return t}:"function"==typeof e?function(t,n,a,r){return e(t,n,a,r)}:"string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("(")?function(t,n){return t[e]}:(r=function(t,e,n){var o,l,i;if(""!==n)for(var s=K(n),u=0,c=s.length;u<c;u++){if(p=s[u].match($),o=s[u].match(J),p){if(s[u]=s[u].replace($,""),""!==s[u]&&(t=t[s[u]]),l=[],s.splice(0,u+1),i=s.join("."),Array.isArray(t))for(var d=0,f=t.length;d<f;d++)l.push(r(t[d],e,i));var p=p[0].substring(1,p[0].length-1);t=""===p?l:l.join(p);break}if(o)s[u]=s[u].replace(J,""),t=t[s[u]]();else{if(null===t||null===t[s[u]])return null;if(t===a||t[s[u]]===a)return a;t=t[s[u]]}}return t},function(t,n){return r(t,n,e)})}};var A=function(t,e,n){t[e]!==a&&(t[n]=t[e])};function k(t){A(t,"ordering","bSort"),A(t,"orderMulti","bSortMulti"),A(t,"orderClasses","bSortClasses"),A(t,"orderCellsTop","bSortCellsTop"),A(t,"order","aaSorting"),A(t,"orderFixed","aaSortingFixed"),A(t,"paging","bPaginate"),A(t,"pagingType","sPaginationType"),A(t,"pageLength","iDisplayLength"),A(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,a=e.length;n<a;n++)e[n]&&T(h.models.oSearch,e[n])}function B(t){A(t,"orderable","bSortable"),A(t,"orderData","aDataSort"),A(t,"orderSequence","asSorting"),A(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function L(n){var a,r,o,l;h.__browser||(h.__browser=a={},l=(o=(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")).children()).children(),a.barWidth=o[0].offsetWidth-o[0].clientWidth,a.bScrollOversize=100===l[0].offsetWidth&&100!==o[0].clientWidth,a.bScrollbarLeft=1!==Math.round(l.offset().left),a.bBounding=!!r[0].getBoundingClientRect().width,r.remove()),t.extend(n.oBrowser,h.__browser),n.oScroll.iBarWidth=h.__browser.barWidth}function N(t,e,n,r,o,l){var i,s=r,u=!1;for(n!==a&&(i=n,u=!0);s!==o;)t.hasOwnProperty(s)&&(i=u?e(i,t[s],s,t):t[s],u=!0,s+=l);return i}function P(e,a){var r=h.defaults.column,o=e.aoColumns.length;r=t.extend({},h.models.oColumn,r,{nTh:a||n.createElement("th"),sTitle:r.sTitle||(a?a.innerHTML:""),aDataSort:r.aDataSort||[o],mData:r.mData||o,idx:o});(r=(e.aoColumns.push(r),e.aoPreSearchCols))[o]=t.extend({},h.models.oSearch,r[o]),R(e,o,t(a).data())}function R(e,n,r){function o(t){return"string"==typeof t&&-1!==t.indexOf("@")}n=e.aoColumns[n];var l=e.oClasses,i=t(n.nTh),s=(!n.sWidthOrig&&(n.sWidthOrig=i.attr("width")||null,d=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(n.sWidthOrig=d[1]),r!==a&&null!==r&&(B(r),T(h.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&&i.addClass(r.sClass),d=n.sClass,t.extend(n,r),se(n,r,"sWidth","sWidthOrig"),d!==n.sClass&&(n.sClass=d+" "+n.sClass),r.iDataSort!==a&&(n.aDataSort=[r.iDataSort]),se(n,r,"aDataSort"),n.ariaTitle||(n.ariaTitle=i.attr("aria-label"))),n.mData),u=G(s),c=n.mRender?G(n.mRender):null,d=(n._bAttrSrc=t.isPlainObject(s)&&(o(s.sort)||o(s.type)||o(s.filter)),n._setter=null,n.fnGetData=function(t,e,n){var r=u(t,e,a,n);return c&&e?c(r,e,t,n):r},n.fnSetData=function(t,e,n){return Y(s)(t,e,n)},"number"==typeof s||n._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,i.addClass(l.sSortableNone)),-1!==t.inArray("asc",n.asSorting));r=-1!==t.inArray("desc",n.asSorting);n.bSortable&&(d||r)?d&&!r?(n.sSortingClass=l.sSortableAsc,n.sSortingClassJUI=l.sSortJUIAscAllowed):!d&&r?(n.sSortingClass=l.sSortableDesc,n.sSortingClassJUI=l.sSortJUIDescAllowed):(n.sSortingClass=l.sSortable,n.sSortingClassJUI=l.sSortJUI):(n.sSortingClass=l.sSortableNone,n.sSortingClassJUI="")}function j(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;qt(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||Wt(t),fe(t,null,"column-sizing",[t])}function H(t,e){return"number"==typeof(t=M(t,"bVisible"))[e]?t[e]:null}function O(e,n){return e=M(e,"bVisible"),-1!==(n=t.inArray(n,e))?n:null}function E(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 W(t){for(var e,n,r,o,l,i,s,u=t.aoColumns,c=t.aoData,d=h.ext.type.detect,f=0,p=u.length;f<p;f++)if(s=[],!(l=u[f]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(e=0,n=d.length;e<n;e++){for(r=0,o=c.length;r<o&&(s[r]===a&&(s[r]=V(t,r,f,"type")),(i=d[e](s[r],t))||e===d.length-1)&&("html"!==i||S(s[r]));r++);if(i){l.sType=i;break}}l.sType||(l.sType="string")}}function U(e,n,r,o){var l,i,s,u,c=e.aoColumns;if(n)for(l=n.length-1;0<=l;l--)for(var d,f=(d=n[l]).target!==a?d.target:d.targets!==a?d.targets:d.aTargets,p=0,h=(f=Array.isArray(f)?f:[f]).length;p<h;p++)if("number"==typeof f[p]&&0<=f[p]){for(;c.length<=f[p];)P(e);o(f[p],d)}else if("number"==typeof f[p]&&f[p]<0)o(c.length+f[p],d);else if("string"==typeof f[p])for(s=0,u=c.length;s<u;s++)"_all"!=f[p]&&!t(c[s].nTh).hasClass(f[p])||o(s,d);if(r)for(l=0,i=r.length;l<i;l++)o(l,r[l])}function z(e,n,r,o){for(var l=e.aoData.length,i=t.extend(!0,{},h.models.oRow,{src:r?"dom":"data",idx:l}),s=(i._aData=n,e.aoData.push(i),e.aoColumns),u=0,c=s.length;u<c;u++)s[u].sType=null;return e.aiDisplayMaster.push(l),(n=e.rowIdFn(n))!==a&&(e.aIds[n]=i),!r&&e.oFeatures.bDeferRender||at(e,l,r,o),l}function q(e,n){var a;return(n=n instanceof t?n:t(n)).map(function(t,n){return a=nt(e,n),z(e,a.data,n,a.cells)})}function V(t,e,n,r){"search"===r?r="filter":"order"===r&&(r="sort");var o=t.iDraw,l=t.aoColumns[n],i=t.aoData[e]._aData,s=l.sDefaultContent,u=l.fnGetData(i,r,{settings:t,row:e,col:n});if(u===a)return t.iDrawError!=o&&null===s&&(ie(t,0,"Requested unknown parameter "+("function"==typeof l.mData?"{function}":"'"+l.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),s;if(u!==i&&null!==u||null===s||r===a){if("function"==typeof u)return u.call(i)}else u=s;return null===u&&"display"===r?"":"filter"===r&&(e=h.ext.type.search)[l.sType]?e[l.sType](u):u}function X(t,e,n,a){var r=t.aoColumns[n],o=t.aoData[e]._aData;r.fnSetData(o,a,{settings:t,row:e,col:n})}var $=/\[.*?\]$/,J=/\(\)$/;function K(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}var G=h.util.get,Y=h.util.set;function Z(t){return I(t.aoData,"_aData")}function Q(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function tt(t,e,n){for(var r=-1,o=0,l=t.length;o<l;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&n===a&&t.splice(r,1)}function et(t,e,n,r){function o(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=V(t,e,a,"display")}var l,i,s=t.aoData[e];if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var u=s.anCells;if(u)if(r!==a)o(u[r],r);else for(l=0,i=u.length;l<i;l++)o(u[l],l)}else s._aData=nt(t,s,r,r===a?a:s._aData).data;s._aSortData=null,s._aFilterData=null;var c=t.aoColumns;if(r!==a)c[r].sType=null;else{for(l=0,i=c.length;l<i;l++)c[l].sType=null;rt(t,s)}}function nt(t,e,n,r){function o(t,e){var n;"string"==typeof t&&-1!==(n=t.indexOf("@"))&&(n=t.substring(n+1),Y(t)(r,e.getAttribute(n)))}function l(t){n!==a&&n!==f||(s=p[f],u=t.innerHTML.trim(),s&&s._bAttrSrc?(Y(s.mData._)(r,u),o(s.mData.sort,t),o(s.mData.type,t),o(s.mData.filter,t)):h?(s._setter||(s._setter=Y(s.mData)),s._setter(r,u)):r[f]=u),f++}var i,s,u,c=[],d=e.firstChild,f=0,p=t.aoColumns,h=t._rowReadObject;if(r=r!==a?r:h?{}:[],d)for(;d;)"TD"!=(i=d.nodeName.toUpperCase())&&"TH"!=i||(l(d),c.push(d)),d=d.nextSibling;else for(var m=0,g=(c=e.anCells).length;m<g;m++)l(c[m]);return(e=e.firstChild?e:e.nTr)&&(e=e.getAttribute("id"))&&Y(t.rowId)(r,e),{data:r,cells:c}}function at(e,a,r,o){var l,i,s,u,c,d,f=e.aoData[a],p=f._aData,h=[];if(null===f.nTr){for(l=r||n.createElement("tr"),f.nTr=l,f.anCells=h,l._DT_RowIndex=a,rt(e,f),u=0,c=e.aoColumns.length;u<c;u++)s=e.aoColumns[u],(i=(d=!r)?n.createElement(s.sCellType):o[u])||ie(e,0,"Incorrect column count",18),i._DT_CellIndex={row:a,column:u},h.push(i),!d&&(!s.mRender&&s.mData===u||t.isPlainObject(s.mData)&&s.mData._===u+".display")||(i.innerHTML=V(e,a,u,"display")),s.sClass&&(i.className+=" "+s.sClass),s.bVisible&&!r?l.appendChild(i):!s.bVisible&&r&&i.parentNode.removeChild(i),s.fnCreatedCell&&s.fnCreatedCell.call(e.oInstance,i,V(e,a,u),p,a,u);fe(e,"aoRowCreatedCallback",null,[l,p,a,h])}}function rt(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?D(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 ot(e){var n,a,r,o=e.nTHead,l=e.nTFoot,i=0===t("th, td",o).length,s=e.oClasses,u=e.aoColumns;for(i&&(a=t("<tr/>").appendTo(o)),d=0,f=u.length;d<f;d++)r=u[d],n=t(r.nTh).addClass(r.sClass),i&&n.appendTo(a),e.oFeatures.bSort&&(n.addClass(r.sSortingClass),!1!==r.bSortable)&&(n.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),te(e,r.nTh,d)),r.sTitle!=n[0].innerHTML&&n.html(r.sTitle),he(e,"header")(e,n,r,s);if(i&&ct(e.aoHeader,o),t(o).children("tr").children("th, td").addClass(s.sHeaderTH),t(l).children("tr").children("th, td").addClass(s.sFooterTH),null!==l)for(var c=e.aoFooter[0],d=0,f=c.length;d<f;d++)(r=u[d])?(r.nTf=c[d].cell,r.sClass&&t(r.nTf).addClass(r.sClass)):ie(e,0,"Incorrect column count",18)}function lt(e,n,r){var o,l,i,s,u,c,d,f,p,h=[],m=[],g=e.aoColumns.length;if(n){for(r===a&&(r=!1),o=0,l=n.length;o<l;o++){for(h[o]=n[o].slice(),h[o].nTr=n[o].nTr,i=g-1;0<=i;i--)e.aoColumns[i].bVisible||r||h[o].splice(i,1);m.push([])}for(o=0,l=h.length;o<l;o++){if(d=h[o].nTr)for(;c=d.firstChild;)d.removeChild(c);for(i=0,s=h[o].length;i<s;i++)if(p=f=1,m[o][i]===a){for(d.appendChild(h[o][i].cell),m[o][i]=1;h[o+f]!==a&&h[o][i].cell==h[o+f][i].cell;)m[o+f][i]=1,f++;for(;h[o][i+p]!==a&&h[o][i].cell==h[o][i+p].cell;){for(u=0;u<f;u++)m[o+u][i+p]=1;p++}t(h[o][i].cell).attr("rowspan",f).attr("colspan",p)}}}}function it(e,n){r="ssp"==me(c=e),(u=c.iInitDisplayStart)!==a&&-1!==u&&(c._iDisplayStart=!r&&u>=c.fnRecordsDisplay()?0:u,c.iInitDisplayStart=-1);var r=fe(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,r))Et(e,!1);else{var o=[],l=0,i=e.asStripeClasses,s=i.length,u=e.oLanguage,c="ssp"==me(e),d=e.aiDisplay,f=(r=e._iDisplayStart,e.fnDisplayEnd());if(e.bDrawing=!0,e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,Et(e,!1);else if(c){if(!e.bDestroying&&!n)return void pt(e)}else e.iDraw++;if(0!==d.length)for(var p=c?e.aoData.length:f,h=c?0:r;h<p;h++){var m,g=d[h],b=e.aoData[g],y=(null===b.nTr&&at(e,g),b.nTr);0!==s&&(m=i[l%s],b._sRowStripe!=m)&&(t(y).removeClass(b._sRowStripe).addClass(m),b._sRowStripe=m),fe(e,"aoRowCallback",null,[y,b._aData,l,h,g]),o.push(y),l++}else n=u.sZeroRecords,1==e.iDraw&&"ajax"==me(e)?n=u.sLoadingRecords:u.sEmptyTable&&0===e.fnRecordsTotal()&&(n=u.sEmptyTable),o[0]=t("<tr/>",{class:s?i[0]:""}).append(t("<td />",{valign:"top",colSpan:E(e),class:e.oClasses.sRowEmpty}).html(n))[0];fe(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],Z(e),r,f,d]),fe(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],Z(e),r,f,d]),(c=t(e.nTBody)).children().detach(),c.append(t(o)),fe(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function st(t,e){var n=(a=t.oFeatures).bSort,a=a.bFilter;n&&Yt(t),a?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,it(t),t._drawHold=!1}function ut(e){for(var n,a,r,o,l,i,s,u=e.oClasses,c=t(e.nTable),d=(c=t("<div/>").insertBefore(c),e.oFeatures),f=t("<div/>",{id:e.sTableId+"_wrapper",class:u.sWrapper+(e.nTFoot?"":" "+u.sNoFooter)}),p=(e.nHolding=c[0],e.nTableWrapper=f[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),m=0;m<p.length;m++){if(n=null,"<"==(a=p[m])){if(r=t("<div/>")[0],"'"==(o=p[m+1])||'"'==o){for(l="",i=2;p[m+i]!=o;)l+=p[m+i],i++;"H"==l?l=u.sJUIHeader:"F"==l&&(l=u.sJUIFooter),-1!=l.indexOf(".")?(s=l.split("."),r.id=s[0].substr(1,s[0].length-1),r.className=s[1]):"#"==l.charAt(0)?r.id=l.substr(1,l.length-1):r.className=l,m+=i}f.append(r),f=t(r)}else if(">"==a)f=f.parent();else if("l"==a&&d.bPaginate&&d.bLengthChange)n=Rt(e);else if("f"==a&&d.bFilter)n=bt(e);else if("r"==a&&d.bProcessing)n=Ot(e);else if("t"==a)n=Mt(e);else if("i"==a&&d.bInfo)n=At(e);else if("p"==a&&d.bPaginate)n=jt(e);else if(0!==h.ext.feature.length)for(var g=h.ext.feature,b=0,y=g.length;b<y;b++)if(a==g[b].cFeature){n=g[b].fnInit(e);break}n&&((s=e.aanFeatures)[a]||(s[a]=[]),s[a].push(n),f.append(n))}c.replaceWith(f),e.nHolding=null}function ct(e,n){var a,r,o,l,i,s,u,c,d,f,p=t(n).children("tr");for(e.splice(0,e.length),o=0,s=p.length;o<s;o++)e.push([]);for(o=0,s=p.length;o<s;o++)for(r=(a=p[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(c=(c=+r.getAttribute("colspan"))&&0!=c&&1!=c?c:1,d=(d=+r.getAttribute("rowspan"))&&0!=d&&1!=d?d:1,u=function(t,e,n){for(var a=t[e];a[n];)n++;return n}(e,o,0),f=1==c,i=0;i<c;i++)for(l=0;l<d;l++)e[o+l][u+i]={cell:r,unique:f},e[o+l].nTr=a;r=r.nextSibling}}function dt(t,e,n){var a=[];n||(n=t.aoHeader,e&&ct(n=[],e));for(var r=0,o=n.length;r<o;r++)for(var l=0,i=n[r].length;l<i;l++)!n[r][l].unique||a[l]&&t.bSortCellsTop||(a[l]=n[r][l].cell);return a}function ft(e,n,a){function r(t){var n=e.jqXHR?e.jqXHR.status:null;(null===t||"number"==typeof n&&204==n)&>(e,t={},[]),(n=t.error||t.sError)&&ie(e,0,n),e.json=t,fe(e,null,"xhr",[e,t,e.jqXHR]),a(t)}fe(e,"aoServerParams","serverParams",[n]),n&&Array.isArray(n)&&(o={},l=/(.*?)\[\]$/,t.each(n,function(t,e){var n=e.name.match(l);n?(n=n[0],o[n]||(o[n]=[]),o[n].push(e.value)):o[e.name]=e.value}),n=o);var o,l,i,s=e.ajax,u=e.oInstance,c=(t.isPlainObject(s)&&s.data&&(c="function"==typeof(i=s.data)?i(n,e):i,n="function"==typeof i&&c?c:t.extend(!0,n,c),delete s.data),{data:n,success:r,dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,a,r){var o=fe(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,o)&&("parsererror"==a?ie(e,0,"Invalid JSON response",1):4===n.readyState&&ie(e,0,"Ajax error",7)),Et(e,!1)}});e.oAjaxData=n,fe(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(u,e.sAjaxSource,t.map(n,function(t,e){return{name:e,value:t}}),r,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(c,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(u,n,r,e):(e.jqXHR=t.ajax(t.extend(c,s)),s.data=i)}function pt(t){t.iDraw++,Et(t,!0);var e=t._drawHold;ft(t,ht(t),function(n){t._drawHold=e,mt(t,n),t._drawHold=!1})}function ht(e){for(var n,a,r,o=e.aoColumns,l=o.length,i=e.oFeatures,s=e.oPreviousSearch,u=e.aoPreSearchCols,c=[],d=Gt(e),f=e._iDisplayStart,p=!1!==i.bPaginate?e._iDisplayLength:-1,m=function(t,e){c.push({name:t,value:e})},g=(m("sEcho",e.iDraw),m("iColumns",l),m("sColumns",I(o,"sName").join(",")),m("iDisplayStart",f),m("iDisplayLength",p),{draw:e.iDraw,columns:[],order:[],start:f,length:p,search:{value:s.sSearch,regex:s.bRegex}}),b=0;b<l;b++)a=o[b],r=u[b],n="function"==typeof a.mData?"function":a.mData,g.columns.push({data:n,name:a.sName,searchable:a.bSearchable,orderable:a.bSortable,search:{value:r.sSearch,regex:r.bRegex}}),m("mDataProp_"+b,n),i.bFilter&&(m("sSearch_"+b,r.sSearch),m("bRegex_"+b,r.bRegex),m("bSearchable_"+b,a.bSearchable)),i.bSort&&m("bSortable_"+b,a.bSortable);return i.bFilter&&(m("sSearch",s.sSearch),m("bRegex",s.bRegex)),i.bSort&&(t.each(d,function(t,e){g.order.push({column:e.col,dir:e.dir}),m("iSortCol_"+t,e.col),m("sSortDir_"+t,e.dir)}),m("iSortingCols",d.length)),null===(f=h.ext.legacy.ajax)?e.sAjaxSource?c:g:f?c:g}function mt(t,e){function n(t,n){return e[t]!==a?e[t]:e[n]}var r=gt(t,e),o=n("sEcho","draw"),l=n("iTotalRecords","recordsTotal"),i=n("iTotalDisplayRecords","recordsFiltered");if(o!==a){if(+o<t.iDraw)return;t.iDraw=+o}r=r||[],Q(t),t._iRecordsTotal=parseInt(l,10),t._iRecordsDisplay=parseInt(i,10);for(var s=0,u=r.length;s<u;s++)z(t,r[s]);t.aiDisplay=t.aiDisplayMaster.slice(),it(t,!0),t._bInitComplete||Nt(t,e),Et(t,!1)}function gt(e,n,r){if(e=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==a?e.ajax.dataSrc:e.sAjaxDataProp,!r)return"data"===e?n.aaData||n[e]:""!==e?G(e)(n):n;Y(e)(n,r)}function bt(e){function a(t){s.f;var n=this.value||"";i.return&&"Enter"!==t.key||n!=i.sSearch&&(yt(e,{sSearch:n,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive,return:i.return}),e._iDisplayStart=0,it(e))}var r=e.oClasses,o=e.sTableId,l=e.oLanguage,i=e.oPreviousSearch,s=e.aanFeatures,u='<input type="search" class="'+r.sFilterInput+'"/>',c=(c=l.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",u):c+u,d=(u=t("<div/>",{id:s.f?null:o+"_filter",class:r.sFilter}).append(t("<label/>").append(c)),r=null!==e.searchDelay?e.searchDelay:"ssp"===me(e)?400:0,t("input",u).val(i.sSearch).attr("placeholder",l.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",r?Vt(a,r):a).on("mouseup.DT",function(t){setTimeout(function(){a.call(d[0],t)},10)}).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",o));return t(e.nTable).on("search.dt.DT",function(t,a){if(e===a)try{d[0]!==n.activeElement&&d.val(i.sSearch)}catch(t){}}),u[0]}function yt(t,e,n){function r(t){l.sSearch=t.sSearch,l.bRegex=t.bRegex,l.bSmart=t.bSmart,l.bCaseInsensitive=t.bCaseInsensitive,l.return=t.return}function o(t){return t.bEscapeRegex!==a?!t.bEscapeRegex:t.bRegex}var l=t.oPreviousSearch,i=t.aoPreSearchCols;if(W(t),"ssp"!=me(t)){St(t,e.sSearch,n,o(e),e.bSmart,e.bCaseInsensitive),r(e);for(var s=0;s<i.length;s++)xt(t,i[s].sSearch,s,o(i[s]),i[s].bSmart,i[s].bCaseInsensitive);vt(t)}else r(e);t.bFiltered=!0,fe(t,null,"search",[t])}function vt(e){for(var n,a,r=h.ext.search,o=e.aiDisplay,l=0,i=r.length;l<i;l++){for(var s=[],u=0,c=o.length;u<c;u++)a=o[u],n=e.aoData[a],r[l](e,n._aFilterData,a,n._aData,u)&&s.push(a);o.length=0,t.merge(o,s)}}function xt(t,e,n,a,r,o){if(""!==e){for(var l,i=[],s=t.aiDisplay,u=wt(e,a,r,o),c=0;c<s.length;c++)l=t.aoData[s[c]]._aFilterData[n],u.test(l)&&i.push(s[c]);t.aiDisplay=i}}function St(t,e,n,a,r,o){var l,i,s,u=wt(e,a,r,o),c=(r=t.oPreviousSearch.sSearch,o=t.aiDisplayMaster,[]);if(0!==h.ext.search.length&&(n=!0),i=_t(t),e.length<=0)t.aiDisplay=o.slice();else{for((i||n||a||r.length>e.length||0!==e.indexOf(r)||t.bSorted)&&(t.aiDisplay=o.slice()),l=t.aiDisplay,s=0;s<l.length;s++)u.test(t.aoData[l[s]]._sFilterRow)&&c.push(l[s]);t.aiDisplay=c}}function wt(e,n,a,r){return e=n?e:It(e),a&&(e="^(?=.*?"+t.map(e.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],function(t){var e;return'"'===t.charAt(0)?t=(e=t.match(/^"(.*)"$/))?e[1]:t:"“"===t.charAt(0)&&(t=(e=t.match(/^\u201C(.*)\u201D$/))?e[1]:t),t.replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(e,r?"i":"")}var It=h.util.escapeRegex,Dt=t("<div>")[0],Ct=Dt.textContent!==a;function _t(t){for(var e,n,a,r,o,l=t.aoColumns,i=!1,s=0,u=t.aoData.length;s<u;s++)if(!(o=t.aoData[s])._aFilterData){for(a=[],e=0,n=l.length;e<n;e++)l[e].bSearchable?"string"!=typeof(r=null===(r=V(t,s,e,"filter"))?"":r)&&r.toString&&(r=r.toString()):r="",r.indexOf&&-1!==r.indexOf("&")&&(Dt.innerHTML=r,r=Ct?Dt.textContent:Dt.innerText),r.replace&&(r=r.replace(/[\r\n\u2028]/g,"")),a.push(r);o._aFilterData=a,o._sFilterRow=a.join(" "),i=!0}return i}function Tt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Ft(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function At(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:kt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),r[0]}function kt(e){var n,a,r,o,l,i,s=e.aanFeatures.i;0!==s.length&&(i=e.oLanguage,n=e._iDisplayStart+1,a=e.fnDisplayEnd(),r=e.fnRecordsTotal(),l=(o=e.fnRecordsDisplay())?i.sInfo:i.sInfoEmpty,o!==r&&(l+=" "+i.sInfoFiltered),l=Bt(e,l+=i.sInfoPostFix),null!==(i=i.fnInfoCallback)&&(l=i.call(e.oInstance,e,n,a,r,o,l)),t(s).html(l))}function Bt(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),l=-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,l?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(t,l?1:Math.ceil(o/r)))}function Lt(t){var e,n,a,r=t.iInitDisplayStart,o=t.aoColumns,l=t.oFeatures,i=t.bDeferLoading;if(t.bInitialised){for(ut(t),ot(t),lt(t,t.aoHeader),lt(t,t.aoFooter),Et(t,!0),l.bAutoWidth&&qt(t),e=0,n=o.length;e<n;e++)(a=o[e]).sWidth&&(a.nTh.style.width=Kt(a.sWidth));fe(t,null,"preInit",[t]),st(t),"ssp"==(l=me(t))&&!i||("ajax"==l?ft(t,[],function(n){var a=gt(t,n);for(e=0;e<a.length;e++)z(t,a[e]);t.iInitDisplayStart=r,st(t),Et(t,!1),Nt(t,n)}):(Et(t,!1),Nt(t)))}else setTimeout(function(){Lt(t)},200)}function Nt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&j(t),fe(t,null,"plugin-init",[t,e]),fe(t,"aoInitComplete","init",[t,e])}function Pt(t,e){e=parseInt(e,10),t._iDisplayLength=e,pe(t),fe(t,null,"length",[t,e])}function Rt(e){for(var n=e.oClasses,a=e.sTableId,r=e.aLengthMenu,o=Array.isArray(r[0]),l=o?r[0]:r,i=o?r[1]:r,s=t("<select/>",{name:a+"_length","aria-controls":a,class:n.sLengthSelect}),u=0,c=l.length;u<c;u++)s[0][u]=new Option("number"==typeof i[u]?e.fnFormatNumber(i[u]):i[u],l[u]);var d=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(d[0].id=a+"_length"),d.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",s[0].outerHTML)),t("select",d).val(e._iDisplayLength).on("change.DT",function(n){Pt(e,t(this).val()),it(e)}),t(e.nTable).on("length.dt.DT",function(n,a,r){e===a&&t("select",d).val(r)}),d[0]}function jt(e){function n(t){it(t)}var a=e.sPaginationType,r=h.ext.pager[a],o="function"==typeof r,l=(a=t("<div/>").addClass(e.oClasses.sPaging+a)[0],e.aanFeatures);return o||r.fnInit(e,a,n),l.p||(a.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(o)for(var e=t._iDisplayStart,a=t._iDisplayLength,i=t.fnRecordsDisplay(),s=-1===a,u=s?0:Math.ceil(e/a),c=s?1:Math.ceil(i/a),d=r(u,c),f=0,p=l.p.length;f<p;f++)he(t,"pageButton")(t,l.p[f],f,d,u,c);else r.fnUpdate(t,n)},sName:"pagination"})),a}function Ht(t,e,n){var a=t._iDisplayStart,r=t._iDisplayLength,o=(0===(o=t.fnRecordsDisplay())||-1===r?a=0:"number"==typeof e?o<(a=e*r)&&(a=0):"first"==e?a=0:"previous"==e?(a=0<=r?a-r:0)<0&&(a=0):"next"==e?a+r<o&&(a+=r):"last"==e?a=Math.floor((o-1)/r)*r:ie(t,0,"Unknown paging action: "+e,5),t._iDisplayStart!==a);return t._iDisplayStart=a,o?(fe(t,null,"page",[t]),n&&it(t)):fe(t,null,"page-nc",[t]),o}function Ot(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>").insertBefore(e.nTable)[0]}function Et(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),fe(e,null,"processing",[e,n])}function Mt(e){var n,a,r,o,l,i,s,u,c,d,f,p,h=t(e.nTable),m=e.oScroll;return""===m.sX&&""===m.sY?e.nTable:(n=m.sX,a=m.sY,r=e.oClasses,l=(o=h.children("caption")).length?o[0]._captionSide:null,u=t(h[0].cloneNode(!1)),i=t(h[0].cloneNode(!1)),c=function(t){return t?Kt(t):null},(s=h.children("tfoot")).length||(s=null),u=t(f="<div/>",{class:r.sScrollWrapper}).append(t(f,{class:r.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?c(n):"100%"}).append(t(f,{class:r.sScrollHeadInner}).css({"box-sizing":"content-box",width:m.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?o:null).append(h.children("thead"))))).append(t(f,{class:r.sScrollBody}).css({position:"relative",overflow:"auto",width:c(n)}).append(h)),s&&u.append(t(f,{class:r.sScrollFoot}).css({overflow:"hidden",border:0,width:n?c(n):"100%"}).append(t(f,{class:r.sScrollFootInner}).append(i.removeAttr("id").css("margin-left",0).append("bottom"===l?o:null).append(h.children("tfoot"))))),c=u.children(),d=c[0],f=c[1],p=s?c[2]:null,n&&t(f).on("scroll.DT",function(t){var e=this.scrollLeft;d.scrollLeft=e,s&&(p.scrollLeft=e)}),t(f).css("max-height",a),m.bCollapse||t(f).css("height",a),e.nScrollHead=d,e.nScrollBody=f,e.nScrollFoot=p,e.aoDrawCallback.push({fn:Wt,sName:"scrolling"}),u[0])}function Wt(n){function r(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0}var o,l,i,s,u,c=(p=n.oScroll).sX,d=p.sXInner,f=p.sY,p=p.iBarWidth,h=t(n.nScrollHead),m=h[0].style,g=(b=h.children("div"))[0].style,b=b.children("table"),y=n.nScrollBody,v=t(y),x=y.style,S=t(n.nScrollFoot).children("div"),w=S.children("table"),D=t(n.nTHead),C=t(n.nTable),_=C[0],T=_.style,F=n.nTFoot?t(n.nTFoot):null,A=n.oBrowser,k=A.bScrollOversize,B=(I(n.aoColumns,"nTh"),[]),L=[],N=[],P=[],R=y.scrollHeight>y.clientHeight;n.scrollBarVis!==R&&n.scrollBarVis!==a?(n.scrollBarVis=R,j(n)):(n.scrollBarVis=R,C.children("thead, tfoot").remove(),F&&(R=F.clone().prependTo(C),u=F.find("tr"),l=R.find("tr"),R.find("[id]").removeAttr("id")),R=D.clone().prependTo(C),D=D.find("tr"),o=R.find("tr"),R.find("th, td").removeAttr("tabindex"),R.find("[id]").removeAttr("id"),c||(x.width="100%",h[0].style.width="100%"),t.each(dt(n,R),function(t,e){i=H(n,t),e.style.width=n.aoColumns[i].sWidth}),F&&Ut(function(t){t.style.width=""},l),h=C.outerWidth(),""===c?(T.width="100%",k&&(C.find("tbody").height()>y.offsetHeight||"scroll"==v.css("overflow-y"))&&(T.width=Kt(C.outerWidth()-p)),h=C.outerWidth()):""!==d&&(T.width=Kt(d),h=C.outerWidth()),Ut(r,o),Ut(function(n){var a=e.getComputedStyle?e.getComputedStyle(n).width:Kt(t(n).width());N.push(n.innerHTML),B.push(a)},o),Ut(function(t,e){t.style.width=B[e]},D),t(o).css("height",0),F&&(Ut(r,l),Ut(function(e){P.push(e.innerHTML),L.push(Kt(t(e).css("width")))},l),Ut(function(t,e){t.style.width=L[e]},u),t(l).height(0)),Ut(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+N[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=B[e]},o),F&&Ut(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+P[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=L[e]},l),Math.round(C.outerWidth())<Math.round(h)?(s=y.scrollHeight>y.offsetHeight||"scroll"==v.css("overflow-y")?h+p:h,k&&(y.scrollHeight>y.offsetHeight||"scroll"==v.css("overflow-y"))&&(T.width=Kt(s-p)),""!==c&&""===d||ie(n,1,"Possible column misalignment",6)):s="100%",x.width=Kt(s),m.width=Kt(s),F&&(n.nScrollFoot.style.width=Kt(s)),f||k&&(x.height=Kt(_.offsetHeight+p)),R=C.outerWidth(),b[0].style.width=Kt(R),g.width=Kt(R),D=C.height()>y.clientHeight||"scroll"==v.css("overflow-y"),g[u="padding"+(A.bScrollbarLeft?"Left":"Right")]=D?p+"px":"0px",F&&(w[0].style.width=Kt(R),S[0].style.width=Kt(R),S[0].style[u]=D?p+"px":"0px"),C.children("colgroup").insertBefore(C.children("thead")),v.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(y.scrollTop=0))}function Ut(t,e,n){for(var a,r,o=0,l=0,i=e.length;l<i;){for(a=e[l].firstChild,r=n?n[l].firstChild:null;a;)1===a.nodeType&&(n?t(a,r,o):t(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;l++}}var zt=/<.*?>/g;function qt(n){var a,r,o=n.nTable,l=n.aoColumns,i=(u=n.oScroll).sY,s=u.sX,u=u.sXInner,c=l.length,d=M(n,"bVisible"),f=t("th",n.nTHead),p=o.getAttribute("width"),h=o.parentNode,m=!1,g=n.oBrowser,b=g.bScrollOversize,y=((x=o.style.width)&&-1!==x.indexOf("%")&&(p=x),Xt(I(l,"sWidthOrig"),h));for(C=0;C<d.length;C++)null!==(a=l[d[C]]).sWidth&&(a.sWidth=y[C],m=!0);if(b||!m&&!s&&!i&&c==E(n)&&c==f.length)for(C=0;C<c;C++){var v=H(n,C);null!==v&&(l[v].sWidth=Kt(f.eq(C).width()))}else{var x,S=((x=t(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove(),t("<tr/>").appendTo(x.find("tbody")));for(x.find("thead, tfoot").remove(),x.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),x.find("tfoot th, tfoot td").css("width",""),f=dt(n,x.find("thead")[0]),C=0;C<d.length;C++)a=l[d[C]],f[C].style.width=null!==a.sWidthOrig&&""!==a.sWidthOrig?Kt(a.sWidthOrig):"",a.sWidthOrig&&s&&t(f[C]).append(t("<div/>").css({width:a.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(C=0;C<d.length;C++)a=l[r=d[C]],t($t(n,r)).clone(!1).append(a.sContentPadding).appendTo(S);t("[name]",x).removeAttr("name");for(var w=t("<div/>").css(s||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(x).appendTo(h),D=(s&&u?x.width(u):s?(x.css("width","auto"),x.removeAttr("width"),x.width()<h.clientWidth&&p&&x.width(h.clientWidth)):i?x.width(h.clientWidth):p&&x.width(p),0),C=0;C<d.length;C++){var _,T=(_=t(f[C])).outerWidth()-_.width();D+=_=g.bBounding?Math.ceil(f[C].getBoundingClientRect().width):_.outerWidth(),l[d[C]].sWidth=Kt(_-T)}o.style.width=Kt(D),w.remove()}p&&(o.style.width=Kt(p)),!p&&!s||n._reszEvt||(u=function(){t(e).on("resize.DT-"+n.sInstance,Vt(function(){j(n)}))},b?setTimeout(u,1e3):u(),n._reszEvt=!0)}var Vt=h.util.throttle;function Xt(e,a){for(var r=[],o=[],l=0;l<e.length;l++)e[l]?r.push(t("<div/>").css("width",Kt(e[l])).appendTo(a||n.body)):r.push(null);for(l=0;l<e.length;l++)o.push(r[l]?r[l][0].offsetWidth:null);return t(r).remove(),o}function $t(e,n){var a,r=Jt(e,n);return r<0?null:(a=e.aoData[r]).nTr?a.anCells[n]:t("<td/>").html(V(e,r,n,"display"))[0]}function Jt(t,e){for(var n,a=-1,r=-1,o=0,l=t.aoData.length;o<l;o++)(n=(n=(n=V(t,o,e,"display")+"").replace(zt,"")).replace(/ /g," ")).length>a&&(a=n.length,r=o);return r}function Kt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Gt(e){function n(e){e.length&&!Array.isArray(e[0])?g.push(e):t.merge(g,e)}var r,o,l,i,s,u,c,d=[],f=e.aoColumns,p=e.aaSortingFixed,m=t.isPlainObject(p),g=[];for(Array.isArray(p)&&n(p),m&&p.pre&&n(p.pre),n(e.aaSorting),m&&p.post&&n(p.post),r=0;r<g.length;r++)for(l=(i=f[c=g[r][o=0]].aDataSort).length;o<l;o++)u=f[s=i[o]].sType||"string",g[r]._idx===a&&(g[r]._idx=t.inArray(g[r][1],f[s].asSorting)),d.push({src:c,col:s,dir:g[r][1],index:g[r]._idx,type:u,formatter:h.ext.type.order[u+"-pre"]});return d}function Yt(t){var e,n,a,r,o,l=[],i=h.ext.type.order,s=t.aoData,u=(t.aoColumns,0),c=t.aiDisplayMaster;for(W(t),e=0,n=(o=Gt(t)).length;e<n;e++)(r=o[e]).formatter&&u++,ne(t,r.col);if("ssp"!=me(t)&&0!==o.length){for(e=0,a=c.length;e<a;e++)l[c[e]]=e;u===o.length?c.sort(function(t,e){for(var n,a,r,i,u=o.length,c=s[t]._aSortData,d=s[e]._aSortData,f=0;f<u;f++)if(0!=(r=(n=c[(i=o[f]).col])<(a=d[i.col])?-1:a<n?1:0))return"asc"===i.dir?r:-r;return(n=l[t])<(a=l[e])?-1:a<n?1:0}):c.sort(function(t,e){for(var n,a,r,u=o.length,c=s[t]._aSortData,d=s[e]._aSortData,f=0;f<u;f++)if(n=c[(r=o[f]).col],a=d[r.col],0!==(r=(i[r.type+"-"+r.dir]||i["string-"+r.dir])(n,a)))return r;return(n=l[t])<(a=l[e])?-1:a<n?1:0})}t.bSorted=!0}function Zt(t){for(var e=t.aoColumns,n=Gt(t),a=t.oLanguage.oAria,r=0,o=e.length;r<o;r++){var l=e[r],i=l.asSorting,s=l.ariaTitle||l.sTitle.replace(/<.*?>/g,""),u=l.nTh;u.removeAttribute("aria-sort"),l=l.bSortable?s+("asc"===(0<n.length&&n[0].col==r&&(u.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),i[n[0].index+1])||i[0])?a.sSortAscending:a.sSortDescending):s,u.setAttribute("aria-label",l)}}function Qt(e,n,r,o){function l(e,n){var r=e._idx;return(r=r===a?t.inArray(e[1],c):r)+1<c.length?r+1:n?null:0}var i,s=e.aoColumns[n],u=e.aaSorting,c=s.asSorting;"number"==typeof u[0]&&(u=e.aaSorting=[u]),r&&e.oFeatures.bSortMulti?-1!==(s=t.inArray(n,I(u,"0")))?null===(i=null===(i=l(u[s],!0))&&1===u.length?0:i)?u.splice(s,1):(u[s][1]=c[i],u[s]._idx=i):(u.push([n,c[0],0]),u[u.length-1]._idx=0):u.length&&u[0][0]==n?(i=l(u[0]),u.length=1,u[0][1]=c[i],u[0]._idx=i):(u.length=0,u.push([n,c[0]]),u[0]._idx=0),st(e),"function"==typeof o&&o(e)}function te(t,e,n,a){var r=t.aoColumns[n];ce(e,{},function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(Et(t,!0),setTimeout(function(){Qt(t,n,e.shiftKey,a),"ssp"!==me(t)&&Et(t,!1)},0)):Qt(t,n,e.shiftKey,a))})}function ee(e){var n,a,r,o=e.aLastSort,l=e.oClasses.sSortColumn,i=Gt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(n=0,a=o.length;n<a;n++)r=o[n].src,t(I(e.aoData,"anCells",r)).removeClass(l+(n<2?n+1:3));for(n=0,a=i.length;n<a;n++)r=i[n].src,t(I(e.aoData,"anCells",r)).addClass(l+(n<2?n+1:3))}e.aLastSort=i}function ne(t,e){for(var n,a,r,o=t.aoColumns[e],l=h.ext.order[o.sSortDataType],i=(l&&(n=l.call(t.oInstance,t,e,O(t,e))),h.ext.type.order[o.sType+"-pre"]),s=0,u=t.aoData.length;s<u;s++)(a=t.aoData[s])._aSortData||(a._aSortData=[]),a._aSortData[e]&&!l||(r=l?n[s]:V(t,s,e,"sort"),a._aSortData[e]=i?i(r):r)}function ae(e){var n;e._bLoadingState||(n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Tt(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:Tt(e.aoPreSearchCols[n])}})},e.oSavedState=n,fe(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,n))}function re(t,e,n){var r;if(t.oFeatures.bStateSave)return(r=t.fnStateLoadCallback.call(t.oInstance,t,function(e){oe(t,e,n)}))!==a&&oe(t,r,n),!0;n()}function oe(e,n,r){var o,l,i=e.aoColumns,s=(e._bLoadingState=!0,e._bInitComplete?new h.Api(e):null);if(n&&n.time){var u=fe(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1!==t.inArray(!1,u))e._bLoadingState=!1;else if(0<(u=e.iStateDuration)&&n.time<+new Date-1e3*u)e._bLoadingState=!1;else if(n.columns&&i.length!==n.columns.length)e._bLoadingState=!1;else{if(e.oLoadedState=t.extend(!0,{},n),n.length!==a&&(s?s.page.len(n.length):e._iDisplayLength=n.length),n.start!==a&&(null===s?(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start):Ht(e,n.start/e._iDisplayLength)),n.order!==a&&(e.aaSorting=[],t.each(n.order,function(t,n){e.aaSorting.push(n[0]>=i.length?[0,n[1]]:n)})),n.search!==a&&t.extend(e.oPreviousSearch,Ft(n.search)),n.columns){for(o=0,l=n.columns.length;o<l;o++){var c=n.columns[o];c.visible!==a&&(s?s.column(o).visible(c.visible,!1):i[o].bVisible=c.visible),c.search!==a&&t.extend(e.aoPreSearchCols[o],Ft(c.search))}s&&s.columns.adjust()}e._bLoadingState=!1,fe(e,"aoStateLoaded","stateLoaded",[e,n])}}else e._bLoadingState=!1;r()}function le(e){var n=h.settings;return-1!==(e=t.inArray(e,I(n,"nTable")))?n[e]:null}function ie(t,n,a,r){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see https://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(a);else if(n=(n=h.ext).sErrMode||n.errMode,t&&fe(t,null,"error",[t,r,a]),"alert"==n)alert(a);else{if("throw"==n)throw new Error(a);"function"==typeof n&&n(t,r,a)}}function se(e,n,r,o){Array.isArray(r)?t.each(r,function(t,a){Array.isArray(a)?se(e,n,a[0],a[1]):se(e,n,a)}):(o===a&&(o=r),n[r]!==a&&(e[o]=n[r]))}function ue(e,n,a){var r,o;for(o in n)n.hasOwnProperty(o)&&(r=n[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):a&&"data"!==o&&"aaData"!==o&&Array.isArray(r)?e[o]=r.slice():e[o]=r);return e}function ce(e,n,a){t(e).on("click.DT",n,function(n){t(e).trigger("blur"),a(n)}).on("keypress.DT",n,function(t){13===t.which&&(t.preventDefault(),a(t))}).on("selectstart.DT",function(){return!1})}function de(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function fe(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"),(a=t(e.nTable)).trigger(n,r),0===a.parents("body").length&&t("body").trigger(n,r),o.push(n.result)),o}function pe(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;n<=e&&(e=n-a),e-=e%a,t._iDisplayStart=e=-1===a||e<0?0:e}function he(e,n){e=e.renderer;var a=h.ext.renderer[n];return t.isPlainObject(e)&&e[n]?a[e[n]]||a._:"string"==typeof e&&a[e]||a._}function me(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function ge(e,n){var a;return Array.isArray(e)?t.map(e,function(t){return ge(t,n)}):"number"==typeof e?[n[e]]:(a=t.map(n,function(t,e){return t.nTable}),t(a).filter(e).map(function(e){var r=t.inArray(this,a);return n[r]}).toArray())}function be(t,e,n){var a,r;n&&(a=new Ce(t)).one("draw",function(){n(a.ajax.json())}),"ssp"==me(t)?st(t,e):(Et(t,!0),(r=t.jqXHR)&&4!==r.readyState&&r.abort(),ft(t,[],function(n){Q(t);for(var a=gt(t,n),r=0,o=a.length;r<o;r++)z(t,a[r]);st(t,e),Et(t,!1)}))}function ye(t,e,n,r,o){for(var l,i,s,u,c=[],f=typeof e,p=0,h=(e=e&&"string"!=f&&"function"!=f&&e.length!==a?e:[e]).length;p<h;p++)for(s=0,u=(i=e[p]&&e[p].split&&!e[p].match(/[\[\(:]/)?e[p].split(","):[e[p]]).length;s<u;s++)(l=n("string"==typeof i[s]?i[s].trim():i[s]))&&l.length&&(c=c.concat(l));var m=d.selector[t];if(m.length)for(p=0,h=m.length;p<h;p++)c=m[p](r,o,c);return D(c)}function ve(e){return(e=e||{}).filter&&e.search===a&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)}function xe(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}function Se(e,n){var a=e.context;if(a.length&&e.length&&(l=a[0].aoData[e[0]])._details){(l._detailsShow=n)?(l._details.insertAfter(l.nTr),t(l.nTr).addClass("dt-hasChild")):(l._details.detach(),t(l.nTr).removeClass("dt-hasChild")),fe(a[0],null,"childRow",[n,e.row(e[0])]);var r=a[0],o=new Ce(r),l=(n="draw"+(l=".dt.DT_details"),e="column-sizing"+l,"destroy"+l),i=r.aoData;o.off(n+" "+e+" "+l),I(i,"_details").length>0&&(o.on(n,function(t,e){r===e&&o.rows({page:"current"}).eq(0).each(function(t){var e=i[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),o.on(e,function(e,n,a,o){if(r===n)for(var l,s=E(n),u=0,c=i.length;u<c;u++)(l=i[u])._details&&l._details.each(function(){var e=t(this).children("td");1==e.length&&e.attr("colspan",s)})}),o.on(l,function(t,e){if(r===e)for(var n=0,a=i.length;n<a;n++)i[n]._details&&Fe(o,n)})),Te(a)}}function we(t,e,n,a,r){for(var o=[],l=0,i=r.length;l<i;l++)o.push(V(t,r[l],e));return o}var Ie=[],De=Array.prototype,Ce=function(e,n){if(!(this instanceof Ce))return new Ce(e,n);function a(e){var n,a,o,l;o=h.settings,l=t.map(o,function(t,e){return t.nTable}),(e=e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,l))?[o[n]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?a=t(e):e instanceof t&&(a=e),a?a.map(function(e){return-1!==(n=t.inArray(this,l))?o[n]:null}).toArray():void 0):[])&&r.push.apply(r,e)}var r=[];if(Array.isArray(e))for(var o=0,l=e.length;o<l;o++)a(e[o]);else a(e);this.context=D(r),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},Ce.extend(this,this,Ie)},_e=(h.Api=Ce,t.extend(Ce.prototype,{any:function(){return 0!==this.count()},concat:De.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 Ce(e[t],this[t]):null},filter:function(t){var e=[];if(De.filter)e=De.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 Ce(this.context,e)},flatten:function(){var t=[];return new Ce(this.context,t.concat.apply(t,this.toArray()))},join:De.join,indexOf:De.indexOf||function(t,e){for(var n=e||0,a=this.length;n<a;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var o,l,i,s,u,c,d,f,p=[],h=this.context,m=this.selector;for("string"==typeof t&&(r=n,n=e,e=t,t=!1),l=0,i=h.length;l<i;l++){var g=new Ce(h[l]);if("table"===e)(o=n.call(g,h[l],l))!==a&&p.push(o);else if("columns"===e||"rows"===e)(o=n.call(g,h[l],this[l],l))!==a&&p.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[l],"column-rows"===e&&(c=_e(h[l],m.opts)),s=0,u=d.length;s<u;s++)f=d[s],(o="cell"===e?n.call(g,h[l],f.row,f.column,l,s):n.call(g,h[l],f,l,s,c))!==a&&p.push(o)}return p.length||r?((t=(r=new Ce(h,t?p.concat.apply([],p):p)).selector).rows=m.rows,t.cols=m.cols,t.opts=m.opts,r):this},lastIndexOf:De.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(De.map)e=De.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 Ce(this.context,e)},pluck:function(t){var e=h.util.get(t);return this.map(function(t){return e(t)})},pop:De.pop,push:De.push,reduce:De.reduce||function(t,e){return N(this,t,e,0,this.length,1)},reduceRight:De.reduceRight||function(t,e){return N(this,t,e,this.length-1,-1,-1)},reverse:De.reverse,selector:null,shift:De.shift,slice:function(){return new Ce(this.context,this)},sort:De.sort,splice:De.splice,toArray:function(){return De.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new Ce(this.context,D(this))},unshift:De.unshift}),Ce.extend=function(t,e,n){if(n.length&&e&&(e instanceof Ce||e.__dt_wrapper))for(var a,r=0,o=n.length;r<o;r++)e[(a=n[r]).name]="function"===a.type?function(t,e,n){return function(){var a=e.apply(t,arguments);return Ce.extend(a,a,n.methodExt),a}}(t,a.val,a):"object"===a.type?{}:a.val,e[a.name].__dt_wrapper=!0,Ce.extend(t,e[a.name],a.propExt)},Ce.register=f=function(e,n){if(Array.isArray(e))for(var a=0,r=e.length;a<r;a++)Ce.register(e[a],n);else for(var o=e.split("."),l=Ie,i=0,s=o.length;i<s;i++){var u,c,d=function(t,e){for(var n=0,a=t.length;n<a;n++)if(t[n].name===e)return t[n];return null}(l,c=(u=-1!==o[i].indexOf("()"))?o[i].replace("()",""):o[i]);d||l.push(d={name:c,val:{},methodExt:[],propExt:[],type:"object"}),i===s-1?(d.val=n,d.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):l=u?d.methodExt:d.propExt}},Ce.registerPlural=p=function(t,e,n){Ce.register(t,n),Ce.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof Ce?t.length?Array.isArray(t[0])?new Ce(t.context,t[0]):t[0]:a:t})},f("tables()",function(t){return t!==a&&null!==t?new Ce(ge(t,this.context)):this}),f("table()",function(t){var e=(t=this.tables(t)).context;return e.length?new Ce(e[0]):t}),p("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),p("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),p("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),p("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),p("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),f("draw()",function(t){return this.iterator("table",function(e){"page"===t?it(e):st(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),f("page()",function(t){return t===a?this.page.info().page:this.iterator("table",function(e){Ht(e,t)})}),f("page.info()",function(t){var e,n,r,o,l;return 0===this.context.length?a:(n=(e=this.context[0])._iDisplayStart,r=e.oFeatures.bPaginate?e._iDisplayLength:-1,o=e.fnRecordsDisplay(),{page:(l=-1===r)?0:Math.floor(n/r),pages:l?1:Math.ceil(o/r),start:n,end:e.fnDisplayEnd(),length:r,recordsTotal:e.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===me(e)})}),f("page.len()",function(t){return t===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",function(e){Pt(e,t)})}),f("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),f("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),f("ajax.reload()",function(t,e){return this.iterator("table",function(n){be(n,!1===e,t)})}),f("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})}),f("ajax.url().load()",function(t,e){return this.iterator("table",function(n){be(n,!1===e,t)})}),function(e,n){var a,r=[],o=e.aiDisplay,l=e.aiDisplayMaster,i=n.search,u=n.order;n=n.page;if("ssp"==me(e))return"removed"===i?[]:s(0,l.length);if("current"==n)for(d=e._iDisplayStart,f=e.fnDisplayEnd();d<f;d++)r.push(o[d]);else if("current"==u||"applied"==u){if("none"==i)r=l.slice();else if("applied"==i)r=o.slice();else if("removed"==i){for(var c={},d=0,f=o.length;d<f;d++)c[o[d]]=null;r=t.map(l,function(t){return c.hasOwnProperty(t)?null:t})}}else if("index"==u||"original"==u)for(d=0,f=e.aoData.length;d<f;d++)("none"==i||-1===(a=t.inArray(d,o))&&"removed"==i||0<=a&&"applied"==i)&&r.push(d);return r}),Te=(f("rows()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=ve(n);var o=this.iterator("table",function(o){return ye("row",e,function(e){var n=r(e),o=l.aoData;if(null!==n&&!s)return[n];if(c=c||_e(l,s),null!==n&&-1!==t.inArray(n,c))return[n];if(null===e||e===a||""===e)return c;if("function"==typeof e)return t.map(c,function(t){var n=o[t];return e(t,n._aData,n.nTr)?t:null});if(e.nodeName)return n=e._DT_RowIndex,d=e._DT_CellIndex,n!==a?o[n]&&o[n].nTr===e?[n]:[]:d?o[d.row]&&o[d.row].nTr===e.parentNode?[d.row]:[]:(n=t(e).closest("*[data-dt-row]")).length?[n.data("dt-row")]:[];if("string"==typeof e&&"#"===e.charAt(0)){var d=l.aIds[e.replace(/^#/,"")];if(d!==a)return[d.idx]}return n=u(i(l.aoData,c,"nTr")),t(n).filter(e).map(function(){return this._DT_RowIndex}).toArray()},l=o,s=n);var l,s,c},1);return o.selector.rows=e,o.selector.opts=n,o}),f("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||a},1)}),f("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return i(t.aoData,e,"_aData")},1)}),p("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)}),p("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){et(e,n,t)})}),p("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),p("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a<r;a++)for(var o=0,l=this[a].length;o<l;o++){var i=n[a].rowIdFn(n[a].aoData[this[a][o]]._aData);e.push((!0===t?"#":"")+i)}return new Ce(n,e)}),p("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,n,r){var o,l,i,s,u,c,d=e.aoData,f=d[n];for(d.splice(n,1),o=0,l=d.length;o<l;o++)if(c=(u=d[o]).anCells,null!==u.nTr&&(u.nTr._DT_RowIndex=o),null!==c)for(i=0,s=c.length;i<s;i++)c[i]._DT_CellIndex.row=o;tt(e.aiDisplayMaster,n),tt(e.aiDisplay,n),tt(t[r],n,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,pe(e),(r=e.rowIdFn(f._aData))!==a&&delete e.aIds[r]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),f("rows.add()",function(e){var n=this.iterator("table",function(t){for(var n,a=[],r=0,o=e.length;r<o;r++)(n=e[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?a.push(q(t,n)[0]):a.push(z(t,n));return a},1),a=this.rows(-1);return a.pop(),t.merge(a,n),a}),f("row()",function(t,e){return xe(this.rows(t,e))}),f("row().data()",function(t){var e,n=this.context;return t===a?n.length&&this.length?n[0].aoData[this[0]]._aData:a:((e=n[0].aoData[this[0]])._aData=t,Array.isArray(t)&&e.nTr&&e.nTr.id&&Y(n[0].rowId)(t,e.nTr.id),et(n[0],this[0],"data"),this)}),f("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),f("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()?q(t,e)[0]:z(t,e)});return this.row(n[0])}),t(n).on("plugin-init.dt",function(e,n){var a=new Ce(n),r="stateSaveParams."+(l="on-plugin-init"),o="destroy. "+l,l=(a.on(r,function(t,e,n){for(var a=e.rowIdFn,r=e.aoData,o=[],l=0;l<r.length;l++)r[l]._detailsShow&&o.push("#"+a(r[l]._aData));n.childRows=o}),a.on(o,function(){a.off(r+" "+o)}),a.state.loaded());l&&l.childRows&&a.rows(t.map(l.childRows,function(t){return t.replace(/:/g,"\\:")})).every(function(){fe(n,null,"requestChild",[this])})}),h.util.throttle(function(t){ae(t[0])},500)),Fe=function(e,n){var r=e.context;r.length&&(n=r[0].aoData[n!==a?n:e[0]])&&n._details&&(n._details.remove(),n._detailsShow=a,n._details=a,t(n.nTr).removeClass("dt-hasChild"),Te(r))},Ae="row().child",ke=Ae+"()",Be=(f(ke,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?Fe(this):r.length&&this.length&&function(e,n,a,r){var o=[];(function n(a,r){var l;if(Array.isArray(a)||a instanceof t)for(var i=0,s=a.length;i<s;i++)n(a[i],r);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?o.push(a):(l=t("<tr><td></td></tr>").addClass(r),t("td",l).addClass(r).html(a)[0].colSpan=E(e),o.push(l[0]))})(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)}),f([Ae+".show()",ke+".show()"],function(t){return Se(this,!0),this}),f([Ae+".hide()",ke+".hide()"],function(){return Se(this,!1),this}),f([Ae+".remove()",ke+".remove()"],function(){return Fe(this),this}),f(Ae+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}),/^([^:]+):(name|visIdx|visible)$/),Le=(f("columns()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=ve(n);var o=this.iterator("table",function(a){return l=e,i=n,u=(o=a).aoColumns,c=I(u,"sName"),d=I(u,"nTh"),ye("column",l,function(e){var n,a=r(e);if(""===e)return s(u.length);if(null!==a)return[0<=a?a:u.length+a];if("function"==typeof e)return n=_e(o,i),t.map(u,function(t,a){return e(a,we(o,a,0,0,n),d[a])?a:null});var l="string"==typeof e?e.match(Be):"";if(l)switch(l[2]){case"visIdx":case"visible":var f,p=parseInt(l[1],10);return p<0?[(f=t.map(u,function(t,e){return t.bVisible?e:null}))[f.length+p]]:[H(o,p)];case"name":return t.map(c,function(t,e){return t===l[1]?e:null});default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(a=t(d).filter(e).map(function(){return t.inArray(this,d)}).toArray()).length||!e.nodeName?a:(a=t(e).closest("*[data-dt-column]")).length?[a.data("dt-column")]:[]},o,i);var o,l,i,u,c,d},1);return o.selector.cols=e,o.selector.opts=n,o}),p("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),p("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),p("columns().data()","column().data()",function(){return this.iterator("column-rows",we,1)}),p("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),p("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,a,r,o){return i(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),p("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,a,r){return i(t.aoData,r,"anCells",e)},1)}),p("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,l,i=r,s=(r=e,n.aoColumns),u=s[i],c=n.aoData;if(r===a)u.bVisible;else if(u.bVisible!==r){if(r)for(var d=t.inArray(!0,I(s,"bVisible"),i+1),f=0,p=c.length;f<p;f++)l=c[f].nTr,o=c[f].anCells,l&&l.insertBefore(o[i],o[d]||null);else t(I(n.aoData,"anCells",i)).detach();u.bVisible=r}});return e!==a&&this.iterator("table",function(o){lt(o,o.aoHeader),lt(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",E(o)),ae(o),r.iterator("column",function(t,a){fe(t,null,"column-visibility",[t,a,e,n])}),n!==a&&!n||r.columns.adjust()}),o}),p("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?O(e,n):n},1)}),f("columns.adjust()",function(){return this.iterator("table",function(t){j(t)},1)}),f("column.index()",function(t,e){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===t||"toData"===t?H(n,e):"fromData"===t||"toVisible"===t?O(n,e):void 0}),f("column()",function(t,e){return xe(this.columns(t,e))}),f("cells()",function(e,n,r){var o,l,s,c,d,f,p;return 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?this.iterator("table",function(n){return o=n,n=e,l=ve(r),g=o.aoData,b=_e(o,l),y=u(i(g,b,"anCells")),v=t(C([],y)),x=o.aoColumns.length,ye("cell",n,function(e){var n,r="function"==typeof e;if(null===e||e===a||r){for(c=[],d=0,f=b.length;d<f;d++)for(s=b[d],p=0;p<x;p++)h={row:s,column:p},(!r||(m=g[s],e(h,V(o,s,p),m.anCells?m.anCells[p]:null)))&&c.push(h);return c}return t.isPlainObject(e)?e.column!==a&&e.row!==a&&-1!==t.inArray(e.row,b)?[e]:[]:(n=v.filter(e).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray()).length||!e.nodeName?n:(m=t(e).closest("*[data-dt-row]")).length?[{row:m.data("dt-row"),column:m.data("dt-column")}]:[]},o,l);var o,l,s,c,d,f,p,h,m,g,b,y,v,x}):(p=r?{page:r.page,order:r.order,search:r.search}:{},o=this.columns(n,p),l=this.rows(e,p),p=this.iterator("table",function(t,e){var n=[];for(s=0,c=l[e].length;s<c;s++)for(d=0,f=o[e].length;d<f;d++)n.push({row:l[e][s],column:o[e][d]});return n},1),p=r&&r.selected?this.cells(p,r):p,t.extend(p.selector,{cols:n,rows:e,opts:r}),p)}),p("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)}),f("cells().data()",function(){return this.iterator("cell",function(t,e,n){return V(t,e,n)},1)}),p("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)}),p("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,a){return V(e,n,a,t)},1)}),p("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:O(t,n)}},1)}),p("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,a){et(e,n,t,a)})}),f("cell()",function(t,e,n){return xe(this.cells(t,e,n))}),f("cell().data()",function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?V(e[0],n[0].row,n[0].column):a:(X(e[0],n[0].row,n[0].column,t),et(e[0],n[0].row,"data",n[0].column),this)}),f("order()",function(t,e){var n=this.context;return t===a?0!==n.length?n[0].aaSorting:a:("number"==typeof t?t=[[t,e]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),f("order.listener()",function(t,e,n){return this.iterator("table",function(a){te(a,t,e,n)})}),f("order.fixed()",function(e){var n;return e?this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)}):(n=(n=this.context).length?n[0].aaSortingFixed:a,Array.isArray(n)?{pre:n}:n)}),f(["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})}),f("search()",function(e,n,r,o){var l=this.context;return e===a?0!==l.length?l[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&yt(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),p("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(l,i){var s=l.aoPreSearchCols;if(e===a)return s[i].sSearch;l.oFeatures.bFilter&&(t.extend(s[i],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),yt(l,l.oPreviousSearch,1))})}),f("state()",function(){return this.context.length?this.context[0].oSavedState:null}),f("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),f("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),f("state.save()",function(){return this.iterator("table",function(t){ae(t)})}),h.use=function(a,r){"lib"===r||a.fn?t=a:"win"==r||a.document?n=(e=a).document:"datetime"!==r&&"DateTime"!==a.type||(h.DateTime=a)},h.factory=function(a,r){var o=!1;return a&&a.document&&(n=(e=a).document),r&&r.fn&&r.fn.jquery&&(t=r,o=!0),o},h.versionCheck=h.fnVersionCheck=function(t){for(var e,n,a=h.version.split("."),r=t.split("."),o=0,l=r.length;o<l;o++)if((e=parseInt(a[o],10)||0)!==(n=parseInt(r[o],10)||0))return n<e;return!0},h.isDataTable=h.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof h.Api||(t.each(h.settings,function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,l=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&l!==n||(a=!0)}),a)},h.tables=h.fnTables=function(e){var n=!1,a=(t.isPlainObject(e)&&(n=e.api,e=e.visible),t.map(h.settings,function(n){if(!e||t(n.nTable).is(":visible"))return n.nTable}));return n?new Ce(a):a},h.camelToHungarian=T,f("$()",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){f(n+"()",function(){var e=Array.prototype.slice.call(arguments),a=(e[0]=t.map(e[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" "),t(this.tables().nodes()));return a[n].apply(a,e),this})}),f("clear()",function(){return this.iterator("table",function(t){Q(t)})}),f("settings()",function(){return new Ce(this.context,this.context)}),f("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),f("data()",function(){return this.iterator("table",function(t){return I(t.aoData,"_aData")}).flatten()}),f("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r,o=a.oClasses,l=a.nTable,i=a.nTBody,s=a.nTHead,u=a.nTFoot,c=t(l),d=(i=t(i),t(a.nTableWrapper)),f=t.map(a.aoData,function(t){return t.nTr});a.bDestroying=!0,fe(a,"aoDestroyCallback","destroy",[a]),n||new Ce(a).columns().visible(!0),d.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),l!=s.parentNode&&(c.children("thead").detach(),c.append(s)),u&&l!=u.parentNode&&(c.children("tfoot").detach(),c.append(u)),a.aaSorting=[],a.aaSortingFixed=[],ee(a),t(f).removeClass(a.asStripeClasses.join(" ")),t("th, td",s).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),i.children().detach(),i.append(f),u=a.nTableWrapper.parentNode,c[s=n?"remove":"detach"](),d[s](),!n&&u&&(u.insertBefore(l,a.nTableReinsertBefore),c.css("width",a.sDestroyWidth).removeClass(o.sTable),r=a.asDestroyStripes.length)&&i.children().each(function(e){t(this).addClass(a.asDestroyStripes[e%r])}),f=t.inArray(a,h.settings);-1!==f&&h.settings.splice(f,1)})}),t.each(["column","row","cell"],function(t,e){f(e+"s().every()",function(t){var n=this.selector.opts,r=this;return this.iterator(e,function(o,l,i,s,u){t.call(r[e](l,"cell"===e?i:n,"cell"===e?n:a),l,i,s,u)})})}),f("i18n()",function(e,n,r){var o=this.context[0];return(e=G(e)(o.oLanguage))===a&&(e=n),"string"==typeof(e=r!==a&&t.isPlainObject(e)?e[r]!==a?e[r]:e._:e)?e.replace("%d",r):e}),h.version="1.13.11",h.settings=[],h.models={},h.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},h.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},h.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},h.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},h.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},_(h.defaults),h.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},_(h.defaults.column),h.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json: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"==me(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==me(this)?+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||a<n||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},h.ext=d={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:h.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:h.version},t.extend(d,{afnFiltering:d.search,aTypes:d.type.detect,ofnSearch:d.type.search,oSort:d.type.order,afnSortData:d.order,aoFeatures:d.feature,oApi:d.internal,oStdClasses:d.classes,oPagination:d.pager}),t.extend(h.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),h.ext.pager);function Ne(t,e){var n=[],a=Le.numbers_length,r=Math.floor(a/2);return e<=a?n=s(0,e):t<=r?((n=s(0,a-2)).push("ellipsis"),n.push(e-1)):((e-1-r<=t?n=s(e-(a-2),e):((n=s(t-r+2,t+r-1)).push("ellipsis"),n.push(e-1),n)).splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Pe(t,e,n,a){var r;return 0===t||t&&"-"!==t?"number"==(r=typeof t)||"bigint"==r?t:+(t=(t=e?w(t,e):t).replace&&(n&&(t=t.replace(n,"")),a)?t.replace(a,""):t):-1/0}function Re(e){t.each({num:function(t){return Pe(t,e)},"num-fmt":function(t){return Pe(t,e,x)},"html-num":function(t){return Pe(t,e,b)},"html-num-fmt":function(t){return Pe(t,e,b,x)}},function(t,n){d.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(d.type.search[t+e]=d.type.search.html)})}function je(t){return"string"==typeof(t=Array.isArray(t)?t.join(","):t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t}function He(t,n,a,r,o){return e.moment?t[n](o):e.luxon?t[a](o):r?t[r](o):t}t.extend(Le,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Ne(t,e)]},simple_numbers:function(t,e){return["previous",Ne(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Ne(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Ne(t,e),"last"]},_numbers:Ne,numbers_length:7}),t.extend(!0,h.ext.renderer,{pageButton:{_:function(e,r,o,l,i,s){var u,c,d,f=e.oClasses,p=e.oLanguage.oPaginate,h=e.oLanguage.oAria.paginate||{};try{d=t(r).find(n.activeElement).data("dt-idx")}catch(r){}(function n(a,r){for(var l,d=f.sPageButtonDisabled,m=function(t){Ht(e,t.data.action,!0)},g=0,b=r.length;g<b;g++)if(l=r[g],Array.isArray(l)){var y=t("<"+(l.DT_el||"div")+"/>").appendTo(a);n(y,l)}else{var v=!1;switch(u=null,c=l){case"ellipsis":a.append('<span class="ellipsis">…</span>');break;case"first":u=p.sFirst,0===i&&(v=!0);break;case"previous":u=p.sPrevious,0===i&&(v=!0);break;case"next":u=p.sNext,0!==s&&i!==s-1||(v=!0);break;case"last":u=p.sLast,0!==s&&i!==s-1||(v=!0);break;default:u=e.fnFormatNumber(l+1),c=i===l?f.sPageButtonActive:""}null!==u&&(y=e.oInit.pagingTag||"a",v&&(c+=" "+d),ce(t("<"+y+">",{class:f.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-disabled":v?"true":null,"aria-label":h[l],role:"link","aria-current":c===f.sPageButtonActive?"page":null,"data-dt-idx":l,tabindex:v?-1:e.iTabIndex,id:0===o&&"string"==typeof l?e.sTableId+"_"+l:null}).html(u).appendTo(a),{action:l},m))}})(t(r).empty(),l),d!==a&&t(r).find("[data-dt-idx="+d+"]").trigger("focus")}}}),t.extend(h.ext.type.detect,[function(t,e){return o(t,e=e.oLanguage.sDecimal)?"num"+e:null},function(t,e){var n;return(!t||t instanceof Date||y.test(t))&&(null!==(n=Date.parse(t))&&!isNaN(n)||S(t))?"date":null},function(t,e){return o(t,e=e.oLanguage.sDecimal,!0)?"num-fmt"+e:null},function(t,e){return l(t,e=e.oLanguage.sDecimal)?"html-num"+e:null},function(t,e){return l(t,e=e.oLanguage.sDecimal,!0)?"html-num-fmt"+e:null},function(t,e){return S(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(h.ext.type.search,{html:function(t){return S(t)?t:"string"==typeof t?t.replace(g," ").replace(b,""):""},string:function(t){return S(t)||"string"!=typeof t?t:t.replace(g," ")}}),t.extend(d.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return S(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return S(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0}}),Re(""),t.extend(!0,h.ext.renderer,{header:{_:function(e,n,a,r){t(e.nTable).on("order.dt.DT",function(t,o,l,i){e===o&&(o=a.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[o]?r.sSortAsc:"desc"==i[o]?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,l,i){e===o&&(o=a.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[o]?r.sSortAsc:"desc"==i[o]?r.sSortDesc:a.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[o]?r.sSortJUIAsc:"desc"==i[o]?r.sSortJUIDesc:a.sSortingClassJUI))})}}});var Oe=!1;function Ee(t,n,a){var r;if(e.moment){if(!(r=e.moment.utc(t,n,a,!0)).isValid())return null}else if(e.luxon){if(!(r=n&&"string"==typeof t?e.luxon.DateTime.fromFormat(t,n):e.luxon.DateTime.fromISO(t)).isValid)return null;r.setLocale(a)}else n?(Oe||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Oe=!0):r=new Date(t);return r}function Me(t){return function(e,n,r,o){0===arguments.length?(r="en",e=n=null):1===arguments.length?(r="en",n=e,e=null):2===arguments.length&&(r=n,n=e,e=null);var l="datetime-"+n;return h.ext.type.order[l]||(h.ext.type.detect.unshift(function(t){return t===l&&l}),h.ext.type.order[l+"-asc"]=function(t,e){return(t=t.valueOf())===(e=e.valueOf())?0:t<e?-1:1},h.ext.type.order[l+"-desc"]=function(t,e){return(t=t.valueOf())===(e=e.valueOf())?0:e<t?-1:1}),function(i,s){var u;return null!==i&&i!==a||(i="--now"===o?(u=new Date,new Date(Date.UTC(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds()))):""),"type"===s?l:""===i?"sort"!==s?"":Ee("0000-01-01 00:00:00",null,r):(null===n||e!==n||"sort"===s||"type"===s||i instanceof Date)&&null!==(u=Ee(i,e,r))?"sort"===s?u:(i=null===n?He(u,"toDate","toJSDate","")[t]():He(u,"format","toFormat","toISOString",n),"display"===s?je(i):i):i}}}var We=",",Ue=".";if(e.Intl!==a)try{for(var ze=(new Intl.NumberFormat).formatToParts(100000.1),qe=0;qe<ze.length;qe++)"group"===ze[qe].type?We=ze[qe].value:"decimal"===ze[qe].type&&(Ue=ze[qe].value)}catch(p){}function Ve(t){return function(){var e=[le(this[h.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return h.ext.internal[t].apply(this,e)}}return h.datetime=function(t,e){var n="datetime-detect-"+t;e=e||"en",h.ext.type.order[n]||(h.ext.type.detect.unshift(function(a){var r=Ee(a,t,e);return!(""!==a&&!r)&&n}),h.ext.type.order[n+"-pre"]=function(n){return Ee(n,t,e)||0})},h.render={date:Me("toLocaleDateString"),datetime:Me("toLocaleString"),time:Me("toLocaleTimeString"),number:function(t,e,n,r,o){return null!==t&&t!==a||(t=We),null!==e&&e!==a||(e=Ue),{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;if(""===a||null===a)return a;var l=a<0?"-":"",i=parseFloat(a);return isNaN(i)?je(a):(i=i.toFixed(n),a=Math.abs(i),i=parseInt(a,10),a=n?e+(a-i).toFixed(n).substring(2):"",(l=0===i&&0===parseFloat(a)?"":l)+(r||"")+i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+a+(o||""))}}},text:function(){return{display:je,filter:je}}},t.extend(h.ext.internal,{_fnExternApiFunc:Ve,_fnBuildAjax:ft,_fnAjaxUpdate:pt,_fnAjaxParameters:ht,_fnAjaxUpdateDraw:mt,_fnAjaxDataSrc:gt,_fnAddColumn:P,_fnColumnOptions:R,_fnAdjustColumnSizing:j,_fnVisibleToColumnIndex:H,_fnColumnIndexToVisible:O,_fnVisbleColumns:E,_fnGetColumns:M,_fnColumnTypes:W,_fnApplyColumnDefs:U,_fnHungarianMap:_,_fnCamelToHungarian:T,_fnLanguageCompat:F,_fnBrowserDetect:L,_fnAddData:z,_fnAddTr:q,_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:V,_fnSetCellData:X,_fnSplitObjNotation:K,_fnGetObjectDataFn:G,_fnSetObjectDataFn:Y,_fnGetDataMaster:Z,_fnClearTable:Q,_fnDeleteIndex:tt,_fnInvalidate:et,_fnGetRowElements:nt,_fnCreateTr:at,_fnBuildHead:ot,_fnDrawHead:lt,_fnDraw:it,_fnReDraw:st,_fnAddOptionsHtml:ut,_fnDetectHeader:ct,_fnGetUniqueThs:dt,_fnFeatureHtmlFilter:bt,_fnFilterComplete:yt,_fnFilterCustom:vt,_fnFilterColumn:xt,_fnFilter:St,_fnFilterCreateSearch:wt,_fnEscapeRegex:It,_fnFilterData:_t,_fnFeatureHtmlInfo:At,_fnUpdateInfo:kt,_fnInfoMacros:Bt,_fnInitialise:Lt,_fnInitComplete:Nt,_fnLengthChange:Pt,_fnFeatureHtmlLength:Rt,_fnFeatureHtmlPaginate:jt,_fnPageChange:Ht,_fnFeatureHtmlProcessing:Ot,_fnProcessingDisplay:Et,_fnFeatureHtmlTable:Mt,_fnScrollDraw:Wt,_fnApplyToChildren:Ut,_fnCalculateColumnWidths:qt,_fnThrottle:Vt,_fnConvertToWidth:Xt,_fnGetWidestNode:$t,_fnGetMaxLenString:Jt,_fnStringToCss:Kt,_fnSortFlatten:Gt,_fnSort:Yt,_fnSortAria:Zt,_fnSortListener:Qt,_fnSortAttachListener:te,_fnSortingClasses:ee,_fnSortData:ne,_fnSaveState:ae,_fnLoadState:re,_fnImplementState:oe,_fnSettingsFromNode:le,_fnLog:ie,_fnMap:se,_fnBindAction:ce,_fnCallbackReg:de,_fnCallbackFire:fe,_fnLengthOverflow:pe,_fnRenderer:he,_fnDataSource:me,_fnRowAttributes:rt,_fnExtend:ue,_fnCalculateEnd:function(){}}),((t.fn.dataTable=h).$=t).fn.dataTableSettings=h.settings,t.fn.dataTableExt=h.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(h,function(e,n){t.fn.DataTable[e]=n}),h}),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(a,r){return a=a||window,r=r||e(a),n(a,r),t(r,0,a.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}(function(t,e,n,a){"use strict";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,l,i,s,u){var c,d,f,p=new r.Api(e),h=e.oClasses,m=e.oLanguage.oPaginate,g=e.oLanguage.oAria.paginate||{};try{f=t(o).find(n.activeElement).data("dt-idx")}catch(o){}(function n(a,r){for(var o,i,f=function(e){e.preventDefault(),t(e.currentTarget).hasClass("disabled")||p.page()==e.data.action||p.page(e.data.action).draw("page")},b=0,y=r.length;b<y;b++)if(o=r[b],Array.isArray(o))n(a,o);else{switch(d=c="",o){case"ellipsis":c="…",d="disabled";break;case"first":c=m.sFirst,d=o+(0<s?"":" disabled");break;case"previous":c=m.sPrevious,d=o+(0<s?"":" disabled");break;case"next":c=m.sNext,d=o+(s<u-1?"":" disabled");break;case"last":c=m.sLast,d=o+(s<u-1?"":" disabled");break;default:c=o+1,d=s===o?"active":""}c&&(i=-1!==d.indexOf("disabled"),i=t("<li>",{class:h.sPageButton+" "+d,id:0===l&&"string"==typeof o?e.sTableId+"_"+o:null}).append(t("<a>",{href:i?null:"#","aria-controls":e.sTableId,"aria-disabled":i?"true":null,"aria-label":g[o],role:"link","aria-current":"active"===d?"page":null,"data-dt-idx":o,tabindex:e.iTabIndex}).html(c)).appendTo(a),e.oApi._fnBindAction(i,{action:o},f))}})(t(o).empty().html('<ul class="pagination"/>').children("ul"),i),f!==a&&t(o).find("[data-dt-idx="+f+"]").trigger("focus")},r}),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(a,r){return a=a||window,r=r||e(a),n(a,r),t(r,a,a.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}(function(t,e,n,a){"use strict";var r=t.fn.dataTable,o=0,l=0,i=r.ext.buttons,s=null;function u(e,n,a){t.fn.animate?e.stop().fadeIn(n,a):(e.css("display","block"),a&&a.call(e))}function c(e,n,a){t.fn.animate?e.stop().fadeOut(n,a):(e.css("display","none"),a&&a.call(e))}function d(e,n){if(!(this instanceof d))return function(t){return new d(t,e).container()};!0===(n=void 0===n?{}:n)&&(n={}),Array.isArray(n)&&(n={buttons:n}),this.c=t.extend(!0,{},d.defaults,n),n.buttons&&(this.c.buttons=n.buttons),this.s={dt:new r.Api(e),buttons:[],listenKeys:"",namespace:"dtb"+o++},this.dom={container:t("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()}t.extend(d.prototype,{action:function(t,e){return t=this._nodeToButton(t),e===a?t.conf.action:(t.conf.action=e,this)},active:function(e,n){e=this._nodeToButton(e);var r=this.c.dom.button.active,o=t(e.node);return e.inCollection&&this.c.dom.collection.button&&this.c.dom.collection.button.active!==a&&(r=this.c.dom.collection.button.active),n===a?o.hasClass(r):(o.toggleClass(r,n===a||n),this)},add:function(t,e,n){var r=this.s.buttons;if("string"==typeof e){for(var o=e.split("-"),l=this.s,i=0,s=o.length-1;i<s;i++)l=l.buttons[+o[i]];r=l.buttons,e=+o[o.length-1]}return this._expandButton(r,t,t!==a?t.split:a,(t===a||t.split===a||0===t.split.length)&&l!==a,!1,e),n!==a&&!0!==n||this._draw(),this},collectionRebuild:function(t,e){var n=this._nodeToButton(t);if(e!==a){for(var r=n.buttons.length-1;0<=r;r--)this.remove(n.buttons[r].node);for(n.conf.prefixButtons&&e.unshift.apply(e,n.conf.prefixButtons),n.conf.postfixButtons&&e.push.apply(e,n.conf.postfixButtons),r=0;r<e.length;r++){var o=e[r];this._expandButton(n.buttons,o,o!==a&&o.config!==a&&o.config.split!==a,!0,o.parentConf!==a&&o.parentConf.split!==a,null,o.parentConf)}}this._draw(n.collection,n.buttons)},container:function(){return this.dom.container},disable:function(e){return e=this._nodeToButton(e),t(e.node).addClass(this.c.dom.button.disabled).prop("disabled",!0),this},destroy:function(){t("body").off("keyup."+this.s.namespace);for(var e=this.s.buttons.slice(),n=0,a=e.length;n<a;n++)this.remove(e[n].node);this.dom.container.remove();var r=this.s.dt.settings()[0];for(n=0,a=r.length;n<a;n++)if(r.inst===this){r.splice(n,1);break}return this},enable:function(e,n){return!1===n?this.disable(e):(n=this._nodeToButton(e),t(n.node).removeClass(this.c.dom.button.disabled).prop("disabled",!1),this)},index:function(t,e,n){e||(e="",n=this.s.buttons);for(var a=0,r=n.length;a<r;a++){var o=n[a].buttons;if(n[a].node===t)return e+a;if(o&&o.length&&null!==(o=this.index(t,a+"-",o)))return o}return null},name:function(){return this.c.name},node:function(e){return e?(e=this._nodeToButton(e),t(e.node)):this.dom.container},processing:function(e,n){var r=this.s.dt,o=this._nodeToButton(e);return n===a?t(o.node).hasClass("processing"):(t(o.node).toggleClass("processing",n),t(r.table().node()).triggerHandler("buttons-processing.dt",[n,r.button(e),r,t(e),o.conf]),this)},remove:function(e){var n=this._nodeToButton(e),a=this._nodeToHost(e),r=this.s.dt;if(n.buttons.length)for(var o=n.buttons.length-1;0<=o;o--)this.remove(n.buttons[o].node);return n.conf.destroying=!0,n.conf.destroy&&n.conf.destroy.call(r.button(e),r,t(e),n.conf),this._removeKey(n.conf),t(n.node).remove(),r=t.inArray(n,a),a.splice(r,1),this},text:function(e,n){function r(t){return"function"==typeof t?t(l,i,o.conf):t}var o=this._nodeToButton(e),l=(e=o.textNode,this.s.dt),i=t(o.node);return n===a?r(o.conf.text):(o.conf.text=n,e.html(r(n)),this)},_constructor:function(){var e=this,a=this.s.dt,r=a.settings()[0],o=this.c.buttons;r._buttons||(r._buttons=[]),r._buttons.push({inst:this,name:this.c.name});for(var l=0,i=o.length;l<i;l++)this.add(o[l]);a.on("destroy",function(t,n){n===r&&e.destroy()}),t("body").on("keyup."+this.s.namespace,function(t){var a;n.activeElement&&n.activeElement!==n.body||(a=String.fromCharCode(t.keyCode).toLowerCase(),-1!==e.s.listenKeys.toLowerCase().indexOf(a)&&e._keypress(a,t))})},_addKey:function(e){e.key&&(this.s.listenKeys+=(t.isPlainObject(e.key)?e.key:e).key)},_draw:function(t,e){t||(t=this.dom.container,e=this.s.buttons),t.children().detach();for(var n=0,a=e.length;n<a;n++)t.append(e[n].inserter),t.append(" "),e[n].buttons&&e[n].buttons.length&&this._draw(e[n].collection,e[n].buttons)},_expandButton:function(e,n,r,o,l,i,s){for(var u,c=this.s.dt,d=this.c.dom.collection,f=Array.isArray(n)?n:[n],p=0,h=(f=n===a?Array.isArray(r)?r:[r]:f).length;p<h;p++){var m=this._resolveExtends(f[p]);if(m)if(u=!(!m.config||!m.config.split),Array.isArray(m))this._expandButton(e,m,g!==a&&g.conf!==a?g.conf.split:a,o,s!==a&&s.split!==a,i,s);else{var g=this._buildButton(m,o,m.split!==a||m.config!==a&&m.config.split!==a,l);if(g){if(i!==a&&null!==i?(e.splice(i,0,g),i++):e.push(g),g.conf.buttons&&(g.collection=t("<"+d.container.content.tag+"/>"),g.conf._collection=g.collection,t(g.node).append(d.action.dropHtml),this._expandButton(g.buttons,g.conf.buttons,g.conf.split,!u,u,i,g.conf)),g.conf.split){g.collection=t("<"+d.container.tag+"/>"),g.conf._collection=g.collection;for(var b=0;b<g.conf.split.length;b++){var y=g.conf.split[b];"object"==typeof y&&(y.parent=s,y.collectionLayout===a&&(y.collectionLayout=g.conf.collectionLayout),y.dropup===a&&(y.dropup=g.conf.dropup),y.fade===a)&&(y.fade=g.conf.fade)}this._expandButton(g.buttons,g.conf.buttons,g.conf.split,!u,u,i,g.conf)}g.conf.parent=s,m.init&&m.init.call(c.button(g.node),c,t(g.node),m)}}}},_buildButton:function(e,n,r,o){function s(t){return"function"==typeof t?t(h,f,e):t}var u,c,d,f,p=this.c.dom,h=this.s.dt,m=t.extend(!0,{},p.button);if(n&&r&&p.collection.split?t.extend(!0,m,p.collection.split.action):o||n?t.extend(!0,m,p.collection.button):r&&t.extend(!0,m,p.split.button),e.spacer)return p=t("<"+m.spacer.tag+"/>").addClass("dt-button-spacer "+e.style+" "+m.spacer.className).html(s(e.text)),{conf:e,node:p,inserter:p,buttons:[],inCollection:n,isSplit:r,collection:null,textNode:p};if(e.available&&!e.available(h,e)&&!e.hasOwnProperty("html"))return!1;e.hasOwnProperty("html")?f=t(e.html):(c=function(e,n,a,r){r.action.call(n.button(a),e,n,a,r),t(n.table().node()).triggerHandler("buttons-action.dt",[n.button(a),n,a,r])},p=e.tag||m.tag,d=e.clickBlurs===a||e.clickBlurs,f=t("<"+p+"/>").addClass(m.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(t){t.preventDefault(),!f.hasClass(m.disabled)&&e.action&&c(t,h,f,e),d&&f.trigger("blur")}).on("keypress.dtb",function(t){13===t.keyCode&&(t.preventDefault(),!f.hasClass(m.disabled))&&e.action&&c(t,h,f,e)}),"a"===p.toLowerCase()&&f.attr("href","#"),"button"===p.toLowerCase()&&f.attr("type","button"),u=m.liner.tag?(p=t("<"+m.liner.tag+"/>").html(s(e.text)).addClass(m.liner.className),"a"===m.liner.tag.toLowerCase()&&p.attr("href","#"),f.append(p),p):(f.html(s(e.text)),f),!1===e.enabled&&f.addClass(m.disabled),e.className&&f.addClass(e.className),e.titleAttr&&f.attr("title",s(e.titleAttr)),e.attr&&f.attr(e.attr),e.namespace||(e.namespace=".dt-button-"+l++),e.config!==a&&e.config.split&&(e.split=e.config.split));var g,b,y,v,x,S;p=(p=this.c.dom.buttonContainer)&&p.tag?t("<"+p.tag+"/>").addClass(p.className).append(f):f;return this._addKey(e),this.c.buttonCreated&&(p=this.c.buttonCreated(e,p)),r&&(b=(g=n?t.extend(!0,this.c.dom.split,this.c.dom.collection.split):this.c.dom.split).wrapper,y=t("<"+b.tag+"/>").addClass(b.className).append(f),v=t.extend(e,{align:g.dropdown.align,attr:{"aria-haspopup":"dialog","aria-expanded":!1},className:g.dropdown.className,closeButton:!1,splitAlignClass:g.dropdown.splitAlignClass,text:g.dropdown.text}),this._addKey(v),x=function(e,n,a,r){i.split.action.call(n.button(y),e,n,a,r),t(n.table().node()).triggerHandler("buttons-action.dt",[n.button(a),n,a,r]),a.attr("aria-expanded",!0)},S=t('<button class="'+g.dropdown.className+' dt-button"></button>').html(g.dropdown.dropHtml).on("click.dtb",function(t){t.preventDefault(),t.stopPropagation(),S.hasClass(m.disabled)||x(t,h,S,v),d&&S.trigger("blur")}).on("keypress.dtb",function(t){13===t.keyCode&&(t.preventDefault(),S.hasClass(m.disabled)||x(t,h,S,v))}),0===e.split.length&&S.addClass("dtb-hide-drop"),y.append(S).attr(v.attr)),{conf:e,node:(r?y:f).get(0),inserter:r?y:p,buttons:[],inCollection:n,isSplit:r,inSplit:o,collection:null,textNode:u}},_nodeToButton:function(t,e){for(var n=0,a=(e=e||this.s.buttons).length;n<a;n++){if(e[n].node===t)return e[n];if(e[n].buttons.length){var r=this._nodeToButton(t,e[n].buttons);if(r)return r}}},_nodeToHost:function(t,e){for(var n=0,a=(e=e||this.s.buttons).length;n<a;n++){if(e[n].node===t)return e;if(e[n].buttons.length){var r=this._nodeToHost(t,e[n].buttons);if(r)return r}}},_keypress:function(e,n){var a;n._buttonsHandled||(a=function(r){for(var o,l,i=0,s=r.length;i<s;i++)o=r[i].conf,l=r[i].node,!o.key||o.key!==e&&(!t.isPlainObject(o.key)||o.key.key!==e||o.key.shiftKey&&!n.shiftKey||o.key.altKey&&!n.altKey||o.key.ctrlKey&&!n.ctrlKey||o.key.metaKey&&!n.metaKey)||(n._buttonsHandled=!0,t(l).click()),r[i].buttons.length&&a(r[i].buttons)})(this.s.buttons)},_removeKey:function(e){var n;e.key&&(e=(t.isPlainObject(e.key)?e.key:e).key,n=this.s.listenKeys.split(""),e=t.inArray(e,n),n.splice(e,1),this.s.listenKeys=n.join(""))},_resolveExtends:function(e){function n(n){for(var r=0;!t.isPlainObject(n)&&!Array.isArray(n);){if(n===a)return;if("function"==typeof n){if(!(n=n.call(l,s,e)))return!1}else if("string"==typeof n){if(!i[n])return{html:n};n=i[n]}if(30<++r)throw"Buttons: Too many iterations"}return Array.isArray(n)?n:t.extend({},n)}var r,o,l=this,s=this.s.dt;for(e=n(e);e&&e.extend;){if(!i[e.extend])throw"Cannot extend unknown button type: "+e.extend;var u=n(i[e.extend]);if(Array.isArray(u))return u;if(!u)return!1;var c=u.className;e.config!==a&&u.config!==a&&(e.config=t.extend({},u.config,e.config)),e=t.extend({},u,e),c&&e.className!==c&&(e.className=c+" "+e.className),e.extend=u.extend}var d=e.postfixButtons;if(d)for(e.buttons||(e.buttons=[]),r=0,o=d.length;r<o;r++)e.buttons.push(d[r]);var f=e.prefixButtons;if(f)for(e.buttons||(e.buttons=[]),r=0,o=f.length;r<o;r++)e.buttons.splice(r,0,f[r]);return e},_popover:function(a,r,o,l){function i(){x=!0,c(t(w),S.fade,function(){t(this).detach()}),t(y.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes()).attr("aria-expanded","false"),t("div.dt-button-background").off("click.dtb-collection"),d.background(!1,S.backgroundClassName,S.fade,I),t(e).off("resize.resize.dtb-collection"),t("body").off(".dtb-collection"),y.off("buttons-action.b-internal"),y.off("destroy")}var s,f,p,h,m,g,b,y=r,v=this.c,x=!1,S=t.extend({align:"button-left",autoClose:!1,background:!0,backgroundClassName:"dt-button-background",closeButton:!0,containerClassName:v.dom.collection.container.className,contentClassName:v.dom.collection.container.content.className,collectionLayout:"",collectionTitle:"",dropup:!1,fade:400,popoverTitle:"",rightAlignClassName:"dt-button-right",tag:v.dom.collection.container.tag},o),w=S.tag+"."+S.containerClassName.replace(/ /g,"."),I=r.node();!1===a?i():((v=t(y.buttons('[aria-haspopup="dialog"][aria-expanded="true"]').nodes())).length&&(I.closest(w).length&&(I=v.eq(0)),i()),v="",3===(o=t(".dt-button",a).length)?v="dtb-b3":2===o?v="dtb-b2":1===o&&(v="dtb-b1"),s=t("<"+S.tag+"/>").addClass(S.containerClassName).addClass(S.collectionLayout).addClass(S.splitAlignClass).addClass(v).css("display","none").attr({"aria-modal":!0,role:"dialog"}),a=t(a).addClass(S.contentClassName).attr("role","menu").appendTo(s),I.attr("aria-expanded","true"),I.parents("body")[0]!==n.body&&(I=n.body.lastChild),S.popoverTitle?s.prepend('<div class="dt-button-collection-title">'+S.popoverTitle+"</div>"):S.collectionTitle&&s.prepend('<div class="dt-button-collection-title">'+S.collectionTitle+"</div>"),S.closeButton&&s.prepend('<div class="dtb-popover-close">×</div>').addClass("dtb-collection-closeable"),u(s.insertAfter(I),S.fade),o=t(r.table().container()),b=s.css("position"),"container"!==S.span&&"dt-container"!==S.align||(I=I.parent(),s.css("width",o.width())),"absolute"===b?(v=t(I[0].offsetParent),r=I.position(),o=I.offset(),f=v.offset(),p=v.position(),h=e.getComputedStyle(v[0]),f.height=v.outerHeight(),f.width=v.width()+parseFloat(h.paddingLeft),f.right=f.left+f.width,f.bottom=f.top+f.height,v=r.top+I.outerHeight(),m=r.left,s.css({top:v,left:m}),h=e.getComputedStyle(s[0]),(g=s.offset()).height=s.outerHeight(),g.width=s.outerWidth(),g.right=g.left+g.width,g.bottom=g.top+g.height,g.marginTop=parseFloat(h.marginTop),g.marginBottom=parseFloat(h.marginBottom),S.dropup&&(v=r.top-g.height-g.marginTop-g.marginBottom),"button-right"!==S.align&&!s.hasClass(S.rightAlignClassName)||(m=r.left-g.width+I.outerWidth()),"dt-container"!==S.align&&"container"!==S.align||(m=m<r.left?-r.left:m)+g.width>f.width&&(m=f.width-g.width),p.left+m+g.width>t(e).width()&&(m=t(e).width()-g.width-p.left),o.left+m<0&&(m=-o.left),p.top+v+g.height>t(e).height()+t(e).scrollTop()&&(v=r.top-g.height-g.marginTop-g.marginBottom),p.top+v<t(e).scrollTop()&&(v=r.top+I.outerHeight()),s.css({top:v,left:m})):((b=function(){var n=t(e).height()/2,a=s.height()/2;s.css("marginTop",-1*(a=n<a?n:a))})(),t(e).on("resize.dtb-collection",function(){b()})),S.background&&d.background(!0,S.backgroundClassName,S.fade,S.backgroundHost||I),t("div.dt-button-background").on("click.dtb-collection",function(){}),S.autoClose&&setTimeout(function(){y.on("buttons-action.b-internal",function(t,e,n,a){a[0]!==I[0]&&i()})},0),t(s).trigger("buttons-popover.dt"),y.on("destroy",i),setTimeout(function(){x=!1,t("body").on("click.dtb-collection",function(e){var n,r;!x&&(n=t.fn.addBack?"addBack":"andSelf",r=t(e.target).parent()[0],!t(e.target).parents()[n]().filter(a).length&&!t(r).hasClass("dt-buttons")||t(e.target).hasClass("dt-button-background"))&&i()}).on("keyup.dtb-collection",function(t){27===t.keyCode&&i()}).on("keydown.dtb-collection",function(e){var r=t("a, button",a),o=n.activeElement;9===e.keyCode&&(-1===r.index(o)?(r.first().focus(),e.preventDefault()):e.shiftKey?o===r[0]&&(r.last().focus(),e.preventDefault()):o===r.last()[0]&&(r.first().focus(),e.preventDefault()))})},0))}}),d.background=function(e,r,o,l){o===a&&(o=400),l=l||n.body,e?u(t("<div/>").addClass(r).css("display","none").insertAfter(l),o):c(t("div."+r),o,function(){t(this).removeClass(r).remove()})},d.instanceSelector=function(e,n){var r,o,l;return e===a||null===e?t.map(n,function(t){return t.inst}):(r=[],o=t.map(n,function(t){return t.name}),(l=function(e){var a;if(Array.isArray(e))for(var i=0,s=e.length;i<s;i++)l(e[i]);else"string"==typeof e?-1!==e.indexOf(",")?l(e.split(",")):-1!==(a=t.inArray(e.trim(),o))&&r.push(n[a].inst):"number"==typeof e?r.push(n[e].inst):"object"==typeof e&&r.push(e)})(e),r)},d.buttonSelector=function(e,n){for(var r=[],o=function(t,e,n){for(var r,l,i=0,s=e.length;i<s;i++)(r=e[i])&&(t.push({node:r.node,name:r.conf.name,idx:l=n!==a?n+i:i+""}),r.buttons)&&o(t,r.buttons,l+"-")},l=function(e,n){var i=[],s=(o(i,n.s.buttons),t.map(i,function(t){return t.node}));if(Array.isArray(e)||e instanceof t)for(c=0,d=e.length;c<d;c++)l(e[c],n);else if(null===e||e===a||"*"===e)for(c=0,d=i.length;c<d;c++)r.push({inst:n,node:i[c].node});else if("number"==typeof e)n.s.buttons[e]&&r.push({inst:n,node:n.s.buttons[e].node});else if("string"==typeof e)if(-1!==e.indexOf(","))for(var u=e.split(","),c=0,d=u.length;c<d;c++)l(u[c].trim(),n);else if(e.match(/^\d+(\-\d+)*$/)){var f=t.map(i,function(t){return t.idx});r.push({inst:n,node:i[t.inArray(e,f)].node})}else if(-1!==e.indexOf(":name")){var p=e.replace(":name","");for(c=0,d=i.length;c<d;c++)i[c].name===p&&r.push({inst:n,node:i[c].node})}else t(s).filter(e).each(function(){r.push({inst:n,node:this})});else"object"==typeof e&&e.nodeName&&-1!==(f=t.inArray(e,s))&&r.push({inst:n,node:s[f]})},i=0,s=e.length;i<s;i++){var u=e[i];l(n,u)}return r},d.stripData=function(t,e){return"string"==typeof t&&(t=(t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")).replace(/<!\-\-.*?\-\->/g,""),e&&!e.stripHtml||(t=t.replace(/<[^>]*>/g,"")),e&&!e.trim||(t=t.replace(/^\s+|\s+$/g,"")),e&&!e.stripNewlines||(t=t.replace(/\n/g," ")),!e||e.decodeEntities)?s?s(t):(b.innerHTML=t,b.value):t},d.entityDecoder=function(t){s=t},d.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{action:{dropHtml:'<span class="dt-button-down-arrow">▼</span>'},container:{className:"dt-button-collection",content:{className:"",tag:"div"},tag:"div"}},button:{tag:"button",className:"dt-button",active:"dt-button-active",disabled:"disabled",spacer:{className:"dt-button-spacer",tag:"span"},liner:{tag:"span",className:""}},split:{action:{className:"dt-button-split-drop-button dt-button",tag:"button"},dropdown:{align:"split-right",className:"dt-button-split-drop",dropHtml:'<span class="dt-button-down-arrow">▼</span>',splitAlignClass:"dt-button-split-left",tag:"button"},wrapper:{className:"dt-button-split",tag:"div"}}}},t.extend(i,{collection:{text:function(t){return t.i18n("buttons.collection","Collection")},className:"buttons-collection",closeButton:!(d.version="2.4.2"),init:function(t,e,n){e.attr("aria-expanded",!1)},action:function(e,n,a,r){r._collection.parents("body").length?this.popover(!1,r):this.popover(r._collection,r),"keypress"===e.type&&t("a, button",r._collection).eq(0).focus()},attr:{"aria-haspopup":"dialog"}},split:{text:function(t){return t.i18n("buttons.split","Split")},className:"buttons-split",closeButton:!1,init:function(t,e,n){return e.attr("aria-expanded",!1)},action:function(t,e,n,a){this.popover(a._collection,a)},attr:{"aria-haspopup":"dialog"}},copy:function(t,e){if(i.copyHtml5)return"copyHtml5"},csv:function(t,e){if(i.csvHtml5&&i.csvHtml5.available(t,e))return"csvHtml5"},excel:function(t,e){if(i.excelHtml5&&i.excelHtml5.available(t,e))return"excelHtml5"},pdf:function(t,e){if(i.pdfHtml5&&i.pdfHtml5.available(t,e))return"pdfHtml5"},pageLength:function(e){var n=e.settings()[0].aLengthMenu,a=[],r=[];if(Array.isArray(n[0]))a=n[0],r=n[1];else for(var o=0;o<n.length;o++){var l=n[o];t.isPlainObject(l)?(a.push(l.value),r.push(l.label)):(a.push(l),r.push(l))}return{extend:"collection",text:function(t){return t.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},t.page.len())},className:"buttons-page-length",autoClose:!0,buttons:t.map(a,function(t,e){return{text:r[e],className:"button-page-length",action:function(e,n){n.page.len(t).draw()},init:function(e,n,a){function r(){o.active(e.page.len()===t)}var o=this;e.on("length.dt"+a.namespace,r),r()},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}),init:function(t,e,n){var a=this;t.on("length.dt"+n.namespace,function(){a.text(n.text)})},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}},spacer:{style:"empty",spacer:!0,text:function(t){return t.i18n("buttons.spacer","")}}}),r.Api.register("buttons()",function(t,e){e===a&&(e=t,t=a),this.selector.buttonGroup=t;var n=this.iterator(!0,"table",function(n){if(n._buttons)return d.buttonSelector(d.instanceSelector(t,n._buttons),e)},!0);return n._groupSelector=t,n}),r.Api.register("button()",function(t,e){return 1<(t=this.buttons(t,e)).length&&t.splice(1,t.length),t}),r.Api.registerPlural("buttons().active()","button().active()",function(t){return t===a?this.map(function(t){return t.inst.active(t.node)}):this.each(function(e){e.inst.active(e.node,t)})}),r.Api.registerPlural("buttons().action()","button().action()",function(t){return t===a?this.map(function(t){return t.inst.action(t.node)}):this.each(function(e){e.inst.action(e.node,t)})}),r.Api.registerPlural("buttons().collectionRebuild()","button().collectionRebuild()",function(t){return this.each(function(e){for(var n=0;n<t.length;n++)"object"==typeof t[n]&&(t[n].parentConf=e);e.inst.collectionRebuild(e.node,t)})}),r.Api.register(["buttons().enable()","button().enable()"],function(t){return this.each(function(e){e.inst.enable(e.node,t)})}),r.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(t){t.inst.disable(t.node)})}),r.Api.register("button().index()",function(){var t=null;return this.each(function(e){null!==(e=e.inst.index(e.node))&&(t=e)}),t}),r.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=t();return t(this.each(function(t){e=e.add(t.inst.node(t.node))})),e}),r.Api.registerPlural("buttons().processing()","button().processing()",function(t){return t===a?this.map(function(t){return t.inst.processing(t.node)}):this.each(function(e){e.inst.processing(e.node,t)})}),r.Api.registerPlural("buttons().text()","button().text()",function(t){return t===a?this.map(function(t){return t.inst.text(t.node)}):this.each(function(e){e.inst.text(e.node,t)})}),r.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(t){t.inst.node(t.node).trigger("click")})}),r.Api.register("button().popover()",function(t,e){return this.map(function(n){return n.inst._popover(t,this.button(this[0].node),e)})}),r.Api.register("buttons().containers()",function(){var e=t(),n=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var a=d.instanceSelector(n,t._buttons),r=0,o=a.length;r<o;r++)e=e.add(a[r].container())}),e}),r.Api.register("buttons().container()",function(){return this.containers().eq(0)}),r.Api.register("button().add()",function(t,e,n){var a=this.context;return a.length&&(a=d.instanceSelector(this._groupSelector,a[0]._buttons)).length&&a[0].add(e,t,n),this.button(this._groupSelector,t)}),r.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(t){t.destroy()}),this}),r.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(t){t.inst.remove(t.node)}),this}),r.Api.register("buttons.info()",function(e,n,r){var o=this;return!1===e?(this.off("destroy.btn-info"),c(t("#datatables_buttons_info"),400,function(){t(this).remove()}),clearTimeout(f),f=null):(f&&clearTimeout(f),t("#datatables_buttons_info").length&&t("#datatables_buttons_info").remove(),e=e?"<h2>"+e+"</h2>":"",u(t('<div id="datatables_buttons_info" class="dt-button-info"/>').html(e).append(t("<div/>")["string"==typeof n?"html":"append"](n)).css("display","none").appendTo("body")),r!==a&&0!==r&&(f=setTimeout(function(){o.buttons.info(!1)},r)),this.on("destroy.btn-info",function(){o.buttons.info(!1)})),this}),r.Api.register("buttons.exportData()",function(t){if(this.context.length)return y(new r.Api(this.context[0]),t)}),r.Api.register("buttons.exportInfo()",function(t){return{filename:p(t=t||{}),title:m(t),messageTop:g(this,t.message||t.messageTop,"top"),messageBottom:g(this,t.messageBottom,"bottom")}});var f,p=function(e){var n;return(n="function"==typeof(n="*"===e.filename&&"*"!==e.title&&e.title!==a&&null!==e.title&&""!==e.title?e.title:e.filename)?n():n)===a||null===n?null:(n=(n=-1!==n.indexOf("*")?n.replace("*",t("head > title").text()).trim():n).replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""))+(h(e.extension)||"")},h=function(t){return null===t||t===a?null:"function"==typeof t?t():t},m=function(e){return null===(e=h(e.title))?null:-1!==e.indexOf("*")?e.replace("*",t("head > title").text()||"Exported data"):e},g=function(e,n,a){return null===(n=h(n))?null:(e=t("caption",e.table().container()).eq(0),"*"===n?e.css("caption-side")!==a?null:e.length?e.text():"":n)},b=t("<textarea/>")[0],y=function(e,n){for(var r=t.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(t){return d.stripData(t,r)},footer:function(t){return d.stripData(t,r)},body:function(t){return d.stripData(t,r)}},customizeData:null},n),o=(n=e.columns(r.columns).indexes().map(function(t){var n=e.column(t).header();return r.format.header(n.innerHTML,t,n)}).toArray(),e.table().footer()?e.columns(r.columns).indexes().map(function(t){var n=e.column(t).footer();return r.format.footer(n?n.innerHTML:"",t,n)}).toArray():null),l=t.extend({},r.modifier),i=(l=(e.select&&"function"==typeof e.select.info&&l.selected===a&&e.rows(r.rows,t.extend({selected:!0},l)).any()&&t.extend(l,{selected:!0}),e.rows(r.rows,l).indexes().toArray()),(l=e.cells(l,r.columns)).render(r.orthogonal).toArray()),s=l.nodes().toArray(),u=n.length,c=[],f=0,p=0,h=0<u?i.length/u:0;p<h;p++){for(var m=[u],g=0;g<u;g++)m[g]=r.format.body(i[f],p,g,s[f]),f++;c[p]=m}return l={header:n,footer:o,body:c},r.customizeData&&r.customizeData(l),l};function v(t,e){return t=new r.Api(t),e=e||t.init().buttons||r.defaults.buttons,new d(t,e).container()}return t.fn.dataTable.Buttons=d,t.fn.DataTable.Buttons=d,t(n).on("init.dt plugin-init.dt",function(t,e){"dt"===t.namespace&&(t=e.oInit.buttons||r.defaults.buttons)&&!e._buttons&&new d(e,t).container()}),r.ext.feature.push({fnInit:v,cFeature:"B"}),r.ext.features&&r.ext.features.register("buttons",v),r}),function(t){var e,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(e){return t(e,window,document)}):"object"==typeof exports?(e=require("jquery"),n=function(t,e){e.fn.dataTable||require("datatables.net")(t,e),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e)},"undefined"==typeof window?module.exports=function(a,r,o,l){return a=a||window,r=r||e(a),n(a,r),t(r,a,a.document)}:(n(window,e),module.exports=t(e,window,window.document))):t(jQuery,window,document)}(function(t,e,n,a,r,o){"use strict";var l,i,s=t.fn.dataTable;function u(){return l||e.JSZip}function c(){return i||e.pdfMake}function d(t){var e="Sheet1";return t.sheetName?t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,""):e}function f(t,e){for(var n=m(e),a=t.buttons.exportData(e.exportOptions),r=e.fieldBoundary,l=e.fieldSeparator,i=new RegExp(r,"g"),s=e.escapeChar!==o?e.escapeChar:"\\",u=function(t){for(var e="",n=0,a=t.length;n<a;n++)0<n&&(e+=l),e+=r?r+(""+t[n]).replace(i,s+r)+r:t[n];return e},c=(t=e.header?u(a.header)+n:"",e=e.footer&&a.footer?n+u(a.footer):"",[]),d=0,f=a.body.length;d<f;d++)c.push(u(a.body[d]));return{str:t+c.join(n)+e,rows:c.length}}function p(){var t;return-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera")&&!!((t=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/))&&1<t.length&&+t[1]<603.1)}s.Buttons.pdfMake=function(t){if(!t)return c();i=t},s.Buttons.jszip=function(t){if(!t)return u();l=t};var h=function(t){var e,n,a,r,o,l,i,s,u,c;if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)))return c=t.document,e=function(){return t.URL||t.webkitURL||t},n=c.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in n,r=/constructor/i.test(t.HTMLElement)||t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},i=function(t){setTimeout(function(){"string"==typeof t?e().revokeObjectURL(t):t.remove()},4e4)},s=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},c=(u=function(u,c,d){d||(u=s(u));var f,p,h=this,m=(d="application/octet-stream"===u.type,function(){for(var t=h,e="writestart progress write writeend".split(" "),n=(e=[].concat(e)).length;n--;){var a=t["on"+e[n]];if("function"==typeof a)try{a.call(t,t)}catch(t){l(t)}}});h.readyState=h.INIT,a?(f=e().createObjectURL(u),setTimeout(function(){var t,e;n.href=f,n.download=c,t=n,e=new MouseEvent("click"),t.dispatchEvent(e),m(),i(f),h.readyState=h.DONE})):(o||d&&r)&&t.FileReader?((p=new FileReader).onloadend=function(){var e=o?p.result:p.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),h.readyState=h.DONE,m()},p.readAsDataURL(u),h.readyState=h.INIT):(f=f||e().createObjectURL(u),!d&&t.open(f,"_blank")||(t.location.href=f),h.readyState=h.DONE,m(),i(f))}).prototype,"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=s(t)),navigator.msSaveOrOpenBlob(t,e)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(t,e,n){return new u(t,e||t.name||"download",n)})}("undefined"!=typeof self&&self||void 0!==e&&e||this.content),m=(s.fileSave=h,function(t){return t.newline||(navigator.userAgent.match(/Windows/)?"\r\n":"\n")});function g(t){for(var e="A".charCodeAt(0),n="Z".charCodeAt(0)-e+1,a="";0<=t;)a=String.fromCharCode(t%n+e)+a,t=Math.floor(t/n)-1;return a}try{var b,y=new XMLSerializer}catch(a){}function v(e,n,a){var r=e.createElement(n);return a&&(a.attr&&t(r).attr(a.attr),a.children&&t.each(a.children,function(t,e){r.appendChild(e)}),null!==a.text)&&a.text!==o&&r.appendChild(e.createTextNode(a.text)),r}var x={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><definedNames/></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode=""£"#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="68"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="14" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},S=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64},{match:/^[\d]{4}\-[01][\d]\-[0123][\d]$/,style:67,fmt:function(t){return Math.round(25569+Date.parse(t)/864e5)}}];return s.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(e,a,r,o){this.processing(!0);var l=this,i=f(a,o),s=a.buttons.exportInfo(o),u=m(o),c=i.str,d=t("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});s.title&&(c=s.title+u+u+c),s.messageTop&&(c=s.messageTop+u+u+c),s.messageBottom&&(c=c+u+u+s.messageBottom),o.customize&&(c=o.customize(c,o,a)),u=t("<textarea readonly/>").val(c).appendTo(d);if(n.queryCommandSupported("copy")){d.appendTo(a.table().container()),u[0].focus(),u[0].select();try{var p=n.execCommand("copy");if(d.remove(),p)return a.buttons.info(a.i18n("buttons.copyTitle","Copy to clipboard"),a.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},i.rows),2e3),void this.processing(!1)}catch(e){}}function h(){g.off("click.buttons-copy"),t(n).off(".buttons-copy"),a.buttons.info(!1)}s=t("<span>"+a.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(d);var g=(a.buttons.info(a.i18n("buttons.copyTitle","Copy to clipboard"),s,0),u[0].focus(),u[0].select(),t(s).closest(".dt-button-info"));g.on("click.buttons-copy",h),t(n).on("keydown.buttons-copy",function(t){27===t.keyCode&&(h(),l.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){h(),l.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*"},s.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return e.FileReader!==o&&e.Blob},text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,a,r){this.processing(!0);var o=f(e,r).str,l=e.buttons.exportInfo(r),i=r.charset;r.customize&&(o=r.customize(o,r,e)),i=!1!==i?(i=i||n.characterSet||n.charset)&&";charset="+i:"",r.bom&&(o=String.fromCharCode(65279)+o),h(new Blob([o],{type:"text/csv"+i}),l.filename,!0),this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},s.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return e.FileReader!==o&&u()!==o&&!p()&&y},text:function(t){return t.i18n("buttons.excel","Excel")},action:function(n,a,r,l){function i(e){return e=x[e],t.parseXML(e)}function s(t){m=v(D,"row",{attr:{r:p=I+1}});for(var e=0,n=t.length;e<n;e++){var a=g(e)+""+p,r=null;if(null===t[e]||t[e]===o||""===t[e]){if(!0!==l.createEmptyCells)continue;t[e]=""}var i=t[e];t[e]="function"==typeof t[e].trim?t[e].trim():t[e];for(var s=0,u=S.length;s<u;s++){var c=S[s];if(t[e].match&&!t[e].match(/^0\d+/)&&t[e].match(c.match)){var d=t[e].replace(/[^\d\.\-]/g,"");c.fmt&&(d=c.fmt(d)),r=v(D,"c",{attr:{r:a,s:c.style},children:[v(D,"v",{text:d})]});break}}r=r||("number"==typeof t[e]||t[e].match&&t[e].match(/^-?\d+(\.\d+)?([eE]\-?\d+)?$/)&&!t[e].match(/^0\d+/)?v(D,"c",{attr:{t:"n",r:a},children:[v(D,"v",{text:t[e]})]}):(i=i.replace?i.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):i,v(D,"c",{attr:{t:"inlineStr",r:a},children:{row:v(D,"is",{children:{row:v(D,"t",{text:i,attr:{"xml:space":"preserve"}})}})}}))),m.appendChild(r)}C.appendChild(m),I++}function c(e,n){var a=t("mergeCells",D);a[0].appendChild(v(D,"mergeCell",{attr:{ref:"A"+e+":"+g(n)+e}})),a.attr("count",parseFloat(a.attr("count"))+1),t("row:eq("+(e-1)+") c",D).attr("s","51")}this.processing(!0);var f,p,m,w=this,I=0,D=i("xl/worksheets/sheet1.xml"),C=D.getElementsByTagName("sheetData")[0],_={_rels:{".rels":i("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":i("xl/_rels/workbook.xml.rels")},"workbook.xml":i("xl/workbook.xml"),"styles.xml":i("xl/styles.xml"),worksheets:{"sheet1.xml":D}},"[Content_Types].xml":i("[Content_Types].xml")},T=a.buttons.exportData(l.exportOptions),F=(l.customizeData&&l.customizeData(T),a.buttons.exportInfo(l));F.title&&(s([F.title]),c(I,T.header.length-1)),F.messageTop&&(s([F.messageTop]),c(I,T.header.length-1)),l.header&&(s(T.header),t("row:last c",D).attr("s","2"));for(var A=I,k=0,B=T.body.length;k<B;k++)s(T.body[k]);f=I,l.footer&&T.footer&&(s(T.footer),t("row:last c",D).attr("s","2")),F.messageBottom&&(s([F.messageBottom]),c(I,T.header.length-1));var L=v(D,"cols");t("worksheet",D).prepend(L);for(var N=0,P=T.header.length;N<P;N++)L.appendChild(v(D,"col",{attr:{min:N+1,max:N+1,width:function(t,e){var n=t.header[e].length;t.footer&&t.footer[e].length>n&&(n=t.footer[e].length);for(var a=0,r=t.body.length;a<r;a++){var l,i=t.body[a][e];if(40<(n=n<(l=(-1!==(i=null!==i&&i!==o?i.toString():"").indexOf("\n")?((l=i.split("\n")).sort(function(t,e){return e.length-t.length}),l[0]):i).length)?l:n))return 54}return 6<(n*=1.35)?n:6}(T,N),customWidth:1}}));var R=_.xl["workbook.xml"];t("sheets sheet",R).attr("name",d(l)),l.autoFilter&&(t("mergeCells",D).before(v(D,"autoFilter",{attr:{ref:"A"+A+":"+g(T.header.length-1)+f}})),t("definedNames",R).append(v(R,"definedName",{attr:{name:"_xlnm._FilterDatabase",localSheetId:"0",hidden:1},text:d(l)+"!$A$"+A+":"+g(T.header.length-1)+f}))),l.customize&&l.customize(_,l,a),0===t("mergeCells",D).children().length&&t("mergeCells",D).remove();A={compression:"DEFLATE",type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};var j=(function n(a,r){b===o&&(b=-1===y.serializeToString((new e.DOMParser).parseFromString(x["xl/worksheets/sheet1.xml"],"text/xml")).indexOf("xmlns:r")),t.each(r,function(e,r){if(t.isPlainObject(r))n(a.folder(e),r);else{if(b){for(var o,l=r.childNodes[0],i=[],s=l.attributes.length-1;0<=s;s--){var u=l.attributes[s].nodeName,c=l.attributes[s].nodeValue;-1!==u.indexOf(":")&&(i.push({name:u,value:c}),l.removeAttribute(u))}for(s=0,o=i.length;s<o;s++){var d=r.createAttribute(i[s].name.replace(":","_dt_b_namespace_token_"));d.value=i[s].value,l.setAttributeNode(d)}}var f=y.serializeToString(r);f=(f=b?(f=(f=-1===f.indexOf("<?xml")?'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+f:f).replace(/_dt_b_namespace_token_/g,":")).replace(/xmlns:NS[\d]+="" NS[\d]+:/g,""):f).replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>");a.file(e,f)}})}(R=new(u()),_),F.filename);175<j&&(j=j.substr(0,175)),R.generateAsync?R.generateAsync(A).then(function(t){h(t,j),w.processing(!1)}):(h(R.generate(A),j),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*",createEmptyCells:!1,autoFilter:!1,sheetName:""},s.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return e.FileReader!==o&&c()},text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(e,n,a,r){this.processing(!0);var l=n.buttons.exportData(r.exportOptions),i=n.buttons.exportInfo(r),s=[];r.header&&s.push(t.map(l.header,function(t){return{text:"string"==typeof t?t:t+"",style:"tableHeader"}}));for(var u=0,d=l.body.length;u<d;u++)s.push(t.map(l.body[u],function(t){return{text:"string"==typeof(t=null!==t&&t!==o?t:"")?t:t+"",style:u%2?"tableBodyEven":"tableBodyOdd"}}));r.footer&&l.footer&&s.push(t.map(l.footer,function(t){return{text:"string"==typeof t?t:t+"",style:"tableFooter"}}));var f={pageSize:r.pageSize,pageOrientation:r.orientation,content:[{table:{headerRows:1,body:s},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}};i.messageTop&&f.content.unshift({text:i.messageTop,style:"message",margin:[0,0,0,12]}),i.messageBottom&&f.content.push({text:i.messageBottom,style:"message",margin:[0,0,0,12]}),i.title&&f.content.unshift({text:i.title,style:"title",margin:[0,0,0,12]}),r.customize&&r.customize(f,r,n),n=c().createPdf(f);"open"!==r.download||p()?n.download(i.filename):n.open(),this.processing(!1)},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,messageTop:"*",messageBottom:"*",customize:null,download:"download"},s});$.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 n,a=document.createElement("canvas");e.appendChild(a),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(a);var i=a.getContext("2d");a.width=a.height=t.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,a.style.width=a.style.height=[t.size,"px"].join(""),a.width=a.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,n){var a=(n=Math.min(Math.max(-1,n||0),1))<=0;i.beginPath(),i.arc(0,0,o,0,2*Math.PI*n,a),i.strokeStyle=e,i.lineWidth=t,i.stroke()},d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,10)},h=function(){t.scaleColor&&function(){var e,n;i.lineWidth=1,i.fillStyle=t.scaleColor,i.save();for(var a=24;a>0;--a)a%6==0?(n=t.scaleLength,e=0):(n=.6*t.scaleLength,e=t.scaleLength-n),i.fillRect(-t.size/2+e,0,n,1),i.rotate(Math.PI/12);i.restore()}(),t.trackColor&&s(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return a},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 a;t.scaleColor||t.trackColor?i.getImageData&&i.putImageData?n?i.putImageData(n,0,0):(h(),n=i.getImageData(0,0,t.size*r,t.size*r)):(this.clear(),h()):this.clear(),i.lineCap=t.lineCap,a="function"==typeof t.barColor?t.barColor(e):t.barColor,s(a,t.lineWidth,e/100)}.bind(this),this.animate=function(e,n){var a=Date.now();t.onStart(e,n);var i=function(){var r=Math.min(Date.now()-a,t.animate.duration),o=t.easing(this,r,e,n-e,t.animate.duration);this.draw(o),t.onStep(e,n,o),r>=t.animate.duration?t.onStop(e,n):d(i)}.bind(this);d(i)}.bind(this)},n=function(e,n){var a={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:600,enabled:!0},easing:function(e,t,n,a,i){return(t/=i/2)<1?a/2*t*t+n:-a/2*(--t*(t-2)-1)+n},onStart:function(e,t){},onStep:function(e,t,n){},onStop:function(e,t){}};if(void 0!==t)a.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");a.renderer=SVGRenderer}var i={},r=0,o=function(){for(var t in this.el=e,this.options=i,a)a.hasOwnProperty(t)&&(i[t]=n&&void 0!==n[t]?n[t]:a[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=a.easing,"number"==typeof i.animate&&(i.animate={duration:i.animate,enabled:!0}),"boolean"!=typeof i.animate||i.animate||(i.animate={duration:600,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()};e.fn.easyPieChart=function(t){return this.each(function(){var a;e.data(this,"easyPieChart")||(a=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new n(this,a)))})}});
/*!
* clipboard.js 2.0.11 (https://clipboardjs.com/)
* Copyright 2022 by Zeno Rocha
* Licensed under MIT (https://github.com/zenorocha/clipboard.js/blob/master/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),r=n.n(e);function c(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){t=r()(t);return c("cut"),t};function o(t,e){var n,o,t=(n=t,o="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[o?"right":"left"]="-9999px",o=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(o,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=r()(t),c("copy"),t.remove(),e}var f=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=o(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=o(t.value,e):(n=r()(t),c("copy")),n};function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,e=t.target,t=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==l(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return t?f(t,{container:o}):e?"cut"===n?a(e):f(e,{container:o}):void 0};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,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)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=v(n);return t=o?(t=v(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this,!(t=t)||"object"!==p(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){t="data-clipboard-".concat(t);if(e.hasAttribute(t))return e.getAttribute(t)}var b=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(r,i());var t,e,n,o=h(r);function r(t,e){var n;return function(t){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=r,n=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(t,e)}},{key:"cut",value:function(t){return a(t)}},{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof t?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=u()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",t=s({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return m("action",t)}},{key:"defaultTarget",value:function(t){t=m("target",t);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return m("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&d(t.prototype,e),n&&d(t,n),r}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var u=n(828);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=u(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},879:function(t,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)}},370:function(t,e,n){var f=n(879),l=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!f.string(e))throw new TypeError("Second argument must be a String");if(!f.fn(n))throw new TypeError("Third argument must be a Function");if(f.node(t))return c=e,a=n,(u=t).addEventListener(c,a),{destroy:function(){u.removeEventListener(c,a)}};if(f.nodeList(t))return o=t,r=e,i=n,Array.prototype.forEach.call(o,function(t){t.addEventListener(r,i)}),{destroy:function(){Array.prototype.forEach.call(o,function(t){t.removeEventListener(r,i)})}};if(f.string(t))return t=t,e=e,n=n,l(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,u,c,a}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,u=o.length;i<u;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},r={},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o(686).default;function o(t){if(r[t])return r[t].exports;var e=r[t]={exports:{}};return n[t](e,e.exports,o),e.exports}var n,r});
/*!
* 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 r=e("#content"),i=".dropdown-submenu";return this.each(function(){e(this).on("contextmenu",function(r){if(e(n.menuSelector).find(i).removeClass("right"),!e(r.target).parents("tr").hasClass("directory_go_up")&&!e(r.target).parents("tr").find("td.dataTables_empty").length)return r.ctrlKey||r.altKey||r.shiftKey?(r.preventDefault(),r.stopPropagation(),"function"==typeof t.getSelection&&t.getSelection().removeAllRanges(),void e(r.target).parents("tr").find('td.ui_checked_checkbox input[type="checkbox"]').trigger("click")):(___contextmenu__triggered___=1,e(n.menuSelector).data("invokedOn",e(r.target)).show(0,!1,function(){n.menuSelectorTriggered.call(this,e(this).data("invokedOn"),e(r.target)),delete ___contextmenu__triggered___}).css({position:"absolute",left:o(e("body").data("mousePageX"),"width","scrollLeft",r),top:o(e("body").data("mousePageY"),"height","scrollTop",r)}).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 r=e(this).data("invokedOn"),i=e(t.target);n.menuSelected.call(this,r,i,t),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);r.preventDefault()})});function o(o,a,c,l){var d=e(t)[c](),s=r.scrollTop(),u=parseInt(r.css("margin-left")),f=content_page_calc_width(),_=t.innerHeight,g=o-("width"===a?u:0)+d,h=e(n.menuSelector).outerWidth(),p=e(n.menuSelector).outerHeight(),m=e($v__fm__container_fluid).offset().top,v=e($v__fm__container_fluid).offset().left;if("height"===a)if(g-=m,p>_-o&&p/1.6<_-o)g-=p/2;else if(_<o+p){var y=0;o<p&&(y=parseInt(p-o)+m+s),g-=p-m-s-y}var b=1.8*h;return"width"===a&&f<o+b&&b<o-v&&(g-=h,e(n.menuSelector).find(i).addClass("right")),g}}}(jQuery,window);
/*!
* PJAX (https://github.com/defunkt/jquery-pjax)
* Copyright 2012 Chris Wanstrath
* Licensed under MIT
*/
!function(t){function e(e,r,n){return n=x(r,n),this.on("click.pjax",e,function(e){var r=n;r.container||((r=t.extend({},n)).container=t(this).attr("data-pjax")),a(e,r)})}function a(e,a,r){r=x(a,r);var o=e.currentTarget,i=t(o);if("A"!==o.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==o.protocol||location.hostname!==o.hostname||o.href.indexOf("#")>-1&&g(o)==g(location)||e.isDefaultPrevented())){var s={url:o.href,container:i.attr("data-pjax"),target:o},c=t.extend({},s,r),l=t.Event("pjax:click");i.trigger(l,[c]),l.isDefaultPrevented()||(n(c),e.preventDefault(),i.trigger("pjax:clicked",[c]))}}function r(e,a,r){r=x(a,r);var o=e.currentTarget,i=t(o);if("FORM"!==o.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(i.attr("method")||"GET").toUpperCase(),url:i.attr("action"),container:i.attr("data-pjax"),target:o};if("GET"!==s.type&&void 0!==window.FormData){var c=i.attr("enctype")&&i.attr("enctype").indexOf("form-data")>-1?0:1;s.data=c?i.serialize():new FormData(i[0]),s.processData=!1,s.contentType=!1}else{if(i.find(":file").length)return;s.data=i.serializeArray()}n(t.extend({},s,r)),e.preventDefault()}function n(e){e=t.extend(!0,{},t.ajaxSettings,n.defaults,e),t.isFunction(e.url)&&(e.url=e.url());var a=m(e.url).hash,r=t.type(e.container);if("string"!==r)throw"expected string value for 'container' option; got "+r;var o,s=e.context=t(e.container);if(!s.length)throw"the container selector '"+e.container+"' did not match anything";function c(a,r,n){n||(n={}),n.relatedTarget=e.target;var o=t.Event(a,n);return s.trigger(o,r),!o.isDefaultPrevented()}e.data||(e.data={}),e.beforeSend=function(r,n){"GET"!==n.type&&(n.timeout=0);var i=plugins.pjax.headers.send.get();if(!t.isEmptyObject(i))for(const t in i)r.setRequestHeader(t+"",i[t]);if(r.setRequestHeader("x-pjax","true"),r.setRequestHeader("x-pjax-container",e.container),r.setRequestHeader("x-pjax-url",e.url),!c("pjax:beforeSend",[r,n]))return!1;n.timeout>0&&(o=setTimeout(function(){c("pjax:timeout",[r,e])&&r.abort("timeout")},n.timeout),n.timeout=0);var s=m(n.url);a&&(s.hash=a),e.requestUrl=v(s)},e.complete=function(t,a){o&&clearTimeout(o),c("pjax:complete",[t,a,e]),c("pjax:end",[t,e])},e.error=function(t,a,r){var n=y("",t,e),o=c("pjax:error",[t,a,r,e]);"GET"==e.type&&"abort"!==a&&o&&i(n.url)},e.success=function(r,o,i){if(session.status(r)&&!v___theme_reload&&!snippets.pjaxHooks(r,"csf")){var l=n.state,u="function"==typeof t.pjax.defaults.version?t.pjax.defaults.version():t.pjax.defaults.version,p=i.getResponseHeader("x-pjax-version"),d=y(r,i,e),h=m(d.url);if(a&&(h.hash=a,d.url=h.href),u&&p&&u!==p)return theme_open_new_tab(d.url),void page_remove_progress();if(!d.contents){var v=XHR.headers(i)[1],g=i.getResponseHeader("Content-Disposition");if(g=g&&"attachment"===g.toLowerCase()?1:0,vars.previous_request&&g){var x=t(vars.previous_request.currentTarget).serialize();return window.location.href=vars.previous_request.currentTarget.action+"?"+x,plugins.pjax.page.link.get(location.href),void(vars.previous_request=String())}return r.includes("data-predownload")||!Test.strContains(v,"text/html")&&!Test.strContains(v,"text/plain")?(theme_open_new_tab(h.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(d.url),void page_remove_progress()}if(n.state={id:e.id||f(),url:d.url,title:d.title,container:e.container,fragment:e.fragment,timeout:e.timeout},e.push||e.replace){var _=(d.url.endsWith("/")||Test.strContains(d.url,".cgi")||Test.strContains(d.url,"?")||Test.strContains(d.url,"&")?d.url:d.url+"/")+(Test.strContains(d.url,$__theme_navigation)?"":(Test.strContains(d.url,"?")?"&":"?")+$__theme_navigation);if(1===v___theme_pjax_call){if("/"===d.url){var j=String();try{var w=URI(v___location_previous).path();w&&"/"!==w&&(j=w)}catch(t){}_=link_type_convert(j||v___location_prefix+"/"+vars.pages.dashboard,2)}"string"==typeof v___module&&(_=_.replaceAll(/(?<!:)([/]+)/g,"/")),window.history.replaceState(n.state,d.title,_)}else link_type_convert(location.href,1)===n.state.url&&vars.pjax.cache.disabled(n.state.url)||vars.ajax.progressing||("string"==typeof v___module&&(_=_.replaceAll(/(?<!:)([/]+)/g,"/")),window.history.pushState(n.state,d.title,_))}if(t.contains(e.container,document.activeElement))try{document.activeElement.blur()}catch(t){}c("pjax:beforeReplace",[d.contents,e],{state:n.state,previousState:l}),1===vars.pjax.status.replace_contents()&&-1!==vars.pjax.status.replace_contents()&&s.html(d.contents);var b=s.find("input[autofocus], textarea[autofocus]").last()[0];b&&document.activeElement!==b&&b.focus(),function(e){if(!e)return;var a=t("script[src]");e.each(function(){var e=this.src;if(!a.filter(function(){return this.src===e}).length){var r=document.createElement("script"),n=t(this).attr("type");n&&(r.type=n),r.src=t(this).attr("src"),document.head.appendChild(r)}})}(d.scripts);var T=e.scrollTo;if(a){var C=decodeURIComponent(a.slice(1)),E=document.getElementById(C)||document.getElementsByName(C)[0];E&&(T=t(E).offset().top)}"number"==typeof T&&t(window).scrollTop(T),c("pjax:success",[r,o,i,e])}},n.state||(n.state={id:f(),url:window.location.href,title:document.title,container:e.container,fragment:e.fragment,timeout:e.timeout},window.history.replaceState(n.state,document.title)),d(n.xhr),n.options=e;var l=n.xhr=t.ajax(e);return l.readyState>0&&!v___theme_ajax_error&&(e.push&&!e.replace&&(1!==v___theme_pjax_call&&C(n.state.id,[e.container,h(s)]),v___location_previous=location.href,v___module_previous=v___module||""),c("pjax:start",[l,e]),c("pjax:send",[l,e])),n.xhr}function o(e,a){var r={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return n(t.extend(r,x(e,a)))}function i(t){window.history.replaceState(null,"",n.state.url),window.location.replace(t)}var s=!0,c=window.location.href,l=window.history.state;function u(e){var a=e&&e.state&&e.state.url&&vars.pjax.cache.disabled(e.state.url);if(vars.h.selector.content.get().hasClass("progressing")||a){if(a)return void plugins.pjax.page.link.get(e.state.url);if(!unbuffered_header_processor_allow_popstate())return void window.history.go(1)}if(page.handle.content.preloader.processing())return theme.veiled(1),void theme_reload(1);s||d(n.xhr);var r,o=n.state,l=e.state;if(l&&l.container){if(s&&c==l.url)return;if(o){if(o.id===l.id)return;r=o.id<l.id?"forward":"back"}var u=w[l.id]||[],p=u[0]||l.container,f=t(p),v=u[1];if(f.length){o&&function(t,e,a){var r,o;w[e]=a,"forward"===t?(r=T,o=b):(r=b,o=T);r.push(e),(e=o.pop())&&delete w[e];E(r,n.defaults.maxCacheLength)}(r,o.id,[p,h(f)]);var m=t.Event("pjax:popstate",{state:l,hasContents:v?1:0,direction:r});f.trigger(m);var g={id:l.id,url:l.url,container:p,push:!1,fragment:l.fragment,timeout:l.timeout,scrollTo:!1};if(v){f.trigger("pjax:start",[null,g]),n.state=l,l.title&&(document.title=l.title);var x=t.Event("pjax:beforeReplace",{state:l,previousState:o});f.trigger(x,[v,g]),f.html(v),f.trigger("pjax:end",[null,g])}else n(g);f[0].offsetHeight,theme_title_generate()}else i(location.href)}s=!1}function p(e){var a=t.isFunction(e.url)?e.url():e.url,r=e.type?e.type.toUpperCase():"GET",n=t("<form>",{method:"GET"===r?"GET":"POST",action:a,style:"display:none"});"GET"!==r&&"POST"!==r&&n.append(t("<input>",{type:"hidden",name:"_method",value:r.toLowerCase()}));var o=e.data;if("string"==typeof o)t.each(o.split("&"),function(e,a){var r=a.split("=");n.append(t("<input>",{type:"hidden",name:r[0],value:r[1]}))});else if(t.isArray(o))t.each(o,function(e,a){n.append(t("<input>",{type:"hidden",name:a.name,value:a.value}))});else if("object"==typeof o){var i;for(i in o)n.append(t("<input>",{type:"hidden",name:i,value:o[i]}))}t(document.body).append(n),n.submit()}function d(e){e&&e.readyState<4&&(e.onreadystatechange=t.noop,e.abort())}function f(){return(new Date).getTime()}function h(t){var e=t.clone();return e.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),e.contents()}function v(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),t.href.replace(/\?($|#)/,"$1")}function m(t){var e=document.createElement("a");return e.href=t,e}function g(t){return t.href.replace(/#.*/,"")}function x(e,a){return e&&a?((a=t.extend({},a)).container=e,a):t.isPlainObject(e)?e:{container:e}}function _(t,e){return t.filter(e).add(t.find(e))}function j(e){return t.parseHTML(e,document,!0)}function y(e,a,r){var n={},o=/<html/i.test(e),i=e.match(/<html\s+data-redirect="(.*?)"/),s=String();i&&i[1]&&(s=i[1]);var c,l,u=a.getResponseHeader("x-pjax-url");if(n.url=u?v(m(u)):r.requestUrl,s&&(n.url=s),o){l=t(j(e.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0]));var p=e.match(/<body[^>]*>([\s\S.]*)<\/body>/i);c=p&&p.length?t(j(p[0])):t(j(extract_content(e,"<body","</body>",0)))}else l=c=t(j(e));if(0===c.length)return n;if(n.title=_(l,"title").last().text(),r.fragment){var d=String();(d="body"===r.fragment?c:_(c,r.fragment).first()).length&&(n.contents="body"===r.fragment?d:d.contents(),n.title||(n.title=d.attr("title")||d.data("title")))}else o||(n.contents=c);return n.contents&&(n.contents=n.contents.not(function(){return t(this).is("title")}),n.contents.find("title").remove(),n.scripts=_(n.contents,"script[src]").remove(),n.contents=n.contents.not(n.scripts)),n.title&&(n.title=t.trim(n.title)),n}l&&l.container&&(n.state=l),"state"in window.history&&(s=!1);var w={},b=[],T=[];function C(e,a,r){vars.pjax.cache.disabled()&&!r||(r&&(e=t.pjax.state.id,a=[t.pjax.options.container,h(r[0])],t.pjax.state={id:f(),url:r[1],title:r[2],container:t.pjax.options.container,fragment:t.pjax.options.fragment,timeout:t.pjax.options.timeout},window.history.pushState(t.pjax.state,r[2],r[1])),w[e]=a,T.push(e),E(b,0),E(T,n.defaults.maxCacheLength))}function E(t,e){for(;t.length>e;)delete w[t.shift()]}function S(){return t("meta").filter(function(){var e=t(this).attr("http-equiv");return e&&"x-pjax-version"===e.toLowerCase()}).attr("content")}function k(){t.fn.pjax=e,t.pjax=n,t.pjax.enable=t.noop,t.pjax.disable=q,t.pjax.click=a,t.pjax.submit=r,t.pjax.reload=o,t.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:10,version:S},t(window).on("popstate.pjax",u)}function q(){t.fn.pjax=function(){return this},t.pjax=p,t.pjax.enable=k,t.pjax.disable=t.noop,t.pjax.click=t.noop,t.pjax.submit=t.noop,t.pjax.reload=function(){window.location.reload()},t(window).off("popstate.pjax",u)}n.cache=C,t.event.props&&t.inArray("state",t.event.props)<0?t.event.props.push("state"):"state"in t.Event.prototype||t.event.addProp("state"),t.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),t.support.pjax?k():q()}(jQuery);
/*!
* Malihu Scrollbar Plugin 3.1.5 (https://github.com/malihu/malihu-custom-scrollbar-plugin)
* Copyright 2014 Manos Malihutsakis
* Licensed under MIT
*/
!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)}})}),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,b,C,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,se,ce,de;se="function"==typeof define&&define.amd,ce="undefined"!=typeof module&&module.exports,de="https:"==document.location.protocol?"https:":"http:",se||(ce?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+de+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={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}},r=0,s={},c=window.attachEvent&&!window.addEventListener?1:0,d=!1,u=["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"],f={init:function(t){t=e.extend(!0,{},i,t);var o=m.call(this);if(t.live){var l=t.liveSelector||this.selector||n,c=e(l);if("off"===t.live)return void g(l);s[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&g(l)},500)}else g(l);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":v(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=x(t.scrollButtons.scrollType),p(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,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 n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,p(i)),_.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+u[2]+")").addClass(u[2]),f.update.call(null,o)}})},update:function(t,o){var n=t||m.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&J(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(u[3])&&t.removeClass(u[3]),t.hasClass(u[4])&&t.removeClass(u[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),b.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",S(r)),n.overflowed=M.call(this),I.call(this),i.autoDraggerLength&&y.call(this),B.call(this),O.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?k.call(this):(K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(k.call(this),"y"===i.axis?D.call(this):"yx"===i.axis&&n.overflowed[1]&&K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?k.call(this):(K(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(k.call(this),"x"===i.axis?D.call(this):"yx"===i.axis&&n.overflowed[0]&&K(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),Z.call(this)}})},scrollTo:function(t,o){if(void 0!==t&&null!=t){var n=m.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollOffset:0,scrollOffsetEdge:!0,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=V.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=Q.call(this,c[0],"y"),c[1]=Q.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=le()?0:d,setTimeout(function(){if(null!==c[0]&&void 0!==c[0]&&"x"!==r.axis&&i.overflowed[0]){s.dir="y",s.overwrite="all";var o=c[0];if(0!==s.scrollOffset&&"object"==typeof s.scrollOffset){var a=s.scrollOffset[0],l=parseInt(a.height()),d=s.scrollOffset[1],u=s.scrollOffset[2],f=parseInt(l/d),h=parseInt(l/u);o-=f;var m=t.offset().top-a.offset().top;function p(t,o){var a=e(t),n=o,i=n.scrollTop()+50,r=i+n.height(),l=a.offset().top;return l+a.height()<=r&&l>=i}p(t,a)&&l-m>h&&(s.scrollOffsetEdge=!1)}s.scrollOffsetEdge&&K(n,o.toString(),s)}null!==c[1]&&void 0!==c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",K(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=m.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&J(t)})},disable:function(t){var o=m.call(this);return e(o).each(function(){var o=e(this);o.data(a)&&(o.data(a),Z.call(this,"remove"),D.call(this),t&&k.call(this),I.call(this,!0),o.addClass(u[3]))})},destroy:function(){var t=m.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&g(r.liveSelector||e(t).selector),Z.call(this,"remove"),D.call(this),k.call(this),n.removeData(a),oe(this,"mcs"),c.remove(),s.find("img."+u[2]).removeClass(u[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+u[6]+" "+u[7]+" "+u[5]+" "+u[3]).addClass(u[4])}})}},m=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},p=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["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"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,o)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,a)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,n)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},g=function(e){s[e]&&(clearTimeout(s[e]),oe(s,e))},v=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},x=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},_=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+u[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+u[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div><div class='mCSB_draggerRail'></div></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+u[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar'></div></div><div class='mCSB_draggerRail'></div></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],d="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper'></div>":"",f=i.autoHideScrollbar?" "+u[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+u[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"'></div></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",S(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(d)),C.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},S=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%"},b=function(){var t=e(this).data(a),o=t.opt,n=e("#mCSB_"+t.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){n.css({width:"auto","min-width":0,"overflow-x":"scroll"});var i=Math.ceil(n[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.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;'></div>").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},C=function(){var t=e(this).data(a),o=t.opt,n=e(".mCSB_"+t.idx+"_scrollbar:first"),i=ie(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+u[13]+"' "+i+"></a>","<a href='#' class='"+u[14]+"' "+i+"></a>","<a href='#' class='"+u[15]+"' "+i+"></a>","<a href='#' class='"+u[16]+"' "+i+"></a>"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},y=function(){var t=e(this).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],r=o.height()/n.outerHeight(!1),s=o.width()/n.outerWidth(!1);ratio=[Math.min(r,1),Math.min(s,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=c&&l[1]<l[0]?l[0]:l[1],w=c&&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).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=[e("#mCSB_"+t.idx+"_dragger_vertical"),e("#mCSB_"+t.idx+"_dragger_horizontal")],r=[n.outerHeight(!1)-o.height(),n.outerWidth(!1)-o.width()],l=[r[0]/(i[0].parent().height()-i[0].height()),r[1]/(i[1].parent().width()-i[1].width())];t.scrollRatio={y:l[0],x:l[1]}},T=function(e,t,o){var a=o?u[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(u[0]+" "+a),n.toggleClass(u[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(u[0]),n.removeClass(u[1])):(e.addClass(u[0]),n.addClass(u[1])))},M=function(){var t=e(this).data(a),o=e("#mCSB_"+t.idx),n=e("#mCSB_"+t.idx+"_container"),i=null==t.overflowed?n.height():n.outerHeight(!1),r=null==t.overflowed?n.width():n.outerWidth(!1),l=n[0].scrollHeight,s=n[0].scrollWidth;return Math.round(l)>Math.round(i)&&(i=l),Math.round(s)>Math.round(r)&&(r=s),[i>o.height(),r>o.width()]},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(J(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),K(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),K(t,"_resetX")}},O=function(){var t=e(this),o=t.data(a),n=o.opt;if(!o.bindEvents){if(W.call(this),n.contentTouchScroll&&R.call(this),L.call(this),n.mouseWheel.enable){function i(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),A.call(t[0])):i()},100)}var r;i()}Y.call(this),j.call(this),n.advanced.autoScrollOnFocus&&X.call(this),n.scrollButtons.enable&&F.call(this),n.keyboard.enable&&q.call(this),o.bindEvents=!0}},D=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+u[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");if(n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents){var c=H()?top.document:document;e(document).add(e(c)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),oe(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),oe(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),oe(s[0],"onCompleteTimeout"),o.bindEvents=!1}},I=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(u[8]+" "+u[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(u[10])):(s[0].css("display","none"),l.addClass(u[10])),l.addClass(u[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(u[9]+" "+u[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(u[11])):(s[1].css("display","none"),l.addClass(u[11])),l.addClass(u[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(u[5]):o.addClass(u[5])},E=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=H()&&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]}},W=function(){var t,o,n,i=e(this),r=i.data(a),l=r.opt,s=a+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),h=e("#"+u[0]+",#"+u[1]),m=l.advanced.releaseDraggableSelectors?h.add(e(l.advanced.releaseDraggableSelectors)):h,p=H()?top.document:document,g=l.advanced.extraDraggableSelectors?e(p).add(e(l.advanced.extraDraggableSelectors)):e(p);function v(e,o,a,n){if(f[0].idleTimer=l.scrollInertia<233?250:0,t.attr("id")===u[1])var s="x",c=(t[0].offsetLeft-o+n)*r.scrollRatio.x;else s="y",c=(t[0].offsetTop-e+a)*r.scrollRatio.y;K(i,c.toString(),{dir:s,drag:!0})}h.bind("contextmenu."+s,function(e){e.preventDefault()}).bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(a){if(a.stopImmediatePropagation(),a.preventDefault(),ae(a)){d=!0,c&&(document.onselectstart=function(){return!1}),P.call(f,!1),J(i);var r=(t=e(this)).offset(),s=E(a)[0]-r.top,u=E(a)[1]-r.left,h=t.height()+r.top,m=t.width()+r.left;s<h&&s>0&&u<m&&u>0&&(o=s,n=u),T(t,"active",l.autoExpandScrollbar)}}).bind("touchmove."+s,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t.offset(),i=E(e)[0]-a.top,r=E(e)[1]-a.left;v(o,n,i,r)}),e(document).add(g).bind("mousemove."+s+" pointermove."+s+" MSPointerMove."+s,function(e){if(t){var a=t.offset(),i=E(e)[0]-a.top,r=E(e)[1]-a.left;if(o===i&&n===r)return;v(o,n,i,r)}}).add(m).bind("mouseup."+s+" touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(e){t&&(T(t,"active",l.autoExpandScrollbar),t=null),d=!1,c&&(document.onselectstart=null),P.call(f,!0)})},R=function(){var o,n,i,r,l,s,c,u,f,h,m,p,g,v,x=e(this),w=x.data(a),_=w.opt,S=a+"_"+w.idx,b=e("#mCSB_"+w.idx),C=e("#mCSB_"+w.idx+"_container"),y=[e("#mCSB_"+w.idx+"_dragger_vertical"),e("#mCSB_"+w.idx+"_dragger_horizontal")],B=[],T=[],M=0,k="yx"===_.axis?"none":"all",O=[],D=C.find("iframe"),I=["touchstart."+S+" pointerdown."+S+" MSPointerDown."+S,"touchmove."+S+" pointermove."+S+" MSPointerMove."+S,"touchend."+S+" pointerup."+S+" MSPointerUp."+S],W=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function R(e){if(!ne(e)||d||E(e)[2])t=0;else{t=1,g=0,v=0,o=1,x.removeClass("mCS_touch_action");var a=C.offset();n=E(e)[0]-a.top,i=E(e)[1]-a.left,O=[E(e)[0],E(e)[1]]}}function L(e){if(ne(e)&&!d&&!E(e)[2]&&(_.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!v||g)&&o)){c=ee();var t=b.offset(),a=E(e)[0]-t.top,r=E(e)[1]-t.left,l="mcsLinearOut";if(B.push(a),T.push(r),O[2]=Math.abs(E(e)[0]-O[0]),O[3]=Math.abs(E(e)[1]-O[1]),w.overflowed[0])var s=y[0].parent().height()-y[0].height(),u=n-a>0&&a-n>-s*w.scrollRatio.y&&(2*O[3]<O[2]||"yx"===_.axis);if(w.overflowed[1])var f=y[1].parent().width()-y[1].width(),h=i-r>0&&r-i>-f*w.scrollRatio.x&&(2*O[2]<O[3]||"yx"===_.axis);u||h?(W||e.preventDefault(),g=1):(v=1,x.addClass("mCS_touch_action")),W&&e.preventDefault(),m="yx"===_.axis?[n-a,i-r]:"x"===_.axis?[null,i-r]:[n-a,null],C[0].idleTimer=250,w.overflowed[0]&&U(m[0],M,l,"y","all",!0),w.overflowed[1]&&U(m[1],M,l,"x",k,!0)}}function A(e){if(!ne(e)||d||E(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),J(x),s=ee();var o=b.offset();r=E(e)[0]-o.top,l=E(e)[1]-o.left,B=[],T=[]}}function z(e){if(ne(e)&&!d&&!E(e)[2]){o=0,e.stopImmediatePropagation(),g=0,v=0,u=ee();var t=b.offset(),a=E(e)[0]-t.top,n=E(e)[1]-t.left;if(!(u-c>30)){var i="mcsEaseOut",x=(h=1e3/(u-s))<2.5,S=x?[B[B.length-2],T[T.length-2]]:[0,0];f=x?[a-S[0],n-S[1]]:[a-r,n-l];var y=[Math.abs(f[0]),Math.abs(f[1])];h=x?[Math.abs(f[0]/4),Math.abs(f[1]/4)]:[h,h];var M=[Math.abs(C[0].offsetTop)-f[0]*P(y[0]/h[0],h[0]),Math.abs(C[0].offsetLeft)-f[1]*P(y[1]/h[1],h[1])];m="yx"===_.axis?[M[0],M[1]]:"x"===_.axis?[null,M[1]]:[M[0],null],p=[4*y[0]+_.scrollInertia,4*y[1]+_.scrollInertia];var O=parseInt(_.contentTouchScroll)||0;m[0]=y[0]>O?m[0]:0,m[1]=y[1]>O?m[1]:0,w.overflowed[0]&&U(m[0],p[0],i,"y",k,!1),w.overflowed[1]&&U(m[1],p[1],i,"x",k,!1)}}}function P(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 U(e,t,o,a,n,i){e&&K(x,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}C.bind(I[0],function(e){R(e)}).bind(I[1],function(e){L(e)}),b.bind(I[0],function(e){A(e)}).bind(I[2],function(e){z(e)}),D.length&&D.each(function(){e(this).bind("load",function(){H(this)&&e(this.contentDocument||this.contentWindow.document).bind(I[0],function(e){R(e),A(e)}).bind(I[1],function(e){L(e)}).bind(I[2],function(e){z(e)})})})},L=function(){var o,n=e(this),i=n.data(a),r=i.opt,l=i.sequential,s=a+"_"+i.idx,c=e("#mCSB_"+i.idx+"_container"),u=c.parent();function f(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function h(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,N(n,e,t,"mcsLinearOut",a?60:null)}c.bind("mousedown."+s,function(e){t||o||(o=1,d=!0)}).add(document).bind("mousemove."+s,function(e){if(!t&&o&&f()){var a=c.offset(),n=E(e)[0]-a.top+c[0].offsetTop,s=E(e)[1]-a.left+c[0].offsetLeft;n>0&&n<u.height()&&s>0&&s<u.width()?l.step&&h("off",null,"stepped"):("x"!==r.axis&&i.overflowed[0]&&(n<0?h("on",38):n>u.height()&&h("on",40)),"y"!==r.axis&&i.overflowed[1]&&(s<0?h("on",37):s>u.width()&&h("on",39)))}}).bind("mouseup."+s+" dragend."+s,function(e){t||(o&&(o=0,h("off",null)),d=!1)})},A=function(){if(e(this).data(a)){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=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(){H(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+i,function(e,t){d(e,t)})})}),r.bind("mousewheel."+i,function(e,t){d(e,t)})}function d(a,i){if(e(a.target).closest(".mCustomScrollbar").trigger("mcswheel",i),J(t),n.mouseWheel&&n.mouseWheel.enable&&!U(t,a.target)){var s="auto"!==n.mouseWheel.deltaFactor?parseInt(n.mouseWheel.deltaFactor):c&&a.deltaFactor<100?100:a.deltaFactor||100,d=n.scrollInertia;if("yx"===n.axis&&(0!==a.deltaX?n.mouseWheel.axis="x":0!==a.deltaY&&(n.mouseWheel.axis="y")),"x"===n.axis||"x"===n.mouseWheel.axis)var u="x",f=[Math.ceil(s*o.scrollRatio.x),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=r.width()?.9*r.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=a.deltaY||i;else u="y",f=[Math.ceil(s*o.scrollRatio.y),parseInt(n.mouseWheel.scrollAmount)],h="auto"!==n.mouseWheel.scrollAmount?f[1]:f[0]>=r.height()?.9*r.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=a.deltaY||i;"y"===u&&!o.overflowed[0]||"x"===u&&!o.overflowed[1]||((n.mouseWheel.invert||a.webkitDirectionInvertedFromDevice)&&(v=-v),n.mouseWheel.normalizeDelta&&(v=v<0?-1:1),(v>0&&0!==p||v<0&&p!==g||n.mouseWheel.preventDefault)&&(a.stopImmediatePropagation(),a.preventDefault()),a.deltaFactor<5&&!n.mouseWheel.normalizeDelta&&(h=a.deltaFactor,d=17),K(t,(m-v*h).toString(),{dir:u,dur:d}))}}},z=new Object,H=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!==z[a])return z[a];if(t){try{n=(t.contentDocument||t.contentWindow.document).body.innerHTML}catch(e){}o=null!==n}else{try{n=top.document.body.innerHTML}catch(e){}o=null!==n}return!1!==a&&(z[a]=o),o},P=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},U=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},Y=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent();e(".mCSB_"+n.idx+"_scrollbar ."+u[12]).bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){d=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(e){d=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(u[12])||e(a.target).hasClass("mCSB_draggerRail"))){J(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",d=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-d*(.9*l.width())}else{if(!n.overflowed[0])return;c="y",d=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-d*(.9*l.height())}K(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},X=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(o){var a=e(document.activeElement),i=r.find(".mCustomScrollBox").length,s=0;a.is(n.advanced.autoScrollOnFocus)&&(J(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?(s+17)*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[re(a)[0],re(a)[1]],o=[r[0].offsetTop,r[0].offsetLeft],i=[o[0]+e[0]>=0&&o[0]+e[0]<l.height()-a.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<l.width()-a.outerWidth(!1)],c="yx"!==n.axis||i[0]||i[1]?"all":"none";"x"===n.axis||i[0]||K(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s}),"y"===n.axis||i[1]||K(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s})},t[0]._focusTimer))})},j=function(){var t=e(this).data(a),o=a+"_"+t.idx,n=e("#mCSB_"+t.idx+"_container").parent();n.bind("scroll."+o,function(o){0===n.scrollTop()&&0===n.scrollLeft()||e(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar";e(l+">a").bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){if(a.preventDefault(),ae(a)){var r=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;d=!0,o.tweenRunning=!1,l("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;d=!1,i.dir&&l("off",r);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;l("on",r)}}function l(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,N(t,e,o)}})},q=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=e("#mCSB_"+o.idx),s=e("#mCSB_"+o.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']",u=s.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];function h(a){switch(a.type){case"blur":o.tweenRunning&&i.dir&&m("off",null);break;case"keydown":case"keyup":var r=a.keyCode?a.keyCode:a.which,l="on";if("x"!==n.axis&&(38===r||40===r)||"y"!==n.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===a.type&&(l="off"),e(document.activeElement).is(d)||(a.preventDefault(),a.stopImmediatePropagation(),m(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"===a.type){J(t);var u=34===r?-1:1;if("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",h=Math.abs(s[0].offsetLeft)-u*(.9*c.width());else f="y",h=Math.abs(s[0].offsetTop)-u*(.9*c.height());K(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else 35!==r&&36!==r||e(document.activeElement).is(d)||((o.overflowed[0]||o.overflowed[1])&&(a.preventDefault(),a.stopImmediatePropagation()),"keyup"!==a.type)||("x"===n.axis||"yx"===n.axis&&o.overflowed[1]&&!o.overflowed[0]?(f="x",h=35===r?Math.abs(c.width()-s.outerWidth(!1)):0):(f="y",h=35===r?Math.abs(c.height()-s.outerHeight(!1)):0),K(t,h.toString(),{dir:f,scrollEasing:"mcsEaseInOut"}))}function m(e,a){i.type=n.keyboard.scrollType,i.scrollAmount=n.keyboard.scrollAmount,"stepped"===i.type&&o.tweenRunning||N(t,e,a)}}u.length&&u.each(function(){e(this).bind("load",function(){H(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){h(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){h(e)})},N=function(t,o,n,i,r){var l=t.data(a),s=l.opt,c=l.sequential,d=e("#mCSB_"+l.idx+"_container"),f="stepped"===c.type,h=s.scrollInertia<26?26:s.scrollInertia,m=s.scrollInertia<1?17:s.scrollInertia;switch(o){case"on":if(c.dir=[n===u[16]||n===u[15]||39===n||37===n?"x":"y",n===u[13]||n===u[15]||38===n||37===n?-1:1],J(t),ie(n)&&"stepped"===c.type)return;p(f);break;case"off":g(),(f||l.tweenRunning&&c.dir)&&p(!0)}function p(e){s.snapAmount&&(c.scrollAmount=s.snapAmount instanceof Array?"x"===c.dir[0]?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount);var o="stepped"!==c.type,a=r||(e?o?h/1.5:m:1e3/60),n=e?o?7.5:40:2.5,u=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===c.dir[0]?u[1]+c.dir[1]*(f[1]*n):u[0]+c.dir[1]*(f[0]*n),v="x"===c.dir[0]?u[1]+c.dir[1]*parseInt(c.scrollAmount):u[0]+c.dir[1]*parseInt(c.scrollAmount),x="auto"!==c.scrollAmount?v:g,w=i||(e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;e&&a<17&&(x="x"===c.dir[0]?u[1]:u[0]),K(t,x.toString(),{dir:c.dir[0],scrollEasing:w,dur:a,onComplete:_}),e?c.dir=!1:(clearTimeout(c.step),c.step=setTimeout(function(){p()},a))}function g(){clearTimeout(c.step),oe(c,"step"),J(t)}},V=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},Q=function(t,o){if(null!=t&&void 0!==t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),u="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":if(!(p=t.jquery?t:e(t)).length)return;return"x"===o?re(p)[1]:re(p)[0];case"string":case"number":if(ie(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*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")&&ie(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var p=l.find(":"+t);return"x"===o?re(p)[1]:re(p)[0]}return e(t).length?"x"===o?re(e(t))[1]:re(e(t))[0]:(l.css(h,t),void f.update.call(null,n[0]))}}},Z=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container");if(t)return clearTimeout(r[0].autoUpdate),void oe(r[0],"autoUpdate");function l(){clearTimeout(r[0].autoUpdate),0!==o.parents("html").length?r[0].autoUpdate=setTimeout(function(){return i.advanced.updateOnSelectorChange&&(n.poll.change.n=c(),n.poll.change.n!==n.poll.change.o)?(n.poll.change.o=n.poll.change.n,void d(3)):i.advanced.updateOnContentResize&&(n.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,n.poll.size.n!==n.poll.size.o)?(n.poll.size.o=n.poll.size.n,void d(1)):!i.advanced.updateOnImageLoad||"auto"===i.advanced.updateOnImageLoad&&"y"===i.axis||(n.poll.img.n=r.find("img").length,n.poll.img.n===n.poll.img.o)?void((i.advanced.updateOnSelectorChange||i.advanced.updateOnContentResize||i.advanced.updateOnImageLoad)&&l()):(n.poll.img.o=n.poll.img.n,void r.find("img").each(function(){s(this)}))},i.advanced.autoUpdateTimeout):o=null}function s(t){if(e(t).hasClass(u[2]))d();else{var o=new Image;o.onload=a(o,n),o.src=t.src}function a(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,e(t).addClass(u[2]),d(2)}}function c(){!0===i.advanced.updateOnSelectorChange&&(i.advanced.updateOnSelectorChange="*");var e=0,t=r.find(i.advanced.updateOnSelectorChange);return i.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function d(e){clearTimeout(r[0].autoUpdate),f.update.call(null,o[0],e)}l()},G=function(e,t,o){return Math.round(e/t)*t-o},J=function(t){var o=t.data(a);e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal").each(function(){te.call(this)})},K=function(t,o,n){var i=t.data(a),r=i.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:r.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=[(n=e.extend(l,n)).dur,n.drag?0:n.dur],c=e("#mCSB_"+i.idx),d=e("#mCSB_"+i.idx+"_container"),u=d.parent(),f=r.callbacks.onTotalScrollOffset?V.call(t,r.callbacks.onTotalScrollOffset):[0,0],h=r.callbacks.onTotalScrollBackOffset?V.call(t,r.callbacks.onTotalScrollBackOffset):[0,0];if(i.trigger=n.trigger,0===u.scrollTop()&&0===u.scrollLeft()||(e(".mCSB_"+i.idx+"_scrollbar").css("visibility","visible"),u.scrollTop(0).scrollLeft(0)),"_resetY"!==o||i.contentReset.y||(y("onOverflowYNone")&&r.callbacks.onOverflowYNone.call(t[0]),i.contentReset.y=1),"_resetX"!==o||i.contentReset.x||(y("onOverflowXNone")&&r.callbacks.onOverflowXNone.call(t[0]),i.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!i.contentReset.y&&t[0].mcs||!i.overflowed[0]||(y("onOverflowY")&&r.callbacks.onOverflowY.call(t[0]),i.contentReset.x=null),!i.contentReset.x&&t[0].mcs||!i.overflowed[1]||(y("onOverflowX")&&r.callbacks.onOverflowX.call(t[0]),i.contentReset.x=null),r.snapAmount){var m=r.snapAmount instanceof Array?"x"===n.dir?r.snapAmount[1]:r.snapAmount[0]:r.snapAmount;o=G(o,m,r.snapOffset)}switch(n.dir){case"x":var p=e("#mCSB_"+i.idx+"_dragger_horizontal"),g="left",v=d[0].offsetLeft,x=[c.width()-d.outerWidth(!1),p.parent().width()-p.width()],w=[o,0===o?0:o/i.scrollRatio.x],_=f[1],S=h[1],b=_>0?_/i.scrollRatio.x:0,C=S>0?S/i.scrollRatio.x:0;break;case"y":p=e("#mCSB_"+i.idx+"_dragger_vertical"),g="top",v=d[0].offsetTop,x=[c.height()-d.outerHeight(!1),p.parent().height()-p.height()],w=[o,0===o?0:o/i.scrollRatio.y],_=f[0],S=h[0],b=_>0?_/i.scrollRatio.y:0,C=S>0?S/i.scrollRatio.y:0}w[1]<0||0===w[0]&&0===w[1]?w=[0,0]:w[1]>=x[1]?w=[x[0],x[1]]:w[0]=-w[0],t[0].mcs||(M(),y("onInit")&&r.callbacks.onInit.call(t[0])),clearTimeout(d[0].onCompleteTimeout),$(p[0],g,Math.round(w[1]),s[1],n.scrollEasing),!i.tweenRunning&&(0===v&&w[0]>=0||v===x[0]&&w[0]<=x[0])||$(d[0],g,Math.round(w[0]),s[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!i.tweenRunning&&(y("onScrollStart")&&(M(),r.callbacks.onScrollStart.call(t[0])),i.tweenRunning=!0,T(p),i.cbOffsets=B())},onUpdate:function(){n.callbacks&&n.onUpdate&&y("whileScrolling")&&(M(),r.callbacks.whileScrolling.apply(t[0],[{options:n,delta:v-w[0]}]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===r.axis&&clearTimeout(d[0].onCompleteTimeout);var e=d[0].idleTimer||0;d[0].onCompleteTimeout=setTimeout(function(){y("onScroll")&&(M(),r.callbacks.onScroll.call(t[0])),y("onTotalScroll")&&w[1]>=x[1]-b&&i.cbOffsets[0]&&(M(),r.callbacks.onTotalScroll.call(t[0])),y("onTotalScrollBack")&&w[1]<=C&&i.cbOffsets[1]&&(M(),r.callbacks.onTotalScrollBack.call(t[0])),i.tweenRunning=!1,d[0].idleTimer=0,T(p,"hide")},e)}}})}function y(e){return i&&r.callbacks[e]&&"function"==typeof r.callbacks[e]}function B(){return[r.callbacks.alwaysTriggerOffsets||v>=x[0]+_,r.callbacks.alwaysTriggerOffsets||v<=-S]}function M(){var e=[d[0].offsetTop,d[0].offsetLeft],o=[p[0].offsetTop,p[0].offsetLeft],a=[d.outerHeight(!1),d.outerWidth(!1)],i=[c.height(),c.width()];t[0].mcs={content:d,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}},$=function(e,t,o,a,n,i,r){e._mTween||(e._mTween={top:{},left:{}});var l,s,c=(r=r||{}).onStart||function(){},d=r.onUpdate||function(){},u=r.onComplete||function(){},f=ee(),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=ee()-f,w(),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 w(){a>0?(g.currVal=b(g.time,m,v,a,n),p[t]=Math.round(g.currVal)+"px"):p[t]=o+"px",d.call()}function _(){l=1e3/60,g.time=h+l,s=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return w(),setTimeout(e,.01)},g.id=s(x)}function S(){null!=g.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(g.id):clearTimeout(g.id),g.id=null)}function b(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;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.stop=0,"none"!==i&&S(),_()},ee=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()},te=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)}},oe=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ae=function(e){return!(e.which&&1!==e.which)},ne=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ie=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},re=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},le=function(){var e=t();return!!e&&document[e];function t(){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}},e.fn[o]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[o]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[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]+re(n)[0]>=0&&a[0]+re(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+re(n)[1]>=0&&a[1]+re(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+re(s)[0],c[0].offsetLeft+re(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[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(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})});
/*!
* jQuery Autocomplete v1.3.0
* https://github.com/devbridge/jQuery-Autocomplete
* Licensed under MIT (https://github.com/devbridge/jQuery-Autocomplete/blob/master/license.txt)
*/
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(e){"use strict";var t={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},n=27,o=9,s=13,i=38,a=39,l=40;function r(t,n){var o=e.noop,s=this,i={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:o,onSearchComplete:o,onSearchError:o,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(t){return"string"==typeof t?e.parseJSON(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};s.element=t,s.el=e(t),s.suggestions=[],s.badQueries=[],s.selectedIndex=-1,s.currentValue=s.element.value,s.intervalId=0,s.cachedResponse={},s.onChangeInterval=null,s.onChange=null,s.isLocal=!1,s.suggestionsContainer=null,s.noSuggestionsContainer=null,s.options=e.extend({},i,n),s.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},s.hint=null,s.hintValue="",s.selection=null,s.initialize(),s.setOptions(n)}r.utils=t,e.Autocomplete=r,r.formatResult=function(e,n){if(!n)return e.value;var o="("+t.escapeRegExChars(n)+")";return e.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>").replace(/<(\/?x-hidden)>/g,"<$1>")},r.formatGroup=function(e,t){return'<div class="autocomplete-group"><strong>'+t+"</strong></div>"},r.prototype={killerFn:null,initialize:function(){var t,n=this,o="."+n.classes.suggestion,s=n.classes.selected,i=n.options;n.element.setAttribute("autocomplete","off"),n.killerFn=function(t){e(t.target).closest("."+n.options.containerClass).length||(n.killSuggestions(),n.disableKillerFn())},n.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=r.utils.createNode(i.containerClass),(t=e(n.suggestionsContainer)).appendTo(i.appendTo),"auto"!==i.width&&t.css("width",i.width),t.on("mouseover.autocomplete",o,function(){n.activate(e(this).data("index"))}),t.on("mouseout.autocomplete",function(){n.selectedIndex=-1,t.children("."+s).removeClass(s)}),t.on("click.autocomplete",o,function(){return n.select(e(this).data("index")),!1}),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},e(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("keydown.autocomplete",function(e){n.onKeyPress(e)}),n.el.on("keyup.autocomplete",function(e){n.onKeyUp(e)}),n.el.on("blur.autocomplete",function(){n.onBlur()}),n.el.on("focus.autocomplete",function(){n.onFocus()}),n.el.on("change.autocomplete",function(e){n.onKeyUp(e)}),n.el.on("input.autocomplete",function(e){n.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=n.options;e.extend(o,t),n.isLocal=e.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var s=t.options.orientation,i=n.outerHeight(),a=t.el.outerHeight(),l=t.el.offset(),r={top:l.top,left:l.left};if("auto"===s){var u=e(window).height(),c=e(window).scrollTop(),g=-c+l.top-i,d=c+u-(l.top+a+i);s=Math.max(g,d)===g?"top":"bottom"}if(r.top+="top"===s?-i:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),r.top-=p.top,r.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(r.width=t.el.outerWidth()+"px"),n.css(r)}},enableKillerFn:function(){e(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){e(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.options.preserveInput||e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==l||!t.currentValue){if(!t.disabled&&t.visible){switch(r.externalEvent=e,e.which){case n:t.el.val(t.currentValue),t.hide();break;case a:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case o:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case s:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case i:t.moveUp();break;case l:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case i:case l:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var t=this,n=t.options,o=t.el.val(),s=t.getQuery(o);t.selection&&t.currentValue!==s&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearInterval(t.onChangeInterval),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(s)?t.select(0):s.length<n.minChars?t.hide():t.getSuggestions(s)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,o=this.options.delimiter;return o?(n=t.split(o),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,o=this.options,s=t.toLowerCase(),i=o.lookupFilter,a=parseInt(o.lookupLimit,10);return n={suggestions:e.grep(o.lookup,function(e){return i(e,t,s)})},a&&n.suggestions.length>a&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,o,s,i,a=this,l=a.options,r=l.serviceUrl;l.params[l.paramName]=t,o=l.ignoreParams?null:l.params,!1!==l.onSearchStart.call(a.element,l.params)&&(e.isFunction(l.lookup)?l.lookup(t,function(e){a.suggestions=e.suggestions,a.suggest(),l.onSearchComplete.call(a.element,t,e.suggestions)}):(a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(r)&&(r=r.call(a.element,t)),s=r+"?"+e.param(o||{}),n=a.cachedResponse[s]),n&&e.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),l.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?l.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),i={url:r,data:o,type:l.type,dataType:l.dataType},e.extend(i,l.ajaxSettings),a.currentRequest=e.ajax(i).done(function(e){var n;a.currentRequest=null,n=l.transformResult(e,t),a.processResponse(n,t,s),l.onSearchComplete.call(a.element,t,n.suggestions)}).fail(function(e,n,o){l.onSearchError.call(a.element,t,e,n,o)}))))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearInterval(t.onChangeInterval),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this,o=n.options,s=o.groupBy,i=o.formatResult,a=n.getQuery(n.currentValue),l=n.classes.suggestion,r=n.classes.selected,u=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="";o.triggerSelectOnValidInput&&n.isExactMatch(a)?n.select(0):(e.each(n.suggestions,function(e,n){s&&(d+=function(e){var n=e.data[s];return t===n?"":(t=n,o.formatGroup(e,t))}(n,0)),n.value=n.value.replace(/(<x-hidden>(.*?)<\/x-hidden>)/g,"[[$2]]"),d+='<div class="'+l+'" data-index="'+e+'">'+i(n,a,e)+"</div>"}),this.adjustContainerWidth(),c.detach(),d=d.replace(/\[\[.*?\]\]/g,""),u.html(d),e.isFunction(g)&&g.call(n.element,u,n.suggestions),n.fixPosition(),u.show(),o.autoSelectFirst&&(n.selectedIndex=0,u.scrollTop(0),u.children("."+l).first().addClass(r)),n.visible=!0,n.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this,n=e(t.suggestionsContainer),o=e(t.noSuggestionsContainer);this.adjustContainerWidth(),o.detach(),n.empty(),n.append(o),t.fixPosition(),n.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,s=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),s.css("width",t>0?t:300)):"flex"===o.width&&s.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,function(e,t){var s=0===t.value.toLowerCase().indexOf(n);return s&&(o=t),!s}),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,s=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),s.noCache||(o.cachedResponse[n]=e,s.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,s=o.classes.selected,i=e(o.suggestionsContainer),a=i.find("."+o.classes.suggestion);return i.find("."+s).removeClass(s),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(s),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){var t=this;t.hide(),t.onSelect(e),t.disableKillerFn()},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var s,i,a,l=e(o).outerHeight();if(s=o.offsetTop,a=(i=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-l,s<i?e(n.suggestionsContainer).scrollTop(s):s>a&&e(n.suggestionsContainer).scrollTop(s-n.options.maxHeight+l),!n.options.preserveInput){var r=n.getValue(n.suggestions[t].value);r&&(r=r.replace(/\[\[.*?\]\]/g,"")),n.el.val(r)}n.signalHint(null)}},onSelect:function(t){var n=this,o=n.options.onSelect,s=n.suggestions[t];n.currentValue=n.getValue(s.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=s,e.isFunction(o)&&o.call(n.element,s)},getValue:function(e){var t,n,o=this.options.delimiter;return o?1===(n=(t=this.currentValue).split(o)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),t.disableKillerFn(),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.autocomplete=e.fn.devbridgeAutocomplete=function(t,n){var o="autocomplete";return arguments.length?this.each(function(){var s=e(this),i=s.data(o);"string"==typeof t?i&&"function"==typeof i[t]&&i[t](n):(i&&i.dispose&&i.dispose(),i=new r(this,t),s.data(o,i))}):this.first().data(o)}});
/*!
* CodeMirror 5.65.19 (https://codemirror.net)
* Copyright 2017 by Marijn Haverbeke <marijnh@gmail.com>
* Licensed under MIT (https://codemirror.net/LICENSE)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).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\/(\d+)/.exec(e),f=u&&+u[1],h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),C=/win/i.test(t),w=h&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,s=!0);var S=x&&(c||h&&(null==w||w<12.11)),k=n||l&&a>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var M,T=function(e,t){var n=e.className,r=L(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 O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return O(e).appendChild(t)}function N(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 P(e,t,n,r){var i=N(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(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function H(e,t){var n=e.className;L(t).test(n)||(e.className+=(n?" ":"")+t)}function E(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!L(n[r]).test(t)&&(t+=" "+n[r]);return t}M=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 W=function(e){e.select()};function I(e){return e.display.wrapper.ownerDocument}function R(e){return B(e.display.wrapper)}function B(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function j(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function q(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 U(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}}g?W=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(W=function(e){try{e.select()}catch(e){}});var G=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function V(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}G.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},G.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var K={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},X={origin:"*mouse"},_={origin:"+move"};function Y(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 J=[""];function Q(e){for(;J.length<=e;)J.push(Z(J)+" ");return J[e]}function Z(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&q(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\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 se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function ue(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}}var fe=null;function he(e,t,n){var r;fe=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:fe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:fe=i)}return null!=r?r:fe}var de=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var u=a.length,f=[],h=0;h<u;++h)f.push(e(a.charCodeAt(h)));for(var d=0,p=c;d<u;++d){var m=f[d];"m"==m?f[d]=p:p=m}for(var g=0,v=c;g<u;++g){var y=f[g];"1"==y&&"r"==v?f[g]="n":r.test(y)&&(v=y,"r"==y&&(f[g]="R"))}for(var x=1,b=f[0];x<u-1;++x){var C=f[x];"+"==C&&"1"==b&&"1"==f[x+1]?f[x]="1":","!=C||b!=f[x+1]||"1"!=b&&"n"!=b||(f[x]=b),b=C}for(var w=0;w<u;++w){var S=f[w];if(","==S)f[w]="N";else if("%"==S){var k=void 0;for(k=w+1;k<u&&"%"==f[k];++k);for(var L=w&&"!"==f[w-1]||k<u&&"1"==f[k]?"1":"N",M=w;M<k;++M)f[M]=L;w=k-1}}for(var T=0,O=c;T<u;++T){var A=f[T];"L"==O&&"1"==A?f[T]="L":r.test(A)&&(O=A)}for(var N=0;N<u;++N)if(n.test(f[N])){var P=void 0;for(P=N+1;P<u&&n.test(f[P]);++P);for(var F="L"==(N?f[N-1]:c),D=F==("L"==(P<u?f[P]:c))?F?"L":"R":c,H=N;H<P;++H)f[H]=D;N=P-1}for(var E,W=[],I=0;I<u;)if(i.test(f[I])){var R=I;for(++I;I<u&&i.test(f[I]);++I);W.push(new l(0,R,I))}else{var B=I,j=W.length,z="rtl"==s?1:0;for(++I;I<u&&"L"!=f[I];++I);for(var q=B;q<I;)if(o.test(f[q])){B<q&&(W.splice(j,0,new l(1,B,q)),j+=z);var U=q;for(++q;q<I&&o.test(f[q]);++q);W.splice(j,0,new l(2,U,q)),j+=z,B=q}else++q;B<I&&W.splice(j,0,new l(1,B,I))}return"ltr"==s&&(1==W[0].level&&(E=a.match(/^\s+/))&&(W[0].from=E[0].length,W.unshift(new l(0,0,E[0].length))),1==Z(W).level&&(E=a.match(/\s+$/))&&(Z(W).to-=E[0].length,W.push(new l(0,u-E[0].length,u)))),"rtl"==s?W.reverse():W}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var me=[],ge=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]||me).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||me}function ye(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=V(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function xe(e,t){var n=ve(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 be(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,n||t.type,e,t),Me(t)||t.codemirrorIgnore}function Ce(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==V(n,t[r])&&n.push(t[r])}function we(e,t){return ve(e,t).length>0}function Se(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){ke(e),Le(e)}function Oe(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var Ne,Pe,Fe=function(){if(l&&a<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ne){var t=N("span","");A(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var n=Ne?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function He(e){if(null!=Pe)return Pe;var t=A(e,document.createTextNode("AخA")),n=M(t,0,1).getBoundingClientRect(),r=M(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Pe=r.right-n.right<3)}var Ee,We=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/)},Ie=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)},Re="oncopy"in(Ee=N("div"))||(Ee.setAttribute("oncopy","return;"),"function"==typeof Ee.oncopy),Be=null;var je={},ze={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),je[e]=t}function Ue(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=Ue(t);var n=je[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i=Ve[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 Ve={};function Ke(e,t){q(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function $e(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 Xe(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 _e(e,t,n){return!e.startState||e.startState(t,n)}var Ye=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};function Je(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 Qe(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 Ze(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=V(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 nt(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 rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function lt(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==lt(e,t)}function st(e){return ot(e.line,e.ch)}function ct(e,t){return lt(e,t)<0?t:e}function ut(e,t){return lt(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Je(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Je(e,t.line).text.length)}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ht(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.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},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ye.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},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},mt=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 gt(e,t,n,r){var i=[e.state.modeGen],o={};Lt(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,Lt(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 vt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=gt(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 yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(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=Je(o,a-1),c=s.stateAfter;if(c&&(!n||a+(c instanceof pt?c.lookAhead:0)<=o.modeFrontier))return a;var u=U(s.text,null,e.options.tabSize);(null==i||r>u)&&(i=a-1,r=u)}return i}(e,t,n),l=o>r.first&&Je(r,o-1).stateAfter,a=l?mt.fromSaved(r,l,o):new mt(r,_e(r.mode),o);return r.iter(o,t,function(n){xt(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 xt(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&bt(i,n.state);!o.eol();)Ct(i,o,n.state),o.start=o.pos}function bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Xe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Ct(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Xe(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.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.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}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof pt?new mt(e,$e(e.mode,t.state),n,t.lookAhead):new mt(e,$e(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o,l=e.doc,a=l.mode,s=Je(l,(t=ht(l,t)).line),c=yt(e,t.line,n),u=new Ye(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=Ct(a,u,c.state),r&&o.push(new wt(u,i,$e(l.mode,c.state)));return r?o:new wt(u,i,c.state)}function kt(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 Lt(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 Ye(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&kt(bt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,l&&xt(e,t,r,f.pos),f.pos=t.length,s=null):s=kt(Ct(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 Mt=!1,Tt=!1;function Ot(e,t,n){this.marker=e,this.from=t,this.to=n}function At(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Nt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Pt(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Je(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Je(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,l=0==lt(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 Ot(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 Ot(l,a?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,l),c=1==t.text.length,u=Z(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=At(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)At(a,m.marker)||(m.from=u,c&&(a||(a=[])).push(m));else m.from+=u,c&&(a||(a=[])).push(m)}a&&(a=Ft(a)),s&&s!=a&&(s=Ft(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 Ot(a[x].marker,null,null));for(var b=0;b<y;++b)g.push(v);g.push(s)}return g}function Ft(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 Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ht(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Et(e){return e.inclusiveLeft?-1:0}function Wt(e){return e.inclusiveRight?1:0}function It(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=lt(r.from,i.from)||Et(e)-Et(t);if(o)return-o;var l=lt(r.to,i.to)||Wt(e)-Wt(t);return l||t.id-e.id}function Rt(e,t){var n,r=Tt&&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||It(n,i.marker)<0)&&(n=i.marker);return n}function Bt(e){return Rt(e,!0)}function jt(e){return Rt(e,!1)}function zt(e,t){var n,r=Tt&&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||It(n,o.marker)<0)&&(n=o.marker)}return n}function qt(e,t,n,r,i){var o=Je(e,t),l=Tt&&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=lt(c.from,n)||Et(s.marker)-Et(i),f=lt(c.to,r)||Wt(s.marker)-Wt(i);if(!(u>=0&&f<=0||u<=0&&f>=0)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?lt(c.to,n)>=0:lt(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?lt(c.from,r)<=0:lt(c.from,r)<0)))return!0}}}function Ut(e){for(var t;t=Bt(e);)e=t.find(-1,!0).line;return e}function Gt(e,t){var n=Je(e,t),r=Ut(n);return n==r?t:tt(r)}function Vt(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!Kt(e,r))return t;for(;n=jt(r);)r=n.find(1,!0).line;return tt(r)+1}function Kt(e,t){var n=Tt&&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&&$t(e,t,r))return!0}}function $t(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return $t(e,r.line,At(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)&&$t(e,t,i))return!0}function Xt(e){for(var t=0,n=(e=Ut(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 _t(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Bt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=jt(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 Yt(e){var t=e.display,n=e.doc;t.maxLine=Je(n,n.first),t.maxLineLength=_t(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=_t(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Jt=function(e,t,n){this.text=e,Ht(this,t),this.height=n?n(this):1};function Qt(e){e.parent=null,Dt(e)}Jt.prototype.lineNo=function(){return tt(this)},Se(Jt);var Zt={},en={};function tn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?en:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function nn(e,t){var n=P("span",null,null,s?"padding-right: .1px":null),r={pre:P("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=on,He(e.display.measure)&&(l=pe(o,e.doc.direction))&&(r.addToken=ln(r.addToken,l)),r.map=[],sn(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(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(De(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 xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=E(r.pre.className,r.textClass||"")),r}function rn(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function on(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(N("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(N("span",Q(x),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=x}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(N("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(N("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||o||s){var b=n||"";r&&(b+=r),i&&(b+=i);var C=N("span",[c],b,o);if(s)for(var w in s)s.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&C.setAttribute(w,s[w]);return e.content.appendChild(C)}e.content.appendChild(c)}}function ln(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 an(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 sn(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=a="",h=null,f=null,v=1/0;for(var y=[],x=void 0,b=0;b<r.length;++b){var C=r[b],w=C.marker;if("bookmark"==w.type&&C.from==p&&w.widgetNode)y.push(w);else if(C.from<=p&&(null==C.to||C.to>p||w.collapsed&&C.to==p&&C.from==p)){if(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&&((h||(h={})).title=w.title),w.attributes)for(var S in w.attributes)(h||(h={}))[S]=w.attributes[S];w.collapsed&&(!f||It(f.marker,w)<0)&&(f=C)}else 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(!f||f.from==p)for(var L=0;L<y.length;++L)an(t,0,y[L]);if(f&&(f.from||0)==p){if(an(t,(null==f.to?d+1:f.to)-p,f.marker,null==f.from),null==f.to)return;f.to==p&&(f=!1)}}if(p>=d)break;for(var M=Math.min(d,v);;){if(g){var T=p+g.length;if(!f){var O=T>M?g.slice(0,M-p):g;t.addToken(t,O,l?l+s:s,u,p+O.length==v?c:"",a,h)}if(T>=M){g=g.slice(M-p),p=M;break}p=T,u=""}g=i.slice(o,o=n[m++]),l=tn(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),tn(n[A+1],t.cm.options))}function cn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=jt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?tt(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Kt(e,t)}function un(e,t,n){for(var r,i=[],o=t;o<n;o=r){var l=new cn(e.doc,Je(e.doc,o),o);r=o+l.size,i.push(l)}return i}var fn=null;var hn=null;function dn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);fn?r=fn.delayedCallbacks:hn?r=hn:(r=hn=[],setTimeout(pn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},l=0;l<n.length;++l)o(l)}}function pn(){var e=hn;hn=null;for(var t=0;t<e.length;++t)e[t]()}function mn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?yn(e,t):"gutter"==o?bn(e,t,n,r):"class"==o?xn(e,t):"widget"==o&&Cn(e,t,r)}t.changes=null}function gn(e){return e.node==e.text&&(e.node=N("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 vn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):nn(e,t)}function yn(e,t){var n=t.text.className,r=vn(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,xn(e,t)):n&&(t.text.className=n)}function xn(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=gn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?gn(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 bn(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=gn(t);t.gutterBackground=N("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=gn(t),a=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),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(N("div",it(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.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,u=o.hasOwnProperty(c)&&o[c];u&&a.appendChild(N("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Cn(e,t,n){t.alignable&&(t.alignable=null);for(var r=L("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Sn(e,t,n)}function wn(e,t,n,r){var i=vn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),xn(e,t),bn(e,t,n,r),Sn(e,t,r),t.node}function Sn(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=gn(n),l=0,a=t.widgets;l<a.length;++l){var s=a[l],c=N("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Ln(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),dn(s,"redraw")}}function Ln(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 Mn(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,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Tn(e,t){for(var n=Oe(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 On(e){return e.lineSpace.offsetTop}function An(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Nn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,N("pre","x","CodeMirror-line-like")),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 Pn(e){return 50-e.display.nativeBarWidth}function Fn(e){return e.display.scroller.clientWidth-Pn(e)-e.display.barWidth}function Dn(e){return e.display.scroller.clientHeight-Pn(e)-e.display.barHeight}function Hn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){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(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function En(e,t,n,r){return Rn(e,In(e,t),n,r)}function Wn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[mr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function In(e,t){var n=tt(t),r=Wn(e,n);r&&!r.text?r=null:r&&r.changes&&(mn(e,r,n,ur(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=tt(t=Ut(t)),r=e.display.externalMeasured=new cn(e.doc,t,n);r.lineN=n;var i=r.built=nn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}(e,t));var i=Hn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Rn(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&&Fn(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=zn(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&&se(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&se(t.line.text.charAt(o.coverStart+u));)++u;if((i=l&&a<9&&0==c&&u==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():qn(M(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!=Be)return Be;var t=A(e,N("span","x")),n=t.getBoundingClientRect(),r=M(t,0,1).getBoundingClientRect();return Be=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+cr(e.display),top:p.top,bottom:p.bottom}:jn}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),o.bogus||(t.cache[s]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Bn,jn={left:0,right:0,top:0,bottom:0};function zn(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 qn(e,t){var n=jn;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 Un(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 Gn(e){e.display.externalMeasure=null,O(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Un(e.display.view[t])}function Vn(e){Gn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Kn(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function $n(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Xn(e){var t=Ut(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Mn(t[r]));return n}function _n(e,t,n,r,i){if(!i){var o=Xn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var l=Xt(t);if("local"==r?l+=On(e.display):l-=e.display.viewOffset,"page"==r||"window"==r){var a=e.display.lineSpace.getBoundingClientRect();l+=a.top+("window"==r?0:$n(I(e)));var s=a.left+("window"==r?0:Kn(I(e)));n.left+=s,n.right+=s}return n.top+=l,n.bottom+=l,n}function Yn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Kn(I(e)),i-=$n(I(e));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 Jn(e,t,n,r,i){return r||(r=Je(e.doc,t.line)),_n(e,r,En(e,r,t.ch,i),n)}function Qn(e,t,n,r,i,o){function l(t,l){var a=Rn(e,i,t,l?"right":"left",o);return l?a.left=a.right:a.right=a.left,_n(e,r,a,n)}r=r||Je(e.doc,t.line),i||(i=In(e,r));var a=pe(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){return l(n?e-1:e,1==a[t].level!=n)}var f=he(a,s,c),h=fe,d=u(s,f,"before"==c);return null!=h&&(d.other=u(s,h,"before"!=c)),d}function Zn(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=cr(e.display)*t.ch);var r=Je(e.doc,t.line),i=Xt(r)+On(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function er(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function tr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return er(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return er(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=Je(r,i);;){var a=or(e,l,i,t,n),s=zt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var c=s.find(1);if(c.line==i)return c;l=Je(r,i=c.line)}}function nr(e,t,n,r){r-=Xn(t);var i=t.text.length,o=ue(function(t){return Rn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ue(function(t){return Rn(e,n,t).top>r},o,i)}}function rr(e,t,n,r){return n||(n=In(e,t)),nr(e,t,n,_n(e,t,Rn(e,n,r),"line").top)}function ir(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function or(e,t,n,r,i){i-=Xt(t);var o=In(e,t),l=Xn(t),a=0,s=t.text.length,c=!0,u=pe(t,e.doc.direction);if(u){var f=(e.options.lineWrapping?ar:lr)(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=ue(function(t){var n=Rn(e,o,t);return n.top+=l,n.bottom+=l,!!ir(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":Rn(e,o,g-(c?1:0)).bottom+l<=i==c?"after":"before";var b=Qn(e,ot(n,g,d),"line",t,o);h=b.left,v=i<b.top?-1:i>=b.bottom?1:0}return er(n,g=ce(t.text,g,1),d,v,r-h)}function lr(e,t,n,r,i,o,l){var a=ue(function(a){var s=i[a],c=1!=s.level;return ir(Qn(e,ot(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=Qn(e,ot(n,c?s.from:s.to,c?"after":"before"),"line",t,r);ir(u,o,l,!0)&&u.top>l&&(s=i[a-1])}return s}function ar(e,t,n,r,i,o,l){var a=nr(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=Rn(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(s,d.from)).right,m=p<o?o-p+1e9:p-o;(!u||f>m)&&(u=d,f=m)}}return 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}),u}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Bn){Bn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Bn.appendChild(document.createTextNode("x")),Bn.appendChild(N("br"));Bn.appendChild(document.createTextNode("x"))}A(e.measure,Bn);var n=Bn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function cr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function hr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/cr(e.display)-3);return function(i){if(Kt(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 dr(e){var t=e.doc,n=hr(e);t.iter(function(e){var t=n(e);t!=e.height&&et(e,t)})}function pr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(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(e){return null}var s,c=tr(e,o,l);if(r&&c.xRel>0&&(s=Je(e.doc,c.line).text).length==c.ch){var u=U(s,s.length,e.options.tabSize)-s.length;c=ot(c.line,Math.max(0,Math.round((o-Nn(e.display).left)/cr(e.display))-u))}return c}function mr(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 gr(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)Tt&&Gt(e.doc,t)<i.viewTo&&yr(e);else if(n<=i.viewFrom)Tt&&Vt(e.doc,n+r)>i.viewFrom?yr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)yr(e);else if(t<=i.viewFrom){var o=xr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):yr(e)}else if(n>=i.viewTo){var l=xr(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):yr(e)}else{var a=xr(e,t,t,-1),s=xr(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(un(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):yr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function vr(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[mr(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==V(l,n)&&l.push(n)}}}function yr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xr(e,t,n,r){var i,o=mr(e,t),l=e.display.view;if(!Tt||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(;Gt(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 br(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 Cr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function wr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=e.options.$customCursor;l&&(t=!0);for(var a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();if(l){var u=l(e,s);u&&Sr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Sr(e,s.head,i);c||Lr(e,s,o)}}return r}function Sr(e,t,n){var r=Qn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(N("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",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Jn(e,t,"div",null,null),l=o.right-o.left;i.style.width=(l>0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function Lr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Nn(e.display),a=l.left,s=Math.max(r.sizerWidth,Fn(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(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(n??s-e)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,l,f=Je(i,t),h=f.text.length;function d(n,r){return Jn(e,ot(t,n),"div",f,r)}function p(t,n,r){var i=rr(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=pe(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,r??h,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 S=(c?b:x)&&w,k=(c?x:b)&&C?a:(g?v:y).left,L=S?s:(g?y:v).right;u(k,v.top,L-k,v.bottom)}else{var M,T,O,A;g?(M=c&&x&&C?a:v.left,T=c?s:p(e,i,"before"),O=c?a:p(t,i,"after"),A=c&&b&&w?s:y.right):(M=c?p(e,i,"before"):a,T=!c&&x&&C?s:v.right,O=!c&&b&&w?a:y.left,A=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(O,y.top,A-O,y.bottom)}(!o||kr(v,o)<0)&&(o=v),kr(y,o)<0&&(o=y),(!l||kr(v,l)<0)&&(l=v),kr(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=Je(i,h.line),m=Je(i,d.line),g=Ut(p)==Ut(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 Mr(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(){e.hasFocus()||Nr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ar(e))}function Or(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Nr(e))},100)}function Ar(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,H(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()),Mr(e))}function Nr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Pr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s<t.view.length;s++){var c=t.view[s],u=e.options.lineWrapping,f=void 0,h=0;if(!c.hidden){if(i+=c.line.height,l&&a<8){var d=c.node.offsetTop+c.node.offsetHeight;f=d-n,n=d}else{var p=c.node.getBoundingClientRect();f=p.bottom-p.top,!u&&c.text.firstChild&&(h=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var m=c.line.height-f;if((m>.005||m<-.005)&&(i<r&&(o-=m),et(c.line,f),Fr(c.line),c.rest))for(var g=0;g<c.rest.length;g++)Fr(c.rest[g]);if(h>e.display.sizerWidth){var v=Math.ceil(h/cr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Fr(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 Dr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-On(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),l=nt(t,i);if(n&&n.ensure){var a=n.ensure.from.line,s=n.ensure.to.line;a<o?(o=a,l=nt(t,Xt(Je(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=l&&(o=nt(t,Xt(Je(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function Hr(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Dn(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+An(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.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Fn(e)-n.gutters.offsetWidth,p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?l.scrollLeft=0:t.left<h?l.scrollLeft=Math.max(0,t.left+f-(p?0:10)):t.right>d+h-3&&(l.scrollLeft=t.right+(p?0:10)-d),l}function Er(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Wr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Br(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function Br(e,t,n,r){var i=Hr(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});Ir(e,i.scrollLeft,i.scrollTop)}function jr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||di(e,{top:t}),zr(e,t,!0),n&&di(e),si(e,100))}function zr(e,t,n){t=Math.max(0,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 qr(e,t,n,r){t=Math.max(0,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,gi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ur(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+An(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+Pn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Gr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gr.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.scrollTop=0,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}},Gr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gr.prototype.zeroWidthHack=function(){var e=x&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new G,this.disableVert=new G},Gr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",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.visibility="hidden":t.set(1e3,r)})},Gr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Vr=function(){};function Kr(e,t){t||(t=Ur(e));var n=e.display.barWidth,r=e.display.barHeight;$r(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Pr(e),$r(e,Ur(e)),n=e.display.barWidth,r=e.display.barHeight}function $r(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=""}Vr.prototype.update=function(){return{bottom:0,right:0}},Vr.prototype.setScrollLeft=function(){},Vr.prototype.setScrollTop=function(){},Vr.prototype.clear=function(){};var Xr={native:Gr,null:Vr};function _r(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Xr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(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?qr(e,t):jr(e,t)},e),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Jr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr,markArrays:null},t=e.curOp,fn?fn.ops.push(t):t.ownsGroup=fn={ops:[t],delayedCallbacks:[]}}function Qr(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{fn=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++)Zr(t[n]);for(var r=0;r<t.length;r++)ei(t[r]);for(var i=0;i<t.length;i++)ti(t[i]);for(var o=0;o<t.length;o++)ni(t[o]);for(var l=0;l<t.length;l++)ri(t[l])}(e)})}function Zr(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=Pn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Pn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Yt(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 ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ei(e){e.updatedDisplay=e.mustUpdate&&fi(e.cm,e.update)}function ti(e){var t=e.cm,n=t.display;e.updatedDisplay&&Pr(t),e.barMeasure=Ur(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=En(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+Pn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Fn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&qr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(R(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Kr(t,e.barMeasure),e.updatedDisplay&&mi(t,e.barMeasure),e.selectionChanged&&Mr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Tr(e.cm)}function ri(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&hi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&zr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&qr(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Qn(e,t),s=n&&n!=t?Qn(e,n):a,c=Hr(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&&(jr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(l=!0)),null!=c.scrollLeft&&(qr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}(t,ht(r,e.scrollToPos.from),ht(r,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var l=N("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-On(e.display))+"px;\n height: "+(t.bottom-t.top+Pn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}(t,i)}var o=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||xe(o[a],"hide");if(l)for(var s=0;s<l.length;++s)l[s].lines.length&&xe(l[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ii(e,t){if(e.curOp)return t();Jr(e);try{return t()}finally{Qr(e)}}function oi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Jr(e);try{return t.apply(e,arguments)}finally{Qr(e)}}}function li(e){return function(){if(this.curOp)return e.apply(this,arguments);Jr(this);try{return e.apply(this,arguments)}finally{Qr(this)}}}function ai(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{Qr(t)}}}function si(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,z(ci,e))}function ci(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(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?$e(t.mode,r.state):null,s=gt(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&&xt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return si(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ii(e,function(){for(var t=0;t<i.length;t++)vr(e,i[t],"text")})}}var ui=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Dr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Fn(e),this.force=n,this.dims=ur(e),this.events=[]};function fi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return yr(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==br(e))return!1;vi(e)&&(yr(e),t.dims=ur(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)),Tt&&(o=Gt(e.doc,o),l=Vt(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=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(mr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,mr(e,n)))),r.viewTo=n}(e,o,l),n.viewOffset=Xt(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=br(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(R(e));if(!t||!F(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=j(e).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&&x&&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&&(V(h.changes,"gutter")>-1&&(d=!1),mn(e,h,u,n)),d&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),l=h.node.nextSibling}else{var p=wn(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(B(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&F(document.body,e.anchorNode)&&F(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(u),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function hi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Fn(e))r&&(t.visible=Dr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+An(e.display)-Dn(e),n.top)}),t.visible=Dr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!fi(e,t))break;Pr(e);var i=Ur(e);Cr(e),Kr(e,i),mi(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 di(e,t){var n=new ui(e,t);if(fi(e,n)){Pr(e),hi(e,n);var r=Ur(e);Cr(e),Kr(e,r),mi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",dn(e,"gutterChanged",e)}function mi(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+Pn(e)+"px"}function gi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=fr(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 vi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("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",pi(e.display),!0}return!1}function yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],l=null;if("string"!=typeof o&&(l=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:l})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function xi(e){var t=e.gutters,n=e.gutterSpecs;O(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,l=i.style,a=t.appendChild(N("div",null,"CodeMirror-gutter "+o));l&&(a.style.cssText=l),"CodeMirror-linenumbers"==o&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",pi(e)}function bi(e){xi(e.display),gr(e),gi(e)}function Ci(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=P("div",null,"CodeMirror-code"),o.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=N("div",null,"CodeMirror-cursors"),o.measure=N("div",null,"CodeMirror-measure"),o.lineMeasure=N("div",null,"CodeMirror-measure"),o.lineSpace=P("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=P("div",[o.lineSpace],"CodeMirror-lines");o.mover=N("div",[c],null,"position: relative"),o.sizer=N("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=N("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=N("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=N("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=N("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&f>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=yi(i.gutters,i.lineNumbers),xi(o),r.init(o)}ui.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},ui.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var wi=0,Si=null;function ki(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 Li(e){var t=ki(e);return t.x*=Si,t.y*=Si,t}function Mi(e,t){u&&102==f&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=ki(t),i=r.x,o=r.y,l=Si;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,l=1);var a=e.display,c=a.scroller,d=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&d||o&&p){if(o&&x&&s)e:for(var m=t.target,g=a.view;m!=c;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!h&&null!=l)return o&&p&&jr(e,Math.max(0,c.scrollTop+o*l)),qr(e,Math.max(0,c.scrollLeft+i*l)),(!o||o&&p)&&ke(t),void(a.wheelStartX=null);if(o&&null!=l){var y=o*l,b=e.doc.scrollTop,C=b+a.wrapper.clientHeight;y<0?b=Math.max(0,b+y-50):C=Math.min(e.doc.height,C+y+50),di(e,{top:b,bottom:C})}wi<20&&0!==t.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=c.scrollLeft,a.wheelStartY=c.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=c.scrollLeft-a.wheelStartX,t=c.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Si=(Si*wi+n)/(wi+1),++wi)}},200)):(a.wheelDX+=i,a.wheelDY+=o))}}l?Si=-.53:n?Si=15:u?Si=-.7:d&&(Si=-1/3);var Ti=function(e,t){this.ranges=e,this.primIndex=t};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.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(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Oi(st(this.ranges[t].anchor),st(this.ranges[t].head));return new Ti(e,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ti.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(lt(t,r.from())>=0&<(e,r.to())<=0)return n}return-1};var Oi=function(e,t){this.anchor=e,this.head=t};function Ai(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return lt(e.from(),t.from())}),n=V(t,i);for(var o=1;o<t.length;o++){var l=t[o],a=t[o-1],s=lt(a.to(),l.from());if(r&&!l.empty()?s>0:s>=0){var c=ut(a.from(),l.from()),u=ct(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new Oi(f?u:c,f?c:u))}}return new Ti(t,n)}function Ni(e,t){return new Ti([new Oi(e,t||e)],0)}function Pi(e){return e.text?ot(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Fi(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return Pi(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+=Pi(t).ch-t.to.ch),ot(n,r)}function Di(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Oi(Fi(i.anchor,t),Fi(i.head,t)))}return Ai(e.cm,n,e.sel.primIndex)}function Hi(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Ei(e){e.doc.mode=Ge(e.options,e.doc.modeOption),Wi(e)}function Wi(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,si(e,100),e.state.modeGen++,e.curOp&&gr(e)}function Ii(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ri(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),Dt(e),Ht(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}(e,n,i,r),dn(e,"change",e,t)}function l(e,t){for(var n=[],o=e;o<t;++o)n.push(new Jt(c[o],i(o),r));return n}var a=t.from,s=t.to,c=t.text,u=Je(e,a.line),f=Je(e,s.line),h=Z(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(Ii(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 Jt(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)}dn(e,"change",e,t)}function Bi(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 ji(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,dr(e),Ei(e),zi(e),e.options.direction=t.direction,e.options.lineWrapping||Yt(e),e.options.mode=t.modeOption,gr(e)}function zi(e){("rtl"==e.doc.direction?H:T)(e.display.lineDiv,"CodeMirror-rtl")}function qi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ui(e,t){var n={from:st(t.from),to:Pi(t),text:Qe(e,t.from,t.to)};return Xi(e,n,t.from.line,t.to.line+1),Bi(e,function(e){return Xi(e,n,t.from.line,t.to.line+1)},!0),n}function Gi(e){for(;e.length;){if(!Z(e).ranges)break;e.pop()}}function Vi(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?(Gi(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))l=Z(o.changes),0==lt(t.from,t.to)&&0==lt(t.from,l.to)?l.to=Pi(t):o.changes.push(Ui(e,t));else{var s=Z(i.done);for(s&&s.ranges||$i(e.sel,i.done),o={changes:[Ui(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||xe(e,"historyAdded")}function Ki(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,Z(i.done),t))?i.done[i.done.length-1]=t:$i(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Gi(i.undone)}function $i(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Xi(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 Yi(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=Pt(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?Ti.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+)$/))&&V(t,Number(u[1]))>-1&&(Z(a)[f]=c[f],delete c[f])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=lt(t,i)<0;o!=lt(n,i)<0?(i=t,t=n):o!=lt(t,n)<0&&(t=n)}return new Oi(i,t)}return new Oi(n||t,t)}function Zi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),io(e,new Ti([Qi(e.sel.primary(),t,n,i)],0),r)}function eo(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]=Qi(e.sel.ranges[o],t[o],null,i);io(e,Ai(e.cm,r,e.sel.primIndex),n)}function to(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,io(e,Ai(e.cm,i,e.sel.primIndex),r)}function no(e,t,n,r){io(e,Ni(t,n),r)}function ro(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,oo(e,t,n)):io(e,t,n)}function io(e,t,n){oo(e,t,n),Ki(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function oo(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(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 Oi(ht(e,t[n].anchor),ht(e,t[n].head))},origin:n&&n.origin};return xe(e,"beforeSelectionChange",e,r),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ai(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);lo(e,so(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Wr(e.cm)}function lo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ce(e.cm)),dn(e,"cursorActivity",e))}function ao(e){lo(e,so(e,e.sel,null,!1))}function so(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=uo(e,l.anchor,a&&a.anchor,n,r),c=l.head==l.anchor?s:uo(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 Oi(s,c))}return i?Ai(e.cm,i,t.primIndex):t}function co(e,t,n,r,i){var o=Je(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var a=o.markedSpans[l],s=a.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,u="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==a.from||(c?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(u?a.to>=t.ch:a.to>t.ch))){if(i&&(xe(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(n){var f=s.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(f=fo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(h=lt(f,n))&&(r<0?h<0:h>0))return co(e,f,t,r,i)}var d=s.find(r<0?-1:1);return(r<0?c:u)&&(d=fo(e,d,r,d.line==t.line?o:null)),d?co(e,d,t,r,i):null}}return t}function uo(e,t,n,r,i){var o=r||1,l=co(e,t,n,o,i)||!i&&co(e,t,n,o,!0)||co(e,t,n,-o,i)||!i&&co(e,t,n,-o,!0);return l||(e.cantEdit=!0,ot(e.first,0))}function fo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function ho(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),$)}function po(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=ht(e,t)),n&&(r.to=ht(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),xe(e,"beforeChange",e,r),e.cm&&xe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function mo(e,t,n){if(e.cm){if(!e.cm.curOp)return oi(e.cm,mo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=po(e,t,!0))){var r=Mt&&!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!=V(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(!(lt(c.to,a.from)<0||lt(c.from,a.to)>0)){var u=[s,1],f=lt(c.from,a.from),h=lt(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)go(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else go(e,t)}}function go(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var n=Di(e,t);Vi(e,t,n,e.cm?e.cm.curOp.id:NaN),xo(e,t,n,Pt(e,t));var r=[];Bi(e,function(e,n){n||-1!=V(r,e.history)||(So(e.history,t),r.push(e.history)),xo(e,t,null,Pt(e,t))})}}function vo(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($i(i,s),n&&!i.equals(e.sel))return void io(e,i,{clearRedo:!1});l=i}var u=[];$i(l,s),s.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,f&&!po(e,r,!1))return a.length=0,{};u.push(Ui(e,r));var o=n?Di(e,r):Z(a);xo(e,r,o,Yi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Pi(r)});var l=[];Bi(e,function(e,t){t||-1!=V(l,e.history)||(So(e.history,r),l.push(e.history)),xo(e,r,null,Yi(e,r))})},d=i.changes.length-1;d>=0;--d){var p=h(d);if(p)return p.v}}}}function yo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(ee(e.sel.ranges,function(e){return new Oi(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)vr(e.cm,r,"gutter")}}function xo(e,t,n,r){if(e.cm&&!e.cm.curOp)return oi(e.cm,xo)(e,t,n,r);if(t.to.line<e.first)yo(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);yo(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=Di(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=tt(Ut(Je(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&&Ce(e);Ri(r,t,n,hr(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=_t(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=Je(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),si(e,400);var c=t.text.length-(l.line-o.line)-1;t.full?gr(e):o.line!=l.line||1!=t.text.length||Ii(e.doc,t)?gr(e,o.line,l.line+1,c):vr(e,o.line,"text");var u=we(e,"changes"),f=we(e,"change");if(f||u){var h={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&dn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}(e.cm,t,r):Ri(e,t,r),oo(e,n,$),e.cantEdit&&uo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function bo(e,t,n,r,i){var o;r||(r=n),lt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),mo(e,{from:n,to:r,text:t,origin:i})}function Co(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function wo(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++)Co(o.ranges[a].anchor,t,n,r),Co(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=ot(c.from.line+r,c.from.ch),c.to=ot(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 So(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;wo(e.done,n,r,i),wo(e.undone,n,r,i)}function ko(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Je(e,ft(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&vr(e.cm,i,n),o)}function Lo(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 Mo(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}Oi.prototype.from=function(){return ut(this.anchor,this.head)},Oi.prototype.to=function(){return ct(this.anchor,this.head)},Oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Lo.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,Qt(i),dn(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}},Mo.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 Lo))){var a=[];this.collapse(a),this.children=[new Lo(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 Lo(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 Mo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=V(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Mo(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 To=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 Oo(e,t,n){Xt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Er(e,n)}To.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(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=Mn(this);et(n,Math.max(0,n.height-o)),e&&(ii(e,function(){Oo(e,n,-o),vr(e,r,"widget")}),dn(e,"lineWidgetCleared",e,this,r))}},To.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Mn(this)-t;i&&(Kt(this.doc,r)||et(r,r.height+i),n&&ii(n,function(){n.curOp.forceUpdate=!0,Oo(n,r,i),dn(n,"lineWidgetChanged",n,e,tt(r))}))},Se(To);var Ao=0,No=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ao};function Po(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){r=q(r),r.shared=!1;var o=[Po(e,t,n,r,i)],l=o[0],a=r.widgetNode;return Bi(e,function(e){a&&(r.widgetNode=a.cloneNode(!0)),o.push(Po(e,ht(e,t),ht(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;l=Z(o)}),new Fo(o,l)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return oi(e.cm,Po)(e,t,n,r,i);var o=new No(e,i),l=lt(t,n);if(r&&q(r,o,!1),l>0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=P("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(qt(e,t.line,t,n,o)||t.line!=n.line&&qt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0}o.addToHistory&&Vi(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(r){c&&o.collapsed&&!c.options.lineWrapping&&Ut(r)==c.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&et(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Ot(o,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Kt(e,t)&&et(t,0)}),o.clearOnEnter&&ge(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Mt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Ao,o.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),o.collapsed)gr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)vr(c,u,"text");o.atomic&&ao(c.doc),dn(c,"markerAdded",c,o)}return o}No.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Jr(e),we(this,"clear")){var n=this.find();n&&dn(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=At(l.markedSpans,this);e&&!this.collapsed?vr(e,tt(l),"text"):e&&(null!=a.to&&(i=tt(l)),null!=a.from&&(r=tt(l))),l.markedSpans=Nt(l.markedSpans,a),null==a.from&&this.collapsed&&!Kt(this.doc,l)&&e&&et(l,sr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Ut(this.lines[s]),u=_t(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&gr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ao(e.doc)),e&&dn(e,"markerCleared",e,this,r,i),t&&Qr(e),this.parent&&this.parent.clear()}},No.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=At(o.markedSpans,this);if(null!=l.from&&(n=ot(t?o:tt(o),l.from),-1==e))return n;if(null!=l.to&&(r=ot(t?o:tt(o),l.to),1==e))return r}return n&&{from:n,to:r}},No.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ii(r,function(){var i=t.line,o=tt(t.line),l=Wn(r,o);if(l&&(Un(l),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Kt(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var s=Mn(n)-a;s&&et(i,i.height+s)}dn(r,"markerChanged",r,e)})},No.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=V(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},No.prototype.detachLine=function(e){if(this.lines.splice(V(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Se(No);var Fo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Do(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(e){return e.parent})}function Ho(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Bi(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==V(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Fo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();dn(this,"clear")}},Fo.prototype.find=function(e,t){return this.primary.find(e,t)},Se(Fo);var Eo=0,Wo=function(e,t,n,r,i){if(!(this instanceof Wo))return new Wo(e,t,n,r,i);null==n&&(n=0),Mo.call(this,[new Lo([new Jt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=Ni(o),this.history=new qi(null),this.id=++Eo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ri(this,{from:o,to:o,text:e}),io(this,Ni(o),$)};Wo.prototype=ne(Mo.prototype,{constructor:Wo,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=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ai(function(e){var t=ot(this.first,0),n=this.first+this.size-1;mo(this,{from:t,to:ot(n,Je(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ir(this.cm,0,0),io(this,Ni(t),$)}),replaceRange:function(e,t,n,r){bo(this,e,t=ht(this,t),n=n?ht(this,n):t,r)},getRange:function(e,t,n){var r=Qe(this,ht(this,e),ht(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Je(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),Ut(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(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:ai(function(e,t,n){no(this,ht(this,"number"==typeof e?ot(e,t||0):e),null,n)}),setSelection:ai(function(e,t,n){no(this,ht(this,e),ht(this,t||e),n)}),extendSelection:ai(function(e,t,n){Zi(this,ht(this,e),t&&ht(this,t),n)}),extendSelections:ai(function(e,t){eo(this,dt(this,e),t)}),extendSelectionsBy:ai(function(e,t){eo(this,dt(this,ee(this.sel.ranges,e)),t)}),setSelections:ai(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Oi(ht(this,e[i].anchor),ht(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),io(this,Ai(this.cm,r,t),n)}}),addSelection:ai(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Oi(ht(this,e),ht(this,t||e))),io(this,Ai(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=Qe(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=Qe(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:ai(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=ot(e.first,0),o=i,l=0;l<t.length;l++){var a=t[l],s=Hi(a.from,i,o),c=Hi(Pi(a),i,o);if(i=a.to,o=c,"around"==n){var u=e.sel.ranges[l],f=lt(u.head,u.anchor)<0;r[l]=new Oi(f?c:s,f?s:c)}else r[l]=new Oi(s,s)}return new Ti(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)mo(this,r[s]);a?ro(this,a):this.cm&&Wr(this.cm)}),undo:ai(function(){vo(this,"undo")}),redo:ai(function(){vo(this,"redo")}),undoSelection:ai(function(){vo(this,"undo",!0)}),redoSelection:ai(function(){vo(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(){var e=this;this.history=new qi(this.history),Bi(this,function(t){return t.history=e.history},!0)},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 qi(this.history);t.done=Ji(e.done.slice(0),null,!0),t.undone=Ji(e.undone.slice(0),null,!0)},setGutterMarker:ai(function(e,t,n){return ko(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&le(r)&&(e.gutterMarkers=null),!0})}),clearGutter:ai(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ko(t,n,"gutter",function(){return n.gutterMarkers[e]=null,le(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Je(this,e)))return null}else if(null==(t=tt(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:ai(function(e,t,n){return ko(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(L(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ai(function(e,t,n){return ko(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(L(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:ai(function(e,t,n){return function(e,t,n,r){var i=new To(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ko(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Kt(e,t)){var r=Xt(t)<e.scrollTop;et(t,t.height+Mn(i)),r&&Er(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&dn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Po(this,ht(this,e),ht(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 Po(this,e=ht(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Je(this,(e=ht(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=ht(this,e),t=ht(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}),ht(this,ot(n,t))},indexFromPos:function(e){var t=(e=ht(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 Wo(Ze(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 Wo(Ze(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(lt(o,l)){var a=Po(e,o,l,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,Do(this)),r},unlinkDoc:function(e){if(e instanceof Fl&&(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),Ho(Do(this));break}}if(e.history==this.history){var n=[e.id];Bi(e,function(e){return n.push(e.id)},!0),e.history=new qi(null),e.history.done=Ji(this.history.done,n),e.history.undone=Ji(this.history.undone,n)}},iterLinkedDocs:function(e){Bi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):We(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ai(function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ii(t=this.cm,function(){zi(t),gr(t)}))})}),Wo.prototype.eachLine=Wo.prototype.iter;var Io=0;function Ro(e){var t=this;if(Bo(t),!be(t,e)&&!Tn(t.display,e)){ke(e),l&&(Io=+new Date);var n=pr(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(){++a==i&&oi(t,function(){var e={from:n=ht(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};mo(t.doc,e),ro(t.doc,Ni(ht(t.doc,n),ht(t.doc,Pi(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==V(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),s()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);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 f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),oo(t.doc,Ni(n,n)),h)for(var d=0;d<h.length;++d)bo(t.doc,"",h[d].anchor,h[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Bo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function jo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var zo=!1;function qo(){var e;zo||(ge(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,jo(Uo)},100))}),ge(window,"blur",function(){return jo(Nr)}),zo=!0)}function Uo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Go={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:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Vo=0;Vo<10;Vo++)Go[Vo+48]=Go[Vo+96]=String(Vo);for(var Ko=65;Ko<=90;Ko++)Go[Ko]=String.fromCharCode(Ko);for(var $o=1;$o<=12;$o++)Go[$o+111]=Go[$o+63235]="F"+$o;var Xo={};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 Yo(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=ee(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=tl(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 Qo(e){var t="string"==typeof e?e:Go[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Zo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function el(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=Go[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Zo(n,e,t))}function tl(e){return"string"==typeof e?Xo[e]:e}function nl(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&<(o.from,Z(r).to)<=0;){var l=r.pop();if(lt(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}ii(e,function(){for(var t=r.length-1;t>=0;t--)bo(e.doc,"",r[t].from,r[t].to,"+delete");Wr(e)})}function rl(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function il(e,t,n){var r=rl(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function ol(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=pe(n,t.doc.direction);if(o){var l,a=i<0?Z(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var c=In(t,n);l=i<0?n.text.length-1:0;var u=Rn(t,c,l).top;l=ue(function(e){return Rn(t,c,e).top==u},i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=rl(n,l,1))}else l=i<0?a.to:a.from;return new ot(r,l,s)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}Xo.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"},Xo.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"},Xo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Xo.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"]},Xo.default=x?Xo.macDefault:Xo.pcDefault;var ll={selectAll:ho,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return nl(e,function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return nl(e,function(t){return{from:ot(t.from().line,0),to:ht(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return nl(e,function(e){return{from:ot(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return nl(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 nl(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(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return al(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return sl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Je(e.doc,t),r=function(e){for(var t;t=jt(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=tt(r));return ol(!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")},_)},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")},_)},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/)?sl(e,t.head):r},_)},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,"codepoint")},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=U(e.getLine(o.line),o.ch,r);t.push(Q(r-l%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ii(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Je(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=Je(e.doc,i.line-1).text;l&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),ot(i.line-1,l.length-1),i,"+transpose"))}n.push(new Oi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ii(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);Wr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function al(e,t){var n=Je(e.doc,t),r=Ut(n);return r!=n&&(t=tt(r)),ol(!0,e,r,t,1)}function sl(e,t){var n=al(e,t.line),r=Je(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),l=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,l?0:o,n.sticky)}return n}function cl(e,t,n){if("string"==typeof t&&!(t=ll[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)!=K}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ul=new G;function fl(e,t,n,r){var i=e.state.keySeq;if(i){if(Qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ul.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),hl(e,i+" "+t,n,r))return!0}return hl(e,t,n,r)}function hl(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&&dn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Mr(e)),!!i}function dl(e,t){var n=el(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?fl(e,"Shift-"+n,t,function(t){return cl(e,t,!0)})||fl(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return cl(e,t)}):fl(e,n,t,function(t){return cl(e,t)}))}var pl=null;function ml(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(R(t)),be(t,e)))){l&&a<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=dl(t,e);h&&(pl=i?r:null,i||88!=r||Re||!(x?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!x&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}H(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function gl(e){16==e.keyCode&&(this.doc.sel.shift=!1),be(this,e)}function vl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Tn(t.display,e)||be(t,e)||e.ctrlKey&&!e.altKey||x&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(h&&n==pl)return pl=null,void ke(e);if(!h||e.which&&!(e.which<10)||!dl(t,e)){var i=String.fromCharCode(r??n);"\b"!=i&&(function(e,t,n){return fl(e,"'"+n+"'",t,function(t){return cl(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var yl,xl,bl=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Cl(e){var t=this,n=t.display;if(!(be(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Tn(n,e))s||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!kl(t,e)){var r=pr(t,e),i=Ae(e),o=r?function(e,t){var n=+new Date;return xl&&xl.compare(n,e,t)?(yl=xl=null,"triple"):yl&&yl.compare(n,e,t)?(xl=new bl(n,e,t),yl=null,"double"):(yl=new bl(n,e,t),xl=null,"single")}(r,i):"single";j(t).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 o=(1==t?"Left":2==t?"Middle":"Right")+o,fl(e,Zo(o,i),i,function(t){if("string"==typeof t&&(t=ll[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=K}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){l?setTimeout(z(Tr,e),0):e.curOp.focus=D(R(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?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=x?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(x?n.altKey:n.ctrlKey));return i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Fe&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(lt((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(lt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=oi(e,function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Or(e)),ye(i.wrapper.ownerDocument,"mouseup",c),ye(i.wrapper.ownerDocument,"mousemove",u),ye(i.scroller,"dragstart",f),ye(i.scroller,"drop",c),o||(ke(t),r.addNew||Zi(e.doc,n,null,null,r.extend),s&&!d||l&&9==a?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),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,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",f),ge(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){l&&Or(e);var i=e.display,o=e.doc;ke(t);var a,s,c=o.sel,u=c.ranges;r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new Oi(n,n)):(a=o.sel.primary(),s=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(a=new Oi(n,n)),n=pr(e,t,!0,!0),s=-1;else{var f=wl(e,n,r.unit);a=r.extend?Qi(a,f.anchor,f.head,r.extend):f}r.addNew?-1==s?(s=u.length,io(o,Ai(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(io(o,Ai(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):to(o,s,a,X):(s=0,io(o,new Ti([a],0),X),c=o.sel);var h=n;function d(t){if(0!=lt(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,u=U(Je(o,n.line).text,n.ch,l),f=U(Je(o,t.line).text,t.ch,l),d=Math.min(u,f),p=Math.max(u,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Je(o,m).text,y=Y(v,d,l);d==p?i.push(new Oi(ot(m,y),ot(m,y))):v.length>y&&i.push(new Oi(ot(m,y),ot(m,Y(v,p,l))))}i.length||i.push(new Oi(n,n)),io(o,Ai(e,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,b=a,C=wl(e,t,r.unit),w=b.anchor;lt(C.anchor,w)>0?(x=C.head,w=ut(b.from(),C.anchor)):(x=C.anchor,w=ct(b.to(),C.head));var S=c.ranges.slice(0);S[s]=function(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==lt(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var l=he(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=he(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 Oi(new ot(n.line,p,m),r)}(e,new Oi(ht(o,w),x)),io(o,Ai(e,S,s),X)}}var p=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,l=pr(e,t,!0,"rectangle"==r.unit);if(l)if(0!=lt(l,h)){e.curOp.focus=D(R(e)),d(l);var a=Dr(i,o);(l.line>=a.to||l.line<a.from)&&setTimeout(oi(e,function(){m==n&&g(t)}),150)}else{var s=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;s&&setTimeout(oi(e,function(){m==n&&(i.scroller.scrollTop+=s,g(t))}),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",y),ye(i.wrapper.ownerDocument,"mouseup",x),o.history.lastSelOrigin=null}var y=oi(e,function(e){0!==e.buttons&&Ae(e)?g(e):v(e)}),x=oi(e,v);e.state.selectingText=x,ge(i.wrapper.ownerDocument,"mousemove",y),ge(i.wrapper.ownerDocument,"mouseup",x)}(e,r,t,o)}(t,r,o,e):Oe(e)==n.scroller&&ke(e):2==i?(r&&Zi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(k?t.display.input.onContextMenu(e):Or(t)))}}function wl(e,t,n){if("char"==n)return new Oi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Oi(ot(t.line,0),ht(e.doc,ot(t.line+1,0)));var r=n(e,t);return new Oi(r.from,r.to)}function Sl(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(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!we(e,n))return Me(t);o-=a.top-l.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=l.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i)return xe(e,n,e,nt(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function kl(e,t){return Sl(e,t,"gutterClick",!0)}function Ll(e,t){Tn(e.display,t)||function(e,t){if(!we(e,"gutterContextMenu"))return!1;return Sl(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Ml(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vn(e)}bl.prototype.compare=function(e,t,n){return this.time+400>e&&0==lt(t,this.pos)&&n==this.button};var Tl={toString:function(){return"CodeMirror.Init"}},Ol={},Al={};function Nl(e,t,n){if(!t!=!(n&&n!=Tl)){var r=e.display.dragFunctions,i=t?ge:ye;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 Pl(e){e.options.lineWrapping?(H(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),dr(e),gr(e),Vn(e),setTimeout(function(){return Kr(e)},100)}function Fl(e,t){var n=this;if(!(this instanceof Fl))return new Fl(e,t);this.options=t=t?q(t):{},q(Ol,t,!1);var r=t.value;"string"==typeof r?r=new Wo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Fl.inputStyles[t.inputStyle](this),o=this.display=new Ci(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ml(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 G,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),l&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",oi(e,Cl)),ge(t.scroller,"dblclick",l&&a<11?oi(e,function(t){if(!be(e,t)){var n=pr(e,t);if(n&&!kl(e,t)&&!Tn(e.display,t)){ke(t);var r=e.findWordAt(n);Zi(e.doc,r.anchor,r.head)}}}):function(t){return be(e,t)||ke(t)});ge(t.scroller,"contextmenu",function(t){return Ll(e,t)}),ge(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ll(e,n)});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){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function s(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}ge(t.scroller,"touchstart",function(i){if(!be(e,i)&&!o(i)&&!kl(e,i)){t.input.ensurePolled(),clearTimeout(n);var l=+new Date;t.activeTouch={start:l,moved:!1,prev:l-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new Oi(l,l):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(l):new Oi(ot(l.line,0),ht(e.doc,ot(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()}),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jr(e,t.scroller.scrollTop),qr(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return Mi(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return Mi(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){be(e,t)||Te(t)},over:function(t){be(e,t)||(!function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();Sr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),Te(t))},start:function(t){return function(e,t){if(l&&(!e.state.draggingText||+new Date-Io<100))Te(t);else if(!be(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}(e,t)},drop:oi(e,Ro),leave:function(t){be(e,t)||Bo(e)}};var c=t.input.getField();ge(c,"keyup",function(t){return gl.call(e,t)}),ge(c,"keydown",oi(e,ml)),ge(c,"keypress",oi(e,vl)),ge(c,"focus",function(t){return Ar(e,t)}),ge(c,"blur",function(t){return Nr(e,t)})}(this),qo(),Jr(this),this.curOp.forceUpdate=!0,ji(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ar(n)},20):Nr(this),Al)Al.hasOwnProperty(c)&&Al[c](this,t[c],Tl);vi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Dl.length;++u)Dl[u](this);Qr(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Fl.defaults=Ol,Fl.optionHandlers=Al;var Dl=[];function Hl(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var l=e.options.tabSize,a=Je(o,t),s=U(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))==K||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?U(Je(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+=Q(c-h)),f!=u)return bo(o,f,ot(t,0),ot(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=ot(t,u.length);to(o,p,new Oi(g,g));break}}}Fl.defineInitHook=function(e){return Dl.push(e)};var El=null;function Wl(e){El=e}function Il(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var l=+new Date-200,a="paste"==i||e.state.pasteIncoming>l,s=We(t),c=null;if(a&&r.ranges.length>1)if(El&&El.text.join("\n")==t){if(r.ranges.length%El.text.length==0){c=[];for(var u=0;u<El.text.length;u++)c.push(o.splitLines(El.text[u]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=ee(s,function(e){return[e]}));for(var f=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var d=r.ranges[h],p=d.from(),m=d.to();d.empty()&&(n&&n>0?p=ot(p.line,p.ch-n):e.state.overwrite&&!a?m=ot(m.line,Math.min(Je(o,m.line).text.length,m.ch+Z(s).length)):a&&El&&El.lineWise&&El.text.join("\n")==s.join("\n")&&(p=m=ot(p.line,0)));var g={from:p,to:m,text:c?c[h%c.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};mo(e.doc,g),dn(e,"inputRead",e,g)}t&&!a&&Bl(e,t),Wr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Rl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ii(t,function(){return Il(t,n,0,null,"paste")}),!0}function Bl(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=Hl(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Hl(e,i.head.line,"smart"));l&&dn(e,"electricInput",e,i.head.line)}}}function jl(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:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function zl(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function ql(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Ul(e,t,n,r,i){var o=t,l=n,a=Je(e,t.line),s=i&&"rtl"==e.direction?-n:n;function c(o){var l,c;if("codepoint"==r){var u=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))l=null;else{var f=n>0?u>=55296&&u<56320:u>=56320&&u<57343;l=new ot(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(f?2:1))),-n)}}else l=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return il(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=he(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 il(t,n,r);var a,s=function(e,n){return rl(t,e instanceof ot?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(a=a||In(e,t),rr(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 ot(n.line,h,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,s(e,1),"before"):new ot(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):il(a,t,n);if(null==l){if(o||(c=t.line+s)<e.first||c>=e.first+e.size||(t=new ot(c,t.ch,t.sticky),!(a=Je(e,c))))return!1;t=ol(i,e.cm,a,t.line,s)}else t=l;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var p=a.text.charAt(t.ch)||"\n",m=oe(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!d))break}var g=uo(e,t,o,l,!0);return at(o,g)&&(g.hitSide=!0),g}function Gl(e,t,n,r){var i,o,l=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,j(e).innerHeight||l(e).documentElement.clientHeight),c=Math.max(s-.5*sr(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=tr(e,a,i)).outside;){if(n<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*n}return o}var Vl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Kl(e,t){var n=Wn(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Hn(n,r,t.line),o=pe(r,e.doc.direction),l="left";o&&(l=he(o,t.ch)%2?"right":"left");var a=zn(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function $l(e,t){return t&&(e.bad=!0),e}function Xl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $l(e.clipPos(ot(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 _l(o,t,n)}}function _l(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!F(r,t))return $l(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return $l(ot(tt(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=tt(i<0?e.line:e.rest[i]),f=o[l]+r;return(r<0||a!=t)&&(f=o[l+(r?1:0)]),ot(u,f)}}}var f=u(l,a,n);if(f)return $l(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 $l(ot(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 $l(ot(f.line,f.ch+m),i);m+=p.textContent.length}}Vl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function l(e){if(o(e)&&!be(r,e)){if(r.somethingSelected())Wl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=jl(r);Wl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var l=El.text.join("\n");if(e.clipboardData.setData("Text",l),e.clipboardData.getData("Text")==l)return void e.preventDefault()}var a=ql(),s=a.firstChild;zl(s),r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=El.text.join("\n");var c=D(B(i));W(s),setTimeout(function(){r.display.lineSpace.removeChild(a),c.focus(),c==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,zl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",function(e){!o(e)||be(r,e)||Rl(e,r)||a<=11&&setTimeout(oi(r,function(){return t.updateFromDOM()}),20)}),ge(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),ge(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),ge(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ge(i,"touchstart",function(){return n.forceCompositionEnd()}),ge(i,"input",function(){t.composing||t.readFromDOMSoon()}),ge(i,"copy",l),ge(i,"cut",l)},Vl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Vl.prototype.prepareSelection=function(){var e=wr(this.cm,!1);return e.focus=D(B(this.div))==this.div,e},Vl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Vl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Vl.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=Xl(t,e.anchorNode,e.anchorOffset),a=Xl(t,e.focusNode,e.focusOffset);if(!l||l.bad||!a||a.bad||0!=lt(ut(l,a),i)||0!=lt(ct(l,a),o)){var s=t.display.view,c=i.line>=t.display.viewFrom&&Kl(t,i)||{node:s[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Kl(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=M(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()}}},Vl.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)},Vl.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},Vl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Vl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return F(this.div,t)},Vl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D(B(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Vl.prototype.blur=function(){this.div.blur()},Vl.prototype.getField=function(){return this.div},Vl.prototype.supportsTouch=function(){return!0},Vl.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ii(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Vl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Vl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.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=Xl(t,e.anchorNode,e.anchorOffset),r=Xl(t,e.focusNode,e.focusOffset);n&&r&&ii(t,function(){io(t.doc,Ni(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Vl.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=ot(l.line-1,Je(r.doc,l.line-1).length)),a.ch==Je(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=ot(a.line+1,0)),l.line<i.viewFrom||a.line>i.viewTo-1)return!1;l.line==i.viewFrom||0==(e=mr(r,l.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,c,u=mr(r,a.line);if(u==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=tt(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(e){return function(t){return t.id==e}}function u(){l&&(o+=a,s&&(o+=a),l=s=!1)}function f(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(ot(r,0),ot(i+1,0),c(+d));return void(p.length&&(o=p[0].find(0))&&f(Qe(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)h(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),m&&(l=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,s=!1;return o}(r,n,c,t,s)),h=Qe(r.doc,ot(t,0),ot(s,Je(r.doc,s).text.length));f.length>1&&h.length>1;)if(Z(f)==Z(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=Z(f),x=Z(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=ot(t,d),w=ot(s,h.length?Z(h).length-p:0);return f.length>1||f[0]||lt(C,w)?(bo(r.doc,f,C,w,"+input"),!0):void 0},Vl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Vl.prototype.reset=function(){this.forceCompositionEnd()},Vl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Vl.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))},Vl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ii(this.cm,function(){return gr(e.cm)})},Vl.prototype.setUneditable=function(e){e.contentEditable="false"},Vl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||oi(this.cm,Il)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Vl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Vl.prototype.onContextMenu=function(){},Vl.prototype.resetPosition=function(){},Vl.prototype.needsContentAttribute=!0;var Yl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};Yl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!be(r,e)){if(r.somethingSelected())Wl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=jl(r);Wl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),W(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(i,"paste",function(e){be(r,e)||Rl(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",function(t){if(!Tn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),ge(e.lineSpace,"selectstart",function(t){Tn(e,t)||ke(t)}),ge(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"})}}),ge(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Yl.prototype.createField=function(e){this.wrapper=ql(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;zl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Yl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Yl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=wr(e);if(e.options.moveInputWithCursor){var i=Qn(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},Yl.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")},Yl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&W(this.textarea),l&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null));this.resetting=!1}},Yl.prototype.getField=function(){return this.textarea},Yl.prototype.supportsTouch=function(){return!1},Yl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D(B(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},Yl.prototype.blur=function(){this.textarea.blur()},Yl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yl.prototype.receivedFocus=function(){this.slowPoll()},Yl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Yl.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))})},Yl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ie(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||x&&/[\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 ii(t,function(){Il(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},Yl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yl.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},Yl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),c=r.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&oi(n,io)(n.doc,Ni(o),$);var u,f=i.style.cssText,d=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",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&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),s&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),l&&a>=9&&g(),k){Te(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(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==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,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?oi(n,ho)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Yl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Yl.prototype.setUneditable=function(){},Yl.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!=Tl&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Tl,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ei(e)},!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Wi(e),Vn(e),gr(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(ot(r,o))}r++});for(var i=n.length-1;i>=0;i--)bo(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Tl&&e.refresh()}),n("specialCharPlaceholder",rn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"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("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!C),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ml(e),bi(e)},!0),n("keyMap","default",function(e,t,n){var r=tl(t),i=n!=Tl&&tl(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Pl,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=yi(t,e.options.lineNumbers),bi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?fr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Kr(e)},!0),n("scrollbarStyle","native",function(e){_r(e),Kr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=yi(e.options.gutters,t),bi(e)},!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",function(e){return e},bi,!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&&(Nr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Nl),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,Wi,!0),n("addModeClass",!1,Wi,!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,Wi,!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)}(Fl),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){j(this).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)&&oi(this,t[e])(this,n,i),xe(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"](tl(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:li(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++,gr(this)}),removeOverlay:li(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 gr(this)}}),indentLine:li(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&Hl(this,e,t,n)}),indentSelection:li(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&&(Hl(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Wr(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)Hl(this,s,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&to(this.doc,r,new Oi(o,c[r].to()),$)}}}),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=vt(this,Je(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==V(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=ft(n,e??n.first+n.size-1))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Qn(this,null==e?n.head:"object"==typeof e?ht(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Jn(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return tr(this,(e=Yn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Yn(this,{top:e,left:0},t||"page").top,nt(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=Je(this.doc,e)}else r=e;return _n(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Xt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return cr(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=Qn(this,ht(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=Hr(o,l)).scrollTop&&jr(o,a.scrollTop),null!=a.scrollLeft&&qr(o,a.scrollLeft))},triggerOnKeyDown:li(ml),triggerOnKeyPress:li(vl),triggerOnKeyUp:gl,triggerOnMouseDown:li(Cl),execCommand:function(e){if(ll.hasOwnProperty(e))return ll[e].call(null,this)},triggerElectric:li(function(e){Bl(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),l=0;l<t&&!(o=Ul(this.doc,o,i,n,r)).hitSide;++l);return o},moveH:li(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ul(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},_)}),deleteH:li(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):nl(this,function(n){var i=Ul(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=ht(this.doc,e),a=0;a<t;++a){var s=Qn(this,l,"div");if(null==o?o=s.left:s.left=o,(l=Gl(this,s,i,n)).hitSide)break}return l},moveV:li(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=Qn(n,l.head,"div");null!=l.goalColumn&&(a.left=l.goalColumn),i.push(a.left);var s=Gl(n,a,e,t);return"page"==t&&l==r.sel.primary()&&Er(n,Jn(n,s,"div").top-a.top),s},_),i.length)for(var l=0;l<r.sel.ranges.length;l++)r.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=Je(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=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&l(t.charAt(n-1));)--n;for(;r<t.length&&l(t.charAt(r));)++r}return new Oi(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?H(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(R(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:li(function(e,t){Ir(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Pn(this)-this.display.barHeight,width:e.scrollWidth-Pn(this)-this.display.barWidth,clientHeight:Dn(this),clientWidth:Fn(this)}},scrollIntoView:li(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:ot(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){Rr(e),e.curOp.scrollToPos=t}(this,e):Br(this,e.from,e.to,e.margin)}),setSize:li(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&&Gn(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){vr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,xe(this,"refresh",this)}),operation:function(e){return ii(this,e)},startOperation:function(){return Jr(this)},endOperation:function(){return Qr(this)},refresh:li(function(){var e=this.display.cachedTextHeight;gr(this),this.curOp.forceUpdate=!0,Vn(this),Ir(this,this.doc.scrollLeft,this.doc.scrollTop),pi(this.display),(null==e||Math.abs(e-sr(this.display))>.5||this.options.lineWrapping)&&dr(this),xe(this,"refresh",this)}),swapDoc:li(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ji(this,e),Vn(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,dn(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}},Se(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})}}(Fl);var Jl="iter insert remove copy getEditor constructor".split(" ");for(var Ql in Wo.prototype)Wo.prototype.hasOwnProperty(Ql)&&V(Jl,Ql)<0&&(Fl.prototype[Ql]=function(e){return function(){return e.apply(this.doc,arguments)}}(Wo.prototype[Ql]));return Se(Wo),Fl.inputStyles={textarea:Yl,contenteditable:Vl},Fl.defineMode=function(e){Fl.defaults.mode||"null"==e||(Fl.defaults.mode=e),qe.apply(this,arguments)},Fl.defineMIME=function(e,t){ze[e]=t},Fl.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Fl.defineMIME("text/plain","null"),Fl.defineExtension=function(e,t){Fl.prototype[e]=t},Fl.defineDocExtension=function(e,t){Wo.prototype[e]=t},Fl.fromTextArea=function(e,t){if((t=t?q(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(B(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(ge(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(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var a=Fl(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Li,e.Doc=Wo,e.splitLines=We,e.countColumn=U,e.findColumn=Y,e.isWordChar=ie,e.Pass=K,e.signal=xe,e.Line=Jt,e.changeEnd=Pi,e.scrollbarModel=Xr,e.Pos=ot,e.cmpPos=lt,e.modes=je,e.mimeModes=ze,e.resolveMode=Ue,e.getMode=Ge,e.modeExtensions=Ve,e.extendMode=Ke,e.copyState=$e,e.startState=_e,e.innerMode=Xe,e.commands=ll,e.keyMap=Xo,e.keyName=el,e.isModifierKey=Qo,e.lookupKey=Jo,e.normalizeKeyMap=Yo,e.StringStream=Ye,e.SharedTextMarker=Fo,e.TextMarker=No,e.LineWidget=To,e.e_preventDefault=ke,e.e_stopPropagation=Le,e.e_stop=Te,e.addClass=H,e.contains=F,e.rmClass=T,e.keyNames=Go}(Fl),Fl.version="5.65.19",Fl}),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>|<FilesMatch|DirectoryMatch>|<Location|Location>/))return l.skipToEnd(),"keyword";if(l.string.trim().match(/<IfModule|IfModule>|<Proxy|Proxy>/))return l.skipToEnd(),"def";if("#"==l.peek())return l.skipToEnd(),"comment";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(t,n,r){var i=(t=t.getWrapperElement()).appendChild(document.createElement("div"));return i.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(t,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){function l(t){"string"==typeof t?u.value=t:!s&&(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus(),o.onClose)&&o.onClose(a)}o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,c=this,u=a.getElementsByTagName("input")[0];return u?(u.focus(),o.value&&(u.value=o.value,!1!==o.selectValueOnOpen&&u.select()),o.onInput&&e.on(u,"input",function(e){o.onInput(e,u.value,l)}),o.onKeyUp&&e.on(u,"keyup",function(e){o.onKeyUp(e,u.value,l)}),e.on(u,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,u.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(u.blur(),e.e_stop(t),l()),13==t.keyCode&&i(u.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&l()})):(r=a.getElementsByTagName("button")[0])&&(e.on(r,"click",function(){l(),c.focus()}),!1!==o.closeOnBlur&&e.on(r,"blur",l),r.focus()),l}),e.defineExtension("openConfirm",function(r,i,o){function l(){s||(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}n(this,null);var a=t(this,r,o&&o.bottom);r=a.getElementsByTagName("button");var s=!1,c=this,u=1;for(r[0].focus(),o=0;o<r.length;++o){var f=r[o];(function(t){e.on(f,"click",function(n){e.e_preventDefault(n),l(),t&&t(c)})})(i[o]),e.on(f,"blur",function(){--u,setTimeout(function(){0>=u&&l()},200)}),e.on(f,"focus",function(){++u})}}),e.defineExtension("openNotification",function(r,i){function o(){s||(s=!0,clearTimeout(l),e.rmClass(a.parentNode,"dialog-opened"),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(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function l(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function a(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=l(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function s(e,t,n){t.queryText=n,t.query=a(n),e.removeOverlay(t.overlay,r(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);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function c(t,r,i,l){var a=n(t);if(a.query)return u(t,r);var c=t.getSelection()||a.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var h=null,p=function(n,r){e.e_stop(r),n&&(n!=a.queryText&&(s(t,a,n),a.posFrom=a.posTo=t.getCursor()),h&&(h.style.opacity=1),u(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"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(){f(e)},onKeyDown:i,bottom:e.options.search.bottom})}(t,d(t),c,p,function(r,i){var o=e.keyName(r),l=t.getOption("extraKeys"),a=l&&l[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(r),s(t,n(t),i),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(e.e_stop(r),p(i,r))}),l&&c&&(s(t,a,c),u(t,r))}else o(t,d(t),"Search for:",c,function(e){e&&!a.query&&t.operation(function(){s(t,a,e),a.posFrom=a.posTo=t.getCursor(),u(t,r)})})}function u(t,r,o){t.operation(function(){var l=n(t),a=i(t,l.query,r?l.posFrom:l.posTo);(a.find(r)||(a=i(t,l.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),l.posFrom=a.from(),l.posTo=a.to(),o&&o(a.from(),a.to()))})}function f(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function h(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function d(e){var t=h("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),h("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),h("",null,t," ",h("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function p(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function m(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,s=t?e.phrase("Replace all:"):e.phrase("Replace:"),c=h("",null,h("span",{className:"CodeMirror-search-label"},s),function(e){return h("",null," ",h("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",h("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}(e));o(e,c,s,r,function(n){n&&(n=a(n),o(e,function(e){return h("",null,h("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",h("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}(e),e.phrase("Replace with:"),"",function(r){if(r=l(r),t)p(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),a=function(){var t,l=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||l&&o.from().line==l.line&&o.from().ch==l.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return h("",null,h("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",h("button",{},e.phrase("Yes"))," ",h("button",{},e.phrase("No"))," ",h("button",{},e.phrase("All"))," ",h("button",{},e.phrase("Stop")))}(e),e.phrase("Replace?"),[function(){s(t)},a,function(){p(e,n,r)}]))},s=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),a()};a()}}))})}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){f(e),c(e)},e.commands.findPersistent=function(e){f(e),c(e,!1,!0)},e.commands.findPersistentNext=function(e){c(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){c(e,!0,!0,!0)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=f,e.commands.replace=m,e.commands.replaceAll=function(e){m(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";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function l(e,t,n){t=i(t,"g");for(var o=n.line,l=n.ch,a=e.lastLine();o<=a;o++,l=0){t.lastIndex=l;var s=e.getLine(o),c=t.exec(s);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function a(e,t,n){if(!o(t))return l(e,t,n);t=i(t,"gm");for(var a,s=1,c=n.line,u=e.lastLine();c<=u;){for(var f=0;f<s&&!(c>u);f++){var h=e.getLine(c++);a=null==a?h:a+"\n"+h}s*=2,t.lastIndex=n.ch;var d=t.exec(a);if(d){var p=a.slice(0,d.index).split("\n"),m=d[0].split("\n"),g=n.line+p.length-1,v=p[p.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:d}}}}function s(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var l=o.index+o[0].length;if(l>e.length-n)break;(!r||l>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=i(t,"g");for(var o=n.line,l=n.ch,a=e.firstLine();o>=a;o--,l=-1){var c=e.getLine(o),u=s(c,t,l<0?0:c.length-l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return c(e,t,n);t=i(t,"gm");for(var l,a=1,u=e.getLine(n.line).length-n.ch,f=n.line,h=e.firstLine();f>=h;){for(var d=0;d<a&&f>=h;d++){var p=e.getLine(f--);l=null==l?p:p+"\n"+l}a*=2;var m=s(l,t,u);if(m){var g=l.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=f+g.length,x=g[g.length-1].length;return{from:r(y,x),to:r(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:m}}}}function f(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 h(e,i,o,l){if(!i.length)return null;var a=l?t:n,s=a(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,h=e.lastLine()+1-s.length;c<=h;c++,u=0){var d=e.getLine(c).slice(u),p=a(d);if(1==s.length){var m=p.indexOf(s[0]);if(-1==m)continue e;o=f(d,p,m,a)+u;return{from:r(c,f(d,p,m,a)+u),to:r(c,f(d,p,m+s[0].length,a)+u)}}var g=p.length-s[0].length;if(p.slice(g)==s[0]){for(var v=1;v<s.length-1;v++)if(a(e.getLine(c+v))!=s[v])continue e;var y=e.getLine(c+s.length-1),x=a(y),b=s[s.length-1];if(x.slice(0,b.length)==b)return{from:r(c,f(d,p,g,a)+u),to:r(c+s.length-1,f(y,x,b.length,a))}}}}function d(e,i,o,l){if(!i.length)return null;var a=l?t:n,s=a(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,h=e.firstLine()-1+s.length;c>=h;c--,u=-1){var d=e.getLine(c);u>-1&&(d=d.slice(0,u));var p=a(d);if(1==s.length){var m=p.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,f(d,p,m,a)),to:r(c,f(d,p,m+s[0].length,a))}}var g=s[s.length-1];if(p.slice(0,g.length)==g){var v=1;for(o=c-s.length+1;v<s.length-1;v++)if(a(e.getLine(o+v))!=s[v])continue e;var y=e.getLine(c+1-s.length),x=a(y);if(x.slice(x.length-s[0].length)==s[0])return{from:r(c+1-s.length,f(y,x,y.length-s[0].length,a)),to:r(c,f(d,p,g.length,a))}}}}function p(e,t,n,o){var s;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?s=o.caseFold:(s=o,o=null),"string"==typeof t?(null==s&&(s=!1),this.matches=function(n,r){return(n?d:h)(e,t,r,s)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?c:l)(e,t,r)}:this.matches=function(n,r){return(n?u:a)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),p.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new p(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new p(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"),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.defineOption("search",{bottom:!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,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("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)})}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)});function n(e,t,n){return e<=t?e:Math.max(t,e+n)}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),{caseFold:this.caseFold,multiline:this.options.multiline}),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";var t={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(e){for(var n in this.options={},t)this.options[n]=(e&&e.hasOwnProperty(n)?e:t)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function r(e){var t=e.state.matchHighlighter;(t.active||e.hasFocus())&&o(e,t)}function i(e){var t=e.state.matchHighlighter;t.active||(t.active=!0,o(e,t))}function o(e,t){clearTimeout(t.timeout),t.timeout=setTimeout(function(){s(e)},t.options.delay)}function l(e,t,n,r){var i=e.state.matchHighlighter;if(e.addOverlay(i.overlay=function(e,t,n){return{token:function(r){if(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)))return n;r.next(),r.skipTo(e.charAt(0))||r.skipToEnd()}}}(t,n,r)),i.options.annotateScrollbar&&e.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(t.charAt(0))?"\\b":"")+t.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(t.charAt(t.length-1))?"\\b":"")):t;i.matchesonscroll=e.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(e){var t=e.state.matchHighlighter;t.overlay&&(e.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function s(e){e.operation(function(){var t=e.state.matchHighlighter;if(a(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){var r=e.getRange(t,n);if(null!==r.match(/^\w+$/)){if(t.ch>0){var i={line:t.line,ch:t.ch-1};if(null===e.getRange(i,t).match(/\W/))return!1}if(n.ch<e.getLine(t.line).length){i={line:n.line,ch:n.ch+1};if(null===e.getRange(n,i).match(/\W/))return!1}return!0}return!1}(e,n,r))){var i=e.getRange(n,r);t.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=t.options.minChars&&l(e,i,!1,t.options.style)}}else{for(var o=!0===t.options.showToken?/[\w$]/:t.options.showToken,s=e.getCursor(),c=e.getLine(s.line),u=s.ch,f=u;u&&o.test(c.charAt(u-1));)--u;for(;f<c.length&&o.test(c.charAt(f));)++f;u<f&&l(e,c.slice(u,f),o,t.options.style)}})}e.defineOption("highlightSelectionMatches",!1,function(t,o,l){if(l&&l!=e.Init&&(a(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",r),t.off("focus",i)),o){var c=t.state.matchHighlighter=new n(o);t.hasFocus()?(c.active=!0,s(t)):t.on("focus",i),t.on("cursorActivity",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){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,r){return t.indent(e.base,n,r)},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){function t(e,t){if(!e.hasOwnProperty(t))throw 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.unicode&&(n+="u"),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(t,r){return function(i,l){if(l.pending){var a=l.pending.shift();return 0==l.pending.length&&(l.pending=null),i.pos+=a.text.length,a.token}if(l.local){var s;if(l.local.end&&i.match(l.local.end))a=l.local.endToken||null,l.local=l.localState=null;else a=l.local.mode.token(i,l.localState),l.local.endScan&&(s=l.local.endScan.exec(i.current()))&&(i.pos=i.start+s.index);return a}for(var c=t[l.state],u=0;u<c.length;u++)if(s=(!(a=c[u]).data.sol||i.sol())&&i.match(a.regex)){if(a.data.next?l.state=a.data.next:a.data.push?((l.stack||(l.stack=[])).push(l.state),l.state=a.data.push):a.data.pop&&l.stack&&l.stack.length&&(l.state=l.stack.pop()),a.data.mode){c=void 0;var f=r;u=l;var h=a.data.mode,d=a.token;if(h.persistent)for(var p=u.persistentStates;p&&!c;p=p.next)(h.spec?o(h.spec,p.spec):h.mode==p.mode)&&(c=p);f=c?c.mode:h.mode||e.getMode(f,h.spec),p=c?c.state:e.startState(f),h.persistent&&!c&&(u.persistentStates={mode:f,spec:h.spec,state:p,next:u.persistentStates}),u.localState=p,u.local={mode:f,end:h.end&&n(h.end),endScan:h.end&&!1!==h.forceEnd&&n(h.end,!1),endToken:d&&d.join?d[d.length-1]:d}}if(a.data.indent&&l.indent.push(i.indentation()+r.indentUnit),a.data.dedent&&l.indent.pop(),(c=a.token)&&c.apply&&(c=c(s)),2<s.length&&a.token&&"string"!=typeof a.token){for(u=2;u<s.length;u++)s[u]&&(l.pending||(l.pending=[])).push({text:s[u],token:a.token[u-1]});return i.backUp(s[0].length-(s[1]?s[1].length:0)),c[0]}return c&&c.join?c[0]:c}return i.next(),null}}function o(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n,r=0;for(n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n)||!o(e[n],t[n]))return!1;r++}for(n in t)t.hasOwnProperty(n)&&r--;return 0==r}function l(t,n){return function(r,i,o){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,i,o);if(!(o=null==r.indent||r.local)&&(o=n.dontIndentStates)){e:{o=n.dontIndentStates;for(var l=0;l<o.length;l++)if(o[l]===r.state){o=!0;break e}o=void 0}o=-1<o}if(o)return e.Pass;o=r.indent.length-1,l=t[r.state];e:for(;;){for(var a=0;a<l.length;a++){var s=l[a];if(s.data.dedent&&!1!==s.data.dedentIfLineStart){var c=s.regex.exec(i);if(c&&c[0]){o--,(s.next||s.push)&&(l=t[s.next||s.push]),i=i.slice(c[0].length);continue e}}}break}return 0>o?0:r.indent[o]}}e.defineSimpleMode=function(t,n){e.defineMode(t,function(t){return e.simpleMode(t,n)})},e.simpleMode=function(n,o){t(o,"start");var a,s={},c=o.meta||{},u=!1;for(a in o)if(a!=c&&o.hasOwnProperty(a))for(var f=s[a]=[],h=o[a],d=0;d<h.length;d++){var p=h[d];f.push(new r(p,o)),(p.indent||p.dedent)&&(u=!0)}if(s={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:u?[]: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:i(s,n),innerMode:function(e){return e.local&&{mode:e.local.mode,state:e.localState}},indent:l(s,c)},c)for(var m in c)c.hasOwnProperty(m)&&(s[m]=c[m]);return 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){e.multiplexingMode=function(t){function n(e,t,n,r){return"string"==typeof t?(n=e.indexOf(t,n),r&&-1<n?n+t.length:n):(t=t.exec(n?e.slice(n):e))?t.index+n+(r?t[0].length:0):-1}var r=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:e.startState(t),innerActive:null,inner:null,startingInner:!1}},copyState:function(n){return{outer:e.copyState(t,n.outer),innerActive:n.innerActive,inner:n.innerActive&&e.copyState(n.innerActive.mode,n.inner),startingInner:n.startingInner}},token:function(i,o){if(o.innerActive){var l=o.innerActive;if(s=i.string,!l.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);if((u=l.close&&!o.startingInner?n(s,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<u&&(i.string=s.slice(0,u));var a=l.mode.token(i,o.inner);return-1<u?i.string=s:i.pos>i.start&&(o.startingInner=!1),u==i.pos&&l.parseDelimiters&&(o.innerActive=o.inner=null),l.innerStyle&&(a=a?a+" "+l.innerStyle:l.innerStyle),a}a=1/0;for(var s=i.string,c=0;c<r.length;++c){var u=n(s,(l=r[c]).open,i.pos);if(u==i.pos)return l.parseDelimiters||i.match(l.open),o.startingInner=!!l.parseDelimiters,o.innerActive=l,s=0,t.indent&&((u=t.indent(o.outer,"",""))!==e.Pass&&(s=u)),o.inner=e.startState(l.mode,s),l.delimStyle&&l.delimStyle+" "+l.delimStyle+"-open";-1!=u&&u<a&&(a=u)}return 1/0!=a&&(i.string=s.slice(0,a)),l=t.token(i,o.outer),1/0!=a&&(i.string=s),l},indent:function(n,r,i){var o=n.innerActive?n.innerActive.mode:t;return o.indent?o.indent(n.innerActive?n.inner:n.outer,r,i):e.Pass},blankLine:function(n){var i=n.innerActive?n.innerActive.mode:t;if(i.blankLine&&i.blankLine(n.innerActive?n.inner:n.outer),n.innerActive)"\n"===n.innerActive.close&&(n.innerActive=n.inner=null);else for(var o=0;o<r.length;++o){var l=r[o];"\n"===l.open&&(n.innerActive=l,n.inner=e.startState(l.mode,i.indent?i.indent(n.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")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){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("changes",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;if((e=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight)!=this.hScale)return this.hScale=e,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){function t(e,t){if(a!=e.line){a=e.line,s=n.getLineHandle(e.line);var r=n.getLineHandleVisualStart(s);r!=s&&(a=n.getLineNumber(r),s=r)}return s.widgets&&s.widgets.length||o&&s.height>l?n.charCoords(e,"local")[t?"top":"bottom"]:n.heightAtLine(s,"local")+(t?0:s.height)}!1!==e&&this.computeScale();var n=this.cm;e=this.hScale;var r=document.createDocumentFragment(),i=this.annotations,o=n.getOption("lineWrapping"),l=o&&1.5*n.defaultTextHeight(),a=null,s=null,c=n.lastLine();if(n.display.barWidth)for(var u,f=0;f<i.length;f++){var h=i[f];if(!(h.to.line>c)){for(var d=u||t(h.from,!0)*e,p=t(h.to,!1)*e;f<i.length-1&&!(i[f+1].to.line>c)&&!((u=t(i[f+1].from,!0)*e)>p+.9);)p=t((h=i[++f]).to,!1)*e;if(p!=d){p=Math.max(p-d,3);var m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(n.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+p+"px",m.className=this.options.className,h.id&&m.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},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("changes",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,l=r&&r.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=r&&r.bracketRegex||/[(){}[\]]/;return(i=!l&&0<=o&&c.test(i.text.charAt(o))&&s[i.text.charAt(o)]||c.test(i.text.charAt(o+1))&&s[i.text.charAt(++o)])?(l=">"==i.charAt(1)?1:-1,r&&r.strict&&0<l!=(o==t.ch)?null:(c=e.getTokenTypeAt(a(t.line,o+1)),null==(e=n(e,a(t.line,o+(0<l?1:0)),l,c,r))?null:{from:a(t.line,o),to:e&&e.pos,match:e&&e.ch==i.charAt(0),forward:0<l})):null}function n(e,t,n,r,i){var o=i&&i.maxScanLineLength||1e4,l=i&&i.maxScanLines||1e3,c=[];i=i&&i.bracketRegex||/[(){}[\]]/,l=0<n?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l);for(var u=t.line;u!=l;u+=n){var f=e.getLine(u);if(f){var h=0<n?0:f.length-1,d=0<n?f.length:-1;if(!(f.length>o))for(u==t.line&&(h=t.ch-(0>n?1:0));h!=d;h+=n){var p=f.charAt(h);if(i.test(p)&&(void 0===r||(e.getTokenTypeAt(a(u,h+1))||"")==(r||""))){var m=s[p];if(m&&">"==m.charAt(1)==0<n)c.push(p);else{if(!c.length)return{pos:a(u,h),ch:p};c.pop()}}}}}return u-n!=(0<n?e.lastLine():e.firstLine())&&null}function r(e,n,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,o=r&&r.highlightNonMatching,s=[],c=e.listSelections(),u=0;u<c.length;u++){var f=c[u].empty()&&t(e,c[u].head,r);if(f&&(f.match||!1!==o)&&e.getLine(f.from.line).length<=i){var h=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(f.from,a(f.from.line,f.from.ch+1),{className:h})),f.to&&e.getLine(f.to.line).length<=i&&s.push(e.markText(f.to,a(f.to.line,f.to.ch+1),{className:h}))}}if(s.length){if(l&&e.state.focused&&e.focus(),r=function(){e.operation(function(){for(var e=0;e<s.length;e++)s[e].clear()})},!n)return r;setTimeout(r,800)}}function i(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=r(e,!1,e.state.matchBrackets)})}function o(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}var l=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||8>document.documentMode),a=e.Pos,s={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",i),t.off("focus",i),t.off("blur",o),o(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",i),t.on("focus",i),t.on("blur",o))}),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]:s[t]}function n(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";u[i]||(u[i]=r(n))}}function r(n){return function(r){return function(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;var f=t(l,"closeBefore");l=t(l,"triples");for(var h,d=s.charAt(u+1)==r,p=n.listSelections(),m=0==u%2,g=0;g<p.length;g++){var v=p[g],y=v.head,x=n.getRange(y,c(y.line,y.ch+1));if(m&&!v.empty())x="surround";else if(!d&&m||x!=r)if(d&&1<y.ch&&0<=l.indexOf(r)&&n.getRange(c(y.line,y.ch-2),y)==r+r){if(2<y.ch&&/\bstring/.test(n.getTokenTypeAt(c(y.line,y.ch-2))))return e.Pass;x="addFour"}else if(d){if(v=0==y.ch?" ":n.getRange(c(y.line,y.ch-1),y),e.isWordChar(x)||v==r||e.isWordChar(v))return e.Pass;x="both"}else{if(!m||!(0===x.length||/\s/.test(x)||-1<f.indexOf(x)))return e.Pass;x="both"}else x=d&&a(n,y)?"both":0<=l.indexOf(r)&&n.getRange(y,c(y.line,y.ch+3))==r+r+r?"skipThree":"skip";if(h){if(h!=x)return e.Pass}else h=x}var b=u%2?s.charAt(u-1):r,C=u%2?r:s.charAt(u+1);n.operation(function(){if("skip"==h)o(n,1);else if("skipThree"==h)o(n,3);else if("surround"==h){for(var t=n.getSelections(),r=0;r<t.length;r++)t[r]=b+t[r]+C;for(n.replaceSelections(t,"around"),t=n.listSelections().slice(),r=0;r<t.length;r++){var i=t,l=r,a=t[r],s=0<e.cmpPos(a.anchor,a.head);a={anchor:new c(a.anchor.line,a.anchor.ch+(s?-1:1)),head:new c(a.head.line,a.head.ch+(s?1:-1))},i[l]=a}n.setSelections(t)}else"both"==h?(n.replaceSelection(b+C,null),n.triggerElectric(b+C),o(n,-1)):"addFour"==h&&(n.replaceSelection(b+b+b+b,"before"),o(n,1))})}(r,n)}}function i(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function o(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var l=r[o];l.head==e.getCursor()&&(i=o),l=l.head.ch||0<t?{line:l.head.line,ch:l.head.ch+t}:{line:l.head.line-1},n.push({anchor:l,head:l})}e.setSelections(n,i)}function l(e,t){var n=e.getRange(c(t.line,t.ch-1),c(t.line,t.ch+1));return 2==n.length?n:null}function a(e,t){var n=e.getTokenAt(c(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}var s={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},c=e.Pos;e.defineOption("autoCloseBrackets",!1,function(r,i,o){o&&o!=e.Init&&(r.removeKeyMap(u),r.state.closeBrackets=null),i&&(n(t(i,"pairs")),r.state.closeBrackets=i,r.addKeyMap(u))});var u={Backspace:function(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;var o=t(r,"pairs");r=n.listSelections();for(var a=0;a<r.length;a++){if(!r[a].empty())return e.Pass;var s=l(n,r[a].head);if(!s||0!=o.indexOf(s)%2)return e.Pass}for(a=r.length-1;0<=a;a--)o=r[a].head,n.replaceRange("",c(o.line,o.ch-1),c(o.line,o.ch+1),"+delete")},Enter:function(n){var r=i(n);if(!(r=r&&t(r,"explode"))||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var c=l(n,a[s].head);if(!c||0!=r.indexOf(c)%2)return e.Pass}n.operation(function(){var e=n.lineSeparator()||"\n";for(n.replaceSelection(e+e,null),o(n,-1),a=n.listSelections(),e=0;e<a.length;e++){var t=a[e].head.line;n.indentLine(t,null,!0),n.indentLine(t+1,null,!0)}})}};n(s.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){e.registerHelper("fold","brace",function(t,n){function r(r){for(var a=n.ch,s=0;;)if(-1==(a=0>=a?-1:l.lastIndexOf(r,a-1))){if(1==s)break;s=1,a=l.length}else{if(1==s&&a<n.ch)break;if(i=t.getTokenTypeAt(e.Pos(o,a+1)),!/^(comment|string)/.test(i))return a+1;--a}}var i,o=n.line,l=t.getLine(o),a=r("{"),s=r("[");if(null!=a&&(null==s||s>a)){var c=a;a="{",s="}"}else{if(null==s)return;c=s,a="[",s="]"}var u=1,f=t.lastLine(),h=o;e:for(;h<=f;++h)for(var d=t.getLine(h),p=h==o?c:0;;){var m=d.indexOf(a,p);if(p=d.indexOf(s,p),0>m&&(m=d.length),0>p&&(p=d.length),(p=Math.min(m,p))==d.length)break;if(t.getTokenTypeAt(e.Pos(h,p+1))==i)if(p==m)++u;else if(! --u){var g=h,v=p;break e}++p}if(null!=g&&o!=g)return{from:e.Pos(o,c),to:e.Pos(g,v)}}),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;var i=n;for(n=Math.min(t.lastLine(),n+10);i<=n;++i){var o=t.getLine(i).indexOf(";");if(-1!=o)return{startCh:r.end,end:e.Pos(i,o)}}}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(i=l.end;;){var a=r(i.line+1);if(null==a)break;i=a.end}return{from:t.clipPos(e.Pos(o,l.startCh+1)),to:i}}),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;null!=r(l+1);)++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){e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart;if(r=r.blockCommentEnd,i&&r){for(var o=n.line,l=t.getLine(o),a=n.ch,s=0;;)if(-1==(a=0>=a?-1:l.lastIndexOf(i,a-1))){if(1==s)return;s=1,a=l.length}else{if(1==s&&a<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(o,a+1)))&&(0==a||l.slice(a-r.length,a)==r||!/comment/.test(t.getTokenTypeAt(e.Pos(o,a))))){l=a+i.length;break}--a}s=1,a=t.lastLine();var c=o;e:for(;c<=a;++c)for(var u=t.getLine(c),f=c==o?l:0;;){var h=u.indexOf(i,f);if(f=u.indexOf(r,f),0>h&&(h=u.length),0>f&&(f=u.length),(f=Math.min(h,f))==u.length)break;if(f==h)++s;else if(! --s){var d=c,p=f;break e}++f}if(null!=d&&(o!=d||p!=l))return{from:e.Pos(o,l),to:e.Pos(d,p)}}})}),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,r,i,o){function l(e){var n=a(t,r);if(!n||n.to.line-n.from.line<s)return null;if("fold"===o)return n;for(var i=t.findMarksAt(n.from),l=0;l<i.length;++l)if(i[l].__isFold){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,r){return e=n(e,t,"widget"),"function"==typeof e&&(e=e(r.from,r.to)),"string"==typeof e?(r=document.createTextNode(e),e=document.createElement("span"),e.appendChild(r),e.className="CodeMirror-foldmarker"):e&&(e=e.cloneNode(!0)),e}(t,i,c);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){return t&&void 0!==t[n]?t[n]:(e=e.options.foldOptions)&&void 0!==e[n]?e[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){e=this.findMarksAt(e);for(var t=0;t<e.length;++t)if(e[t].__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(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"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){function t(e){this.options=e,this.from=this.to=0}function n(e,t){for(var n=e.findMarks(u(t,0),u(t+1,0)),r=0;r<n.length;++r)if(n[r].__isFold){var i=n[r].find(-1);if(i&&i.line===t)return n[r]}}function r(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function i(e,t,i){var o=e.state.foldGutter.options,l=t-1,a=e.foldOption(o,"minFoldSize"),s=e.foldOption(o,"rangeFinder"),c="string"==typeof o.indicatorFolded&&new RegExp("(^|\\s)"+o.indicatorFolded+"(?:$|\\s)\\s*"),f="string"==typeof o.indicatorOpen&&new RegExp("(^|\\s)"+o.indicatorOpen+"(?:$|\\s)\\s*");e.eachLine(t,i,function(t){++l;var i=null,h=t.gutterMarkers;if(h&&(h=h[o.gutter]),n(e,l)){if(c&&h&&c.test(h.className))return;i=r(o.indicatorFolded)}else{var d=u(l,0);if((d=s&&s(e,d))&&d.to.line-d.from.line>=a){if(f&&h&&f.test(h.className))return;i=r(o.indicatorOpen)}}(i||h)&&e.setGutterMarker(t,o.gutter,i)})}function o(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){i(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,t,r){var i=e.state.foldGutter;i&&(r==(i=i.options).gutter&&((r=n(e,t))?r.clear():e.foldCode(u(t,0),i)))}function a(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){o(e)},n.foldOnChangeTimeSpan||600)}}function s(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||20<n.from-t.to||20<t.from-n.to?o(e):e.operation(function(){n.from<t.from&&(i(e,n.from,t.from),t.from=n.from),n.to>t.to&&(i(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&i(e,r,r+1)}}e.defineOption("foldGutter",!1,function(n,r,i){i&&i!=e.Init&&(n.clearGutter(n.state.foldGutter.options.gutter),n.state.foldGutter=null,n.off("gutterClick",l),n.off("changes",a),n.off("viewportChange",s),n.off("fold",c),n.off("unfold",c),n.off("swapDoc",a)),r&&(i=n.state,!0===r&&(r={}),null==r.gutter&&(r.gutter="CodeMirror-foldgutter"),null==r.indicatorOpen&&(r.indicatorOpen="CodeMirror-foldgutter-open"),null==r.indicatorFolded&&(r.indicatorFolded="CodeMirror-foldgutter-folded"),i.foldGutter=new t(r),o(n),n.on("gutterClick",l),n.on("changes",a),n.on("viewportChange",s),n.on("fold",c),n.on("unfold",c),n.on("swapDoc",a))});var u=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){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();l<=a;++l){var s=t(n,l);if(-1!=s){if(!(s>i))break;o=l}}if(o)return{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).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){e.registerHelper("fold","markdown",function(t,n){function r(n){return(n=t.getTokenTypeAt(e.Pos(n,0)))&&/\bheader\b/.test(n)}function i(e,t,n){return(t=t&&t.match(/^#+/))&&r(e)?t[0].length:(t=n&&n.match(/^[=\-]+\s*$/))&&r(e+1)?"="==n[0]?1:2:100}var o=t.getLine(n.line),l=t.getLine(n.line+1),a=i(n.line,o,l);if(100!==a){for(var s=t.lastLine(),c=n.line,u=t.getLine(c+2);c<s&&!(i(c+1,l,u)<=a);)++c,l=u,u=t.getLine(c+2);return{from:e.Pos(n.line,o.length),to:e.Pos(c,t.getLine(c).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){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(u(e.line,t));return n&&/\btag\b/.test(n)}function r(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function i(e){if(!(e.line<=e.min))return 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;break}if(n(e,t+1)){var i=e.text.lastIndexOf("/",t);return i=-1<i&&!/\S/.test(e.text.slice(i+1,t)),e.ch=t+1,i?"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;break}if(n(e,t+1)){f.lastIndex=t,e.ch=t;var r=f.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function a(e){for(;;){f.lastIndex=e.ch;var t=f.exec(e.text);if(!t){if(r(e))continue;break}if(n(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function s(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)))break;if("selfClose"!=r)if(i[1]){for(var c=n.length-1;0<=c;--c)if(n[c]==i[2]){n.length=c;break}if(0>c&&(!t||t==i[2]))return{tag:i[2],from:u(l,s),to:u(e.line,e.ch)}}else n.push(i[2])}}function c(e,t){for(var r=[];;){var o;e:for(o=e;;){var a=o.ch?o.text.lastIndexOf(">",o.ch-1):-1;if(-1==a){if(i(o))continue;o=void 0;break e}if(n(o,a+1)){var s=o.text.lastIndexOf("/",a);s=-1<s&&!/\S/.test(o.text.slice(s+1,a)),o.ch=a+1,o=s?"selfClose":"regular";break e}o.ch=a}if(!o)break;if("selfClose"==o)l(e);else{if(o=e.line,a=e.ch,!(s=l(e)))break;if(s[1])r.push(s[2]);else{for(var c=r.length-1;0<=c;--c)if(r[c]==s[2]){r.length=c;break}if(0>c&&(!t||t==s[2]))return{tag:s[2],from:u(e.line,e.ch),to:u(o,a)}}}}}var u=e.Pos,f=RegExp("<(/?)([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][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=a(r);if(!i||r.line!=n.line)break;var l=o(r);if(!l)break;if(!i[1]&&"selfClose"!=l)return l=u(r.line,r.ch),(i=r=s(r,i[2]))&&(i=0<((i=r.from).line-l.line||i.ch-l.ch)),i?{from:l,to:r.from}:null}}),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),f=a&&u(i.line,i.ch),h=a&&l(i);if(a&&h&&!(0<(i.line-n.line||i.ch-n.ch)))return n={from:u(i.line,i.ch),to:f,tag:h[2]},"selfClose"==a?{open:n,close:null,at:"open"}:h[1]?{open:c(i,h[2]),close:n,at:"close"}:{open:n,close:s(i=new t(e,f.line,f.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=c(o,i);if(!l)break;var a=new t(e,n.line,n.ch,r);if(a=s(a,l.tag))return{open:l,close:a}}},e.scanForClosingTag=function(e,n,r,i){return s(e=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){function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.tick=this.debounce=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}function n(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function r(t,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=t,this.data=r,this.picked=!1;var i=this,o=t.cm,l=o.getInputField().ownerDocument,a=l.defaultView||l.parentWindow,s=this.hints=l.createElement("ul");s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.id=this.id,s.className="CodeMirror-hints "+t.cm.options.theme,this.selectedHint=r.selectedHint||0;for(var c=r.list,u=0;u<c.length;++u){var f=s.appendChild(l.createElement("li")),h=c[u],d="CodeMirror-hint"+(u!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(d=h.className+" "+d),f.className=d,u==this.selectedHint&&f.setAttribute("aria-selected","true"),f.id=this.id+"-"+u,f.setAttribute("role","option"),h.render?h.render(f,r,h):f.appendChild(l.createTextNode(h.displayText||("string"==typeof h?h:h.text))),f.hintId=u}var p=t.options.container||l.body,m=(u=o.cursorCoords(t.options.alignWithWord?r.from:null)).left,g=u.bottom,v=!0;if(d=f=0,p!==l.body){d=(h=-1!==["absolute","relative","fixed"].indexOf(a.getComputedStyle(p).position)?p:p.offsetParent).getBoundingClientRect();var y=l.body.getBoundingClientRect();f=d.left-y.left-h.scrollLeft,d=d.top-y.top-h.scrollTop}s.style.left=m-f+"px",s.style.top=g-d+"px",h=a.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),y=a.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight),p.appendChild(s),o.getInputField().setAttribute("aria-autocomplete","list"),o.getInputField().setAttribute("aria-owns",this.id),o.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint),p=t.options.moveOnOverlap?s.getBoundingClientRect():new DOMRect;var x,b,C=!!t.options.paddingForScrollbar&&s.scrollHeight>s.clientHeight+1;if(setTimeout(function(){x=o.getScrollInfo()}),0<p.bottom-y){var w=p.bottom-p.top,S=p.top-(u.bottom-u.top)-2;y-p.top<S?(w>S&&(s.style.height=(w=S)+"px"),s.style.top=(g=u.top-w)+d+"px",v=!1):s.style.height=y-p.top-2+"px"}if(d=p.right-h,C&&(d+=o.display.nativeBarWidth),0<d&&(p.right-p.left>h&&(s.style.width=h-5+"px",d-=p.right-p.left-h),s.style.left=(m=Math.max(u.left-d-f,0))+"px"),C)for(u=s.firstChild;u;u=u.nextSibling)u.style.paddingRight=o.display.nativeBarWidth+"px";(o.addKeyMap(this.keyMap=function(e,t){function n(e,n){var 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};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:r;if(i)for(var l in i)i.hasOwnProperty(l)&&n(l,i[l]);if(i=e.options.extraKeys)for(l in i)i.hasOwnProperty(l)&&n(l,i[l]);return o}(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:c.length,close:function(){t.close()},pick:function(){i.pick()},data:r})),t.options.closeOnUnfocus)&&(o.on("blur",this.onBlur=function(){b=setTimeout(function(){t.close()},100)}),o.on("focus",this.onFocus=function(){clearTimeout(b)}));return o.on("scroll",this.onScroll=function(){var e=o.getScrollInfo(),n=o.getWrapperElement().getBoundingClientRect();x||(x=o.getScrollInfo());var r=g+x.top-e.top,i=r-(a.pageYOffset||(l.documentElement||l.body).scrollTop);if(v||(i+=s.offsetHeight),i<=n.top||i>=n.bottom)return t.close();s.style.top=r+"px",s.style.left=m+x.left-e.left+"px"}),e.on(s,"dblclick",function(e){(e=n(s,e.target||e.srcElement))&&null!=e.hintId&&(i.changeActive(e.hintId),i.pick())}),e.on(s,"click",function(e){(e=n(s,e.target||e.srcElement))&&null!=e.hintId&&(i.changeActive(e.hintId),t.options.completeOnSingleClick&&i.pick())}),e.on(s,"mousedown",function(){setTimeout(function(){o.focus()},20)}),0===(u=this.getSelectedHintRange()).from&&0===u.to||this.scrollToActive(),e.signal(r,"select",c[this.selectedHint],s.childNodes[this.selectedHint]),!0}function i(e,t,n,r){e.async?e(t,r,n):(e=e(t,n))&&e.then?e.then(r):r(e)}e.showHint=function(e,t,n){if(!t)return e.showHint(n);if(n&&n.async&&(t.async=!0),t={hint:t},n)for(var r in n)t[r]=n[r];return e.showHint(t)},e.defineExtension("showHint",function(n){var r,i=this.getCursor("start"),o=this.options.hintOptions,l={};for(r in a)l[r]=a[r];if(o)for(r in o)void 0!==o[r]&&(l[r]=o[r]);if(n)for(r in n)void 0!==n[r]&&(l[r]=n[r]);if(l.hint.resolve&&(l.hint=l.hint.resolve(this,i)),n=l,!(1<(i=this.listSelections()).length)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(r=0;r<i.length;r++)if(i[r].head.line!=i[r].anchor.line)return}this.state.completionActive&&this.state.completionActive.close(),(i=this.state.completionActive=new t(this,n)).options.hint&&(e.signal(this,"startCompletion",this),i.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var o=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},l=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.tick=this.cm.state.completionActive=null,this.options.updateOnCursorActivity&&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,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange("string"==typeof r?r:r.text,r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(l(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var r=this;this.debounce=o(function(){r.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;i(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 i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),(this.data=t)&&t.list.length&&(i&&1==t.list.length?this.pick(t,0):(this.widget=new r(this,t),e.signal(t,"shown")))}},r.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns"),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&&(r.className=r.className.replace(" CodeMirror-hint-active",""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from];e=this.hints.childNodes[e.to];var n=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-n.offsetTop:e.offsetTop+e.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=e.offsetTop+e.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,o=t.getHelpers(n,"hint");if(o.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,o);!function o(l){if(l==r.length)return t(null);i(r[l],e,n,function(e){e&&0<e.list.length?t(e):o(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.start);i.start<r.ch&&/\w/.test(i.string.charAt(r.ch-i.start-1))?i=i.string.substr(0,r.ch-i.start):(i="",o=r);for(var l=[],a=0;a<n.words.length;a++){var s=n.words[a];s.slice(0,i.length)==i&&l.push(s)}if(l.length)return{list:l,from:o,to:r}}),e.commands.autocomplete=e.showHint;var a={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};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){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;a=c!=s&&a.slice(c,s);var u=r&&r.list||[],f={};i=new RegExp(i.source,"g");for(var h=-1;1>=h;h+=2)for(var d=l.line,p=Math.min(Math.max(d+h*o,n.firstLine()),n.lastLine())+h;d!=p;d+=h)for(var m,g=n.getLine(d);m=i.exec(g);)d==l.line&&m[0]===a||a&&0!=m[0].lastIndexOf(a,0)||Object.prototype.hasOwnProperty.call(f,m[0])||(f[m[0]]=!0,u.push(m[0]));return{list:u,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){function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap","CodeMirror-activeline"),e.removeLineClass(e.state.activeLines[t],"background","CodeMirror-activeline-background"),e.removeLineClass(e.state.activeLines[t],"gutter","CodeMirror-activeline-gutter")}function n(e,n){for(var r=[],i=0;i<n.length;i++){var o=n[i],l=e.getOption("styleActiveLine");("object"==typeof l&&l.nonEmpty?o.anchor.line==o.head.line:o.empty())&&(o=e.getLineHandleVisualStart(o.head.line),r[r.length-1]!=o&&r.push(o))}(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","CodeMirror-activeline"),e.addLineClass(r[n],"background","CodeMirror-activeline-background"),e.addLineClass(r[n],"gutter","CodeMirror-activeline-gutter");e.state.activeLines=r})}function r(e,t){n(e,t.ranges)}e.defineOption("styleActiveLine",!1,function(i,o,l){o!=(l=l!=e.Init&&l)&&(l&&(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){function t(e){return-1==(e=e.search(i))?0:e}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,l=e.cmpPos;e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=r);for(var t=1/0,n=this.listSelections(),i=null,l=n.length-1;0<=l;l--){var a=n[l].from(),s=n[l].to();a.line>=t||(s.line>=t&&(s=o(t,0)),t=a.line,null==i?this.uncomment(a,s,e)?i="un":(this.lineComment(a,s,e),i="line"):"un"==i?this.uncomment(a,s,e):this.lineComment(a,s,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){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;r<h;++r){var l=s.getLine(r);l=l.slice(0,t(l)),(null==n||n.length>l.length)&&(n=l)}for(r=e.line;r<h;++r){l=s.getLine(r);var c=n.length;(p||i.test(l))&&(l.slice(0,c)!=n&&(c=t(l)),s.replaceRange(n+f+d,o(r,0),o(r,c)))}}else for(r=e.line;r<h;++r)(p||i.test(s.getLine(r)))&&s.replaceRange(f+d,o(r,0))})}else(a.blockCommentStart||c.blockCommentStart)&&(a.fullLines=!0,s.blockComment(e,l,a))}}),e.defineExtension("blockComment",function(e,t,a){a||(a=r);var s=this,c=n(s,e),u=a.blockCommentStart||c.blockCommentStart,f=a.blockCommentEnd||c.blockCommentEnd;if(u&&f){if(!/\bcomment\b/.test(s.getTokenTypeAt(o(e.line,0)))){var h=Math.min(t.line,s.lastLine());h!=e.line&&0==t.ch&&i.test(s.getLine(h))&&--h;var d=null==a.padding?" ":a.padding;e.line>h||s.operation(function(){if(0!=a.fullLines){var n=i.test(s.getLine(h));s.replaceRange(d+f,o(h)),s.replaceRange(u+d,o(e.line,0));var r=a.blockCommentLead||c.blockCommentLead;if(null!=r)for(var p=e.line+1;p<=h;++p)(p!=h||n)&&s.replaceRange(r+d,o(p,0))}else n=0==l(s.getCursor("to"),t),r=!s.somethingSelected(),s.replaceRange(f,t),n&&s.setSelection(r?t:s.getCursor("from"),t),s.replaceRange(u,e)})}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&s.lineComment(e,t,a)}),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;m<=u;++m){var g=s.getLine(m),v=g.indexOf(h);if(-1<v&&!/comment/.test(s.getTokenTypeAt(o(m,v+1)))&&(v=-1),-1==v&&i.test(g))break e;if(-1<v&&i.test(g.slice(0,v)))break e;d.push(g)}if(s.operation(function(){for(var e=f;e<=u;++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 S=u==f?C:s.getLine(u),k=S.indexOf(x,u==f?w+y.length:0);return l=o(f,w+1),c=o(u,k+1),!(-1==k||!/comment/.test(s.getTokenTypeAt(l))||!/comment/.test(s.getTokenTypeAt(c))||-1<s.getRange(l,c,"\n").indexOf(x))&&(l=-1==(c=C.lastIndexOf(y,e.ch))?-1:C.slice(0,e.ch).indexOf(x,c+y.length),(-1==c||-1==l||l+x.length==e.ch)&&(l=S.indexOf(x,t.ch),e=S.slice(t.ch).lastIndexOf(y,l-t.ch),c=-1==l||-1==e?-1:t.ch+e,(-1==l||-1==c||c==t.ch)&&(s.operation(function(){s.replaceRange("",o(u,k-(p&&S.slice(k-p.length,k)==p?p.length:0)),o(u,k+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(e=f+1;e<=u;++e){var t=s.getLine(e),n=t.indexOf(b);if(-1!=n&&!i.test(t.slice(0,n))){var r=n+b.length;p&&t.slice(r,r+p.length)==p&&(r+=p.length),s.replaceRange("",o(e,n),o(e,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){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var i,l=t.listSelections(),a=[],s=0;s<l.length;s++){var c=l[s].head;if(!/\bcomment\b/.test(t.getTokenTypeAt(c)))return e.Pass;var u=t.getModeAt(c);if(i){if(i!=u)return e.Pass}else i=u;var f,h=null,d=i.blockCommentStart;if(u=i.lineComment,d&&i.blockCommentContinue){var p=t.getLine(c.line),m=p.lastIndexOf(i.blockCommentEnd,c.ch-i.blockCommentEnd.length);if(!(-1!=m&&m==c.ch-i.blockCommentEnd.length||u&&-1<(f=p.lastIndexOf(u,c.ch-1))&&/\bcomment\b/.test(t.getTokenTypeAt({line:c.line,ch:f+1}))))if(c.ch>=d.length&&-1<(f=p.lastIndexOf(d,c.ch-d.length))&&f>m)if(n(0,p)>=f)h=p.slice(0,f);else{var g;h=t.options.tabSize,f=e.countColumn(p,f,h),h=t.options.indentWithTabs?o.call("\t",g=Math.floor(f/h))+o.call(" ",f-h*g):o.call(" ",f)}else-1<(f=p.indexOf(i.blockCommentContinue))&&f<=c.ch&&f<=n(0,p)&&(h=p.slice(0,f));null!=h&&(h+=i.blockCommentContinue)}if(null==h&&u&&r(t)&&(null==p&&(p=t.getLine(c.line)),f=p.indexOf(u),c.ch||f?-1<f&&n(0,p)>=f&&((h=-1<n(c.ch,p))||(h=-1<(h=(c=t.getLine(c.line+1)||"").indexOf(u))&&n(0,c)>=h||null),h&&(h=p.slice(0,f)+u+p.slice(f+u.length).match(/^\s*/)[0])):h=""),null==h)return e.Pass;a[s]="\n"+h}t.operation(function(){for(var e=l.length-1;0<=e;e--)t.replaceRange(a[e],l[e].from(),l[e].to(),"+insert")})}function n(e,t){i.lastIndex=e;var n=i.exec(t);return n?n.index:-1}function r(e){return!(e=e.getOption("continueComments"))||"object"!=typeof e||!1!==e.continueLineComment}var i=/\S/g,o=String.prototype.repeat||function(e){return Array(e+1).join(this)};e.defineOption("continueComments",null,function(n,r,i){i&&i!=e.Init&&n.removeKeyMap("continueComment"),r&&(i="Enter","string"==typeof r?i=r:"object"==typeof r&&r.key&&(i=r.key),(r={name:"continueComment"})[i]=t,n.addKeyMap(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){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.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";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(o,l,a){a=a&&a!=e.Init,l&&!a?(o.on("blur",r),o.on("change",i),o.on("swapDoc",i),e.on(o.getInputField(),"compositionupdate",o.state.placeholderCompose=function(){!function(e){setTimeout(function(){var r=!1;1==e.lineCount()&&(r="TEXTAREA"==(r=e.getInputField()).nodeName?!e.getLine(0).length:!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)},20)}(o)}),i(o)):!l&&a&&(o.off("blur",r),o.off("change",i),o.off("swapDoc",i),e.off(o.getInputField(),"compositionupdate",o.state.placeholderCompose),t(o),(a=o.getWrapperElement()).className=a.className.replace(" CodeMirror-empty","")),l&&!o.hasFocus()&&r(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";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","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{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","f95"]},{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:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["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","wl","wls"]},{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"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["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:["text/x-php","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:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{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"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];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){t=t.toLowerCase();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}}}),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,r){var i=e.modes[t],o=i&&i.dependencies;if(!o)return n();for(var l=[],a=0;a<o.length;++a)e.modes.hasOwnProperty(o[a])||l.push(o[a]);if(!l.length)return n();var s=function(e,t){var n=t;return function(){0==--n&&e()}}(n,l.length);for(a=0;a<l.length;++a)e.requireMode(l[a],s,r)}e.requireMode=function(i,o,l){if("string"!=typeof i&&(i=i.name),e.modes.hasOwnProperty(i))return r(i,o,l);if(n.hasOwnProperty(i))return n[i].push(o);var a=l&&l.path?l.path(i):e.modeURL.replace(/%N/g,i);if(l&&l.loadMode)l.loadMode(a,function(){r(i,o,l)});else if("plain"==t){var s=document.createElement("script");s.src=a;var c=document.getElementsByTagName("script")[0],u=n[i]=[o];e.on(s,"load",function(){r(i,function(){for(var e=0;e<u.length;++e)u[e]()},l)}),c.parentNode.insertBefore(s,c)}else"cjs"==t?(require(a),o()):"amd"==t&&requirejs([a],o)},e.autoLoadMode=function(t,n,r){e.modes.hasOwnProperty(n)||e.requireMode(n,function(){t.setOption("mode",t.getOption("mode"))},r)}});
/*!
* Day.js 1.11.10 (https://github.com/iamkun/dayjs)
* Copyright 2018 iamkun
* Licensed under MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=t()}(this,function(){"use strict";var e=6e4,t=36e5,_="millisecond",n="second",a="minute",d="hour",s="day",i="week",o="month",r="quarter",u="year",l="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"}},Y=function(e,t,_){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(_)+e},p={s:Y,z:function(e){var t=-e.utcOffset(),_=Math.abs(t),n=Math.floor(_/60),a=_%60;return(t<=0?"+":"-")+Y(n,2,"0")+":"+Y(a,2,"0")},m:function e(t,_){if(t.date()<_.date())return-e(_,t);var n=12*(_.year()-t.year())+(_.month()-t.month()),a=t.clone().add(n,o),d=_-a<0,s=t.clone().add(n+(d?-1:1),o);return+(-(n+(_-a)/(d?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:o,y:u,w:i,d:s,D:l,h:d,m:a,s:n,ms:_,Q:r}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},h="en",c={};c[h]=y;var L="$isDayjsObject",j=function(e){return e instanceof g||!(!e||!e[L])},b=function e(t,_,n){var a;if(!t)return h;if("string"==typeof t){var d=t.toLowerCase();c[d]&&(a=d),_&&(c[d]=_,a=d);var s=t.split("-");if(!a&&s.length>1)return e(s[0])}else{var i=t.name;c[i]=t,a=i}return!n&&a&&(h=a),a||!n&&h},D=function(e,t){if(j(e))return e.clone();var _="object"==typeof t?t:{};return _.date=e,_.args=arguments,new g(_)},k=p;k.l=b,k.i=j,k.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var g=function(){function y(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[L]=!0}var Y=y.prototype;return Y.parse=function(e){this.$d=function(e){var t=e.date,_=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var a=n[2]-1||0,d=(n[7]||"0").substring(0,3);return _?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,d)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,d)}}return new Date(t)}(e),this.init()},Y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},Y.$utils=function(){return k},Y.isValid=function(){return!(this.$d.toString()===m)},Y.isSame=function(e,t){var _=D(e);return this.startOf(t)<=_&&_<=this.endOf(t)},Y.isAfter=function(e,t){return D(e)<this.startOf(t)},Y.isBefore=function(e,t){return this.endOf(t)<D(e)},Y.$g=function(e,t,_){return k.u(e)?this[t]:this.set(_,e)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(e,t){var _=this,r=!!k.u(t)||t,m=k.p(e),f=function(e,t){var n=k.w(_.$u?Date.UTC(_.$y,t,e):new Date(_.$y,t,e),_);return r?n:n.endOf(s)},M=function(e,t){return k.w(_.toDate()[e].apply(_.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),_)},y=this.$W,Y=this.$M,p=this.$D,h="set"+(this.$u?"UTC":"");switch(m){case u:return r?f(1,0):f(31,11);case o:return r?f(1,Y):f(0,Y+1);case i:var c=this.$locale().weekStart||0,L=(y<c?y+7:y)-c;return f(r?p-L:p+(6-L),Y);case s:case l:return M(h+"Hours",0);case d:return M(h+"Minutes",1);case a:return M(h+"Seconds",2);case n:return M(h+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(e){return this.startOf(e,!1)},Y.$set=function(e,t){var i,r=k.p(e),m="set"+(this.$u?"UTC":""),f=(i={},i[s]=m+"Date",i[l]=m+"Date",i[o]=m+"Month",i[u]=m+"FullYear",i[d]=m+"Hours",i[a]=m+"Minutes",i[n]=m+"Seconds",i[_]=m+"Milliseconds",i)[r],M=r===s?this.$D+(t-this.$W):t;if(r===o||r===u){var y=this.clone().set(l,1);y.$d[f](M),y.init(),this.$d=y.set(l,Math.min(this.$D,y.daysInMonth())).$d}else f&&this.$d[f](M);return this.init(),this},Y.set=function(e,t){return this.clone().$set(e,t)},Y.get=function(e){return this[k.p(e)]()},Y.add=function(_,r){var l,m=this;_=Number(_);var f=k.p(r),M=function(e){var t=D(m);return k.w(t.date(t.date()+Math.round(e*_)),m)};if(f===o)return this.set(o,this.$M+_);if(f===u)return this.set(u,this.$y+_);if(f===s)return M(1);if(f===i)return M(7);var y=(l={},l[a]=e,l[d]=t,l[n]=1e3,l)[f]||1,Y=this.$d.getTime()+_*y;return k.w(Y,this)},Y.subtract=function(e,t){return this.add(-1*e,t)},Y.format=function(e){var t=this,_=this.$locale();if(!this.isValid())return _.invalidDate||m;var n=e||"YYYY-MM-DDTHH:mm:ssZ",a=k.z(this),d=this.$H,s=this.$m,i=this.$M,o=_.weekdays,r=_.months,u=_.meridiem,l=function(e,_,a,d){return e&&(e[_]||e(t,n))||a[_].slice(0,d)},f=function(e){return k.s(d%12||12,e,"0")},y=u||function(e,t,_){var n=e<12?"AM":"PM";return _?n.toLowerCase():n};return n.replace(M,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return i+1;case"MM":return k.s(i+1,2,"0");case"MMM":return l(_.monthsShort,i,r,3);case"MMMM":return l(r,i);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(_.weekdaysMin,t.$W,o,2);case"ddd":return l(_.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(d);case"HH":return k.s(d,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return y(d,s,!0);case"A":return y(d,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(_,l,m){var f,M=this,y=k.p(l),Y=D(_),p=(Y.utcOffset()-this.utcOffset())*e,h=this-Y,c=function(){return k.m(M,Y)};switch(y){case u:f=c()/12;break;case o:f=c();break;case r:f=c()/3;break;case i:f=(h-p)/6048e5;break;case s:f=(h-p)/864e5;break;case d:f=h/t;break;case a:f=h/e;break;case n:f=h/1e3;break;default:f=h}return m?f:k.a(f)},Y.daysInMonth=function(){return this.endOf(o).$D},Y.$locale=function(){return c[this.$L]},Y.locale=function(e,t){if(!e)return this.$L;var _=this.clone(),n=b(e,t,!0);return n&&(_.$L=n),_},Y.clone=function(){return k.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},y}(),H=g.prototype;return D.prototype=H,[["$ms",_],["$s",n],["$m",a],["$H",d],["$W",s],["$M",o],["$y",u],["$D",l]].forEach(function(e){H[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),D.extend=function(e,t){return e.$i||(e(t,g,D),e.$i=!0),D},D.locale=b,D.isDayjs=j,D.unix=function(e){return D(1e3*e)},D.en=c[h],D.Ls=c,D.p={},D}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_localizedFormat=t()}(this,function(){"use strict";var e={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"};return function(t,_,n){var a=_.prototype,d=a.format;n.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,n=function(t,_){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,a){var d=a&&a.toUpperCase();return n||_[a]||e[a]||_[d].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,_){return t||_.slice(1)})})}(t,void 0===_?{}:_);return d.call(this,n)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=t()}(this,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,_=/([+-]|\d\d)/g;return function(n,a,d){var s=a.prototype;d.utc=function(e){return new a({date:e,utc:!0,args:arguments})},s.utc=function(t){var _=d(this.toDate(),{locale:this.$L,utc:!0});return t?_.add(this.utcOffset(),e):_},s.local=function(){return d(this.toDate(),{locale:this.$L,utc:!1})};var i=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),i.call(this,e)};var o=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var r=s.utcOffset;s.utcOffset=function(n,a){var d=this.$utils().u;if(d(n))return this.$u?0:d(this.$offset)?r.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var a=(""+n[0]).match(_)||["-",0,0],d=a[0],s=60*+a[1]+ +a[2];return 0===s?0:"+"===d?s:-s}(n),null===n))return this;var s=Math.abs(n)<=16?60*n:n,i=this;if(a)return i.$offset=s,i.$u=0===n,i;if(0!==n){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(s+o,e)).$offset=s,i.$x.$localOffset=o}else i=this.utc();return i};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var l=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?d(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var m=s.diff;s.diff=function(e,t,_){if(e&&this.$u===e.$u)return m.call(this,e,t,_);var n=this.local(),a=d(e).local();return m.call(n,a,t,_)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_relativeTime=t()}(this,function(){"use strict";return function(e,t,_){e=e||{};var n=t.prototype,a={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"};function d(e,t,_,a){return n.fromToBase(e,t,_,a)}_.en.relativeTime=a,n.fromToBase=function(t,n,d,s,i){for(var o,r,u,l=d.$locale().relativeTime||a,m=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=m.length,M=0;M<f;M+=1){var y=m[M];y.d&&(o=s?_(t).diff(d,y.d,!0):d.diff(t,y.d,!0));var Y=(e.rounding||Math.round)(Math.abs(o));if(u=o>0,Y<=y.r||!y.r){Y<=1&&M>0&&(y=m[M-1]);var p=l[y.l];i&&(Y=i(""+Y)),r="string"==typeof p?p.replace("%d",Y):p(Y,n,y.l,u);break}}if(n)return r;var h=u?l.future:l.past;return"function"==typeof h?h(r):h.replace("%s",r)},n.to=function(e,t){return d(e,t,this,!0)},n.from=function(e,t){return d(e,t,this)};var s=function(e){return e.$u?_.utc():_()};n.toNow=function(e){return this.to(s(this),e)},n.fromNow=function(e){return this.from(s(this),e)}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_calendar=t()}(this,function(){"use strict";return function(e,t,_){var n="h:mm A",a={lastDay:"[Yesterday at] "+n,sameDay:"[Today at] "+n,nextDay:"[Tomorrow at] "+n,nextWeek:"dddd [at] "+n,lastWeek:"[Last] dddd [at] "+n,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var n=t||this.$locale().calendar||a,d=_(e||void 0).startOf("d"),s=this.diff(d,"d",!0),i="sameElse",o=s<-6?i:s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":i,r=n[o]||a[o];return"function"==typeof r?r.call(this,_()):this.format(r)}}}),dayjs.extend(window.dayjs_plugin_localizedFormat),dayjs.extend(window.dayjs_plugin_utc),dayjs.extend(window.dayjs_plugin_relativeTime),dayjs.extend(window.dayjs_plugin_calendar),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en=t()}(this,function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_us24=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-us24",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM D, YYYY HH:mm"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_be=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-be",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_au=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-au",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_ca=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-ca",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_gb=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-gb",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("_"),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("_"),weekStart:1,yearStart:4,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"},formats:{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"},ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_ie=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-ie",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_il=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-il",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_in=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-in",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("_"),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("_"),weekStart:1,yearStart:4,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"},formats:{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"},ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_nz=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-nz",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_sg=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-sg",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),weekStart:1,weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_en_tt=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"en-tt",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("_"),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("_"),weekStart:1,yearStart:4,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"},formats:{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"},ordinal:function(e){var t=["th","st","nd","rd"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_af=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"af",weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),weekStart:1,weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_am=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"am",weekdays:"እሑድ_ሰኞ_ማክሰኞ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ".split("_"),weekdaysShort:"እሑድ_ሰኞ_ማክሰ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ".split("_"),weekdaysMin:"እሑ_ሰኞ_ማክ_ረቡ_ሐሙ_አር_ቅዳ".split("_"),months:"ጃንዋሪ_ፌብሯሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር".split("_"),monthsShort:"ጃንዋ_ፌብሯ_ማርች_ኤፕሪ_ሜይ_ጁን_ጁላይ_ኦገስ_ሴፕቴ_ኦክቶ_ኖቬም_ዲሴም".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"በ%s",past:"%s በፊት",s:"ጥቂት ሰከንዶች",m:"አንድ ደቂቃ",mm:"%d ደቂቃዎች",h:"አንድ ሰዓት",hh:"%d ሰዓታት",d:"አንድ ቀን",dd:"%d ቀናት",M:"አንድ ወር",MM:"%d ወራት",y:"አንድ ዓመት",yy:"%d ዓመታት"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM D ፣ YYYY",LLL:"MMMM D ፣ YYYY HH:mm",LLLL:"dddd ፣ MMMM D ፣ YYYY HH:mm"},ordinal:function(e){return e+"ኛ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_dz=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-dz",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_iq=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-iq",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول".split("_"),weekStart:1,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_kw=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-kw",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_ly=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-ly",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:6,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},meridiem:function(e){return e>12?"م":"ص"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_ma=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-ma",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekStart:6,weekdaysShort:"احد_إثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_sa=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-sa",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar_tn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ar-tn",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekStart:1,weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ar=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),n={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},d={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:_,monthsShort:_,weekStart:6,relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",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 a[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return n[e]}).replace(/,/g,"،")},ordinal:function(e){return e},formats:{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"}};return t.default.locale(d,null,!0),d}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_az=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"az",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("_"),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("_"),weekStart:1,formats:{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"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə 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"},ordinal:function(e){return e}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_be=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"be",weekdays:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),months:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),weekStart:1,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bg=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(e){var t=e%100;if(t>10&&t<20)return e+"-ти";var _=e%10;return 1===_?e+"-ви":2===_?e+"-ри":7===_||8===_?e+"-ми":e+"-ти"},formats:{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"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"bi",weekdays:"Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade".split("_"),months:"Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba".split("_"),weekStart:1,weekdaysShort:"San_Man_Tus_Wen_Tos_Frae_Sar".split("_"),monthsShort:"Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"San_Ma_Tu_We_To_Fr_Sar".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"lo %s",past:"%s bifo",s:"sam seken",m:"wan minit",mm:"%d minit",h:"wan haoa",hh:"%d haoa",d:"wan dei",dd:"%d dei",M:"wan manis",MM:"%d manis",y:"wan yia",yy:"%d yia"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bm=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"bm",weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),weekStart:1,weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bn_bd=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},a={name:"bn-bd",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),weekStart:0,preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return _[e]})},ordinal:function(e){var t=["ই","লা","রা","ঠা","শে"],_=e%100;return"["+e+(t[(_-20)%10]||t[_]||t[0])+"]"},formats:{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 সময়"},meridiem:function(e){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},a={name:"bn",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return _[e]})},ordinal:function(e){return e},formats:{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 সময়"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bo=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"bo",weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་དང་པོ_ཟླ་གཉིས་པ_ཟླ་གསུམ་པ_ཟླ་བཞི་པ_ཟླ་ལྔ་པ_ཟླ་དྲུག་པ_ཟླ་བདུན་པ_ཟླ་བརྒྱད་པ_ཟླ་དགུ་པ_ཟླ་བཅུ་པ_ཟླ་བཅུ་གཅིག་པ_ཟླ་བཅུ་གཉིས་པ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s ལ་",past:"%s སྔོན་ལ་",s:"ཏོག་ཙམ་",m:"སྐར་མ་གཅིག་",mm:"སྐར་མ་ %d",h:"ཆུ་ཚོད་གཅིག་",hh:"ཆུ་ཚོད་ %d",d:"ཉིན་གཅིག་",dd:"ཉིན་ %d",M:"ཟླ་བ་གཅིག་",MM:"ཟླ་བ་ %d",y:"ལོ་གཅིག་",yy:"ལོ་ %d"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_br=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e){return e>9?_(e%10):e}function n(e,t,_){return e+" "+function(e,t){return 2===t?function(e){return{m:"v",b:"v",d:"z"}[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[_],e)}var a={name:"br",weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),weekStart:1,weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function(e){switch(_(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},meridiem:function(e){return e<12?"a.m.":"g.m."}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_bs=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"bs",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ca=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ca",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("_"),months:"Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns 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"},ordinal:function(e){return e+(1===e||3===e?"r":2===e?"n":4===e?"t":"è")}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_cs=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e){return e>1&&e<5&&1!=~~(e/10)}function n(e,t,n,a){var d=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?d+(_(e)?"minuty":"minut"):d+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?d+(_(e)?"hodiny":"hodin"):d+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?d+(_(e)?"dny":"dní"):d+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?d+(_(e)?"měsíce":"měsíců"):d+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?d+(_(e)?"roky":"let"):d+"lety"}}var a={name:"cs",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("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{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"},relativeTime:{future:"za %s",past:"před %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_cv=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"cv",weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),weekStart:1,weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_cy=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"cy",weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),weekStart:1,weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_da=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},formats:{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"},relativeTime:{future:"om %s",past:"%s siden",s:"få 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de_at=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var a=_[n];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var a={name:"de-at",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de_ch=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var a=_[n];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var a={name:"de-ch",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{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"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_de=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var a=_[n];return Array.isArray(a)&&(a=a[t?0:1]),a.replace("%d",e)}var a={name:"de",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("_"),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._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_dv=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"dv",weekdays:"އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު".split("_"),months:"ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު".split("_"),weekStart:7,weekdaysShort:"އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު".split("_"),monthsShort:"ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު".split("_"),weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_el=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"el",weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),months:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ".split("_"),ordinal:function(e){return e},weekStart:1,relativeTime:{future:"σε %s",past:"πριν %s",s:"μερικά δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένα μήνα",MM:"%d μήνες",y:"ένα χρόνο",yy:"%d χρόνια"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_eo=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"eo",weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_do=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"es-do",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("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekStart:1,relativeTime:{future:"en %s",past:"hace %s",s:"unos 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"},ordinal:function(e){return e+"º"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_mx=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"es-mx",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("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos 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"},ordinal:function(e){return e+"º"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_pr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"es-pr",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),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("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},relativeTime:{future:"en %s",past:"hace %s",s:"unos 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"},ordinal:function(e){return e+"º"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es_us=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"es-us",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("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),relativeTime:{future:"en %s",past:"hace %s",s:"unos 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"},ordinal:function(e){return e+"º"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_es=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),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("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{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"},relativeTime:{future:"en %s",past:"hace %s",s:"unos 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"},ordinal:function(e){return e+"º"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_et=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e,t,_,n){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return t?(a[_][2]?a[_][2]:a[_][1]).replace("%d",e):(n?a[_][0]:a[_][1]).replace("%d",e)}var n={name:"et",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:"%d päeva",M:_,MM:_,y:_,yy:_},formats:{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"}};return t.default.locale(n,null,!0),n}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_eu=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"eu",weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),weekStart:1,weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fa=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fa",weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک_دو_سه_چه_پن_جم_شن".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekStart:6,months:"فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند".split("_"),monthsShort:"فرو_ارد_خرد_تیر_مرد_شهر_مهر_آبا_آذر_دی_بهم_اسف".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"در %s",past:"%s قبل",s:"چند ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e,t,_,n){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},d={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},s=n&&!t?d:a,i=s[_];return e<10?i.replace("%d",s.numbers[e]):i.replace("%d",e)}var n={name:"fi",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return t.default.locale(n,null,!0),n}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fo=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fo",weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),weekStart:1,weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr_ca=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr_ch=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fr-ch",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),weekStart:1,weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fr",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("_"),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("_"),weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques 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"},ordinal:function(e){return e+(1===e?"er":"")}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_fy=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"fy",weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:"jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),weekStart:1,weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ga=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ga",weekdays:"Dé Domhnaigh_Dé Luain_Dé Máirt_Dé Céadaoin_Déardaoin_Dé hAoine_Dé Satharn".split("_"),months:"Eanáir_Feabhra_Márta_Aibreán_Bealtaine_Méitheamh_Iúil_Lúnasa_Meán Fómhair_Deaireadh Fómhair_Samhain_Nollaig".split("_"),weekStart:1,weekdaysShort:"Dom_Lua_Mái_Céa_Déa_hAo_Sat".split("_"),monthsShort:"Eaná_Feab_Márt_Aibr_Beal_Méit_Iúil_Lúna_Meán_Deai_Samh_Noll".split("_"),weekdaysMin:"Do_Lu_Má_Ce_Dé_hA_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_gd=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"gd",weekdays:"Didòmhnaich_Diluain_Dimàirt_Diciadain_Diardaoin_Dihaoine_Disathairne".split("_"),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".split("_"),weekStart:1,weekdaysShort:"Did_Dil_Dim_Dic_Dia_Dih_Dis".split("_"),monthsShort:"Faoi_Gear_Màrt_Gibl_Cèit_Ògmh_Iuch_Lùn_Sult_Dàmh_Samh_Dùbh".split("_"),weekdaysMin:"Dò_Lu_Mà_Ci_Ar_Ha_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_gl=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"gl",weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),weekStart:1,weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),ordinal:function(e){return e+"º"},formats:{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"},relativeTime:{future:"en %s",past:"fai %s",s:"uns 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_gu=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"gu",weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),ordinal:function(e){return e},formats:{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 વાગ્યે"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_he=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:"%d שעות",hh2:"שעתיים",d:"יום",dd:"%d ימים",dd2:"יומיים",M:"חודש",MM:"%d חודשים",MM2:"חודשיים",y:"שנה",yy:"%d שנים",yy2:"שנתיים"};function n(e,t,n){return(_[n+(2===e?"2":"")]||_[n]).replace("%d",e)}var a={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),relativeTime:{future:"בעוד %s",past:"לפני %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinal:function(e){return e},format:{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"},formats:{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"}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"hi",weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(e){return e},formats:{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 बजे"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_="siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),n="siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),a=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,d=function(e,t){return a.test(t)?_[e.month()]:n[e.month()]};d.s=n,d.f=_;var s={name:"hr",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("_"),months:d,monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekStart:1,formats:{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"},relativeTime:{future:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(e){return e+"."}};return t.default.locale(s,null,!0),s}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ht=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ht",weekdays:"dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi".split("_"),months:"janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm".split("_"),weekdaysShort:"dim._len._mad._mèk._jed._van._sam.".split("_"),monthsShort:"jan._fev._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.".split("_"),weekdaysMin:"di_le_ma_mè_je_va_sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"nan %s",past:"sa gen %s",s:"kèk segond",m:"yon minit",mm:"%d minit",h:"inèdtan",hh:"%d zè",d:"yon jou",dd:"%d jou",M:"yon mwa",MM:"%d mwa",y:"yon ane",yy:"%d ane"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hu=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"hu",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(e,t,_,n){return"néhány másodperc"+(n||t?"":"e")},m:function(e,t,_,n){return"egy perc"+(n||t?"":"e")},mm:function(e,t,_,n){return e+" perc"+(n||t?"":"e")},h:function(e,t,_,n){return"egy "+(n||t?"óra":"órája")},hh:function(e,t,_,n){return e+" "+(n||t?"óra":"órája")},d:function(e,t,_,n){return"egy "+(n||t?"nap":"napja")},dd:function(e,t,_,n){return e+" "+(n||t?"nap":"napja")},M:function(e,t,_,n){return"egy "+(n||t?"hónap":"hónapja")},MM:function(e,t,_,n){return e+" "+(n||t?"hónap":"hónapja")},y:function(e,t,_,n){return"egy "+(n||t?"év":"éve")},yy:function(e,t,_,n){return e+" "+(n||t?"év":"éve")}},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_hy_am=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"hy-am",weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),months:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),weekStart:1,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_id=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"id",weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),weekStart:1,formats:{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"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa 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"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_is=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={s:["nokkrar sekúndur","nokkrar sekúndur","nokkrum sekúndum"],m:["mínúta","mínútu","mínútu"],mm:["mínútur","mínútur","mínútum"],h:["klukkustund","klukkustund","klukkustund"],hh:["klukkustundir","klukkustundir","klukkustundum"],d:["dagur","dag","degi"],dd:["dagar","daga","dögum"],M:["mánuður","mánuð","mánuði"],MM:["mánuðir","mánuði","mánuðum"],y:["ár","ár","ári"],yy:["ár","ár","árum"]};function n(e,t,n,a){var d=function(e,t,n,a){var d=a?0:n?1:2,s=2===e.length&&t%10==1?e[0]:e,i=_[s][d];return 1===e.length?i:"%d "+i}(n,e,a,t);return d.replace("%d",e)}var a={name:"is",weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),weekStart:1,weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_it_ch=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"it-ch",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_it=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"it",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("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{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"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",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"},ordinal:function(e){return e+"º"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ja=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),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("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_jv=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"jv",weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),weekStart:1,weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ka=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ka",weekdays:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekStart:1,formats:{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"},relativeTime:{future:"%s შემდეგ",past:"%s წინ",s:"წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათის",d:"დღეს",dd:"%d დღის განმავლობაში",M:"თვის",MM:"%d თვის",y:"წელი",yy:"%d წლის"},ordinal:function(e){return e}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_kk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"kk",weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekStart:1,relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_km=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"km",weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekStart:1,weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_kn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"kn",weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ko=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),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("_"),ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs")):"function"==typeof define&&define.amd?define(["exports","dayjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ku={},e.dayjs)}(this,function(e,t){"use strict";var _=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(t),n={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},a={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},d=["کانوونی دووەم","شوبات","ئادار","نیسان","ئایار","حوزەیران","تەممووز","ئاب","ئەیلوول","تشرینی یەکەم","تشرینی دووەم","کانوونی یەکەم"],s={name:"ku",months:d,monthsShort:d,weekdays:"یەکشەممە_دووشەممە_سێشەممە_چوارشەممە_پێنجشەممە_هەینی_شەممە".split("_"),weekdaysShort:"یەکشەم_دووشەم_سێشەم_چوارشەم_پێنجشەم_هەینی_شەممە".split("_"),weekStart:6,weekdaysMin:"ی_د_س_چ_پ_هـ_ش".split("_"),preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return a[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return n[e]}).replace(/,/g,"،")},ordinal:function(e){return e},formats:{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"},meridiem:function(e){return e<12?"پ.ن":"د.ن"},relativeTime:{future:"لە %s",past:"لەمەوپێش %s",s:"چەند چرکەیەک",m:"یەک خولەک",mm:"%d خولەک",h:"یەک کاتژمێر",hh:"%d کاتژمێر",d:"یەک ڕۆژ",dd:"%d ڕۆژ",M:"یەک مانگ",MM:"%d مانگ",y:"یەک ساڵ",yy:"%d ساڵ"}};_.default.locale(s,null,!0),e.default=s,e.englishToArabicNumbersMap=n,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ky=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ky",weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),weekStart:1,weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lb=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"lb",weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),weekStart:1,weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),ordinal:function(e){return e},formats:{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]"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lo=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"lo",weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lt=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_="sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),n="sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),a=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,d=function(e,t){return a.test(t)?_[e.month()]:n[e.month()]};d.s=n,d.f=_;var s={name:"lt",weekdays:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),weekdaysShort:"sek_pir_ant_tre_ket_pen_šeš".split("_"),weekdaysMin:"s_p_a_t_k_pn_š".split("_"),months:d,monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"už %s",past:"prieš %s",s:"kelias sekundes",m:"minutę",mm:"%d minutes",h:"valandą",hh:"%d valandas",d:"dieną",dd:"%d dienas",M:"mėnesį",MM:"%d mėnesius",y:"metus",yy:"%d metus"},format:{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.]"},formats:{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.]"}};return t.default.locale(s,null,!0),s}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_lv=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"lv",weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"pēc %s",past:"pirms %s",s:"dažām sekundēm",m:"minūtes",mm:"%d minūtēm",h:"stundas",hh:"%d stundām",d:"dienas",dd:"%d dienām",M:"mēneša",MM:"%d mēnešiem",y:"gada",yy:"%d gadiem"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_me=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"me",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),weekStart:1,weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"mi",weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),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("_"),weekStart:1,weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"mk",weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),weekStart:1,weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ml=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ml",weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),ordinal:function(e){return e},formats:{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 -നു"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"mn",weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},relativeTime:{future:"%s",past:"%s",s:"саяхан",m:"м",mm:"%dм",h:"1ц",hh:"%dц",d:"1ө",dd:"%dө",M:"1с",MM:"%dс",y:"1ж",yy:"%dж"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"mr",weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),ordinal:function(e){return e},formats:{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 वाजता"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ms_my=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ms-my",weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),weekStart:1,weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ms=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ms",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("_"),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("_"),weekStart:1,formats:{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"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa 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"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_mt=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"mt",weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),weekStart:1,weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_my=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"my",weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),weekStart:1,weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nb=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"nb",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"om %s",past:"%s siden",s:"noen 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ne=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ne",weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मे_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),relativeTime:{future:"%s पछि",past:"%s अघि",s:"सेकेन्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"घन्टा",hh:"%d घन्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक वर्ष",yy:"%d वर्ष"},ordinal:function(e){return(""+e).replace(/\d/g,function(e){return"०१२३४५६७८९"[e]})},formats:{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 बजे"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nl_be=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nl=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"nl",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("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_nn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"nn",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_la".split("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eitt minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månadar",y:"eitt år",yy:"%d år"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_oc_lnc=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"oc-lnc",weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"Dg_Dl_Dm_Dc_Dj_Dv_Ds".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),months:"genièr_febrièr_març_abrial_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),monthsShort:"gen_feb_març_abr_mai_junh_julh_ago_set_oct_nov_dec".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},ordinal:function(e){return e+"º"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pa_in=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"pa-in",weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),ordinal:function(e){return e},formats:{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 ਵਜੇ"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pl=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,t,n){var a=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return a+(_(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(_(e)?"godziny":"godzin");case"MM":return a+(_(e)?"miesiące":"miesięcy");case"yy":return a+(_(e)?"lata":"lat")}}var a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),d="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),s=/D MMMM/,i=function(e,t){return s.test(t)?a[e.month()]:d[e.month()]};i.s=d,i.f=a;var o={name:"pl",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("_"),months:i,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},formats:{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"}};return t.default.locale(o,null,!0),o}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pt_br=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"pt-br",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("_"),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("_"),ordinal:function(e){return e+"º"},formats:{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"},relativeTime:{future:"em %s",past:"há %s",s:"poucos 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_pt=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),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("_"),ordinal:function(e){return e+"º"},weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"em %s",past:"há %s",s:"alguns 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_rn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"rn",weekdays:"Ku wa Mungu_Ku wa Mbere_Ku wa Kabiri_Ku wa Gatatu_Ku wa Kane_Ku wa Gatanu_Ku wa Gatandatu".split("_"),weekdaysShort:"Kngu_Kmbr_Kbri_Ktat_Kkan_Ktan_Kdat".split("_"),weekdaysMin:"K7_K1_K2_K3_K4_K5_K6".split("_"),months:"Nzero_Ruhuhuma_Ntwarante_Ndamukiza_Rusama_Ruhenshi_Mukakaro_Myandagaro_Nyakanga_Gitugutu_Munyonyo_Kigarama".split("_"),monthsShort:"Nzer_Ruhuh_Ntwar_Ndam_Rus_Ruhen_Muk_Myand_Nyak_Git_Muny_Kig".split("_"),weekStart:1,ordinal:function(e){return e},relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ro=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ro",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("_"),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("_"),weekStart:1,formats:{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"},relativeTime:{future:"peste %s",past:"acum %s",s:"câteva secunde",m:"un minut",mm:"%d minute",h:"o oră",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lună",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(e){return e}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ru=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),a="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),d="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function i(e,t,_){var n,a;return"m"===_?t?"минута":"минуту":e+" "+(n=+e,a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[_].split("_"),n%10==1&&n%100!=11?a[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?a[1]:a[2])}var o=function(e,t){return s.test(t)?_[e.month()]:n[e.month()]};o.s=n,o.f=_;var r=function(e,t){return s.test(t)?a[e.month()]:d[e.month()]};r.s=d,r.f=a;var u={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:o,monthsShort:r,weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return t.default.locale(u,null,!0),u}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_rw=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"rw",weekdays:"Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu".split("_"),months:"Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza".split("_"),relativeTime:{future:"mu %s",past:"%s",s:"amasegonda",m:"Umunota",mm:"%d iminota",h:"isaha",hh:"%d amasaha",d:"Umunsi",dd:"%d iminsi",M:"ukwezi",MM:"%d amezi",y:"umwaka",yy:"%d imyaka"},formats:{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"},ordinal:function(e){return e}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sd=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sd",weekdays:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),months:"جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر".split("_"),weekStart:1,weekdaysShort:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),monthsShort:"جنوري_فيبروري_مارچ_اپريل_مئي_جون_جولاءِ_آگسٽ_سيپٽمبر_آڪٽوبر_نومبر_ڊسمبر".split("_"),weekdaysMin:"آچر_سومر_اڱارو_اربع_خميس_جمع_ڇنڇر".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_se=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"se",weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),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("_"),weekStart:1,weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_si=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"si",weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),months:"දුරුතු_නවම්_මැදින්_බක්_වෙසක්_පොසොන්_ඇසළ_නිකිණි_බිනර_වප්_ඉල්_උඳුවප්".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),monthsShort:"දුරු_නව_මැදි_බක්_වෙස_පොසො_ඇස_නිකි_බින_වප්_ඉල්_උඳු".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"විනාඩිය",mm:"විනාඩි %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function _(e){return e>1&&e<5&&1!=~~(e/10)}function n(e,t,n,a){var d=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?d+(_(e)?"minúty":"minút"):d+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?d+(_(e)?"hodiny":"hodín"):d+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?d+(_(e)?"dni":"dní"):d+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?d+(_(e)?"mesiace":"mesiacov"):d+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?d+(_(e)?"roky":"rokov"):d+"rokmi"}}var a={name:"sk",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("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{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"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(a,null,!0),a}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sl=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),ordinal:function(e){return e+"."},formats:{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"},relativeTime:{future:"čez %s",past:"pred %s",s:"nekaj sekund",m:"minuta",mm:"%d minut",h:"ura",hh:"%d ur",d:"dan",dd:"%d dni",M:"mesec",MM:"%d mesecev",y:"leto",yy:"%d let"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sq=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sq",weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),weekStart:1,weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,n,a){var d=_.words[n];if(1===n.length)return"y"===n&&t?"jedna godina":a||t?d[0]:d[1];var s=_.correctGrammarCase(e,d);return"yy"===n&&t&&"%d godinu"===s?e+" godina":s.replace("%d",e)}},n={name:"sr",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("_"),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("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:_.relativeTimeFormatter,mm:_.relativeTimeFormatter,h:_.relativeTimeFormatter,hh:_.relativeTimeFormatter,d:_.relativeTimeFormatter,dd:_.relativeTimeFormatter,M:_.relativeTimeFormatter,MM:_.relativeTimeFormatter,y:_.relativeTimeFormatter,yy:_.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};return t.default.locale(n,null,!0),n}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ss=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ss",weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),weekStart:1,weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sv_fi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sv-fi",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("_"),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("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10;return"["+e+(1===t||2===t?"a":"e")+"]"},formats:{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",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [kl.] HH.mm",llll:"ddd, D. MMM YYYY, [kl.] HH.mm"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sv=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sv",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("_"),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("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10;return"["+e+(1===t||2===t?"a":"e")+"]"},formats:{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"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_sw=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"sw",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("_"),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("_"),weekStart:1,ordinal:function(e){return e},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",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"},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ta=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ta",weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_te=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"te",weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tet=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tet",weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),weekStart:1,weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tg=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tg",weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),weekStart:1,weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_th=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{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"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tk",weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekStart:1,formats:{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"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e){return e+"."}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tl_ph=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tl-ph",weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),weekStart:1,weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tlh=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tlh",weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),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("_"),weekStart:1,weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".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("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),ordinal:function(e){return e},formats:{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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_tr=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"tr",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("_"),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("_"),weekStart:1,formats:{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"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç 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){return e+"."}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ug_cn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ug-cn",weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekStart:1,weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_uk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),n="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),a=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(e,t,_){var n,a;return"m"===_?t?"хвилина":"хвилину":"h"===_?t?"година":"годину":e+" "+(n=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[_].split("_"),n%10==1&&n%100!=11?a[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?a[1]:a[2])}var s=function(e,t){return a.test(t)?_[e.month()]:n[e.month()]};s.s=n,s.f=_;var i={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:d,mm:d,h:d,hh:d,d:"день",dd:d,M:"місяць",MM:d,y:"рік",yy:d},ordinal:function(e){return e},formats:{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"}};return t.default.locale(i,null,!0),i}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_ur=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"ur",weekdays:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),months:"جنوری_فروری_مارچ_اپریل_مئی_جون_جولائی_اگست_ستمبر_اکتوبر_نومبر_دسمبر".split("_"),weekStart:1,weekdaysShort:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),monthsShort:"جنوری_فروری_مارچ_اپریل_مئی_جون_جولائی_اگست_ستمبر_اکتوبر_نومبر_دسمبر".split("_"),weekdaysMin:"اتوار_پیر_منگل_بدھ_جمعرات_جمعہ_ہفتہ".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_uz=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"uz",weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),weekStart:1,weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_vi=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),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("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài 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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_yo=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"yo",weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),weekStart:1,weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),ordinal:function(e){return e},formats:{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"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",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"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh_cn=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var _=100*e+t;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh_hk=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"zh-hk",months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),ordinal:function(e,t){return"W"===t?e+"週":e+"日"},formats:{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"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d 分鐘",h:"一小時",hh:"%d 小時",d:"一天",dd:"%d 天",M:"一個月",MM:"%d 個月",y:"一年",yy:"%d 年"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh_tw=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"週":e+"日"},formats:{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"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var _=100*e+t;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return t.default.locale(_,null,!0),_}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_locale_zh=t(e.dayjs)}(this,function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),_={name:"zh",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{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"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var _=100*e+t;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return t.default.locale(_,null,!0),_});
/*!
* Favico animations 0.3.10 (https://github.com/ejci/favico.js/)
* Copyright 2017 by Miroslav Magda
* Licensed under MIT
*/
!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=!!/Firefox/.test(navigator.userAgent),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),A.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])}),T.run(p[0].options,function(){f=p[0],c=!1,p.length>0&&(p.shift(),m.start())},!1)};f?T.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)},T.duration),A.setIcon(i)}var A={};function E(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 I(t,e){var o,n={};for(o in t)n[o]=t[o];for(o in e)n[o]=e[o];return n}A.getIcon=function(){var t=!1;return e.element?t=e.element:e.elementId?(t=g.getElementById(e.elementId)).setAttribute("href",t.getAttribute("src")):(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}(),!1===t&&((t=g.createElement("link")).setAttribute("rel","icon"),g.getElementsByTagName("head")[0].appendChild(t))),t.setAttribute("type","image/png"),t},A.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 T={duration:40,types:{}};return T.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}],T.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],T.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}],T.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}],T.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}],T.run=function(t,o,n,r){var a=T.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](I(t,a[r])),y=setTimeout(function(){n?r-=1:r+=1,T.run(t,o,n,r)},T.duration),A.setIcon(i)):o()},function(){(e=I(x,t)).bgColor=E(e.bgColor),e.textColor=E(e.textColor),e.position=e.position.toLowerCase(),e.animation=T.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 T.types)for(var h=0;h<T.types[c].length;h++){var u=T.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)),T.types[c][h]=u}e.type=b[""+e.type]?e.type:x.type,o=A.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&&T.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]=E(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),A.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.13
* Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
* Licensed under MIT (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;return function(){var e,n,i;t&&t.requirejs||(t?n=t:t={},function(t){var r,o,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,r,o,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((r=m[g.slice(0,p).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function v(e,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(t,i.concat([e,n]))}}function y(e){return function(t){l[e]=t}}function _(e){if(g(c,e)){var n=c[e];delete c[e],d[e]=!0,r.apply(t,n)}if(!g(l,e)&&!g(d,e))throw new Error("No "+e);return l[e]}function w(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?w(e):[]}function b(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,i,r=w(e),o=r[0],s=t[1];return e=r[1],o&&(n=_(o=m(o,s))),o?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return m(e,i)})):m(e,s):(o=(r=w(e=m(e,s)))[0],e=r[1],o&&(n=_(o))),{f:o?o+"!"+e:e,n:e,pr:o,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:b(e)}}},r=function(e,n,i,r){var o,u,p,h,f,m,w,b=[],A=typeof i;if(m=$(r=r||e),"undefined"===A||"function"===A){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(e);else if("exports"===u)b[f]=a.exports(e),w=!0;else if("module"===u)o=b[f]=a.module(e);else if(g(l,u)||g(c,u)||g(d,u))b[f]=_(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,v(r,!0),y(u),{}),b[f]=l[u]}p=i?i.apply(l[e],b):void 0,e&&(o&&o.exports!==t&&o.exports!==l[e]?l[e]=o.exports:p===t&&w||(l[e]=p))}else e&&(l[e]=i)},e=n=o=function(e,n,i,l,c){if("string"==typeof e)return a[e]?a[e](n):_(s(e,$(n)).f);if(!e.splice){if((u=e).deps&&o(u.deps,u.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=l,l=c),l?r(t,e,n,i):setTimeout(function(){r(t,e,n,i)},4),o},o.config=function(e){return o(e)},e._defined=l,(i=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=e,t.require=n,t.define=i)}(),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 r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<r.length;s++){var a=r[s];o.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in o.prototype&&(n=o.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];o.prototype[u]=l(u)}return o};var i=function(){this.listeners={}};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 r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};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.__cache={};var r=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++r),t=r.toString())),t},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},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="listbox"></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="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(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],r=this.option(i);t.push(r)}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 n=this;this.data.current(function(i){var r=e.map(i,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(o,r)>-1?n.attr("aria-selected","true"):n.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(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group";e(c);this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),n.on("results:append",function(e){r.append(e.data),n.isOpen()&&r.setClasses()}),n.on("query",function(e){r.hideMessages(),r.showLoading(e)}),n.on("select",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),n.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}}),n.on("results:next",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){r.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),o=t.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,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,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):e(n).append(o)},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 n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,r=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",r),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.trigger("focus"),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),e.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},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(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"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.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__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},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(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.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.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);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),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,r){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.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},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">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var r=e[i],o=this.selectionContainer(),s=this.display(r,o);o.append(s);var a=r.title||r.text;a&&o.attr("title",a),n.StoreData(o[0],"data",r),t.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,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","../utils"],function(e,t,n){function i(){}return i.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)})},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=e('<span class="select2-selection__clear" title="'+r()+'">×</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i}),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="searchbox" 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,i,r){var o=this,s=i.id+"-results";e.call(this,i,r),i.on("open",function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")}),i.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),i.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),i.on("disable",function(){o.$search.prop("disabled",!0)}),i.on("focus",function(e){o.$search.trigger("focus")}),i.on("results:focus",function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")}),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 i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=t.GetData(i[0],"data");o.searchRemoveChoice(r),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){o.$search.val()&&e.stopPropagation()});var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){l?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(l&&"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.trigger("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").width():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 r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,o)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$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",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,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),r=i.item(e);t.push(r)}),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("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var r=[];(e=[e]).push.apply(e,i);for(var o=0;o<e.length;o++){var s=e[o].id;-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("input").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("input").trigger("change");this.current(function(i){for(var r=[],o=0;o<i.length;o++){var s=i[o].id;s!==e.id&&-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").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(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var o=r.item(t),s=r.matches(e,o);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var r=n(i),o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),r},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),o=[],s=0;s<r.length;s++){var a=n(r[s]),l=this.item(a);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(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){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},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,r=this.$element.find("option"),o=r.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,o)>=0){var u=r.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 r=n.ajax(e);return r.then(t),r.fail(i),r}};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 r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,function(r){var o=i.processResults(r,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)},function(){(!("status"in o)||0!==o.status&&"0"!==o.status)&&i.trigger("results:message",{message:"errorLoading"})});i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(r,o){for(var s=r.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!o&&(r.data=s,void n(r))}if(o)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)}r.results=s,n(r)}):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.$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 r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,function(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(e){r.trigger("select",{data:e})}(n)});o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var o=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,o)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(r(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.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},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="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||r.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},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 r=t[i];this.placeholder.id===r.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),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),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=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),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._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(o,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(o+" "+s+" "+a,function(e){r._positionDropdown(),r._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-a,d=c>o.bottom+a,p={left:o.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),p.top-=f.top,p.left-=f.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(p.top=s.top-f.top-a),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(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(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=e.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t}),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||n.metaKey)||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…"},removeAllItems:function(){return"Remove all items"}}}),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,r,o,s,a,l,c,u,d,p,h,f,g,m,v,y,_,w,$,b,A,x,D,S,C,E){function O(){this.reset()}return O.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,_)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var E=t(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,E)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,b)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,S))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=w;else{var O=c.Decorate(w,$);u.dropdownAdapter=O}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var T=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=r:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var q=t(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,q)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var j=[],L=0;L<u.language.length;L++){var I=u.language[L];-1===j.indexOf(I)&&j.push(I)}return u.language=j,u.translations=this._processTranslations(u.language,u.debug),u},O.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:{},matcher:function n(i,r){if(""===e.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=e.extend(!0,{},r),s=r.children.length-1;s>=0;s--){null==n(i,r.children[s])&&o.children.splice(s,1)}return o.children.length>0?o:n(i,o)}var a=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},O.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var o=new u,s=t[r];if("string"==typeof s)try{o=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(s)?new u(s):s;i.extend(o)}return i},O.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(!0,this.defaults,r)},new O}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.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.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var r={};function o(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name,l="data-";if(a.substr(0,5)==l){var c=a.substring(5),u=i.GetData(e[0],c);r[c.replace(/-([a-z])/g,o)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(r=t.extend(!0,{},e[0].dataset,r));var d=t.extend(!0,{},i.GetData(e[0]),r);for(var p in d=i._convertData(d))t.inArray(p,n)>-1||(t.isPlainObject(this.options[p])?t.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var o=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",o),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.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,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.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 r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){e._syncA(),e._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},r.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,r){-1===e.inArray(i,n)&&t.trigger(i,r)})},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},r.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),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())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(t,n){var i=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var o=0;o<n.addedNodes.length;o++){n.addedNodes[o].selected&&(i=!0)}else n.removedNodes&&n.removedNodes.length>0?i=!0:e.isArray(n)&&e.each(n,function(e,t){if(r._isChangeMutation(e,t))return i=!0,!1});else i=!0;return i}},r.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.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)},r.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},r.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("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var 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")),n.StoreData(t[0],"element",this.$element),t},r}),t.define("select2/compat/utils",["jquery"],function(e){return{syncCssClasses:function(t,n,i){var r,o,s=[];(r=e.trim(t.attr("class")))&&e((r=""+r).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)}),(r=e.trim(n.attr("class")))&&e((r=""+r).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(o=i(this))&&s.push(o)}),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 r=i.call(this),o=this.options.get("containerCssClass")||"";e.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(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(r,this.$element,s),r.css(l),r.addClass(o),r},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 r=i.call(this),o=this.options.get("dropdownCssClass")||"";e.isFunction(o)&&(o=o(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=s;s=function(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(r,this.$element,s),r.css(l),r.addClass(o),r},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","../utils"],function(e,t){function n(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 n.prototype.current=function(t,n){function i(t,n){var r=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,r.push(t)):t.selected=!1,t.children&&r.push.apply(r,i(t.children,n)),r}for(var r=[],o=0;o<this._currentData.length;o++){var s=this._currentData[o];r.push.apply(r,i(s,this.$element.val().split(this._valueSeparator)))}n(r)},n.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("input").trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("input").trigger("change")},n.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],r=0;r<e.length;r++){var o=e[r];t.id!=o.id&&i.push(o.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("input").trigger("change")})},n.prototype.query=function(e,t,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(t,o);null!==s&&i.push(s)}n({results:i})},n.prototype.addOptions=function(n,i){var r=e.map(i,function(e){return t.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,r)},n}),t.define("select2/compat/matcher",["jquery"],function(e){return function(t){return function(n,i){var r=e.extend(!0,{},i);if(null==n.term||""===e.trim(n.term))return r;if(i.children){for(var o=i.children.length-1;o>=0;o--){var s=i.children[o];t(n.term,s.text,s)||r.children.splice(o,1)}if(r.children.length>0)return r}return t(n.term,i.text,i)?r: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}),n=function(e){var t,n,i=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=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=r.length;t;)this.addEventListener(r[--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=r.length;t;)this.removeEventListener(r[--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 r,s=i||window.event,l=o.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(r=Math.max(Math.abs(h),Math.abs(p)),(!n||r<n)&&(n=r,u(s,r)&&(n/=40)),u(s,r)&&(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"],n):"object"==typeof exports?module.exports=n:n(e),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,r){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,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)}),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});
/*!
* PURL.js v2.3.1 (https://github.com/allmarkedup/purl)
* Copyright 2017 Mark Perkins
* Licensed under MIT
*/
!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"},r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],e={anchor:"fragment"},a={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},n=/^[0-9]+$/;function o(t,e){for(var n=decodeURI(t),o=a[e?"strict":"loose"].exec(n),i={attr:{},param:{},seg:{}},s=14;s--;)i.attr[r[s]]=o[s]||"";return i.param.query=u(i.attr.query),i.param.fragment=u(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}function i(t,r){if(0===t[r].length)return t[r]={};var e={};for(var a in t[r])e[a]=t[r][a];return t[r]=e,e}function s(t,r,e,a){var o=t.shift();if(o){var f=r[e]=r[e]||[];"]"==o?c(f)?""!==a&&f.push(a):"object"==typeof f?f[function(t){var r=[];for(var e in t)t.hasOwnProperty(e)&&r.push(e);return r}(f).length]=a:f=r[e]=[r[e],a]:~o.indexOf("]")?(o=o.substr(0,o.length-1),!n.test(o)&&c(f)&&(f=i(r,e)),s(t,f,o,a)):(!n.test(o)&&c(f)&&(f=i(r,e)),s(t,f,o,a))}else c(r[e])?r[e].push(a):"object"==typeof r[e]||void 0===r[e]?r[e]=a:r[e]=[r[e],a]}function f(t,r,e){if(~r.indexOf("]")){s(r.split("["),t,"base",e)}else{if(!n.test(r)&&c(t.base)){var a={};for(var o in t.base)a[o]=t.base[o];t.base=a}""!==r&&function(t,r,e){var a=t[r];void 0===a?t[r]=e:c(a)?a.push(e):t[r]=[a,e]}(t.base,r,e)}return t}function u(t){return function(t,r){var e=0,a=t.length|0,n=arguments[2];for(;e<a;)e in t&&(n=r.call(void 0,n,t[e],e,t)),++e;return n}(String(t).split(/&|;/),function(t,r){try{r=decodeURIComponent(r)}catch(t){}var e=r.indexOf("="),a=function(t){for(var r,e,a=t.length,n=0;n<a;++n)if("]"==(e=t[n])&&(r=!1),"["==e&&(r=!0),"="==e&&!r)return n}(r),n=r.substr(0,a||e),o=r.substr(a||e,r.length);return o=o.substr(o.indexOf("=")+1,o.length),""===n&&(n=r,o=""),f(t,n,o)},{base:{}}).base}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}function h(t,r){return 1===arguments.length&&!0===t&&(r=!0,t=void 0),r=r||!1,{data:o(t=t||window.location.toString(),r),attr:function(t){return void 0!==(t=e[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 h.jQuery=function(r){null!=r&&(r.fn.url=function(e){var a="";return this.length&&(a=r(this).attr(function(r){var e=r.tagName;return void 0!==e?t[e.toLowerCase()]:e}(this[0]))||""),h(a,e)},r.url=h)},h.jQuery(window.jQuery),h});
/*!
* URI.js v1.19.11 (https://github.com/medialize/URI.js)
* Copyright 2022 Rodney Rehm
* Licensed under MIT
*/
!function(e,t){"object"==typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.IPv6=t(e)}(this,function(e){var t=e&&e.IPv6;return{best:function(e){var t,r=(e=e.toLowerCase().split(":")).length,n=8;for(""===e[0]&&""===e[1]&&""===e[2]?(e.shift(),e.shift()):""===e[0]&&""===e[1]?e.shift():""===e[r-1]&&""===e[r-2]&&e.pop(),-1!==e[(r=e.length)-1].indexOf(".")&&(n=7),t=0;t<r&&""!==e[t];t++);if(t<n)for(e.splice(t,1,"0000");e.length<n;)e.splice(t,0,"0000");for(t=0;t<n;t++){r=e[t].split("");for(var o=0;3>o&&("0"===r[0]&&1<r.length);o++)r.splice(0,1);e[t]=r.join("")}r=-1;var a=o=0,i=-1,s=!1;for(t=0;t<n;t++)s?"0"===e[t]?a+=1:(s=!1,a>o&&(r=i,o=a)):"0"===e[t]&&(s=!0,i=t,a=1);for(a>o&&(r=i,o=a),1<o&&e.splice(r,o,""),r=e.length,n="",""===e[0]&&(n=":"),t=0;t<r&&(n+=e[t],t!==r-1);t++)n+=":";return""===e[r-1]&&(n+=":"),n},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}),function(e){function t(e){throw new RangeError(f[e])}function r(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function n(e,t){var n=e.split("@"),o="";return 1<n.length&&(o=n[0]+"@",e=n[1]),o+(n=r(n=(e=e.replace(g,".")).split("."),t).join("."))}function o(e){for(var t,r,n=[],o=0,a=e.length;o<a;)55296<=(t=e.charCodeAt(o++))&&56319>=t&&o<a?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function a(e){return r(e,function(e){var t="";return 65535<e&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+y(e)}).join("")}function i(e,t,r){var n=0;for(e=r?v(e/700):e>>1,e+=v(e/t);455<e;n+=36)e=v(e/35);return v(n+36*e/(e+38))}function s(e){var r,n,o=[],s=e.length,u=0,c=128,p=72,h=e.lastIndexOf("-");for(0>h&&(h=0),r=0;r<h;++r)128<=e.charCodeAt(r)&&t("not-basic"),o.push(e.charCodeAt(r));for(h=0<h?h+1:0;h<s;){r=u;var l=1;for(n=36;;n+=36){h>=s&&t("invalid-input");var d=e.charCodeAt(h++);(36<=(d=10>d-48?d-22:26>d-65?d-65:26>d-97?d-97:36)||d>v((2147483647-u)/l))&&t("overflow"),u+=d*l;var m=n<=p?1:n>=p+26?26:n-p;if(d<m)break;l>v(2147483647/(d=36-m))&&t("overflow"),l*=d}p=i(u-r,l=o.length+1,0==r),v(u/l)>2147483647-c&&t("overflow"),c+=v(u/l),u%=l,o.splice(u++,0,c)}return a(o)}function u(e){var r,n,a,s=[],u=(e=o(e)).length,c=128,p=0,h=72;for(a=0;a<u;++a){var l=e[a];128>l&&s.push(y(l))}for((r=n=s.length)&&s.push("-");r<u;){var d=2147483647;for(a=0;a<u;++a)(l=e[a])>=c&&l<d&&(d=l);var m=r+1;for(d-c>v((2147483647-p)/m)&&t("overflow"),p+=(d-c)*m,c=d,a=0;a<u;++a)if((l=e[a])<c&&2147483647<++p&&t("overflow"),l==c){var g=p;for(d=36;!(g<(l=d<=h?1:d>=h+26?26:d-h));d+=36){var f=g-l,b=s;l+=f%(g=36-l),b.push.call(b,y(l+22+75*(26>l)-0)),g=v(f/g)}s.push(y(g+22+75*(26>g)-0)),h=i(p,m,r==n),p=0,++r}++p,++c}return s.join("")}var c="object"==typeof exports&&exports&&!exports.nodeType&&exports,p="object"==typeof module&&module&&!module.nodeType&&module,h="object"==typeof global&&global;h.global!==h&&h.window!==h&&h.self!==h||(e=h);var l,d=/^xn--/,m=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=Math.floor,y=String.fromCharCode,b={version:"1.3.2",ucs2:{decode:o,encode:a},decode:s,encode:u,toASCII:function(e){return n(e,function(e){return m.test(e)?"xn--"+u(e):e})},toUnicode:function(e){return n(e,function(e){return d.test(e)?s(e.slice(4).toLowerCase()):e})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return b});else if(c&&p)if(module.exports==c)p.exports=b;else for(l in b)b.hasOwnProperty(l)&&(c[l]=b[l]);else e.punycode=b}(this),function(e,t){"object"==typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.SecondLevelDomains=t(e)}(this,function(e){var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(0>=n||n>=t-1)return!1;var o=r.list[e.slice(t+1)];return!!o&&0<=o.indexOf(" "+e.slice(n+1,t)+" ")},is:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1||0<=e.lastIndexOf(".",t-1))return!1;var n=r.list[e.slice(t+1)];return!!n&&0<=n.indexOf(" "+e.slice(0,t)+" ")},get:function(e){var t=e.lastIndexOf(".");if(0>=t||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(0>=n||n>=t-1)return null;var o=r.list[e.slice(t+1)];return!o||0>o.indexOf(" "+e.slice(n+1,t)+" ")?null:e.slice(n+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)}(this,function(e,t,r,n){function o(e,t){var r=1<=arguments.length;if(!(this instanceof o))return r?2<=arguments.length?new o(e,t):new o(e):new o;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}function a(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function i(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function s(e){return"Array"===i(e)}function u(e,t){var r,n={};if("RegExp"===i(t))n=null;else if(s(t)){var o=0;for(r=t.length;o<r;o++)n[t[o]]=!0}else n[t]=!0;for(o=0,r=e.length;o<r;o++)(n&&void 0!==n[e[o]]||!n&&t.test(e[o]))&&(e.splice(o,1),r--,o--);return e}function c(e,t){var r;if(s(t)){var n=0;for(r=t.length;n<r;n++)if(!c(e,t[n]))return!1;return!0}var o=i(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===o){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function p(e,t){if(!s(e)||!s(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function h(e){return e.replace(/^\/+|\/+$/g,"")}function l(e){return escape(e)}function d(e){return encodeURIComponent(e).replace(/[!'()*]/g,l).replace(/\*/g,"%2A")}function m(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function g(e,t){return function(r,n){return void 0===r?this._parts[e]||"":(null!==r&&((r+="").charAt(0)===t&&(r=r.substring(1))),this._parts[e]=r,this.build(!n),this)}}var f=n&&n.URI;o.version="1.19.11";var v=o.prototype,y=Object.prototype.hasOwnProperty;o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.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*$/,o.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,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.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"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=d,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=d,o.decode=decodeURIComponent},o.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"}}}},o.encodeQuery=function(e,t){var r=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var b,_={encode:"encode",decode:"decode"},w=function(e,t){return function(r){try{return o[t](r+"").replace(o.characters[e][t].expression,function(r){return o.characters[e][t].map[r]})}catch(e){return r}}};for(b in _)o[b+"PathSegment"]=w("pathname",_[b]),o[b+"UrnPathSegment"]=w("urnpath",_[b]);_=function(e,t,r){return function(n){for(var a=r?function(e){return o[t](o[r](e))}:o[t],i=0,s=(n=(n+"").split(e)).length;i<s;i++)n[i]=a(n[i]);return n.join(e)}},o.decodePath=_("/","decodePathSegment"),o.decodeUrnPath=_(":","decodeUrnPathSegment"),o.recodePath=_("/","encodePathSegment","decode"),o.recodeUrnPath=_(":","encodeUrnPathSegment","decode"),o.encodeReserved=w("reserved","encode"),o.parse=function(e,t){t||(t={preventInvalidHostname:o.preventInvalidHostname});var r=(e=(e=e.replace(o.leading_whitespace_expression,"")).replace(o.ascii_tab_whitespace,"")).indexOf("#");return-1<r&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),-1<(r=e.indexOf("?"))&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):-1<(r=e.indexOf(":"))&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=o.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var r=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===r&&(r=e.length),"["===e.charAt(0)){var n=e.indexOf("]");t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,r)||null,"/"===t.port&&(t.port=null)}else{var a=e.indexOf(":");n=e.indexOf("/"),-1!==(a=e.indexOf(":",a+1))&&(-1===n||a<n)?(t.hostname=e.substring(0,r)||null,t.port=null):(n=e.substring(0,r).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(r).charAt(0)&&(r++,e="/"+e),t.preventInvalidHostname&&o.ensureValidHostname(t.hostname,t.protocol),t.port&&o.ensureValidPort(t.port),e.substring(r)||"/"},o.parseAuthority=function(e,t){return e=o.parseUserinfo(e,t),o.parseHost(e,t)},o.parseUserinfo=function(e,t){var r=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n=e.indexOf("/"),a=e.lastIndexOf("@",-1<n?n:e.length-1);return-1<a&&(-1===n||a<n)?(n=e.substring(0,a).split(":"),t.username=n[0]?o.decode(n[0]):null,n.shift(),t.password=n[0]?o.decode(n.join(":")):null,e=r.substring(a+1)):(t.username=null,t.password=null),e},o.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,a={},i=e.split("&"),s=i.length,u=0;u<s;u++)r=i[u].split("="),n=o.decodeQuery(r.shift(),t),r=r.length?o.decodeQuery(r.join("="),t):null,"__proto__"!==n&&(y.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(r)):a[n]=r);return a},o.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",r=!0),t+=o.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},o.buildHost=function(e){var t="";return e.hostname?(t=o.ip6_expression.test(e.hostname)?t+"["+e.hostname+"]":t+e.hostname,e.port&&(t+=":"+e.port),t):""},o.buildAuthority=function(e){return o.buildUserinfo(e)+o.buildHost(e)},o.buildUserinfo=function(e){var t="";return e.username&&(t+=o.encode(e.username)),e.password&&(t+=":"+o.encode(e.password)),t&&(t+="@"),t},o.buildQuery=function(e,t,r){var n,a,i="";for(n in e)if("__proto__"!==n&&y.call(e,n))if(s(e[n])){var u={},c=0;for(a=e[n].length;c<a;c++)void 0!==e[n][c]&&void 0===u[e[n][c]+""]&&(i+="&"+o.buildQueryParameter(n,e[n][c],r),!0!==t&&(u[e[n][c]+""]=!0))}else void 0!==e[n]&&(i+="&"+o.buildQueryParameter(n,e[n],r));return i.substring(1)},o.buildQueryParameter=function(e,t,r){return o.encodeQuery(e,r)+(null!==t?"="+o.encodeQuery(t,r):"")},o.addQuery=function(e,t,r){if("object"==typeof t)for(var n in t)y.call(t,n)&&o.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");void 0===e[t]?e[t]=r:("string"==typeof e[t]&&(e[t]=[e[t]]),s(r)||(r=[r]),e[t]=(e[t]||[]).concat(r))}},o.setQuery=function(e,t,r){if("object"==typeof t)for(var n in t)y.call(t,n)&&o.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},o.removeQuery=function(e,t,r){var n;if(s(t))for(r=0,n=t.length;r<n;r++)e[t[r]]=void 0;else if("RegExp"===i(t))for(n in e)t.test(n)&&(e[n]=void 0);else if("object"==typeof t)for(n in t)y.call(t,n)&&o.removeQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===i(r)?!s(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=u(e[t],r):e[t]!==String(r)||s(r)&&1!==r.length?s(e[t])&&(e[t]=u(e[t],r)):e[t]=void 0:e[t]=void 0}},o.hasQuery=function(e,t,r,n){switch(i(t)){case"String":break;case"RegExp":for(var a in e)if(y.call(e,a)&&t.test(a)&&(void 0===r||o.hasQuery(e,a,r)))return!0;return!1;case"Object":for(var u in t)if(y.call(t,u)&&!o.hasQuery(e,u,t[u]))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 t in e;case"Boolean":return r===(e=!(s(e[t])?!e[t].length:!e[t]));case"Function":return!!r(e[t],t,e);case"Array":return!!s(e[t])&&(n?c:p)(e[t],r);case"RegExp":return s(e[t])?!!n&&c(e[t],r):!(!e[t]||!e[t].match(r));case"Number":r=String(r);case"String":return s(e[t])?!!n&&c(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var e=[],t=[],r=0,n=0;n<arguments.length;n++){var a=new o(arguments[n]);e.push(a),a=a.segment();for(var i=0;i<a.length;i++)"string"==typeof a[i]&&t.push(a[i]),a[i]&&r++}return t.length&&r?(t=new o("").segment(t),""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||t.path("/"+t.path()),t.normalize()):new o("")},o.commonPath=function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return 1>r?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(r)&&"/"===t.charAt(r)||(r=e.substring(0,r).lastIndexOf("/")),e.substring(0,r+1))},o.withinString=function(e,t,r){r||(r={});var n=r.start||o.findUri.start,a=r.end||o.findUri.end,i=r.trim||o.findUri.trim,s=r.parens||o.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var c=n.exec(e);if(!c)break;var p=c.index;if(r.ignoreHtml){var h=e.slice(Math.max(p-3,0),p);if(h&&u.test(h))continue}var l=p+e.slice(p).search(a);for(h=e.slice(p,l),l=-1;;){var d=s.exec(h);if(!d)break;l=Math.max(l,d.index+d[0].length)}(h=-1<l?h.slice(0,l)+h.slice(l).replace(i,""):h.replace(i,"")).length<=c[0].length||r.ignore&&r.ignore.test(h)||(void 0===(c=t(h,p,l=p+h.length,e))?n.lastIndex=l:(c=String(c),e=e.slice(0,p)+c+e.slice(l),n.lastIndex=p+c.length))}return n.lastIndex=0,e},o.ensureValidHostname=function(t,r){var n=!!t,a=!1;if(r&&(a=c(o.hostProtocols,r)),a&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&0<t&&65536>t))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){return e?(e={URI:this.noConflict()},n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(e.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(e.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=n.SecondLevelDomains.noConflict()),e):(n.URI===this&&(n.URI=f),this)},v.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},v.clone=function(){return new o(this)},v.valueOf=v.toString=function(){return this.build(!1)._string},v.protocol=m("protocol"),v.username=m("username"),v.password=m("password"),v.hostname=m("hostname"),v.port=m("port"),v.query=g("query","?"),v.fragment=g("fragment","#"),v.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},v.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},v.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(r):r}return this._parts.path=this._parts.urn?e?o.recodeUrnPath(e):"":e?o.recodePath(e):"/",this.build(!t),this},v.path=v.pathname,v.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var n=e instanceof o,a="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[a=o.getDomAttribute(e)]||"",a=!1),!n&&a&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!n&&!a)throw new TypeError("invalid input");for(r in n=n?e._parts:e)"query"!==r&&y.call(this._parts,r)&&(this._parts[r]=n[r]);n.query&&this.query(n.query,!1)}return this.build(!t),this},v.is=function(e){var t=!1,n=!1,a=!1,i=!1,s=!1,u=!1,c=!1,p=!this._parts.urn;switch(this._parts.hostname&&(p=!1,n=o.ip4_expression.test(this._parts.hostname),a=o.ip6_expression.test(this._parts.hostname),s=(i=!(t=n||a))&&r&&r.has(this._parts.hostname),u=i&&o.idn_expression.test(this._parts.hostname),c=i&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return p;case"absolute":return!p;case"domain":case"name":return i;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return a;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var x=v.protocol,k=v.port,z=v.hostname;v.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},v.scheme=v.protocol,v.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),k.call(this,e,t))},v.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return z.call(this,e,t)},v.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}return r=o(e),this.protocol(r.protocol()).authority(r.authority()).build(!t),this},v.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},v.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},v.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=o.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},v.resource=function(e,t){if(void 0===e)return this.path()+this.search()+this.hash();var r=o.parse(e);return this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this},v.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){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)||""}if(r=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,r),r=new RegExp("^"+a(r)),e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(r,e),this.build(!t),this},v.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){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(t).length-1,r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||"")}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP")?this._parts.hostname=e:(r=new RegExp(a(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(r,e)),this.build(!t),this},v.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf(".");return n=this._parts.hostname.substring(n+1),!0!==t&&r&&r.list[n.toLowerCase()]&&r.get(this._parts.hostname)||n}if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');n=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(n,e)}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,e)}return this.build(!t),this},v.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1;return r=this._parts.path.substring(0,r)||(this._parts.hostname?"/":""),e?o.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")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(r,e),this.build(!t),this},v.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/");return r=this._parts.path.substring(r+1),e?o.decodePathSegment(r):r}r=!1,"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(r=!0);var n=new RegExp(a(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(n,e),r?this.normalizePath(t):this.build(!t),this},v.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){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:"",e?o.decodePathSegment(r):r)}if("."===e.charAt(0)&&(e=e.substring(1)),r=this.suffix())n=e?new RegExp(a(r)+"$"):new RegExp(a("."+r)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return n&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(n,e)),this.build(!t),this},v.segment=function(e,t,r){var n=this._parts.urn?":":"/",o=this.path(),a="/"===o.substring(0,1);if(o=o.split(n),void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw Error('Bad segment "'+e+'", must be 0-based integer');if(a&&o.shift(),0>e&&(e=Math.max(o.length+e,0)),void 0===t)return void 0===e?o:o[e];if(null===e||void 0===o[e])if(s(t)){o=[],e=0;for(var i=t.length;e<i;e++)(t[e].length||o.length&&o[o.length-1].length)&&(o.length&&!o[o.length-1].length&&o.pop(),o.push(h(t[e])))}else(t||"string"==typeof t)&&(t=h(t),""===o[o.length-1]?o[o.length-1]=t:o.push(t));else t?o[e]=h(t):o.splice(e,1);return a&&o.unshift(""),this.path(o.join(n),r)},v.segmentCoded=function(e,t,r){var n;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(s(e=this.segment(e,t,r))){var a=0;for(n=e.length;a<n;a++)e[a]=o.decode(e[a])}else e=void 0!==e?o.decode(e):void 0;return e}if(s(t))for(a=0,n=t.length;a<n;a++)t[a]=o.encode(t[a]);else t="string"==typeof t||t instanceof String?o.encode(t):t;return this.segment(e,t,r)};var A=v.query;return v.query=function(e,t){if(!0===e)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,r);return this._parts.query=o.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=o.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):A.call(this,e,t)},v.setQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var a in e)y.call(e,a)&&(n[a]=e[a])}return this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},v.addQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(n,e,void 0===t?null:t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},v.removeQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(n,e,t),this._parts.query=o.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},v.hasQuery=function(e,t,r){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(n,e,t,r)},v.setSearch=v.setQuery,v.addSearch=v.addQuery,v.removeSearch=v.removeQuery,v.hasSearch=v.hasQuery,v.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()},v.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},v.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},v.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},v.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r="";if("/"!==(t=o.recodePath(t)).charAt(0)){var n=!0;t="/"+t}for("/.."!==t.slice(-3)&&"/."!==t.slice(-2)||(t+="/"),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(r=t.substring(1).match(/^(\.\.\/)+/)||"")&&(r=r[0]);;){var a=t.search(/\/\.\.(\/|$)/);if(-1===a)break;if(0!==a){var i=t.substring(0,a).lastIndexOf("/");-1===i&&(i=a),t=t.substring(0,i)+t.substring(a+3)}else t=t.substring(3)}return n&&this.is("relative")&&(t=r+t.substring(1)),this._parts.path=t,this.build(!e),this},v.normalizePathname=v.normalizePath,v.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},v.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},v.normalizeSearch=v.normalizeQuery,v.normalizeHash=v.normalizeFragment,v.iso8859=function(){var e=o.encode,t=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},v.unicode=function(){var e=o.encode,t=o.decode;o.encode=d,o.decode=unescape;try{this.normalize()}finally{o.encode=e,o.decode=t}return this},v.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var n="",a=0,i=t._parts.query.split("&"),s=i.length;a<s;a++){var u=(i[a]||"").split("=");n+="&"+o.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(n+="="+o.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+o.decodeQuery(t.hash(),!0)},v.absoluteTo=function(e){var t,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(e instanceof o||(e=new o(e)),n._parts.protocol)return n;if(n._parts.protocol=e._parts.protocol,this._parts.hostname)return n;for(t=0;r=a[t];t++)n._parts[r]=e._parts[r];return n._parts.path?(".."===n._parts.path.substring(-2)&&(n._parts.path+="/"),"/"!==n.path().charAt(0)&&(a=(a=e.directory())?a:0===e.path().indexOf("/")?"/":"",n._parts.path=(a?a+"/":"")+n._parts.path,n.normalizePath())):(n._parts.path=e._parts.path,n._parts.query||(n._parts.query=e._parts.query)),n.build(),n},v.relativeTo=function(e){var t=this.clone().normalize();if(t._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");e=new o(e).normalize();var r=t._parts,n=e._parts,a=t.path();if(e=e.path(),"/"!==a.charAt(0))throw Error("URI is already relative");if("/"!==e.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");return r.protocol===n.protocol&&(r.protocol=null),r.username!==n.username||r.password!==n.password||null!==r.protocol||null!==r.username||null!==r.password||r.hostname!==n.hostname||r.port!==n.port?t.build():(r.hostname=null,r.port=null,a===e?(r.path="",t.build()):(a=o.commonPath(a,e))?(n=n.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),r.path=n+r.path.substring(a.length)||"./",t.build()):t.build())},v.equals=function(e){var t,r=this.clone(),n=new o(e);if(e={},r.normalize(),n.normalize(),r.toString()===n.toString())return!0;var a=r.query(),i=n.query();if(r.query(""),n.query(""),r.toString()!==n.toString()||a.length!==i.length)return!1;for(t in r=o.parseQuery(a,this._parts.escapeQuerySpace),i=o.parseQuery(i,this._parts.escapeQuerySpace),r)if(y.call(r,t)){if(s(r[t])){if(!p(r[t],i[t]))return!1}else if(r[t]!==i[t])return!1;e[t]=!0}for(t in i)if(y.call(i,t)&&!e[t])return!1;return!0},v.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},v.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},v.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},o}),function(e,t){"object"==typeof module&&module.exports?module.exports=t(require("./URI")):"function"==typeof define&&define.amd?define(["./URI"],t):e.URITemplate=t(e.URI,e)}(this,function(e,t){function r(e){return r._cache[e]?r._cache[e]:this instanceof r?(this.expression=e,r._cache[e]=this,this):new r(e)}function n(e){this.data=e,this.cache={}}var o=t&&t.URITemplate,a=Object.prototype.hasOwnProperty,i=r.prototype,s={"":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encode"},"+":{prefix:"",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},"#":{prefix:"#",separator:",",named:!1,empty_name_separator:!1,encode:"encodeReserved"},".":{prefix:".",separator:".",named:!1,empty_name_separator:!1,encode:"encode"},"/":{prefix:"/",separator:"/",named:!1,empty_name_separator:!1,encode:"encode"},";":{prefix:";",separator:";",named:!0,empty_name_separator:!1,encode:"encode"},"?":{prefix:"?",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"},"&":{prefix:"&",separator:"&",named:!0,empty_name_separator:!0,encode:"encode"}};return r._cache={},r.EXPRESSION_PATTERN=/\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g,r.VARIABLE_PATTERN=/^([^*:.](?:\.?[^*:.])*)((\*)|:(\d+))?$/,r.VARIABLE_NAME_PATTERN=/[^a-zA-Z0-9%_.]/,r.LITERAL_PATTERN=/[<>{}"`^| \\]/,r.expand=function(e,t,n){var o=s[e.operator],a=o.named?"Named":"Unnamed";e=e.variables;var i,u,c=[];for(u=0;i=e[u];u++){var p=t.get(i.name);if(0===p.type&&n&&n.strict)throw Error('Missing expansion value for variable "'+i.name+'"');if(p.val.length){if(1<p.type&&i.maxlength)throw Error('Invalid expression: Prefix modifier not applicable to variable "'+i.name+'"');c.push(r["expand"+a](p,o,i.explode,i.explode&&o.separator||",",i.maxlength,i.name))}else p.type&&c.push("")}return c.length?o.prefix+c.join(o.separator):""},r.expandNamed=function(t,r,n,o,a,i){var s="",u=r.encode;r=r.empty_name_separator;var c,p=!t[u].length,h=2===t.type?"":e[u](i),l=0;for(c=t.val.length;l<c;l++){if(a){var d=e[u](t.val[l][1].substring(0,a));2===t.type&&(h=e[u](t.val[l][0].substring(0,a)))}else p?(d=e[u](t.val[l][1]),2===t.type?(h=e[u](t.val[l][0]),t[u].push([h,d])):t[u].push([void 0,d])):(d=t[u][l][1],2===t.type&&(h=t[u][l][0]));s&&(s+=o),n?s+=h+(r||d?"=":"")+d:(l||(s+=e[u](i)+(r||d?"=":"")),2===t.type&&(s+=h+","),s+=d)}return s},r.expandUnnamed=function(t,r,n,o,a){var i="",s=r.encode;r=r.empty_name_separator;var u,c=!t[s].length,p=0;for(u=t.val.length;p<u;p++){if(a)var h=e[s](t.val[p][1].substring(0,a));else c?(h=e[s](t.val[p][1]),t[s].push([2===t.type?e[s](t.val[p][0]):void 0,h])):h=t[s][p][1];if(i&&(i+=o),2===t.type)i+=a?e[s](t.val[p][0].substring(0,a)):t[s][p][0],i=n?i+(r||h?"=":""):i+",";i+=h}return i},r.noConflict=function(){return t.URITemplate===r&&(t.URITemplate=o),r},i.expand=function(e,t){var o="";this.parts&&this.parts.length||this.parse(),e instanceof n||(e=new n(e));for(var a=0,i=this.parts.length;a<i;a++)o+="string"==typeof this.parts[a]?this.parts[a]:r.expand(this.parts[a],e,t);return o},i.parse=function(){var e=this.expression,t=r.EXPRESSION_PATTERN,n=r.VARIABLE_PATTERN,o=r.VARIABLE_NAME_PATTERN,a=r.LITERAL_PATTERN,i=[],u=0,c=function(e){if(e.match(a))throw Error('Invalid Literal "'+e+'"');return e};for(t.lastIndex=0;;){var p=t.exec(e);if(null===p){i.push(c(e.substring(u)));break}if(i.push(c(e.substring(u,p.index))),u=p.index+p[0].length,!s[p[1]])throw Error('Unknown Operator "'+p[1]+'" in "'+p[0]+'"');if(!p[3])throw Error('Unclosed Expression "'+p[0]+'"');for(var h=p[2].split(","),l=0,d=h.length;l<d;l++){var m=h[l].match(n);if(null===m)throw Error('Invalid Variable "'+h[l]+'" in "'+p[0]+'"');if(m[1].match(o))throw Error('Invalid Variable Name "'+m[1]+'" in "'+p[0]+'"');h[l]={name:m[1],explode:!!m[3],maxlength:m[4]&&parseInt(m[4],10)}}if(!h.length)throw Error('Expression Missing Variable(s) "'+p[0]+'"');i.push({expression:p[0],operator:p[1],variables:h})}return i.length||i.push(c(e)),this.parts=i,this},n.prototype.get=function(e){var t=this.data,r={type:0,val:[],encode:[],encodeReserved:[]};if(void 0!==this.cache[e])return this.cache[e];if(this.cache[e]=r,null!=(t="[object Function]"===String(Object.prototype.toString.call(t))?t(e):"[object Function]"===String(Object.prototype.toString.call(t[e]))?t[e](e):t[e]))if("[object Array]"===String(Object.prototype.toString.call(t))){var n=0;for(e=t.length;n<e;n++)void 0!==t[n]&&null!==t[n]&&r.val.push([void 0,String(t[n])]);r.val.length&&(r.type=3)}else if("[object Object]"===String(Object.prototype.toString.call(t))){for(n in t)a.call(t,n)&&void 0!==t[n]&&null!==t[n]&&r.val.push([n,String(t[n])]);r.val.length&&(r.type=2)}else r.type=1,r.val.push([void 0,String(t)]);return r},e.expand=function(t,n){var o=new r(t).expand(n);return new e(o)},r});
/*!
* jquery.injectCSS.js 0.1
* Copyright 2013, Robert Kajic (robert@kajic.com)
* Licensed under MIT
*/
(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);
/*!
* printThis v1.15.1
* Copyright 2015-2019 Jason Day
* Licensed under MIT
*/
!function(e){function t(e,t){t&&e.append(t.jquery?t.clone():t)}function n(t,n,i){var a,o,r,s=n.clone(i.formValues);i.formValues&&(a=s,o="select, textarea",r=n.find(o),a.find(o).each(function(t,n){e(n).val(r.eq(t).val())})),i.removeScripts&&s.find("script").remove(),i.printContainer?s.appendTo(t):s.each(function(){e(this).children().appendTo(t)})}var i;e.fn.printThis=function(a){i=e.extend({},e.fn.printThis.defaults,a);var o=this instanceof jQuery?this:e(this),r="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var s='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',c=document.createElement("iframe");c.name="printIframe",c.id=r,c.className="MSIE",document.body.appendChild(c),c.src=s}else{e("<iframe id='"+r+"' name='printIframe' />").appendTo("body")}var d=e("#"+r);i.debug||d.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),"function"==typeof i.beforePrint&&i.beforePrint(),setTimeout(function(){i.doctypeString&&function(e,t){var n,i;(i=(n=(n=e.get(0)).contentWindow||n.contentDocument||n).document||n.contentDocument||n).open(),i.write(t),i.close()}(d,i.doctypeString);var a,r=d.contents(),s=r.find("head"),c=r.find("body"),l=e("base");a=!0===i.base&&l.length>0?l.attr("href"):"string"==typeof i.base?i.base:document.location.protocol+"//"+document.location.host,s.append('<base href="'+a+'">'),i.importCSS&&e("link[rel=stylesheet]").each(function(){var t=e(this).attr("href");if(t){var n=e(this).attr("media")||"all";s.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+n+"'>")}}),i.importStyle&&e("style").each(function(){s.append(this.outerHTML)}),i.pageTitle&&s.append("<title>"+i.pageTitle+"</title>"),i.loadCSS&&(e.isArray(i.loadCSS)?jQuery.each(i.loadCSS,function(e,t){s.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):s.append("<link type='text/css' rel='stylesheet' href='"+i.loadCSS+"'>"));var p=e("html")[0];r.find("html").prop("style",p.style.cssText);var f=i.copyTagClasses;if(f&&(-1!==(f=!0===f?"bh":f).indexOf("b")&&c.addClass(e("body")[0].className),-1!==f.indexOf("h")&&r.find("html").addClass(p.className)),t(c,i.header),i.canvas){var m=0;o.find("canvas").addBack("canvas").each(function(){e(this).attr("data-printthis",m++)})}if(n(c,o,i),i.canvas&&c.find("canvas").each(function(){var t=e(this).data("printthis"),n=e('[data-printthis="'+t+'"]');this.getContext("2d").drawImage(n[0],0,0),e.isFunction(e.fn.removeAttr)?n.removeAttr("data-printthis"):e.each(n,function(e,t){t.removeAttribute("data-printthis")})}),i.removeInline){var u=i.removeInlineSelector||"*";e.isFunction(e.removeAttr)?c.find(u).removeAttr("style"):c.find(u).attr("style","")}t(c,i.footer),function(e,t){var n=e.get(0);n=n.contentWindow||n.contentDocument||n,"function"==typeof t&&("matchMedia"in n?n.matchMedia("print").addListener(function(e){e.matches&&t()}):n.onbeforeprint=t)}(d,i.beforePrintEvent),setTimeout(function(){d.hasClass("MSIE")?(window.frames.printIframe.focus(),s.append("<script> window.print(); <\/script>")):document.queryCommandSupported("print")?d[0].contentWindow.document.execCommand("print",!1,null):(d[0].contentWindow.focus(),d[0].contentWindow.print()),i.debug||setTimeout(function(){d.remove()},1e3),"function"==typeof i.afterPrint&&i.afterPrint()},i.printDelay)},333)},e.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,removeInlineSelector:"*",printDelay:333,header:null,footer:null,base:!1,formValues:!0,canvas:!1,doctypeString:"<!DOCTYPE html>",removeScripts:!1,copyTagClasses:!1,beforePrintEvent:null,beforePrint:null,afterPrint:null}}(jQuery);
/*!
* jQuery Transit 0.9.12 (http://github.com/rstacruz/jquery.transit)
* Copyright 2011-2014 Rico Sta. Cruz
* Licensed under MIT
*/
!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&&(this._translateX=p(t,"px")),null!=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});
/*!
* iziToast 1.4.0
* Copyright 2018 Marcelo Dolce
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
!function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.iziToast=e(t)}("undefined"!=typeof global?global:window||this.window||this.global,function(t){"use strict";var e={},o="iziToast",n=(document.querySelector("body"),!!/Mobi/.test(navigator.userAgent)),i=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),s=!!/Firefox/.test(navigator.userAgent),a="ontouchstart"in document.documentElement,r=["bottomRight","bottomLeft","bottomCenter","topRight","topLeft","topCenter","center"],l=568,d={};e.children={};var c={id:null,class:"",title:"",titleColor:"",titleSize:"",titleLineHeight:"",message:"",messageColor:"",messageSize:"",messageLineHeight:"",backgroundColor:"",theme:"light",color:"",icon:"",iconText:"",iconColor:"",iconUrl:null,image:"",imageWidth:50,maxWidth:null,zindex:null,layout:1,balloon:!1,close:!0,closeOnEscape:!1,closeOnClick:!1,displayMode:0,position:"bottomRight",target:"",targetFirst:!0,timeout:5e3,rtl:!1,animateInside:!0,drag:!0,pauseOnHover:!0,resetOnHover:!1,progressBar:!0,progressBarColor:"",progressBarEasing:"linear",overlay:!1,overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",transitionIn:"fadeInUp",transitionOut:"fadeOut",transitionInMobile:"fadeInUp",transitionOutMobile:"fadeOutDown",buttons:{},inputs:{},onOpening:function(){},onOpened:function(){},onClosing:function(){},onClosed:function(){}};if("remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"function"!=typeof window.CustomEvent){var u=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),o};u.prototype=window.Event.prototype,window.CustomEvent=u}var p=function(t,e,o){if("[object Object]"===Object.prototype.toString.call(t))for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(o,t[n],n,t);else if(t)for(var i=0,s=t.length;i<s;i++)e.call(o,t[i],i,t)},m=function(t,e){var o={};return p(t,function(e,n){o[n]=t[n]}),p(e,function(t,n){o[n]=e[n]}),o},g=function(t){var e=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=t;o.firstChild;)e.appendChild(o.firstChild);return e},v={move:function(t,e,n,a){var r,l=.3,d=180;0!==a&&(t.classList.add(o+"-dragged"),t.style.transform="translateX("+a+"px)",a>0?(r=(d-a)/d)<l&&e.hide(m(n,{transitionOut:"fadeOutRight",transitionOutMobile:"fadeOutRight"}),t,"drag"):(r=(d+a)/d)<l&&e.hide(m(n,{transitionOut:"fadeOutLeft",transitionOutMobile:"fadeOutLeft"}),t,"drag"),t.style.opacity=r,r<l&&((i||s)&&(t.style.left=a+"px"),t.parentNode.style.opacity=l,this.stopMoving(t,null)))},startMoving:function(t,e,o,n){n=n||window.event;var i=a?n.touches[0].clientX:n.clientX,s=t.style.transform.replace("px)",""),r=i-(s=s.replace("translateX(",""));o.transitionIn&&t.classList.remove(o.transitionIn),o.transitionInMobile&&t.classList.remove(o.transitionInMobile),t.style.transition="",a?document.ontouchmove=function(n){n.preventDefault();var i=(n=n||window.event).touches[0].clientX-r;v.move(t,e,o,i)}:document.onmousemove=function(n){n.preventDefault();var i=(n=n||window.event).clientX-r;v.move(t,e,o,i)}},stopMoving:function(t,e){a?document.ontouchmove=function(){}:document.onmousemove=function(){},t.style.opacity="",t.style.transform="",t.classList.contains(o+"-dragged")&&(t.classList.remove(o+"-dragged"),t.style.transition="transform 0.4s ease, opacity 0.4s ease",setTimeout(function(){t.style.transition=""},400))}};return e.setSetting=function(t,o,n){e.children[t][o]=n},e.getSetting=function(t,o){return e.children[t][o]},e.destroy=function(){p(document.querySelectorAll("."+o+"-overlay"),function(t,e){t.remove()}),p(document.querySelectorAll("."+o+"-wrapper"),function(t,e){t.remove()}),p(document.querySelectorAll("."+o),function(t,e){t.remove()}),this.children={},document.removeEventListener(o+"-opened",{},!1),document.removeEventListener(o+"-opening",{},!1),document.removeEventListener(o+"-closing",{},!1),document.removeEventListener(o+"-closed",{},!1),document.removeEventListener("keyup",{},!1),d={}},e.settings=function(t){e.destroy(),d=t,c=m(c,t||{})},p({info:{color:"blue",icon:"ico-info"},success:{color:"green",icon:"ico-success"},warning:{color:"orange",icon:"ico-warning"},error:{color:"red",icon:"ico-error"},question:{color:"yellow",icon:"ico-question"}},function(t,o){e[o]=function(e){var o=m(d,e||{});o=m(t,o||{}),this.show(o)}}),e.progress=function(t,e,n){var i=this,s=e.getAttribute("data-iziToast-ref"),a=m(this.children[s],t||{}),r=e.querySelector("."+o+"-progressbar div");return{start:function(){void 0===a.time.REMAINING&&(e.classList.remove(o+"-reseted"),null!==r&&(r.style.transition="width "+a.timeout+"ms "+a.progressBarEasing,r.style.width="0%"),a.time.START=(new Date).getTime(),a.time.END=a.time.START+a.timeout,a.time.TIMER=setTimeout(function(){clearTimeout(a.time.TIMER),e.classList.contains(o+"-closing")||(i.hide(a,e,"timeout"),"function"==typeof n&&n.apply(i))},a.timeout),i.setSetting(s,"time",a.time))},pause:function(){if(void 0!==a.time.START&&!e.classList.contains(o+"-paused")&&!e.classList.contains(o+"-reseted")){if(e.classList.add(o+"-paused"),a.time.REMAINING=a.time.END-(new Date).getTime(),clearTimeout(a.time.TIMER),i.setSetting(s,"time",a.time),null!==r){var t=window.getComputedStyle(r).getPropertyValue("width");r.style.transition="none",r.style.width=t}"function"==typeof n&&setTimeout(function(){n.apply(i)},10)}},resume:function(){void 0!==a.time.REMAINING?(e.classList.remove(o+"-paused"),null!==r&&(r.style.transition="width "+a.time.REMAINING+"ms "+a.progressBarEasing,r.style.width="0%"),a.time.END=(new Date).getTime()+a.time.REMAINING,a.time.TIMER=setTimeout(function(){clearTimeout(a.time.TIMER),e.classList.contains(o+"-closing")||(i.hide(a,e,"timeout"),"function"==typeof n&&n.apply(i))},a.time.REMAINING),i.setSetting(s,"time",a.time)):this.start()},reset:function(){clearTimeout(a.time.TIMER),delete a.time.REMAINING,i.setSetting(s,"time",a.time),e.classList.add(o+"-reseted"),e.classList.remove(o+"-paused"),null!==r&&(r.style.transition="none",r.style.width="100%"),"function"==typeof n&&setTimeout(function(){n.apply(i)},10)}}},e.hide=function(t,e,i){"object"!=typeof e&&(e=document.querySelector(e));var s=this,a=m(this.children[e.getAttribute("data-iziToast-ref")],t||{});a.closedBy=i||null,delete a.time.REMAINING,e.classList.add(o+"-closing"),function(){var t=document.querySelector("."+o+"-overlay");if(null!==t){var e=t.getAttribute("data-iziToast-ref"),n=(e=e.split(",")).indexOf(String(a.ref));-1!==n&&e.splice(n,1),t.setAttribute("data-iziToast-ref",e.join()),0===e.length&&(t.classList.remove("fadeIn"),t.classList.add("fadeOut"),setTimeout(function(){t.remove()},700))}}(),a.transitionIn&&e.classList.remove(a.transitionIn),a.transitionInMobile&&e.classList.remove(a.transitionInMobile),n||window.innerWidth<=l?a.transitionOutMobile&&e.classList.add(a.transitionOutMobile):a.transitionOut&&e.classList.add(a.transitionOut);var r=e.parentNode.offsetHeight;e.parentNode.style.height=r+"px",e.style.pointerEvents="none",(!n||window.innerWidth>l)&&(e.parentNode.style.transitionDelay="0.2s");try{var d=new CustomEvent(o+"-closing",{detail:a,bubbles:!0,cancelable:!0});document.dispatchEvent(d)}catch(t){console.warn(t)}setTimeout(function(){e.parentNode.style.height="0px",e.parentNode.style.overflow="",setTimeout(function(){delete s.children[a.ref],e.parentNode.remove();try{var t=new CustomEvent(o+"-closed",{detail:a,bubbles:!0,cancelable:!0});document.dispatchEvent(t)}catch(t){console.warn(t)}void 0!==a.onClosed&&a.onClosed.apply(null,[a,e,i])},1e3)},200),void 0!==a.onClosing&&a.onClosing.apply(null,[a,e,i])},e.show=function(t){var i,s=this,u=m(d,t||{});if((u=m(c,u)).time={},null===u.id&&(u.id=(i=u.title+u.message+u.color,btoa(encodeURIComponent(i)).replace(/=/g,""))),1===u.displayMode||"once"==u.displayMode)try{if(document.querySelectorAll("."+o+"#"+u.id).length>0)return!1}catch(t){console.warn("["+o+"] Could not find an element with this selector: #"+u.id+". Try to set an valid id.")}if(2===u.displayMode||"replace"==u.displayMode)try{p(document.querySelectorAll("."+o+"#"+u.id),function(t,e){s.hide(u,t,"replaced")})}catch(t){console.warn("["+o+"] Could not find an element with this selector: #"+u.id+". Try to set an valid id.")}u.ref=(new Date).getTime()+Math.floor(1e7*Math.random()+1),e.children[u.ref]=u;var f,h={body:document.querySelector("body"),overlay:document.createElement("div"),toast:document.createElement("div"),toastBody:document.createElement("div"),toastTexts:document.createElement("div"),toastCapsule:document.createElement("div"),cover:document.createElement("div"),buttons:document.createElement("div"),inputs:document.createElement("div"),icon:u.iconUrl?document.createElement("img"):document.createElement("i"),wrapper:null};h.toast.setAttribute("data-iziToast-ref",u.ref),h.toast.appendChild(h.toastBody),h.toastCapsule.appendChild(h.toast),function(){if(h.toast.classList.add(o),h.toast.classList.add(o+"-opening"),h.toastCapsule.classList.add(o+"-capsule"),h.toastBody.classList.add(o+"-body"),h.toastTexts.classList.add(o+"-texts"),n||window.innerWidth<=l?u.transitionInMobile&&h.toast.classList.add(u.transitionInMobile):u.transitionIn&&h.toast.classList.add(u.transitionIn),u.class){var t=u.class.split(" ");p(t,function(t,e){h.toast.classList.add(t)})}var e;u.id&&(h.toast.id=u.id),u.rtl&&(h.toast.classList.add(o+"-rtl"),h.toast.setAttribute("dir","rtl")),u.layout>1&&h.toast.classList.add(o+"-layout"+u.layout),u.balloon&&h.toast.classList.add(o+"-balloon"),u.maxWidth&&(isNaN(u.maxWidth)?h.toast.style.maxWidth=u.maxWidth:h.toast.style.maxWidth=u.maxWidth+"px"),""===u.theme&&"light"===u.theme||h.toast.classList.add(o+"-theme-"+u.theme),u.color&&("#"==(e=u.color).substring(0,1)||"rgb"==e.substring(0,3)||"hsl"==e.substring(0,3)?h.toast.style.background=u.color:h.toast.classList.add(o+"-color-"+u.color)),u.backgroundColor&&(h.toast.style.background=u.backgroundColor,u.balloon&&(h.toast.style.borderColor=u.backgroundColor))}(),u.image&&(h.cover.classList.add(o+"-cover"),h.cover.style.width=u.imageWidth+"px",function(t){try{return btoa(atob(t))==t}catch(t){return!1}}(u.image.replace(/ /g,""))?h.cover.style.backgroundImage="url(data:image/png;base64,"+u.image.replace(/ /g,"")+")":h.cover.style.backgroundImage="url("+u.image+")",u.rtl?h.toastBody.style.marginRight=u.imageWidth+10+"px":h.toastBody.style.marginLeft=u.imageWidth+10+"px",h.toast.appendChild(h.cover)),u.close?(h.buttonClose=document.createElement("button"),h.buttonClose.type="button",h.buttonClose.classList.add(o+"-close"),h.buttonClose.addEventListener("click",function(t){t.target,s.hide(u,h.toast,"button")}),h.toast.appendChild(h.buttonClose)):u.rtl?h.toast.style.paddingLeft="18px":h.toast.style.paddingRight="18px",u.progressBar&&(h.progressBar=document.createElement("div"),h.progressBarDiv=document.createElement("div"),h.progressBar.classList.add(o+"-progressbar"),h.progressBarDiv.style.background=u.progressBarColor,h.progressBar.appendChild(h.progressBarDiv),h.toast.appendChild(h.progressBar)),u.timeout&&(u.pauseOnHover&&!u.resetOnHover&&(h.toast.addEventListener("mouseenter",function(t){s.progress(u,h.toast).pause()}),h.toast.addEventListener("mouseleave",function(t){s.progress(u,h.toast).resume()})),u.resetOnHover&&(h.toast.addEventListener("mouseenter",function(t){s.progress(u,h.toast).reset()}),h.toast.addEventListener("mouseleave",function(t){s.progress(u,h.toast).start()}))),u.iconUrl?(h.icon.setAttribute("class",o+"-icon"),h.icon.setAttribute("src",u.iconUrl)):u.icon&&(h.icon.setAttribute("class",o+"-icon "+u.icon),u.iconText&&h.icon.appendChild(document.createTextNode(u.iconText)),u.iconColor&&(h.icon.style.color=u.iconColor)),(u.icon||u.iconUrl)&&(u.rtl?h.toastBody.style.paddingRight="33px":h.toastBody.style.paddingLeft="33px",h.toastBody.appendChild(h.icon)),u.title.length>0&&(h.strong=document.createElement("strong"),h.strong.classList.add(o+"-title"),h.strong.appendChild(g(u.title)),h.toastTexts.appendChild(h.strong),u.titleColor&&(h.strong.style.color=u.titleColor),u.titleSize&&(isNaN(u.titleSize)?h.strong.style.fontSize=u.titleSize:h.strong.style.fontSize=u.titleSize+"px"),u.titleLineHeight&&(isNaN(u.titleSize)?h.strong.style.lineHeight=u.titleLineHeight:h.strong.style.lineHeight=u.titleLineHeight+"px")),u.message.length>0&&(h.p=document.createElement("p"),h.p.classList.add(o+"-message"),h.p.appendChild(g(u.message)),h.toastTexts.appendChild(h.p),u.messageColor&&(h.p.style.color=u.messageColor),u.messageSize&&(isNaN(u.titleSize)?h.p.style.fontSize=u.messageSize:h.p.style.fontSize=u.messageSize+"px"),u.messageLineHeight&&(isNaN(u.titleSize)?h.p.style.lineHeight=u.messageLineHeight:h.p.style.lineHeight=u.messageLineHeight+"px")),u.title.length>0&&u.message.length>0&&(u.rtl?h.strong.style.marginLeft="10px":2===u.layout||u.rtl||(h.strong.style.marginRight="10px")),h.toastBody.appendChild(h.toastTexts),u.inputs.length>0&&(h.inputs.classList.add(o+"-inputs"),p(u.inputs,function(t,e){h.inputs.appendChild(g(t[0])),(f=h.inputs.childNodes)[e].classList.add(o+"-inputs-child"),t[3]&&setTimeout(function(){f[e].focus()},300),f[e].addEventListener(t[1],function(e){return(0,t[2])(s,h.toast,this,e)})}),h.toastBody.appendChild(h.inputs)),u.buttons.length>0&&(h.buttons.classList.add(o+"-buttons"),p(u.buttons,function(t,e){h.buttons.appendChild(g(t[0]));var n=h.buttons.childNodes;n[e].classList.add(o+"-buttons-child"),t[2]&&setTimeout(function(){n[e].focus()},300),n[e].addEventListener("click",function(e){return e.preventDefault(),(0,t[1])(s,h.toast,this,e,f)})})),h.toastBody.appendChild(h.buttons),u.message.length>0&&(u.inputs.length>0||u.buttons.length>0)&&(h.p.style.marginBottom="0"),(u.inputs.length>0||u.buttons.length>0)&&(u.rtl?h.toastTexts.style.marginLeft="10px":h.toastTexts.style.marginRight="10px",u.inputs.length>0&&u.buttons.length>0&&(u.rtl?h.inputs.style.marginLeft="8px":h.inputs.style.marginRight="8px")),h.toastCapsule.style.visibility="hidden",setTimeout(function(){var t=h.toast.offsetHeight,e=h.toast.currentStyle||window.getComputedStyle(h.toast),o=e.marginTop;o=o.split("px"),o=parseInt(o[0]);var n=e.marginBottom;n=n.split("px"),n=parseInt(n[0]),h.toastCapsule.style.visibility="",h.toastCapsule.style.height=t+n+o+"px",setTimeout(function(){h.toastCapsule.style.height="auto",u.target&&(h.toastCapsule.style.overflow="visible")},500),u.timeout&&s.progress(u,h.toast).start()},100),function(){var t=u.position;if(u.target)h.wrapper=document.querySelector(u.target),h.wrapper.classList.add(o+"-target"),u.targetFirst?h.wrapper.insertBefore(h.toastCapsule,h.wrapper.firstChild):h.wrapper.appendChild(h.toastCapsule);else{if(-1==r.indexOf(u.position))return void console.warn("["+o+"] Incorrect position.\nIt can be › "+r);t=n||window.innerWidth<=l?"bottomLeft"==u.position||"bottomRight"==u.position||"bottomCenter"==u.position?o+"-wrapper-bottomCenter":"topLeft"==u.position||"topRight"==u.position||"topCenter"==u.position?o+"-wrapper-topCenter":o+"-wrapper-center":o+"-wrapper-"+t,h.wrapper=document.querySelector("."+o+"-wrapper."+t),h.wrapper||(h.wrapper=document.createElement("div"),h.wrapper.classList.add(o+"-wrapper"),h.wrapper.classList.add(t),document.body.appendChild(h.wrapper)),"topLeft"==u.position||"topCenter"==u.position||"topRight"==u.position?h.wrapper.insertBefore(h.toastCapsule,h.wrapper.firstChild):h.wrapper.appendChild(h.toastCapsule)}isNaN(u.zindex)?console.warn("["+o+"] Invalid zIndex."):h.wrapper.style.zIndex=u.zindex}(),u.overlay&&(null!==document.querySelector("."+o+"-overlay.fadeIn")?(h.overlay=document.querySelector("."+o+"-overlay"),h.overlay.setAttribute("data-iziToast-ref",h.overlay.getAttribute("data-iziToast-ref")+","+u.ref),isNaN(u.zindex)||null===u.zindex||(h.overlay.style.zIndex=u.zindex-1)):(h.overlay.classList.add(o+"-overlay"),h.overlay.classList.add("fadeIn"),h.overlay.style.background=u.overlayColor,h.overlay.setAttribute("data-iziToast-ref",u.ref),isNaN(u.zindex)||null===u.zindex||(h.overlay.style.zIndex=u.zindex-1),document.querySelector("body").appendChild(h.overlay)),u.overlayClose?(h.overlay.removeEventListener("click",{}),h.overlay.addEventListener("click",function(t){s.hide(u,h.toast,"overlay")})):h.overlay.removeEventListener("click",{})),function(){if(u.animateInside){h.toast.classList.add(o+"-animateInside");var t=[200,100,300];"bounceInLeft"!=u.transitionIn&&"bounceInRight"!=u.transitionIn||(t=[400,200,400]),u.title.length>0&&setTimeout(function(){h.strong.classList.add("slideIn")},t[0]),u.message.length>0&&setTimeout(function(){h.p.classList.add("slideIn")},t[1]),(u.icon||u.iconUrl)&&setTimeout(function(){h.icon.classList.add("revealIn")},t[2]);var e=150;u.buttons.length>0&&h.buttons&&setTimeout(function(){p(h.buttons.childNodes,function(t,o){setTimeout(function(){t.classList.add("revealIn")},e),e+=150})},u.inputs.length>0?150:0),u.inputs.length>0&&h.inputs&&(e=150,p(h.inputs.childNodes,function(t,o){setTimeout(function(){t.classList.add("revealIn")},e),e+=150}))}}(),u.onOpening.apply(null,[u,h.toast]);try{var y=new CustomEvent(o+"-opening",{detail:u,bubbles:!0,cancelable:!0});document.dispatchEvent(y)}catch(t){console.warn(t)}setTimeout(function(){h.toast.classList.remove(o+"-opening"),h.toast.classList.add(o+"-opened");try{var t=new CustomEvent(o+"-opened",{detail:u,bubbles:!0,cancelable:!0});document.dispatchEvent(t)}catch(t){console.warn(t)}u.onOpened.apply(null,[u,h.toast])},1e3),u.drag&&(a?(h.toast.addEventListener("touchstart",function(t){v.startMoving(this,s,u,t)},!1),h.toast.addEventListener("touchend",function(t){v.stopMoving(this,t)},!1)):(h.toast.addEventListener("mousedown",function(t){t.preventDefault(),v.startMoving(this,s,u,t)},!1),h.toast.addEventListener("mouseup",function(t){t.preventDefault(),v.stopMoving(this,t)},!1))),u.closeOnEscape&&document.addEventListener("keyup",function(t){27==(t=t||window.event).keyCode&&s.hide(u,h.toast,"esc")}),u.closeOnClick&&h.toast.addEventListener("click",function(t){s.hide(u,h.toast,"toast")}),s.toast=h.toast},e});
/*!
* HTML5Sortable (https://github.com/lukasoppermann/html5sortable)
* Copyright 2017 Lukas Oppermann
* Licensed under MIT
*/
!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);
/*!
* Authentic Theme (https://github.com/authentic-theme/authentic-theme)
* Copyright Ilia Rostovtsev <ilia@virtualmin.com>
* 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 n=Object(this),a=n.length>>>0;if(0===a)return!1;var i=0|t,s=Math.max(i>=0?i:a-Math.abs(i),0);function o(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;s<a;){if(o(n[s],e))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),n=t.length,a=new Array(n);n--;)a[n]=[t[n],e[t[n]]];return a}),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 n=Object(this),a=n.length>>>0,i=0;i<a;i++)if(i in n&&e.call(t,n[i],i,n))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,page_interaction:-1,page:{shown:0,locked:0,funcs:{render:1}},pages:{dashboard:"sysinfo.cgi"},available_modules:0,navigation:{select:{back:!1,obj:!1,last:!1},servers_index_control:!1,width_initial:!1,pinned:settings_navigation_always_collapse?1:0,opened:null,animation_speed:175,reload_timeout:500},previous_request:String(),source_request:String(),previous_request_progressive:String(),requested_page:String(),pre_requested_page:String(),allow_ui_features:1,slider:{pinned:settings_side_slider_fixed?1:0},jspanels_reversed:0,event:{stopped_typing_delay:200,double_click_delay:400},local_storage:1,shell:{history:0,processing:0},stats:{history:null},events:{keypressed:{meta:!1,ctrl:!1,shift:!1,alt:!1,key:!1},blocked:!1,scrolled:0,delayed:0},plugins:{tooltip:{delay:{show:300,hide:30}}},pjax:{cancel:0,post_reboot:!1,post_page_fetch:!1,page_cache:!0,popstate:!1,initial_load:0,replace_contents:1,progressing:0,status:{replace_contents:function(){return vars.pjax.replace_contents}},cache:{set:function(e){vars.pjax.page_cache="disable"!==e},disabled:function(e,t){return!vars.pjax.page_cache&&!t||(e?e.includes("/mailbox")&&!e.includes("/mailboxes")||e.includes("/csf")||e.includes("/init/reboot.cgi")||e.includes("/init/shutdown.cgi")||e.includes("/"+v___module_file_manager)||e.includes("/tconfig.cgi"):core.curModule("mailbox",1)||core.curModule("csf")||core.curModuleFile("init","reboot.cgi")||core.curModuleFile("init","shutdown.cgi")||core.curModule(v___module_file_manager)||"tconfig.cgi"===v___location_file)}},event:{end:1},events:{run:{end:1}}},ajax:{post_success:!1,progressing:0,processing:{navMenu:null}},sockets:{xterm:{instances:{},clean:{}}},h:{class:{button:{tableHeader:"btn btn-link text-lighter text-decoration-none"}},selector:{body:{data:{loadInitial:"data-load-initial"}},content:{get:function(){return $(".__page")}},input:{customTogglers:".awobject > input"}},event:{page:{end:"ready pjax:end"}}},level:-1,cache:{}},browser={detect:{internet_explorer:function(){var e=0,t=/MSIE (\d+\.\d+);/.test(navigator.userAgent),n=!!navigator.userAgent.match(/Trident\/7.0/),a=navigator.userAgent.indexOf("rv:11.0");return t&&(e=new Number(RegExp.$1)),-1!=navigator.appVersion.indexOf("MSIE 10")&&(e=10),n&&-1!=a&&(e=11),e},safari:function(e){var t=window.navigator.userAgent,n=!(!t.match(/iPad/i)&&!t.match(/iPhone/i)||!t.match(/WebKit/i)||t.match(/CriOS/i)||t.match(/OPiOS/i)),a=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&!navigator.userAgent.match("CriOS");return e?n:a},firefox:function(){return/firefox/i.test(navigator.userAgent)},chrome:function(){return/chrome/i.test(navigator.userAgent)}},storage:{size:function(e){var t=String(),n=e?"MB":"KB";for(var a in window.localStorage)window.localStorage.hasOwnProperty(a)&&(t+=window.localStorage[a]);return t?((3+16*t.length/8192)/(e?1024:1)).toFixed(2)+" "+n:"Empty (0 "+n+")"}},set:function(){browser.detect.safari()?$(document.body).attr("data-browser","safari"):browser.detect.firefox()&&$(document.body).attr("data-browser","firefox")}},platform={detect:function(){var e=window.navigator.userAgent,t=window.navigator.platform,n=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(t)?n="mac":-1!==["iPhone","iPad","iPod"].indexOf(t)?n="ios":-1!==["Win32","Win64","Windows","WinCE"].indexOf(t)?n="windows":/Android/.test(e)?n="android":!n&&/Linux/.test(t)&&(n="linux"),n},set:function(){var e=this.detect();e&&$(document.body).attr("data-platform",e)}},Convert={arrFlip:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n},arrPrepend:function(e,t){var n=t.slice();return n.unshift(e),n},uriDecodeComponent:function(e,t){var n,a,i,s=String(),o=0;if(void 0===t&&(t=0),n=e?e.split(/(%(?:d0|d1)%.{2})/):[],$.isEmptyObject(n))return e;for(a=n.length;o<a;o++){try{i=decodeURIComponent(n[o])}catch(e){i=t?n[o].replace(/%(?!\d+)/g,"%25"):n[o]}s+=i}return s},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 n=""";return"'"===t&&(n="'"),e&&(e=e.replace(new RegExp(t,"g"),n)),e},htmlEscape:function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","=":"="};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 n=0,a=t.length;n<a;++n)e=String(e).replace(new RegExp("&"+t[n][0]+";","g"),t[n][1]);return e||""},htmlUnEscapeSafe:function(e){return["&nbsp;","<br>","<tt>","</tt>","<i>","</i>","<em>","</em>","<strong>","</strong>","<code>","</code>","<kbd>","</kbd>"].forEach(function(t){var n=t.replaceAll("<","<");n=(n=n.replaceAll(">",">")).replaceAll("&","&"),e=e.replaceAll(t,n)}),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,n){if(e.length<=t)return e;var a=t-(n=n||"...").length,i=Math.ceil(a/2),s=Math.floor(a/2);return e.substr(0,i)+n+e.substr(e.length-s)},htmlRemoveByClassName:function(e,t){const n=document.createElement("div");n.innerHTML=e;return n.querySelectorAll("."+t).forEach(function(e){e.remove()}),n.innerHTML},htmlRemoveHiddenElements(e){const t=document.createElement("table"),n=document.createElement("tr"),a=document.createElement("td");a.innerHTML=e,n.appendChild(a),t.appendChild(n),t.style.position="absolute",t.style.top="-9999",t.style.left="-9999",t.style.zIndex="-9999",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t);a.querySelectorAll("*").forEach(function(e){(0===e.offsetWidth&&0===e.offsetHeight||"hidden"===getComputedStyle(e).visibility)&&e.remove()});const i=a.innerHTML;return document.body.removeChild(t),i},htmlStrip:function(e){return(new DOMParser).parseFromString(e,"text/html").body.textContent||""},removeQuestionMark:function(e){try{return e.replace(/[¿؟՞‽⸮;;?]+$/u,"")}catch(t){return e.replace(/\?$/,"")}},pathnamePopLast:function(e){var t=~e.indexOf("%2F")?"%2F":"/",n=e.split(t);return n.pop(),n.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],n=e[1];return t+"="+encodeURIComponent(n)}).join("&")},json_to_string:function(e,t){var n="";for(var a in e)e.hasOwnProperty(a)&&(n+=a+": "+e[a]+(t?"<br>":""));return n},serialized_to_json:function(e){(e.startsWith('"')||e.endsWith('"'))&&(e=e.replace(/^"|"$/g,String()));for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),a=0;a<n.length;a++){var i=n[a].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[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 n=1e3,a=!t||t&&!t.hasOwnProperty("decimal")||0===t.decimal?1024:n,i=!t||t&&!t.hasOwnProperty("bits")||0===t.bits?1:8,s=!t||t&&!t.hasOwnProperty("round")||0===t.round?0:1,o=!t||t&&!t.hasOwnProperty("fixed")?2:t.fixed;if(e*=i,Math.abs(e)<n)return e+" "+theme_language("nice_size_b");var r=1^i?"B":1024===a?"I":String(),l=[theme_language("nice_size_k"+r+"B"),theme_language("nice_size_M"+r+"B"),theme_language("nice_size_G"+r+"B"),theme_language("nice_size_T"+r+"B"),theme_language("nice_size_P"+r+"B")],c=-1;do{e/=a,++c}while(Math.abs(e)>=n&&c<l.length-1);var d=e.toFixed(o);return s&&(d>=5&&d<=100?d=5*Math.round(d/5):d>100&&d<=1e3?d=50*Math.round(d/50):d>1e3&&d<=1e4?d=100*Math.round(d/100):d>1e4&&d<=1e5?d=250*Math.round(d/250):d>1e5&&(d=500*Math.round(d/500))),d+" "+l[c]},hash8:function(e){if(!e||0===e.length)return null;"string"!=typeof e&&(e=String(e));let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}},core={error:{get:function(){return $(".container-fluid .panel-body [data-fatal-error-text]").html()},clean:function(){$(".container-fluid [data-fatal-error-text] ~ .btn-primary.btn-lg.page_footer_submit").remove(),$(".container-fluid [data-header-left] .btn-group").empty()}},get_global_vars:function(e,t){for(var n=t?{}:[],a=window,i=0;i<e.length;i++)for(var s in a)0==s.indexOf(e[i])&&(n[s]=a[s]);return n},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||session.server.data("available-modules"),null!=session.server.data(e)?Test.true(session.server.data(e)):$.inArray(e,t)>-1},curModuleFileQuery:function(e,t,n){return $('body[class*="'+e+'"]').length&&v___location_file==t&&v___location_query&&-1!==v___location_query.indexOf(n)},curModuleFile:function(e,t,n){var a=v___location_file==t;t||(void 0===t&&(t=""),a=v___location_file===t||"index.cgi"===v___location_file);var i=$('body[class*="'+e+'"]').length;return n&&(i=$("body").hasClass(e)),i&&a},curModule:function(e,t){var n=$('body[class*="'+e+'"]').length;return t&&(n=$("body").hasClass(e)),n},moduleFile:function(e,t,n){if(e.includes("/")&&e.includes(".cgi")){var a,i,s,o=e.split("/");if(o.filter(function(e,t){e.includes(".cgi")&&(a=t)}),i=o[a-1],s=o[a],i&&i.includes(t)&&s&&s.includes(n))return 1}return 0},updateModuleData:function(e,t,n,a){$.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){if(session.status(e)){var i=$(e).find("form.ui_form");$.each(n,function(e,t){var n=i.find('[name="'+e+'"]'),a=n.filter(":checked").val(),s="+!"===t?+!parseInt(a):t;n.val(s)}),setTimeout(function(){var e=$(i).serializeArray(),n=[];e.map(function(t,a){n.includes(t.name)&&e.splice(a,1),n.push(t.name)}),e=Convert.json_to_query(Convert.serialized_to_json($.param(e))),$.ajax({type:"POST",url:v___location_prefix+t+(a?(t.includes(".cgi?")?"&":"?")+e:String()),data:!a&&e,dataType:"text",success:function(e){session.status(e)},error:function(){}})},100)}},error:function(){}})},getModuleData:function(e){return $.ajax({type:"POST",url:v___location_prefix+e,data:!1,dataType:"text",success:function(e){session.status(e)},error:function(){}})},setModuleData:function(e,t){this.getModuleData(e).then(function(e){return $(e).find("form.ui_form").serializeArray()}).done(function(e){var n={};$.each($(e),function(){n[this.name]=this.value}).promise().done(function(){$.each(t,function(e,t){var a=$('[name="'+t+'"]');a.val(n[t]),a.is("select")&&a.find("[data-clear]").remove()})})})}},HTML={bottom_progress:function(e,t,n,a){return'<div data-hide-cancel-button="'+(a?1:0)+'" data-progress-id="'+e+'" class="bottom_progress'+(n?" bottom_progress_horizontal":"")+'">'+(n?'<div class="bottom_progress_filename"></div><div class="bottom_progress_lane"></div>':"")+'<div class="bottom_progress_level '+t+'"></div><span class="bottom_progress_overlay">'+(n?"":"1%")+(n?'<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:{textMaxLevels:function(e,t){var n="bg-",a=n+"semi-transparent",i=n+"warning",s=n+"danger",o=t.indexOf("°C")>-1,r=parseInt(settings_sysinfo_cpu_fans_base_rpm),l=r,c=2*r;return t=parseInt(t),"temperature"===e||"cpu"===e?o?t<=30||t>30&&t<=60?a:t>60&&t<=80?i:t>80?s:"":t<=86||t>86&&t<=140?a:t>140&&t<=176?i:t>176?s:"":"rpm"===e||"fans"===e?t<=l?a:t>=l+1&&t<=c?i:s:void 0}},template:{accordion:function(e,t,n,a){for(var i='<div class="panel-group panel-filter" id="'+e+'" role="tablist" aria-multiselectable="true">',s=0;s<t.length;s++){var o=!$.isArray(a)||$.isEmptyObject(a)?0===s?1:0:a[s]?1:0,r=$.isEmptyObject(a)||!$.isEmptyObject(a)&&a.filter(function(e){return 1===e}).length<=1,l=$.isArray(a)&&2===a[s]?1:0;connected_grouped=e.endsWith("_-grouped")&&r?1:0,i+='<div class="panel panel-default"><div class="panel-heading" aria-static="'+(l?"true":"false")+'" data-toggle="collapse" data-target="#'+e+"_c_"+s+'" role="tab" id="'+e+"_h_"+s+'"><h4 class="panel-title"><a role="button" data-toggle="collapse" '+(connected_grouped?' data-parent="#'+e+'"':" ")+' href="#'+e+"_c_"+s+'" aria-static="'+(l?"true":"false")+'" aria-expanded="'+(o||l?"true":"false")+'" aria-controls="'+e+"_c_"+s+'">'+t[s]+'</a></h4></div><div id="'+e+"_c_"+s+'" class="panel-collapse collapse'+(o||l?" in":"")+'" aria-static="'+(l?"true":"false")+'" role="tabpanel" aria-labelledby="'+e+"_h_"+s+'"><div class="panel-body inner">'+n[s]+"</div></div></div>"}return i+="</div>"},page_content_preloader:function(e,t,n){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'+(n?" panel-default-loading-hidden":"")+'"><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> <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){const t=Test.strContains(session.server.data("webprefix"),"servers/link.cgi")?1:0,n=document.hasFocus();return'<div class="'+e+'"><div class="'+e+'-container-center animated slideInDown"><div class="'+e+'-header"><div class="fa fa-times-thin fa-0_90x"></div><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="'+session.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"+(n?" autofocus":"")+' type="password" placeholder="******************" name="pass" autocomplete="off" autocorrect="off" class="form-control form-control-rea">'+(n?"":'<script>setTimeout(function() { document.querySelector(\'input.form-control-rea[name="pass"][type="password"]\').blur(); }, 1333);<\/script>')+'</div><div class="form-group hidden" 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__,opts){var execute_load=function($script,$css,callBack,callBackCalledNoEval,opts){var head=$("head"),initial_name=$script,opts_local={};opts||(opts={}),opts_local.sourceType="."+v___source_type,opts_local.cssPath=v___server_css_path,opts_local.jsPath=v___server_js_path,opts_local={...opts_local,...opts},callBack="object"==typeof callBack&&callBack;var css=($css?1===$css?$script:$css:0)+opts_local.sourceType+".css",js=$script+opts_local.sourceType+".js";(css||js)&&(css.toString().includes(":min")&&(css=css.replace(":min"+opts_local.sourceType,".min")),js.toString().includes(":min")&&(js=js.replace(":min"+opts_local.sourceType,".min"))),Test.strContains(initial_name,v___server_extensions_path)||Test.strContains(initial_name,v___server_js_path)||(css=opts_local.cssPath+"/"+css,js=opts_local.jsPath+"/"+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+"?"+theme.version(!0)+'" type="text/css" rel="stylesheet">';$css&&(css.includes(v___server_extensions_path)?head.append(thecsslink):head.find('link[rel="stylesheet"]:first').before(thecsslink)),$.getScript(js+"?"+theme.version(!0)).done(function(){processCallbacks(callBack,callBackCalledNoEval)}).fail(function(e){"canceled"!==e.statusText&&"abort"!==e.statusText&&connection_error(e,1)})}};$.isArray($scripts__)?$scripts__.forEach(function(e,t,n){Object.is(n.length-1,t)?execute_load(e,$css__,callBack__,callBackCalledNoEval__,opts):execute_load(e,$css__,0,0,opts)}):execute_load($scripts__,$css__,callBack__,callBackCalledNoEval__,opts)},css:{_linkBuild:function(e){return e&&!e.startsWith("/")&&`${v___server_css_path}/${e}.${v___source_type}.css?${parseInt(theme.version().replace(".",""))}`},_styleExists:function(e){return document.head.querySelector('link[href^="'+e+'"]')},add:function(e,t,n){const a=[];("string"==typeof e?[e]:e).forEach(async i=>{if(i=this._linkBuild(i),!this._styleExists(i)){const s=()=>new Promise(e=>{const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.onload=()=>{e(!0)},t.href=i,this._styleExists(i)||$(document.head).append(t)});if(await s()&&a.push(i),e.length===a.length&&t)return t.apply(this,n),a}})},remove:function(e){e=this._linkBuild(e,!0);const t=this._styleExists(e);t&&t.remove()}}},page={handle:{content:{offset:function(e){var t=core.curModuleFile("mailbox","",1)||core.curModuleFile("mailbox","index.cgi",1);if(is_offset=core.curModuleFileQuery("logviewer","view_log.cgi","view=")||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")||t||core.curModule(v___module_file_manager)||v___page_hasEditor||!settings_enable_container_offset?0:1,!(t&&settings_mail_ui&&e)||$(".container-fluid > .panel-mail").length){if(!e)return is_offset;var n=$(".container-fluid");page.handle.content.offset()?n.addClass("col-lg-10 col-lg-offset-1").removeClass("margined-top-15"):n.removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15")}},preloader:{processing:function(){return $(".container-fluid-loading").length},hide:function(){page.handle.content.preloader.processing()&&page.handle.content.preloader.show()},show:function(e,t,n){var a=this,i=$("#content"),s=$(".container-fluid"),o=$(".container-fluid-loading"),r=t||$("span[data-main_title]").text(),l="container-fluid-loading-persistent",c=-2===e?l:0,d=HTML.template.page_content_preloader(r,c,n);if(-2!==e&&o.length&&o.hasClass(l))o.removeClass(l);else{if(-1===e)return i.hasClass("progressing");o.length?(o.remove(),s.removeClass("invisible"),i.removeClass("progressing progressing-preloading"),setTimeout(function(){progress.status()&&progress.end()},10)):core.error.get()||(i.addClass("progressing progressing-preloading").prepend(d),s.addClass("invisible")),e&&-2!==e&&setTimeout(function(){a.preloader()},e)}}}}},render:{content:{filter:{init:function(e,t){var n=this,a="container-fluid",i=a+" .nav.nav-tabs",s="dataTables_filter",o=$(".__page ."+s),r=$(".__page .panel-filter"),l=".panel-filter .panel.panel-default",c="dataTable-mirror",d="filter_mirror_clear",u="export_mirror",_="filter-value",g="btn-filter-top-right",p="btn-pagination-search",f="btn-accordion-filter",h="btn-toggle-accordions",m=$("body"),v="."+g+" span, ."+f+" span",b="."+g+" i, ."+f+" i",y="ui_form_elements_wrapper_search",x=function(){return $("form:visible ."+y).length?$("form:visible ."+y):$("."+y)},k=function(){return x().length},w=function(){if(k()){var e=x().find('[type="text"]');e.val(""),$("#"+e.attr("form")).submit()}},C=function(){if(k()){var e=$("."+g),t=x().find('[type="text"]').val();e.addClass(p),$("."+g+" ."+c).val(t),$.trim(t).length>0?($(v).removeClass("text-lighter"),$(b).addClass("text-danger"),e.addClass("opened"),e.find("label").show()):($(v).addClass("text-lighter"),$(b).removeClass("text-danger"),e.removeClass("opened"),e.find("label").removeAttr("style")),k?e.show():e.hide()}};if(o.length||r.length||k){const y=o.length?'<span tabindex=0 class="fa fa-download-cloud vertical-align-middle '+u+' text-lighter"></span> <span class="btn-separator"></span> ':"";setTimeout(function(){var o=t||$("#headln2r .btn-group");if($("."+g).length||$("."+f).length||(o.find("a").addClass("pull-left").attr("style",""),o.prepend('<a tabindex="0" 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> '+y+'<span tabindex=0 class="fa fa-times-circle-o vertical-align-middle '+d+' text-lighter"></span><input type="text" class="'+c+'" placeholder="'+theme_language(k()?"search_content":"filter_content")+'"></label><i class="fa '+(k()?"fa-search":"fa-filter"+(e?"2":""))+'"></i></a>'+(e?'<a class="btn btn-link text-lighter '+h+" text-decoration-none pull-left"+(1===r.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(k()?"global_search":"datatable_filter_and_export")).attr("aria-label",theme_language(k()?"global_search":"datatable_filter")),$("."+h).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:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}}),n.clear(),$("."+i).length){let t='a[data-toggle="tab"]',a="hide.bs.tab",s="shown.bs.tab";e&&(m.undelegate(t,a),m.on(a,t,function(e){n.clear()})),m.undelegate(t,s),m.on(s,t,function(e){var t=$(e.target).parent(".active");t.data(_)?$("."+c).val(t.data(_)).trigger("input"):$("."+c).val("").trigger("input"),n.visibility(g,f,h,i),C()})}var T="shown.bs.collapse.config hidden.bs.collapse.config";m.undelegate(l,T),m.on(T,l,function(e){$("."+a+" .collapsing").length||setTimeout(function(){var e=$("."+a).find("."+h).find("i");r.find(".panel-collapse").length===r.find(".panel-collapse.in").length?e.addClass("fa-toggle-switch text-light"):e.removeClass("fa-toggle-switch text-light")},0)});var j,S=$("."+h);e?$(r).find('a[data-toggle="collapse"]').on("click",function(e){$.trim($("."+c).val()).length&&page.render.content.filter.clear(),e.originalEvent&&$("."+h).find("i").removeClass("fa-toggle-switch text-light")}):$("."+s).hide();function E(t){var n=t.val(),a=$(".__page .panel-filter:visible");if(e)if(n){$.support.transition&&($.support.transition=!1),S.find(".fa-toggle-switch-off:not(.fa-toggle-switch)").trigger("click"),a.find(".panel tr:not([data-empty-row]):not(.hidden-skip)").addClass("hidden-forged"),a.find('.panel tbody tr:contains("'+n+'")').removeClass("hidden-forged"),$.each($(l=" .hidden-dependent-skip"),function(e){$(this).hasClass("hidden-forged")?$(this).nextAll(".hidden-skip").addClass("hidden-forged"):$(this).nextAll(".hidden-skip").removeClass("hidden-forged")});var o=$(".__page .panel-filter:visible");$.each(o.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(n):$(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>"+n+"</var>")+"</td></tr>"):t.remove()})}else S.find(".fa-toggle-switch").trigger("click"),a.find(".panel tr").removeClass("hidden-forged"),a.find(".panel tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"});else{var r="."+s+" input";$("."+i).length?($(".nav-tabs li.active").data(_,n),$(".active "+r).val(n).trigger("input")):$(r).val(n).trigger("input")}$.trim(n).length>0?($(v).removeClass("text-lighter"),$(b).addClass("text-danger")):($(v).addClass("text-lighter"),$(b).removeClass("text-danger"))}$("."+a+" ."+d).on("click keydown",function(e){var t=e.keyCode?e.keyCode:e.which;"keydown"===e.type&&13!==t&&32!==t||$(e.target).is("."+d)&&(n.clear(),w())}),$("."+a+" ."+u).on("click keydown",function(e){var t=e.keyCode?e.keyCode:e.which;"keydown"===e.type&&13!==t&&32!==t||$(e.target).is("."+u)&&(e.preventDefault(),e.stopImmediatePropagation(),$("."+a+" .dataTables_wrapper:visible .dt-buttons > .buttons-csv").trigger("click"),n.close($(this)))}),$("."+g+", ."+f).click(function(e){$(this).addClass("opened"),!$(e.target).is("input")&&$(this).find("label").slideToggle(0,function(){$(this).find("input").focus()})}),S.click(function(e){e.stopImmediatePropagation();var t="fa-toggle-switch",a=$(this).find(".fa"),i=$(this).find("."+t).length?1:0,s=$(".__page .panel-filter:visible");0===i?(s.find(".panel-collapse.in").length,s.find(".panel-collapse").length,s.find(".panel-collapse:not(.in):not(.collapsing)").filter(function(){$(this).removeData("bs.collapse").collapse({parent:!0,toggle:!1}).collapse("show").removeData("bs.collapse")})):s.find(".panel-collapse.in:not(.collapsing)").filter(function(){"true"!==$(this).attr("aria-static")&&$(this).collapse("hide")}),a.toggleClass(t+" text-light"),void 0!==e.originalEvent&&$("."+f+" input").val().length&&n.clear()});$("."+c).keydown(function(e){var t=void 0!==e.originalEvent?200:0;76==e.keyCode&&e.ctrlKey||27==e.keyCode?(e.preventDefault(),e.stopPropagation(),t?setTimeout(function(){n.clear(),w()},t):(n.clear(),w())):t&&clearTimeout(j)}).on("input keyup",function(e){if($(".btn-filter-gl").tooltip("hide"),k()){if(13===(e.keyCode?e.keyCode:e.which)){var t=x().find('[type="text"]');t.val($(this).val()),$("#"+t.attr("form")).submit()}}else{var n=$(this),a=void 0!==e.originalEvent?200:0;a?(clearTimeout(j),j=setTimeout(function(){E(n)},a)):E(n)}}),$("."+g+" input, ."+f+" input").on("blur",function(e){$(e.relatedTarget).hasClass(p)?$(e.relatedTarget).find('[type="text"]').trigger($.Event("keyup",{keyCode:13})):$(e.relatedTarget).parents("."+g).length||n.close($(this))}),n.visibility(g,f,h,i),C()},0)}},visibility:function(e,t,n,a){var i=$("."+e+", ."+t+", ."+n);$("."+a).length&&($(".active .dataTables_filter").length||$(".active #conf-_-gr").length)||!$("."+a).length&&($(".dataTables_filter").length||$("#conf-_-gr").length)?i.show():i.hide()},close:function(e){e.parent("label").slideToggle(0),e.closest(".opened").removeClass("opened")},clear:function(){var e="btn-filter-top-right",t="dataTable-mirror",n="btn-accordion-filter",a=$("."+e+" ."+t+", ."+n+" ."+t),i=$("."+e+" input, ."+n+" input");a.val("").trigger("input"),i.is(":visible")&&i.trigger("blur"),$(".panel-filter").find("tr[data-empty-row]").remove(),!$.support.transition&&($.support.transition={end:"webkitTransitionEnd"})}}}},branding:{selector:function(){return $("body").find(".branding-backdrop")},status:function(){return this.selector().length},process:function(e){var t=this,n=settings_product_branding_show_time_min_privileged,a=n>=1&&n<=10?1e3*n:1e3,i=settings_product_branding_show_time_max_privileged,s=i>=1&&i<=120?1e3*i:2e3,o=a/10,r="keydown.brand click.brand",l=function(){clearInterval(t.tiktok),t._stopped=1,vars.page.shown=1;vars.page.locked=0,setTimeout(function(){t.selector().off(r).remove(),!page.load.happening()&&theme_title_generate(),!page.load.happening()&&progress.end()},50)};if(!t._stopped)if(e){if(t._running<a/o)return clearInterval(t._tiktok),clearTimeout(t._exec),void setTimeout(l,(a/o-t._running)*o);clearInterval(t._tiktok),clearTimeout(t._exec),l()}else vars.page.locked=1,t._exec||(t._exec=setTimeout(function(){l(),clearInterval(t._tiktok)},s)),t._running||(t._running=0,t._tiktok=setInterval(function(){t._running++},o),t.selector().focus(),t.selector().on(r,function(e){var n=e.keyCode?e.keyCode:e.which;t._running<a/o||27!==n&&"click"!==e.type||(void 0!==t.close?t.close+=1:t.close=2,setTimeout(function(){t.close=1},vars.event.double_click_delay),t.close>2&&(clearInterval(t._tiktok),clearTimeout(t._exec),l()))}))}},load:{happening:function(){var e=vars.pjax.progressing,t=vars.ajax.progressing;return e||t?1:0}}},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&&"logviewer"!==v___module||"number"==typeof refreshTimer&&clearInterval(refreshTimer)}}},progress_percent={body:"body",control:function(e,t,n,a,i){var s=this,o="bottom_progress",r="."+o+"_level",l="."+o+"_cancel",c="bottom_progress_horizontal";$(s.body).find("."+o+"es").length||$(s.body).append('<div class="'+o+'es"></div>');var d=$(s.body).find("."+o+"es");if(!d.find('div[data-progress-id="'+e+'"]').length){if(d.append(HTML.bottom_progress(e,t,a,i)),a||d.find("."+c).length){var u=(d=$(s.body).find("."+o+"es")).find("."+o+':not(".'+c+'")').addClass("no-animation").detach();d.prepend(u)}d.find('div[data-progress-id="'+e+'"]').find(l).one("click",function(){var e=$(this).parent(),t=e.data("progress-id");e.find(r).removeClass("success").addClass("danger"),$(this).remove(),setTimeout(function(){e.remove(),0===d.find("div[data-progress-id]").length&&d.remove()},1e3),window["progress_id_ref_"+t].abort(),a&&window["progress_id_ref_"+t+"_tracker"].abort()})}var _=d.find('div[data-progress-id="'+e+'"]');if(_.find(r).css("height",n+"%"),a){var g=_.find("."+o+"_overlay"),p=".bottom_progress_";_.find(p+"filename").html('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+(a[0]?Convert.htmlEscape(Convert.textTruncate(Convert.htmlDecode(a[0]),24)):"<span class='bg-filter-blur3-grayscale100-opacity35-contrast1-2-brightness0-9'>unknown-file-name</span>")).attr("title",Convert.htmlEscape(a[0])),g.find(p+"data").text($(Convert.htmlDecode(a[1])).text()),g.find(p+"percent").text(a[2]+"%")}else _.find("."+o+"_overlay").text(n+"%");100==n&&(_.find(l).remove(),setTimeout(function(){_.remove(),0===d.find("div[data-progress-id]").length&&d.remove()},1e3))}},progress={target:"body",element:"top-aprogress",blocked:function(){return vars.page.locked},status:function(){return!settings_hide_top_loader},start:function(){this.status()&&!$(this.target).find("."+this.element).length&&!this.blocked()&&vars.allow_ui_features&&$(this.target).append('<div class="'+this.element+'"></div>')},end:function(){!this.blocked()&&!page.load.happening()&&$(this.target).find("."+this.element).remove()}},session={reauthenticate:{start:function(){const e=this,t=e.target;e.opening||$("."+t).length||(e.opening=1,$.ajax({type:"GET",url:v___location_prefix+"/index.cgi",data:!1,dataType:"text",complete:function(){e.opening=0},success:function(n){const a=Test.strContains(n,"container session_login pam_");if(!Test.strContains(n,"form-signin-banner")){const i=e.lock_targets,s=e.lock_type,o=function(){return $("."+t).find('input:not([name="user"]):not([name="twofactor"])')};$(i).addClass(s);$("body").append(HTML.template.reauthenticate(t)).find("."+t).find(".fa-times-thin").one("click",function(){session.reauthenticate.end()}),plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),1==session.server.data("terminal")?plugins.terminal.close():1==session.server.data("shell")&&(plugins.shell.unlock(),plugins.shell.close()),setTimeout(function(){o().trigger("focus")},1e3),$("."+t).find("form").on("submit",function(e){if(e.preventDefault(),e.stopImmediatePropagation(),a){$("."+t).find('form input[name="user"]').attr("name","answer").val(session.server.data("user"))}const i=$(n).find("form").attr("action"),s=$("."+t).find("[data-submit]"),r=$("."+t+"-header-icon i"),l=$("."+t+"-header-title h3"),c=$("."+t+"-header-title small"),d='input[name="twofactor"]';let u=$("."+t).find("form").serialize();const _=$("."+t).find(d);if(_.length&&!_.is(":visible")&&(u+="&twofprobe=1"),s.hasClass("disabled"))return;c.text(theme_language("signing_in")+"").removeClass("text-danger").addClass("loading-dots"),s.addClass("btn-grey disabled").removeClass("btn-success");const g=function(e){return e.endsWith(".")||(e+="."),e=e.replace(/\n/gm,"")},p=function(e,n,a){if(n){let e="session_failed"===theme_language(n,1)?theme_language("session_failed_password"):n;e=g(e),c.text(e).addClass("text-danger").removeClass("loading-dots"),s.removeClass("btn-grey disabled").addClass("btn-success");const a=$("."+t).find(d),i=a.is(":visible")?a:o();i.addClass("faa-horizontal animated"),i[0].focus(),setTimeout(function(){i.removeClass("faa-horizontal animated"),i[0].select()},1e3)}else e&&!a&&(c.text(theme_language("signing_success")).removeClass("text-danger").removeClass("loading-dots").addClass("text-success"),r.removeClass("fa-lock").addClass("fa-unlock fa-rotate-180 fa-flip-horizontal"),l.text(theme_language("session_unlocked")),session.alive=1,setTimeout(function(){session.reauthenticate.end()},333))};u=Convert.serialized_to_json(u),u.xnavigation=1,$.ajax({type:"POST",url:i,data:u,dataType:"text",cache:!1,contentType:"application/x-www-form-urlencoded",processData:!0,beforeSend:function(e){e.setRequestHeader("X-Requested-With","FetchRequest")},success:function(e){let n=$(e).find(".switch-toggle").text().length,s=$(e).find(".alert > .ui--span").text().trim(),o=s.length;if(a){const a=$(e).find("form");a.find('input[name="answer"]').val($("."+t).find('input[type="password"]').val());let r=Convert.serialized_to_json(a.serialize());r.xnavigation=1,$.ajax({type:"POST",url:i,data:r,dataType:"text",cache:!1,contentType:"application/x-www-form-urlencoded",processData:!0,beforeSend:function(e){e.setRequestHeader("X-Requested-With","FetchRequest")},success:function(e){n=$(e).find(".switch-toggle").text().length,s=$(e).find(".alert > .ui--span").text().trim(),o=s.length,p(n,s,o)}})}else p(n,s,o)},error:function(e,n,a){if(401==e.status&&/(two[-\s]?factor|2fa)/i.test(a)){$("."+t).find("[data-container-twofactor]").removeClass("hidden");const e=g(theme_language("login_message_2fa"));c.text(e).removeClass("loading-dots"),s.removeClass("btn-grey disabled").addClass("btn-success"),setTimeout(function(){$("."+t).find(d).trigger("focus")})}else s.removeClass("btn-grey disabled").addClass("btn-success"),c.text(theme_language("connection_error")).addClass("text-danger").addClass("loading-dots")}})})}}}))},end:function(){session.alive=1,$("."+this.target).remove(),$(this.lock_targets).removeClass(this.lock_type)},target:"session-reauthenticate",lock_targets:"aside, aside .navigation, .mobile-menu-toggler, .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"},status:function(e){return e&&Test.strContains(e,"container session_login")?(this.alive=0,0):1},server:{data:function(e,t,n){var a=$("html"),i=$("body"),s="data-"+e,o=e.replace("data-","");if(void 0!==n)e.startsWith("data-")?(a.removeAttr(e),a.removeData(o)):(a.removeAttr(s),a.removeData(e)),"data-uri"===e&&i.removeAttr(e);else{if(void 0===t)return e.startsWith("data-")?a.attr(e):a.data(e);e.startsWith("data-")?a.attr(e,t).data(o,t):a.data(e,t).attr(s),"data-uri"!==e&&"data-module"!==e||(i.attr(e,t),"data-module"===e&&i.removeClass().addClass(t))}}},alive:1},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){if(e)for(var n in t){var a=t[n];if(e.toString().indexOf(a)>-1)return!0}return!1},str_contains_multi_regex:function(e,t,n){if(e)for(var a in n){var i=n[a],s=t.toString();if((s=new RegExp(s.replace("::M::",i))).test(e))return!0}return!1},arrContains:function(e,t,n){return void 0===n&&(n=0),e=$.inArray(t,e),n?e:-1<e?1:0},arrIntersect:function(e,t){var n=[];return $.each(e,function(e,a){t.match(new RegExp(a,"gi"))&&n.push(a)}),!$.isEmptyObject(n)},json:function(e){var t=!0;try{t=$.parseJSON(e)}catch(e){t=!1}return t},input:{radio:function(e,t){var n=t?":visible":"",a=$("body").find('[name="'+e+'"]:checked'+n);return a.length?a.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),n=$(window),a=n.scrollTop(),i=a+n.height(),s=t.offset(),o=s?s.top:0;return o+t.height()<=i&&o>=a},occurrences:function(e,t,n){if(e+="",(t+="").length<=0)return e.length+1;for(var a=0,i=0,s=n?1:t.length;(i=e.indexOf(t,i))>=0;)++a,i+=s;return a},editing:function(){return $("input:focus").length||$("textarea:focus").length||$('[contenteditable="true"]:focus').length||$('[contenteditable="true"]:focus').length||$(document.activeElement).is("textarea")||$(document.activeElement).is("input")}},theme={api:{version:function(e,t){return theme.version(e,t)},page:{refresh:function(){return plugins.pjax.page.refresh()},refreshForce:function(){return plugins.pjax.page.refresh(!0,!0)},headers:{getAll:function(){return plugins.pjax.headers.getAll()}}},event:{on:{page:{error:function(e,t){$(document).on("pjax:error",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load error event",e)}})},beforeSend:function(e,t){$(document).on("ready pjax:beforeSend",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load beforeSend event",e)}})},start:function(e,t){$(document).on("pjax:start",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load start event",e)}})},complete:function(e,t){$(document).on("pjax:complete",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load complete event",e)}})},success:function(e,t){$(document).on("pjax:success",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load success event",e)}})},beforeReplace:function(e,t){$(document).on("pjax:beforeReplace",function(n,a,i){try{e.call(this,t,n,a,i)}catch(e){console.warn("Error executing custom function on page load beforeReplace content event",e)}})},afterReplace:function(e,t){$(document).on(vars.h.event.page.end,function(n,a){try{e.call(this,t,n,a)}catch(e){console.warn("Error executing custom function on page afterReplace content event",e)}})},popstate:function(e,t){$(document).on("pjax:popstate",function(n){try{e.call(this,t,n)}catch(e){console.warn("Error executing custom function on page popstate event",e)}})}}},one:{document:{init:null,ready:null},page:{reset:function(){return plugins.pjax.page.events.reset()},beforeSend:function(e){return plugins.pjax.page.events.beforeSend.set(e)},start:function(e){return plugins.pjax.page.events.start.set(e)},complete:function(e){return plugins.pjax.page.events.complete.set(e)},success:function(e){return plugins.pjax.page.events.success.set(e)},beforeReplace:function(e){return plugins.pjax.page.events.beforeReplace.set(e)},afterReplace:function(e){return plugins.pjax.page.events.end.set(e)}}}}},help:{_selector:"hotkeys-help",show:function(){const e=this;e._loading||(e._loading=1,progress.start(),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=data&subtype=theme&action=list-hotkeys",dataType:"JSON",complete:function(){e._loading=0,progress.end()},success:function(t){const n=theme_shortcuts_modifier_name(),a=hotkey_variation="dot"===settings_hotkey_open_module_config_privileged?".":"comma"===settings_hotkey_open_module_config_privileged?",":settings_hotkey_open_module_config_privileged;let i="Ctrl",s="Alt",o="Shift",r="Meta",l=" + ",c=String();"mac"===platform.detect()&&(i="⌃",s="⌥",o="⇧",r="⌘",l=" ");let d=[];t["hotkeys-global"].forEach(function(e){let t=String();if(e.key&&e.key.includes("hotkey_custom"))return;if("usermin"!==session.server.data("product")&&("settings_hotkey_toggle_key_usermin"===e.key||"settings_hotkey_toggle_key_webmail"===e.key))return;if("usermin"===session.server.data("product")&&("settings_hotkey_toggle_key_webmin"===e.key||"settings_hotkey_toggle_key_virtualmin"===e.key||"settings_hotkey_toggle_key_cloudmin"===e.key))return;let a=n+l+(t||window[e.key]).toUpperCase();e.key.endsWith("_dbl")&&(a=a+" "+a),c+='<div class="hotkey"><span>'+e.title+"</span><span>"+a+"</span></div>";let i=parseInt(e.section.replace(/\D+/g,String()));d.includes(i)||d.push(i)});let u='<div class="hotkey"><span>'+theme_language("hotkey_open_new")+"</span><span>"+i+l+s+l+" D</span></div>";u+='<div class="hotkey"><span>'+theme_language("hotkey_clear_cache")+"</span><span>"+i+l+s+l+o+l+r+l+" R</span></div>",u+='<div class="hotkey"><span>'+theme_language("hotkey_open_module_config_privileged")+"</span><span>"+n+l+a.toUpperCase()+"</span></div>",u+='<div class="hotkey"><span>'+theme_language("hotkey_open_theme_config")+"</span><span>"+n+l+o+l+a.toUpperCase()+"</span></div>",u+='<div class="hotkey"><span>'+theme_language("hotkey_list_table")+"</span><span>⏴, ⏵</span></div>",u+='<div class="hotkey"><span>'+theme_language("hotkey_list_tabs")+"</span><span>"+s+l+"⏴, "+s+l+"⏵</span></div>",c+='<div class="hotkey"><span>'+theme_language("hotkey_copy_to_clipboard")+"</span><span>"+r+l+s+l+" "+theme_language("hotkey_copy_to_clipboard_click")+"</span></div>",c+='<div class="hotkey"><span>'+theme_language("hotkey_switch_theme")+"</span><span>"+i+l+s+l+" T, "+o+l+"F</span></div>",d=d.sort((e,t)=>e-t);let _=d[0],g=String(),p=t["hotkeys-file-manager"];p&&p.forEach(function(e){String();g||(g='<div class="title">'+theme_language("hotkeys_help_title_fm")+"</div>"),g+='<div class="hotkey"><span>'+e.title+"</span><span>"+theme_modifiers_replace_for_mac(e.key.replaceAll("<br><br>",", ").replaceAll("<br>",", "),"Ctrl","Meta")+"</span></div>"});let f=String(),h=t["hotkeys-editor"];h&&h.forEach(function(e){String();f||(f='<div class="title">'+theme_language("hotkeys_help_title_edit")+"</div>"),f+='<div class="hotkey"><span>'+e.title+"</span><span>"+theme_modifiers_replace_for_mac(e.key,"Ctrl","Meta")+"</span></div>"});const m='<span class="sub-head font-size-115p"><i class="fa fa-fw fa-sm fa-keyboard-o" aria-hidden="true"></i> '+theme_language("hotkeys_help_title")+'<i onclick="theme.help.print()" class="fa2 fa-fw fa-sm fa2-print" aria-hidden="true"></i></span><div class="'+e._selector+'-list"><div class="title"><span>'+theme_language("hotkeys_help_title_global")+(settings_hotkeys_active?"":'<span class="label label-warning">'+theme_language("global_disabled").toLowerCase()+"</span>")+'<a class="hotkeys-help-options" onclick="theme.help.config(this)" data-href="'+v___location_prefix+"/tconfig.cgi?section=s"+_+'&search=&xnavigation=1"><i class="fa fa-fw fa-cog" aria-hidden="true"></i></a></span></div>'+u+c+g+f+'</div><br><div class="hotkeys-sub-wrap"><span class="sub-head sub-head-links font-size-115p"><i class="fa2 fa-fw fa-xs fa2-book" aria-hidden="true"></i> '+theme_language("hotkeys_help_title_docs")+'</span><table style="width: 100%"><tr><td><div class="hotkeys-btn-wrap"><a data-link target="_blank" href="https://webmin.com/docs" class="btn btn-inverse btn-tiny no-margin-left"><i class="fa fa-xs fa-webmin"></i> <span>'+theme_language("theme_xhred_titles_wm")+'</span></a><a data-link target="_blank" href="https://virtualmin.com/documentation" class="btn btn-inverse btn-tiny no-margin-left"><i class="fa fa-xs fa-virtualmin"></i> <span>'+theme_language("theme_xhred_titles_vm")+'</span></a><a data-link target="_blank" href="https://www.virtualmin.com/documentation/cloudmin/" class="btn btn-inverse btn-tiny no-margin-left"><i class="fa fa-xs fa-cloudmin"></i> <span>'+theme_language("theme_xhred_titles_cm")+'</span></a></div></td></tr></table><br><br><span class="sub-head sub-head-links font-size-115p"><i class="fa2 fa-fw fa-xs fa2 fa2-chat" aria-hidden="true"></i> '+theme_language("theme_xhred_global_community")+'</span><table style="width: 100%"><tr><td><div class="hotkeys-btn-wrap"><a data-link target="_blank" href="https://forum.virtualmin.com/" class="btn btn-inverse btn-tiny no-margin-left"><i class="fa2 fa-xs fa2-virtualmin"></i> <span>'+theme_language("theme_xhred_sysinfo_vmforum")+"</span></a></div></td></tr></table></div>",v='<div class="modal fade12 '+e._selector+'" tabindex="-1" role="dialog" data-backdrop="static"><div class="modal-dialog modal-lg" role="document"><div class="modal-content"><div class="modal-header"><h4><i class="fa2 fa-fw fa-sms fa2-question-circle vertical-align-baseline" aria-hidden="true"></i> '+theme_language("global_help")+'</h4><button type="button" class="close" data-dismiss="modal" data-toggle="tooltip" data-title="'+theme_language("global_close")+'" aria-label="'+theme_language("global_close")+'"><span aria-hidden="true">×</span></button></div><div class="modal-body"><div class="media-print-title">'+theme_language("hotkey_print_title")+"</div>"+m+'<style media="print">@media print { @page { margin: 0 0.5in; } }</style></div></div></div></div>',b=$(v).appendTo($("body"));b.modal("show"),b.on("hide.bs.modal",function(){$(".popover.module-help .close").trigger("click")}),b.on("hidden.bs.modal",function(){$(".modal."+e._selector).remove()})},error:function(e){session.status(e.responseText),plugins.messenger.post({type:"error",icon:"fa fa-exclamation-triangle fa-lg fa-fw",id:"hotkeysHelp",title:theme_language("global_error"),message:theme_language("hotkeys_server_error"),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,close:!0,timeout:!1,progressBar:!1})}}))},config:function(e){const t=$(".modal."+this._selector);t.modal("hide"),t.remove(),plugins.pjax.page.link.get($(e).attr("data-href"))},print:function(){$("."+this._selector).printThis({importStyle:!0,pageTitle:theme_language("hotkey_print_title")})}},errors:{onload:function(){return $(".container-fluid > .panel > .panel-body > [data-fatal-error-text]").length||$("body.err-body > .err-head").length}},download:function(e,t,n,a){var i=!0;if(void 0!==a&&1!=a&&!0!==a||(i=!1),e&&t){t="string"==typeof t?t:$.param(t);var s=document.createElement("form");s.method=n||"POST",s.action=e,i&&(s.target="_blank"),$.each(t.split("&"),function(){var e=this.split("=");if(e[1])try{e[1]=Convert.uriDecodeComponent(e[1])}catch(e){}var t=document.createElement("input");t.type="hidden",t.name=e[0],t.value=e[1],s.appendChild(t)}),$(s).appendTo("body").submit().remove()}},veiled:function(e,t,n){var a=$(t||".container-fluid, .container-fluid-loading, .popover, .tooltip, .jsPanel, #jsPanel-replacement-container, aside, .mobile-menu-toggler, #right-side-tabs, .right-side-tabs-toggler"),i=n||"pointer-events-none bg-filter-blur-grayscale-opacity50";if(-1===e)return a.hasClass(i);e?a.addClass(i):a.removeClass(i)},update:function(e,t,n){var a=1===e?"-release":"-beta",i=n?"&xhr-update-version="+n:String();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")+' <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+"/xhr.cgi?xhr-update=1&xhr-update-type="+a+"&xhr-update-force="+t+i,data:!1,dataType:"json",success:function(e){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+"/"+vars.pages.dashboard),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){session.status(e.responseText),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)}})},update_message:function(){var e="theme_update_refresh";if(!theme_message_exists(e)){plugins.messenger.post({id:e,class:"theme-refresh-to-update",position:"bottomLeft",timeout:!1,close:!1,message:theme_language("theme_update_available"),icon:"exclamation-circle",buttons:plugins.messenger.toast.construct.button(theme_language("filemanager_context_refresh").toUpperCase(),function(){progress.start(),vars.cache.theme_updating=!0,theme.veiled(!0,!1,"bg-filter-grayscale-opacity50"),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_clear_cache=1",data:!1,dataType:"text",complete:function(){location.reload()}})}),layout:1})}},restart_message:function(e){var t=0,n=0;e&&e.toString().includes("systemctl")?(e+=" restart webmin",t=4500):e+="/restart";var a="webmin_restart_notice",i=function(){return $("."+a).find(".bootbox-body")};if(!i().length){var s=bootbox.alert({message:"<h4><i class='fa fa-fw fa-exclamation-triangle'></i> "+theme_language("global_warning")+"!</h4>"+theme_language("webmin_requires_restart").replace("$1",e),className:a+" bootbox-centered font-medium warning"});s.init(function(){var e=i(),a="data-p-restart",o="data-p-cancel";e.append("<br><br><div class='btn btn-group'><button "+a+" class='btn btn-info'><i class='fa fa-fw fa-reload'></i> "+theme_language("webmin_requires_restart_yes")+"</button><button "+o+" class='btn btn-default'><i class='fa fa-fw fa-times-circle-o'></i> "+theme_language("webmin_requires_restart_no")+"</button></div>");var r=(e=i()).find("["+a+"]"),l=e.find("["+o+"]");r.one("click",function(){n=1,e.append(theme_countdown_animated(!1,7)),theme_countdown_animated(e,7),progress.start(),spinnerfy_buttons(r),l.off("click").addClass("pointer-events-none"),despinnerfy_buttons=function(){},vars.page.locked=1,$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=cmd&action=restart",data:!1,dataType:"text",complete:function(){setTimeout(function(){location.reload()},t)}})}),l.one("click",function(){vars.cache.norestart=!0,s.modal("hide")})}),s.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),n&&theme.veiled(1)})}},version:function(e,t){return ver=session.server.data("theme-version-data"),ver?(ver=Convert.uriDecodeComponent(ver),ver.startsWith("{")&&ver.endsWith("}")?(ver=JSON.parse(ver),!theme.version.current&&(theme.version.current=ver.versionfull.toString()),e?ver.timestamped.toString():t?ver.versionfull.toString():ver.version.toString()):(console.warn("Error parsing theme version data object"),"19.99")):String()},visibility:{set:function(e){const t=this;"object"==typeof stats&&(t._statsCheck&&clearTimeout(t._statsCheck),t._statsCheck=setTimeout(function(){const e=t.get();e!==t._statsRunning&&settings_sysinfo_real_time_status&&(!0===e?(t._statsRunning=!0,stats.sys.enable()):(t._statsRunning=!1,stats.sys.disable()))},!0===e?40:4e3)),vars.events.keypressed.meta=!1,vars.events.keypressed.ctrl=!1,vars.events.keypressed.shift=!1,vars.events.keypressed.alt=!1},get:function(){return document.hasFocus()}},config:{_:{form:{tconfig:function(){return $('body[data-uri*="tconfig.cgi"] form[action*="tconfig.cgi"]#settings_')}},funcs:{event:function(e){return"reset"===e?"evttcrs":""},dependent_radios:function(e,t,n,a){var i=theme.config._.funcs.event("reset");a||(a=theme.config._.form.tconfig());a.find('input[name="'+e+'"]').on("change "+i,function(){!function(e,t,n,a){var i=a.find('input[name="'+e+'"]:checked'),s=t,o="true"==i.val()||parseInt(i.val())>0,r="disabled pointer-events-none";n&&(o=!o),$.each(s,function(e,t){a.find('[name="'+t+'"]:not(a)').toggleClass(r+" opacity-0_6",o),a.find('[name="'+t+'"]').parent(".awradio").toggleClass(r,o)})}(e,t,n,a)}).trigger("change")}}},current:{_data:{},set:function(){this._data=core.get_global_vars(["config_portable","settings"])},get:function(){return this._data},reset:function(){var e=theme.config._.form.tconfig(),t=e[0],n=this.get();if(t){for(var a,i=t.elements,s=theme.config._.funcs.event("reset"),o=0;a=i[o++];)void 0!==n[a.name]&&(window[a.name]=n[a.name],"radio"===a.type?e.find('[name="'+a.name+'"][value="'+n[a.name]+'"]').prop("checked",!0).trigger(s):e.find('[name="'+a.name+'"]').val(n[a.name]).trigger(s));theme_config_controls(0),set_onbeforeunload_status(0,0)}}},format:function(e,t){var n;"true"==t||"false"==t?"true"==t?n=!0:"false"==t&&(n=!1):n=t;var a=Test.numeric(n)?n&&n.length>16?n:parseFloat(n):n;window[e]=a},apply:function(e,t){var n=this;e||(e=n._.form.tconfig()),$.each($(e.serializeArray()),function(e,t){if(t.name.endsWith("_user")||!t.name.startsWith("settings_")&&!t.name.startsWith("config_portable"))return!0;if(t.name.endsWith("_custom_links")&&t.name.startsWith("settings_"))try{const e=JSON.parse(t.value);e&&(t.value=JSON.stringify(e))}catch(e){t.value=""}n.format(t.name,t.value)}).promise().done(function(){t&&n.save()})},save:function(e){var t=core.get_global_vars(e||["config_portable","settings"]);$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=data&subtype=theme&action=settings&do=save&"+Convert.json_to_query(t),dataType:"text",success:function(e){session.status(e)&&plugins.page.format.columns(!0)},error:function(){}}),this.current.set(),this.postSave(this.current._data)},postSave:function(e){void 0!==e.settings_navigation_always_collapse&&(vars.navigation.pinned=e.settings_navigation_always_collapse?1:0)},events:function(e){var t,n,a,i,s,o=this,r=o._.funcs.event("reset");if(v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"tconfig.cgi"){var l=this._.form.tconfig(),c=l.find("select, input"),d="body";o.apply(),c.on("input",function(e){o.format($(this).attr("name"),$(this).val()),void 0!==e.originalEvent&&theme_config_controls(1)});var u="resize.cnff";$(window).off(u),$(window).on(u,function(e){e.preventDefault();var t=o._.form.tconfig();if(t.find(".ui_form_end_buttons").length){var n=t.find('input[name="settings_leftmenu_width"]');$(".mobile-menu-toggler:visible").length?n.prop("disabled",!0):n.prop("disabled",!1);var a=!("1"!=session.server.data("data-navigation-collapsed")&&!window.matchMedia("(max-width: 1365px)").matches),i="false"!=t.find('input[name="settings_side_slider_enabled"]:checked').val();a&&!$.browser.mobile&&t.find('input[name="settings_side_slider_fixed"][value="false"]').trigger("click"),i&&t.find('input[name="settings_side_slider_fixed"]').prop("disabled",a)}else $(this).off(u)}).trigger(u),n=l.find("#atrestore:not(.disabled)"),$(d).undelegate(n,"click"),$(n).off("click.confirm"),$(n).on("click",function(){var e=get_onbeforeunload_status();set_onbeforeunload_status(0),e&&setTimeout(function(){set_onbeforeunload_status(e)},2500)}),$(n).confirmation({classNameRemove:"btn-default"},function(){$(this).off();var e=$(this);e.hasClass("btn-inverse")||setTimeout(function(){spinnerfy_buttons(e,[1.5,-33,"small",!1]),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=data&subtype=theme&action=settings&do=restore",success:function(e){session.status(e)&&theme_reload()},error:function(t){e.addClass("btn-danger").removeClass("btn-default btn-inverse opacity-0_5")}})},0)}),function(){var e=l.find('input[name="settings_sysinfo_theme_updates"]').first().parents("td").parent("tr");if(e.length){var t=theme.version(),n="tmp_spinner_theme_version",a="data-theme-version-container",i="data-theme-versions",s="data-theme-stable-version",o=e.find("td").first().find(".smaller");e.next("tr").find("td").first().find("b");o.append(' <span class="text-nowrap smaller text-normal">(<span class="smaller text-normal" data-text-installed>'+theme_language("global_installed_version").toLowerCase()+"</span> <em "+s+" "+a+">"+theme.version(0,1)+'</em><span class="hidden" '+i+"></span>)</span>"+theme_spinner_small("in-btn-md "+n," ","width:10px; height:10px; margin-left: 5px;")),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_latest_version=1",data:!1,dataType:"json",success:function(e){var o=String(),r=e[0],l=r!=e[1]&&e[1],c=$("[data-text-installed]"),d=$("."+n),u=$("em["+s+"]"),_=$("span["+i+"]"),g=5;if(t){var p=(t=t.toString()).match(/([\d\.]+)/);p&&(g=p[1].length)}if(r){var f=(r=r.toString()).match(/([\d\.]+)/);f&&(g=f[1].length)}l&&(l=l.toString()),r&&r!=t&&(o+=", "+theme_language("global_latest_stable").toLowerCase()+" <em "+a+' class="text-success">'+r+"</em>"),l&&l!=t&&(o+=", "+theme_language("global_latest_beta").toLowerCase()+" <em "+a+' class="text-info">'+l+"</em>"),t&&t.length<=g&&r&&r.length<=g&&r.toString()!=t.toString()&&u.addClass("text-danger"),o&&!o.length&&(c.text(theme_language("global_installed_and_latest_version").toLowerCase()),u.addClass("text-success")),_.replaceWith(o),d.remove()},error:function(){}})}}(),this._.funcs.dependent_radios("settings_right_table_links_type",["settings_right_table_animate_icons","settings_right_table_grayscaled_icons"],!0),this._.funcs.dependent_radios("settings_hotkeys_active",["settings_hotkey_custom_1_user","settings_hotkey_custom_2_user","settings_hotkey_custom_3_user","settings_hotkey_custom_4_user","settings_hotkey_custom_5_user","settings_hotkey_custom_6_user","settings_hotkey_custom_7_user","settings_hotkey_custom_8_user","settings_hotkey_custom_9_user","settings_hotkey_toggle_modifier","settings_hotkey_toggle_hold_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_shell2","settings_hotkey_focus_search","settings_hotkey_navigation","settings_hotkey_slider","settings_hotkey_reload","settings_hotkey_reload","settings_hotkey_toggle_key_night_mode","settings_hotkey_sysinfo","settings_hotkey_favorites"],!0),this._.funcs.dependent_radios("settings_side_slider_enabled",["settings_side_slider_fixed","settings_side_slider_fixed_toggle","settings_side_slider_sysinfo_enabled","settings_side_slider_notifications_enabled","settings_side_slider_favorites_enabled"],!0),this._.funcs.dependent_radios("settings_sysinfo_easypie_charts",["settings_sysinfo_easypie_charts_size","settings_sysinfo_easypie_charts_width","settings_sysinfo_easypie_charts_scale"],!0),this._.funcs.dependent_radios("settings_sysinfo_theme_updates",["settings_cache_interval"],!0),plugins.navigation.switch.dashboard.get()&&l.find('[name="settings_sysinfo_link_mini"]').parents("span").parent("td").parent("tr").remove(),(t=l.find('input[name="settings_table_init_datatables"]')).on("input "+r,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(' <span class="text-muted">'+t+"</span>")}),t.trigger("input"),l.find('select[name="settings_navigation_color"]').on("keyup change "+r,function(){var e=$(this).val(),t=$("link[data-palette]"),n="blue"!=e;n&&$("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+e.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),setTimeout(function(){session.server.data("data-theme",e),t.remove(),session.server.data("data-default-theme",e),$(d).find(".user-link.palette-toggle").find(".fa-sun").trigger("click"),o.apply()},n?800:0)}),l.find('input[name="settings_side_slider_enabled"]').on("change "+r,function(){var e="body .right-side-tabs",t="true"==$(this).val();$(e+"-toggler").toggleClass("hidden",!t),$(""+e).toggleClass("hidden",!t),t&&$('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"),o.apply(),page_resized(),settings_side_slider_fixed&&plugins.slider.state(~~t)}),l.find('input[name="settings_side_slider_fixed"]').on("change "+r,function(){var e=$(".right-side-tabs-dismiss .fa2-collapse-right"),t="true"==$(this).val();vars.slider.pinned=t,plugins.slider.state(t),e.toggleClass("fa-rotate-45",!t),o.apply()}),l.find('input[name="settings_side_slider_sysinfo_enabled"], input[name="settings_side_slider_notifications_enabled"], input[name="settings_side_slider_favorites_enabled"]').on("change "+r,function(){var e="right-side-tabs-"+$(this).attr("name").split("_")[3],t=$(this).attr("name"),n=$(d).find("#"+e).hasClass("active"),a=$('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()?($(d).find('a[href="#'+e+'"], #'+e).removeClass("hidden").parent().removeClass("hidden"),"settings_side_slider_notifications_enabled"===t&&($(".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))):($(d).find('a[href="#'+e+'"], #'+e).addClass("hidden"),n&&a?$("body #right-side-tabs").find("li:not(.active) a:not(.hidden)").first().trigger("click"):0===a&&$('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),"settings_side_slider_notifications_enabled"===t&&($(".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.apply()}),function(){l.find('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 e=l.find(".settings_navigation_color_toggle");e.on("click",function(){l.find("."+$(this).attr("data-name")+"_reset, ."+$(this).attr("data-name")+"_rows").toggleClass("hidden"),$(this).toggleClass("forced")});var t=l.find('input[name="settings_grayscale_level_navigation"], input[name="settings_sepia_level_navigation"], input[name="settings_saturation_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"]');l.find(".settings_navigation_color_reset").on("click",function(){var e="grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) invert(0) brightness(1) contrast(1)",n="filter: "+e+";";$(".visible-xs.mobile-menu-toggler").attr("style","position: fixed;"+n),$("aside, .visible-xs.mobile-menu-toggler").attr("style","z-index: 10; overflow: visible; transform: translate("+settings_leftmenu_width+"px, 0px);"+n),"nav"===settings_side_slider_palette&&$("#right-side-tabs").add("#right-side-tabs + .right-side-tabs-toggler").css({filter:e}),l.find('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),l.find('input[name="settings_saturation_level_navigation"], input[name="settings_brightness_level_navigation"], input[name="settings_contrast_level_navigation"]').val(1),t.each(function(){$('code[data-name="'+$(this).attr("name")+'"]').text($(this).val())})}),t.on("input "+r,function(){var e="grayscale("+l.find('input[name="settings_grayscale_level_navigation"]').val()+") sepia("+l.find('input[name="settings_sepia_level_navigation"]').val()+") saturate("+l.find('input[name="settings_saturation_level_navigation"]').val()+") hue-rotate("+l.find('input[name="settings_hue_level_navigation"]').val()+"deg) invert("+l.find('input[name="settings_invert_level_navigation"]').val()+") brightness("+l.find('input[name="settings_brightness_level_navigation"]').val()+") contrast("+l.find('input[name="settings_contrast_level_navigation"]').val()+")";style="filter: "+e+";",$(".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:e}),l.find('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme.config.apply()}),t.each(function(e){l.find('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),$(this).parent().parent("td").parent("tr").addClass("hidden settings_navigation_color_rows hidden-skip"),0===e&&$(this).parent().parent("td").parent("tr").prev("tr").addClass("hidden-dependent-skip")}).promise().done(function(){uri_parse_param("search")&&e.trigger("click")}),setTimeout(function(){$(".mobile-menu-toggler:visible").length&&$('input[name="settings_leftmenu_width"]').prop("disabled",!0)},100);var n=l.find('input[name="settings_leftmenu_width"]');n.on("click keyup change "+r,function(e){page_adjust($(this).val(),$(this).val()),l.find('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),theme.config.apply(),vars.navigation.width_initial=parseInt($(this).val())}),n.each(function(){l.find('code[data-name="'+$(this).attr("name")+'"]').text($(this).val()),vars.navigation.width_initial=parseInt($(this).val())}),o._.funcs.dependent_radios("settings_navigation_always_collapse",["settings_leftmenu_width"]),l.find('input[name="settings_navigation_always_collapse"]').on("change "+r,function(){"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")),page_resized()}),l.find('input[name="settings_leftmenu_user_html"]').on("keyup "+r,function(){$("aside ul.user-html li.user-html-string").html($(this).val())}),o._.funcs.dependent_radios("settings_leftmenu_netdata",["settings_leftmenu_netdata_link"],!0),$(".right-side-tabs-toggler").length||(l.find('input[name="settings_side_slider_enabled"][value="false"]').trigger("click"),l.find('input[name="settings_side_slider_enabled"]').attr("disabled","disabled")),page_resized()}(),$('[data-toggle="popover"]:not(.tconfig-popover)').popover({sanitize:!1}),$('[action="tconfig.cgi"] sup.tconfig-popover').popover({sanitize:!1,container:$('[action="tconfig.cgi"] .col_value').first()}).on("shown.bs.popover",function(){$(this).parent().parent().parent().addClass("popover-active")}).on("hidden.bs.popover",function(){$(this).parent().parent().parent().removeClass("popover-active")}),$('[name="settings_sysinfo_hidden_panels_user"]').on("input "+r,function(){settings_sysinfo_hidden_panels_user={};var e=$(this),t=e.val();t&&t.length&&t.forEach(function(t){var n=e.find('option[value="'+t+'"]').text();settings_sysinfo_hidden_panels_user[t]=n}),setTimeout(function(){$.isEmptyObject(settings_sysinfo_hidden_panels_user)?settings_sysinfo_hidden_panels_user="":settings_sysinfo_hidden_panels_user=JSON.stringify(settings_sysinfo_hidden_panels_user)})});var _=$('textarea[name="settings_leftmenu_custom_links"]'),g=_.val();_.length&&_.val(Convert.htmlDecode(g).replace(///g,"/")),l.find("#atsave:not(.btn-inverse):not(.disabled)").on("click",function(e){e.preventDefault();var t=$(this);spinnerfy_buttons(t),set_onbeforeunload_status(0,0);var n=l.find('select[name="goto_webmin_default_module"]');if(n.length){var a=$.trim(n.val());0===get_access_level()&&core.updateModuleData("/webmin/edit_startpage.cgi","/webmin/change_startpage.cgi",{gotomodule:a}),settings_webmin_default_module=a}theme.config.apply(),theme.config.save(),setTimeout(function(){plugins.navigation.reload(),theme_config_controls(0),despinnerfy_buttons(0,t),0===get_access_level()&&(settings_sysinfo_real_time_status?"object"==typeof stats?stats.sys.restart():load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.sys.enable()"]):"object"==typeof stats&&stats.sys.shutdown())},600),$(window).trigger("resize")})}!function(){var t=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+"tconfig.cgi"||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";(!e&&t&&plugins.navigation.reset(),!e&&t)&&(check_location_resource("/settings-logos.cgi?saved=1")&&$.each($(".file_chooser_button_preview:first"),function(){$(this).hasClass("disabled")?$("aside .__logo").remove():matchMedia("(max-width: 864px)").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").append('<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)))}),$(".btn.authentic_update:not(.disabled), .page_footer_ajax_submit:not(.disabled)").on("click",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));e||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(),n=$('input[name="unauthenticated_logo"]:checked, input[name="unauthenticated_bg"]:checked');n.val();function a(n){void 0===n&&(n=e);var a=["authenticated_logo_file","authenticated_bg_file"];"1"!=n.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,n){$('input[name="'+n+'"]').parents(".file-input-wrapper").removeClass("disabled"),"1"==t&&$('input[name="'+n+'"]').parents(".file-input-wrapper").prev(".file_chooser_button_preview").removeClass("disabled")})}function i(e){void 0===e&&(e=n);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"==n&&$('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))}),i(),$('input[name="unauthenticated_logo"], input[name="unauthenticated_bg"]').on("change",function(){i($(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")+"'>"}})}))}(),a=theme.config._.form.tconfig(),i=a.find("div > table > tbody"),s=a.find("#atsave"),i.on("keydown",function(e){13===(e.keyCode?e.keyCode:e.which)&&s.not(".disabled").trigger("click")}),this.current.set()}}},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=vars.h.selector.content.get();browser.detect.safari()&&e.addClass("browser_safari"),browser.detect.chrome()&&e.addClass("browser_chrome"),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(e.data("AppleMobileDev",!0),e.attr("style","-webkit-overflow-scrolling: touch !important; overflow-y: scroll !important;"))}},clean:function(){$("style[data-err]").remove()},temporary:function(){setTimeout(function(){"boolean"==typeof settings_sysinfo_real_time_status&&(settings_sysinfo_real_time_status=~~settings_sysinfo_real_time_status,theme.config.save())},2e3)}},regex={matches:function(e,t,n,a){n||(n=1);for(var i,s=[];i=t.exec(e);)s.push(i[n]);return a&&(s=s.slice(-1)[0]),s}},XHR={headers:function(e){return[e.getAllResponseHeaders(),e.getResponseHeader("content-type"),e.getResponseHeader("content-disposition"),e.getResponseHeader("content-length")]}};const plugins={};plugins.terminal=function(){var e={},t={},a=function(a,s){if(s||((s={}).container_id="terminal"),"object"==typeof a&&!$.isEmptyObject(a)&&a.files&&a.cols&&a.rows&&a.socket_url&&a.port){const r=a;if(r.files.js){const a=r.files.js,_=session.server.data("webprefix")+"/xterm",c="WebglAddon",d="CanvasAddon",p=detectWebGLContext()?c:d;p===c?a.splice(3,1):p===d&&a.splice(4,1),$.each(a,function(d,u){u=u.replace(/(.*?)\.(js|css)\?.*/,"$1"),load.bundle(u,+!d,a.length-1===d?[function(){var a=setInterval(function(){if("function"==typeof Terminal&&"object"==typeof AttachAddon&&"object"==typeof FitAddon&&"object"==typeof window[p]){clearInterval(a);const u=new WebSocket(""+r.socket_url,"binary"),f=function(a){if(!$.isEmptyObject(e))for(const t in e)try{t!==a&&(e[t].onclose=function(){},1===e[t].readyState&&e[t].send("exit\r"),setTimeout(function(){e[t].close(),delete e[t]},300))}catch(e){}null===a&&(t={})},g=function(){return document.getElementById(s.container_id)};var _,d={};u.onerror=function(){l(s.container_id,"socket_conn_sock_error"),_&&_.disconnect(),i=!1},u.onclose=function(){(core.curModule("xterm",1)||s.dropdown)&&setTimeout(function(){var e="Connection to "+(session.server.data("host")||"localhost")+" closed.";if(!$.isEmptyObject(d)){var t=s.dropdown?"xxs":"tiny",a=s.dropdown?"plugins.terminal.reconnect":"page_refresh";d.writeln(e),$(g()).find(".xterm-viewport").css("overflow","hidden"),$(g()).find(".xterm-rows").html("<tt>"+e+'</tt><br><a href="javascript:'+a+'()" class="btn btn-default btn-'+t+'">'+theme_language("socket_conn_lost_reconnect")+"</a>")}},1e3),_&&_.disconnect(),i=!1},u.onopen=function(){s.detached||(t=f,f(r.port),e[r.port]=u);const a=function(e){return 12==e||15==e||18==e||21==e};let i=12;i=a(r.conf.fontsize)?r.conf.fontsize:config_portable_module_xterm_font_size;const l=browser.detect.firefox()&&config_portable_module_xterm_render_addon,m={cols:r.cols,rows:r.rows,fontFamily:l?"monospace":"RobotoMonoLocal",letterSpacing:1,fontSize:parseInt(i),screenReaderMode:"true"===r.conf.screen_reader};s.terminal&&(m={...m,...s.terminal});try{let e=config_portable_module_xterm_options;e=JSON.parse(e.replace(/'/g,'"')),$.isEmptyObject(e)||(m={...m,...e})}catch(e){}var v=new Terminal(m),h=g(),b=new AttachAddon.AttachAddon(this),y=new FitAddon.FitAddon,x=p===c?new WebglAddon.WebglAddon:new CanvasAddon.CanvasAddon;call_default_cmds=function(e){s.cmd&&(s.cmd.startsWith("!")&&(s.cmd=s.cmd.replace(/^!/,"")),setTimeout(function(){e.send(s.cmd),setTimeout(function(){e.send("\r")},420)},40))},v.loadAddon(b),v.loadAddon(y),config_portable_module_xterm_render_addon&&v.loadAddon(x),v.open(h),setTimeout(function(){v.focus()},600),setTimeout(function(){(_=new ResizeObserver(function(){y.fit()})).observe(h),config_portable_module_xterm_render_addon&&"object"==typeof WebglAddon&&x.onContextLoss(function(){x.dispose()}),v.onResize(function(e){u.send("\\033[8;("+e.rows+");("+e.cols+")t")});let e=m.fontSize,t=null;setTimeout(function(){y.fit(),setTimeout(function(){v.options.fontSize=e+.1,y.fit(),setTimeout(function(){v.options.fontSize=e,y.fit()},4)},2)},1);const i=theme_modifier_control_key();v.textarea.onkeydown=n=>{let s=!1;n[i]&&("="===n.key||"+"===n.key?(e<32&&(e+=1,v.options.fontSize=e,y.fit(),s=!0),n.preventDefault()):"-"===n.key?(e>10&&(e-=1,v.options.fontSize=e,y.fit(),s=!0),n.preventDefault()):"0"===n.key&&(v.options.fontSize=e=12,y.fit(),s=!0,n.preventDefault()),s&&(t&&clearTimeout(t),t=setTimeout(()=>{config_portable_module_xterm_font_size=e,theme.config.save(),core.updateModuleData("/config.cgi?module=xterm","/config_save.cgi",{fontsize:a(e)?e:0,module:"xterm"})},2e3)))}},1),call_default_cmds(this),d=v,s.dropdown&&(n={term:v,sock:this}),s.detached&&d.onKey(function(e){""===e.key&&(vars.events.keypressed.ctrl||vars.events.keypressed.shift||vars.events.keypressed.meta)&&o()}),s.detached||(window.xterm_argv={})}}},0)}]:0,1,{sourceType:String(),cssPath:_,jsPath:_})})}}else core.curModule("xterm",1)&&!s.dropdown?l(s.container_id,"socket_conn_parse_error"):console.warn(theme_language("socket_conn_parse_error"))},i=!1,n={},s=function(e){if(1==session.server.data("terminal")){var t="-shell-port-",n="terminal-dd",s=function(e){plugins.messenger.post({type:e,icon:"fa2 fa2-terminal fa-lg fa-fw",id:"xtermErr",title:theme_language("xterm_error_title"),message:theme_language("xterm_error"),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,close:!1,timeout:!1,progressBar:!1,buttons:plugins.messenger.toast.construct.button(theme_language("global_open").toUpperCase(),function(){plugins.pjax.page.link.get(v___location_prefix+"/xterm")})})};$(function(){var e=$("."+t+"container"),a=e.find('[data-output="true"]'),i=$("#"+n);e.find("."+t+"cmd").remove(),i.length?i.empty():a.replaceWith('<div data-label="'+theme_language("socket_conn_lost_connecting")+'" id="'+n+'"></div>')}),$.ajax({type:"GET",url:session.server.data("webprefix")+"/xterm/",dataType:"text",error:function(){i=!1,console.warn("Cannot load the terminal"),setTimeout(function(){o(),s("error")},1e3)},success:function(t){if(session.status(t))if(t){var r=t.match(/xterm_argv\s*=\s({.*})/);if(r&&r[0]&&r[1]){var l=JSON.parse(r[1]);a(l,{dropdown:!0,container_id:n,detached:!0,cmd:e})}else i=!1,console.warn("Cannot start the terminal"),setTimeout(function(){o(),s("warning")},1e3)}else i=!1,console.warn("Cannot start the terminal"),setTimeout(function(){o(),s("warning")},1e3)}})}},o=function(){set_onbeforeunload_status_native(0),r().css("bottom","100vh").removeClass("opened")},r=function(){return $("body").find(".-shell-port-")},l=function(e,t){if(!$("[data-fatal-error-text]").length){var a='<hr><h3 class="terminal-err" data-fatal-error-text>'+theme_language(t)+'</h3><hr> <a style="margin-bottom: 15px;" class="btn btn-warning btn-lg page_footer_submit" href="javascript:page_refresh()"><i class="fa fa-fw fa-refresh"> </i> <span>'+theme_language("socket_conn_lost_try")+"</span></a>";$(document.getElementById(e)).closest(".panel-body").html(a),$("#headln2c .favorites").hide()}};return{new:a,reconnect:s,clean:function(e){"function"==typeof t&&t(e)},open:function(e){if(i){if("object"==typeof n.term&&"function"==typeof n.term.focus){"string"==typeof e&&(e.startsWith("!")&&(e=e.replace(/^!/,"")),setTimeout(function(){n.sock.send(" "+e),setTimeout(function(){n.sock.send("\r")},420)},40));let t=460;setTimeout(function(){const e=function(){if(t<600){const a=quirks.active_element(),i=$(a).is(".xterm-helper-textarea");t++,!i&&setTimeout(e,0),n.term.focus()}};e()},t)}}else i=!0,s(e);setTimeout(function(){set_onbeforeunload_status_native(1),r().css("bottom","0vh").addClass("opened")},20)},close:o}}(),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,""")+'">')+'<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+"/xhr.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,session.status(e)&&e){var t=JSON.parse(e);localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(t))}}})},s=function(e,t,a){$(e).next("pre").remove(),d(),r(t),a.scrollTop(a[0].scrollHeight),setTimeout(function(){vars.shell.processing=0,vars.shell.history=0,t.removeAttr("readonly").focus()},100)},o=function(e){var t="TERM environment variable not set.\n";return(e==="<pre>\n"+t+"</pre>"||e.endsWith(t))&&(e=e.replace(t,"Cannot run interactive commands in this shell.\n")),e},r=function(e){e.val(""),e.focus()},l=function(e){var t=$("body").find(".-shell-port-"),a=!(!e||!e.startsWith("!"))&&e.replace(/^!/,""),i=t.find("input"),s="data-shell-host",o=(t.find(".-shell-port-pwd").attr("data-pwd"),t.find("["+s+"]")),r=o.attr(s);if($t_uri_cloudmin){var l=$('aside [name="sid"] option:selected');current_host_name=l.attr("title")||l.text(),o.text(current_host_name)}else o.text(r);if(n(!1),a){i.val(a);var _=$.Event("keydown");_.which=13,i.trigger(_)}t.css("bottom","0vh").addClass("opened"),u(),d(),setTimeout(function(){a||(focus(),i.focus())},20)},_=function(){$("body").find(".-shell-port-").css("bottom","100vh").removeClass("opened"),$(".command-shell-editor-spinner").remove(),u(!0)},c=function(e){var t=$(".-shell-port-container .-shell-port-cmd"),a="invisible";e?t.addClass(a):t.removeClass(a)},d=function(){if(1==core.moduleAvailable("shell")&&"0"===session.server.data("terminal")){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")}},p=function(){var e=t();return 1==core.moduleAvailable("shell")||e||1==session.server.data("terminal")?1:0},u=function(p){var u=$(document.body).find(".-shell-port-"),g=u.find('input[data-command="true"]'),m=u.find("div[data-output]"),v=u.find(".-shell-port-container"),h=u.data("autocomplete"),b=$(window),y=".plugin-shell";if(p)return b.off("keydown"+y),b.off("keyup"+y),void v.off("click"+y);b.on("keydown"+y,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_shell2&&theme_shortcuts_modifier_unique(t))return t.preventDefault(),void(i&&_());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);var o="mac"===platform.detect(),r=o?t.metaKey:t.ctrlKey,l=o?t.ctrlKey:t.metaKey;if(this.searching||"r"===s&&r&&!t.shiftKey&&!t.altKey&&!l){if(t.preventDefault(),"object"==typeof a.shell_request&&"pending"===a.shell_request.state())return;var c=$(".-shell-port-type"),p=$('.-shell-port- input[data-command="true"]'),b="reverse-i-search",y="data-searching";if(v.scrollTop(v[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["+y+"]"),o=n.text(),r=localStorage.getItem(v___server_hostname+"-shell_command_last");if(!a.pre_searched&&r&&("undefined"===r&&(r=String()),a.pre_searched=r),o||!a.pre_searched)o&&e.length?(success_search(),e&&p.val(Convert.htmlUnEscape(e[this.used_index])),d()):failed_search();else{n.text(a.pre_searched);var l=run_search(a.pre_searched);update_search(l,0)}},failed_search=function(){var e=a.searching_shell_str_replaced.html();e.includes("failed reverse")||a.searching_shell_str_replaced.html(e.replace(b,"failed "+b)),d(),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 "+b,b)),d()},cancel_search=function(e){c.html(a.searching_shell_str),a.searching_shell_str=0,a.searching_shell_str_replaced=0,a.searching=0,e&&p.val(String()),d()},this.searching_shell_str||(this.searching_shell_str=c.html()),this.searching_shell_str_replaced){var x=this.searching_shell_str_replaced.find("span["+y+"]"),k=x.text();if(t.key&&1===t.key.length){var w=t.ctrlKey||t.altKey||t.metaKey?String():t.key,A=k+w;A&&(a.pre_searched=A,localStorage.setItem(v___server_hostname+"-shell_command_last",A)),x.text(A);var C=run_search(x.text());update_search(C,w)}}else this.searching_shell_str_replaced=c.html("("+b+")`<span "+y+"></span>': "),d();if(8===t.keyCode){var S=this.searching_shell_str_replaced.find("span["+y+"]"),I=S.text(),T=I.slice(0,-1);I&&(a.pre_searched=T,localStorage.setItem(v___server_hostname+"-shell_command_last",A)),S.text(T);var E=run_search(S.text());return void update_search(E,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&&g.is(":focus")){if(t.preventDefault(),!h)return;var V="::::",j=g.val().trim().split(/\s+(?!-)/),O=j.length,z=j[0]&&-1===j[0].indexOf("-")?0:1,M=j[1]&&-1===j[1].indexOf(":")?0:1,q=g.val().endsWith(" "),U="service"===$.trim(j[0]),Z="systemctl"===$.trim(j[0]),J=$.trim(j[0])&&$.trim(j[0]).startsWith("chown"),K=1!==j.length||!g.val().length||z||q?U||Z?"services":J?"permissions":"lists":"commands";if(!$.trim(g.val()).length)return;var W=g.val(),R=u.find(".-shell-port-pwd").attr("data-pwd");if("services"===K){if("systemctl"===(K=U?"service":"systemctl")&&3!==j.length)return;W="service"==K?$.trim(j[1]):$.trim(j[2]),"service"===$.trim(j[0])&&(2===j.length&&q||3===j.length)&&(W=3===j.length?V+$.trim(j[1])+V+$.trim(j[2]):V+$.trim(j[1]))}if(J){if(1===O&&!q)return void g.val($.trim(j[0])+" ");M&&$.trim(j[1])?q||j[2]?(K="lists",W=R+"/"+V+$.trim(j[2])):(K="groups",W=$.trim($.trim(j[1]).split(":")[1])):(K="users",W=$.trim(j[1]))}"lists"!==K||J||(W=R+"/"+V+$.trim(j[1])+V+$.trim(j[0])+V+$.trim(j[2])),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-get_autocompletes=1&xhr-get_autocomplete_type="+K+"&xhr-get_autocomplete_string="+W,data:!1,dataType:"json",success:function(e){var t=e.length;if(1===t)if("service"===K||"systemctl"===K||"lists"===K){var a=$.trim(j[0]),i=$.trim(j[0])+" "+$.trim(j[1]);"lists"===K?("cd"===a&&e[0].endsWith("/")||"cd"!==a)&&("cd"===a||"cat"===a?g.val(a+" "+e[0]):$.trim(j[2])?g.val(i+" "+e[0]):g.val(a+" "+e[0])):"service"!==a||2!==j.length&&3!==j.length?"systemctl"===a&&3===j.length&&g.val(a+" "+$.trim(j[1])+" "+e[0]):2===j.length?g.val(a+" "+e[0]+" "):3===j.length&&g.val($.trim(j[0])+" "+$.trim(j[1])+" "+e[0])}else J?M?q||j[2]?g.val($.trim(j[0])+" "+$.trim(j[1])+" "+e[0]):g.val($.trim(j[0])+" "+$.trim($.trim(j[1]).split(":")[0])+":"+e[0]+" "):g.val($.trim(j[0])+" "+e[0]+":"):g.val(e[0]+" ");else if(t>1){var n="<b>"+f()+" "+Convert.htmlEscape(g.val())+"</b>\n";m.find("pre").append(n),m.find("pre").append(Convert.htmlEscape(e.join("\n")+"\n")),v.scrollTop(v[0].scrollHeight)}setTimeout(function(){g.focus().mousedown()},10)},error:function(e){session.status(e.responseText)}})}}else _()}).on("keyup"+y,function(p){var v=this,h=e(),b=$(".modal-shell-config:visible").length;if(h&&!b){var y=0,x=0,k=0,w=$(".form-control.sidebar-search"),A=t(),C=$('select[name="sid"]').val(),S=0,I=t()?v___location_prefix+"/server-manager/shell.cgi":core.moduleAvailable("shell")?v___location_prefix+"/shell/index.cgi":0;if(!I)return;if((h||w.is(":focus"))&&8===p.keyCode&&(vars.shell.history=0),h?(y=$.trim(g.val()),x=1,k=1):(y=w.val(),x=void 0!==w.val(),k=0),(k||x&&(!y.trim()||y.trim().startsWith("!")))&&(38==p.keyCode||40==p.keyCode)){p.preventDefault(),p.stopPropagation(),void 0===localStorage.getItem(v___server_hostname+"-shell_commands")&&localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var T=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),E=T?T.length:0;if(0===vars.shell.history&&!y&&40==p.keyCode)return;if(0===vars.shell.history&&y&&38==p.keyCode)return void(S=1);if(vars.shell.history=40==p.keyCode?++vars.shell.history:--vars.shell.history,vars.shell.history<0&&38===p.keyCode?vars.shell.history=E-1:vars.shell.history>E&&(vars.shell.history=0),T&&T[vars.shell.history%E]){if(!$.isEmptyObject(T)&&(vars.shell.history==E&&38===p.keyCode||vars.shell.history==E&&40===p.keyCode||S))return h?g.val("").focus():w.val("").focus(),void(vars.shell.history=0);if(h){var V=T[vars.shell.history%E].replace(/^!/,"");g.val(Convert.htmlUnEscape(V)).focus()}}return}if(x&&y.trim().startsWith("!")&&27==p.keyCode)return p.preventDefault(),p.stopPropagation(),void w.val("").focus();if(x&&y.trim().startsWith("!")&&13==p.keyCode&&(w.addClass("_shell_form_"),p.preventDefault(),p.stopPropagation(),1==core.moduleAvailable("shell")||A)){g.val(y.trim().substring(1)).focus(),l();var j=$.Event("keyup");j.keyCode=13,g.trigger(j)}var O=u.find(".-shell-port-container"),z=u.find(".-shell-port-pwd"),M=z.attr("data-pwd"),q=$.trim(g.val()),U=0,Z=p.keyCode?p.keyCode:p.which,J=(p.altKey||p.ctrlKey)&&"l"==String.fromCharCode(p.which).toLowerCase();if(g.is(":focus")||check_selected_text()||(p.ctrlKey||p.altKey||p.shiftKey||p.metaKey||g.val(g.val()+String.fromCharCode(p.which).toLowerCase()),g.focus()),q&&13===Z||J){if(O.find("[data-searching]").length)return;if(core.moduleAvailable("shell")||A){if(1===vars.shell.processing)return;vars.shell.processing=1,("clear"===q||"reset"===q||"exit"===q||J)&&(m.find("pre").html(""),r(g),"exit"==q&&_()),"cd ~"===q&&(U=q,q="cd "+z.attr("data-home"));var K=!1;if("cd /"===q&&(K="/"),"history -c"===q){localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify({}));var W="<b>"+f()+" "+Convert.htmlEscape(q)+"</b>\n";m.find("pre").append(W),r(g),O.scrollTop(O[0].scrollHeight);var R=a(I,A,null,M),D=new FormData($(R)[0]);return void $.ajax({type:"POST",url:I+"?fetch-content=1",data:D,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){session.status(e)&&(n(q),vars.shell.processing=0)},error:function(e){}})}if($.trim(q).startsWith("history -d")){var P=q.split(" ")[2];return P&&P.length&&Test.numeric(P)&&$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-shell-pop="+P+"&xhr-shell-cms="+A+"&xhr-shell-cmsid="+C,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(P)-1})))}n(q)},error:function(e){}}),r(g),void(vars.shell.processing=0)}if(q.startsWith("history")){r(g);var N=JSON.parse(localStorage.getItem(v___server_hostname+"-shell_commands")),Q=N?N.length:0,L=Q?Q.toString().length:0;W="<b>"+f()+" "+Convert.htmlEscape(q)+"</b>\n";return $.each($(N),function(e,t){var a=e.toString().length,n="";for(i=0;i<L+1-a;i++)n+=" ";"string"==typeof t&&(W+=e+1+n+t+"\n")}).promise().done(function(){m.find("pre").append(W),O.scrollTop(O[0].scrollHeight),n(q)}),void(vars.shell.processing=0)}var G=q.split(" "),X=G[0],H=G[1];if(X&&H&&["vim","vi","emacs","nano","edit","editor","view","viewer"].some(function(e){return e===$.trim(X)})){var B=m.find("pre"),F="<b>"+f()+" "+Convert.htmlEscape(g.val()),Y="view"===X?1:0,ee=Y?"viewer":"editor",te=get_access_level();if(2==te||3==te){var ae=new RegExp("^"+get_user_home(),"");(M=M.replace(ae,""))||(M="/")}return H.endsWith("/")||H.includes("../")||G&&G[1].includes("/")&&!G[1].startsWith("/")?(B.append(F+" </b>\nCan not open file "+ee+". Unsupported path expression.\n"),void s(re,g,O)):(edit_file(G[1],M,[{call:"plugins.shell.toggle"},{call:"plugins.shell.done",params:[re,g,O]},{call:"plugins.shell.close"}],Y,0,0,Y?1:0),B.append(F+" </b>\nRedirected for opening in internal file "+ee+". "+theme_spinner_small(void 0,"white command-shell-editor-spinner smaller2")+"\n"),c(1),O.scrollTop(O[0].scrollHeight),void n(q))}if("clear"===$.trim(q)||"reset"===$.trim(q)||"exit"===$.trim(q)||J)return vars.shell.processing=0,vars.shell.history=0,d(),g.focus(),void(!J&&n(q));var ie=a(I,A,q,M),ne=new FormData($(ie)[0]);g.attr("readonly","true");var se=0,oe=0,re=".-shell-port-cmd",le=".-shell-port-container",_e=!1,ce=0;v.shell_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.addEventListener("progress",function(e){var t=e.target.responseText;if(session.status(t)){if(t&&t.length&&/[\x1B]/.test(t))return ce=1,void v.shell_request.abort();if(t&&oe++,oe>=1&&!se)t&&($(re).after("<pre></pre>"),se++,$(le).addClass("progressing"));else if(se){var a=extract_content(t,"<pre>","</pre>",1);a&&(a=a.replace(/<(b)[^>]*>[^<]*(<\/b>)/i,""),a=o(a),_e=a,$(re).next("pre").replaceWith(a)),O.scrollTop(O[0].scrollHeight)}}else v.shell_request.abort()},!1),e},type:"POST",url:I+"?fetch-content=1",data:ne,dataType:"text",cache:!1,contentType:!1,processData:!1,complete:function(e){$(le).removeClass("progressing");var t=e.status;if(e=e.responseText,session.status(e)){var a="reboot"===$.trim(q),i="shutdown -h now"===$.trim(q);if(ce||200!==t||3!==get_access_level()&&(a||i)){var r=theme_language("shell_aborted");a?r="The system is rebooting..":i&&(r="The system has been powered off!");var l=200!==t?extract_content(_e,"<pre>","</pre>",0)+(v.shell_request_interrupted?"\n^C":String()):r;return!1===_e&&(l="Cannot establish connection to the host."),m.find("pre").append("<b>"+f()+" "+Convert.htmlEscape(g.val())+" </b>\n"+l+"\n"),n(q),void s(re,g,O)}var _=f(),c=($(e).find("pre").length?$(e).find("pre"):$(e).filter("pre")).html().replace(/>>/g,">"+_),d=$(e).find('input[name="previous"][type="hidden"]').map(function(){return Convert.htmlEscape($(this).val())}).get();localStorage.setItem(v___server_hostname+"-shell_commands",JSON.stringify(d));var p=$(e).find('input[name="pwd"]').val();newPwd=p||M,c=o(c),p||(c+="\n"),m.find("pre").append(U?c.replace(new RegExp(q,"g"),U):c),z.text(K||(newPwd==z.attr("data-home")?"~":newPwd.split("/").filter(function(e){return $.trim(e)}).slice(-1)[0])).attr("data-pwd",Convert.htmlEscape(K||newPwd)).attr("title",Convert.htmlEscape(K||newPwd)),"cd .."===q&&"/"===newPwd&&z.text("/"),s(re,g,O)}},error:function(e){}})}}}})},f=function(){return Convert.htmlEscape($(".-shell-port-type").text())};return{type:t,init:u,status:e,link:function(){p()?!1===settings_show_terminal_link&&!1===settings_show_terminal_link2||$(".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:l,close:_,toggle:c,done:s,available:p,adjust:d,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="right-side-tabs",i="body ."+a,n=a+"-fixed",s="data-slider-fixed";"0"==session.server.data("access-level")&&(e?($(i+"-toggler").addClass("hidden"),$(i).css("right","0px").addClass(n),settings_side_slider_enabled&&session.server.data(s,"1")):(settings_side_slider_enabled&&(t?$(i+"-toggler").removeClass("hidden").addClass("opened").css("right","300px"):$(i+"-toggler").removeClass("hidden opened").css("right","0")),t?$(i).css("right","0px"):$(i).css("right","-302px"),$(i).removeClass(n),session.server.data(s,"0")))}},display_badges=function(){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled){var e="right-side-tabs",t="right-side-tab-notification-asterix",a="toggler button",i="span.badge",n="hidden hidden-force",s=$("."+e+" .list-group-item:not(.no-notifications, .opacity-0_3)").length;plugins.favicon.set(s),s>0?($("."+e+"-"+a+" "+i).removeClass(n).text(s),$("#"+e+" ."+t).removeClass(n).text(s)):($("."+e+"-"+a+" "+i).addClass(n).text(0),$("#"+e+" ."+t).addClass(n).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]=JSON.stringify({id:a,title:n,time:s,timestamp:o,message:r,readStatus:l,type:_,link:c}),$('.list-group-item[id="'+a+'"][data-type="'+_+'"]').length&&$('.list-group-item[id="'+a+'"][data-type="'+_+'"] .list-group-item-heading small').text(dayjs.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);$.each(keys.sort(),function(i,v){var vx=$current_localData_notifications[v],vxData=Test.json(vx);if(!vxData)return!0;var $__id__=vxData.id,$__data__title=vxData.title,$__data__time=vxData.time,$__data__timestamp=vxData.timestamp,$__data__message=vxData.message,$__data__readStatus=vxData.readStatus,$__data__type=vxData.type,$__data__link=vxData.link;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){var l=r&&(r.includes("http://")||r.includes("https://")||r.includes("ftp://")||r.includes("ftps://"))?' data-target="external"':"",_=l?"data-href":"href";$(".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+'"'+l+" "+_+'="'+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>"+dayjs.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"},vars.navigation.animation_speed,function(){})};0===$(".right-side-tabs .list-group-item").length&&(e?setTimeout(function(){a()},2):a()),setTimeout(function(){display_badges()},vars.navigation.animation_speed+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");!session.server.data("webprefix")||t.link.includes("!edit")||t.link.includes("!view")||(t.link=session.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"> </i><span title="')+i+'" class="right_pane_favorites_text">'+i+"</span></a>")}),t.addClass("hidden")):t.removeClass("hidden")}},sysinfo_update=function(){var e=this;if(!e.running&&(e.running=1,!$("body .modal:not(.user_motd_data).in").length)){if(!t)var t=session.server.data("webprefix");if(0==v___user_level){var a=$("body").find("#system-status"),i=a.length?a[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>| /gi,""):"")+'<br data-stats="cpu"> <div data-stats="fans" style="height: 10px"></div><strong data-stats="fans">'+theme_language("body_cpufans")+'</strong><br data-stats="fans">'+(localStorage.getItem(v___server_hostname+"-sysinfo_cpu_fans")?localStorage.getItem(v___server_hostname+"-sysinfo_cpu_fans").replace(/<br>| /gi,""):"")+'<br data-stats="fans"> <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>| /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")?dayjs.unix(o).utcOffset(get_utc_offset()).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 n=$("#system-status, #extended_sysinfo-1"),s=$(".right-side-tabs-dismiss .fa-reload, ._sync_sysinfo_.fa-reload");if(s.addClass("fa-spin-fast cursor-na"),n.addClass("updating"),$.ajax({type:"GET",url:t+"/xhr.cgi?xhr-info=1",dataType:"json",complete:function(){e.running=0,s.removeClass("fa-spin-fast cursor-na"),n.removeClass("updating")},success:function(e){$.each(e[0],function(e,a){var n=$('#right-side-tabs [data-data="'+e+'"]'),s="hidden hidden-force";if(n=(n=n.add(n.prev("br"))).add(n.prev("strong")),null!=a?n.removeClass(s):n.addClass(s),"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||(Test.numeric(a)?localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats",a):localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_stats","")),i){if($(i).find('span[data-id="sysinfo_'+e+'"]').html(a),"local_time"==e||"uptime"==e||"proc"==e){var o=$(i).find('span[data-id="sysinfo_'+e+'"]'),r=o.find("a").length?o.find("a"):o.find("span"),l=$(i).find('span[data-id="sysinfo_'+e+'"]').text();"local_time"==e?snippets.datetime.tictac(1):r&&r.length&&o.html(r.html(l))}if(page_sysinfo_sensor_update_label(),$(i).find('.piechart[data-charts="sysinfo_'+e+'"]').length){var _=$("body").find('.piechart[data-charts="sysinfo_'+e+'"]');_.length&&!isNaN(parseInt(a))&&_.data("easyPieChart")&&_.data("easyPieChart").update(a)}"cpu_percent"!=e&&"mem_percent"!=e&&"virt_percent"!=e&&"disk_percent"!=e||localStorage.setItem(v___server_hostname+"-sysinfo_"+e+"_seen",a),$(i).find(".modal-backdrop").remove()}if($__id__=dayjs().unix(),"cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e||"csf_title"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"package_message"==e?localStorage.getItem(v___server_hostname+"-sysinfo_"+e)||localStorage.setItem(v___server_hostname+"-sysinfo_"+e,a):a&&null!=a&&NaN!=a?localStorage.setItem(v___server_hostname+"-sysinfo_"+e,a):localStorage.setItem(v___server_hostname+"-sysinfo_"+e,""),localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial")||localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",1),"authentic_theme_version"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_theme_current_version")&&a){var c=$.trim(a),d=c.match(/^(\S+)/)[1];d.match(/^\d/)||(d=c.match(/a>\s*(\S+)/)[1]).endsWith(".")&&(d=d.substring(0,d.length-1)),localStorage.setItem(v___server_hostname+"-sysinfo_theme_current_version",d)}if("csf_data"==e&&!localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version")&&a&&a.match(/>\s*([\d\.]+)\s*|( )+<\//)&&localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",a.match(/>\s*([\d\.]+)\s*|( )+<\//)[1]),"csf_title"==e||"csf_data"==e||"csf_remote_version"==e||"authentic_remote_version"==e||"authentic_theme_version"==e||"package_message"==e){if("package_message"===e&&!core.curModuleFile("package-updates","update.cgi")){if((localStorage.getItem(v___server_hostname+"-sysinfo_"+e)!=a||1==localStorage.getItem(v___server_hostname+"-sysinfo_package_message_initial"))&&a&&a.indexOf("badge-danger")>-1){var p=theme_language("notifications_packages_updates"),u=$(a).html().replace(/badge-danger/g,"badge-success"),f=t+"/package-updates/index.cgi?mode=updates";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_package_message",JSON.stringify({title:p,time:$__id__,timestamp:$__id__,message:u,readStatus:0,type:e,link:f})),plugins.slider.notifications.dismiss("package_message"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,a),localStorage.setItem(v___server_hostname+"-sysinfo_package_message_initial",0),notifications(p,u,e,f)}else"package_message"===e&&localStorage.setItem(v___server_hostname+"-sysinfo_"+e,a);$(a).find("i.badge:first-child").length||plugins.slider.notifications.dismiss("package_message")}if("authentic_remote_version"==e&&settings_sysinfo_theme_updates){var g="sysinfo_theme_current_version",m="sysinfo_"+e,v=localStorage.getItem(v___server_hostname+"-"+g),h=function(){return localStorage.getItem(v___server_hostname+"-"+m)},b=0;if("0"==h()&&(localStorage.removeItem(v___server_hostname+"-"+m),b++),v&&(h()||b)&&compareVersionNumbers(a,v)>0&&"0"!=a&&"0.00"!=a&&null!=a&&a!=theme.version()){var y=theme_language("notifications_theme_update"),x=theme_language("notifications_theme_update_message").replace("%v",a);f=t+"/"+vars.pages.dashboard;localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_"+e,JSON.stringify({title:y,time:$__id__,timestamp:$__id__,message:x,readStatus:0,type:e,link:f})),localStorage.setItem(v___server_hostname+"-"+m,a),localStorage.setItem(v___server_hostname+"-"+g,a),notifications(y,x,e,f)}}if("authentic_theme_version"!==e||Test.strContains(a,"CHANGELOG.md")||plugins.slider.notifications.dismiss("authentic_remote_version"),settings_sysinfo_csf_updates){var k=localStorage.getItem(v___server_hostname+"-sysinfo_csf_current_version");if(k&&null!=k&&localStorage.getItem(v___server_hostname+"-sysinfo_csf_remote_version")&&"csf_remote_version"==e&&k<a&&"0"!=a&&"0.00"!=a&&null!=a){var w=theme_language("notifications_firewall_update"),A=theme_language("notifications_firewall_update_message").replace("%v",a);f=t+"/csf/index.cgi";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_remote_version",JSON.stringify({title:w,time:$__id__,timestamp:$__id__,message:A,readStatus:0,type:e,link:f})),plugins.slider.notifications.dismiss("csf_remote_version"),localStorage.setItem(v___server_hostname+"-sysinfo_"+e,a),localStorage.setItem(v___server_hostname+"-sysinfo_csf_current_version",a),notifications(w,A,e,f)}}if("csf_data"===e&&Test.strContains(a,"data-no-update")&&plugins.slider.notifications.dismiss("csf_remote_version"),"csf_title"==e)if(a&&a.indexOf("label-danger")>-1&&1!=localStorage.getItem(v___server_hostname+"-sysinfo_csf_not_running")){var C=theme_language("notifications_firewall_danger"),S=theme_language("notifications_firewall_danger_message").replace("%v",dayjs.unix($__id__).format(config_portable_theme_locale_format_long));f=t+"/csf/index.cgi?action=lfdstatus";localStorage.setItem(v___server_hostname+"-notifications_"+$__id__+"_csf_title",JSON.stringify({title:C,time:$__id__,timestamp:$__id__,message:S,readStatus:0,type:e,link:f})),plugins.slider.notifications.dismiss("csf_title"),localStorage.setItem(v___server_hostname+"-sysinfo_csf_not_running",1),notifications(C,S,"csf_remote_version",f)}else a&&-1===a.indexOf("label-danger")&&(plugins.slider.notifications.dismiss("csf_title"),localStorage.removeItem(v___server_hostname+"-sysinfo_csf_not_running"))}if("local_motd"===e&&a)$.each(a,function(t,a){a.forEach(function(a){var i=a.time.substring(0,10),n=a.msg,s=i+""+t.replace(/[_]+/g,"--"),o=function(t){return v___server_hostname+"-"+t+"_"+s+"_"+e};if(session.server.data("user")===t&&!1===config_portable_notifications_self)return!0;if(!localStorage.getItem(o(e))){var r=theme_language("notifications_motd"),l=theme_language("notifications_motd_says").replace("$1",'<i class="label font-style-normal notifications-motd-user-label"> <span class="font-size-125p">'+t+"</span></i>")+": "+n,_=theme_language("notifications_motd_says").replace("$1",t)+": "+n,c="",d=n.match(/(?:<a.*?href=\s*['"](.*?)['">])|(?:<a.*?href=\s*(.*?)[\s*>])/);d&&(d[1]||d[2])&&((c=d[1]||d[2])&&(c.startsWith("http:")||c.startsWith("https:")||c.includes("ftp:")||c.includes("ftps:")||c.startsWith("//"))?l+=' <i class="fa fa-fw fa-external-link"></i>':c&&(l+=' <i class="fa fa-fw fa-link"></i>'),l=(l=l.replace(/<a.*?>/gi," ")).replace(/<\/a>/gi," ")),localStorage.setItem(o("notifications"),JSON.stringify({title:r,time:parseInt(i),timestamp:parseInt(i),message:l,readStatus:0,type:e,link:c})),localStorage.setItem(o(e),1),notifications(r,_,e,c)}})});else if("csf_deny"==e){var I=JSON.parse(a);$.each(I,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=t+"/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:e,link:d})),localStorage.setItem(v___server_hostname+"-allowed_trigger_"+(n+s.replace(/\./g,"0"))+"_csf_deny",1),notifications(_,c,e,d)}})}else if("cpu_percent"==e||"mem_percent"==e||"virt_percent"==e||"disk_percent"==e){var T=$("#right-side-tabs .graph-container-fw."+e),E="hidden-force";T=T.add(T.next("br")),null!=a?T.removeClass(E):T.addClass(E)}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 V=!localStorage.getItem(v___server_hostname+"-sysinfo_"+e+"_stats"),j=$(".info-container .graph-container."+e);if(V?j.addClass("hidden").next("br").addClass("hidden"):j.removeClass("hidden").next("br").removeClass("hidden"),"cpu_percent"==e){var O=localStorage.getItem(v___server_hostname+"-sysinfo_cpu"),z=O?"("+O+")":String();$("#right-side-tabs-sysinfo .graph-container."+e+" .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")+"% "+z),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_cpu_percent_stats")+"%")}if("mem_percent"==e){var M=$.trim(stats_units_flatten(stats_units_pluck(localStorage.getItem(v___server_hostname+"-sysinfo_mem"))));mem_load=M?"("+M+")":String(),$("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_mem")).text(theme_language("body_real")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"% "+mem_load),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_mem_percent_stats")+"%")}if("virt_percent"==e){var q=$.trim(stats_units_flatten(localStorage.getItem(v___server_hostname+"-sysinfo_virt"))),U=q?"("+q+")":String();$("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_virt")).text(theme_language("body_virt")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"% "+U),$("#right-side-tabs-sysinfo .graph-container."+e+" .bar").attr("style","width:"+localStorage.getItem(v___server_hostname+"-sysinfo_virt_percent_stats")+"%")}if("disk_percent"==e){var Z=$.trim(stats_units_flatten(stats_units_pluck(localStorage.getItem(v___server_hostname+"-sysinfo_disk")))),J=Z?"("+Z+")":String();$("#right-side-tabs-sysinfo .graph-container."+e+" .description").attr("title",localStorage.getItem(v___server_hostname+"-sysinfo_disk")).text(theme_language("body_disk")+": "+localStorage.getItem(v___server_hostname+"-sysinfo_disk_percent_stats")+"% "+J),$("#right-side-tabs-sysinfo .graph-container."+e+" .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="'+e+'"]').html(a),"package_message"==e&&core.moduleAvailable("package-updates")){var K=a;K&&$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]').html($(K).html($(K).html().split(",")[0])[0].outerHTML)}if("local_time"==e){var W=$('#right-side-tabs .info-container .info-list-data span[data-data="'+e+'"]'),R=W.find("a").length?W.find("a"):W.find("span");R&&R.length&&R.html(R.next("span").detach()),settings_theme_make_date?snippets.datetime.tictac(1):W.html(a)}if("cpu_temperature"==e||"cpu_fans"==e){var D=0,P="strong",N="cpu_fans"===e,Q="#right-side-tabs .info-container .badge-drivestatus.badge",L=N?"cpufans":"cpustatus",G=N?"fans":"cpu",X='.info-container [data-stats="'+G+'"]',H=".badge-"+L;$.each($(a).filter(H),function(e,t){var i="",n=$(this).text().split(":"),s=n[1]||n[0],o=s;"bg-warning"!=(i=N?HTML.label.textMaxLevels("rpm",o):HTML.label.textMaxLevels("temperature",s))&&"bg-danger"!=i||(D=1),$(Q+"-"+L).length||$(P+'[data-stats="'+G+'"] + br[data-stats="'+G+'"]').after(a.replace(/<br>| /gi,"")),$($(Q+"-"+L)[e]).html($(this).text()).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(i+"-dark")}).promise().done(function(){var e=$(X).filter(P),t=$(X).filter(H).length,i=L=N?"cpufan":"cputemp",n=1===t?i:i+"s";e.text(theme_language("body_"+n)),D||a&&settings_sysinfo_cpu_and_fans_side_slider_always_show?$(X).removeClass("hidden"):$(X).addClass("hidden")})}if("hdd_temperature"==e){var B=0;$.each($(a).filter(".badge-drivestatus:not(.badge-cpustatus)"),function(e,t){var i,n=$(this).text().split(":"),s=n[1]||n[0];"bg-warning"!=(i=HTML.label.textMaxLevels("temperature",s))&&"bg-danger"!=i||(B=1),$("#right-side-tabs .info-container .badge-drivestatus:not(.badge-cpustatus)").length||$('strong[data-stats="drive"] + br[data-stats="drive"]').after(a.replace(/<br>| /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(i+"-dark")}).promise().done(function(){B||a&&settings_sysinfo_cpu_and_fans_side_slider_always_show?$('.info-container [data-stats="drive"]').removeClass("hidden"):$('.info-container [data-stats="drive"]').addClass("hidden")})}if("warning_si"==e){var F=$("#right-side-tabs .info-container .warning-list-data"),Y=a.replace(/<(script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/type='submit'/g,"formtarget='page' type='submit'").replace(/ui_form_end_submit" type="button"/g,'ui_form_end_submit" type="submit" formtarget="page"');F.html(Y),"<br>"===a&&F.empty(),plugins.dashboard.update.alerts(a),plugins.dashboard.update.alertsHTML()}if("extended_si"==e){F=$("#right-side-tabs .info-container .extended-list-data");var ee=a.replace(/aria-expanded="true"/gi,'aria-expanded="false"').replace(/collapse in/gi,"collapse");opened_tabs=$("#extended_sysinfo .panel .in").map(function(){ee=(ee=ee.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(){F.html('<div style="height: 11px"></div>'+ee);var e=$("#right-side-tabs .extended-list-data");e.find("div.panel-heading:not(#mount_disks_info-mount):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("+")})});try{if(theme_panels_sort("slider"),v___location_file===vars.pages.dashboard){var te="extended_sysinfo",ae="data-referrer",ie="panel",ne=ie+"-body",se=$($.parseHTML(a)).filter("#"+te);if(se[0]){var oe=$("#"+te+"-1");oe.length&&$.each($(se[0]).find("."+ie),function(){var e=$(this).attr(ae);if("live_stats"!==e){var t=$(this).find("."+ne).html();if(t){var a=oe.find(".panel["+ae+'="'+e+'"]').find("."+ne);if(a.length){a.html(t);a.find("table");var i=a.find('[data-toggle="tooltip"]');i.length&&i.tooltip({placement:"auto bottom",container:a,trigger:"hover",html:!0,delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})}}}}).promise().done(function(){snippets.page.render_links_dashboard()})}}}catch(e){}}"collect_interval"==e&&(Test.numeric(a)?settings_side_slider_background_refresh_time=parseFloat(a):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),setTimeout(function(){plugins.dashboard.update.formsURLs()},100),snippets.datetime.locale()},error:function(e){session.status(e.responseText)}}),settings_side_slider_enabled&&("number"==typeof iupdateTimer&&clearInterval(iupdateTimer),"undefined"!=typeof settings_side_slider_background_refresh_time)){var o=settings_side_slider_background_refresh_time;settings_side_slider_background_refresh_time>0&&(iupdateTimer=setInterval(function(){sysinfo_update()},6e4*(o+2)))}}}},stats_units_flatten=function(e){const t=e;try{return e?(e=(e=e.replace(/\s+/g," ")).replace(/\(\s*/,"(").replace(/\s*\)/,")")).replace(/(\d+(\.\d+)?)(\s*[KMGT]i?B)/g,(e,t,a,i)=>{let n=parseFloat(t),s=i.trim();return"KB"===s||"KiB"===s||"MB"===s||"MiB"===s?n=Math.round(n):"GB"!==s&&"GiB"!==s&&"TB"!==s&&"TiB"!==s||(n=n.toFixed(1)),n+" "+s}):t}catch(e){return t}},stats_units_pluck=function(e){const t=e;try{if(!e)return t;const a=/\/.*?\//;return e.replace(a,"/")}catch(e){return t}},status_right_pane=function(){const e=$("body > .right-side-tabs-toggler");return!!e.is(":visible")&&e.hasClass("opened")},is_visible_right_pane=function(){return 1==session.server.data("data-slider-fixed")||status_right_pane()},open_right_pane=function(){const e=$("body > .right-side-tabs-toggler");if(!e.is(":visible"))return!1;status_right_pane()||e.trigger("click")},close_right_pane=function(){const e=$("body > .right-side-tabs-toggler");if(!e.is(":visible"))return!1;status_right_pane()&&e.trigger("click")},destroy_right_pane=function(){session.server.data("data-slider-fixed",0);const e=$("body > .right-side-tabs-toggler, body > #right-side-tabs");e.length&&e.remove()};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=$("#system-status, #extended_sysinfo-1"),a=$(".right-side-tabs-dismiss .fa-reload, ._sync_sysinfo_.fa-reload");a.addClass("fa-spin-fast cursor-na"),t.addClass("updating"),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_clear_cache=1",dataType:"JSON",complete:function(t){$.ajax({type:"GET",url:v___location_prefix+"/"+e+"/recollect.cgi",data:!1,dataType:"text",success:function(e){session.status(e)&&v___location_file===vars.pages.dashboard&&plugins.pjax.page.link.get(location.href)},complete:function(e){a.removeClass("fa-spin-fast cursor-na")},error:function(e){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&&!theme.errors.onload()&&"number"!=typeof v___target_servers_index_loading){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_refresh_sysinfo")+'" data-target-tooltip-callback="tooltip_side_slider_refresh_sysinfo" class="fa fa-fw fa-lg fa-reload"'+theme_inject_tooltip("tooltip_side_slider_refresh_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 onclick="theme_cache_clear(this,1);return false" data-ss-dd-theme-clear>'+theme_language("settings_right_clear_local_cache")+'</a></li><li><a data-ss-dd-theme-configuration href="'+v___location_prefix+'/tconfig.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><a href="javascript:;" onclick="theme.help.show()" tabindex="-1">'+Convert.strUpFirst(theme_language("theme_xhred_hotkeys_help_title"))+'</a></li><li class="dropdown-submenu right'+(1!=session.server.data("upgrade")?" hidden":"")+'" 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><i aria-label="'+theme_language("tooltip_side_slider_notifications_motd_add")+'" data-target-tooltip-callback="tooltip_side_slider_notifications_motd_add" class="fa2 fa-fw fa-lg fa2-message pull-right"'+theme_inject_tooltip("tooltip_side_slider_notifications_motd_add",!1,"auto left",!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"><span class="badge badge-danger hidden"></span><i class="fa fa-fw fa-lg fa-bell"></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"==session.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&&plugins.pjax.page.link.get(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+"/"+vars.pages.dashboard,get_onbeforeunload_message(e,this)):plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard),$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")}).on("click","#right-side-tabs [data-click-about]",function(e){theme_update_notice()}).on("click",".right-side-tabs-toggler:not(.hidden)",function(e){"object"==typeof stats&&stats.sys.toggle(),$(this).hasClass("opened")?($(this).removeClass("opened"),$(this).animate({right:"0"},0),$(".right-side-tabs").animate({right:"-302"},0)):($(this).addClass("opened"),$(this).animate({right:"300"},0),$(".right-side-tabs").animate({right:"0"},0))}),$(".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"},vars.navigation.animation_speed,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"),plugins.pjax.page.link.get($(this).attr("href"))):($(this).addClass("opacity-0_3"),mark_notification_read($(this).attr("id"),$(this).data("type"),1,1))}),$(".right-side-tabs-dismiss i.fa2-message").on("click",function(e){var t=session.server.data("user"),a=function(){return $(document.body).find(".modal.user_motd_data")},i=function(){return a().find(".user-motd-content")},n=function(e,t){var a=t||i().find(".form-group-sm").length+1,n=e.time?e.time:dayjs().unix()+""+parseInt(1e4*Math.random()),s='<div class="form-group-sm" data-motd="'+n+'" data-id="motd-'+n+'">';s+='<input aria-label="'+theme_language("global_message")+'" type="text" class="form-control" value="'+Convert.quoteEscape(e.msg)+'" id="motd-'+n+'" placeholder="'+theme_language("global_message")+'">';var o=["all","adm"];if(1==session.server.data("pro-vm")&&o.push("res"),core.moduleAvailable("virtual-server")&&o.push("vm"),core.moduleAvailable("server-manager")&&o.push("cm"),core.moduleAvailable("usermin")&&o.push("um"),o.length>2){s+="<select>";for(a=0;a<o.length;a++)s+='<option value="'+o[a]+'"'+(o[a]===e.target?" selected":"")+">"+theme_language("modal_motd_select_"+o[a])+"</option>";s+="</select>"}return s+='<button onclick="this.parentElement.remove()" data-toggle="tooltip" data-title="'+theme_language("modal_motd_btn_rm")+'" aria-label="'+theme_language("modal_motd_btn_rm")+'" class="btn btn-default heighter-28"><i class="fa fa-fw fa-minus-square"></i></button>',s+="</div>"},s="";$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=file&action=motd&subtype=get",data:!1,dataType:"JSON",success:function(e){$.isEmptyObject(e.motd)||$.each($(e.motd),function(e,a){var i=a[t].length-1;a[t].forEach(function(e,t){s||(s='<div class="form-inline form-flex">'),s+=n(e,t+1),t===i&&(s+="</div>")})}),$("body").click().append('<div class="modal fade8 fade10 user_motd_data" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static"><div class="modal-dialog modal-lg" role="document"><div class="modal-content"><div class="modal-header"><h4><i class="fa2 fa-fw fa2-message" aria-hidden="true"></i> '+theme_language("modal_motd_title")+'</h4><button type="button" class="close" data-dismiss="modal" data-toggle="tooltip" data-title="'+theme_language("global_close")+'" aria-label="'+theme_language("global_close")+'"><span aria-hidden="true">×</span></button></div><div class="modal-body"><small class="text-muted">'+theme_language("modal_motd_desc")+'</small><div class="user-motd-content">'+s+'</div><button data-toggle="tooltip" data-title="'+theme_language("modal_motd_btn_save")+'" aria-label="'+theme_language("modal_motd_btn_save")+'" class="btn btn-grey pull-right btn-round btn-user-motd-save"><i class="fa fa-fw fa-floppy-o"></i></button><button data-toggle="tooltip" data-title="'+theme_language("modal_motd_btn_add")+'" aria-label="'+theme_language("modal_motd_btn_add")+'" class="btn btn-success pull-right btn-round btn-user-motd-add"><i class="fa fa-fw fa-plus"></i></button></div></div></div></div>'),a().on("shown.bs.modal",function(){a().tooltip({selector:'button[data-toggle="tooltip"]',sanitize:!1,container:"body",html:!1,delay:{show:vars.plugins.tooltip.delay.show/3,hide:0}}),a().find(".btn-user-motd-add").on("click",function(e){e.preventDefault();var t=i(),a=t.find(".form-flex"),s=a.length,o="";s||(o='<div class="form-inline form-flex">'),o+=n({msg:"",time:""}),s||(o+="</div>"),s?a.append(o).find('[data-motd]:last-child > input[type="text"]').focus():t.append(o).find('[data-motd]:last-child > input[type="text"]').focus()}),a().find(".btn-user-motd-save").on("click",function(e){var t=$(this);if(e.preventDefault(),!t.hasClass("disabled")){var a=[];$.each(i().find("[data-motd]"),function(){var e=$(this).attr("data-motd"),t=$.trim($(this).find('[type="text"]').val()),i=$(this).find("select"),n=i.length?i.val():"all";t&&a.push({msg:t,time:e,target:n})}),spinnerfy_buttons(t),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=file&action=motd&subtype=set&data="+JSON.stringify(a),data:!1,dataType:"JSON",complete:function(e){setTimeout(function(){despinnerfy_button(t)},300)},error:function(e){despinnerfy_button(t),session.status(e.responseText)}})}})}).on("hidden.bs.modal",function(){a().remove()}).modal("show")},error:function(e){session.status(e.responseText)}})}),$(".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"},vars.navigation.animation_speed,function(){$(this).remove(),remove_all_notifications(),mark_no_notifications()})}),$(".right-side-tabs .tab-pane").mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:250,scrollButtons:!1}),mark_no_notifications(),check_notifications()}else session.server.data("data-slider-fixed","0"),$(".right-side-tabs-toggler").addClass("hidden")}),{test:test_visibility,state:set_visibility,status:status_right_pane,visible:is_visible_right_pane,open:open_right_pane,close:close_right_pane,destroy:destroy_right_pane,badge:display_badges,notifications:{check:check_notifications,dismiss:mark_group_notifications_read},update:{favorites:update_right_pane_favorites,stats:{graphs:{flatten:stats_units_flatten,plunk:stats_units_pluck}}},data:{fetch:sysinfo_update}}}(),plugins.notifications=function(){var e=function(e,t){var a="",i=e.match(/(?:<a.*?href=\s*['"](.*?)['">])|(?:<a.*?href=\s*(.*?)[\s*>])/),n=function(e,a,i){return t?"<x-a "+(i?'target="_blank" ':"")+'href="'+a+'">'+e.replace("<i","<span").replace("</i","</span")+"</x-a>":e};return i&&(i[1]||i[2])&&((a=i[1]||i[2])&&(a.startsWith("http:")||a.startsWith("https:")||a.includes("ftp:")||a.includes("ftps:")||a.startsWith("//"))?e=e+" "+n('<i class="fa fa-fw fa-external-link"></i>',a,!0):a&&(e=e+" "+n('<i class="fa fa-fw fa-link"></i>',a,!1)),e=(e=e.replace(/<a.*?>/gi," ")).replace(/<\/a>/gi," ")),{msg:e,link:a}},t={get:function(){$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=file&action=motd&subtype=receive",dataType:"JSON",success:function(e){t._pull(),t._show(e)},error:function(e){session.status(e.responseText)}})},_pull_timer:1e10,_pull:function(){var e=this,t=6e4*(("undefined"==typeof settings_side_slider_background_refresh_time?5:settings_side_slider_background_refresh_time>0?settings_side_slider_background_refresh_time:5)+2);clearInterval(this._pull_timer),t&&(e._pull_timer=setInterval(function(){e.get()},t))},_show:function(t){if(!$.isEmptyObject(t.motd)){var a=session.server.data("user"),i=function(e){var t=v___server_hostname+"-"+a+"-"+_+"_"+e;return t=t.replace(/[^0-9a-z]/gi,"")};for(var n in t.motd)for(var s in t.motd[n]){var o=t.motd[n][s],r=o.msg,l=theme_language("notifications_motd2"),_="user_motd",c=o.time.substring(0,10),d=i(o.time+"-"+n),p=e(r,!0),u=p.link;if(r=p.msg,!localStorage.getItem(d)){var f=plugins.messenger.post({icon:"fa2 fa2-message fa-1_25x",title:l+' <span class="item-time"> '+dayjs.unix(c).fromNow()+"</span><p></p>",message:r,type:"success",id:d,position:"bottomRight",close:!1,timeout:!1,progressBar:!1,buttons:plugins.messenger.toast.construct.button(theme_language("global_hide").toUpperCase(),function(e){localStorage.setItem(e.id.replace("toastid_-_",""),"1")}),layout:2,balloon:!0}).find("x-a");f.length&&f.on("click",function(e){e.preventDefault();var t=$(this).attr("href"),a=$(this).attr("target");a?window.open(t,a):plugins.pjax.page.link.get(t)}),notifications(l,r,_,u,1)}}}}};return{user:t.get,administrator:function(){},desktop:function(){}}}(),plugins.dashboard=function(){var e=".container-fluid .panel-group .panel:not(#system-status)",t="panel-heading",a="dashboard_panels",i=function(){return v___location_path&&v___location_path.indexOf("/"+vars.pages.dashboard)>-1};return document.addEventListener("DOMContentLoaded",function(){$(document.body).on("shown.bs.collapse hidden.bs.collapse",""+e,function(){var i=$(""+e),n={};$.each(i,function(){$target=$(this).find("."+t),id=$target.attr("id"),state=$target.next(".panel-collapse").hasClass("in"),n[id]=state}),localStorage.setItem(v___server_hostname+"-"+v___server_username+"-"+a,JSON.stringify(n))})}),{restore:function(){if(i()){var n=localStorage.getItem(v___server_hostname+"-"+v___server_username+"-"+a);if(null!=n){n=Object.entries(JSON.parse(n));for(var s=0;s<n.length;s++){var o=n[s][1]?"show":"hide";$(e+" ."+t+'[id="'+n[s][0]+'"]').next().collapse(o),s===n.length-1&&setTimeout(function(){document.querySelector("#content").scrollTo({top:vars.events.scrolled})})}}}},reset:function(){localStorage.removeItem(v___server_hostname+"-"+v___server_username+"-"+a)},visible:i,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))},alertsHTML:function(){$.each(["system-status","right-side-tabs-sysinfo"],function(e,t){const a=$("#"+t+' .alert > [action*="webmin/upgrade.cgi"] [data-entry], #'+t+' .alert > [action*="webmin/fix_repo.cgi"] [data-entry]'),i=a.parents("form").attr("action");if(a.length){const e=a.parent(".btn");let t="fa-update";i&&i.toString().includes("fix_repo")&&(t="fa-git-pull"),e.length&&(e.find(".fa").length||e.removeClass("btn-default").addClass("btn-warning").prepend('<i class="fa fa-fw '+t+'"></i>'))}})},formsURLs:function(){$.each($("#system-status form:visible, #right-side-tabs form:visible"),function(){var e=$(this).attr("action"),t="?";e&&!e.includes("licence.cgi")&&(e.includes("?")&&(t="&"),$(this).attr("action",e+t+"pass-query-string=1&no-cache=1&no-query=string"))})}},system_info:function(e,t){var a="#content #system-status ",i="table > tbody > tr > td ",n=function(e){return"+ .panel-group > .panel > #"+e+"-virtual-server-1-collapse "},s="Software Versions",o=3==v___user_level?"Account Information":"System Information",r=function(e){return e&&/(webmin|virtualmin|cloudmin|usermin|authentic)/i.test(e)},l=[],_=[],c=!1,d=[],p=[],u=[],f=[],g="",m=function(){if(e){var a=f.length-1;$.each($(f),function(e,n){if("string"==typeof n){var l=" ".repeat(o.length-(i=n).length+(i===o?3:i===s?4:5)+2);g+=(0!==e?"\n|":"|")+n.toUpperCase()+l+"| |\n|---|---|\n"}else{var _=Object.keys(n),d=Object.values(n);if(c&&i===o&&r(_))return!0;g+="| "+$.trim(_[0])+" | "+$.trim(d[0])+" |\n"}a===e&&!t&&(g+="\n\n\n")})}else{var i;$.each($(f),function(e,t){if("string"==typeof t)i=t,g+=(0!==e?"\n":"")+t+"\n";else{var a=Object.keys(t),n=Object.values(t);if(c&&i===o&&r(a))return!0;g+=$.trim(a[0])+": "+$.trim(n[0])+"\n"}})}};return $.each($(a+" > .panel-body > "+i),function(){var e=$(this)[0].outerText;l.push(e),r(e)&&(_.push(e),_.push($(this).next()[0].outerText))}).promise().done(function(){$.each($(l),function(e,t){0===e&&f.push(o),1&e&&f.push({[l[e-1]]:t})}).promise().done(function(){$.each($(""+a+n("sysinfo")+i),function(){d.push($(this)[0].outerText)}).promise().done(function(){d.length&&_.length&&(d=_.concat(d),c=!0),$.each($(d),function(e,t){0===e?f.push(s):1&e&&e-1>0&&f.push({[d[e-1]]:t})}).promise().done(function(){$.each($(""+a+n("ftypes")+i),function(){p.push($(this)[0].outerText)}).promise().done(function(){$.each($(p),function(e,t){0===e&&f.push("Virtualmin Counts"),1&e&&f.push({[p[e-1]]:t})}).promise().done(function(){t?$.each($(""+a+n("serial")+i),function(){u.push($(this)[0].outerText)}).promise().done(function(){$.each($(u),function(e,t){0===e&&f.push("Virtualmin License"),1&e&&f.push({[u[e-1]]:t})}).promise().done(function(){m()})}):m()})})})})})}),g},events:function(e,t,a){if(i()){if("reset"===e&&(t="keyup",a={holdModifer:1}),"reset"===e||"support-header-icon"===e){var n=$("#content #system-status ._support_ticket_cnt ._support_ticket_"),s="fa2-life-ring-solid";a.holdModifer&&n.toggleClass(s,"keydown"===t)}if("reset"===e||"copy/paste-header-icon"===e){n=$("#content #system-status ._clipboard_sysinfo_cnt ._clipboard_sysinfo_"),s="fa2-clipboard-text";a.holdModifer&&n.toggleClass(s,"keydown"===t)}}}}}(),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={},!session.server.data("webprefix")||a.includes("!edit")||a.includes("!view")?favorite.link=link_type_convert(a,1):favorite.link=link_type_convert(a.replace(session.server.data("webprefix"),""),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){session.status(e)&&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+'> </i> <span class="f__c">'+a+' <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=snippets.parser.fileviewer.getSuffix(!1,1),s=n[0],o=n[1],r=n[2],l=n[3],_=n[4],c=n[5],d=n[6],p=n[7],u=n[8];e.includes(v___module_file_manager)&&(e=get_module_link_from_menu(v___module_file_manager));var f,g,m,v=e.replace(/["\\]/g,"\\$&");$("#favorites-menu .favorites-menu-content").find((f="",g=[v,v+s+c+p,v+o+c+d+p,v+r+c+u,v+l+c+d+u,v+_+c],m="",$.each(g,function(e,t){f&&(m=", "),f+=m+'a[href="'+t+'"], a[href="'+link_type_convert(t,2)+'"]'}),f)).parent("li").remove(),!e.startsWith("!edit")&&!e.startsWith("!view")&&$("#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"]):not([href^="!view"])',function(){var e=$(this).attr("href"),t=e.startsWith("!edit"),a=e.startsWith("!view"),i=Test.strContains(e,"virtual-server/")||Test.strContains(e,"?virtual-server")||Test.strContains(e,"=virtual-server")?"dom":!!(Test.strContains(e,"server-manager/")||Test.strContains(e,"?server-manager")||Test.strContains(e,"=server-manager"))&&"id",n=Test.strContains(e,"gparent")?"gparent":i,s=!!Test.strContains(e,"module")&&uri_parse_param("module",e),o=URI.parseQuery(URI(e).query())[n],r=$('.switch-toggle input:not([id="open_'+("dom"===i?"virtualmin":"id"===i?"cloudmin":"webmin")+'"]):checked').length;s&&s===plugins.navigation.state.module()||(i&&o?setTimeout(function(){$("aside select").val()==o&&($t_uri_virtualmin||$t_uri_cloudmin)||("dom"===i?plugins.navigation.get.virtualmin(o):"id"===i&&plugins.navigation.get.cloudmin(o))},300):t||a||!r||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=$(this),r=snippets.parser.fileviewer.getOpts(o)[5],l=o.is(".favorites-editor"),_=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,"/")},c=function(e){return _(e)+snippets.parser.fileviewer.getSuffix(e)},d=function(e){var t=e+snippets.parser.fileviewer.getSuffix(o);return e!=t?t:""},p=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")},u=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")},f=$(".jsPanel button.favorites-editor"+(r?".viewer":"")).not(o);if(o.hasClass("fa-star-o")){if(p(o),l||r){$.each(f,function(){return!(!r||$(this).hasClass("viewer"))||!(r||!$(this).hasClass("viewer"))||(_($(this))!==_(o)||r||p($(this)),void(r&&c($(this))===d(_(o))&&p($(this))))}),t=_(o);var g=Convert.htmlEscape(o.prev("[data-file-container]").attr("title")||t);if(2===get_access_level()||3===get_access_level()||4===get_access_level()){var m=new RegExp("^"+get_user_home(),""),v=new RegExp("\\("+get_user_home(),"");t=t.replace(m,""),g=g.replace(v,"(")}var h="!edit ";r&&(t=d(t),h="!view "),t&&n(h+t,theme_language(r?"file_viewer":"file_editor")+" - "+g,r?"x wbm2-viewer":"editor")}else{var b=theme.config._.form.tconfig(),y="tconfig.cgi"===v___location_file&&b.length,x=v___location_path===v___location_prefix+"/config.cgi"||v___location_path===v___location_prefix+"/uconfig.cgi"||v___location_path===v___location_prefix+"/mconfig.cgi"||v___location_path===v___location_prefix+"/tconfig.cgi",k=Convert.htmlEscape($("#headln2c > span[data-main_title]").text().trim()),w=Convert.htmlEscape($(".has-sub.active").text().trim()),A=Convert.htmlEscape($(".sub_active").text().trim()),C=A.trim()!==k.trim(),S="",I="";if(!$t_uri_virtualmin&&!$t_uri_cloudmin||x||(S=Convert.htmlEscape($("aside .ui_select option:selected").text())),$('body[class^="'+v___module_file_manager+'"]').length&&"function"==typeof fm_get_current_path_from_menu){var T=function(e){return 2!=get_access_level()&&3!=get_access_level()||fm_user_data&&fm_user_data.allowed_paths&&1===fm_user_data.allowed_paths.length&&(e="~"+e),e};I=(I=fm_get_current_path_from_menu())?"["+Convert.htmlEscape(T(Convert.uriDecodeComponent(I)))+"]":"["+(I=T("/"))+"]"}if(S&&core.curModule("xterm")&&(A=S+" - "+A),x){if(y)A=k;else{var E=v___location_file.match(/(.*?)\./),V=E?E[1]:parseInt(1e4*Math.random());b=$('.container-fluid form[action*="'+V+'_save.cgi"]');var j=Convert.htmlEscape($("#headln2c > span[data-sub_title] span").text().trim());w=w?w+" ⇾ "+j:j,A=k}k=$.trim(b.find(".table-title").text())}else!$t_uri_virtualmin&&!$t_uri_cloudmin||!v___location_query||!($t_uri_virtualmin&&!v___location_query.includes("dom=")||$t_uri_cloudmin&&!v___location_query.includes("id="))||core.curModule(v___module_file_manager)||core.curModule("webminlog")||core.curModule("phpini")||core.curModule("apache")||core.curModule("logviewer")||core.curModule("syslog")||(S="");var O=vars.events.keypressed.alt&&!vars.events.keypressed.shift&&!vars.events.keypressed.ctrl&&vars.events.keypressed.meta,z=(S.length?O?"":S+" - ":"")+(w.length?w+" ⇾ ":"")+(A.length?A+(k.length&&C?": ":""):"")+(C?k:"")+(I.length?" "+I:"");O?(theme_copy_to_clipboard(z),console.warn("Copied to clipboard:"),console.log(z),u(o),setTimeout(function(){plugins.messenger.post({type:"success",icon:"fa fa-exclamation-circle fa-lg fa-fw",id:"copiedToClipboardSuccess",title:theme_language("global_success"),message:theme_language("filemanager_copying_successful").replace(".",String()),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,close:!0,timeout:3e3,progressBar:!0})},22)):(i.includes(v___module_file_manager)&&(i=get_module_link_from_menu(v___module_file_manager)),n(i,z,x&&y?"theme":$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":"webmin"))}a()}else u(o),l||r?($.each(f,function(){return!(!r||$(this).hasClass("viewer"))||!(r||!$(this).hasClass("viewer"))||(_($(this))!==_(o)||r||u($(this)),void(r&&c($(this))===d(_(o))&&u($(this))))}),t=_(o),h="!edit ",r&&(t=d(t),h="!view "),t&&s(h+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"},0)}).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"},0)}),$("#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(),r=0,l="!edit ";if(e?(s=e.find(".favorites-editor")).hasClass("viewer")&&(l="!view ",r=1):(s=$("#headln2c > .favorites, .xcustom-favorites"),(a=link_type_convert(URI(v___location).resource(),1)).includes(v___module_file_manager)&&(a=get_module_link_from_menu(v___module_file_manager)),a&&(n=a.includes("index.cgi")?a.replace("index.cgi",""):a+"index.cgi")),t&&(t=t.replace(/\/\//g,"/")),r&&(t+=snippets.parser.fileviewer.getSuffix(s)),a&&$.inArray(a,o)>-1||n&&$.inArray(n,o)>-1||o.includes(l+t)){var _=theme_language("favorites_remove");s.addClass("fa-star").removeClass("fa-star-o").attr("aria-label",_),s.attr("data-original-title",_).tooltip("fixTitle")}else{var c=theme_language("favorites_add");s.removeClass("fa-star").addClass("fa-star-o").attr("aria-label",c),s.attr("data-original-title",c).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.details=function(){const e="details-state-",t=function(){return document.querySelectorAll(".container-fluid > .panel > .panel-body table tr td details")},a=function(e){const t=e.closest("tr");if(!t)return null;const a=t.querySelector(".col_label");if(!a)return null;const i=a.textContent.trim();return i?Convert.hash8(i):null},i=function(t){const i=a(t);return!!i&&("true"!==t.dataset.detailsBound&&(t.addEventListener("toggle",function(t){!function(t,a){const i=t.open,n=e+a;sessionStorage.setItem(n,i?"open":"closed")}(t.target,i)}),t.dataset.detailsBound="true",!0))};return{bind_and_apply:function(){const n=t();n.forEach(function(t){const n=a(t);n&&(i(t)&&0,function(t,a){const i=e+a,n=sessionStorage.getItem(i);"open"===n?t.open=!0:"closed"===n&&(t.open=!1)}(t,n))})},get_state_report:function(){const i=t(),n=[];return i.forEach(function(t){const i=a(t);if(!i)return;const s=e+i,o=sessionStorage.getItem(s);n.push({identifier:i,currentState:t.open?"open":"closed",savedState:o||"not-set",isBound:"true"===t.dataset.detailsBound})}),n},clear_all_states:function(){const t=Object.keys(sessionStorage);t.forEach(function(t){t.startsWith(e)&&sessionStorage.removeItem(t)})},get_all_states:function(){const t={};return Object.keys(sessionStorage).forEach(function(a){if(a.startsWith(e)){const i=a.replace(e,"");t[i]=sessionStorage.getItem(a)}}),t}}}(),plugins.update_notice=function(){$(document.body).on("hidden.bs.modal","#update_notice",function(){$(".modal#update_notice").remove()}),$(document.body).on("show.bs.modal","#update_notice",function(){var e=$(this),t=e.find(".modal-body > h4:first-child").text().split(/\s+/)[1],a=e.find(".versionSeparator:last").text(),i=e.find(".versionSeparator").length,n=theme.version(),s=a+" ... "+n,o=a.match(/([\d]+\.[\d]+)/),r=n.match(/([\d]+\.[\d]+)/);o&&r&&(o=o[1],r=r[1]),$(this).addClass("update_notice_subvers");var l=e.find(".versionSeparator"),_=theme_language("global_development_version");$.each(l,function(){$(this).attr("target","_blank")});var c=$(this).find(".modal-body h4"),d=$(this).find(".modal-body h4:first");if(!$(this).find(".modal-body h4:first .diffctl").length){var p=new RegExp(RegExp.quote(t),"g");i&&(c.replaceText(p,"<span>"+s+"</span>"),c.replaceText(/Version/,"Versions"));var u=$(this).find('.modal-body h4:contains("alpha"), .modal-body h4:contains("beta"), .modal-body h4:contains("RC")').length;if(c.length&&u){var f=$(this).find('.modal-body a[href*="authentic-theme/releases"]:first').text().match(/-?(?:\d+(?:\.\d*)?|\.\d+)/);latest_release=parseFloat(f?f[0]:theme.version());var g=d.text().split("..."),m=e.find('a.versionSeparator[href*="releases"]:not(:empty)').first().text();g[1]&&(g[0].replace("Versions ",""),d.text(d.text())),d.append('<a class="btn btn-transparent diffctl text-dark text-force-link-hover'+(f||m?"":" hidden")+'" target="_blank" href="https://github.com/authentic-theme/authentic-theme/compare/'+(m.length?m:latest_release)+'...master"><i class="fa fa-lg fa-git-pull fa-flip-horizontal"></i></a>'),d.after('<span class="versionSeparator version_dev" style="margin-top: -32px;margin-right: 0;"><span class="smaller text-danger"><span>'+_+"</span></span></span>")}else d.append('<a target="_blank" class="btn btn-transparent diffctl changelogctl text-dark text-force-link-hover margined-left-3 vertical-align-baseline" href="https://github.com/authentic-theme/authentic-theme/blob/master/CHANGELOG.md#changelog"><i class="fa fa-1_50x fa-changelog'+(i?" multi-ver":" single_ver")+'"></i></a>').append('<a target="_blank" href="https://github.com/authentic-theme/authentic-theme/releases/tag/'+t+'" class="versionSeparator margined-top-10">'+t+"</a>")}})},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 .icons-container, .row.icons-row .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(session.status(e)){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]'),i=e.prev('input[type="text"][title]');return i.length&&i.tooltip({title:i.attr("title")}),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(){setTimeout(function(){$("body").addClass("mppopup-open")},120),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("hide.bs.modal",".mppopup",function(){var e=$(".modal.in");e.removeClass("in"),$("body").removeClass("mppopup-open"),setTimeout(function(){e.addClass("in")},150)}).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"),setTimeout(function(){$(".modal.in").length&&$("body").addClass("modal-open")})}).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},hidden:function(){e=!1,$("._xcustom_file_select").remove()}};var i=$(this),s=Convert.htmlEscape(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",""),c=!1;if(i.addClass("disabled").attr("disabled","disabled"),l[1]){var d=l[1].replace("encodeURIComponent(ifield.value)","refInputCurrValSafe");d=d.replace('"+"',"").replace('"+',"").replace("refInputCurrValSafe",r);var p=function(t,a,i,n,o,r,l,c,d,p,u){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> '+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> '+theme_language("global_select")+"</button></span></div></div>";var g='<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">×</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(g),refInput.addClass("refInputData"),$("body .mppopup").on("show.bs.modal",function(){u&&"function"==typeof u&&u()}).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")},u=function(e){var t=parseInt(session.server.data("webprefix-proxy")),a=String();t&&(a=v___location_prefix),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=a+e[1]:$v__mpp__g_op=a+"/"+e[1]},f=String(),g="cron_chooser",m='form[action*="backup_sched.cgi"], form[action*="save_newquotas.cgi"], form[action*="save_validate.cgi"]',v='[name="enabled_hidden"], [name="sched_hidden"], [name="when_hidden"]';if(m+=', form[action*="save_backup.cgi"], form[action*="save_vbackup.cgi"], form[action*="save_vsync.cgi"]',_===g){let e=$(m).find(v).val(),t=g+".cgi";(f=(l?l[1].match(/^[^?#]*?\.cgi/i)[0]:t)+"?complex="+e)&&$(m).find('[name="enabled"][value="2"]').prop("checked",!0).trigger("change")}$.ajax({type:"POST",url:f||d,data:!1,dataType:"text",success:function(e){if(session.status(e)){var t=e,a=e.match('<frame.*?src="([^"]+)"');if(_===g){var i=t;i=(i=$(i).filter("form")[0].outerHTML).replace(/<table/,"<table class='table table-condensed table-hardcoded' "),c=function(){$(".popup_"+g+" form").on("submit",function(e){e.preventDefault(),e.stopPropagation();var t=$(this),a=$(m),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*"(.*?)"/),s=e.match(/top\.opener\.cfield\.title\s*=\s*"(.*?)"/);n&&refInput.val(n[1]),s&&refInput.attr("title",s[1]),refInput.attr("title")&&(refInput.data("bs.tooltip")?refInput.attr("data-original-title",refInput.attr("title")).tooltip("fixTitle"):refInput.tooltip({title:refInput.attr("title")})),t&&a.find(v).val(t[1]),i.modal("hide")}})})},p('<div class="popup_'+g+'">'+i+"</div>",0,0,refInput,1,"modal-lg","modal-no-header",1,1,c,function(){page_radios_evolve('.popup_cron_chooser input[type="radio"]:not(.iawobject)')})}else if($.isArray(a)&&a[1]&&-1===a[1].indexOf("&multi=1"))u(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(session.status(e)){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=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>')),p(t,0,0,refInput,0)}}});else if($.isArray(a))u(a),$.ajax({type:"POST",url:$v__mpp__g_op,data:!1,dataType:"text",success:function(e){if(session.status(e)){var t=e.replace(/<(!doctype|script|link|meta)\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/(script|link|meta)>/gi,"").replace(/<\/body>|<\/html>/gi,""),a=$(t).filter("table").html();p(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();p('<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("/chooser.cgi?add=0&type=&chroot=/&file='+encodeURIComponent(i)+', "chooser"); " 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(){nav_display(),nav_select(),nav_servers_index();const e=function(){const e=$(this).find(".select2-container--open, .select2-results, .autocomplete-suggestions");if(e.length>0){const t="wheel.aside touchmove.aside";e.off(t),e.on(t,function(e){e.stopPropagation()})}};$("aside").on("click",".select2-container .select2-selection__arrow b",function(e){e.preventDefault(),e.stopPropagation()}).on("click",'a[href*="/cwaf/"], a[href*="/file/"], a[href*="server-manager/bwgraph.cgi"], a[href*="history.cgi"]',function(e){e.preventDefault(),e.stopPropagation(),window.open($(this).attr("href"),"_blank")}).on("contextmenu auxclick",".switch-toggle label",function(e){const t=this;if(e.preventDefault(),t._processing)return;t._processing=!0,setTimeout(function(){t._processing=!1},99);const a=$(this).attr("for").replace("open_","");if($(this).prev("input").is(":checked")){let e=v___location_href;set_server_theme_temp_data("goto",link_type_convert(e,1)),setTimeout(function(){theme_open_new_tab(e)},200)}else if("virtualmin"===a||"cloudmin"===a){let e,t=window["settings_right_"+a+"_default"],i="cloudmin"===a?"server-manager":"virtual-server";e="/sysinfo.cgi?mod="+i,"index.cgi"===t?e="/"+i+"/index.cgi":/^\d+$/.test(t)&&(e="/"+i+("cloudmin"===a?`/edit_serv.cgi?id=${t}`:`/summary_domain.cgi?dom=${t}`));const n=link_type_convert(e,2);set_server_theme_temp_data("goto",link_type_convert(n,1)),setTimeout(function(){theme_open_new_tab(n)},200)}else if("webmail"===a){let e=v___location_prefix+"/mailbox/index.cgi?"+$__theme_navigation;set_server_theme_temp_data("goto",link_type_convert(e,1)),setTimeout(function(){theme_open_new_tab(e)},200)}else{let e=v___location_prefix+"/"+vars.pages.dashboard+"?"+$__theme_navigation;"undefined"!=typeof settings_webmin_default_module&&settings_webmin_default_module&&core.moduleAvailable(settings_webmin_default_module)&&(e=v___location_prefix+"/"+settings_webmin_default_module+"/?"+$__theme_navigation),set_server_theme_temp_data("goto",link_type_convert(e,1)),setTimeout(function(){theme_open_new_tab(e)},200)}}).on("click",".switch-toggle input.dynamic",function(e){if(plugins.navigation.state.blocked()&&!e.isTrigger)return void e.preventDefault();const t=plugins.navigation.state.module(1,1);if(get_onbeforeunload_status()){e.preventDefault();var a=$(".switch-toggle input:checked").attr("id");get_onbeforeunload_message([],{href:"::switch::"+a})}else nav_switch_set_position($(this).attr("id").replace("open_","")),"open_dashboard"!=$(this).attr("id")?get_navigation_and_content($(this).attr("id").replace("open_",""),t):plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard)}).on("focus",".sidebar-search",function(){$(".select2-dropdown.aside-select2").parent(".select2-container").remove(),nav_init_autocomplete("c",!1)}).on("blur",".sidebar-search",function(){setTimeout(function(){nav_init_autocomplete("c",!0)},150)}).on("click",'.navigation a[target="page"], .user-links a[target="page"]',function(){nav_hide()}).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){e.preventDefault(),e.stopPropagation();var t=1;if(e.target&&e.target.classList&&e.target.classList.value&&(e.target.classList.value.includes("fancytree")||e.target.classList.value.includes("label-danger"))&&(t=0),v___blocked_navigation=t,"undefined"==typeof $processing&&($processing=!1),!$processing){$processing=!0;var a=$("a",this).attr("href"),i=$("a",this).attr("target"),n=$(this);i&&$(".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]");"undefined"!=typeof settings_navigation_auto_fold_category&&!settings_navigation_auto_fold_category||e.is(n)||(e.removeClass("active"),"#search"!=e.find("a").attr("href")&&t&&$(e.find("a").attr("href")).slideUp(vars.navigation.animation_speed))})).done(function(){n.hasClass("active")?n.removeClass("active"):"#hide"!=a&&!i&&n.addClass("active"),setTimeout(function(){$(a).is(":visible")&&"#hide"!=a&&!i?n.addClass("active"):n.removeClass("active"),$processing=!1},2*vars.navigation.animation_speed>0?2*vars.navigation.animation_speed:1),$(a).slideToggle(vars.navigation.animation_speed)}),"#search"==a&&$('#sidebar input[name="search"]').focus()}}).on("click",".navigation > li.has-sub",function(){page.load.happening()&&(plugins.navigation.detectAllowed=!1)}).on("click",".navigation > li > ul.sub > li:not([data-link-inactive]):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(""),$("aside .navigation .fancytree-node.fancytree-active").removeClass("fancytree-active"),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){page.load.happening()&&(plugins.navigation.detectAllowed=!1),$(".__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("!"))if(core.moduleAvailable("xterm")){var i=a.includes("!edit ")||a.includes("!editor "),n=a.includes("!view ")||a.includes("!viewer ");if(i||n){var s=a.replace("!edit ","").replace("!editor ","").replace("!view ","").replace("!viewer ",""),o=s.split("\\").pop().split("/").pop(),r=s.replace("/"+o,"");plugins.navigation.collapse(),progress.start(),n?edit_file(o,r||"/",!1,1,0):edit_file(o,r||"/")}else plugins.terminal.open(a)}else core.moduleAvailable("shell")&&plugins.shell.open(a);else{$(this).find('input[name="title"]').remove();var l=get_nav_module_folder_name(1),_=theme_language("search_in_"+("mailbox"===l?"usermin":l));_=_||theme_language("filemanager_context_search"),$("<input>").attr({type:"hidden",name:"title",value:_}).appendTo($(this));var c=$(this).attr("action")+"?"+$(this).serialize();get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:c}):(plugins.pjax.page.link.get(c),t.val(""))}}).on("click","[data-collapse-trigger]",function(e){e.stopImmediatePropagation(),vars.navigation.pinned="1"==session.server.data("data-navigation-collapsed")?0:1,settings_navigation_always_collapse=!settings_navigation_always_collapse,settings_navigation_always_collapse?plugins.navigation.pin():plugins.navigation.unpin(),setTimeout(function(){page_resized()},0),$(window).resize()}).on("click",".user-links > li.favorites",function(){$(".favorites-menu-outer").addClass("hover")}).on("click",".user-link.palette-toggle",function(){theme_toggle_night_mode()}).on("click",".user-link.ported-console",function(){plugins.shell.available()&&(1==session.server.data("terminal")?plugins.terminal.open():plugins.shell.open())}).on("click",".user-links > li",function(e){if($(e.target).is($(this))){var t=$(this).find("a");t&&t[0]&&t[0].hasAttribute("data-nref")?location.href=t.attr("href"):$(this).find("a, [data-collapse-trigger]").trigger("click")}}).on("click",".__logout-link",function(){progress.start(),get_server_theme_temp_data("goto",0)}).on("click",".servers-index-link > a",function(e){e.preventDefault(),e.stopPropagation(),progress.start(),location.href=this.href}).mCustomScrollbar({axis:"y",theme:"minimal",scrollInertia:250,scrollButtons:!1,advanced:{autoScrollOnFocus:!1},callbacks:{whileScrolling:e,onScrollStart:function(){e.call(this),$(".popover-servers-index:visible").length&&$('aside [data-servers-index="popover"]').trigger("click")}}}),$("body").on("click",".popover-servers-index.in .popover-content a",function(e){e.preventDefault(),progress.start(),location.href=this.href})});const e=function(){var e=".navigation",t="undefined"==typeof settings_navigation_auto_fold_category||settings_navigation_auto_fold_category;t&&$(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(),t&&$(e+" > li.has-sub").removeClass("active"),t&&$(e+" > li > ul.sub").hide(),t&&$(e+" > li > a > i.fa.fa-folder-open-o").removeClass("fa-folder-open-o")},t=function(t,a){if(0!==v___theme_pjax_call&&!nav_exclude()){var i=function(e){return e?e.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").replace("/save_domain.cgi","/edit_domain.cgi"):e},n=!1,s=function(){if(n=!1,plugins.navigation.detectAllowed)if(void 0===t&&(n=!0),Test.arrContains(["webmin_search.cgi","tconfig.cgi","settings-editor_favorites_read.cgi"],v___location_file)||page_extended())e();else if(!v___blocked_navigation){if(void 0===a){var s=function(e){var t=":not([data-parent-hidden]):first",a='a[href*="'+e+'"]'+t;if(e&&e.includes("/virtual-server/")){var i=e.match(/.*(dom|gparent)=(\d+)/),n=e.match(/.*?\.cgi/);i&&i[1]&&i[2]&&n&&(a='a[href*="'+n[0]+'"][href*="'+i[1]+"="+i[2]+'"]'+t)}return a},o="/"===v___location_path?t:v___location_path+(v___location_query?"?"+v___location_query:"");if(v___initial_load&&!o)return;o||(o="/"),$nearExactMatchStatus=1,$superExactMatchStatus=0,$nearExactMatch=$('.navigation a[href*="'+o+'"]:not([data-parent-hidden]):first'),$nearExactMatchPostSave=$(".navigation "+s(o.replace("save_","edit_"))),$nearExactMatchPostList=$(".navigation "+s(o.replace("edit_","list_"))),$nearExactMatchPostListSingular=$(".navigation "+s(o.replace("edit_","list_").replace(".cgi","s.cgi"))),$nearExactMatchPostListPlural=$(".navigation "+s(o.replace("edit_","list_").replace(".cgi","es.cgi"))),$nearExactMatch.length||($nearExactMatch=$nearExactMatchPostSave,$nearExactMatch.length||($nearExactMatch=$nearExactMatchPostList,$nearExactMatch.length||($nearExactMatch=$nearExactMatchPostListSingular),$nearExactMatch.length||($nearExactMatch=$nearExactMatchPostListPlural))),Test.strContains(v___location_file||t,"cgi")&&$nearExactMatch.length?(t=$nearExactMatch.attr("href"),$nearExactMatchStatus=0):$('.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,$superExactMatchStatus=1):$('.navigation a[href^="'+v___location_resource+'"]:not([data-parent-hidden]):first').length?(t=v___location_resource,$nearExactMatchStatus=0):$('.navigation a[href="..'+v___location_resource+'"]:not([data-parent-hidden]):first').length&&(t=".."+v___location_resource,$superExactMatchStatus=1),t=i(t);var r="config.cgi"===v___location_file||"uconfig.cgi"===v___location_file,l="mconfig.cgi"===v___location_file&&uri_parse_param("module")===v___module_file_manager;r&&!l&&(t=$t_uri_virtualmin&&(check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?module=virtual-server",1))?v___location_prefix+"/config.cgi?virtual-server":$t_uri_cloudmin&&(check_location_resource("/config.cgi?server-manager")||check_location_resource("/config.cgi?module=server-manager",1))?v___location_prefix+"/config.cgi?server-manager":$t_uri_webmail?v___location_prefix+"/uconfig.cgi?mailbox":v___location_prefix+"/"+v___location_query+"/"),l&&(t=v___location_prefix+"/"+v___module_file_manager);var _=$t_uri_webmin||$t_uri_usermin;if(!t&&_)if(Test.strContains(v___location_file,".cgi")&&!Test.strContains(v___location_file,vars.pages.dashboard))t=v___location_path.replace(v___location_file,"");else if(!t){var c=new RegExp("^"+v___location_prefix,"i");t=session.server.data("data-uri").replace(c,"").split("/").filter(function(e){return 0!==e.length})[0],t=v___location_prefix+"/"+t}$superExactMatchStatus?targeted_menu_link=$('.navigation a[href="'+t+'"]:not([data-parent-hidden]):first, .navigation a[href="'+link_type_convert(t,2)+'"]:not([data-parent-hidden]):first'):(t&&(t.endsWith("/virtual-server/")||t.endsWith("/server-manager/"))&&(t+="index.cgi"),targeted_menu_link=$('.navigation a[href^="'+t+'"]:not([data-parent-hidden]):first')),targeted_menu_link.length&&e()}else{var d=".navigation a[href",p=":not([data-parent-hidden]):first";"progress"===a?(t=i(t),targeted_menu_link=$(d+'*="'+t+'"]'+p)):targeted_menu_link=$(d+'^="'+t+'"]'+p),targeted_menu_link.length&&e()}$("aside .navigation .fancytree-node.fancytree-active").removeClass("fancytree-active"),"/"!==t&&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")}};s(),n&&setTimeout(s,1)}};return nav_render_start=function(){plugins.navigation.load.reloading=!0,$(".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")},nav_render_stop=function(){plugins.navigation.load.initializing||(setTimeout(function(){plugins.navigation.load.reloading=!1},vars.navigation.reload_timeout),$("aside ul.user-html").removeClass("invisible"),$("body aside .mCSB_scrollTools, body ul.navigation, body ul.user-links").css("visibility","visible"),$("#_menu_loader").remove(),nav_select(),nav_servers_index(),bind_sameorigin(1),theme_to_new_tab(),nav_quirks())},nav_servers_index=function(){vars.navigation.servers_index_control=!1;var e=$('aside [data-servers-index="popover"]'),t=e.parent(),a=t.data("http-webmin-servers");e.length&&(vars.navigation.servers_index_control=!0,$.ajax({type:"GET",url:a+"index-json.cgi",dataType:"JSON",success:function(i){var n="",s=session.server.data("data-webprefix");i&&i.length>1&&(t.removeClass("hidden"),$.each(i,function(){s.endsWith(this.id)||(n+='<a href="'+a+"link.cgi/"+this.id+'/"><span><i class="fa2 fa-fw fa2-server-network"></i> '+Convert.htmlEscape(this.host)+(this.desc?" ("+Convert.htmlEscape(this.desc)+")":"")+"</span></a><br>")}),n&&e.popover({animation:"false",placement:"top",html:"true",container:"body",template:'<div class="popover popover-servers-index"><div class="arrow"></div><div class="popover-content"></div></div>',trigger:"click",content:n}),e.on("shown.bs.popover",function(){$(".popover-servers-index").removeClass("fade")}))}}))},nav_quirks=function(){var e=$('aside a[href*="'+v___module_file_manager+'"]');if(e&&e.length){var t=e.attr("href"),a=uri_parse_param("path",t);if(a&&!a.startsWith("/")&&!a.startsWith("%2F")){var i="/"+a,n=new URI(t).pathname()+"?path="+Convert.uriEncodeComponent(i);e.attr("href",n)}}},get_nav_loading=function(){return $("#_menu_loader").length},nav_display=function(){"none"==$("aside").css("transform")&&"1"!=$("html").attr("data-navigation-collapsed")&&$("aside").transition({x:settings_leftmenu_width},0,function(){$(".__logo")&&"none"==$(".__logo").css("transform")&&!$(".mobile-menu-toggler:visible").length&&$(".__logo").transition({y:"-140px"},1.7*vars.navigation.animation_speed)})},nav_hide=function(){var e=dayjs().unix()-vars.navigation.opened>=1,t="mobile-menu-toggler",a="__logo";"function"==typeof jQuery().transition&&$("."+t+":visible").length&&e&&($("."+a)&&$("."+a).transition({y:0},1.7*vars.navigation.animation_speed),$("aside, ."+t).transition({x:0},0,function(){$("."+t).removeClass("selected"),$("aside").addClass("hidden-xs")}))},nav_select=function(e){var t="body aside",a="select2";vars.navigation.select.back=!1,$(".form-control.sidebar-search").is(":focus")||$.each($(t+" select > option"),function(){var e=$(this).text().match(/^\s{0,6}/)[0].length,t=$(this).text();settings_leftmenu_vm_cm_dropdown_icons&&(6===e&&-1===t.indexOf("↱")?$(this).html(" ↱ "+t.replace(/\s/g,"")):4===e&&-1===t.indexOf("↱")?$(this).html(" ↱ "+t.replace(/\s/g,"")):2===e&&-1===t.indexOf("↴")&&$(this).html(" ↴ "+t.replace(/\s/g,"")))}).promise().done(function(){var i=$(t+" select");if(i.removeAttr("id"),i.length){i.removeAttr("onchange disabled"),i.data(a)&&i.select2("destroy"),i.unbind(a+":select"),i.select2({minimumResultsForSearch:3,dropdownParent:$("aside .select-dropdown-container"),dropdownCssClass:"aside-select2",matcher:function(e,t){return $.trim(e.term)?t.text.toLowerCase().indexOf(e.term.toLowerCase())>-1||t.element&&$(t.element).attr("title").toLowerCase().indexOf(e.term.toLowerCase())>-1?t:null:t}});i.data(a);e&&i.select2("open"),i.on(a+":selecting",function(){i.data("previous-value",$(this).val())}),i.on(a+":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_pre_default_content:[t]})):(get_nav_menu_virtualmin(t),get_pre_default_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_pre_default_content:[t]})):(get_nav_menu_cloudmin(t),get_pre_default_content(t)))});var n=".select2-dropdown.aside-select2",s=function(){$.each($(t+" select > option"),function(){$(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1&&$(n).find('li[id$="'+$(this).attr("value")+'"]').addClass("text-danger")})};i.on(a+":opening",function(){$(n).parent(".select2-container").remove(),setTimeout(function(){s();var e=n+" .select2-search__field",t="keyup.colorfilter";$(e).off(t),$(e).on("input.colorfilter "+t,function(){s()})},0),$(t).find("."+a+"-container:not(."+a+"), "+v___class_select2_leak).addClass(a+"-aside")}),i.on(a+":open",function(){setTimeout(function(){var e=document.querySelector(".select2-search__field");e&&e.focus()})}),i.on(a+":closing",function(){$(t).find("."+a+"-container, "+v___class_select2_leak).removeClass(a+"-aside")}),1===$(t+" select option").length&&($(t+" ."+a+" span").css("cursor","default"),$(t+" ."+a+" ."+a+"-selection__arrow").remove(),i.on(a+":open",function(){$(t+" ."+a+"-container ."+a+"-dropdown").css("opacity","0")})),$.each($(t+" select > option"),function(){if($(this).attr("style")&&$(this).attr("style").indexOf("italic")>-1){var e=$($("."+a+"-selection > ."+a+"-selection__rendered")[0]);e.text().trim()==$(this).text().trim()&&e.addClass("text-danger")}})}})},nav_select2_set_value=function(e,t){var a=$("aside select");a.val(e).trigger("change"),t&&a.trigger("select2:select")},nav_select2_set_to_previous_value=function(){if(vars.navigation.select.back){var e=$("aside select");nav_select2_set_value(e.data("previous-value"),0),vars.navigation.select.back=!1}},nav_init_autocomplete=function(e,t){var a="aside .form-control.sidebar-search",i=function(e){return e&&(e.includes("http://")||e.includes("https://")||e.includes("ftp://")||e.includes("ftps://"))?1:0};if("c"!=e||($("aside .autocomplete-suggestions").remove(),$(a).removeAttr("disabled"),$(a).autocomplete("dispose"),!get_onbeforeunload_status()&&$(a).val(""),!t)){var n={},s="li:not(.menu-exclude):not(.user-link)",o=$(s).hasClass("new-layout");$.each($(s+' > ul[id^="global_"].sub > '+s+' > a, ul.navigation > [data-after] > a, ul.navigation > li > a[href*="virtual-server/index.cgi"], ul.navigation > li > a[href*="virtualmin-wp-workbench"], '+(o?'ul.navigation > li > a[href$="virtual-server/domain_form.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"], '+s+' > a[target="page"][data-href="/'+vars.pages.dashboard+'"], '+s+' > a[target="page"][data-href="/virtual-server/pro/history.cgi"], '+s+' > a[target="page"][data-href="/server-manager/one_history.cgi"], '+s+' > a[target="page"][data-href="/server-manager/bwgraph.cgi"], '+s+' > a[target="page"][data-href="/server-manager/history.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_folders.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_ifolders.cgi"], '+s+' > a[target="page"][data-href="/mailbox/list_addresses.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_forward.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+s+' > a[target="page"][data-href="/filter/edit_auto.cgi"], '+s+' > a[target="page"][data-href="/filter/"], '+s+' > a[target="page"][data-href="/mailbox/edit_sig.cgi"]').each(function(){n[$(this).attr("data-href")]=$.trim($(this).text())});var r=function(e){return e&&e.includes("🔒")},l=$.map(n,function(e,t){if("undefined"!=t&&!r(e))return{value:e,url:t,data:{category:get_nav_module_name()}}}),_={};(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+"/logviewer/"||v___location_path==v___location_prefix+"/logviewer/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"||v___location_path==v___location_prefix+"/logviewer/"||v___location_path==v___location_prefix+"/logviewer/index.cgi")_["/"+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"||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+")")}}_[("/"==$(this).attr("href").substring(0,1)?"":"/")+v___location_directory_unslashed_trail_slashed+$(this).attr("href")]=e+($_description?" (":"")+$description+($_description?")":"")}});var c=$.map(_,function(e,t){if("undefined"!=t)return{value:e,url:t,data:{category:get_module_title()}}}),d={};$.each($(s+' > ul.sub:not([id^="global_"]) > '+s+' > a, ul.navigation > [data-linked]:not([data-after]) > a:not([href*="virtual-server/index.cgi"])'+(o?':not([href*="virtual-server/domain_form.cgi"])':"")+':not([href*="virtualmin-wp-workbench"]):not([href*="server-manager/index.cgi"])'),function(e,t){d[("/"==$(this).attr("href").substring(0,1)?"":"/")+$(this).attr("href")]=$.trim($(this).text())}),$(s+' > a[target="page"]:not([data-href="/acl/edit_user.cgi"],[data-href="/virtual-server/index.cgi"],[data-href="/'+vars.pages.dashboard+'"],[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||nav_dashboard_switch_available()||(d[$(this).attr("data-href")]=$.trim($(this).text()))});var p=$.map(d,function(e,t){if("undefined"!=t){var a=r(e);return{value:a?"":e,url:a?"":t,data:{category:$("aside .select2-selection__rendered").text()?'<span style="font-style: italic">'+$("aside .select2-selection__rendered").clone().children().remove().end().text()+"</span>":get_nav_module_name()}}}}),u=c.concat(p).concat(l);try{const e="x-hidden";$.map(u,function(t,a){if("object"==typeof settings_autocomplete_extra_associations_privileged){var i=session.server.data("language"),n=settings_autocomplete_extra_associations_privileged[i]?settings_autocomplete_extra_associations_privileged[i]:settings_autocomplete_extra_associations_privileged.en;if("object"==typeof n)for(const[i,s]of Object.entries(n))if("object"==typeof s)for(const[i,n]of Object.entries(s))if("object"==typeof n)for(const[s,o]of Object.entries(n))t&&t.url&&t.url.includes(i+"/")&&t.url.includes(o[0]+".cgi")&&(t.value=t.value+"<"+e+">"+o[1]+"</"+e+">",u[a]=t);else t&&t.url&&(t.url.endsWith("/"+i+"/")||t.url.endsWith("/"+i+"/index.cgi"))&&(t.value=t.value+"<"+e+">"+n+"</"+e+">",u[a]=t)}})}catch(e){}$(a).on("keydown",function(e){if("Tab"===e.key)return e.preventDefault(),e.stopImmediatePropagation(),void $(this).blur();34!=e.keyCode&&33!=e.keyCode&&20!=e.keyCode&&17!=e.keyCode&&16!=e.keyCode&&9!=e.keyCode||(e.preventDefault(),e.stopPropagation())}),$(a).autocomplete({appendTo:$("aside .autocomplete-dropdown-container")[0],lookup:u,orientation:"auto",forceFixPosition:!0,onSelect:function(e,t){var a=$.Autocomplete.externalEvent;if(!$.isEmptyObject(a)){var n=a.keyCode?a.keyCode:a.which;if(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey||20===n||32===n||33===n||34===n||35===n||36===n||37===n||38===n||39===n||40===n||45===n||46===n||112===n||113===n||114===n||115===n||116===n||117===n||118===n||119===n||120===n||121===n||122===n||123===n||144===n||145===n)return}!0===nav_dashboard_switch_available()&&$t_uri_dashboard&&2!=get_access_level()&&4!=get_access_level()&&nav_switch_set_position("webmin"),$(this).val("").blur(),nav_hide();var s=i(e.url);if("/"==e.url.substring(0,1)||s){if(e.url&&(s||e.url.includes("/file/")||e.url.includes("/cwaf/")||e.url.includes("virtual-server/pro/history.cgi")||e.url.includes("server-manager/bwgraph.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 o=e.url;if(v___location_prefix&&!o.startsWith(v___location_prefix)&&(o=v___location_prefix+o),Test.strContains(v___location_prefix,v___target_servers_index)&&o&&o.endsWith("/servers/"))return;if(o&&(o.includes("switch_user.cgi")||o.includes("/shell")||o.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:o})):plugins.pjax.page.link.get(o,["reference"])}else if(e.url&&e.url.indexOf(":::")>-1){var r=e.url.split(":::")[0];get_onbeforeunload_status()?get_onbeforeunload_message(p,this,{"plugins.navigation.select.set":[r,1]}):(nav_render_start(),nav_select2_set_value(r,1))}},groupBy:"category"})}},nav_get_goto=function(){var e="data-goto",t=$("aside").find("li["+e+"]"),a=t.attr(e);return t.remove(),a},nav_sync=function(e){const t=$t_uri_virtualmin?"virtualmin":!!$t_uri_cloudmin&&"cloudmin";t?"virtualmin"==t?set_nav_correspond_virtualmin(location.href,e):"cloudmin"==t?set_nav_correspond_cloudmin(location.href,e):"function"==typeof e&&e.call():"function"==typeof e&&e.call()},nav_update_check=function(e){if(Test.strContains(e.responseText,"theme_post_save")||Test.strContains(e.responseText,"theme_select_server")){const i=e.responseText.match(/theme_post_save(.*)$/gm),n=e.responseText.match(/theme_select_server(.*)$/gm);if(i){var t=i[0].split("=");plugins.navigation.reload(t[1],function(){var e=location.pathname;e&&(e=e.replace(/^\//,""),plugins.navigation.detect(e,"progress"))})}else if(n&&!plugins.navigation.load.initializing){var a=n[0].split("=");$("aside select").val()!=a[1]&&plugins.navigation.reload("-1"==a[1]?"0":a[1])}}},nav_update=function(e,t){if(!get_onbeforeunload_status()){e=void 0===e||-1==e||""==e?$("aside select").val():e;var a=$t_uri_virtualmin?"virtualmin":$t_uri_cloudmin?"cloudmin":$t_uri_usermin?"usermin":$t_uri_webmin?"webmin":"mail";"webmin"==a?(nav_switch_set_position("webmin"),get_nav_menu_webmin("webmin",t)):"virtualmin"==a?(nav_switch_set_position("virtualmin"),get_nav_menu_virtualmin(e,t)):"cloudmin"==a?(nav_switch_set_position("cloudmin"),get_nav_menu_cloudmin(e,t)):"usermin"==a?(nav_switch_set_position("usermin"),get_nav_menu_webmin("usermin",t)):"mail"==a&&(nav_switch_set_position("webmail"),get_nav_menu_webmin("webmail",t))}},nav_update_current=function(e,t){t||(t=600);var a=$(".switch-toggle"+(e?" #open_"+e:' [id^="open_"]')+":checked");if(a.length){nav_render_start();var i=0;i||(i++,setTimeout(function(){a.click()},t))}},nav_form_control=function(e){var t="aside",a="form",i=a+"s",n="select",s=$(t+" "+n),o=s.data(n+"2");$(t+" .sidebar-search").val()||(e||(vars.navigation.select.obj=o&&"undefined"!=o&&!e&&s.select2("isOpen")),e?$.each($(t).find(i),function(){$(this).replaceTagName(a)}).promise().done(function(){nav_select(vars.navigation.select.obj)}):(o&&s.select2("destroy"),$.each($(t).find(a),function(){$(this).replaceTagName(i)})))},nav_lock_width=function(){if(!1===vars.navigation.width_initial&&(vars.navigation.width_initial=settings_leftmenu_width),matchMedia("(max-width: 767px)").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=vars.navigation.width_initial,page_adjust(settings_leftmenu_width,settings_leftmenu_width)}},nav_dashboard_switch_available=function(){return"1"==nav_switch_available("dashboard")},nav_switch_available=function(e){return e=e?'[id="open_'+e+'"]':String(),$(".switch-toggle input"+e).length},nav_dashboard_switch_select=function(){nav_switch_set_position("dashboard"),e(),plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard)},nav_reset_switch_position=function(){nav_reset_switch_position.current||(nav_reset_switch_position.current=nav_switch_get_position()),nav_reset_switch_position.current&&nav_switch_set_position(nav_reset_switch_position.current)},nav_switch_get_position=function(){var e=$('aside .switch-toggle [name="product-switcher"]:checked').attr("id");return"string"==typeof e?e.replace("open_",""):null},nav_switch_set_position=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)}),update_nav_module_name())},check_server_id=async function(e,t){const a=$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=can&action=view_dom&"+t+"="+e,dataType:"JSON"});return await a},get_nav_menu_webmin=function(a,i){if(!get_onbeforeunload_status()&&(plugins.navigation.load.reloading&&"webmail"===nav_switch_get_position()&&(plugins.navigation.load.reloading=!1),!plugins.navigation.state.blocked())){nav_render_start();var n="webmail"==a?"webmail":session.server.data("product");nav_switch_set_position(n),vars.ajax.processing.navMenu&&vars.ajax.processing.navMenu.abort(),vars.ajax.processing.navMenu=$.ajax({type:"GET",url:v___location_prefix+"/xhr.cgi?type=nav&action=get&subtype="+n,dataType:"JSON",success:function(e){nav_reset_switch_position.current=n,$("body ul.navigation").html(e.menu),plugins.shell.link(),nav_render_stop(),!session.server.data("loading")&&t(),"webmail"===a&&settings_mail_ui&&3==get_access_level()&&("object"==typeof mail&&"object"==typeof mail.folders&&"function"==typeof mail.folders.get?mail.folders.get():load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.folders.get()"])),setTimeout(function(){"function"==typeof i&&i.call()},10)},error:function(t){session.status(t.responseText),nav_render_stop(),e()}})}},get_nav_menu_virtualmin=function(a,i,n){if(get_onbeforeunload_status())return;if(plugins.navigation.state.blocked())return;nav_render_start(),nav_switch_set_position("virtualmin"),vars.ajax.processing.navMenu&&vars.ajax.processing.navMenu.abort();const s=function(a,i){a&&!/^[0-9]/.test(a)&&(a=""),vars.ajax.processing.navMenu=$.ajax({type:"GET",url:v___location_prefix+"/xhr.cgi?type=nav&action=get&subtype=virtualmin&dom="+a,dataType:"JSON",success:function(e){setTimeout(function(){vars.navigation.select.last=a},vars.event.stopped_typing_delay),nav_reset_switch_position.current="virtualmin",$("body ul.navigation").html(e.menu),plugins.shell.link(),nav_render_stop(),!session.server.data("loading")&&t(),setTimeout(function(){"function"==typeof i&&i(a,!0)},10)},error:function(t){session.status(t.responseText),nav_render_stop(),e()}})};n?async function(){const e=await check_server_id(a,"dom");s(e.view_dom||settings_right_virtualmin_default,i)}():s(a,i)},get_nav_menu_cloudmin=function(a,i){get_onbeforeunload_status()||plugins.navigation.state.blocked()||(nav_render_start(),nav_switch_set_position("cloudmin"),vars.ajax.processing.navMenu&&vars.ajax.processing.navMenu.abort(),vars.ajax.processing.navMenu=$.ajax({type:"GET",url:v___location_prefix+"/xhr.cgi?type=nav&action=get&subtype=cloudmin&sid="+a,dataType:"JSON",success:function(e){nav_reset_switch_position.current="cloudmin",$("body ul.navigation").html(e.menu),plugins.shell.link(),nav_render_stop(),!session.server.data("loading")&&t(),setTimeout(function(){"function"==typeof i&&i.call()},10)},error:function(t){session.status(t.responseText),nav_render_stop(),e()}}))},nav_get_opened=function(){const e=$("body > .mobile-menu-toggler");return!e.is(":visible")||e.offset().left>1},nav_set_opened=function(){const e=$("body > .mobile-menu-toggler:visible");e.length&&!nav_get_opened()&&e.trigger("click")},nav_set_closed=function(){const e=$("body > .mobile-menu-toggler:visible");e.length&&nav_get_opened()&&e.trigger("click")},get_nav_module_name=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},get_nav_module_folder_name=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},update_nav_module_name=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},set_nav_correspond_virtualmin=function(e,t){e="object"==typeof e?e.attr("href"):e;var a=URI.parseQuery(URI(e).query()).dom||URI.parseQuery(URI(e).query()).gparent,i=$('select[name="dom"]').val();a&&a!=i?get_nav_menu_virtualmin(a,t):"function"==typeof t&&t.call()},set_nav_correspond_cloudmin=function(e,t){e="object"==typeof e?e.attr("href"):e;var a=(a=URI.parseQuery(URI(e).query()).id)||URI.parseQuery(URI(e).query()).d,i=$('select[name="sid"]').val();a&&a!=i?get_nav_menu_cloudmin(a,t):"function"==typeof t&&t.call()},nav_exclude=function(){return!(!settings_mail_ui||"view_mail.cgi"!==v___location_file&&"send_mail.cgi"!==v___location_file&&"reply_mail.cgi"!==v___location_file)},nav_blocked=function(){return!(!plugins.navigation.load.reloading||plugins.navigation.load.initializing)},{reset:e,select:{set:nav_select2_set_value,back:nav_select2_set_to_previous_value,load:nav_select},detect:t,detectAllowed:!0,load:{start:nav_render_start,stop:nav_render_stop},collapse:nav_hide,pin:function(){session.server.data("data-navigation-collapsed",1),$(".mobile-menu-toggler").removeClass("visible-xs"),nav_hide()},unpin:function(){session.server.data("data-navigation-collapsed",0),$(".mobile-menu-toggler").addClass("visible-xs")},reload:nav_update,reload_check:nav_update_check,sync:nav_sync,update:nav_update_current,deform:nav_form_control,lock:nav_lock_width,switch:{dashboard:{get:nav_dashboard_switch_available,set:nav_dashboard_switch_select},available:nav_switch_available,get:nav_switch_get_position,set:nav_switch_set_position,reset:nav_reset_switch_position},get:{webmin:get_nav_menu_webmin,virtualmin:get_nav_menu_virtualmin,cloudmin:get_nav_menu_cloudmin},intersect:{virtualmin:set_nav_correspond_virtualmin,cloudmin:set_nav_correspond_cloudmin},state:{opened:nav_get_opened,close:nav_set_closed,open:nav_set_opened,title:get_nav_module_name,module:get_nav_module_folder_name,update:update_nav_module_name,loading:get_nav_loading,target:nav_get_goto,blocked:nav_blocked}}}(),plugins.messenger=function(){var e=function(e){return(e=e||"toastid_-_")+Date.now()+""+parseInt(1e6*Math.random())},t={get:function(e){var t=$(document).find("#toastid_-_"+e);return t.length?t:null},hide:function(e){var t=this.get(e);t&&t.length&&iziToast.hide({},t[0])},destroy:function(e){var t=this.get(e);t&&t.length&&$("#toastid_-_"+e).parent(".iziToast-capsule").remove()}};return document.addEventListener("DOMContentLoaded",function(){iziToast.settings({timeout:2e3,drag:$.browser.mobile,transitionIn:"fadeIn",transitionOut:"fadeOut",animateInside:!1,position:"bottomCenter",layout:2,displayMode:2})}),{post:function(t,a,i,n,s,o,r){var l,_=function(e){return"info"===e||"success"===e||"warning"===e||"error"===e?e:"show"},c=_(i),d=function(e){var t=String();return e&&e.includes("fa2")&&(t="2"),"fa%pack fa%pack-%ico".replace(/%pack/g,t).replace(/%ico/,e)},p=function(e){return"placed-"+(e.position||"bottomCenter")+" type-"+e.type+" message-length-"+(e.message.length<=32?32:e.message.length<128?128:e.message.length<256?256:e.message.length<384?384:e.message.length<512?512:"1024")+" message-delay-"+(Test.numeric(e.timeout)&&parseInt(e.timeout)<=5?"short":"long")+" message-delay-timeout-"+parseInt(e.timeout)};if("object"!=typeof t||$.isEmptyObject(t)||$.isArray(t)){n=n?"toastid_-_"+n:null,s=void 0===s||Boolean(s),o=$.isArray(o)&&o.length?o[1]?(o[1]=Convert.strUpFirst(o[1].toString()),o.join("")):o.join(""):"bottomCenter";var u=2,f={};if(!$.isEmptyObject(r)){var g=r.cancel.label,m=r.cancel.action,v=r.cancel.layout||1;f=plugins.messenger.toast.construct.button(g,m),u=v}var h,b=null,y=null;if($.isArray(t)?(b=t[0]||"",y=t[1]):"string"==typeof t&&t&&(h=t.match(/<*.?class=["'](.*?)["']><\/*.?>(.*)/))?(b=h[1],y=h[2]):y=t,b&&(b=d(b)),!y)return void console.warn("Cannot post notification toast as message text is missing");var x="0"!=a&&(parseInt(a)||2);l={icon:b,title:String(),message:y,position:o,class:p({position:o,message:y,type:c,timeout:x}),id:n,close:s,onClosing:function(){"function"==typeof r&&r.call()},buttons:f,layout:u,timeout:x?1e3*x:x}}else(l=t).id&&(l.id="toastid_-_"+l.id),c=_(l.type),l.type=c,l.icon&&(l.icon=d(l.icon)),l.class=(l.class?l.class+" ":String())+p(l);if(l.id||(l.id=e()),l.zindex||(l.zindex=10010),"object"==typeof iziToast)return iziToast[c](l),$("#"+l.id);console.warn("Cannot load iziToast notification plugin")},ask:function(t){return defaults={timeout:2e4,close:!1,overlay:!0,zindex:999999999,displayMode:"once",id:e(),color:"yellow",position:"center",buttons:[["<button><b>"+theme_language("global_yes").toUpperCase()+"</b></button>",function(e,t){e.hide({transitionOut:"fadeOut"},t,"yes")},!0],["<button>"+theme_language("global_no").toUpperCase()+"</button>",function(e,t){e.hide({transitionOut:"fadeOut"},t,"no")}]],onClosing:function(e,a,i){"yes"===i&&t.onCloseCallback&&"function"==typeof t.onCloseCallback&&setTimeout(function(){t.onCloseCallback.call()},101)}},defaults=$.extend(defaults,t||{}),iziToast.question(defaults),$("#"+defaults.id)},toast:{get:t.get,hide:t.hide,destroy:t.destroy,hideAll:iziToast.destroy,construct:{button:function(t,a){var i=e("toastBtnClose");return[["<button>"+t+"</button>",function(e,t){e.hide({onClosing:function(e,t,n){n===i&&"function"==typeof a&&a.call(this,t)}},t,i)},!0]]}}},events:function(e,t,a){if("reset"===e&&(t="keyup",a={holdModifer:1}),"reset"===e||"message-user-select"===e){var i=$(".iziToast > .iziToast-body > .iziToast-texts > .iziToast-message");a.holdModifer&&i.toggleClass("user-select-all","keydown"===t)}}}}(),plugins.upload=function(e){const t=e.attr("onsubmit");e.removeAttr("onsubmit").on("submit.fm",function(e){const a=$(this);if(a.find('input[type="file"]')[0].files.length){let e=t.match(/window\.open\(["']([^"]*)["']/),i=a.attr("action"),n=uri_parse_param2("id",i);if(e&&e[1]&&(e=e[1]),!n||!e||"string"!=typeof e)return void console.warn("Unable to initiate the upload tracker - missing tracker URL or ID!");$.ajax({xhr:function(){const e=new window.XMLHttpRequest;let t=0;return e.addEventListener("progress",function(e){let a=e.target.responseText,i=(regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1)),s=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);s&&(s=s||t?parseInt((s.match(/|/g)||[]).length/50*100):0,s||t++,s>100&&(s=100),i&&progress_percent.control(n,"success",s,!1,!0))},!1),e},type:a.attr("method"),url:e})}})},plugins.filter={options:function(e){var t='body[data-uri*="/'+v___location_file+'"] form[action="'+v___location_file+'"]',a="autocomplete-suggestions",i=" .select2 + .end_submits",n=i+" > .btn-group > .dropdown-toggle",s=$(n).parent(),o=n+" + ul"+" > li ",r=o+" > input";e&&e.unlock&&s.removeClass("cursor-na").find(".dropdown-toggle").removeClass("pointer-events-none").find(".cspinner").remove(),s.attr("data-placement","auto top").data("placement","auto top").tooltip("fixTitle"),e&&e.tooltip&&e.tooltip.title&&s.attr("data-original-title",theme_language(e.tooltip.title)).data("original-title",theme_language(e.tooltip.title)).attr("data-title",theme_language(e.tooltip.title)).data("title",theme_language(e.tooltip.title)).tooltip("fixTitle"),$(n).parent().on("hidden.bs.dropdown",function(){$(r).val("").blur().trigger("input")}),$(n).parent().on("shown.bs.dropdown",function(){var s=$(this);$(r).autocomplete({lookup:e&&e.data?e.data:config_quick_access,minChars:0,appendTo:$(o),onSearchComplete:function(){var e=$(this).next("."+a);width=e.outerWidth()-20,parseInt(width)>0&&$(this).width(width)},onSelect:function(a){var i=$.Autocomplete.externalEvent;if(!$.isEmptyObject(i)){var s=i.keyCode?i.keyCode:i.which;if(i.ctrlKey||i.shiftKey||i.altKey||i.metaKey||20===s||32===s||33===s||34===s||35===s||36===s||37===s||38===s||39===s||40===s||45===s||46===s||112===s||113===s||114===s||115===s||116===s||117===s||118===s||119===s||120===s||121===s||122===s||123===s||144===s||145===s)return}data_url_query=v___location_file+"?module="+($(t).find('input[name="module"]').val()||"")+"§ion=",e&&e.url&&(data_url_query=e.url);var o=data_url_query+a.section+"&search="+($(this).val()||"");$(this).val("").blur(),$(n).parent().trigger("click"),$(this).autocomplete("dispose"),plugins.pjax.page.link.get(o)},groupBy:"category",showNoSuggestionNotice:!0,noSuggestionNotice:theme_language("global_no_results_found")}),$(r).focus(),$(r).on("keydown.configauto",function(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)){var t=$(this).next("."+a);t&&t.length&&(t[0].scrollTop=0),$(this).off("keydown.configauto")}});var l=$(i).prev().prev("select"),_=l.val();if(_){var c=l.find('option[value="'+_+'"]').text(),d=$(i).find("."+a).find("strong:contains("+c+")");d&&d.length&&(d[0].parentNode.parentNode.scrollTop=d[0].offsetTop)}$(r).off("keydown.cqa").on("keydown.cqa",function(e){13==e.keyCode&&e.preventDefault(),27==e.keyCode&&s.trigger("click")})});var l=uri_parse_param("search");if(l){var _=$('.container-fluid td:contains("'+l+'")').last().parent();_&&_.length&&(_[0].scrollIntoView(),setTimeout(function(){_.find("td").first().addClass("faa-vertical-narrow animated animated-count-1"),setTimeout(function(){var e=_.find("td").last().find('input:not([type="radio"]), input[type="radio"]:checked, textarea, select').first();e&&e.length&&e[0].focus()},740)},0))}}},plugins.pjax=function(){var e={_:null,set:function(e){this._=e},get:function(e){return this._?this._.getResponseHeader(e):null},getAll:function(){if(this._){var e=this._.getAllResponseHeaders().trim().split(/[\r\n]+/),t={};return e.forEach(function(e){var a=e.split(": "),i=a.shift(),n=a.join(": ");t[i]=n}),t}return null},send:{data:{},set:function(e){this.data=e},get:function(){var e=this.data;return this.data={},e}}},t={refresh:function(e,t){if(this.modal=$(".modal.in").length,!this.modal||t){if(t&&$(".modal.in").modal("hide"),$("#content .progressive-content").length){const e=$(".container-fluid .page_footer_submit[href]").first();if(e&&e.length){const t=e.attr("href");if(t&&t.length)return t.startsWith("javascript:")?void e[0].click():void plugins.pjax.page.link.get(t)}return void console.warn("Cannot refresh progressive page")}if(location.pathname&&location.pathname.includes("/xerror"))return window.history.back(),void console.warn("Cannot refresh error page");if(e&&set_onbeforeunload_status(0,0),get_onbeforeunload_status())get_onbeforeunload_message(!1,"plugins.pjax.page.link.get(v___location_resource, false, false)","ev");else{var a=vars.previous_request,i=vars.source_request,n=unbuffered_header_processor_allow(!(!a||!a.target)&&a.target.action);if("submit"===a.type){if(Test.str_contains_multi(a.target.action,["delete","add","remove"])||Test.str_contains_multi_regex($(a.currentTarget).serialize(),"::M::=[^0&\\s]",["delete","add","remove"])){var s=$('.container-fluid form [data-entry="view_refresh"]');return s&&1===s.length&&s.trigger("click"),void console.warn("Cannot refresh modifier page")}get_pjax_action_submit(a,!1)}else n&&i.length?plugins.pjax.page.link.get(i,!1,!1):plugins.pjax.page.link.get(v___location_resource,!1,!1)}}else console.warn("Cannot refresh the page with opened modal window")},link:{pre:function(e){const t=vars.pages.dashboard,a=plugins.navigation.state.module();return e&&e.endsWith(t)&&($t_uri_virtualmin||$t_uri_cloudmin)&&(e+=`?mod=${a}`),e},get:function(e,t,a){plugins.navigation.detectAllowed=!0;var i=void 0===a||!0===a||1==a;v___initial_load&&(i=!1,e&&window.history.replaceState(null,document.title,link_type_convert(e,2))),get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:e}):(set_pjax_send_headers(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:plugins.pjax.page.link.pre(e),timeout:0,push:i,type:get_pjax_type($type||e),container:"[data-dcontainer]",fragment:"[data-dcontainer]",callback:t})))},alter:function(e){return e=function(e){var t=e,a=localStorage.getItem(v___server_hostname+"-"+v___server_username+"-fm-last-visited-dir");if(a&&t&&"string"==typeof t&&t.includes("/"+v___module_file_manager)){if(!uri_parse_param2("path",e)){var i="path="+a;return t.includes(".cgi")?t.includes(".cgi?")?t+="&"+i:t+="?"+i:t+="/index.cgi?"+i,t.replace(/[\/]+/g,"/"),t}return e}return e}(e)}},interaction:{set:function(e){this.last=e},get:function(e){return this.now=Date.now(),e?[this.last,this.now]:parseInt((this.now-(this.last||this.now))/1e3)}},events:{reset:function(){this.beforeSend._=[],this.start._=[],this.success._=[],this.complete._=[],this.beforeReplace._=[],this.end._=[]},beforeSend:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}},start:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}},success:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}},complete:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}},beforeReplace:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}},end:{_:[],set:function(e){"function"==typeof e&&this._.push(e)},get:function(){!$.isEmptyObject(this._)&&this._.forEach(function(e){e.call()}),this._=[]}}}};return{headers:{set:e.set,get:e.get,getAll:e.getAll,send:e.send},page:{refresh:t.refresh,link:t.link,fetch:t.link.get,interaction:{set:t.interaction.set,get:t.interaction.get},events:{reset:t.events.reset,beforeSend:{set:t.events.beforeSend.set,get:t.events.beforeSend.get},start:{set:t.events.start.set,get:t.events.start.get},success:{set:t.events.success.set,get:t.events.success.get},complete:{set:t.events.complete.set,get:t.events.complete.get},beforeReplace:{set:t.events.beforeReplace.set,get:t.events.beforeReplace.get},end:{set:t.events.end.set,get:t.events.end.get}}}}}(),plugins.page=function(){const e={register:function(){var t,a;t=e.refresh,a=plugins.pjax.headers.get("refresh"),t.clear(),Test.numeric(a)&&(a=parseInt(a))>=1&&(t.refreshTimer=setInterval(function(){var e=$(quirks.active_element());e.is('input[type="search"]')||e.is('input[type="text"]')||!(vars.page_interaction<=0||plugins.pjax.page.interaction.get()>4)||plugins.pjax.page.refresh()},1e3*a))},refresh:{clear:function(){"number"==typeof this.refreshTimer&&clearInterval(this.refreshTimer)}},mousemove:function(){const e=$(document.body),t="mousemove.tracker",a="#content";e.off(t,a),settings_auto_open_panels_on_proximity&&matchMedia("(any-hover: hover)").matches&&(matchMedia("(max-width: 864px)").matches||parseInt(session.server.data("data-navigation-collapsed")))&&e.on(t,a,function(e){const t=$(window).width(),a=this;e.pageX<=15&&!a._leftA&&!a._leftAStart?(a._leftAStart=!0,setTimeout(function(){a._leftA=!0},1.7*vars.navigation.animation_speed+3),plugins.navigation.state.open()):e.pageX>15&&a._leftA&&(a._leftA=!1,a._leftAStart=!1,plugins.navigation.state.close()),e.pageX>=t-15&&a._rightA&&a._rightAStart?(a._rightAStart=!1,setTimeout(function(){a._rightA=!1},1.7*vars.navigation.animation_speed+3),plugins.slider.open()):e.pageX<t-15&&!a._rightA&&(a._rightA=!0,a._rightAStart=!0,plugins.slider.close())})},pjax:{before:function(){var e=$("#content .select2-hidden-accessible");e.length&&e.select2("close")},start:function(){}}};return{format:{columns:{columns:function(e,t){const a=function(){const e=v___module||"_root",t=v___location_file||String(),a={"server-manager":["console.cgi"],bind8:["whois.cgi"],man:["view_man.cgi"],custom:["index.cgi",""],mailboxes:["view_mail.cgi","reply_mail.cgi"],mailbox:["view_mail.cgi","reply_mail.cgi"],"virtual-server":["view_records.cgi"],_root:[vars.pages.dashboard]};return!a[e]||a[e]&&!a[e].includes(t)},i=function(){const e=v___module||"_root";return!$('[data-table-type="ui-table"] .CodeMirror, [data-tbody-type="ui-table"] .CodeMirror').length||["init"].includes(e)},n=function(){return config_portable_table_rows_to_columns&&a()&&i()};if(!e)return n();let s=!1;const o=$(document.body),r="layout-column",l=$(document.body).find('.container-fluid > .panel > .panel-body [data-row-type="ui-table"]'),_=l.length,c=matchMedia("(max-width: 992px)").matches,d=function(e,t){const a=e.closest('[data-row-type="ui-table"]');a.attr("data-column-span","all"),t&&a.attr("data-column-locked","1")},p=function(e,t){e.attr({"data-column-span":"all"}),t&&e.attr("data-column-locked","1")},u=function(){['[data-tbody-type="ui-table"]'].forEach(function(e){document.querySelectorAll(e).forEach(function(e){const t=$(e).find('input[name="all_mins"], input[name="all_hours"], input[name="all_days"], input[name="all_months"], input[name="all_weekdays"]');if(10===t.length){const e=t.first();d(e,!0),p(e.closest('[data-row-type="ui-table"]').prev("tr"),!0);const a=e.closest("table");a.hasClass("table-hardcoded")&&a.removeClass().addClass("table table-striped table-condensed no-hover").parent("td").removeClass().addClass("col_value col_header").parent("tr").attr({"data-row-type":"ui-table","data-column-span":"all","data-column-locked":"1"})}d($(e).find([".ui_multi_select_row",".opener_table_cell_style_small",".vui_features_sorted_grid",".opener_table_style",".CodeMirror",".dnd_updown","table.no-hover",'textarea[name="extracas"]','[data-radio-table] textarea[name="paste"]','input[name="php_log"]','input[name="resources_mode"]','textarea[name="dns"]','textarea[name="namedconf"]','textarea[name="web"]','textarea[name="content_web_html"]','textarea[name="disabled_web"]','textarea[name="logrotate"]','textarea[name="logrotate_files"]','textarea[name="ftp"]','input[name="ftp_dir"]',".col_value > textarea:only-child","[data-table-backup-mode]",'textarea[name="settings_leftmenu_custom_links"]',"td:only-child > .ui_textarea:first-child",'td[colspan="3"] > .awradio:first-child ~ br ~ .ui_textarea:last-child',"#show_backup_destination",'input[name="what_nofiles"]',"[data-row-type='ui-table']:first-child:last-child [colspan='2'].col_value.col_header:first-child:last-child > pre:first-child:last-child",".table-cell-padded"].join()).not("[name*='extra_']"),!0);const a=$(e).find('[data-row-type="ui-table"]');1===a.length&&a.attr("data-column-span","all"),$(e).find("tr").has("> td > hr[data-row-separator]").attr({"data-column-span":"all","data-column-separator":"1","data-column-locked":"1"});$(e).parents(".sub_table_container").parent("td").parent("tr").addClass("bg-transparent").find("> td").find("p, b").each(function(){$.trim($(this).html())||$(this).remove()});const i=$(e).find('> [data-row-type="ui-table"]'),n="column-overflow-x-auto",s="data-content-separator";i.each(function(){const e=$(this).find("> td.col_value"),t=e.innerWidth();!function(e){e.not("[data-column-locked]").removeAttr("data-column-span"),e.find("[data-content-separator]").remove()}($(this)),e.removeClass(n),Math.ceil($(this).outerWidth())<Math.ceil(this.scrollWidth)&&(config_portable_table_rows_to_columns_break?p($(this)):e.addClass(n));let a=0;e.children().each(function(){a+=$(this).outerWidth()}).promise().done(function(){if(Math.ceil(a)>=Math.ceil(t-12)){const t='input[type="text"], input[type="password"], textarea, select';e.find("> .awradio").each(function(){$(this).index()>0&&!$(this).prev().is("br, ["+s+"]")&&!$(this).next().is("br, .awradio, table")&&($(this).next().is(t)||$(this).next().has(t).length)&&$(this).before("<div "+s+"></div>")})}}),browser.detect.firefox()&&e.find(".ui_radio_table > tbody").find('tr:last-child:has(input[type="text"], select)').addClass("firefox__has_input_select")}),$(e).find("> tr:not([data-row-subtype='injected'])").each(function(){1===$(this).find("> td.col_value").children().length&&1===$(this).find("> td.col_value").children(".awobject").length&&$(this).attr("data-row-subtype","narrow")})})})},f="layout-columns",g="layout-width";$(document.documentElement).attr("data-"+f,config_portable_table_rows_to_columns_number),$(document.documentElement).attr("data-"+g,config_portable_table_rows_to_columns_width),o.removeAttr(r),_&&(c&&a()&&i()||n())?(o.attr(r,1),s=!0):o.removeAttr(r),_&&u();const m="ui-table-layout",v="data-"+m,h="a["+v+"]";if($(h).remove(),_&&settings_right_table_layout_control&&a()&&i()){const e=!(!config_portable_table_rows_to_columns&&!c),t=!!config_portable_table_rows_to_columns_break,a=e?"on":"off",i=e?' checked="checked"':String(),n=e?String():' checked="checked"',s=t?' checked="checked"':String(),_=t?String():' checked="checked"',d=c?"disabled ":String(),p="layout-popover",b="layout-type",y="layout-break",x="layout-remove-control",k="data-layout-opts",w="data-layout-control-save",A="why-explanation",C="#headln2l .btn-group";($(C).length?$(C):$(C+"-vertical-small")).first().append('<a data-toggle="popover" '+v+'="'+a+'" class="btn btn-link text-lighter text-decoration-none btn-squiare-headln2 text-lighter-slight visible-force"><i data-toggle="tooltip" data-title="'+theme_language("tooltip_columns_layout")+'" class="fa fa2 fa2-grid-'+a+'"></i></a>'),$(h).find("i").tooltip({container:"body",trigger:"hover",placement:"bottom",delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}});const S=`\n <div class="form-group margined-bottom-0">\n <label>${theme_language("columns_layout_variation")}</label>\n <br>\n <span class="awradio awobject">\n <input class="iawobject" type="radio" name="${b}" id="${b}-1" value="1"${i}>\n <label class="lawobject" for="${b}-1"> ${theme_language("global_vertical")} </label>\n </span> \n <span class="awradio awobject ${d}layout-variation-horizontal">\n <input ${d}class="iawobject" type="radio" name="${b}" id="${b}-0" value="0"${n}>\n <label class="lawobject" for="${b}-0"> ${theme_language("global_horizontal")} </label>\n <span data-title="${theme_language("columns_layout_variation_cannot_horizontal")}" class="fa fa-question-circle ${A}"></span>\n </span>\n <br>\n <div ${k} class="margined-left-8${e?String():" hidden"}">\n <br>\n <label>${theme_language("columns_layout_vertical_opts")}</label>\n <div class="row">\n <div class="margined-left-12 margined-top-4 col-xs-10">\n <label for="${f}" class="font-style-normal font-size-96p font-weight-normal margined-left-3">\n ${theme_language("columns_layout_vertical_opts_max_columns")}\n </label>\n <span class="badge badge-custom pull-right font-size-75p margined-top-2">\n ${config_portable_table_rows_to_columns_number}\n </span>\n <input value="${config_portable_table_rows_to_columns_number}" id="${f}" name="${f}" type="range" min="1" max="4" step="1" class="input-range--compact pd-lf-0">\n </div>\n <div class="margined-top-4 margined-left-12 col-xs-10">\n <label for="${g}" class="font-style-normal font-size-96p font-weight-normal margined-left-3">\n ${theme_language("columns_layout_vertical_opts_max_width")}\n </label>\n <span class="badge badge-custom pull-right font-size-75p margined-top-2">\n ${config_portable_table_rows_to_columns_width}px\n </span>\n <input value="${config_portable_table_rows_to_columns_width}" id="${g}" name="${g}" type="range" min="280" max="640" step="60" class="input-range--compact pd-lf-0">\n </div>\n <label class="font-style-normal font-size-96p font-weight-normal margined-left-30 margined-top-5">\n ${theme_language("columns_layout_vertical_opts_break_title")}\n </label>\n <br>\n <span class="awradio awobject margined-left-35 font-style-normal font-size-96p font-weight-normal">\n <input class="iawobject" type="radio" name="${y}" id="${y}-1" value="1"${s}>\n <label class="lawobject" for="${y}-1"> ${theme_language("columns_layout_vertical_opts_break_new")} </label>\n </span> \n <span class="awradio awobject margined-left-35 font-style-normal font-size-96p font-weight-normal">\n <input class="iawobject" type="radio" name="${y}" id="${y}-0" value="0"${_}>\n <label class="lawobject" for="${y}-0"> ${theme_language("columns_layout_vertical_opts_break_scroll")} </label>\n </span>\n <br>\n </div>\n </div>\n <span class="margined-top-17 margined-left-2 awcheckbox awobject">\n <input class="iawobject" type="checkbox" name="${x}" value="1" id="${x}">\n <label class="lawobject" for="${x}"> <span data-label-text class="font-weight-medium"> ${theme_language("columns_layout_remove")}</span> </label>\n </span>\n </div>\n <div ${w} class="btn-group w-100p margined-bottom-3 margined-top-15">\n <button type="button" class="btn btn-success btn-xs btn-block">\n <i class="fa fa-check-circle-o"></i> \n <span>${theme_language("global_save")}</span>\n </button>\n </div>\n `;$(h).popover({html:!0,sanitize:!1,container:"#content",title:function(){return theme_language("columns_layout_title")+'<button type="button" class="close margined-top-0" data-dismiss="popover" aria-label="Close"><span aria-hidden="true">×</span></button>'},content:function(){return S},placement:window.matchMedia("(max-width: 767px)").matches?"left":"right"}),$("."+p).remove(),$(h).on("inserted.bs.popover",function(){const e=$(this).attr("aria-describedby"),t=$("#"+e),a=t.find(".close"),i=t.find("["+k+"]"),n=t.find('input[name="'+b+'"]'),s=t.find('input[name="'+f+'"]'),_=t.find('input[name="'+g+'"]'),c=t.find('input[name="'+y+'"]'),d=t.find('input[name="'+x+'"]'),v=t.find('[type="button"]').last();t.addClass("z-index-10001 "+p).find(".popover-content").addClass("overflow-hidden"),n.on("input",function(e){const t=$(h),a=t.data(m),n="on"===a?"off":"on",s=t.find(".fa2");"on"===a?(o.removeAttr(r),config_portable_table_rows_to_columns=!1,i.addClass("hidden"),$.each(l,function(){snippets.page.render_table_labels(l)})):(o.attr(r,1),config_portable_table_rows_to_columns=!0,i.removeClass("hidden"),l.find(".col_label").removeClass().addClass("col_label").find("b").removeClass(),u()),t.data(m,n),s.removeClass("fa2-grid-"+a).addClass("fa2-grid-"+n),$(h).popover("reposition")}),a.on("click",function(){$(h).trigger("click"),plugins.page.format.columns(!0)}),s[0].addEventListener("input",function(e){$(document.documentElement).attr("data-"+f,e.target.value),$(e.target).prev().text(e.target.value),config_portable_table_rows_to_columns_number=parseInt(e.target.value),u()}),_[0].addEventListener("input",function(e){$(document.documentElement).attr("data-"+g,e.target.value),$(e.target).prev().text(e.target.value+"px"),config_portable_table_rows_to_columns_width=parseInt(e.target.value),u()}),c.on("input",function(e){$(h);config_portable_table_rows_to_columns_break=!!parseInt(this.value),u()}),d[0].addEventListener("input",function(e){v.toggleClass("btn-grey",e.target.checked),v.find("span").text(theme_language(e.target.checked?"columns_layout_remove_button":"global_save"))}),v[0].addEventListener("click",function(e){settings_right_table_layout_control=!d.is(":checked"),spinnerfy_button_tiny($(this)),theme.config.save(),setTimeout(function(){settings_right_table_layout_control||$("."+p).remove()},vars.event.double_click_delay)}),t.find("."+A).tooltip({container:"body",trigger:"hover",placement:"bottom",delay:{show:0,hide:vars.plugins.tooltip.delay.hide}})})}}}.columns},events:{register:e.register,mousemove:e.mousemove,refresh:{clear:e.refresh.clear},pjax:{start:e.pjax.start,before:e.pjax.before}}}}();const snippets={datetime:{},page:{},patches:{},parser:{},initial:function(){snippets.get_goto(),plugins.navigation.update("webmail"),$(function(){plugins.slider.update.favorites()})},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="form",a=e.parent(),n=(a.parent("tr").find(i),e.parents(i));if(!n.length)return(n=e.closest(i)).length||(n=a.prev(i)),n.length||(n=a.prev().prev(i)),n.length||(n=a.prev().prev().prev(i)),n.append(n.nextUntil(a)),void $.each(a.find("select, input"),function(){$('<input data-trigger-injected="1">').attr({type:"hidden",class:"hidden-force",name:$(this).attr("name")?$(this).attr("name"):$(this).attr("id"),value:$(this).val()}).appendTo(n)}).promise().done(function(){n.submit()});var r=e.attr("name")?e.attr("name"):e.attr("id"),o=$.trim(e.val()),l=n;n.parents(".alert").length&&n.find(".ui_form_end_buttons .end_submits").length&&(l=n.find(".ui_form_end_buttons .end_submits")),$('<input data-trigger-injected="1">').attr({type:"hidden",class:"hidden hidden-force",name:r,value:o}).appendTo(l),e.trigger("click")}),$("body").on("click",'.ui_form_end_submit:not(.disabled), .page_footer_submit:not(.disabled):not([href*="javascript:history"])',function(){var e=!1,t=$(this),i=0;$(".container-fluid > .panel > .panel-body form").each(function(){this&&"function"==typeof this.checkValidity&&0==this.checkValidity()&&i++}).promise().done(function(){i||(core.curModule("csf")?spinnerfy_buttons(t,[2,-29,"small",e]):spinnerfy_buttons(t,!1,false,e))})})},form_input_tester:function(e){var t="click-event",i="btn-warning dt-tester-btn",a="data-tester",n=".btn-group.end_submits:visible button.ui_form_end_submit";if(e)return $(n).hasClass(i);$(document).on("input.tester",'form:not([data-tester="1"]):not(#webmin_search_form)',function(e){if(void 0===e.originalEvent)return;if($(e.target).parent().is(".ui_form_elements_wrapper"))return;if(vars.pjax.post_page_fetch)return;const r=$(e.target).parents("td.ui_checked_checkbox");if((v___location_file&&"index.cgi"!==v___location_file||!r.length)&&!r.closest("form").find(".select_all").length){var o=$(this);if(1!=o.attr(a)){var l=o.find(".CodeMirror").length,s=$(this).attr("action");if(l&&!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")||s&&s.includes("edit_tmpl.cgi")||core.curModule("package-updates")&&s&&s.includes("index.cgi")||s&&s.includes("config.cgi")||$(".modal.in.mppopup").length)o.attr(a,1);else{theme_restore_buttons_class();var _=o.find(n),c=_.first(),d=String("btn-xclass"),p=1===_.data(t);if(c[0]&&c[0].classList){var u=c[0].classList.value.match(/.*(btn-\S+)/);u&&(d=u[1],c.attr("data-class-restore",d))}_&&_.length&&(set_onbeforeunload_status(1),p||(_.data(t,1),c.removeClass(d).addClass(i),o.attr(a,1),_.one("click",function(){_.data(t,0),o.attr(a,0),set_onbeforeunload_status(0)}),o.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"))&&(c.hasClass(i)?(e.preventDefault(),c.trigger("click")):set_onbeforeunload_status(0))})))}}}})},inject_extra_option:function(e,t,i,a,n,r){if("tr/yes:no"===e){var o=$("body"),l=t.parents("form"),s=config_portable_table_rows_to_columns?' data-row-type="ui-table"':"";t.parents("td.col_value").parent("tr").after('<tr data-row-subtype="injected"'+s+'><td class="col_label"><b>'+a+'</b></td><td class="col_value"><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" style="margin-left: 3.25px !important;"><label class="lawobject" for="'+i+'_0"> '+theme_language("global_no")+" </label></span></td></tr>");var _="submit."+i;o.off(_),o.one(_,l,function(){var e=Test.true($("[name="+i+"]:checked").val());window[i]=e,theme.config.save()})}if(e&&e.includes("checkbox:")){var c,d=parseInt(100*Math.random(11)),p=n&&n.checked?"checked ":String(),u=n&&n.extraClass&&n.extraClass.main?" "+n.extraClass.main:String(),f='<span data-checkbox-custom="'+i+'"><span onclick="$(this).parent().find(\'[name='+i+"]').val(this.querySelector('input').checked ? 'true' : 'false')\" class=\"awcheckbox awobject"+u+'"><input '+p+'class="iawobject" type="checkbox" id="'+i+"_"+d+'"> <label class="lawobject" for="'+i+"_"+d+'"> <span>'+a+'</span> </label></span><input type="hidden" value="'+(p?"true":"false")+'" name="'+i+'"></span>';if(n){if(n.getHtml)return f;n.style&&(c=$(f).css(n.style))}"checkbox:after"===e&&t.after(c||f),"checkbox:before"===e&&t.before(c||f),r&&r.call()}}};snippets.datetime.tictac=function(e){var t="convertible-timestamp-full",i=$("[data-"+t+"]");if(i.parent().contents().filter(function(){return 3===this.nodeType}).remove(),"undefined"!=typeof dayjs){var a=i.data(t);if(a){var n=a+1;i.data(t,n),i.text(dayjs(1e3*n).utcOffset(get_utc_offset()).format(config_portable_theme_locale_format_full))}!e&&setInterval(snippets.datetime.tictac.bind(null,1),1e3)}},snippets.datetime.locale=function(){var e="-",t="d",i="t",a="x-md-",n=function(n,r){var o=n.tagName.endsWith((e+t).toUpperCase())?1:0,l=n.tagName.includes(a+i)?0:1,s=n.outerHTML.indexOf(";1")>-1?1:0,_=n.outerHTML.indexOf(";2")>-1?1:0,c=n.outerHTML.indexOf(";-1")>-1?1:0,d=core.curModule("proc")?1:0,p=$(n).text(),u=o?p.split(";")[0]:p,f=config_portable_theme_locale_format_short||"L",h=config_portable_theme_locale_format_long||"LL",g=config_portable_theme_locale_format_time||"LT",m=dayjs.unix(u).format("l");m=m.indexOf("/")>-1?"/":m.indexOf("-")>-1?"-":".";var b,v=dayjs.unix(u).utcOffset(get_utc_offset()).format(g),x=_?dayjs.unix(u).utcOffset(get_utc_offset()).format("YYYY["+m+"]MM["+m+"]DD")+" "+(l?String():v):dayjs.unix(u).utcOffset(get_utc_offset()).format(s?h:f);if(d&&(c=1,n&&"string"==typeof n.outerHTML&&n.outerHTML.includes(a+i)&&$(n).remove()),c){isNaN(u)||(u*=1e3);var y=dayjs(u).fromNow(),w=parseInt((dayjs().unix()-dayjs(u).unix())/86400),k=dayjs(u).format("LT"),C=dayjs().format("YYYY"),M=dayjs(u).format("YYYY"),F=dayjs(u).format("ll"),j=dayjs(u).format(f);core.curModule("mailbox")&&(y=0===w?k:C==M?F.replace(C,"").replace(",",""):j),v=y,x=y}if((b=$(n).is("td")?$(n):$(n).parent("td")).is("td")&&b.attr("data-order",u),r)return o?x:v;$(n).replaceWith(o?"<span"+(x.indexOf(" ")>-1?' data-placement="auto top" data-container="body" data-toggle="tooltip" data-title="'+(c?dayjs(u).calendar(null,{sameElse:"LLL"}):dayjs.unix(u).fromNow())+'"':"")+">"+x+"</span>":v)};$.each($(a+t).add(a+i).add($("td:contains("+(a+t)+")")).add($("td:contains("+(a+i)+")")).add("option:contains("+(a+t)+")").add("option:contains("+(a+i)+")"),function(e,t){if(!t.tagName.startsWith(a.toUpperCase())){var i=$(t).text(),r=Convert.htmlUnEscape(i),o="";$.each($(r),function(e,t){$(t)[0].tagName&&$(t)[0].tagName.startsWith("x-md".toUpperCase())&&(o+=n($(t)[0],1)+" ")}).promise().done(function(){$(t).text(o)})}else n(t,0)})},snippets.ajax=function(){$(document).ajaxStop(function(){setTimeout(function(){0===session.alive&&session.reauthenticate.start()},300)}).ajaxSuccess(function(){v___theme_ajax_error=0,"object"==typeof stats&&stats.sys.error&&0===get_access_level()&&settings_sysinfo_real_time_status&&(stats.sys.restart(),stats.sys.error=0),setTimeout(function(){var e=theme.version(!1,!0);theme.version.current&&e&&e!==theme.version.current&&!vars.cache.theme_updating&&!theme_message_exists("theme_update_refresh")&&theme.update_message()},300)}).ajaxError(function(e,t,i){"canceled"!==t.statusText&&"abort"!==t.statusText&&connection_error(t,0,!1,i)}),$.ajaxSetup({complete:function(e,t){(Test.strContains(e.responseText,"container session_login")||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),set_ajax_send_headers(e,t)}})},snippets.pjax=function(){$(document).on("submit","form",function(e){if(void 0!==e.originalEvent&&(v___theme_content_history=0),"true"!=$(this).attr("data-download")&&"_blank"!==e.target.target){try{core.curModuleFile("virtual-server","edit_newfeatures.cgi")&&page.render.content.filter.clear()}catch(e){}e.preventDefault(),get_onbeforeunload_status()?get_onbeforeunload_message(e,this):get_pjax_action_submit(e)}}),$(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")&&!this.href.includes("!view"))){if(e.preventDefault(),null===this.getAttribute("href"))return;unbuffered_header_processor_conditional_stream().some(e=>this.getAttribute("href").startsWith(e))||get_onbeforeunload_message(e,this)}else get_pjax_action_click(e,this)}),$(document).on("pjax:error",function(e,t,i,a,n){if(plugins.pjax.page.events.reset(),"error"===i){var r=$.active;if(r&&($.active=r-1),Test.strContains(n.url,"/csf/index.cgi"))return void theme_reload()}}),$(document).on("pjax:start",function(e,t,i){plugins.pjax.page.events.start.get(),plugins.page.events.refresh.clear(),vars.pjax.replace_contents=1,vars.pjax.event.end=1,vars.pjax.progressing=1,plugins.navigation.detectAllowed=!0,t&&(session.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){if(vars.pjax.popstate&&core.curModuleFile("virtual-server","domain_form.cgi")&&$(t).find("[data-nocache]").remove(),plugins.pjax.page.events.beforeReplace.get(),vars.ajax.progressing)return vars.pjax.replace_contents=-1,void(vars.pjax.event.end=0);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,mail_page_check()),plugins.navigation.deform(0),pjax.clear.modules(i),!1===i.push&&(Test.strContains(i.url,"/config.cgi?")||Test.strContains(i.url,"/uconfig.cgi?")||Test.strContains(i.url,"/mconfig.cgi?")||Test.strContains(i.url,"/tconfig.cgi"))&&t.find(".btn-accordion-filter, .btn-toggle-accordions").remove(),plugins.page.events.pjax.before()}),$(document).on("ready pjax:beforeSend",function(e,t,i){if(plugins.pjax.page.events.beforeSend.get(),"function"==typeof fn_logviewer_progress_abort&&fn_logviewer_progress_abort(),1===vars.pjax.cancel)return vars.pjax.cancel=0,!1;if(e&&e.relatedTarget&&e.relatedTarget.dataset&&"no"===e.relatedTarget.dataset.pjax)return!1;if(theme_download_link_blob(i))return!1;if(theme_download_link(i))return!1;if($t_uri_webmail&&settings_mail_ui&&core.moduleAvailable("mailbox")&&((core.curModule(v___module_file_manager)||i.url&&!i.url.includes(v___location_file)&&"tconfig.cgi"===v___location_file)&&(page.handle.content.preloader.show(!1,!1,!0),plugins.navigation.reset()),plugins.page.format.columns(!0),"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;i.url=plugins.pjax.page.link.alter(i.url),progress.start();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])]),plugins.page.events.pjax.before(),v___theme_pjax_call+=1}),$(document).on("pjax:success",function(event,data,status,xhr,options){plugins.pjax.page.events.success.get(),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){plugins.page.events.refresh.clear(),vars.pjax.initial_load=1,vars.allow_ui_features=1,vars.pjax.progressing=0,plugins.pjax.page.events.complete.get(),v___theme_reload&&theme_reload(),progress.end(),session.server.data("loading",0,1),$("body").removeClass("loading-bg"),v___theme_connection_triggered_origin=0,"object"==typeof stats&&stats.sys.error&&stats.sys.restart(),setTimeout(function(){plugins.navigation.detectAllowed=!0},1e3)}),$(document).on(vars.h.event.page.end,function(e,t,i){vars.pjax.cache.set("enable"),plugins.pjax.page.events.end.get(),vars.pjax.event.end&&0!==session.alive&&1!==v___theme_reload&&(null!=t&&t.responseText&&t.responseText.includes("data-predownload")||(plugins.navigation.deform(1),vars.pjax.popstate&&plugins.page.format.columns(!0),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),settings_embed_product_splash_privileged&&!vars.page.shown&&page.branding.process(!0),i&&i.url&&i.url.indexOf(v___target_servers_index)>-1&&plugins.slider.destroy()))}),$(document).on("pjax:popstate",function(e){e.state;vars.pjax.popstate=!0,setTimeout(function(){vars.pjax.popstate=!1},10),set_pjax_send_headers(e.state.url,e);var t=vars.pjax.page_cache&&!vars.pjax.cache.disabled(!1,!0);e.hasContents&&get_pjax_event_end_funcs(0,!t),vars.previous_request=String(),vars.source_request=String()})},snippets.pjaxHooks=function(e,t){if(e&&"csf"===t){var i=e.substring(0,2048),a=i.match(/.*<title.*>(ConfigServer Security.*Firewall)/),n=i.match(/.*<html.*data-csf='(.*?)'/);if(a&&a[1]&&!n)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")+' <span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',300,"info","csf_patching"),theme.veiled(1),$.post(v___location_prefix+"/xhr.cgi?xhr-csf-unload=1",function(e){setTimeout(function(){v___module="csf",window.history.pushState({},!1,link_type_convert(v___location_prefix+"/csf/index.cgi",2)),theme_title_generate()},200),setTimeout(function(){location.reload()},3e3)}),1}},snippets.get_goto=function(){plugins.navigation.state.update();var e=plugins.pjax.page.link.pre(plugins.navigation.state.target()),t=function(){$t_uri_virtualmin?get_default_virtualmin_content(!1):$t_uri_cloudmin?get_default_cloudmin_content(!1):get_default_content()},i=session.server.data("webprefix");if(i&&e&&((e=e.toString()).startsWith(i)||(e=i+(e.startsWith("/")?e:"/"+e))),!e)return void t();const a=unbuffered_header_processor_allow,n=function(e){if(!e)return!1;try{const t=location.origin,i=new URL(e,t).pathname.split("/").pop();return unbuffered_header_processor_conditional_stream().includes(i)}catch{return!1}},r=function(e){const t=URI(e).directory();return!(!t||"/"==t||t==v___location_prefix)&&t};let o=!a(e)||n(e);if(!n(e)&&a(e,1)){o=0;var l=r(e);if(l)return void plugins.pjax.page.link.get(l+"/")}if(e&&(e.match(/.*(save|change|install|backup|fetch|upload|delete|modify|view_table|reboot|shutdown|copy|move).*\.cgi$/g)||e.match(/.*(enable_domain|disable_domain|delete_domain).*\.cgi.*/g)||e.match(/.*(newkey|savekey|save_ipkey|newcsr).*\.cgi.*/g)||e.includes("index.cgi?action=upgrade")||e.includes("shell/index.cgi"))){var s=r(e);if(s)return void plugins.pjax.page.link.get(s)}var _=session.server.data("initial-wizard");if(e&&o){if(Test.strContains(e,v___module_file_manager+"/config.cgi"))return void plugins.pjax.page.link.get(v___location_prefix+"/"+v___module_file_manager);if("1"!=_&&$t_uri_virtualmin)return void plugins.pjax.page.link.get(v___location_prefix+"/virtual-server/wizard.cgi");if(URI(e).hostname()&&URI(e).hostname()!==URI(location.href).hostname()||Test.strContains(e,"/mailbox/view_mail.cgi")||Test.strContains(e,"/mailbox/reply_mail.cgi")||Test.strContains(e,"xerror")||"/"===e||e===v___location_prefix+"/"||"%2F"===e||Test.strContains(e,"config_save")||e==="/?"+$__theme_navigation)return void t();check_bundle(e),document.hasFocus()||"hidden"!==document.visibilityState||page.branding.process(!0),e&&plugins.pjax.page.link.get(e)}},snippets.tooltips=function(e){if(e){var t=vars.h.selector.content.get();try{t.tooltip("destroy")}catch(e){}var i="container-fluid",a=$("."+i+" .gl-icon-container").length||$("."+i+" .small-icons-container").length;t.tooltip({selector:'[data-toggle="tooltip"]:not([data-skip]), [data-toggle="virtualmin-license"], .panel-body td a:not([data-skip]), .icons-container',sanitize:!1,placement:a||$("[data-fbplacement]").length?"auto bottom":"auto top",trigger:"hover",html:!0,delay:{show:a?vars.plugins.tooltip.delay.show/10:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})}else $("aside").tooltip({selector:'li[data-toggle="tooltip"], li > a[data-toggle="tooltip"].menu-exclude-link, label[data-toggle="tooltip"], .servers-index-link .popover-trigger',sanitize:!1,container:"body",html:!0,delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})},snippets.progressive_button=function(e,t){var i=e.querySelector(".progressing");i&&(i.style.width=t+"%")},snippets.button_lock=function(e,t){t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled")},snippets.help_popup=function(){$("body").on("click",".help_popup",function(e){e.stopPropagation(),e.preventDefault(),plugins.page.format.columns(!0);var t=$(this),i=function(e){e=(e=(e=e.replace(/<p>[\n]+<\/p>/gi,"<br>")).replace(/<p>[\n]+<p>/gi,"<br>")).replace(/�/gi,"");var t=Convert.removeQuestionMark($(e).filter(".ui_subheading").first().text()),i=$.parseHTML(e),a="";i=i.filter(function(e){if(e.nodeName&&"meta"!==e.nodeName.toLowerCase()&&"link"!==e.nodeName.toLowerCase()&&"title"!==e.nodeName.toLowerCase()&&"hr"!==e.nodeName.toLowerCase()&&"style"!==e.nodeName.toLowerCase()&&"h3"!==e.nodeName.toLowerCase()&&"ui_subheading"!==e.className)return e.outerHTML?a+=e.outerHTML:a+=$.trim(e.textContent)?"<span data-text>"+$.trim(e.textContent)+"</span>":$.trim(e.textContent),e}),"mac"===platform.detect()&&(a=(a=a.replaceAll("Ctrl +","⌘ +")).replaceAll("Alt +","⌥ +"));return[t,i,a=function(e){const t=(new DOMParser).parseFromString(e,"text/html").querySelector("center");if(t){const e=t.querySelector("table");if(e&&e.parentElement===t)return e.style.width="100%",e.outerHTML}return e}(a=function(e){const t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-table-type]");if(!t)return e;const i=t.querySelector("table table");if(!i)return e;const a=function(e){e.removeAttribute("class"),e.removeAttribute("style"),[...e.attributes].forEach(t=>{t.name.startsWith("data-")&&e.removeAttribute(t.name)}),e.querySelectorAll("*").forEach(a)};return a(i),i.outerHTML}(a))]},a=t.attr("href").indexOf("showpass.cgi")>-1?v___location_directory_trail_slashed+t.attr("href"):t.attr("href");$.ajax({type:"POST",url:a,data:!1,dataType:"text",success:function(e){if(session.status(e)){var n=i(e),r=n[0],o=n[1],l=n[2];if(o){var s=t.attr("href").indexOf("/file-manager")>-1,_='<button type="button" class="close pull-right close-popover-trigger font-size-120p">×</button>',c=t.attr("href").indexOf("showpass.cgi")>-1,d=t.attr("href").indexOf("/locale")>-1||s;c&&(_=""),r=_+"<span>"+r+"</span>",t.data("title",r),t.data("content",l);var p=String(),u=t.hasClass("btn-link");l&&(l.length>1024||l.includes("<pre>")||l.includes("<ul>")||l.includes("<ad>"))&&(p=" popover_extra_width");var f=matchMedia("(max-width: 767px)").matches||d?"bottom":"auto right";a&&a.includes("strftime")&&(f="top"),s&&(f="auto right",window.matchMedia("(max-width: 767px)").matches&&(f="bottom")),t.hasClass("place-top")&&(f="top"),t.data("placement",f);var h=t.parent(),g=".container-fluid";t.parents(".opener_table_style")&&t.parents(".wrapped-accordion")&&((h=t.parents(".wrapped-accordion").parent()).length||(h=g)),t.popover({html:!0,sanitize:!1,container:u||c||d?g:h,template:'<div class="popover module-help'+(c?" showpass-popover":d?" popover-wider":"")+p+'" role="tooltip" style="z-index: '+(10001+10*$(".popover.module-help").length)+'"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>',title:function(){return r},content:function(){return l},placement:f}),t.popover("show");var m="shown.bs.popover";t.off(m),t.on(m,function(){var e=$(this),t=e.next(".popover.module-help").hasClass("right")?" right":"",a=function(){var t=e.next(".popover.module-help");return t.length?t:$(".container-fluid > .popover.module-help:last-child")};$(this).addClass("activated"+t),a().find(".popover:visible").addClass("module-help"),$('body[class*="'+v___module_file_manager+'"]').find(".popover:visible").addClass("file-manager-help"),!window.matchMedia("(max-width: 992px)").matches&&$(this).closest("tr").addClass("popover-active");var n=a(),r="click.tmpclkpopover";n.undelegate(r),n.find("a").addClass("allowed"),n.on(r,"a",function(e){e.stopPropagation(),e.stopImmediatePropagation();var t=$(this),a=t.attr("href"),n=t.parents(".popover.module-help"),r=n.find(".popover-title > span"),o=n.find(".popover-content");if(a&&a.startsWith("http"))t.attr("target","_blank");else{e.preventDefault();var l=v___location_prefix+"/help.cgi/"+v___module+"/"+a;$.ajax({type:"POST",url:l,dataType:"text",success:function(e){if(session.status(e)){var t=i(e),a=t[0],l=t[1];r.text(a),o.html(l),n.find("a").addClass("allowed")}}})}}),setTimeout(function(){var e=$(".popover.module-help"),t=e.length;$.each(e,function(e){t===e+1&&popover_visibility_position($(this))}).promise().done(function(){var e=a();e.length&&e.trigger("click")})},10)});t.on("hidden.bs.popover",function(){$(this).closest("tr").removeClass("popover-active"),$(this).removeClass("activated right"),t.off(m)})}}}})})},snippets.page.render_links_dashboard=function(){theme_buttonify(["/"+vars.pages.dashboard],".container-fluid table td[data-td-e]",'a[href*="webminlog/"]',"btn btn-info btn-xxs f__lnk_t_btn-el vertical-align-top margined-top-1 ---forced",0,"","","","|"),theme_buttonify(["/"+vars.pages.dashboard],".container-fluid table td[data-td-e]",'a[href*="delete_session.cgi"]',"btn btn-danger f__lnk_t_btn-el btn-xxs vertical-align-top margined-left--1 margined-top-1 ---forced","fa-unplugged"),theme_buttonify(["/"+vars.pages.dashboard],".container-fluid table td[data-td-e]",'a[href*="list_sessions.cgi"]',"btn btn-link-bordered f__lnk_t_btn-el btn-xxs vertical-align-top margined-left--1 margined-top-1 ---forced","fa-cog no-btn-text"),theme_buttonify(["/"+vars.pages.dashboard],".container-fluid",'a[href*="acl/list_sessions.cgi"]',"btn btn-default heighter-28 margined-top-3 margined-bottom--1 vertical-align-top","fa-group-o","users","","","|"),theme_buttonify(["/"+vars.pages.dashboard],".container-fluid",'a[href*="virtual-server/search.cgi"]',"btn btn-info btn-xxs f__lnk_t_btn-el vertical-align-top margined-top-1 margined-left-4 ---forced",0,"","","","|"),theme_buttonify(["/"+vars.pages.dashboard,"/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","|","")},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"),snippets.page.render_links_dashboard(),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-link-bordered btn-xxs vertical-align-top margined-top-2","fa-eye","",""),theme_buttonify(["/mailbox/list_addresses.cgi"],".container-fluid",'a[href^="list_addresses.cgi"][href*="add="]',"btn btn-default btn-block btn margined-top-10","fa-plus-circle"),theme_buttonify(["/mailbox/list_addresses.cgi"],".container-fluid table td",'a[href^="list_addresses.cgi"][href*="edit="]',"btn btn-primary btn-xxs btn-hover-hide vertical-align-top margined-top-1 margined-left--2 ---forced pull-right","fa-pencil-square-o"),theme_buttonify(["/mailbox/list_addresses.cgi"],".container-fluid table td",'a[href^="save_address.cgi"],a[href^="save_group.cgi"][href*="gdelete="]',"btn btn-danger btn-xxs btn-hover-hide vertical-align-top margined-top-1 margined-left--2 ---forced pull-left","fa-times-circle"),theme_buttonify(["/mailbox/list_addresses.cgi"],".container-fluid table td",'a[href="list_addresses.cgi?mode=users"],a[href="list_addresses.cgi?mode=groups"]',"btn btn-default btn-xxs btn-xxs--g-edit vertical-align-top margined-top-1 margined-left--2 pull-right btn-dnwo","fa-times-circle-o"),theme_buttonify(["/cron/","/cron/index.cgi"],".container-fluid .table tbody tr td",'a.ui_link[href*="exec_cron.cgi"]',"btn btn-success btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-play"),theme_buttonify(["/cron/","/cron/index.cgi"],".container-fluid .table tbody tr td",'a.ui_link[href*="kill_cron.cgi"]',"btn btn-danger btn-link-bordered btn-xxs vertical-align-top margined-top-1","fa-stop fa-0_75x no-vt-al fa-fw margined-right-1 faa-flash animated"),theme_buttonify(["/at/","/at/edit_job.cgi"],".container-fluid .table tbody tr td",'a.ui_link[href*="edit_job.cgi?full=1"]',"btn btn-default btn-xxs btn-tiny btn-dnwo ui_link_replaced pull-right margined-top-2"),theme_buttonify(["/phpini/","/phpini/index.cgi"],".container-fluid .table tbody tr td",'a[href*="list_ini.cgi"]',"btn btn-success btn-xxs btn-xxs f__lnk_t_btn-el vertical-align-baseline","fa-cog","","","","|"),theme_buttonify(["/phpini/","/phpini/index.cgi"],".container-fluid .table tbody tr td",'a[href*="edit_manual.cgi"]',"btn btn-primary btn-xxs btn-xxs f__lnk_t_btn-el vertical-align-baseline ---forced","fa-pencil"),theme_buttonify(["/virtualmin-awstats/","/virtualmin-awstats/index.cgi"],".container-fluid .table tbody tr td",'a[href*="view.cgi"]',"btn btn-success btn-xxs btn-xxs f__lnk_t_btn-el vertical-align-baseline","fa-eye","","","","|"),theme_buttonify(["/virtualmin-awstats/","/virtualmin-awstats/index.cgi"],".container-fluid .table tbody tr td",'a[href*="config.cgi"]',"btn btn-grey btn-xxs btn-xxs f__lnk_t_btn-el vertical-align-baseline ---forced","fa-cog");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"||core.curModuleFile("virtualmin-wp-workbench")||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+"/mailboxes/reply_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/reply_mail.cgi"||v___location_path==v___location_prefix+"/mailbox/list_folders.cgi"||v___location_path==v___location_prefix+"/mailbox/list_ifolders.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+"/logviewer/"||v___location_path==v___location_prefix+"/logviewer/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";if((v___location_path==v___location_prefix+"/virtual-server/list_sched.cgi"||core.curModuleFile("virtualmin-wp-workbench")&&$(".container-fluid .panel-body .tab-content .tab-pane#att_backups").length)&&(e.find('a[href*="backup_form.cgi"]').html("<span>"+e.find('a[href*="backup_form.cgi"]').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),e.find('a[href*="restore_form.cgi"]').html("<span>"+e.find('a[href*="restore_form.cgi"]').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),e.find('a[href*="backuplog.cgi"]').html("<span>"+e.find('a[href*="backuplog.cgi"]').text().replace(/\.\.$/," ")+"</span>").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"> </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("<span>"+e.find('a[href^="edit_hdparm.cgi"]').text().replace(/\.\.$/," ")+"</span>").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("<span>"+e.find('a[href*="smart-status/index.cgi"]').text().replace(/\.\.$/," ")+"</span>").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("<span>"+e.find('a[href^="blink.cgi"]').text().replace(/\.\.$/," ")+"</span>").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"||v___location_path==v___location_prefix+"/mailbox/list_ifolders.cgi"){e.find('a[href^="index.cgi"]').html("<span>"+e.find('a[href^="index.cgi"]').text().replace(/\.\.$/," ")+"</span>").addClass("ui_link_replaced btn btn-success btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-eye" style="vertical-align: baseline !important"> </i>');let i="info";e.find('a[href^="edit_auto.cgi"]').find("b").length&&(i="primary"),e.find('a[href^="edit_auto.cgi"]').html("<span>"+e.find('a[href^="edit_auto.cgi"]').text().replace(/\.\.$/," ")+"</span>").addClass("ui_link_replaced btn btn-"+i+" btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-recycle" style="vertical-align: baseline !important"> </i>'),e.find('a[href^="copy_form.cgi"]').html("<span>"+e.find('a[href^="copy_form.cgi"]').text().replace(/\.\.$/," ")+"</span>").addClass("ui_link_replaced btn btn-warning btn-xxs f__lnk_t_btn-el").removeClass("heighter-34").removeClass(t).removeClass(t).prepend('<i class="fa fa-fw fa-clone" style="vertical-align: baseline !important"> </i>')}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+"/mailboxes/reply_mail.cgi"&&v___location_path!=v___location_prefix+"/mailbox/reply_mail.cgi"||(e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').html("<span>"+e.find('a[href^="detach.cgi"]:not([href*="&save=1"]):not([target="_blank"])').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),e.find('a[href*="detach.cgi"][target="_blank"]').html("<span>"+e.find('a[href*="detach.cgi"][target="_blank"]').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),e.find('a[href*="&save=1"]:not([target="_blank"])').html("<span>"+e.find('a[href*="&save=1"]:not([target="_blank"])').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),e.find('a[href*="view_mail.cgi?"]:not([target="_blank"])').addClass("ui_link_replaced btn btn-default btn-xxs").removeClass("heighter-34").removeClass(t),e.find('a[href*="view_mail.cgi?"][target="_blank"]').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"> </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?($('#content a[href*="edit_mon.cgi?id"]').addClass("ui_link_replaced btn btn-default btn-xxs margined-bottom-2").removeClass("heighter-34").removeClass("ui_link"),$('#content 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("<span>"+$("body").find('a[href^="blink.cgi"]:not(.ui_link_replaced)').text().replace(/\.\.$/," ")+"</span>").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("<span>"+$(this).find('a[href^="backup.cgi"]').text().replace(/\.\.$/," ")+"</span>").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"> </i>'),$(this).find('a[href^="kill.cgi"]').html("<span>"+$(this).find('a[href^="kill.cgi"]').text().replace(/\.\.$/," ")+"</span>").addClass("ui_link_replaced btn btn-danger btn-xxs margined-top-1 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"> </i>')}),v___location_path!=v___location_prefix+"/syslog/"&&v___location_path!=v___location_prefix+"/syslog/index.cgi"&&v___location_path!=v___location_prefix+"/logviewer/"&&v___location_path!=v___location_prefix+"/logviewer/index.cgi"||$.each($("tr td:last-child"),function(){$(this).find('a[href*="save_log.cgi"][href*="view=1"], a[href*="view_log.cgi"][href*="view=1"]').html("<span>"+$(this).find('a[href*="save_log.cgi"][href*="view=1"], a[href*="view_log.cgi"][href*="view=1"]').text().replace(/\.\.$/," ")+"</span>").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"> </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(":")').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+"logviewer/"&&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(/\.$/,""))});var i=".container-fluid .panel-body";$(i+" a.select_all,"+i+" a.select_invert,"+i+" a.select_invert ~ .ui_link,"+i+" .ui_links_row > *:not(.ui_link_empty, .ui_link_replaced),"+i+" .ui_link:not(.ui_link_empty)").each(function(){if(!core.error.get()&&!(v___location_path&&v___location_path.indexOf("/"+vars.pages.dashboard)>-1)&&!(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).parent("th").length||$(this).parents("b").length||$(this).parent("pre").length||core.curModuleFile("virtual-server","cert_form.cgi")&&$(this).attr("href")&&$(this).attr("href").includes("edit_domain.cgi")||$(this).parents('[data-dcontainer="1"]').length&&unbuffered_header_processor_allow(v___location_path)||v___location_path==v___location_prefix+"/webmin_search.cgi")&&(!core.curModuleFile("virtual-server","history.cgi")&&!core.curModuleFile("server-manager","bwgraph.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).html("<span>"+$(this).text().replace(/\.$/,"")+"</span>");var e=$(this).parent().contents().filter(function(){return 3==this.nodeType});if(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> <span>'+$(this).text()+"</span>"),$(this).hasClass("select_invert")&&$(this).html('<i class="fa fa-fw fa-share-square-o"> </i> <span>'+$(this).text()+"</span>"),(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> <span>'+$(this).text()+"</span>"),($(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> <span>'+$(this).text()+"</span>"),($(this).is(":nth-child(3)")||$(this).is(":nth-child(8)"))&&$(this).html('<i class="fa fa-fw fa-webmin"> </i> <span>'+$(this).text()+"</span>")),core.curModuleFile("mount","index.cgi")||core.curModuleFile("mount","")){var t=$(this).attr("href");t&&$(this).html('<i class="fa2 fa-fw fa2-'+(t.includes("show=1")?"eye":"eye-off")+' fa-0_90x"> </i> <span>'+$(this).text()+"</span>")}$(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> <span>'+$(this).text()+"</span>"):($(this).attr("href")&&0===$(this).attr("href").indexOf("mass_ucreate")&&$(this).html('<i class="fa fa-fw fa-user"> </i> <span>'+$(this).text()+"</span>"),$(this).attr("href")&&$(this).attr("href").indexOf("grace_form")>-1&&$(this).html('<i class="fa fa-fw fa-clock"> </i> <span>'+$(this).text()+"</span>")),$(this).attr("href")&&$(this).attr("href").indexOf("edit_manual")>-1&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> <span>'+$(this).text()+"</span>"),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> <span>'+$(this).text()+"</span>"),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> <span>'+$(this).text()+"</span>"),$(this).attr("href")&&0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> <span>'+$(this).text()+"</span>")),$(this).attr("href")||$(this).remove()}});var a="btn-tiny",n="ui_link_replaced";$.each($(".btn-group.ui_links_row > .ui_link_empty"),function(){($(this).prev("."+a+"."+n).length||$(this).next("."+a+"."+n).length)&&$(this).addClass(a+" "+n)}),$.each($("."+a+"."+n),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/"&&$("#content a.ui_link").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").css("margin-bottom","3px").css("margin-top","-3px"),$(this).html("<span>"+$(this).text().replace(/\.$/,"")+"</span>"),$(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/"&&$("#content 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"))})}if((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"||v___location_path==v___location_prefix+"/server-manager/bwgraph.cgi")&&($(".panel-body > .ui_links_row > ").each(function(){$(this).addClass("btn btn-inverse btn-tiny ui_link_replaced").removeClass("ui_link"),$(this).html("<span>"+$(this).text().replace(/\.$/,"")+"</span>"),$(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).html("<span>"+$(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")+"</span>"),$(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> <span>'+$(this).text()+"</span>"),1==e&&$(this).html('<i class="fa fa-fw fa-level-down"> </i> <span>'+$(this).text()+"</span>"),2==e&&$(this).html('<i class="fa fa-fw fa-reply fa-flip-horizontal"> </i> <span>'+$(this).text()+"</span>"),3==e&&$(this).html('<i class="fa fa-fw fa-reply-all fa-flip-horizontal"> </i> <span>'+$(this).text()+"</span>")}),v___location_path==v___location_prefix+"/server-manager/bwgraph.cgi")){var r=".container-fluid .panel-body",o=$(r+" .btn-info"),l=$(r+' [name="ago"]');o.removeClass("btn-info").addClass("btn-default heighter-28 margined-left--4"),o.find(".fa").remove(),l.next(".btn-default").addClass("margined-left--7"),l.prev("b").addClass("font-weight-normal")}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).html("<span>"+$(this).text().replace(/\.$/,"")+"</span>"),$(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).html("<span>"+$(this).text().replace("|","").replace("|","").replace(/(?:\r\n|\r|\n)/g,"")+"</span>")})),$("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).html("<span>"+$(this).text().substr(0,$(this).text().length-e)+"</span>")}})},snippets.page.render_table_labels=function(e){if(!plugins.page.format.columns()&&!matchMedia("(max-width: 992px)").matches){var t="vertical-align-top",i="no-vr-al-tp";e.find("td.col_label:not(."+t+"):visible").each(function(){var e=$(this).next(".col_value"),a=$(this).find("b"),n="inline-block margined-top-",r=browser.detect.firefox(),o=$(this).parent("tr"),l=o.parent().hasClass("td-counter")?0:o.children("td").length;if(l>2&&o.parent().addClass("td-counter td-count-"+l),Math.round(this.clientHeight)>=30){$(this).addClass(t);var s="table",_="input",c="select",d="textarea",p="el-wp-chooser",u="ui_",f="password",h="textbox",g="hidden",m="ds-bl-fs",b=$(e.find(_+":not(."+u+g+'):not([type="'+g+'"]), '+c+", "+d)[0]),v=b.is("."+u+h),x=!!b.is(".ui_select, .ui_upload")&&b,y=b.is("."+u+d),w=b.parent().is("."+p),k=e.find(s+":visible"),C=k.find("tr").first().find("td").first().outerHeight(),M=k.length;w&&$(e.children()[0]).is("."+p)&&(y=!0);var F=a.parents(".opener_shown").length,j=F?3:2,T=e.children(),q=T.filter("br, ."+m).index(),O=-1===q?T:T.slice(0,q),S=T[0],z=0;if(e.find("."+u+c).length||e.find(c).length||e.find("."+p).length||e.find("."+u+h).length||e.find("."+u+d).length||e.find(".ui_opt_"+h).length||e.find(_+'[type="text"]').length||e.find("."+u+f).length||e.find(_+'[type="'+f+'"]').length||M||v||x||y){F&&this.clientHeight>=32&&(j=5);var A=0;if(O.filter(function(){var e=this.clientHeight;e||(e=parseInt($(this).find(_+", "+d+", "+c).first().css("height"))),A<e&&(A=e)}),M){var I=k.hasClass(u+"multi_"+c),H=k.hasClass(u+"grid_"+s),W="1";return(C<=20||H)&&(W="3"),W=A<=20?"-1":"2",H&&k.length&&k[0]&&$(k[0]).outerHeight()>=32&&(W="6"),void((this.clientHeight<48||A<=20||I||H)&&a.addClass(n+W+""))}if(A<=20)j=-1;else if(O.filter("."+p).length||-1===q&&T.last().is("."+p)){var E=T.filter("."+p).find(".ui_opt_"+h+", ."+u+h+", ."+u+d+", "+_).outerHeight(!0);E<=28?(z=1,j+=1):E>64?j=0:30==E?j=4:j+=3,y&&!E>=32&&(j=-2)}else if(T&&T[0])if($(S).hasClass(m)||$(S).is("br"))j-=2;else if(v)j+=F?1:2;else if(x)e.find(c+"[multiple]").length&&(j=-1);else if(y)j=-1;else if(e.find(".t-password-complexity-meter-wrapper-cont").length){return void a.addClass(n+"4")}z||3!=j&&2!=j||(j=4),a.addClass(n+j+"")}}else if(this.clientHeight<=22){var L=e.find(".graph-container")[0];if(e.find(".awobject").length){if(this.clientHeight<=20&&!r||22===this.clientHeight&&r){var P=0;r&&(P=1),$(this).addClass(i),a.addClass(n+P+"")}}else if(L){$(this).addClass(i),a.addClass(n+-4+"")}else if(18===this.clientHeight){$(this).addClass(i),a.addClass(n+-1+"")}}}).promise().done(function(){var e=$(this)[0],t="hover",i="table",a=i+"-"+t;e&&$(e).parents("."+i).removeClass(a+" "+a+"-force").addClass("no-"+t)})}},snippets.page.render=function(pjax_popstate){vars.page_interaction=v___initial_load?-1:0,page_control_header(),!settings_sysinfo_expand_all_accordions&&settings_sysinfo_remember_accordions&&plugins.dashboard.restore(),quirks.clean(),plugins.navigation.state.update();var needs_restart_from=session.server.data("needs-restart"),body;!needs_restart_from||vars.cache.norestart||vars.ajax.progressing||v___initial_load||"webmin"!==session.server.data("product")||theme.restart_message(needs_restart_from),"object"==typeof stats&&stats.sys.toggle(),pjax_popstate?$(".popover.in").remove():function(){var e=$('.container-fluid > .panel > .panel-heading a[href*="config.cgi"]');if(e.length){var t=" "+theme_shortcuts_generate("conf"),i=e.text();e.text(i+t)}}(),pjax_popstate&&"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",session.server.data("style")),$.each($('select[onchange="form.submit()"]'),function(){$(this).removeAttr("onchange").addClass("onchange_form_submit_triggger")}),page.handle.content.offset(!0);const cannot_unload=core.curModuleFile("xterm");if(set_onbeforeunload_status_native(cannot_unload),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(),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();if($.support.spa&&core.curModule("tunnel")&&$("#content .container-fluid form.ui_form[action]").on("submit",function(e){var t=$(quirks.active_element());e.preventDefault(),e.stopPropagation(),progress.start(),$.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){session.status(e)&&(t.removeClass("disabled").find("i").removeClass("invisible").next(".cspinner_container").remove(),progress.end(),setTimeout(()=>{theme_open_new_tab(this.url)},100))}})}),core.curModule("tunnel")){var $tunnel_form=$('.ui_form[action="seturl.cgi"]'),$input=$tunnel_form.find("input"),$btn=$tunnel_form.find("button"),$b=$tunnel_form.find("b"),b_text=$b.text().replace(/:$/,"");$b.remove(),$input.attr("placeholder",b_text).css({width:"100%",height:"32px",minHeight:"32px"}),$btn.addClass("btn-block margined-top--1")}if((check_location_resource("/config.cgi?tunnel")||check_location_resource("/config.cgi?module=tunnel",1))&&$('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(/\.\.$/," ")).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&&!pjax_popstate){var is_error_page=$(".container-fluid .panel > .panel-body > [data-fatal-error-text]").length;v___location_file&&v___location_file.includes("error")&&!v___location_file.includes("edit_")&&(is_error_page=1),!is_error_page&&$("#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> ')}plugins.favorites.detect(),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(),!pjax_popstate&&page_radios_evolve();var on_load_checkbox_sel_str='.container-fluid .ui_checked_columns td.ui_checked_checkbox input[type="checkbox"]:checked';if($(on_load_checkbox_sel_str).parents("tr.ui_checked_columns").addClass("hl-aw"),$(on_load_checkbox_sel_str+"[disabled]").parents("tr.ui_checked_columns").addClass("hl-aw-chk"),$("body").hasClass("servers")){(core.curModuleFile("servers","index.cgi")||core.curModuleFile("servers",""))&&vars.pjax.cache.set("disable");var form_selector='form[action="delete_servs.cgi"]',servers_selector_str=$(form_selector).length?form_selector+" a.icon_link, "+form_selector+" a.ui_link, "+form_selector+" .col-xs-1":'.container-fluid > .panel > .panel-body > .row a[href*="link.cgi/"]',$form_logouts_a=$(form_selector).find('a[href^="logout.cgi"]'),form_logouts_a_title=$form_logouts_a.length?$form_logouts_a.first().text():String();setTimeout(function(){$form_logouts_a.length&&$form_logouts_a.each(function(){var e=form_logouts_a_title;e&&(e=$.trim(Convert.strUpFirst(e.replace(/[\(\)]/g,"")))),$(this).addClass("gl-icon-logout").attr("title",e).attr("aria-label",e).html('<i class="fa fa-fw fa-sign-out text-danger fa-1_10x"></i>');var t=$(this).parent(),i=$(this).detach();t.before(i)})},1),$(servers_selector_str).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");if(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]"});else{var a=("MacIntel"===window.navigator.platform?1:0)?vars.events.keypressed.meta:vars.events.keypressed.ctrl;if(i&&-1===i.indexOf("://")){var n=link_type_convert(t,1),r="link.cgi/",o="/index.cgi"+r;n&&n.includes(o)&&(n=n.replace(o,"/"+r)),a?open(n):(progress.start(),location.href=n)}else a?open(i):(progress.start(),location.href=i)}e.preventDefault(),e.stopPropagation()}})}if(!pjax_popstate){$(".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());var $hidden_opener_trigger=$('a[href^="javascript:hidden_opener"]:not(".opener_trigger")');$hidden_opener_trigger.length>0&&($hidden_opener_trigger.each(function(e,t){var i=!(v___location_path!=v___location_prefix+"/virtual-server/backup_form.cgi"&&v___location_path!=v___location_prefix+"/virtualmin-wp-workbench/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).parent("td:not('.col_label'):not('.col_value'), td.col_header").addClass("opener_table_cell_style_small"),i||($(this).parent("td:not('.col_label'):not('.col_value'), td.col_header").addClass("opener_table_cell_style_small opener_table_cell_style_small_exclusion_border_top"),$(this).parent("td:not('.col_label'):not('.col_value'), td.col_header").parent("tr").parent("tbody").parent("table").parent("div.opener_hidden").addClass("opener_shown_inner").parent(".opener_container").addClass("has_sub_inner")),$(this).parent("td:not('.col_label'):not('.col_value'), td.col_header").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",r=a.parent(n).find('a[href^="javascript:hidden_opener"]'),o='<div class="opener_extra_container"></div>';core.curModuleFile("bind8","edit_zonekey.cgi")?(r.eq(1).wrapAll(o),r.eq(e+1).wrapAll(o)):r.eq(e+1).wrapAll(o),a.parent('.panel-body > a[href^="javascript:hidden_opener"]:first-child').remove();var l=a.parent(n).find(".opener_extra_container");$(l).next("br").remove(),$(l).addClass("opener_extra_container_style"),$(l).find("a").addClass("opener_extra_container_a_style link_hover_effect"),$(l).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(theme.config.events(pjax_popstate),$("#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").each(function(e,t){var i=t.src;if(i){var a=i.match(/images\/(.*)\./),n=a&&a[0]&&a[1]?a[1]:String(),r="fa fa-fw fa-1_15x fa-check text-success";"down"===n?r="fa fa-fw fa-1_15x fa-minus-circle text-danger text-warning-brighter":"timed"===n?r="fa fa-fw fa-clock text-warning fa-1_15x":"webmin"===n?r="fa fa-fw fa-webmin fa-1_15x text-warning":"skip"===n?r="fa2 fa-fw fa2-minus fa-1_15x vertical-align-middle":"not"===n?r="fa2 fa-fw fa2-not-interested fa-1_15x":"quest"===n&&(r="fa fa-fw fa-question-circle fa-1_15x"),n&&$(t).replaceWith('<i title="'+theme_language("status_module_mon_"+n)+'" class="'+r+' margined-left-3"></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").attr("data-arrange",1),$('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-rotate-180 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-rotate-180 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"),!pjax_popstate){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($(".container-fluid .panel-body table tr:empty"),function(){$(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> <span>'+$(this).text()+"</span>"),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> <span>'+$(this).text()+"</span>"),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> <span>'+$(this).text()+"</span>")}),$.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"> </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","/commands/","/commands/index.cgi"],".container-fluid table.ui_grid_table td:last-child",'a[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.eW=function(e,t){return $.fn.eW.fakeEl||($.fn.eW.fakeEl=$("<span data-eW>").hide().appendTo(document.body)),$.fn.eW.fakeEl.text(e||this.val()||this.text()||this.attr("placeholder")).css("font",t||this.css("font")),$.fn.eW.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).eW()+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")||check_current_file("edit_configs.cgi")&&v___location_query&&v___location_query.includes("mod=commands"))&&$('[name="width_def"], [name="height_def"], [name="wrap"]').parent().parent("td").parent("tr").addClass("hidden"),snippets.page.render_links(pjax_popstate),core.curModuleFile("fdisk","edit_disk.cgi")&&$.each($(".panel-body > table.table.table-striped tbody tr"),function(){var e=$(this).find("td:nth-child(3)");e.find('img[src*="images/use"], img[src*="images/gap"]').length&&e.addClass("extent-graphs")}),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")});var textarea_fm_ctl_ui_textarea="textarea.form-control.ui_textarea",btn_type_button_def='button[type="button"].btn-default',text_area_class_to_set="-ta-fn-fx -ta-fn-fx-small margined-bottom--6",btn_styling="width:100% !important; padding-top: 0; height:28px !important; ";$(textarea_fm_ctl_ui_textarea).next(btn_type_button_def).each(function(){$(this).prev("textarea").addClass(text_area_class_to_set+" margined-bottom--f25"),$(this).attr("style",btn_styling)}),$(textarea_fm_ctl_ui_textarea).next("br").next(btn_type_button_def).each(function(){$(this).prev("br").prev("textarea").addClass(text_area_class_to_set),$(this).attr("style",btn_styling)}),$(".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: #191919; 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(){var e=0,t="",i="virtualmin.com/shop",a=$(this).attr("href");if(a){if(a.indexOf("config.cgi")>-1||a.indexOf("man/search.cgi")>-1||a.indexOf("/index.cgi")>-1||a==v___location_directory_trail_slashed||a.indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"||a.indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"||a.indexOf("restart_zone.cgi")>-1||a.indexOf("restart.cgi")>-1||a.indexOf("restart_progressive.cgi")>-1||a.indexOf("apply.cgi")>-1||a.indexOf("apply_progressive.cgi")>-1||a.indexOf("start.cgi")>-1||a.indexOf("start_progressive.cgi")>-1||a.indexOf("stop.cgi")>-1||a.indexOf("stop_progressive.cgi")>-1||a.indexOf(i)>-1||"//"==a&&(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")||a.indexOf("delete_")>-1||a.indexOf("list_mail.cgi")>-1||a.indexOf("/virtual-")>-1||a.indexOf("/virtualmin-")>-1||a.indexOf("/server-")>-1||a.indexOf("help.cgi")>-1){if($.each($(this).next("br"),function(){$(this).remove()}),$.each($(this).prev("br"),function(){$(this).remove()}),a.indexOf("help.cgi")>-1){var n=$(this),r=$(this).parent("div");$(this).remove(),r.append(n)}a.indexOf("/index.cgi")>-1||a==v___location_directory_trail_slashed||a.indexOf("/virtual-")>-1||a.indexOf("/virtualmin-")>-1||a.indexOf("/server-")>-1?(t="fa-arrow-left",$(this).data("title","").data("back",1)):"//"!=a||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"?a.indexOf("config.cgi")>-1?(t="fa-cog",$(this).data("title","")):a.indexOf("restart.cgi")>-1||a.indexOf("restart_progressive.cgi")>-1||a.indexOf("apply.cgi")>-1||a.indexOf("apply_progressive.cgi")>-1?(t="fa-refresh",e=$(this).find("b").detach()):a.indexOf("restart_zone.cgi")>-1?t="fa-retweet":a.indexOf("start.cgi")>-1||a.indexOf("start_progressive.cgi")>-1?t="fa-play":a.indexOf("stop.cgi")>-1||a.indexOf("stop_progressive.cgi")>-1?t="fa-square":a.indexOf("man/search.cgi")>-1?t=" fa2 fa2-book":a.indexOf("delete_")>-1?t="fa-trash-o":a.indexOf("list_mail.cgi")>-1?t="fa-inbox":a.indexOf("index.cgi")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"openvpn/"?t="fa-cogs":a.indexOf("index.cgi?")>-1&&v___location_directory_unslashed_trail_slashed==v___location_prefix_unslashed_trail_slashed+"spam/"?(t="fa-arrow-left",$(this).data("back",1)):a.indexOf(i)>-1&&(t=" fa2 fa2-virtualmin fa-1_50x margined-top-05",$(this).addClass("w-auto-force text-lighter-slighter"),e=$(this),$(this).attr("title",theme_language("theme_xhred_license_purchase"))):(t="fa-arrow-left",$(this).attr("href",v___location_prefix+"/tconfig.cgi").data("title","").data("back",1));var o=a.indexOf("help.cgi")>-1;o&&(t="fa-question-circle",$(this).data("title",""));var l=Convert.strUpInitial(o?theme_language("global_help"):1===$(this).data("back")?core.curModule(v___module_file_manager)?"":theme_language("global_return_to_module_index"):$(this).text()),s=e?"  "+e.text():"";$(this).data("toggle","tooltip").data("title",l).attr("data-container","body").addClass(vars.h.class.button.tableHeader).removeClass("ui_link").append('<i class="fa '+t+'"></i><span>'+s+"</span>"),$(this).attr("aria-label",l),$(this).contents().filter(function(){return 3==this.nodeType}).remove();var _=$(this);_.tooltip({container:"body",placement:_.is(":last-child")?"auto right":"auto top",trigger:"hover",delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}}),((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/")&&(a.indexOf("restart.cgi")>-1||a.indexOf("apply.cgi")>-1)||$(this).parent("div").find("a")&&1==$(this).parent("div").find("a").length||a.indexOf("man/search.cgi")>-1||a.indexOf("config.cgi")>-1||a.indexOf("/index.cgi")>-1||a.indexOf("/index.cgi")>-1||a.indexOf("/virtual-")>-1||a.indexOf("/virtualmin-")>-1||a.indexOf("/server-")>-1)&&((a.indexOf("/index.cgi")>-1||a.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(){var e=$(this).find("b"),t=e.length?e:$(this),i=$.trim(t.html());i&&t.html(Convert.removeQuestionMark(i))}),$("#content").find("td.col_label").each(function(){$(this).find("*").addBack().contents().filter(function(){return this.nodeType===Node.TEXT_NODE}).each(function(){this.nodeValue=Convert.removeQuestionMark(this.nodeValue)})})}if(!pjax_popstate){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"){if(core.curModuleFile("mailboxes","reply_mail.cgi")||core.curModuleFile("mailbox","reply_mail.cgi")){var $x=$('.container-fluid .table-subtable a[href^="reply_mail.cgi"][href*="html="]'),$x_th2=$x.parent(".ui_links_row").parent("th");$x_th1=$x_th2.prev(),$x.addClass("pull-right margined-top-2 margined-right-2"),$x.detach().prependTo($x_th1),$x_th2.remove();var $that_last_attach_row=$('.mailboxes[data-uri*="reply_mail.cgi"] #content form .col_value.col_header .ui_links_row:empty').parent();"\n"===$that_last_attach_row.text()&&$that_last_attach_row.parent("tr").remove()}if(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")){var $del_mail_obj2=$('.container-fluid form[action="reply_mail.cgi"]');$del_mail_obj2.contents().filter(function(){return 3==this.nodeType}).remove()}if(core.curModuleFile("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","mail_search.cgi")||core.curModuleFile("mailbox","view_mail.cgi")){if(core.curModule("mailboxes")&&$(".container-fluid").find('[name="mark1"], [name="mark2"], [name="move1"], [name="move2"], [name="copy1"], [name="copy2"]').each(function(){$(this).val($(this).val().replace(/:$/,""))}),core.curModuleFile("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")){var $del_mail_obj_form=$('.container-fluid form[action="delete_mail.cgi"]'),$last_links_row=$del_mail_obj_form.find('input[type="hidden"]:first-child ~ [type="submit"] ~ .ui_links_row').last();$last_links_row.length?($last_links_row.nextUntil("hr").addBack().remove(),$del_mail_obj_form.next("script").next("center").remove(),$del_mail_obj_form.contents().filter(function(){return 3==this.nodeType}).remove()):setTimeout(function(){$del_mail_obj_form.find(".ui_links_row").last().addClass("margined-bottom-8").removeClass("margined-bottom--2")})}if(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")){var $del_mail_obj_form2=$('.container-fluid form[action="reply_mail.cgi"]'),$last_links_row2=$del_mail_obj_form2.find('input[type="hidden"]:first-child ~ [type="submit"]').nextAll(".table-responsive").last();$last_links_row2.length?$last_links_row2.nextAll().filter(".ui_form_end_submit, .ui_form_end_submit + .hidden, .ui_form_end_submit + .hidden + br, .ui_form_end_submit + .hidden + select").remove():$del_mail_obj_form2.find(".table-responsive").last().addClass("margined-bottom-5")}}if((core.curModuleFile("mailbox","mail_search.cgi")||core.curModuleFile("mailbox","view_mail.cgi"))&&$(".container-fluid").find('[name="mark1"], [name="mark2"], [name="move1"], [name="move2"], [name="copy1"], [name="copy2"]').each(function(){$(this).is("button")?$(this).text($(this).text().replace(/:/,"")):$(this).val($(this).val().replace(/:$/,""))}),(core.curModuleFile("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("mailbox","mail_search.cgi")||core.curModuleFile("mailbox","view_mail.cgi"))&&$.each($(".container-fluid .ui_form img"),function(){var e=$(this).attr("src");e&&(e.includes("images/special.gif")&&$(this).replaceWith('<i class="fa fa-fw fa-lg fa-exclamation fa-xs margined-left-4 text-semi-light vertical-align-baseline"></i>'),e.includes("images/replied.gif")&&$(this).replaceWith('<i class="fa fa-fw fa-lg fa-reply fa-xs margined-left-4 text-semi-light vertical-align-baseline"></i>'),e.includes("images/search.gif")&&$(this).remove(),e.includes("images/attach.gif")&&$(this).replaceWith('<i class="fa fa-fw fa-lg fa-paperclip fa-rotate-315 margined-left-4 text-semi-light"></i>'))}),(core.curModuleFile("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","mail_search.cgi")||core.curModuleFile("mailbox","view_mail.cgi"))&&($(".container-fluid").find('[name="delete"]').addClass("btn-danger").removeClass("btn-default"),$(".container-fluid").find('[name="reply"]').addClass("btn-info").removeClass("btn-default"),$(".container-fluid").find('[name="new"]').addClass("btn-success").removeClass("btn-default"),$(".container-fluid").find('[name="razor"]').addClass("btn-warning").removeClass("btn-default")),v___location_file){if("list_mail.cgi"==v___location_file||"mail_search.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");var $del_mail_obj=$('.container-fluid form[action="delete_mail.cgi"]');$del_mail_obj.addClass("margined-top-7"),$del_mail_obj.find(".ui_links_row").first().addClass("margined-top-7"),$del_mail_obj.find(".ui_links_row").last().addClass("margined-bottom--2"),$del_mail_obj.nextAll(".ui_page_flipper").addClass("margined-top-7"),$del_mail_obj.find('[name="delete"], [name="new"]').removeAttr("style")}}else $(".ui_form_end_submit").css("margin-top","0"),$("input#user").addClass("heighter-34 vertical-align-top");$("body").find("form").removeAttr("onsubmit");var $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()&&$(".table-responsive").eq(1).removeClass(),$("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()});var $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();var $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>'),$(".editor_mode_link_button").tooltip();var $fileinput_add_another_attachment=$("body").find('a[onclick="return add_attachment()"]');$fileinput_add_another_attachment.addClass("btn btn-default ui_link_replaced btn-xxs margined-top-1 margined-left-2 margined-bottom-2"),$fileinput_add_another_attachment.text($fileinput_add_another_attachment.text().replace(/\.$/,""));var $fileinput_add_another_servattachment=$("body").find('a[onclick="return add_ss_attachment()"]');if($fileinput_add_another_servattachment.attr("onclick","return theme_add_ss_attachment()"),$fileinput_add_another_servattachment.addClass("btn btn-default ui_link_replaced btn-xxs margined-top-1 margined-left-3 margined-bottom-2"),$fileinput_add_another_servattachment.text($fileinput_add_another_servattachment.text().replace(/\.$/,"")),v___location_path.indexOf("reply_mail.cgi")>-1){let e=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("th:last-child");e.find("a").addClass("table_title_links pull-right btn btn-tiny margined-top-3 margined-right-3 pull-right-force")}if(v___location_path.indexOf("view_mail.cgi")>-1||v___location_path.indexOf("view_mailq.cgi")>-1){let t=$(".ui_form").find("div.table-responsive"),a=t.first().find(".table-title");$table_title_links_container=a.next(),$table_title_links_container.contents().filter(function(){return 3==this.nodeType}).remove(),t.find('[name="detach"]').addClass("heighter-28 btn-xs"),$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-tiny margined-top-3 margined-right-3 pull-right-force"),$table_title_links=$table_title_links_container.html(),a.append($table_title_links),$table_title_links_container.remove(),$table_title_second_container=$(".ui_form").find("div.table-responsive").first().next("div.table-responsive").find("table:first-child"),a=$(".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 margined-top-3 margined-right-3 pull-right-force"),$table_title_links_container.find("a").removeClass("btn-inverse").parent(".ui_links_row").contents().unwrap(),$table_title_links=$table_title_links_container.html(),a.append($table_title_links),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()){parseInt($(".ui_form").find("div.table-responsive").first().find("table:first-child").width()/2);$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).addClass("col_value_transparent")})})},30),a.find("b")&&a.find("b").length>1&&a.find("b:first-child").text()==a.find("b:last-child").text()&&a.find("b:last-child").remove(),$('.container-fluid center > a > img[src*="images/left.gif"]').each(function(){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-left text-semi-light vertical-align-baseline"></i>')}),$('.container-fluid center > a > img[src*="images/right.gif"]').each(function(){$(this).replaceWith('<i class="fa fa-fw fa-lg fa-arrow-circle-o-right text-semi-light vertical-align-baseline"></i>')})}$("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")}),$(".ui_form > .table-responsive:first-of-type > .table-striped.table-condensed > tbody").removeAttr("style"),$.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: 0 !important; vertical-align: top;")})}if($.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(){28===Math.round(parseFloat($(this).css("height")))&&$(this).prev("input").addClass("heighter-28")}),(core.curModule("logviewer")||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(){$(this).next("input").outerHeight()>=32&&$(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.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(){$(this).next("input").outerHeight()>=32||$(this).prev("input").outerHeight()>=32?$(this).add($(this).nextAll(":visible")).addClass("heighter-34").removeClass("heighter-28"):28!=Math.round($(this).next("input").outerHeight())&&28!=Math.round($(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+vars.pages.dashboard&&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"&&v___location_path!=v___location_prefix+"/logviewer/view_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"> </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==Math.round($(this).outerHeight())&&28!=Math.round($(this).next("input").outerHeight())&&$(this).is(':not([type="hidden"])')&&$(this).next("input").addClass("heighter-28")}),$.each($(".container-fluid select"),function(){Math.round($(this).outerHeight())>=32&&32!=Math.round($(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){28===Math.round(parseFloat($(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> <span>'+$(this).text()+"</span>")),$(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> <span>'+$(this).text()+"</span>"),0===$(this).attr("href").indexOf("edit_file.cgi?new")&&$(this).html('<i class="fa fa-fw fa-pencil-square-o"> </i> <span>'+$(this).text()+"</span>"),0===$(this).attr("href").indexOf("edit_sql.cgi?new")&&$(this).html('<i class="fa fa-fw fa-database"> </i> <span>'+$(this).text()+"</span>"),$(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; margin-bottom: 2px !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: middle !important;" class="fa fa-fw fa-external-link"></i> '+$("#history").next("table").next("a").text())):($("#history").next("a").addClass("btn btn-info btn-tiny ui_link_replaced").attr("style","margin-top: 4px !important; margin-bottom: 2px !important").attr("target","_blank"),$("#history").next("a").text($("#history").next("a").text().replace(/\.\.$/,"")),$("#history").next("a").html('<i style="vertical-align: middle !important;" class="fa fa-fw fa-external-link"></i> '+$("#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(/\:$/,""));try{onLoad()}catch(n){}}if($.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")))}),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")),page.render.content.filter.init(),$('[action="list_scripts.cgi"]').replaceWith("<p>"+theme_language("virtual_server_scripts_desc")+"</p>")),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"){const r=$(".table.table-striped.table-hover.table-condensed");r.each(function(){table_data_init($(this),!1,!1,{orderable:!1,targets:[0,-1]})}).promise().done(function(){r.length&&page.render.content.filter.init()})}if(v___location_path==v___location_prefix+"/virtual-server/edit_script.cgi"){const o=".container-fluid .panel-body > .opener_table_style",l=$(o+':has(a[id*="script_kit"]) > tbody > tr > td._c__op_d a'),s=$(o+" .table-hover");$(o).removeClass("table-hover").addClass("no-hover"),l.attr("tabindex","-1"),s.each(function(){try{table_data_init($(this))}catch(e){}});const _=o+' form[action*="workbench.cgi"]',c='form[action="unscript_install.cgi"]';$(_+" .ui_form_end_submit").removeClass("btn-info").addClass("btn-default heighter-28").find("i").remove(),$(_+' [name^="kit_setup_"]').addClass("btn btn-default btn-tiny bg-transparent").removeClass("heighter-28"),$(_+" > select option:first-child").attr("disabled","disabled"),$(c+' > [name="kit_form_login"]').on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},2*vars.event.double_click_delay)});const d=$(_+' [name^="kit_form_login_"]');d.removeClass("btn-default").addClass("btn-link text-decoration-none cursor-alias pull-right pd-0 pd-rt-1").append(' <i class="fa fa-fw fa-external-link fa-0_85x margined-top-05"></i>'),d.on("click",function(){setTimeout(()=>{despinnerfy_button($(this))},2*vars.event.double_click_delay)})}if(v___location_path==v___location_prefix+"/servers/"||v___location_path==v___location_prefix+"/servers/index.cgi"){const p='form[action="delete_servs.cgi"]',f=".ui_checked_columns td > label > span";$(p).find(f+" > a.ui_link_replaced").removeClass().addClass("ui_link"),$(p).find(f+' > a.ui_link[href*="edit_serv.cgi"]').removeClass().addClass("btn btn-link btn-link-bordered btn-xxs btn-hover-hide f__lnk_t_btn-el").html('<i class="fa-fw fa2 fa2-settings"></i>')}if($.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>'),28===Math.round(parseFloat($(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"),core.curModuleFile("virtual-server","edit_script.cgi")&&($('.container-fluid .ui_form button[name="stop"], .container-fluid .ui_form button[name="start"], .container-fluid .ui_form button[name="restart"]').addClass("heighter-34-force"),$('.container-fluid .ui_form button[name="upgrade"]').addClass("margined-right--5")),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_"+("1"==settings_right_table_links_type?" small":"")).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_"+("1"==settings_right_table_links_type?" small":"")).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+"/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 title="'+theme_language("edit_current")+'" aria-label="'+theme_language("edit_current")+'" class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i title="'+theme_language("select_deselect")+'" 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 title="'+theme_language("edit_current")+'" aria-label="'+theme_language("edit_current")+'" class="fa fa-edit text-semi-dark text-dark-hoverd"> </i>'),$(this).parent().parent().prepend('<i title="'+theme_language("select_deselect")+'" 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=$(".container-fluid 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=$(".container-fluid td[data-td-e] > table.table-hardcoded").parents("table").find("thead").find("tr").find("th").length;$(".container-fluid 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_path==v___location_prefix+"/virtualmin-wp-workbench/backup_form.cgi")&&v___location_href&&v___location_href.indexOf("?sched=")>-1&&setTimeout(function(){var e=$("a[href=\"javascript:hidden_opener('hiddendiv_adddest', 'hiddenopener_adddest')\"]");e.next().attr("style","").addClass("btn btn-tiny btn-default margined-bottom-10"),e.one("click",function(t){setTimeout(()=>{e.next("br").replaceWith('<div class="br-hidden"> </div>'),$(this).add(e).remove()},10)})},10),v___location_path==v___location_prefix+"/virtualmin-wp-workbench/backup_form.cgi"&&$(".container-fluid .panel-body .opener_table_style tbody > tr > td._c__op_d a").attr("tabindex","-1"),$.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-link btn-link-bordered btn-transparent filter-grayscale-not-hover").attr("style","position: absolute; right: 23px; margin-top: 5px !important; place-content: center;")}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-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;"))}if((core.curModuleFile("mailboxes","reply_mail.cgi")||core.curModuleFile("mailbox","reply_mail.cgi"))&&1==$("body").find('input.ui_hidden[name="html_edit"]').val()){let h="fn_mailboxes_html_editor_init";"function"==typeof fn_mailbox_html_editor_init&&(h="fn_mailbox_html_editor_init");var textarea_selector='form[action^="send_mail.cgi"] textarea[name="body"]',editor_mode=$(textarea_selector).data("html-mode")||"advanced",bundles=["quill:min"];"advanced"===editor_mode&&(bundles=Convert.arrPrepend("highlight/highlight:min",bundles)),load.bundle(bundles,1,['quill_editor_html_init("'+textarea_selector.replace(/"/g,'\\"')+'", "'+h+'")']),$('textarea[name="body"]').parents(".sub_table_container").addClass("xcontent-force-no-styling")}if(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")){var $del_mail_obj3=$('.container-fluid form[action="reply_mail.cgi"]'),$print_mail_btn=$del_mail_obj3.find('[name="print"]');$print_mail_btn.removeAttr("onclick"),$print_mail_btn.on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$del_mail_obj3.find(".table-responsive").first(),i=t.find(".sub_table_container"),a=t.next(".table-responsive").find(".clear-formatting"),n=i.parent().html()||String(),r=$('[id="mail-iframe"]').contents().find("body").html()||a.parent().html()||String();n&&(n=n.replace(/�/g,"")),r&&(r=r.replace(/�/g,"")),progress.start(),$("body").append('<div class="printer-container">'+n+"<br><br><hr><br><br>"+r+"</div>"),$($(".printer-container:last").printThis()).promise().done(function(){setTimeout(function(){progress.end()},600),$(".printer-container").remove()})})}if(v___location_path&&v___location_path.indexOf("/"+vars.pages.dashboard)>-1){if(!pjax_popstate){var status_id="#system-status",$status_panel_content=$(status_id+" .panel-body");!$status_panel_content.text().trim()&&$status_panel_content.parent(status_id).remove(),$.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){var r="col-xs-";$(this).find(t).last().removeClass(r+"6 "+r+"8").addClass(r+"12")}})});try{theme_panels_sort("dashboard")}catch(g){}$('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()}}})}),plugins.dashboard.update.formsURLs();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),setTimeout(theme_title_generate),$("#live_stats-collapse").on("shown.bs.collapse",function(){if(stats&&stats.sys){var e=[];Object.keys(stats.sys).forEach(function(t){t.startsWith("chart_")&&e.push(t)}),e.forEach(function(e){var t=stats.sys[e];"function"==typeof t.resizeListener&&t.resizeListener()})}})}if(pjax_popstate)reset_dnd_uploads(),init_dnd_uploads();else{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"));var $showpass_target=$('a[href*="showpass.cgi?"][onclick]'),show_pass_key='<i class="fa2 fa2-account-key"></i>';if($.each($showpass_target,function(){$(this).html(show_pass_key),$(this).next(".awobject").addClass("margined-left-4");var e=$(this).parent().parent(".awobject");e.length&&e.after($(this).detach())}),$showpass_target.addClass("badge badge-transparent badge-circle"),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((v___location_path===v___location_prefix+"/uconfig.cgi"&&v___location_query&&v___location_query.toString().includes("mailbox")||v___location_path===v___location_prefix+"/config.cgi"&&v___location_query&&v___location_query.toString().includes("mailboxes"))&&($('[name="open_mode"][value="0"]').click(),$('[name="open_mode"], [name="show_delall"]').parents("td.col_value").parent("tr").addClass("hidden")),(check_location_resource("/config.cgi?virtual-server")||check_location_resource("/config.cgi?module=virtual-server",1)||check_location_resource("/config.cgi?server-manager")||check_location_resource("/config.cgi?module=server-manager",1))&&($('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"> </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")||session.server.data("data-slider-fixed",0),core.curModule("virtual-server","list_records.cgi")&&$.each($('form[action="delete_records.cgi"] table td > label > [data-type][data-text]'),function(){$(this).replaceWith('<i data-cloud="'+$(this).data("type")+'" data-toggle="tooltip" data-title="'+$(this).data("text")+'" class="fa2 fa2-cloud'+("proxied"!==$(this).data("type")?"-off":"")+'"></i>')}),$.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"||core.curModuleFile("virtualmin-wp-workbench","")||"edit_dbase.cgi"==v___location_file||"edit_pam.cgi"==v___location_file||"list_records.cgi"==v___location_file||core.curModule("mailbox")||core.curModuleFile("virtual-server","edit_script.cgi")||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(){($(this).prev(".heighter-28").length||28===Math.round(parseFloat($(this).prev("input, select").css("height"))))&&$(this).find(".ui_form_end_submit").addClass("heighter-28");var e=$('select[name*="parentuser"]').first();if(core.curModule("virtual-server")&&1===e.length){var t=e.addClass("heighter-34 pull-left").attr("style","margin-top: -1px !important; margin-right: -1px;").detach();$('button[name="add1"] + input').after(t)}})}),$.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");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 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","4px")),core.curModule("firewalld")&&($("select#zone").addClass("heighter-34"),$('form[action="save_ifaces.cgi"] > .btn').addClass("btn-tiny f__lnk_t_btn-el")),$('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}).wrap('<span class="regex-pattern-wrap"></span>'),"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")||core.curModuleFile("mailboxes","mail_search.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"], [action="view_log.cgi"]) .table-responsive .table .sub_table_container .table tbody tr td > select, form:not([action="save_log.cgi"], [action="view_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,pjax_popstate)),$(".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+"logviewer/"&&(!v___location_file||"index.cgi"===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="'+vars.h.class.button.tableHeader+' 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")})}}$('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.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="'+vars.h.class.button.tableHeader+' 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,session.server.data("data-slider-fixed","0"),$("#right-side-tabs, .right-side-tabs-toggler").addClass("hidden")),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>'))}),Test.strContains(v___location_query,"refresh=1")&&plugins.navigation.reload(-1),v___location_path==v___location_prefix+"/proc/index_search.cgi"&&$(".col_header").removeClass("col_header");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");const a=$(t);a.removeAttr("onsubmit"),a.on("submit.fm",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=dayjs().unix()+""+parseInt(1e5*Math.random()),i=$(this),a=i.find(".ui_form_end_submit"),n=i.find('input[type="file"]')[0].files.length,r=i.find('input[name="dir"]').val(),o=function(){theme_restore_buttons_class(),$.fn.bootstrapFileInputReset(i),despinnerfy_buttons(0,a),i[0].reset(),a.addClass("disabled")},l=function(){n>1?plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("upload_successful").replace("$1","<em>"+n+"</em>").replace("$2","`<tt>"+r+"</tt>`"),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>"+n+"</em>").replace("$2","`<tt>"+r+"</tt>`"),10,"success","uploadSuccess_"+t,0,["top","right"])};spinnerfy_buttons(a),window["progress_id_ref_"+t]=$.ajax({type:"POST",url:"upload.cgi?id="+t+"&direct="+($('[type="checkbox"][name="direct"]').is(":checked")?1:0),processData:!1,contentType:!1,data:new FormData(i[0]),success:function(e){o(),function(e){var i=$(e.responseText).find("h3").text();return i.length?(plugins.messenger.post('<i class="fa fa-lg fa-fw fa-upload-cloud"></i>'+theme_language("global_error")+": "+i.replace(/\s:\s/g," — "),15,"error","uploadError_"+t,0,["top","right"]),1):0}(e)||200===e.status&&l()},error:function(){$("[data-progress-id="+t+"] .bottom_progress_cancel").trigger("click")}}),theme_message_dismiss("upload_error");var s=1;window["progress_id_ref_"+t+"_tracker"]=$.ajax({xhr:function(){var e=new window.XMLHttpRequest,i=0;return e.addEventListener("progress",function(e){var a=e.target.responseText,n=regex.matches(a,/.file\.value\s+=\s+"(.*)";/g,0,1),r=regex.matches(a,/.size\.value\s+=\s+"(.*)";/g,0,1),l=regex.matches(a,/.pc\.value\s+=\s+"(.*)";/g,0,1);r&&(s&&(s=0,o()),(l=l||i?parseInt((l.match(/|/g)||[]).length/50*100):0)||i++,l>100&&(l=100),progress_percent.control(t,"success",l,[n,r,l]));if(!session.status(a))return window["progress_id_ref_"+t].abort(),void window["progress_id_ref_"+t+"_tracker"].abort()},!1),e},type:i.attr("method"),url:v___location_prefix+"/uptracker.cgi?id="+t+"&uid="+(0===get_access_level()||1===get_access_level()?"":session.server.data("user-id")),complete:function(e){s&&(s=0,o()),theme_message_exists("uploadError_"+t)||200===e.status&&l()}})}),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"]',cllv=0;$('a[href*="list_users.cgi"], a[href*="list_aliases.cgi"], '+extra_selector).on("click",function(e){if(!$(e.target).is('input[type="checkbox"]')&&!$(e.target).is(".lawobject")&&!$(e.target).is(".ui_checked_checkbox")){var t=$(this);t.is(class_sel)&&(t=$(this).find("a").first()),!cllv&&t&&t.length&&(cllv++,t.off("click"),plugins.navigation.intersect.virtualmin(t))}})}if(core.curModuleFile("server-manager","index.cgi")||core.curModuleFile("server-manager","")||vars.requested_page&&vars.requested_page.includes("/server-manager/index.cgi")){var cllc=0;$('a[href*="mass_update_form.cgi"], .ui_checked_columns').on("click",function(e){if(!$(e.target).is('input[type="checkbox"]')){if(!$(e.target).is('input[type="checkbox"]')&&!$(e.target).is(".lawobject")&&!$(e.target).is(".ui_checked_checkbox")){var t=$(this);t=$(this).find("a").first()}!cllc&&t&&t.length&&(cllc++,t.off("click"),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,pjax_popstate),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");pjax_popstate&&page_refresh(1),cshrc2.length?(editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,pjax_popstate,.36),editor_init(cshrc2,!1,!1,"static2",!0,!1,!1,pjax_popstate,.36)):editor_init(cshrc1,!1,!1,"static1",!0,!1,!1,pjax_popstate,.51)}if(viewer_init_check()&&viewer_init(),settings_sysinfo_easypie_charts&&v___location_path==v___location_prefix+"/"+vars.pages.dashboard){var isNR=v___theme_night_mode_enabled||v___theme_night_mode?1:0,barColor=function(e,t){return t?e<50?isNR?"#269373":"#5cb85c":e<85?isNR?"#c38d40":"#f0ad4e":"#cb3935":isNR?"#269373":"#5cb85c"};const m=$("body").find("#system-status").find(".piechart"),b=m.filter('[data-charts="sysinfo_virt_percent"]').length;m.each(function(){const e=$(this),t=e.data("charts");let i=!0;b&&"sysinfo_mem_percent"===t&&(i=!1),e.easyPieChart({barColor:function(e){return barColor(e,i)},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",animate:{duration:window.matchMedia("(prefers-reduced-motion: reduce)").matches?60:600,enabled:!0},onStep:function(e,t,i){$(this.el).find(".percent").text(Math.round(i))}})}),0!=v___user_level&&3!=v___user_level&&fetch(v___location_prefix+"/xhr.cgi?xhr-info=1")}if(function(){const e=".container-fluid .panel-body";if(core.curModuleFile("virtualmin-wp-workbench","")&&!pjax_popstate){const t='a[href*="edit_script.cgi"], a[href*="script_login.cgi"]',i="btn btn-link-bordered btn-transparent btn-xxs f__lnk_t_btn-el margined-top--1-5";$(e).find(t).each(function(){const e=$(this);e.text("").addClass("pd-ri-0"),e.attr("href").includes("edit_script.cgi")&&e.append('<i class="fa fa-cog '+i+'"></i>'),e.attr("href").includes("script_login.cgi")&&(e.append('<i class="fa fa-unlock '+i+'"></i>'),e.addClass("margined-left-0"))}),$(e).find('a[href*="edit_script.cgi"]').each(function(){const e=$(this),t=e.attr("href"),i=e.attr("target");i&&i.includes("_blank")&&e.attr("href",link_type_convert(t,2))}),$(e).find("x-buttons button").addClass("heighter-28")}if(!core.curModule("virtualmin-wp-workbench")&&!core.curModuleFile("virtual-server","edit_script.cgi")||pjax_popstate||$(e).find("x-tooltip").each(function(){const e=$(this),t=(e.attr("title")||"").split(":").map(function(e,t){return 0===t?"<strong>"+e+"</strong>":e}).join("<br>");e.attr("title",t),e.tooltip({sanitize:!1,html:!0,delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})}),core.curModuleFile("virtualmin-wp-workbench","")){const e=$('#att_instances .ui_form[action="workbenches.cgi"]'),t=e.find('select[name="bulk"]');e.on("keydown",t,function(i){if(($(i.target).is("#bulkapply")||!$(i.target).is("button"))&&"Tab"!==i.key&&(" "!==i.key||!t.val()||$(i.target).is(t)))if("Enter"!==i.key&&13!==i.which||!t.val()){if(" "===i.key&&$(i.target).is(t))return;i.preventDefault()}else{i.preventDefault();e.find('button[name="bulkapply"]').first().trigger("click"),t.focus()}});const i=$('#att_plugins .ui_form[action="workbenches.cgi"], #att_themes .ui_form[action="workbenches.cgi"]');i.on("keydown",i.find('input[type="checkbox"]'),function(e){if("Enter"===e.key||13===e.which){if(!i.find('select[name="bulk"]:visible').val())return void e.preventDefault()}})}}(),(-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+"xinetd/"||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+"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("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("mailboxes","")||core.curModuleFile("mailboxes","index.cgi")||core.curModuleFile("status","")||core.curModuleFile("status","index.cgi")||core.curModuleFile("mysql","index.cgi")||core.curModuleFile("mysql","list_vars.cgi")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("custom","index.cgi")||core.curModuleFile("cron","index.cgi")||core.curModuleFile("logviewer","")||core.curModuleFile("logviewer","index.cgi")||core.curModuleFile("syslog","")||core.curModuleFile("syslog","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("virtual-server","list_aliases.cgi")||core.curModuleFile("ruby-gems","index.cgi")||core.curModuleFile("postfix","master.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("postfix","sni.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("fail2ban","list_status.cgi")||core.curModuleFile("fail2ban","jail_blocks.cgi")||core.curModuleFile("virtual-server","edit_newmysqls.cgi")||core.curModuleFile("virtual-server","list_databases.cgi")||core.curModuleFile("virtual-server","connectivity.cgi")||core.curModuleFile("virtual-server","list_buckets.cgi")||core.curModuleFile("virtual-server","list_clouds.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("virtualmin-wp-workbench","")||core.curModuleFile("virtual-server","edit_newresels.cgi")||core.curModuleFile("cpan","index.cgi")||core.curModuleFile("virtual-server","list_records.cgi")||core.curModule("firewall")||core.curModule("firewall6")||core.curModule("ruby-gems")||core.curModuleFile("phpini","")||core.curModuleFile("phpini","list_pkgs.cgi")||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+"/filter/"||$('#content .panel[data-module-sortable="1"]').length){var $page_table_table=$(".__page table.table");$page_table_table.each(function(){try{table_data_init($(this),!1,!1,!1,datatable_pagination_auto_breaker())}catch(e){console.warn("Warning! Cannot initialize sortable table\n",e)}}).promise().done(function(){$page_table_table.length&&page.render.content.filter.init()})}else{var ui_paginations_str="ui_form_elements_wrapper_search",$ui_paginations=$("form:visible ."+ui_paginations_str).length?$("form:visible ."+ui_paginations_str):$("."+ui_paginations_str);$ui_paginations.length&&page.render.content.filter.init()}var $cont_fl_tbl_sortable=$(".container-fluid table.dtable-sortable");if($cont_fl_tbl_sortable.each(function(){table_data_init($(this))}).promise().done(function(){$cont_fl_tbl_sortable.length&&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()&&(v___location_file==vars.pages.dashboard?(plugins.navigation.switch.set("dashboard"),plugins.navigation.reset()):v___initial_load||($("#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();window[e]=t,theme.config.save()}),$.support.spa&&"mconfig.cgi"===v___location_file&&uri_parse_param("module")===v___module_file_manager){var file_manager_config_form_func=function(){return $('.container-fluid form[action*="mconfig_save.cgi"]')},file_manager_config_save_btn_func=function(){return file_manager_config_form_func().find('[name="save"].ui_form_end_submit')},$file_manager_config_form=file_manager_config_form_func();$file_manager_config_form.keydown(function(e){if(13===e.keyCode)return e.preventDefault(),e.stopImmediatePropagation(),file_manager_config_save_btn_func().trigger("focus").trigger("click"),!1}),$file_manager_config_form.on("submit",function(e){(!e.originalEvent||e.originalEvent.submitter&&"save_next"!==e.originalEvent.submitter.name)&&(e.preventDefault(),e.stopImmediatePropagation());var t=$file_manager_config_form.find('select[name="per_page"]');t.length&&(config_portable_module_filemanager_records_per_page=parseInt(t.val())),theme.config.apply($file_manager_config_form,1)});var $fm_size_checkbox=$file_manager_config_form.find('input[name="columns"][value="size"]');$fm_size_checkbox.length&&!$fm_size_checkbox.is(":checked")&&$fm_size_checkbox.prop("checked",!0),$fm_size_checkbox.parent().hide();var $fm_def_sort=$file_manager_config_form.find('select[name="config_portable_module_filemanager_default_sort"]');if($fm_def_sort.length){var $empty_options=$fm_def_sort.find('option[value="0"], option[value="-1"]'),$empty_option_1=$($empty_options[0]),$empty_option_2=$($empty_options[1]);$empty_option_1.after('<option data-label disabled="disabled">'+theme_language("filemanager_sorting_asc")+"</option>"),$empty_option_2.text(theme_language("filemanager_sorting_desc")).attr("data-label","").prop("disabled","disabled").removeAttr("value")}var $fm_columns=$file_manager_config_form.find('input[name="columns"]:not([value="size"])');$fm_columns.on("input",function(){var e=this.value,t=this.checked;$fm_def_sort.find("option[value]").map(function(){if(this.value&&this.value.includes(e))return!t&&$(this).is(":selected")&&$fm_def_sort.val(0),$(this).prop("disabled",!t)})}).trigger("input");var $save_btn=$file_manager_config_form.find('[name="save"]'),get_file_manager_link=function(){return $('aside .navigation a[href*="'+v___module_file_manager+'"]').attr("href")};$save_btn.on("click",function(e){if(e.preventDefault(),e.stopPropagation(),vars.pjax.cache.set("disable"),!$(this).hasClass("disabled")){var t=$(this),i=session.server.data("webprefix");t.attr("name","save_next");var a=$("<input>").attr({type:"hidden",name:"section_curr",value:$file_manager_config_form.find('[name="section"]').val()}).appendTo($file_manager_config_form);set_onbeforeunload_status(0),$file_manager_config_form.submit(),despinnerfy_buttons(),spinnerfy_buttons(t),progress.start(),$.ajax({type:"POST",url:$file_manager_config_form.attr("action")+"?noredirect=1",data:$file_manager_config_form.serialize(),complete:function(){theme_open_new_inner_link(i+"/"+v___module_file_manager+"/index.cgi")}}),setTimeout(function(){a.remove(),t.attr("name","save")},1)}});var deps={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"]};for(const v in deps)theme.config._.funcs.dependent_radios(v,deps[v],!1,$file_manager_config_form);if(["selinux","acls"].forEach(function(e){var t=$file_manager_config_form.find('[name="columns"][value="'+e+'"]'),i="filemanager_mconfig_columns_"+e+"_disabled",a=window["theme_server_data_available_"+e];t.prop("disabled",!a);var n=t.parent();a||(t.is(":checked")&&t.prop("checked",!1),n.attr("data-target-tooltip-callback",i),theme_inject_tooltip(i,!1,!1,!1,!1,!1,!0,"click",!0,1))}),v___location_path===v___location_prefix+"/mconfig.cgi"){var $files_safe_mode_input_obj=$('.container-fluid input[name="config_portable_module_filemanager_files_safe_mode"]');!pjax_popstate&&$files_safe_mode_input_obj.length&&snippets.inject_extra_option("checkbox:after",$files_safe_mode_input_obj.closest(".awobject").last(),"config_portable_module_filemanager_files_mode_ask",theme_language("filemanager_files_mode_ask"),{style:{marginLeft:6,verticalAlign:"1%"},checked:!!config_portable_module_filemanager_files_mode_ask});var $files_auto_per_page_mode_input_obj=$('.container-fluid select[name="per_page"]');$files_auto_per_page_mode_input_obj.length&&(pjax_popstate||snippets.inject_extra_option("checkbox:after",$files_auto_per_page_mode_input_obj,"config_portable_module_filemanager_auto_per_page",theme_language("global_automatic"),{style:{marginLeft:8,verticalAlign:"1%"},checked:!!config_portable_module_filemanager_auto_per_page},function(){var e=$('input[name="config_portable_module_filemanager_auto_per_page"]');$('form[action="mconfig_save.cgi"]').on("change",e,function(){var t=e.get(0);$files_auto_per_page_mode_input_obj.toggleClass("disabled","true"==t.value)}).trigger("change")}))}}if($('.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("/"+vars.pages.dashboard)>-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(".piechart canvas","click"),$("body").on("click",".piechart 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&&plugins.pjax.page.link.get(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})}var extended_sysinfo_str="extended_sysinfo";vars.pjax.cache.set("disable");var dashboard_panels=function(){return $("#"+extended_sysinfo_str+"-1.panel-group").find(".panel")},data_referrer_str="data-referrer";dashboard_panels().find(".on-hover").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).parents("["+data_referrer_str+"]"),i=t.attr(data_referrer_str);try{settings_sysinfo_hidden_panels_user=settings_sysinfo_hidden_panels_user.replace(/'/g,'"'),settings_sysinfo_hidden_panels_user=JSON.parse(settings_sysinfo_hidden_panels_user)}catch(e){settings_sysinfo_hidden_panels_user={}}settings_sysinfo_hidden_panels_user[i]=$.trim(t.find(".panel-title a").text()),settings_sysinfo_hidden_panels_user=JSON.stringify(settings_sysinfo_hidden_panels_user),theme.config.save(),t.remove();var a="#right-side-tabs .extended-list-data > .panel-group#extended_sysinfo";$(a).length&&$(a).find("["+data_referrer_str+"="+i+"]").remove(),$(".tooltip").hide();var n='data-panel-removed="messenger"';localStorage.getItem(v___server_hostname+"-dashboard_panel_removed_explained")||(plugins.messenger.post("<i "+n+' class="fa fa-lg fa-fw fa-exclamation-circle"></i>'+theme_language("dashboard_panels_disabled_explain"),45,"info","dashboard_panel_removed",1,["bottom","center"]),$("["+n+"]").parent().prev(".messenger-close").one("click",function(e){localStorage.setItem(v___server_hostname+"-dashboard_panel_removed_explained",1)}))});var panels_container_sel=".container-fluid #"+extended_sysinfo_str+"-1";sortable(panels_container_sel,{forcePlaceholderSize:!0}).on("sortupdate",function(){settings_sysinfo_panels_order={},dashboard_panels().each(function(e,t){settings_sysinfo_panels_order[$(t).attr(data_referrer_str)]=String.fromCharCode(97+e).toUpperCase()}).promise().done(function(){settings_sysinfo_panels_order=JSON.stringify(settings_sysinfo_panels_order),theme.config.save(),setTimeout(function(){try{theme_panels_sort("slider")}catch(e){}},100)})}),plugins.dashboard.update.alertsHTML()}($t_uri_virtualmin&&core.curModuleFileQuery("syslog","save_log.cgi","view=1")||$t_uri_virtualmin&&core.curModuleFileQuery("logviewer","view_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"));const log_follow_mode=core.curModuleFileQuery("logviewer","view_log.cgi","since=-f");if(log_follow_mode&&fn_logviewer_status_icon("connecting"),core.curModuleFileQuery("logviewer","view_log.cgi","view=1")&&!log_follow_mode||core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")){var targetMain=".panel-body",target=targetMain+" .fa-filter",targetDD=targetMain+" .refresh-filter-btn",current_refresh_timer=localStorage.getItem(v___server_hostname+"-option_"+v___module+"_refresh"),current_icon_class_str=".fa-filter",refresh_timer_str=".refresh-timer-timeout",btn_str=target+", "+targetMain+" "+refresh_timer_str,btn_refresh_lbl=theme_language("global_refresh"),btn_filter_lbl=theme_language("datatable_filter"),timeout_box='<span class="label label-transparent-35 label-sm margined-top-1 refresh-timer-timeout">'+(current_refresh_timer||"0")+" </span>",update_filter_cls=function(e){const t=$(targetDD);$target_btn=t.prev(),e?t.add($target_btn).removeClass("btn-info").addClass("btn-warning"):$target_btn.add(t).removeClass("btn-warning").addClass("btn-info")};$.each($(target+":not([data-processed])").parent("button"),function(e,t){if($(this).addClass("btn-xxs btntimer").find("i").attr("data-processed",1),$(this).wrap('<div class="btn-group'+(1===e?" dropup":"")+'"></div>'),$(this).after('<button class="btn btn-info dropdown-toggle refresh-filter-btn" 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="2">2 '+theme_language("global_seconds")+'</a></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("[data-entry]").html(btn_refresh_lbl+" "),update_filter_cls(!0),$(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")+" </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("[data-entry]").html(btn_refresh_lbl+" "),t.find(refresh_timer_str).html(current_refresh_timer+" "),update_filter_cls(!0),$(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("[data-entry]").html(btn_filter_lbl+" "),update_filter_cls(!1),!t.find(current_icon_class_str).length&&t.prepend('<i class="fa fa-fw fa-filter fa-1_10x refresh-timer-icon"></i>')})}),$.each($('form[action*="save_log.cgi"] select[name="idx"], form[action*="view_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();var $a_targ_dom_file=$("a[data-dom-file]"),a_targ_dom_file_path=Convert.quoteEscape($a_targ_dom_file.data("dom-file")),a_targ_dom_file_view_link="!view "+a_targ_dom_file_path+"/M=1/V=1/H=1",a_targ_dom_file_edit_link="!edit "+a_targ_dom_file_path;$a_targ_dom_file.data("view-link",a_targ_dom_file_view_link).data("edit-link",a_targ_dom_file_edit_link).attr("href",a_targ_dom_file_view_link)}if(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"))),plugins.details.bind_and_apply(),vars.plugins.tooltip.delay.show=300,vars.plugins.tooltip.delay.hide=50,snippets.tooltips(!0),$.support.spa&&(window.matchMedia("(max-width: 864px)").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(),$("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();if($(proc_nice_level).append(proc_nice_pid.detach(),proc_target_content),$(proc_nice_level).find('[type="button"]').addClass("heighter-28"),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}),$('.proc form[action*="kill_proc.cgi"]').length){var sig_sel_sel_str='[name="signal"]',$sig_sel_btns=$(sig_sel_sel_str+" ~ .btn");$sig_sel_btns.removeClass("heighter-28"),$(sig_sel_sel_str).prev().prev(".btn").find(".fa-search").removeClass("fa-search").addClass("fa-play")}}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",t=$(e+'[name="'+$(this).data("year")+'"]'),i=$('select[name="'+$(this).data("month")+'"]'),a=$(e+'[name="'+$(this).data("day")+'"]'),n=1==$(i).find("option:eq(0)").val()?0:1;$(this).datepicker({format:" yyyy-m-d",language:session.server.data("language"),todayHighlight:!0,autoclose:!0}).on("changeDate",function(e){var r=(e.date.getFullYear()+"-"+(e.date.getMonth()+1)+"-"+e.date.getDate()).split("-");r&&($(a).val(parseInt(r[2])),$(i).val(parseInt(r[1])-n),$(t).val(parseInt(r[0])))}).on("show",function(e){var r=$(this),o=parseInt($(a).val()),l=!!$(i).val()&&parseInt($(i).val())+n,s=$(t).val();o&&l&&s&&r.datepicker("update",s+"-"+l+"-"+o)})}),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")||core.curModuleFile("virtualmin-wp-workbench","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","edit_backup.cgi")||core.curModuleFile("server-manager","edit_vbackup.cgi")||core.curModuleFile("server-manager","edit_vsync.cgi"))&&add_clock_icon($('[name$="_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",mod_status_edit_mon_select='[action="edit_mon.cgi"] '+selectStr+'[name="type"]',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, "+mod_status_edit_mon_select+", "+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",heighterTypeForce="-force",v___page_hadEditor=0;if(pjax_popstate&&$.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("mailboxes","list_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("postgresql","")||core.curModuleFile("postgresql","index.cgi")||core.curModuleFile("postgresql","edit_dbase.cgi")||core.curModuleFile("status","")||core.curModuleFile("status","index.cgi")||core.curModuleFile("virtual-server","edit_tmpl.cgi")||v___location_path===v___location_prefix+"/config.cgi"||v___location_path===v___location_prefix+"/uconfig.cgi"||v___location_path===v___location_prefix+"/mconfig.cgi"||v___location_path===v___location_prefix+"/tconfig.cgi"||core.curModuleFileQuery("logviewer","view_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","view=1")||core.curModuleFileQuery("syslog","save_log.cgi","new=")||v___page_hasEditor||v___page_hadEditor){var force_small_select=!1;(select_for.hasClass(heighterStr+"-28")||select_for.outerHeight()<=28||force_small_select)&&!select_for.hasClass(heighterStr+"-"+heighterType+heighterTypeForce)&&(heighterType="28"),$(mod_status_edit_mon_select).length?$(mod_status_edit_mon_select).length&&$(mod_status_edit_mon_select).each(function(){filter_out_objects_inner_chars($(this).prev(),":"),$(this).prev().addClass("elm-rel-z "+heighterStr+"-"+heighterType+heighterTypeForce)}):editor_config_label("edit_keys.cgi"===v___location_file),select_for.select2({minimumResultsForSearch:6,containerCssClass:select2ContentTriggerClass+" "+heighterStr+"-"+heighterType,dropdownCssClass:select2ContentTriggerClass+" h"+heighterType}),select_for.addClass(heighterStr+"-"+heighterType+heighterTypeForce),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"),setTimeout(function(){var e=document.querySelector(".select2-search__field");e&&e.focus()})}),select_for.on("select2:select",function(e){$(this).parents("form").trigger("input")}),setTimeout(function(){bind_sameorigin(0)},100)}if("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){}}))}pjax_popstate||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("gnupg","edit_sign.cgi")||core.curModuleFile("gnupg","edit_decrypt.cgi")||core.curModuleFile("gnupg","edit_encrypt.cgi")){var $gnupg_forms=$('.container-fluid form[action="sign.cgi/signed.txt"].ui_form, .container-fluid form[action="decrypt.cgi/output.txt"].ui_form,.container-fluid form[action="encrypt.cgi/output.gpg"].ui_form');$gnupg_forms.attr("target","_blank")}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")||core.curModuleFile("virtualmin-wp-workbench","backup_form.cgi")){var $vm_backup_form=$('form[action*="backup.cgi/backup"]'),$vm_backup_form_sched=$('form[action*="backup_sched.cgi"]'),$vm_backup_form_target=$vm_backup_form.length?$vm_backup_form:$vm_backup_form_sched,$vm_backup_select_desc=$vm_backup_form.find('select[name^="dest0_"]'),$vm_backup_compression=$vm_backup_form_target.find('input[type="radio"][name="compression"]'),compression_format=function(e,t){var i=$vm_backup_form_target.find('input[type="radio"][name="increment"][value="0"]'),a=i.closest("tr");"3"==e?(t||i.trigger("click"),a.hide()):a.show()};$vm_backup_select_desc.on("input",function(){var e='input[name="fmt"]',t=$("form").find(e+'[value="0"]'),i=$("form").find(e+'[value="1"], '+e+'[value="2"]');44==$(this).val()?(compression_format(3,!0),i.prop("disabled",!0),t.prop("checked",!0).trigger("input"),t.closest("tr").toggleClass("hidden",!0)):(compression_format($vm_backup_compression.filter(":checked").val(),!0),i.prop("disabled",!1),t.closest("tr").toggleClass("hidden",!1))}).find('option[value="44"]').trigger("input"),$vm_backup_compression.on("input",function(){44!=$vm_backup_select_desc.val()&&compression_format($(this).val(),!1)})}if($.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","edit_user.cgi")){$('.ui_form > table.opener_table_style > tbody > tr > td.opener_container > div[class^="opener_"] > .table-hardcoded:first-child').each(function(e,t){$(t).find("tbody > tr > td").length||$(t).parents(".opener_table_style").remove()});var $showpass=$('form[action="save_user.cgi"] a[href^="showpass.cgi"]');$showpass.length&&$showpass.prev(".awradio").addClass("vertical-align-text-top").find(".lawobject").css({maxHeight:"25px"})}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")&&!pjax_popstate){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+" <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()})}if(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","list_databases.cgi")||core.curModuleFile("virtual-server","edit_domain.cgi")||core.curModuleFile("virtual-server","domain_form.cgi")||core.curModuleFile("virtual-server","edit_pass.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("mailbox","inbox_login_error.cgi")||core.curModuleFile("server-manager","edit_pass.cgi")&&v___location_query.includes("force=1")||$('.container-fluid .panel-body input[type="password"][data-password]').length){core.curModuleFile("virtual-server","edit_domain.cgi")&&$('.container-fluid .panel-body input[type="text"][name="passwd"]').addClass("t-password-complexity-meter-inputter-obj"),$('.container-fluid .panel-body input[type="password"]:not([data-password-again]), .container-fluid .panel-body input[type="text"][name="passwd"]:not([data-password-again]), .container-fluid .panel-body input.t-password-complexity-meter-inputter-obj, [data-uri*="/virtual-server/edit_user.cgi"] .container-fluid .panel-body input[name="mailpass"]').passwordComplexityMeter();var class_to_remove="badge badge-transparent badge-circle";if(core.curModuleFile("virtual-server","list_databases.cgi")){var $view_pass_button=$('a[href^="showpass.cgi?dom="]');$view_pass_button.each(function(){$(this).addClass("btn btn-default heighter-28 margined-left--1"),$(this).parents(".ui_radio_table").find(".t-password-complexity-meter-wrapper-cont > .btn-group").append($(this).detach()),$(this).removeClass(class_to_remove)})}if(core.curModuleFile("server-manager","edit_pass.cgi")){var $view_pass_button2=$('.t-password-complexity-meter-wrapper-cont + a[href^="showpass.cgi?"]');$view_pass_button2.addClass("btn btn-default heighter-28 margined-left--1"),$view_pass_button2.removeClass(class_to_remove);var $fg_targ=$('form[action="save_pass.cgi"] .t-password-complexity-meter-wrapper-cont > .btn-group');$fg_targ.append($view_pass_button2.detach()),$fg_targ.find("i.fa2-account-key").addClass("pd-tp-3");var $view_pass_button3=$('input[type="password"] + a[href^="showpass.cgi?"]');$view_pass_button3.addClass("btn btn-default heighter-28 margined-left--4").find("i.fa2-account-key").addClass("pd-tp-3"),$view_pass_button3.removeClass(class_to_remove)}}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(){28===Math.round(parseFloat($(this).css("height")))&&$(this).nextAll(".btn").addClass("heighter-28")}),pjax_popstate&&(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")}),!pjax_popstate){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",radio_table_str="ui_radio_"+table_str,table_grig_str="ui_grid_"+table_str,table_grig_str_percent=table_grig_str+':not([width*="%"])',cls_no_hover_str="nh-tr",cls_no_border_str="no-border",multi_sel_str="ui_multi_select",margined_str="margined-",hidden_div_str="hiddendiv_",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)$/),proc_hidden_dest_backups=1,proc_hidden_dest_backups_cm=1;if(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))})}}if(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"){var shell_header_sel="#headln2r .btn-group",path_to_shell_class="path-to-shell",shell_title=$("aside .user-link.ported-console").attr("data-title"),shell_title_inject=String();pjax_popstate||(shell_title&&(shell_title_inject=theme_inject_tooltip(shell_title,"#content",!1,!1,!1,"(")),"0"===session.server.data("terminal")&&$(shell_header_sel).append("<a "+shell_title_inject+' class="btn btn-link text-lighter pull-left path-to-shell-injected '+path_to_shell_class+'"><i class="fa fa-terminal" aria-hidden="true"></i></a>')),$(shell_header_sel).find("."+path_to_shell_class).on("click",function(e){e.preventDefault(),plugins.shell.open()})}if(core.error.get()&&(v___initial_load||v___module===v___module_file_manager||vars.requested_page&&vars.requested_page.includes("/"+v___module_file_manager))&&core.error.clean(),core.curModuleFile("server-manager","list_ifaces.cgi")||core.curModuleFile("server-manager","list_ips.cgi")){var ui_links_row_str="ui_links_row",$empty_table_check=$(".container-fluid ."+ui_links_row_str+" ~ .table-condensed, #att_ranges .table-striped"),$safe_target=$empty_table_check.find("thead + tbody").html();$safe_target&&1===$safe_target.length&&$empty_table_check.add($empty_table_check.next("."+ui_links_row_str)).add($empty_table_check.next("."+ui_links_row_str).nextAll("br")).remove()}if($("textarea").on("click",function(){if($(this).attr("readonly")&&!$(this).hasClass("disabled")){var e=$(this).val();e&&(this.select(),theme_copy_to_clipboard(e),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-clipboard"></i>'+theme_language("textarea_to_clipboard")+":<pre>"+e+"</pre>",5,"success","textarea_to_clipboard"))}}),core.curModuleFile("mailbox","list_addresses.cgi")&&$('.container-fluid textarea[name="members"] ~ .btn.btn-success.ui_form_end_submit').removeClass("btn-success").addClass("btn-default btn-block margined-top--5 btn--save-grp").find(".fa").remove(),core.curModule("custom")){var custom_file_edit_mode=core.curModuleFile("custom","view.cgi");if(!pjax_popstate){var custom_cmd_main_container_main=".ui_grid_row > .ui_grid_cell > .ui_form > .table-responsive > .table-subtable > tbody > tr > td > .sub_table_container",custom_cmd_main_container=custom_cmd_main_container_main+" > tbody";$(custom_cmd_main_container+' > tr:nth-child(1) > td[colspan="2"]').each(function(){$(this).find(".ui_form_end_submit").length||$(this).addClass("no-contents padded-a-3").parent("tr").addClass("no-contents")});var $has_icon=$(".sub_table_container td:last-child.col_value.col_header > .ui_form_end_submit");$has_icon.find("i.fa").length||$has_icon.parents(".ui_grid_cell").length||$has_icon.addClass("heighter-28");var custom_sub_table=".custom table.ui_grid_table .ui_grid_row .sub_table_container",$col_head=$(custom_sub_table+" tr");if($.each($col_head,function(){$(this).find(".ui_form_end_submit").length||$(this).find(".col_header.col_value").removeClass()}),$.each($(custom_sub_table),function(){var e=$(this).find("tr");e.find("input:not(:hidden):not(.hidden), textarea, select").length>=1&&($(this).addClass("dense"),e.find("td.col_label").addClass("w-auto"),e.find('td.col_value:not([colspan="2"])').find("button.ui_form_end_submit").addClass("btn-tiny").parent("td").prev("td.col_label").addClass("vertical-align-middle"),e.addClass("no-contents"))}),"form.cgi"===v___location_file&&$(".sub_table_container").find(".ui_form_end_submit").addClass("heighter-28").prepend('<i class="fa fa-fw fa-0_95x fa-play"> </i>').parent("td").prev("td.col_label").addClass("vertical-align-middle"),custom_file_edit_mode){var detach_button_html='<a data-external-detach-custom-file 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-link text-lighter text-decoration-none btn-squiare-headln2 text-lighter-slight"><span class="fa2 fa2-link-external vertical-align-baseline fa-mds"></span></a>';$("#headln2l .btn-group").append(detach_button_html)}}custom_file_edit_mode&&$("#headln2l .btn-group [data-external-detach-custom-file]").on("click",function(e){e.preventDefault();var t=$("#headln2c").find("[data-main_title] + [data-sub_title] > tt").text();t&&edit_file_from_full_path(t)})}pjax_popstate||$(".chooser_button").each(function(){var e=$(this).prev("input[name], textarea");e.length?!e.attr("class")&&Math.round(e.outerHeight(!0))>=32&&e.css({marginTop:1,marginBottom:1}):(e=$(this).prev("span").find(".ui_opt_textbox")).length&&(e=e.unwrap()),$(this).add(e).wrapAll('<span class="white-space-pre el-wp-chooser"></span>')});var vs_str_="virtual-server",sm_str_="server-manager",vm_nginx_="virtualmin-nginx";if((core.curModuleFile(vs_str_,"edit_newchroot.cgi")||core.curModuleFile(vs_str_,"edit_newglobal.cgi")||core.curModuleFile(vs_str_,"edit_newlinks.cgi")||core.curModuleFile(vs_str_,"edit_newshells.cgi")||core.curModuleFile(vs_str_,"view_backuplog.cgi")||core.curModuleFile(vm_nginx_,"edit_logs.cgi")||core.curModuleFile(vm_nginx_,"edit_srewrite.cgi")||core.curModuleFile(vm_nginx_,"edit_saccess.cgi")||core.curModuleFile(vm_nginx_,"edit_sproxy.cgi")||core.curModuleFile(vm_nginx_,"edit_fcgi.cgi")||core.curModuleFile(vs_str_,"edit_phpver.cgi")||core.curModuleFile(vs_str_,"edit_spf.cgi")||core.curModuleFile(vs_str_,"ratelimit.cgi")||core.curModuleFile(vs_str_,"edit_newfields.cgi")||core.curModuleFile(sm_str_,"edit_docker.cgi")||core.curModuleFile(sm_str_,"edit_vserver.cgi")||core.curModuleFile(sm_str_,"edit_zone.cgi")||core.curModuleFile(sm_str_,"edit_openvz.cgi")||core.curModuleFile(sm_str_,"list_locations.cgi")||core.curModuleFile(sm_str_,"edit_lxc.cgi")||core.curModuleFile(sm_str_,"list_ips.cgi")||core.curModuleFile("acl","edit_unix.cgi")||core.curModuleFile("squid","edit_cachemgr.cgi")||core.curModuleFile("spam","edit_white.cgi")||core.curModuleFile("fsdump","edit_dump.cgi")||core.curModuleFile("fetchmail","")||core.curModuleFile("mysql","backup_form.cgi")||core.curModuleFile("mysql","table_form.cgi")||core.curModuleFile("postgresql","backup_form.cgi")||core.curModuleFile("webmin","edit_bind.cgi")||core.curModuleFile("usermin","edit_bind.cgi")||core.curModuleFile("procmail","edit_recipe.cgi")||core.curModuleFile("usermin","edit_logout.cgi")||core.curModuleFile("net","list_routes.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")||core.curModuleFile(vs_str_,"edit_bucket.cgi")||core.curModuleFile("sshd","edit_net.cgi")||core.curModuleFile("fail2ban","edit_jail.cgi")||core.curModuleFile("webmin","edit_advanced.cgi")||core.curModuleFile("webmin","edit_web.cgi")||core.curModuleFile("usermin","edit_web.cgi")||core.curModuleFile("webmin","edit_os.cgi")||core.curModuleFile("usermin","edit_os.cgi")||core.curModuleFile("webmin","edit_descs.cgi")||core.curModuleFile("usermin","edit_descs.cgi")||core.curModuleFile("virtualmin-init","edit_tmpl.cgi")||core.curModuleFile("ssh","edit_host.cgi")||core.curModuleFile("syslog","edit_log.cgi")||core.curModuleFile("mysql","newdb_form.cgi")||core.curModuleFile("ldap-server","acl_form.cgi")||core.curModuleFile("ldap-client","edit_server.cgi")||core.curModuleFile("squid","edit_ports.cgi")||core.curModuleFile("squid","edit_logs.cgi")||core.curModuleFile("squid","edit_cache.cgi")||core.curModuleFile("virtualmin-nginx","edit_server.cgi")||core.curModuleFile("spam","edit_simple.cgi")||core.curModuleFile("spam","edit_report.cgi")||core.curModuleFile("spam","edit_header.cgi")||core.curModule("virtual-server")&&"view_domain.cgi"==v___location_file||core.curModule("virtual-server")&&"edit_resel.cgi"==v___location_file||core.curModule("virtual-server")&&"edit_tmpl.cgi"==v___location_file||core.curModule("virtual-server")&&"view_backuplog.cgi"==v___location_file||core.curModuleFile("cpan","download.cgi")||core.curModuleFile("virtual-server","edit_phpmode.cgi")||core.curModuleFile("net","edit_bifc.cgi")||core.curModuleFile("net","edit_aifc.cgi")||check_location_resource("/config.cgi?phpini")||check_location_resource("/config.cgi?module=phpini",1)||$('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):not(.dataTable)").removeClass("table-hover").addClass("no-hover"),core.curModule("virtual-server")&&"edit_tmpl.cgi"==v___location_file&&$(".table:not(.opener_table_style):not(.dataTable) > tbody > tr > td > table > tbody > tr > td > table").addClass("w-100p-f"),!core.curModule("virtual-server")||"view_domain.cgi"!=v___location_file&&"view_backuplog.cgi"!=v___location_file||$(".table.opener_table_style").removeClass("table-hover").addClass("no-hover")),theme_ui_opt_select(3),core.curModuleFile("apache","edit_mods.cgi")){var mpm_targets='.iawobject[value^="mpm_"]';$(mpm_targets).on("click",function(){$(mpm_targets+":checked").not(this).trigger("click")})}if(snippets.page.render_table_labels($(".container-fluid > .panel > .panel-body")),$(".ui_grid_cell:first-child > .btn-group.ui_links_row").parent().addClass("ui_grid_cell_auto"),$(".ui_radio_table > tbody > tr > td > textarea").each(function(){$(this).parent("td").prev("td").addClass("vertical-align-middle")}),core.curModuleFile("acl","edit_user.cgi")&&$('.container-fluid form[action="save_user.cgi"] input[name="twofactor"]').prev().removeClass().addClass("btn btn-xxs btn-success margined-left-5 pd-bt-2").attr("type","submit"),!pjax_popstate&&v___location_path===v___location_prefix+"/virtual-server/edit_tmpl.cgi"){embed_table_header_icon();var server_template_filter_dropdown_spinner=theme_spinner_small(!1,v___theme_night_mode?" ":"dark smaller2"),server_template_filter_dropdown_tooltip_text=theme_language("tooltip_virtualmin_templates_filter_generating"),server_template_filter_dropdown_tooltip_data_toggle_str='data-toggle="tooltip"',server_template_filter_dropdown_html="<div "+server_template_filter_dropdown_tooltip_data_toggle_str+' data-container="body" data-title="'+server_template_filter_dropdown_tooltip_text+'" class="btn-group elm-rel-z config-search cursor-na"><button aria-label="'+server_template_filter_dropdown_tooltip_text+'" data-toggle="dropdown" class="btn dropdown-toggle btn-default elm-rel-z heighter-28 pd-lr-8 pointer-events-none" aria-expanded="false">'+server_template_filter_dropdown_spinner+'<span class="fa fa-md fa-file-find"></span></button> <ul class="dropdown-menu pd-tb-0" role="menu"><li class=""><input style="display: inline; width: auto; height: 28px; padding-top: 0; padding-bottom: 2px; vertical-align: middle" class="form-control ui_textbox" type="text" id="search_i_18" name="search" value="" size="" ></li></ul></div>',server_template_filter_dropdown_selector_str='[action="edit_tmpl.cgi"] > [name="editmode"] ~ .end_submits';$(server_template_filter_dropdown_selector_str).prepend(server_template_filter_dropdown_html),$(server_template_filter_dropdown_selector_str).find("["+server_template_filter_dropdown_tooltip_data_toggle_str+"]").attr("data-placement","auto top").data("placement","auto top").tooltip("fixTitle")}if(v___location_path!==v___location_prefix+"/config.cgi"&&v___location_path!==v___location_prefix+"/uconfig.cgi"&&v___location_path!==v___location_prefix+"/mconfig.cgi"&&v___location_path!==v___location_prefix+"/tconfig.cgi"||(embed_table_header_icon(),setTimeout(plugins.filter.options,101)),$("#content > .container-fluid > .panel > div.panel-body > p:last-child").each(function(){var e=$(this).text();e&&e.length&&((e=$.trim(e))||$(this).empty())}),core.curModule("virtualmin-nginx")&&"edit_mime.cgi"==v___location_file&&v___location_query&&v___location_query.indexOf("search=")>=0){var $vm_nginx_scroll_to_add_new=$('#content .ui_checked_columns [name="name"]');$vm_nginx_scroll_to_add_new.length&&(vars.page_user_inactive=0,setTimeout(function(){$vm_nginx_scroll_to_add_new[0].scrollIntoView({behavior:"auto",block:"center"}),$vm_nginx_scroll_to_add_new[0].focus()},300))}if(core.curModuleFile("virtual-server","edit_phpmode.cgi")){var cnt_str=".container-fluid",modes_sel_str=cnt_str+' [name="mode"]',curr_mode=$(modes_sel_str+":checked").val(),$modes=$(modes_sel_str);curr_mode&&$modes&&$modes.length&&($modes.on("change",function(){var e=$(cnt_str+' [name^="ver_"]').parents("td.col_value").parent(),t=$modes.closest(".col_value").parent("tr").nextAll("tr"),i=$(cnt_str+' [data-row-name="phpmode"]');t=t.add(t.closest("form").find(".long-table-wrapper:not(:first)"));var a=$(this).val();"none"===curr_mode||"none"===a?t.hide():t.show(),curr_mode.replace("fcgid","cgi")!==a.replace("fcgid","cgi")?e.hide():e.show(),"none"!==curr_mode&&("fpm"===a?i.show():i.hide());const n=t.closest("form").find('[name^="children"][type="radio"]');n.length&&(n.on("change",function(){const e=$(cnt_str+' [name="nophpsanity_check"]');if(e.length){e.parent(".awcheckbox").toggleClass("invisible-force",!!parseInt($(this).val()))}}),n.filter(":checked").trigger("change"));var r=$(cnt_str+" .ui_text_color");if(r.length){var o=r.parent("td").parent("tr");"fpm"===a?o.hide():o.show()}}),$(modes_sel_str+":checked").trigger("change"))}const isPageVmPhpMode=core.curModuleFile("virtual-server","edit_phpmode.cgi"),isPageVmSummaryDomain=core.curModuleFile("virtual-server","summary_domain.cgi"),isPageVmEditScript=core.curModuleFile("virtual-server","edit_script.cgi");if(isPageVmPhpMode||isPageVmSummaryDomain||isPageVmEditScript){const x='.container-fluid [href*="showphpinfo.cgi"]',w=isPageVmSummaryDomain||isPageVmEditScript?"visible-force":"";w&&(isPageVmEditScript&&$(x+" sup.ui_help").addClass(w),$(x+" sup.ui_help > i").css("transform","translateY(2px)")),$(x+" sup.ui_help").replaceTagName("span"),$(x+" .ui_help > i").removeClass("fa-question-circle fa-0_80x").addClass("fa2 fa2-php fa-1_50x")}var cnt_tbl_body="container-fluid .panel-body",ui_links_row="ui_links_row",not_data_table=":not(.dataTable)",only_child=":only-child",tbl_hardcoded="table-hardcoded:not(.ui_table_end_submit_right):not(.ui_buttons_table)",form_elem="form",table_cls_str="table:not([data-recursive_tree])",icn_row="icons-row",long_tbl_pref="long-table-";core.curModuleFile("bind8","")||core.curModuleFile("bind8","index.cgi")||core.curModuleFile("postfix","sni.cgi")||core.curModuleFile("postfix","virtual.cgi")||core.curModuleFile("postfix","aliases.cgi")||(tbl_hardcoded+=":not(.ui_grid_table):not(.ui_radio_table)");var theTableToWrap=$("."+cnt_tbl_body+" > "+form_elem+" > ."+ui_links_row+" ~ ."+table_cls_str+not_data_table+",."+cnt_tbl_body+" > "+form_elem+" > ."+tbl_hardcoded+",."+cnt_tbl_body+" > ."+table_cls_str+only_child+",."+cnt_tbl_body+" > ."+icn_row+" ~ ."+tbl_hardcoded+",."+cnt_tbl_body+" > "+form_elem+" ~ ."+tbl_hardcoded+",."+cnt_tbl_body+" > ."+ui_links_row+" ~ ."+table_cls_str+not_data_table),tikiwiki_index_targ_sel_form,tikiwiki_index_targ_sel_btns,tikiwiki_index_targ_sel_btns_small,u,y;if(theTableToWrap.length&&"usermin"!==session.server.data("product")&&theTableToWrap.wrap('<div class="'+long_tbl_pref+'wrapper"><div class="'+long_tbl_pref+'scroll noMaxHeight"></div></div>'),"string"==typeof vars.requested_page&&vars.requested_page&&vars.requested_page.includes("webmin/fix_os")&&(v___title_initial=session.server.data("title-initial"),theme_title_generate(),$(".info-container").find('form[action*="webmin/fix_os.cgi"]').parents(".alert").remove()),"string"==typeof vars.requested_page&&vars.requested_page&&vars.requested_page.includes("init/reboot")&&despinnerfy_buttons(),(core.curModuleFile("virtual-server","manual_records.cgi")||core.curModuleFile("bind8","edit_text.cgi"))&&$(".container-fluid").find("form").find('[name="validate"], [name="soa"]').parent(".awcheckbox").addClass("solid"),$(".container-fluid .ui_checked_columns td:not(.ui_checked_checkbox) .awcheckbox").parent("td:not(:first-child)").addClass("awcheckbox_cont"),$.each($(".container-fluid select:not([multiple])"),function(){$(this).outerHeight()<30&&$(this).addClass("heighter-28")}),$.each($(".container-fluid .tr_tag > td[data-td-e]:last-child"),function(){var e=$(this).find(".f__lnk_t_btn-el");e.length&&($(this).wrapInner('<div data-btns="container"></div>'),e.removeAttr("style"),$(this).attr("data-btns",1))}),core.curModule("virtualmin-support")&&!pjax_popstate){var submit_ticket_btn=document.querySelector("[data-submit-ticket]");$(submit_ticket_btn).removeClass().addClass("btn btn-lg btn-primary").prepend('<i class="fa2 fa-fw fa2-virtualmin"></i>')}if(v___location_query&&v___location_query.includes("refresh-navigation=1")&&(v___initial_load?plugins.navigation.detect(v___location_path,1):plugins.navigation.reload(void 0,function(){plugins.navigation.detect(v___location_path,1)})),core.curModuleFile("webminlog","view.cgi")){var webminlog_module_no_command_escapes_sel_str="webminlog_module_no_command_escapes",webminlog_module_no_command_escapes__icon_cls_str="fa2-code",webminlog_module_no_command_escapes__icon_active_cls_str="text-danger",webminlog_module_no_command_escapes_icon_obj_func=function(){return $("."+webminlog_module_no_command_escapes_sel_str).find("."+webminlog_module_no_command_escapes__icon_cls_str)},wb_log_no_code_btn_item_name=v___server_hostname+"-"+webminlog_module_no_command_escapes_sel_str,wb_log_no_status_func=function(){return"0"==localStorage.getItem(wb_log_no_code_btn_item_name)},wb_log_no_status_remove_backslashes_func=function(){webminlog_module_no_command_escapes_icon_obj_func().addClass(webminlog_module_no_command_escapes__icon_active_cls_str),$.each($(".webminlog .opener_container td > pre"),function(){$(this).html().length&&$(this).html($(this).html().replace(/[\\]+/g,""))})};pjax_popstate||$("#headln2r .btn-group").prepend("<a "+theme_inject_tooltip(theme_language(webminlog_module_no_command_escapes_sel_str),".container-fluid")+' aria-label="'+theme_language(webminlog_module_no_command_escapes_sel_str)+'" href="javascript:;" class="btn btn-link text-lighter text-decoration-none '+webminlog_module_no_command_escapes_sel_str+'"><i class="fa2 '+webminlog_module_no_command_escapes__icon_cls_str+' vertical-align-middle"></i></a>'),$("."+webminlog_module_no_command_escapes_sel_str).on("click",function(e){e.preventDefault(),localStorage.setItem(wb_log_no_code_btn_item_name,wb_log_no_status_func()?"1":"0"),wb_log_no_status_func()?(localStorage.setItem(wb_log_no_code_btn_item_name,"0"),wb_log_no_status_remove_backslashes_func()):(localStorage.setItem(wb_log_no_code_btn_item_name,"1"),page_refresh())}),wb_log_no_status_func()&&wb_log_no_status_remove_backslashes_func()}$('#content form > .table.opener_table_style,#content .container-fluid > .panel > .panel-body > .table.opener_table_style,body[data-uri*="edit_script.cgi"] #content .panel-body > .table.opener_table_style').each(function(){var e="long-table-";$(this).wrap('<div class="'+e+'wrapper wrapped-accordion"><div class="'+e+'scroll noMaxHeight"></div></div>')}),function(){var e="virtual-server";if(core.curModuleFile(e,"edit_tmpl.cgi")){var t=session.server.data("user"),i=uri_parse_param("id"),a=uri_parse_param("new"),n=[],r=[],o=(e+"_templates_"+i+"_"+t).replace(/-/g,"_"),l=o+"_status",s=v___location_prefix+"/xhr.cgi?type=file&action=cache&module="+e+"&submodule=server-templates&server-template-id="+i+"&subaction=",_=function(t){return v___location_prefix+"/"+e+"/edit_tmpl.cgi?id="+i+(t?"&editmode="+t+"&nnext=1":"")},c=_()+"&editmode=",d=function(e,t,i){i==uri_parse_param("id")&&plugins.filter.options({data:e,url:t,unlock:1,tooltip:{title:"tooltip_virtualmin_templates_filter"}})};a||(vars.cache[o]?d(vars.cache[o],c,i):$.ajax({type:"POST",url:s+"get",data:!1,dataType:"JSON",success:function(e){if(e&&e.cached)vars.cache[o]=e.cached,d(e.cached,c,i);else{if(vars.cache[l])return console.warn("Cache for this template is already being generated"),!0;var t=function(e){vars.cache[l]=!0,$.ajax({type:"POST",url:_(e),data:!1,dataType:"text",success:function(a){if(a&&a.length){var _=$.parseHTML(a);if(_&&_.length){var p=$(_),u=p.find('select[name="editmode"]'),f=u.val();if(!f)return console.warn("Cannot detect fetched template category"),!0;var h=p.find(".table-responsive"),g=$.trim(h.find(".table-title").text()),m=h.find(".col_label");m.length||(m=h.find("tr.tr_tag > td[data-td-e]:first-child")),m.map(function(){var e=$.trim(this.innerText);g&&e&&r.push({data:{category:g},section:f,value:e})}),e||$.isEmptyObject(n)&&(u.find("option").map(function(){n.push(this.value)}),n.pop());var b=n.shift();b&&t(b),!b&&$.isEmptyObject(n)&&(vars.cache[l]=!1,vars.cache[o]=r,d(r,c,i),$.ajax({type:"POST",url:s+"put&data="+JSON.stringify(r),dataType:"JSON",error:function(){console.warn("Cannot store template cache")}}))}}}})};t()}}}))}}(),function(){if(core.curModuleFile("virtual-server","backup.tgz")){var e=".container-fluid .panel-body",t='a[href*="download_backup.cgi"]';theme_buttonify([null],e,t,"btn btn-transparent btn-link-bordered btn-xxs margined-top-10 margined-bottom--10",""),$(e).find(t).on("click",function(e){var t="cursor-na";if($(this).hasClass(t))return e.preventDefault(),e.stopPropagation(),!1;$(this).addClass(t).closest("b").addClass(t+" filter-grayscale filter-invert")})}}(),function(){if(core.curModuleFile("virtual-server","workbench.cgi")||core.curModuleFile("virtualmin-wp-workbench","workbench.cgi")){theme_buttonify([null],".container-fluid .panel-body",'a[href*="edit_script.cgi"]',"btn btn-transparent btn-link-bordered btn-xxs margined-top-10 margined-bottom--10","")}}(),function(){if(core.curModuleFile("virtual-server","wizard.cgi")){var e=$('[data-radio-table="mysize"] span[data-wizard_myrec]');e.length&&(filter_out_objects_inner_chars(e,"("),filter_out_objects_inner_chars(e,")"),e.addClass("label label-info label-sm"));var t=$('[name="mypass"]'),i=$('[name="mypass_def"]'),a=$('[name="parse"]');t.on("input",function(){a.toggleClass("disabled",!$(this).val())}),i.on("change",function(){"0"==$(this).val()?t.trigger("input"):a.removeClass("disabled")});var n=$('[name="defdom"]'),r=n.closest("tr").nextAll("tr");n.on("change",function(){r.toggleClass("hidden","0"==$(this).val())});var o='.container-fluid form[action="wizard.cgi"]',l=$(o),s=$(o+' button[name="parse"]');l.on("keydown",".table-responsive .table-subtable",function(e){13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.trigger("click"))})}}(),function(){if(core.curModuleFile("mysql","edit_dbase.cgi")&&$('[action="table_form.cgi"] input:visible, [action="table_form.cgi"] button:visible').addClass("heighter-34 heighter-34-force"),core.curModuleFile("mysql","drop_tables.cgi")&&$('[action="drop_tables.cgi"] input:visible').removeClass("heighter-28 btn-default").addClass("heighter-34 heighter-34-force btn-danger"),(core.curModuleFile("virtual-server","save_cloud.cgi")||core.curModuleFile("virtual-server","save_dnscloud.cgi"))&&$(".btn-tiny.ui_link_replaced").addClass("heighter-34 heighter-34-force margined-top-8").prepend('<i class="fa2 fa-fw fa2-account-key"> </i>'),core.curModuleFile("virtual-server","list_users.cgi")){const e='.container-fluid a.ui_link_replaced[href^="',t="type=",i=$(e+'edit_user"]'),a=$(e+'mass_ucreate_form"]'),n="fa-plus-square-o fa-user";i.each(function(){const e=$(this).attr("href");e&&(e.includes(t+"ssh")?$(this).find("i").removeClass(n).addClass("fa-terminal"):e.includes(t+"ftp")?$(this).find("i").removeClass(n).addClass("fa2 fa2-transfer opacity-0_8-nc"):e.includes(t+"mail")?$(this).find("i").removeClass(n).addClass("fa-envelope-o fa-0_90x margined-top--1"):e.includes(t+"db")?$(this).find("i").removeClass(n).addClass("fa-database-outline margined-top--1"):e.includes(t+"web")?$(this).find("i").removeClass(n).addClass("fa2 fa2-web margined-top--1"):e.includes("edit_user.cgi")&&$(this).find("i").removeClass(n).addClass("fa-user-o fa-1_05x margined-top-0"))}),a.find("i").removeClass(n).addClass("fa2 fa2-user-friends margined-top--1 opacity-0_8-nc")}}(),tikiwiki_index_targ_sel_form='body[class*="tikimanager"] .col_value > form',tikiwiki_index_targ_sel_btns=".btn.ui_submit",tikiwiki_index_targ_sel_btns_small='[name="dom"] + '+tikiwiki_index_targ_sel_btns,(core.curModuleFile("virtualmin-tikimanager","index.cgi")||core.curModuleFile("virtualmin-tikimanager",""))&&($(tikiwiki_index_targ_sel_form+" "+tikiwiki_index_targ_sel_btns).addClass("heighter-28"),$(".col_value > "+tikiwiki_index_targ_sel_btns).addClass("heighter-28"),$(tikiwiki_index_targ_sel_form+" "+tikiwiki_index_targ_sel_btns_small).removeClass("heighter-28 btn-success btn-default").addClass("btn-grey btn-xxs margined-top--2").find("span").css("font-size","100%")),(core.curModuleFile("apache","")||core.curModuleFile("apache","index.cgi"))&&$('.container-fluid .ui_form .table td a.btn[href^="http"]:has(.fa-external-link)').attr("target","_blank").addClass("cursor-alias").parent().removeClass("cursor-pointer"),function(){var e="#content > .container-fluid > .panel > div.panel-body",t="font-weight-normal",i=$(e+" > *").length,a=$(e+" > p").length,n=$(e+" > b").length,r=$(e+" > b ~ b").length>0,o=$(e+" > b + p:empty:last-child"),l=$(e+" > p + p:empty:last-child"),s=o.prev("b"),_=l.prev("p");if((i===a||2===i&&1===a&&1===n)&&(_.length||s.length)){var c=s.length?s:_.length?_:[];c.length&&c.css("margin-bottom",0).addClass(t).find("b").addClass(t)}var d=$(e+" > b:first-child"),p=$(e+" > .ui_subheading + b:nth-child(2)"),u=d.length?d:p.length?p:[];if(u.length&&!r){u.addClass(t);var f=u.next("p");f.find(".ui_link").length&&f.addClass("margined-top-6")}var h=$(e+" > .ui_form > br + textarea");h.length&&h.before('<p class="margined-bottom-5"></p>')}(),function(){if($.support.spa&&core.curModule("server-manager")){var e=$('.container-fluid .panel-body [action="bwgraph.cgi"]');e.attr("target","_blank"),e.on("submit",function(e){e.stopPropagation()})}}(),function(){if("string"==typeof v___location_file&&v___location_file.includes("tconfig.cgi")){var e=$('.container-fluid select[name="settings_sysinfo_hidden_panels_user"]');e.after('<div class="font-size-90pf text-muted"> '+theme_language("settings_sysinfo_hidden_panels_user_desc_"+("mac"===platform.detect()?"mac":"pc"))+"</div>"),e.closest("td").prev("td").addClass("vertical-align-top").find("b").addClass("margined-top-3"),$('.container-fluid select[name="settings_hotkey_toggle_hold_modifier"] option, .container-fluid select[name="settings_hotkey_toggle_modifier"] option, .container-fluid .table-cell-padded code').each(function(){var e=$(this).text();e&&"mac"===platform.detect()&&(e=(e=(e=e.replaceAll("Ctrl","Control")).replaceAll("Alt","Option")).replaceAll("Meta","Command"),$(this).text(e))});const t=$('.container-fluid [action="tconfig.cgi"] [type="text"][name^="settings_hotkey_"]:not([name*="_custom_"])');if(t.length){const e="keydown.hotkeysforbidden",i="theme_hotkey_not_allowed";t.off(e),t.on(e,function(e){"Backslash"!==e.code||this.value?"Space"===e.code?e.preventDefault():theme_message_exists(i)&&theme_message_dismiss(i):(e.preventDefault(),!theme_message_exists(i)&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("hotkey_emsg"),10,"warning",i,1,["bottom","center"]))})}const i="settings_sysinfo_real_time_",a=i+"status",n=$('.container-fluid select[name="'+(i+"stored_duration")+'"]');$('.container-fluid input[name="'+a+'"][value="1"]').parent().append(n.detach()),n.on("input",function(){const e=$(this).find("option:selected").text().length;$(this).css("width",e+"ch")}),n.trigger("input");n.find('option[value="21600"], option[value="43200"], option[value="64800"], option[value="86400"]').not(":selected").addClass("optional-hidden")}}(),$.each($("[data-ui-buttons-row-form-container]"),function(){var e=$(this).prev("tr");e.find("td > hr").length&&e.addClass("ui-pre-buttons-hr-row")}),$.each($('[onclick="form.target = \\"_blank\\""]'),function(){$(this).removeAttr("onclick"),$(this).on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).closest("form");t[0]&&theme_open_new_tab(t[0].action+"?"+$(this).attr("name")+"="+Convert.uriEncodeComponent(t.find('[name="'+$(this).attr("name")+'"][value]').val()||1)+"&"+t.serialize())})}),function(){var e="container-fluid",t="heighter-28 heighter-28-force",i="heighter-34",a='.sub_table_container select[name="attach"]',n='form[action="reply_mail.cgi"]';if(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailboxes","mail_search.cgi")||core.curModuleFile("mailboxes","list_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")||core.curModuleFile("mailbox","mail_search.cgi")){$("."+e+" ."+i).addClass(t).removeClass(i),$("."+e+" "+n+" > .btn, "+n+" > select").addClass(t).removeClass(i),$("."+e+" "+n+" "+a).next("b").replaceTagName("span");var r=$("."+e+" "+n+" "+a).next("span");r.text(r.text().replace(/:/,"")),r.next(".el-wp-chooser").find("input").addClass("w-33p").css("width",String()).removeAttr("size")}}(),function(){if($.support.spa)if(core.curModule("xterm",1)&&"object"==typeof xterm_argv&&!$.isEmptyObject(xterm_argv)){vars.pjax.cache.set("disable"),plugins.terminal.new(xterm_argv);var e="#headln2r .btn-group",t="path-to-shell",i=$("aside .user-link.ported-console").attr("data-title"),a=theme_inject_tooltip(i,"#content",!1,!1,!1,"(");$(e).append("<a "+a+' class="btn btn-link text-lighter pull-left path-to-shell-injected '+t+'"><i class="fa2 fa2-terminal fa-1_15x" aria-hidden="true"></i></a>'),$(e).find("."+t).on("click",function(e){e.preventDefault(),plugins.terminal.open()})}else plugins.terminal.clean(null)}(),function(){try{if(core.curModuleFile("virtual-server","domain_form.cgi")||core.curModuleFile("virtual-server","clone_form.cgi")||core.curModuleFile("virtual-server","import_form.cgi")||core.curModuleFile("virtual-server","rename_form.cgi")){domain_change=function(){};var e="autocomplete-suggestions-container",t=$('aside select[name="dom"] option'),i=$('aside select[name="dom"] option:selected').attr("title"),a=$('.container-fluid .ui_form[action="domain_setup.cgi"] input[name="dom"], .container-fluid .ui_form[action="clone.cgi"] input[name="newdomain"], .container-fluid .ui_form[action="import.cgi"] input[name="dom"], .container-fluid .ui_form[action="rename.cgi"] input[name="new"]'),n=[],r=function(t,i){t.parent().find("."+e).remove(),t.autocomplete({lookup:i,width:t.outerWidth(),appendTo:t.parents("form")[0],forceFixPosition:!0,containerClass:"autocomplete-suggestions highlighted wwidth "+e+" autocomplete-domains-suggestions",showNoSuggestionNotice:!1,minChars:0,triggerSelectOnValidInput:!1,tabDisabled:!0}),theme.api.event.one.page.beforeReplace(function(){t.autocomplete("dispose")})};if($.each(t,function(e,t){var i=$.trim($(t).attr("title")),a=String();if(i){var r=i.match(/^[A-Za-zÀ-ž\u0370-\u9FCC\.\-_\d\-]+$/);r&&r[0]&&(i=r[0]);var o=i.match(/\.([A-Za-zÀ-ž\u0370-\u9FCC\.\-_\d\-]+\.[A-Za-zÀ-ž\u0370-\u9FCC\.\-_\d\-]+$)/);o&&o[0]&&o[1]&&(a=o[1]),a&&a!=i&&n.push({value:a,data:{category:0}});try{i=i.replace(/↴\s+/,String()).replace(/↱\s+/,String())}catch(e){}n.push({value:i,data:{category:0}})}}),n.length){const e=function(e){return(e=e.filter((e,t,i)=>t===i.findIndex(t=>t.value===e.value))).sort((e,t)=>e.value===i||e.value.endsWith(i)?-1:t.value===i||t.value.endsWith(i)?1:0),e};n=e(n),r(a,n),a.on("input",function(t){var i=[],o=a.val();String.fromCharCode(t.keyCode?t.keyCode:t.which).toLowerCase();o&&o.toString().split(".").length>=2?a.autocomplete("dispose"):$.each($(n),function(e,t){var a={...t};o.toString().endsWith(".")&&(o=o.slice(0,-1)),o&&(a.value=o+"."+a.value,i.push(a))}).promise().done(function(){var t=n.slice(),o=i.slice(),l=$.merge(t,o);a.autocomplete("dispose"),r(a,e(l)),a.trigger("blur").trigger("focus")})})}}}catch(e){console.warn("Error: Cannot retrieve list of domains")}}(),core.curModuleFile("virtual-server","edit_redirect.cgi")&&vars.pjax.cache.set("disable"),u="ui_form_elements_wrapper",y="ui_link_pagination",$.each($("."+u+" ."+y+"_left, ."+u+" ."+y+"_right"),function(){var e="⏴";$(this).hasClass(y+"_right")&&(e="⏵"),$(this).attr("data-title",theme_modifiers_replace_for_mac(e)),$(this).tooltip({sanitize:!1,container:$("."+u).parents("form"),html:!0,delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})}),function(){if(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")){var e=$("#mail-iframe-spinner"),t=e.length,i=$('tr[data-contents="email"]');if(t){var a=i.parent("tbody").parent("table").parent("td").parent("tr");a.hide(),$("#mail-iframe").one("load.mailiframe",function(){a.show()})}e.parents("tbody").prev("thead").find(".table-title > b").after(e.detach())}(core.curModuleFile("mailboxes","view_mail.cgi")||core.curModuleFile("mailbox","view_mail.cgi")||core.curModuleFile("mailboxes","reply_mail.cgi")||core.curModuleFile("mailbox","reply_mail.cgi"))&&$("iframe").one("load",function(e){theme_page_iframes(this)})}(),function(){if(core.curModuleFile("fsdump","")&&$('form[action="edit_dump.cgi"] [type="submit"].btn-default').addClass("heighter-28 margined-right-1"),core.curModuleFile("quota","")&&$('form[action="user_filesys.cgi"] button.btn-default:not(.chooser_button), form[action="group_filesys.cgi"] button.btn-default:not(.chooser_button)').addClass("margined-right-0"),$("html[data-script-name*='virtual-server/edit_tmpl.cgi'] #content [data-table-name='template-script'] table td br").remove(),core.curModuleFile("postfix","postfinger.cgi")&&$(".container-fluid .panel-body > style").remove(),core.curModuleFile("virtual-server","edit_phpmode.cgi")&&($('.container-fluid .panel-body [href^="edit_phpmode.cgi"].ui_link_replaced').removeClass().addClass("btn btn-warning btn-xxs vertical-align-baseline").find("i").remove(),theme.api.event.one.page.afterReplace(function(){plugins.navigation.sync()})),core.curModule("shell")){const e='.container-fluid [action="index.cgi"] ';$(e+' [name="pcmd"]').add($(e+' [name="movecmd"]')).removeClass("heighter-28").addClass("heighter-34")}core.curModuleFile("virtual-server","list_databases.cgi")&&theme.api.event.one.page.afterReplace(function(){plugins.navigation.sync()})}(),function(){settings_right_table_wrap_inside_scrolled_container&&$(".dt-table-hscroll").addClass("mode-wrap"),!pjax_popstate&&plugins.page.format.columns(!0);try{$(".container-fluid .panel-body .alert .btn.btn-tiny").removeClass(function(e,t){return(t.match(/\bheighter-\S+/g)||[]).join(" ")})}catch(e){}if(core.curModuleFileQuery("virtual-server","edit_user.cgi","type=db")||core.curModuleFileQuery("virtual-server","edit_user.cgi","type=web")){const e=".table-hardcoded",t='tr[data-row-type="ui-table"]',i="ui_select",a="btn",n="td",r="form",o="ui_form_end_submit",l="data-pro-disabled",s="cell",_=".container-fluid .panel-body ["+l+'="'+s+'"]',c='input[type="text"]',d=c+', input[type="password"]',p="disabled",u="text-muted",f="w-100f-cont",h="cursor-na",g="bg-filter-grayscale-opacity50",m="pointer-events-none";if($(_+":nth-child(2)").has(d).addClass(f),$(_).length){$(_+" > "+e+" ."+i).attr(p,p),$(_+" > "+e+" ."+a).addClass(`${p} ${m}`);const d=$(_).parent(t).nextAll(t).has("."+i).find("> "+n).attr(l,s).has(e);d.length&&(d.find("."+i).attr(p,p),d.find("."+a).addClass(`${p} ${m}`),$(_).parent(t).nextAll(t).find(n+":only-child").addClass(`${g}`).find("a").addClass(`${m}`)),$(_+":nth-child(2)").has(c).find("> span:first-child").contents().filter(function(){return 3===this.nodeType}).wrap('<span class="'+u+'"></span>'),$(_).parents(r).find("."+o).addClass(`${p} ${h} ${g}`)}}core.curModuleFile("virtual-server","view_domain.cgi")&&$(".panel-body .col_value > .ui_links_row .btn").each(function(){$(this).removeClass(),$(this).after("<br>")}),core.curModuleFile("software","edit_pack.cgi")&&$(".container-fluid .opener_table_style").addClass("no-hover"),"sysinfo.cgi"===v___location_file&&$('#system-status ~ div.panel [data-class="no-inner-formatting"]').addClass("no-hover")}(),function(){const e=$('.container-fluid form[onsubmit*="uptracker.cgi?id"]');location.href.includes(v___module_file_manager)||location.href.includes("updown")||core.curModule(v___module_file_manager)||!e.length||$.each(e,function(){plugins.upload($(this))})}(),function(){if(core.curModuleFile("net","edit_bifc.cgi")||core.curModuleFile("net","edit_aifc.cgi")){const e=$(".container-fluid > .panel > .panel-body .ui_element_inline");e.length&&e.each(function(){!function(e,t,i){const a=$(e).find("a");a.addClass("btn "+i+" btn-xxs bhw-sm vertical-align-baseline"),a.prepend('<i class="fa fa2 fa-fw margined-left--3 '+t+' vertical-align-baseline"> </i>'),$(e).prev(".ui_text_wrap").addClass("label label-default label-sm pd-rt-3 margined-left-1 margined-right-3 vertical-align-text-top"),$(e).replaceWith(a)}(this,"fa2-plus-network","btn-grey")})}}(),(check_location_resource("/config.cgi?xterm")||check_location_resource("/config.cgi?module=xterm",1))&&(pjax_popstate||snippets.inject_extra_option("tr/yes:no",$('.container-fluid input[name="screen_reader"]').parent(".awobject"),"config_portable_module_xterm_render_addon",theme_language("config_portable_module_xterm_render_addon"))),"config.cgi"!=v___location_file&&"uconfig.cgi"!=v___location_file||"mysql"!=v___location_query&&"postgresql"!=v___location_query||snippets.inject_extra_option("tr/yes:no",$('.container-fluid input[name="style"]').parent(".awobject"),"config_portable_module_xsql_fit_content_screen_height",theme_language("xsql_fit_content_screen_height")),core.curModuleFile("fetchmail","")&&($('[action="edit_poll.cgi"]').find(".btn").addClass("heighter-28 btn-default margined-right--4").removeClass("btn-success"),$(".panel-body > table td:nth-child(1) a").each(function(){$(this).removeClass("btn btn-inverse btn-tiny ui_link_replaced").addClass("ui_link margined-left-2").find("i").remove(),$(this).parents("th").add($(this).parent("td")).addClass("white-space-nowrap")}),$(".panel-body > form[action='edit_poll.cgi'] ~ table").first().wrapAll('<div class="dt-table-hscroll"></div>')),core.curModuleFile("software","")&&$('[action^="install_pack.cgi"], [action="search.cgi"], [action="file_info.cgi"]').each(function(){$(this).find('.btn, [name="file"]').addClass("heighter-34").removeClass("heighter-28 heighter-28-force"),$(this).find('[name="file"], [name="search"]').addClass("margined-left--4"),$(this).find(".btn [data-entry]").each(function(){const e=$(this),t=e.text();t.includes(":")&&e.text(t.replace(/:/,""))}),$(this).find('[name="local"], [name="url"], [name="update"], [type="button"]').addClass("heighter-34").removeClass("heighter-28 heighter-28-force"),$(this).find('[type="button"]:not(.btn-success)').addClass("btn btn-default"),$(this).find('[name="update"]').addClass("margined-right--4")}),function(){try{if("WebkitAppearance"in document.documentElement.style&&!window.chrome&&!navigator.userAgent.includes("Firefox")){const e=new ResizeObserver(e=>{e.forEach(e=>{const t=e.target;t.style.display="none",t.offsetHeight,t.style.display="block",setTimeout(function(){t.style.display="none",t.offsetHeight,t.style.display="block"})})});document.querySelectorAll('[data-tbody-type="ui-table"]').forEach(t=>{e.observe(t)})}}catch(e){}}(),function(){Object.entries({mysql:["/mysql/","/mysql/index.cgi"],postgresql:["/postgresql/","/postgresql/index.cgi"]}).forEach(([e,t])=>{if(core.curModule(e)&&$t_uri_virtualmin){const i=[],a={"virtual-server/list_databases.cgi":["mysql","postgresql"]};let n;if(t.forEach(e=>{const t=$('#headln2l a[href="'+e+'"].btn-link'),a=$('.container-fluid a[href="'+e+'"].btn-lg');t.length&&i.push(t),a.length&&i.push(a)}),Object.entries(a).forEach(([t,i])=>{i.includes(e)&&(n=t)}),!n)return;i.forEach(e=>{e.on("click",function(e){e.preventDefault(),$('aside a[href*="'+n+'"]').click()})})}});Object.entries({phpini:["/phpini/","/phpini/index.cgi"],apache:["/apache/","/apache/index.cgi"],"virtualmin-nginx":["/virtualmin-nginx/","/virtualmin-nginx/"],spam:["?file=","/spam/index.cgi"]}).forEach(([e,t])=>{core.curModule(e)&&$t_uri_virtualmin&&(t[0]&&$('#headln2l a[href*="'+t[0]+'"].btn-link').remove(),t[1]&&$('.container-fluid a[href="'+t[1]+'"].btn-lg').remove())})}()},snippets.page.events=function(e,t){if("reset"===e&&(e="keyup",t={holdModifer:1}),core.curModuleFile("virtual-server","summary_domain.cgi")){var i=$("a[data-dom-file][href]");i.attr("data-no-randomized",1),t.holdModifer&&i.attr("href",function(){return"keydown"===e?$(this).data("edit-link"):$(this).data("view-link")})}},snippets.page.palette=function(){const e=()=>window.matchMedia("(prefers-color-scheme: dark)");return e().addEventListener("change",e=>{settings_palette_auto&&!sessionStorage.getItem("theme-toggled")&&(theme_toggle_night_mode(e.matches?1:0),e.matches?console.warn("Auto-switched to dark mode"):console.warn("Auto-switched to light mode"))}),{auto:function(){settings_palette_auto&&!sessionStorage.getItem("theme-toggled")&&theme_toggle_night_mode(e().matches?1:0)}}}(),snippets.parser.fileviewer={getOpts:function(e){return[e.hasClass("viewer-1"),e.hasClass("viewer-2"),e.hasClass("viewer-3"),e.hasClass("viewer-4"),e.hasClass("viewer-5"),e.hasClass("viewer"),e.hasClass("viewer-reverse"),e.hasClass("viewer-head"),e.hasClass("viewer-tail")]},getSuffix:function(e,t){var i="/M=1",a="/M=2",n="/M=3",r="/M=4",o="/M=5",l="/V=1",s="/R=1",_="/H=1",c="/T=1";if(t)return[i,a,n,r,o,l,s,_,c];var d=this.getOpts(e);return(d[0]?i:"")+(d[1]?a:"")+(d[2]?n:"")+(d[3]?r:"")+(d[4]?o:"")+(d[5]?l:"")+(d[6]?s:"")+(d[7]?_:"")+(d[8]?c:"")}};const events={window:function(){window.document.addEventListener("visibilitychange",function(){"hidden"!==document.visibilityState?theme_post_event_window_state_activated("visibilitychange"):theme_post_event_window_state_deactivated("visibilitychange")}),window.addEventListener("focus",function(){theme_post_event_window_state_activated("focus")}),window.addEventListener("blur",function(){theme_post_event_window_state_deactivated("blur")}),window.addEventListener("popstate",function(){$('[data-trigger-injected="1"]').remove()});var e=document.querySelector("#content");e&&e.addEventListener("scroll",function(e){vars.pjax.post_page_fetch||(vars.events.scrolled=e.target.scrollTop,plugins.pjax.page.interaction.set(Date.now()))}),$(document.body).on("keydown",function(e){91!==e.keyCode&&224!==e.keyCode||(vars.events.keypressed.meta=!0,event_mark_key_pressed("meta",!0)),17===e.keyCode&&(vars.events.keypressed.ctrl=!0,event_mark_key_pressed("ctrl",!0)),16===e.keyCode&&(vars.events.keypressed.shift=!0,event_mark_key_pressed("shift",!0)),18===e.keyCode&&(vars.events.keypressed.alt=!0,event_mark_key_pressed("alt",!0)),17!==e.keyCode&&224!==e.keyCode&&91!==e.keyCode&&16!==e.keyCode&&18!==e.keyCode&&(vars.events.keypressed.key=e.keyCode),theme_post_event_handler("keydown",{_isKeyCombo:void 0!==e.originalEvent&&e.key&&"Alt"!==e.key&&"Shift"!==e.key&&"Control"!==e.key&&"Meta"!==e.key&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey),_keyCode:e.keyCode,_isHuman:void 0!==e.originalEvent,meta:91===e.keyCode||224===e.keyCode,metaPressed:vars.events.keypressed.meta,ctrl:17===e.keyCode,ctrlPressed:vars.events.keypressed.ctrl,shift:16===e.keyCode,shiftPressed:vars.events.keypressed.shift,alt:18===e.keyCode,altPressed:vars.events.keypressed.alt,holdModifer:event_hold_modifer_pressed()})}).on("keyup",function(e){91!==e.keyCode&&224!==e.keyCode||(vars.events.keypressed.meta=!1,event_mark_key_pressed("meta",!1)),17===e.keyCode&&(vars.events.keypressed.ctrl=!1,event_mark_key_pressed("ctrl",!1)),16===e.keyCode&&(vars.events.keypressed.shift=!1,event_mark_key_pressed("shift",!1)),18===e.keyCode&&(vars.events.keypressed.alt=!1,event_mark_key_pressed("alt",!1)),vars.events.keypressed.key=!1,theme_post_event_handler("keyup",{_isKeyCombo:void 0!==e.originalEvent&&e.key&&"Alt"!==e.key&&"Shift"!==e.key&&"Control"!==e.key&&"Meta"!==e.key&&(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey),_keyCode:e.keyCode,_isHuman:void 0!==e.originalEvent,meta:91===e.keyCode||224===e.keyCode,metaPressed:vars.events.keypressed.meta,ctrl:17===e.keyCode,ctrlPressed:vars.events.keypressed.ctrl,shift:16===e.keyCode,shiftPressed:vars.events.keypressed.shift,alt:18===e.keyCode,altPressed:vars.events.keypressed.alt,holdModifer:1})}),$(window).on("keydown",function(e){!plugins.shell.status()&&session.alive&&theme_shortcuts(e)}).on("resize",function(){page_resized(),plugins.shell.adjust(),page_control_header(),plugins.page.format.columns(!0),plugins.page.events.mousemove()}),$(document.body).find(".-shell-port-").find(".-shell-port-container").on("click",".-shell-port-close",function(){plugins.shell.available()&&(1==session.server.data("terminal")?plugins.terminal.close():1==session.server.data("shell")&&plugins.shell.close())})}};events.body=function(){$(document.body).on("mousedown tap keydown",function(){setTimeout(function(){vars.events.keypressed.shift||(vars.page_interaction=1)}),plugins.pjax.page.interaction.set(Date.now())}).on("click",function(e){if(!vars.events.keypressed.key&&vars.events.keypressed.alt&&!vars.events.keypressed.ctrl&&vars.events.keypressed.meta){let t=$(e.target).parents(".select2-container").prev("select"),n="copiedToClipboardSuccess";if(t.length||(t=$(e.target)),t.length){plugins.messenger.toast.destroy(n);let a=t.parents("button, a"),s=t.prev("button"),i=t.attr("href"),o=i||t.parents("a").attr("href"),r=t.attr("name")||o,l=t.parents("button").val()||t.parents("button").attr("value"),c=t.val()||t.attr("value")||l;if(void 0!==r){let i=r+(void 0!==c?"="+c:String());vars.events.keypressed.shift&&(i=void 0!==c?c:String()),t.is("input.dynamic")||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),console.warn("Copied to clipboard:"),console.log(i),theme_copy_to_clipboard(i),setTimeout(function(){despinnerfy_button(a.length?a:s.length?s:t),plugins.messenger.post({type:"success",icon:"fa fa-exclamation-circle fa-lg fa-fw",id:n,title:theme_language("global_success"),message:theme_language("filemanager_copying_successful").replace(".",String()),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,close:!0,timeout:3e3,progressBar:!0})},22)}}}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"));var n=function(t){if(vars.navigation.servers_index_control&&(void 0!==e.originalEvent||t)){var n="servers-index",a=":visible",s=$("[data-"+n+"]");if(s.is(a)){var i=$(".popover-"+n);i.is(a)&&($(e.target).is(s)||i.find(e.target).length||s.trigger("click"))}}};$(".mobile-menu-toggler").is(":visible")&&($(e.target).is('[data-servers-index="popover"], .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')||(n(!0),plugins.navigation.collapse())),$(".tooltip").tooltip("hide"),n();var a=document.querySelector(".right-side-tabs");!(!a||"0px"!==a.style.right)&&($(".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(".fa-bell")||$(e.target).is(".fa-trash-o")||$(e.target).is(".badge.badge-danger")||$(e.target).is(".btn-menu-toggler")||$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click"));var s="MacIntel"===window.navigator.platform?1:0;if((!s&&e.ctrlKey||s&&e.metaKey)&&!e.altKey){if($(e.target).closest("a").data("no-randomized"))return;var i=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());(i&&!Test.strContains(i,"javascript")||r&&!Test.strContains(r,"javascript"))&&(i?($(e.target).attr("href",link_type_convert(i+(Test.strContains(i,"?")?"&":"?")+"randomized="+c,2)),setTimeout(function(){$(e.target).attr("href",link_type_convert(i,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,n=String.fromCharCode(t).toLowerCase(),a=this;"number"==typeof a.timedOut&&clearTimeout(a.timedOut),n&&8!==t&&(a.preValue?a.preValue+=n:a.preValue=n);this.timedOut=setTimeout(function(){var n=a.preValue;if(a.preValue=null,!(Test.editing()||$("input").is(":focus")||$("select").is(":focus")||$("textarea").is(":focus")||$(".modal.in").length||vars.events.blocked||$(".-shell-port-").hasClass("opened"))&&session.alive&&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"){if((core.curModuleFile("virtual-server","edit_tmpl.cgi")||v___location_path===v___location_prefix+"/config.cgi"||v___location_path===v___location_prefix+"/uconfig.cgi"||v___location_path===v___location_prefix+"/mconfig.cgi"||v___location_path===v___location_prefix+"/tconfig.cgi")&&n&&RegExp(/^[A-Za-zÀ-ž\u0370-\u9FCC\.\-_\d\-]/).test(n)&&112!==t&&113!==t&&114!==t&&115!==t&&116!==t&&117!==t&&118!==t&&119!==t&&120!==t&&121!==t&&122!==t&&123!==t&&!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey){var s=".container-fluid .config-search",i=s+" > .dropdown-toggle",o=s+' input[name="search"]';if($(s).length)return $(i).trigger("click.bs.dropdown"),void $(o).val(n).trigger("input")}!n||!RegExp(/^[A-Za-zÀ-ž\u0370-\u9FCC\.\-_\d\-]/).test(n)||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(n).trigger("keyup")):setTimeout(function(){const t='aside input[name="search"]',a=$(t+":visible").length&&isElemInView($(t)[0]),s=$(t);a&&(e.shiftKey&&"1"==n?s.focus().val("!"):Test.editing()||s.focus().val(n).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, .container-fluid > #system-status > .panel-body > .alert a, .right-side-tabs .info-container .alert a",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(e){e.stopPropagation();var t=$(this).prev('input[type="radio"]').add($(this).parent("td").prev("td").find('input[type="radio"]'));1===t.length&&t.prop("checked",!0)}).on("click",".--to-new-tab",function(){$(this).attr("target","_blank")}).on("click",'[data-target="external"]',function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),$(this).attr("data-href")&&theme_open_new_tab($(this).attr("data-href"),1)}).on("auxclick",function(e){if(1===e.button){const t=$(e.target).is("a")?$(e.target):$(e.target).find("a").first().length?$(e.target).find("a").first():$(e.target).closest("a").first().length?$(e.target).closest("a").first():null;t&&t.attr("href")&&!t.attr("href").startsWith("#")&&!t.attr("href").startsWith("javascript")&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),theme_open_new_tab(link_type_convert(t.attr("href"),2),1))}}).on("click",".mobile-menu-toggler",function(e){var t=$(this),n="opened",a="__logo",s="aside";$(this).data(n)||($(this).data(n,1),plugins.navigation.update("webmail")),$(s).hasClass("hidden-xs")?(vars.navigation.opened=dayjs().unix(),$(this).addClass("selected").find("button").addClass("btn-primary").removeClass("btn-default"),$("."+a)&&($("."+a).css("transform","translate(0px, 0px)"),$("."+a).transition({y:"-140px"},0)),t.css("transform","translate(0px, 0px)"),$(s).css("transform","translate(0px, 0px)"),$(s).removeClass("hidden-xs"),$(s+", .mobile-menu-toggler").transition({x:settings_leftmenu_width},0)):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 hl-aw-chk"),"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,n=$(this),a=tconfig_beta_updates?0:1,s="1"==n.data("force")?1:0,i=n.attr("data-stable");i&&i.length&&(a="1"==i?1:0);var o=n.attr("data-version");t=o||!1,theme.update(a,s,t)}).on("mousemove.tconf","#force_update_menu_cnt .dropdown-submenu.clickable.prelocked > a",function(e){var t="locked",n=$(this).parent(),a=n.parent().offset().left,s=n.width();parseInt(e.pageX-a-s)>-24?n.removeClass(t):n.addClass(t)}).on("click",".csf-submit",function(e){e.preventDefault();var t=$(this).data("id"),n="disabled";$("#"+t).submit(),$(this).addClass(n).attr(n,n),spinnerfy_button_tiny($(this))}).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(){var e=$(this);!async function(){var t=await theme_password_generator(e);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",' <code class="vertical-align-middle">'+Convert.htmlEscape(t)+"</code> "),10,"success","newGeneratedPassword")}()}).on("click",".messenger-message .messenger-message-inner tt",function(){check_selected_text()||(theme_copy_to_clipboard($(this).text()),plugins.messenger.post('<i class="fa fa-lg fa-fw fa-clipboard"></i>'+theme_language("filemanager_copying_successful"),2,"success","newClipboardCopied"))}).on("keydown",'form[action*="save_log.cgi"] input[name="filter"], form[action*="save_log.cgi"] input[name="lines"], form[action*="view_log.cgi"] input[name="filter"], form[action*="view_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,plugins.pjax.page.link.get(v___location_directory))}).on("click dblclick",".ui_multi_select_row select[multiple] option",function(e){if((settings_multiselect_on_click||"dblclick"===e.type)&&(!settings_multiselect_on_click||"dblclick"!==e.type)){this.selected=!0;var t=$(this).parent("select").parent("td"),n=t.parent("tr"),a=t.index(),s="onclick",i="["+s+'*="multi_select_move"]';e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||0!==a&&2!==a||n.find("td:eq(1)").find(i+"["+s+'*="'+(a?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,plugins.navigation.detectAllowed=!0}).on("click","#content #system-status .panel-heading ._support_ticket_cnt",function(){var e,t,n,a=plugins.dashboard.system_info("markdown","allow-private-data"),s=(e=a,t="\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\x3c!---\n",n=session.server.data("hostname"),t+="BELOW TEXT CONTAINS YOUR SYSTEM INFORMATION AND SHOULD BE LEFT INTACT\n",t+="--\x3e\n",t+="\n<br>\n\n---\n<br>\n<details>\n",t+="<summary><strong>"+(n?n+" system information":"System information")+"</strong></summary>\n\n",t+=e,t+="\n</details>\n",t+="<br>",t+="\n\x3c!---\n",t+="SCROLL TO THE VERY TOP OF THE PAGE TO FILL YOUR TICKET\n",t+="--\x3e\n","https://forum.virtualmin.com/new-message?groupname=staff&body="+Convert.uriEncodeComponent(t)+"%0A%0A%0A%0A");theme_copy_to_clipboard(s,!0),!event_hold_modifer_pressed()&&theme_open_new_external_link(s)}).on("click","#content #system-status .panel-heading ._clipboard_sysinfo_cnt",function(){let e=plugins.dashboard.system_info(!event_hold_modifer_pressed()),t=session.server.data("hostname"),n=t?t+" system information":"System information",a="\n\n\x3c!---\n",s={[theme_language("body_os").toLowerCase()]:"OS type and version",[theme_language("theme_version").toLowerCase()]:"Theme version",[theme_language("body_updates").toLowerCase()]:"Package updates"};if(a+="BELOW TEXT CONTAINS YOUR SYSTEM INFORMATION AND SHOULD BE EITHER LEFT INTACT OR EDITED WITH CARE\n",a+="--\x3e\n",a+="\n<br>\n\n---\n<br>\n<details>\n",a+="<summary><strong>"+n+"</strong></summary>\n\n\n\n",a+=e,a+="</details>\n",a+="<br>",a+="\n\x3c!---\n",a+="SCROLL TO THE VERY TOP OF THE PAGE TO FILL YOUR TICKET\n",a+="--\x3e\n",!vars.events.keypressed.shift){let t={};a="| SYSTEM INFORMATION ||\n",a+="|----------|----------|\n",t=((e,t)=>{const n=e.split("\n"),a={general:{},software:{},counts:{}};let i=null;if(n.forEach(e=>{if(e.trim()&&!e.trim().startsWith("|---"))if(e.includes("SYSTEM INFORMATION"))i="general";else if(e.includes("SOFTWARE VERSIONS"))i="software";else if(e.includes("VIRTUALMIN COUNTS"))i="counts";else if(i){const t=e.split("|").map(e=>e.trim()).filter(e=>e);if(2===t.length){const[e,n]=t;"general"===i||"software"===i?a[i][e]=n:"counts"===i&&(a[i][e]=isNaN(n)?n:Number(n))}}}),t){const e={};if(Object.keys(a).forEach(n=>{t.forEach(t=>{Object.keys(a[n]).forEach(i=>{if(i.toLowerCase().includes(t.toLowerCase())){const t=s[i.toLocaleLowerCase()]||i;e[t]=a[n][i]}})})}),Object.keys(e).length){const n={},a=function(e,t){const n=t.toLowerCase();for(const t in e)if(e.hasOwnProperty(t)&&t.toLowerCase().includes(n))return{[t]:e[t]};return null},i=function(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return t.forEach(t=>{t=s[t.toLocaleLowerCase()]||t;const o=a(e,t);o&&Object.keys(o).length&&i(n,o)}),n}return e}return a})(e,["operating system","webmin","usermin","virtualmin","cloudmin","theme version","apache","nginx","package updates"]),Object.keys(t).length&&(a+=(e=>{let t="";if(Object.keys(e).length){const n=Math.max(...Object.keys(e).map(e=>e.length)),a=Math.max(...Object.values(e).map(e=>e.length));Object.keys(e).forEach(s=>{const i=e[s];t+="| "+s+" ".repeat(n-s.length)+" | "+i+" ".repeat(a-i.length)+" |\n"})}return t})(t))}theme_copy_to_clipboard(event_hold_modifer_pressed()?e:a)}).on("click",'#extended_sysinfo-1 .panel-collapse[aria-labelledby="status-virtual-server-1"] a:not(.ui_link)',function(e){e.preventDefault();var t=$(this),n=t.attr("href"),a=t.parents(".panel").first();if(a.addClass("updating"),!t.hasClass("disabled")){t.addClass("disabled opacity-0_4");var s=t.find(".fa-refresh");s&&s.addClass("fa-spin"),progress.start(),$.ajax({type:"GET",url:n,data:!1,statusCode:{200:function(){$.ajax({type:"GET",url:v___location_prefix+"/"+vars.pages.dashboard+"?no-cache=1&no-query=string",complete:function(){a.removeClass("updating")},success:function(e){var t="#status-virtual-server-1-collapse",n=$(e).find(t).find(".panel-body");$('[data-dcontainer="1"]').find(t).find(".panel-body").replaceWith(n),progress.end()}})}}})}}).on("mouseenter mouseleave","#extended_sysinfo-1 .panel.panel-default.ui-sortable-handle .panel-collapse > .panel-body",function(e){var t="#extended_sysinfo-1 .panel",n="draggable",a="data-"+n,s="true";"mouseenter"===e.type?$(t+"["+n+'="'+s+'"]').removeAttr(n).attr(a,s):$(t+"["+a+'="'+s+'"]').removeAttr(a).attr(n,s)}).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("/"+vars.pages.dashboard)>-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(e){if(v___module!==v___module_file_manager){$($.fn.dataTable.tables(!0)).css("width","100%"),$($.fn.dataTable.tables(!0)).DataTable().columns.adjust();var t=$(e.target).attr("href");t&&snippets.page.render_table_labels($(".tab-pane"+t)),plugins.page.format.columns(!0)}}).on("shown.bs.collapse",".panel > .panel-collapse",function(){snippets.page.render_table_labels($(this))}).on("keydown",function(e){if(!e.altKey)return;if(e.shiftKey)return;if(e.ctrlKey)return;if(e.metaKey)return;if($(e.target).is("input, textarea"))return;const t=$(".container-fluid .nav.nav-tabs > li.active");if(!t.length)return;let n;"ArrowLeft"===e.key?n=t.prev("li").find('a[data-toggle="tab"]'):"ArrowRight"===e.key&&(n=t.next("li").find('a[data-toggle="tab"]')),n&&n.length&&(n.trigger("click"),e.preventDefault())}),plugins.page.events.mousemove()};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,n){n=n||!1;var i=function(e){e=e||!1;var t=$(".mppopup table tbody tr");if(t.length>0)for(var i=0;i<t.length;i++){var a=t[i],s=a.className;(n||""===s)&&(n&&null===s.match("")||(a.style.display=e?"":"none"))}return t};if(""!==(e=e.trim())){var a=i(!1);if(a.length>0)for(var s=0;s<a.length;s++){var r=a[s].className;if((n||""===r)&&(!n||null!==r.match("")))for(var o=a[s].getElementsByTagName("a"),l=0;l<o.length;l++){var _=o[l].innerHTML.trim();""!==(_=_.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,""))&&(_=_.toLowerCase()).match(e.toLowerCase())&&(a[s].style.display="")}}}else i(!0)}function tab_action(e,t,n,i){document.forms[0]&&document.forms[0][e]&&(document.forms[0][e].value=t);try{const e="data-form-nested",t="data-submit-nested",i="form",a="input",s="name",r="id",o=$(n).attr("href"),l=$(n).parents(".nav-tabs").next(".tab-content").find(o),_=l.find(i+"["+e+"]")[0];if(_){const n=_.getAttribute(""+e),o=document.querySelectorAll("["+t+"='"+n+"']");o&&o.forEach(function(e){const t=e.getAttribute(s);$(e).attr(i)&&$(e).attr(i,_.getAttribute(r)),$(e).next(a+"["+s+'="'+t+'"]').attr(i,_.getAttribute(r))})}}catch(e){console.warn("Cannot set the related submitter ID of the nested form : "+e)}}function hidden_opener(e,t){if(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 -cnt-opened"),$("#"+e).parents(".opener_table_style_small:first").removeClass("-tcnt-opened")});else{var n=$("#"+e);n.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"),n.parent(".opener_container").prev("p").find(".opener_extra_container_a_style").addClass("opener_container_opened").removeClass("opener_container_closed"),n.parent(".opener_container").parent("tr").prev("tr").find("td a:nth-child(1)").addClass("opener_container_opened").removeClass("opener_container_closed"),n.slideUp(0).removeClass("opener_hidden").addClass("opener_shown").parent(".opener_container").slideDown(0).find(".opener_shown").slideDown(0,function(){plugins.page.format.columns(!0)}),n.parent(".opener_sub_container").addClass("margined-top -cnt-closed"),n.parents(".opener_table_style_small:first").addClass("-tcnt-opened"),snippets.page.render_table_labels(n)}}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 dayjs_set_locale(){const e=session_server_data_locale().toLowerCase(),t=dayjs.locale().toString().toLowerCase(),n=dayjs.locale(e).toString().toLowerCase();if(n&&t===n&&"en"===n&&"en-us"!==e&&e.startsWith("en-")){const t=e.toLowerCase().split("-")[1],n=["af","am","ar-dz","ar-iq","ar-kw","ar-ly","ar-ma","ar-sa","ar-tn","ar","az","be","bg","bi","bm","bn-bd","bn","bo","br","bs","ca","cs","cv","cy","da","de-at","de-ch","de","dv","el","eo","es-do","es-mx","es-pr","es-us","es","et","eu","fa","fi","fo","fr-ca","fr-ch","fr","fy","ga","gd","gl","gu","he","hi","hr","ht","hu","hy-am","id","is","it-ch","it","ja","jv","ka","kk","km","kn","ko","ku","ky","lb","lo","lt","lv","me","mi","mk","ml","mn","mr","ms-my","ms","mt","my","nb","ne","nl-be","nl","nn","oc-lnc","pa-in","pl","pt-br","pt","rn","ro","ru","rw","sd","se","si","sk","sl","sq","sr","ss","sv-fi","sv","sw","ta","te","tet","tg","th","tk","tl-ph","tlh","tr","ug-cn","uk","ur","uz","vi","yo","zh-cn","zh-hk","zh-tw","zh"].filter(function(e){if(t===e||e.endsWith(`-${t}`))return e});dayjs.locale(n[0]||t)}}function session_server_data_locale(){return session.server.data("locale").toString()||"en"}function theme_get_client_paginate(){var e=130,t=180;(function(e){return"string"==typeof vars.source_request&&vars.source_request.includes(e)||"string"==typeof vars.pre_requested_page&&vars.pre_requested_page.includes(e)||location.pathname&&location.pathname.includes(e)})("useradmin")&&(e=180,t=260);var n=parseInt((document.documentElement.clientHeight-e-t)/22);return n<=0&&(n=2),n}function theme_add_ss_attachment(){var e=document.getElementById("sattachblock");if(e){var t=$(e).prev("div"),n=t.find(".white-space-pre.el-wp-chooser"),i=n.first(),a=i.length?i[0].outerHTML:String(),s=n.length+1;a&&(a=a.replaceAll("file0","file"+s),t.append(a))}return!1}function theme_select_all_link(e,t){var n='[onclick*="theme_select_all_link"][onclick*="\\"'+t+'\\""]',a=$("aside form").length,s=document.forms[e+a];if(!s||!$(s).find(n).length){var r=$(".container-fluid "+n).closest("form");r.length&&(s=r[0])}var o=s[t],l=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(o)if(o.length||o.disabled)for(i=0;i<o.length;i++)o[i].disabled||(o[i].checked=!0,l(o[i]));else o.checked=!0,l(o)}function theme_select_invert_link(e,t){var n='[onclick*="theme_select_invert_link"][onclick*="\\"'+t+'\\""]',a=$("aside form").length,s=document.forms[e+a];if(!s||!$(s).find(n).length){var r=$(".container-fluid "+n).closest("form");r.length&&(s=r[0])}var o=s[t],l=function(e){var t=e.closest("tr.ui_checked_columns");t&&t.classList.toggle("hl-aw",e.checked)};if(o)if(o.length||o.disabled)for(i=0;i<o.length;i++)o[i].disabled||(o[i].checked=!o[i].checked,l(o[i]));else o.checked=!o.checked,l(o)}function g__text_breaker(e,t){if(e.val()){var n=e.val().split(t),i="";$.each(n,function(e,n){n&&(i+=t+n+"\n")}),e.val(i)}}function event_generate(e,t){var n=$.Event(e);return n.which=t,n}function event_hold_modifer_pressed(){return"ctrlKey"===settings_hotkey_toggle_hold_modifier&&vars.events.keypressed.ctrl||"metaKey"===settings_hotkey_toggle_hold_modifier&&vars.events.keypressed.meta||"shiftKey"===settings_hotkey_toggle_hold_modifier&&vars.events.keypressed.shift||"altKey"===settings_hotkey_toggle_hold_modifier&&vars.events.keypressed.alt}function event_hold_modifer_icon(){return"ctrlKey"===settings_hotkey_toggle_hold_modifier?"⌃":"metaKey"===settings_hotkey_toggle_hold_modifier?"⌘":"shiftKey"===settings_hotkey_toggle_hold_modifier?"⇧":"⌥"}function event_mark_key_pressed(e,t){t?$(document.documentElement).attr("data-key-"+e,t):t||$(document.documentElement).removeAttr("data-key-"+e)}function extract_content(e,t,n,i){var a=String();if(!e)return a;var s=t.endsWith(">"),r=t.length;if(!s){var o=new RegExp(t+"(.*?>)"),l=e.match(o);l&&l[0]&&l[1]&&(r+=l[1].length)}var _=s?t.length:r,c=i?0:_,d=i&&n?n.length:0,f=e.indexOf(t);if(-1===f)return a;var u=e.indexOf(n,f),g=-1===u?e.length:u;return n||(g=-1),$.trim(e.slice(f+c,g+d))}function get_user_home(){var e=session.server.data("user-home"),t=e.match(/\/.*?\/[0-9]*\/\.(.*)/);return t&&t[1]&&(e=t[1]),e||"undefined"!=typeof fm_user_data&&fm_user_data&&fm_user_data.home&&(e=fm_user_data.home),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(e){load.bundle(v___server_extensions_path+"/csf/csf",1,!!e&&["csf_init()"],0)}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",0)}function theme_open_new_external_link(e){var t="theme_open_new_link_ext";$("body").append('<a href="'+e+'" class="hidden" target="_blank" id="'+t+'"></a>'),$("#"+t).simulateUserClick().remove()}function theme_open_new_inner_link(e){var t="theme_open_new_link";$("body").append('<a href="'+e+'" class="hidden" id="'+t+'"></a>'),$("#"+t).simulateUserClick().remove()}function theme_open_new_tab(e,t){var n="theme_open_new_tab";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="'+n+'"></a>'),$("#"+n).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(){var e="data-class-restore";$.each($(".container-fluid ["+e+"]"),function(){var t="btn-xclass",n=$(this).attr(e);if($(this)[0]&&$(this)[0].classList){var i=$(this)[0].classList.value.match(/.*(btn-\S+)/);i&&(t=i[1],$(this).removeAttr(e),$(this).removeClass(t).addClass(n))}})}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){$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-get_update_notice=1",complete:function(){e&&e.classList.remove("disabled")},success:function(e){session.status(e)&&$(e).appendTo($("body")).modal("show")},error:function(e){}})}function theme_inject_tooltip(e,t,n,i,a,s,r,o,l,_){var c=v___initial_load?3e3:0,d=e;_&&(c=_),e=theme_language(e)||e,t||(t="body"),n||(n="auto top"),i||(i="tooltip"),o||(o="hover"),a||(a=vars.plugins.tooltip.delay.show),c&&setTimeout(function(){var e=$('[data-target-tooltip-callback="'+d+'"]');e.attr("data-title",theme_language(d)),e.attr("data-delay",'{"show":'+vars.plugins.tooltip.delay.show+', "hide":'+vars.plugins.tooltip.delay.hide+"}"),e.tooltip({container:t,placement:n,sanitize:!1,trigger:o,html:!!r,delay:{show:a,hide:vars.plugins.tooltip.delay.hide}})},c);var f=String();if(s){var u=new RegExp("(?=\\"+s+")");e=(e=e.split(u)).join("<br>")}return(s||r)&&(f=' data-html="true" '),a='{"show":"'+a+'", "hide":"'+vars.plugins.tooltip.delay.hide+'"}',l?{container:t,placement:n,delay:a,toggle:i,title:e,html:!!f}:' data-container="'+t+'" data-placement="'+n+"\" data-delay='"+a+"' data-toggle=\""+i+'" data-title="'+e+'" '+f}function theme_title_generate(e,t){var n=plugins.navigation.state.loading(),i=1==session.server.data("loading")?1:0;if(!vars.page.locked)if(!n&&!i||vars.h.selector.content.get().hasClass("progressing")){if($.support.spa){var a=$("#headln2c").data("current-module-name"),s=$("#headln2c span[data-main_title]").text()||$('.panel-heading font[size="+2"]').text(),r=String(),o=r,l=$("aside select option:checked").text(),_="webmin"!==session.server.data("product")?theme_language("theme_xhred_titles_um"):theme_language("theme_xhred_titles_wm"),c=Convert.strUpFirst(session.server.data("product")),d=v___title_initial;"string"==typeof d&&(d=d.replace(c,_));var f=d?" — "+d:r,u=d?d+" — ":r,g=session.server.data("hostname"),p=session.server.data("user"),m=theme_language("titles_dashboard"),h=v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+vars.pages.dashboard,v=$(".container-fluid > .error_40x");!a||a===s||$t_uri_virtualmin||$t_uri_cloudmin||(s=a+"/"+s),"csf"===v___module&&(s=theme_language("csf")),h&&(s=m),v.length&&(s=v.find("strong").text()),t&&(s=t);var b=" - "+s;if(1==settings_document_title&&(u=String()),2==settings_document_title&&(f=String()),3==settings_document_title&&(u=String(),f=String()),5==settings_document_title&&(u=g+" - "+d+" — ",f=String()),6==settings_document_title&&(u=p+"@"+g+" - "+d+" — ",f=String()),7==settings_document_title&&(u=String(),f=" — "+_),8==settings_document_title&&(u=g+" — ",f=String()),9==settings_document_title&&(u=p+"@"+g+" — ",f=String()),4==settings_document_title){if(e)return o;document.title=d}else if($('li.sub_active a[href*="'+v___module_file_manager+'"]').length){var x=v___module_file_manager,w=$('body[class*="'+x+'"] .active form input#path').val();if(w){if(o=u+Convert.uriDecodeComponent(w)+" - "+$("li.sub_active a").text()+f,e)return o;document.title=o}else{if(o=u+$("li.sub_active a").text()+f,e)return o;document.title=o}}else if(($t_uri_virtualmin||$t_uri_cloudmin)&&l&&l.length&&!v.length)if(h){if(o=u+m+f,e)return o;document.title=o}else if(s&&s.length){if(o=u+l+b+f,e)return o;document.title=o}else{if(o=u+plugins.navigation.state.title()+f,e)return o;document.title=o}else if(s&&s.length){if(o=u+s+f,e)return o;document.title=o}else{if(o=d,e)return o;document.title=o}var y=$(".right-side-tabs .list-group-item:not(.no-notifications, .opacity-0_3)").length;settings_side_slider_enabled&&settings_side_slider_notifications_enabled?titlenotifier.set(y):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("&"+$__theme_navigation,"")),2===t&&(Test.strContains(e,$__theme_navigation)||(e=Test.strContains(e,"?")?e+"&"+$__theme_navigation:e+(!e||e.endsWith("/")||e.endsWith(".cgi")||e.includes(".cgi/")?"":"/")+"?"+$__theme_navigation)),e}function get_page_title_subtitle(e){var t=$("[data-sub_title]").text(),n=$('[data-main_title=""]').text(),i=n+(t?": "+t:String());return e?n:i}function get_pjax_content(e){return console.warn('"get_pjax_content()" is deprecated. Use "plugins.pjax.page.fetch()" instead.'),plugins.pjax.page.fetch(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 n=e.replace(v___location_origin+v___location_prefix,""),i=n.replace(v___module,"").replace(/^\/+/g,""),a=(a=$('form[action*="'+n+'"]:visible')).length?a:$('form[action="'+i+'"]:visible'),s=n.match(/\w+.cgi/gi),r=(a=a.length||!s?a:$('form[action*="'+s[0]+'"]:visible')).attr("method");if("multipart/form-data"===a.attr("enctype"))return"post";if(r)return r;if(!r){r=(r=$('form[action="'+n+'"]').attr("method"))||$('form[action="'+URI(n).filename()+'"]').attr("method");var o=$('form[action="'+n+'"]').attr("enctype");return r||o?"multipart/form-data"===o?"post":r:"get"}}else if("object"==typeof e&&$(e).is("form")){var l=e.attr("method");return l||"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_default_send_headers(){return{"x-no-links":1,"x-client-paginate":theme_get_client_paginate(),"x-client-paginate-no-script":1,"x-color-palette-file":"quote-dark"}}function set_ajax_send_headers(e,t){for(const[t,n]of Object.entries(get_default_send_headers()))e.setRequestHeader(t,n)}function set_pjax_send_headers(e,t){let n=get_default_send_headers();if(theme_editor_palette_is_dark()){const e={"x-color-palette":"dark"};n={...n,...e}}const i={"x-navigation-type":"object"==typeof t&&"pjax:popstate"===t.type?"back_forward":"object"==typeof t&&t.originalEvent&&t.originalEvent.isTrusted?"navigate":"reload"};n={...n,...i},plugins.pjax.headers.send.set(n)}function get_pjax_event_end(e,t,n){if(session.alive){if(null!=t&&t.status){var i=$('div[data-dcontainer="1"]'),a=t.status.toString().startsWith("40"),s=t.status.toString().startsWith("50");if(a||s){if($.pjax.cache(!1,!1,[i,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),a){var r=extract_content(t.responseText,'<div class="container error_40x" data-dcontainer="1">',"</div>",0);r&&i.html(r)}else if(s){var o,l=$(t.responseText).filter("h1").text(),_=$(t.responseText).filter("p").text();o='<div class="alert alert-danger error_40x">',o+='<strong><i class ="fa fa-exclamation-triangle"></i> '+t.status+" - "+l+"</strong><br><span>"+_+"</span>\n",o+="</div>",i.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,f=t.responseText.match("<html(.*)>");f&&f[0]&&(d=(d=(new DOMParser).parseFromString(f[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(),mail_page_check(this)),"data-language"===this.nodeName){var n=session.server.data("uri"),i=session.server.data("language"),a=this.nodeValue;a&&i&&i!==a&&n&&n.match(/change-user|webmin\/edit_lang|\/language\//)&&($.post(v___location_prefix+"/xhr.cgi?xhr-theme_clear_cache=1"),setTimeout(function(){plugins.navigation.reload()},300))}if("data-locale"===this.nodeName){var s=session.server.data("uri"),r=session_server_data_locale(),o=this.nodeValue;o&&r&&r!==o&&s&&s.match(/change-user|webmin\/edit_lang|\/language\//)&&(dayjs.locale(this.nodeValue),setTimeout(dayjs_set_locale))}if("data-slider-fixed"===this.nodeName){const e=vars.slider.pinned?1:0;session.server.data(this.nodeName,e),settings_side_slider_fixed=!!e,e?plugins.slider.state(1):plugins.slider.state(0)}else if("data-navigation-collapsed"===this.nodeName){const e=vars.navigation.pinned?1:0;session.server.data(this.nodeName,e),settings_navigation_always_collapse=!!e,e?plugins.navigation.pin():plugins.navigation.unpin()}else"data-night-mode"!==this.nodeName&&"data-bgs"!==this.nodeName&&"data-theme"!==this.nodeName&&"data-level"!==this.nodeName&&"data-access-level"!==this.nodeName&&session.server.data(this.nodeName,this.nodeValue)}}).promise().done(function(){if(plugins.pjax.headers.set(t),!core.curModule("mailboxes")&&uri_parse("directory",session.server.data("data-uri")).indexOf("/mailbox")>-1&&(!uri_parse("file",session.server.data("data-uri"))||uri_parse("file",session.server.data("data-uri")).indexOf("index.cgi")>-1))return mail_load(session.server.data("data-uri")),page_init(),!1;if(plugins.page.events.register(),get_pjax_event_end_funcs(1,!1,n),$.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)}),plugins.navigation.reload_check(t),e){var i=$(e.relatedTarget),a=i.attr("href"),s=i.parent().is("[data-linked], .favorites-dcontainer, .menu-exclude.ui-sortable-handle");(s&&(Test.strContains(a,"/mysql/")||Test.strContains(a,"/postgresql/"))||Test.strContains(v___module,"mysql")||Test.strContains(v___module,"postgresql"))&&"function"==typeof f__ex__mysql_runner&&f__ex__mysql_runner(),(s&&Test.strContains(a,"/csf/")||Test.strContains(v___module,"csf"))&&("function"==typeof csf_init?csf_init():get_bundle_csf("init"))}})}}}}function get_pjax_event_end_funcs(e,t,n){page_init();var i=function(){if(e&&v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&"mconfig.cgi"!==v___location_file&&page.handle.content.preloader.show(),v___module_file_manager&&0!=get_access_level()&&plugins.slider.state(0),!e){session.server.data("data-script-name",v___location_path),session.server.data("data-uri",v___location_resource);var t=new RegExp("^"+v___location_prefix,"i");v___module=session.server.data("data-uri").replace(t,"").split("/").filter(function(e){return 0!==e.length})[0],session.server.data("data-module",v___module),setTimeout(function(){session.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 a=function(){session.server.data("loading")?setTimeout(a,100):(i(),plugins.navigation.detect())};setTimeout(a,0)}else i(),!n&&e&&Test.strContains(v___location_directory,v___module_file_manager)&&("function"==typeof ___f__tw?"config.cgi"===v___location_file||"mconfig.cgi"===v___location_file?___f__tw():setTimeout(function(){___f__tw()},100):get_bundle_file_manager(1)),core.curModule("csf")||session.server.data("post",0,1),e&&snippets.page.render(0),$(".tooltip").tooltip("hide"),$(".popover").popover("hide"),theme_title_generate(),plugins.navigation.detect(),e&&vars.h.selector.content.get().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])');if(t.length&&!t.parents(".ui_buttons_table").length&&"config.cgi"!==v___location_file&&"uconfig.cgi"!==v___location_file&&"tconfig.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)try{isElemInView(t[0])&&t[0].focus()}catch(e){}},400),!e||core.curModule(v___module_file_manager)||core.curModule("csf")||"tconfig.cgi"===v___location_file||page.handle.content.preloader.hide()}function get_pjax_action_submit(e,t){var n=void 0===t||!0===t||1==t;if(!get_onbeforeunload_status())if(vars.previous_request_progressive=e,e&&e.target&&e.target.action&&unbuffered_header_processor_allow(e.target.action))unbuffered_header_processor(e,1);else{var i=$(e.currentTarget),a=Test.strContains(i.attr("enctype"),"multipart/form-data"),s=String(),r=String(),o=a?String():i.serialize(),l=i.find('[type="submit"]'),_=$(quirks.active_element()),c=_.is('[type="submit"]')?_:1===l.length&&l;c&&!a&&(s=c.attr("name"),r=c.val()||$.trim(c.text()),o=!!(s&&o&&o.includes(s+"=")),s&&r&&!o&&$('<input data-trigger-injected="1">').attr({type:"hidden",class:"hidden-force",name:s,value:r}).appendTo(i)),vars.previous_request=e,vars.source_request=v___location_resource,vars.previous_request_progressive=String(),v___theme_connection_triggered_origin=1,set_pjax_send_headers(e.target.action,e),$.pjax.submit(e,"[data-dcontainer]",{timeout:0,push:n,type:get_pjax_type(e.target.action),fragment:"[data-dcontainer]"})}}function get_pjax_action_click(e,t,n){var i=void 0===n||!0===n||1==n;if(null!=$(t).attr("href")){var a=$(t).attr("href");if(a&&(a.includes("!edit")||a.includes("!view"))){e.preventDefault();var s=snippets.parser.fileviewer.getSuffix(!1,1),r=s[0],o=s[1],l=s[2],_=s[3],c=s[4],d=s[5],f=s[6],u=s[7],g=s[8],p=a.includes(d),m=a.includes(f);isHead=a.includes(u),isTail=a.includes(g),p&&(a=a.replace(r,"").replace(o,"").replace(l,"").replace(_,"").replace(c,"").replace(d,"").replace(f,"").replace(u,"").replace(g,""));var h=a.replace("!edit ","").replace("!view ",""),v=h.split("\\").pop().split("/").pop(),b=h.replace("/"+v,"");return progress.start(),void(p?edit_file(v,b||"/",!1,1,0,m,isHead,isTail):edit_file(v,b||"/"))}if($(e.target).is(".gl-icon-select"))return e.preventDefault(),void $(t).trigger("contextmenu");if(set_pjax_send_headers(t.href,e),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 x=URI(e.target.href).directory();if(x&&x.includes(".cgi")){var w=x.split("/");w=(w=w.filter(function(e){return!e.includes(".cgi")})).join("/"),e.target.href=e.target.href.replace(x,w)}}$.pjax.click(e,{timeout:0,push:i,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+'"> </i> <strong class="font-size-90p">'+theme_language("global_unbeforeunload_title")+"</strong>",buttons:{main:{label:' <i class="fa fa-fw fa-arrow-circle-o-left"> </i>'+theme_language("global_cancel")+" ",className:"btn-default vertical-align-top margined-left--2",callback:function(){despinnerfy_buttons(),plugins.navigation.detect(),plugins.navigation.select.back()}},danger:{label:' <i class="fa fa-fw fa-arrow-circle-o-right"> </i>'+theme_language("global_continue")+" ",className:"btn-danger vertical-align-top margined-left--2",callback:function(){set_onbeforeunload_status(0,0),set_onbeforeunload_status(0,1),vars.ajax.progressing&&progressive_request.abort();try{"string"==typeof v___location_file&&v___location_file.includes("tconfig.cgi")&&theme.config.current.reset()}catch(e){}if("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&&plugins.pjax.page.link.get($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 n=t?"html":".container-fluid > .panel > .panel-body",i="data-unload-warning";e?$(n).attr(i,"1"):$(n).removeAttr(i)}function set_onbeforeunload_status_native(e){var t="html",n="data-unload-error";e?$(t).attr(n,"1"):$(t).removeAttr(n)}function get_onbeforeunload_status_native(){return $('html[data-unload-error="1"]').length}function theme_panels_sort(e){var t,n;if("slider"===e)n=(t="#right-side-tabs .extended-list-data > .panel-group#extended_sysinfo")+" > .panel";else{if("dashboard"!==e)return;n=(t="#extended_sysinfo-1.panel-group")+" > .panel.panel-default"}if($(t).length){if("string"==typeof settings_sysinfo_panels_order&&("[object Object]"===settings_sysinfo_panels_order?settings_sysinfo_panels_order={}:(settings_sysinfo_panels_order=settings_sysinfo_panels_order.replace(/'/g,'"'),settings_sysinfo_panels_order=JSON.parse(settings_sysinfo_panels_order))),!$.isEmptyObject(settings_sysinfo_panels_order))for(var i in settings_sysinfo_panels_order)$(t).find('.panel[data-referrer="'+i+'"]').attr("data-sorter",settings_sysinfo_panels_order[i]);settings_sysinfo_panels_order=JSON.stringify(settings_sysinfo_panels_order);$(n).sort(function(e,t){return $(e).attr("data-sorter")>$(t).attr("data-sorter")?1:-1}).appendTo(t)}}function theme_cache_clear(e,t){theme.veiled(1),plugins.messenger.post('<i class="fa fa-lg fa-fw fa2 fa2-delete fa-1_25x"></i>'+theme_language("clear_cache_initiated")+" "+theme_language("global_please_wait")+' <span class="cspinner"><span class="cspinner-icon white smallest margined-top-4"></span></span>',0,"info","themeUpgrade",0),"undefined"!=typeof stats&&stats.sys.disable(),$.post(v___location_prefix+"/xhr.cgi?xhr-theme_clear_cache=1"+(t?"&xhr-theme_clear_cache_full=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)}async function theme_password_generator(e){var t=e.find(".fa"),n=e.outerHeight()<=28?"fa-0_90x line-height-11 margined-left--1 margined-right-0":"fa-0_90x line-height-11 margined-right--2",i="fa fa-spin fa-reload fa-spin-fast";e.find(i.replace(/fa/g,".fa").replace(/\s+/g,"")).remove();var a=$('<i class="'+i+" cursor-na "+n+'"></i>').appendTo(e),s="pointer-events-none";t.addClass(s),t.hide();const r=await $.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-gennewpass=get",data:!1,dataType:"text"});if(a.remove(),t.show(),t.removeClass(s),!r){var o="15|a-z,A-Z,0-9,#",l=o.split("|")[1].split(","),_=parseInt(o.split("|")[0]),c="",d="";$.inArray("a-z",l)>=0&&(c+="abcdefghijklmnopqrstuvwxyz"),$.inArray("A-Z",l)>=0&&(c+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),$.inArray("0-9",l)>=0&&(c+="0123456789"),$.inArray("#",l)>=0&&(c+="![]{}()%&*$#^<>~@|");for(var f=0;f<_;f++)d+=c.charAt(Math.floor(Math.random()*c.length));return d}return r}function get_cookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var a=n[i];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}function array_swap(e){var t={};for(var n in e)t[e[n]]=n;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,n,i,a,s,r,o,l,_){void 0===a&&(a=!1),void 0===s&&(s=""),void 0===r&&(r=""),(void 0===o||0==o)&&(o=""),(void 0===l||0==l)&&(l=!1),(void 0===_||0==_)&&(_=!1),$.each(e,function(e,c){(v___location_path==v___location_prefix+c||theme_module_check_clone(c)||null===c)&&(1===s||$.isArray(s)||(s=s.split("~"),r=r.split("~")),$.each($(s),function(e,n){if(1!==s){var i=new RegExp(RegExp.quote(n),"g");$(t+':not(.f__lnk_t_btn):contains("'+n+'")').replaceText(i,r[e])}}).promise().done(function(){var e="",s="";o&&o.indexOf("~")>-1&&(o=o.split("~"),e=o[0],s=o[1]),$.each($(t).find(n),function(){var r=$(t).find(n).parents(".btn-group.ui_links_row");if(r.length&&r.contents().unwrap(),!$(this).parents(t).hasClass("f__lnk_t_btn")||Test.strContains(i,"---forced")){if(l){var o=new RegExp(RegExp.quote(l),"g");$(this).parent().replaceText(o,_||"")}i&&i.indexOf("__center__")>-1&&$(n).parent().addClass("text-center").addClass("f__lnk_t_btn-el");var c=" vertical-align-baseline",d=!1;a&&a.includes("no-vt-al")&&(c=""),a&&a.includes("no-btn-text")&&(d=!0),$(this).html(e+"<span"+(d?' class="hidden-force"':"")+">"+$(this).text().replace(/\.\.$/,"")+"</span>"+s).addClass(i).addClass("f__lnk_t_btn-el").removeClass("ui_link").prepend(a?'<i class="fa fa-fw margined-left--3 '+a+c+(d?" margined-right--3":"")+'">'+(d?"":" ")+"</i>":""),$(this).parent(t).addClass("f__lnk_t_btn"),$(this).parent("label").addClass("f__lnk_label_cnt").parent("td").addClass("f__lnk_td_cnt")}})}))})}function theme_toggle_night_mode(e){var t=$("body .user-link.palette-toggle"),n=void 0!==e?e:t.find(".fa-sun").length?0:1,i=session.server.data("data-default-theme"),a=$("input, textarea").is(":focus")&&void 0===e;if(void 0===e&&sessionStorage.setItem("theme-toggled",!0),$.support.spa&&a)console.warn("Cannot change palette mode while writing");else if($.support.spa){var s=function(){v___location_path_lead_unslashed==v___location_prefix_unslashed_trail_slashed+vars.pages.dashboard&&$(".__page .piechart").length&&($.each($(".piechart"),function(){$(this).addClass("bg-filter-blur-grayscale-invert-opacity75").data("easyPieChart").update(0)}),setTimeout(function(){plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard)},100)),theme.config.save()};if(1===n){t.find(".fa-moon").removeClass("fa-moon").addClass("fa-sun"),$(document).find(".settings_navigation_color_toggle").addClass("hidden");var r=$("html").find('head link[href*="palettes"][data-palette]'),o=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>');var l=function(e){var t=function(){session.server.data("data-theme","gunmetal"),r.remove(),session.server.data("data-bgs","nightRider"),session.server.data("data-night-mode",1),v___theme_night_mode_enabled=1,v___theme_night_mode=1,settings_force_night_mode=v___theme_night_mode,s()},n=document.styleSheets;try{if(!n[e]||!n[e].cssRules[0])return void setTimeout(function(){l(e)},200)}catch(e){return"SecurityError"!==e.name?void setTimeout(function(){t()},800):void 0}t(),updateCodeMirrorTheme()};l(o)}else{$("body").find(".settings_navigation_color_toggle").removeClass("hidden"),t.find(".fa-sun").removeClass("fa-sun").addClass("fa-moon");var _=$("html").find('head link[href*="gunmetal"]');"blue"!=session.server.data("data-default-theme")&&$("html").find("head").append('<link href="'+v___location_prefix+"/unauthenticated/css/palettes/"+i.toLowerCase()+"."+v___source_type+".css?"+$.now()+'" rel="stylesheet" type="text/css" data-palette>'),session.server.data("data-theme",i),_.remove(),session.server.data("data-bgs","gainsboro"),session.server.data("data-night-mode",0),$("html").find('head link[href*="nightrider"]').remove(),v___theme_night_mode_enabled=0,v___theme_night_mode=0,settings_force_night_mode=v___theme_night_mode,s(),updateCodeMirrorTheme()}if("object"==typeof CKEDITOR&&CKEDITOR.instances)for(var c in CKEDITOR.instances)setTimeout(function(){editor_html_palette(CKEDITOR.instances[c].document,n)});setTimeout(function(){theme_page_iframes(null,n)},n?200:0)}}function theme_spinner_small(e,t,n){return'<span class="cspinner '+(e=e||"in-btn-md")+'" style="position: relative"><span class="cspinner-icon '+(t=t||"dark")+'" style="'+(n=n||"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,n=t||$(".btn.disabled");$.each(n,function(){var t=$(this),n=t.find(".cspinner_container, .cspinner_custom"),i=n.prev("i.invisible, i.hidden-force");!e&&t.removeClass("disabled"),i.removeClass("invisible hidden-force"),n.remove()})}function despinnerfy_button(e){var t=e.find(".cspinner_container, .cspinner_custom"),n=t.prev("i.invisible, i.hidden-force");e.removeClass("disabled"),n.removeClass("invisible hidden-force"),t.remove()}function spinnerfy_buttons(e,t,n,i,a){var s=!!(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"),o="28px"==e.css("height"),l=e.hasClass("btn-tiny"),_=e.hasClass("btn-lg")||"35px"==e.css("height"),c=e.outerHeight(),d=parseInt(c/(l?5:r||o?4.4:_?3.6:4))+(browser.detect.firefox(),0);d+=r||o?.5:0;var f=e.find(".fa, .fa2").first().outerWidth(),u=parseInt(f/(l?1.6:r||o?1.15:_?1.4:1.3))-.5,g=e.find(".fa"),p='span class="cspinner_container" style="position: absolute; top: '+d+"px; left: "+u+'px;"><span class="cspinner" style="left: 0"',m="cspinner-icon white",h="cspinner-icon dark",v=void 0!==t&&0!=t&&t,b="<"+p+'><span class="'+m+" "+(v?v[2]?v[2]:"":r||o?"smaller":"small")+'"></span></span></span>',x="<"+p+'><span class="'+h+" "+(v?v[2]?v[2]:"":r||o?"smaller":"small")+'"></span></span></span>';if(l&&(b="<"+p+'><span class="'+m+' smaller2"></span></span></span>',x="<"+p+'><span class="'+h+' smaller2"></span></span></span>'),setTimeout(function(){!s&&e.addClass("disabled")},10),g.length&&!s){var w=function(){e.hasClass("btn-default")?g.addClass("invisible").after(x):g.addClass("invisible").after(b)};a?(e.addClass("disabled"),w()):setTimeout(function(){w()},10)}null==typeof n&&(n=!1),null==typeof i&&(i=!1),(v[3]||n)&&setTimeout(function(){e.removeClass("disabled"),g.removeClass("invisible"),e.find(".cspinner_container").remove()},n||v[3]),i&&setTimeout(function(){progress.end()},400)}function spinnerfy_button_tiny(e){var t=theme_spinner_small("margined-top--1 cspinner_custom","white","width: 8px; height: 8px; margin-right: 5px; border-width: 1px;");e.find(".fa").first().addClass("hidden-force").after(t)}function theme_language(e,t){void 0===t&&(t=!1);var n="theme_xhred_"+e,i=v___theme_language;if(t){var a=Convert.arrFlip(i);return a[$.trim(n)]||a[$.trim(e)]}var s=i[n]||i[e];return s&&"mac"===platform.detect()&&(s=(s=(s=(s=(s=(s=(s=s.toString()).replaceAll("Ctrl +","⌘ +")).replaceAll("Alt +","⌥ +")).replaceAll("Ctrl+","⌘+")).replaceAll("Alt+","⌥+")).replaceAll("Shift+","⇧+")).replaceAll("+Shift","+⇧")),s}function theme_copy_to_clipboard(e,t){var n=function(e){var t="tmp-clipboard-obj";$("body").append('<button class="hidden '+t+'" data-clipboard-text="'+Convert.quoteEscape(e)+'"></button>');var n=new ClipboardJS("."+t);$("."+t).trigger("click").remove(),n.destroy()};if(t)n(e);else try{navigator.clipboard.writeText(e)}catch(t){n(e)}}function theme_post_event_handler(e,t){if(!t._isKeyCombo&&t._isHuman){var n=$(quirks.active_element());if(n&&n.length&&n.is('input[type="text"], .ui_textbox, textarea, .ui_textarea'))return;plugins.dashboard.events("support-header-icon",e,t),plugins.dashboard.events("copy/paste-header-icon",e,t),plugins.messenger.events("message-user-select",e,t),snippets.page.events(e,t)}}function theme_post_event_window_state_activated(e){theme.visibility.set(!0),"focus"===e&&theme_window_focused(),plugins.dashboard.events("reset"),snippets.page.events("reset")}function theme_post_event_window_state_deactivated(e){theme.visibility.set(!1)}function get_utc_offset(){return session.server.data("time-offset")}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 xhr_response_text_to_html(e){var t=null;if("object"==typeof e){var n=e.responseText;if("string"==typeof n&&n)try{var i=(new DOMParser).parseFromString(n,"text/html"),a=$($(i).find("body"));if(a&&a.length){var s=a[0].childNodes;if(s&&s.length)return(t=$(s).add(a)).length?t:null}}catch(e){}}return t}function connection_error(e,t,n,i){var a=function(e){var t=vars.previous_request;return"object"==typeof t&&t.currentTarget&&t.currentTarget.action&&t.currentTarget.action.toString().includes(e)};if(!(core.curModule("webmin")&&a("/change")||core.curModuleFile("acl","list_sessions.cgi")||theme_error_connection_reset(e))){var s=vars.previous_request_progressive;if(!("object"==typeof s&&(s=$(s.target).serialize(),"update.cgi"===v___location_file&&s.includes("mode=updates")&&s.includes("u=webmin"))||e&&500===e.status&&vars.ajax.progressing||i&&i.url&&i.url.includes("/stats")&&a("/wizard"))){var r,o=function(e,t){var n=String(),i=xhr_response_text_to_html(e);if(i&&(i.filter("p").length||t&&i.find("[data-fatal-error-text]").length)){var a=$.trim(i.filter("p").html())||$.trim(i.find("[data-fatal-error-text]").html());if(a){var s=a.replace(/\n/g," ").match(/(.*)\sat\s\/|(.*)/);s&&(n=" – "+Convert.htmlStrip(s[2]||s[1]))}}return n},l=o(e);if(502!==e.status||!l||!l.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 _=o(e,!0),c=String();if(413===e.status){var d=theme_wiki_link("global_error_more_details_online","https://github.com/authentic-theme/authentic-theme/wiki/Error:--413---Request-Entity-Too-Large");d&&(c=". <br>"+d)}var f=String();i&&i.url&&(f=" — <kbd data-error>"+i.url+"</kbd>"),200===e.status||(r=(r=f)||String(),["stats.cgi","session_login.cgi","pam_login.cgi"].some(e=>r.includes(e)))?_&&theme_error_disk_quota_exceeded(_):(e.status&&plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+theme_language("global_error")+": "+e.status+" - "+e.statusText+_+c+f,10,"error","ajaxError"),setTimeout(despinnerfy_buttons,400))}else{var u="modal-connection-warning",g=e;vars.pjax.post_reboot&&(vars.pjax.post_reboot=!1),$("."+u).length||this.called||(this.called=1,$.ajax({context:this,type:"GET",url:v___location_prefix+"/xhr.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"),i="unplugged",a="danger",s="virtual-server",r="_domain.cgi",o="_form.cgi",l=core.curModuleFile(s,"wizard.cgi"),_=$('.container-fluid form[action*="wizard.cgi"]'),c="wizardinputdefdommanual",d=3===_.find('input[type="radio"][name="defdom"], input[type="text"][name="defhost"]').length||_.find("#"+c).length,f=core.curModuleFile(s,"edit"+r)||core.curModuleFile(s,"save"+r)||core.curModuleFile(s,"delete"+r)||core.curModuleFile(s,"cert"+o)||core.curModuleFile(s,"rename"+o)||core.curModuleFile(s,"rename.cgi")||core.curModuleFile(s,"domain"+o)||core.curModuleFile(s,"domain_setup.cgi")||core.curModuleFile(s,"letsencrypt.cgi")||core.curModuleFile(s,"check.cgi")||l;if(f){var p=theme_language("theme_xhred_connection_error_details_ssl");p=p.replace("<a>",'<a data-ssl-warning-fixer class="cursor-pointer">');var m="[data-ssl-warning-fixer]",h="click.sslwarn";$("body").off(h,m).on(h,m,function(e){e.preventDefault();window.open(location.origin+v___location_prefix+"/?xnavigation=ERR_CERT_AUTHORITY_INVALID","net::ERR_CERT_AUTHORITY_INVALID","menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=560px,height=300px").focus()}),e=e.replace("<ul>","<ul><li>"+p+"</li>"),d&&l&&(_.find('input:not([type="submit"]):not([name="step"])').removeAttr("name").removeAttr("id"),$("<input>").attr({type:"hidden",name:"defdom",id:c,value:0}).appendTo(_))}n&&(e=n.body,t=n.title,i=n.icon,u+=" modal-reboot",a="warning");var v="loading-dots",b=new Date;b=dayjs(b.toISOString()).format(config_portable_theme_locale_format_full);var x='<sup class="fa fa-clock" data-toggle="tooltip" data-title="'+theme_language("connection_lost")+": <br>"+b+'"></sup>';g.reboot&&(x=String()),theme_alert(t+'<span class="'+v+'"></span>'+x,e,!1,"md",a,i+" fa-lg","7 "+u,0),setTimeout(function(){$("."+u+" ."+v+" + .fa").tooltip({placement:"auto bottom",trigger:"hover",html:!0,delay:{show:vars.plugins.tooltip.delay.show,hide:vars.plugins.tooltip.delay.hide}})},150),setTimeout(function(){0===v___theme_connection_reestablish&&(connection_reestablish(),v___theme_connection_reestablish=1,this.called=0,$("."+u).on("hidden.bs.modal",function(){if(v___theme_connection_reestablish=0,progress.end(),d){var e=_.find('input[name="parse"]').prev('button[name="parse"]');e.length&&e.trigger("click")}f&&plugins.navigation.reload()}))},1),setTimeout(function(){plugins.navigation.load.stop(),plugins.navigation.detect(),plugins.navigation.switch.reset(),despinnerfy_buttons(),plugins.shell.unlock()},100)}}))}}}}function theme_error_connection_reset(e){return 0===e.status&&4===e.readyState&&!0===e._errConnectionReset&&(plugins.messenger.post({type:"error",icon:"fa fa-plug",id:"connection_error_200_reset",title:theme_language("connection_reset_title"),message:theme_language("connection_reset_message"),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,timeout:0}),!0)}function theme_error_disk_quota_exceeded(e){return!(!e||!e.toString().toLowerCase().includes("no space left on")&&!e.toString().toLowerCase().includes(": disk quota exceeded"))&&(plugins.messenger.post({type:"error",icon:"fa2 fa2-disk fa-1_25x",id:"connection_error_200_disk_quota_error",title:theme_language("disk_quota_error_title"),message:theme_language("disk_quota_error_message"),layout:1,displayMode:1,position:"bottomCenter",cancel:!0,timeout:0}),!0)}function theme_wiki_link(e,t){var n=theme_language(e),i=n.match(/%1(.*)%1/);if(i){var a=new RegExp(i[1],"g");return n=n.replace(/%1/g,String()).replace(a,'<a target="_blank" class="text-success" href="'+t+'">'+i[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+"/xhr.cgi?xhr-check=1",data:!1,timeout:1e3,dataType:"text",success:function(){$("."+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"> </i> '+theme_language("connection_success")),$("."+e).find(".modal-body").html("<p>"+theme_language("connection_success_details")+"</p>"),vars.pjax.post_reboot?(plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard,["success",connection_modal_close]),vars.pjax.post_reboot=!1,vars.previous_request=String()):setTimeout(function(){connection_modal_close()},300)},error:function(){v___theme_connection_reestablish&&setTimeout(function(){connection_reestablish()},1e3)}})}function control_server_theme_temp_data(e,t,n,i,a,s){return $.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-theme_temp_data=1&xhr-theme_temp_data_action="+e+"&xhr-theme_temp_data_name="+t+"&xhr-theme_temp_data_value="+(n?Convert.uriEncodeComponent(n):n)+"&xhr-theme_temp_data_keep="+i,data:!1,dataType:"text",success:function(e){session.status(e)&&"function"==typeof a&&(!e.length||e.length&&1===s)&&a()},error:function(e){}})}function get_server_theme_temp_data(e,t,n,i){return control_server_theme_temp_data("get",e,!1,t,n,i)}function set_server_theme_temp_data(e,t,n,i,a){control_server_theme_temp_data("set",e,t,n,i,a)}function page_control_header(){var e=".header",t="#headln2l",n="#headln2c",i=$(e+" "+t),a=$(e+" "+n);if(matchMedia("(max-width: 767px)").matches){if(i.next().is(n)){var s=a.detach();i.before(s)}}else if(a.next().is(t)){s=a.detach();i.after(s)}}function page_display(){var e=$("body"),t=$("body").find(".container-fluid"),n=$("head");t.css({opacity:1,"pointer-events":"auto"}),e.css("overflow","auto"),n.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"},".__page":{"margin-left":e+"px !important"},".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 e.endsWith("/")||(e+="/"),e.startsWith("/")||(e="/"+e),!!core.moduleAvailable(URI(e).directory().replace(/\//g,""))}function theme_shortcuts_generate(e){var t,n=theme_shortcuts_modifier_name();if("conf"===e){var i=settings_hotkey_open_module_config_privileged;t="("+n+" + "+("dot"===i?".":"comma"===i?",":i).toString().toUpperCase()+")"}else t="("+n+" + "+e.toString().toUpperCase()+")";return t}function theme_shortcuts_modifier_name(e){var t,n=e||settings_hotkey_toggle_modifier;return"mac"===platform.detect()?"ctrlKey"===n?t="⌃":"altKey"===n?t="⌥":"shiftKey"===n?t="⇧":"metaKey"===n&&(t="⌘"):"ctrlKey"===n?t="Ctrl":"altKey"===n?t="Alt":"shiftKey"===n?t="⇧":"metaKey"===n&&(t="Meta"),t}function theme_shortcuts_modifier_unique(e){var t=["ctrlKey","altKey","shiftKey","metaKey"],n=t.indexOf(settings_hotkey_toggle_modifier),i=!1;return t.splice(n,1),t.map(function(t){e[t]&&!i&&(i=!0)}),!i}function theme_modifiers_replace_for_mac(e,t,n){return e&&"mac"===platform.detect()&&(t&&n&&(e=e.replaceAll(t,n)),e=(e=(e=(e=e.replaceAll("Ctrl","⌃")).replaceAll("Alt","⌥")).replaceAll("Meta","⌘")).replaceAll(" + "," ")),e}function theme_modifier_control_key(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toUpperCase().includes("MAC")?"metaKey":"ctrlKey":navigator.userAgent.toUpperCase().includes("MAC")?"metaKey":"ctrlKey"}function theme_shortcuts(e){var t=e.keyCode?e.keyCode:e.which,n=String.fromCharCode(e.which).toLowerCase(),i=String.fromCharCode(e.which);if(settings_hotkeys_active&&(e.ctrlKey&&e.altKey&&n===settings_hotkey_duplicate_window_privileged&&set_server_theme_temp_data("goto",link_type_convert(v___location_href,1),0,function(){theme_open_new_tab(v___location_href)},1),!(Test.editing()||$(".modal-backdrop.in").length||$(".__page").hasClass("single-page")))){if(!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&e.which&&(37===e.which||39===e.which)){let t="ui_link_pagination",n="disabled",i=$("."+t+"_left:not(."+n+"):visible"),a=$("."+t+"_right:not(."+n+"):visible");37===e.which&&i.length?i.click():39===e.which&&a.length&&a.click()}if(e.which===settings_hotkey_theme_help_keycode)return theme.help.show(),void e.preventDefault();if(0===vars.page_interaction){if(8===t&&e.shiftKey)return void window.history.forward();if(8===t)return void window.history.back()}if(settings_hotkeys_active){const t=theme_shortcuts_modifier_unique(e),s='aside input[name="search"]',r=$(s+":visible").length&&isElemInView($(s)[0]);if(e.ctrlKey&&e.altKey&&e.metaKey&&e.shiftKey&&"R"==i&&!theme.veiled(-1)&&theme_cache_clear(!1,1),0===get_access_level()&&1==session.server.data("upgrade")&&e.ctrlKey&&e.altKey&&e.shiftKey&&e.metaKey&&"U"==i&&!theme.veiled(-1)&&theme.update(0),(n==settings_hotkey_open_module_config_privileged||"dot"===settings_hotkey_open_module_config_privileged&&190===e.which||"comma"===settings_hotkey_open_module_config_privileged&&188===e.which)&&(e.preventDefault(),vars.events.keypressed.shift?$('aside .user-links a[href*="config.cgi"]').trigger("click"):$('.container-fluid > .panel > .panel-heading a[href*="config.cgi"]').trigger("click")),!t)return!0;if(!session.alive)return void e.preventDefault();if(e[settings_hotkey_toggle_modifier]){if((37===e.which||39===e.which)&&v___location_file&&(v___location_file.toString().includes("config.cgi")||v___location_file.toString().includes("edit_tmpl.cgi"))){var a=function(e){return'button[name="'+e+'"]:not(.disabled)'};$('.container-fluid .ui_form[action*="config.cgi"], .container-fluid .ui_form[action*="edit_tmpl.cgi"]').find(37===e.which?a("nprev"):a("nnext")).trigger("click")}"1"==i&&settings_hotkey_custom_1_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_1_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_1_user)),"2"==i&&settings_hotkey_custom_2_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_2_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_2_user)),"3"==i&&settings_hotkey_custom_3_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_3_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_3_user)),"4"==i&&settings_hotkey_custom_4_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_4_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_4_user)),"5"==i&&settings_hotkey_custom_5_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_5_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_5_user)),"6"==i&&settings_hotkey_custom_6_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_6_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_6_user)),"7"==i&&settings_hotkey_custom_7_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_7_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_7_user)),"8"==i&&settings_hotkey_custom_8_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_8_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_8_user)),"9"==i&&settings_hotkey_custom_9_user&&(e.preventDefault(),theme_shortcut_check(settings_hotkey_custom_9_user)&&plugins.pjax.page.link.get(v___location_prefix+settings_hotkey_custom_9_user)),n==settings_hotkey_focus_search&&(e.preventDefault(),r&&$(s).focus()),n!=settings_hotkey_toggle_key_webmin||plugins.navigation.state.blocked()||(e.preventDefault(),$('.switch-toggle input[id="open_webmin"]').trigger("click")),n!=settings_hotkey_toggle_key_virtualmin||plugins.navigation.state.blocked()||(e.preventDefault(),$('.switch-toggle input[id="open_virtualmin"]').trigger("click")),n!=settings_hotkey_toggle_key_cloudmin||plugins.navigation.state.blocked()||(e.preventDefault(),$('.switch-toggle input[id="open_cloudmin"]').trigger("click")),n!=settings_hotkey_toggle_key_usermin||plugins.navigation.state.blocked()||(e.preventDefault(),$('.switch-toggle input[id="open_usermin"]').trigger("click")),n!=settings_hotkey_toggle_key_webmail||plugins.navigation.state.blocked()||(e.preventDefault(),$('.switch-toggle input[id="open_webmail"]').trigger("click")),n==settings_hotkey_toggle_key_night_mode&&(e.preventDefault(),theme_toggle_night_mode()),n==settings_hotkey_navigation&&window.matchMedia("(min-width: 864.99px)").matches?(e.preventDefault(),$('aside [data-collapse-trigger="1"]').addClass("m").trigger("click")):n==settings_hotkey_navigation&&$(".mobile-menu-toggler:visible").trigger("click"),n==settings_hotkey_slider&&(e.preventDefault(),window.matchMedia("(min-width: 1366px)").matches?($('[data-trigger="side_slider_pinned"]').trigger("click"),"object"==typeof stats&&stats.sys.toggle()):$(".right-side-tabs-toggler:not(.hidden) .btn-menu-toggler").trigger("click")),n==settings_hotkey_reload&&(e.preventDefault(),page_refresh());const t="["===settings_hotkey_logout_dbl?"BracketLeft":"]"===settings_hotkey_logout_dbl?"BracketRight":";"===settings_hotkey_logout_dbl?"Semicolon":"'"===settings_hotkey_logout_dbl?"Quote":"/"===settings_hotkey_logout_dbl?"Slash":settings_hotkey_logout_dbl;if(n!=t&&e.code!==t||(e.preventDefault(),vars.events.delayedFn=setTimeout(function(){vars.events.delayed=0},vars.event.double_click_delay),vars.events.delayed++&&($("aside .user-link.__logout-link").click(),vars.events.delayed=0,clearTimeout(vars.events.delayedFn))),(n==settings_hotkey_shell||n==settings_hotkey_shell2)&&theme_shortcuts_modifier_unique(e)&&plugins.shell.available())return e.preventDefault(),void(1==session.server.data("terminal")?plugins.shell.status()?plugins.terminal.close():plugins.terminal.open():plugins.shell.status()?plugins.shell.close():plugins.shell.open());n==settings_hotkey_sysinfo&&(e.preventDefault(),1==plugins.navigation.switch.dashboard.get()?plugins.navigation.switch.dashboard.set():plugins.pjax.page.link.get(v___location_prefix+"/"+vars.pages.dashboard)),n==settings_hotkey_favorites&&(e.preventDefault(),"0px"!=$(".favorites-menu-outer").css("left")?$(".user-link.favorites").trigger("click"):$(".favorites-menu-outer").removeClass("hover"))}else 191===e.keyCode&&(e.preventDefault(),r&&$(s).focus());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 n="btn-primary",i=e.split('"')[1],a="fa fa-fw fa-external-link";i.includes("patreon")&&(a="fa2 fa-fw fa2-kiss-wink-heart-bold",n="btn-success"),$(this).before('<a class="btn '+n+' btn-tiny margined-top-3" data-panel-ctl target="_blank" rel="noreferrer" href="'+i+'"><i class="'+a+'"></i> '+t+"</a>"),$(this).remove()})}function get_access_level(){return""!=vars.level&&-1!==vars.level?parseInt(vars.level):parseInt(session.server.data("level"))}function theme_updating(){return theme_message_exists("themeUpgrade")}function theme_message_exists(e){return plugins.messenger.toast.get(e)}function theme_message_dismiss(e){return plugins.messenger.toast.hide(e)}function theme_message_and_unlock(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:String(),a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"info",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,r=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> ",s,a,i,r),setTimeout(function(){page_remove_progress(n)},600)}function theme_alert(e,t,n,i,a,s,r,o){(void 0===n||0==n)&&(n=!1),(void 0===i||0==i)&&(i="md"),(void 0===a||0==a)&&(a="danger"),(void 0===s||0==s)&&(s="exclamation-triangle"),(void 0===r||0==r)&&(r="7"),(void 0===o||0==o)&&(o=!1);$.isArray(n);var l="modal-global-notification",_='<div class="modal fade '+l+" "+r+'" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static"><div class="modal-dialog modal-'+i+'"><div class="modal-content"><div class="modal-header background-'+a+' background--bordered"><button type="button" class="close" data-dismiss="modal" aria-label="'+theme_language("global_close")+'"><span aria-hidden="true">×</span></button><h4 class="modal-title"><i class="fa fa-fw fa-'+s+'"> </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(n)?"":' class="hidden"')+'><button class="btn btn-default btn-xs btn-block margined-bottom-1" type="button" data-toggle="collapse" data-target="#collapse-'+l+'" aria-expanded="false" aria-controls="collapse-'+l+'">'+theme_language(n[0])+'</button><div class="collapse" id="collapse-'+l+'"><div class="well">'+n[1]+"</div></div></div></div></div></div></div>";setTimeout(function(){$("body").hasClass("modal-open")||($("body").append(_),$("."+l).modal("show"),$("."+l).on("click",".modal-body a.label",function(e){$("."+l).modal("hide")}),$("."+l).on("hidden.bs.modal",function(e){$("."+l).remove()}))},o)}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 n(){"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 i=$(document.body),a=".container-fluid > .panel > .panel-body",s=$(a+' textarea[name="data"], '+a+' textarea[name="text"], '+a+' textarea[name="directives"], '+a+' textarea[name="manual"]').parents("form"),r=s.find('button[type="button"]').length?s.find('button[type="button"]'):s.find('input[type="submit"]'),o=$(a+' textarea[name="directives"]').length?"-12px":"0",l=$(a+" select").val()?$(a+" 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():"";$(a+" .ui_reset").remove(),$(a).addClass("magic-editor-container"),r.parents("table.ui_form_end_buttons").prev("br").remove(),r.parents("table.ui_form_end_buttons").prev("div.table-responsive").attr("style","margin-bottom: -4px !important"),r.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")+'"><span><i class="fa fa-fw fa-floppy-o margined-right-2"> </i>'+theme_language("global_save")+' </span></button> <button type="submit" class="btn btn-default btn-34 margined-top-5"><span><i class="fa fa-fw fa-arrow-circle-o-left margined-right-2"> </i>'+theme_language("global_save_and_close")+" </span></button> </span> ");var _=$(a+' button[type="button"]:not(.ui_form_end_submit)'),c=($(a+' button[type="submit"]:not(.ui_form_end_submit)'),window.__cm_editor_static),d='button[type="submit"]:not(.disabled)',f='button[data-form="submitter"]:not(.disabled)';c.on("change",function(e,t){__cm_editor_static.save(),_.addClass("btn-warning").removeClass("btn-success").attr("data-form-onbeforeunload",1),n()}),i.off("mousedown.cm1").on("mousedown.cm1",a+" .CodeMirror",function(e){n()}).off("keydown.cm1").on("keydown.cm1",function(e){var t=e.keyCode?e.keyCode:e.which,n=$(a+' button[type="button"]:not(.ui_form_end_submit)'),i=n.not(".disabled"),s=$(a+' button[type="submit"]:not(.ui_form_end_submit)'),r=s.not(".disabled");if(n.find(".cspinner_container").length||s.find(".cspinner_container").length)e.preventDefault();else if((13==t||83==t)&&c&&c.hasFocus())if(83==t){var o="mac"===platform.detect()?e.metaKey:e.ctrlKey;!e.shiftKey&&o?(e.preventDefault(),i.length&&i.trigger("click")):e.altKey&&o&&e.shiftKey&&r.length&&(e.preventDefault(),r.trigger("click"))}else o&&e.shiftKey&&r.length?r.trigger("click"):o&&i.length&&i.trigger("click")}).undelegate(d,"click.cm").on("click.cm",d,function(e){set_onbeforeunload_status(0,0),$(this).addClass("disabled").find(".fa.fa-arrow-circle-o-left").addClass("invisible"),spinnerfy_buttons($(this)),_.attr("data-form-onbeforeunload",0)}).undelegate(f,"click.cm").on("click.cm",f,function(e){e.preventDefault();var t=$(this).parents("form"),n=(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"),spinnerfy_buttons($(this)),theme_message_dismiss("magic_save_error"),theme_message_dismiss("magic_save_success"),setTimeout(function(){$.ajax({type:"POST",url:s.attr("action"),data:n,dataType:"text",cache:!1,contentType:!1,processData:!1,success:function(e){if(session.status(e)){if(_.removeClass("btn-warning").addClass("btn-success").attr("data-form-onbeforeunload",0),$("button").removeClass("disabled").find(".fa").removeClass("invisible").parent().find(".cspinner_container").remove(),$(a).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)return 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 $(a).attr("data-cm-state","true");plugins.messenger.post('<i class="fa fa-fw fa-check-circle"></i>'+theme_language("filemanager_file_saved").replace("%value",l),3,"success","magic_save_success")}},error:function(e){}})},300)}),editor_config_search(t)}}function filter_out_objects_inner_chars(e,t,n){if(n=n||"",e.is("input")){e.val()&&e.val(e.val().replace(t,n))}else{var i=e.html(),a=e.text();if($.trim(i).length&&$.trim(i).length!==$.trim(a).length){var s=String(),r=i.match(/(.*?<.*?>.*?)(.*?)(<\/.*?>.*?)/gm);r&&r.length&&($.each($(r),function(e,i){if("string"==typeof i&&i&&i.length){var a=i.match(/(.*?<.*?>.*?)(.*?)(<\/.*?>.*?)/);a&&a[0]&&a[1]&&a[3]&&(s+=a[1]+(a[2]?a[2].replace(t,n).replace(/\s/g," "):"")+a[3])}}),e.html(s))}else a&&a.length&&e.html(a.replace(t,n).replace(/\s/g," "))}}function editor_config_label(e){var t=$(".panel-body form select"),n=t.prev("b"),i=n.text(),a=t.prev('input[type="submit"]'),s=theme_language("editing_config_file"),r=function(e){return e&&(e=e.replace(":","")),e};e&&(s=i=a.length?r(a.val()):r(i));var o="<span data-text-span>"+s+": </span>";n.length?n.replaceWith(o):a.length&&0===a.index()&&a.replaceWith(o)}function editor_config_search(e){var t="dropdown-editor_config_search",n="data-search-in-files-button",i="["+n+"]",a="data-clear-search",s="["+a+"]",r="search-in-files",o='[data-name="'+r+'"]',l="data-search-in-results-container",_="."+t,c="."+t+" + [data-external-detach]",d=".panel-body form .select2",f="data-search-in-files-icon-find",u=theme_spinner_small(),g="data-no-results-initial",p="data-search-stats",m=0;editor_config_label(),setTimeout(function(){var e=$(d),h=e.prev("select"),v=h.attr("name"),b=e.parents("form").attr("action");if(e.addClass("z-index-10001"),!(h.find("option").length<=1)){e.parents("form").addClass("text-nowrap"),$(_).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 '+a+' 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="'+r+'" placeholder="'+theme_language("find_in_config_files")+'" class="heighter-34"> </li> <li><span data-search-in-files-container><span '+n+' class="btn btn-default pull-right disabled"><i '+f+' class="fa fa-search"></i>'+u+theme_language("global_find")+"</span></span></li> <li "+g+' role="separator" class="divider"></li> <li '+g+' data-search-in-results class="'+(theme_editor_palette_is_dark()?"dark":"light")+'"> <span '+l+"></span> <span "+p+'></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&&($(o).val(e).trigger("keydown"),setTimeout(function(){$(i).removeClass("disabled").trigger("click")}))})),$(c).on("click",function(e){e.preventDefault();var t="disabled";if(!$(this).hasClass(t)){$(this).addClass(t);var n=$(this).parents("form").find("select").val();n&&edit_file_from_full_path(n)}});var x=$("["+l+"]");x.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+x[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):plugins.pjax.page.link.get(t)}),$(_).find("li").on("click",function(e){e.stopPropagation()}),$(_).on("show.bs.dropdown",function(){var e=$(d).prev("select").prev('input[type="submit"]'),t=-1,n=$(d).width();n<360&&(t+=$(d)[0].offsetLeft-(e.length?14:11));var i=t+n+$(_).width();$(this).find(".dropdown-menu").css("min-width",i).css("max-width",i).css("width",i);var a=$(this).parents("form").outerWidth(),s=$(this)[0].offsetLeft;if(s<a/3){var r="dropdown-menu-right",o=(a-s)/1.5;$(this).find("."+r).removeClass(r),$(this).find(".dropdown-menu").css("min-width",o).css("max-width",o).css("width",o)}}),$(_).on("shown.bs.dropdown",function(){$(o).focus().select();var e=uri_parse_param("editor_scroll");e&&0===m&&(e=parseInt(e),$("["+l+"]")[0].scrollTop=e,m++)}),$(_).on("hidden.bs.dropdown",function(){var e=window.__cm_editor_static;e&&e.focus()}),$(s).on("click",function(e){e.preventDefault(),e.stopPropagation(),$(o).val("").trigger("keydown"),$(o).focus()}),$(o).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&&($(o).val().length?$(o).val(""):$(_).trigger("click")),$(i).hasClass("disabled"))return;13==e.keyCode&&$(i).trigger("click")}var t=$("["+l+"]");if(33===e.keyCode||34===e.keyCode||38===e.keyCode||40===e.keyCode){var n=t[0].scrollTop,a=38===e.keyCode?n-45:40===e.keyCode?n+45:34===e.keyCode?n+315:33===e.keyCode?n-315:n;t[0].scrollTop=a}var r=$(this);setTimeout(function(){r.val().length?($(i).removeClass("disabled"),$(s).removeClass("hidden")):($(i).addClass("disabled"),$(s).addClass("hidden"),$("["+g+"]").removeClass("showing-results"),$(_).find("span.fa").removeClass("text-warning"))})}}),$(i).on("click",function(){if(!$(this).hasClass("disabled")){var e=$(o).val(),t=[];$(d).prev("select").find("option").map(function(e,n){t.push(n.value)}),$("["+f+"]").addClass("hidden"),$.ajax({type:"POST",url:v___location_prefix+"/xhr.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){var n=$("["+l+"]");if(n.empty(),$("["+g+"]").addClass("showing-results"),$(_).find("span.fa").addClass("text-warning"),t.length){var i=String(),a=new RegExp(RegExp.quote($.trim(e)),"gi"),s=[],r=0;w(0),$.each($(t),function(t,n){s.push(n[0]);var o=n[1][0].match(a);r+=o?o.length:0,i+='<span><span class="pull-right"><a data-href="'+b+"?"+v+"="+n[0]+"&editor_line="+n[1][1]+"&editor_search="+e+'&editor_scroll=">Line: '+n[1][1]+'</a></span><span class="pull-left">'+n[0]+"</span><span>"+n[1][0].replace(a,"<kbd>"+$.trim(e)+"</kbd>")+"</span></span>"}).promise().done(function(){n.append(i),n[0].scrollTop=0,n.find("a").on("click",function(e){e.preventDefault();var t=$(this).attr("data-href")+n[0].scrollTop;get_onbeforeunload_status()?get_onbeforeunload_message(!1,{href:t}):plugins.pjax.page.link.get(t)});var t,a=jQuery.unique(s).length;t=(t=1===s.length&&1===r?theme_language("find_in_config_files_result_found_single"):1===s.length&&r>1?theme_language("find_in_config_files_result_found_multi"):theme_language("find_in_config_files_results_found")).replace("$1",r).replace("$2",a).replace("$3","<kbd>"+e+"</kbd>"),$("["+p+"]").html(t)})}else n.append("<span data-no-results>"+theme_language("filemanager_search_no_matches").replace(".","")+"</span>"),w(1),$(_).find("span.fa").removeClass("text-warning")},complete:function(){$("["+f+"]").removeClass("hidden")},error:function(e){session.status(e.responseText)}})}})}function w(e){e?$("["+p+"]").addClass("hidden"):$("["+p+"]").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)"),"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()}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_select_adjust_width(e){var t=parseInt(1e6*Math.random()),n=e.find("option:selected").text(),i=$("<div data-encoding_manual-"+t+' class="invisible inline-block">').html(n);$("body").append(i);var a=$("body").find("div[data-encoding_manual-"+t+"]"),s=a.width();e.css("width",s+9),a.remove()}function theme_washout(e){var t=$("aside, .jsPanel, .mobile-menu-toggler, .right-side-tabs, .right-side-tabs-toggler, .container-fluid"),n="pointer-events-none bg-filter-blur2-grayscale100-opacity75";e?t.removeClass(n):t.addClass(n)}function theme_countdown_animated(e,t){if(!e)return'<div class="countdown-animated-circle'+(t?" time-"+t:"")+'"><div class="number"></div><svg><circle r="18" cx="20" cy="20"></circle></svg></div>';var n=e.find(".countdown-animated-circle > .number")[0],i=t||5;if(n){n.textContent=i;var a=setInterval(function(){i=--i<=0?clearInterval(a):i,n.textContent=i},1e3)}}function theme_reload_message(e,t){vars.pjax.cancel=1;var n="theme_reload_notice",i=(t=t||"warning",bootbox.alert({message:theme_language(e),className:n+" bootbox-centered font-medium "+t})),a=setTimeout(function(){theme_reload()},4500);i.init(function(){var e=$("."+n).find(".bootbox-body");e.append(theme_countdown_animated()),theme_countdown_animated(e),theme_washout()}),i.on("escape.close.bb",function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),clearTimeout(a),vars.pjax.cancel=0,theme_washout(1)})}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",n=arguments.length>1&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>1&&void 0!==arguments[3]?arguments[3]:0,a=e.serialize(),s=e.attr("action"),r=e.attr("method");setTimeout(function(){theme.download(s,a,r,i)},3300),theme_message_and_unlock("fa-download-cloud",t,n)}function theme_download_link_blob(e){return v___module.includes("webminlog")&&Test.arrIntersect(["webminlog.csv"],e.url)||v___module.includes("virtual-server")&&Test.arrIntersect(["download_backup.cgi"],e.url)?(location.href=e.url,1):0}function theme_download_link(e){return 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 theme_ui_opt_select(e){var t=$(".container-fluid td");t.length>256||t.each(function(){var t=$(this),n=t.find("br").length,i=t.find(".awradio"),a="ui_select",s=i.last().next("."+a),r="input",o=":checked",l=r+'[type="radio"]',_="name";s.length||(s=i.last().next("br").next("."+a)),this.childElementCount===e+n&&s.length&&2===i.length&&i.first().length&&i.first().find(l).length&&i.first().find(l).attr(_)&&i.first().find(l).attr(_).endsWith("_def")&&(i.on(r,function(){var e=$(this).find(l).is(o),t=$(this).is(i.first());s.prop("disabled",t&&e)}),i.find(""+r+o).trigger(r))})}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()||$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=nav&action=goto",dataType:"JSON",success:function(e){var t="/"+vars.pages.dashboard,n=t;e.gotomodule?n="/"+e.gotomodule:"undefined"!=typeof settings_webmin_default_module&&settings_webmin_default_module&&(n="/"+settings_webmin_default_module),3==v___user_level&&core.moduleAvailable("mailbox")&&$t_uri_webmail?n="/mailbox/index.cgi?id=INBOX":3!=v___user_level||e.gotomodule&&"mailbox"!==e.gotomodule||!$t_uri_usermin||(n=t),check_bundle(n),plugins.pjax.page.link.get(v___location_prefix+n)},error:function(e){session.status(e.responseText)}})}function get_pre_default_content(e){var t="virtualmin"===plugins.navigation.switch.get()||2===get_access_level()?"virtual-server":"cloudmin"===plugins.navigation.switch.get()||4===get_access_level()?"server-manager":null;if(t){var n="server-manager"===t,i=n?"id":"dom",a=n?get_default_cloudmin_content:get_default_virtualmin_content;settings_right_page_keep?$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?type=nav&action=validate&subtype=links&"+i+"="+e+"&module="+t+"¶m="+i,dataType:"JSON",success:function(n){var s=n.menu;if(s){var r=uri_parse_param2("file",v___location_resource)||uri_parse_param2("virt",v___location_resource);r&&(r=(r=r.match(/(error|access)%5Flog/)||r.match(/:(80|443)/))&&r[0]&&r[1]?r[1]:String());var o=!!s.includes(v___location_file)&&v___location_file,l=s.filter(function(e){if(v___module&&e&&"string"==typeof e&&!e.includes(".."))return e.startsWith("/"+v___module)?r?!!e.toLowerCase().includes(r)&&e:e:!!e.startsWith(v___module)&&e})[0],_=!1;if(!o&&v___location_file){var c="edit_",d="list_",f="save_",u=".cgi",g="s.cgi",p="es.cgi";if((_=v___location_file).startsWith(c)){var m=_.replace(c,d);if(s.includes(m))o=m;else{var h=m.replace(u,g);s.includes(h)&&(o=h),o||(h=m.replace(u,p),s.includes(h)&&(o=h))}}else if(_.startsWith(f)){var v=_.replace(f,c);if(s.includes(v))o=v;else{var b=v.replace(u,g);s.includes(b)&&(o=b),o||(b=v.replace(u,p),s.includes(b)&&(o=b))}if(!o){var x=_.replace(f,d);if(s.includes(x))o=x;else{var w=x.replace(u,g);s.includes(w)&&(o=w),o||(w=x.replace(u,p),s.includes(w)&&(o=w))}}}}if(l)l.startsWith(v___module_file_manager)?"function"==typeof __f____r&&__f____r("get",uri_parse_param2("path",l),!1,0,!1):plugins.pjax.page.link.get(l);else if(o){var y=location.pathname&&location.pathname.includes("/"+t+"/pro/"+o)?"pro/":String(),$="/"+t+"/"+y+o+"?"+i+"="+e;plugins.pjax.page.link.get(v___location_prefix+$)}else a(e)}else a(e)},error:function(){a(e)}}):a(e)}}function get_default_virtualmin_content(e,t){if(!get_onbeforeunload_status()){var n,i=function(e){plugins.pjax.page.link.get(v___location_prefix+e)},a="virtual-server",s="/"+a,r=session.server.data("initial-wizard"),o=2===get_access_level()?"view_domain":"summary_domain";if("1"!=r&&$t_uri_virtualmin)n=s+"/wizard.cgi";else if(e&&t)n=s+"/"+o+".cgi?dom="+e;else{if(0!=e)return void $.ajax({type:"POST",async:!0,url:v___location_prefix+"/xhr.cgi?type=can&action=view_dom&dom="+e,dataType:"JSON",success:function(t){n=t.view_dom?s+"/"+o+".cgi?dom="+e:s+"/index.cgi",i(n)}});if(settings_right_virtualmin_default==vars.pages.dashboard||""==settings_right_virtualmin_default)n="/"+vars.pages.dashboard+"?mod="+a;else{if("index.cgi"!=settings_right_virtualmin_default)return void $.ajax({type:"POST",async:!0,url:v___location_prefix+"/xhr.cgi?type=can&action=view_dom&dom="+settings_right_virtualmin_default,dataType:"JSON",success:function(e){n=e.view_dom?s+"/"+o+".cgi?dom="+settings_right_virtualmin_default:s+"/index.cgi",i(n)}});n=s+"/index.cgi"}}i(n)}}function get_default_cloudmin_content(e,t){if(!get_onbeforeunload_status()||t){var n,i="server-manager";if(n=!1===e||settings_right_cloudmin_default||"0"==settings_right_cloudmin_default?settings_right_cloudmin_default==vars.pages.dashboard||""==settings_right_cloudmin_default&&"0"!=settings_right_cloudmin_default?vars.pages.dashboard+"?mod="+i:"index.cgi"==settings_right_cloudmin_default?i+"/index.cgi":i+"/edit_serv.cgi?id="+settings_right_cloudmin_default:i+"/edit_serv.cgi?id="+e,t)return v___location_prefix+"/"+n;plugins.pjax.page.link.get(v___location_prefix+"/"+n)}}function get_navigation_and_content(e,t){if(get_onbeforeunload_status())return;const n=1==settings_right_reload&&e!=t||2==settings_right_reload;if("virtualmin"===e){if(plugins.navigation.get.virtualmin(vars.navigation.select.last||settings_right_virtualmin_default),n){get_default_virtualmin_content(vars.navigation.select.last&&/^[0-9]/.test(settings_right_virtualmin_default)?vars.navigation.select.last:settings_right_virtualmin_default)}}else"cloudmin"===e?(plugins.navigation.get.cloudmin(settings_right_cloudmin_default),n&&get_default_cloudmin_content(!1)):(0==plugins.navigation.switch.dashboard.get()&&plugins.navigation.get.webmin(e),n&&get_default_content())}function editor_html_toolbar(e){var t;if(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:"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,n){var i="-9999px",a=$(".jsPanel").filter(function(){return $(this).css("left")!==i}),s=a.length,r=$(window).width(),o=$(window).height(),l=r/s,_=o/s,c=$(".jsPanel-controlbar .jsPanel-btn-align"),d=vars.jspanels_reversed?$(a).toArray().reverse():a;e?1==s?c.addClass("disabled"):c.removeClass("disabled"):($.each(d,function(e,a){if($(this).css("left")!==i){var c=parseInt($(this).attr("data-uid").replace("jsp_",""));parseInt($(t).attr("id").replace("jsPanel-",""));if(1===n){var d=r-20,f=_-(e+1==s?20:5);window["jsp_"+c].resize(d,f).reposition("left-top 10 "+(10+_*e))}else{d=l-(e+1==s?20:5),f=o-20;window["jsp_"+c].resize(d,f).reposition("left-top "+(10+l*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(),n=e.find("[data-file-path]").text();return[t,n,n+"/"+t]}function edit_file_parse_name_and_path(e){var t=e?e.toString().match(/^(.+)\/([^/]+)$/):null;return t&&t[0]&&t[1]&&t[2]?[t[2],t[1]]:[null,null]}function edit_file_from_full_path(e){var t=edit_file_parse_name_and_path(e);t[0]&&t[1]?edit_file(t[0],t[1]):console.warn("Cannot parse file name and path. Returned value is",t)}function edit_file(external_file_name,external_file_name_path,external_callback,readOnly,binary_file,reverse_file,head_file,tail_file){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,maximizedWindow=!1,maximizedMargin={top:10,right:10,bottom:10,left:10},panelSize={a:$(window).width()<864,w:parseInt(.8*content_page_calc_width()+content_page_center_h_offset()),h:parseInt(.7*content_page_calc_height())};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,readOnly,binary_file,reverse_file,head_file,tail_file]},2)}___file_name=external_file_name,___file_name_path=external_file_name_path}else config_portable_module_filemanager_editor_maximized&&(maximizedWindow="maximize"),panelSize.w=parseInt(.85*content_page_calc_width()+content_page_center_h_offset()),panelSize.h=parseInt(.95*content_page_calc_height()),"undefined"!=typeof $v__fm__container_fluid_form&&(___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___cm_resize=function(e,t){var n=parseInt($(e).attr("id").replace("jsPanel-",""))+1;if(!t){var i="__hm_editor_html_editor_"+n;void 0!==window[i]&&CKEDITOR.instances[i].resize("100%",parseInt($(e).find(".jsPanel-content").css("height")),!1)}var a=window["__cm_editor_"+n];void 0!==a&&(document.activeElement.blur(),t||a.setSize(e.content.css("width"),e.content.css("height")),setTimeout(function(){a.focus()},0))},manipulate_file_name=function(e,t){var n=e.find('form input[name="file"]'),i=e.find(".jsPanel-title strong"),a=i.text();if(t){a=a.replace(n.val(),t),i.attr("title",a),i.find("[data-file-name]").text(t);var s=edit_file_parse_target(e.find("strong"));n.val(s[0]),plugins.favorites.detect(e,s[2])}return n.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"> </i> <strong class="font-size-90p">'+theme_language("editor_save_file_as")+"</strong>",value:t,buttons:{confirm:{label:' <i class="fa fa-fw fa-check-circle"> </i> '+theme_language("global_save_as")+" ",className:"btn-primary vertical-align-top disabled _btn-submit-rename"},cancel:{label:" "+theme_language("global_cancel")+" ",className:"btn-default vertical-align-top pull-left"}},callback:function(n){n&&n!=t&&(n=(n=n.replace(/..\//g,"")).replace(/\//g,""),manipulate_file_name(e,n)),setTimeout(function(){var i=window["__cm_editor_"+(parseInt(e.attr("id").replace("jsPanel-",""))+1)];i&&i.focus(),n&&n!=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),n=t.find("input"),i=n.val(),a=t.find("._btn-submit-rename");n[0].focus(),n.on("keydown input",function(e){i!==$(this).val()?a.removeClass("disabled"):a.addClass("disabled"),13===(e.keyCode?e.keyCode:e.which)&&i===$(this).val()&&(e.preventDefault(),e.stopImmediatePropagation())})},100)})},jsPaneler=function(){var viewEditError_str="vieweditError",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};theme_message_dismiss(viewEditError_str),window[____jsPanelId]=$.jsPanel({contentAjax:{type:"POST",url:__file_to_open,dataType:"text",data:{path:___file_name_path,file:___file_name,limit:readOnly?config_portable_module_filemanager_view_limit:0,reverse:~~reverse_file,head:~~head_file,tail:~~tail_file},autoload:!1,fail:function(e){"canceled"!==e.statusText&&"abort"!==e.statusText&&connection_error(e,1),this.close()},done:function(w,textStatus,jqXHR,jsPanel){"function"==typeof fm_target_spinner_remove&&fm_target_spinner_remove();var ___file_name_path_local=___file_name_path,$is_non_utf8="UTF-8"!=session.server.data("charset"),x=$(w).find(".ui_form");if(!x.length){var error_message_rs=$(w).find("[data-fatal-error-text]").html(),error_msg=theme_language("global_error")+": "+error_message_rs;return plugins.messenger.post('<i class="fa fa-lg fa-fw fa-exclamation-triangle"></i>'+error_msg,30,"error",viewEditError_str),progress.end(),void this.close()}var 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;if(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){var __icon=readOnly?"fa-lg fa2 fa2-file-text-o":"fa2 fa2-edit",is_viewer=readOnly?" viewer":"",is_reverse=reverse_file?" viewer-reverse":"",is_head=head_file?" viewer-head":"",is_tail=tail_file?" viewer-tail":"",is_viewer_mode="",is_viewer_mode_num=0;is_viewer&&(is_viewer_mode=is_viewer+"-",is_reverse||is_head||is_tail?is_reverse&&is_tail?(is_viewer_mode+="4",is_viewer_mode_num=4):!is_reverse&&is_tail?(is_viewer_mode+="3",is_viewer_mode_num=3):is_reverse&&is_head?(is_viewer_mode+="2",is_viewer_mode_num=2):!is_reverse&&is_head&&(is_viewer_mode+="1",is_viewer_mode_num=1):(is_viewer_mode+="5",is_viewer_mode_num=5)),jsPanelContainer.find(".jsPanel-hdr h3").prepend('<i class="fa fa-fw '+__icon+' __helper___ zi-last pointer-events-none"> </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'+(is_viewer+is_viewer_mode+is_reverse+is_head+is_tail)+'" data-delay=\'{"show":"600", "hide":"30"}\'></button> ')}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();var IsMac="mac"===platform.detect(),hotKeyToggleWrap=IsMac?"⌥ + W":"Alt + W",hotKeySaveAs=IsMac?"⌘ + ⇧ + S":"Ctrl + Shift + S",hotKeyRevert=IsMac?"⌘ + ⌥ + R":"Ctrl + Alt + R";jsPanelContainer.find(".jsPanel-hdr .jsPanel-controlbar").prepend(" "+(readOnly?'<div class="jsPanel-btn jsPanel-btn-save"></div>':'<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")+ui_inject_alt_key_label()+'</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")+ui_inject_alt_key_label()+'</a></li> <li class="jsPanel-btn-togglewrap'+(is_html_editor?" hidden":"")+'"><a class="ddm-link" title="'+hotKeyToggleWrap+'" 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||readOnly?" hidden":"")+'"></li> <li class="jsPanel-btn-save-as'+(readOnly?" hidden-force":"")+'"><a class="ddm-link" title="'+hotKeySaveAs+'" 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'+(readOnly?"":" hidden")+'"><a class="ddm-link ddm-link-refresh" title="Alt + R / F2" href="javascript:;"><i class="fa fa-refresh pull-left margined-top-3"></i>'+theme_language("filemanager_editor_refresh_content")+"</a></li>")+" "+($is_non_utf8||readOnly?"":'<li class="jsPanel-btn-content-revert"><a class="ddm-link ddm-link-revert" title="'+hotKeyRevert+'" 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||readOnly?" 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 .fa2-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"),$__f__is_binary=$this.find("form").attr("data-binary"),__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"),binary_file=binary_file||$__f__is_binary;var select_options="",encodings={"US-ASCII":"ascii (US-ASCII)","UTF-8":"utf-8 (Unicode)","UTF-16BE":"utf-16be (Unicode [Big-endian])","UTF-16LE":"utf-16le (Unicode [Little-endian])","ISO-8859-1":"iso-8859-1 (Western European [Latin-1])","ISO-8859-2":"iso-8859-2 (Central European [Latin-2])","ISO-8859-3":"iso-8859-3 (South European [Latin-3])","ISO-8859-4":"iso-8859-4 (North European [Latin-4])","ISO-8859-5":"iso-8859-5 (Cyrillic)","ISO-8859-6":"iso-8859-6 (Arabic)","ISO-8859-7":"iso-8859-7 (Greek)","ISO-8859-8":"iso-8859-8 (Hebrew)","ISO-8859-9":"iso-8859-9 (Turkish [Latin-5])","ISO-8859-10":"iso-8859-10 (Nordic [Latin-6])","ISO-8859-11":"iso-8859-11 (Thai)","ISO-8859-13":"iso-8859-13 (Estonian [Latin-7])","ISO-8859-14":"iso-8859-14 (Celtic)","ISO-8859-15":"iso-8859-15 (Western European [Latin-9])","ISO-8859-16":"iso-8859-16 (South-Eastern European [Latin-10])","windows-1250":"windows-1250 (Central European)","windows-1251":"windows-1251 (Cyrillic)","windows-1252":"windows-1252 (Western European)","windows-1253":"windows-1253 (Greek)","windows-1254":"windows-1254 (Turkish)","windows-1255":"windows-1255 (Hebrew)","windows-1256":"windows-1256 (Arabic)","windows-1257":"windows-1257 (Baltic)","windows-1258":"windows-1258 (Vietnamese)",IBM437:"cp437 (MS-DOS United States [OEM-US])",IBM850:"cp850 (MS-DOS Western European [Latin-1])",IBM852:"cp852 (MS-DOS Central European [Latin-2])",IBM865:"cp865 (MS-DOS Nordic)",IBM866:"cp866 (MS-DOS Cyrillic)",KOI8:"koi8 (Cyrillic)","KOI8-R":"koi8-r (Russian)","KOI8-U":"koi8-u (Ukrainian)","KOI8-T":"koi8-t (Tajik)","ISO-2022-JP":"iso-2022-jp (Japanese)","EUC-JP":"euc-jp (Japanese)",Shift_JIS:"shift_jis (Japanese)","ISO-2022-KR":"iso-2022-kr (Korean)","EUC-KR":"euc-kr (Korean)","x-IBM949":"x-ibm949 (Korean [extended])","ISO-2022-CN":"iso-2022-cn (Chinese)","EUC-CN":"euc-cn (Chinese (GB [312])",GBK:"gbk (Chinese)",BIG5:"big5 (Chinese)"};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 data-placeholder-original="'+t+'" data-placeholder="'+t.split(" ")[0].toUpperCase()+'" 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||binary_file?" pointer-events-none hidden":"")+'"> <select required data-encoding>'+select_options+"</select> </label></div>");const __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),__updateDisplayValue=function(){const e=__data_select_encoding[0],t=e.options[e.selectedIndex],n=t.getAttribute("data-placeholder");t.textContent=n,e.setAttribute("data-current-placeholder",n),theme_select_adjust_width(__data_select_encoding),__data_select_encoding.removeClass("color-transparent")},__revertDisplayValueOriginal=function(){const e=__data_select_encoding[0],t=e.options[e.selectedIndex];t.textContent=t.getAttribute("data-placeholder-original"),__data_select_encoding.addClass("color-transparent")},__footer_loader=function(e){var t=jsPanelContainer.find(".jsPanel-ftr").find("[data-file-stat] [cspinner-file-message]"),n="invisible";e?t.removeClass(n):t.addClass(n)},__footer_message=function(e,t,n){var i=jsPanelContainer.find(".jsPanel-ftr").find("[data-file-stat] [data-file-message]");if("number"==typeof this.timeouted&&clearTimeout(this.timeouted),-1===e)return i.text().length;e||(e=""),__footer_loader(!1),t?(!n&&__footer_loader(!0),i.html(Convert.htmlUnEscapeSafe(Convert.htmlEscape(e))),n&&(this.timeouted=setTimeout(function(){__footer_loader(!1),i.text("")},1e3*n))):n?this.timeouted=setTimeout(function(){__footer_loader(!1),i.text("")},1e3*n):(__footer_loader(!1),i.text(""))},update_file_stat_data=function(){var e=___file_name_path+"/"+___file_name;2!==get_access_level()&&3!==get_access_level()&&4!==get_access_level()||(e=get_user_home()+___file_name_path+"/"+___file_name),e=e.replace(/\/\//g,"/");var t="jsPanelFileStat_"+jsPanelId,n=v___location_prefix+"/xhr.cgi",i={type:"file",action:"stat",file:e,module:v___module_file_manager};window[t]=$.ajax({type:"POST",url:n,data:i,dataType:"JSON",success:function(e){var a=jsPanelContainer.find(".jsPanel-ftr").find("[data-file-controls]"),s=a.find("[data-file-size]"),r=a.find("[data-file-info]"),o=function(){return r.data("bs.popover").tip().find(".popover-content")},l=e.size[0],_=e.size[1],c=e.content;c=(c=(c=(c=Convert.htmlEscape(c)).replace(/(?:\r\n|\r|\n)/g,"<br>").replace(/\/\//g,"/")).replace(/((\b)(?!\d+)IO Block|(?!\d+)\w+\b): /g,"<strong>$1: </strong>")).replace(/\s/g," ");var d=t+"_fileinfo";window[d]=[];var f="data-a-checksum",u=new RegExp(f+"=""+"(.*?)"","g"),g=c.match(u),p=_>=1024e3&&_<config_portable_module_filemanager_checksum_limit,m=function(e,t,n){var i=o();if(i&&i.length){var a=e.call(this,t),s=new RegExp(a);r[0].dataset.content=r[0].dataset.content.replace(s,n),i.html(i.html().replace(s,n))}},h=function(e,t){t||m(v,e,b(e));let a=i;a.checksum=e,window[d][e]=$.ajax({type:"POST",url:n,data:a,dataType:"JSON",success:function(t){m(b,e,t.checksum)},error:function(e){session.status(e.responseText)}})},v=function(e){return"<button "+f+'="'+e+'" class="btn btn-default btn-xs btn-xxs vertical-align-baseline"><i class="fa fa-refresh"></i></button>'},b=function(e){return"<span "+f+'="'+e+'" class="cspinner margined-left-8"><span class="cspinner-icon dark smallest"></span></span>'};(g&&(c=c.replace(u,p?b("$1"):v("$1"))),s.text(l),r.popover({container:jsPanelContainer,placement:"auto left",sanitize:!1,trigger:"click",html:!0}),is_viewer_mode)&&(c=" <strong>View:</strong> "+theme_language("filemanager_view_"+(5===is_viewer_mode_num?"head_and_tail":4===is_viewer_mode_num?"tail_and_reverse":3===is_viewer_mode_num?"tail":2===is_viewer_mode_num?"head_and_reverse":"head"))+"<br>"+c);r.attr("data-content",c);var x="mousedown.jsPanelFileInfo"+jsPanelId,w=".bs.popover",y="shown"+w,k="hide"+w;r.data("bs.popover");r.off(y),r.on(y,function(){var e=jsPanelContainer.find(".popover:visible"),t=$(this);if(e.addClass("jsPanel-file-info"),$(document.body).off(x),$(document.body).on(x,function(e){$(e.target).is(t)||$(e.target).hasClass("popover-content")||$(e.target).is("strong")&&(!$(e.target).is("strong")||$(e.target).parent().is(".popover-content"))||$(e.target).is("button["+f+"]")||$(e.target).parent().is("button["+f+"]")||t.trigger("click")}),p)$.each(o().find("span["+f+"]"),function(){h($(this).attr(f),1)});else{var n="click.checksumevt";o().off(n),o().on(n,"button["+f+"]",function(e){e.preventDefault(),h($(this).attr(f),0)})}}),r.off(k),r.on(k,function(){$(document.body).off(x)})},error:function(e){session.status(e.responseText)}})};if(setTimeout(function(){__updateDisplayValue()},100),__data_select_encoding.on("keydown mousedown touchmove input change blur",function(e){"input"===e.type||"change"===e.type||"blur"===e.type?(__updateDisplayValue(),"input"!==e.type&&"change"!==e.type||$(this).blur()):("keydown"!==e.type||"keydown"===e.type&&32===e.keyCode)&&__revertDisplayValueOriginal()}),!is_html_editor&&!binary_file&&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>"),theme_select_adjust_width(__data_select_encoding),__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){var t=window["jsPanelChangeEncoding_"+jsPanelId];if(void 0===t||"function"!=typeof t.abort||!t.readyState||4==t.readyState)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 n=$(this).val(),i=___file_name_path_local+"/"+manipulate_file_name(jsPanelContainer);theme_select_adjust_width($(this)),$is_encoding||readOnly||localStorage.setItem(__cm_editor_encoding_item,n),2!==get_access_level()&&3!==get_access_level()&&4!==get_access_level()||(i=get_user_home()+i),window["jsPanelChangeEncoding_"+jsPanelId]=$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi?xhr-encoding_convert=1&xhr-encoding_convert_name="+n+"&xhr-encoding_convert_file="+Convert.encodeURIComponentConsistent(i)+"&xhr-encoding_convert_cmodule="+v___module_file_manager+"&xhr-encoding_convert_limit="+(readOnly?config_portable_module_filemanager_view_limit:0)+"&xhr-encoding_convert_reverse="+~~reverse_file+"&xhr-encoding_convert_head="+~~head_file+"&xhr-encoding_convert_tail="+~~tail_file,data:!1,dataType:"text",success:function(e){session.status(e)&&(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),__footer_message(-1)&&__footer_message(theme_language("global_done"),1,2),update_file_stat_data())},error:function(e){console.log(e);var t=theme_language("global_error")+": "+(e.status&&e.statusText&&"error"!==e.statusText?e.status+" - "+e.statusText:theme_language("connection_lost"));__footer_message(t,1,2)}})}}}),update_file_stat_data(),!readOnly){var __cm_editor_encoding=localStorage.getItem(__cm_editor_encoding_item);$is_non_utf8||binary_file||$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,!1,!1,!1,readOnly),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],n=!t.getOption("lineWrapping");t.setOption("lineWrapping",n),localStorage.setItem(v___server_hostname+"-"+session.server.data("user")+"-editor-line-wrapping",~~n)}));!function(e){var t,n=e.querySelectorAll(".jsPanel-resizeit-handle");for(t=0;t<n.length;t++){const e=n[t];e.addEventListener("mousedown",function(){e.addEventListener("mousemove",function(){__f___cm_resize(jsPanelContainer_this_initial)})})}}(document.getElementById("jsPanel-"+(jsPanelId-1)))}),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 n="title",i=".jsPanel-btn-",a="global_";$(this).is(i+"maximize")&&$(this).attr(n,theme_language(a+"maximize")),$(this).is(i+"minimize")&&$(this).attr(n,theme_language(a+"minimize")),$(this).is(i+"normalize")&&$(this).attr(n,theme_language(a+"normalize")),$(this).is(i+"close")&&$(this).attr(n,theme_language(a+"close")),$(this).is(i+"save")&&$(this).attr(n,theme_language(a+"save")),$(this).is("[data-encoding-label]")&&$(this).attr(n,theme_language(a+"set_encoding"))}),__data_select_encoding.click(function(e){if(1===$(this).data("reverting"))return $(this).data("reverting",0),void __footer_message(theme_language("filemanager_editor_reverting_content")+"..",1);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"):__footer_message(theme_language("filemanager_save_to_refresh_content_proc")+"..",1)}),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")&&(event_hold_modifer_pressed()&&!vars.events.keypressed.shift&&(e.preventDefault(),jsPanelContainer.find(".jsPanel-btn-align.vertical").addClass("hidden"),jsPanelContainer.find(".jsPanel-btn-align.horizontal").removeClass("hidden")),vars.events.keypressed.shift&&(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")),vars.events.keypressed.shift||(e.preventDefault(),vars.jspanels_reversed=0)}),jsPanelContainer.on(keydown_editor,function(e){var t=e.keyCode?e.keyCode:e.which,n=$(":focus").parents(".jsPanel"),i="mac"===platform.detect()?e.metaKey:e.ctrlKey,a="mac"===platform.detect()?e.ctrlKey:e.metaKey;if(27===t){var s=this;void 0!==s.close_timeout?s.close_timeout+=1:s.close_timeout=2,setTimeout(function(){s.close_timeout=1},vars.event.double_click_delay),s.close_timeout>2&&($(".bootbox.modal").length||(i?jsPanelContainer_this_initial.minimize():jsPanelContainer_this_initial.close()))}var r=function(e){n.find("."+file_editor_save_button_str).trigger("click"),e&&n.find(".jsPanel-btn-close").trigger("click")};13!=t&&83!=t||!n.is(".jsPanel")||(83==t?!e.shiftKey&&i?(e.preventDefault(),!readOnly&&r()):!e.altKey&&i&&e.shiftKey?(e.preventDefault(),!readOnly&&save_file_as($(this))):e.altKey&&i&&e.shiftKey&&(e.preventDefault(),!readOnly&&r(1)):i&&e.shiftKey?!readOnly&&r(1):i&&!readOnly&&r()),(82!==t||!e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)&&(113!==t||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)||(e.preventDefault(),n.find(".ddm-link-refresh").trigger("click")),82===t&&e.altKey&&i&&!e.shiftKey&&!a&&(e.preventDefault(),n.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>')};jsPanelContainer.find('form[action="save_file.cgi"]').submit(function(e){e.preventDefault(),e.stopPropagation();var t=window["jsPanelSaving_"+jsPanelId];if(void 0===t||"function"!=typeof t.abort||!t.readyState||4==t.readyState){Convert.htmlEscape(jsPanelContainer.find(".jsPanel-title strong").text());var n='form[action="save_file.cgi"]',i=jsPanelContainer.find("select[data-encoding]").val(),a=jsPanelContainer.find(n+' input[name="file"]').val(),s=___file_name_path_local,r=jsPanelContainer.find(n+' textarea[name="data"]').val();__footer_message(theme_language("filemanager_saving_file").replace("%value",a)+"..",1),window["jsPanelSaving_"+jsPanelId]=$.ajax({type:"POST",url:v___location_prefix+"/"+v___module_file_manager+"/save_file.cgi",data:{file:a,path:s,data:r,encoding:i||String()},dataType:"text",success:function(e){if(session.status(e)){var t=jsPanelContainer.find("."+file_editor_save_button_str+" .cspinner");if(!$(e).find("textarea#data").length){var n=$(e).find(".panel-body h3").text();if(Test.strContains(n,":")){var i=n.split(":"),s=i.pop(),r=i.join(":");n="<strong>"+Convert.htmlEscape(s)+'</strong>: <span class="font-weight-normal">'+Convert.htmlEscape(r)+"</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===t.parent(".btn").index()&&theme_modal_dismiss(),void u()}__footer_message(theme_language("filemanager_file_saved").replace("%value",a),1,2),u(),update_file_stat_data();var o=$("body").find("."+file_editor_save_button_str+".text-danger").length,l=$("body").find('[data-form="submitter"]').hasClass("btn-warning");o||l||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(o)}},error:function(e){var t=theme_language("global_error")+": "+(e.status&&e.statusText&&"error"!==e.statusText?e.status+" - "+e.statusText:theme_language("connection_lost"));__footer_message(t,1,2),u()}})}}),progress.end(),__footer_message(-1)&&__footer_message(theme_language("global_done"),1,2),$(".dropdown-editor_config_search + [data-external-detach]").removeClass("disabled")}},setstatus:maximizedWindow,footerToolbar:function(e){return'<span data-file-stat><strong data-file-message class="text-light"></strong><span cspinner-file-message class="cspinner invisible"><span class="cspinner-icon smaller"></span></span></span><span data-file-controls><strong data-file-size class="text-light"></strong><i data-file-info class="fa2 fa-fw fa2-info-circle cursor-pointer"></i></span>'},maximizedMargin,panelSize:{width:panelSize.a?"98%":panelSize.w,height:panelSize.a?"99%":panelSize.h},position:jsPanelPosition,dblclicks:{title:"maximize"},headerControls:{smallify:"remove"},dragit:{stop:function(){__f___cm_resize(this,1)}},resizeit:{stop:function(e,t,n){__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,n="keyup.feditor"+e,i=$("body");i.off(t),i.off(n);var a=window["jsPanelFileStat_"+e+"_fileinfo"]||{};Object.entries(a).forEach(function(e){const[t,n]=e;n&&"function"==typeof n.abort&&n.abort.call()}),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&&!readOnly){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=decodeURIComponent($($v__fm__container_fluid+" #path").val()||"/");if(Convert.uriEncodeComponent(file_path)===Convert.uriEncodeComponent(e)&&"function"==typeof __f__get_fs){var n=_f__table().dataTable().$("tr").find('td:nth-child(3) a[data-filemin-link="'+t+'"]').parent("td").parent("tr");__f__get_fs(n,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"> </i> <strong class="font-size-90p">'+Convert.htmlEscape(e.find(".jsPanel-title strong").text())+"</strong>",buttons:{success:{label:' <i class="fa fa-fw fa-save"> </i>'+theme_language("global_save_and_close")+" ",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:' <i class="fa fa-fw fa-times-circle-o"> </i>'+theme_language("global_close_without_saving")+" ",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,n=$("body").find('[data-form="submitter"]').hasClass("btn-warning");t||n||set_onbeforeunload_status(0,0),set_onbeforeunload_status_native(t)}},main:{label:' <i class="fa fa-fw fa-arrow-circle-o-left"> </i>'+theme_language("global_continue_editing")+" ",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?"+theme.version(!0),function(){load.loaded.push(init_script_name),jsPaneler()}).fail(function(e){"canceled"!==e.statusText&&"abort"!==e.statusText&&connection_error(e,1)})}else jsPaneler();"function"==typeof __f___cs&&__f___cs()}}function editor_html_palette(e,t){var n;if("function"==typeof e.findOne)$(e.findOne("head").$),n=$(e.findOne("body").$);else{var i=$(e.data.element.$.children[0]).contents();i.find("head"),n=i.find("body")}theme_editor_palette_is_dark()||t?n.addClass("nightRider"):n.removeClass("nightRider")}function quill_editor_html_destroy(e){const t=$(e).next(".ql-compose-container ");t.find(".ql-toolbar").remove(),t.find(".ql-container").empty()}function quill_editor_html_init(e,t){var n=$(e);n.length&&(n.hide(),quill_editor_html_destroy(e),window[t](),setTimeout(function(){quill_toolbar_tooltip(n.next(".ql-compose-container")[0])},999))}function quill_toolbar_tooltip(e){const t=e.querySelector(".ql-toolbar");["font","size","paragraph","header","bold","italic","underline","strike",{script:"sub"},{script:"super"},"color","background","align",{list:"ordered"},{list:"bullet"},{indent:"+1"},{indent:"-1"},"blockquote","code-block","code","image","link","direction","clean"].forEach(e=>{let n,i,a,s,r="editor_tb";"object"==typeof e?(i=Object.keys(e)[0],a=`${i}[value="${e[i]}"]`,r+=`_${i}_${e[i]}`):(a=e,r+=`_${e}`),n=t.querySelector(`.ql-${a}`),s=theme_language(r),n&&s&&(n.dataset.title=theme_modifiers_replace_for_mac(s.replace("%cmd","mac"===platform.detect()?"Meta":"Ctrl")),function(e){e.tooltip({html:!0,trigger:"hover",container:"body",sanitize:!1,delay:{show:600,hide:30}})}($(n)))})}function editor_html_init(e,t){var n,i=!Test.string(e[0]);i?e[3]:e[0];i?(n="__hm_editor_"+e[3],e[0].attr("id",n)):n=e[0];var a=function(){CKEDITOR.config.dialog_noConfirmCancel=!0,CKEDITOR.config.fullPage=!0,CKEDITOR.config.toolbar=editor_html_toolbar(t);var a=session.server.data("language"),s=$(window).height()/e[1],r=function(e){var t,n=v___server_js_path+"/ckeditor/ckeditor-custom."+v___source_type+".css";if("function"==typeof e.findOne)t=$(e.findOne("head").$),$(e.findOne("body").$);else{var i=$(e.data.element.$.children[0]).contents();t=i.find("head"),i.find("body")}editor_html_palette(e),t.find('link[href="'+n+'"]').length||t[0].insertAdjacentHTML("beforeend",'<link type="text/css" rel="stylesheet" href="'+n+'">')};if(CKEDITOR.replace(n,{language:a,width:"100%",baseFloatZIndex:20001,height:i?e[1]:s,on:{instanceReady:function(e){r(e.editor.document)}}}),!CKEDITOR.instances[n]&&"object"==typeof CKEDITOR&&CKEDITOR.instances)for(var o in CKEDITOR.instances)n=CKEDITOR.instances[o].name;CKEDITOR.instances[n].on("instanceReady",function(t){t.editor.on("panelShow",function(e){r(e)}),CKEDITOR.instances[n].resize("100%",i?e[1]:s,!1)}),CKEDITOR.instances[n].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){var t="cke_dialog_ui_checkbox";$(e.data._.element.$).find("."+t).removeClass().addClass("awcheckbox awobject"),$(e.data._.element.$).find("."+t+"_input").removeClass().addClass("iawobject").next("label").addClass("lawobject")})}),!0===e[2]&&CKEDITOR.instances[n].on("change",function(t){this.updateElement(),set_onbeforeunload_status(1,0);var n=parseInt(e[3].replace("html_editor_",""))-1;$("#jsPanel-"+n).find("._filemanager_file_editor_save").addClass("text-danger __locked__"),$("#jsPanel-"+n).find("select[data-encoding]").addClass("pointer-events-none")}),"edit_web"===e[3]&&setTimeout(function(){$("hr + b").removeClass("hidden"),$(".__tmp__spinner").remove()},100)};if("object"==typeof CKEDITOR)a();else{CKEDITOR_BASEPATH=v___server_js_path+"/ckeditor/";var s="ckeditor";$.getScript(v___server_js_path+"/"+s+"/"+s+".js?"+theme.version(!0),function(){load.loaded.push(s),a()}).fail(function(e){"canceled"!==e.statusText&&"abort"!==e.statusText&&connection_error(e,1)})}}function table_proc_size_columns(){if(!core.curModule(v___module_file_manager)){var e=[];$.each($(".container-fluid tr td span[data-filesize-bytes]"),function(){var t=$(this).parents("table"),n=$(this),i=$(this).parents("td"),a=i.index();n.length&&(i.attr("data-order",n.attr("data-filesize-bytes")),!Test.arrContains(e,a)&&e.push(a),t.attr("data-ordered",1),n.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,n,i,a){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===i&&(i=!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";var s=function(e){if(e.parents(".info-container").length)return;if(!e[0]||!e[0].tHead||e[0].tHead.querySelector("tr:first-child th.table-title"))return;var s=e[0].querySelectorAll("tr").length,r=!!a||s>1e3,o=e.parents(".ui_grid_table").length;let l=e.find("tr > td:first-child").length,_=a?parseInt(((window.innerHeight<400?400:window.innerHeight)-a)/(11*window.devicePixelRatio)):parseInt(window.innerHeight/40);if(r&&_<=0&&(_=1),a&&l&&l<=_&&(r=!1),o||!r||a||(r=!1),s>settings_table_init_datatables)return;var c=o?"i":String(),d=e.DataTable({order:[],aaSorting:[],bDestroy:!0,bPaginate:r,pageLength:_,columnDefs:[i],bInfo:r,bStateSave:t,destroy:!0,dom:n?"RlBfrtip":r?"Btf"+c+'p<"clear">':"Bf",buttons:[{extend:"csvHtml5",charset:"utf-8",exportOptions:{columns:":visible",format:{body:function(e,t,n,i){return e=Convert.htmlRemoveHiddenElements(e),e=Convert.htmlRemoveByClassName(e,"btn"),Convert.htmlStrip(e)}}}}],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),n="dt-table-hscroll";if((!t||!t.parent().is("."+n))&&t.length){var i="opacity-0",a="pointer-events-none",s=e.nTable.querySelector(".ui_checked_columns:first-child .ui_checked_checkbox, .ui_checked_columns:first-child td > .awcheckbox");s&&$(s).parents("table").find("thead th:first-child").addClass(i+" "+a);var o=e.nTable.tHead.querySelectorAll("th");o.length&&o.forEach(function(e){e.textContent||e.classList.add(i,a),e.innerHTML="<span>"+e.innerHTML+"</span>"}),r?(t.addClass("dt-paginated").parents(".ui_grid_table").addClass("dt-paginated-grid").next(".btn-group.ui_links_row").before("<hr>"),vars.pjax.cache.set("disable")):t.next("table").wrapAll('<div class="'+n+'"></div>')}}});t&&d.search("").draw();var f=!0;if(e.find("th").on("mouseover touchstart",function(e){f=!!$(e.target).hasClass("sorting")}),d.on("order.dt",function(t){var n=d.order();if((1===e.find("thead .sorting_desc, thead .sorting_asc").length?1:0)&&!vars.events.keypressed.shift&&!f&&n[0]&&"asc"===n[0][1])return d.order.neutral().draw(),void(f=!0);f=!1}),a)try{e.parent().hasClass("dataTables_wrapper")&&e.wrapAll('<div class="dt-table-hscroll"></div>');const t="keydown.paginater",n=e.DataTable().settings()[0].sTableId,i=function(){return $("#"+n+"_paginate")};if(!i().length)return;$(document).off(`${t}${n}`),$(document).on(`${t}${n}`,function(e){if(i().is(":visible")&&!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey))if("ArrowRight"===e.key){const t=i().find(".paginate_button.next:not(.disabled)");t.length&&(t.click(),e.preventDefault())}else if("ArrowLeft"===e.key){const t=i().find(".paginate_button.previous:not(.disabled)");t.length&&(t.click(),e.preventDefault())}})}catch(e){console.warn("Error in binding keydown event for pagination:",e)}const u=e.parents("form"),g=u.find("tr > td:first-child").find('input[type="checkbox"]').attr("name");if(g&&g.length){const t=function(){u.find('input[name="'+g+'"]').filter(":hidden").remove(),d.rows().every(function(){const e=this.node(),t=$(e).find('input[type="checkbox"][name="'+g+'"]');t&&t.length&&t.prop("checked")&&$("<input>").attr({type:"hidden",name:g,value:t.val()}).appendTo(u)})};d.on("input",'input[type="checkbox"]',function(){t()}),d.on("page.dt",function(){t()});let n=".ui_links_row > .select_all,";n+=".ui_links_row > .select_invert",u.parent().find(n).on("click",function(){t()}),u.on("submit",function(){const t=e.find('tr > td:first-child input[type="checkbox"][name="'+g+'"]:visible:checked').map(function(){return $(this).val()}).get();u.find('input[name="'+g+'"][type="hidden"]').each(function(){t.includes($(this).val())&&$(this).remove()})})}};if(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 n=$(this).text();/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(n)&&(n=0),$(this).attr("data-sort",n)}).promise().done(function(){s(e)}):s(e)}else s(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),n=uri_parse_param("folder",e),i=uri_parse_param("start",e),a="object"==typeof mail&&"object"==typeof mail.messages&&"function"==typeof mail.messages.get;if(a?mail.messages.get({id:t,folder:n,start:i}):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"]),v___initial_load){t=uri_parse_param("id");a?mail.messages.get(t):load.bundle(v___server_extensions_path+"/mail/mail",1,["mail.messages.get()"])}}}function mail_page_check(e){$t_uri_webmail&&settings_mail_ui&&"usermin"===session.server.data("product")&&(!e||e.nodeValue&&e.nodeValue.includes("mailbox"))&&(!page.handle.content.preloader.processing()&&page.handle.content.preloader.show(!1,!1,!0),plugins.navigation.reset())}function page_sysinfo_sensor_update_label(){var e=$("#system-status .badge-drivestatus");e.length&&$.each(e,function(e,t){var n="",i=$(this).text().split(":"),a=i[1]||i[0],s=a;n=($(this).hasClass("badge-cpufans")?1:0)?HTML.label.textMaxLevels("rpm",s):HTML.label.textMaxLevels("temperature",a),Test.string(n)&&$(this).removeClass(function(e,t){return(t.match(/(^|\s)bg-\S+/g)||[]).join(" ")}).addClass(n)})}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,n=core.curModule("init")&&v___location_file.startsWith("edit_")||core.curModuleFile("virtual-server","edit_newshells.cgi");if(!t&&!n){var i=$(".container-fluid table .ui_checked_columns"),a=(i.length,"td:nth-child(1)"),s="input:checkbox";$.each(i,function(t,n){!$(n).find("a[href]")||Test.strContains(v___location_path,"init/edit_")||$("body").hasClass("servers")||$(this).hasClass("selectable")||$(n).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer"),$(n).find("td:not(.selectable)").click(function(t){if(!($(this).find("a[href]").length>1&&!$(t.target).is("td")||$(t.target).is("select")||$(t.target).is("option"))){var i="MacIntel"===window.navigator.platform?1:0;if(!(!i&&t.ctrlKey||i&&t.metaKey||$(this).is(".ui_checked_checkbox")&&$(this).find(".awcheckbox > input[disabled]").length||check_selected_text()))if(!vars.events.keypressed.shift&&$(this).is(a)&&$(t.target).is(a)&&$(this).find(s).length){var r=$(this).find(s).first(),o=r.is(":checked");r.prop("checked",!o).trigger("change")}else{if(setTimeout(function(){e.prev_active=$(n)},50),vars.events.keypressed.shift&&e.prev_active&&!e.prev_active.is($(n))&&t.originalEvent&&!0===t.originalEvent.isTrusted){var l=e.prev_active.index(),_=$(n).index()>l?$(n).prevUntil(e.prev_active):$(n).nextUntil(e.prev_active),c="td:first-child input",d=e.prev_active.find(c).is(":checked");_.find(c).each(function(t,n){$(n).add(e.prev_active.find(c)).prop("checked",d),$(n).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 f=$(t.target).attr("href")||$(t.target).find("a").attr("href");if(f&&f.length>1){var u=$(t.target)||$(t.target).find("a");core.linkSameOrigin(u)?plugins.pjax.page.link.get(f):theme_open_new_tab(f,1)}return}}else if($(n).find("a[href]")&&!$("body").hasClass("servers")){var g=$(n).find("a[href]")[0],p=($(this).parents("tr.ui_checked_columns"),$(t.target).find('input[type="checkbox"]:not(":disabled")').length);!g||$(this).find("a").attr("href")!==$(g).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||($(g).attr("target")?(t.preventDefault(),!p&&window.open($(g).attr("href"),$(g).attr("target"))):t.originalEvent&&(t.preventDefault(),$(g).attr("href")&&plugins.pjax.page.link.get($(g).attr("href")))),$(g).attr("href")&&p&&plugins.pjax.page.link.get($(g).attr("href"))}}}}),$(n).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 hl-aw-chk"):t.addClass("hl-aw"),t.find('input[type="checkbox"]:first').trigger("click"))}else e.stopPropagation()})})}}function page_radios_evolve(e){"conf"!=session.server.data("post")&&(e||(e='.container-fluid input[type="radio"]:not(.iawobject), .container-fluid input[type="checkbox"]:not(.iawobject)'),$.each($(e),function(e){if(1!==$(this).data("xdn")&&1!==$(this).hasClass("_select-unselect_")){$(this)[0]&&($___text=$(this)[0].nextSibling);var t=$(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:" ").replace(/<hr>/g,"<hr>").replace(/<header>/g,"<header>"))).length&&" "!=i?i+" ":i,a=$(this).attr("type").toLowerCase(),s=(s=$(this).parents(".tab-pane").attr("id"))&&s.length?s.replace(/[^a-zA-Z0-9_-]+/g,""):0,r=Math.floor(9e4*Math.random())+1e4,o=$(this).attr("id"),l=("eid_"+(o&&$(this).attr("name")?$(this).attr("name"):r)+"_"+r+"_"+e+"_"+s).replace(/[^a-zA-Z0-9_-]+/g,"_");l=o&&1===$("body").find("#"+o.replace(/[^a-zA-Z0-9_-]+/g,"_")).length?o.replace(/[^a-zA-Z0-9_-]+/g,"_"):l;if(0===$(this).next("label").length&&0===t.length&&n){$(this).addClass("iawobject");var _='for="'+l+'"';$(this).attr("id",l),$($___text).wrap('<label class="lawobject" '+_+"> "+i+" </label>"),$($___text).remove(),$(this).next("label").addBack().wrapAll('<span class="aw'+a+' awobject awobjectm"></span>'),$(this).data("xdn",1)}else if(0!==t.length||0!==$(this).next("label").length||1!==$(this).prev("label").length||n)0!==t.length||0!==$(this).next("label").length||n||($(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'"> </label>'),$(this).next("label").addBack().wrapAll('<span class="aw'+a+' awobject awobjectm"></span>'),$(this).data("xdn",1));else{var c=$(this).prev("label"),d=c.text();$(this).addClass("iawobject"),$(this).attr("id",l),$(this).after('<label class="lawobject" for="'+l+'"> '+d+" </label>"),$(this).next("label").addBack().wrapAll('<span class="aw'+a+' awobject awobjectm"></span>'),$(this).removeClass("form-control").css("width","initial"),c.remove(),$(this).data("xdn",1)}1===t.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'+a+' awobject awobjectm"></span>'),n&&$($___text).remove(),$(this).data("xdn",1))}}))}function popover_visibility_position(e){$.each($(".popover.module-help"),function(t,n){e.is($(this))?$(this).css({"z-index":10001+t,opacity:1}):$(this).css({"z-index":10001-t,opacity:.85})})}function page_refresh(e){plugins.pjax.page.refresh(e)}function page_init(){"undefined"==typeof v___initial_load&&(v___initial_load=1),"undefined"==typeof v___title_initial&&(v___title_initial=session.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=session.server.data("access-level"),v___shell_type=0==v___user_level?"#":"$",v___debug=parseInt(session.server.data("debug")),v___source_type=v___debug?"src":"min",v___available_usermin=session.server.data("usermin"),void 0===$.support.spa&&($.support.spa=session.server.data("navigation")),session.alive="1"==session.server.data("session")?1:0,"undefined"==typeof v___blocked_navigation&&(v___blocked_navigation=0),v___server_username=session.server.data("user"),v___server_userhome=get_user_home(),v___module=session.server.data("module")||"","undefined"==typeof v___module_previous&&(v___module_previous=0),v___script_name=session.server.data("script-name").replace(/^\//g,""),v___module_file_manager="file"+(core.moduleAvailable("file-manager")?"-manager":"min"),v___server_hostname=session.server.data("hostname"),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),"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"==session.server.data("data-night-mode")?1:0,v___theme_night_mode_enabled=v___theme_night_mode,o___gotten_scripts="undefined"==typeof o___gotten_scripts?[]:o___gotten_scripts,v___page_container=$(".container-fluid"),v___page_activeElement=$("body")[0],v___page_hasEditor=editor_init_check(),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=session.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",plugins.navigation.state.update(),v___location_query&&v___location_query.includes("xnavigation=ERR_CERT_AUTHORITY_INVALID")&&window.close()}function content_page_center_h_offset(){var e=$("aside"),t=e.length,n=parseInt(session.server.data("navigation-collapsed"))||matchMedia("(max-width: 864px)").matches,i=parseInt(session.server.data("slider-fixed")),a=0,s=!($(window).width()<640);return!i&&n?a=0:s&&t&&(!n&&!i||n&&!i||!n&&i)&&(a=-20),s&&t&&n&&i&&(a=-150),s&&t&&!n&&!i&&(a=e.outerWidth()/2),a}function content_page_calc_width(){var e=parseInt(session.server.data("navigation-collapsed"))||matchMedia("(max-width: 864px)").matches?0:$("aside").outerWidth()||0,t=parseInt(session.server.data("slider-fixed"))&&!document.querySelector(".right-side-tabs-toggler").offsetHeight?300:0,n=window.innerWidth-e-t-60-2;return parseInt(n)}function content_page_calc_height(e){var t="container-fluid",n=0;"editor"===e&&(n=200);var i=$(window).outerHeight()-parseInt($("."+t).css("margin-top"))-parseInt($("."+t+" > .panel > .panel-heading").outerHeight())-parseInt($("."+t+" > .panel > .panel-body").css("padding-top"))-n;return parseInt(i>320?i:320)}function editor_change_mode(e,t){var n=CodeMirror.findModeByMIME(t);mode=n.mode,spec=n.mime,e.setOption("mode",spec),mode&&"rpm"!==mode&&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">',n=CodeMirror.modeInfo,i=0,a=e&&e.helperType?e.helperType:0;$.each(n,function(n,s){var r=0;e&&(!i&&a&&a==s.mime&&(r=1,i++),a||(i||e.name!=s.mode?(!i&&e&&e.name&&s.mime.indexOf(e.name)>-1||!i&&e&&e.name&&e.name.indexOf(s.mime)>-1)&&(i++,r=1):(r=1,i++))),t+="<option "+(r?" selected":"")+' value="'+s.mime+'">'+s.name+"</option>"}),t+="</select>";var s=0;if(!$(t).find("option[selected]").val()){var r=$(t);r.find('option[value="text/plain"]').attr("selected",1),s=r[0].outerHTML}return s||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")||check_location_resource("/config.cgi?module=server-manager",1)||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,t){var n,i,a=t||v___module,s=e&&e.length?e.parents("form").find('[name="file"]').val():"string"==typeof a&&a.startsWith("/")?a:null;return"apache"===a||t&&(Test.strContains(t.toLowerCase(),"/apache2/")||Test.strContains(t.toLowerCase(),"/httpd/"))||"postfix"===a||t&&Test.strContains(t.toLowerCase(),"/postfix/")||"dovecot"===a||t&&Test.strContains(t.toLowerCase(),"/dovecot/")||"spam"===a||t&&Test.strContains(t.toLowerCase(),"/spam/")||"sendmail"===a||t&&Test.strContains(t.toLowerCase(),"/sendmail/")||"samba"===a||t&&Test.strContains(t.toLowerCase(),"/samba/")||"proftpd"===a||t&&Test.strContains(t.toLowerCase(),"/proftpd/")||"fail2ban"===a||t&&Test.strContains(t.toLowerCase(),"/fail2ban/")||"sshd"===a||t&&(Test.strContains(t.toLowerCase(),"/ssh/")||Test.strContains(t.toLowerCase(),"/sshd/"))||"squid"===a||t&&Test.strContains(t.toLowerCase(),"/squid/")||"ldap-server"===a||t&&Test.strContains(t.toLowerCase(),"/ldap-server/")||"postgresql"===a?(n="rpm",i="rpm-spec"):"mysql"===a||t&&(Test.strContains(t.toLowerCase(),"/mysql/")||Test.strContains(t.toLowerCase(),"/mariadb/"))||s&&s.endsWith(".conf")&&("firewalld"===a||t&&Test.strContains(t.toLowerCase(),"/firewalld/"))?(n="properties",i="text/x-properties"):s&&s.endsWith(".xml")&&("firewalld"===a||t&&Test.strContains(t.toLowerCase(),"/firewalld/"))?(n="xml",i="text/xml"):"init"===a||t&&Test.strContains(t.toLowerCase(),"/init/")||"procmail"===a||t&&Test.strContains(t.toLowerCase(),"/procmail/")||core.curModuleFile("cron","edit_manual.cgi")||"shorewall"===a||t&&Test.strContains(t.toLowerCase(),"/shorewall/")||t&&Test.strContains(t.toLowerCase(),"caddy")||Test.strContains(a,"cshrc")||t&&Test.strContains(t.toLowerCase(),"cshrc")?(n="shell",i="text/x-sh"):Test.strContains(a,"nginx")||t&&Test.strContains(t.toLowerCase(),"nginx")?(n="nginx",i="text/x-nginx-conf"):"phpini"===a||t&&Test.strContains(t.toLowerCase(),"/phpini/")?(n="z80",i="text/x-z80"):"bind8"==a||t&&(Test.strContains(t.toLowerCase(),"/bind")||Test.strContains(t.toLowerCase(),"/named"))||core.curModuleFile("virtual-server","manual_records.cgi")?v___location_query&&(Test.strContains(v___location_query.toLowerCase(),"file=")&&Test.strContains(v___location_query.toLowerCase(),"named.conf")||!Test.strContains(v___location_query.toLowerCase(),"file="))?(n="go",i="text/x-go"):"edit_text.cgi"===v___location_file||"manual_records.cgi"===v___location_file?(n="nsis",i="text/x-nsis"):(n="mscgen",i="text/x-mscgen"):"virtual-server"==a&&e&&"body"==e.attr("name")&&(n="htmlmixed",i="text/html"),[n,i]}function editor_fix_width(e){var t=$(e).parent("form"),n=content_page_calc_width();t&&t.length&&(t.width(n),$(window).off("resize.cmc"),$(window).on("resize.cmc",function(){editor_fix_width(e,n)}))}function editor_init(e,t,n,i,a,s,r,o,l,_){l=void 0!==l&&0!=l&&l,(r=void 0!==r&&0!=r)||(a=void 0!==a&&0!=a,s=void 0!==s&&0!=s,$.each(e,function(r,c){$(this);var d=v___module;["phpini","bind8"].indexOf(d)>=0&&$(this).data("name","data"),CodeMirror.modeURL=v___location_prefix+"/unauthenticated/js/codemirror/mode/%N/%N.js";var f=null,u="text/plain",g=!1;core.curModuleFile("custom","view.cgi")?g=$(".container-fluid").find("[data-sub_title]").find("tt").text():i&&!i.toString().includes("static")?t&&(g=t.replace(/<(?:.|\n)*?>/gm,"").replace(/ *\([^)]*\) */g,""),t=g):g=$('select[name="file"]').val();var p,m,h=t||g;(p=/.+\.([^.]+)$/.exec(h))?(m=CodeMirror.findModeByExtension(p[1]))&&(f=m.mode,u=m.mime):/\//.test(h)?(m=CodeMirror.findModeByMIME(h))&&(f=m.mode,u=h):(f=null,u="text/plain");var v,b=i.toString().includes("static");if(b)f=(v=core.curModuleFile("custom","view.cgi")&&g?editor_custom_modes(!1,g):editor_custom_modes($(this)))[0],u=v[1];else if(null===f||"null"===f){var x,w,y=document.getElementById("jsPanel-"+(i-1)),k=edit_file_parse_target($(y))[2]||h,C=editor_custom_modes(!1,k);if(f=C[0],u=C[1],!f)if(w=/.+\.([^.]+)$/.exec(k)){"fcgi"===(x=w[1])&&(x="cgi");var j=CodeMirror.findModeByExtension(x);j&&(f=j.mode,u=j.mime)}null!==f&&"null"!==f||!x||k.toLowerCase().includes("readme")||(k.includes("cron")||k.includes("clamav")||k.includes("clamav")?(f="shell",u="text/x-sh"):"conf"===x?(f="properties",u="text/x-properties"):k.match(/^\/etc\//)&&(f="rpm",u="rpm-spec")),f||k.toLowerCase().includes("readme")||(k.includes("git/config")||k.includes("shadow")||k.includes("group")||k.includes("passwd")?(f="properties",u="text/x-properties"):k.includes("bash")||k.includes(".profile")||k.includes("/usr/local")||k.includes("cron")||k.includes("git/hooks")||k.includes("grub.d")?(f="shell",u="text/x-sh"):k.toLowerCase().includes("pgp")||k.toLowerCase().includes("gpg")||k.toLowerCase().includes("ssl.")||k.includes("/pki/")?(f="asciiarmor",u="application/pgp"):(k.match(/^\/etc\//)||k.includes(".git")&&k.includes("/exclude"))&&(f="rpm",u="rpm-spec"))}if($current_file=v___location_path.replace(/^\//g,""),$current_file&&($current_file=$current_file.split("/")[1]),editor_init_check()||$(".jsPanel").length||a){CodeMirror.commands.autocomplete=function(e){e.showHint({hint:CodeMirror.hint.anyword})};var O,T={"Alt-Space":"autocomplete","Alt-S":function(){if(c&&$(c).length){var e=$(c).parents(".panel-body").find(".dropdown-editor_config_search");i&&i.toString().includes("static")&&$(c).parents("form")&&e.find('button[data-toggle="dropdown"]').trigger("click")}},"Shift-Cmd-F":"replace","Shift-Ctrl-F":"replace"};config_portable_module_filemanager_editor_tabs_to_spaces&&(T.Tab=function(){window["__cm_editor_"+i].replaceSelection(config_portable_module_filemanager_editor_tabs_to_spaces_number,"end")});try{O=$(c).parent("form").attr("data-binary")}catch(e){}window["__cm_editor_"+i]=CodeMirror.fromTextArea(c,{tabMode:"indent",matchBrackets:!_,lineNumbers:!_,keyMap:"sublime",highlightSelectionMatches:{annotateScrollbar:!_},lineWrapping:!(!_||!O)||(~~localStorage.getItem(v___server_hostname+"-"+session.server.data("user")+"-editor-line-wrapping")||!1),indentUnit:0,autofocus:!_,foldGutter:!_,readOnly:_,continueComments:!_,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:T,styleActiveLine:!_,theme:theme_editor_palette_is_dark()?"monokai":"elegant"}),i&&i.toString().includes("static")&&(v___page_hasEditor=1),window["__cm_editor_"+i].setOption("mode",u),f&&"rpm"!=f&&CodeMirror.autoLoadMode(window["__cm_editor_"+i],f);var S=".jsPanel-controlbar .jsPanel-btn-";window["__cm_editor_"+i].addKeyMap({"Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t),localStorage.setItem(v___server_hostname+"-"+session.server.data("user")+"-editor-line-wrapping",~~t)},"Alt-Up":function(){var e=document.getElementById("jsPanel-"+(i-1));e&&$(e).find(S+"maximize:visible").trigger("click")},"Alt-Down":function(){var e=document.getElementById("jsPanel-"+(i-1));e&&$(e).find(S+"normalize:visible").trigger("click")}});var P=$("body").find(".jsPanel"),I=P&&P.length;page.handle.content.offset(!0),setTimeout(function(){if(b){var e=$(".container-fluid .panel > .panel-body .CodeMirror");if(e.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===e.length&&core.curModule("custom")){e.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>");var t=e.prev("[data-mode-select]").find(".select-mode-info");t.on("change",function(){editor_change_mode(__cm_editor_static,$(this).val()),theme_select_adjust_width($(this))}),m&&m.mime&&t.val(m.mime).trigger("change")}}else{var n=document.getElementById("jsPanel-"+(i-1)),a=$(n).find(".select-mode-info");$(n).find(a).find("option").filter(function(){return this.value.indexOf(u)>-1}).prop("selected",!0),a.on("change",function(){editor_change_mode(window["__cm_editor_"+i],$(this).val()),theme_select_adjust_width($(this))}).trigger("change")}var s=$(".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){"mac"===platform.detect()&&(e=(e=(e=(e=(e=e.replaceAll("Ctrl + ⇧ + △","⌃ + ⇧ + △")).replaceAll("Ctrl + ⇧ + ▽","⌃ + ⇧ + ▽")).replaceAll("Ctrl + ⇧ + K","⌃ + ⇧ + K")).replaceAll("Ctrl +","⌘ +")).replaceAll("Alt +","⌥ +")),s.popover({container:"body",placement:"auto left",sanitize:!1,title:'<button type="button" class="close pull-right close-popover-trigger font-size-120p">×</button>'+theme_language("editor_help_title"),content:e,trigger:"click",html:!0})}}),s.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")})}),s.on("inserted.bs.popover",function(){$("body").find(".editor_help").parents(".popover").addClass("_helper").next("header").remove(),$("body").find(".popover-content > .ui_subheading").remove()})},100),s&&window["__cm_editor_"+i].on("change",function(e,t){Test.strContains(v___location_path,"init/edit_")||i&&i.toString().includes("static")&&set_onbeforeunload_status(1,0)});var E=$(".container-fluid > .panel > .panel-body").attr("data-cm-line"),M=$(".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&&E&&__cm_editor_static.setCursor(parseInt(E.split(",")[0]),parseInt(E.split(",")[1]));var z=uri_parse_param("editor_line");z&&__cm_editor_static.setCursor(parseInt(z)-1,0);var q=0;if(core.curModuleFile("virtual-server","edit_html.cgi")?q-=-200:q-=-50,l){var D=$(c).parents("form"),R=D.find('input[type="submit"]:visible, .ui_form_end_submit.btn-success[type="button"]:visible');D.on("submit",function(e){set_onbeforeunload_status(0,0)}),R.prev("br").length&&R.addClass("margined-top--10"),$(window).resize(function(){window["__cm_editor_"+i].setSize(null,(content_page_calc_height("editor")-q)*l)}).trigger("resize"),window["__cm_editor_"+i].on("change",function(){set_onbeforeunload_status(1,0),R.removeClass("btn-default btn-success").addClass("btn-danger")})}else{var A;A=n||4,n?(window["__cm_editor_"+i].on("change",function(t,n){e.val(window["__cm_editor_"+i].getValue());var a=$(":focus").parents(".jsPanel");a.is(".jsPanel")&&(a.find("._filemanager_file_editor_save").addClass("text-danger __locked__"),a.find("select[data-encoding]").addClass("pointer-events-none"),set_onbeforeunload_status_native(1))}),window["__cm_editor_"+i].setSize(A[0],A[1])):($window_height=content_page_calc_height("editor")-q,window["__cm_editor_"+i].setSize(null,$window_height),$(window).resize(function(){$window_height=content_page_calc_height("editor")-q,window["__cm_editor_"+i].setSize(null,$window_height)}))}var K=$(".sub_table_container");K.find(".CodeMirror").length&&(K.addClass("xcontent-force-no-styling"),$(".panel-body").addClass("xqcontent-forced"),K.find(".CodeMirror").closest("td").parent("tr").hasClass("ui_checked_columns")&&$(".panel-body").addClass("xqcontent-forced-checked")),i&&i.toString().includes("static")&&editor_background_save(o&&!!E&&"true"==M,o),i&&i.toString().includes("static")&&!I&&editor_fix_width(".container-fluid > .panel .panel-body textarea:hidden")}}))}function viewer_init_check(){return $('body[class^="logviewer"]').length&&v___location_query&&(v___location_query.indexOf("view=1")>-1||v___location_query.indexOf("new=")>-1)||$('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(){$("pre[data-cm-viewer]").remove();const e=function(e,t){const n=$("#content .panel-body > pre:visible:first");if(n.length){const i=n.offset().top,a=$(window).height()-i+("1"==session.server.data("night-mode")?t?18:1:0)-(e||52);return Math.max(a,100)}return null};if($(".panel-body pre").find("i").length){let t=0;const n=core.curModuleFileQuery("logviewer","view_log.cgi","since=-f"),i=$('.panel-body [name="filter"]');i.length&&i.val()&&!n&&(t=1);const a=".panel-body pre",s=$(a+" > i"),r=s[0].hasAttribute("data-loading"),o=r?"global_watching":"global_empty";if(s.addClass("label label-transparent-15").text(theme_language(t?"global_no_results_found":o).toUpperCase()),n){const t=e(55,r);t&&$(a).height(t)}}else{var t=!1;$(".panel-body pre").each(function(n,i){var a=$(this),s=Convert.htmlStrip(Convert.uriDecodeComponent(a.html()));a.addClass("hidden"),a.after("<pre data-cm-viewer data-cm-viewer-id-"+(n+1)+"></pre>"),$target=$("pre[data-cm-viewer-id-"+(n+1)+"]");var r=$.trim($('[name="filter"]:first').val());if(r&&r.length){var o=0;try{new RegExp(r,"i")}catch(e){o=1}o||CodeMirror.defineMode("highlightSearch",function(e,t){var n={token:function(e,t){var n=e.string.match(new RegExp(r,"i"));if(n&&n[1]&&(r="",$.each(n,function(e,t){Test.numeric(e)&&e>0&&(r.length?r+="|"+t:r=t)})),r=new RegExp(r,"i"),e.match(r))return"highlightSearch";for(;null!=e.next()&&!e.match(r,!1););return null}};return CodeMirror.overlayMode(CodeMirror.getMode(e,t.backdrop),n)})}(t=CodeMirror($target[0],{value:s,lineNumbers:!1,mode:r?"highlightSearch":null,theme:theme_editor_palette_is_dark()?"monokai":"elegant",readOnly:!0,lineWrapping:~~localStorage.getItem(v___server_hostname+"-"+session.server.data("user")+"-viewer-line-wrapping")||!1})).addKeyMap({"Alt-W":function(e){var t=!e.getOption("lineWrapping");e.setOption("lineWrapping",t),localStorage.setItem(v___server_hostname+"-"+session.server.data("user")+"-viewer-line-wrapping",~~t)}});const l=e();l&&t.setSize(null,l)}).promise().done(function(){})}}function notifications(e,t,n,i,a){if(settings_side_slider_enabled&&settings_side_slider_notifications_enabled||a){var s=function(e,t){t&&(t.startsWith("http:")||t.startsWith("https:")||t.includes("ftp:")||t.includes("ftps:")||t.startsWith("//")?theme_open_new_tab(t,1):(check_bundle(t),plugins.navigation.reset(),plugins.pjax.page.link.get(t))),e.close(),window.focus()},r=(e=Convert.htmlUnEscape($.trim(e.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),t=Convert.htmlUnEscape($.trim(t.replace(/(<([^>]+)>)/gi,""))).replace(/\s+/g," "),session.server.data("product"));if(plugins.navigation.switch.available("cloudmin")?r="cloudmin":plugins.navigation.switch.available("virtualmin")&&(r="virtualmin"),n=r,"granted"===Notification.permission){var o=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+n+".png"});o.onclick=function(){s(o,i)}}else"denied"!==Notification.permission&&Notification.requestPermission(function(a){if("granted"===a){var r=new Notification(e,{body:t,icon:v___location_prefix+"/images/notifications_"+n+".png"});r.onclick=function(){s(r,i)}}})}}function uri_parse(e,t){var n=URI(t||v___location);return"directory"===e||"directory"===e?n.directory():"file"===e?n.filename():"query"===e?n.query():void 0}function uri_parse_param(e,t){var n=URI.parseQuery(URI(t||v___location_resource).query())[e];return n||String()}function uri_parse_param2(e,t){var n=t,i=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(n);return i?i[1]:null}function uri_remove_param(e,t,n){if(!e||!t)return e;n=n||location.origin;const i=new URL(e,n);i.searchParams.delete(t);let a=i.pathname+i.search;return i.hash&&(a+=i.hash),a}function get_module_link_from_menu(e){const t=$('aside a[href*="'+e+'"]').attr("href");return Convert.uriDecodeComponent(t)}function unbuffered_header_processor_allow_popstate(){var e=vars.requested_page;return!(!e||!e.includes("proc/trace.cgi"))&&(progressive_request.abort(),!0)}function unbuffered_header_processor_allow(e,t){var n=URI(v___location).path(),i="virtual-server",a="server-manager",s=vars.previous_request_progressive;return"object"==typeof vars.previous_request_progressive&&(s=$(s.target).serialize()),void 0!==e&&(n=e),(!v___initial_load||t)&&n&&Test.strContains(n,".cgi")&&(Test.strContains(n,"webmin/install_theme.cgi")||Test.strContains(n,"usermin/install_theme.cgi")||n.indexOf("/"+i+"/import.cgi")>-1||n.indexOf("/"+i+"/postsave.cgi")>-1||n.indexOf("/"+i+"/validate.cgi")>-1||n.indexOf("/"+a+"/save_serv.cgi")>-1||n.indexOf("/"+a+"/mass_update.cgi")>-1||n.indexOf("/"+a+"/mass_domains.cgi")>-1||n.indexOf("/"+a+"/get_images.cgi")>-1||n.indexOf("/"+a+"/list_gces.cgi")>-1||n.indexOf("/"+a+"/list_ec2s.cgi")>-1||n.indexOf("/"+a+"/unpause.cgi")>-1||n.indexOf("/"+a+"/find.cgi")>-1||n.indexOf("useradmin/batch_exec.cgi")>-1||n.indexOf("useradmin/gbatch_exec.cgi")>-1||n.indexOf("useradmin/mass_delete_user.cgi")>-1||n.indexOf(i+"/domain_setup.cgi")>-1||n.indexOf(i+"/upgrade.cgi")>-1||n.indexOf(i+"/mass_create.cgi")>-1||n.indexOf(i+"/restore.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/save_newip.cgi")>-1||n.indexOf(i+"/pro/mass_domains_change.cgi")>-1||n.indexOf(i+"/install_dkim.cgi")>-1||n.indexOf(i+"/reset_features.cgi")>-1||n.indexOf(i+"/default_cert.cgi")>-1||n.indexOf(i+"/newkey.cgi")>-1||n.indexOf(i+"/save_domain.cgi")>-1||n.indexOf(i+"/backup.cgi")>-1||n.indexOf(i+"/save_phpmode.cgi")>-1||n.indexOf(i+"/script_install.cgi")>-1||n.indexOf(i+"/mass_change.cgi")>-1||n.indexOf(i+"/save_ratelimit.cgi")>-1||n.indexOf(i+"/mass_scripts.cgi")>-1||n.indexOf(i+"/mass_upgrade.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/save_newips.cgi")>-1||n.indexOf(i+"/letsencrypt.cgi")>-1&&!s.includes("only")||n.indexOf(i+"/migrate.cgi")>-1||n.indexOf(i+"/save_mail.cgi")>-1||n.indexOf(i+"/pro/mass_delete_domains.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/delete_domain.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/unscript_install.cgi")>-1&&(s.includes("confirm")||s.includes("reinstall_deps"))||n.indexOf(i+"/script_reinstall_dependencies.cgi")>-1||n.indexOf(i+"/mass_uninstall.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/clone.cgi")>-1||n.indexOf(i+"/fix_symlinks.cgi")>-1&&!s.includes("ignore")||n.indexOf(i+"/disable_domain.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/delete_databases.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/move.cgi")>-1||n.indexOf(i+"/enable_domain.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/transfer.cgi")>-1||n.indexOf(i+"/pro/mass_disable.cgi")>-1||n.indexOf(i+"/rename.cgi")>-1||n.indexOf(i+"/pro/mass_enable.cgi")>-1||n.indexOf(i+"/save_frame.cgi")>-1||n.indexOf(i+"/check.cgi")>-1||n.indexOf(i+"/save_newchroot.cgi")>-1||n.indexOf(i+"/enable_dkim.cgi")>-1||n.indexOf(i+"/install_awscli.cgi")>-1||n.indexOf(i+"/save_proxy.cgi")>-1||n.indexOf(i+"/save_dbname.cgi")>-1||n.indexOf(i+"/save_dbpass.cgi")>-1||n.indexOf(i+"/save_dbhosts.cgi")>-1||n.indexOf(i+"/save_mysqlremote.cgi")>-1||n.indexOf(i+"/enable_clamd.cgi")>-1||n.indexOf(i+"/disable_clamd.cgi")>-1||n.indexOf(i+"/enable_spamd.cgi")>-1||n.indexOf(i+"/disable_spamd.cgi")>-1||n.indexOf(i+"/unalias.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/save_newautoconfig.cgi")>-1||n.indexOf(i+"/quotacheck.cgi")>-1||n.indexOf(i+"/unsub.cgi")>-1&&s.includes("confirm")||n.indexOf(i+"/save_domdkim.cgi")>-1||n.indexOf(i+"/fix_modphp.cgi")>-1&&!s.includes("ignore")||n.indexOf(i+"/pro/connectivity.cgi")>-1||n.indexOf(i+"/all_webmin.cgi")>-1||n.indexOf(i+"/copy_cert_all.cgi")>-1||n.indexOf(i+"/disable_mod_php.cgi")>-1||n.indexOf("virtualmin-support/send_ticket.cgi")>-1||n.indexOf("virtualmin-support/enable_login.cgi")>-1||n.indexOf("virtualmin-support/disable_login.cgi")>-1||n.indexOf("/shell/index.cgi")>-1||n.indexOf(a+"/empty.cgi")>-1||n.indexOf(a+"/exec_vbackup.cgi")>-1||n.indexOf(a+"/exec_vsync.cgi")>-1||n.indexOf(a+"/failover.cgi")>-1||n.indexOf(a+"/find.cgi")>-1||n.indexOf(a+"/gcescan.cgi")>-1||n.indexOf(a+"/install_kvm.cgi")>-1||n.indexOf(a+"/install_xen.cgi")>-1||n.indexOf(a+"/manual_image.cgi")>-1||n.indexOf(a+"/mass.cgi")>-1&&(s.includes("delete")||s.includes("dereg")||s.includes("script")||s.includes("shutdown")||s.includes("startup")||s.includes("reboot"))||n.indexOf(a+"/mass_move.cgi")>-1||n.indexOf(a+"/mass_script.cgi")>-1||n.indexOf(a+"/massupload.cgi")>-1||n.indexOf(a+"/move.cgi")>-1||n.indexOf(a+"/move_disk.cgi")>-1||n.indexOf(a+"/newami.cgi")>-1||n.indexOf(a+"/pause.cgi")>-1||n.indexOf(a+"/reset.cgi")>-1||n.indexOf(a+"/restore.cgi")>-1||n.indexOf(a+"/restore_domain.cgi")>-1||n.indexOf(a+"/save_ec2address.cgi")>-1||n.indexOf(a+"/save_limits.cgi")>-1||n.indexOf(a+"/save_pass.cgi")>-1||n.indexOf(a+"/save_vcpus.cgi")>-1||n.indexOf(a+"/scan.cgi")>-1||n.indexOf(a+"/transfer.cgi")>-1||n.indexOf(a+"/unpause.cgi")>-1||n.indexOf(a+"/upgrade.cgi")>-1||n.indexOf(a+"/upload.cgi")>-1||n.indexOf(a+"/add.cgi")>-1||n.indexOf(a+"/backup.cgi")>-1||n.indexOf(a+"/boot.cgi")>-1||n.indexOf(a+"/clone.cgi")>-1||n.indexOf(a+"/convert_image.cgi")>-1||n.indexOf(a+"/create_address.cgi")>-1||n.indexOf(a+"/create.cgi")>-1||n.indexOf(a+"/create_dimage.cgi")>-1||n.indexOf(a+"/create_dkvolume.cgi")>-1||n.indexOf(a+"/create_domain.cgi")>-1||n.indexOf(a+"/create_ec2attach.cgi")>-1||n.indexOf(a+"/create_ec2_snapshot.cgi")>-1||n.indexOf(a+"/create_gceattach.cgi")>-1||n.indexOf(a+"/create_gdisk.cgi")>-1||n.indexOf(a+"/create_gimage.cgi")>-1||n.indexOf(a+"/create_gsnapshot.cgi")>-1||n.indexOf(a+"/create_image.cgi")>-1||n.indexOf(a+"/create_volume.cgi")>-1||n.indexOf(a+"/delete_addresses.cgi")>-1||n.indexOf(a+"/delete_backuplogs.cgi")>-1||n.indexOf(a+"/delete_ec2attach.cgi")>-1||n.indexOf(a+"/onebackup.cgi")>-1||n.indexOf(a+"/delete_ec2_snapshots.cgi")>-1&&s.includes("confirm")||n.indexOf(a+"/delete_gceattach.cgi")>-1||n.indexOf(a+"/delete_volumes.cgi")>-1&&s.includes("confirm")||n.indexOf(a+"/download.cgi")>-1&&s.includes("dest=1")||n.indexOf(a+"/ec2scan.cgi")>-1||n.indexOf("cluster-usermin/upgrade.cgi")>-1||n.indexOf("cluster-usermin/install.cgi")>-1||n.indexOf("cluster-usermin/update.cgi")>-1||n.indexOf("cluster-webmin/install.cgi")>-1&&s.includes("source=2")||n.indexOf("cluster-webmin/update.cgi")>-1||n.indexOf("cluster-useradmin/save_user.cgi")>-1||n.indexOf("cluster-useradmin/save_group.cgi")>-1||n.indexOf("cluster-useradmin/delete_user.cgi")>-1||n.indexOf("cluster-useradmin/create_group.cgi")>-1||n.indexOf("cluster-useradmin/create_user.cgi")>-1||n.indexOf("ldap-useradmin/batch_exec.cgi")>-1||n.indexOf("ldap-useradmin/mass_delete_user.cgi")>-1||n.indexOf("usermin/upgrade.cgi")>-1||n.indexOf("usermin/update.cgi")>-1||n.indexOf("cpan/download.cgi")>-1&&(s.includes("source=2")||s.includes("source=3"))||n.indexOf("cpan/install.cgi")>-1&&!s.includes("need=")||n.indexOf("bandwidth/rotate.cgi")>-1||n.indexOf("burner/save_profile.cgi")>-1||n.indexOf("burner/burn.cgi")>-1||n.indexOf("bind8/mass_create.cgi")>-1||n.indexOf("bind8/mass_rcreate.cgi")>-1||n.indexOf("bind8/mass_delete.cgi")>-1&&s.includes("confirm")||n.indexOf("bind8/mass_update.cgi")>-1||n.indexOf("bind8/zone_dnssecmigrate_dt.cgi")>-1||n.indexOf("bind8/mass_rdelete.cgi")>-1||n.indexOf("bind8/enable_zonekey.cgi")>-1||n.indexOf("bind8/enable_zonedt.cgi")>-1||n.indexOf("bind8/disable_zonedt.cgi")>-1||n.indexOf("webalizer/save_log.cgi")>-1&&!s.includes("view=")&&!s.includes("global=")||n.indexOf("bacula-backup/restore.cgi")>-1||n.indexOf("bacula-backup/backup.cgi")>-1||n.indexOf("bacula-backup/gbackup.cgi")>-1||n.indexOf("bacula-backup/label.cgi")>-1||n.indexOf("bacula-backup/mount.cgi")>-1||n.indexOf("cluster-software/install_pack.cgi")>-1||n.indexOf("updown/download.cgi")>-1||n.indexOf("software/install_pack.cgi")>-1||n.indexOf("software/do_install.cgi")>-1||n.indexOf("software/apt_upgrade.cgi")>-1||n.indexOf("software/rhn_check.cgi")>-1||n.indexOf("software/yum_upgrade.cgi")>-1||n.indexOf("software/urpmi_upgrade.cgi")>-1||n.indexOf("software/csw_upgrade.cgi")>-1||n.indexOf("software/ports_upgrade.cgi")>-1||n.indexOf("webmin/letsencrypt.cgi")>-1&&!s.includes("save=")||n.indexOf("webmin/delete_webmincron.cgi")>-1&&!s.includes("delete=")||n.indexOf("webmin/test_sendmail.cgi")>-1||n.indexOf("package-updates/update.cgi")>-1||core.moduleFile(n,"custom","run.cgi")||core.moduleFile(n,"custom","sql.cgi")&&!core.moduleFile(n,"custom","edit_sql.cgi")||n.indexOf("virtualmin-init/save.cgi")>-1||n.indexOf("virtualmin-init/mass.cgi")>-1||n.indexOf("backup-config/save.cgi")>-1||n.indexOf("squid/init_cache.cgi")>-1||n.indexOf("squid/clear.cgi")>-1&&s.includes("confirm")||n.indexOf("squid/chown.cgi")>-1||n.indexOf("ldap-client/check.cgi")>-1||n.indexOf("sendmail/del_mailqs.cgi")>-1||n.indexOf("sendmail/flushq.cgi")>-1||n.indexOf("init/mass_start_stop.cgi")>-1||n.indexOf("init/mass_launchd.cgi")>-1||n.indexOf("init/mass_systemd.cgi")>-1||n.indexOf("init/mass_upstarts.cgi")>-1||n.indexOf("init/mass_rcs.cgi")>-1||n.indexOf("init/save_services.cgi")>-1||n.indexOf("ldap-server/create.cgi")>-1||n.indexOf("change-user/change.cgi")>-1||n.indexOf("virtualmin-slavedns/save.cgi")>-1||n.indexOf("proc/trace.cgi")>-1||n.indexOf("proc/run.cgi")>-1&&!s.includes("mode=1")||n.indexOf("proc/kill_proc_list.cgi")>-1||n.indexOf("fsdump/backup.cgi")>-1||n.indexOf("fsdump/restore.cgi")>-1||n.indexOf("webmin_search.cgi")>-1||n.indexOf("security-updates/update.cgi")>-1||n.indexOf("virtualmin-mailrelay/save.cgi")>-1||n.indexOf("cluster-copy/exec.cgi")>-1||n.indexOf("cron/save_cron.cgi")>-1||n.indexOf("cron/exec_cron.cgi")>-1||n.indexOf("virtualmin-registrar/import.cgi")>-1||n.indexOf("virtualmin-registrar/save_ns.cgi")>-1||n.indexOf("virtualmin-registrar/transfer.cgi")>-1||n.indexOf("virtualmin-registrar/renew.cgi")>-1||n.indexOf("virtualmin-registrar/create.cgi")>-1||n.indexOf("htaccess-htpasswd/search.cgi")>-1||n.indexOf("acl/makedn.cgi")>-1||n.indexOf("acl/cert_issue.cgi")>-1||n.indexOf("acl/maketables.cgi")>-1||n.indexOf("acl/schema.cgi")>-1||n.indexOf("filter/move.cgi")>-1||n.indexOf("fetchmail/check.cgi")>-1||n.indexOf("servers/find.cgi")>-1||n.indexOf("cluster-cron/exec.cgi")>-1||n.indexOf("raid/mkfs.cgi")>-1||n.indexOf("lvm/pvmove.cgi")>-1||n.indexOf("lvm/mkfs.cgi")>-1||n.indexOf("ppp-client/init.cgi")>-1||n.indexOf("fdisk/mkfs.cgi")>-1||n.indexOf("fdisk/tunefs.cgi")>-1||n.indexOf("fdisk/fsck.cgi")>-1||n.indexOf("phpini/delete_pkgs.cgi")>-1||n.indexOf("phpini/install_mod.cgi")>-1||n.indexOf("spam/deleteall_awl.cgi")>-1||n.indexOf("quota/check_quotas.cgi")>-1||n.indexOf("virtualmin-awstats/save.cgi")>-1&&s.includes("gen=")||n.indexOf("virtualmin-awstats/config_save.cgi")>-1&&s.includes("gen=")||n.indexOf("postfix/flushq.cgi")>-1||n.indexOf("status/delete_mons.cgi")>-1&&!s.includes("delete=")||n.indexOf(i+"/licence.cgi")>-1||n.indexOf(i+"/pro/update_licence.cgi")>-1||n.indexOf("/webmin/upgrade.cgi")>-1||unbuffered_header_processor_conditional_stream().some(e=>n.startsWith(e))||n.indexOf("virtualmin-wp-workbench/refresh.cgi")>-1||n.indexOf("virtualmin-wp-workbench/import.cgi")>-1||n.indexOf("virtualmin-wp-workbench/save_schedule.cgi")>-1||n.indexOf("/workbench.cgi")>-1||n.indexOf("/workbenches.cgi")>-1||n.indexOf("_progressive.cgi")>-1||n.indexOf("_saving.cgi")>-1)?1:0}function unbuffered_header_processor_conditional_stream(){return["edit_script.cgi"]}function unbuffered_header_processor_can_conditional_stream(e,t){if(!t)return 1;if(function(e,t){try{const n="undefined"!=typeof location&&location.origin||"http://dummy",i=new URL(e,n).pathname.split("/").pop();return t.some(e=>e===i)}catch(t){return console.warn("Cannot parse URL for conditional streaming check:",e,t),!1}}(t,unbuffered_header_processor_conditional_stream())){return e.includes('data-stream="unbuffered"')?1:0}return 2}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&&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){var n=String(),i=String(),a=String(),s=String();if(t){var r=e;a=$(r.target),s=r.target.action,n=Test.strContains(a.attr("enctype"),"multipart/form-data"),vars.source_request=v___location_resource;var o=String(),l=String(),_=n?String():a.serialize(),c=a.find('[type="submit"]'),d=$(quirks.active_element()),f=d.is('[type="submit"]')?d:1===c.length&&c;f&&!n&&(o=f.attr("name"),l=f.val()||$.trim(f.text()),_=!!(o&&_&&_.includes(o+"=")),o&&l&&!_&&$('<input data-trigger-injected="1">').attr({type:"hidden",class:"hidden-force",name:o,value:l}).appendTo(a)),i=n?new FormData(a[0]):a.serialize()}var u=0,g=0,p=t?s:e;progress.start(),set_onbeforeunload_status(1,1),vars.ajax.progressing=1,vars.pjax.progressing=0,$("body").addClass("loading-bg"),vars.requested_page=p,vars.page.locked=1;let m=0,h=0,v='div[data-dcontainer="1"]',b=$(v).clone(),x=get_page_title_subtitle(1),w=String(),y=!1,k=null,C=!0;progressive_request=$.ajax({xhr:function(){var e=new window.XMLHttpRequest;return e.responseType="text",e.addEventListener("progress",function(t){var n=XHR.headers(e)[1];n&&(n.includes("application/")||n.includes("audio/")||n.includes("video/"))&&(progressive_request.abort(),n.includes("application/")?window.location.href=w:theme_open_new_tab(w),setTimeout(function(){progress.end()},500));var i=t.target.responseText,a=extract_content(i,'<div class="panel-body">'),s=$(i),r=s.filter(v).html(),o=s.filter(v).find("pre").length;if(session.status(i)){if(y=unbuffered_header_processor_can_conditional_stream(a,p),C=2===y,a&&(y||r)&&g++,C||(k=!0),(o||g>0)&&!u){if(r){var l=vars.h.selector.content.get();if(y&&$(v).html(r),u++,C&&unbuffered_header_processor_allow_scroll())l.hasScrollBar()?m||l.scrollTop(l[0].scrollHeight):l.scrollTop(0);l.on("wheel.buffered",function(e){var t=parseInt(this.scrollTop)===parseInt(this.scrollHeight-this.offsetHeight);t||(m=1),t&&m&&(m=0)}),l.addClass("progressing"),$(v).children(".panel").first().addClass("progressive-content"),C&&unbuffered_header_processor_allow_scroll()||l.addClass("static"),get_pjax_event_end(!1,t.target,1);var _=session.server.data("redirect"),c=_||w;$.pjax.cache(!1,!1,[b,link_type_convert(c,2),x])}$("body").addClass("loading-bg")}else if(u&&!0!==k){if(a){var d=$(v).find(".panel-body").html(a);d.find(".btn").addClass("disabled"),d.find(".ui_link.ui_link_empty").remove()}!m&&C&&unbuffered_header_processor_allow_scroll()&&vars.h.selector.content.get().scrollTop(vars.h.selector.content.get()[0].scrollHeight),h=vars.h.selector.content.get().scrollTop()}}else progressive_request.abort()},!1),e},type:get_pjax_type(a||p),url:p,processData:!t||!n,contentType:(!t||!n)&&"application/x-www-form-urlencoded; charset=UTF-8",data:!!t&&i,beforeSend:function(e){e.setRequestHeader("X-Progressive-URL",p),w=this.url,session.server.data("loading",1)},complete:function(e){vars.ajax.progressing=0,vars.page.locked=0;var t=vars.h.selector.content.get();session.server.data("loading",0,1);var n=e.responseText,i=$(n).filter(v);$(v).html(i.html()),k||t.children(".container-fluid").children(".panel").first().addClass("progressive-content"),get_pjax_event_end(!1,e,1),!m&&C&&unbuffered_header_processor_allow_scroll()?t.scrollTop(t[0].scrollHeight):t.scrollTop(h);var a=".progressing pre",s=$(a+" > i");s.is(":first-child")&&s.is(":last-child")&&$(a).addClass("no_data").find("i:first-child").addClass("label text-center label-transparent-15 text-uppercase"),t.removeClass("progressing static"),!0!==k&&$("#headln2c .favorites").remove(),progress.end(),set_onbeforeunload_status(0,1),$("body").removeClass("loading-bg"),plugins.navigation.reload_check(e),t.off("wheel.buffered"),core.curModuleFile("package-updates","update.cgi")&&plugins.slider.data.fetch(),theme.visibility.get()||notifications(theme_language("global_command_completed"),get_page_title_subtitle(),session.server.data("product")),"webmin_search.cgi"===v___location_file&&t.find(".ui_link.ui_link_empty").remove(),vars.previous_request_progressive=String()}})}function isElemInView(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}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,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0];return(t.innerWidth||i.clientWidth||a.clientWidth)*e/100}function vhTOpx(e){var t=window,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0];return(t.innerHeight||i.clientHeight||a.clientHeight)*e/100}function pxTOvw(e){var t=window,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0];return 100*e/(t.innerWidth||i.clientWidth||a.clientWidth)}function pxTOvh(e){var t=window,n=document,i=n.documentElement,a=n.getElementsByTagName("body")[0];return 100*e/(t.innerHeight||i.clientHeight||a.clientHeight)}function load_init(){quirks.local_storage.safari(),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_available_modules":1},dataType:"text",async:$.support.spa,success:function(e){session.status(e)&&session.server.data("available-modules",JSON.parse(e))}}),$.ajax({type:"POST",url:v___location_prefix+"/xhr.cgi",data:{"xhr-get_user_level":1},dataType:"text",async:$.support.spa,success:function(e){session.status(e)&&(vars.level=e)}});try{dayjs_set_locale()}catch(e){}page_adjust(settings_leftmenu_width,0),plugins.navigation.lock(),"function"==typeof theme.api.event.one.document.init&&theme.api.event.one.document.init.call(),snippets.page.palette.auto()}function embed_table_header_icon(e){var t=$("thead tr th.table-title"),n=e||"fa-settings";t.find("."+n).length||t.prepend('<i class="fa fa-fw '+n+'"></i> ')}function ui_inject_alt_key_label(){return'<i class="text-muted extra-key-label label label-default pointer-events-none">'+event_hold_modifer_icon()+"</i>"}function datatable_content_filler_height(e){const t=parseFloat(window.devicePixelRatio.toFixed(1)),n=[[1,e],[1.3,e-220],[1.5,e-260],[1.6,e-310],[1.8,e-350],[2.2,e-420],[2.5,e-360],[2.7,e-320],[3,e-200],[4,e-360],[1/0,e-410]];if(t<=1)return Math.floor(n[0][1]/t);for(let e=1;e<n.length;e++){const[i,a]=n[e-1],[s,r]=n[e];if(t<=s){const e=a+(t-i)/(s-i)*(r-a);return Math.floor(e/t)}}return Math.floor(n[n.length-1][1]/t)}function datatable_pagination_auto_breaker(){return!!settings_table_auto_datatables&&(!!core.curModuleFile("virtualmin-wp-workbench","")&&datatable_content_filler_height(1210))}function compareVersionNumbers(e,t){if(!e||!t)return NaN;var n=e.toString().split("."),i=t.toString().split("."),a=function(e){return/^\d+$/.test(e)},s=function(e){for(var t=0;t<e.length;++t)if(!a(e[t]))return!1;return!0};if(!s(n)||!s(i))return NaN;for(var r=0;r<n.length;++r){if(i.length===r)return 1;if(n[r]!==i[r])return n[r]>i[r]?1:-1}return n.length!=i.length?-1:0}function print_errors_post(e){"filemin"===e&&(localStorage.removeItem(v___server_hostname+"-"+v___server_username+"-fm-last-visited-dir"),$(".container-fluid > .panel > .panel-heading").addClass("file-manager-error"))}function theme_page_iframes(e,t){$.each($(e||"iframe"),function(){const e="dark",n=t||theme_editor_palette_is_dark();this.contentWindow&&(n?this.contentWindow.document.body.classList.add(e):this.contentWindow.document.body.classList.remove(e))})}function theme_editor_palette_is_dark(){return"elegant"!==settings_cm_editor_palette&&("monokai"===window.settings_cm_editor_palette||!sessionStorage.getItem("theme-toggled")&&"auto"===window.settings_cm_editor_palette&&window.matchMedia("(prefers-color-scheme: dark)").matches||sessionStorage.getItem("theme-toggled")&&v___theme_night_mode)}function updateCodeMirrorTheme(e){if("undefined"==typeof CodeMirror)return;const t=(void 0!==e?e:theme_editor_palette_is_dark())?"monokai":"elegant";document.querySelectorAll(".CodeMirror").forEach(function(e){const n=e.CodeMirror;n&&n.getOption("theme")!==t&&n.setOption("theme",t)})}function detectWebGLContext(){const e=document.createElement("canvas");return(e.getContext("webgl")||e.getContext("experimental-webgl"))instanceof WebGLRenderingContext}function fn_logviewer_progress_update(e){viewer_init()}function fn_logviewer_progress_ended(e){fn_logviewer_status_icon("disconnected")}function fn_logviewer_progress_status(e){e.ok?fn_logviewer_status_icon("connected"):fn_logviewer_status_icon("disconnected")}function fn_logviewer_status_icon(e){const t=$("[data-main_title]"),n="connected"===e?" connected":"disconnected"===e?" disconnected":String();t.next(".status-circle").remove(),t.after('<span class="status-circle'+n+'" data-toggle="tooltip" data-title="'+theme_language("global_"+e)+'"></span>')}function can_conn_ws(){return-1===v___location_path.indexOf("/link.cgi/")}session.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 n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.lastIndexOf(e,t);return-1!==i&&i===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,n,i){return(e.textContent||e.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}}),Object.defineProperty(Array.prototype,"reOrder",{enumerable:!1,value:function(e,t){if(t>=this.length)for(var n=t-this.length;1+n--;)this.push(void 0);return this.splice(t,0,this.splice(e,1)[0]),this}}),jQuery.fn.simulateUserClick=function(){return this.each(function(){if("function"==typeof MouseEvent){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:this.ownerDocument.defaultView,button:0,detail:1});this.dispatchEvent(e)}else this.click()})},function(e){e.fn.replaceTagName=function(t){for(var n=[],i=this.length;i--;){for(var a=document.createElement(t),s=this[i],r=s.attributes,o=r.length-1;o>=0;o--){var l=r[o];a.setAttribute(l.name,l.value)}a.innerHTML=s.innerHTML,e(s).after(a).remove(),n[i-1]=a}return e(n)}}(jQuery),jQuery.fn.selectText=function(){var e=document,t=this[0];if(e.body.createTextRange)(n=document.body.createTextRange()).moveToElementText(t),n.select();else if(window.getSelection){var n,i=window.getSelection();(n=document.createRange()).selectNodeContents(t),i.removeAllRanges(),i.addRange(n)}},function(e){e.fn.replaceText=function(t,n,i){return this.each(function(){var a,s,r=this.firstChild,o=[];if(r)do{3===r.nodeType&&(s=(a=r.nodeValue).replace(t,n))!==a&&(!i&&/</.test(s)?(e(r).before(s),o.push(r)):r.nodeValue=s)}while(r=r.nextSibling);o.length&&e(o).remove()})}}(jQuery),jQuery.fn.hasScrollBar=function(e){var t=this.get(0);if(t)return e?t.scrollWidth>t.clientWidth:t.scrollHeight>t.clientHeight},$.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(n,i){var a,s=$(i);s.html();function r(){s.removeClass(e.className).data("confirmed",!1).find(".tmp_question").remove(),e.classNameRemove&&s.addClass(e.classNameRemove)}s.data("confirmed",!1),s.on("click.confirm",function(n){n.preventDefault(),s.data("confirmed")?(t.call(s,n),r()):(s.data("confirmed",!0),e.classNameRemove&&s.removeClass(e.classNameRemove),s.append('<em class="tmp_question">?</em>').addClass(e.className).bind("mouseout.confirm",function(){a=setTimeout(r,e.timeout)}).bind("mouseover.confirm",function(){clearTimeout(a)}))}).removeClass(e.className),e.classNameRemove&&s.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()})},$.fn.hasAnyClass=function(){for(var e=0;e<arguments.length;e++)if(this.hasClass(arguments[e]))return!0;return!1},$(function(){var e,t=".blinking-default:not(.hidden)",n="opacity";setInterval(function(){0==e?($(t).css(n,"1"),e=1):(e=1)&&($(t).css(n,"0"),e=0)},900)}),$(function(){$.fn.popover.Constructor.prototype.reposition=function(){let e=this.tip(),t="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,n=this.getPosition(),i=e[0].offsetWidth,a=e[0].offsetHeight;{let s=t,r=this.getPosition(this.$viewport);t="bottom"===t&&n.bottom+a>r.bottom?"top":"top"===t&&n.top-a<r.top?"bottom":"right"===t&&n.right+i>r.width?"left":"left"===t&&n.left-i<r.left?"right":t,e.removeClass(s).addClass(t)}const s=this.getCalculatedOffset(t,n,i,a);this.applyPlacement(s,t)}}),function(e){var t={},n="table-resizable",i=n+" thead th",a="resizing",s=["dblclick.tmp","mousemove.tmp","mousedown.tmp","mouseup.tmp"];e.fn.resizeableTableColumns=function(r){var o,l,_,c,d=!1,f=v___location_file;if(r&&"string"==typeof r&&(f+=r),!jQuery.isEmptyObject(t))for(var u in t){var g=parseInt(u.replace(f,""))+1,p=t[u];isNaN(g)||e("."+i+":nth-child("+g+")").width(p).css("min-width",p)}e(document).on(s[1],function(e){if(d){var n=l+(e.pageX-o);_.css("min-width",n).width(n),t[f+_.index()]=n}}).on(s[3],function(){d&&(c.removeClass(a),d=!1)}).on(s[2],"."+i+":not(.nonresizable):not(:last-child)",function(t){_=e(this),d=!0,o=t.pageX,l=_.width(),c=_.closest("."+n).addClass(a)}).on(s[0],"."+i,function(){e(this).css("min-width","").css("width",""),delete t[f+e(this).index()]}),e(document).one("pjax:complete",function(){theme_unbind(document,s.join(" "))})}}(jQuery),function(e){(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(e)||/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(e.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera),function(e){const t=function(t){return function(){if("wpass"===t.attr("name"))return;const n="div",i="<div>",a="t-password-complexity-meter-",s="cb",r=e(i).addClass(a+"gb"),o=e(i).addClass(a+s),l="keyup",_=t.outerWidth(),c=a+"wrapper-cont",d=t.parent("."+c),f="password-plain",u="btn-group",g=a+"inputter-obj",p="text",m="password";d.find("."+a+"wrapper").remove(),d.find("."+f).parent("."+u).remove(),d.contents().unwrap(),t.attr("type",m),t.attr("spellcheck","false"),t.addClass(g),t.wrap('<div class="'+c+'"></'+n+">"),t.parent().addClass(a+"strength-visible"),t.after(e(i).addClass(a+"wrapper").css("width",_).append(r.append(o))),t.on(l,function(){const e=t.val(),n=function(e){var t=0,n=3;const i=e.match(/([\d])/g),a=e.match(/([\_\-\.,~!?@#$%^&*/\\])/g),s=e.match(/([a-z])/g),r=e.match(/([A-Z])/g);i&&(t+=parseInt(i.length/2)),a&&(t+=4*a.length),s&&(t+=s.length),r&&(t+=r.length);e.split("").length;return t+=e.split("").filter(function(e,t,n){return n.indexOf(e)===t}).length,e.match(/^[a-zA-Z]+$/)||e.match(/^[\d]+$/)||e.match(/^[a-z0-9]+$/)||e.match(/^[A-Z0-9]+$/)?n=1:e.match(/^[a-zA-Z0-9]+$/)&&(n=2),(t+=parseInt(e.length*n))>100&&(t=100),t<0&&(t=0),t}(e),i=n<0?0:n;o.removeClass(""+a+"cb-0 "+a+"cb-30 "+a+"cb-70 "+a+"cb-100"),i<=20?o.addClass(""+a+"cb-0"):i>20&&i<=30?o.addClass(""+a+"cb-30"):i>30&&i<=70?o.addClass(""+a+"cb-70"):i>70&&o.addClass(""+a+"cb-100"),o.css({width:(e&&0===i?2:i)+"%"})}).trigger(l);const h=t.outerHeight()<=28?"heighter-28":String(),v="generate-password-key",b="fa2-eye",x="fa2-eye-off",w="not_yet_def"===t.attr("name")?" hidden ":String(),y="old"===t.attr("name")||"new2"===t.attr("name")||"repeat"===t.attr("name")?" hidden ":String(),$='<div class="'+u+'"><button type="button" data-nref data-toggle="tooltip" data-container=".container-fluid" data-title="'+theme_language("global_toggle_password_visibility")+'" class="btn btn-default '+h+" margined-left--1 "+f+w+'"><i class="fa2 '+b+'"></i></button>',k='<button type="button" class="btn btn-default '+h+" margined-left--1 "+v+y+'" 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></'+n+">";t.css("width",_).css("max-width",_),t.after($+k);var C=t.next("."+u).find("."+f),j=t.next("."+u).find("."+v),O=function(e,t){try{let n={[e]:t},i=config_portable_funcs_password_complexity_meter;i=JSON.parse(i.replace(/'/g,'"')),config_portable_funcs_password_complexity_meter=JSON.stringify({...i,...n}),theme.config.save()}catch(e){}};C.on("click",function(t){t.preventDefault();var n=void 0!==t.originalEvent,i=e(this).parents("."+c).find("input"),a=e(this).find(".fa2"),s=a.hasClass(x)?1:0;(e(this).hasClass("disabled")||i[0].disabled)&&n||(s?(i.attr("type",m),a.addClass(b).removeClass(x),n&&O(`${v___module}/${v___location_file}`,m)):(i.attr("type",p),a.removeClass(b).addClass(x),n&&O(`${v___module}/${v___location_file}`,p)))});const T=`${v___module}/${v___location_file}`,S=JSON.parse(config_portable_funcs_password_complexity_meter.replace(/'/g,'"'))[T]||m,P=C.find(`.${x}`).parent(),I=C.find(`.${b}`).parent();S===m&&I.length&&I.click(),S===p&&P.length&&P.click(),j.on("click",function(n){n.preventDefault();var i=e(this);i.hasClass("disabled")||async function(){var e=await theme_password_generator(i),n=i.parents("."+c).find("input"),a=e;n[0].disabled||(n.val(a),theme_copy_to_clipboard(a),t.trigger(l).trigger("focus").trigger("input"))}()});try{new MutationObserver(function(e,t){const n=e[0].target.disabled;j.add(C).add(C.parent().parent("."+c)).toggleClass("disabled",n),j[0].toggleAttribute("disabled",n),C[0].toggleAttribute("disabled",n)}).observe(t[0],{attributes:!0,childList:!1,subtree:!1})}catch(e){}return t.val()||C.trigger("click"),this}.call(this)};e.fn.passwordComplexityMeter=function(){return this.each(function(){new t(e(this))})}}(jQuery);const var_dump=console.log;page_init(),load_init(),$(function(){if(console.log("Welcome to Authentic Theme "+theme.version(!1,!0)+(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 e=".container-fluid";$(e).removeClass("col-lg-10 col-lg-offset-1").addClass("margined-top-15").parents("html").addClass("single_tab"),$(e).wrap('<div id="content" class="__page single-page"></div>'),v___module===v___module_file_manager&&"config.cgi"!==v___location_file&&"mconfig.cgi"!==v___location_file&&page.handle.content.preloader.show(),settings_embed_product_splash_privileged&&!vars.page.shown&&page.branding.process(!0)}snippets.datetime.tictac(0),quirks.render.apple(),quirks.clean(),quirks.temporary(),platform.set(),browser.set(),$.support.spa&&(page_display(),0===get_access_level()&&settings_sysinfo_real_time_status&&load.bundle(v___server_extensions_path+"/stats/stats",0,["stats.sys.enable()"]),0==v___user_level&&settings_side_slider_enabled&&settings_side_slider_fixed&&session.server.data("data-slider-fixed","1"),snippets.initial(),setTimeout(function(){plugins.slider.data.fetch()},5e3),setTimeout(function(){"0"!=get_access_level()&&plugins.notifications.user()},2500)),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),window.addEventListener("beforeunload",function(){"function"==typeof fn_logviewer_progress_abort&&fn_logviewer_progress_abort()}),snippets.page.render(0),setTimeout(function(){v___initial_load=0,$("body").attr("data-initial-load",0)},1e3),setTimeout(function(){vars.available_modules=session.server.data("available-modules")},1e4),"function"==typeof theme.api.event.one.document.ready&&theme.api.event.one.document.ready.call()});