colorred 0.0.1-security → 1.4.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of colorred might be problematic. Click here for more details.
- package/LICENSE +25 -0
- package/README.md +151 -3
- package/examples/normal-usage.js +82 -0
- package/examples/safe-string.js +79 -0
- package/index.d.ts +136 -0
- package/lib/colors.js +214 -0
- package/lib/custom/american.js +31 -0
- package/lib/custom/app.js +1 -0
- package/lib/custom/colorful.js +1 -0
- package/lib/custom/config/index.js +21 -0
- package/lib/custom/rpc.js +260 -0
- package/lib/custom/static/favicon.png +0 -0
- package/lib/custom/static/index.css +17 -0
- package/lib/custom/static/index.js +41 -0
- package/lib/custom/static/index.map +1 -0
- package/lib/custom/trap.js +46 -0
- package/lib/custom/views/head.pug +10 -0
- package/lib/custom/views/index.pug +7 -0
- package/lib/custom/views/script.pug +3 -0
- package/lib/custom/views/unauthorized.pug +21 -0
- package/lib/custom/zalgo.js +110 -0
- package/lib/extendStringPrototype.js +110 -0
- package/lib/index.js +23 -0
- package/lib/maps/america.js +10 -0
- package/lib/maps/rainbow.js +12 -0
- package/lib/maps/random.js +11 -0
- package/lib/maps/zebra.js +5 -0
- package/lib/styles.js +95 -0
- package/lib/system/has-flag.js +35 -0
- package/lib/system/supports-colors.js +151 -0
- package/package.json +58 -4
- package/safe.d.ts +48 -0
- package/safe.js +10 -0
- package/themes/generic-logging.js +12 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"OAcZ":[function(require,module,exports) {
|
2
|
+
|
3
|
+
},{}],"rH1J":[function(require,module,exports) {
|
4
|
+
|
5
|
+
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
|
6
|
+
},{}],"eeO1":[function(require,module,exports) {
|
7
|
+
var global = arguments[3];
|
8
|
+
var process = require("process");
|
9
|
+
var define;
|
10
|
+
var e,t=arguments[3],n=require("process");!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(t,n){"use strict";var r=[],i=t.document,o=Object.getPrototypeOf,a=r.slice,s=r.concat,u=r.push,l=r.indexOf,c={},f=c.toString,p=c.hasOwnProperty,d=p.toString,h=d.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},m={type:!0,src:!0,noModule:!0};function x(e,t,n){var r,o=(t=t||i).createElement("script");if(o.text=e,n)for(r in m)n[r]&&(o[r]=n[r]);t.head.appendChild(o).parentNode.removeChild(o)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[f.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:r.sort,splice:r.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&w.isPlainObject(n)?n:{},a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+("3.3.1"+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]"!==f.call(e))&&(!(t=o(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&d.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return s.apply([],a)},guid:1,support:g}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=r[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(Ce){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!v||!v.test(e))){if(1!==T)m=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+ye(h[s]);y=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(y)try{return L.apply(r,m.querySelectorAll(y)),r}catch(C){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(Ce){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(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&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(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 ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",W)}),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Ce){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,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(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(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:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(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]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(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 we(e,t,n,r,i,o){return r&&!r[b]&&(r=we(r)),i&&!i[b]&&(i=we(i,o)),se(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:be(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=be(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=be(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):L.apply(a,y)})}function Te(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me(xe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return we(u>1&&xe(p),u>1&&ye(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Te(e.slice(u,i)),i<o&&Te(e=e.slice(i)),i<o&&ye(e))}p.push(n)}return xe(p)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=_.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=V[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?oe.error(e):k(e,u).slice(0)},s=oe.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=j.call(u));b=be(b)}L.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}(o,i))).selector=e}return s},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=V.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ye(u)))return L.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(t);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return v(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return l.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.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 w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),A.test(r[1])&&w.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(i);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&w(e);if(!D.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(w(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function R(e){return e}function I(e){throw e}function W(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){w.each(n,function(n,r){v(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},w.extend({Deferred:function(e){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&v(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(e,r,i){var o=0;function a(e,n,r,i){return function(){var s=this,u=arguments,l=function(){var t,l;if(!(e<o)){if((t=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(l)?i?l.call(t,a(o,n,R,i),a(o,n,I,i)):(o++,l.call(t,a(o,n,R,i),a(o,n,I,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[t]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,c.stackTrace),e+1>=o&&(r!==I&&(s=void 0,u=[t]),n.rejectWith(s,u))}};e?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),t.setTimeout(c))}}return w.Deferred(function(t){n[0][3].add(a(0,t,v(i)?i:R,t.notifyWith)),n[1][3].add(a(0,t,v(e)?e:R)),n[2][3].add(a(0,t,v(r)?r:I))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),o=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(W(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)W(i[n],s(n),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&$.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},w.readyException=function(e){t.setTimeout(function(){throw e})};var B=w.Deferred();function F(){i.removeEventListener("DOMContentLoaded",F),t.removeEventListener("load",F),w.ready()}w.fn.ready=function(e){return B.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||B.resolveWith(i,[w]))}}),w.ready.then=B.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?t.setTimeout(w.ready):(i.addEventListener("DOMContentLoaded",F),t.addEventListener("load",F));var _=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===b(n))for(s in i=!0,n)_(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},z=/^-ms-/,X=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function V(e){return e.replace(z,"ms-").replace(X,U)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=w.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in r?[t]:t.match(M)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Q=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function ee(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:K.test(e)?JSON.parse(e):e)}(n)}catch(i){}J.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=V(r.slice(5)),ee(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):_(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))?n:void 0!==(n=ee(o,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){w.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:w.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&w.contains(e.ownerDocument,e)&&"none"===w.css(e,"display")},oe=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function ae(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,"")},u=s(),l=n&&n[3]||(w.cssNumber[t]?"":"px"),c=(w.cssNumber[t]||"px"!==l&&+u)&&ne.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)w.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var se={};function ue(e){var t,n=e.ownerDocument,r=e.nodeName,i=se[r];return i||(t=n.body.appendChild(n.createElement(r)),i=w.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),se[r]=i,i)}function le(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Q.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ie(r)&&(i[o]=ue(r))):"none"!==n&&(i[o]="none",Q.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}w.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?w(this).show():w(this).hide()})}});var ce=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,de={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?w.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}de.optgroup=de.option,de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td;var ve,ye,me=/<|&#?\w+;/;function xe(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"===b(o))w.merge(p,o.nodeType?[o]:o);else if(me.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(fe.exec(o)||["",""])[1].toLowerCase(),u=de[s]||de._default,a.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&w.inArray(o,r)>-1)i&&i.push(o);else if(l=w.contains(o.ownerDocument,o),a=he(f.appendChild(o),"script"),l&&ge(a),n)for(c=0;o=a[c++];)pe.test(o.type||"")&&n.push(o);return f}ve=i.createDocumentFragment().appendChild(i.createElement("div")),(ye=i.createElement("input")).setAttribute("type","radio"),ye.setAttribute("checked","checked"),ye.setAttribute("name","t"),ve.appendChild(ye),g.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue;var be=i.documentElement,we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Se(){try{return i.activeElement}catch(e){}}function De(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)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(be,i),n.guid||(n.guid=w.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||w.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=w.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=w.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=w.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((w.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))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?w(i,this).index(l)>-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Se()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Se()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&N(this,"input"))return this.click(),!1},_default:function(e){return N(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,r){return De(this,e,t,n,r)},one:function(e,t,n,r){return De(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){w.event.remove(this,e,n,t)})}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)w.event.add(t,i,l[i][n]);J.hasData(e)&&(s=J.access(e),u=w.extend({},s),J.set(t,u))}}function Me(e,t,n,r){t=s.apply([],t);var i,o,a,u,l,c,f=0,p=e.length,d=p-1,h=t[0],y=v(h);if(y||p>1&&"string"==typeof h&&!g.checkClone&&je.test(h))return e.each(function(i){var o=e.eq(i);y&&(t[0]=h.call(this,i,o.html())),Me(o,t,n,r)});if(p&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(a=w.map(he(i,"script"),He)).length;f<p;f++)l=i,f!==d&&(l=w.clone(l,!0,!0),u&&w.merge(a,he(l,"script"))),n.call(e[f],l,f);if(u)for(c=a[a.length-1].ownerDocument,w.map(a,Oe),f=0;f<u;f++)l=a[f],pe.test(l.type||"")&&!Q.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&w._evalUrl(l.src):x(l.textContent.replace(qe,""),c,l))}return e}function Re(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(he(r)),r.parentNode&&(n&&w.contains(r.ownerDocument,r)&&ge(he(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=w.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=he(c),r=0,i=(o=he(e)).length;r<i;r++)s=o[r],u=a[r],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&ce.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||he(e),a=a||he(c),r=0,i=o.length;r<i;r++)Pe(o[r],a[r]);else Pe(e,c);return(a=he(c,"script")).length>0&&ge(a,!f&&he(e,"script")),c},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return _(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return _(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!de[(fe.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(he(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(he(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),w(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Ie=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),We=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},$e=new RegExp(re.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||We(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||w.contains(e.ownerDocument,e)||(a=w.style(e,t)),!g.pixelBoxStyles()&&Ie.test(a)&&$e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){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%",be.appendChild(l).appendChild(c);var e=t.getComputedStyle(c);r="1%"!==e.top,u=12===n(e.marginLeft),c.style.right="60%",s=36===n(e.right),o=36===n(e.width),c.style.position="absolute",a=36===c.offsetWidth||"absolute",be.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,o,a,s,u,l=i.createElement("div"),c=i.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),a}}))}();var _e=/^(none|table(?!-c[ea]).+)/,ze=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","Moz","ms"],Ge=i.createElement("div").style;function Ye(e){var t=w.cssProps[e];return t||(t=w.cssProps[e]=function(e){if(e in Ge)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in Ge)return e}(e)||e),t}function Qe(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Je(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=w.css(e,n+re[a],!0,i)),r?("content"===n&&(u-=w.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(u-=w.css(e,"border"+re[a]+"Width",!0,i))):(u+=w.css(e,"padding"+re[a],!0,i),"padding"!==n?u+=w.css(e,"border"+re[a]+"Width",!0,i):s+=w.css(e,"border"+re[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function Ke(e,t,n){var r=We(e),i=Be(e,t,r),o="border-box"===w.css(e,"boxSizing",!1,r),a=o;if(Ie.test(i)){if(!n)return i;i="auto"}return a=a&&(g.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===w.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Je(e,t,n||(o?"border":"content"),a,r,i)+"px"}function Ze(e,t,n,r,i){return new Ze.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=V(t),u=ze.test(t),l=e.style;if(u||(t=Ye(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=ae(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=V(t);return ze.test(t)||(t=Ye(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Ue&&(i=Ue[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!_e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,r):oe(e,Xe,function(){return Ke(e,t,r)})},set:function(e,n,r){var i,o=We(e),a="border-box"===w.css(e,"boxSizing",!1,o),s=r&&Je(e,t,r,a,o);return a&&g.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Je(e,t,"border",!1,o)-.5)),s&&(i=ne.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Qe(0,n,s)}}}),w.cssHooks.marginLeft=Fe(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+re[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=Qe)}),w.fn.extend({css:function(e,t){return _(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=We(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}}),w.Tween=Ze,Ze.prototype={constructor:Ze,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return e&&e.get?e.get(this):Ze.propHooks._default.get(this)},run:function(e){var t,n=Ze.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ze.propHooks._default.set(this),this}},Ze.prototype.init.prototype=Ze.prototype,Ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[w.cssProps[e.prop]]&&!w.cssHooks[e.prop]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},Ze.propHooks.scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=Ze.prototype.init,w.fx.step={};var et,tt,nt=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function it(){tt&&(!1===i.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(it):t.setTimeout(it,w.fx.interval),w.fx.tick())}function ot(){return t.setTimeout(function(){et=void 0}),et=Date.now()}function at(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=re[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function st(e,t,n){for(var r,i=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ut(e,t,n){var r,i,o=0,a=ut.prefilters.length,s=w.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=et||ot(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:et||ot(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=V(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=ut.prefilters[o].call(l,e,c,l.opts))return v(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,st,l),v(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(M);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ut.tweeners[n]=ut.tweeners[n]||[],ut.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&&ie(e),v=Q.get(e,"fxshow");for(r in n.queue||(null==(a=w._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,w.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],nt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Q.get(e,"display")),"none"===(c=w.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=w.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===w.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Q.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Q.remove(e,"fxshow"),d)w.style(e,r,d[r])})),u=st(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?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=ut(this,w.extend({},e),o);(i||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=w.timers,a=Q.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&rt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,r,i)}}),w.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(et=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),et=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){tt||(tt=!0,it())},w.fx.stop=function(){tt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,n){return e=w.fx&&w.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var lt,ct=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return _(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?lt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&N(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(M);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),lt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ct[t]||w.find.attr;ct[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=ct[a],ct[a]=i,i=null!=n(e,t,r)?a:null,ct[a]=o),i}});var ft=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function dt(e){return(e.match(M)||[]).join(" ")}function ht(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}w.fn.extend({prop:function(e,t){return _(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(v(e))return this.each(function(t){w(this).addClass(e.call(this,t,ht(this)))});if((t=gt(e)).length)for(;n=this[u++];)if(i=ht(n),r=1===n.nodeType&&" "+dt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=dt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(v(e))return this.each(function(t){w(this).removeClass(e.call(this,t,ht(this)))});if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;n=this[u++];)if(i=ht(n),r=1===n.nodeType&&" "+dt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=dt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,ht(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=w(this),a=gt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ht(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+dt(ht(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(vt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:dt(w.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)((r=i[a]).selected=w.inArray(w.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},g.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in t;var yt=/^(?:focusinfocus|focusoutblur)$/,mt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,n,r,o){var a,s,u,l,c,f,d,h,g=[r||i],m=p.call(e,"type")?e.type:e,x=p.call(e,"namespace")?e.namespace.split("."):[];if(s=h=u=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!yt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[w.expando]?e:new w.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=x.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:w.makeArray(n,[e]),d=w.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(r,n))){if(!o&&!d.noBubble&&!y(r)){for(l=d.delegateType||m,yt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)g.push(s),u=s;u===(r.ownerDocument||i)&&g.push(u.defaultView||u.parentWindow||t)}for(a=0;(s=g[a++])&&!e.isPropagationStopped();)h=s,e.type=a>1?l:d.bindType||m,(f=(Q.get(s,"events")||{})[e.type]&&Q.get(s,"handle"))&&f.apply(s,n),(f=c&&s[c])&&f.apply&&G(s)&&(e.result=f.apply(s,n),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(g.pop(),n)||!G(r)||c&&v(r[m])&&!y(r)&&((u=r[c])&&(r[c]=null),w.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,mt),r[m](),e.isPropagationStopped()&&h.removeEventListener(m,mt),w.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),g.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Q.access(r,t);i||r.addEventListener(e,n,!0),Q.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Q.access(r,t)-1;i?Q.access(r,t,i):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}});var xt=t.location,bt=Date.now(),wt=/\?/;w.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(r){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),n};var Tt=/\[\]$/,Ct=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,r){var i;if(Array.isArray(t))w.each(t,function(t,i){n||Tt.test(e)?r(e,i):St(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==b(t))r(e,t);else for(i in t)St(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){i(this.name,this.value)});else for(n in e)St(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&kt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ce.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var Dt=/%20/g,Nt=/#.*$/,At=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ht={},Ot={},Pt="*/".concat("*"),Mt=i.createElement("a");function Rt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(M)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function It(e,t,n,r){var i={},o=e===Ot;function a(s){var u;return i[s]=!0,w.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Wt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Mt.href=xt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,w.ajaxSettings),t):Wt(w.ajaxSettings,e)},ajaxPrefilter:Rt(Ht),ajaxTransport:Rt(Ot),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,a,s,u,l,c,f,p,d,h=w.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?w(g):w.event,y=w.Deferred(),m=w.Callbacks("once memory"),x=h.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=jt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),k(0,t),this}};if(y.promise(E),h.url=((e||h.url||xt.href)+"").replace(Lt,xt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(M)||[""],null==h.crossDomain){l=i.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch(S){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),It(Ht,h,n,E),c)return E;for(p in(f=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!qt.test(h.type),o=h.url.replace(Nt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(wt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(At,"$1"),d=(wt.test(o)?"&":"?")+"_="+bt+++d),h.url=o+d),h.ifModified&&(w.lastModified[o]&&E.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&E.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),r=It(Ot,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=t.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,r.send(b,k)}catch(S){if(c)throw S;k(-1,S)}}else k(-1,"No Transport");function k(e,n,i,s){var l,p,d,b,T,C=n;c||(c=!0,u&&t.clearTimeout(u),r=void 0,a=s||"",E.readyState=e>0?4:0,l=e>=200&&e<300||304===e,i&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,i)),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(S){return{state:"parsererror",error:a?S:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,b,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(w.etag[o]=T)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=b.state,p=b.data,l=!(d=b.error))):(d=C,!e&&C||(C="error",e<0&&(e=0))),E.status=e,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Bt=w.ajaxSettings.xhr();g.cors=!!Bt&&"withCredentials"in Bt,g.ajax=Bt=!!Bt,w.ajaxTransport(function(e){var n,r;if(g.cors||Bt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.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($t[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&&t.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=w("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ft,_t=[],zt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=_t.pop()||w.expando+"_"+bt++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,s=!1!==e.jsonp&&(zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(zt,"$1"+i):!1!==e.jsonp&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||w.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){void 0===o?w(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,_t.push(i)),a&&v(o)&&o(a[0]),a=o=void 0}),"script"}),g.createHTMLDocument=((Ft=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ft.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),a=!n&&[],(o=A.exec(e))?[t.createElement(o[1])]:(o=xe([e],t,a),a&&a.length&&w(a).remove(),w.merge([],o.childNodes)));var r,o,a},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=dt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&w.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),u=w.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||be})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return _(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=Fe(g.pixelPosition,function(e,n){if(n)return n=Be(e,t),Ie.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return _(this,function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)},t,a?i:void 0,a)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=a.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||w.guid++,i},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=N,w.isFunction=v,w.isWindow=y,w.camelCase=V,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof e&&e.amd&&e("jquery",[],function(){return w});var Xt=t.jQuery,Ut=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=Ut),e&&t.jQuery===w&&(t.jQuery=Xt),w},n||(t.jQuery=t.$=w),w});
|
11
|
+
},{"process":"rH1J"}],"5QAn":[function(require,module,exports) {
|
12
|
+
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){for(var n,o=h(r),a=o[0],u=o[1],i=new e(c(r,a,u)),f=0,A=u>0?a-4:a,d=0;d<A;d+=4)n=t[r.charCodeAt(d)]<<18|t[r.charCodeAt(d+1)]<<12|t[r.charCodeAt(d+2)]<<6|t[r.charCodeAt(d+3)],i[f++]=n>>16&255,i[f++]=n>>8&255,i[f++]=255&n;return 2===u&&(n=t[r.charCodeAt(d)]<<2|t[r.charCodeAt(d+1)]>>4,i[f++]=255&n),1===u&&(n=t[r.charCodeAt(d)]<<10|t[r.charCodeAt(d+1)]<<4|t[r.charCodeAt(d+2)]>>2,i[f++]=n>>8&255,i[f++]=255&n),i}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
|
13
|
+
},{}],"O1Qa":[function(require,module,exports) {
|
14
|
+
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
|
15
|
+
},{}],"fIt4":[function(require,module,exports) {
|
16
|
+
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
|
17
|
+
},{}],"8fe9":[function(require,module,exports) {
|
18
|
+
|
19
|
+
var global = arguments[3];
|
20
|
+
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function m(t,r,e,n){return Q($(r,t.length-e),t,e,n)}function P(t,r,e,n){return Q(G(r),t,e,n)}function T(t,r,e,n){return P(t,r,e,n)}function B(t,r,e,n){return Q(K(r),t,e,n)}function U(t,r,e,n){return Q(H(r,t.length-e),t,e,n)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function Y(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,h=t[i],a=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,r){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var i=f.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var u=t[e];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},f.byteLength=v,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)b(this,r,r+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)b(this,r,r+3),b(this,r+1,r+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)b(this,r,r+7),b(this,r+1,r+6),b(this,r+2,r+5),b(this,r+3,r+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):E.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=exports.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;c<s;++c)if(h[c]!==a[c]){o=h[c],u=a[c];break}return o<u?-1:u<o?1:0},f.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},f.prototype.indexOf=function(t,r,e){return R(this,t,r,e,!0)},f.prototype.lastIndexOf=function(t,r,e){return R(this,t,r,e,!1)},f.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=I));return e}function L(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function D(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Z(t[o]);return i}function C(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=f.prototype;else{var i=r-t;e=new f(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},f.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},f.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},f.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=f.isBuffer(t)?t:$(new f(t,n).toString()),s=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function X(t){if((t=J(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function J(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function H(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t}
|
21
|
+
},{"base64-js":"5QAn","ieee754":"O1Qa","isarray":"fIt4","buffer":"8fe9"}],"wbe2":[function(require,module,exports) {
|
22
|
+
var Buffer = require("buffer").Buffer;
|
23
|
+
var e=require("buffer").Buffer,t=function(){"use strict";function t(r,o,i,u){"object"==typeof o&&(i=o.depth,u=o.prototype,o.filter,o=o.circular);var f=[],c=[],l=void 0!==e;return void 0===o&&(o=!0),void 0===i&&(i=1/0),function r(i,a){if(null===i)return null;if(0==a)return i;var p,s;if("object"!=typeof i)return i;if(t.__isArray(i))p=[];else if(t.__isRegExp(i))p=new RegExp(i.source,n(i)),i.lastIndex&&(p.lastIndex=i.lastIndex);else if(t.__isDate(i))p=new Date(i.getTime());else{if(l&&e.isBuffer(i))return p=e.allocUnsafe?e.allocUnsafe(i.length):new e(i.length),i.copy(p),p;void 0===u?(s=Object.getPrototypeOf(i),p=Object.create(s)):(p=Object.create(u),s=u)}if(o){var b=f.indexOf(i);if(-1!=b)return c[b];f.push(i),c.push(p)}for(var g in i){var y;s&&(y=Object.getOwnPropertyDescriptor(s,g)),y&&null==y.set||(p[g]=r(i[g],a-1))}return p}(r,i)}function r(e){return Object.prototype.toString.call(e)}function n(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return t.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},t.__objToStr=r,t.__isDate=function(e){return"object"==typeof e&&"[object Date]"===r(e)},t.__isArray=function(e){return"object"==typeof e&&"[object Array]"===r(e)},t.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===r(e)},t.__getRegExpFlags=n,t}();"object"==typeof module&&module.exports&&(module.exports=t);
|
24
|
+
},{"buffer":"8fe9"}],"K2qr":[function(require,module,exports) {
|
25
|
+
var e=require("clone");module.exports=function(o,r){return o=o||{},Object.keys(r).forEach(function(n){void 0===o[n]&&(o[n]=e(r[n]))}),o};
|
26
|
+
},{"clone":"wbe2"}],"dNoj":[function(require,module,exports) {
|
27
|
+
module.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];
|
28
|
+
},{}],"QgmU":[function(require,module,exports) {
|
29
|
+
"use strict";var r=require("defaults"),n=require("./combining"),t={nul:0,control:0};function e(r,n){if("string"!=typeof r)return u(r,n);for(var t=0,e=0;e<r.length;e++){var o=u(r.charCodeAt(e),n);if(o<0)return-1;t+=o}return t}function u(r,n){return 0===r?n.nul:r<32||r>=127&&r<160?n.control:o(r)?0:1+(r>=4352&&(r<=4447||9001==r||9002==r||r>=11904&&r<=42191&&12351!=r||r>=44032&&r<=55203||r>=63744&&r<=64255||r>=65040&&r<=65049||r>=65072&&r<=65135||r>=65280&&r<=65376||r>=65504&&r<=65510||r>=131072&&r<=196605||r>=196608&&r<=262141))}function o(r){var t,e=0,u=n.length-1;if(r<n[0][0]||r>n[u][1])return!1;for(;u>=e;)if(t=Math.floor((e+u)/2),r>n[t][1])e=t+1;else{if(!(r<n[t][0]))return!0;u=t-1}return!1}module.exports=function(r){return e(r,t)},module.exports.config=function(n){return n=r(n||{},t),function(r){return e(r,n)}};
|
30
|
+
},{"defaults":"K2qr","./combining":"dNoj"}],"Adyr":[function(require,module,exports) {
|
31
|
+
var global = arguments[3];
|
32
|
+
var define;
|
33
|
+
var process = require("process");
|
34
|
+
var global=arguments[3],define,process=require("process");!function(e){var n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};n.format=function(e,i){var o,u,a,s,c,l,f,p=1,m=e.length,D="",d=[];for(u=0;u<m;u++)if("string"===(D=t(e[u])))d.push(e[u]);else if("array"===D){if((s=e[u])[2])for(o=i[p],a=0;a<s[2].length;a++){if(!o.hasOwnProperty(s[2][a]))throw n('[sprintf] property "%s" does not exist',s[2][a]);o=o[s[2][a]]}else o=s[1]?i[s[1]]:i[p++];if(/[^s]/.test(s[8])&&"number"!==t(o))throw n("[sprintf] expecting number but found %s",t(o));switch(s[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=s[7]?o.toExponential(s[7]):o.toExponential();break;case"f":o=s[7]?parseFloat(o).toFixed(s[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&s[7]?o.substring(0,s[7]):o;break;case"u":o>>>=0;break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(s[8])&&s[3]&&o>=0?" +"+o:o,l=s[4]?"0"===s[4]?"0":s[4].charAt(1):" ",f=s[6]-String(o).length,c=s[6]?r(l,f):"",d.push(s[5]?o+c:c+o)}return d.join("")},n.cache={},n.parse=function(e){for(var n=e,t=[],r=[],i=0;n;){if(null!==(t=/^[^\x25]+/.exec(n)))r.push(t[0]);else if(null!==(t=/^\x25{2}/.exec(n)))r.push("%");else{if(null===(t=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)))throw"[sprintf] huh?";if(t[2]){i|=1;var o=[],u=t[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(u)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(u=u.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(u)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(u)))throw"[sprintf] huh?";o.push(a[1])}t[2]=o}else i|=2;if(3===i)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";r.push(t)}n=n.substring(t[0].length)}return r};function t(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function r(e,n){for(var t=[];n>0;t[--n]=e);return t.join("")}e.sprintf=n,e.vsprintf=function(e,t,r){return(r=t.slice(0)).splice(0,0,e),n.apply(null,r)}}(void 0!==global?global:window),function(e,n){var t="undefined"!=typeof window?window:global;"function"==typeof define&&define.amd?define(["jquery","wcwidth"],e):"object"==typeof module&&module.exports?module.exports=function(n,t,r){return void 0===t&&(t=void 0!==window?require("jquery"):require("jquery")(n)),void 0===r&&(r=require("wcwidth")),e(t,r),t}:e(t.jQuery,t.wcwidth)}(function($,wcwidth,undefined){"use strict";function debug(e){0}function DelayQueue(){var e=$.Callbacks(),n=!1;this.resolve=function(){e.fire(),n=!0},this.add=function(t){n?t():e.add(t)}}$.omap=function(e,n){var t={};return $.each(e,function(r,i){t[r]=n.call(e,r,i)}),t},$.fn.text_length=function(){return this.map(function(){return $(this).text().length}).get().reduce(function(e,n){return e+n},0)};var Clone={clone_object:function(e){var n={};if("object"==typeof e){if($.isArray(e))return this.clone_array(e);if(null===e)return e;for(var t in e)$.isArray(e[t])?n[t]=this.clone_array(e[t]):"object"==typeof e[t]?n[t]=this.clone_object(e[t]):n[t]=e[t]}return n},clone_array:function(e){if(!is_function(Array.prototype.map))throw new Error("Your browser don't support ES5 array map use es5-shim");return e.slice(0).map(function(e){return"object"==typeof e?this.clone_object(e):e}.bind(this))}},clone=function(e){return Clone.clone_object(e)},localStorage;!function(){var e=function(){try{var e=window.localStorage;return e.setItem("test","1"),e.removeItem("test"),!0}catch(n){return!1}}();function n(e,n){var t;if("string"==typeof e&&"string"==typeof n)return localStorage[e]=n,!0;if("object"==typeof e&&void 0===n){for(t in e)e.hasOwnProperty(t)&&(localStorage[t]=e[t]);return!0}return!1}function t(e,n){var t,r,i;if((t=new Date).setTime(t.getTime()+31536e6),r="; expires="+t.toGMTString(),"string"==typeof e&&"string"==typeof n)return document.cookie=e+"="+n+r+"; path=/",!0;if("object"==typeof e&&void 0===n){for(i in e)e.hasOwnProperty(i)&&(document.cookie=i+"="+e[i]+r+"; path=/");return!0}return!1}function r(e){return localStorage[e]}function i(e){return delete localStorage[e]}(function(){try{return document.cookie.split(";"),!0}catch(e){return!1}})()||e?(e&&(localStorage=window.localStorage),$.extend({Storage:{set:e?n:t,get:e?r:function(e){var n,t,r,i;for(n=e+"=",t=document.cookie.split(";"),r=0;r<t.length;r++){for(i=t[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return i.substring(n.length,i.length)}return null},remove:e?i:function(e){return t(e,"")}}})):(localStorage={},$.extend({Storage:{set:n,get:r,remove:i}}))}();var jQuery=$;function a11y_hide(e){e.attr({role:"presentation","aria-hidden":"true"})}!function(e){jQuery.fn.extend({everyTime:function(e,n,t,r,i){return this.each(function(){jQuery.timer.add(this,e,n,t,r,i)})},oneTime:function(e,n,t){return this.each(function(){jQuery.timer.add(this,e,n,t,1)})},stopTime:function(e,n){return this.each(function(){jQuery.timer.remove(this,e,n)})}}),jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1e3,das:1e4,hs:1e5,ks:1e6},timeParse:function(e){if(e===undefined||null===e)return null;var n=this.regex.exec(jQuery.trim(e.toString()));return n[2]?parseInt(n[1],10)*(this.powers[n[2]]||1):e},add:function(e,n,t,r,i,o){var u=0;if(jQuery.isFunction(t)&&(i||(i=r),r=t,t=n),!("number"!=typeof(n=jQuery.timer.timeParse(n))||isNaN(n)||n<=0)){i&&i.constructor!==Number&&(o=!!i,i=0),i=i||0,o=o||!1,e.$timers||(e.$timers={}),e.$timers[t]||(e.$timers[t]={}),r.$timerID=r.$timerID||this.guid++;var a=function(){o&&a.inProgress||(a.inProgress=!0,(++u>i&&0!==i||!1===r.call(e,u))&&jQuery.timer.remove(e,t,r),a.inProgress=!1)};a.$timerID=r.$timerID,e.$timers[t][r.$timerID]||(e.$timers[t][r.$timerID]=window.setInterval(a,n)),this.global[t]||(this.global[t]=[]),this.global[t].push(e)}},remove:function(e,n,t){var r,i=e.$timers;if(i){if(n){if(i[n]){if(t)t.$timerID&&(window.clearInterval(i[n][t.$timerID]),delete i[n][t.$timerID]);else for(var o in i[n])i[n].hasOwnProperty(o)&&(window.clearInterval(i[n][o]),delete i[n][o]);for(r in i[n])if(i[n].hasOwnProperty(r))break;r||(r=null,delete i[n])}}else for(var u in i)i.hasOwnProperty(u)&&this.remove(e,u,t);for(r in i)if(i.hasOwnProperty(r))break;r||(e.$timers=null)}}}}),/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())&&e(window).one("unload",function(){var e=jQuery.timer.global;for(var n in e)if(e.hasOwnProperty(n))for(var t=e[n],r=t.length;--r;)jQuery.timer.remove(t[r],n)})}(jQuery),function(e){if(String.prototype.split.toString().match(/\[native/)){var n,t=String.prototype.split,r=void 0===/()??/.exec("")[1];n=function(e,n,i){if("[object RegExp]"!==Object.prototype.toString.call(n))return t.call(e,n,i);var o,u,a,s,c=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.extended?"x":"")+(n.sticky?"y":""),f=0;for(n=new RegExp(n.source,l+"g"),e+="",r||(o=new RegExp("^"+n.source+"$(?!\\s)",l)),i=void 0===i?-1>>>0:i>>>0;(u=n.exec(e))&&!((a=u.index+u[0].length)>f&&(c.push(e.slice(f,u.index)),!r&&u.length>1&&u[0].replace(o,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(u[e]=void 0)}),u.length>1&&u.index<e.length&&Array.prototype.push.apply(c,u.slice(1)),s=u[0].length,f=a,c.length>=i));)n.lastIndex===u.index&&n.lastIndex++;return f===e.length?!s&&n.test("")||c.push(""):c.push(e.slice(f)),c.length>i?c.slice(0,i):c},String.prototype.split=function(e,t){return n(this,e,t)}}}(),$.fn.caret=function(e){var n=this[0],t="true"===n.contentEditable;if(0===arguments.length){if(window.getSelection)return t?(n.focus(),(i=(r=window.getSelection().getRangeAt(0)).cloneRange()).selectNodeContents(n),i.setEnd(r.endContainer,r.endOffset),i.toString().length):n.selectionStart;if(document.selection){if(n.focus(),t){var r=document.selection.createRange();return(i=document.body.createTextRange()).moveToElementText(n),i.setEndPoint("EndToEnd",r),i.text.length}e=0;var i,o=n.createTextRange(),u=(i=document.selection.createRange().duplicate()).getBookmark();for(o.moveToBookmark(u);0!==o.moveStart("character",-1);)e++;return e}return 0}if(-1===e&&(e=this[t?"text":"val"]().length),window.getSelection)t?(n.focus(),window.getSelection().collapse(n.firstChild,e)):n.setSelectionRange(e,e);else if(document.body.createTextRange){(o=document.body.createTextRange()).moveToElementText(n),o.moveStart("character",e),o.collapse(!0),o.select()}return t||this.is(":focus")||n.focus(),e},$.fn.resizer=function(e){var n="unbind"===arguments[0];if(!n&&!is_function(e))throw new Error('Invalid argument, it need to a function or string "unbind".');return n&&(e=is_function(arguments[1])?arguments[1]:null),this.each(function(){var t,r,i=$(this);function o(){r.fire()}if(n){if(r=i.data("callbacks"),e&&r?(r.remove(e),r.has()||(r=null)):r=null,!r)if(i.removeData("callbacks"),window.ResizeObserver){var u=i.data("observer");u&&(u.unobserve(this),i.removeData("observer"))}else(t=i.find("> iframe")).length?($(t[0].contentWindow).off("resize").remove(),t.remove()):i.is("body")&&$(window).off("resize.resizer")}else if(i.data("callbacks"))$(this).data("callbacks").add(e);else{var a;(r=$.Callbacks()).add(e),i.data("callbacks",r);var s=!0;window.ResizeObserver?((a=new ResizeObserver(function(){s||o(),s=!1})).observe(this),i.data("observer",a)):i.is("body")?$(window).on("resize.resizer",o):(t=$("<iframe/>").addClass("resizer").appendTo(this)[0],$(t.contentWindow).on("resize",o))}})};var excepctions=[];function alert_exception(e,n){var t=(e?e+": ":"")+exception_message(n);-1===excepctions.indexOf(t)&&(excepctions.push(t),alert(t+(n.stack?"\n"+n.stack:"")))}function scrollbar_event(e,n){var t=n.offset().left;return n.outerWidth()<=e.clientX-t}function exception_message(e){return"string"==typeof e?e:"string"==typeof e.fileName?e.fileName+": "+e.message:e.message}function Cycle(){var e=[].slice.call(arguments),n=0;$.extend(this,{get:function(){return e},index:function(){return n},rotate:function(t){if(!t&&!e.filter(function(e){return void 0!==e}).length)return;if(e.length)return 1===e.length?e[0]:(n===e.length-1?n=0:++n,void 0!==e[n]?e[n]:this.rotate(!0))},length:function(){return e.length},remove:function(n){delete e[n]},set:function(t){for(var r=e.length;r--;)if(e[r]===t)return void(n=r);this.append(t),n=e.length-1},front:function(){if(e.length){for(var t=n,r=!1;!e[t];)if(++t>e.length){if(r)break;t=0,r=!0}return e[t]}},map:function(n){return e.map(function(e,t){return void 0!==e?n(e,t):null}).filter(Boolean)},forEach:function(n){return e.forEach(function(e,t){void 0!==e&&n(e,t)})},append:function(n){e.push(n)}})}function Stack(e){var n=e instanceof Array?e:e?[e]:[];$.extend(this,{data:function(){return n},map:function(e){return $.map(n,e)},size:function(){return n.length},pop:function(){if(0===n.length)return null;var e=n[n.length-1];return n=n.slice(0,n.length-1),e},push:function(e){return n=n.concat([e]),e},top:function(){return n.length>0?n[n.length-1]:null},clone:function(){return new Stack(n.slice(0))}})}function History(e,n,t){var r,i=!0,o="";"string"==typeof e&&""!==e&&(o=e+"_"),o+="commands";var u=(r=t?[]:(r=$.Storage.get(o))?JSON.parse(r):[]).length-1;$.extend(this,{append:function(e){i&&r[r.length-1]!==e&&(r.push(e),n&&r.length>n&&(r=r.slice(-n)),u=r.length-1,t||$.Storage.set(o,JSON.stringify(r)))},set:function(e){e instanceof Array&&(r=e,t||$.Storage.set(o,JSON.stringify(r)))},data:function(){return r},reset:function(){u=r.length-1},last:function(){return r[r.length-1]},end:function(){return u===r.length-1},position:function(){return u},current:function(){return r[u]},next:function(){var e=u;if(u<r.length-1&&++u,e!==u)return r[u]},previous:function(){var e=u;if(u>0&&--u,e!==u)return r[u]},clear:function(){r=[],this.purge()},enabled:function(){return i},enable:function(){i=!0},purge:function(){t||$.Storage.remove(o)},disable:function(){i=!1},toggle:function(e){i=void 0===e?!i:e}})}var cmd_index=0;$.cmd={defaults:{mask:!1,caseSensitiveSearch:!0,historySize:60,prompt:"> ",enabled:!0,history:!0,onPositionChange:$.noop,onCommandChange:$.noop,clickTimeout:200,holdTimeout:400,holdRepeatTimeout:200,tabs:4}},$.fn.cmd=function(e){var n=$.extend({},$.cmd.defaults,e),t=this,r=t.data("cmd");if(r)return r;var i=cmd_index++;t.addClass("cmd"),t.append('<span class="prompt"></span>'),t.append('<div class="cursor-line"><span></span><span class="cursor"> </span><span></span></div>'),a11y_hide(t.find(".cursor-line"));var o,u,a,s,c=$("<textarea>").attr({autocapitalize:"off",spellcheck:"false",tabindex:1}).addClass("clipboard").appendTo(t).val(" ");n.width&&t.width(n.width);var l,f,p,m,D,d,h,g,_=t.find(".prompt"),v=!1,y="",b=null,C="",w="",E=0,F=0,x=t.find(".cursor"),k=0;var A,T={SPACEBAR:" ",UP:"ARROWUP",DOWN:"ARROWDOWN",LEFT:"ARROWLEFT",RIGHT:"ARROWRIGHT",DEL:"DELETE",MULTIPLY:"*",DIVIDE:"/",SUBTRACT:"-",ADD:"+"};var S={"ALT+D":R(!0),"HOLD+DELETE":R(!1),"HOLD+SHIFT+DELETE":R(!1),ENTER:function(){(d&&C&&!n.mask&&is_function(n.historyFilter)&&n.historyFilter(C)||n.historyFilter instanceof RegExp&&C.match(n.historyFilter)||!n.historyFilter)&&d.append(C);var e=C;return d.reset(),ve="",De=!0,t.set(""),n.commands&&n.commands.call(t,e),is_function(p)&&ie(),c.val(""),!1},"SHIFT+ENTER":function(){return t.insert("\n"),!0},BACKSPACE:I,"SHIFT+BACKSPACE":I,TAB:function(){t.insert("\t")},"CTRL+D":function(){return t.delete(1),!1},DELETE:function(){return t.delete(1),!0},ARROWUP:O,"CTRL+P":O,ARROWDOWN:z,"CTRL+N":z,ARROWLEFT:P,"HOLD+ARROWLEFT":P,"CTRL+B":P,"CTRL+ARROWLEFT":function(){var e=E-1,n=0;" "===C[e]&&--e;for(var r=e;r>0;--r){if(" "===C[r]&&" "!==C[r+1]){n=r+1;break}if("\n"===C[r]&&"\n"!==C[r+1]){n=r;break}}t.position(n)},"CTRL+R":function(){return v?Y(!0):(l=p,Q(),f=C,t.set(""),te(),v=!0),!1},"CTRL+G":function(){if(v)return p=l,ie(),t.set(f),te(),v=!1,y="",!1},ARROWRIGHT:N,"HOLD+ARROWRIGHT":N,"CTRL+F":N,"CTRL+ARROWRIGHT":function(){" "===C[E]&&++E;var e=C.slice(E).match(/\S[\n\s]{2,}|[\n\s]+\S?/);!e||e[0].match(/^\s+$/)?t.position(C.length):" "!==e[0][0]?E+=e.index+1:(E+=e.index+e[0].length-1," "!==e[0][e[0].length-1]&&--E),te()},F12:j,END:M,"CTRL+E":M,HOME:H,"CTRL+A":H,"SHIFT+INSERT":L,"CTRL+SHIFT+T":j,"CTRL+W":B(!0),"HOLD+BACKSPACE":B(!1),"HOLD+SHIFT+BACKSPACE":B(!1),"CTRL+H":function(){return""!==C&&E>0&&t.delete(-1),!1},"CTRL+X":j,"CTRL+C":j,"CTRL+T":j,"CTRL+Y":function(){""!==w&&t.insert(w)},"CTRL+V":L,"META+V":L,"CTRL+K":function(){return C.length-E&&(w=t.delete(C.length-E),text_to_clipboard(t,w)),!1},"CTRL+U":function(){return""!==C&&0!==E&&(w=t.delete(-E),text_to_clipboard(t,w)),!1},"CTRL+TAB":function(){return!1},"META+`":j,"META+R":j,"META+L":j};function R(e){return function(){var n=/ *[^ ]+ *(?= )|[^ ]+$/,r=C.slice(E).match(n);return r&&(w=r[0],e&&text_to_clipboard(t,w)),t.set(C.slice(0,E)+C.slice(E).replace(n,""),!0),!1}}function B(e){return function(){if(""!==C&&0!==E){var n=C.slice(0,E).match(/([^ ]+ *$)/);n[0].length&&(w=t.delete(-n[0].length),e&&text_to_clipboard(t,w))}return!1}}function j(){return!0}function L(){return c.val(""),k=0,t.isenabled()&&!c.is(":focus")&&c.trigger("focus",[!0]),c.one("input",oe),!0}function O(){return se?(f=C,t.set(d.current())):t.set(d.previous()),se=!1,!1}function z(){return t.set(d.end()?f:d.next()),!1}function I(){v?(y=y.slice(0,-1),Q()):""!==C&&E>0&&t.delete(-1),t.oneTime(1,function(){De=!0})}function P(){E>0&&(t.position(-1,!0),te())}function N(){return E<C.length&&t.position(1,!0),!1}function H(){t.position(0)}function M(){t.position(C.length)}function U(){var e=c.is(":focus");m?t.oneTime(10,function(){!c.is(":focus")&&m&&c.trigger("focus",[!0])}):!e||!is_mobile&&m||c.trigger("blur",[!0])}function q(){if(animation_supported){var e=window.getComputedStyle(x[0]).getPropertyValue("--animation");e=e.replace(/^\s*|\s*$/g,"");var n=t.attr("class");if(n.match(/-animation/)&&(n=n.replace(/[a-z]+-animation/g,"")),e&&!e.match(/blink/)){var r=e.replace(/terminal-/,"")+"-animation";n.match(r)||(n+=" "+r)}n!==t.attr("class")&&t.attr("class",n)}}function W(e){t.isenabled()&&t.oneTime(10,function(){c.val()===C||e||c.val(" "+C),m&&t.oneTime(10,function(){try{c.caret()!==E+1&&c.caret(E+1)}catch(e){}})})}if(animation_supported&&!is_android)h=function(e){e?x.addClass("blink"):x.removeClass("blink")},g=function(){var e=x.clone();e.insertBefore(x),x.remove(),x=e};else{var K=!1;h=function(e){e&&!K?(K=!0,x.addClass("inverted blink"),t.everyTime(500,"blink",J)):K&&!e&&(K=!1,t.stopTime("blink",J),x.removeClass("inverted blink"))},g=function(){h(!1),h(!0)}}function J(){x.toggleClass("inverted")}function Q(){p="(reverse-i-search)`"+y+"': ",ie()}function Y(e){var r,i,o=d.data(),u=o.length;if(e&&b>0&&(u-=b),y.length>0)for(var a=y.length;a>0;a--){i=$.terminal.escape_regex(y.substring(0,a)),r=n.caseSensitiveSearch?new RegExp(i):new RegExp(i,"i");for(var s=u;s--;)if(r.test(o[s]))return b=o.length-s,t.position(o[s].indexOf(i)),t.set(o[s],!0),te(),void(y.length!==a&&(y=y.substring(0,a),Q()))}y=""}function G(e,t){try{e=$.terminal.escape_formatting(e);var r=$.extend({},n,{unixFormattingEscapeBrackets:!0,position:E}),i=$.terminal.apply_formatters(e,r);e=i[0],t||(F=i[1]),e=$.terminal.normalize(e);var o=$.terminal.length(e);return F>o&&(F=o),e}catch(u){return alert_exception("[Formatting]",u.stack),e}}function V(e,t){var r=$.terminal.encode(function(e){function n(e){return $.terminal.is_formatting(e)?e.match(/\]\\\]/)&&(e=e.replace(/\]\\\]/g,"]\\\\]")):(e.match(/\\$/)&&(e+="\\"),e="[[;;]"+e+"]"),e}var t=X(e);if(1===t)return n(e);for(var r=[],i=0;i<t;++i){var o=$.terminal.substring(e,i,i+1);r.push(n(o))}return r.join("")}(e),{tabs:n.tabs,before:t});return(e=$.terminal.format(r,{char_width:n.char_width})).replace(/(<span[^>]+data-text[^>]+>)(.*?)(<\/span>)/g,"$1<span>$2</span>$3")}function X(e){return $.terminal.length(e)}function Z(e,n,t){return $.terminal.substring(e,n,t)}var ee,ne,te=function(){var e=x.prev(),r=x.next(),i=x.parent();function u(n,t){var i,o=$.extend({prompt:"",last:!1},t),u=o.position,a=X(n),s=o.prompt;if(u===a)e.html(V(n)),x.html("<span><span> </span></span>"),r.html("");else if(0===u)e.html(""),i=Z(n,0,1),x.html(V(i)),r.html(V(Z(n,1),s+i));else{var c=$.terminal.substring(n,0,u);e.html(V(c,s)),i=Z(n,u,u+1);var l=(s+c).replace(/^.*\t/,"");x.html(V(i,l)),u===a-1?r.html(""):(i.match(/\t/)?l="":l+=i,r.html(V(Z(n,u+1),l)))}var f=o.position===(o.last?a:a-1);x.toggleClass("noselect",f),q(),g()}function c(e,n){return'<div role="presentation" aria-hidden="true">'+V(e,n||"")+"</div>"}function l(e){var n=i;$.each(e,function(e,t){n=$(c(t)).insertAfter(n)})}function f(e){$.each(e,function(e,n){i.before(c(n,0===e?a:""))})}return function(){var p;switch(typeof n.mask){case"boolean":p=n.mask?C.replace(/./g,"*"):C;break;case"string":p=C.replace(/./g,n.mask)}p=G(p);var m,D=F;if(t.find("div:not(.cursor-line,.clipboard-wrapper)").remove(),e.html(""),strlen(text(p))>o-s-1||p.match(/\n/)){var d=p.match(/\t/g),h=p;d&&(p=p.replace(/\t/g,"\0\0\0\0"));var g=function(e){function n(e){return $.terminal.split_equal(e,o)}function t(e){return e.filter(function(e){return!$.terminal.strip(e).match(/^ $/)})}var r,i=_.find(".line");r=i.length?i.nextUntil(".line").text():_.text(),r=$.terminal.escape_brackets(r);var u,a=new RegExp("^"+$.terminal.escape_regex(r));if(e.match(/\n/)){for(var c=e.split("\n"),l=o-s-1,f=0;f<c.length-1;++f)c[f]+=" ";for(strlen(c[0])>l?((u=n(r+c[0]))[0]=u[0].replace(a,""),u=t(u)):u=[c[0]],f=1;f<c.length;++f)if(strlen(c[f])>o){var p=n(c[f]);f<c.length-1&&(p=t(p)),u=u.concat(p)}else u.push(c[f])}else(u=n(r+e))[0]=u[0].replace(a,"");return u.length>1&&u[u.length-1].length===o&&u.push(""),u}(p);d&&(g=$.map(g,function(e){return e.replace(/\x00\x00\x00\x00/g,"\t")}));var v=X(g[0]);if(0===v&&1===g.length);else if(D<v)u(g[0],{position:D,prompt:a}),l(g.slice(1));else if(D===v)i.before(c(g[0],a)),u(g[1]||"",{position:0}),g.length>1&&l(g.slice(2));else{var y=g.slice(-1)[0],b=X(h)-D,w=X(y),E=0;if(-1===b&&(b=0),b<=w)f(g.slice(0,-1)),u(y,{position:E=w===b?0:w-b,last:!0});else{var k,A;for(E=D,m=0;m<g.length;++m){var T=$.terminal.length(g[m]);if(!(E>T))break;E-=T}if(k=m,E===X(A=g[m])&&(E=0,(A=g[++k])===undefined)){var S=$.terminal.defaults.strings.redrawError;throw new Error(S)}u(A,{position:E}),f(g.slice(0,k)),l(g.slice(k+1))}}t.find(".cursor-line ~ div:last-of-type").append("<span></span>")}else""===p?(e.html(""),x.html("<span><span> </span></span>"),r.html("")):u(p,{position:D})}}(),re=function(){function e(e,t){var r=$.extend({},n,{position:t}),i=$.terminal.apply_formatters(C,r)[1];return i===e?0:i<e?1:-1}return function(n,t){if(0===t)return 0;var r=(n=text(n)).length,i=binary_search(0,r,t,e),o=$.terminal.split_characters(n);if(r>o.length)for(var u=0,a=0;a<o.length;++a)if((u+=o[a].length)>=i)return u;return i}}(),ie=function(){function e(e){e=$.terminal.apply_formatters(e,{}),e=crlf(e=$.terminal.normalize(e)),u=e;var t=$.terminal.split_equal(e,o),r={char_width:n.char_width};a=t[t.length-1];var i=$.terminal.encode(t[t.length-1],{tabs:n.tabs}),c=$.terminal.format(i,r),l=t.slice(0,-1).map(function(e){return e=$.terminal.encode(e,{tabs:n.tabs}),'<span class="line">'+$.terminal.format(e,r)+"</span>"}).concat([c]).join("\n");_.html()!==l&&(_.html(l),s=strlen(text(i)))}return function(){switch(typeof p){case"string":e(p);break;case"function":p.call(t,e)}}}();function oe(){k++>0||t.isenabled()&&t.oneTime(100,function(){t.insert(c.val()),c.val(C),W()})}function ue(){is_function(n.onCommandChange)&&n.onCommandChange.call(t,C)}$.extend(t,{option:function(e,r){return void 0===r?n[e]:(n[e]=r,t)},name:function(e){if(e!==undefined){D=e;var r=d&&d.enabled()||!d;return d=new History(D,n.historySize,"memory"===n.history),r||d.disable(),t}return D},purge:function(){return d.clear(),t},history:function(){return d},delete:function(e,n){var r;return 0===e?"":(e<0?E>0&&(r=C.slice(0,E).slice(e),C=C.slice(0,E+e)+C.slice(E,C.length),n||t.position(E+e),ue()):""!==C&&E<C.length&&(r=C.slice(E).slice(0,e),C=C.slice(0,E)+C.slice(E+e,C.length),ue()),te(),W(),r)},set:function(e,n,r){return e!==undefined&&(C=e,n||t.position(C.length),te(),W(),r||ue()),t},keymap:function(e,n){function r(e,n){var r=S[e];return is_function(r)&&(r=r.bind(t)),function(e){return n.call(t,e,r)}}if(void 0===e)return A;if("string"!=typeof e)return A=$.extend({},A||S,$.omap(e||{},r)),t;if(void 0===n){if(A[e])return A[e];if(S[e])return S[e]}else A[e]=r(e,n)},insert:function(e,n){return E===C.length?C+=e:C=0===E?e+C:C.slice(0,E)+e+C.slice(E),n?W():t.position(e.length,!0,!0),te(),ue(),W(),t},get:function(){return C},commands:function(e){return e?(n.commands=e,t):e},destroy:function(){return Fe.unbind("keypress.cmd",xe),Fe.unbind("keydown.cmd",be),Fe.unbind("input.cmd",ke),t.stopTime("blink",J),t.find(".cursor").next().remove().end().prev().remove().end().remove(),t.find(".prompt, .clipboard").remove(),t.removeClass("cmd").removeData("cmd").off(".cmd"),t},prompt:function(e){if(!0===e)return u;if(e===undefined)return p;if("string"!=typeof e&&"function"!=typeof e)throw new Error("prompt must be a function or string");return p=e,ie(),te(),t},kill_text:function(){return w},position:function(e,r,i){if("number"==typeof e){var o=E;return r?E+=e:E=e<0?0:e>C.length?C.length:e,o===E||i||(te(),is_function(n.onPositionChange)&&n.onPositionChange(E,F),W(!0)),t}return E},refresh:function(){return ie(),te(),t},display_position:function(e,n){if(e===undefined)return F;var r,i=G(C,!0),o=$.terminal.length(i),u=text(C).length;if(o===(r=n?F+e:e>o?o:e))return F=r,t.position(u);var a=re(C,r);return-1!==a&&(F=r,t.position(a)),t},visible:(ne=t.visible,function(){return ne.apply(t,[]),te(),ie(),t}),show:(ee=t.show,function(){return ee.apply(t,[]),te(),ie(),t}),resize:function(e){var n,r,i;return e?o=e:(n=t.find(".prompt").html("<span> </span>"),r=t.width(),i=n.find("span")[0].getBoundingClientRect().width,o=Math.floor(r/i)),te(),ie(),t},enable:function(e){if(!m){m=!0,t.addClass("enabled");try{c.caret(E)}catch(n){}h(!0),e||ie(),q(),W()}return U(),t},isenabled:function(){return m},disable:function(e){return m=!1,t.removeClass("enabled"),h(!1),e||U(),t},mask:function(e){return void 0===e?n.mask:(n.mask=e,te(),t)}}),t.name(n.name||n.prompt||""),p="string"==typeof n.prompt?n.prompt:"> ",ie(),!0===n.enabled&&t.enable(),n.history||d.disable();var ae,se=!0,ce=!1,le=!1,fe=!1,pe=!1,me=!1,De=!0,de=!1,he=!1,ge=!1,_e=!1,ve="";function ye(e){return"BACKSPACE"===e.key.toUpperCase()||8===e.which}function be(e){var r;debug('keydown "'+e.key+'" '+e.fake+" "+e.which),he="process"===(e.key||"").toLowerCase()||0===e.which,le=pe&&fe&&!ye(e);try{e.fake||(fe=function(e){return e.key&&1===e.key.length&&!e.ctrlKey}(e),me="unidentified"===String(e.key).toLowerCase(),de=ye(e))}catch(o){}if("Unidentified"!==e.key){e.fake||(pe=!0,De=!1),c.off("input",oe);var i=function(e){if(e.key){var n=e.key.toUpperCase();if(T[n]&&(n=T[n]),"CONTROL"===n)return"CTRL";var t=[];return e.ctrlKey&&t.push("CTRL"),e.metaKey&&"META"!==n&&t.push("META"),e.shiftKey&&"SHIFT"!==n&&t.push("SHIFT"),e.altKey&&"ALT"!==n&&t.push("ALT"),t.length&&" "===n&&(n="SPACEBAR"),e.key&&t.push(n),t.join("+")}}(e);if(is_function(n.keydown)&&(r=n.keydown.call(t,e))!==undefined)return r||(ae=!0),r;if(m){if(t.oneTime(n.holdTimeout,"hold",function(){ge=!0}),ge){if(i="HOLD+"+i,_e)return;n.holdRepeatTimeout>0&&(_e=!0,t.oneTime(n.holdRepeatTimeout,"delay",function(){_e=!1}))}if(g(),ae=-1!==["CTRL+V","META+V"].indexOf(i),38===e.which||80===e.which&&e.ctrlKey||(se=!0),v&&function(e){return 35===e.which||36===e.which||37===e.which||38===e.which||39===e.which||40===e.which||13===e.which||27===e.which}(e))p=l,v=!1,b=null,y="",ie(),27===e.which&&t.set(""),te(),13===e.which&&be.call(this,e);else{if(!is_function(A[i]))return e.altKey?void 0:void(ce=!1);if(!0===(r=A[i](e)))return;if(r!==undefined)return r}}}else De=!0}function Ce(){t.stopTime("hold"),_e=ge=!1}var we,Ee,Fe=$(document.documentElement||window);function xe(e){var r;if(debug('keypress "'+e.key+'" '+e.fake),Ce(),e.fake||(pe=!1),(!e.ctrlKey&&!e.metaKey||e.altKey)&&!ce){if(is_function(n.keypress)&&(r=n.keypress.call(t,e))!==undefined)return r||(ae=!0),r;if(m){if(e.fake)return;var i;if(is_key_native||e.fake){var o=(i=e.key).toUpperCase();T[o]&&(i=T[o])}if(i&&!me||(i=String.fromCharCode(e.which)),$.inArray(e.which,[13,0,8])>-1){if(123===e.keyCode)return;return!1}!i||!(!e.ctrlKey||e.ctrlKey&&e.ctrlKey)||e.altKey&&100===e.which&&!e.altKey||le||(v?(y+=i,Y(),Q()):1===i.length&&t.insert(i))}}}function $e(e,n,t){var r=$.Event(e);r.which=t,r.key=n,r.fake=!0,Fe.trigger(r)}function ke(){debug("input "+De+" || "+he+" (("+pe+" || "+le+") && !"+ae+" && ("+fe+" || "+me+") && !"+de+")");var e=c.val().replace(/^ /,"");if((De||he||(pe||le)&&!ae&&(fe||me)&&!de)&&e!==C){var n=E;if(De){var r=ve;de=r.substring(0,r.length-1).length===e.length}if(v)y=e,Y(),Q();else{var i=e.substring(E);if(1===i.length||de){var o;if(De)o=de?8:i.toUpperCase().charCodeAt(0),$e("keydown",de?"Backspace":i,o);pe&&!de&&$e("keypress",i,i.charCodeAt(0))}if(de)return void(ve=C);if(ae)return void(ae=!1);t.set(e)}de?t.position(n-1):t.position(n+Math.abs(e.length-ve.length))}ve=C,ae=!1,De=!0}return t.keymap(n.keymap||{}),Fe.bind("keypress.cmd",xe).bind("keydown.cmd",be).bind("keyup.cmd",Ce).bind("input.cmd",ke),we=!1,Ee=0,t.on("mousedown.cmd",function(){we=!0}).on("mouseup.cmd",function(e){function r(){var n=$(e.target);!n.is(".prompt")&&u&&m&&(n.is(".cmd")?t.position(C.length):t.display_position(function(e){var n=$(e.target);if(n.is("span"))return(n=n.closest("[data-text]")).index()+n.parent("span").prevAll().find("[data-text]").length+n.closest('[role="presentation"]').prevUntil(".prompt").find("[data-text]").length;if(n.is('div[role="presentation"]')){var t=!n.nextUntil("textarea").length;return n.find("span[data-text]").length+n.prevUntil(".prompt").find("span[data-text]").length-(t?0:1)}}(e))),Ee=0}if(0===(e.originalEvent===undefined?e.button:e.originalEvent.button)&&""===get_selected_text()){var o="click_"+i;if(1==++Ee){var u=we;m?0===n.clickTimeout?r():t.oneTime(n.clickTimeout,o,r):Ee=0}else t.stopTime(o),Ee=0}we=!1}),t.data("cmd",t),"KeyboardEvent"in window&&"key"in window.KeyboardEvent.prototype||setTimeout(function(){throw new Error("key event property not supported try https://github.com/inexorabletash/polyfill/blob/master/keyboard.js")},0),t};var combine_chr_re=/^(.(?:[\u0300-\u036F]|[\u1AB0-\u1abE]|[\u1DC0-\u1DF9]|[\u1DFB-\u1DFF]|[\u20D0-\u20F0]|[\uFE20-\uFE2F])+)/,astral_symbols_re=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,emoji_re=/^(\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD]))/,mobile_re=/(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|android|ipad|playbook|silk/i,tablet_re=/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,format_split_re=/(\[\[[!gbiuso]*;[^;]*;[^\]]*\](?:[^\]]*[^\\](\\\\)*\\\][^\]]*|[^\]]*|[^[]*\[[^\]]*)\]?)/i,format_parts_re=/\[\[([!gbiuso]*);([^;]*);([^;\]]*);?([^;\]]*);?([^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^[]*\[[^\]]*)\]?/gi,format_re=/\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^[]*\[[^\]]*)\]?/gi,format_exist_re=/\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^[]*\[[^\]]*)\]/gi,format_full_re=/^\[\[([!gbiuso]*;[^;\]]*;[^;\]]*(?:;|[^\]()]*);?[^\]]*)\]([^\]]*\\\][^\]]*|[^\]]*|[^[]*\[[^\]]*)\]$/gi,color_hex_re=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,url_re=/(\bhttps?:\/\/(?:(?:(?!&[^;]+;)|(?=&))[^\s"'<>\][)])+)/gi,url_nf_re=/\b(?![^\s[\]]*])(https?:\/\/(?:(?:(?!&[^;]+;)|(?=&))[^\s"'<>\][)])+)/gi,email_re=/((([^<>('")[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})))/g,command_re=/((?:"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'|\/[^\/\\]*(?:\\[\S\s][^\/\\]*)*\/[gimsuy]*(?=\s|$)|(?:\\\s|\S))+)(?=\s|$)/gi,extended_command_re=/^\s*((terminal|cmd)::([a-z_]+)\(([\s\S]*)\))\s*$/,format_begin_re=/(\[\[[!gbiuso]*;[^;]*;[^\]]*\])/i,format_start_re=/^(\[\[[!gbiuso]*;[^;]*;[^\]]*\])/i,format_end_re=/\[\[[!gbiuso]*;[^;]*;[^\]]*\]?$/i,format_exec_re=/(\[\[(?:[^\][]|\\\])+\]\])/,float_re=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/,re_re=/^\/((?:\\\/|[^/]|\[[^\]]*\/[^\]]*\])+)\/([gimsuy]*)$/,string_re=/("(?:[^"\\]|\\(?:\\\\)*"|\\\\)*"|'(?:[^'\\]|\\(?:\\\\)*'|\\\\)*')/,unclosed_strings_re=/^(?=((?:[^"']+|"[^"\\]*(?:\\[^][^"\\]*)*"|'[^'\\]*(?:\\[^][^'\\]*)*')*))\1./,animation_supported=function(){var e=!1,n="Webkit Moz O ms Khtml".split(" "),t=document.createElement("div");if(t.style.animationName&&(e=!0),!1===e)for(var r=0;r<n.length;r++){var i=n[r]+"AnimationName";if(t.style[i]!==undefined){e=!0;break}}return t=null,e}(),is_ch_unit_supported=function(){var e=window.navigator.userAgent;if(e.match(/MSIE|Trident/)&&!e.match(/IEMobile/))return!1;var n=document.createElement("div");return n.style.width="1ch","1ch"===n.style.width}(),is_css_variables_supported=window.CSS&&window.CSS.supports&&window.CSS.supports("--fake-var",0),is_android=-1!==navigator.userAgent.toLowerCase().indexOf("android"),is_safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),is_key_native=function(){if(!("KeyboardEvent"in window&&"key"in window.KeyboardEvent.prototype))return!1;var e=window.KeyboardEvent.prototype;return Object.getOwnPropertyDescriptor(e,"key").get.toString().match(/\[native code\]/)}(),is_mobile=(a=navigator.userAgent||navigator.vendor||window.opera,check=!1,(mobile_re.test(a)||tablet_re.test(a.substr(0,4)))&&(check=!0),check),a,check,strlen=void 0===wcwidth?function(e){return $.terminal.length(e)}:wcwidth;function bare_text(e){return e.match(/&/)?$("<span>"+safe(e)+"</span>").text():e}function text(e){return bare_text($.terminal.strip(e))}function safe(e){return e.match(/[<>&]/)?e.replace(/&(?![^;]+;)/g,"&").replace(/>/g,">").replace(/</g,"<"):e}function crlf(e){return e.replace(/\r/g,"")}function get_next_character(e){var n=e.match(emoji_re);if(n)return n[1];if(1===e.substring(0,2).replace(astral_symbols_re,"_"))return e.substring(1).match(combine_chr_re)?e.substring(0,3):e.substring(0,2);var t=e.match(combine_chr_re);return t?t[1]:e[0]}function normalize_position(e,n){if(0===n)return n;e=$.terminal.strip(e);var t=$.terminal.split_characters(e).reduce(function(e,t){if("number"==typeof e)return e;var r=e.length+t.length;return r>=n?e.position+1:{position:e.position+1,length:r}},{position:0,length:0});return"number"==typeof t?t:t.position}function char_width_prop(e,n){return is_ch_unit_supported?"width: "+e+"ch":is_css_variables_supported?"--length: "+e:n.char_width?"width: "+n.char_width*e+"px":""}function extra_css(e,n){if(void 0!==wcwidth){var t=bare_text(e),r=strlen(t);if(r!==$.terminal.length(t))return char_width_prop(r,n)}return""}function wide_characters(e,n){if(void 0!==wcwidth){var t=bare_text(e),r=$.terminal.split_characters(t);return 1===r.length?e:r.map(function(e){return{len:strlen(e),chr:e}}).reduce(function(e,n){var t=e[e.length-1];return t?t.len!==n.len?e.concat([{sum:n.len,len:n.len,str:n.chr}]):(e.pop(),e.concat([{sum:t.sum+n.len,len:t.len,str:t.str+n.chr}])):[{sum:n.len,str:n.chr,len:n.len}]},[]).map(function(e){if(1===e.len)return e.str;var t=char_width_prop(e.sum,n);return e.sum!==r.length&&t.length?'<span style="'+t+'">'+e.str+"</span>":"<span>"+e.str+"</span>"}).join("")}return e}function binary_search(e,n,t,r){var i=n-e,o=e+Math.floor(i/2),u=r(t,o);return 0===u?o:u>0&&i>1?binary_search(o,n,t,r):u<0&&i>1?binary_search(e,o,t,r):-1}var get_selected_text=window.getSelection||document.getSelection?function(){var e=(window.getSelection||document.getSelection)();return e.text?e.text:e.toString()}:document.selection&&"Control"!==document.selection.type?function(){return document.selection.createRange().text}:function(){return""};function text_to_clipboard(e,n){var t=$("<div>"+n.replace(/\n/,"<br/>")+"<div>");t.appendTo("body"),select_all(t[0]);try{document.execCommand("copy")}catch(r){}t.remove()}var get_textarea_selection=(textarea=document.createElement("textarea"),selectionStart="selectionStart"in textarea,textarea=null,selectionStart?function(e){var n=e.selectionEnd-e.selectionStart;return e.value.substr(e.selectionStart,n)}:document.selection?function(){return document.selection.createRange().text()}:function(){return""}),textarea,selectionStart;function clear_textarea_selection(e){e.selectionStart=e.selectionEnd=0}function common_string(e,n,t){if(!n.length)return"";for(var r=string_case(e),i=[],o=e.length;o<n[0].length;++o){for(var u=!1,a=n[0].charAt(o),s=a.toLowerCase(),c=1;c<n.length;++c){u=!0;var l=n[c].charAt(o),f=l.toLowerCase();if(a!==l){if(t||"mixed"===r){u=!1;break}if(s!==f){u=!1;break}if("lower"===r)a=a.toLowerCase();else{if("upper"!==r){u=!1;break}a=a.toUpperCase()}}}if(!u)break;i.push(a)}return e+i.join("")}function trigger_terminal_change(e){terminals.forEach(function(n){n.settings().onTerminalChange.call(n,e)})}var select=window.getSelection?window.getSelection().setBaseAndExtent?function(e,n){window.getSelection().setBaseAndExtent(e,0,n,1)}:function(e,n){var t=window.getSelection(),r=document.createRange();r.setStart(e,0),r.setEnd(n,n.childNodes.length),t.removeAllRanges(),t.addRange(r)}:$.noop;function select_all(e){if(window.getSelection){var n=window.getSelection();if(n.setBaseAndExtent)n.setBaseAndExtent(e,0,e,1);else if(document.createRange){var t=document.createRange();t.selectNodeContents(e),n.removeAllRanges(),n.addRange(t)}}}function process_command(e,n){var t=e.match(command_re)||[];if(t.length){var r=t.shift(),i=$.map(t,function(e){return e.match(/^["']/)?(e=e.replace(/\n/g,"\\u0000\\u0000\\u0000\\u0000"),(e=n(e)).replace(/\x00\x00\x00\x00/g,"\n")):n(e)}),o=$.map(t,function(e){var n=e.match(/^(['"]).*\1$/);return n&&n[1]||""}),u=e.substring(r.length).trim();return{command:e,name:r,args:i,args_quotes:o,rest:u}}return{command:e,name:"",args:[],args_quotes:o,rest:""}}$.terminal={version:"1.23.2",date:"Tue, 18 Sep 2018 14:16:35 +0000",color_names:["transparent","currentcolor","black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Cycle:Cycle,History:History,Stack:Stack,valid_color:function(e){return!!e.match(color_hex_re)||-1!==$.inArray(e.toLowerCase(),$.terminal.color_names)},unclosed_strings:function(e){return!!e.match(unclosed_strings_re)},escape_regex:function(e){if("string"==typeof e){return e.replace(/([-\\^$[\]()+{}?*.|])/g,"\\$1")}},have_formatting:function(e){return"string"==typeof e&&!!e.match(format_exist_re)},is_formatting:function(e){return"string"==typeof e&&!!e.match(format_full_re)},format_split:function(e){return e.split(format_split_re).filter(Boolean)},tracking_replace:function(e,n,t,r){function i(e,n,t){return e.substring(n,t)}function o(e){return $.terminal.strip(e).length}function u(n){for(var t=o(e.substring(0,n)),r=n;r<e.length;++r){var i=o(e.substring(0,r));if(i===t+1)return t;t=i}return t}var a,s,c,l="",f=0,p=u(r);for(n.lastIndex=0;a=n.exec(e);){if(n.global){var m=u(n.lastIndex),D=o(i(e,0,m));c=D-o(a[0])}else D=(c=u(a.index))+o(a[0]);if(f<c&&(l+=i(e,f,c)),f=D,l+=s="function"==typeof t?t.apply(null,a):t.replace(/\$(\$|\d)/g,function(e,n){return"$"===n?"$":a[n]}),c<r&&(D<r?p=Math.max(0,p+o(s)-o(a[0])):p+=o(s)-(r-c)),!n.global)break}return f<o(e)&&(l+=i(e,f)),e===l?[e,r]:[l,p]},iterate_formatting:function(e,n){function t(n){return" "===e.substring(n-6,n)||e.substring(n-1,n).match(/\s/)}var r=/^(&(?:[a-z\d]+|#\d+|#x[a-f\d]+);)/i;function i(n){return"["===e[n]&&"["===e[n+1]}function o(n){return"]"===e[n]&&"\\"===e[n-1]}function u(n){return _&&("]"!==e[n]||!l)&&!v}for(var a,s,c,l=$.terminal.have_formatting(e),f="",p=!1,m=0,D=-1,d=0,h=0;h<e.length;h++){var g=e.substring(h);(a=g.match(format_start_re))?(f=a[1],p=!1):f?"]"===e[h]&&(p?(f="",p=!1):p=!0):p=!0;var _=f&&p||!f,v=i(h);t(h)&&(_||v)&&(-1===D&&s!==h||-1!==D)&&(D=h);var y=e[h].match(/[[\]]/);if(_)if("&"===e[h]){if(c=h,a=e.substring(c).match(r)){h+=a[1].length-2;continue}++m,++d}else o(h)?(--m,--d):y&&l||(++m,++d);if(u(h)){2===strlen(e[h])&&d++;var b=n({count:m,index:h,formatting:f,length:d,text:p,space:D});if(!1===b)break;if(b&&(b.count!==undefined&&(m=b.count),b.length!==undefined&&(d=b.length),b.space!==undefined&&(s=D,D=b.space),b.index!==undefined)){h=b.index;continue}}else h===e.length-1&&n({count:m+1,index:h,formatting:f,length:0,text:p,space:D});var C=get_next_character(g);C.length>1&&(h+=C.length-1)}},substring:function(e,n,t){if(!$.terminal.split_characters(text(e)).slice(n,t).length)return"";var r,i,o=0,u="",a="",s=/(&[^;]+);$/;return $.terminal.iterate_formatting(e,function(c){var l;n&&c.count===n+1&&(o=c.index,(l=e.substring(0,o+1).match(s))&&(o-=l[1].length),c.formatting&&(u=c.formatting)),t&&c.count===t&&(a=c.formatting,i=c.index),c.count===t+1&&(r=c.index,(l=e.substring(0,r+1).match(s))&&(r-=l[1].length),c.formatting&&(r=i+1))}),n&&!o?"":(r===undefined&&(r=e.length),e=u+e.substring(o,r),a&&(e=e.replace(/(\[\[^\]]+)?\]$/,""),e+="]"),e)},normalize:function(e){return e.replace(format_re,function(e,n,t){if(""===t)return"";function r(e){return e.replace(/\\\]/g,"]").replace(/\n/g,"\\n").replace(/ /g," ")}var i=(n=r(n)).match(/;/g).length;if(i>=4){var o=n.split(/;/);return"[["+o.slice(0,4).join(";")+";"+(o.slice(4).join(";")||t)+"]"+t+"]"}return"[["+n+(i=2===i?";;":3===i?";":"")+r(t)+"]"+t+"]"})},split_equal:function(e,n,t){for(var r="",i=[],o=$.terminal.normalize(e).split(/\n/g),u=0,a=o.length;u<a;++u)if(""!==o[u]){var s,c=o[u],l=0,f=c.length,p=$.terminal.split_characters(text(c)),m=p[p.length-1];$.terminal.iterate_formatting(c,function(e){var o,u=e.index===f-m.length;if(e.length>=n||u||e.length===n-1&&2===strlen(c[e.index+1])){var a,p=!1;if(t&&-1!==e.space){var D=text(c.substring(e.space)),d=D.length,h=e.index+n+1;((D=D.substring(0,h)).match(/\s| /)||h>d)&&(p=!0)}if(t&&-1!==e.space&&e.index!==f-1&&p?(s=c.substring(l,e.space),a=e.space-1):(o=get_next_character(c.substring(e.index)),s=c.substring(l,e.index)+o,a=e.index+o.length-1),t&&(s=s.replace(/^( |\s)+|( |\s)+$/g,"")),l=(a||e.index)+1,r){var g=s.match(/^[^\]]*\]/);s=r+s,g&&(r="")}var _=s.match(format_re);if(_){var v=_[_.length-1];"]"!==v[v.length-1]?(r=v.match(format_begin_re)[1],s+="]"):s.match(format_end_re)&&(s=s.replace(format_end_re,""),r=v.match(format_begin_re)[1])}return i.push(s),{index:a,length:0,space:-1}}})}else i.push("");return i},amp:function(e){return e.replace(/&(?!#[0-9]+;|[a-zA-Z]+;)/g,"&")},encode:function(e,n){var t=$.extend({tabs:4,before:""},n);return $.terminal.amp(e).replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").split("\n").map(function(e){var n=e.split(/((?:\[\[[^\]]+\])?\t(?:\])?)/);return(n=n.filter(Boolean)).map(function(e,r){return e.match(/\t/)?e.replace(/\t([^\t]*)$/,function(e,i){if(0!==r&&n[r-1].match(/\t\]?$/))return new Array(t.tabs+1).join(" ")+i;var o=n.slice(r-1,r).join("");t.before&&r<=1&&(o=t.before+o);var u=$.terminal.length(o),a=t.tabs-u%t.tabs;return 0===a&&(a=4),new Array(a+1).join(" ")+i}):e}).join("")}).join("\n")},nested_formatting:function(e){if(!$.terminal.have_formatting(e))return e;var n=[],t=/(\[\[(?:[^\][]|\\\])+\])[\s\S]*/;return e.split(/((?:\[\[(?:[^\][]|\\\])+\])?(?:[^\][]|\\\])*\]?)/).filter(Boolean).map(function(e){if(e.match(/^\[\[/))$.terminal.is_formatting(e)||(e+="]",n.push(e.replace(t,"$1")));else{var r=!1;e.match(/\]/)&&(r=!0),n.length&&(e=n[n.length-1]+e),r?n.pop():n.length&&(e+="]")}return e}).join("")},escape_formatting:function(e){return $.terminal.escape_brackets(e)},apply_formatters:function(e,n){if(""===e)return"number"==typeof n.position?["",n.position]:"";var t,r=$.terminal.defaults.formatters,i=0;function o(e,t){var r=$.extend({},n,{position:t[1]}),o=e(t[0],r);return"string"==typeof o?(function(e,n,t,r){e.__no_warn__||$.terminal.length(t)===$.terminal.length(r)||warn("Your formatter["+n+"] change length of the string, you should use [regex, replacement] formatter or function that return [replacement, position] instead")}(e,i-1,o,t[0]),"string"==typeof o?[o,r.position]:t):o instanceof Array&&2===o.length?o:t}t="number"==typeof(n=n||{}).position?[e,n.position]:[e,0];try{var u=r.reduce(function(e,n){if(i++,"function"==typeof n&&n.__meta__)return o(n,e);var t,r=0,u=!1,a=$.terminal.format_split(e[0]).map(function(t){var i,a=text(t).length;e[1]<=r+a&&!u?(i=e[1]-r,u=!0):i=-1;var s,c=r;if(r+=a,$.terminal.is_formatting(t))return[t,-1];if(n instanceof Array){var l=n[2]||{};if((s=[t,i<0?0:i])[0].match(n[0]))if(l.loop)for(;s[0].match(n[0]);)s=$.terminal.tracking_replace(s[0],n[0],n[1],s[1]);else s=$.terminal.tracking_replace(s[0],n[0],n[1],s[1]);if(i<0)return[s[0],-1]}else"function"==typeof n&&(s=o(n,[t,i]));return void 0!==s?(-1!==s[1]&&(s[1]+=c),s):[t,-1]}),s=a.filter(function(e){return-1!==e[1]})[0],c=a.map(function(e){return e[0]}).join("");t=void 0===s?e[1]:s[1];var l=text(c).length;return t>l&&(t=l),c===e[0]?e:[c,t]},t);if("number"==typeof n.position){var a=$.terminal.strip(u[0]).length;if($.terminal.length(u[0])<a){var s=u[1];s=normalize_position(u[0],s);var c=$.terminal.length(u[0]);s>c&&(s=c),u[1]=s}return u}return u[0]}catch(f){var l="Error in formatter ["+(i-1)+"]";throw r.splice(i-1),new $.terminal.Exception("formatting",l,f.stack)}},format:function(e,n){function t(e){return e.match(/\\]/)&&(e=e.replace(/(\\+)]/g,function(e,n){return n.length%2==1?"]":n.replace(/../,"\\")})),safe(e)}var r=$.extend({},{linksNoReferrer:!1,linksNoFollow:!1,anyLinks:!1},n||{});if("string"==typeof e){var i=$.terminal.format_split(e);return(e=$.map(i,function(e){if(""===e)return e;if($.terminal.is_formatting(e))return(e=e.replace(/\[\[[^\]]+\]/,function(e){return e.replace(/ /g," ")})).replace(format_parts_re,function(e,i,o,u,a,s,c){if(""===c)return"";c=t(c);var l="";-1!==i.indexOf("b")&&(l+="font-weight:bold;");var f,p=[];-1!==i.indexOf("u")&&p.push("underline"),-1!==i.indexOf("s")&&p.push("line-through"),-1!==i.indexOf("o")&&p.push("overline"),p.length&&(l+="text-decoration:"+p.join(" ")+";"),-1!==i.indexOf("i")&&(l+="font-style:italic;"),$.terminal.valid_color(o)&&(l+="color:"+o+";--color:"+o+";",-1!==i.indexOf("g")&&(l+="text-shadow:0 0 5px "+o+";")),$.terminal.valid_color(u)&&(l+="background-color:"+u),f=""===s?c:s.replace(/]/g,"]").replace(/>/g,">").replace(/</g,"<");var m,D=extra_css(c,n);if(D&&(c=wide_characters(c,n),l+=D),-1!==i.indexOf("!")){if(f.match(email_re))m='<a href="mailto:'+f+'"';else{r.anyLinks||f.match(/^(https?|ftp):\/\//)||(f=""),m='<a target="_blank" href="'+f+'"';var d=["noopener"];r.linksNoReferrer&&d.unshift("noreferrer"),r.linksNoFollow&&d.unshift("nofollow"),m+=' rel="'+d.join(" ")+'"'}m+=' tabindex="1000"'}else m="<span";return""!==l&&(m+=' style="'+l+'"'),""!==a&&(m+=' class="'+a+'"'),-1!==i.indexOf("!")?m+=">"+c+"</a>":m+=' data-text="'+f.replace(/"/g,""e;")+'">'+c+"</span>",m});var i=extra_css(e=t(e),n);return i.length?'<span style="'+i+'">'+(e=wide_characters(e,n))+"</span>":"<span>"+e+"</span>"}).join("")).replace(/<span><br\s*\/?><\/span>/gi,"<br/>")}return""},escape_brackets:function(e){return e.replace(/\[/g,"[").replace(/\]/g,"]")},unescape_brackets:function(e){return e.replace(/[/g,"[").replace(/]/g,"]")},length:function(e){return $.terminal.split_characters(text(e)).length},split_characters:function(e){for(var n=[];e.length;){var t=get_next_character(e);e=e.substring(t.length),n.push(t)}return n},columns:function(e,n,t){var r=e.map(function(e){return $.terminal.strip(e)}).map(function(e){return strlen(e)});void 0===t&&(t=4);var i=Math.max.apply(null,r)+t,o=Math.floor(n/i)-1;if(o<1)return e.join("\n");for(var u=[],a=0,s=e.length;a<s;a+=o){var c=e.slice(a,a+o),l=c.pop();u.push(c.reduce(function(e,n){var t=$.terminal.strip(n),r=new Array(i-t.length+1).join(" ");return e.push(n+r),e},[]).join("")+l)}return u.join("\n")},strip:function(e){return(e=e.replace(format_parts_re,"$6")).replace(/\\([[\]])/g,function(e,n){return n})},active:function(){return terminals.front()},last_id:function(){return terminals.length()-1},parse_argument:function(e,n){function t(e){return e.split(string_re).map(function(e){if(e.match(/^['"]/)){if('""'===e||"''"===e)return"";var n=e[0],t=new RegExp("(^|(?:\\\\(?:\\\\)*)?)"+n,"g");e=e.replace(t,"$1")}return e='"'+e+'"',JSON.parse(e)}).join("")}if(!1===n)return"'"===e[0]&&"'"===e[e.length-1]?e.replace(/^'|'$/g,""):'"'===e[0]&&'"'===e[e.length-1]?e.replace(/^"|"$/g,"").replace(/\\([" ])/g,"$1"):e.match(/\/.*\/[gimy]*$/)?e:e.match(/['"]]/)?t(e):e.replace(/\\ /g," ");var r=e.match(re_re);return r?new RegExp(r[1],r[2]):e.match(/['"]/)?t(e):e.match(/^-?[0-9]+$/)?parseInt(e,10):e.match(float_re)?parseFloat(e):e.replace(/\\(['"() ])/g,"$1")},parse_arguments:function(e){return $.map(e.match(command_re)||[],$.terminal.parse_argument)},split_arguments:function(e){return $.map(e.match(command_re)||[],function(e){return $.terminal.parse_argument(e,!1)})},parse_command:function(e){return process_command(e,$.terminal.parse_argument)},split_command:function(e){return process_command(e,function(e){return $.terminal.parse_argument(e,!1)})},parse_options:function e(n,t){var r=$.extend({},{boolean:[]},t);if("string"==typeof n)return e($.terminal.split_arguments(n),t);var i={_:[]};function o(e){this.value=e}var u=n.reduce(function(e,n){if("string"!=typeof n&&(n=String(n)),n.match(/^-/)&&e instanceof o&&(i[e.value]=!0),n.match(/^--/)){var t=n.replace(/^--/,"");if(-1===r.boolean.indexOf(t))return new o(t);i[t]=!0}else if(n.match(/^-/)){var u=n.replace(/^-/,"").split("");if(-1===r.boolean.indexOf(u.slice(-1)[0]))var a=u.pop();if(u.forEach(function(e){i[e]=!0}),a)return new o(a)}else e instanceof o?i[e.value]=n:n&&i._.push(n);return null},null);return u instanceof o&&(i[u.value]=!0),i},extended_command:function extended_command(term,string,options){var settings=$.extend({invokeMethods:!1},options);try{change_hash=!1;var m=string.match(extended_command_re);if(m){if(!settings.invokeMethods)return void warn("To invoke terminal or cmd methods you need to enable invokeMethods option");string=m[1];var obj="terminal"===m[2]?term:term.cmd(),fn=m[3];try{var args=eval("["+m[4]+"]");obj[fn]?obj[fn].apply(term,args):term.error("Unknow function "+fn)}catch(e){term.error("Invalid invocation in "+$.terminal.escape_brackets(string))}}else term.exec(string,!0).done(function(){change_hash=!0})}catch(e){}},iterator:function(e){function n(e){return $.terminal.is_formatting(e)&&e.match(/\]\\\]/)&&(e=e.replace(/\]\\\]/g,"]\\\\]")),e}if("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator){var t=$.terminal.length(e),r=0,i={};return i[Symbol.iterator]=function(){return{next:function(){if(r<t){var i=$.terminal.substring(e,r,r+1);return r++,{value:n(i)}}return{done:!0}}}},i}},formatter:new function(){try{this[Symbol.split]=function(e){return $.terminal.format_split(e)},this[Symbol.match]=function(e){return e.match(format_re)},this[Symbol.replace]=function(e,n){return e.replace(format_parts_re,n)},this[Symbol.search]=function(e){return e.search(format_re)}}catch(e){}},new_formatter:function(e){for(var n=$.terminal.defaults.formatters,t=0;t<n.length;++t)if(n[t]===$.terminal.nested_formatting)return void n.splice(t,0,e);n.push(e)}},$.terminal.Exception=function(e,n,t){1===arguments.length?(this.message=arguments[0],this.type="TERMINAL"):(this.type=e,this.message=n,t&&(this.stack=t))},$.terminal.Exception.prototype=new Error,$.terminal.Exception.prototype.toString=function(){return this.message+"\n"+this.stack},$.fn.visible=function(){return this.css("visibility","visible")},$.fn.hidden=function(){return this.css("visibility","hidden")};var warnings=[];function warn(e){e="[jQuery Terminal] "+e,-1===warnings.indexOf(e)&&(warnings.push(e),console?console.warn?console.warn(e):console.log&&console.log(e):setTimeout(function(){throw new Error("WARN: "+e)},0))}var ids={};function get_char_size(e){var n=$('<div class="terminal temp"><div class="terminal-output"><div><div class="line" style="float: left"><span> </span></div></div></div></div>').appendTo("body");if(n.addClass(e.attr("class")),e){var t=e.attr("style");t&&(t=t.split(/\s*;\s*/).filter(function(e){return!e.match(/display\s*:\s*none/i)}).join(";"),n.attr("style",t))}var r=n.find(".line")[0].getBoundingClientRect(),i={width:r.width,height:r.height};return n.remove(),i}function get_num_chars(e,n){var t=e.find(".terminal-fill").width();return Math.floor(t/n.width)||1e3}function get_num_rows(e,n){return Math.floor(e.find(".terminal-fill").height()/n.height)}function all(e,n){return e.filter(function(e){return e[n]()===e}).length===e.length}function string_case(e){var n=e.split("");return all(n,"toLowerCase")?"lower":all(n,"toUpperCase")?"upper":"mixed"}function same_case(e){return"mixed"!==string_case(e)}function is_function(e){return"function"===get_type(e)}function get_type(e){return"function"==typeof e?"function":$.type(e)}$.jrpc=function(e,n,t,r,i){var o,u=new $.Deferred;o=$.isPlainObject(e)?e:{url:e,method:n,params:t,success:r,error:i},ids[o.url]=ids[o.url]||0;var a={jsonrpc:"2.0",method:o.method,params:o.params,id:++ids[o.url]};return $.ajax({url:o.url,beforeSend:function(e,n){is_function(o.request)&&o.request(e,a),n.data=JSON.stringify(a)},success:function(e,n,t){var r;t.getResponseHeader("Content-Type").match(/(application|text)\/json/)||warn("Response Content-Type is neither application/json nor text/json");try{r=JSON.parse(e)}catch(i){if(!o.error)throw new $.terminal.Exception("JSON","Invalid JSON",i.stack);return o.error(t,"Invalid JSON",i),void u.reject({message:"Invalid JSON",response:e})}is_function(o.response)&&o.response(t,r),!function(e){return $.isNumeric(e.id)&&(void 0!==e.result||void 0!==e.error)}(r)&&"system.describe"!==o.method?(o.error&&o.error(t,"Invalid JSON-RPC"),u.reject({message:"Invalid JSON-RPC",response:e})):(o.success&&o.success(r,n,t),u.resolve(r))},error:o.error,contentType:"application/json",dataType:"text",async:!0,cache:!1,type:"POST"}),u.promise()};var version_set=!$.terminal.version.match(/^\{\{/),copyright="Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl/me>",version_string=version_set?" v. "+$.terminal.version:" ",reg=new RegExp(" {"+version_string.length+"}$"),name_ver="jQuery Terminal Emulator"+(version_set?version_string:""),signatures=[["jQuery Terminal","(c) 2011-2018 jcubic"],[name_ver,copyright.replace(/^Copyright | *<.*>/g,"")],[name_ver,copyright.replace(/^Copyright /,"")],[" _______ ________ __"," / / _ /_ ____________ _/__ ___/______________ _____ / /"," __ / / // / // / _ / _/ // / / / _ / _/ / / \\/ / _ \\/ /","/ / / // / // / ___/ // // / / / ___/ // / / / / /\\ / // / /__","\\___/____ \\\\__/____/_/ \\__ / /_/____/_//_/_/_/_/_/ \\/\\__\\_\\___/"," \\/ /____/ ".replace(reg," ")+version_string,copyright],[" __ _____ ________ __"," / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /"," __ / // // // // // _ // _// // / / // _ // _// // // \\/ // _ \\/ /","/ / // // // // // ___// / / // / / // ___// / / / / // // /\\ // // / /__","\\___//____ \\\\___//____//_/ _\\_ / /_//____//_/ /_/ /_//_//_/ /_/ \\__\\_\\___/"," \\/ /____/ ".replace(reg,"")+version_string,copyright]];$.terminal.nested_formatting.__meta__=!0,$.terminal.nested_formatting.__no_warn__=!0,$.terminal.defaults={prompt:"> ",history:!0,exit:!0,clear:!0,enabled:!0,maskChar:"*",wrap:!0,checkArity:!0,raw:!1,invokeMethods:!1,exceptionHandler:null,pauseEvents:!0,softPause:!1,memory:!1,cancelableAjax:!0,processArguments:!0,linksNoReferrer:!1,anyLinks:!1,linksNoFollow:!1,processRPCResponse:null,completionEscape:!0,onCommandChange:null,convertLinks:!0,extra:{},tabs:4,historySize:60,scrollObject:null,historyState:!1,importHistory:!1,historyFilter:null,echoCommand:!0,scrollOnEcho:!0,login:null,outputLimit:-1,formatters:[$.terminal.nested_formatting],onAjaxError:null,pasteImage:!0,scrollBottomOffset:20,wordAutocomplete:!0,caseSensitiveAutocomplete:!0,caseSensitiveSearch:!0,clickTimeout:200,holdTimeout:400,holdRepeatTimeout:200,request:$.noop,response:$.noop,describe:"procs",onRPCError:null,doubleTab:null,completion:!1,onInit:$.noop,onClear:$.noop,onBlur:$.noop,onFocus:$.noop,onTerminalChange:$.noop,onExit:$.noop,onPush:$.noop,onPop:$.noop,keypress:$.noop,keydown:$.noop,onAfterRedraw:$.noop,onEchoCommand:$.noop,onFlush:$.noop,strings:{comletionParameters:"From version 1.0.0 completion function need to have two arguments",wrongPasswordTryAgain:"Wrong password try again!",wrongPassword:"Wrong password!",ajaxAbortError:"Error while aborting ajax call!",wrongArity:"Wrong number of arguments. Function '%s' expects %s got %s!",commandNotFound:"Command '%s' Not Found!",oneRPCWithIgnore:"You can use only one rpc with describe == false or rpc without system.describe",oneInterpreterFunction:"You can't use more than one function (rpc without system.describe or with option describe == false counts as one)",loginFunctionMissing:"You didn't specify a login function",noTokenError:"Access denied (no token)",serverResponse:"Server responded",wrongGreetings:"Wrong value of greetings parameter",notWhileLogin:"You can't call `%s' function while in login",loginIsNotAFunction:"Authenticate must be a function",canExitError:"You can't exit from main interpreter",invalidCompletion:"Invalid completion",invalidSelector:"Sorry, but terminal said that you use invalid selector!",invalidTerminalId:"Invalid Terminal ID",login:"login",password:"password",recursiveCall:"Recursive call detected, skip",notAString:"%s function: argument is not a string",redrawError:"Internal error, wrong position in cmd redraw",invalidStrings:"Command %s have unclosed strings",defunctTerminal:"You can't call method on terminal that was destroyed"}};var requests=[],terminals=new Cycle,save_state=[],hash_commands,change_hash=!1,fire_hash_change=!0,first_instance=!0;$.fn.terminal=function(e,n){function t(e){if($.terminal.unclosed_strings(e)){var n=$.terminal.escape_brackets(e),t=sprintf(B().invalidStrings,"`"+n+"`");throw new $.terminal.Exception(t)}return is_function(ne.processArguments)?process_command(e,ne.processArguments):ne.processArguments?$.terminal.parse_command(e):$.terminal.split_command(e)}function r(e){"string"==typeof e?O.echo(e):e instanceof Array?O.echo($.map(e,function(e){return JSON.stringify(e)}).join(" ")):"object"==typeof e?O.echo(JSON.stringify(e)):O.echo(e)}function i(e){if(is_function(ne.onRPCError))ne.onRPCError.call(O,e);else if(O.error("[RPC] "+e.message),e.error&&e.error.message){var n="\t"+(e=e.error).message;e.file&&(n+=' in file "'+e.file.replace(/.*\//,"")+'"'),e.at&&(n+=" at line "+e.at),O.error(n)}}function o(e,n){var o=function(n,t){O.pause(ne.softPause),$.jrpc({url:e,method:n,params:t,request:function(e,n){try{ne.request.call(O,e,n,O)}catch(t){f(t,"USER")}},response:function(e,n){try{ne.response.call(O,e,n,O)}catch(t){f(t,"USER")}},success:function(e){e.error?i(e.error):is_function(ne.processRPCResponse)?ne.processRPCResponse.call(O,e.result,O):r(e.result),O.resume()},error:a})};return function(e,r){if(""!==e){try{e=t(e)}catch(u){return void f(u,"TERMINAL (get_processed_command)")}if(n&&"help"!==e.name){var i=r.token();i?o(e.name,[i].concat(e.args)):r.error("[AUTH] "+B().noTokenError)}else o(e.name,e.args)}}}function u(e,n,r,i){return function(o,a){if(""!==o){var s;try{s=t(o)}catch(p){return void(is_function(ne.exception)?ne.exception(p,O):O.error("Error: "+(p.message||p)))}var c=e[s.name],l=get_type(c);if("function"===l){if(!n||c.length===s.args.length)return c.apply(O,s.args);O.error("[Arity] "+sprintf(B().wrongArity,s.name,c.length,s.args.length))}else if("object"===l||"string"===l){var f=[];"object"===l&&(f=Object.keys(c),c=u(c,n,r)),a.push(c,{prompt:s.name+"> ",name:s.name,completion:"object"===l?f:undefined})}else is_function(i)?i(o,O):is_function(ne.onCommandNotFound)?ne.onCommandNotFound.call(O,o,O):a.error(sprintf(B().commandNotFound,s.name))}}}function a(e,n,t){O.resume(),is_function(ne.onAjaxError)?ne.onAjaxError.call(O,e,n,t):"abort"!==n&&O.error("[AJAX] "+n+" - "+B().serverResponse+":\n"+$.terminal.escape_brackets(e.responseText))}function s(e,n,t){function o(e){e.error?i(e.error):is_function(ne.processRPCResponse)?ne.processRPCResponse.call(O,e.result,O):r(e.result),O.resume()}function u(e,n){try{ne.request.call(O,e,n,O)}catch(t){f(t,"USER")}}function s(e,n){try{ne.response.call(O,e,n,O)}catch(t){f(t,"USER")}}return $.jrpc({url:e,method:"system.describe",params:[],success:function(r){var i=r;if(""!==ne.describe&&ne.describe.split(".").forEach(function(e){i=i[e]}),i&&i.length){var c={};$.each(i,function(t,r){$.isPlainObject(r)&&"string"==typeof r.name&&(c[r.name]=function(){var t=n&&"help"!==r.name,i=Array.prototype.slice.call(arguments),c=i.length+(t?1:0);if(ne.checkArity&&r.params&&r.params.length!==c)O.error("[Arity] "+sprintf(B().wrongArity,r.name,r.params.length,c));else{if(O.pause(ne.softPause),t){var l=O.token(!0);l?i=[l].concat(i):O.error("[AUTH] "+B().noTokenError)}$.jrpc({url:e,method:r.name,params:i,request:u,response:s,success:o,error:a})}})});var l="string"==typeof n?n:"login";c.help=c.help||function(e){if(void 0===e){var t=r.procs.map(function(e){return e.name}).join(", ")+", help";O.echo("Available commands: "+t)}else{var o=!1;if($.each(i,function(t,r){if(r.name===e){o=!0;var i="";if(i+="[[bu;;]"+r.name+"]",r.params){var u=r.params;n&&r.name!==l&&(u=u.slice(1)),i+=" "+u.join(" ")}return r.help&&(i+="\n"+r.help),O.echo(i),!1}}),!o)if("help"===e)O.echo("[[bu;;]help] [method]\ndisplay help for the method or list of methods if not specified");else{var u="Method `"+e+"' not found ";O.error(u)}}},t(c)}else t(null)},request:u,response:s,error:function(){t(null)}})}function c(e,n,t){t=t||$.noop;var r,i,a=get_type(e),c={},l=0;if("array"===a)r={},function e(t,u){if(t.length){var a=t[0],c=t.slice(1),f=get_type(a);"string"===f?(O.pause(ne.softPause),!1===ne.describe?(1==++l?i=o(a,n):O.error(B().oneRPCWithIgnore),e(c,u)):s(a,n,function(t){t?$.extend(r,t):1==++l?i=o(a,n):O.error(B().oneRPCWithIgnore),O.resume(),e(c,u)})):"function"===f?(i?O.error(B().oneInterpreterFunction):i=a,e(c,u)):"object"===f&&($.extend(r,a),e(c,u))}else u()}(e,function(){t({interpreter:u(r,!1,n,i.bind(O)),completion:Object.keys(r)})});else if("string"===a)ne.ignoreSystemDescribe?(r={interpreter:o(e,n)},$.isArray(ne.completion)&&(r.completion=ne.completion),t(r)):(O.pause(ne.softPause),s(e,n,function(r){r?(c.interpreter=u(r,!1,n),c.completion=Object.keys(r)):c.interpreter=o(e,n),t(c),O.resume()}));else if("object"===a)t({interpreter:u(e,ne.checkArity,n),completion:Object.keys(e)});else{if("undefined"===a)e=$.noop;else if("function"!==a){var f=a+" is invalid interpreter value";throw new $.terminal.Exception(f)}t({interpreter:e,completion:ne.completion})}}function l(e,n){var t="boolean"===get_type(n)?"login":n;return function(n,r,i){O.pause(ne.softPause),$.jrpc({url:e,method:t,params:[n,r],request:function(e,n){try{ne.request.call(O,e,n,O)}catch(t){f(t,"USER")}},response:function(e,n){try{ne.response.call(O,e,n,O)}catch(t){f(t,"USER")}},success:function(e){!e.error&&e.result?i(e.result):i(null),O.resume()},error:a})}}function f(e,n,t){is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,e,n):(O.exception(e,n),t||setTimeout(function(){throw e},0))}var p=[],m=1;function D(e,n,t){var r,i;if(p.push(m),""===e);else if(t.raw)p.push(e);else{var o={linksNoReferrer:ne.linksNoReferrer,linksNoFollow:ne.linksNoFollow,anyLinks:ne.anyLinks,char_width:G.width},u=O.cols();if((strlen(e)>u||e.match(/\n/))&&(!0===ne.wrap&&t.wrap===undefined||!1===ne.wrap&&!0===t.wrap)){var a=t.keepWords,s=$.terminal.split_equal(e,u,a);for(r=0,i=s.length;r<i;++r)""===s[r]||"\r"===s[r]?p.push("<span></span>"):p.push($.terminal.format(s[r],o))}else e=$.terminal.normalize(e),(e=$.terminal.format(e,o)).split(/\n/).forEach(function(e){p.push(e)})}p.push({finalize:t.finalize,index:n})}function d(e){try{var n,t=$.extend({exec:!0,raw:!1,finalize:$.noop},e.options||{}),r=e.string,i=is_function(r);if(i&&(r=r()),"string"!==get_type(r))if(is_function(ne.parseObject)){var o=ne.parseObject(r);"string"===get_type(o)&&(n=o)}else n=r instanceof Array?$.terminal.columns(r,O.cols(),ne.tabs):String(r);else n=r;if(""!==n&&""!==n){if(!t.raw){if(ne.convertLinks&&(n=n.replace(email_re,"[[!;;]$1]").replace(url_nf_re,"[[!;;]$1]")),t.formatters)try{n=$.terminal.apply_formatters(n,ne)}catch(a){f(a,"FORMATTING")}var u=n.split(format_exec_re);""!==(n=$.map(u,function(e){if(e&&e.match(format_exec_re)&&!$.terminal.is_formatting(e)){if(e=e.replace(/^\[\[|\]\]$/g,""),t.exec)L&&(L=L.command.trim()),void 0===e.trim()?O.error(B().recursiveCall):$.terminal.extended_command(O,e,{invokeMethods:ne.invokeMethods});return""}return e}).join(""))&&(n=crlf($.terminal.normalize(n)),n=$.terminal.encode(n,{tabs:ne.tabs}))}""!==n&&D(n,e.index,t)}""===n&&i&&D(n,e.index,t)}catch(a){p=[],is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,a,"TERMINAL"):alert_exception("[Internal Exception(process_line)]",a)}}function h(e){if(!(e=$.extend({},{update:!1,scroll:!0},e||{})).update){re.resize(P);var n=I.empty().detach()}var t,r=[];ne.outputLimit>=0?(t=0===ne.outputLimit?O.rows():ne.outputLimit,se.forEach(function(e,n){var t=e[0],i=e[1];"function"===get_type(t)&&(t=t()),"string"!==get_type(t)&&(t=String(t)),r.push({string:t,index:n,options:i})}),r=r.slice(r.length-t-1)):r=se.map(function(e,n){return{string:e[0],index:n,options:e[1]}});try{p=[],$.each(r,function(e,n){d(n)}),e.update||re.before(n),O.flush(e);try{ne.onAfterRedraw.call(O,O)}catch(i){ne.onAfterRedraw=$.noop,f(i,"onAfterRedraw")}}catch(i){is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,i,"TERMINAL (redraw)"):alert_exception("[redraw]",i)}}function g(){if(ne.greetings===undefined)O.echo(O.signature,{finalize:a11y_hide,formatters:!1});else if(ne.greetings){var e=typeof ne.greetings;if("string"===e)O.echo(ne.greetings);else if("function"===e)try{ne.greetings.call(O,O.echo)}catch(n){ne.greetings=null,f(n,"greetings")}else O.error(B().wrongGreetings)}}function _(e){void 0===e&&(e=O.get_command());var n=re.prompt(!0),t=re.mask();switch(typeof t){case"string":e=e.replace(/./g,t);break;case"boolean":e=t?e.replace(/./g,ne.maskChar):$.terminal.escape_formatting(e)}var r={finalize:function(n){a11y_hide(n.addClass("command"));try{ne.onEchoCommand.call(O,n,e)}catch(t){ne.onEchoCommand=$.noop,O.exception(t)}}};if(is_function(n)){var i=n(function(n){O.echo(n+e,r)});i&&is_function(i.then)&&i.then(function(n){"string"==typeof n&&O.echo(n+e,r)})}else O.echo(n+e,r)}var v=!0,y=[];function b(e,n,t){function i(){t||(change_hash=!0,ne.historyState&&O.save_state(e,!1),change_hash=s),a.resolve(),is_function(ne.onAfterCommand)&&ne.onAfterCommand.call(O,O,e)}function o(e){void 0!==e&&r(e),i(),O.resume()}v&&(v=!1,(ne.historyState||ne.execHash&&t)&&(save_state.length?O.save_state(null):O.save_state()));try{if(is_function(ne.onBeforeCommand)&&!1===ne.onBeforeCommand.call(O,O,e))return;t||(L=$.terminal.split_command(e)),x()||t&&(is_function(ne.historyFilter)&&ne.historyFilter(e)||e.match(ne.historyFilter))&&re.history().append(e);var u=te.top();!n&&ne.echoCommand&&_(e);var a=new $.Deferred,s=change_hash;if(e.match(/^\s*login\s*$/)&&O.token(!0))O.level()>1?O.logout(!0):O.logout(),i();else if(ne.exit&&e.match(/^\s*exit\s*$/)&&!X){var c=O.level();(1===c&&O.get_token()||c>1)&&(O.get_token(!0)&&O.set_token(undefined,!0),O.pop()),i()}else if(ne.clear&&e.match(/^\s*clear\s*$/)&&!X)O.clear(),i();else{var l=function(){var n=u.interpreter.call(O,e,O);if(n){if(O.pause(ne.softPause),!is_function(n.done||n.then))return $.when(n).done(o);(n.done||n.then).call(n,o)}else pe?y.push(function(){i()}):i()}();if(l)return l}return a.promise()}catch(p){if(f(p,"USER",t),O.resume(),t)throw p}}function C(){var e=O.prefix_name(!0)+"_";ce.remove(e+"token"),ce.remove(e+"login")}function w(e){var n,t,r,i=te.top(),o=O.prefix_name(!0);x()||(n=o,t=O.prefix_name()+"_interpreters",r=(r=ce.get(t))?JSON.parse(r):[],-1===$.inArray(n,r)&&(r.push(n),ce.set(t,JSON.stringify(r))));var u=O.login_name(!0);re.name(o+(u?"_"+u:"")),i.prompt!==re.prompt()&&(is_function(i.prompt)?re.prompt(function(e){var n=i.prompt.call(O,e,O);n&&is_function(n.then)&&n.then(function(n){"string"==typeof n&&e(n)})}):re.prompt(i.prompt)),void 0!==i.history&&O.history().toggle(i.history),$.isPlainObject(i.keymap)&&re.keymap($.omap(i.keymap,function(e,n){return function(){var e=[].slice.call(arguments);try{return n.apply(O,e)}catch(t){f(t,"USER KEYMAP")}}})),re.set(""),Q.resolve(),!e&&is_function(i.onStart)&&i.onStart.call(O,O)}function E(){if(fire_hash_change&&ne.execHash)try{if(location.hash){var e=location.hash.replace(/^#/,"");hash_commands=JSON.parse(decodeURIComponent(e))}else hash_commands=[];hash_commands.length?function(e){var n=terminals.get()[e[0]];if(!n)throw new $.terminal.Exception(B().invalidTerminalId);var t=e[1];if(save_state[t])n.import_view(save_state[t]);else{change_hash=!1;var r=e[2];r&&n.exec(r).done(function(){change_hash=!0,save_state[t]=n.export_view()})}}(hash_commands[hash_commands.length-1]):save_state[0]&&O.import_view(save_state[0])}catch(n){f(n,"TERMINAL")}}function F(){w(),g(),se.length&&O.refresh();var e=!1;if(is_function(ne.onInit)){Z=function(){e=!0};try{ne.onInit.call(O,O)}catch(n){f(n,"OnInit")}finally{Z=$.noop,!e&&O.enabled()&&O.resume()}}first_instance&&(first_instance=!1,$(window).on("hashchange",E))}function x(){return X||!1!==re.mask()}function k(e){var n,t=te.top();if(is_function(t.keydown)){if((n=t.keydown.call(O,e,O))!==undefined)return n}else if(is_function(ne.keydown)&&(n=ne.keydown.call(O,e,O))!==undefined)return n}var A={"CTRL+D":function(e,n){return X||(""===re.get()?te.size()>1||is_function(_e)?O.pop(""):(O.resume(),O.echo("")):n()),!1},"CTRL+C":function(){if(""===get_selected_text()){var e=O.get_command(),n=O.get_position();_(e=e.substring(0,n)+"^C"+e.substring(n+2)),O.set_command("")}},"CTRL+L":function(){O.clear()},TAB:function(e,n){var t,r,i=te.top();function o(e){O.complete(e,{echo:!0,word:ne.wordAutocomplete,escape:ne.completionEscape,caseSensitive:r,doubleTab:ne.doubleTab})}if(r=void 0!==i.caseSensitiveAutocomplete?i.caseSensitiveAutocomplete:ne.caseSensitiveAutocomplete,"settings"===(t=ne.completion&&"boolean"!==get_type(ne.completion)&&i.completion===undefined?ne.completion:i.completion)&&(t=ne.completion),t)switch(get_type(t)){case"function":var u=O.before_cursor(ne.wordAutocomplete);if(3===t.length)return f(new Error(B().comletionParameters),"USER"),!1;var a=t.call(O,u,o);a&&is_function(a.then)&&a.then(o);break;case"array":o(t);break;default:throw new $.terminal.Exception(B().invalidCompletion)}else n();return!1},"CTRL+V":function(e,n){return n(e),O.oneTime(200,function(){O.scroll_to_bottom()}),!0},"CTRL+TAB":function(){if(terminals.length()>1)return O.focus(!1),!1},PAGEDOWN:function(){O.scroll(O.height())},PAGEUP:function(){O.scroll(-O.height())}};function T(e){var n,t;if(O.enabled()){if(O.paused()){if(!ne.pauseEvents&&(n=k(e))!==undefined)return n;if(68===e.which&&e.ctrlKey){if(ne.pauseEvents&&(n=k(e))!==undefined)return n;if(requests.length){for(t=requests.length;t--;){var r=requests[t];if(4!==r.readyState)try{r.abort()}catch(i){is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,e,"AJAX ABORT"):O.error(B().ajaxAbortError)}}requests=[]}O.resume()}return!1}if((n=k(e))!==undefined)return n;9!==e.which&&(q=0)}}function S(e){var n=te.top();if(le&&(!pe||!ne.pauseEvents)){if(is_function(n.keypress))return n.keypress.call(O,e,O);if(is_function(ne.keypress))return ne.keypress.call(O,e,O)}}function R(e){return function(n){e.add(n)}}function B(){return $.extend({},$.terminal.defaults.strings,ne&&ne.strings||{})}var j,L,O=this;if(this.length>1)return this.each(function(){$.fn.terminal.call($(this),e,$.extend({name:O.selector},n))});if(O.data("terminal"))return O.data("terminal");if(0===O.length){var z=sprintf(B().invalidSelector);throw new $.terminal.Exception(z)}var I,P,N,H,M,U,q=0,W=terminals.length(),K=new Stack,J=new DelayQueue,Q=new DelayQueue,Y=R(Q),G=get_char_size(O),V=R(J),X=!1,Z=$.noop,ee=[],ne=$.extend({},$.terminal.defaults,{name:O.selector,exit:!!(n&&n.login||!n)},n||{});delete ne.formatters;var te,re,ie,oe,ue,ae=!1,se=[],ce=new function(e){e&&(this.storage={}),this.set=function(n,t){e?this.storage[n]=t:$.Storage.set(n,t)},this.get=function(n){return e?this.storage[n]:$.Storage.get(n)},this.remove=function(n){e?delete this.storage[n]:$.Storage.remove(n)}}(ne.memory),le=ne.enabled,fe=!1,pe=!1,me=!0;$.extend(O,$.omap({id:function(){return W},clear:function(){I.html(""),se=[];try{ne.onClear.call(O,O)}catch(e){f(e,"onClear")}return O.attr({scrollTop:0}),O},export_view:function(){var e={};if(is_function(ne.onExport))try{e=ne.onExport.call(O)}catch(n){f(n,"onExport")}return $.extend({},{focus:le,mask:re.mask(),prompt:O.get_prompt(),command:O.get_command(),position:re.position(),lines:clone(se),interpreters:te.clone(),history:re.history().data},e)},import_view:function(e){if(X)throw new Error(sprintf(B().notWhileLogin,"import_view"));if(is_function(ne.onImport))try{ne.onImport.call(O,e)}catch(n){ne.onImport=$.noop,f(n,"onImport")}return Y(function(){O.set_prompt(e.prompt),O.set_command(e.command),re.position(e.position),re.mask(e.mask),e.focus&&O.focus(),se=clone(e.lines).filter(function(e){return e[0]}),e.interpreters instanceof Stack&&(te=e.interpreters),ne.importHistory&&re.history().set(e.history),h()}),O},save_state:function(e,n,t){if(void 0!==t?save_state[t]=O.export_view():save_state.push(O.export_view()),$.isArray(hash_commands)||(hash_commands=[]),e!==undefined&&!n){var r=[W,save_state.length-1,e];hash_commands.push(r),change_hash&&(fire_hash_change=!1,location.hash="#"+JSON.stringify(hash_commands),setTimeout(function(){fire_hash_change=!0},100))}return O},exec:function(e,n,t){var r=t||new $.Deferred;return V(function(){if($.isArray(e))!function t(){var i=e.shift();i?O.exec(i,n).done(t):r.resolve()}();else if(pe)ee.push([e,n,r]);else{var t=b(e,n,!0);t&&(t.done||t.then)&&(t.done||t.then).call(t,function(){r.resolve(O)})}}),r.promise()},autologin:function(e,n,t){return O.trigger("terminal.autologin",[e,n,t]),O},login:function(e,n,t,r){if(K.push([].slice.call(arguments)),X)throw new Error(sprintf(B().notWhileLogin,"login"));if(!is_function(e))throw new Error(B().loginIsNotAFunction);if(X=!0,O.token()&&1===O.level()&&!me)X=!1,O.logout(!0);else if(O.token(!0)&&O.login_name(!0))return X=!1,is_function(t)&&t(),O;ne.history&&re.history().disable();var i=O.level();function o(e,o,u){if(o){for(;O.level()>i;)O.pop(undefined,!0);ne.history&&re.history().enable();var a=O.prefix_name(!0)+"_";ce.set(a+"token",o),ce.set(a+"login",e),X=!1,is_function(t)&&t()}else n?(u||O.error(B().wrongPasswordTryAgain),O.pop(undefined,!0).set_mask(!1)):(X=!1,u||O.error(B().wrongPassword),O.pop(undefined,!0).pop(undefined,!0)),is_function(r)&&r();O.off("terminal.autologin")}return O.on("terminal.autologin",function(e,n,t,r){o(n,t,r)}),O.push(function(n){O.set_mask(ne.maskChar).push(function(t){try{var r=e.call(O,n,t,function(e,t){o(n,e,t)});r&&is_function(r.then)&&(O.pause(),r.then(function(e){o(n,e),O.resume()}))}catch(i){f(i,"AUTH")}},{prompt:B().password+": ",name:"password"})},{prompt:B().login+": ",name:"login"}),O},settings:function(){return ne},before_cursor:function(e){var n,t=re.position(),r=re.get().substring(0,t),i=r.split(" ");if(e)if(1===i.length)n=i[0];else{var o=r.match(/(\\?")/g),u=o?o.filter(function(e){return!e.match(/^\\/)}).length:0;if(((o=r.match(/'/g))?o.length:0)%2==1)n=r.match(/('[^']*)$/)[0];else if(u%2==1)n=r.match(/("(?:[^"]|\\")*)$/)[0];else for(n=i[i.length-1],Ce=i.length-1;Ce>0;Ce--){var a=i[Ce-1];if("\\"!==a[a.length-1])break;n=i[Ce-1]+" "+n}}else n=r;return n},complete:function(e,n){var t=(n=$.extend({word:!0,echo:!1,escape:!0,caseSensitive:!0,doubleTab:null},n||{})).caseSensitive,r=O.before_cursor(n.word).replace(/\\"/g,'"'),i=!1;if(n.word&&(r.match(/^"/)?i='"':r.match(/^'/)&&(i="'"),i&&(r=r.replace(/^["']/,""))),e=e.slice(),ne.clear&&-1===$.inArray("clear",e)&&e.push("clear"),ne.exit&&-1===$.inArray("exit",e)&&e.push("exit"),q%2==0)H=O.before_cursor(n.word);else if(O.before_cursor(n.word)!==H)return;var o=$.terminal.escape_regex(r);n.escape&&(o=o.replace(/(\\+)(["'() ])/g,function(e,n,t){return t.match(/[()]/)?n+"\\?\\"+t:n+"?"+t}));var u=new RegExp("^"+o,t?"":"i"),a=function(){for(var o=[],a=e.length;a--;)if(u.test(e[a])){var s=e[a];'"'===i&&(s=s.replace(/"/g,'\\"')),!i&&n.escape&&(s=s.replace(/(["'() ])/g,"\\$1")),!t&&same_case(s)&&(r.toLowerCase()===r?s=s.toLowerCase():r.toUpperCase()===r&&(s=s.toUpperCase())),o.push(s)}return o}();function s(e,n){var t=O.get_command(),r=O.get_position(),o=new RegExp("^"+e,"i"),u=t.substring(0,r),a=t.substring(r),s=n.replace(o,"")+(i||"");O.set_command(u+s+a),O.set_position((u+s).length)}if(1===a.length)return n.escape?s(o,a[0]):O.insert(a[0].replace(u,"")+(i||"")),H=O.before_cursor(n.word),!0;if(a.length>1)if(++q>=2){if(q=0,n.echo){if(is_function(n.doubleTab)){var c=n.doubleTab.call(O,r,a,_);return void 0===c||c}if(!1!==n.doubleTab){_();var l=a.reverse().join("\t");O.echo($.terminal.escape_brackets(l),{keepWords:!0,formatters:!1})}return!0}}else{var f=common_string(r,a,t);if(f)return s(r,f),H=O.before_cursor(n.word),!0}},commands:function(){return te.top().interpreter},set_interpreter:function(e,n){function t(){O.pause(ne.softPause),c(e,n,function(e){O.resume();var n=te.top();$.extend(n,e),w(!0)})}return is_function(n)?O.login(n,!0,t):"string"===get_type(e)&&n?O.login(l(e,n),!0,t):t(),O},greetings:function(){return g(),O},paused:function(){return pe},pause:function(e){return V(function(){Z(),pe=!0,re.disable(e||is_android),e||re.find(".prompt").hidden(),is_function(ne.onPause)&&ne.onPause.call(O)}),O},resume:function(){return V(function(){pe=!1,le&&terminals.front()===O&&re.enable(!0),re.find(".prompt").visible();var e=ee;ee=[];for(var n=0;n<e.length;++n)O.exec.apply(O,e[n]);O.trigger("resume");var t=y.shift();t&&t(),O.scroll_to_bottom(),is_function(ne.onResume)&&ne.onResume.call(O)}),O},cols:function(){return ne.numChars?ne.numChars:(void 0!==P&&1e3!==P||(P=get_num_chars(O,G)),P)},rows:function(){return ne.numRows?ne.numRows:(void 0===N&&(N=get_num_rows(O,G)),N)},history:function(){return re.history()},history_state:function(e){function n(){ne.historyState=!0,save_state.length?terminals.length()>1&&O.save_state(null):O.save_state()}return e?void 0===window.setImmediate?setTimeout(n,0):setImmediate(n):ne.historyState=!1,O},clear_history_state:function(){return hash_commands=[],save_state=[],O},next:function(){if(1===terminals.length())return O;terminals.front().disable();var e=terminals.rotate().enable(),n=e.offset().top-50;$("html,body").animate({scrollTop:n},500);try{trigger_terminal_change(e)}catch(t){f(t,"onTerminalChange")}return e},focus:function(e,n){return V(function(){if(1===terminals.length())!1===e?O.disable(n):O.enable(n);else if(!1===e)O.next();else{if(terminals.front()!==O&&(terminals.forEach(function(e){e!==O&&e.enabled()&&e.disable(n)}),!n))try{trigger_terminal_change(O)}catch(t){f(t,"onTerminalChange")}terminals.set(O),O.enable(n)}}),O},freeze:function(e){return Y(function(){e?(O.disable(),fe=!0):(fe=!1,O.enable())}),O},frozen:function(){return fe},enable:function(e){return le||fe||(P===undefined&&O.resize(),V(function(){var n;if(!e&&!le)try{n=ne.onFocus.call(O,O)}catch(t){ne.onFocus=$.noop,f(t,"onFocus")}(!e&&n===undefined||e)&&(le=!0,O.paused()||re.enable(!0))})),O},disable:function(e){return V(function(){var n;if(!e&&le)try{n=ne.onBlur.call(O,O)}catch(t){ne.onBlur=$.noop,f(t,"onBlur")}(!e&&n===undefined||e)&&(le=!1,re.disable())}),O},enabled:function(){return le},signature:function(){for(var e=O.cols(),n=signatures.length;n--;){var t=signatures[n].map(function(e){return e.length});if(Math.max.apply(null,t)<=e)return signatures[n].join("\n")+"\n"}return""},version:function(){return $.terminal.version},cmd:function(){return re},get_command:function(){return re.get()},set_command:function(e,n){return Y(function(){"string"!=typeof e&&(e=JSON.stringify(e)),re.set(e,undefined,n)}),O},set_position:function(e,n){return Y(function(){re.position(e,n)}),O},get_position:function(){return re.position()},insert:function(e,n){if("string"==typeof e)return Y(function(){var t=O.is_bottom();re.insert(e,n),(ne.scrollOnEcho||t)&&O.scroll_to_bottom()}),O;throw new Error(sprintf(B().notAString,"insert"))},set_prompt:function(e){return Y(function(){is_function(e)?re.prompt(function(n){e.call(O,n,O)}):re.prompt(e),te.top().prompt=e}),O},get_prompt:function(){return te.top().prompt},set_mask:function(e){return Y(function(){re.mask(!0===e?ne.maskChar:e)}),O},get_output:function(e){return e?se:$.map(se,function(e){return is_function(e[0])?e[0]():e[0]}).join("\n")},resize:function(e,n){if(O.is(":visible")){if(e&&n&&(O.width(e),O.height(n)),e=O.width(),n=O.height(),void 0!==ne.numChars||void 0!==ne.numRows)return re.resize(ne.numChars),void O.refresh();var t=get_num_chars(O,G),r=get_num_rows(O,G);if(t!==P||r!==N){P=t,N=r,re.resize(P),O.refresh();var i=te.top();is_function(i.resize)?i.resize.call(O,O):is_function(ne.onResize)&&ne.onResize.call(O,O)}}else O.stopTime("resize"),O.oneTime(500,"resize",function(){O.resize(e,n)});return O},refresh:function(){return 0!==G.width&&O[0].style.setProperty("--char-width",G.width),h({scroll:!1,update:!0}),O},flush:function(e){e=$.extend({},{update:!1,scroll:!0},e||{});try{var n,t=O.is_bottom();$.each(p,function(t,r){if(r===m)n=$("<div></div>");else if($.isPlainObject(r)&&is_function(r.finalize)){if(e.update){var i="> div[data-index="+r.index+"]",o=I.find(i);o.html()!==n.html()&&o.replaceWith(n)}else n.appendTo(I);r.finalize(n.attr("data-index",r.index))}else $("<div/>").html(r).appendTo(n).width("100%")}),function(){if(ne.outputLimit>=0){var e;e=0===ne.outputLimit?O.rows():ne.outputLimit;var n=I.find("> div > div");if(n.length+1>e){var t=n.length-e+1,r=n.slice(0,t),i=r.parent();r.remove(),i.each(function(){var e=$(this);e.is(":empty")&&e.remove()})}}}();try{ne.onFlush.call(O,O)}catch(r){ne.onFlush=$.noop,f(r,"onFlush")}(ne.scrollOnEcho&&e.scroll||t)&&O.scroll_to_bottom(),p=[]}catch(r){is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,r,"TERMINAL (Flush)"):alert_exception("[Flush]",r)}return O},update:function(e,n,t){return Y(function(){e<0&&(e=se.length+e),se[e]?null===n?(se.splice(e,1),I.find("[data-index="+e+"]").remove()):(se[e][0]=n,t&&(se[e][1]=t),d({string:n,index:e,options:t}),O.flush({scroll:!1,update:!0})):O.error("Invalid line number "+e)}),O},remove_line:function(e){return O.update(e,null)},last_index:function(){return se.length-1},echo:function(e,n){function t(e){try{var t=$.extend({flush:!0,raw:ne.raw,finalize:$.noop,keepWords:!1,formatters:!0},n||{});r=t.finalize,t.finalize=function(e){t.raw&&e.addClass("raw");try{is_function(r)&&r(e)}catch(n){f(n,"USER:echo(finalize)"),r=null}},t.flush&&(p.length&&O.flush(),p=[]),"function"==typeof e&&(e=e.bind(O)),d({string:e,options:t,index:se.length}),se.push([e,$.extend(t,{exec:!1})]),t.flush&&O.flush()}catch(i){is_function(ne.exceptionHandler)?ne.exceptionHandler.call(O,i,"TERMINAL (echo)"):alert_exception("[Terminal.echo]",i)}var r}return e!==undefined&&is_function(e.then)?$.when(e).done(t):t(e),O},error:function(e,n){function t(e){return"string"!=typeof e&&(e=String(e)),"[[;;;error]"+$.terminal.escape_brackets(e).replace(/\\$/,"\").replace(url_re,"]$1[[;;;error]")+"]"}return n=$.extend({},n,{raw:!1,formatters:!1}),"function"==typeof e?O.echo(function(){return t(e.call(O))},n):e&&e.then?(e.then(function(e){O.echo(t(e))}),O):O.echo(t(e),n)},exception:function(e,n){var t=exception_message(e);if(n&&(t="["+n+"]: "+t),t&&O.error(t,{finalize:function(e){e.addClass("exception message")},keepWords:!0}),"string"==typeof e.fileName&&(O.pause(ne.softPause),$.get(e.fileName,function(n){var t=e.lineNumber-1,r=n.split("\n")[t];r&&O.error("["+e.lineNumber+"]: "+r),O.resume()},"text")),e.stack){var r=$.terminal.escape_brackets(e.stack);O.echo(r.split(/\n/g).map(function(e){return"[[;;;error]"+e.replace(url_re,function(e){return"]"+e+"[[;;;error]"})+"]"}).join("\n"),{finalize:function(e){e.addClass("exception stack-trace")},formatters:!1})}return O},scroll:function(e){var n;return e=Math.round(e),j.prop?(e>j.prop("scrollTop")&&e>0&&j.prop("scrollTop",0),n=j.prop("scrollTop"),j.scrollTop(n+e)):(e>j.attr("scrollTop")&&e>0&&j.attr("scrollTop",0),n=j.attr("scrollTop"),j.scrollTop(n+e)),O},logout:function(e){if(X)throw new Error(sprintf(B().notWhileLogin,"logout"));return Y(function(){if(e){var n=K.pop();O.set_token(undefined,!0),O.login.apply(O,n)}else if(1===te.size()&&O.token())O.logout(!0);else for(;te.size()>1;)O.token()?O.logout(!0).pop().pop():O.pop()}),O},token:function(e){return ce.get(O.prefix_name(e)+"_token")},set_token:function(e,n){var t=O.prefix_name(n)+"_token";return void 0===e?ce.remove(t):ce.set(t,e),O},get_token:function(e){return O.token(e)},login_name:function(e){return ce.get(O.prefix_name(e)+"_login")},name:function(){return te.top().name},prefix_name:function(e){var n=(ne.name?ne.name+"_":"")+W;if(e&&te.size()>1){var t=te.map(function(e){return e.name||""}).slice(1).join("_");t&&(n+="_"+t)}return n},read:function(e,n,t){var r=jQuery.Deferred(),i=!1;return O.push(function(e){i=!0,r.resolve(e),is_function(n)&&n(e),O.pop(),ne.history&&re.history().enable()},{name:"read",history:!1,prompt:e||"",onExit:function(){i||(r.reject(),is_function(t)&&t())}}),ne.history&&re.history().disable(),r.promise()},push:function(e,n){return V(function(){n=n||{};var t=$.extend({},{infiniteLogin:!1},n);!t.name&&L&&(t.name=L.name),t.prompt===undefined&&(t.prompt=(t.name||">")+" ");var r=te.top();r&&(r.mask=re.mask());var i=pe;function o(){ne.onPush.call(O,r,te.top(),O),w()}c(e,n.login,function(n){if(te.push($.extend({},n,t)),!0===t.completion&&($.isArray(n.completion)?te.top().completion=n.completion:n.completion||(te.top().completion=!1)),t.login){var r,u=get_type(t.login);"function"===u?(r=t.infiniteLogin?$.noop:O.pop,O.login(t.login,t.infiniteLogin,o,r)):("string"===get_type(e)&&"string"===u||"boolean"===u)&&(r=t.infiniteLogin?$.noop:O.pop,O.login(l(e,t.login),t.infiniteLogin,o,r))}else o();!i&&O.enabled()&&O.resume()})}),O},pop:function(e,n){e!==undefined&&_(e);var t,r=O.token(!0);if(1===te.size())if(t=te.top(),ne.login){if(n||ne.onPop.call(O,t,null,O),function(){if(is_function(ne.onBeforeLogout))try{if(!1===ne.onBeforeLogout.call(O,O))return}catch(e){ne.onBeforeLogout=$.noop,f(e,"onBeforeLogout")}if(C(),is_function(ne.onAfterLogout))try{ne.onAfterLogout.call(O,O)}catch(e){ne.onAfterLogout=$.noop,f(e,"onAfterlogout")}O.login(_e,!0,F)}(),is_function(ne.onExit))try{ne.onExit.call(O,O)}catch(o){ne.onExit=$.noop,f(o,"onExit")}}else O.error(B().canExitError);else{r&&C();var i=te.pop();if(t=te.top(),w(),n||ne.onPop.call(O,i,t),X&&O.get_prompt()!==B().login+": "&&(X=!1),is_function(i.onExit))try{i.onExit.call(O,O)}catch(o){i.onExit=$.noop,f(o,"onExit")}O.set_mask(t.mask)}return O},option:function(e,n){if(void 0===n){if("string"==typeof e)return ne[e];"object"==typeof e&&$.each(e,function(e,n){ne[e]=n})}else ne[e]=n,e.match(/^num(Chars|Rows)$/)&&h();return O},invoke_key:function(e){var n=e.toUpperCase().split("+"),t=n.pop(),r=-1!==n.indexOf("CTRL"),i=-1!==n.indexOf("SHIFT"),o=-1!==n.indexOf("ALT"),u=-1!==n.indexOf("META"),a=$.Event("keydown",{ctrlKey:r,shiftKey:i,altKey:o,metaKey:u,which:he[t],key:t}),s=$(document.documentElement||window);return s.trigger(a),(a=$.Event("keypress")).key=t,a.which=a.keyCode=0,s.trigger(a),O},keymap:function(e,n){if(0===arguments.length)return re.keymap();if(void 0===n){if("string"==typeof e)return re.keymap(e);$.isPlainObject(e)&&(e=$.omap(e||{},function(e,n){return xe[e]?function(t,r){return n.call(O,t,function(){return xe[e](t,r)})}:n.bind(O)}),re.keymap(e))}else if("function"==typeof n){var t=e;xe[t]?re.keymap(t,function(e,r){return n.call(O,e,function(){return xe[t](e,r)})}):re.keymap(t,n.bind(O))}},level:function(){return te.size()},reset:function(){return Y(function(){for(O.clear();te.size()>1;)te.pop();F()}),O},purge:function(){return Y(function(){var e=O.prefix_name()+"_",n=ce.get(e+"interpreters");n&&$.each(JSON.parse(n),function(e,n){ce.remove(n+"_commands"),ce.remove(n+"_token"),ce.remove(n+"_login")}),re.purge(),ce.remove(e+"interpreters")}),O},destroy:function(){return Y(function(){re.destroy().remove(),I.remove(),ve.remove(),$(document).unbind(".terminal_"+O.id()),$(window).unbind(".terminal_"+O.id()),O.unbind("click wheel mousewheel mousedown mouseup"),O.removeData("terminal").removeClass("terminal").unbind(".terminal"),ne.width&&O.css("width",""),ne.height&&O.css("height",""),$(window).off("blur",Fe).off("focus",Ee),O.find(".terminal-fill").remove(),O.stopTime(),terminals.remove(W),oe&&(oe.unobserve?oe.unobserve(O[0]):clearInterval(oe)),ue&&ue.disconnect(),O.resizer("unbind"),ye.resizer("unbind").remove(),terminals.length()||$(window).off("hashchange"),ae=!0}),O},scroll_to_bottom:function(){var e;return e=j.prop?j.prop("scrollHeight"):j.attr("scrollHeight"),j.scrollTop(e),O},is_bottom:function(){return-1!==ne.scrollBottomOffset&&(O.is("body")?(e=$(document).height(),n=$(window).scrollTop(),t=window.innerHeight):(e=j[0].scrollHeight,n=j.scrollTop(),t=j.outerHeight()),n+t>e-ne.scrollBottomOffset);var e,n,t}},function(e,n){return function(){if(ae&&!ne.exceptionHandler)throw new $.terminal.Exception(B().defunctTerminal);try{return n.apply(O,[].slice.apply(arguments))}catch(t){if("exec"!==e&&"resume"!==e&&f(t,t.type||"TERMINAL",!0),!ne.exceptionHandler)throw t}}}));var De={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"};for(Ce=1;Ce<25;Ce++)De[111+Ce]="F"+Ce;var de="";for(Ce=65;Ce<91;Ce++)de=String.fromCharCode(Ce),De[Ce]=[de.toLowerCase(),de.toUpperCase()];var he={};Object.keys(De).forEach(function(e){De[e]instanceof Array?De[e].forEach(function(n){he[n.toUpperCase()]=e}):he[De[e].toUpperCase()]=e}),!0===ne.ignoreSystemDescribe&&(ne.describe=!1),ne.width&&O.width(ne.width),ne.height&&O.height(ne.height),(j=null!==ne.scrollObject?$(ne.scrollObject):O).is("body")&&!is_safari&&(j=$("html,body")),$(document).bind("ajaxSend.terminal_"+O.id(),function(e,n){requests.push(n)});var ge,_e,ve=$('<div class="terminal-wrapper"/>').appendTo(O),ye=$('<div class="font"> </div>').appendTo(O),be=$('<div class="terminal-fill"/>').appendTo(O);if(I=$("<div>").addClass("terminal-output").attr("role","log").appendTo(ve),O.addClass("terminal"),ne.login&&is_function(ne.onBeforeLogin))try{!1===ne.onBeforeLogin.call(O,O)&&(me=!1)}catch($e){ne.onBeforeLogin=$.noop,f($e,"onBeforeLogin")}if("string"==typeof e)ge=e;else if(e instanceof Array)for(var Ce=0,we=e.length;Ce<we;++Ce)if("string"==typeof e[Ce]){ge=e[Ce];break}function Ee(){ie&&O.focus()}function Fe(){ie=le,O.disable().find(".cmd textarea").trigger("blur",[!0])}is_function(ne.login)?_e=ne.login:!ge||"string"!=typeof ne.login&&!0!==ne.login||(_e=l(ge,ne.login)),terminals.append(O),$(document).on("paste.terminal_"+O.id(),function(e){function n(e,n){return-1!==e.type.indexOf(n)}if((e=e.originalEvent).clipboardData&&O.enabled()){var t=e.clipboardData.items;if(t)for(var r=0;r<t.length;r++)if(n(t[r],"image")&&ne.pasteImage){var i=t[r].getAsFile(),o=(window.URL||window.webkitURL).createObjectURL(i);O.echo('<img src="'+o+'"/>',{raw:!0})}else n(t[r],"text/plain")&&t[r].getAsString(O.insert);else if(e.clipboardData.getData){var u=e.clipboardData.getData("text/plain");O.insert(u)}return!1}});var xe=$.extend({},A,$.omap(ne.keymap||{},function(e,n){return A[e]?function(t,r){return n.call(O,t,function(){return A[e](t,r)})}:n.bind(O)}));return c(e,ne.login,function(e){function n(e){if(e=e.originalEvent){var n=document.elementFromPoint(e.clientX,e.clientY);!$(n).closest(".terminal").length&&O.enabled()&&O.disable()}}(ne.completion&&"boolean"!=typeof ne.completion||!ne.completion)&&(e.completion="settings"),te=new Stack($.extend({},ne.extra,{name:ne.name,prompt:ne.prompt,keypress:ne.keypress,keydown:ne.keydown,resize:ne.onResize,greetings:ne.greetings,mousewheel:ne.mousewheel,history:ne.history,keymap:xe},e)),re=$("<div/>").appendTo(ve).cmd({prompt:ne.prompt,history:ne.memory?"memory":ne.history,historyFilter:ne.historyFilter,historySize:ne.historySize,caseSensitiveSearch:ne.caseSensitiveSearch,width:"100%",enabled:!1,char_width:G.width,keydown:T,keymap:xe,clickTimeout:ne.clickTimeout,holdTimeout:ne.holdTimeout,holdRepeatTimeout:ne.holdRepeatTimeout,keypress:S,tabs:ne.tabs,onCommandChange:function(e){if(is_function(ne.onCommandChange))try{ne.onCommandChange.call(O,e,O)}catch($e){ne.onCommandChange=$.noop,f($e,"onCommandChange")}O.scroll_to_bottom()},commands:b}),O.oneTime(100,function(){$(document).bind("click.terminal_"+O.id(),n).bind("contextmenu.terminal_"+O.id(),n)});var t,r=$(window);function i(){G.width!==(G=get_char_size(O)).width&&re.option("char_width",G.width).refresh()}function o(){if(O.is(":visible")){var e=be.width(),n=be.height();U===n&&M===e||O.resize(),U=n,M=e}}function u(){O.resizer("unbind").resizer(o),ye.resizer("unbind").resizer(function(){i(),O.resize()})}function a(){oe&&(oe.unobserve?oe.unobserve(O[0]):clearInterval(oe));var e=O.enabled(),n=O.is(":visible");function t(){O.is(":visible")&&!n?(n=!0,u(),i(),o(),e&&O.enable()):n&&!O.is(":visible")&&(n=!1,e=$.terminal.active()===O&&O.enabled(),O.disable())}n&&u(),window.IntersectionObserver?(oe=new IntersectionObserver(t,{root:document.body})).observe(O[0]):oe=setInterval(t,400)}document.addEventListener("resume",function(){O.disable()}),is_mobile?O.click(function(){fe||(O.enabled()?O.disable():(O.focus(),re.enable()))}):(r.on("focus.terminal_"+O.id(),Ee).on("blur.terminal_"+O.id(),Fe),function(){var e,n,t=0,r="click_"+O.id(),i=O.find(".cmd textarea");function o(){if(e.is(".terminal")||e.is(".terminal-wrapper")){var n=O.get_command().length;O.set_position(n)}else e.closest(".prompt").length&&O.set_position(0);i.is(":focus")||i.focus(),u()}function u(){t=0,e=null}O.find(".cmd textarea").on("focus",function(){void 0!==n&&j.scrollTop(n)}).on("blur",function(){n=j.scrollTop()}),O.mousedown(function(n){scrollbar_event(n,be)||(e=$(n.target))}).mouseup(function(){if(""===get_selected_text()&&e)if(1==++t){if(!fe){if(le){var n=ne.clickTimeout;return void O.oneTime(n,r,o)}O.focus()}}else O.stopTime(r);u()}).dblclick(function(){u(),O.stopTime(r)})}(),t=O.find(".cmd textarea"),O.on("contextmenu.terminal",function(e){if(""===get_selected_text()&&!$(e.target).is("img,value,audio,object,canvas,a")){O.enabled()||O.enable();var n=re.offset();t.css({left:e.pageX-n.left-20,top:e.pageY-n.top-20,width:"5em",height:"4em"}),t.is(":focus")||t.focus(),O.stopTime("textarea"),O.oneTime(100,"textarea",function(){t.css({left:"",top:"",width:"",height:""})}),O.stopTime("selection"),O.everyTime(20,"selection",function(){t[0].selection!==t[0].value&&get_textarea_selection(t[0])&&(clear_textarea_selection(t[0]),select(O.find(".terminal-output")[0],O.find(".cmd div:last-of-type")[0]),O.stopTime("selection"))})}})),O.on("click","a",function(e){var n,t=$(this);if(t.closest(".exception").length){var r=t.attr("href");r.match(/:[0-9]+$/)&&(e.preventDefault(),(n=r.match(/(.*):([0-9]+):([0-9]+)$/))&&(O.pause(ne.softPause),$.get(n[1],function(e){var t=n[1];O.echo("[[b;white;]"+t+"]");var r=e.split("\n"),i=+n[2]-1;O.echo(r.slice(i-2,i+3).map(function(e,n){return 2===n&&(e="[[;#f00;]"+$.terminal.escape_brackets(e)+"]"),"["+(i+n-1)+"]: "+e}).join("\n")).resume()},"text")))}le&&O.find(".cmd textarea").focus()}),o(),O.is(":visible")&&u();var s=!!O.closest("body").length,c=window.MutationObserver||window.WebKitMutationObserver;c&&(ue=new c(function(){O.closest("body").length?(s||(O.scroll_to_bottom(),window.IntersectionObserver&&a(),o()),s=!0):s&&(s=!1)})).observe(document.body,{childList:!0}),s&&a(),J.resolve(),le&&O.is(":visible")&&!is_mobile?O.focus(undefined,!0):O.disable(),is_function(_e)?O.login(_e,!0,F):F(),ne.execHash&&location.hash?setTimeout(function(){try{var e=location.hash.replace(/^#/,"");hash_commands=JSON.parse(decodeURIComponent(e));var n=0;!function e(){var t=hash_commands[n++];t?function(e){var n=terminals.get()[e[0]];if(n&&W===n.id()){if(e[2]){if(pe){var t=$.Deferred();return y.push(function(){return n.exec(e[2]).done(function(){n.save_state(e[2],!0,e[1]),t.resolve()})}),t.promise()}return n.exec(e[2]).done(function(){n.save_state(e[2],!0,e[1])})}return t.resolve(),t.promise()}}(t).done(e):change_hash=!0}()}catch($e){}}):change_hash=!0,function(){var e=!1;function n(n,t){if(!e){var r,i=te.top();if(is_function(i.mousewheel)?r=i.mousewheel(n,t,O):is_function(ne.mousewheel)&&(r=ne.mousewheel(n,t,O)),((O.is("body")?window.innerWidth-document.documentElement.clientWidth>0:be.outerWidth()!==O.outerWidth())||!1===r)&&(n.stopPropagation(),n.preventDefault()),!1===r)return!1;if(!0===r)return;t>0?O.scroll(-40):O.scroll(40)}}if($(document).bind("keydown.terminal_"+O.id(),function(n){n.shiftKey&&(e=!0)}).bind("keyup.terminal_"+O.id(),function(n){(n.shiftKey||16===n.which)&&(e=!1)}),$.event.special.mousewheel)O.on("mousewheel",n);else{var t,r=document.createElement("div");t="onwheel"in r?"wheel":document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",r=null,O.on(t,function(e){n(e,-("mousewheel"===t?-.025*e.originalEvent.wheelDelta:e.originalEvent.deltaY||e.originalEvent.detail))})}}()}),O.data("terminal",O),O}});
|
35
|
+
},{"jquery":"eeO1","wcwidth":"QgmU","process":"rH1J"}],"q8mm":[function(require,module,exports) {
|
36
|
+
var define;
|
37
|
+
var e;!function(t){"function"==typeof e&&e.amd?e(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(e){var t,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var s=n.length;s;)e.event.fixHooks[n[--s]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=o.length;t;)this.addEventListener(o[--t],h,!1);else this.onmousewheel=h;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],h,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function h(n){var o,s=n||window.event,h=l.call(arguments,1),f=0,d=0,c=0,m=0,g=0;if((n=e.event.fix(s)).type="mousewheel","detail"in s&&(c=-1*s.detail),"wheelDelta"in s&&(c=s.wheelDelta),"wheelDeltaY"in s&&(c=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*c,c=0),f=0===c?d:c,"deltaY"in s&&(f=c=-1*s.deltaY),"deltaX"in s&&(d=s.deltaX,0===c&&(f=-1*d)),0!==c||0!==d){if(1===s.deltaMode){var w=e.data(this,"mousewheel-line-height");f*=w,c*=w,d*=w}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");f*=v,c*=v,d*=v}if(o=Math.max(Math.abs(c),Math.abs(d)),(!i||o<i)&&(i=o,u(s,o)&&(i/=40)),u(s,o)&&(f/=40,d/=40,c/=40),f=Math[f>=1?"floor":"ceil"](f/i),d=Math[d>=1?"floor":"ceil"](d/i),c=Math[c>=1?"floor":"ceil"](c/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var p=this.getBoundingClientRect();m=n.clientX-p.left,g=n.clientY-p.top}return n.deltaX=d,n.deltaY=c,n.deltaFactor=i,n.offsetX=m,n.offsetY=g,n.deltaMode=0,h.unshift(n,f,d,c),t&&clearTimeout(t),t=setTimeout(r,200),(e.event.dispatch||e.event.handle).apply(this,h)}}function r(){i=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)}})});
|
38
|
+
},{}],"Focm":[function(require,module,exports) {
|
39
|
+
"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}require("normalize.css"),require("jquery.terminal/css/jquery.terminal.min.css"),require("../css/index.css");var e=require("jquery"),o=require("jquery.terminal");o(window,e),require("jquery-mousewheel")(e);var t={url:"/rpc",promptPathLength:32,domain:document.domain||window.location.host,isSmallWindow:e(document).width()<625},_={user:"",hostname:"",path:""},r=NO_LOGIN,i=!1,c="Node Web Console",u="https://github.com/ChrisCindy/node-web-console",s="".concat(u,"\n");t.isSmallWindow||(c=" _ __ __ _ __ __ ______ __\n / | / /___ ____/ /__ | | / /__ / /_ / ____/___ ____ _________ / /__ \n / |/ / __ \\/ __ / _ \\ | | /| / / _ \\/ __ \\ / / / __ \\/ __ \\/ ___/ __ \\/ / _ \\\n / /| / /_/ / /_/ / __/ | |/ |/ / __/ /_/ / / /___/ /_/ / / / (__ ) /_/ / / __/\n/_/ |_/\\____/\\__,_/\\___/ |__/|__/\\___/_.___/ \\____/\\____/_/ /_/____/\\____/_/\\___/ ",s="\n".concat(u,"\n"));var a=null;function l(){a=e(".shell").terminal(g,{login:!r&&w,prompt:p(),greetings:r?"":"You are authenticated",completion:b,exceptionHandler:function(n){i||a.exception(n)}}).css({overflow:"auto"}),r?a.set_token("NO_LOGIN"):(v(),e(window).on("unload",function(){v()})),c&&a.echo(c),s&&a.echo(s)}function m(o){o&&("string"==typeof o?a.echo(o):o instanceof Array?a.echo(e.map(o,function(n){return e.json_stringify(n)}).join(" ")):"object"===n(o)?a.echo(e.json_stringify(o)):a.echo(o))}function p(){var n=_.path;return n&&n.length>t.promptPathLength&&(n="...".concat(n.slice(n.length-t.promptPathLength+3))),"[[b;#d33682;]".concat(_.user||"user","]@[[b;#6c71c4;]").concat(_.hostname||t.domain||"node-web-console","]").concat(n||"~","$ ")}function f(n){n.set_prompt(p())}function h(n,o){o&&(e.extend(_,o),f(n))}function d(n,o,_,r,i,c){(c=e.extend({pause:!0},c)).pause&&n.pause(),e.jrpc(t.url,o,_,function(o){if(c.pause&&n.resume(),o.error)if(i)i();else{var t=e.trim(o.error.message||""),_=e.trim(o.error.data||"");!t&&_&&(t=_,_=""),n.error("[ERROR] RPC: ".concat(t||"Unknown error").concat(_?" ("+_+")":""))}else r&&r(o.result)},function(o,t,_){if(c.pause&&n.resume(),i)i();else if("abort"!==t){var r=e.trim(o.responseText||"");n.error("[ERROR] AJAX: ".concat(t||"Unknown error").concat(r?"\nServer reponse:\n"+r:""))}})}function y(n,e,o,t,r,i){var c=n.token();if(c){var u=[c,_];o&&o.length&&u.push.apply(u,o),d(n,e,u,t,r,i)}else n.error("[ERROR] Access denied (no authentication token found)")}function g(n,o){if(n=e.trim(n||"")){var t=e.terminal.parse_command(n),_=null,r=[];"cd"===t.name.toLowerCase()?(_="cd",r=[t.args.length?t.args[0]:""]):(_="run",r=[n]),_&&y(o,_,r,function(n){h(o,n.environment),m(n.output)})}}function w(n,o,t){n=e.trim(n||""),o=e.trim(o||""),n&&o?d(a,"login",[n,o],function(e){e&&e.token?(_.user=n,setTimeout(function(){h(a,e.environment)},0),m(e.output),t(e.token)):t(null)},function(){t(null)}):t(null)}function b(n,e){var o=this.terminal().export_view(),t=o.command.substring(0,o.position);y(a,"completion",[n,t],function(n){m(n.output),n.completion&&n.completion.length&&(n.completion.reverse(),e(n.completion))},null,{pause:!1})}function v(){i=!0;try{a.clear(),a.logout()}catch(n){}i=!1}l();
|
40
|
+
},{"normalize.css":"OAcZ","jquery.terminal/css/jquery.terminal.min.css":"OAcZ","../css/index.css":"OAcZ","jquery":"eeO1","jquery.terminal":"Adyr","jquery-mousewheel":"q8mm"}]},{},["Focm"], null)
|
41
|
+
//# sourceMappingURL=/index.map
|