mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 06:19:39 +03:00
1 line
434 KiB
JavaScript
1 line
434 KiB
JavaScript
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,t){var d=[],h=x.document,u=d.slice,I=d.concat,H=d.push,G=d.indexOf,_={},V=_.toString,m=_.hasOwnProperty,g={},e="1.12.4",S=function(e,t){return new S.fn.init(e,t)},W=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,F=/^-ms-/,B=/-([\da-z])/gi,z=function(e,t){return t.toUpperCase()};function j(e){var t=!!e&&"length"in e&&e.length,n=S.type(e);return"function"!==n&&!S.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:e,constructor:S,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=S.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:H,sort:d.sort,splice:d.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||S.isFunction(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(r=arguments[a]))for(n in r)i=o[n],t=r[n],o!==t&&(l&&t&&(S.isPlainObject(t)||(e=S.isArray(t)))?(i=e?(e=!1,i&&S.isArray(i)?i:[]):i&&S.isPlainObject(i)?i:{},o[n]=S.extend(l,i,t)):void 0!==t&&(o[n]=t));return o},S.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===S.type(e)},isArray:Array.isArray||function(e){return"array"===S.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!S.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){if(!e||"object"!==S.type(e)||e.nodeType||S.isWindow(e))return!1;try{if(e.constructor&&!m.call(e,"constructor")&&!m.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}if(!g.ownFirst)for(var t in e)return m.call(e,t);for(t in e);return void 0===t||m.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?_[V.call(e)]||"object":typeof e},globalEval:function(e){e&&S.trim(e)&&(x.execScript||function(e){x.eval.call(x,e)})(e)},camelCase:function(e){return e.replace(F,"ms-").replace(B,z)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(j(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(W,"")},makeArray:function(e,t){t=t||[];return null!=e&&(j(Object(e))?S.merge(t,"string"==typeof e?[e]:e):H.call(t,e)),t},inArray:function(e,t,n){var r;if(t){if(G)return G.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[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(j(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&a.push(i);return I.apply([],a)},guid:1,proxy:function(e,t){var n,r;return"string"==typeof t&&(r=e[t],t=e,e=r),S.isFunction(e)?(n=u.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||S.guid++,r):void 0},now:function(){return+new Date},support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=d[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){_["[object "+t+"]"]=t.toLowerCase()});var e=function(H){var e,h,w,o,G,m,_,V,x,l,c,S,C,t,N,g,r,i,v,k="sizzle"+ +new Date,y=H.document,R=0,W=0,b=le(),F=le(),M=le(),B=function(e,t){return e===t&&(c=!0),0},z={}.hasOwnProperty,n=[],j=n.pop,$=n.push,T=n.push,U=n.slice,A=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",X="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",K=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",Y=new RegExp(a+"+","g"),E=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Q=new RegExp("^"+a+"*,"+a+"*"),J=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),Z=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),ee=new RegExp(K),te=new RegExp("^"+s+"$"),d={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+K),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ne=/^(?:input|select|textarea|button)$/i,re=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,ie=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,oe=/[+~]/,ae=/'|\\/g,f=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),p=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)},se=function(){S()};try{T.apply(n=U.call(y.childNodes),y.childNodes),n[y.childNodes.length].nodeType}catch(ve){T={apply:n.length?function(e,t){$.apply(e,U.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function L(e,t,n,r){var i,o,a,s,l,c,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:y)!==C&&S(t),t=t||C,N)){if(11!==p&&(c=ie.exec(e)))if(i=c[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(t,a)&&a.id===i)return n.push(a),n}else{if(c[2])return T.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&h.getElementsByClassName&&t.getElementsByClassName)return T.apply(n,t.getElementsByClassName(i)),n}if(h.qsa&&!(M[e+" "]||g&&g.test(e))){if(1!==p)f=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(ae,"\\$&"):t.setAttribute("id",s=k),o=(u=m(e)).length,l=te.test(s)?"#"+s:"[id='"+s+"']";o--;)u[o]=l+" "+I(u[o]);d=u.join(","),f=oe.test(e)&&de(t.parentNode)||t}if(d)try{return T.apply(n,f.querySelectorAll(d)),n}catch(b){}finally{s===k&&t.removeAttribute("id")}}}return V(e.replace(E,"$1"),t,n,r)}function le(){var n=[];function r(e,t){return n.push(e+" ")>w.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function D(e){return e[k]=!0,e}function P(e){var t=C.createElement("div");try{return!!e(t)}catch(h){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function O(a){return D(function(o){return o=+o,D(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=L.support={},G=L.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},S=L.setDocument=function(e){var e=e?e.ownerDocument||e:y;return e!==C&&9===e.nodeType&&e.documentElement&&(t=(C=e).documentElement,N=!G(C),(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",se,!1):e.attachEvent&&e.attachEvent("onunload",se)),h.attributes=P(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=P(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=u.test(C.getElementsByClassName),h.getById=P(function(e){return t.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),h.getById?(w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N)return(e=t.getElementById(e))?[e]:[]},w.filter.ID=function(e){var t=e.replace(f,p);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var t=e.replace(f,p);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&N?t.getElementsByClassName(e):void 0},r=[],g=[],(h.qsa=u.test(C.querySelectorAll))&&(P(function(e){t.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+a+"*(?:value|"+q+")"),e.querySelectorAll("[id~="+k+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||g.push(".#.+[+~]")}),P(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=u.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&P(function(e){h.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",K)}),g=g.length&&new RegExp(g.join("|")),r=r.length&&new RegExp(r.join("|")),e=u.test(t.compareDocumentPosition),v=e||u.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},B=e?function(e,t){var n;return e===t?(c=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===y&&v(y,e)?-1:t===C||t.ownerDocument===y&&v(y,t)?1:l?A(l,e)-A(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:l?A(l,e)-A(l,t):0;if(i===o)return ue(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?ue(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0}),C},L.matches=function(e,t){return L(e,null,null,t)},L.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&S(e),t=t.replace(Z,"='$1']"),h.matchesSelector&&N&&!M[t+" "]&&!(r&&r.test(t)||g&&g.test(t)))try{var n=i.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(o){}return 0<L(t,C,null,[e]).length},L.contains=function(e,t){return(e.ownerDocument||e)!==C&&S(e),v(e,t)},L.attr=function(e,t){(e.ownerDocument||e)!==C&&S(e);var n=w.attrHandle[t.toLowerCase()],n=n&&z.call(w.attrHandle,t.toLowerCase())?n(e,t,!N):void 0;return void 0!==n?n:h.attributes||!N?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},L.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},L.uniqueSort=function(e){var t,n=[],r=0,i=0;if(c=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(B),c){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return l=null,e},o=L.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(w=L.selectors={cacheLength:50,createPseudo:D,match:d,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(f,p),e[3]=(e[3]||e[4]||e[5]||"").replace(f,p),"~="===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]||L.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]&&L.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return d.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ee.test(n)&&(t=(t=m(n,!0))&&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(f,p).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&b(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=L.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e.replace(Y," ")+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,m,g){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,l,c=v!=y?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),f=!n&&!b,p=!1;if(u){if(v){for(;c;){for(a=e;a=a[c];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===h&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&f){for(p=(s=(r=(i=(o=(a=u)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===R&&r[1])&&r[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0,l.pop());)if(1===a.nodeType&&++p&&a===e){i[h]=[R,s,p];break}}else if(!1===(p=f?s=(r=(i=(o=(a=e)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===R&&r[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0,l.pop()))&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(f&&((i=(o=a[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[R,p]),a!==e)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||L.error("unsupported pseudo: "+e);return a[k]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?D(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=A(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:D(function(e){var r=[],i=[],s=_(e.replace(E,"$1"));return s[k]?D(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:D(function(t){return function(e){return 0<L(t,e).length}}),contains:D(function(t){return t=t.replace(f,p),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:D(function(n){return te.test(n||"")||L.error("unsupported lang: "+n),n=n.replace(f,p).toLowerCase(),function(e){var t;do{if(t=N?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=H.location&&H.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===t},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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!w.pseudos.empty(e)},header:function(e){return re.test(e.nodeName)},input:function(e){return ne.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:O(function(){return[0]}),last:O(function(e,t){return[t-1]}),eq:O(function(e,t,n){return[n<0?n+t:n]}),even:O(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:O(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:O(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:O(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function fe(){}function I(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(a,e,t){var s=e.dir,l=t&&"parentNode"===s,c=W++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n)}:function(e,t,n){var r,i,o=[R,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((r=(i=(i=e[k]||(e[k]={}))[e.uniqueID]||(i[e.uniqueID]={}))[s])&&r[0]===R&&r[1]===c)return o[2]=r[2];if((i[s]=o)[2]=a(e,t,n))return!0}}}function he(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function me(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)!(o=e[s])||n&&!n(o,r,i)||(a.push(o),c&&t.push(s));return a}function ge(p,h,m,g,v,e){return g&&!g[k]&&(g=ge(g)),v&&!v[k]&&(v=ge(v,e)),D(function(e,t,n,r){var i,o,a,s=[],l=[],c=t.length,u=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)L(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!p||!e&&h?u:me(u,s,p,n,r),f=m?v||(e?p:c||g)?[]:t:d;if(m&&m(d,f,n,r),g)for(i=me(f,l),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(f[l[o]]=!(d[l[o]]=a));if(e){if(v||p){if(v){for(i=[],o=f.length;o--;)(a=f[o])&&i.push(d[o]=a);v(null,f=[],i,r)}for(o=f.length;o--;)(a=f[o])&&-1<(i=v?A(e,a):s[o])&&(e[i]=!(t[i]=a))}}else f=me(f===t?f.splice(c,f.length):f),v?v(null,t,f,r):T.apply(t,f)})}return fe.prototype=w.filters=w.pseudos,w.setFilters=new fe,m=L.tokenize=function(e,t){var n,r,i,o,a,s,l,c=F[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=w.preFilter;a;){for(o in n&&!(r=Q.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=J.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(E," ")}),a=a.slice(n.length)),w.filter)!(r=d[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?L.error(e):F(e,s).slice(0)},_=L.compile=function(e,t){var n,g,v,y,b,r,i=[],o=[],a=M[e+" "];if(!a){for(n=(t=t||m(e)).length;n--;)((a=function d(e){for(var r,t,n,i=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,l=pe(function(e){return e===r},a,!0),c=pe(function(e){return-1<A(r,e)},a,!0),u=[function(e,t,n){return e=!o&&(n||t!==x)||((r=t).nodeType?l:c)(e,t,n),r=null,e}];s<i;s++)if(t=w.relative[e[s].type])u=[pe(he(u),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[k]){for(n=++s;n<i&&!w.relative[e[n].type];n++);return ge(1<s&&he(u),1<s&&I(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(E,"$1"),t,s<n&&d(e.slice(s,n)),n<i&&d(e=e.slice(n)),n<i&&I(e))}u.push(t)}return he(u)}(t[n]))[k]?i:o).push(a);(a=M(e,(g=o,y=0<(v=i).length,b=0<g.length,r=function(e,t,n,r,i){var o,a,s,l=0,c="0",u=e&&[],d=[],f=x,p=e||b&&w.find.TAG("*",i),h=R+=null==f?1:Math.random()||.1,m=p.length;for(i&&(x=t===C||t||i);c!==m&&null!=(o=p[c]);c++){if(b&&o){for(a=0,t||o.ownerDocument===C||(S(o),n=!N);s=g[a++];)if(s(o,t||C,n)){r.push(o);break}i&&(R=h)}y&&((o=!s&&o)&&l--,e&&u.push(o))}if(l+=c,y&&c!==l){for(a=0;s=v[a++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=j.call(r));d=me(d)}T.apply(r,d),i&&!e&&0<d.length&&1<l+v.length&&L.uniqueSort(r)}return i&&(R=h,x=f),u},y?D(r):r))).selector=e}return a},V=L.select=function(e,t,n,r){var i,o,a,s,l,c="function"==typeof e&&e,u=!r&&m(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&h.getById&&9===t.nodeType&&N&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(f,p),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=d.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((l=w.find[s])&&(r=l(a.matches[0].replace(f,p),oe.test(o[0].type)&&de(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&I(o))break;return T.apply(n,r),n}}return(c||_(e,u))(r,t,!N,n,!t||oe.test(e)&&de(t.parentNode)||t),n},h.sortStable=k.split("").sort(B).join("")===k,h.detectDuplicates=!!c,S(),h.sortDetached=P(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),P(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&P(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),P(function(e){return null==e.getAttribute("disabled")})||ce(q,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),L}(x),r=(S.find=e,S.expr=e.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=e.uniqueSort,S.text=e.getText,S.isXMLDoc=e.isXML,S.contains=e.contains,function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r}),$=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},U=S.expr.match.needsContext,C=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,q=/^.[^:#\[\.,]*$/;function X(e,n,r){if(S.isFunction(n))return S.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return S.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(q.test(n))return S.filter(n,e,r);n=S.filter(n,e)}return S.grep(e,function(e){return-1<S.inArray(e,n)!==r})}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<i;t++)if(S.contains(r[t],this))return!0}));for(t=0;t<i;t++)S.find(e,r[t],n);return(n=this.pushStack(1<i?S.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(X(this,e||[],!1))},not:function(e){return this.pushStack(X(this,e||[],!0))},is:function(e){return!!X(this,"string"==typeof e&&U.test(e)?S(e):e||[],!1).length}});var K,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Q=((S.fn.init=function(e,t,n){if(e){if(n=n||K,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):S.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(S):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),S.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Y.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),C.test(r[1])&&S.isPlainObject(t))for(var r in t)S.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r])}else{if((n=h.getElementById(r[2]))&&n.parentNode){if(n.id!==r[2])return K.find(e);this.length=1,this[0]=n}this.context=h,this.selector=e}}return this}).prototype=S.fn,K=S(h),/^(?:parents|prev(?:Until|All))/),J={children:!0,contents:!0,next:!0,prev:!0};function Z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t,n=S(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(S.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=U.test(e)||"string"!=typeof e?S(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?S.inArray(this[0],S(e)):S.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return r(e,"parentNode")},parentsUntil:function(e,t,n){return r(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return r(e,"nextSibling")},prevAll:function(e){return r(e,"previousSibling")},nextUntil:function(e,t,n){return r(e,"nextSibling",n)},prevUntil:function(e,t,n){return r(e,"previousSibling",n)},siblings:function(e){return $((e.parentNode||{}).firstChild,e)},children:function(e){return $(e.firstChild)},contents:function(e){return S.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:S.merge([],e.childNodes)}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(J[r]||(n=S.uniqueSort(n)),Q.test(r)&&(n=n.reverse())),this.pushStack(n)}});var ee,te,N=/\S+/g;function ne(){h.addEventListener?(h.removeEventListener("DOMContentLoaded",n),x.removeEventListener("load",n)):(h.detachEvent("onreadystatechange",n),x.detachEvent("onload",n))}function n(){!h.addEventListener&&"load"!==x.event.type&&"complete"!==h.readyState||(ne(),S.ready())}for(te in S.Callbacks=function(n){var e,r;n="string"==typeof n?(e=n,r={},S.each(e.match(N)||[],function(e,t){r[t]=!0}),r):S.extend({},n);var i,t,o,a,s=[],l=[],c=-1,u=function(){for(a=n.once,o=i=!0;l.length;c=-1)for(t=l.shift();++c<s.length;)!1===s[c].apply(t[0],t[1])&&n.stopOnFalse&&(c=s.length,t=!1);n.memory||(t=!1),i=!1,a&&(s=t?[]:"")},d={add:function(){return s&&(t&&!i&&(c=s.length-1,l.push(t)),function o(e){S.each(e,function(e,t){S.isFunction(t)?n.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==S.type(t)&&o(t)})}(arguments),t&&!i&&u()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;-1<(n=S.inArray(t,s,n));)s.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s=s&&[],this},disable:function(){return a=l=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=!0,t||d.disable(),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},S.extend({Deferred:function(e){var o=[["resolve","done",S.Callbacks("once memory"),"resolved"],["reject","fail",S.Callbacks("once memory"),"rejected"],["notify","progress",S.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=S.isFunction(i[e])&&i[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&S.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this===a?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return a.pipe=a.then,S.each(o,function(e,t){var n=t[2],r=t[3];a[t[1]]=n.add,r&&n.add(function(){i=r},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var i,t,n,r=0,o=u.call(arguments),a=o.length,s=1!==a||e&&S.isFunction(e.promise)?a:0,l=1===s?e:S.Deferred(),c=function(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?u.call(arguments):e,r===i?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(1<a)for(i=new Array(a),t=new Array(a),n=new Array(a);r<a;r++)o[r]&&S.isFunction(o[r].promise)?o[r].promise().progress(c(r,t,i)).done(c(r,n,o)).fail(l.reject):--s;return s||l.resolveWith(n,o),l.promise()}}),S.fn.ready=function(e){return S.ready.promise().done(e),this},S.extend({isReady:!1,readyWait:1,holdReady:function(e){e?S.readyWait++:S.ready(!0)},ready:function(e){(!0===e?--S.readyWait:S.isReady)||((S.isReady=!0)!==e&&0<--S.readyWait||(ee.resolveWith(h,[S]),S.fn.triggerHandler&&(S(h).triggerHandler("ready"),S(h).off("ready"))))}}),S.ready.promise=function(e){if(!ee)if(ee=S.Deferred(),"complete"===h.readyState||"loading"!==h.readyState&&!h.documentElement.doScroll)x.setTimeout(S.ready);else if(h.addEventListener)h.addEventListener("DOMContentLoaded",n),x.addEventListener("load",n);else{h.attachEvent("onreadystatechange",n),x.attachEvent("onload",n);var t=!1;try{t=null==x.frameElement&&h.documentElement}catch(u){}t&&t.doScroll&&!function I(){if(!S.isReady){try{t.doScroll("left")}catch(e){return x.setTimeout(I,50)}ne(),S.ready()}}()}return ee.promise(e)},S.ready.promise(),S(g))break;g.ownFirst="0"===te,g.inlineBlockNeedsLayout=!1,S(function(){var e,t,n=h.getElementsByTagName("body")[0];n&&n.style&&(e=h.createElement("div"),(t=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(t).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",g.inlineBlockNeedsLayout=e=3===e.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(t))});e=h.createElement("div");g.deleteExpando=!0;try{delete e.test}catch(t){g.deleteExpando=!1}var re,ie=function(e){var t=S.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},oe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/([A-Z])/g;function se(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(ae,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:oe.test(n)?S.parseJSON(n):n)}catch(u){}S.data(e,t,n)}else n=void 0}return n}function le(e){for(var t in e)if(("data"!==t||!S.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}function ce(e,t,n,r){if(ie(e)){var i,o=S.expando,a=e.nodeType,s=a?S.cache:e,l=a?e[o]:e[o]&&o;if(l&&s[l]&&(r||s[l].data)||void 0!==n||"string"!=typeof t)return s[l=l||(a?e[o]=d.pop()||S.guid++:o)]||(s[l]=a?{}:{toJSON:S.noop}),"object"!=typeof t&&"function"!=typeof t||(r?s[l]=S.extend(s[l],t):s[l].data=S.extend(s[l].data,t)),e=s[l],r||(e.data||(e.data={}),e=e.data),void 0!==n&&(e[S.camelCase(t)]=n),"string"==typeof t?null==(i=e[t])&&(i=e[S.camelCase(t)]):i=e,i}}function ue(e,t,n){if(ie(e)){var r,i,o=e.nodeType,a=o?S.cache:e,s=o?e[S.expando]:S.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=S.isArray(t)?t.concat(S.map(t,S.camelCase)):t in r||(t=S.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!le(r):!S.isEmptyObject(r))return}(n||(delete a[s].data,le(a[s])))&&(o?S.cleanData([e],!0):g.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}S.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?S.cache[e[S.expando]]:e[S.expando])&&!le(e)},data:function(e,t,n){return ce(e,t,n)},removeData:function(e,t){return ue(e,t)},_data:function(e,t,n){return ce(e,t,n,!0)},_removeData:function(e,t){return ue(e,t,!0)}}),S.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){S.data(this,e)}):1<arguments.length?this.each(function(){S.data(this,e,t)}):o?se(o,e,S.data(o,e)):void 0;if(this.length&&(i=S.data(o),1===o.nodeType&&!S._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(0===(r=a[n].name).indexOf("data-")&&se(o,r=S.camelCase(r.slice(5)),i[r]));S._data(o,"parsedAttrs",!0)}return i},removeData:function(e){return this.each(function(){S.removeData(this,e)})}}),S.extend({queue:function(e,t,n){var r;return e?(r=S._data(e,t=(t||"fx")+"queue"),n&&(!r||S.isArray(n)?r=S._data(e,t,S.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return S._data(e,n)||S._data(e,n,{empty:S.Callbacks("once memory").add(function(){S._removeData(e,t+"queue"),S._removeData(e,n)})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.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=S._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}}),g.shrinkWrapBlocks=function(){var e,t,n;return null!=re?re:(re=!1,(t=h.getElementsByTagName("body")[0])&&t.style?(e=h.createElement("div"),(n=h.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(h.createElement("div")).style.width="5px",re=3!==e.offsetWidth),t.removeChild(n),re):void 0)};var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,de=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),s=["Top","Right","Bottom","Left"],fe=function(e,t){return"none"===S.css(e=t||e,"display")||!S.contains(e.ownerDocument,e)};function pe(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=s(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),u=(S.cssNumber[t]||"px"!==c&&+l)&&de.exec(S.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;S.style(e,t,(u/=o=o||".5")+c),o!==(o=s()/l)&&1!==o&&--a;);return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var f=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===S.type(n))for(s in i=!0,n)f(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,S.isFunction(r)||(a=!0),t=c?a?(t.call(e,r),null):(c=t,function(e,t,n){return c.call(S(e),n)}):t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},he=/^(?:checkbox|radio)$/i,me=/<([\w:-]+)/,ge=/^$|\/(?:java|ecma)script/i,ye=/^\s+/,be="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function we(e){var t=be.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}R=h.createElement("div"),k=h.createDocumentFragment(),D=h.createElement("input"),R.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",g.leadingWhitespace=3===R.firstChild.nodeType,g.tbody=!R.getElementsByTagName("tbody").length,g.htmlSerialize=!!R.getElementsByTagName("link").length,g.html5Clone="<:nav></:nav>"!==h.createElement("nav").cloneNode(!0).outerHTML,D.type="checkbox",D.checked=!0,k.appendChild(D),g.appendChecked=D.checked,R.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!R.cloneNode(!0).lastChild.defaultValue,k.appendChild(R),(D=h.createElement("input")).setAttribute("type","radio"),D.setAttribute("checked","checked"),D.setAttribute("name","t"),R.appendChild(D),g.checkClone=R.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!!R.addEventListener,R[S.expando]=1,g.attributes=!R.getAttribute(S.expando);var v={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:g.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function ve(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||S.nodeName(r,t)?o.push(r):S.merge(o,ve(r,t));return void 0===t||t&&S.nodeName(e,t)?S.merge([e],o):o}function xe(e,t){for(var n,r=0;null!=(n=e[r]);r++)S._data(n,"globalEval",!t||S._data(t[r],"globalEval"))}v.optgroup=v.option,v.tbody=v.tfoot=v.colgroup=v.caption=v.thead,v.th=v.td;var Se=/<|&#?\w+;/,Ce=/<tbody/i;function Ne(e){he.test(e.type)&&(e.defaultChecked=e.checked)}function ke(e,t,n,r,i){for(var o,a,s,l,c,u,d,f=e.length,p=we(t),h=[],m=0;m<f;m++)if((a=e[m])||0===a)if("object"===S.type(a))S.merge(h,a.nodeType?[a]:a);else if(Se.test(a)){for(l=l||p.appendChild(t.createElement("div")),c=(me.exec(a)||["",""])[1].toLowerCase(),d=v[c]||v._default,l.innerHTML=d[1]+S.htmlPrefilter(a)+d[2],o=d[0];o--;)l=l.lastChild;if(!g.leadingWhitespace&&ye.test(a)&&h.push(t.createTextNode(ye.exec(a)[0])),!g.tbody)for(o=(a="table"!==c||Ce.test(a)?"<table>"!==d[1]||Ce.test(a)?0:l:l.firstChild)&&a.childNodes.length;o--;)S.nodeName(u=a.childNodes[o],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(S.merge(h,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else h.push(t.createTextNode(a));for(l&&p.removeChild(l),g.appendChecked||S.grep(ve(h,"input"),Ne),m=0;a=h[m++];)if(r&&-1<S.inArray(a,r))i&&i.push(a);else if(s=S.contains(a.ownerDocument,a),l=ve(p.appendChild(a),"script"),s&&xe(l),n)for(o=0;a=l[o++];)ge.test(a.type||"")&&n.push(a);return l=null,p}var Re,Me,Te=h.createElement("div");for(Re in{submit:!0,change:!0,focusin:!0})Me="on"+Re,(g[Re]=Me in x)||(Te.setAttribute(Me,"t"),g[Re]=!1===Te.attributes[Me].expando);var Ae=/^(?:input|select|textarea)$/i,Ee=/^key/,Le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,De=/^(?:focusinfocus|focusoutblur)$/,Pe=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function l(){return!1}function Ie(){try{return h.activeElement}catch(x){}}function He(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)He(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=l;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}S.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h=S._data(e);if(h)for(n.handler&&(n=(s=n).handler,i=s.selector),n.guid||(n.guid=S.guid++),o=(o=h.events)||(h.events={}),(c=h.handle)||((c=h.handle=function(e){return void 0===S||e&&S.event.triggered===e.type?void 0:S.event.dispatch.apply(c.elem,arguments)}).elem=e),a=(t=(t||"").match(N)||[""]).length;a--;)d=p=(f=Pe.exec(t[a])||[])[1],f=(f[2]||"").split(".").sort(),d&&(l=S.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=S.event.special[d]||{},p=S.extend({type:d,origType:p,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:f.join(".")},s),(u=o[d])||((u=o[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,f,c)||(e.addEventListener?e.addEventListener(d,c,!1):e.attachEvent&&e.attachEvent("on"+d,c))),l.add&&(l.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),i?u.splice(u.delegateCount++,0,p):u.push(p),S.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,m,g=S.hasData(e)&&S._data(e);if(g&&(u=g.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(p=m=(s=Pe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=S.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));l&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||S.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)S.event.remove(e,p+t[c],n,r,!0);S.isEmptyObject(u)&&(delete g.handle,S._removeData(e,"events"))}},trigger:function(e,t,n,r){var i,o,a,s,l,c,u=[n||h],d=m.call(e,"type")?e.type:e,f=m.call(e,"namespace")?e.namespace.split("."):[],p=l=n=n||h;if(3!==n.nodeType&&8!==n.nodeType&&!De.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),o=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),s=S.event.special[d]||{},r||!s.trigger||!1!==s.trigger.apply(n,t))){if(!r&&!s.noBubble&&!S.isWindow(n)){for(a=s.delegateType||d,De.test(a+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),l=p;l===(n.ownerDocument||h)&&u.push(l.defaultView||l.parentWindow||x)}for(c=0;(p=u[c++])&&!e.isPropagationStopped();)e.type=1<c?a:s.bindType||d,(i=(S._data(p,"events")||{})[e.type]&&S._data(p,"handle"))&&i.apply(p,t),(i=o&&p[o])&&i.apply&&ie(p)&&(e.result=i.apply(p,t),!1===e.result&&e.preventDefault());if(e.type=d,!r&&!e.isDefaultPrevented()&&(!s._default||!1===s._default.apply(u.pop(),t))&&ie(n)&&o&&n[d]&&!S.isWindow(n)){(l=n[o])&&(n[o]=null),S.event.triggered=d;try{n[d]()}catch(j){}S.event.triggered=void 0,l&&(n[o]=l)}return e.result}},dispatch:function(e){e=S.event.fix(e);var t,n,r,i,o,a=u.call(arguments),s=(S._data(this,"events")||{})[e.type]||[],l=S.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=S.event.handlers.call(this,e,s),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(i=((S.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&a.push({elem:l,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[S.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Le.test(i)?this.mouseHooks:Ee.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new S.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||h),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||h).documentElement,n=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ie()&&this.focus)try{return this.focus(),!1}catch(x){}},delegateType:"focusin"},blur:{trigger:function(){return this===Ie()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return S.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return S.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){e=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(e,null,t),e.isDefaultPrevented()&&n.preventDefault()}},S.removeEvent=h.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){t="on"+t;e.detachEvent&&("undefined"==typeof e[t]&&(e[t]=null),e.detachEvent(t,n))},S.Event=function(e,t){return this instanceof S.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:l):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||S.now(),void(this[S.expando]=!0)):new S.Event(e,t)},S.Event.prototype={constructor:S.Event,isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),g.submit||(S.event.special.submit={setup:function(){return!S.nodeName(this,"form")&&void S.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=S.nodeName(e,"input")||S.nodeName(e,"button")?S.prop(e,"form"):void 0;e&&!S._data(e,"submit")&&(S.event.add(e,"submit._submit",function(e){e._submitBubble=!0}),S._data(e,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&S.event.simulate("submit",this.parentNode,e))},teardown:function(){return!S.nodeName(this,"form")&&void S.event.remove(this,"._submit")}}),g.change||(S.event.special.change={setup:function(){return Ae.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(S.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),S.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),S.event.simulate("change",this,e)})),!1):void S.event.add(this,"beforeactivate._change",function(e){e=e.target;Ae.test(e.nodeName)&&!S._data(e,"change")&&(S.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||S.event.simulate("change",this.parentNode,e)}),S._data(e,"change",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return S.event.remove(this,"._change"),!Ae.test(this.nodeName)}}),g.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=S._data(e,r);t||e.addEventListener(n,i,!0),S._data(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=S._data(e,r)-1;t?S._data(e,r,t):(e.removeEventListener(n,i,!0),S._removeData(e,r))}}}),S.fn.extend({on:function(e,t,n,r){return He(this,e,t,n,r)},one:function(e,t,n,r){return He(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=l),this.each(function(){S.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i])}return this},trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?S.event.trigger(e,t,n,!0):void 0}});var Ge=/ jQuery\d+="(?:null|\d+)"/g,_e=new RegExp("<(?:"+be+")[\\s/>]","i"),Ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,We=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^true\/(.*)/,ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,je=we(h).appendChild(h.createElement("div"));function $e(e,t){return S.nodeName(e,"table")&&S.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ue(e){return e.type=(null!==S.find.attr(e,"type"))+"/"+e.type,e}function qe(e){var t=Be.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Xe(e,t){if(1===t.nodeType&&S.hasData(e)){var n,r,i,e=S._data(e),o=S._data(t,e),a=e.events;if(a)for(n in delete o.handle,o.events={},a)for(r=0,i=a[n].length;r<i;r++)S.event.add(t,n,a[n][r]);o.data&&(o.data=S.extend({},o.data))}}function y(n,r,i,o){r=I.apply([],r);var e,t,a,s,l,c,u=0,d=n.length,f=d-1,p=r[0],h=S.isFunction(p);if(h||1<d&&"string"==typeof p&&!g.checkClone&&Fe.test(p))return n.each(function(e){var t=n.eq(e);h&&(r[0]=p.call(this,e,t.html())),y(t,r,i,o)});if(d&&(e=(c=ke(r,n[0].ownerDocument,!1,n,o)).firstChild,1===c.childNodes.length&&(c=e),e||o)){for(a=(s=S.map(ve(c,"script"),Ue)).length;u<d;u++)t=c,u!==f&&(t=S.clone(t,!0,!0),a&&S.merge(s,ve(t,"script"))),i.call(n[u],t,u);if(a)for(l=s[s.length-1].ownerDocument,S.map(s,qe),u=0;u<a;u++)t=s[u],ge.test(t.type||"")&&!S._data(t,"globalEval")&&S.contains(l,t)&&(t.src?S._evalUrl&&S._evalUrl(t.src):S.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ze,"")));c=e=null}return n}function Ke(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&S.contains(r.ownerDocument,r)&&xe(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e.replace(Ve,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,c,u,d=S.contains(e.ownerDocument,e);if(g.html5Clone||S.isXMLDoc(e)||!_e.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(je.innerHTML=e.outerHTML,je.removeChild(o=je.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(r=ve(o),s=ve(e),a=0;null!=(i=s[a]);++a)if(r[a]){f=void 0;p=void 0;l=void 0;c=void 0;u=void 0;var f=i;var p=r[a];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!g.noCloneEvent&&p[S.expando]){for(c in(u=S._data(p)).events)S.removeEvent(p,c,u.handle);p.removeAttribute(S.expando)}"script"===l&&p.text!==f.text?(Ue(p).text=f.text,qe(p)):"object"===l?(p.parentNode&&(p.outerHTML=f.outerHTML),g.html5Clone&&f.innerHTML&&!S.trim(p.innerHTML)&&(p.innerHTML=f.innerHTML)):"input"===l&&he.test(f.type)?(p.defaultChecked=p.checked=f.checked,p.value!==f.value&&(p.value=f.value)):"option"===l?p.defaultSelected=p.selected=f.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=f.defaultValue)}}if(t)if(n)for(s=s||ve(e),r=r||ve(o),a=0;null!=(i=s[a]);a++)Xe(i,r[a]);else Xe(e,o);return 0<(r=ve(o,"script")).length&&xe(r,!d&&ve(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=S.expando,l=S.cache,c=g.attributes,u=S.event.special;null!=(n=e[a]);a++)if((t||ie(n))&&(o=(i=n[s])&&l[i])){if(o.events)for(r in o.events)u[r]?S.event.remove(n,r):S.removeEvent(n,r,o.handle);l[i]&&(delete l[i],c||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),d.push(i))}}}),S.fn.extend({domManip:y,detach:function(e){return Ke(this,e,!0)},remove:function(e){return Ke(this,e)},text:function(e){return f(this,function(e){return void 0===e?S.text(this):this.empty().append((this[0]&&this[0].ownerDocument||h).createTextNode(e))},null,e,arguments.length)},append:function(){return y(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$e(this,e).appendChild(e)})},prepend:function(){return y(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=$e(this,e)).insertBefore(e,t.firstChild)})},before:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return y(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&S.cleanData(ve(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&S.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return f(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ge,""):void 0;if("string"==typeof e&&!We.test(e)&&(g.htmlSerialize||!_e.test(e))&&(g.leadingWhitespace||!ye.test(e))&&!v[(me.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(u){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return y(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=0,r=[],i=S(e),o=i.length-1;n<=o;n++)t=n===o?this:this.clone(!0),S(i[n])[a](t),H.apply(r,t.get());return this.pushStack(r)}});var Ye,Qe={HTML:"block",BODY:"block"};function Je(e,t){e=S(t.createElement(e)).appendTo(t.body),t=S.css(e[0],"display");return e.detach(),t}function Ze(e){var t=h,n=Qe[e];return n||("none"!==(n=Je(e,t))&&n||((t=((Ye=(Ye||S("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ye[0].contentDocument).document).write(),t.close(),n=Je(e,t),Ye.detach()),Qe[e]=n),n}var i,et,tt,nt,rt,it,ot,o,at=/^margin/,st=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),lt=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r},ct=h.documentElement;function a(){var e,t=h.documentElement;t.appendChild(ot),o.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=tt=it=!1,et=rt=!0,x.getComputedStyle&&(e=x.getComputedStyle(o),i="1%"!==(e||{}).top,it="2px"===(e||{}).marginLeft,tt="4px"===(e||{width:"4px"}).width,o.style.marginRight="50%",et="4px"===(e||{marginRight:"4px"}).marginRight,(e=o.appendChild(h.createElement("div"))).style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",rt=!parseFloat((x.getComputedStyle(e)||{}).marginRight),o.removeChild(e)),o.style.display="none",(nt=0===o.getClientRects().length)&&(o.style.display="",o.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o.childNodes[0].style.borderCollapse="separate",(e=o.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(nt=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",nt=0===e[0].offsetHeight)),t.removeChild(ot)}ot=h.createElement("div"),(o=h.createElement("div")).style&&(o.style.cssText="float:left;opacity:.5",g.opacity="0.5"===o.style.opacity,g.cssFloat=!!o.style.cssFloat,o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===o.style.backgroundClip,(ot=h.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.innerHTML="",ot.appendChild(o),g.boxSizing=""===o.style.boxSizing||""===o.style.MozBoxSizing||""===o.style.WebkitBoxSizing,S.extend(g,{reliableHiddenOffsets:function(){return null==i&&a(),nt},boxSizingReliable:function(){return null==i&&a(),tt},pixelMarginRight:function(){return null==i&&a(),et},pixelPosition:function(){return null==i&&a(),i},reliableMarginRight:function(){return null==i&&a(),rt},reliableMarginLeft:function(){return null==i&&a(),it}}));var c,p,ut=/^(top|right|bottom|left)$/;function dt(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}x.getComputedStyle?(c=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:x).getComputedStyle(e)},p=function(e,t,n){var r,i,o=e.style;return""!==(i=(n=n||c(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==i||S.contains(e.ownerDocument,e)||(i=S.style(e,t)),n&&!g.pixelMarginRight()&&st.test(i)&&at.test(t)&&(e=o.width,t=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=e,o.minWidth=t,o.maxWidth=r),void 0===i?i:i+""}):ct.currentStyle&&(c=function(e){return e.currentStyle},p=function(e,t,n){var r,i,o,a=e.style;return null==(n=(n=n||c(e))?n[t]:void 0)&&a&&a[t]&&(n=a[t]),st.test(n)&&!ut.test(t)&&(r=a.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=r,o&&(i.left=o)),void 0===n?n:n+""||"auto"});var ft=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ht=/^(none|table(?!-c[ea]).+)/,mt=new RegExp("^("+e+")(.*)$","i"),gt={position:"absolute",visibility:"hidden",display:"block"},vt={letterSpacing:"0",fontWeight:"400"},yt=["Webkit","O","Moz","ms"],bt=h.createElement("div").style;function wt(e){if(e in bt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=yt.length;n--;)if((e=yt[n]+t)in bt)return e}function xt(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=S._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&fe(r)&&(o[a]=S._data(r,"olddisplay",Ze(r.nodeName)))):(i=fe(r),(n&&"none"!==n||!i)&&S._data(r,"olddisplay",i?n:S.css(r,"display"))));for(a=0;a<s;a++)!(r=e[a]).style||t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none");return e}function St(e,t,n){var r=mt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ct(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=S.css(e,n+s[o],!0,i)),r?("content"===n&&(a-=S.css(e,"padding"+s[o],!0,i)),"margin"!==n&&(a-=S.css(e,"border"+s[o]+"Width",!0,i))):(a+=S.css(e,"padding"+s[o],!0,i),"padding"!==n&&(a+=S.css(e,"border"+s[o]+"Width",!0,i)));return a}function Nt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=c(e),a=g.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=p(e,t,o))<0||null==i)&&(i=e.style[t]),st.test(i))return i;r=a&&(g.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ct(e,t,n||(a?"border":"content"),r,o)+"px"}function b(e,t,n,r,i){return new b.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=p(e,"opacity"))?"1":t}}},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:{"float":g.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=S.camelCase(t),l=e.style;if(t=S.cssProps[s]||(S.cssProps[s]=wt(s)||s),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"===(o=typeof n)&&(i=de.exec(n))&&i[1]&&(n=pe(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(S.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)))))try{l[t]=n}catch(V){}}},css:function(e,t,n,r){var i,o=S.camelCase(t);return t=S.cssProps[o]||(S.cssProps[o]=wt(o)||o),"normal"===(i=void 0===(i=(o=S.cssHooks[t]||S.cssHooks[o])&&"get"in o?o.get(e,!0,n):i)?p(e,t,r):i)&&t in vt&&(i=vt[t]),(""===n||n)&&(o=parseFloat(i),!0===n||isFinite(o))?o||0:i}}),S.each(["height","width"],function(e,i){S.cssHooks[i]={get:function(e,t,n){return t?ht.test(S.css(e,"display"))&&0===e.offsetWidth?lt(e,gt,function(){return Nt(e,i,n)}):Nt(e,i,n):void 0},set:function(e,t,n){var r=n&&c(e);return St(0,t,n?Ct(e,i,n,g.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,r),r):0)}}}),g.opacity||(S.cssHooks.opacity={get:function(e,t){return pt.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,e=e.currentStyle,r=S.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=e&&e.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===S.trim(i.replace(ft,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||e&&!e.filter)||(n.filter=ft.test(i)?i.replace(ft,r):i+" "+r)}}),S.cssHooks.marginRight=dt(g.reliableMarginRight,function(e,t){return t?lt(e,{display:"inline-block"},p,[e,"marginRight"]):void 0}),S.cssHooks.marginLeft=dt(g.reliableMarginLeft,function(e,t){return t?(parseFloat(p(e,"marginLeft"))||(S.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-lt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px":void 0}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+s[t]+o]=r[t]||r[t-2]||r[0];return n}},at.test(i)||(S.cssHooks[i+o].set=St)}),S.fn.extend({css:function(e,t){return f(this,function(e,t,n){var r,i,o={},a=0;if(S.isArray(t)){for(r=c(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)},show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){fe(this)?S(this).show():S(this).hide()})}}),((S.Tween=b).prototype={constructor:b,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=b.propHooks[this.prop];return(e&&e.get?e:b.propHooks._default).get(this)},run:function(e){var t,n=b.propHooks[this.prop];return this.options.duration?this.pos=t=S.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:b.propHooks._default).set(this),this}}).init.prototype=b.prototype,(b.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=S.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[S.cssProps[e.prop]]&&!S.cssHooks[e.prop]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=b.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=b.prototype.init,S.fx.step={};var w,kt,k,R,Rt=/^(?:toggle|show|hide)$/,Mt=/queueHooks$/;function Tt(){return x.setTimeout(function(){w=void 0}),w=S.now()}function At(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=s[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Et(e,t,n){for(var r,i=(M.tweeners[t]||[]).concat(M.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function M(i,e,t){var n,o,r,a,s,l,c,u=0,d=M.prefilters.length,f=S.Deferred().always(function(){delete p.elem}),p=function(){if(o)return!1;for(var e=w||Tt(),e=Math.max(0,h.startTime+h.duration-e),t=1-(e/h.duration||0),n=0,r=h.tweens.length;n<r;n++)h.tweens[n].run(t);return f.notifyWith(i,[h,t,e]),t<1&&r?e:(f.resolveWith(i,[h]),!1)},h=f.promise({elem:i,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:w||Tt(),duration:t.duration,tweens:[],createTween:function(e,t){t=S.Tween(i,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(t),t},stop:function(e){var t=0,n=e?h.tweens.length:0;if(!o){for(o=!0;t<n;t++)h.tweens[t].run(1);e?(f.notifyWith(i,[h,1,0]),f.resolveWith(i,[h,e])):f.rejectWith(i,[h,e])}return this}}),m=h.props,g=m,v=h.opts.specialEasing;for(r in g)if(a=S.camelCase(r),s=v[a],l=g[r],S.isArray(l)&&(s=l[1],l=g[r]=l[0]),r!==a&&(g[a]=l,delete g[r]),c=S.cssHooks[a],c&&"expand"in c)for(r in l=c.expand(l),delete g[a],l)r in g||(g[r]=l[r],v[r]=s);else v[a]=s;for(;u<d;u++)if(n=M.prefilters[u].call(h,i,m,h.opts))return S.isFunction(n.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=S.proxy(n.stop,n)),n;return S.map(m,Et,h),S.isFunction(h.opts.start)&&h.opts.start.call(i,h),S.fx.timer(S.extend(p,{elem:i,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}S.Animation=S.extend(M,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return pe(n.elem,e,de.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=S.isFunction(e)?(t=e,["*"]):e.match(N)).length;r<i;r++)n=e[r],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var r,i,o,a,s,l,c,u=this,d={},f=t.style,p=t.nodeType&&fe(t),h=S._data(t,"fxshow");for(r in n.queue||(null==(s=S._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,S.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(c=S.css(t,"display"))?S._data(t,"olddisplay")||Ze(t.nodeName):c)&&"none"===S.css(t,"float")&&(g.inlineBlockNeedsLayout&&"inline"!==Ze(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",g.shrinkWrapBlocks()||u.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),e)if(i=e[r],Rt.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}d[r]=h&&h[r]||S.style(t,r)}else c=void 0;if(S.isEmptyObject(d))"inline"===("none"===c?Ze(t.nodeName):c)&&(f.display=c);else for(r in h?"hidden"in h&&(p=h.hidden):h=S._data(t,"fxshow",{}),o&&(h.hidden=!p),p?S(t).show():u.done(function(){S(t).hide()}),u.done(function(){for(var e in S._removeData(t,"fxshow"),d)S.style(t,e,d[e])}),d)a=Et(p?h[r]:0,r,u),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?M.prefilters.unshift(e):M.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||S.isFunction(e)&&e,duration:e,easing:n&&t||t&&!S.isFunction(t)&&t};return r.duration=S.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in S.fx.speeds?S.fx.speeds[r.duration]:S.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){S.isFunction(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(fe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),e=function(){var e=M(this,S.extend({},t),o);(i||S._data(this,"finish"))&&e.stop(!0)};return e.finish=e,i||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=S._data(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&Mt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=S._data(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(At(r,!0),e,t,n)}}),S.each({slideDown:At("show"),slideUp:At("hide"),slideToggle:At("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=S.timers,n=0;for(w=S.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||S.fx.stop(),w=void 0},S.fx.timer=function(e){S.timers.push(e),e()?S.fx.start():S.timers.pop()},S.fx.interval=13,S.fx.start=function(){kt=kt||x.setInterval(S.fx.tick,S.fx.interval)},S.fx.stop=function(){x.clearInterval(kt),kt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,this.queue(e=e||"fx",function(e,t){var n=x.setTimeout(e,r);t.stop=function(){x.clearTimeout(n)}})},k=h.createElement("input"),D=h.createElement("div"),R=h.createElement("select"),e=R.appendChild(h.createElement("option")),(D=h.createElement("div")).setAttribute("className","t"),D.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",O=D.getElementsByTagName("a")[0],k.setAttribute("type","checkbox"),D.appendChild(k),(O=D.getElementsByTagName("a")[0]).style.cssText="top:1px",g.getSetAttribute="t"!==D.className,g.style=/top/.test(O.getAttribute("style")),g.hrefNormalized="/a"===O.getAttribute("href"),g.checkOn=!!k.value,g.optSelected=e.selected,g.enctype=!!h.createElement("form").enctype,R.disabled=!0,g.optDisabled=!e.disabled,(k=h.createElement("input")).setAttribute("value",""),g.input=""===k.getAttribute("value"),k.value="t",k.setAttribute("type","radio"),g.radioValue="t"===k.value;var Lt=/\r/g,Dt=/[\x20\t\r\n\f]+/g;S.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=S.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,S(this).val()):t)?e="":"number"==typeof e?e+="":S.isArray(e)&&(e=S.map(e,function(e){return null==e?"":e+""})),(n=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):i?(n=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(Lt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:S.trim(S.text(e)).replace(Dt," ")}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s<a;s++)if(((t=n[s]).selected||s===r)&&!((g.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&S.nodeName(t.parentNode,"optgroup"))){if(t=S(t).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),a=i.length;a--;)if(r=i[a],-1<S.inArray(S.valHooks.option.get(r),o))try{r.selected=n=!0}catch(G){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){return S.isArray(t)?e.checked=-1<S.inArray(S(e).val(),t):void 0}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var T,Pt,A=S.expr.attrHandle,Ot=/^(?:checked|selected)$/i,E=g.getSetAttribute,It=g.input,Ht=(S.fn.extend({attr:function(e,t){return f(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(t=t.toLowerCase(),i=S.attrHooks[t]||(S.expr.match.bool.test(t)?Pt:T)),void 0!==n?null===n?void S.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)))&&null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&S.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(N);if(o&&1===e.nodeType)for(;n=o[i++];)r=S.propFix[n]||n,S.expr.match.bool.test(n)?It&&E||!Ot.test(n)?e[r]=!1:e[S.camelCase("default-"+n)]=e[r]=!1:S.attr(e,n,""),e.removeAttribute(E?n:r)}}),Pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):It&&E||!Ot.test(n)?e.setAttribute(!E&&S.propFix[n]||n,n):e[S.camelCase("default-"+n)]=e[n]=!0,n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var o=A[t]||S.find.attr;It&&E||!Ot.test(t)?A[t]=function(e,t,n){var r,i;return n||(i=A[t],A[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,A[t]=i),r}:A[t]=function(e,t,n){return n?void 0:e[S.camelCase("default-"+t)]?t.toLowerCase():null}}),It&&E||(S.attrHooks.value={set:function(e,t,n){return S.nodeName(e,"input")?void(e.defaultValue=t):T&&T.set(e,t,n)}}),E||(T={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},A.id=A.name=A.coords=function(e,t,n){return n?void 0:(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},S.valHooks.button={get:function(e,t){t=e.getAttributeNode(t);return t&&t.specified?t.value:void 0},set:T.set},S.attrHooks.contenteditable={set:function(e,t,n){T.set(e,""!==t&&t,n)}},S.each(["width","height"],function(e,n){S.attrHooks[n]={set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):void 0}}})),g.style||(S.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}}),/^(?:input|select|textarea|button|object)$/i),Gt=/^(?:a|area)$/i,_t=(S.fn.extend({prop:function(e,t){return f(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return e=S.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.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=S.find.attr(e,"tabindex");return t?parseInt(t,10):Ht.test(e.nodeName)||Gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),g.hrefNormalized||S.each(["href","src"],function(e,t){S.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),g.optSelected||(S.propHooks.selected={get:function(e){e=e.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),g.enctype||(S.propFix.enctype="encoding"),/[\t\r\n\f]/g);function L(e){return S.attr(e,"class")||""}S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0;if(S.isFunction(t))return this.each(function(e){S(this).addClass(t.call(this,e,L(this)))});if("string"==typeof t&&t)for(e=t.match(N)||[];n=this[s++];)if(a=L(n),r=1===n.nodeType&&(" "+a+" ").replace(_t," ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(a=S.trim(r))&&S.attr(n,"class",a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0;if(S.isFunction(t))return this.each(function(e){S(this).removeClass(t.call(this,e,L(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(N)||[];n=this[s++];)if(a=L(n),r=1===n.nodeType&&(" "+a+" ").replace(_t," ")){for(o=0;i=e[o++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");a!==(a=S.trim(r))&&S.attr(n,"class",a)}return this},toggleClass:function(i,t){var o=typeof i;return"boolean"==typeof t&&"string"==o?t?this.addClass(i):this.removeClass(i):S.isFunction(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,L(this),t),t)}):this.each(function(){var e,t,n,r;if("string"==o)for(t=0,n=S(this),r=i.match(N)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=L(this))&&S._data(this,"__className__",e),S.attr(this,"class",!e&&!1!==i&&S._data(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+L(t)+" ").replace(_t," ").indexOf(r))return!0;return!1}}),S.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),S.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var D=x.location,Vt=S.now(),Wt=/\?/,Ft=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g,Bt=(S.parseJSON=function(e){var i,o,t;return x.JSON&&x.JSON.parse?x.JSON.parse(e+""):(o=null,(t=S.trim(e+""))&&!S.trim(t.replace(Ft,function(e,t,n,r){return 0===(o=i&&t?0:o)?e:(i=n||t,o+=!r-!n,"")}))?Function("return "+t)():S.error("Invalid JSON: "+e))},S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{x.DOMParser?t=(new x.DOMParser).parseFromString(e,"text/xml"):((t=new x.ActiveXObject("Microsoft.XMLDOM"))["async"]="false",t.loadXML(e))}catch(u){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t},/#.*$/),zt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,$t=/^(?:GET|HEAD)$/,Ut=/^\/\//,qt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Xt={},Kt={},Yt="*/".concat("*"),Qt=D.href,P=qt.exec(Qt.toLowerCase())||[];function Jt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(N)||[];if(S.isFunction(t))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Zt(t,r,i,o){var a={},s=t===Kt;function l(e){var n;return a[e]=!0,S.each(t[e]||[],function(e,t){t=t(r,i,o);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(r.dataTypes.unshift(t),l(t),!1)}),n}return l(r.dataTypes[0])||!a["*"]&&l("*")}function en(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n=n||{})[r]=t[r]);return n&&S.extend(!0,e,n),e}function tn(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(g){return{state:"parsererror",error:a?g:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function nn(e){if(!S.contains(e.ownerDocument||h,e))return!0;for(;e&&1===e.nodeType;){if("none"===((t=e).style&&t.style.display||S.css(t,"display"))||"hidden"===e.type)return!0;e=e.parentNode}var t;return!1}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(P[1]),global:!0,processData:!0,"async":!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":S.parseJSON,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?en(en(e,S.ajaxSettings),t):en(S.ajaxSettings,e)},ajaxPrefilter:Jt(Xt),ajaxTransport:Jt(Kt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,l,c,u,d,f,r,p=S.ajaxSetup({},t=t||{}),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?S(h):S.event,g=S.Deferred(),v=S.Callbacks("once memory"),y=p.statusCode||{},i={},o={},b=0,a="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!r)for(r={};t=jt.exec(c);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?c:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=o[n]=o[n]||e,i[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){e=e||a;return f&&f.abort(e),s(0,e),this}};if(g.promise(w).complete=v.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Qt)+"").replace(Bt,"").replace(Ut,P[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=S.trim(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain&&(e=qt.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===P[1]&&e[2]===P[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(P[3]||("http:"===P[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),Zt(Xt,p,t,w),2!==b){for(n in(d=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!$t.test(p.type),l=p.url,p.hasContent||(p.data&&(l=p.url+=(Wt.test(l)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=zt.test(l)?l.replace(zt,"$1_="+Vt++):l+(Wt.test(l)?"&":"?")+"_="+Vt++)),p.ifModified&&(S.lastModified[l]&&w.setRequestHeader("If-Modified-Since",S.lastModified[l]),S.etag[l]&&w.setRequestHeader("If-None-Match",S.etag[l])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Yt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(h,w,p)||2===b))return w.abort();for(n in a="abort",{success:1,error:1,complete:1})w[n](p[n]);if(f=Zt(Kt,p,t,w)){if(w.readyState=1,d&&m.trigger("ajaxSend",[w,p]),2===b)return w;p["async"]&&0<p.timeout&&(u=x.setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,f.send(i,s)}catch(C){if(!(b<2))throw C;s(-1,C)}}else s(-1,"No Transport")}return w;function s(e,t,n,r){var i,o,a,s=t;2!==b&&(b=2,u&&x.clearTimeout(u),f=void 0,c=r||"",w.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r=r||a}o=o||r}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}(p,w,n)),a=tn(p,a,w,r),r?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(S.lastModified[l]=n),(n=w.getResponseHeader("etag"))&&(S.etag[l]=n)),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=a.state,i=a.data,r=!(o=a.error))):(o=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",r?g.resolveWith(h,[i,s,w]):g.rejectWith(h,[w,s,o]),w.statusCode(y),y=void 0,d&&m.trigger(r?"ajaxSuccess":"ajaxError",[w,p,r?i:o]),v.fireWith(h,[w,s]),d&&(m.trigger("ajaxComplete",[w,p]),--S.active||S.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return S.isFunction(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S._evalUrl=function(e){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,"async":!1,global:!1,"throws":!0})},S.fn.extend({wrapAll:function(t){var e;return S.isFunction(t)?this.each(function(e){S(this).wrapAll(t.call(this,e))}):(this[0]&&(e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this)},wrapInner:function(n){return S.isFunction(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=S.isFunction(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){S.nodeName(this,"body")||S(this).replaceWith(this.childNodes)}).end()}}),S.expr.filters.hidden=function(e){return g.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:nn(e)},S.expr.filters.visible=function(e){return!S.expr.filters.hidden(e)};var rn=/%20/g,on=/\[\]$/,an=/\r?\n/g,sn=/^(?:submit|button|image|reset|file)$/i,ln=/^(?:input|select|textarea|keygen)/i;S.param=function(e,t){var n,r=[],i=function(e,t){t=S.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=S.ajaxSettings&&S.ajaxSettings.traditional),S.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)!function o(n,e,r,i){if(S.isArray(e))S.each(e,function(e,t){r||on.test(n)?i(n,t):o(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==S.type(e))i(n,e);else for(var t in e)o(n+"["+t+"]",e[t],r,i)}(n,e[n],t,i);return r.join("&").replace(rn,"+")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&ln.test(this.nodeName)&&!sn.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:S.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(an,"\r\n")}}):{name:t.name,value:n.replace(an,"\r\n")}}).get()}}),S.ajaxSettings.xhr=void 0!==x.ActiveXObject?function(){return this.isLocal?fn():8<h.documentMode?dn():/^(get|post|head|put|delete|options)$/i.test(this.type)&&dn()||fn()}:dn;var cn=0,un={},O=S.ajaxSettings.xhr();function dn(){try{return new x.XMLHttpRequest}catch(t){}}function fn(){try{return new x.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.attachEvent&&x.attachEvent("onunload",function(){for(var e in un)un[e](void 0,!0)}),g.cors=!!O&&"withCredentials"in O,(g.ajax=!!O)&&S.ajaxTransport(function(l){var c;if(!l.crossDomain||g.cors)return{send:function(e,o){var t,a=l.xhr(),s=++cn;if(a.open(l.type,l.url,l["async"],l.username,l.password),l.xhrFields)for(t in l.xhrFields)a[t]=l.xhrFields[t];for(t in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(l.hasContent&&l.data||null),c=function(e,t){var n,r,i;if(c&&(t||4===a.readyState))if(delete un[s],c=void 0,a.onreadystatechange=S.noop,t)4!==a.readyState&&a.abort();else{i={},n=a.status,"string"==typeof a.responseText&&(i.text=a.responseText);try{r=a.statusText}catch(m){r=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=i.text?200:404}i&&o(n,r,i,a.getAllResponseHeaders())},l["async"]?4===a.readyState?x.setTimeout(c):a.onreadystatechange=un[s]=c:c()},abort:function(){c&&c(void 0,!0)}}}),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),S.ajaxTransport("script",function(t){var r,i;if(t.crossDomain)return i=h.head||S("head")[0]||h.documentElement,{send:function(e,n){(r=h.createElement("script"))["async"]=!0,t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(e,t){!t&&r.readyState&&!/loaded|complete/.test(r.readyState)||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,t||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(void 0,!0)}}});var pn=[],hn=/(=)\?(?=&|$)|\?\?/,mn=(S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=pn.pop()||S.expando+"_"+Vt++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(hn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&hn.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=S.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(hn,"$1"+r):!1!==e.jsonp&&(e.url+=(Wt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=x[r],x[r]=function(){o=arguments},n.always(function(){void 0===i?S(x).removeProp(r):x[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,pn.push(r)),o&&S.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),S.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||h;var r=C.exec(e),n=!n&&[];return r?[t.createElement(r[1])]:(r=ke([e],t,n),n&&n.length&&S(n).remove(),S.merge([],r.childNodes))},S.fn.load);function gn(e){return S.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}S.fn.load=function(e,t,n){var r,i,o,a,s;return"string"!=typeof e&&mn?mn.apply(this,arguments):(a=this,-1<(s=e.indexOf(" "))&&(r=S.trim(e.slice(s,e.length)),e=e.slice(0,s)),S.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this)},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.filters.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s=S.css(e,"position"),l=S(e),c={};"static"===s&&(e.style.position="relative"),o=l.offset(),r=S.css(e,"top"),a=S.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<S.inArray("auto",[r,a])?(i=(s=l.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),null!=(t=S.isFunction(t)?t.call(e,n,S.extend({},o)):t).top&&(c.top=t.top-o.top+i),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):l.css(c)}},S.fn.extend({offset:function(t){var e,n,r,i;return arguments.length?void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)}):(n={top:0,left:0},(i=(r=this[0])&&r.ownerDocument)?(e=i.documentElement,S.contains(e,r)?("undefined"!=typeof r.getBoundingClientRect&&(n=r.getBoundingClientRect()),r=gn(i),{top:n.top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0)},position:function(){var e,t,n,r;if(this[0])return n={top:0,left:0},r=this[0],"fixed"===S.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=S.nodeName(e[0],"html")?n:e.offset()).top+=S.css(e[0],"borderTopWidth",!0),n.left+=S.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-S.css(r,"marginTop",!0),left:t.left-n.left-S.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!S.nodeName(e,"html")&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ct})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o=/Y/.test(i);S.fn[t]=function(e){return f(this,function(e,t,n){var r=gn(e);return void 0===n?r?i in r?r[i]:r.document.documentElement[t]:e[t]:void(r?r.scrollTo(o?S(r).scrollLeft():n,o?n:S(r).scrollTop()):e[t]=n)},t,e,arguments.length,null)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=dt(g.pixelPosition,function(e,t){return t?(t=p(e,n),st.test(t)?S(e).position()[n]+"px":t):void 0})}),S.each({Height:"height",Width:"width"},function(o,a){S.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,e){S.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return f(this,function(e,t,n){var r;return S.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},a,n?e:void 0,n,null)}})}),S.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)}}),S.fn.size=function(){return this.length},S.fn.andSelf=S.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var vn=x.jQuery,yn=x.$;return S.noConflict=function(e){return x.$===S&&(x.$=yn),e&&x.jQuery===S&&(x.jQuery=vn),S},t||(x.jQuery=x.$=S),S}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(t){function n(){r&&(window.requestAnimationFrame(n),t.fx.tick())}var r;3<=Number(t.fn.jquery.split(".")[0])?window.console&&window.console.warn&&window.console.warn("The jquery.requestanimationframe plugin is not needed in jQuery 3.0 or newer as they handle it natively."):window.requestAnimationFrame&&(t.fx.timer=function(e){e()&&t.timers.push(e)&&!r&&(r=!0,n())},t.fx.stop=function(){r=!1})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,r,i){return jQuery.easing[jQuery.easing.def](e,t,n,r,i)},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return 0==t?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,r,i){return 0==t?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;return 0==t?n:1==(t/=i)?n+r:(a=a||.3*i,o=s<Math.abs(r)?(s=r,a/4):a/(2*Math.PI)*Math.asin(r/s),-(s*Math.pow(2,10*--t)*Math.sin((t*i-o)*(2*Math.PI)/a))+n)},easeOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;return 0==t?n:1==(t/=i)?n+r:(a=a||.3*i,o=s<Math.abs(r)?(s=r,a/4):a/(2*Math.PI)*Math.asin(r/s),s*Math.pow(2,-10*t)*Math.sin((t*i-o)*(2*Math.PI)/a)+r+n)},easeInOutElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;return 0==t?n:2==(t/=i/2)?n+r:(a=a||i*(.3*1.5),o=s<Math.abs(r)?(s=r,a/4):a/(2*Math.PI)*Math.asin(r/s),t<1?s*Math.pow(2,10*--t)*Math.sin((t*i-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*--t)*Math.sin((t*i-o)*(2*Math.PI)/a)*.5+r+n)},easeInBack:function(e,t,n,r,i,o){return r*(t/=i)*t*(((o=o==undefined?1.70158:o)+1)*t-o)+n},easeOutBack:function(e,t,n,r,i,o){return r*((t=t/i-1)*t*(((o=o==undefined?1.70158:o)+1)*t+o)+1)+n},easeInOutBack:function(e,t,n,r,i,o){return o==undefined&&(o=1.70158),(t/=i/2)<1?r/2*(t*t*((1+(o*=1.525))*t-o))+n:r/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+n},easeInBounce:function(e,t,n,r,i){return r-jQuery.easing.easeOutBounce(e,i-t,0,r,i)+n},easeOutBounce:function(e,t,n,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,r,i){return t<i/2?.5*jQuery.easing.easeInBounce(e,2*t,0,r,i)+n:.5*jQuery.easing.easeOutBounce(e,2*t-i,0,r,i)+.5*r+n}}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.dayjs=t()}(this,function(){var e,l="second",c="minute",u="hour",d="day",f="week",p="month",h="year",a="Sunday.Monday.Tuesday.Wednesday.Thursday.Friday.Saturday".split("."),s="January.February.March.April.May.June.July.August.September.October.November.December".split("."),n=/^(\d{4})-?(\d{1,2})-?(\d{1,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,m=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v=function(e){return e&&String(e).toLowerCase().replace(/s$/,"")},y=function(e){return void 0===e},t=((e=b.prototype).init=function(){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds()},e.isValid=function(){return!("Invalid Date"===this.$d.toString())},e.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0},e.isSame=function(e){return this.valueOf()===e.valueOf()},e.isBefore=function(e){return this.valueOf()<e.valueOf()},e.isAfter=function(e){return this.valueOf()>e.valueOf()},e.year=function(){return this.$y},e.month=function(){return this.$M},e.day=function(){return this.$W},e.date=function(){return this.$D},e.hour=function(){return this.$H},e.minute=function(){return this.$m},e.second=function(){return this.$s},e.millisecond=function(){return this.$ms},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(e,t){var r=this,i=!!y(t)||t,n=function(e,t,n){void 0===n&&(n=r.$y);n=new b(new Date(n,t,e));return i?n:n.endOf(d)},o=function(e,t){return new b(r.toDate()[e].apply(r.toDate(),(i?[0,0,0,0]:[23,59,59,999]).slice(t)))};switch(v(e)){case h:return i?n(1,0):n(31,11,this.$y);case p:return i?n(1,this.$M):n(0,this.$M+1,this.$y);case f:return i?n(this.$D-this.$W,this.$M):n(this.$D+(6-this.$W),this.$M,this.$y);case d:case"date":return o("setHours",0);case u:return o("setMinutes",1);case c:return o("setSeconds",2);case l:return o("setMilliseconds",3);default:return this.clone()}},e.endOf=function(e){return this.startOf(e,!1)},e.$set=function(e,t){switch(v(e)){case"date":this.$d.setDate(t);break;case p:this.$d.setMonth(t);break;case h:this.$d.setFullYear(t);break;case u:this.$d.setHours(t);break;case c:this.$d.setMinutes(t);break;case l:this.$d.setSeconds(t);break;case"millisecond":this.$d.setMilliseconds(t)}return this.init(),this},e.set=function(e,t){return this.clone().$set(e,t)},e.add=function(e,t){e=Number(e);var n,r,t=!t||1!==t.length&&"ms"!==t?v(t):t;if(-1<["M",p].indexOf(t))return(r=this.set("date",1).set(p,this.$M+e)).set("date",Math.min(this.$D,r.daysInMonth()));if(-1<["y",h].indexOf(t))return this.set(h,this.$y+e);switch(t){case"m":case c:n=6e4;break;case"h":case u:n=36e5;break;case"d":case d:n=864e5;break;case"w":case f:n=6048e5;break;case"s":case l:n=1e3;break;default:n=1}return new b(this.valueOf()+e*n)},e.subtract=function(e,t){return this.add(-1*e,t)},e.format=function(e){var t,n,r,i=this,e=e||"YYYY-MM-DDTHH:mm:ssZ",o=(t=this.$d.getTimezoneOffset(),r=Math.abs(t),n=Math.floor(r/60),r=r%60,(t<=0?"+":"-")+g(n,2,"0")+":"+g(r,2,"0"));return e.replace(m,function(e){if(-1<e.indexOf("["))return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(i.$y).slice(-2);case"YYYY":return String(i.$y);case"M":return String(i.$M+1);case"MM":return g(i.$M+1,2,"0");case"MMM":return s[i.$M].slice(0,3);case"MMMM":return s[i.$M];case"D":return String(i.$D);case"DD":return g(i.$D,2,"0");case"d":return String(i.$W);case"dddd":return a[i.$W];case"H":return String(i.$H);case"HH":return g(i.$H,2,"0");case"h":case"hh":return 0===i.$H?12:g(i.$H<13?i.$H:i.$H-12,"hh"===e?2:1,"0");case"a":return i.$H<12?"am":"pm";case"A":return i.$H<12?"AM":"PM";case"m":return String(i.$m);case"mm":return g(i.$m,2,"0");case"s":return String(i.$s);case"ss":return g(i.$s,2,"0");case"SSS":return g(i.$ms,3,"0");case"Z":return o;default:return o.replace(":","")}})},e.diff=function(e,t,n){var r,i,o,t=v(t),e=e instanceof b?e:new b(e),a=this-e,s=(o=this,r=12*((e=e).year()-o.year())+(e.month()-o.month()),e=e-(i=o.clone().add(r,"months"))<0?(e-i)/(i-o.clone().add(r-1,"months")):(e-i)/(o.clone().add(1+r,"months")-i),Number(-(r+e)));switch(t){case h:s/=12;break;case p:break;case"quarter":s/=3;break;case f:s=a/6048e5;break;case d:s=a/864e5;break;case u:s=a/36e5;break;case c:s=a/6e4;break;case l:s=a/1e3;break;default:s=a}return n?s:(o=s)<0?Math.ceil(o)||0:Math.floor(o)},e.daysInMonth=function(){return this.endOf(p).$D},e.clone=function(){return new b(this)},e.toDate=function(){return new Date(this.$d)},e.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},e.toJSON=function(){return this.toISOString()},e.toISOString=function(){return this.toDate().toISOString()},e.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},e.toString=function(){return this.$d.toUTCString()},b);function b(e){var t;this.$d=null===(e=e)?new Date(NaN):y(e)?new Date:e instanceof Date?e:"string"==typeof e&&(t=e.match(n))?new Date(t[1],t[2]-1,t[3],t[5]||0,t[6]||0,t[7]||0,t[8]||0):new Date(e),this.init()}return function(e){return new t(e)}}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.tippy=t()}(this,function(){function _(e){return"[object Object]"==={}.toString.call(e)}function l(e){return[].slice.call(e)}function u(e){for(var t=["","webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],i=i?i+n:e;if("undefined"!=typeof document.body.style[i])return i}return null}function c(){return document.createElement("div")}function h(t){var e=function(e){return t.querySelector(e)};return{tooltip:e(L.TOOLTIP),backdrop:e(L.BACKDROP),content:e(L.CONTENT),arrow:e(L.ARROW)||e(L.ROUND_ARROW)}}function V(e){var t=e.getAttribute("title");t&&e.setAttribute("data-original-title",t),e.removeAttribute("title")}function s(e){return e&&"[object Function]"==={}.toString.call(e)}function f(e,t){return 1!==e.nodeType?[]:(e=getComputedStyle(e,null),t?e[t]:e)}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=f(e),n=t.overflow,r=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(n+t+r)?e:p(d(e))}function m(e){return 11===e?Pe:10!==e&&Pe||Oe}function g(e){if(!e)return document.documentElement;for(var t=m(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===f(n,"position")?g(n):n:(e?e.ownerDocument:document).documentElement}function o(e){return null===e.parentNode?e:o(e.parentNode)}function v(e,t){var n,r,i;return e&&e.nodeType&&t&&t.nodeType?(i=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(n=document.createRange()).setStart(i,0),n.setEnd(r,0),e!==(n=n.commonAncestorContainer)&&t!==n||i.contains(r)?"BODY"===(i=(r=n).nodeName)||"HTML"!==i&&g(r.firstElementChild)!==r?g(n):n:(i=o(e)).host?v(i.host,t):v(e,o(t).host)):document.documentElement}function y(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",r=e.nodeName;return("BODY"===r||"HTML"===r?(r=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||r):e)[n]}function W(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function i(e,t,n,r){return A(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],m(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function F(){var e=document.body,t=document.documentElement,n=m(10)&&getComputedStyle(t);return{height:i("Height",e,t,n),width:i("Width",e,t,n)}}function b(e){return I({},e,{right:e.left+e.width,bottom:e.top+e.height})}function w(e){var t={};try{m(10)?(t=e.getBoundingClientRect(),n=y(e,"top"),r=y(e,"left"),t.top+=n,t.left+=r,t.bottom+=n,t.right+=r):t=e.getBoundingClientRect()}catch(t){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?F():{},i=r.width||e.clientWidth||n.right-n.left,r=r.height||e.clientHeight||n.bottom-n.top,i=e.offsetWidth-i,r=e.offsetHeight-r;return(i||r)&&(i-=W(e=f(e),"x"),r-=W(e,"y"),n.width-=i,n.height-=r),b(n)}function B(e,t,n){var r=!!(2<arguments.length&&void 0!==n)&&n,i=m(10),o="HTML"===t.nodeName,a=w(e),s=w(t),l=p(e),c=f(t),u=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10),s=(r&&"HTML"===t.nodeName&&(s.top=A(s.top,0),s.left=A(s.left,0)),b({top:a.top-s.top-u,left:a.left-s.left-d,width:a.width,height:a.height}));return s.marginTop=0,s.marginLeft=0,!i&&o&&(a=parseFloat(c.marginTop,10),o=parseFloat(c.marginLeft,10),s.top-=u-a,s.bottom-=u-a,s.left-=d-o,s.right-=d-o,s.marginTop=a,s.marginLeft=o),s=(i&&!r?t.contains(l):t===l&&"BODY"!==l.nodeName)?function(e,t,n){var r=!!(2<arguments.length&&void 0!==n)&&n,i=y(t,"top"),o=y(t,"left"),r=r?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}(s,t):s}function z(e){if(!e||!e.parentElement||m())return document.documentElement;for(var t=e.parentElement;t&&"none"===f(t,"transform");)t=t.parentElement;return t||document.documentElement}function j(e,t,n,r,i){var o,a=!!(4<arguments.length&&void 0!==i)&&i,s={top:0,left:0},l=a?z(e):v(e,t);return"viewport"===r?s=function(e,t){var n=!!(1<arguments.length&&void 0!==t)&&t,r=e.ownerDocument.documentElement,i=B(e,r),o=A(r.clientWidth,window.innerWidth||0),a=A(r.clientHeight,window.innerHeight||0),s=n?0:y(r),n=n?0:y(r,"left");return b({top:s-i.top+i.marginTop,left:n-i.left+i.marginLeft,width:o,height:a})}(l,a):("scrollParent"===r?"BODY"===(o=p(d(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===r?e.ownerDocument.documentElement:r,a=B(o,l,a),"HTML"!==o.nodeName||function c(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===f(e,"position")||c(d(e)))}(l)?s=a:(l=(o=F()).height,o=o.width,s.top+=a.top-a.marginTop,s.bottom=l+a.top,s.left+=a.left-a.marginLeft,s.right=o+a.left)),s.left+=n,s.top+=n,s.right-=n,s.bottom-=n,s}function $(e,t,n,r,i,o){var a,s,l=5<arguments.length&&void 0!==o?o:0;return-1===e.indexOf("auto")?e:(l=j(n,r,l,i),a={top:{width:l.width,height:t.top-l.top},right:{width:l.right-t.right,height:l.height},bottom:{width:l.width,height:l.bottom-t.bottom},left:{width:t.left-l.left,height:l.height}},(0<(s=(l=Object.keys(a).map(function(e){return I({key:e},a[e],{area:(e=a[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){var t=e.width,e=e.height;return t>=n.clientWidth&&e>=n.clientHeight})).length?s:l)[0].key+((s=e.split("-")[1])?"-"+s:""))}function U(e,t,n,r){var i=3<arguments.length&&void 0!==r?r:null;return B(n,i?z(t):v(t,n),i)}function q(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),t=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function X(e,t,n){n=n.split("-")[0];var e=q(e),r={width:e.width,height:e.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",a=i?"left":"top",s=i?"height":"width",i=i?"width":"height";return r[o]=t[o]+t[s]/2-e[s]/2,r[a]=n===a?t[a]-e[i]:t[x(a)],r}function S(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function K(e,n,t){var r,i,o;return(void 0===t?e:e.slice(0,(r=e,i="name",o=t,Array.prototype.findIndex?r.findIndex(function(e){return e[i]===o}):(t=S(r,function(e){return e[i]===o}),r.indexOf(t))))).forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e["function"]||e.fn;e.enabled&&s(t)&&(n.offsets.popper=b(n.offsets.popper),n.offsets.reference=b(n.offsets.reference),n=t(n,e))}),n}function Y(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function Q(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],i=i?""+i+n:e;if("undefined"!=typeof document.body.style[i])return i}return null}function J(e){e=e.ownerDocument;return e?e.defaultView:window}function Z(e,t,n,r){n.updateBound=r,J(e).addEventListener("resize",n.updateBound,{passive:!0});r=p(e);return function o(e,t,n,r){var i="BODY"===e.nodeName,e=i?e.ownerDocument.defaultView:e;e.addEventListener(t,n,{passive:!0}),i||o(p(e.parentNode),t,n,r),r.push(e)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function ee(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,J(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function te(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ne(n,r){Object.keys(r).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&te(r[e])&&(t="px"),n.style[e]=r[e]+t})}function re(e,t,n){var r,i=S(e,function(e){return e.name===t}),e=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});return e||(r="`"+t+"`",console.warn("`"+n+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),e}function ie(e,t){var n=!!(1<arguments.length&&void 0!==t)&&t,r=He.indexOf(e),r=He.slice(r+1).concat(He.slice(0,r));return n?r.reverse():r}function oe(e,s,l,t){var i=[0,0],r=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(S(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1===e?[t]:[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]).map(function(e,t){var a=(1===t?!r:r)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=a,n=s,r=l,i=+(o=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],o=o[2],i?0===o.indexOf("%")?b("%p"===o?n:r)[t]/100*i:"vh"===o||"vw"===o?("vh"===o?A(document.documentElement.clientHeight,window.innerHeight||0):A(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e;var t,n,r,i,o})}).forEach(function(n,r){n.forEach(function(e,t){te(e)&&(i[r]+=e*("-"===n[t-1]?-1:1))})}),i}function C(e){return e.getAttribute("x-placement").replace(/-.+/,"")}function ae(e,t,n,r){return t.length?{scale:1===t.length?""+t[0]:n?t[0]+", "+t[1]:t[1]+", "+t[0],translate:1===t.length?r?-t[0]+"px":t[0]+"px":n?r?t[0]+"px, "+-t[1]+"px":t[0]+"px, "+t[1]+"px":r?-t[1]+"px, "+t[0]+"px":t[1]+"px, "+t[0]+"px"}[e]:""}function se(e,t){return e?t?e:{X:"Y",Y:"X"}[e]:""}function le(e,t,n){var e=C(e),r="top"===e||"bottom"===e,e="right"===e||"bottom"===e,i=function(e){e=n.match(e);return e?e[1]:""},o=function(e){e=n.match(e);return e?e[1].split(",").map(parseFloat):[]},a=/translateX?Y?\(([^)]+)\)/,s=/scaleX?Y?\(([^)]+)\)/,i={translate:{axis:i(/translate([XY])/),numbers:o(a)},scale:{axis:i(/scale([XY])/),numbers:o(s)}},o=n.replace(a,"translate"+se(i.translate.axis,r)+"("+ae("translate",i.translate.numbers,r,e)+")").replace(s,"scale"+se(i.scale.axis,r)+"("+ae("scale",i.scale.numbers,r,e)+")");t.style[u("transform")]=o}function ce(e){return-(e-D.distance)+"px"}function N(e,t){return(Element.prototype.closest||function(e){for(var t=this;t;){if(Fe.call(t,e))return t;t=t.parentElement}}).call(e,t)}function k(e,t){return Array.isArray(e)?e[t]:e}function ue(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function de(e,t){e.filter(Boolean).forEach(function(e){e.style[u("transitionDuration")]=t+"ms"})}function fe(e){var t=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;e.focus(),scroll(t,n)}function R(){var e=this._(G).lastTriggerEvent;return this.options.followCursor&&!E.usingTouch&&e&&"focus"!==e.type}function pe(e){var t=this,n=this.options;ge.call(this),this.state.visible||(n.target?function(e){var t,n=N(e.target,this.options.target);n&&!n._tippy&&(t=n.getAttribute("title")||this.title)&&(n.setAttribute("title",t),r(n,P({},this.options,{target:null})),pe.call(n._tippy,e))}.call(this,e):(this._(G).isPreparingToShow=!0,n.wait?n.wait.call(this.popper,this.show.bind(this),e):(R.call(this)&&(this._(G).followCursorListener||function(){var r=this;this._(G).followCursorListener=function(e){var e=r._(G).lastMouseMoveEvent=e,t=e.clientX,n=e.clientY;r.popperInstance&&(r.popperInstance.reference={getBoundingClientRect:function(){return{width:0,height:0,top:n,left:t,right:t,bottom:n}},clientWidth:0,clientHeight:0},r.popperInstance.scheduleUpdate())}}.call(this),(e=h(this.popper).arrow)&&(e.style.margin="0"),document.addEventListener("mousemove",this._(G).followCursorListener)),(e=k(n.delay,0))?this._(G).showTimeout=setTimeout(function(){t.show()},e):this.show())))}function M(){var e,t=this;ge.call(this),this.state.visible&&(this._(G).isPreparingToShow=!1,(e=k(this.options.delay,1))?this._(G).hideTimeout=setTimeout(function(){t.state.visible&&t.hide()},e):this.hide())}function he(){var l=this;return{onTrigger:function(e){!l.state.enabled||E.supportsTouch&&E.usingTouch&&-1<["mouseenter","mouseover","focus"].indexOf(e.type)&&l.options.touchHold||("click"===(l._(G).lastTriggerEvent=e).type&&"persistent"!==l.options.hideOnClick&&l.state.visible?M.call(l):pe.call(l,e))},onMouseLeave:function(a){var s,e;-1<["mouseleave","mouseout"].indexOf(a.type)&&E.supportsTouch&&E.usingTouch&&l.options.touchHold||(l.options.interactive?(s=M.bind(l),e=function a(e){var t,n,r,i=N(e.target,L.REFERENCE),o=N(e.target,L.POPPER)===l.popper,i=i===l.reference;o||i||(o=e,i=l.popper,e=l.options,(!i.getAttribute("x-placement")||(t=o.clientX,o=o.clientY,r=e.interactiveBorder,e=e.distance,n=i.getBoundingClientRect(),i=C(i),e=r+e,r={top:n.top-o>r,bottom:o-n.bottom>r,left:n.left-t>r,right:t-n.right>r},"top"===i?r.top=n.top-o>e:"bottom"===i?r.bottom=o-n.bottom>e:"left"===i?r.left=n.left-t>e:"right"===i&&(r.right=t-n.right>e),r.top||r.bottom||r.left||r.right))&&(document.body.removeEventListener("mouseleave",s),document.removeEventListener("mousemove",a),M.call(l,a)))},document.body.addEventListener("mouseleave",s),document.addEventListener("mousemove",e)):M.call(l))},onBlur:function(e){if(e.target===l.reference&&!E.usingTouch){if(l.options.interactive){if(!e.relatedTarget)return;if(N(e.relatedTarget,L.POPPER))return}M.call(l)}},onDelegateShow:function(e){N(e.target,l.options.target)&&pe.call(l,e)},onDelegateHide:function(e){N(e.target,l.options.target)&&M.call(l)}}}function me(){var e=this,t=this.popper,n=this.reference,r=this.options,i=h(t).tooltip,o=r.popperOptions,a="round"===r.arrowType?L.ROUND_ARROW:L.ARROW,s=i.querySelector(a),a=P({placement:r.placement},o||{},{modifiers:P({},o?o.modifiers:{},{arrow:P({element:a},o&&o.modifiers?o.modifiers.arrow:{}),flip:P({enabled:r.flip,padding:r.distance+5,behavior:r.flipBehavior},o&&o.modifiers?o.modifiers.flip:{}),offset:P({offset:r.offset},o&&o.modifiers?o.modifiers.offset:{})}),onCreate:function(){i.style[C(t)]=ce(r.distance),s&&r.arrowTransform&&le(t,s,r.arrowTransform)},onUpdate:function(){var e=i.style;e.top="",e.bottom="",e.left="",e.right="",e[C(t)]=ce(r.distance),s&&r.arrowTransform&&le(t,s,r.arrowTransform)}});return ye.call(this,{target:t,callback:function(){e.popperInstance.update()},options:{childList:!0,subtree:!0,characterData:!0}}),new H(n,t,a)}function ge(){var e=this._(G),t=e.showTimeout,e=e.hideTimeout;clearTimeout(t),clearTimeout(e)}function ve(){var e=this;!function t(){e.popperInstance&&e.popperInstance.update(),e.popper.style[u("transitionDuration")]=e.options.updateDuration+"ms",e.state.visible?requestAnimationFrame(t):e.popper.style[u("transitionDuration")]=""}()}function ye(e){var t=e.target,n=e.callback,e=e.options;window.MutationObserver&&((n=new MutationObserver(n)).observe(t,e),this._(G).mutationObservers.push(n))}function be(e,t){if(!e)return t();var n,r=(n=h(this.popper)).tooltip,i=function(e,t){t&&r[e+"EventListener"]("ontransitionend"in window?"transitionend":"webkitTransitionEnd",t)},e=function n(e){e.target===r&&(i("remove",n),t())};i("remove",this._(G).transitionendListener),i("add",e),this._(G).transitionendListener=e}function we(e,l){return e.reduce(function(e,d){var r,i,t,n,o,f,a=ze,p=(s=d,(t=l.performance?l:(r=d,i=l,t=Re.reduce(function(e,t){var n=r.getAttribute("data-tippy-"+t.toLowerCase())||i[t];return"true"===(n="false"===n?!1:n)&&(n=!0),isFinite(n)&&!isNaN(parseFloat(n))&&(n=parseFloat(n)),"target"!==t&&"string"==typeof n&&"["===n.trim().charAt(0)&&(n=JSON.parse(n)),e[t]=n,e},{}),P({},i,t))).arrow&&(t.animateFill=!1),t.appendTo&&"function"==typeof t.appendTo&&(t.appendTo=t.appendTo()),"function"==typeof t.html&&(t.html=t.html(s)),t),s=d.getAttribute("title");return(s||p.target||p.html||p.dynamicTitle)&&(d.setAttribute(p.target?"data-tippy-delegate":"data-tippy",""),V(d),n=function(e,t,n){var r=c(),i=(r.setAttribute("class","tippy-popper"),r.setAttribute("role","tooltip"),r.setAttribute("id","tippy-"+e),r.style.zIndex=n.zIndex,r.style.maxWidth=n.maxWidth,c());i.setAttribute("class","tippy-tooltip"),i.setAttribute("data-size",n.size),i.setAttribute("data-animation",n.animation),i.setAttribute("data-state","hidden"),n.theme.split(" ").forEach(function(e){i.classList.add(e+"-theme")});(e=c()).setAttribute("class","tippy-content"),n.arrow&&((o=c()).style[u("transform")]=n.arrowTransform,"round"===n.arrowType?(o.classList.add("tippy-roundarrow"),o.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M3 8s2.021-.015 5.253-4.218C9.584 2.051 10.797 1.007 12 1c1.203-.007 2.416 1.035 3.761 2.782C19.012 8.005 21 8 21 8H3z"/></svg>'):o.classList.add("tippy-arrow"),i.appendChild(o)),n.animateFill&&(i.setAttribute("data-animatefill",""),(o=c()).classList.add("tippy-backdrop"),o.setAttribute("data-state","hidden"),i.appendChild(o)),n.inertia&&i.setAttribute("data-inertia",""),n.interactive&&i.setAttribute("data-interactive","");var o=n.html;return o?(o=o instanceof Element?(e.appendChild(o),"#"+(o.id||"tippy-html-template")):(e.innerHTML=document.querySelector(o).innerHTML,o),r.setAttribute("data-html",""),i.setAttribute("data-template-id",o),n.interactive&&r.setAttribute("tabindex","-1")):e[n.allowTitleHTML?"innerHTML":"textContent"]=t,i.appendChild(e),r.appendChild(i),r}(a,s,p),o=new Be({id:a,reference:d,popper:n,options:p,title:s,popperInstance:null}),p.createPopperInstanceOnInit&&(o.popperInstance=me.call(o),o.popperInstance.disableEventListeners()),f=he.call(o),o.listeners=p.trigger.trim().split(" ").reduce(function(e,t){return e.concat((t=t,n=d,i=p,a=(r=f).onTrigger,s=r.onMouseLeave,l=r.onBlur,c=r.onDelegateShow,r=r.onDelegateHide,u=[],"manual"!==t&&(o=function(e,t){n.addEventListener(e,t),u.push({event:e,handler:t})},i.target?(E.supportsTouch&&i.touchHold&&(o("touchstart",c),o("touchend",r)),"mouseenter"===t&&(o("mouseover",c),o("mouseout",r)),"focus"===t&&(o("focusin",c),o("focusout",r)),"click"===t&&o("click",c)):(o(t,a),E.supportsTouch&&i.touchHold&&(o("touchstart",a),o("touchend",s)),"mouseenter"===t&&o("mouseleave",s),"focus"===t&&o(ke?"focusout":"blur",l))),u));var n,r,i,o,a,s,l,c,u},[]),p.dynamicTitle&&ye.call(o,{target:d,callback:function(){var e=h(n).content,t=d.getAttribute("title");t&&(e[p.allowTitleHTML?"innerHTML":"textContent"]=o.title=t,V(d))},options:{attributes:!0}}),d._tippy=o,n._tippy=o,n._reference=d,e.push(o),ze++),e},[])}function xe(r){l(document.querySelectorAll(L.POPPER)).forEach(function(e){var t,n=e._tippy;!n||!(!0===(t=n.options).hideOnClick||-1<t.trigger.indexOf("focus"))||r&&e===r.popper||n.hide()})}function r(e,t,n){E.supported&&!je&&(a=function(){E.usingTouch||(E.usingTouch=!0,E.iOS&&document.body.classList.add("tippy-touch"),E.dynamicInputDetection&&window.performance&&document.addEventListener("mousemove",o),E.onUserInputChange("touch"))},o=function(){var e=performance.now();e-i<20&&(E.usingTouch=!1,document.removeEventListener("mousemove",o),E.iOS||document.body.classList.remove("tippy-touch"),E.onUserInputChange("mouse")),i=e},document.addEventListener("click",function(e){if(!(e.target instanceof Element))return xe();var t=N(e.target,L.REFERENCE),e=N(e.target,L.POPPER);if(!(e&&e._tippy&&e._tippy.options.interactive)){if(t&&t._tippy){var e=t._tippy.options,n=-1<e.trigger.indexOf("click"),r=e.multiple;if(!r&&E.usingTouch||!r&&n)return xe(t._tippy);if(!0!==e.hideOnClick||n)return}xe()}}),document.addEventListener("touchstart",a),window.addEventListener("blur",function(){var e=document.activeElement;e&&e.blur&&Fe.call(e,L.REFERENCE)&&e.blur()}),window.addEventListener("resize",function(){l(document.querySelectorAll(L.POPPER)).forEach(function(e){e=e._tippy;e&&!e.options.livePlacement&&e.popperInstance.scheduleUpdate()})}),E.supportsTouch||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints||document.addEventListener("pointerdown",a),je=!0),_(e)&&((r=e).refObj=!0,r.attributes=r.attributes||{},r.setAttribute=function(e,t){r.attributes[e]=t},r.getAttribute=function(e){return r.attributes[e]},r.removeAttribute=function(e){delete r.attributes[e]},r.hasAttribute=function(e){return e in r.attributes},r.addEventListener=function(){},r.removeEventListener=function(){},r.classList={classNames:{},add:function(e){return r.classList.classNames[e]=!0},remove:function(e){return delete r.classList.classNames[e],!0},contains:function(e){return e in r.classList.classNames}}),t=P({},D,t);var r,i,o,a=function(e){if(e instanceof Element||_(e))return[e];if(e instanceof NodeList)return l(e);if(Array.isArray(e))return e;try{return l(document.querySelectorAll(e))}catch(e){return[]}}(e),s=a[0];return{selector:e,options:t,tooltips:E.supported?we(n&&s?[s]:a,t):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}}}var Se=Math.min,Ce=Math.round,T=Math.floor,A=Math.max,Ne="undefined"!=typeof window,ke=Ne&&/MSIE |Trident\//.test(navigator.userAgent),E={};Ne&&(E.supported="requestAnimationFrame"in window,E.supportsTouch="ontouchstart"in window,E.usingTouch=!1,E.dynamicInputDetection=!0,E.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,E.onUserInputChange=function(){});for(var L={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-content",BACKDROP:".tippy-backdrop",ARROW:".tippy-arrow",ROUND_ARROW:".tippy-roundarrow",REFERENCE:"[data-tippy]"},D={placement:"top",livePlacement:!0,trigger:"mouseenter focus",animation:"shift-away",html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:"flip",arrowType:"sharp",arrowTransform:"",maxWidth:"",target:null,allowTitleHTML:!0,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Re=E.supported&&Object.keys(D),Me=function(e,t,n){return t&&Le(e.prototype,t),n&&Le(e,n),e},P=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e="undefined"!=typeof window&&"undefined"!=typeof document,Te=["Edge","Trident","Firefox"],Ae=0,Ee=0;Ee<Te.length;Ee+=1)if(e&&0<=navigator.userAgent.indexOf(Te[Ee])){Ae=1;break}function Le(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}var t,De=(t=e&&window.Promise)?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ae))}},Pe=e&&!(!window.MSInputMethodContext||!document.documentMode),Oe=e&&/MSIE 10/.test(navigator.userAgent),Ie=function(e,t,n){return t&&We(e.prototype,t),n&&We(e,n),e},O=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],He=n.slice(3),Ge="flip",_e="clockwise",Ve="counterclockwise",H=(Ie(a,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=U(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=X(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=K(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Y(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Q("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ee.call(this)}}]),a);function a(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=this,o=a;if(!(i instanceof o))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=De(this.update.bind(this)),this.options=I({},a.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(I({},a.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=I({},a.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return I({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}function We(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}H.Utils=("undefined"==typeof window?global:window).PopperUtils,H.placements=n,H.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,r,i=e.placement,o=i.split("-")[0],i=i.split("-")[1];return i&&(t=(n=e.offsets).reference,n=n.popper,r=(o=-1!==["bottom","top"].indexOf(o))?"width":"height",o={start:O({},o=o?"left":"top",t[o]),end:O({},o,t[o]+t[r]-n[r])},e.offsets.popper=I({},n,o[i])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,r=(i=e.offsets).popper,i=i.reference,n=n.split("-")[0],t=te(+t)?[+t,0]:oe(t,r,i,n);return"left"===n?(r.top+=t[0],r.left-=t[1]):"right"===n?(r.top+=t[0],r.left+=t[1]):"top"===n?(r.left+=t[0],r.top-=t[1]):"bottom"===n&&(r.left+=t[0],r.top+=t[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,r){var t=r.boundariesElement||g(e.instance.popper),n=(e.instance.reference===t&&(t=g(t)),Q("transform")),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n],l=(i.top="",i.left="",i[n]="",j(e.instance.popper,e.instance.reference,r.padding,t,e.positionFixed)),t=(i.top=o,i.left=a,i[n]=s,r.boundaries=l,r.priority),c=e.offsets.popper,u={primary:function(e){var t=c[e];return c[e]<l[e]&&!r.escapeWithReference&&(t=A(c[e],l[e])),O({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!r.escapeWithReference&&(n=Se(c[t],l[e]-("right"===e?c.width:c.height))),O({},t,n)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";c=I({},c,u[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,t=t.reference,r=e.placement.split("-")[0],i=T,r=-1!==["top","bottom"].indexOf(r),o=r?"right":"bottom",a=r?"left":"top",r=r?"width":"height";return n[o]<i(t[a])&&(e.offsets.popper[a]=i(t[a])-n[r]),n[a]>i(t[o])&&(e.offsets.popper[a]=i(t[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(re(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],r=e.offsets,i=r.popper,r=r.reference,n=-1!==["left","right"].indexOf(n),o=n?"height":"width",a=n?"Top":"Left",s=a.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",c=q(t)[o],n=(r[n]-c<i[s]&&(e.offsets.popper[s]-=i[s]-(r[n]-c)),r[s]+c>i[n]&&(e.offsets.popper[s]+=r[s]+c-i[n]),e.offsets.popper=b(e.offsets.popper),r[s]+r[o]/2-c/2),r=f(e.instance.popper),u=parseFloat(r["margin"+a],10),a=parseFloat(r["border"+a+"Width"],10),r=n-e.offsets.popper[s]-u-a,r=A(Se(i[o]-c,r),0);e.arrowElement=t,e.offsets.arrow=(O(n={},s,Ce(r)),O(n,l,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,c){if(!(Y(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var u=j(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement,l.positionFixed),d=l.placement.split("-")[0],f=x(d),p=l.placement.split("-")[1]||"",h=[];switch(c.behavior){case Ge:h=[d,f];break;case _e:h=ie(d);break;case Ve:h=ie(d,!0);break;default:h=c.behavior}h.forEach(function(e,t){if(d!==e||h.length===t+1)return l;d=l.placement.split("-")[0],f=x(d);var e=l.offsets.popper,n=l.offsets.reference,r=T,n="left"===d&&r(e.right)>r(n.left)||"right"===d&&r(e.left)<r(n.right)||"top"===d&&r(e.bottom)>r(n.top)||"bottom"===d&&r(e.top)<r(n.bottom),i=r(e.left)<r(u.left),o=r(e.right)>r(u.right),a=r(e.top)<r(u.top),e=r(e.bottom)>r(u.bottom),r="left"===d&&i||"right"===d&&o||"top"===d&&a||"bottom"===d&&e,s=-1!==["top","bottom"].indexOf(d),i=!!c.flipVariations&&(s&&"start"===p&&i||s&&"end"===p&&o||!s&&"start"===p&&a||!s&&"end"===p&&e);(n||r||i)&&(l.flipped=!0,(n||r)&&(d=h[t+1]),i&&(p="end"===(o=p)?"start":"start"===o?"end":o),l.placement=d+(p?"-"+p:""),l.offsets.popper=I({},l.offsets.popper,X(l.instance.popper,l.offsets.reference,l.placement)),l=K(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,r=r.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[n]-(a?i[o?"width":"height"]:0),e.placement=x(t),e.offsets.popper=b(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(re(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=S(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=S(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var t=void 0===o?t.gpuAcceleration:o,o=w(g(e.instance.popper)),a={position:i.position},i={left:T(i.left),top:Ce(i.top),bottom:Ce(i.bottom),right:T(i.right)},n="bottom"===n?"top":"bottom",r="right"===r?"left":"right",s=Q("transform"),l="bottom"==n?-o.height+i.bottom:i.top,o="right"==r?-o.width+i.right:i.left,t=(t&&s?(a[s]="translate3d("+o+"px, "+l+"px, 0)",a[n]=0,a[r]=0,a.willChange="transform"):(i="right"==r?-1:1,a[n]=l*("bottom"==n?-1:1),a[r]=o*i,a.willChange=n+", "+r),{"x-placement":e.placement});return e.attributes=I({},t,e.attributes),e.styles=I({},a,e.styles),e.arrowStyles=I({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return ne(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1===n[e]?t.removeAttribute(e):t.setAttribute(e,n[e])}),e.arrowElement&&Object.keys(e.arrowStyles).length&&ne(e.arrowElement,e.arrowStyles),e;var t,n},onLoad:function(e,t,n,r,i){i=U(i,t,e,n.positionFixed),i=$(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),ne(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}};var Ie={},Fe=Ie=Ne?(n=Element.prototype).matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n}:Ie,G={},Be=(Me($e,[{key:"enable",value:function(){this.state.enabled=!0}},{key:"disable",value:function(){this.state.enabled=!1}},{key:"show",value:function(n){var r,i,o,e,a,s,l,c=this;if(!this.state.destroyed&&this.state.enabled)return r=this.popper,i=this.reference,o=this.options,e=h(r),a=e.tooltip,s=e.backdrop,l=e.content,o.dynamicTitle&&!i.getAttribute("data-original-title")||i.hasAttribute("disabled")?void 0:i.refObj||document.documentElement.contains(i)?(o.onShow.call(r,this),n=k(void 0===n?o.duration:n,0),de([r,a,s],0),r.style.visibility="visible",this.state.visible=!0,void function(e){var t,n,r,i,o,a,s=this.options;this.popperInstance?(this.popperInstance.scheduleUpdate(),s.livePlacement&&!R.call(this)&&this.popperInstance.enableEventListeners()):(this.popperInstance=me.call(this),s.livePlacement||this.popperInstance.disableEventListeners()),R.call(this)||((t=h(this.popper).arrow)&&(t.style.margin=""),this.popperInstance.reference=this.reference),t=this.popperInstance,n=e,e=!0,r=t.popper,i=t.options,o=i.onCreate,a=i.onUpdate,i.onCreate=i.onUpdate=function(){r.offsetHeight,n&&n(),a(),i.onCreate=o,i.onUpdate=a},e||t.scheduleUpdate(),s.appendTo.contains(this.popper)||s.appendTo.appendChild(this.popper)}.call(this,function(){var e,t;c.state.visible&&(R.call(c)||c.popperInstance.scheduleUpdate(),R.call(c)&&(c.popperInstance.disableEventListeners(),e=k(o.delay,0),(t=c._(G).lastTriggerEvent)&&c._(G).followCursorListener(e&&c._(G).lastMouseMoveEvent?c._(G).lastMouseMoveEvent:t)),de([a,s,s?l:null],n),s&&getComputedStyle(s)[u("transform")],o.interactive&&i.classList.add("tippy-active"),o.sticky&&ve.call(c),ue([a,s],"visible"),be.call(c,n,function(){o.updateDuration||a.classList.add("tippy-notransition"),o.interactive&&fe(r),i.setAttribute("aria-describedby","tippy-"+c.id),o.onShown.call(r,c)}))})):void this.destroy()}},{key:"hide",value:function(e){var t,n,r,i,o,a,s,l=this;!this.state.destroyed&&this.state.enabled&&(t=this.popper,n=this.reference,r=this.options,i=(a=h(t)).tooltip,o=a.backdrop,a=a.content,r.onHide.call(t,this),e=k(void 0===e?r.duration:e,1),r.updateDuration||i.classList.remove("tippy-notransition"),r.interactive&&n.classList.remove("tippy-active"),t.style.visibility="hidden",this.state.visible=!1,de([i,o,o?a:null],e),ue([i,o],"hidden"),r.interactive&&-1<r.trigger.indexOf("click")&&fe(n),s=function(){be.call(l,e,function(){!l.state.visible&&r.appendTo.contains(t)&&(l._(G).isPreparingToShow||(document.removeEventListener("mousemove",l._(G).followCursorListener),l._(G).lastMouseMoveEvent=null),l.popperInstance&&l.popperInstance.disableEventListeners(),n.removeAttribute("aria-describedby"),r.appendTo.removeChild(t),r.onHidden.call(t,l))})},requestAnimationFrame(function(){setTimeout(s,1)}))}},{key:"destroy",value:function(){var t=this,e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(e){t.reference.removeEventListener(e.event,e.handler)}),this.title&&this.reference.setAttribute("title",this.title),delete this.reference._tippy,["data-original-title","data-tippy","data-tippy-delegate"].forEach(function(e){t.reference.removeAttribute(e)}),this.options.target&&e&&l(this.reference.querySelectorAll(this.options.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(G).mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0)}}]),$e),ze=1,je=!1;function $e(e){var t,n;if(!(this instanceof $e))throw new TypeError("Cannot call a class as a function");for(t in e)this[t]=e[t];this.state={destroyed:!1,visible:!1,enabled:!0},this._=(n={mutationObservers:[]},function(e){return e===G&&n})}return r.version="2.5.3",r.browser=E,r.defaults=D,r.one=function(e,t){return r(e,t,!0).tooltips[0]},r.disableAnimations=function(){D.updateDuration=D.duration=0,D.animateFill=!1},r}),!function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"==typeof exports||exports.nodeType?t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs})):e(exports)}(function(r){var d=[],a=Object.keys,y={},s={},c=/^(no-?highlight|plain|text)$/i,l=/\blang(?:uage)?-([\w-]+)\b/i,t=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,n={case_insensitive:"cI",lexemes:"l",contains:"c",keywords:"k",subLanguage:"sL",className:"cN",begin:"b",beginKeywords:"bK",end:"e",endsWithParent:"eW",illegal:"i",excludeBegin:"eB",excludeEnd:"eE",returnBegin:"rB",returnEnd:"rE",relevance:"r",variants:"v",IDENT_RE:"IR",UNDERSCORE_IDENT_RE:"UIR",NUMBER_RE:"NR",C_NUMBER_RE:"CNR",BINARY_NUMBER_RE:"BNR",RE_STARTERS_RE:"RSR",BACKSLASH_ESCAPE:"BE",APOS_STRING_MODE:"ASM",QUOTE_STRING_MODE:"QSM",PHRASAL_WORDS_MODE:"PWM",C_LINE_COMMENT_MODE:"CLCM",C_BLOCK_COMMENT_MODE:"CBCM",HASH_COMMENT_MODE:"HCM",NUMBER_MODE:"NM",C_NUMBER_MODE:"CNM",BINARY_NUMBER_MODE:"BNM",CSS_NUMBER_MODE:"CSSNM",REGEXP_MODE:"RM",TITLE_MODE:"TM",UNDERSCORE_TITLE_MODE:"UTM",COMMENT:"C",beginRe:"bR",endRe:"eR",illegalRe:"iR",lexemesRe:"lR",terminators:"t",terminator_end:"tE"},b="</span>",w={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function x(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function f(e){return e.nodeName.toLowerCase()}function S(e,t){t=e&&e.exec(t);return t&&0===t.index}function u(e){return c.test(e)}function p(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach(function(e){for(t in e)n[t]=e[t]}),n}function h(r){var i=[];return function r(e,t){for(var n=e.firstChild;n;n=n.nextSibling)3===n.nodeType?t+=n.nodeValue.length:1===n.nodeType&&(i.push({event:"start",offset:t,node:n}),t=r(n,t),f(n).match(/br|hr|img|input/)||i.push({event:"stop",offset:t,node:n}));return t}(r,0),i}function i(e){if(!e.langApiRestored){for(var t in e.langApiRestored=!0,n)e[t]&&(e[n[t]]=e[t]);(e.c||[]).concat(e.v||[]).forEach(i)}}function C(i){function l(e){return e&&e.source||e}function o(e,t){return new RegExp(l(e),"m"+(i.cI?"i":"")+(t?"g":""))}!function c(n,e){function t(t,e){(e=i.cI?e.toLowerCase():e).split(" ").forEach(function(e){e=e.split("|");r[e[0]]=[t,e[1]?Number(e[1]):1]})}var r;n.compiled||(n.compiled=!0,n.k=n.k||n.bK,n.k&&(r={},"string"==typeof n.k?t("keyword",n.k):a(n.k).forEach(function(e){t(e,n.k[e])}),n.k=r),n.lR=o(n.l||/\w+/,!0),e&&(n.bK&&(n.b="\\b("+n.bK.split(" ").join("|")+")\\b"),n.b||(n.b=/\B|\b/),n.bR=o(n.b),n.endSameAsBegin&&(n.e=n.b),n.e||n.eW||(n.e=/\B|\b/),n.e&&(n.eR=o(n.e)),n.tE=l(n.e)||"",n.eW&&e.tE&&(n.tE+=(n.e?"|":"")+e.tE)),n.i&&(n.iR=o(n.i)),null==n.r&&(n.r=1),n.c||(n.c=[]),n.c=Array.prototype.concat.apply([],n.c.map(function(e){return(t="self"===e?n:e).v&&!t.cached_variants&&(t.cached_variants=t.v.map(function(e){return p(t,{v:null},e)})),t.cached_variants||(t.eW?[p(t)]:[t]);var t})),n.c.forEach(function(e){c(e,n)}),n.starts&&c(n.starts,e),e=n.c.map(function(e){return e.bK?"\\.?(?:"+e.b+")\\.?":e.b}).concat([n.tE,n.i]).map(l).filter(Boolean),n.t=e.length?o(function(e){for(var t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,n=0,r="",i=0;i<e.length;i++){var o=n,a=l(e[i]);for(0<i&&(r+="|");0<a.length;){var s=t.exec(a);if(null==s){r+=a;break}r+=a.substring(0,s.index),a=a.substring(s.index+s[0].length),"\\"==s[0][0]&&s[1]?r+="\\"+String(Number(s[1])+o):(r+=s[0],"("==s[0]&&n++)}}return r}(e),!0):{exec:function(){return null}})}(i)}function N(e,t,i,n){function o(e,t,n,r){r='<span class="'+(r?"":w.classPrefix);return e?(r+=e+'">')+t+(n?"":b):t}function a(){var e,t;d+=null!=c.sL?(t="string"==typeof c.sL)&&!y[c.sL]?x(p):(e=t?N(c.sL,p,!0,u[c.sL]):k(p,c.sL.length?c.sL:void 0),0<c.r&&(h+=e.r),t&&(u[c.sL]=e.top),o(e.language,e.value,!1,!0)):function(){var e,t,n,r,i;if(!c.k)return x(p);for(n="",c.lR.lastIndex=e=0,t=c.lR.exec(p);t;)n+=x(p.substring(e,t.index)),r=c,i=t,i=l.cI?i[0].toLowerCase():i[0],(i=r.k.hasOwnProperty(i)&&r.k[i])?(h+=i[1],n+=o(i[0],x(t[0]))):n+=x(t[0]),e=c.lR.lastIndex,t=c.lR.exec(p);return n+x(p.substr(e))}(),p=""}function s(e){d+=e.cN?o(e.cN,"",!0):"",c=Object.create(e,{parent:{value:c}})}function r(n,e){if(p+=n,null==e)return a(),0;var t=function(e,t){for(var n,r=0,i=t.c.length;r<i;r++)if(S(t.c[r].bR,e))return t.c[r].endSameAsBegin&&(t.c[r].eR=(n=t.c[r].bR.exec(e)[0],new RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m"))),t.c[r]}(e,c);if(t)return t.skip?p+=e:(t.eB&&(p+=e),a(),t.rB||t.eB||(p=e)),s(t),t.rB?0:e.length;var r=function n(e,t){if(S(e.eR,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.eW)return n(e.parent,t)}(c,e);if(r){t=c;for(t.skip?p+=e:(t.rE||t.eE||(p+=e),a(),t.eE&&(p=e));c.cN&&(d+=b),c.skip||c.sL||(h+=c.r),(c=c.parent)!==r.parent;);return r.starts&&(r.endSameAsBegin&&(r.starts.eR=r.eR),s(r.starts)),t.rE?0:e.length}if(!i&&S(c.iR,e))throw new Error('Illegal lexeme "'+e+'" for mode "'+(c.cN||"<unnamed>")+'"');return p+=e,e.length||1}var l=R(e);if(!l)throw new Error('Unknown language: "'+e+'"');C(l);for(var c=n||l,u={},d="",f=c;f!==l;f=f.parent)f.cN&&(d=o(f.cN,"",!0)+d);var p="",h=0;try{for(var m,g,v=0;c.t.lastIndex=v,m=c.t.exec(t);)g=r(t.substring(v,m.index),m[0]),v=m.index+g;for(r(t.substr(v)),f=c;f.parent;f=f.parent)f.cN&&(d+=b);return{r:h,value:d,language:e,top:c}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{r:0,value:x(t)};throw e}}function k(n,e){e=e||w.languages||a(y);var r={r:0,value:x(n)},i=r;return e.filter(R).filter(v).forEach(function(e){var t=N(e,n,!1);t.language=e,t.r>i.r&&(i=t),t.r>r.r&&(i=r,r=t)}),i.language&&(r.second_best=i),r}function m(e){return w.tabReplace||w.useBR?e.replace(t,function(e,t){return w.useBR&&"\n"===e?"<br>":w.tabReplace?t.replace(/\t/g,w.tabReplace):""}):e}function o(o){var e,t,n,r,i=function(){var e,t,n,r,i=o.className+" ";if(i+=o.parentNode?o.parentNode.className:"",t=l.exec(i))return R(t[1])?t[1]:"no-highlight";for(e=0,n=(i=i.split(/\s+/)).length;e<n;e++)if(u(r=i[e])||R(r))return r}();u(i)||(w.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=o.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):t=o,r=t.textContent,e=i?N(i,r,!0):k(r),(t=h(t)).length&&((n=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.value,e.value=function(e,t,n){var r=0,i="",o=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function s(e){i+="<"+f(e)+d.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+x(e.value).replace('"',""")+'"'}).join("")+">"}function l(e){i+="</"+f(e)+">"}function c(e){("start"===e.event?s:l)(e.node)}for(;e.length||t.length;){var u=a();if(i+=x(n.substring(r,u[0].offset)),r=u[0].offset,u===e){for(o.reverse().forEach(l);c(u.splice(0,1)[0]),(u=a())===e&&u.length&&u[0].offset===r;);o.reverse().forEach(s)}else"start"===u[0].event?o.push(u[0].node):o.pop(),c(u.splice(0,1)[0])}return i+x(n.substr(r))}(t,h(n),r)),e.value=m(e.value),o.innerHTML=e.value,o.className=(t=o.className,n=e.language,n=i?s[i]:n,r=[t.trim()],t.match(/\bhljs\b/)||r.push("hljs"),-1===t.indexOf(n)&&r.push(n),r.join(" ").trim()),o.result={language:e.language,re:e.r},e.second_best&&(o.second_best={language:e.second_best.language,re:e.second_best.r}))}function g(){var e;g.called||(g.called=!0,e=document.querySelectorAll("pre code"),d.forEach.call(e,o))}function R(e){return e=(e||"").toLowerCase(),y[e]||y[s[e]]}function v(e){e=R(e);return e&&!e.disableAutodetect}return r.highlight=N,r.highlightAuto=k,r.fixMarkup=m,r.highlightBlock=o,r.configure=function(e){w=p(w,e)},r.initHighlighting=g,r.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)},r.registerLanguage=function(t,e){e=y[t]=e(r);i(e),e.aliases&&e.aliases.forEach(function(e){s[e]=t})},r.listLanguages=function(){return a(y)},r.getLanguage=R,r.autoDetection=v,r.inherit=p,r.IR=r.IDENT_RE="[a-zA-Z]\\w*",r.UIR=r.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",r.NR=r.NUMBER_RE="\\b\\d+(\\.\\d+)?",r.CNR=r.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",r.BNR=r.BINARY_NUMBER_RE="\\b(0b[01]+)",r.RSR=r.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",r.BE=r.BACKSLASH_ESCAPE={b:"\\\\[\\s\\S]",r:0},r.ASM=r.APOS_STRING_MODE={cN:"string",b:"'",e:"'",i:"\\n",c:[r.BE]},r.QSM=r.QUOTE_STRING_MODE={cN:"string",b:'"',e:'"',i:"\\n",c:[r.BE]},r.PWM=r.PHRASAL_WORDS_MODE={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},r.C=r.COMMENT=function(e,t,n){e=r.inherit({cN:"comment",b:e,e:t,c:[]},n||{});return e.c.push(r.PWM),e.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),e},r.CLCM=r.C_LINE_COMMENT_MODE=r.C("//","$"),r.CBCM=r.C_BLOCK_COMMENT_MODE=r.C("/\\*","\\*/"),r.HCM=r.HASH_COMMENT_MODE=r.C("#","$"),r.NM=r.NUMBER_MODE={cN:"number",b:r.NR,r:0},r.CNM=r.C_NUMBER_MODE={cN:"number",b:r.CNR,r:0},r.BNM=r.BINARY_NUMBER_MODE={cN:"number",b:r.BNR,r:0},r.CSSNM=r.CSS_NUMBER_MODE={cN:"number",b:r.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},r.RM=r.REGEXP_MODE={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[r.BE,{b:/\[/,e:/\]/,r:0,c:[r.BE]}]},r.TM=r.TITLE_MODE={cN:"title",b:r.IR,r:0},r.UTM=r.UNDERSCORE_TITLE_MODE={cN:"title",b:r.UIR,r:0},r.METHOD_GUARD={b:"\\.\\s*"+r.UIR,r:0},r}),hljs.registerLanguage("cs",function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},n={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],r:0},r={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},i=e.inherit(r,{i:/\n/}),o={cN:"subst",b:"{",e:"}",k:t},a=e.inherit(o,{i:/\n/}),s={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,a]},l={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},o]},c=e.inherit(l,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},a]}),o=(o.c=[l,s,r,e.ASM,e.QSM,n,e.CBCM],a.c=[c,s,i,e.ASM,e.QSM,n,e.inherit(e.CBCM,{i:/\n/})],{v:[l,s,r,e.ASM,e.QSM]}),a=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp","c#"],k:t,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:"\x3c!--|--\x3e"},{b:"</?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},o,n,{bK:"class interface",e:/[{;=]/,i:/[^\s:,]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{cN:"meta",b:"^\\s*\\[",eB:!0,e:"\\]",eE:!0,c:[{cN:"meta-string",b:/"/,e:/"/}]},{bK:"new return throw await else",r:0},{cN:"function",b:"("+a+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/\s*[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,r:0,c:[o,n,e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.registerLanguage("json",function(e){var t={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:t},i={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},r={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,i,r),{c:n,k:t,i:"\\S"}}),hljs.registerLanguage("javascript",function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},i={cN:"subst",b:"\\$\\{",e:"\\}",k:n,c:[]},o={cN:"string",b:"`",e:"`",c:[e.BE,i]},i=(i.c=[e.ASM,e.QSM,o,r,e.RM],i.c.concat([e.CBCM,e.CLCM]));return{aliases:["js","jsx"],k:n,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,o,e.CLCM,e.CBCM,r,{b:/[{,]\s*/,r:0,c:[{b:t+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:t,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+t+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:t},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:n,c:i}]}]},{cN:"",b:/\s/,e:/\s*/,skip:!0},{b:/</,e:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,sL:"xml",c:[{b:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{b:/<[A-Za-z0-9\\._:-]+/,e:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,c:[{b:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:t}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:i}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor get set",e:/\{/,eE:!0}],i:/#(?!!)/}}),hljs.registerLanguage("plaintext",function(e){return{disableAutodetect:!0}}),hljs.registerLanguage("scss",function(e){var t={cN:"variable",b:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={cN:"number",b:"#[0-9A-Fa-f]+"};return e.CSSNM,e.QSM,e.ASM,e.CBCM,{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{b:":",e:";",c:[t,n,e.CSSNM,e.QSM,e.ASM,{cN:"meta",b:"!important"}]},{b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[t,e.QSM,e.ASM,n,e.CSSNM,{b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}}),hljs.registerLanguage("xml",function(e){var t={eW:!0,i:/</,r:0,c:[{cN:"attr",b:"[A-Za-z0-9\\._:-]+",r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("\x3c!--","--\x3e",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"meta",b:/<\?xml/,e:/\?>/,r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0},{b:'b"',e:'"',skip:!0},{b:"b'",e:"'",skip:!0},e.inherit(e.ASM,{i:null,cN:null,c:null,skip:!0}),e.inherit(e.QSM,{i:null,cN:null,c:null,skip:!0})]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[t],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[t],starts:{e:"<\/script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}}),hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^\\s*([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}|\t)",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}}),hljs.registerLanguage("makefile",function(e){var t={cN:"variable",v:[{b:"\\$\\("+e.UIR+"\\)",c:[e.BE]},{b:/\$[@%<?\^\+\*]/}]},n={cN:"string",b:/"/,e:/"/,c:[e.BE,t]},r={b:"^"+e.UIR+"\\s*[:+?]?=",i:"\\n",rB:!0,c:[{b:"^"+e.UIR,e:"[:+?]?=",eE:!0}]};return{aliases:["mk","mak"],k:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath",l:/[\w-]+/,c:[e.HCM,t,n,{cN:"variable",b:/\$\([\w-]+\s/,e:/\)/,k:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},c:[t]},r,{cN:"meta",b:/^\.PHONY:/,e:/$/,k:{"meta-keyword":".PHONY"},l:/[\.\w]+/},{cN:"section",b:/^[^\s]+:/,e:/$/,c:[t]}]}}),hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},n={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,n,{cN:"",b:/\\"/},{cN:"string",b:/'/,e:/'/},t]}}),hljs.registerLanguage("typescript",function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},r={cN:"meta",b:"@"+t},i={b:"\\(",e:/\)/,k:n,c:["self",e.QSM,e.ASM,e.NM]},o={cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:n,c:[e.CLCM,e.CBCM,r,i]};return{aliases:["ts"],k:n,c:[{cN:"meta",b:/^\s*['"]use strict['"]/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+e.IR+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:e.IR},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:n,c:["self",e.CLCM,e.CBCM]}]}]}],r:0},{cN:"function",b:"function",e:/[\{;]/,eE:!0,k:n,c:["self",e.inherit(e.TM,{b:t}),o],i:/%/,r:0},{bK:"constructor",e:/\{/,eE:!0,c:["self",o]},{b:/module\./,k:{built_in:"module"},r:0},{bK:"module",e:/\{/,eE:!0},{bK:"interface",e:/\{/,eE:!0,k:"interface extends"},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},r,i]}}),hljs.registerLanguage("powershell",function(e){var t={b:"`[\\s\\S]",r:0},n={cN:"variable",v:[{b:/\$[\w\d][\w\d_:]*/}]},r={cN:"string",v:[{b:/"/,e:/"/},{b:/@"/,e:/^"@/}],c:[t,n,{cN:"variable",b:/\$[A-z]/,e:/[^A-z]/}]},i=e.inherit(e.C(null,null),{v:[{b:/#/,e:/$/},{b:/<#/,e:/#>/}],c:[{cN:"doctag",v:[{b:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{b:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]});return{aliases:["ps"],l:/-?[A-z\.\-]+/,cI:!0,k:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catchValidateNoCircleInNodeResources ValidateNodeExclusiveResources ValidateNodeManager ValidateNodeResources ValidateNodeResourceSource ValidateNoNameNodeResources ThrowError IsHiddenResourceIsPatternMatched ",built_in:"Add-Computer Add-Content Add-History Add-JobTrigger Add-Member Add-PSSnapin Add-Type Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession Connect-WSMan Convert-Path ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString ConvertTo-Xml Copy-Item Copy-ItemProperty Debug-Process Disable-ComputerRestore Disable-JobTrigger Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration Enable-ScheduledJob Enable-WSManCredSSP Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter Export-Csv Export-FormatData Export-ModuleMember Export-PSSession ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Host Get-HotFix Get-Help Get-History Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-ScheduledJob Get-ScheduledJobOption Get-Service Get-TraceSource Get-Transaction Get-TypeData Get-UICulture Get-Unique Get-Variable Get-Verb Get-WinEvent Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet Import-LocalizedData Import-PSSession Import-Module Invoke-AsWorkflow Invoke-Command Invoke-Expression Invoke-History Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod Invoke-WSManAction Join-Path Limit-EventLog Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Event New-EventLog New-IseSnippet New-Item New-ItemProperty New-JobTrigger New-Object New-Module New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption New-PSWorkflowExecutionOption New-PSWorkflowSession New-ScheduledJobOption New-Service New-TimeSpan New-Variable New-WebServiceProxy New-WinEvent New-WSManInstance New-WSManSessionOption Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob Register-WmiEvent Remove-Computer Remove-Event Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-JobTrigger Remove-Module Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData Remove-Variable Remove-WmiObject Remove-WSManInstance Rename-Computer Rename-Item Rename-ItemProperty Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service Restore-Computer Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-JobTrigger Set-Location Set-PSBreakpoint Set-PSDebug Set-PSSessionConfiguration Set-ScheduledJob Set-ScheduledJobOption Set-Service Set-StrictMode Set-TraceSource Set-Variable Set-WmiInstance Set-WSManInstance Set-WSManQuickConfig Show-Command Show-ControlPanelItem Show-EventLog Sort-Object Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript Suspend-Job Suspend-Service Tee-Object Test-ComputerSecureChannel Test-Connection Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration Unregister-ScheduledJob Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog Write-Host Write-Output Write-Progress Write-Verbose Write-Warning Add-MDTPersistentDrive Disable-MDTMonitorService Enable-MDTMonitorService Get-MDTDeploymentShareStatistics Get-MDTMonitorData Get-MDTOperatingSystemCatalog Get-MDTPersistentDrive Import-MDTApplication Import-MDTDriver Import-MDTOperatingSystem Import-MDTPackage Import-MDTTaskSequence New-MDTDatabase Remove-MDTMonitorData Remove-MDTPersistentDrive Restore-MDTPersistentDrive Set-MDTMonitorData Test-MDTDeploymentShare Test-MDTMonitorData Update-MDTDatabaseSchema Update-MDTDeploymentShare Update-MDTLinkedDS Update-MDTMedia Add-VamtProductKey Export-VamtData Find-VamtManagedMachine Get-VamtConfirmationId Get-VamtProduct Get-VamtProductKey Import-VamtData Initialize-VamtData Install-VamtConfirmationId Install-VamtProductActivation Install-VamtProductKey Update-VamtProduct Add-CIDatastore Add-KeyManagementServer Add-NodeKeys Add-NsxDynamicCriteria Add-NsxDynamicMemberSet Add-NsxEdgeInterfaceAddress Add-NsxFirewallExclusionListMember Add-NsxFirewallRuleMember Add-NsxIpSetMember Add-NsxLicense Add-NsxLoadBalancerPoolMember Add-NsxLoadBalancerVip Add-NsxSecondaryManager Add-NsxSecurityGroupMember Add-NsxSecurityPolicyRule Add-NsxSecurityPolicyRuleGroup Add-NsxSecurityPolicyRuleService Add-NsxServiceGroupMember Add-NsxTransportZoneMember Add-PassthroughDevice Add-VDSwitchPhysicalNetworkAdapter Add-VDSwitchVMHost Add-VMHost Add-VMHostNtpServer Add-VirtualSwitchPhysicalNetworkAdapter Add-XmlElement Add-vRACustomForm Add-vRAPrincipalToTenantRole Add-vRAReservationNetwork Add-vRAReservationStorage Clear-NsxEdgeInterface Clear-NsxManagerTimeSettings Compress-Archive Connect-CIServer Connect-CisServer Connect-HCXServer Connect-NIServer Connect-NsxLogicalSwitch Connect-NsxServer Connect-NsxtServer Connect-SrmServer Connect-VIServer Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge Copy-VDisk Copy-VMGuestFile Debug-Runspace Disable-NsxEdgeSsh Disable-RunspaceDebug Disable-vRNIDataSource Disconnect-CIServer Disconnect-CisServer Disconnect-HCXServer Disconnect-NsxLogicalSwitch Disconnect-NsxServer Disconnect-NsxtServer Disconnect-SrmServer Disconnect-VIServer Disconnect-Vmc Disconnect-vRAServer Disconnect-vRNIServer Dismount-Tools Enable-NsxEdgeSsh Enable-RunspaceDebug Enable-vRNIDataSource Expand-Archive Export-NsxObject Export-SpbmStoragePolicy Export-VApp Export-VDPortGroup Export-VDSwitch Export-VMHostProfile Export-vRAIcon Export-vRAPackage Find-Command Find-DscResource Find-Module Find-NsxWhereVMUsed Find-Package Find-PackageProvider Find-RoleCapability Find-Script Format-Hex Format-VMHostDiskPartition Format-XML Generate-VersionInfo Get-AdvancedSetting Get-AlarmAction Get-AlarmActionTrigger Get-AlarmDefinition Get-Annotation Get-CDDrive Get-CIAccessControlRule Get-CIDatastore Get-CINetworkAdapter Get-CIRole Get-CIUser Get-CIVApp Get-CIVAppNetwork Get-CIVAppStartRule Get-CIVAppTemplate Get-CIVM Get-CIVMTemplate Get-CIView Get-Catalog Get-CisCommand Get-CisService Get-CloudCommand Get-Cluster Get-CompatibleVersionAddtionaPropertiesStr Get-ComplexResourceQualifier Get-ConfigurationErrorCount Get-ContentLibraryItem Get-CustomAttribute Get-DSCResourceModules Get-Datacenter Get-Datastore Get-DatastoreCluster Get-DrsClusterGroup Get-DrsRecommendation Get-DrsRule Get-DrsVMHostRule Get-DscResource Get-EdgeGateway Get-EncryptedPassword Get-ErrorReport Get-EsxCli Get-EsxTop Get-ExternalNetwork Get-FileHash Get-FloppyDrive Get-Folder Get-HAPrimaryVMHost Get-HCXAppliance Get-HCXApplianceCompute Get-HCXApplianceDVS Get-HCXApplianceDatastore Get-HCXApplianceNetwork Get-HCXContainer Get-HCXDatastore Get-HCXGateway Get-HCXInterconnectStatus Get-HCXJob Get-HCXMigration Get-HCXNetwork Get-HCXNetworkExtension Get-HCXReplication Get-HCXReplicationSnapshot Get-HCXService Get-HCXSite Get-HCXSitePairing Get-HCXVM Get-HardDisk Get-IScsiHbaTarget Get-InnerMostErrorRecord Get-InstallPath Get-InstalledModule Get-InstalledScript Get-Inventory Get-ItemPropertyValue Get-KeyManagementServer Get-KmipClientCertificate Get-KmsCluster Get-Log Get-LogType Get-MarkdownOption Get-Media Get-MofInstanceName Get-MofInstanceText Get-NetworkAdapter Get-NetworkPool Get-NfsUser Get-NicTeamingPolicy Get-NsxApplicableMember Get-NsxApplicableSecurityAction Get-NsxBackingDVSwitch Get-NsxBackingPortGroup Get-NsxCliDfwAddrSet Get-NsxCliDfwFilter Get-NsxCliDfwRule Get-NsxClusterStatus Get-NsxController Get-NsxDynamicCriteria Get-NsxDynamicMemberSet Get-NsxEdge Get-NsxEdgeBgp Get-NsxEdgeBgpNeighbour Get-NsxEdgeCertificate Get-NsxEdgeCsr Get-NsxEdgeFirewall Get-NsxEdgeFirewallRule Get-NsxEdgeInterface Get-NsxEdgeInterfaceAddress Get-NsxEdgeNat Get-NsxEdgeNatRule Get-NsxEdgeOspf Get-NsxEdgeOspfArea Get-NsxEdgeOspfInterface Get-NsxEdgePrefix Get-NsxEdgeRedistributionRule Get-NsxEdgeRouting Get-NsxEdgeStaticRoute Get-NsxEdgeSubInterface Get-NsxFirewallExclusionListMember Get-NsxFirewallGlobalConfiguration Get-NsxFirewallPublishStatus Get-NsxFirewallRule Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer Get-NsxLoadBalancerApplicationProfile Get-NsxLoadBalancerApplicationRule Get-NsxLoadBalancerMonitor Get-NsxLoadBalancerPool Get-NsxLoadBalancerPoolMember Get-NsxLoadBalancerStats Get-NsxLoadBalancerVip Get-NsxLogicalRouter Get-NsxLogicalRouterBgp Get-NsxLogicalRouterBgpNeighbour Get-NsxLogicalRouterBridge Get-NsxLogicalRouterBridging Get-NsxLogicalRouterInterface Get-NsxLogicalRouterOspf Get-NsxLogicalRouterOspfArea Get-NsxLogicalRouterOspfInterface Get-NsxLogicalRouterPrefix Get-NsxLogicalRouterRedistributionRule Get-NsxLogicalRouterRouting Get-NsxLogicalRouterStaticRoute Get-NsxLogicalSwitch Get-NsxMacSet Get-NsxManagerBackup Get-NsxManagerCertificate Get-NsxManagerComponentSummary Get-NsxManagerNetwork Get-NsxManagerRole Get-NsxManagerSsoConfig Get-NsxManagerSyncStatus Get-NsxManagerSyslogServer Get-NsxManagerSystemSummary Get-NsxManagerTimeSettings Get-NsxManagerVcenterConfig Get-NsxSecondaryManager Get-NsxSecurityGroup Get-NsxSecurityGroupEffectiveIpAddress Get-NsxSecurityGroupEffectiveMacAddress Get-NsxSecurityGroupEffectiveMember Get-NsxSecurityGroupEffectiveVirtualMachine Get-NsxSecurityGroupEffectiveVnic Get-NsxSecurityGroupMemberTypes Get-NsxSecurityPolicy Get-NsxSecurityPolicyHighestUsedPrecedence Get-NsxSecurityPolicyRule Get-NsxSecurityTag Get-NsxSecurityTagAssignment Get-NsxSegmentIdRange Get-NsxService Get-NsxServiceDefinition Get-NsxServiceGroup Get-NsxServiceGroupMember Get-NsxServiceProfile Get-NsxSpoofguardNic Get-NsxSpoofguardPolicy Get-NsxSslVpn Get-NsxSslVpnAuthServer Get-NsxSslVpnClientInstallationPackage Get-NsxSslVpnIpPool Get-NsxSslVpnPrivateNetwork Get-NsxSslVpnUser Get-NsxTransportZone Get-NsxUserRole Get-NsxVdsContext Get-NsxtPolicyService Get-NsxtService Get-OSCustomizationNicMapping Get-OSCustomizationSpec Get-Org Get-OrgNetwork Get-OrgVdc Get-OrgVdcNetwork Get-OvfConfiguration Get-PSCurrentConfigurationNode Get-PSDefaultConfigurationDocument Get-PSMetaConfigDocumentInstVersionInfo Get-PSMetaConfigurationProcessed Get-PSReadLineKeyHandler Get-PSReadLineOption Get-PSRepository Get-PSTopConfigurationName Get-PSVersion Get-Package Get-PackageProvider Get-PackageSource Get-PassthroughDevice Get-PositionInfo Get-PowerCLICommunity Get-PowerCLIConfiguration Get-PowerCLIHelp Get-PowerCLIVersion Get-PowerNsxVersion Get-ProviderVdc Get-PublicKeyFromFile Get-PublicKeyFromStore Get-ResourcePool Get-Runspace Get-RunspaceDebug Get-ScsiController Get-ScsiLun Get-ScsiLunPath Get-SecurityInfo Get-SecurityPolicy Get-Snapshot Get-SpbmCapability Get-SpbmCompatibleStorage Get-SpbmEntityConfiguration Get-SpbmFaultDomain Get-SpbmPointInTimeReplica Get-SpbmReplicationGroup Get-SpbmReplicationPair Get-SpbmStoragePolicy Get-Stat Get-StatInterval Get-StatType Get-Tag Get-TagAssignment Get-TagCategory Get-Task Get-Template Get-TimeZone Get-Uptime Get-UsbDevice Get-VAIOFilter Get-VApp Get-VDBlockedPolicy Get-VDPort Get-VDPortgroup Get-VDPortgroupOverridePolicy Get-VDSecurityPolicy Get-VDSwitch Get-VDSwitchPrivateVlan Get-VDTrafficShapingPolicy Get-VDUplinkLacpPolicy Get-VDUplinkTeamingPolicy Get-VDisk Get-VIAccount Get-VICommand Get-VICredentialStoreItem Get-VIEvent Get-VIObjectByVIView Get-VIPermission Get-VIPrivilege Get-VIProperty Get-VIRole Get-VM Get-VMGuest Get-VMHost Get-VMHostAccount Get-VMHostAdvancedConfiguration Get-VMHostAuthentication Get-VMHostAvailableTimeZone Get-VMHostDiagnosticPartition Get-VMHostDisk Get-VMHostDiskPartition Get-VMHostFirewallDefaultPolicy Get-VMHostFirewallException Get-VMHostFirmware Get-VMHostHardware Get-VMHostHba Get-VMHostModule Get-VMHostNetwork Get-VMHostNetworkAdapter Get-VMHostNtpServer Get-VMHostPatch Get-VMHostPciDevice Get-VMHostProfile Get-VMHostProfileImageCacheConfiguration Get-VMHostProfileRequiredInput Get-VMHostProfileStorageDeviceConfiguration Get-VMHostProfileUserConfiguration Get-VMHostProfileVmPortGroupConfiguration Get-VMHostRoute Get-VMHostService Get-VMHostSnmp Get-VMHostStartPolicy Get-VMHostStorage Get-VMHostSysLogServer Get-VMQuestion Get-VMResourceConfiguration Get-VMStartPolicy Get-VTpm Get-VTpmCSR Get-VTpmCertificate Get-VasaProvider Get-VasaStorageArray Get-View Get-VirtualPortGroup Get-VirtualSwitch Get-VmcSddcNetworkService Get-VmcService Get-VsanClusterConfiguration Get-VsanComponent Get-VsanDisk Get-VsanDiskGroup Get-VsanEvacuationPlan Get-VsanFaultDomain Get-VsanIscsiInitiatorGroup Get-VsanIscsiInitiatorGroupTargetAssociation Get-VsanIscsiLun Get-VsanIscsiTarget Get-VsanObject Get-VsanResyncingComponent Get-VsanRuntimeInfo Get-VsanSpaceUsage Get-VsanStat Get-VsanView Get-vRAApplianceServiceStatus Get-vRAAuthorizationRole Get-vRABlueprint Get-vRABusinessGroup Get-vRACatalogItem Get-vRACatalogItemRequestTemplate Get-vRACatalogPrincipal Get-vRAComponentRegistryService Get-vRAComponentRegistryServiceEndpoint Get-vRAComponentRegistryServiceStatus Get-vRAContent Get-vRAContentData Get-vRAContentType Get-vRACustomForm Get-vRAEntitledCatalogItem Get-vRAEntitledService Get-vRAEntitlement Get-vRAExternalNetworkProfile Get-vRAGroupPrincipal Get-vRAIcon Get-vRANATNetworkProfile Get-vRANetworkProfileIPAddressList Get-vRANetworkProfileIPRangeSummary Get-vRAPackage Get-vRAPackageContent Get-vRAPropertyDefinition Get-vRAPropertyGroup Get-vRARequest Get-vRARequestDetail Get-vRAReservation Get-vRAReservationComputeResource Get-vRAReservationComputeResourceMemory Get-vRAReservationComputeResourceNetwork Get-vRAReservationComputeResourceResourcePool Get-vRAReservationComputeResourceStorage Get-vRAReservationPolicy Get-vRAReservationTemplate Get-vRAReservationType Get-vRAResource Get-vRAResourceAction Get-vRAResourceActionRequestTemplate Get-vRAResourceMetric Get-vRAResourceOperation Get-vRAResourceType Get-vRARoutedNetworkProfile Get-vRAService Get-vRAServiceBlueprint Get-vRASourceMachine Get-vRAStorageReservationPolicy Get-vRATenant Get-vRATenantDirectory Get-vRATenantDirectoryStatus Get-vRATenantRole Get-vRAUserPrincipal Get-vRAUserPrincipalGroupMembership Get-vRAVersion Get-vRNIAPIVersion Get-vRNIApplication Get-vRNIApplicationTier Get-vRNIDataSource Get-vRNIDataSourceSNMPConfig Get-vRNIDatastore Get-vRNIDistributedSwitch Get-vRNIDistributedSwitchPortGroup Get-vRNIEntity Get-vRNIEntityName Get-vRNIFirewallRule Get-vRNIFlow Get-vRNIHost Get-vRNIHostVMKNic Get-vRNIIPSet Get-vRNIL2Network Get-vRNINSXManager Get-vRNINodes Get-vRNIProblem Get-vRNIRecommendedRules Get-vRNIRecommendedRulesNsxBundle Get-vRNISecurityGroup Get-vRNISecurityTag Get-vRNIService Get-vRNIServiceGroup Get-vRNIVM Get-vRNIVMvNIC Get-vRNIvCenter Get-vRNIvCenterCluster Get-vRNIvCenterDatacenter Get-vRNIvCenterFolder Grant-NsxSpoofguardNicApproval Import-CIVApp Import-CIVAppTemplate Import-NsxObject Import-PackageProvider Import-PowerShellDataFile Import-SpbmStoragePolicy Import-VApp Import-VMHostProfile Import-vRAContentData Import-vRAIcon Import-vRAPackage Initialize-ConfigurationRuntimeState Install-Module Install-NsxCluster Install-Package Install-PackageProvider Install-Script Install-VMHostPatch Invoke-DrsRecommendation Invoke-NsxCli Invoke-NsxClusterResolveAll Invoke-NsxManagerSync Invoke-NsxRestMethod Invoke-NsxWebRequest Invoke-VMHostProfile Invoke-VMScript Invoke-XpathQuery Invoke-vRADataCollection Invoke-vRARestMethod Invoke-vRATenantDirectorySync Invoke-vRNIRestMethod Join-String Mount-Tools Move-Cluster Move-Datacenter Move-Datastore Move-Folder Move-HardDisk Move-Inventory Move-NsxSecurityPolicyRule Move-ResourcePool Move-Template Move-VApp Move-VDisk Move-VM Move-VMHost New-AdvancedSetting New-AlarmAction New-AlarmActionTrigger New-CDDrive New-CIAccessControlRule New-CIVApp New-CIVAppNetwork New-CIVAppTemplate New-CIVM New-Cluster New-CustomAttribute New-Datacenter New-Datastore New-DatastoreCluster New-DatastoreDrive New-DrsClusterGroup New-DrsRule New-DrsVMHostRule New-DscChecksum New-FloppyDrive New-Folder New-Guid New-HCXAppliance New-HCXMigration New-HCXNetworkExtension New-HCXNetworkMapping New-HCXReplication New-HCXSitePairing New-HCXStaticRoute New-HardDisk New-IScsiHbaTarget New-KmipClientCertificate New-NetworkAdapter New-NfsUser New-NsxAddressSpec New-NsxClusterVxlanConfig New-NsxController New-NsxDynamicCriteriaSpec New-NsxEdge New-NsxEdgeBgpNeighbour New-NsxEdgeCsr New-NsxEdgeFirewallRule New-NsxEdgeInterfaceSpec New-NsxEdgeNatRule New-NsxEdgeOspfArea New-NsxEdgeOspfInterface New-NsxEdgePrefix New-NsxEdgeRedistributionRule New-NsxEdgeSelfSignedCertificate New-NsxEdgeStaticRoute New-NsxEdgeSubInterface New-NsxEdgeSubInterfaceSpec New-NsxFirewallRule New-NsxFirewallSavedConfiguration New-NsxFirewallSection New-NsxIpPool New-NsxIpSet New-NsxLoadBalancerApplicationProfile New-NsxLoadBalancerApplicationRule New-NsxLoadBalancerMemberSpec New-NsxLoadBalancerMonitor New-NsxLoadBalancerPool New-NsxLogicalRouter New-NsxLogicalRouterBgpNeighbour New-NsxLogicalRouterBridge New-NsxLogicalRouterInterface New-NsxLogicalRouterInterfaceSpec New-NsxLogicalRouterOspfArea New-NsxLogicalRouterOspfInterface New-NsxLogicalRouterPrefix New-NsxLogicalRouterRedistributionRule New-NsxLogicalRouterStaticRoute New-NsxLogicalSwitch New-NsxMacSet New-NsxManager New-NsxSecurityGroup New-NsxSecurityPolicy New-NsxSecurityPolicyAssignment New-NsxSecurityPolicyFirewallRuleSpec New-NsxSecurityPolicyGuestIntrospectionSpec New-NsxSecurityPolicyNetworkIntrospectionSpec New-NsxSecurityTag New-NsxSecurityTagAssignment New-NsxSegmentIdRange New-NsxService New-NsxServiceGroup New-NsxSpoofguardPolicy New-NsxSslVpnAuthServer New-NsxSslVpnClientInstallationPackage New-NsxSslVpnIpPool New-NsxSslVpnPrivateNetwork New-NsxSslVpnUser New-NsxTransportZone New-NsxVdsContext New-OSCustomizationNicMapping New-OSCustomizationSpec New-Org New-OrgNetwork New-OrgVdc New-OrgVdcNetwork New-ResourcePool New-ScriptFileInfo New-ScsiController New-Snapshot New-SpbmRule New-SpbmRuleSet New-SpbmStoragePolicy New-StatInterval New-Tag New-TagAssignment New-TagCategory New-Template New-TemporaryFile New-VAIOFilter New-VApp New-VDPortgroup New-VDSwitch New-VDSwitchPrivateVlan New-VDisk New-VICredentialStoreItem New-VIInventoryDrive New-VIPermission New-VIProperty New-VIRole New-VISamlSecurityContext New-VM New-VMHostAccount New-VMHostNetworkAdapter New-VMHostProfile New-VMHostProfileVmPortGroupConfiguration New-VMHostRoute New-VTpm New-VasaProvider New-VcsOAuthSecurityContext New-VirtualPortGroup New-VirtualSwitch New-VsanDisk New-VsanDiskGroup New-VsanFaultDomain New-VsanIscsiInitiatorGroup New-VsanIscsiInitiatorGroupTargetAssociation New-VsanIscsiLun New-VsanIscsiTarget New-vRABusinessGroup New-vRAEntitlement New-vRAExternalNetworkProfile New-vRAGroupPrincipal New-vRANATNetworkProfile New-vRANetworkProfileIPRangeDefinition New-vRAPackage New-vRAPropertyDefinition New-vRAPropertyGroup New-vRAReservation New-vRAReservationNetworkDefinition New-vRAReservationPolicy New-vRAReservationStorageDefinition New-vRARoutedNetworkProfile New-vRAService New-vRAStorageReservationPolicy New-vRATenant New-vRATenantDirectory New-vRAUserPrincipal New-vRNIApplication New-vRNIApplicationTier New-vRNIDataSource Open-VMConsoleWindow Publish-Module Publish-NsxSpoofguardPolicy Publish-Script Register-PSRepository Register-PackageSource Remove-AdvancedSetting Remove-AlarmAction Remove-AlarmActionTrigger Remove-Alias Remove-CDDrive Remove-CIAccessControlRule Remove-CIVApp Remove-CIVAppNetwork Remove-CIVAppTemplate Remove-Cluster Remove-CustomAttribute Remove-Datacenter Remove-Datastore Remove-DatastoreCluster Remove-DrsClusterGroup Remove-DrsRule Remove-DrsVMHostRule Remove-FloppyDrive Remove-Folder Remove-HCXAppliance Remove-HCXNetworkExtension Remove-HCXReplication Remove-HCXSitePairing Remove-HardDisk Remove-IScsiHbaTarget Remove-Inventory Remove-KeyManagementServer Remove-NetworkAdapter Remove-NfsUser Remove-NsxCluster Remove-NsxClusterVxlanConfig Remove-NsxController Remove-NsxDynamicCriteria Remove-NsxDynamicMemberSet Remove-NsxEdge Remove-NsxEdgeBgpNeighbour Remove-NsxEdgeCertificate Remove-NsxEdgeCsr Remove-NsxEdgeFirewallRule Remove-NsxEdgeInterfaceAddress Remove-NsxEdgeNatRule Remove-NsxEdgeOspfArea Remove-NsxEdgeOspfInterface Remove-NsxEdgePrefix Remove-NsxEdgeRedistributionRule Remove-NsxEdgeStaticRoute Remove-NsxEdgeSubInterface Remove-NsxFirewallExclusionListMember Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember Remove-NsxLoadBalancerApplicationProfile Remove-NsxLoadBalancerMonitor Remove-NsxLoadBalancerPool Remove-NsxLoadBalancerPoolMember Remove-NsxLoadBalancerVip Remove-NsxLogicalRouter Remove-NsxLogicalRouterBgpNeighbour Remove-NsxLogicalRouterBridge Remove-NsxLogicalRouterInterface Remove-NsxLogicalRouterOspfArea Remove-NsxLogicalRouterOspfInterface Remove-NsxLogicalRouterPrefix Remove-NsxLogicalRouterRedistributionRule Remove-NsxLogicalRouterStaticRoute Remove-NsxLogicalSwitch Remove-NsxMacSet Remove-NsxSecondaryManager Remove-NsxSecurityGroup Remove-NsxSecurityGroupMember Remove-NsxSecurityPolicy Remove-NsxSecurityPolicyAssignment Remove-NsxSecurityPolicyRule Remove-NsxSecurityPolicyRuleGroup Remove-NsxSecurityPolicyRuleService Remove-NsxSecurityTag Remove-NsxSecurityTagAssignment Remove-NsxSegmentIdRange Remove-NsxService Remove-NsxServiceGroup Remove-NsxSpoofguardPolicy Remove-NsxSslVpnClientInstallationPackage Remove-NsxSslVpnIpPool Remove-NsxSslVpnPrivateNetwork Remove-NsxSslVpnUser Remove-NsxTransportZone Remove-NsxTransportZoneMember Remove-NsxVdsContext Remove-OSCustomizationNicMapping Remove-OSCustomizationSpec Remove-Org Remove-OrgNetwork Remove-OrgVdc Remove-OrgVdcNetwork Remove-PSReadLineKeyHandler Remove-PassthroughDevice Remove-ResourcePool Remove-Snapshot Remove-SpbmStoragePolicy Remove-StatInterval Remove-Tag Remove-TagAssignment Remove-TagCategory Remove-Template Remove-UsbDevice Remove-VAIOFilter Remove-VApp Remove-VDPortGroup Remove-VDSwitch Remove-VDSwitchPhysicalNetworkAdapter Remove-VDSwitchPrivateVlan Remove-VDSwitchVMHost Remove-VDisk Remove-VICredentialStoreItem Remove-VIPermission Remove-VIProperty Remove-VIRole Remove-VM Remove-VMHost Remove-VMHostAccount Remove-VMHostNetworkAdapter Remove-VMHostNtpServer Remove-VMHostProfile Remove-VMHostProfileVmPortGroupConfiguration Remove-VMHostRoute Remove-VTpm Remove-VasaProvider Remove-VirtualPortGroup Remove-VirtualSwitch Remove-VirtualSwitchPhysicalNetworkAdapter Remove-VsanDisk Remove-VsanDiskGroup Remove-VsanFaultDomain Remove-VsanIscsiInitiatorGroup Remove-VsanIscsiInitiatorGroupTargetAssociation Remove-VsanIscsiLun Remove-VsanIscsiTarget Remove-vRABusinessGroup Remove-vRACustomForm Remove-vRAExternalNetworkProfile Remove-vRAGroupPrincipal Remove-vRAIcon Remove-vRANATNetworkProfile Remove-vRAPackage Remove-vRAPrincipalFromTenantRole Remove-vRAPropertyDefinition Remove-vRAPropertyGroup Remove-vRAReservation Remove-vRAReservationNetwork Remove-vRAReservationPolicy Remove-vRAReservationStorage Remove-vRARoutedNetworkProfile Remove-vRAService Remove-vRAStorageReservationPolicy Remove-vRATenant Remove-vRATenantDirectory Remove-vRAUserPrincipal Remove-vRNIApplication Remove-vRNIApplicationTier Remove-vRNIDataSource Repair-NsxEdge Repair-VsanObject Request-vRACatalogItem Request-vRAResourceAction Restart-CIVApp Restart-CIVAppGuest Restart-CIVM Restart-CIVMGuest Restart-VM Restart-VMGuest Restart-VMHost Restart-VMHostService Resume-HCXReplication Revoke-NsxSpoofguardNicApproval Save-Module Save-Package Save-Script Search-Cloud Set-AdvancedSetting Set-AlarmDefinition Set-Annotation Set-CDDrive Set-CIAccessControlRule Set-CINetworkAdapter Set-CIVApp Set-CIVAppNetwork Set-CIVAppStartRule Set-CIVAppTemplate Set-Cluster Set-CustomAttribute Set-Datacenter Set-Datastore Set-DatastoreCluster Set-DrsClusterGroup Set-DrsRule Set-DrsVMHostRule Set-FloppyDrive Set-Folder Set-HCXAppliance Set-HCXMigration Set-HCXReplication Set-HardDisk Set-IScsiHbaTarget Set-KeyManagementServer Set-KmsCluster Set-MarkdownOption Set-NetworkAdapter Set-NfsUser Set-NicTeamingPolicy Set-NodeExclusiveResources Set-NodeManager Set-NodeResourceSource Set-NodeResources Set-NsxEdge Set-NsxEdgeBgp Set-NsxEdgeFirewall Set-NsxEdgeInterface Set-NsxEdgeNat Set-NsxEdgeOspf Set-NsxEdgeRouting Set-NsxFirewallGlobalConfiguration Set-NsxFirewallRule Set-NsxFirewallSavedConfiguration Set-NsxFirewallThreshold Set-NsxLoadBalancer Set-NsxLoadBalancerPoolMember Set-NsxLogicalRouter Set-NsxLogicalRouterBgp Set-NsxLogicalRouterBridging Set-NsxLogicalRouterInterface Set-NsxLogicalRouterOspf Set-NsxLogicalRouterRouting Set-NsxManager Set-NsxManagerRole Set-NsxManagerTimeSettings Set-NsxSecurityPolicy Set-NsxSecurityPolicyFirewallRule Set-NsxSslVpn Set-OSCustomizationNicMapping Set-OSCustomizationSpec Set-Org Set-OrgNetwork Set-OrgVdc Set-OrgVdcNetwork Set-PSCurrentConfigurationNode Set-PSDefaultConfigurationDocument Set-PSMetaConfigDocInsProcessedBeforeMeta Set-PSMetaConfigVersionInfoV2 Set-PSReadLineKeyHandler Set-PSReadLineOption Set-PSRepository Set-PSTopConfigurationName Set-PackageSource Set-PowerCLIConfiguration Set-ResourcePool Set-ScsiController Set-ScsiLun Set-ScsiLunPath Set-SecurityPolicy Set-Snapshot Set-SpbmEntityConfiguration Set-SpbmStoragePolicy Set-StatInterval Set-Tag Set-TagCategory Set-Template Set-VAIOFilter Set-VApp Set-VDBlockedPolicy Set-VDPort Set-VDPortgroup Set-VDPortgroupOverridePolicy Set-VDSecurityPolicy Set-VDSwitch Set-VDTrafficShapingPolicy Set-VDUplinkLacpPolicy Set-VDUplinkTeamingPolicy Set-VDVlanConfiguration Set-VDisk Set-VIPermission Set-VIRole Set-VM Set-VMHost Set-VMHostAccount Set-VMHostAdvancedConfiguration Set-VMHostAuthentication Set-VMHostDiagnosticPartition Set-VMHostFirewallDefaultPolicy Set-VMHostFirewallException Set-VMHostFirmware Set-VMHostHba Set-VMHostModule Set-VMHostNetwork Set-VMHostNetworkAdapter Set-VMHostProfile Set-VMHostProfileImageCacheConfiguration Set-VMHostProfileStorageDeviceConfiguration Set-VMHostProfileUserConfiguration Set-VMHostProfileVmPortGroupConfiguration Set-VMHostRoute Set-VMHostService Set-VMHostSnmp Set-VMHostStartPolicy Set-VMHostStorage Set-VMHostSysLogServer Set-VMQuestion Set-VMResourceConfiguration Set-VMStartPolicy Set-VTpm Set-VirtualPortGroup Set-VirtualSwitch Set-VsanClusterConfiguration Set-VsanFaultDomain Set-VsanIscsiInitiatorGroup Set-VsanIscsiLun Set-VsanIscsiTarget Set-vRABusinessGroup Set-vRACatalogItem Set-vRACustomForm Set-vRAEntitlement Set-vRAExternalNetworkProfile Set-vRANATNetworkProfile Set-vRAReservation Set-vRAReservationNetwork Set-vRAReservationPolicy Set-vRAReservationStorage Set-vRARoutedNetworkProfile Set-vRAService Set-vRAStorageReservationPolicy Set-vRATenant Set-vRATenantDirectory Set-vRAUserPrincipal Set-vRNIDataSourceSNMPConfig Show-Markdown Start-CIVApp Start-CIVM Start-HCXMigration Start-HCXReplication Start-SpbmReplicationFailover Start-SpbmReplicationPrepareFailover Start-SpbmReplicationPromote Start-SpbmReplicationReverse Start-SpbmReplicationTestFailover Start-ThreadJob Start-VApp Start-VM Start-VMHost Start-VMHostService Start-VsanClusterDiskUpdate Start-VsanClusterRebalance Start-VsanEncryptionConfiguration Stop-CIVApp Stop-CIVAppGuest Stop-CIVM Stop-CIVMGuest Stop-SpbmReplicationTestFailover Stop-Task Stop-VApp Stop-VM Stop-VMGuest Stop-VMHost Stop-VMHostService Stop-VsanClusterRebalance Suspend-CIVApp Suspend-CIVM Suspend-HCXReplication Suspend-VM Suspend-VMGuest Suspend-VMHost Sync-SpbmReplicationGroup Test-ConflictingResources Test-HCXMigration Test-HCXReplication Test-Json Test-ModuleReloadRequired Test-MofInstanceText Test-NodeManager Test-NodeResourceSource Test-NodeResources Test-ScriptFileInfo Test-VMHostProfileCompliance Test-VMHostSnmp Test-VsanClusterHealth Test-VsanNetworkPerformance Test-VsanStoragePerformance Test-VsanVMCreation Test-vRAPackage Uninstall-Module Uninstall-Package Uninstall-Script Unlock-VM Unregister-PSRepository Unregister-PackageSource Update-ConfigurationDocumentRef Update-ConfigurationErrorCount Update-DependsOn Update-LocalConfigManager Update-Module Update-ModuleManifest Update-ModuleVersion Update-PowerNsx Update-Script Update-ScriptFileInfo Update-Tools Update-VsanHclDatabase ValidateUpdate-ConfigurationData Wait-Debugger Wait-NsxControllerJob Wait-NsxGenericJob Wait-NsxJob Wait-Task Wait-Tools Write-Information Write-Log Write-MetaConfigFile Write-NodeMOFFile",nomarkup:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[t,e.NM,r,{cN:"string",v:[{b:/'/,e:/'/},{b:/@'/,e:/^'@/}]},{cN:"literal",b:/\$(null|true|false)\b/},n,i]}}),hljs.registerLanguage("css",function(e){var t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:"[a-zA-Z-][a-zA-Z0-9_-]*",r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}}),!function(e){function o(e,t,n,r,i){this._listener=t,this._isOnce=n,this.context=r,this._signal=e,this._priority=i||0}function r(e,t){if("function"!=typeof e)throw Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function t(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}}t.prototype={VERSION:"1.0.0",memorize:!(o.prototype={active:!0,params:null,execute:function(e){var t;return this.active&&this._listener&&(e=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,e),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}),_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,r){var i=this._indexOfListener(e,n);if(-1!==i){if((e=this._bindings[i]).isOnce()!==t)throw Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without removing the relationship first.")}else e=new o(this,e,t,n,r),this._addBinding(e);return this.memorize&&this._prevParams&&e.execute(this._prevParams),e},_addBinding:function(e){for(var t=this._bindings.length;this._bindings[--t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return r(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return r(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){r(e,"remove");t=this._indexOfListener(e,t);return-1!==t&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),r=this._bindings.length;if(this.memorize&&(this._prevParams=n),r)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--r]&&this._shouldPropagate&&!1!==t[r].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var n=t;n.Signal=t,"function"==typeof define&&define.amd?define(function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:e.signals=n}(this),!function(){var e=function(e){var r,i,o,a,s,l,t,n,c,u,d;function f(e){return String(e||"").replace(/\W/g,"\\$&")}function p(e){var t;return e?(t=new RegExp("^"+f(i.prependHash)+"|"+f(i.appendHash)+"$","g"),e.replace(t,"")):""}function h(){var e=n.exec(i.getURL()),e=e&&e[1]||"";try{return i.raw?e:decodeURIComponent(e)}catch(t){return e}}function m(e){var t;o!==e&&(t=o,o=e,i.changed.dispatch(p(e),p(t)))}function g(e){var t=(e=Array.prototype.slice.call(arguments)).join(i.separator);return t=t&&i.prependHash+t.replace(u,"")+i.appendHash}function v(e){return e=encodeURI(e)}return r=window,t=r.document,r.history,e=e.Signal,n=/#(.*)$/,c=/(\?.*)|(\#.*)/,u=/^\#/,d="onhashchange"in r&&7!==t.documentMode,(i={VERSION:"1.2.0",raw:!(l=function(){var e=h();e!==o&&m(e)}),appendHash:"",prependHash:"/",separator:"/",changed:new e,stopped:new e,initialized:new e,init:function(){var e,t,n;s||(o=h(),d?(t="hashchange",n=l,(e=r).addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)):a=setInterval(l,25),s=!0,i.initialized.dispatch(p(o)))},stop:function(){var e,t,n;s&&(d?(t="hashchange",n=l,(e=r).removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)):(clearInterval(a),a=null),s=!1,i.stopped.dispatch(p(o)))},isActive:function(){return s},getURL:function(){return r.location.href},getBaseURL:function(){return i.getURL().replace(c,"")},setHash:function(e){(e=g.apply(null,arguments))!==o&&(m(e),e===o&&(i.raw||(e=v(e)),r.location.hash="#"+e))},replaceHash:function(e){(e=g.apply(null,arguments))!==o&&(m(e),e===o&&(i.raw||(e=v(e)),r.location.replace("#"+e)))},getHash:function(){return p(o)},getHashAsArray:function(){return i.getHash().split(i.separator)},dispose:function(){i.stop(),i.initialized.dispose(),i.stopped.dispose(),i.changed.dispose(),i=r.hasher=null},toString:function(){return'[hasher version="'+i.VERSION+'" hash="'+i.getHash()+'"]'}}).initialized.memorize=!0,i};"function"==typeof define&&define.amd?define(["signals"],e):"object"==typeof exports?module.exports=e(require("signals")):window.hasher=e(window.signals)}(),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){var e=navigator.userAgent,a=navigator.platform,k=/gecko\/\d/i.test(e),t=/MSIE \d/.test(e),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),n=/Edge\/(\d+)/.exec(e),v=t||s||n,y=v&&(t?document.documentMode||6:+(n||s)[1]),w=!n&&/WebKit\//.test(e),t=w&&/Qt\/\d+\.\d+/.test(e),c=!n&&/Chrome\//.test(e),B=/Opera\//.test(e),z=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),j=/PhantomJS/.test(e),f=!n&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),$=/Android/.test(e),U=f||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),q=f||/Mac/.test(a),X=/\bCrOS\b/.test(e),s=/win/i.test(a),n=B&&e.match(/Version\/(\d*\.\d*)/),K=((n=n&&Number(n[1]))&&15<=n&&(w=!(B=!1)),q&&(t||B&&(null==n||n<12.11))),Y=k||v&&9<=y;function Q(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var J=function(e,t){var n,r=e.className,t=Q(t).exec(r);t&&(n=r.slice(t.index+t[0].length),e.className=r.slice(0,t.index)+(n?t[1]+n:""))};function Z(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firstChild);return e}function b(e,t){return Z(e).appendChild(t)}function R(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function ee(e,t,n,r){e=R(e,t,n,r);return e.setAttribute("role","presentation"),e}function te(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if((t=11==t.nodeType?t.host:t)==e)return!0}while(t=t.parentNode)}function ne(){var e;try{e=document.activeElement}catch(l){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function re(e,t){var n=e.className;Q(t).test(n)||(e.className+=(n?" ":"")+t)}function ie(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!Q(n[r]).test(t)&&(t+=" "+n[r]);return t}var oe=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(l){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r},ae=function(e){e.select()};function se(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function le(e,t,n){for(var r in t=t||{},e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function T(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||t<=s)return a+(t-o);a=(a+=s-o)+(n-a%n),o=s+1}}f?ae=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:v&&(ae=function(e){try{e.select()}catch(a){}});var ce=function(){this.id=null};function x(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var ue=30,de={toString:function(){return"CodeMirror.Pass"}},fe={scroll:!(ce.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)})},pe={origin:"*mouse"},he={origin:"+move"};function me(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r),a=(o=-1==o?e.length:o)-r;if(o==e.length||t<=i+a)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var ge=[""];function ve(e){for(;ge.length<=e;)ge.push(G(ge)+" ");return ge[e]}function G(e){return e[e.length-1]}function ye(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function be(){}function we(e,t){e=Object.create?Object.create(e):(be.prototype=e,new be);return t&&le(t,e),e}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Se(e){return/\w/.test(e)||""<e&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function Ce(e,t){return t?!!(-1<t.source.indexOf("\\w")&&Se(e))||t.test(e):Se(e)}function Ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return;return 1}var ke=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Re(e){return 768<=e.charCodeAt(0)&&ke.test(e)}function Me(e,t,n){for(;(n<0?0<t:t<e.length)&&Re(e.charAt(t));)t+=n;return t}function Te(e,t,n){for(;;){if(Math.abs(t-n)<=1)return e(t)?t:n;var r=Math.floor((t+n)/2);e(r)?n=r:t=r}}function Ae(e,t,n){var r=this,i=(this.input=n,r.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=ee("div",null,"CodeMirror-code"),r.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=R("div",null,"CodeMirror-cursors"),r.measure=R("div",null,"CodeMirror-measure"),r.lineMeasure=R("div",null,"CodeMirror-measure"),r.lineSpace=ee("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none"),ee("div",[r.lineSpace],"CodeMirror-lines"));r.mover=R("div",[i],null,"position: relative"),r.sizer=R("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=R("div",null,null,"position: absolute; height: "+ue+"px; width: 1px;"),r.gutters=R("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=R("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=R("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),v&&y<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),w||k&&U||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,n.init(r)}function A(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ee(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){e=e.text;i==n.line&&(e=e.slice(0,n.ch)),i==t.line&&(e=e.slice(t.ch)),r.push(e),++i}),r}function Le(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function De(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function S(e){if(null==e.parent)return null;for(var t=e.parent,n=x(t.lines,e),r=t.parent;r;r=(t=r).parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Pe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Oe(e,t){return t>=e.first&&t<e.first+e.size}function Ie(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function E(e,t,n){if(void 0===n&&(n=null),!(this instanceof E))return new E(e,t,n);this.line=e,this.ch=t,this.sticky=n}function L(e,t){return e.line-t.line||e.ch-t.ch}function He(e,t){return e.sticky==t.sticky&&0==L(e,t)}function Ge(e){return E(e.line,e.ch)}function _e(e,t){return L(e,t)<0?t:e}function Ve(e,t){return L(e,t)<0?e:t}function We(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function D(e,t){var n;return t.line<e.first?E(e.first,0):(n=e.first+e.size-1,t.line>n?E(n,A(e,n).text.length):(e=A(e,(n=t).line).text.length,null==(t=n.ch)||e<t?E(n.line,e):t<0?E(n.line,0):n))}function Fe(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=D(e,t[r]);return n}var Be=!1,ze=!1;function je(e,t,n){this.marker=e,this.from=t,this.to=n}function $e(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ue(e,t){if(t.full)return null;var n=Oe(e,t.from.line)&&A(e,t.from.line).markedSpans,e=Oe(e,t.to.line)&&A(e,t.to.line).markedSpans;if(!n&&!e)return null;var r=t.from.ch,i=t.to.ch,o=0==L(t.from,t.to),a=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,a=e[i],s=a.marker;null!=a.from&&!(s.inclusiveLeft?a.from<=t:a.from<t)&&(a.from!=t||"bookmark"!=s.type||n&&a.marker.insertLeft)||(o=null==a.to||(s.inclusiveRight?a.to>=t:a.to>t),(r=r||[]).push(new je(s,a.from,o?null:a.to)))}return r}(n,r,o),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,a=e[i],s=a.marker;null!=a.to&&!(s.inclusiveRight?a.to>=t:a.to>t)&&(a.from!=t||"bookmark"!=s.type||n&&!a.marker.insertLeft)||(o=null==a.from||(s.inclusiveLeft?a.from<=t:a.from<t),(r=r||[]).push(new je(s,o?null:a.from-t,null==a.to?null:a.to-t)))}return r}(e,i,o),l=1==t.text.length,c=G(t.text).length+(l?r:0);if(a)for(var u=0;u<a.length;++u){var d,f=a[u];null==f.to&&((d=$e(s,f.marker))?l&&(f.to=null==d.to?null:d.to+c):f.to=r)}if(s)for(var p=0;p<s.length;++p){var h=s[p];null!=h.to&&(h.to+=c),null==h.from?$e(a,h.marker)||(h.from=c,l&&(a=a||[]).push(h)):(h.from+=c,l&&(a=a||[]).push(h))}a=a&&qe(a),s&&s!=a&&(s=qe(s));var m=[a];if(!l){var g,v=t.text.length-2;if(0<v&&a)for(var y=0;y<a.length;++y)null==a[y].to&&(g=g||[]).push(new je(a[y].marker,null,null));for(var b=0;b<v;++b)m.push(g);m.push(s)}return m}function qe(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Xe(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ke(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ye(e){return e.inclusiveLeft?-1:0}function Qe(e){return e.inclusiveRight?1:0}function Je(e,t){var n,r,i=e.lines.length-t.lines.length;return 0!=i?i:(i=e.find(),n=t.find(),(r=L(i.from,n.from)||Ye(e)-Ye(t))?-r:L(i.to,n.to)||Qe(e)-Qe(t)||t.id-e.id)}function Ze(e,t){var n,r=ze&&e.markedSpans;if(r)for(var i,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Je(n,i.marker)<0)&&(n=i.marker);return n}function et(e){return Ze(e,!0)}function tt(e){return Ze(e,!1)}function nt(e,t,n,r,i){var e=A(e,t),o=ze&&e.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(s.marker.collapsed){var l=s.marker.find(0),c=L(l.from,n)||Ye(s.marker)-Ye(i),u=L(l.to,r)||Qe(s.marker)-Qe(i);if(!(0<=c&&u<=0||c<=0&&0<=u)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?0<=L(l.to,n):0<L(l.to,n))||0<=c&&(s.marker.inclusiveRight&&i.inclusiveLeft?L(l.from,r)<=0:L(l.from,r)<0)))return 1}}}function rt(e){for(var t;t=et(e);)e=t.find(-1,!0).line;return e}function it(e,t){var e=A(e,t),n=rt(e);return e==n?t:S(n)}function ot(e,t){if(t>e.lastLine())return t;var n,r=A(e,t);if(!at(e,r))return t;for(;n=tt(r);)r=n.find(1,!0).line;return S(r)+1}function at(e,t){var n=ze&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&function a(e,t,n){{var r;if(null==n.to)return r=n.marker.find(1,!0),a(e,r.line,$e(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&a(e,t,i))return!0}(e,t,r))return!0}}function st(e){for(var t=0,n=(e=rt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function lt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=et(r);){var i=t.find(0,!0),r=i.from.line;n+=i.from.ch-i.to.ch}for(r=e;t=tt(r);)var o=t.find(0,!0),n=(n-=r.text.length-o.from.ch)+((r=o.to.line).text.length-o.to.ch);return n}function ct(e){var n=e.display,e=e.doc;n.maxLine=A(e,e.first),n.maxLineLength=lt(n.maxLine),n.maxLineChanged=!0,e.iter(function(e){var t=lt(e);t>n.maxLineLength&&(n.maxLineLength=t,n.maxLine=e)})}var ut=null;function dt(e,t,n){var r;ut=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ut=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ut=i)}return null!=r?r:ut}ft=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,ht=/[LRr]/,mt=/[Lb1n]/,gt=/[1n]/;var ft,pt,ht,mt,gt,vt=function(e,t){var n="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!ft.test(e))return!1;for(var r,i=e.length,o=[],a=0;a<i;++a)o.push((r=e.charCodeAt(a))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L");for(var s=0,l=n;s<i;++s){var c=o[s];"m"==c?o[s]=l:l=c}for(var u=0,d=n;u<i;++u){var f=o[u];"1"==f&&"r"==d?o[u]="n":ht.test(f)&&("r"==(d=f)&&(o[u]="R"))}for(var p=1,h=o[0];p<i-1;++p){var m=o[p];"+"==m&&"1"==h&&"1"==o[p+1]?o[p]="1":","!=m||h!=o[p+1]||"1"!=h&&"n"!=h||(o[p]=h),h=m}for(var g=0;g<i;++g){var v=o[g];if(","==v)o[g]="N";else if("%"==v){for(var y=void 0,y=g+1;y<i&&"%"==o[y];++y);for(var b=g&&"!"==o[g-1]||y<i&&"1"==o[y]?"1":"N",w=g;w<y;++w)o[w]=b;g=y-1}}for(var x=0,S=n;x<i;++x){var C=o[x];"L"==S&&"1"==C?o[x]="L":ht.test(C)&&(S=C)}for(var N=0;N<i;++N)if(pt.test(o[N])){for(var k=void 0,k=N+1;k<i&&pt.test(o[k]);++k);for(var R="L"==(N?o[N-1]:n),M=R==("L"==(k<i?o[k]:n))?R?"L":"R":n,T=N;T<k;++T)o[T]=M;N=k-1}for(var A,E=[],L=0;L<i;)if(mt.test(o[L])){var D=L;for(++L;L<i&&mt.test(o[L]);++L);E.push(new yt(0,D,L))}else{var P=L,O=E.length;for(++L;L<i&&"L"!=o[L];++L);for(var I=P;I<L;)if(gt.test(o[I])){P<I&&E.splice(O,0,new yt(1,P,I));var H=I;for(++I;I<L&>.test(o[I]);++I);E.splice(O,0,new yt(2,H,I)),P=I}else++I;P<L&&E.splice(O,0,new yt(1,P,L))}return 1==E[0].level&&(A=e.match(/^\s+/))&&(E[0].from=A[0].length,E.unshift(new yt(0,0,A[0].length))),1==G(E).level&&(A=e.match(/\s+$/))&&(G(E).to-=A[0].length,E.push(new yt(0,i-A[0].length,i))),"rtl"==t?E.reverse():E};function yt(e,t,n){this.level=e,this.from=t,this.to=n}function bt(e,t){var n=e.order;return n=null==n?e.order=vt(e.text,t):n}function wt(e,t,n){t=Me(e.text,t+n,n);return t<0||t>e.text.length?null:t}function xt(e,t,n){e=wt(e,t.ch,n);return null==e?null:new E(t.line,e,n<0?"after":"before")}function St(e,t,n,r,i){if(e){var o,a,s,l,e=bt(n,t.doc.direction);if(e)return o=i<0==(1==(e=i<0?G(e):e[0]).level)?"after":"before",0<e.level?(a=Wn(t,n),s=i<0?n.text.length-1:0,l=Fn(t,a,s).top,s=Te(function(e){return Fn(t,a,e).top==l},i<0==(1==e.level)?e.from:e.to-1,s),"before"==o&&(s=wt(n,s,1))):s=i<0?e.to:e.from,new E(r,s,o)}return new E(r,i<0?n.text.length:0,i<0?"before":"after")}function Ct(t,n,s,e){var l=bt(n,t.doc.direction);if(!l)return xt(n,s,e);s.ch>=n.text.length?(s.ch=n.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var r=dt(l,s.ch,s.sticky),i=l[r];if("ltr"==t.doc.direction&&i.level%2==0&&(0<e?i.to>s.ch:i.from<s.ch))return xt(n,s,e);var o,c=function(e,t){return wt(n,e instanceof E?e.ch:e,t)},a=function(e){return t.options.lineWrapping?(o=o||Wn(t,n),rr(t,n,o,Yn(t,n,Fn(t,o,e),"line").top)):{begin:0,end:n.text.length}},u=a("before"==s.sticky?c(s,-1):s.ch);if("rtl"==t.doc.direction||1==i.level){var d=1==i.level==e<0,f=c(s,d?1:-1);if(null!=f&&(d?f<=i.to&&f<=u.end:f>=i.from&&f>=u.begin))return new E(s.line,f,d?"before":"after")}i=function(e,t,n){for(var r=function(e,t){return t?new E(s.line,c(e,1),"before"):new E(s.line,e,"after")};0<=e&&e<l.length;e+=t){var i=l[e],o=0<t==(1!=i.level),a=o?n.begin:c(n.end,-1);if(i.from<=a&&a<i.to)return r(a,o);if(a=o?i.from:c(i.to,-1),n.begin<=a&&a<n.end)return r(a,o)}},f=i(r+e,e,u);return f||(null==(d=0<e?u.end:c(u.begin,-1))||0<e&&d==n.text.length||!(f=i(0<e?0:l.length-1,e,a(d)))?null:f)}var Nt=[],P=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):(e=e._handlers||(e._handlers={}))[t]=(e[t]||Nt).concat(n)};function kt(e,t){return e._handlers&&e._handlers[t]||Nt}function O(e,t,n){var r;e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):(r=(e=e._handlers)&&e[t])&&-1<(n=x(r,n))&&(e[t]=r.slice(0,n).concat(r.slice(n+1)))}function M(e,t){var n=kt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function I(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),M(e,n||t.type,e,t),Et(t)||t.codemirrorIgnore}function Rt(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==x(n,t[r])&&n.push(t[r])}function Mt(e,t){return 0<kt(e,t).length}function Tt(e){e.prototype.on=function(e,t){P(this,e,t)},e.prototype.off=function(e,t){O(this,e,t)}}function H(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function At(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Et(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Lt(e){H(e),At(e)}function Dt(e){return e.target||e.srcElement}function Pt(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),t=q&&e.ctrlKey&&1==t?3:t}var Ot,It,Ht=!(v&&y<9)&&("draggable"in(e=R("div"))||"dragDrop"in e);var l,Gt=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t),o=(-1==i&&(i=e.length),e.slice(t,"\r"==e.charAt(i-1)?i-1:i)),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},_t=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(l){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(l){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Vt="oncopy"in(l=R("div"))||(l.setAttribute("oncopy","return;"),"function"==typeof l.oncopy),Wt=null;var Ft={},Bt={};function zt(e){if("string"==typeof e&&Bt.hasOwnProperty(e))e=Bt[e];else if(e&&"string"==typeof e.name&&Bt.hasOwnProperty(e.name)){var t=Bt[e.name];(e=we(t="string"==typeof t?{name:t}:t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return zt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return zt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function jt(e,t){t=zt(t);var n=Ft[t.name];if(!n)return jt(e,"text/plain");var r=n(e,t);if($t.hasOwnProperty(t.name)){var i,o=$t[t.name];for(i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $t={};function Ut(e,t){le(t,$t.hasOwnProperty(e)?$t[e]:$t[e]={})}function qt(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n,r={};for(n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Xt(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Kt(e,t,n){return!e.startState||e.startState(t,n)}var m=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n},Yt=(m.prototype.eol=function(){return this.pos>=this.string.length},m.prototype.sol=function(){return this.pos==this.lineStart},m.prototype.peek=function(){return this.string.charAt(this.pos)||undefined},m.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},m.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},m.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},m.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},m.prototype.skipToEnd=function(){this.pos=this.string.length},m.prototype.skipTo=function(e){e=this.string.indexOf(e,this.pos);if(-1<e)return this.pos=e,!0},m.prototype.backUp=function(e){this.pos-=e},m.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=T(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?T(this.string,this.lineStart,this.tabSize):0)},m.prototype.indentation=function(){return T(this.string,null,this.tabSize)-(this.lineStart?T(this.string,this.lineStart,this.tabSize):0)},m.prototype.match=function(e,t,n){var r;return"string"!=typeof e?(r=this.string.slice(this.pos).match(e))&&0<r.index?null:(r&&!1!==t&&(this.pos+=r[0].length),r):(r=function(e){return n?e.toLowerCase():e})(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):void 0},m.prototype.current=function(){return this.string.slice(this.start,this.pos)},m.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},m.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},function(e,t){this.state=e,this.lookAhead=t}),Qt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0};function Jt(t,n,r,e){var l=[t.state.modeGen],i={};ln(t,n.text,t.doc.mode,r,function(e,t){l.push(e,t)},i,e);for(var e=r.state,o=0;o<t.state.overlays.length;++o)!function(e){var o=t.state.overlays[e],a=1,s=0;r.state=!0,ln(t,n.text,o.mode,r,function(e,t){for(var n=a;s<e;){var r=l[a];e<r&&l.splice(a,1,e,l[a+1],r),a+=2,s=Math.min(e,r)}if(t)if(o.opaque)l.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;n<a;n+=2){var i=l[n+1];l[n+1]=(i?i+" ":"")+"overlay "+t}},i)}(o);return r.state=e,{styles:l,classes:i.bgClass||i.textClass?i:null}}function Zt(e,t,n){var r,i,o;return t.styles&&t.styles[0]==e.state.modeGen||(r=en(e,S(t)),i=t.text.length>e.options.maxHighlightLength&&qt(e.doc.mode,r.state),o=Jt(e,t,r),i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))),t.styles}function en(n,r,e){var t,i,o,a=n.doc,s=n.display;return a.mode.startState?(i=(t=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;a<s;--s){if(s<=o.first)return o.first;var l=A(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof Yt?c.lookAhead:0)<=o.modeFrontier))return s;c=T(l.text,null,e.options.tabSize);(null==i||c<r)&&(i=s-1,r=c)}return i}(n,r,e))>a.first&&A(a,t-1).stateAfter,o=i?Qt.fromSaved(a,i,t):new Qt(a,Kt(a.mode),t),a.iter(t,r,function(e){tn(n,e.text,o);var t=o.line;e.stateAfter=t==r-1||t%5==0||t>=s.viewFrom&&t<s.viewTo?o.save():null,o.nextLine()}),e&&(a.modeFrontier=o.line),o):new Qt(a,!0,r)}function tn(e,t,n,r){var i=e.doc.mode,o=new m(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&nn(i,n.state);!o.eol();)rn(i,o,n.state),o.start=o.pos}function nn(e,t){return e.blankLine?e.blankLine(t):e.innerMode&&(e=Xt(e,t)).mode.blankLine?e.mode.blankLine(e.state):void 0}function rn(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Xt(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Qt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Qt.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},Qt.fromSaved=function(e,t,n){return t instanceof Yt?new Qt(e,qt(e.mode,t.state),n,t.lookAhead):new Qt(e,qt(e.mode,t),n)},Qt.prototype.save=function(e){e=!1!==e?qt(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?new Yt(e,this.maxLookAhead):e};var on=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function an(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=A(a,(t=D(a,t)).line),c=en(e,t.line,n),u=new m(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=rn(s,u,c.state),r&&o.push(new on(u,i,qt(a.mode,c.state)));return r?o:new on(u,i,c.state)}function sn(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function ln(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l=0,c=null,u=new m(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&sn(nn(n,r.state),o);!u.eol();){var f,p=u.pos>e.options.maxHighlightLength?(s=!1,a&&tn(e,t,r,u.pos),u.pos=t.length,null):sn(rn(n,u,r.state,d),o);if(d&&(f=d[0].name)&&(p="m-"+(p?f+" "+p:f)),!s||c!=p){for(;l<u.start;)i(l=Math.min(u.start,l+5e3),c);c=p}u.start=u.pos}for(;l<u.pos;){var h=Math.min(u.pos,l+5e3);i(h,c),l=h}}var cn=function(e,t,n){this.text=e,Ke(this,t),this.height=n?n(this):1};cn.prototype.lineNo=function(){return S(this)},Tt(cn);var un={},dn={};function fn(e,t){return!e||/^\s*$/.test(e)?null:(t=t.addModeClass?dn:un)[e]||(t[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=ee("span",null,null,w?"padding-right: .1px":null),r={pre:ee("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(v||w)&&e.getOption("lineWrapping")};t.measure={};for(var i,o,a,s=0;s<=(t.rest?t.rest.length:0);s++){var l=s?t.rest[s-1]:t.line,c=void 0;r.pos=0,r.addToken=mn,i=e.display.measure,a=o=void 0,(null!=It?It:(a=b(i,document.createTextNode("AخA")),o=oe(a,0,1).getBoundingClientRect(),a=oe(a,1,2).getBoundingClientRect(),Z(i),o&&o.left!=o.right&&(It=a.right-o.right<3)))&&(c=bt(l,e.doc.direction))&&(r.addToken=function(d,f){return function(e,t,n,r,i,o,a){n=n?n+" cm-force-border":"cm-force-border";for(var s=e.pos,l=s+t.length;;){for(var c=void 0,u=0;u<f.length&&!((c=f[u]).to>s&&c.from<=s);u++);if(c.to>=l)return d(e,t,n,r,i,o,a);d(e,t.slice(0,c.to-s),n,r,null,o,a),r=null,t=t.slice(c.to-s),s=c.to}}}(r.addToken,c)),r.map=[],function(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=d=s="",f=null,v=Infinity;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],S=x.marker;"bookmark"==S.type&&x.from==h&&S.widgetNode?y.push(S):x.from<=h&&(null==x.to||x.to>h||S.collapsed&&x.to==h&&x.from==h)?(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,c=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&x.from==h&&(u+=" "+S.startStyle),S.endStyle&&x.to==v&&(b=b||[]).push(S.endStyle,x.to),S.title&&!d&&(d=S.title),S.collapsed&&(!f||Je(f.marker,S)<0)&&(f=x)):x.from>h&&v>x.from&&(v=x.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!f||f.from==h)for(var N=0;N<y.length;++N)gn(t,0,y[N]);if(f&&(f.from||0)==h){if(gn(t,(null==f.to?p+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(p<=h)break;for(var k=Math.min(p,v);;){if(g){var R,M=h+g.length;if(f||(R=k<M?g.slice(0,k-h):g,t.addToken(t,R,a?a+l:l,u,h+R.length==v?c:"",d,s)),k<=M){g=g.slice(k-h),h=k;break}h=M,u=""}g=i.slice(o,o=n[m++]),a=fn(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),fn(n[T+1],t.cm.options))}(l,r,Zt(e,l,t!=e.display.externalMeasured&&S(l))),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=ie(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=ie(l.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild((i=e.display.measure,a=void 0,null==Ot&&(a=R("span",""),b(i,R("span",[a,document.createTextNode("x")])),0!=i.firstChild.offsetHeight&&(Ot=a.offsetWidth<=1&&2<a.offsetHeight&&!(v&&y<8))),(i=Ot?R("span",""):R("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")).setAttribute("cm-text",""),i))),0==s?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return w&&(n=r.content.lastChild,(/\bcm-tab\b/.test(n.className)||n.querySelector&&n.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")),M(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=ie(r.pre.className,r.textClass||"")),r}function hn(e){var t=R("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,i,o,a){if(t){var s=e.splitSpaces?function(e,t){if(1<e.length&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,l=e.cm.state.specialChars,c=!1;if(l.test(t))for(var u=document.createDocumentFragment(),d=0;;){l.lastIndex=d;var f=l.exec(t),p=f?f.index-d:t.length-d;if(p&&(h=document.createTextNode(s.slice(d,d+p)),v&&y<9?u.appendChild(R("span",[h])):u.appendChild(h),e.map.push(e.pos,e.pos+p,h),e.col+=p,e.pos+=p),!f)break;d+=1+p;var h=void 0;"\t"==f[0]?(p=(p=e.cm.options.tabSize)-e.col%p,(h=u.appendChild(R("span",ve(p),"cm-tab"))).setAttribute("role","presentation"),h.setAttribute("cm-text","\t"),e.col+=p):("\r"==f[0]||"\n"==f[0]?(h=u.appendChild(R("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]):((h=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),v&&y<9?u.appendChild(R("span",[h])):u.appendChild(h)),e.col+=1),e.map.push(e.pos,e.pos+1,h),e.pos++}else e.col+=t.length,u=document.createTextNode(s),e.map.push(e.pos,e.pos+t.length,u),v&&y<9&&(c=!0),e.pos+=t.length;if(e.trailingSpace=32==s.charCodeAt(t.length-1),n||r||i||c||a)return c=n||"",r&&(c+=r),i&&(c+=i),n=R("span",[u],c,a),o&&(n.title=o),e.content.appendChild(n);e.content.appendChild(u)}}function gn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",n.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function vn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=tt(e);)e=t.find(1,!0).line,(n=n||[]).push(e);return n}(t),this.size=this.rest?S(G(this.rest))-n+1:1,this.node=this.text=null,this.hidden=at(e,t)}function yn(e,t,n){for(var r=[],i=t;i<n;i=a){var o=new vn(e.doc,A(e.doc,i),i),a=i+o.size;r.push(o)}return r}var bn=null;var wn=null;function C(e,t){var n=kt(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);bn?r=bn.delayedCallbacks:wn?r=wn:(r=wn=[],setTimeout(xn,0));for(var o=0;o<n.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function xn(){var e=wn;wn=null;for(var t=0;t<e.length;++t)e[t]()}function Sn(e,t,n,r){for(var i,o,a=0;a<t.changes.length;a++){var s=t.changes[a];if("text"==s)u=e,l=o=void 0,o=(i=t).text.className,l=Nn(u,i),i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,kn(u,i)):o&&(i.text.className=o);else if("gutter"==s)Rn(e,t,n,r);else if("class"==s)kn(e,t);else if("widget"==s){l=void 0;c=void 0;u=void 0;d=void 0;f=void 0;var l=e;var c=t;var u=r;c.alignable&&(c.alignable=null);for(var d=c.node.firstChild,f=void 0;d;d=f)f=d.nextSibling,"CodeMirror-linewidget"==d.className&&c.node.removeChild(d);Mn(l,c,u)}}t.changes=null}function Cn(e){return e.node==e.text&&(e.node=R("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),v&&y<8&&(e.node.style.zIndex=2)),e.node}function Nn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):pn(e,t)}function kn(e,t){e=e,(i=(n=t).bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass)&&(i+=" CodeMirror-linebackground"),n.background?i?n.background.className=i:(n.background.parentNode.removeChild(n.background),n.background=null):i&&(r=Cn(n),n.background=r.insertBefore(R("div",null,i),r.firstChild),e.display.input.setUneditable(n.background)),t.line.wrapClass?Cn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n,r,i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Rn(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass&&(o=Cn(t),t.gutterBackground=R("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text));var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=Cn(t),a=t.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),o.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(R("div",Ie(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],c=i.hasOwnProperty(l)&&i[l];c&&a.appendChild(R("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Mn(e,t,n){if(Tn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Tn(e,t.rest[r],t,n,!1)}function Tn(e,t,n,r,i){if(t.widgets)for(var o=Cn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=R("div",[l.node],"CodeMirror-linewidget"),u=(l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),f=p=f=d=u=void 0,l),d=c,f=n,p=r;u.noHScroll&&((f.alignable||(f.alignable=[])).push(d),f=p.wrapperWidth,d.style.left=p.fixedPos+"px",u.coverGutter||(f-=p.gutterTotalWidth,d.style.paddingLeft=p.gutterTotalWidth+"px"),d.style.width=f+"px"),u.coverGutter&&(d.style.zIndex=5,d.style.position="relative",u.noHScroll||(d.style.marginLeft=-p.gutterTotalWidth+"px")),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),C(l,"redraw")}}function An(e){var t,n;return null!=e.height?e.height:(t=e.doc.cm)?(te(document.body,e.node)||(n="position: relative;",e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),b(t.display.measure,R("div",[e.node],null,n))),e.height=e.node.parentNode.offsetHeight):0}function En(e,t){for(var n=Dt(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return 1}function Ln(e){return e.lineSpace.offsetTop}function Dn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Pn(e){var t;return e.cachedPaddingH||(t=b(e.measure,R("pre","x")),t=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,t={left:parseInt(t.paddingLeft),right:parseInt(t.paddingRight)},isNaN(t.left)||isNaN(t.right)||(e.cachedPaddingH=t),t)}function On(e){return ue-e.display.nativeBarWidth}function In(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function Hn(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function Gn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(S(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function _n(e,t,n,r){return Fn(e,Wn(e,t),n,r)}function Vn(e,t){return t>=e.display.viewFrom&&t<e.display.viewTo?e.display.view[dr(e,t)]:(e=e.display.externalMeasured)&&t>=e.lineN&&t<e.lineN+e.size?e:void 0}function Wn(e,t){var n,r,i=S(t),o=Vn(e,i),e=(o&&!o.text?o=null:o&&o.changes&&(Sn(e,o,i,ar(e)),e.curOp.forceUpdate=!0),o||(e=e,r=S(n=rt(n=t)),(n=e.display.externalMeasured=new vn(e.doc,n,r)).lineN=r,r=n.built=pn(e,n),n.text=r.pre,b(e.display.lineMeasure,r.pre),o=n),Gn(o,t,i));return{line:t,view:o,rect:null,map:e.map,cache:e.cache,before:e.before,hasHeights:!1}}function Fn(e,t,n,r,i){var o,a=(n=t.before?-1:n)+(r||"");if(t.cache.hasOwnProperty(a))o=t.cache[a];else{if(t.rect||(t.rect=t.view.text.getBoundingClientRect()),!t.hasHeights){var s=e,l=t.view,c=t.rect,u=s.options.lineWrapping,s=u&&In(s);if(!l.measure.heights||u&&l.measure.width!=s){var d=l.measure.heights=[];if(u){l.measure.width=s;for(var f=l.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var h=f[p],m=f[p+1];2<Math.abs(h.bottom-m.bottom)&&d.push((h.bottom+m.top)/2-c.top)}}d.push(c.bottom-c.top)}t.hasHeights=!0}(o=function(e,t,n,r){var i,o=jn(t.map,n,r),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&Re(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&Re(t.line.text.charAt(o.coverStart+l));)++l;if((i=v&&y<9&&0==s&&l==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():function(e,t){var n=zn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;0<=i&&(n=e[i]).left==n.right;i--);return n}(oe(a,s,l).getClientRects(),r)).left||i.right||0==s)break;l=s,--s,c="right"}v&&y<11&&(i=function(e,t){var n;return window.screen&&null!=screen.logicalXDPI&&screen.logicalXDPI!=screen.deviceXDPI&&function(e){var t;return null!=Wt?Wt:(t=(e=b(e,R("span","x"))).getBoundingClientRect(),e=oe(e,0,1).getBoundingClientRect(),Wt=1<Math.abs(t.left-e.left))}(e)?(e=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI,{left:t.left*e,right:t.right*e,top:t.top*n,bottom:t.bottom*n}):t}(e.display.measure,i))}else 0<s&&(c=r="right"),i=e.options.lineWrapping&&1<(n=a.getClientRects()).length?n["right"==r?n.length-1:0]:a.getBoundingClientRect();v&&y<9&&!(s||i&&(i.left||i.right))&&(n=a.parentNode.getClientRects()[0],i=n?{left:n.left,right:n.left+or(e.display),top:n.top,bottom:n.bottom}:zn);for(var n=i.top-t.rect.top,d=i.bottom-t.rect.top,f=(n+d)/2,p=t.view.measure.heights,h=0;h<p.length-1&&!(f<p[h]);h++);var m=h?p[h-1]:0,g=p[h],m={left:("right"==c?i.right:i.left)-t.rect.left,right:("left"==c?i.left:i.right)-t.rect.left,top:m,bottom:g};return i.left||i.right||(m.bogus=!0),e.options.singleCursorHeightPerLine||(m.rtop=n,m.rbottom=d),m}(e,t,n,r)).bogus||(t.cache[a]=o)}return{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Bn,zn={left:0,right:0,top:0,bottom:0};function jn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,l<=t&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function $n(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Un(e){e.display.externalMeasure=null,Z(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)$n(e.display.view[t])}function qn(e){Un(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Xn(){return c&&$?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Kn(){return c&&$?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yn(e,t,n,r,i){if(!i&&t.widgets)for(var o=0;o<t.widgets.length;++o){var a;t.widgets[o].above&&(a=An(t.widgets[o]),n.top+=a,n.bottom+=a)}return"line"!=r&&(r=r||"local",i=st(t),"local"==r?i+=Ln(e.display):i-=e.display.viewOffset,"page"!=r&&"window"!=r||(i+=(e=e.display.lineSpace.getBoundingClientRect()).top+("window"==r?0:Kn()),e=e.left+("window"==r?0:Xn()),n.left+=e,n.right+=e),n.top+=i,n.bottom+=i),n}function Qn(e,t,n){var r;return"div"==n?t:(r=t.left,t=t.top,"page"==n?(r-=Xn(),t-=Kn()):"local"!=n&&n||(r+=(n=e.display.sizer.getBoundingClientRect()).left,t+=n.top),{left:r-(n=e.display.lineSpace.getBoundingClientRect()).left,top:t-n.top})}function Jn(e,t,n,r,i){return Yn(e,r=r||A(e.doc,t.line),_n(e,r,t.ch,i),n)}function Zn(n,e,r,i,o,a){function s(e,t){e=Fn(n,o,e,t?"right":"left",a);return t?e.left=e.right:e.right=e.left,Yn(n,i,e,r)}i=i||A(n.doc,e.line),o=o||Wn(n,i);var t,l,c=bt(i,n.doc.direction),u=e.ch,e=e.sticky;return u>=i.text.length?(u=i.text.length,e="before"):u<=0&&(u=0,e="after"),c?(l=dt(c,u,e),t=ut,l=d(u,l,"before"==e),null!=t&&(l.other=d(u,t,"before"!=e)),l):s("before"==e?u-1:u,"before"==e);function d(e,t,n){return s(n?e-1:e,c[t].level%2!=0!=n)}}function er(e,t){var n=0,t=(t=D(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch),A(e.doc,t.line)),e=st(t)+Ln(e.display);return{left:n,right:n,top:e,bottom:e+t.height}}function tr(e,t,n,r,i){e=E(e,t,n);return e.xRel=i,r&&(e.outside=!0),e}function nr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return tr(r.first,0,null,!0,-1);var i=Pe(r,n),o=r.first+r.size-1;if(o<i)return tr(r.first+r.size-1,A(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=A(r,i);;){var s=function(n,r,e,i,o){o-=st(r);var t,a=0,s=r.text.length,l=Wn(n,r);if(bt(r,n.doc.direction)){n.options.lineWrapping&&(a=(d=rr(n,r,l,o)).begin,s=d.end),t=new E(e,Math.floor(a+(s-a)/2));var c,u,d=Zn(n,t,"line",r,l).left,f=d<i?1:-1,p=d-i,h=Math.ceil((s-a)/4);e:do{c=p,u=t;for(var m,g=0;g<h;++g){var v=t;if(null==(t=Ct(n,r,t,f))||t.ch<a||s<=("before"==t.sticky?t.ch-1:t.ch)){t=v;break e}}}while(p=Zn(n,t,"line",r,l).left-i,1<h&&(m=Math.abs(p-c)/h,h=Math.min(h,Math.ceil(Math.abs(p)/m)),f=p<0?1:-1),0!=p&&(1<h||f<0!=p<0&&Math.abs(p)<=Math.abs(c)));if(Math.abs(p)>Math.abs(c)){if(p<0==c<0)throw new Error("Broke out of infinite loop in coordsCharInner");t=u}}else{d=Te(function(e){var t=Yn(n,r,Fn(n,l,e),"line");return t.top>o?(s=Math.min(e,s),1):!(t.bottom<=o)&&(t.left>i||!(t.right<i)&&i-t.left<t.right-i)},a,s);t=new E(e,d=Me(r.text,d,1),d==s?"before":"after")}e=Zn(n,t,"line",r,l);return(o<e.top||e.bottom<o)&&(t.outside=!0),t.xRel=i<e.left?-1:i>e.right?1:0,t}(e,a,i,t,n),l=tt(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&0<s.xRel))return s;i=S(a=c.to.line)}}function rr(t,n,r,i){var o=function(e){return Yn(t,n,Fn(t,r,e),"line")},e=n.text.length,a=Te(function(e){return o(e-1).bottom<=i},e,0);return{begin:a,end:Te(function(e){return o(e).top>i},a,e)}}function ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Bn){Bn=R("pre");for(var t=0;t<49;++t)Bn.appendChild(document.createTextNode("x")),Bn.appendChild(R("br"));Bn.appendChild(document.createTextNode("x"))}b(e.measure,Bn);var n=Bn.offsetHeight/50;return 3<n&&(e.cachedTextHeight=n),Z(e.measure),n||1}function or(e){var t,n;return null!=e.cachedCharWidth?e.cachedCharWidth:(n=R("span","xxxxxxxxxx"),t=R("pre",[n]),b(e.measure,t),2<(n=((t=n.getBoundingClientRect()).right-t.left)/10)&&(e.cachedCharWidth=n),n||10)}function ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:sr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function sr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lr(r){var i=ir(r.display),o=r.options.lineWrapping,a=o&&Math.max(5,r.display.scroller.clientWidth/or(r.display)-3);return function(e){if(at(r.doc,e))return 0;var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;n++)e.widgets[n].height&&(t+=e.widgets[n].height);return o?t+(Math.ceil(e.text.length/a)||1)*i:t+i}}function cr(e){var t=e.doc,n=lr(e);t.iter(function(e){var t=n(e);t!=e.height&&De(e,t)})}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==Dt(t).getAttribute("cm-not-content"))return null;var o,n=i.lineSpace.getBoundingClientRect();try{o=t.clientX-n.left,a=t.clientY-n.top}catch(t){return null}var a,i=nr(e,o,a);return r&&1==i.xRel&&(n=A(e.doc,i.line).text).length==i.ch&&(a=T(n,n.length,e.options.tabSize)-n.length,i=E(i.line,Math.max(0,Math.round((o-Pn(e.display).left)/or(e.display))-a))),i}function dr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function fr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function pr(e,t){for(var n,r,i=e.doc,o={},a=o.cursors=document.createDocumentFragment(),s=o.selection=document.createDocumentFragment(),l=0;l<i.sel.ranges.length;l++)!1===t&&l==i.sel.primIndex||((n=i.sel.ranges[l]).from().line>=e.display.viewTo||n.to().line<e.display.viewFrom||(((r=n.empty())||e.options.showCursorWhenSelecting)&&hr(e,n.head,a),r||function(i,e,t){var n=i.display,o=i.doc,a=document.createDocumentFragment(),r=Pn(i.display),p=r.left,h=Math.max(n.sizerWidth,In(i)-n.sizer.offsetLeft)-r.right;function m(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),a.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?h-e:n)+"px;\n height: "+(r-t)+"px"))}function s(n,s,l){var c,u,r=A(o,n),d=r.text.length;function f(e,t){return Jn(i,E(n,e),"div",r,t)}return function(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}(bt(r,o.direction),s||0,null==l?d:l,function(e,t,n){var r,i,o,a=f(e,"left");e==t?r=i=(o=a).left:(o=f(t-1,"right"),"rtl"==n&&(n=a,a=o,o=n),r=a.left,i=o.right),null==s&&0==e&&(r=p),3<o.top-a.top&&(m(r,a.top,null,a.bottom),r=p,a.bottom<o.top&&m(r,a.bottom,null,o.top)),null==l&&t==d&&(i=h),(!c||a.top<c.top||a.top==c.top&&a.left<c.left)&&(c=a),(!u||o.bottom>u.bottom||o.bottom==u.bottom&&o.right>u.right)&&(u=o),m(r=r<p+1?p:r,o.top,i-r,o.bottom)}),{start:c,end:u}}n=e.from(),r=e.to();{var l;n.line==r.line?s(n.line,n.ch,r.ch):(e=A(o,n.line),l=A(o,r.line),l=rt(e)==rt(l),n=s(n.line,n.ch,l?e.text.length+1:null).end,e=s(r.line,l?0:null,r.ch).start,l&&(n.top<e.top-2?(m(n.right,n.top,null,n.bottom),m(p,e.top,e.left,e.bottom)):m(n.right,n.top,e.left-n.right,n.bottom)),n.bottom<e.top&&m(p,n.bottom,null,e.top))}t.appendChild(a)}(e,n,s)));return o}function hr(e,t,n){var t=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=n.appendChild(R("div"," ","CodeMirror-cursor"));r.style.left=t.left+"px",r.style.top=t.top+"px",r.style.height=Math.max(0,t.bottom-t.top)*e.options.cursorHeight+"px",t.other&&((r=n.appendChild(R("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"))).style.display="",r.style.left=t.other.left+"px",r.style.top=t.other.top+"px",r.style.height=.85*(t.other.bottom-t.other.top)+"px")}function mr(e){var t,n;e.state.focused&&(t=e.display,clearInterval(t.blinker),n=!0,t.cursorDiv.style.visibility="",0<e.options.cursorBlinkRate?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden"))}function gr(e){e.state.focused||(e.display.input.focus(),yr(e))}function vr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,br(e))},100)}function yr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(M(e,"focus",e,t),e.state.focused=!0,re(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),w&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),mr(e))}function br(e,t){e.state.delayingBlurEvent||(e.state.focused&&(M(e,"blur",e,t),e.state.focused=!1,J(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function wr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){v&&y<8?(o=(a=i.node.offsetTop+i.node.offsetHeight)-n,n=a):o=(a=i.node.getBoundingClientRect()).bottom-a.top;var a,s=i.line.height-o;if(o<2&&(o=ir(t)),(.005<s||s<-.005)&&(De(i.line,o),xr(i.line),i.rest))for(var l=0;l<i.rest.length;l++)xr(i.rest[l])}}}function xr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function Sr(e,t,n){var r,i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop,i=Math.floor(i-Ln(e)),o=n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight,i=Pe(t,i),o=Pe(t,o);return n&&n.ensure&&(r=n.ensure.from.line,n=n.ensure.to.line,r<i?o=Pe(t,st(A(t,i=r))+e.wrapper.clientHeight):Math.min(n,t.lastLine())>=o&&(i=Pe(t,st(A(t,n))-e.wrapper.clientHeight),o=n)),{from:i,to:Math.max(o,i+1)}}function Cr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=sr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Nr(e){var t,n,r,i;if(e.options.lineNumbers)return t=e.doc,t=Ie(e.options,t.first+t.size-1),n=e.display,t.length!=n.lineNumChars?(r=(i=n.measure.appendChild(R("div",[R("div",t)],"CodeMirror-linenumber CodeMirror-gutter-elt"))).firstChild.offsetWidth,i=i.offsetWidth-r,n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(r,n.lineGutter.offsetWidth-i)+1,n.lineNumWidth=n.lineNumInnerWidth+i,n.lineNumChars=n.lineNumInnerWidth?t.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Jr(e),1):void 0}function kr(e,t){var n=e.display,r=ir(e.display),i=(t.top<0&&(t.top=0),(e.curOp&&null!=e.curOp.scrollTop?e.curOp:n.scroller).scrollTop),o=Hn(e),a={},s=(t.bottom-t.top>o&&(t.bottom=t.top+o),e.doc.height+Dn(n)),l=t.top<r,r=t.bottom>s-r,r=(t.top<i?a.scrollTop=l?0:t.top:t.bottom>i+o&&((l=Math.min(t.top,(r?s:t.bottom)-o))!=i&&(a.scrollTop=l)),(e.curOp&&null!=e.curOp.scrollLeft?e.curOp:n.scroller).scrollLeft),s=In(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),o=t.right-t.left>s;return o&&(t.right=t.left+s),t.left<10?a.scrollLeft=0:t.left<r?a.scrollLeft=Math.max(0,t.left-(o?0:10)):t.right>s+r-3&&(a.scrollLeft=t.right+(o?0:10)-s),a}function Rr(e,t){null!=t&&(Ar(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc:e.curOp).scrollTop+t)}function Mr(e){Ar(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Ar(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ar(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Er(e,er(e,t.from),er(e,t.to),t.margin))}function Er(e,t,n,r){t=kr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,t.scrollLeft,t.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(k||Qr(e,{top:t}),Dr(e,t,!0),k&&Qr(e),Ur(e,100))}function Dr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),e.display.scroller.scrollTop==t&&!n||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Cr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Or(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Dn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+On(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}t=function(e,t,n){this.cm=n;var r=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(i),P(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),P(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},t.prototype.update=function(e){var t,n=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return r?(this.vert.style.display="block",this.vert.style.bottom=n?i+"px":"0",t=e.viewHeight-(n?i:0),this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+t)+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),n?(this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px",t=e.viewWidth-e.barLeft-(r?i:0),this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+t)+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&0<e.clientHeight&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:n?i:0}},t.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},t.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},t.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=q&&!u?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},t.prototype.enableZeroWidthBar=function(t,n,r){t.style.pointerEvents="auto",n.set(1e3,function i(){var e=t.getBoundingClientRect();("vert"==r?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1))!=t?t.style.pointerEvents="none":n.set(1e3,i)})},t.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)},n=function(){};function Ir(e,t){t=t||Or(e);var n=e.display.barWidth,r=e.display.barHeight;Hr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&wr(e),Hr(e,Or(e)),n=e.display.barWidth,r=e.display.barHeight}function Hr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}n.prototype.update=function(){return{bottom:0,right:0}},n.prototype.setScrollLeft=function(){},n.prototype.setScrollTop=function(){},n.prototype.clear=function(){};var Gr={"native":t,"null":n};function _r(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&J(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Gr[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller),P(e,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,t){("horizontal"==t?Pr:Lr)(n,e)},n),n.display.scrollbars.addClass&&re(n.display.wrapper,n.display.scrollbars.addClass)}var Vr=0;function Wr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vr},e=e.curOp,bn?bn.ops.push(e):e.ownsGroup=bn={ops:[e],delayedCallbacks:[]}}function Fr(e){var e=e.curOp,t=function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;for(var n=e.ops,r=0;r<n.length;r++){a=o=i=void 0;var i=n[r],o=i.cm,a=o.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=On(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=On(e)+"px",t.scrollbarsClipped=!0)})(o),i.updateMaxLine&&ct(o),i.mustUpdate=i.viewChanged||i.forceUpdate||null!=i.scrollTop||i.scrollToPos&&(i.scrollToPos.from.line<a.viewFrom||i.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&o.options.lineWrapping,i.update=i.mustUpdate&&new Xr(o,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}for(var s=0;s<n.length;s++){l=void 0;var l=n[s];l.updatedDisplay=l.mustUpdate&&Kr(l.cm,l.update)}for(var c=0;c<n.length;c++){u=void 0;d=void 0;f=void 0;var u=n[c];var d=u.cm,f=d.display;u.updatedDisplay&&wr(d),u.barMeasure=Or(d),f.maxLineChanged&&!d.options.lineWrapping&&(u.adjustWidthTo=_n(d,f.maxLine,f.maxLine.text.length).left+3,d.display.sizerWidth=u.adjustWidthTo,u.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+u.adjustWidthTo+On(d)+d.display.barWidth),u.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+u.adjustWidthTo-In(d))),(u.updatedDisplay||u.selectionChanged)&&(u.preparedSelection=f.input.prepareSelection(u.focus))}for(var p=0;p<n.length;p++){h=void 0;m=void 0;g=void 0;var h=n[p];var m=h.cm,g=(null!=h.adjustWidthTo&&(m.display.sizer.style.minWidth=h.adjustWidthTo+"px",h.maxScrollLeft<m.doc.scrollLeft&&Pr(m,Math.min(m.display.scroller.scrollLeft,h.maxScrollLeft),!0),m.display.maxLineChanged=!1),h.focus&&h.focus==ne()&&(!document.hasFocus||document.hasFocus()));h.preparedSelection&&m.display.input.showSelection(h.preparedSelection,g),!h.updatedDisplay&&h.startHeight==m.doc.height||Ir(m,h.barMeasure),h.updatedDisplay&&Zr(m,h.barMeasure),h.selectionChanged&&mr(m),m.state.focused&&h.updateInput&&m.display.input.reset(h.typing),g&&gr(h.cm)}for(var v=0;v<n.length;v++){y=void 0;b=void 0;w=void 0;x=void 0;S=void 0;C=void 0;N=void 0;k=void 0;var y=n[v];var b=y.cm,w=b.display,x=b.doc,S=(y.updatedDisplay&&Yr(b,y.update),null==w.wheelStartX||null==y.scrollTop&&null==y.scrollLeft&&!y.scrollToPos||(w.wheelStartX=w.wheelStartY=null),null!=y.scrollTop&&Dr(b,y.scrollTop,y.forceScroll),null!=y.scrollLeft&&Pr(b,y.scrollLeft,!0,!0),y.scrollToPos&&function(e,t){var n,r,i;I(e,"scrollCursorIntoView")||(i=(n=e.display).sizer.getBoundingClientRect(),r=null,t.top+i.top<0?r=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null==r||j||(i=R("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Ln(e.display))+"px;\n height: "+(t.bottom-t.top+On(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;"),e.display.lineSpace.appendChild(i),i.scrollIntoView(r),e.display.lineSpace.removeChild(i)))}(b,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?E(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?E(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,s=kr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),l=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=s.scrollTop&&(Lr(e,s.scrollTop),1<Math.abs(e.doc.scrollTop-l)&&(a=!0)),null!=s.scrollLeft&&(Pr(e,s.scrollLeft),1<Math.abs(e.doc.scrollLeft-c)&&(a=!0)),!a)break}return i}(b,D(x,y.scrollToPos.from),D(x,y.scrollToPos.to),y.scrollToPos.margin)),y.maybeHiddenMarkers),C=y.maybeUnhiddenMarkers;if(S)for(var N=0;N<S.length;++N)S[N].lines.length||M(S[N],"hide");if(C)for(var k=0;k<C.length;++k)C[k].lines.length&&M(C[k],"unhide");w.wrapper.offsetHeight&&(x.scrollTop=b.display.scroller.scrollTop),y.changeObjs&&M(b,"changes",b,y.changeObjs),y.update&&y.update.finish()}};if(e=e.ownsGroup)try{var n=e,r=n.delayedCallbacks,i=0;do{for(;i<r.length;i++)r[i].call(null);for(var o=0;o<n.ops.length;o++){var a=n.ops[o];if(a.cursorActivityHandlers)for(;a.cursorActivityCalled<a.cursorActivityHandlers.length;)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(i<r.length)}finally{bn=null,t(e)}}function d(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{Fr(e)}}function _(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{Fr(e)}}}function r(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Fr(this)}}}function i(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Wr(e);try{return t.apply(this,arguments)}finally{Fr(e)}}}function N(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size);var i,o=e.display,a=((r=r||0)&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo?ze&&it(e.doc,t)<o.viewTo&&zr(e):n<=o.viewFrom?ze&&ot(e.doc,n+r)>o.viewFrom?zr(e):(o.viewFrom+=r,o.viewTo+=r):t<=o.viewFrom&&n>=o.viewTo?zr(e):t<=o.viewFrom?(a=jr(e,n,n+r,1))?(o.view=o.view.slice(a.index),o.viewFrom=a.lineN,o.viewTo+=r):zr(e):n>=o.viewTo?(a=jr(e,t,t,-1))?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):zr(e):(a=jr(e,t,t,-1),i=jr(e,n,n+r,1),a&&i?(o.view=o.view.slice(0,a.index).concat(yn(e,a.lineN,i.lineN)).concat(o.view.slice(i.index)),o.viewTo+=r):zr(e)),o.externalMeasured);a&&(n<a.lineN?a.lineN+=r:t<a.lineN+a.size&&(o.externalMeasured=null))}function Br(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),t<r.viewFrom||t>=r.viewTo||null!=(i=r.view[dr(e,t)]).node&&-1==x(e=i.changes||(i.changes=[]),n)&&e.push(n)}function zr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function jr(e,t,n,r){var i,o=dr(e,t),a=e.display.view;if(ze&&n!=e.doc.first+e.doc.size){for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(0<r){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;it(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}}return{index:o,lineN:n}}function $r(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ur(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,se(qr,e))}function qr(a){var s,l,c,u=a.doc;u.highlightFrontier>=a.display.viewTo||(s=+new Date+a.options.workTime,l=en(a,u.highlightFrontier),c=[],u.iter(l.line,Math.min(u.first+u.size,a.display.viewTo+500),function(e){if(l.line>=a.display.viewFrom){var t=e.styles,n=e.text.length>a.options.maxHighlightLength?qt(u.mode,l.state):null,r=Jt(a,e,l,!0),n=(n&&(l.state=n),e.styles=r.styles,e.styleClasses),r=r.classes;r?e.styleClasses=r:n&&(e.styleClasses=null);for(var i=!t||t.length!=e.styles.length||n!=r&&(!n||!r||n.bgClass!=r.bgClass||n.textClass!=r.textClass),o=0;!i&&o<t.length;++o)i=t[o]!=e.styles[o];i&&c.push(l.line),e.stateAfter=l.save()}else e.text.length<=a.options.maxHighlightLength&&tn(a,e.text,l),e.stateAfter=l.line%5==0?l.save():null;if(l.nextLine(),+new Date>s)return Ur(a,a.options.workDelay),!0}),u.highlightFrontier=l.line,u.modeFrontier=Math.max(u.modeFrontier,l.line),c.length&&d(a,function(){for(var e=0;e<c.length;e++)Br(a,c[e],"text")}))}var Xr=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Sr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=In(e),this.force=n,this.dims=ar(e),this.events=[]};function Kr(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)zr(e);else if(!(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(e))){Nr(e)&&(zr(e),t.dims=ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin),r=(n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),ze&&(o=it(e.doc,o),a=ot(e.doc,a)),o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth),i=(i=o,o=a,0==(s=(a=e).display).view.length||i>=s.viewTo||o<=s.viewFrom?(s.view=yn(a,i,o),s.viewFrom=i):(s.viewFrom>i?s.view=yn(a,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(dr(a,i))),s.viewFrom=i,s.viewTo<o?s.view=s.view.concat(yn(a,s.viewTo,o)):s.viewTo>o&&(s.view=s.view.slice(0,dr(a,o)))),s.viewTo=o,n.viewOffset=st(A(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px",$r(e));if(r||0!=i||t.force||n.renderedView!=n.view||!(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)){var s,a=!(a=e).hasFocus()&&(s=ne())&&te(a.display.lineDiv,s)?(s={activeElt:s},window.getSelection&&(o=window.getSelection()).anchorNode&&o.extend&&te(a.display.lineDiv,o.anchorNode)&&(s.anchorNode=o.anchorNode,s.anchorOffset=o.anchorOffset,s.focusNode=o.focusNode,s.focusOffset=o.focusOffset),s):null,l=(4<i&&(n.lineDiv.style.display="none"),e),c=n.updateLineNumbers,u=t.dims,o=l.display,d=l.options.lineNumbers,f=o.lineDiv,p=f.firstChild;function h(e){var t=e.nextSibling;return w&&q&&l.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),t}for(var m=o.view,g=o.viewFrom,v=0;v<m.length;v++){var y=m[v];if(!y.hidden)if(y.node&&y.node.parentNode==f){for(;p!=y.node;)p=h(p);var b=d&&null!=c&&c<=g&&y.lineNumber;y.changes&&(-1<x(y.changes,"gutter")&&(b=!1),Sn(l,y,g,u)),b&&(Z(y.lineNumber),y.lineNumber.appendChild(document.createTextNode(Ie(l.options,g)))),p=y.node.nextSibling}else{b=function(e,t,n,r){var i=Nn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),kn(e,t),Rn(e,t,n,r),Mn(e,t,r),t.node}(l,y,g,u);f.insertBefore(b,p)}g+=y.size}for(;p;)p=h(p);return 4<i&&(n.lineDiv.style.display=""),n.renderedView=n.view,(s=a)&&s.activeElt&&s.activeElt!=ne()&&(s.activeElt.focus(),s.anchorNode&&te(document.body,s.anchorNode)&&te(document.body,s.focusNode)&&(o=window.getSelection(),(i=document.createRange()).setEnd(s.anchorNode,s.anchorOffset),i.collapse(!1),o.removeAllRanges(),o.addRange(i),o.extend(s.focusNode,s.focusOffset))),Z(n.cursorDiv),Z(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,r&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ur(e,400)),!(n.updateLineNumbers=null)}}return!1}function Yr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=In(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Dn(e.display)-Hn(e),n.top)}),t.visible=Sr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Kr(e,t);r=!1){wr(e);var i=Or(e);fr(e),Ir(e,i),Zr(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Qr(e,t){var n,t=new Xr(e,t);Kr(e,t)&&(wr(e),Yr(e,t),n=Or(e),fr(e),Ir(e,n),Zr(e,n),t.finish())}function Jr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Zr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+On(e)+"px"}function ei(e){var t=e.display.gutters,n=e.options.gutters;Z(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(R("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&((e.display.lineGutter=o).style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",Jr(e)}function ti(e){var t=x(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):-1<t&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}Xr.prototype.signal=function(e,t){Mt(e,t)&&this.events.push(arguments)},Xr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)M.apply(null,this.events[e])};var ni=0,p=null;function ri(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ii(e){e=ri(e);return e.x*=p,e.y*=p,e}function oi(e,t){var n,r,i=ri(t),o=i.x,i=i.y,a=e.display,s=a.scroller,l=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(o&&l||i&&c){if(i&&q&&w)e:for(var u=t.target,d=a.view;u!=s;u=u.parentNode)for(var f=0;f<d.length;f++)if(d[f].node==u){e.display.currentWheelTarget=u;break e}!o||k||B||null==p?(i&&null!=p&&(l=i*p,r=(n=e.doc.scrollTop)+a.wrapper.clientHeight,l<0?n=Math.max(0,n+l-50):r=Math.min(e.doc.height,r+l+50),Qr(e,{top:n,bottom:r})),ni<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=o,a.wheelDY=i,setTimeout(function(){var e,t;null!=a.wheelStartX&&(e=s.scrollLeft-a.wheelStartX,t=(t=s.scrollTop-a.wheelStartY)&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX,a.wheelStartX=a.wheelStartY=null,t&&(p=(p*ni+t)/(ni+1),++ni))},200)):(a.wheelDX+=o,a.wheelDY+=i))):(i&&c&&Lr(e,Math.max(0,s.scrollTop+i*p)),Pr(e,Math.max(0,s.scrollLeft+o*p)),i&&!c||H(t),a.wheelStartX=null)}}v?p=-.53:k?p=15:c?p=-.7:z&&(p=-1/3);var V=function(e,t){this.ranges=e,this.primIndex=t},W=(V.prototype.primary=function(){return this.ranges[this.primIndex]},V.prototype.equals=function(e){if(e!=this){if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!He(n.anchor,r.anchor)||!He(n.head,r.head))return!1}}return!0},V.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new W(Ge(this.ranges[t].anchor),Ge(this.ranges[t].head));return new V(e,this.primIndex)},V.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},V.prototype.contains=function(e,t){t=t||e;for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(0<=L(t,r.from())&&L(e,r.to())<=0)return n}return-1},function(e,t){this.anchor=e,this.head=t});function ai(e,t){var n=e[t];e.sort(function(e,t){return L(e.from(),t.from())}),t=x(e,n);for(var r=1;r<e.length;r++){var i,o,a=e[r],s=e[r-1];0<=L(s.to(),a.from())&&(i=Ve(s.from(),a.from()),o=_e(s.to(),a.to()),a=s.empty()?a.from()==a.head:s.from()==s.head,r<=t&&--t,e.splice(--r,2,new W(a?o:i,a?i:o)))}return new V(e,t)}function si(e,t){return new V([new W(e,t||e)],0)}function li(e){return e.text?E(e.from.line+e.text.length-1,G(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ci(e,t){var n,r;return L(e,t.from)<0?e:L(e,t.to)<=0?li(t):(n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch,e.line==t.to.line&&(r+=li(t).ch-t.to.ch),E(n,r))}function ui(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new W(ci(i.anchor,t),ci(i.head,t)))}return ai(n,e.sel.primIndex)}function di(e,t,n){return e.line==t.line?E(n.line,e.ch-t.ch+n.ch):E(n.line+(e.line-t.line),e.ch)}function fi(e){e.doc.mode=jt(e.options,e.doc.modeOption),pi(e)}function pi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ur(e,100),e.state.modeGen++,e.curOp&&N(e)}function hi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==G(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function mi(e,o,t,a){function i(e){return t?t[e]:null}function n(e,t,n){var r,i;t=t,n=n,i=a,(r=e).text=t,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),null!=r.order&&(r.order=null),Xe(r),Ke(r,n),(t=i?i(r):1)!=r.height&&De(r,t),C(e,"change",e,o)}function r(e,t){for(var n=[],r=e;r<t;++r)n.push(new cn(u[r],i(r),a));return n}var s,l=o.from,c=o.to,u=o.text,d=A(e,l.line),f=A(e,c.line),p=G(u),h=i(u.length-1),m=c.line-l.line;o.full?(e.insert(0,r(0,u.length)),e.remove(u.length,e.size-u.length)):hi(e,o)?(s=r(0,u.length-1),n(f,f.text,h),m&&e.remove(l.line,m),s.length&&e.insert(l.line,s)):d==f?1==u.length?n(d,d.text.slice(0,l.ch)+p+d.text.slice(c.ch),h):((s=r(1,u.length-1)).push(new cn(p+d.text.slice(c.ch),h,a)),n(d,d.text.slice(0,l.ch)+u[0],i(0)),e.insert(l.line+1,s)):1==u.length?(n(d,d.text.slice(0,l.ch)+u[0]+f.text.slice(c.ch),i(0)),e.remove(l.line+1,m)):(n(d,d.text.slice(0,l.ch)+u[0],i(0)),n(f,p+f.text.slice(c.ch),h),s=r(1,u.length-1),1<m&&e.remove(l.line+1,m-1),e.insert(l.line+1,s)),C(e,"change",e,o)}function gi(e,a,s){!function l(e,t,n){if(e.linked)for(var r=0;r<e.linked.length;++r){var i,o=e.linked[r];o.doc!=t&&(i=n&&o.sharedHist,s&&!i||(a(o.doc,i),l(o.doc,e,i)))}}(e,null,!0)}function vi(e,t){if(t.cm)throw new Error("This document is already in use.");cr((e.doc=t).cm=e),fi(e),yi(e),e.options.lineWrapping||ct(e),e.options.mode=t.modeOption,N(e)}function yi(e){("rtl"==e.doc.direction?re:J)(e.display.lineDiv,"CodeMirror-rtl")}function bi(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function wi(e,t){var n={from:Ge(t.from),to:li(t),text:Ee(e,t.from,t.to)};return ki(e,n,t.from.line,t.to.line+1),gi(e,function(e){return ki(e,n,t.from.line,t.to.line+1)},!0),n}function xi(e){for(;e.length&&G(e).ranges;)e.pop()}function Si(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=(a=i).lastOp==r?(xi(a.done),G(a.done)):a.done.length&&!G(a.done).ranges?G(a.done):1<a.done.length&&!a.done[a.done.length-2].ranges?(a.done.pop(),G(a.done)):void 0))o=G(a.changes),0==L(t.from,t.to)&&0==L(t.from,o.to)?o.to=li(t):a.changes.push(wi(e,t));else{var l=G(i.done);for(l&&l.ranges||Ni(e.sel,i.done),a={changes:[wi(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,o||M(e,"historyAdded")}function Ci(e,t,n,r){var i,o,a,s=e.history,l=r&&r.origin;n==s.lastSelOp||l&&s.lastSelOrigin==l&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==l||(e=e,i=l,o=G(s.done),a=t,"*"==(i=i.charAt(0))||"+"==i&&o.ranges.length==a.ranges.length&&o.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)))?s.done[s.done.length-1]=t:Ni(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=l,s.lastSelOp=n,r&&!1!==r.clearRedo&&xi(s.undone)}function Ni(e,t){var n=G(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ki(t,n,e,r){var i=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){e.markedSpans&&((i=i||(n["spans_"+t.id]={}))[o]=e.markedSpans),++o})}function Ri(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(function(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t=t||e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}(n[i]));return r}function Mi(e,t){var n=Ri(e,t),r=Ue(e,t);if(!n)return r;if(r)for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ti(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?V.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c,u=a[l];if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&-1<x(t,Number(c[1]))&&(G(s)[d]=u[d],delete u[d])}}}return r}function Ai(e,t,n,r){return r?(r=e.anchor,n&&((e=L(t,r)<0)!=L(n,r)<0?(r=t,t=n):e!=L(t,n)<0&&(t=n)),new W(r,t)):new W(n||t,t)}function Ei(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),F(e,new V([Ai(e.sel.primary(),t,n,i)],0),r)}function Li(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ai(e.sel.ranges[o],t[o],null,i);F(e,ai(r,e.sel.primIndex),n)}function Di(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,F(e,ai(i,e.sel.primIndex),r)}function Pi(e,t,n,r){F(e,si(t,n),r)}function Oi(e,t,n){var r=e.history.done,i=G(r);(i&&i.ranges?(r[r.length-1]=t,Ii):F)(e,t,n)}function F(e,t,n){Ii(e,t,n),Ci(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ii(e,t,n){var r,i,o;(Mt(e,"beforeSelectionChange")||e.cm&&Mt(e.cm,"beforeSelectionChange"))&&(r=e,o=n,o={ranges:(i=t).ranges,update:function(e){this.ranges=[];for(var t=0;t<e.length;t++)this.ranges[t]=new W(D(r,e[t].anchor),D(r,e[t].head))},origin:o&&o.origin},M(r,"beforeSelectionChange",r,o),r.cm&&M(r.cm,"beforeSelectionChange",r.cm,o),t=o.ranges!=i.ranges?ai(o.ranges,o.ranges.length-1):i),Hi(e,_i(e,t,n&&n.bias||(L(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||Mr(e.cm)}function Hi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Rt(e.cm)),C(e,"cursorActivity",e))}function Gi(e){Hi(e,_i(e,e.sel,null,!1))}function _i(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Wi(e,a.anchor,s&&s.anchor,n,r),s=Wi(e,a.head,s&&s.head,n,r);!i&&l==a.anchor&&s==a.head||((i=i||t.ranges.slice(0,o))[o]=new W(l,s))}return i?ai(i,t.primIndex):t}function Vi(e,t,n,r,i){var o=A(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(l.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(M(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(l.atomic){if(n){var s=l.find(r<0?1:-1),c=void 0;if((s=(r<0?l.inclusiveRight:l.inclusiveLeft)?Fi(e,s,-r,s&&s.line==t.line?o:null):s)&&s.line==t.line&&(c=L(s,n))&&(r<0?c<0:0<c))return Vi(e,s,t,r,i)}c=l.find(r<0?-1:1);return(c=(r<0?l.inclusiveLeft:l.inclusiveRight)?Fi(e,c,r,c.line==t.line?o:null):c)?Vi(e,c,t,r,i):null}}}return t}function Wi(e,t,n,r,i){r=r||1;return Vi(e,t,n,r,i)||!i&&Vi(e,t,n,r,!0)||Vi(e,t,n,-r,i)||!i&&Vi(e,t,n,-r,!0)||(e.cantEdit=!0,E(e.first,0))}function Fi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?D(e,E(t.line-1)):null:0<n&&t.ch==(r||A(e,t.line)).text.length?t.line<e.first+e.size-1?E(t.line+1,0):null:new E(t.line,t.ch+n)}function Bi(e){e.setSelection(E(e.firstLine(),0),E(e.lastLine()),fe)}function zi(i,e,t){var o={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return o.canceled=!0}};return t&&(o.update=function(e,t,n,r){e&&(o.from=D(i,e)),t&&(o.to=D(i,t)),n&&(o.text=n),r!==undefined&&(o.origin=r)}),M(i,"beforeChange",i,o),i.cm&&M(i.cm,"beforeChange",i.cm,o),o.canceled?null:{from:o.from,to:o.to,text:o.text,origin:o.origin}}function ji(e,t,n){if(e.cm){if(!e.cm.curOp)return _(e.cm,ji)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Mt(e,"beforeChange")||e.cm&&Mt(e.cm,"beforeChange"))||(t=zi(e,t,!0))){var r=Be&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=x(r,n)||(r=r||[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c,u,d,f=i[l];L(f.to,s.from)<0||0<L(f.from,s.to)||(c=[l,1],u=L(f.from,s.from),d=L(f.to,s.to),(u<0||!a.inclusiveLeft&&!u)&&c.push({from:f.from,to:s.from}),(0<d||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:f.to}),i.splice.apply(i,c),l+=c.length-3)}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;0<=i;--i)$i(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else $i(e,t)}}function $i(e,n){var t,r;1==n.text.length&&""==n.text[0]&&0==L(n.from,n.to)||(t=ui(e,n),Si(e,n,t,e.cm?e.cm.curOp.id:NaN),Xi(e,n,t,Ue(e,n)),r=[],gi(e,function(e,t){t||-1!=x(r,e.history)||(Ji(e.history,n),r.push(e.history)),Xi(e,n,null,Ue(e,n))}))}function Ui(i,o,e){if(!i.cm||!i.cm.state.suppressEdits||e){for(var a,t=i.history,n=i.sel,s="undo"==o?t.done:t.undone,r="undo"==o?t.undone:t.done,l=0;l<s.length&&(a=s[l],e?!a.ranges||a.equals(i.sel):a.ranges);l++);if(l!=s.length){for(t.lastOrigin=t.lastSelOrigin=null;(a=s.pop()).ranges;){if(Ni(a,r),e&&!a.equals(i.sel))return F(i,a,{clearRedo:!1});n=a}var c=[];Ni(n,r),r.push({changes:c,generation:t.generation}),t.generation=a.generation||++t.maxGeneration;for(var u=Mt(i,"beforeChange")||i.cm&&Mt(i.cm,"beforeChange"),d=a.changes.length-1;0<=d;--d){var f=function(e){var n=a.changes[e];if(n.origin=o,u&&!zi(i,n,!1))return s.length=0,{};c.push(wi(i,n));var t=e?ui(i,n):G(s),r=(Xi(i,n,t,Mi(i,n)),!e&&i.cm&&i.cm.scrollIntoView({from:n.from,to:li(n)}),[]);gi(i,function(e,t){t||-1!=x(r,e.history)||(Ji(e.history,n),r.push(e.history)),Xi(e,n,null,Mi(e,n))})}(d);if(f)return f.v}}}}function qi(e,t){if(0!=t&&(e.first+=t,e.sel=new V(ye(e.sel.ranges,function(e){return new W(E(e.anchor.line+t,e.anchor.ch),E(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){N(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Br(e.cm,r,"gutter")}}function Xi(e,t,n,r){if(e.cm&&!e.cm.curOp)return _(e.cm,Xi)(e,t,n,r);if(t.to.line<e.first)qi(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){t.from.line<e.first&&(qi(e,i=t.text.length-1-(e.first-t.from.line)),t={from:E(e.first,0),to:E(t.to.line+i,t.to.ch),text:[G(t.text)],origin:t.origin});var i=e.lastLine();if((t=t.to.line>i?{from:t.from,to:E(i,A(e,i).text.length),text:[t.text[0]],origin:t.origin}:t).removed=Ee(e,t.from,t.to),n=n||ui(e,t),e.cm){i=e.cm;var o=t;var a=r;var s=i.doc,l=i.display,c=o.from,u=o.to,d=!1,f=c.line,a=(i.options.lineWrapping||(f=S(rt(A(s,c.line))),s.iter(f,u.line+1,function(e){if(e==l.maxLine)return d=!0})),-1<s.sel.contains(o.from,o.to)&&Rt(i),mi(s,o,a,lr(i)),i.options.lineWrapping||(s.iter(f,c.line+o.text.length,function(e){var t=lt(e);t>l.maxLineLength&&(l.maxLine=e,l.maxLineLength=t,l.maxLineChanged=!0,d=!1)}),d&&(i.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;n<r;r--){var i=A(e,r).stateAfter;if(i&&(!(i instanceof Yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(s,c.line),Ur(i,400),o.text.length-(u.line-c.line)-1),f=(o.full?N(i):c.line!=u.line||1!=o.text.length||hi(i.doc,o)?N(i,c.line,u.line+1,a):Br(i,c.line,"text"),Mt(i,"changes")),s=Mt(i,"change");(s||f)&&(a={from:c,to:u,text:o.text,removed:o.removed,origin:o.origin},s&&C(i,"change",i,a),f&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(a));i.display.selForContextMenu=null}else mi(e,t,r);Ii(e,n,fe)}}function Ki(e,t,n,r,i){var o;L(r=r||n,n)<0&&(o=r,r=n,n=o),"string"==typeof t&&(t=e.splitLines(t)),ji(e,{from:n,to:r,text:t,origin:i})}function Yi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Qi(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)Yi(o.ranges[s].anchor,t,n,r),Yi(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=E(c.from.line+r,c.from.ch),c.to=E(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Ji(e,t){var n=t.from.line,r=t.to.line,t=t.text.length-(r-n)-1;Qi(e.done,n,r,t),Qi(e.undone,n,r,t)}function Zi(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=A(e,We(e,t)):i=S(t),null==i?null:(r(o,i)&&e.cm&&Br(e.cm,i,n),o)}function eo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function to(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}W.prototype.from=function(){return Ve(this.anchor,this.head)},W.prototype.to=function(){return _e(this.anchor,this.head)},W.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},eo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n,r=e,i=e+t;r<i;++r){var o=this.lines[r];this.height-=o.height,(n=o).parent=null,Xe(n),C(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},to.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n,r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),s=i.height;if(i.removeInner(e,a),this.height-=s-i.height,o==a&&(this.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}this.size-t<25&&(1<this.children.length||!(this.children[0]instanceof eo))&&(this.collapse(n=[]),this.children=[new eo(n)],this.children[0].parent=this)},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&50<i.lines.length){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new eo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t,n=new to(e.children.splice(e.children.length-5,5))}while(e.parent?(e.size-=n.size,e.height-=n.height,t=x(e.parent.children,e),e.parent.children.splice(t+1,0,n)):(((t=new to(e.children)).parent=e).children=[t,n],e=t),n.parent=e.parent,10<e.children.length);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var no=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ro(e,t,n){st(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Rr(e,n)}no.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=S(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=An(this);De(n,Math.max(0,n.height-o)),e&&(d(e,function(){ro(e,n,-o),Br(e,r,"widget")}),C(e,"lineWidgetCleared",e,this,r))}},no.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line,i=(this.height=null,An(this)-t);i&&(De(r,r.height+i),n&&d(n,function(){n.curOp.forceUpdate=!0,ro(n,r,i),C(n,"lineWidgetChanged",n,e,S(r))}))},Tt(no);var io=0,oo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++io};function ao(t,n,r,e,i){if(e&&e.shared)return p=t,o=n,a=r,l=i,(s=le(s=e)).shared=!1,c=[ao(p,o,a,s,l)],u=c[0],d=s.widgetNode,gi(p,function(e){d&&(s.widgetNode=d.cloneNode(!0)),c.push(ao(e,D(e,o),D(e,a),s,l));for(var t=0;t<e.linked.length;++t)if(e.linked[t].isParent)return;u=G(c)}),new so(c,u);var o,a,s,l,c,u,d;if(t.cm&&!t.cm.curOp)return _(t.cm,ao)(t,n,r,e,i);var f=new oo(t,i),p=L(n,r);if(e&&le(e,f,!1),!(0<p||0==p&&!1!==f.clearWhenEmpty)){if(f.replacedWith&&(f.collapsed=!0,f.widgetNode=ee("span",[f.replacedWith],"CodeMirror-widget"),e.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events","true"),e.insertLeft&&(f.widgetNode.insertLeft=!0)),f.collapsed){if(nt(t,n.line,n,r,f)||n.line!=r.line&&nt(t,r.line,n,r,f))throw new Error("Inserting collapsed marker partially overlapping an existing one");ze=!0}f.addToHistory&&Si(t,{from:n,to:r,origin:"markText"},t.sel,NaN);var h,m=n.line,g=t.cm;if(t.iter(m,r.line+1,function(e){var t;g&&f.collapsed&&!g.options.lineWrapping&&rt(e)==g.display.maxLine&&(h=!0),f.collapsed&&m!=n.line&&De(e,0),e=e,t=new je(f,m==n.line?n.ch:null,m==r.line?r.ch:null),e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e),++m}),f.collapsed&&t.iter(n.line,r.line+1,function(e){at(t,e)&&De(e,0)}),f.clearOnEnter&&P(f,"beforeCursorEnter",function(){return f.clear()}),f.readOnly&&(Be=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),f.collapsed&&(f.id=++io,f.atomic=!0),g){if(h&&(g.curOp.updateMaxLine=!0),f.collapsed)N(g,n.line,r.line+1);else if(f.className||f.title||f.startStyle||f.endStyle||f.css)for(var v=n.line;v<=r.line;v++)Br(g,v,"text");f.atomic&&Gi(g.doc),C(g,"markerAdded",g,f)}}return f}oo.prototype.clear=function(){if(!this.explicitlyCleared){var e,t=this.doc.cm,n=t&&!t.curOp;n&&Wr(t),Mt(this,"clear")&&(e=this.find())&&C(this,"clear",e.from,e.to);for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=$e(a.markedSpans,this);t&&!this.collapsed?Br(t,S(a),"text"):t&&(null!=s.to&&(i=S(a)),null!=s.from&&(r=S(a))),a.markedSpans=function(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n=n||[]).push(e[r]);return n}(a.markedSpans,s),null==s.from&&this.collapsed&&!at(this.doc,a)&&t&&De(a,ir(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=rt(this.lines[l]),u=lt(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&N(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Gi(t.doc)),t&&C(t,"markerCleared",t,this,r,i),n&&Fr(t),this.parent&&this.parent.clear()}},oo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=$e(o.markedSpans,this);if(null!=a.from&&(n=E(t?o:S(o),a.from),-1==e))return n;if(null!=a.to&&(r=E(t?o:S(o),a.to),1==e))return r}return n&&{from:n,to:r}},oo.prototype.changed=function(){var n=this,r=this.find(-1,!0),i=this,o=this.doc.cm;r&&o&&d(o,function(){var e=r.line,t=S(r.line),t=Vn(o,t);t&&($n(t),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,at(i.doc,e)||null==i.height||(t=i.height,i.height=null,(t=An(i)-t)&&De(e,e.height+t)),C(o,"markerChanged",o,n)})},oo.prototype.attachLine=function(e){var t;this.lines.length||!this.doc.cm||(t=this.doc.cm.curOp).maybeHiddenMarkers&&-1!=x(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this),this.lines.push(e)},oo.prototype.detachLine=function(e){this.lines.splice(x(this.lines,e),1),!this.lines.length&&this.doc.cm&&((e=this.doc.cm.curOp).maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)},Tt(oo);var so=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function lo(e){return e.findMarks(E(e.first,0),e.clipPos(E(e.lastLine())),function(e){return e.parent})}so.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();C(this,"clear")}},so.prototype.find=function(e,t){return this.primary.find(e,t)},Tt(so);var co=0,h=function(e,t,n,r,i){if(!(this instanceof h))return new h(e,t,n,r,i);null==n&&(n=0),to.call(this,[new eo([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1;n=E(this.modeFrontier=this.highlightFrontier=n,0);this.sel=si(n),this.history=new bi(null),this.id=++co,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),mi(this,{from:n,to:n,text:e}),F(this,si(n),fe)},uo=((h.prototype=we(to.prototype,{constructor:h,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Le(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:i(function(e){var t=E(this.first,0),n=this.first+this.size-1;ji(this,{from:t,to:E(n,A(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),F(this,si(t),fe)}),replaceRange:function(e,t,n,r){Ki(this,e,t=D(this,t),n=n?D(this,n):t,r)},getRange:function(e,t,n){e=Ee(this,D(this,e),D(this,t));return!1===n?e:e.join(n||this.lineSeparator())},getLine:function(e){e=this.getLineHandle(e);return e&&e.text},getLineHandle:function(e){if(Oe(this,e))return A(this,e)},getLineNumber:S,getLineHandleVisualStart:function(e){return rt(e="number"==typeof e?A(this,e):e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return D(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:i(function(e,t,n){Pi(this,D(this,"number"==typeof e?E(e,t||0):e),null,n)}),setSelection:i(function(e,t,n){Pi(this,D(this,e),D(this,t||e),n)}),extendSelection:i(function(e,t,n){Ei(this,D(this,e),t&&D(this,t),n)}),extendSelections:i(function(e,t){Li(this,Fe(this,e),t)}),extendSelectionsBy:i(function(e,t){Li(this,Fe(this,ye(this.sel.ranges,e)),t)}),setSelections:i(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new W(D(this,e[i].anchor),D(this,e[i].head));F(this,ai(r,t=null==t?Math.min(e.length-1,this.sel.primIndex):t),n)}}),addSelection:i(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new W(D(this,e),D(this,t||e))),F(this,ai(r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n=0;n<t.length;n++)var r=Ee(this,t[n].from(),t[n].to()),i=i?i.concat(r):r;return!1===e?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ee(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:i(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var t=t&&"end"!=t&&function(e,t,n){for(var r=[],i=c=E(e.first,0),o=0;o<t.length;o++){var a=t[o],s=di(a.from,c,i),l=di(li(a),c,i),c=a.to,i=l;"around"==n?(a=L((a=e.sel.ranges[o]).head,a.anchor)<0,r[o]=new W(a?l:s,a?s:l)):r[o]=new W(s,s)}return new V(r,e.sel.primIndex)}(this,r,t),s=r.length-1;0<=s;s--)ji(this,r[s]);t?Oi(this,t):this.cm&&Mr(this.cm)}),undo:i(function(){Ui(this,"undo")}),redo:i(function(){Ui(this,"redo")}),undoSelection:i(function(){Ui(this,"undo",!0)}),redoSelection:i(function(){Ui(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new bi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ti(this.history.done),undone:Ti(this.history.undone)}},setHistory:function(e){var t=this.history=new bi(this.history.maxGeneration);t.done=Ti(e.done.slice(0),null,!0),t.undone=Ti(e.undone.slice(0),null,!0)},setGutterMarker:i(function(e,n,r){return Zi(this,e,"gutter",function(e){var t=e.gutterMarkers||(e.gutterMarkers={});return!(t[n]=r)&&Ne(t)&&(e.gutterMarkers=null),1})}),clearGutter:i(function(t){var n=this;this.iter(function(e){e.gutterMarkers&&e.gutterMarkers[t]&&Zi(n,e,"gutter",function(){return e.gutterMarkers[t]=null,Ne(e.gutterMarkers)&&(e.gutterMarkers=null),1})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!Oe(this,e))return null;if(!(e=A(this,t=e)))return null}else if(null==(t=S(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:i(function(e,n,r){return Zi(this,e,"gutter"==n?"gutter":"class",function(e){var t="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(e[t]){if(Q(r).test(e[t]))return;e[t]+=" "+r}else e[t]=r;return 1})}),removeLineClass:i(function(e,o,a){return Zi(this,e,"gutter"==o?"gutter":"class",function(e){var t="text"==o?"textClass":"background"==o?"bgClass":"gutter"==o?"gutterClass":"wrapClass",n=e[t];if(n){if(null==a)e[t]=null;else{var r=n.match(Q(a));if(!r)return;var i=r.index+r[0].length;e[t]=n.slice(0,r.index)+(r.index&&i!=n.length?" ":"")+n.slice(i)||null}return 1}})}),addLineWidget:i(function(e,t,n){return e=e,i=new no(r=this,t,n),(o=r.cm)&&i.noHScroll&&(o.display.alignWidgets=!0),Zi(r,e,"widget",function(e){var t=e.widgets||(e.widgets=[]);return null==i.insertAt?t.push(i):t.splice(Math.min(t.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!at(r,e)&&(t=st(e)<r.scrollTop,De(e,e.height+An(i)),t&&Rr(o,i.height),o.curOp.forceUpdate=!0),1}),C(o,"lineWidgetAdded",o,i,"number"==typeof e?e:S(e)),i;var r,i,o}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ao(this,D(this,e),D(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){t={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ao(this,e=D(this,e),e,t,"bookmark")},findMarksAt:function(e){var t=[],n=A(this,(e=D(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,a){i=D(this,i),o=D(this,o);var s=[],l=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n<t.length;n++){var r=t[n];null!=r.to&&l==i.line&&i.ch>=r.to||null==r.from&&l!=i.line||null!=r.from&&l==o.line&&r.from>=o.ch||a&&!a(r.marker)||s.push(r.marker.parent||r.marker)}++l}),s},getAllMarks:function(){var r=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;n<t.length;++n)null!=t[n].from&&r.push(t[n].marker)}),r},posFromIndex:function(t){var n,r=this.first,i=this.lineSeparator().length;return this.iter(function(e){e=e.text.length+i;if(t<e)return n=t,!0;t-=e,++r}),D(this,E(r,n))},indexFromPos:function(e){var t,n=(e=D(this,e)).ch;return e.line<this.first||e.ch<0?0:(t=this.lineSeparator().length,this.iter(this.first,e.line,function(e){n+=e.text.length+t}),n)},copy:function(e){var t=new h(Le(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){for(var t=this.first,n=this.first+this.size,n=(null!=(e=e||{}).from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to),new h(Le(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction)),r=(e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],n),i=lo(this),o=0;o<i.length;o++){var a=i[o],s=a.find(),l=r.clipPos(s.from),s=r.clipPos(s.to);L(l,s)&&(l=ao(r,l,s,a.primary,a.primary.type),a.markers.push(l),l.parent=a)}return n},unlinkDoc:function(e){var t;if(e instanceof g&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n)if(this.linked[n].doc==e){this.linked.splice(n,1),e.unlinkDoc(this),r=o=void 0;for(var o=lo(this),r=0;r<o.length;r++)!function(e){var t=o[e],n=[t.primary.doc];gi(t.primary.doc,function(e){return n.push(e)});for(var r=0;r<t.markers.length;r++){var i=t.markers[r];-1==x(n,i.doc)&&(i.parent=null,t.markers.splice(r--,1))}}(r);break}e.history==this.history&&(t=[e.id],gi(e,function(e){return t.push(e.id)},!0),e.history=new bi(null),e.history.done=Ti(this.history.done,t),e.history.undone=Ti(this.history.undone,t))},iterLinkedDocs:function(e){gi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Gt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:i(function(e){var t;(e="rtl"!=e?"ltr":e)!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&d(t=this.cm,function(){yi(t),N(t)}))})})).eachLine=h.prototype.iter,0);function fo(e){var r=this;if(po(r),!I(r,e)&&!En(r.display,e)){H(e),v&&(uo=+new Date);var i=ur(r,e,!0),t=e.dataTransfer.files;if(i&&!r.isReadOnly())if(t&&t.length&&window.FileReader&&window.File)for(var o=t.length,a=Array(o),s=0,n=0;n<o;++n)!function(e,t){var n;r.options.allowDropFileTypes&&-1==x(r.options.allowDropFileTypes,e.type)||((n=new FileReader).onload=_(r,function(){var e=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[t]=e,++s==o&&(e={from:i=D(r.doc,i),to:i,text:r.doc.splitLines(a.join(r.doc.lineSeparator())),origin:"paste"},ji(r.doc,e),Oi(r.doc,si(i,li(e))))}),n.readAsText(e))}(t[n],n);else if(r.state.draggingText&&-1<r.doc.sel.contains(i))r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);else try{var l,c=e.dataTransfer.getData("Text");if(c){if(r.state.draggingText&&!r.state.draggingText.copy&&(l=r.listSelections()),Ii(r.doc,si(i,i)),l)for(var u=0;u<l.length;++u)Ki(r.doc,"",l[u].anchor,l[u].head,"drag");r.replaceSelection(c,"around","paste"),r.display.input.focus()}}catch(e){}}}function po(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ho(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}var mo=!1;function go(){var e;mo||(P(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,ho(vo)},100))}),P(window,"blur",function(){return ho(br)}),mo=!0)}function vo(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}for(var yo={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},bo=0;bo<10;bo++)yo[bo+48]=yo[bo+96]=String(bo);for(var wo=65;wo<=90;wo++)yo[wo]=String.fromCharCode(wo);for(var xo=1;xo<=12;xo++)yo[xo+111]=yo[xo+63235]="F"+xo;var So={};function Co(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),e=r?"Shift-"+e:e}function No(e){var t,n,r={};for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(/^(name|fallthrough|(de|at)tach)$/.test(t))continue;if("..."==i){delete e[t];continue}for(var o=ye(t.split(" "),Co),a=0;a<o.length;a++){var s=void 0,l=void 0,s=a==o.length-1?(l=o.join(" "),i):(l=o.slice(0,a+1).join(" "),"..."),c=r[l];if(c){if(c!=s)throw new Error("Inconsistent bindings for "+l)}else r[l]=s}delete e[t]}for(n in r)e[n]=r[n];return e}function ko(e,t,n,r){var i=(t=Ao(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ko(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=ko(e,t.fallthrough[o],n,r);if(a)return a}}}function Ro(e){e="string"==typeof e?e:yo[e.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Mo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(K?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(K?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),e=!n&&t.shiftKey&&"Shift"!=r?"Shift-"+e:e}function To(e,t){var n;return(!B||34!=e.keyCode||!e["char"])&&(null!=(n=yo[e.keyCode])&&!e.altGraphKey&&Mo(n,e,t))}function Ao(e){return"string"==typeof e?So[e]:e}function Eo(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&L(o.from,G(r).to)<=0;){var a=r.pop();if(L(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}d(t,function(){for(var e=r.length-1;0<=e;e--)Ki(t.doc,"",r[e].from,r[e].to,"+delete");Mr(t)})}So.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},So.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},So.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},So.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},So["default"]=q?So.macDefault:So.pcDefault;var Lo={selectAll:Bi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),fe)},killLine:function(n){return Eo(n,function(e){var t;return e.empty()?(t=A(n.doc,e.head.line).text.length,e.head.ch==t&&e.head.line<n.lastLine()?{from:e.head,to:E(e.head.line+1,0)}:{from:e.head,to:E(e.head.line,t)}):{from:e.from(),to:e.to()}})},deleteLine:function(t){return Eo(t,function(e){return{from:E(e.from().line,0),to:D(t.doc,E(e.to().line+1,0))}})},delLineLeft:function(e){return Eo(e,function(e){return{from:E(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(n){return Eo(n,function(e){var t=n.charCoords(e.head,"div").top+5;return{from:n.coordsChar({left:0,top:t},"div"),to:e.from()}})},delWrappedLineRight:function(n){return Eo(n,function(e){var t=n.charCoords(e.head,"div").top+5,t=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:t},"div");return{from:e.from(),to:t}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(E(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(E(e.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return Do(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return Po(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(e){return t=i,e=e.head.line,n=A(t.doc,e),(r=function(e){for(var t;t=tt(e);)e=t.find(1,!0).line;return e}(n))!=n&&(e=S(r)),St(!0,t,n,e,-1);var t,n,r},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){e=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:e},"div")},he)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){e=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:e},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(e){var t=n.cursorCoords(e.head,"div").top+5,t=n.coordsChar({left:0,top:t},"div");return t.ch<n.getLine(t.line).search(/\S/)?Po(n,e.head):t},he)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),o=T(e.getLine(o.line),o.ch,r);t.push(ve(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(a){return d(a,function(){for(var e,t,n,r=a.listSelections(),i=[],o=0;o<r.length;o++)r[o].empty()&&(e=r[o].head,(t=A(a.doc,e.line).text)&&(0<(e=e.ch==t.length?new E(e.line,e.ch-1):e).ch?(e=new E(e.line,e.ch+1),a.replaceRange(t.charAt(e.ch-1)+t.charAt(e.ch-2),E(e.line,e.ch-2),e,"+transpose")):e.line>a.doc.first&&((n=A(a.doc,e.line-1).text)&&(e=new E(e.line,1),a.replaceRange(t.charAt(0)+a.doc.lineSeparator()+n.charAt(n.length-1),E(e.line-1,n.length-1),e,"+transpose")))),i.push(new W(e,e)));a.setSelections(i)})},newlineAndIndent:function(r){return d(r,function(){for(var e=(t=r.listSelections()).length-1;0<=e;e--)r.replaceRange(r.doc.lineSeparator(),t[e].anchor,t[e].head,"+input");for(var t=r.listSelections(),n=0;n<t.length;n++)r.indentLine(t[n].from().line,null,!0);Mr(r)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Do(e,t){var n=A(e.doc,t),r=rt(n);return St(!0,e,r,t=r!=n?S(r):t,1)}function Po(e,t){var n=Do(e,t.line),r=A(e.doc,n.line),e=bt(r,e.doc.direction);return e&&0!=e[0].level?n:(e=Math.max(0,r.text.search(/\S/)),r=t.line==n.line&&t.ch<=e&&t.ch,E(n.line,r?0:e,n.sticky))}function Oo(e,t,n){if("string"==typeof t&&!(t=Lo[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=de}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var Io=new ce;function Ho(e,t,n,r){var i=e.state.keySeq;if(i){if(Ro(t))return"handled";Io.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}r=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=ko(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&ko(t,e.options.extraKeys,n,e)||ko(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==r&&(e.state.keySeq=t),"handled"==r&&C(e,"keyHandled",e,t,n),"handled"!=r&&"multi"!=r||(H(n),mr(e)),i&&!r&&/\'$/.test(t)?(H(n),!0):!!r}function Go(t,e){var n=To(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?Ho(t,"Shift-"+n,e,function(e){return Oo(t,e,!0)})||Ho(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return Oo(t,e)}):Ho(t,n,e,function(e){return Oo(t,e)}))}var _o=null;function Vo(e){var t,n,r;function i(e){18!=e.keyCode&&e.altKey||(J(r,"CodeMirror-crosshair"),O(document,"keyup",i),O(document,"mouseover",i))}this.curOp.focus=ne(),I(this,e)||(v&&y<11&&27==e.keyCode&&(e.returnValue=!1),t=e.keyCode,this.display.shift=16==t||e.shiftKey,n=Go(this,e),B&&(_o=n?t:null,!n&&88==t&&!Vt&&(q?e.metaKey:e.ctrlKey)&&this.replaceSelection("",null,"cut")),18!=t||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||(re(r=this.display.lineDiv,"CodeMirror-crosshair"),P(document,"keyup",i),P(document,"mouseover",i)))}function Wo(e){16==e.keyCode&&(this.doc.sel.shift=!1),I(this,e)}function Fo(e){var t,n,r;En(this.display,e)||I(this,e)||e.ctrlKey&&!e.altKey||q&&e.metaKey||(n=e.keyCode,t=e.charCode,B&&n==_o?(_o=null,H(e)):B&&(!e.which||e.which<10)&&Go(this,e)||"\b"==(n=String.fromCharCode(null==t?n:t))||Ho(r=this,"'"+n+"'",e,function(e){return Oo(r,e,!0)})||this.display.input.onKeyPress(e))}var Bo,zo,jo=function(e,t,n){this.time=e,this.pos=t,this.button=n};function $o(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h=this,m=h.display;I(h,e)||m.activeTouch&&m.input.supportsTouch()||(m.input.ensurePolled(),m.shift=e.shiftKey,En(m,e)?w||(m.scroller.draggable=!1,setTimeout(function(){return m.scroller.draggable=!0},100)):Xo(h,e)||(t=ur(h,e),n=Pt(e),p=t?(d=t,f=n,p=+new Date,zo&&zo.compare(p,d,f)?(Bo=zo=null,"triple"):Bo&&Bo.compare(p,d,f)?(zo=new jo(p,d,f),Bo=null,"double"):(Bo=new jo(p,d,f),zo=null,"single")):"single",window.focus(),1==n&&h.state.selectingText&&h.state.selectingText(e),t&&(u=t,d="Click","double"==(f=p)?d="Double"+d:"triple"==f&&(d="Triple"+d),Ho(l=h,Mo(d=(1==(c=n)?"Left":2==c?"Middle":"Right")+d,e),e,function(e){if(!(e="string"==typeof e?Lo[e]:e))return!1;var t=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),t=e(l,u)!=de}finally{l.state.suppressEdits=!1}return t}))||(1==n?t?(c=h,r=t,i=p,o=e,v?setTimeout(se(gr,c),0):c.curOp.focus=ne(),a=function(e,t,n){var r=e.getOption("configureMouse"),r=r?r(e,t,n):{};{var i;null==r.unit&&(i=X?n.shiftKey&&n.metaKey:n.altKey,r.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line")}return null!=r.extend&&!e.doc.extend||(r.extend=e.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=q?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(q?n.altKey:n.ctrlKey)),r}(c,i,o),s=c.doc.sel,(c.options.dragDrop&&Ht&&!c.isReadOnly()&&"single"==i&&-1<(i=s.contains(r))&&(L((i=s.ranges[i]).from(),r)<0||0<r.xRel)&&(0<L(i.to(),r)||r.xRel<0)?function(t,n,r,i){var o=t.display,a=!1,s=_(t,function(e){w&&(o.scroller.draggable=!1),t.state.draggingText=!1,O(document,"mouseup",s),O(document,"mousemove",l),O(o.scroller,"dragstart",c),O(o.scroller,"drop",s),a||(H(e),i.addNew||Ei(t.doc,r,null,null,i.extend),w||v&&9==y?setTimeout(function(){document.body.focus(),o.input.focus()},20):o.input.focus())}),l=function(e){a=a||10<=Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)},c=function(){return a=!0};w&&(o.scroller.draggable=!0),(t.state.draggingText=s).copy=!i.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),P(document,"mouseup",s),P(document,"mousemove",l),P(o.scroller,"dragstart",c),P(o.scroller,"drop",s),vr(t),setTimeout(function(){return o.input.focus()},20)}:function(g,e,v,y){var b=g.display,w=g.doc;H(e);var x,S,C=w.sel,t=C.ranges;y.addNew&&!y.extend?(S=w.sel.contains(v),x=-1<S?t[S]:new W(v,v)):(x=w.sel.primary(),S=w.sel.primIndex),"rectangle"==y.unit?(y.addNew||(x=new W(v,v)),v=ur(g,e,!0,!0),S=-1):(e=Uo(g,v,y.unit),x=y.extend?Ai(x,e.anchor,e.head,y.extend):e);y.addNew?-1==S?(S=t.length,F(w,ai(t.concat([x]),S),{scroll:!1,origin:"*mouse"})):1<t.length&&t[S].empty()&&"char"==y.unit&&!y.extend?(F(w,ai(t.slice(0,S).concat(t.slice(S+1)),0),{scroll:!1,origin:"*mouse"}),C=w.sel):Di(w,S,x,pe):(F(w,new V([x],S=0),pe),C=w.sel);var N=v;var k=b.wrapper.getBoundingClientRect(),R=0;function M(e){var t=++R,n=ur(g,e,!0,"rectangle"==y.unit);if(n)if(0!=L(n,N)){if(g.curOp.focus=ne(),0!=L(N,h=n))if(N=h,"rectangle"==y.unit){for(var r=[],i=g.options.tabSize,o=T(A(w,v.line).text,v.ch,i),a=T(A(w,h.line).text,h.ch,i),s=Math.min(o,a),l=Math.max(o,a),c=Math.min(v.line,h.line),u=Math.min(g.lastLine(),Math.max(v.line,h.line));c<=u;c++){var d=A(w,c).text,f=me(d,s,i);s==l?r.push(new W(E(c,f),E(c,f))):d.length>f&&r.push(new W(E(c,f),E(c,me(d,l,i))))}r.length||r.push(new W(v,v)),F(w,ai(C.ranges.slice(0,S).concat(r),S),{origin:"*mouse",scroll:!1}),g.scrollIntoView(h)}else{var p,o=x,a=Uo(g,h,y.unit),h=o.anchor,h=0<L(a.anchor,h)?(p=a.head,Ve(o.from(),a.anchor)):(p=a.anchor,_e(o.to(),a.head)),o=C.ranges.slice(0);o[S]=new W(D(w,h),p),F(w,ai(o,S),pe)}a=Sr(b,w);(n.line>=a.to||n.line<a.from)&&setTimeout(_(g,function(){R==t&&M(e)}),150)}else{var m=e.clientY<k.top?-20:e.clientY>k.bottom?20:0;m&&setTimeout(_(g,function(){R==t&&(b.scroller.scrollTop+=m,M(e))}),50)}}function n(e){g.state.selectingText=!1,R=Infinity,H(e),b.input.focus(),O(document,"mousemove",r),O(document,"mouseup",i),w.history.lastSelOrigin=null}var r=_(g,function(e){(Pt(e)?M:n)(e)}),i=_(g,n);g.state.selectingText=i,P(document,"mousemove",r),P(document,"mouseup",i)})(c,o,r,a)):Dt(e)==m.scroller&&H(e):2==n?(t&&Ei(h.doc,t),setTimeout(function(){return m.input.focus()},20)):3==n&&(Y?Ko(h,e):vr(h)))))}function Uo(e,t,n){return"char"==n?new W(t,t):"word"==n?e.findWordAt(t):"line"==n?new W(E(t.line,0),D(e.doc,E(t.line+1,0))):(e=n(e,t),new W(e.from,e.to))}function qo(e,t,n,r){var i,o;try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&H(t);var a=e.display,r=a.lineDiv.getBoundingClientRect();if(o>r.bottom||!Mt(e,n))return Et(t);o-=r.top-a.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var l=a.gutters.childNodes[s];if(l&&l.getBoundingClientRect().right>=i)return M(e,n,e,Pe(e.doc,o),e.options.gutters[s],t),Et(t)}}function Xo(e,t){return qo(e,t,"gutterClick",!0)}function Ko(e,t){var n,r;En(e.display,t)||(r=t,Mt(n=e,"gutterContextMenu")&&qo(n,r,"gutterContextMenu",!1)||I(e,t,"contextmenu")||e.display.input.onContextMenu(t))}function Yo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qn(e)}jo.prototype.compare=function(e,t,n){return this.time+400>e&&0==L(t,this.pos)&&n==this.button};var Qo={toString:function(){return"CodeMirror.Init"}},Jo={},Zo={};function ea(e){ei(e),N(e),Cr(e)}function ta(e,t,n){!t!=!(n&&n!=Qo)&&(n=e.display.dragFunctions,(t=t?P:O)(e.display.scroller,"dragstart",n.start),t(e.display.scroller,"dragenter",n.enter),t(e.display.scroller,"dragover",n.over),t(e.display.scroller,"dragleave",n.leave),t(e.display.scroller,"drop",n.drop))}function na(e){e.options.lineWrapping?(re(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(J(e.display.wrapper,"CodeMirror-wrap"),ct(e)),cr(e),N(e),qn(e),setTimeout(function(){return Ir(e)},100)}function g(e,t){var n=this;if(!(this instanceof g))return new g(e,t);this.options=t=t?le(t):{},le(Jo,t,!1),ti(t);var r,i,o,a,s,l=t.value,c=("string"==typeof l&&(l=new h(l,t.mode,null,t.lineSeparator,t.direction)),this.doc=l,new g.inputStyles[t.inputStyle](this)),e=this.display=new Ae(e,l,c);for(r in ei(e.wrapper.CodeMirror=this),Yo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_r(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},t.autofocus&&!U&&e.input.focus(),v&&y<11&&setTimeout(function(){return n.display.input.reset(!0)},20),o=(i=this).display,P(o.scroller,"mousedown",_(i,$o)),P(o.scroller,"dblclick",v&&y<11?_(i,function(e){var t;I(i,e)||(!(t=ur(i,e))||Xo(i,e)||En(i.display,e)||(H(e),e=i.findWordAt(t),Ei(i.doc,e.anchor,e.head)))}):function(e){return I(i,e)||H(e)}),Y||P(o.scroller,"contextmenu",function(e){return Ko(i,e)}),s={end:0},P(o.scroller,"touchstart",function(e){var t;I(i,e)||function(e){if(1==e.touches.length)return(e=e.touches[0]).radiusX<=1&&e.radiusY<=1}(e)||(o.input.ensurePolled(),clearTimeout(a),t=+new Date,o.activeTouch={start:t,moved:!1,prev:t-s.end<=300?s:null},1==e.touches.length&&(o.activeTouch.left=e.touches[0].pageX,o.activeTouch.top=e.touches[0].pageY))}),P(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),P(o.scroller,"touchend",function(e){var t,n=o.activeTouch;n&&!En(o,e)&&null!=n.left&&!n.moved&&new Date-n.start<300&&(t=i.coordsChar(o.activeTouch,"page"),n=!n.prev||d(n,n.prev)?new W(t,t):!n.prev.prev||d(n,n.prev.prev)?i.findWordAt(t):new W(E(t.line,0),D(i.doc,E(t.line+1,0))),i.setSelection(n.anchor,n.head),i.focus(),H(e)),u()}),P(o.scroller,"touchcancel",u),P(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Lr(i,o.scroller.scrollTop),Pr(i,o.scroller.scrollLeft,!0),M(i,"scroll",i))}),P(o.scroller,"mousewheel",function(e){return oi(i,e)}),P(o.scroller,"DOMMouseScroll",function(e){return oi(i,e)}),P(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(e){I(i,e)||Lt(e)},over:function(e){var t,n;I(i,e)||((n=ur(t=i,n=e))&&(hr(t,n,n=document.createDocumentFragment()),t.display.dragCursor||(t.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),b(t.display.dragCursor,n)),Lt(e))},start:function(e){var t,n;t=i,e=e,v&&(!t.state.draggingText||+new Date-uo<100)?Lt(e):I(t,e)||En(t.display,e)||(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!z&&((n=R("img",null,null,"position: fixed; left: 0; top: 0;")).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),B&&n.parentNode.removeChild(n)))},drop:_(i,fo),leave:function(e){I(i,e)||po(i)}},c=o.input.getField(),P(c,"keyup",function(e){return Wo.call(i,e)}),P(c,"keydown",_(i,Vo)),P(c,"keypress",_(i,Fo)),P(c,"focus",function(e){return yr(i,e)}),P(c,"blur",function(e){return br(i,e)}),go(),Wr(this),this.curOp.forceUpdate=!0,vi(this,l),t.autofocus&&!U||this.hasFocus()?setTimeout(se(yr,this),20):br(this),Zo)Zo.hasOwnProperty(r)&&Zo[r](n,t[r],Qo);function u(){o.activeTouch&&(a=setTimeout(function(){return o.activeTouch=null},1e3),(s=o.activeTouch).end=+new Date)}function d(e,t){var n;return null==t.left||400<(n=t.left-e.left)*n+(n=t.top-e.top)*n}Nr(this),t.finishInit&&t.finishInit(this);for(var f=0;f<ra.length;++f)ra[f](n);Fr(this),w&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(e.lineDiv).textRendering&&(e.lineDiv.style.textRendering="auto")}g.defaults=Jo,g.optionHandlers=Zo;var ra=[];function ia(e,t,n,r){var i,o=e.doc,a=("smart"==(n=null==n?"add":n)&&(o.mode.indent?i=en(e,t).state:n="prev"),e.options.tabSize),s=A(o,t),l=T(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==de||150<u)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?T(A(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n);var u=Math.max(0,u),d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=ve(u-f)),d!=c)return Ki(o,d,E(t,0),E(t,c.length),"+input"),!(s.stateAfter=null);for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){m=E(t,c.length);Di(o,h,new W(m,m));break}}}g.defineInitHook=function(e){return ra.push(e)};var oa=null;function aa(e){oa=e}function sa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r=r||o.sel;var a,s=e.state.pasteIncoming||"paste"==i,l=Gt(t),c=null;if(s&&1<r.ranges.length)if(oa&&oa.text.join("\n")==t){if(r.ranges.length%oa.text.length==0)for(var c=[],u=0;u<oa.text.length;u++)c.push(o.splitLines(oa.text[u]))}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=ye(l,function(e){return[e]}));for(var d=r.ranges.length-1;0<=d;d--){var f=r.ranges[d],p=f.from(),h=f.to(),f=(f.empty()&&(n&&0<n?p=E(p.line,p.ch-n):e.state.overwrite&&!s?h=E(h.line,Math.min(A(o,h.line).text.length,h.ch+G(l).length)):oa&&oa.lineWise&&oa.text.join("\n")==t&&(p=h=E(p.line,0))),a=e.curOp.updateInput,{from:p,to:h,text:c?c[d%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming?"cut":"+input")});ji(e.doc,f),C(e,"inputRead",e,f)}t&&!s&&ca(e,t),Mr(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function la(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");return n&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||d(t,function(){return sa(t,n,0,null,"paste")}),1)}function ca(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0<=r;r--){var i=n.ranges[r];if(!(100<i.head.ch||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(-1<t.indexOf(o.electricChars.charAt(s))){a=ia(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(A(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=ia(e,i.head.line,"smart"));a&&C(e,"electricInput",e,i.head.line)}}}function ua(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,i={anchor:E(i,0),head:E(i+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function da(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function fa(){var e=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=R("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return w?e.style.width="1000px":e.setAttribute("wrap","off"),f&&(e.style.border="1px solid black"),da(e),t}function pa(n,r,i,e,o){var t=r,a=i,s=A(n,r.line);function l(e){var t;if(null==(t=o?Ct(n.cm,s,r,i):xt(s,r,i))){if(e||((e=r.line+i)<n.first||e>=n.first+n.size||(r=new E(e,r.ch,r.sticky),!(s=A(n,e)))))return;r=St(o,n.cm,s,r.line,i)}else r=t;return 1}if("char"==e)l();else if("column"==e)l(!0);else if("word"==e||"group"==e)for(var c=null,u="group"==e,d=n.cm&&n.cm.getHelper(r,"wordChars"),f=!0;!(i<0)||l(!f);f=!1){var p=s.text.charAt(r.ch)||"\n",p=Ce(p,d)?"w":u&&"\n"==p?"n":!u||/\s/.test(p)?null:"p";if(u&&!f&&(p=p||"s"),c&&c!=p){i<0&&(i=1,l(),r.sticky="after");break}if(p&&(c=p),0<i&&!l(!f))break}e=Wi(n,r,t,a,!0);return He(t,e)&&(e.hitSide=!0),e}function ha(e,t,n,r){var i,o,a,s=e.doc,l=t.left;for("page"==r?(o=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),o=Math.max(o-.5*ir(e.display),3),a=(0<n?t.bottom:t.top)+n*o):"line"==r&&(a=0<n?t.bottom+3:t.top-3);(i=nr(e,l,a)).outside;){if(n<0?a<=0:a>=s.height){i.hitSide=!0;break}a+=5*n}return i}e=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ma(e,t){var n,r,i=Vn(e,t.line);return!i||i.hidden?null:(n=Gn(i,i=A(e.doc,t.line),t.line),r="left",(i=bt(i,e.doc.direction))&&(r=dt(i,t.ch)%2?"right":"left"),(e=jn(n.map,t.ch,r)).offset="right"==e.collapse?e.end:e.start,e)}function ga(e,t){return t&&(e.bad=!0),e}function va(i,e,t,o,a){var n="",s=!1,l=i.doc.lineSeparator();function c(){s&&(n+=l,s=!1)}function u(e){e&&(c(),n+=e)}for(;function d(e){if(1==e.nodeType){var t=e.getAttribute("cm-text");if(null!=t)return u(t||e.textContent.replace(/\u200b/g,""));if(t=e.getAttribute("cm-marker"))return(t=i.findMarks(E(o,0),E(a+1,0),(r=+t,function(e){return e.id==r}))).length&&(t=t[0].find())&&u(Ee(i.doc,t.from,t.to).join(l));if("false"!=e.getAttribute("contenteditable")){(t=/^(pre|div|p)$/i.test(e.nodeName))&&c();for(var n=0;n<e.childNodes.length;n++)d(e.childNodes[n]);t&&(s=!0)}}else 3==e.nodeType&&u(e.nodeValue);var r}(e),e!=t;)e=e.nextSibling;return n}function ya(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return ga(e.clipPos(E(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r){var c=o;o=t;var a=n;var s=c.text.firstChild,l=!1;if(!o||!te(s,o))return ga(E(S(c.line),0),!0);if(o==s&&(l=!0,o=s.childNodes[a],a=0,!o))return ga(E(S(u=c.rest?G(c.rest):c.line),u.text.length),l);var u=3==o.nodeType?o:null,d=o;for(u||1!=o.childNodes.length||3!=o.firstChild.nodeType||(u=o.firstChild,a=a&&u.nodeValue.length);d.parentNode!=s;)d=d.parentNode;var f=c.measure,p=f.maps;function h(e,t,n){for(var r=-1;r<(p?p.length:0);r++)for(var i=r<0?f.map:p[r],o=0;o<i.length;o+=3){var a,s,l=i[o+2];if(l==e||l==t)return a=S(r<0?c.line:c.rest[r]),s=i[o]+n,E(a,s=n<0||l!=e?i[o+(n?1:0)]:s)}}var m=h(u,d,a);if(m)return ga(m,l);for(var g=d.nextSibling,v=u?u.nodeValue.length-a:0;g;g=g.nextSibling){if(m=h(g,g.firstChild,0))return ga(E(m.line,m.ch-v),l);v+=g.textContent.length}for(var y=d.previousSibling,b=a;y;y=y.previousSibling){if(m=h(y,y.firstChild,-1))return ga(E(m.line,m.ch+b),l);b+=y.textContent.length}return}}}e.prototype.init=function(e){var t=this,o=this,a=o.cm,s=o.div=e.lineDiv;function n(e){if(!I(a,e)){if(a.somethingSelected())aa({lineWise:!1,text:a.getSelections()}),"cut"==e.type&&a.replaceSelection("",null,"cut");else{if(!a.options.lineWiseCopyCut)return;var t=ua(a);aa({lineWise:!0,text:t.text}),"cut"==e.type&&a.operation(function(){a.setSelections(t.ranges,0,fe),a.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=oa.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var r=fa(),n=r.firstChild,i=(a.display.lineSpace.insertBefore(r,a.display.lineSpace.firstChild),n.value=oa.text.join("\n"),document.activeElement);ae(n),setTimeout(function(){a.display.lineSpace.removeChild(r),i.focus(),i==s&&o.showPrimarySelection()},50)}}da(s,a.options.spellcheck),P(s,"paste",function(e){I(a,e)||la(e,a)||y<=11&&setTimeout(_(a,function(){return t.updateFromDOM()}),20)}),P(s,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),P(s,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),P(s,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),P(s,"touchstart",function(){return o.forceCompositionEnd()}),P(s,"input",function(){t.composing||t.readFromDOMSoon()}),P(s,"copy",n),P(s,"cut",n)},e.prototype.prepareSelection=function(){var e=pr(this.cm,!1);return e.focus=this.cm.state.focused,e},e.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},e.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),n=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line<t.display.viewFrom)e.removeAllRanges();else{var i=ya(t,e.anchorNode,e.anchorOffset),o=ya(t,e.focusNode,e.focusOffset);if(!i||i.bad||!o||o.bad||0!=L(Ve(i,o),r)||0!=L(_e(i,o),n)){var i=t.display.view,o=r.line>=t.display.viewFrom&&ma(t,r)||{node:i[0].measure.map[2],offset:0},r=n.line<t.display.viewTo&&ma(t,n);if(r||(r={node:(i=(n=i[i.length-1].measure).maps?n.maps[n.maps.length-1]:n.map)[i.length-1],offset:i[i.length-2]-i[i.length-3]}),o&&r){var a,n=e.rangeCount&&e.getRangeAt(0);try{a=oe(o.node,o.offset,r.offset,r.node)}catch(l){}a&&(!k&&t.state.focused&&(e.collapse(o.node,o.offset),a.collapsed)||(e.removeAllRanges(),e.addRange(a)),n&&null==e.anchorNode?e.addRange(n):k&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},e.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},e.prototype.showMultipleSelections=function(e){b(this.cm.display.cursorDiv,e.cursors),b(this.cm.display.selectionDiv,e.selection)},e.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},e.prototype.selectionInEditor=function(){var e=window.getSelection();return!!e.rangeCount&&(e=e.getRangeAt(0).commonAncestorContainer,te(this.div,e))},e.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},e.prototype.blur=function(){this.div.blur()},e.prototype.getField=function(){return this.div},e.prototype.supportsTouch=function(){return!0},e.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():d(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},e.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},e.prototype.pollSelection=function(){var e,t,n,r;null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()&&(e=window.getSelection(),t=this.cm,$&&c&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return 1}(e.anchorNode)?(this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus()):this.composing||(this.rememberSelection(),n=ya(t,e.anchorNode,e.anchorOffset),r=ya(t,e.focusNode,e.focusOffset),n&&r&&d(t,function(){F(t.doc,si(n,r),fe),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})))},e.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t=this.cm,n=t.display,r=t.doc.sel.primary(),i=r.from(),r=r.to();if(0==i.ch&&i.line>t.firstLine()&&(i=E(i.line-1,A(t.doc,i.line-1).length)),r.ch==A(t.doc,r.line).text.length&&r.line<t.lastLine()&&(r=E(r.line+1,0)),i.line<n.viewFrom||r.line>n.viewTo-1)return!1;var o,a=i.line==n.viewFrom||0==(a=dr(t,i.line))?(e=S(n.view[0].line),n.view[0].node):(e=S(n.view[a].line),n.view[a-1].node.nextSibling),r=dr(t,r.line),r=r==n.view.length-1?(o=n.viewTo-1,n.lineDiv.lastChild):(o=S(n.view[r+1].line)-1,n.view[r+1].node.previousSibling);if(!a)return!1;for(var s=t.doc.splitLines(va(t,a,r,e,o)),l=Ee(t.doc,E(e,0),E(o,A(t.doc,o).text.length));1<s.length&&1<l.length;)if(G(s)==G(l))s.pop(),l.pop(),o--;else{if(s[0]!=l[0])break;s.shift(),l.shift(),e++}for(var c=0,u=0,d=s[0],f=l[0],p=Math.min(d.length,f.length);c<p&&d.charCodeAt(c)==f.charCodeAt(c);)++c;for(var h=G(s),m=G(l),g=Math.min(h.length-(1==s.length?c:0),m.length-(1==l.length?c:0));u<g&&h.charCodeAt(h.length-u-1)==m.charCodeAt(m.length-u-1);)++u;if(1==s.length&&1==l.length&&e==i.line)for(;c&&c>i.ch&&h.charCodeAt(h.length-u-1)==m.charCodeAt(m.length-u-1);)c--,u++;s[s.length-1]=h.slice(0,h.length-u).replace(/^\u200b+/,""),s[0]=s[0].slice(c).replace(/\u200b+$/,"");n=E(e,c),a=E(o,l.length?G(l).length-u:0);return 1<s.length||s[0]||L(n,a)?(Ki(t.doc,s,n,a,"+input"),!0):void 0},e.prototype.ensurePolled=function(){this.forceCompositionEnd()},e.prototype.reset=function(){this.forceCompositionEnd()},e.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},e.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},e.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||d(this.cm,function(){return N(e.cm)})},e.prototype.setUneditable=function(e){e.contentEditable="false"},e.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||_(this.cm,sa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},e.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},e.prototype.onContextMenu=function(){},e.prototype.resetPosition=function(){},e.prototype.needsContentAttribute=!0;var ba,wa,xa,Sa,Ca,t=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};function o(e,t,r,n){Sa.defaults[e]=t,r&&(Ca[e]=n?function(e,t,n){n!=Qo&&r(e,t,n)}:r)}t.prototype.init=function(t){var e=this,n=this,r=this.cm,i=this.wrapper=fa(),o=this.textarea=i.firstChild;function a(e){if(!I(r,e)){if(r.somethingSelected())aa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ua(r);aa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,fe):(n.prevInput="",o.value=t.text.join("\n"),ae(o))}"cut"==e.type&&(r.state.cutIncoming=!0)}}t.wrapper.insertBefore(i,t.wrapper.firstChild),f&&(o.style.width="0px"),P(o,"input",function(){v&&9<=y&&e.hasSelection&&(e.hasSelection=null),n.poll()}),P(o,"paste",function(e){I(r,e)||la(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),P(o,"cut",a),P(o,"copy",a),P(t.scroller,"paste",function(e){En(t,e)||I(r,e)||(r.state.pasteIncoming=!0,n.focus())}),P(t.lineSpace,"selectstart",function(e){En(t,e)||H(e)}),P(o,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),P(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},t.prototype.prepareSelection=function(){var e,t=this.cm,n=t.display,r=t.doc,i=pr(t);return t.options.moveInputWithCursor&&(t=Zn(t,r.sel.primary().head,"div"),r=n.wrapper.getBoundingClientRect(),e=n.lineDiv.getBoundingClientRect(),i.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,t.top+e.top-r.top)),i.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,t.left+e.left-r.left))),i},t.prototype.showSelection=function(e){var t=this.cm.display;b(t.cursorDiv,e.cursors),b(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},t.prototype.reset=function(e){var t,n;this.contextMenuPending||this.composing||((t=this.cm).somethingSelected()?(this.prevInput="",n=t.getSelection(),this.textarea.value=n,t.state.focused&&ae(this.textarea),v&&9<=y&&(this.hasSelection=n)):e||(this.prevInput=this.textarea.value="",v&&9<=y&&(this.hasSelection=null)))},t.prototype.getField=function(){return this.textarea},t.prototype.supportsTouch=function(){return!1},t.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!U||ne()!=this.textarea))try{this.textarea.focus()}catch(l){}},t.prototype.blur=function(){this.textarea.blur()},t.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},t.prototype.receivedFocus=function(){this.slowPoll()},t.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},t.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},t.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_t(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(v&&9<=y&&this.hasSelection===i||q&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203==o&&(r=r||""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,i.length);a<s&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return d(t,function(){sa(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),1e3<i.length||-1<i.indexOf("\n")?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},t.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},t.prototype.onKeyPress=function(){v&&9<=y&&(this.hasSelection=null),this.fastPoll()},t.prototype.onContextMenu=function(e){var n,r,t,i,o=this,a=o.cm,s=a.display,l=o.textarea,c=ur(a,e),u=s.scroller.scrollTop;function d(){var e,t;null!=l.selectionStart&&(t=""+((e=a.somethingSelected())?l.value:""),l.value="⇚",l.value=t,o.prevInput=e?"":"",l.selectionStart=1,l.selectionEnd=t.length,s.selForContextMenu=a.doc.sel)}function f(){var e,t;o.contextMenuPending=!1,o.wrapper.style.cssText=r,l.style.cssText=n,v&&y<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=u),null!=l.selectionStart&&((!v||y<9)&&d(),e=0,t=function(){s.selForContextMenu==a.doc.sel&&0==l.selectionStart&&0<l.selectionEnd&&""==o.prevInput?_(a,Bi)(a):e++<10?s.detectingSelectAll=setTimeout(t,500):(s.selForContextMenu=null,s.input.reset())},s.detectingSelectAll=setTimeout(t,200))}c&&!B&&(a.options.resetSelectionOnContextMenu&&-1==a.doc.sel.contains(c)&&_(a,F)(a.doc,si(c),fe),n=l.style.cssText,r=o.wrapper.style.cssText,o.wrapper.style.cssText="position: absolute",c=o.wrapper.getBoundingClientRect(),l.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(v?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",w&&(t=window.scrollY),s.input.focus(),w&&window.scrollTo(null,t),s.input.reset(),a.somethingSelected()||(l.value=o.prevInput=" "),o.contextMenuPending=!0,s.selForContextMenu=a.doc.sel,clearTimeout(s.detectingSelectAll),v&&9<=y&&d(),Y?(Lt(e),i=function(){O(window,"mouseup",i),setTimeout(f,20)},P(window,"mouseup",i)):setTimeout(f,50))},t.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},t.prototype.setUneditable=function(){},t.prototype.needsContentAttribute=!1,Ca=(Sa=g).optionHandlers,Sa.defineOption=o,Sa.Init=Qo,o("value","",function(e,t){return e.setValue(t)},!0),o("mode",null,function(e,t){e.doc.modeOption=t,fi(e)},!0),o("indentUnit",2,fi,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(e){pi(e),qn(e),N(e)},!0),o("lineSeparator",null,function(e,r){if(e.doc.lineSep=r){var i=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(r,t);if(-1==n)break;t=n+r.length,i.push(E(o,n))}o++});for(var t=i.length-1;0<=t;t--)Ki(e.doc,r,i[t],E(i[t].line,i[t].ch+r.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Qo&&e.refresh()}),o("specialCharPlaceholder",hn,function(e){return e.refresh()},!0),o("electricChars",!0),o("inputStyle",U?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),o("rtlMoveVisually",!s),o("wholeLineUpdateBefore",!0),o("theme","default",function(e){Yo(e),ea(e)},!0),o("keyMap","default",function(e,t,n){t=Ao(t),n=n!=Qo&&Ao(n);n&&n.detach&&n.detach(e,t),t.attach&&t.attach(e,n||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,na,!0),o("gutters",[],function(e){ti(e.options),ea(e)},!0),o("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?sr(e.display)+"px":"0",e.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(e){return Ir(e)},!0),o("scrollbarStyle","native",function(e){_r(e),Ir(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),o("lineNumbers",!1,function(e){ti(e.options),ea(e)},!0),o("firstLineNumber",1,ea,!0),o("lineNumberFormatter",function(e){return e},ea,!0),o("showCursorWhenSelecting",!1,fr,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("readOnly",!1,function(e,t){"nocursor"==t&&(br(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),o("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),o("dragDrop",!0,ta),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,fr,!0),o("singleCursorHeightPerLine",!0,fr,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,pi,!0),o("addModeClass",!1,pi,!0),o("pollInterval",100),o("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),o("historyEventDelay",1250),o("viewportMargin",10,function(e){return e.refresh()},!0),o("maxHighlightLength",1e4,pi,!0),o("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),o("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),o("autofocus",null),o("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),wa=(ba=g).optionHandlers,xa=ba.helpers={},ba.prototype={constructor:ba,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,wa.hasOwnProperty(e)&&_(this,wa[e])(this,t,r),M(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ao(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:r(function(e,t){var n=e.token?e:ba.getMode(this.options,e);if(n.startState)throw new Error("Overlays may not be stateful.");for(var r=this.state.overlays,n={mode:n,modeSpec:e,opaque:t&&t.opaque,priority:t&&t.priority||0},i=function(e){return e.priority},o=0,a=i(n);o<r.length&&i(r[o])<=a;)o++;r.splice(o,0,n),this.state.modeGen++,N(this)}),removeOverlay:r(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void N(this)}}),indentLine:r(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Oe(this.doc,e)&&ia(this,e,t,n)}),indentSelection:r(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(ia(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{for(var o=i.from(),i=i.to(),a=Math.max(n,o.line),n=Math.min(this.lastLine(),i.line-(i.ch?0:1))+1,s=a;s<n;++s)ia(this,s,e);i=this.doc.sel.ranges;0==o.ch&&t.length==i.length&&0<i[r].from().ch&&Di(this.doc,r,new W(o,i[r].to()),fe)}}}),getTokenAt:function(e,t){return an(this,e,t)},getLineTokens:function(e,t){return an(this,E(e),t,!0)},getTokenTypeAt:function(e){e=D(this.doc,e);var t,n=Zt(this,A(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=1+a}}e=t?t.indexOf("overlay "):-1;return e<0?t:0==e?null:t.slice(0,e-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?ba.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(xa.hasOwnProperty(t)){var r=xa[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var a=r[i[t][o]];a&&n.push(a)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(var s=0;s<r._global.length;s++){var l=r._global[s];l.pred(i,this)&&-1==x(n,l.val)&&n.push(l.val)}}return n},getStateAfter:function(e,t){var n=this.doc;return en(this,(e=We(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?D(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Jn(this,D(this.doc,e),t||"page")},coordsChar:function(e,t){return nr(this,(e=Qn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Qn(this,{top:e,left:0},t||"page").top,Pe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=!1,i="number"==typeof e?(i=this.doc.first+this.doc.size-1,e<this.doc.first?e=this.doc.first:i<e&&(e=i,r=!0),A(this.doc,e)):e;return Yn(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-st(i):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s=this.display,l=(e=Zn(this,D(this.doc,e))).bottom,c=e.left;t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r?l=e.top:"above"!=r&&"near"!=r||(a=Math.max(s.wrapper.clientHeight,this.doc.height),o=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth),("above"==r||e.bottom+t.offsetHeight>a)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=a&&(l=e.bottom),c+t.offsetWidth>o&&(c=o-t.offsetWidth)),t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(r=this,a={left:c,top:l,right:c+t.offsetWidth,bottom:l+t.offsetHeight},null!=(a=kr(r,a)).scrollTop&&Lr(r,a.scrollTop),null!=a.scrollLeft&&Pr(r,a.scrollLeft))},triggerOnKeyDown:r(Vo),triggerOnKeyPress:r(Fo),triggerOnKeyUp:Wo,triggerOnMouseDown:r($o),execCommand:function(e){if(Lo.hasOwnProperty(e))return Lo[e].call(null,this)},triggerElectric:r(function(e){ca(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=D(this.doc,e),a=0;a<t&&!(o=pa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:r(function(t,n){var r=this;this.extendSelectionsBy(function(e){return r.display.shift||r.doc.extend||e.empty()?pa(r.doc,e.head,t,n,r.options.rtlMoveVisually):t<0?e.from():e.to()},he)}),deleteH:r(function(n,r){var e=this.doc.sel,i=this.doc;e.somethingSelected()?i.replaceSelection("",null,"+delete"):Eo(this,function(e){var t=pa(i,e.head,n,r,!1);return n<0?{from:t,to:e.head}:{from:e.head,to:t}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=D(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=ha(this,l,i,n)).hitSide)break}return a},moveV:r(function(r,i){var o=this,a=this.doc,s=[],l=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(e){var t,n;return l?r<0?e.from():e.to():(t=Zn(o,e.head,"div"),null!=e.goalColumn&&(t.left=e.goalColumn),s.push(t.left),n=ha(o,t,r,i),"page"==i&&e==a.sel.primary()&&Rr(o,Jn(o,n,"div").top-t.top),n)},he),s.length)for(var e=0;e<a.sel.ranges.length;e++)a.sel.ranges[e].goalColumn=s[e]}),findWordAt:function(e){var t=A(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=Ce(o,i)?function(e){return Ce(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!Ce(e)};0<n&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new W(E(e.line,n),E(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||(((this.state.overwrite=!this.state.overwrite)?re:J)(this.display.cursorDiv,"CodeMirror-overwrite"),M(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ne()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:r(function(e,t){Tr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-On(this)-this.display.barHeight,width:e.scrollWidth-On(this)-this.display.barWidth,clientHeight:Hn(this),clientWidth:In(this)}},scrollIntoView:r(function(e,t){var n;null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:E(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?(t=e,Ar(n=this),n.curOp.scrollToPos=t):Er(this,e.from,e.to,e.margin)}),setSize:r(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e},i=(null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Un(this),this.display.viewFrom);this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Br(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,M(this,"refresh",this)}),operation:function(e){return d(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return Fr(this)},refresh:r(function(){var e=this.display.cachedTextHeight;N(this),this.curOp.forceUpdate=!0,qn(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),Jr(this),(null==e||.5<Math.abs(e-ir(this.display)))&&cr(this),M(this,"refresh",this)}),swapDoc:r(function(e){var t=this.doc;return t.cm=null,vi(this,e),qn(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,C(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Tt(ba),ba.registerHelper=function(e,t,n){xa.hasOwnProperty(e)||(xa[e]=ba[e]={_global:[]}),xa[e][t]=n},ba.registerGlobalHelper=function(e,t,n,r){ba.registerHelper(e,t,r),xa[e]._global.push({pred:n,val:r})};var Na,ka="iter insert remove copy getEditor constructor".split(" ");for(Na in h.prototype)h.prototype.hasOwnProperty(Na)&&x(ka,Na)<0&&(g.prototype[Na]=function(e){return function(){return e.apply(this.doc,arguments)}}(h.prototype[Na]));return Tt(h),g.inputStyles={textarea:t,contenteditable:e},g.defineMode=function(e){g.defaults.mode||"null"==e||(g.defaults.mode=e),function(e,t){2<arguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ft[e]=t}.apply(this,arguments)},g.defineMIME=function(e,t){Bt[e]=t},g.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),g.defineMIME("text/plain","null"),g.defineExtension=function(e,t){g.prototype[e]=t},g.defineDocExtension=function(e,t){h.prototype[e]=t},g.fromTextArea=function(t,e){var n;function r(){t.value=s.getValue()}if((e=e?le(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus&&(n=ne(),e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body),t.form&&(P(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var i=t.form,o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(l){}}e.finishInit=function(e){e.save=r,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,r(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(O(t.form,"submit",r),"function"==typeof t.form.submit&&(t.form.submit=o))}},t.style.display="none";var s=g(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return s},(n=g).off=O,n.on=P,n.wheelEventPixels=ii,n.Doc=h,n.splitLines=Gt,n.countColumn=T,n.findColumn=me,n.isWordChar=Se,n.Pass=de,n.signal=M,n.Line=cn,n.changeEnd=li,n.scrollbarModel=Gr,n.Pos=E,n.cmpPos=L,n.modes=Ft,n.mimeModes=Bt,n.resolveMode=zt,n.getMode=jt,n.modeExtensions=$t,n.extendMode=Ut,n.copyState=qt,n.startState=Kt,n.innerMode=Xt,n.commands=Lo,n.keyMap=So,n.keyName=To,n.isModifierKey=Ro,n.lookupKey=ko,n.normalizeKeyMap=No,n.StringStream=m,n.SharedTextMarker=so,n.TextMarker=oo,n.LineWidget=no,n.e_preventDefault=H,n.e_stopPropagation=At,n.e_stop=Lt,n.addClass=re,n.contains=te,n.rmClass=J,n.keyNames=yo,g.version="5.28.0",g}),!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(De){function Pe(e,t,n){return/^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}De.defineMode("javascript",function(e,u){var r,i,d=e.indentUnit,_=u.statementIndent,o=u.jsonld,a=u.json||o,c=u.typescript,V=u.wordCharacters||/[\w$\xa1-\uffff]/,W=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={"if":e("if"),"while":t,"with":t,"else":n,"do":n,"try":n,"finally":n,"return":r,"break":r,"continue":r,"new":e("new"),"delete":r,"throw":r,"debugger":r,"var":e("var"),"const":e("var"),"let":e("var"),"function":e("function"),"catch":e("catch"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":i,"typeof":i,"instanceof":i,"true":o,"false":o,"null":o,undefined:o,NaN:o,Infinity:o,"this":e("this"),"class":e("class"),"super":e("atom"),"yield":r,"export":e("export"),"import":e("import"),"extends":r,"await":r};if(c){var s,t={type:"variable",style:"type"},l={"interface":e("class"),"implements":r,namespace:r,module:e("module"),"enum":e("module"),"public":e("modifier"),"private":e("modifier"),"protected":e("modifier"),"abstract":e("modifier"),string:t,number:t,"boolean":t,any:t};for(s in l)a[s]=l[s]}return a}(),f=/[+\-*&%=<>!?|~^@]/,F=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function s(e,t,n){return r=e,i=n,t}function p(e,t){var i,n=e.next();if('"'==n||"'"==n)return t.tokenize=(i=n,function(e,t){var n,r=!1;if(o&&"@"==e.peek()&&e.match(F))return t.tokenize=p,s("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=i||r);)r=!r&&"\\"==n;return r||(t.tokenize=p),s("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return s("number","number");if("."==n&&e.match(".."))return s("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return s(n);if("="==n&&e.eat(">"))return s("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),s("number","number");if("0"==n&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),s("number","number");if("0"==n&&e.eat(/b/i))return e.eatWhile(/[01]/i),s("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),s("number","number");if("/"==n)return e.eat("*")?(t.tokenize=B)(e,t):e.eat("/")?(e.skipToEnd(),s("comment","comment")):Pe(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),s("regexp","string-2")):(e.eatWhile(f),s("operator","operator",e.current()));if("`"==n)return(t.tokenize=z)(e,t);if("#"==n)return e.skipToEnd(),s("error","error");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||e.eatWhile(f),s("operator","operator",e.current());if(V.test(n)){e.eatWhile(V);n=e.current();if("."!=t.lastType){if(W.propertyIsEnumerable(n))return s((t=W[n]).type,t.style,n);if("async"==n&&e.match(/^\s*[\(\w]/,!1))return s("async","keyword",n)}return s("variable","variable",n)}}function B(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return s("comment","comment")}function z(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=p;break}r=!r&&"\\"==n}return s("quasi","string-2",e.current())}function j(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n,r=e.string.indexOf("=>",e.start);if(!(r<0)){!c||(n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r)))&&(r=n.index);for(var i=0,o=!1,a=r-1;0<=a;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(0<=l&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(3<=l&&l<6)++i;else if(V.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var $={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0};function U(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function q(e,t,n,r,i){var o=e.cc;for(l.state=e,l.stream=i,l.marked=null,l.cc=o,l.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():a?S:x)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return l.marked||("variable"==n&&function(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return 1;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return 1}(e,r)?"variable-2":t)}}var l={state:null,column:null,marked:null,cc:null};function h(){for(var e=arguments.length-1;0<=e;e--)l.cc.push(arguments[e])}function m(){return h.apply(null,arguments),!0}function n(n){function e(e){for(var t=e;t;t=t.next)if(t.name==n)return 1}var t=l.state;l.marked="def",t.context?e(t.localVars)||(t.localVars={name:n,next:t.localVars}):e(t.globalVars)||u.globalVars&&(t.globalVars={name:n,next:t.globalVars})}var t={name:"this",next:{name:"arguments"}};function g(){l.state.context={prev:l.state.context,vars:l.state.localVars},l.state.localVars=t}function v(){l.state.localVars=l.state.context.vars,l.state.context=l.state.context.prev}function y(r,i){var e=function(){var e=l.state,t=e.indented;if("stat"==e.lexical.type)t=e.lexical.indented;else for(var n=e.lexical;n&&")"==n.type&&n.align;n=n.prev)t=n.indented;e.lexical=new U(t,l.stream.column(),r,null,e.lexical,i)};return e.lex=!0,e}function b(){var e=l.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function w(t){return function n(e){return e==t?m():";"==t?h():m(n)}}function x(e,t){return"var"==e?m(y("vardef",t.length),ue,w(";"),b):"keyword a"==e?m(y("form"),X,x,b):"keyword b"==e?m(y("form"),x,b):"{"==e?m(y("}"),E,b):";"==e?m():"if"==e?("else"==l.state.lexical.info&&l.state.cc[l.state.cc.length-1]==b&&l.state.cc.pop()(),m(y("form"),X,x,b,pe)):"function"==e?m(H):"for"==e?m(y("form"),he,x,b):"variable"==e?c&&"type"==t?(l.marked="keyword",m(D,w("operator"),D,w(";"))):m(y("stat"),re):"switch"==e?m(y("form"),X,w("{"),y("}","switch"),E,b,b):"case"==e?m(S,w(":")):"default"==e?m(w(":")):"catch"==e?m(y("form"),g,w("("),be,w(")"),x,b,v):"class"==e?m(y("form"),xe,b):"export"==e?m(y("stat"),Ne,b):"import"==e?m(y("stat"),Re,b):"module"==e?m(y("form"),O,w("{"),y("}"),E,b,b):"async"==e?m(x):"@"==t?m(S,x):h(y("stat"),S,w(";"),b)}function S(e){return K(e,!1)}function C(e){return K(e,!0)}function X(e){return"("!=e?h():m(y(")"),S,w(")"),b)}function K(e,t){if(l.state.fatArrowAt==l.stream.start){var n=t?ee:Z;if("("==e)return m(g,y(")"),T(O,")"),b,w("=>"),n,v);if("variable"==e)return h(g,O,w("=>"),n,v)}var r,n=t?k:N;return $.hasOwnProperty(e)?m(n):"function"==e?m(H,n):"class"==e?m(y("form"),we,b):"keyword c"==e||"async"==e?m(t?Q:Y):"("==e?m(y(")"),Y,w(")"),b,n):"operator"==e||"spread"==e?m(t?C:S):"["==e?m(y("]"),Le,b,n):"{"==e?A(oe,"}",null,n):"quasi"==e?h(R,n):"new"==e?m((r=t,function(e){return"."==e?m(r?ne:te):h(r?C:S)})):m()}function Y(e){return e.match(/[;\}\)\],]/)?h():h(S)}function Q(e){return e.match(/[;\}\)\],]/)?h():h(C)}function N(e,t){return","==e?m(S):k(e,t,!1)}function k(e,t,n){var r=0==n?N:k,i=0==n?S:C;return"=>"==e?m(g,n?ee:Z,v):"operator"==e?/\+\+|--/.test(t)?m(r):"?"==t?m(S,w(":"),i):m(i):"quasi"==e?h(R,r):";"!=e?"("==e?A(C,")","call",r):"."==e?m(ie,r):"["==e?m(y("]"),Y,w("]"),b,r):c&&"as"==t?(l.marked="keyword",m(D,r)):void 0:void 0}function R(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?m(R):m(S,J)}function J(e){if("}"==e)return l.marked="string-2",l.state.tokenize=z,m(R)}function Z(e){return j(l.stream,l.state),h("{"==e?x:S)}function ee(e){return j(l.stream,l.state),h("{"==e?x:C)}function te(e,t){if("target"==t)return l.marked="keyword",m(N)}function ne(e,t){if("target"==t)return l.marked="keyword",m(k)}function re(e){return":"==e?m(b,x):h(N,w(";"),b)}function ie(e){if("variable"==e)return l.marked="property",m()}function oe(e,t){return"async"==e?(l.marked="property",m(oe)):"variable"==e||"keyword"==l.style?(l.marked="property",m("get"==t||"set"==t?ae:M)):"number"==e||"string"==e?(l.marked=o?"property":l.style+" property",m(M)):"jsonld-keyword"==e?m(M):"modifier"==e?m(oe):"["==e?m(S,w("]"),M):"spread"==e?m(S,M):":"==e?h(M):void 0}function ae(e){return"variable"!=e?h(M):(l.marked="property",m(H))}function M(e){return":"==e?m(C):"("==e?h(H):void 0}function T(r,i,o){function a(e,t){var n;return(o?-1<o.indexOf(e):","==e)?("call"==(n=l.state.lexical).info&&(n.pos=(n.pos||0)+1),m(function(e,t){return e==i||t==i?h():h(r)},a)):e==i||t==i?m():m(w(i))}return function(e,t){return e==i||t==i?m():h(r,a)}}function A(e,t,n){for(var r=3;r<arguments.length;r++)l.cc.push(arguments[r]);return m(y(t,n),T(e,t),b)}function E(e){return"}"==e?m():h(x,E)}function L(e,t){if(c)return":"==e?m(D):"?"==t?m(L):void 0}function D(e){return"variable"==e?(l.marked="type",m(P)):"string"==e||"number"==e||"atom"==e?m(P):"{"==e?m(y("}"),T(le,"}",",;"),b,P):"("==e?m(T(ce,")"),se):void 0}function se(e){if("=>"==e)return m(D)}function le(e,t){return"variable"==e||"keyword"==l.style?(l.marked="property",m(le)):"?"==t?m(le):":"==e?m(D):"["==e?m(S,L,w("]"),le):void 0}function ce(e){return"variable"==e?m(ce):":"==e?m(D):void 0}function P(e,t){return"<"==t?m(y(">"),T(D,">"),b,P):"|"==t||"."==e?m(D):"["==e?m(w("]"),P):"extends"==t?m(D):void 0}function ue(){return h(O,L,I,fe)}function O(e,t){return"modifier"==e?m(O):"variable"==e?(n(t),m()):"spread"==e?m(O):"["==e?A(O,"]"):"{"==e?A(de,"}"):void 0}function de(e,t){return"variable"!=e||l.stream.match(/^\s*:/,!1)?("variable"==e&&(l.marked="property"),"spread"==e?m(O):"}"==e?h():m(w(":"),O,I)):(n(t),m(I))}function I(e,t){if("="==t)return m(C)}function fe(e){if(","==e)return m(ue)}function pe(e,t){if("keyword b"==e&&"else"==t)return m(y("form","else"),x,b)}function he(e){if("("==e)return m(y(")"),me,w(")"),b)}function me(e){return"var"==e?m(ue,w(";"),ve):";"==e?m(ve):"variable"==e?m(ge):h(S,w(";"),ve)}function ge(e,t){return"in"==t||"of"==t?(l.marked="keyword",m(S)):m(N,ve)}function ve(e,t){return";"==e?m(ye):"in"==t||"of"==t?(l.marked="keyword",m(S)):h(S,w(";"),ye)}function ye(e){")"!=e&&m(S)}function H(e,t){return"*"==t?(l.marked="keyword",m(H)):"variable"==e?(n(t),m(H)):"("==e?m(g,y(")"),T(be,")"),b,L,x,v):c&&"<"==t?m(y(">"),T(D,">"),b,H):void 0}function be(e){return"spread"==e?m(be):h(O,L,I)}function we(e,t){return("variable"==e?xe:Se)(e,t)}function xe(e,t){if("variable"==e)return n(t),m(Se)}function Se(e,t){return"<"==t?m(y(">"),T(D,">"),b,Se):"extends"==t||"implements"==t||c&&","==e?m(c?D:S,Se):"{"==e?m(y("}"),G,b):void 0}function G(e,t){return"variable"==e||"keyword"==l.style?("async"==t||"static"==t||"get"==t||"set"==t||c&&("public"==t||"private"==t||"protected"==t||"readonly"==t||"abstract"==t))&&l.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(l.marked="keyword",m(G)):(l.marked="property",m(c?Ce:H,G)):"["==e?m(S,w("]"),c?Ce:H,G):"*"==t?(l.marked="keyword",m(G)):";"==e?m(G):"}"==e?m():"@"==t?m(S,G):void 0}function Ce(e,t){return"?"==t?m(Ce):":"==e?m(D,I):"="==t?m(C):h(H)}function Ne(e,t){return"*"==t?(l.marked="keyword",m(Ee,w(";"))):"default"==t?(l.marked="keyword",m(S,w(";"))):"{"==e?m(T(ke,"}"),Ee,w(";")):h(x)}function ke(e,t){return"as"==t?(l.marked="keyword",m(w("variable"))):"variable"==e?h(C,ke):void 0}function Re(e){return"string"==e?m():h(Me,Te,Ee)}function Me(e,t){return"{"==e?A(Me,"}"):("variable"==e&&n(t),"*"==t&&(l.marked="keyword"),m(Ae))}function Te(e){if(","==e)return m(Me,Te)}function Ae(e,t){if("as"==t)return l.marked="keyword",m(Me)}function Ee(e,t){if("from"==t)return l.marked="keyword",m(S)}function Le(e){return"]"==e?m():h(T(C,"]"))}return b.lex=!0,{startState:function(e){e={tokenize:p,lastType:"sof",cc:[],lexical:new U((e||0)-d,0,"block",!1),localVars:u.localVars,context:u.localVars&&{vars:u.localVars},indented:e||0};return u.globalVars&&"object"==typeof u.globalVars&&(e.globalVars=u.globalVars),e},token:function(e,t){var n;return e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),j(e,t)),t.tokenize!=B&&e.eatSpace()?null:(n=t.tokenize(e,t),"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",q(t,n,r,i,e)))},indent:function(e,t){if(e.tokenize==B)return De.Pass;if(e.tokenize!=p)return 0;var n,r=t&&t.charAt(0),i=e.lexical;if(!/^\s*else\b/.test(t))for(var o=e.cc.length-1;0<=o;--o){var a=e.cc[o];if(a==b)i=i.prev;else if(a!=pe)break}for(;("stat"==i.type||"form"==i.type)&&("}"==r||(n=e.cc[e.cc.length-1])&&(n==N||n==k)&&!/^[,\.=+\-*:?[\(]/.test(t));)i=i.prev;var s,l=(i=_&&")"==i.type&&"stat"==i.prev.type?i.prev:i).type,c=r==l;return"vardef"==l?i.indented+("operator"==e.lastType||","==e.lastType?i.info+1:0):"form"==l&&"{"==r?i.indented:"form"==l?i.indented+d:"stat"==l?i.indented+(l=t,"operator"==(s=e).lastType||","==s.lastType||f.test(l.charAt(0))||/[,.]/.test(l.charAt(0))?_||d:0):"switch"!=i.info||c||0==u.doubleIndentSwitch?i.align?i.column+(c?0:1):i.indented+(c?0:d):i.indented+(/^(?:case|default)\b/.test(t)?d:2*d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:o,jsonMode:a,expressionAllowed:Pe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=S&&t!=C||e.cc.pop()}}}),De.registerHelper("wordChars","javascript",/[\w$]/),De.defineMIME("text/javascript","javascript"),De.defineMIME("text/ecmascript","javascript"),De.defineMIME("application/javascript","javascript"),De.defineMIME("application/x-javascript","javascript"),De.defineMIME("application/ecmascript","javascript"),De.defineMIME("application/json",{name:"javascript",json:!0}),De.defineMIME("application/x-json",{name:"javascript",json:!0}),De.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),De.defineMIME("text/typescript",{name:"javascript",typescript:!0}),De.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),!function(){var e,t;e=this,t=function(){var l,s,c,n,e,r=!1,t=window.navigator.userAgent,u=/([+-]?[0-9.]+)(vh|vw|vmin|vmax)/g,i=/(https?:)?\/\//,o=[].forEach,d=/MSIE [0-9]\./i.test(t),f=/MSIE [0-8]\./i.test(t),p=-1<t.indexOf("Opera Mini"),h=/(iPhone|iPod|iPad).+AppleWebKit/i.test(t)&&(e=t.match(/OS (\d+)/))&&1<e.length&&parseInt(e[1])<10,m=-1<t.indexOf(" Android ")&&-1<t.indexOf("Version/")&&parseFloat((t.match("Android ([0-9.]+)")||[])[1])<=4.4,d=d||!!navigator.userAgent.match(/MSIE 10\.|Trident.*rv[ :]*1[01]\.| Edge\/1\d\./);try{new g("test")}catch(C){var g=function(e,t){var n;return t=t||{bubbles:!1,cancelable:!1,detail:undefined},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};g.prototype=window.Event.prototype,window.CustomEvent=g}function v(){r&&(y(),setTimeout(function(){n.textContent=w(),n.parentNode.appendChild(n),window.dispatchEvent(new g("viewport-units-buggyfill-style"))},1))}function a(e){try{if(!e.cssRules)return}catch(C){if("SecurityError"!==C.name)throw C;return}for(var t=[],n=0;n<e.cssRules.length;n++){var r=e.cssRules[n];t.push(r)}return t}function y(){return c=[],o.call(document.styleSheets,function(e){var t=a(e);!t||"patched-viewport"===e.ownerNode.id||"ignore"===e.ownerNode.getAttribute("data-viewport-units-buggyfill")||e.media&&e.media.mediaText&&window.matchMedia&&!window.matchMedia(e.media.mediaText).matches||o.call(t,b)}),c}function b(n){if(7===n.type){var e;try{e=n.cssText}catch(C){return}u.lastIndex=0,u.test(e)&&!i.test(e)&&(c.push([n,null,e]),l.hacks&&l.hacks.findDeclarations(c,n,null,e))}else n.style?o.call(n.style,function(e){var t=n.style.getPropertyValue(e);n.style.getPropertyPriority(e)&&(t+=" !important"),u.lastIndex=0,u.test(t)&&(c.push([n,e,t]),l.hacks&&l.hacks.findDeclarations(c,n,e,t))}):n.cssRules&&o.call(n.cssRules,function(e){b(e)})}function w(){var e,t;e=window.innerHeight,t=window.innerWidth,s={vh:e,vw:t,vmax:Math.max(t,e),vmin:Math.min(t,e)};var r,i,o=[],a=[];return c.forEach(function(e){var e=function(e,t,n){var r=[];n=n.replace(u,x),l.hacks&&(n=l.hacks.overwriteDeclaration(e,t,n)),t&&(r.push(e.selectorText),n=t+": "+n+";");for(var i=e.parentRule;i;)i.media?r.unshift("@media "+i.media.mediaText):i.conditionText&&r.unshift("@supports "+i.conditionText),i=i.parentRule;return{selector:r,content:n}}.apply(null,e),t=e.selector.length?e.selector.join(" {\n")+" {\n":"",n=new Array(e.selector.length+1).join("\n}");t&&t===r?(t&&!r&&(r=t,i=n),a.push(e.content)):(a.length&&(o.push(r+a.join("\n")+i),a.length=0),t?(r=t,i=n,a.push(e.content)):(o.push(e.content),i=r=null))}),a.length&&o.push(r+a.join("\n")+i),p&&o.push("* { content: normal !important; }"),o.join("\n\n")}function x(e,t,n){n=s[n];return parseFloat(t)/100*n+"px"}function S(e){return e.slice(0,e.indexOf("/",e.indexOf("://")+3))}return{version:"0.6.1",findProperties:y,getCss:w,init:function(e){if(!r){if((l=(e=!0===e?{force:!0}:e)||{}).isMobileSafari=h,l.isBadStockAndroid=m,!l.ignoreVmax||l.force||f||(d=!1),f||!l.force&&!h&&!d&&!m&&!p&&(!l.hacks||!l.hacks.required(l)))return window.console&&f&&console.info("viewport-units-buggyfill requires a proper CSSOM and basic viewport unit support, which are not available in IE8 and below"),{init:function(){}};window.dispatchEvent(new g("viewport-units-buggyfill-init")),l.hacks&&l.hacks.initialize(l),r=!0,(n=document.createElement("style")).id="patched-viewport",document[l.appendToBody?"body":"head"].appendChild(n),t=function(){n=v,r=l.refreshDebounceWait||100;var n,r,i,e=function(){var e=this,t=arguments;clearTimeout(i),i=setTimeout(function(){n.apply(e,t)},r)};window.addEventListener("orientationchange",e,!0),window.addEventListener("pageshow",e,!0),(l.force||d||function(){try{return window.self!==window.top}catch(C){return 1}}())&&(window.addEventListener("resize",e,!0),l._listeningToResize=!0),l.hacks&&l.hacks.initializeEvents(l,v,e),v()},a=0,s=function(){--a||t()},o.call(document.styleSheets,function(e){if(e.href&&S(e.href)!==S(location.href)&&"ignore"!==e.ownerNode.getAttribute("data-viewport-units-buggyfill")){a++,i=e.ownerNode,o=s,e=i.href;var t=function(){var e=document.createElement("style");e.media=i.media,e.setAttribute("data-href",i.href),e.textContent=this.responseText,i.parentNode.replaceChild(e,i),o()},n=o,r=new XMLHttpRequest;if("withCredentials"in r)r.open("GET",e,!0);else{if("undefined"==typeof XDomainRequest)throw new Error("cross-domain XHR not supported");(r=new XDomainRequest).open("GET",e)}r.onload=t,r.onerror=n,r.send()}var i,o}),a||t()}var t,a,s},refresh:v}},"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.viewportUnitsBuggyfill=t()}(),$(document).ready(function(){var n,a,s,f,l,c,d,p,h,m,g,v,y,b,u,w,o="html/",r=".html",V="js/",W=".js",F={defaultHash:"overview"},i=[],x="data-navigation",S="data-tab-key",C="data-tab-value",N="data-expander-key",B="data-expander-value",k="data-radio",R="data-modal",M="data-input-numeric",T=230,z=230,A="active",E="!",L="/",D={},j="./_framework/html/404"+r,U=[" ಠ_ಠ ","(#`д´)ノ","ლ(ಠ_ಠლ)","(; ̄Д ̄)","¯\\_(ツ)_/¯","ᕕ( ͡° ͜ʖ ͡° )ᕗ","(☞゚ヮ゚)☞ ☜(゚ヮ゚☜)","͡° ͜ʖ ͡°","ヽ( ಠ益ಠ )ノ"," (╯°□°)╯︵ ┻━┻","(ಠ_ಠ)","(`・Д・)ノ=☆","★≡≡\(`△´\)","(◞‸◟)","(/‵Д′)/~ ╧╧","┻━┻ ︵\ufeff ¯\\_༼ᴼل͜ᴼ༽_/¯ ︵ ┻━┻","¯\\_(⊙_ʖ⊙)_/¯","┐(´~`)┌","乁( ⁰͡ Ĺ̯ ⁰͡ ) ㄏ","(;・∀・)","(^◇^;)"],P=$("body").overlayScrollbars({nativeScrollbarsOverlaid:{initialize:!1}}).overlayScrollbars();function q(){P&&P.update(),d.overlayScrollbars()&&(d.overlayScrollbars().options("overflowBehavior.x","scroll"),d.overlayScrollbars().update(!0)),!m.hasClass("shrinked")&&d.overlayScrollbars()&&d.overlayScrollbars().options("overflowBehavior.x","hidden"),v.removeClass(A),g.css("opacity",1)}function X(l,c){n&&n.abort(),a&&clearTimeout(a),l=l.toLowerCase();var e=(c=c!==undefined?c.toLowerCase():c)===undefined?"":c.split(L)[0],u=l.split(L)[0];if(e!==u){g.off();try{window._framework.onPagePathChange=undefined,window._framework.defaultPagePath=undefined,delete window._framework.onPagePathChange,delete window._framework.defaultPagePath}catch(t){}P&&P.sleep(),v.addClass(A),g.css("opacity",0),n=$.get(o+u+r,function(o){p.trigger("contentDestruct"),$.each($("#content *").overlayScrollbars("!"),function(e,t){t.destroy()}),g[0].innerHTML="",a=setTimeout(function(){var e,t,n,r,i;a=undefined,e=o,t=function(e){g[0].appendChild(e),I(),f.empty();var t,e=$("#content-navigation");if(0<e.length){for(var n=e.children(),r=0;r<n.length;r++){var i,o,a=n.eq(r).find("span").first().text();n.eq(r).hasClass("content-navigation-item-clickable")?(i=t||f,(o=$('<option value="'+a+'">'+a+"</option>")).attr(S,n.eq(r).attr(S)),o.attr(x,n.eq(r).attr(x)),i.append(o)):(t=$('<optgroup label="'+a+'" />'),f.append(t))}e.overlayScrollbars({scrollbars:{autoHide:"leave"},overflowBehavior:{x:"hidden"}})}if($(".modal .modal-window-header-close").on("click",function(e){_($(e.target).closest(".modal").first())}),$(".modal").on("mousedown",function(e){var t=$(e.target),n=t.closest(".modal").first();0<n.length&&(n.overlayScrollbars()instanceof OverlayScrollbars?t[0]===n[0]||t[0]===n.overlayScrollbars().getElements().content||t[0]===n.overlayScrollbars().getElements().viewport:t[0]===n[0])&&n.hasClass("modal-backdrop-closeable")&&1===e.which&&n.one("mouseup",function(e){var e=$(e.target),t=e.closest(".modal").first();0<t.length&&(t.overlayScrollbars()instanceof OverlayScrollbars?e[0]===t[0]||e[0]===t.overlayScrollbars().getElements().content||e[0]===t.overlayScrollbars().getElements().viewport:e[0]===t[0])&&_(t)})}),$("["+R+"]").on("click",function(e){var e=$(e.target),t=e.attr(R);e.closest("["+R+"]").first().hasClass("modal")||G($(".modal["+R+'="'+t+'"]').first())}),P)for(var s=$(".modal").overlayScrollbars({sizeAutoCapable:!1}).overlayScrollbars(),r=0;r<s.length;r++)s[r].sleep();$(".input-numeric").each(function(){var t,n=$(this),r=window.parseFloat,i=r(n.attr(M+"-min")),o=r(n.attr(M+"-max")),a=r(n.attr(M+"-step")),s=r(n.find(".input-numeric-input > input").val()),e=n.find(".input-numeric-button-decrease").first(),l=n.find(".input-numeric-button-increase").first(),c=n.find(".input-numeric-input > input"),u=function(){var e=!1;return s<i&&(s=i,e=!0),o<s&&(s=o,e=!0),c.val(s),n.trigger("valuechanged",[s]),e},d=function(e){e(),t=setTimeout(function(){d(e)},125)},i=isNaN(i)?0:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a;(o=o<(i=o<i?o:i)?i:o)<(s=s<i?i:s)&&(s=o),e.on("mousedown",function(e){clearTimeout(t),d(function(){s=r((s-=a).toFixed(8)),u()}),$(document).one("mouseup",function(e){clearTimeout(t)})}),l.on("mousedown",function(e){clearTimeout(t),d(function(){s=r((s+=a).toFixed(8)),u()}),$(document).one("mouseup",function(e){clearTimeout(t)})}),c.on("keydown",function(e){-1!==$.inArray(e.keyCode,[46,8,9,27,13,110].concat(floaty?[190]:[]))||65==e.keyCode&&(!0===e.ctrlKey||!0===e.metaKey)||67==e.keyCode&&(!0===e.ctrlKey||!0===e.metaKey)||86==e.keyCode&&(!0===e.ctrlKey||!0===e.metaKey)||88==e.keyCode&&(!0===e.ctrlKey||!0===e.metaKey)||35<=e.keyCode&&e.keyCode<=39||(e.shiftKey||e.keyCode<48||57<e.keyCode)&&(e.keyCode<96||105<e.keyCode)&&e.preventDefault()}),c.on("input",function(e){var t=c.val();s=""===t||(s=r(t),isNaN(s))?i:s,u()}),u(),n.find(".input-numeric-input > input").val(s)}),$(".dropdown").on("click",function(e){var t=$(this).closest(".dropdown"),n=!1;return t.hasClass(A)&&(n=!0),$(".dropdown.active").removeClass(A),n?t.removeClass(A):t.addClass(A),t.hasClass(A)&&p.one("click",function(){t.removeClass(A)}),e.stopPropagation(),e.stopImmediatePropagation(),!1}),$(".dropdown-list > div").on("click",function(e){var t=$(this).closest(".dropdown"),n=t.find(".dropdown-value");return n.text($(this).text()),t.removeClass(A),t.trigger("dropdownvaluechanged",[n.text()]),e.stopPropagation(),e.stopImmediatePropagation(),!1}),$("["+k+"]").on("click",function(e){var e=$(e.target),t=e.attr(k);e.hasClass(A)||($("["+k+'="'+t+'"]').removeClass(A).trigger("radiooff"),e.addClass(A).trigger("radioon"))}),$("["+N+"]").on("click",function(e){var t=$(this).closest("["+N+"]"),n=$("["+B+'="'+t.attr(N)+'"]');n.hasClass(A)?(n.stop().slideUp(T),t.removeClass(A),n.removeClass(A)):(n.stop().slideDown(T),t.addClass(A),n.addClass(A))}),$("["+C+"]:not(."+A+")").hide(),$("["+S+"]:not(option)").on("click",function(e){var t,n,r,i=$(this).closest("["+S+"]");return i.hasClass(A)?(e.stopPropagation(),e.stopImmediatePropagation(),!1):((e=e.originalEvent||e).ctrlKey===undefined||!0!==e.ctrlKey||1!==e.which&&1!==e.buttons)&&(e=(t=$("["+C+'="'+i.attr(S)+'"]')).parent().children("."+A).first().removeClass(A),n=i.attr(x)!==undefined&&null!==i.attr(x),r=function(){t.stop().fadeIn(z).addClass(A),n&&(P?P.scroll({y:0}):h.scrollTop(0))},0===e.length?r():e.stop().fadeOut(z,r),void $("["+S+'="'+i.attr(S)+'"]').each(function(){$(this).parent().find("["+S+"]").removeClass(A)}).addClass(A))}),$(".options-table > tbody > tr:nth-child(2n+1)").on("click",function(e){e=$(e.target).closest("tr");e.next().find("div").first().stop().slideToggle(300,"easeOutCirc"),e.hasClass(A)?e.removeClass(A):e.addClass(A)}),$(".options-table > tbody > tr:nth-child(2n+1) code").on("click",function(e){return e.stopPropagation(),e.stopImmediatePropagation(),!1}),$("#content-navigation-button").on("click",function(){$("#content-navigation-button").toggleClass(A)}),0<$("#content-navigation-main").length?($("#content-navigation-main > div:visible").find("code").each(function(e,t){H(t)}),$.each($("#content-navigation-main > div:visible").find("pre > code.hljs"),function(){var e=$(this),t=!e.hasClass("expandable");e.hasClass("code-noscroll")||e.overlayScrollbars()!==undefined||e.overlayScrollbars({paddingAbsolute:!0,overflowBehavior:{y:t?"hidden":"scroll"}})})):($("code").each(function(e,t){H(t)}),$.each($("pre > code.hljs"),function(){var e=$(this);e.hasClass("code-noscroll")||e.overlayScrollbars()!==undefined||e.overlayScrollbars({paddingAbsolute:!0,overflowBehavior:{y:"hidden"}})})),$(".modal").find("code").each(function(e,t){H(t)}),$("code.expandable").each(function(e,t){var n="expanded",r='Expand<i class="mdi mdi-chevron-down"></i>',i=$('<span class="expandable-button">'+r+"</span>");i.on("click",function(){var e=$(this).parent();$(e).hasClass(n)?($(this).html(r),e.removeClass(n)):($(this).html('Shrink<i class="mdi mdi-chevron-up"></i>'),e.addClass(n))}),$(t).append(i)}),$("[data-tooltip]").each(function(){try{var e=$(this).find(".tooltip").first();tippy(this,{html:e[0],arrow:!0}),$(this).append(e.clone())}catch(t){}}),$.getScript(V+u+W).always(function(){O(l,c),q()}).fail(function(){0!=arguments[0].readyState&&console.error(arguments)})},n=document.createElement("div"),r=document.createDocumentFragment(),n.innerHTML=e,(i=function(){n.firstChild?(r.appendChild(n.firstChild),setTimeout(i,0)):t(r)})()},400)},"html").fail(function(){$.get(j,function(e){g.html(e),$("#four-zero-four-face").html(U[Math.floor(Math.random()*(U.length-1)+0)])},"html"),O(l,c),q()}).always(function(){n=undefined,b.removeClass(A),$.each(b,function(){var e=$(this);e.attr(x)===u&&e.addClass(A)}),u===s?m.removeClass("shrinked"):(m.addClass("shrinked"),d.overlayScrollbars()&&d.overlayScrollbars().update()),P?P.scroll({y:0}):h.scrollTop(0)})}else O(l,c)}function O(e,t){var o=function(e){var t=e.originalEvent||e;if((1===t.which||1===t.buttons||1===t.button)&&!0!==t.ctrlKey||e.originalEvent===undefined){t=$(e.currentTarget).closest("["+x+"]").attr(x);if(t){for(var n=K(t),r="",i=0;i<n.length;i++)r+='"'+n[i]+'", ';r=r.substring(0,r.length-2),window.eval("hasher.setHash("+r+");")}}},n=($("["+x+"]:not(option)").on("click",function(e){var t=e.originalEvent||e;if(t.ctrlKey!==undefined&&!0===t.ctrlKey&&(1===t.which||1===t.buttons||4===t.buttons||2===t.which)){t=$(e.currentTarget).closest("["+x+"]").attr(x);if(t){for(var n=K(t),r="#"+E,i=0;i<n.length;i++)r+=(0==i?"":L)+n[i]+"";return window.open(hasher.getBaseURL()+r,"_blank"),e.stopPropagation(),e.stopImmediatePropagation(),!1}}if(e.originalEvent===undefined)return o(e),e.stopPropagation(),e.stopImmediatePropagation(),!1}),$("["+x+"]:not(option)").on("mousedown",o),t===undefined?"":t.split(L)[0]),r=e.split(L)[0],i=e.split(L),a=t===undefined?[]:t.split(L),s=-1,l=[];i.length>a.length?$.each(i,function(e){if(i[e]!==a[e])return s=e,!1}):$.each(a,function(e){if(a[e]!==i[e])return s=e,!1}),n===r&&--s;for(var c,u,d=0;d<i.length;d++)0!==d&&(c=i[d],l.push(c));"function"===$.type(window._framework.onPagePathChange)&&window._framework.onPagePathChange({isEmpty:i.length<=1,changedAt:s,path:l}),1===i.length&&0===s&&window._framework.defaultPagePath&&hasher.replaceHash(i[0],window._framework.defaultPagePath),1<i.length&&0===s&&(e=$("#content-navigation").find(".content-navigation-item-clickable[data-navigation]"),u=$("#content-navigation").overlayScrollbars(),clearTimeout(y),$.each(e,function(){var t=$(this),e=t.attr("data-navigation").toLowerCase();(e=e!==undefined?e.replace(/[0-9]/,"").replace(/[[]]/g,""):e)===l[s]&&(t.trigger("click"),y=setTimeout(function(){if(u)try{I(),u.scrollStop(),u.scroll({el:t,margin:{top:5,bottom:40},block:"nearest",scroll:{y:"ifneeded"}},300)}catch(e){}},400),(e=t.attr(S))!==undefined&&null!==e&&((e=$("["+C+'="'+e+'"]')).find("code:not(.hljs)").each(function(e,t){H(t)}),$.each(e.find("pre > code.hljs"),function(){var e=$(this),t=!e.hasClass("expandable");e.hasClass("code-noscroll")||e.overlayScrollbars()!==undefined||e.overlayScrollbars({paddingAbsolute:!0,overflowBehavior:{y:t?"hidden":"scroll"}})}),setTimeout(function(){$(".CodeMirror").each(function(e,t){0<t.offsetHeight&&t.CodeMirror.refresh()})},300)))}));t=$("#content-navigation");0<t.length&&(n=t.children().find(".active").first().attr(S),f.val(f.find("["+S+'="'+n+'"]').text()))}function I(){var e=$("#content-navigation"),t=$(window).height(),n=(e.height(),g.height()),r=P?P.scroll().position.y:h.scrollTop(),i=P?P.scroll().position.x:h.scrollLeft(),o=d.height(),t=Math.min(t-o,n-r);if(OverlayScrollbars.globals().supportTransform)for(var a=e,s=-i,l=0,c=["","-webkit-","-moz-","-o-","-ms-"],u=0;u<c.length;u++)a.css("transform",c[u]+"translate("+s+"px, "+l+"px)");else e.css("left",-i);e.css("max-height",t),d.overlayScrollbars()?d.overlayScrollbars().scroll([i,0]):d.scrollLeft(i)}function K(e){e=e.replace(/\s/g,"");var t=hasher.getHashAsArray(),n=[],r=e.indexOf("["),i=e.indexOf("]"),o=0;if(0===r&&(2===i||3===i||4===i)&&(o=parseInt(e.split("]")[0].substring(1,i)),isNaN(o)))throw"Invalid navigation offset value!";r=e.split("]");1!==r.length&&(e=r[1]);for(var a=0;a<o+1;a++)n[a]=t[a];""===(n[o]=e)&&n.splice(o,1);for(a=0;a<n.length;a++)n[a]=n[a].toLowerCase();return n}function H(e){window.hljs!==undefined&&window.hljs.highlightBlock(e)}function G(e){var t,n;e.hasClass("modal-open")||e.hasClass("modal-animating")||(t=e.overlayScrollbars(),n=t instanceof OverlayScrollbars,e.addClass("modal-animating").stop().fadeIn(300,function(){n&&t.getState().sleeping&&e.overlayScrollbars().update(),e.removeClass("modal-animating")}).addClass("modal-open").css("z-index",parseInt(e.css("z-index"))+i.length+1).focus(),n?e.overlayScrollbars().scroll(0,1):e.scrollTop(0).scrollLeft(0),0===i.length&&(p.on("keydown",Y),P?P.options({overflowBehavior:{x:"hidden",y:"hidden"}}):p.css("overflow","hidden")),i.push(e[0]))}function _(e){var t;e.hasClass("modal-open")&&!e.hasClass("modal-animating")&&(e.overlayScrollbars()instanceof OverlayScrollbars&&e.overlayScrollbars().sleep(),e.addClass("modal-animating").stop().removeClass("modal-open").fadeOut(300,function(){e.removeClass("modal-animating"),e.css("z-index","")}),-1<(t=$.inArray(e[0],i))&&(i.splice(t,1),0===i.length&&(p.off("keydown",Y),P?P.options({overflowBehavior:{x:"scroll",y:"scroll"}}):p.css("overflow",""))))}function Y(e){27===(e.keyCode||e.originalEvent.keyCode)&&_($(i[i.length-1]))}this.buildPage=function(e,t){l=$.extend(!0,{},F,e),s=l.defaultHash,b=$("["+x+"]"),h=$(window),p=$("body"),m=$("#header"),d=$("#navigation"),l=$("#navigation-button"),c=$("#navigation-backdrop"),g=$("#content"),$("#footer"),v=$("#loading"),u=$("#modal-debug"),w=$("#modal-debug-content"),f=$("#navigation-content-navigation"),hasher.prependHash=E,hasher.separator=L,hasher.getURL()!==hasher.getBaseURL()&&hasher.getURL()!==hasher.getBaseURL()+"#"&&hasher.getURL()!==hasher.getBaseURL()+"#"+E||hasher.replaceHash(s),hasher.initialized.add(X),hasher.changed.add(X),hasher.init(),setTimeout(function(){p.addClass("ready"),D.cssFilterSupport&&p.addClass("filter-support")},100),$("#navigation-logo").on("click",function(){hasher.setHash(s)}),$("#navigation-menu").overlayScrollbars({className:"os-theme-light",paddingAbsolute:!0,overflowBehavior:{y:"s",x:"h"}}),l.on("click",function(e){d.toggleClass(A)}),c.on("click",function(e){d.removeClass(A)}),P?P.options({callbacks:{onScroll:function(){I()},onHostSizeChanged:function(){I()},onContentSizeChanged:function(){I()}}}):(h.off("scroll",I).on("scroll",I),h.off("resize",I).on("resize",I)),f.on("change",function(){var e=f.val(),t=f.find("option").filter(function(){return $(this).text()===e});$("#content-navigation").find("["+S+'="'+t.attr(S)+'"]').trigger("click")}),w.html(JSON.stringify(D,null,2));try{var n,r=[68,69,66,85,71,13],i=[],o=0;p.on("keydown",function(e){clearTimeout(n),n=setTimeout(function(){i=[]},250);e=e.keyCode||e.originalEvent.keyCode;i.push(e),function(e,t){if(e.length===t.length){for(var n=e.length;n--;)if(e[n]!==t[n])return;return 1}}(i,r)&&G(u)}),p[0].addEventListener("touchstart",function(){clearTimeout(n),n=setTimeout(function(){o=0},250),20<++o&&G(u)},{passive:!0})}catch(a){}},D.viewportIntervention="number"==typeof window.innerHeight&&$("html")[0].clientHeight!==window.innerHeight,D.cssFilterSupport=!1,D.viewportIntervention&&viewportUnitsBuggyfill.init({force:!0}),window._framework=this}),!function(t,n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(t,t.document,undefined,e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(t,t.document,undefined,require("jquery")):n(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(ai,si,li,e){var o,d,l,a,ci="object",ui="function",di="array",fi="string",pi="boolean",hi="number",t="null",mi={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},gi=(o={},d={},{_cssPrefixes:l=["-webkit-","-moz-","-o-","-ms-"],_jsPrefixes:a=["WebKit","Moz","O","MS"],_cssProperty:function(e){var t=d[e];if(!d[mi.hOP](e)){for(var n,r,i,o=c(e),a=si.createElement("div")[mi.s],s=0;s<l.length;s++)for(i=l[s].replace(/-/g,""),n=[e,l[s]+e,i+o,c(i)+o],r=0;r<n[mi.l];r++)if(a[n[r]]!==li){t=n[r];break}d[e]=t}return t},_cssPropertyValue:function(e,t,n){var r=e+" "+t,i=d[r];if(!d[mi.hOP](r)){for(var o,a=si.createElement("div")[mi.s],s=t.split(" "),l=n||"",c=0,u=-1;c<s[mi.l];c++)for(;u<gi._cssPrefixes[mi.l];u++)if(o=u<0?s[c]:gi._cssPrefixes[u]+s[c],a.cssText=e+":"+o+l,a[mi.l]){i=o;break}d[r]=i}return i},_jsAPI:function(e,t,n){var r=0,i=o[e];if(!o[mi.hOP](e)){for(i=ai[e];r<a[mi.l];r++)i=i||ai[(t?a[r]:a[r].toLowerCase())+c(e)];o[e]=i}return i||n}});function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}var vi={wW:n(v,0,!0),wH:n(v,0),mO:n(gi._jsAPI,0,"MutationObserver",!0),rO:n(gi._jsAPI,0,"ResizeObserver",!0),rAF:n(gi._jsAPI,0,"requestAnimationFrame",!1,function(e){return ai.setTimeout(e,1e3/60)}),cAF:n(gi._jsAPI,0,"cancelAnimationFrame",!1,function(e){return ai.clearTimeout(e)}),now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){var t,n=((e=e.originalEvent||e).target||e.srcElement||si).ownerDocument||si,r=n.documentElement,n=n.body;return e.touches!==li?{x:(t=e.touches[0]).pageX,y:t.pageY}:!e.pageX&&e.clientX&&null!=e.clientX?{x:e.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),y:e.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)}:{x:e.pageX,y:e.pageY}},mBtn:function(e){var t=e.button;return e.which||t===li?e.which:1&t?1:2&t?3:4&t?2:0},inA:function(e,t){for(var n=0;n<t[mi.l];n++)try{if(t[n]===e)return n}catch(r){}return-1},isA:function(e){var t=Array.isArray;return t?t(e):this.type(e)==di},type:function(e){return e===li||null===e?e+"":Object[mi.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:n};function v(e){return e?ai.innerWidth||si.documentElement[mi.cW]||si.body[mi.cW]:ai.innerHeight||si.documentElement[mi.cH]||si.body[mi.cH]}function n(e,t){if(typeof e!=ui)throw"Can't bind function!";var n=mi.p,r=Array[n].slice.call(arguments,2),i=function(){},o=function(){return e.apply(this instanceof i?this:t,r.concat(Array[n].slice.call(arguments)))};return e[n]&&(i[n]=e[n]),o[n]=new i,o}var i,s,yi,u,f,E,L,r,p,y,h,bi,wi=Math,xi=e,Si=(e.easing,e),Ci=(i=[],s="__overlayScrollbars__",function(e,t){var n=arguments[mi.l];if(n<1)return i;if(t)e[s]=t,i.push(e);else{var r=vi.inA(e,i);if(-1<r){if(!(1<n))return i[r][s];delete e[s],i.splice(r,1)}}}),m=(h=[],E=vi.type,y={className:["os-theme-dark",[t,fi]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:e=[!0,pi],clipAlways:e,normalizeRTL:e,paddingAbsolute:r=[!(L=[pi,hi,fi,di,ci,ui,t]),pi],autoUpdate:[null,[t,pi]],autoUpdateInterval:[33,hi],updateOnLoad:[["img"],[fi,di,t]],nativeScrollbarsOverlaid:{showNativeScrollbars:r,initialize:e},overflowBehavior:{x:["scroll",p="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",p]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,hi],dragScrolling:e,clickScrolling:r,touchSupport:e,snapHandle:r},textarea:{dynWidth:r,dynHeight:r,inheritedAttrs:[["style","class"],[fi,di,t]]},callbacks:{onInitialized:e=[null,[t,ui]],onInitializationWithdrawn:e,onDestroyed:e,onScrollStart:e,onScroll:e,onScrollStop:e,onOverflowChanged:e,onOverflowAmountChanged:e,onDirectionChanged:e,onContentSizeChanged:e,onHostSizeChanged:e,onUpdated:e}},bi={_defaults:(p=function(i){var o=function(e){var t,n,r;for(t in e)e[mi.hOP](t)&&(n=e[t],(r=E(n))==di?e[t]=n[i?1:0]:r==ci&&(e[t]=o(n)));return e};return o(Si.extend(!0,{},y))})(),_template:p(!0),_validate:function(e,t,R,n){var r={},i={},e=Si.extend(!0,{},e),M=Si.inArray,T=Si.isEmptyObject,A=function(e,t,n,r,i,o){for(var a in t)if(t[mi.hOP](a)&&e[mi.hOP](a)){var s,l,c,u,d,f,p,h,m=!1,g=t[a],v=E(g)==ci,y=vi.isA(g)?g:[g],b=n[a],w=e[a],x=E(w),S=o?o+".":"",C='The option "'+S+a+"\" wasn't set, because",N=[],k=[],b=b===li?{}:b;if(v&&x==ci)r[a]={},i[a]={},A(w,g,b,r[a],i[a],S+a),Si.each([e,r,i],function(e,t){T(t[a])&&delete t[a]});else if(!v){for(f=0;f<y[mi.l];f++)if(d=y[f],c=E(d)==fi&&-1===M(d,L))for(N.push(fi),s=d.split(" "),k=k.concat(s),p=0;p<s[mi.l];p++){for(u=(l=s[p].split(":"))[0],h=0;h<l[mi.l];h++)if(w===l[h]){m=!0;break}if(m)break}else if(N.push(d),x===d){m=!0;break}m?((g=w!==b)&&(r[a]=w),(c?M(b,l)<0:g)&&(i[a]=c?u:w)):R&&console.warn(C+" it doesn't accept the type [ "+x.toUpperCase()+' ] with the value of "'+w+'".\r\nAccepted types are: [ '+N.join(", ").toUpperCase()+" ]."+(0<k[length]?"\r\nValid strings are: [ "+k.join(", ").split(":").join(", ")+" ].":"")),delete e[a]}}};return A(e,t,n||{},r,i),!T(e)&&R&&console.warn("The following options are discarded due to invalidity:\r\n"+ai.JSON.stringify(e,null,2)),{_default:r,_prepared:i}}},(yi=ai.OverlayScrollbars=function(e,n,r){var i,t,o,a;return 0===arguments[mi.l]?this:(i=[],t=Si.isPlainObject(n),e?(e=e[mi.l]!=li?e:[e[0]||e],g(),0<e[mi.l]&&(t?Si.each(e,function(e,t){(o=t)!==li&&i.push(x(o,n,r,u,f))}):Si.each(e,function(e,t){o=Ci(t),("!"===n&&yi.valid(o)||vi.type(n)==ui&&n(t,o)||n===li)&&i.push(o)}),a=1===i[mi.l]?i[0]:i),a):t||!n?a:i)}).globals=function(){g();var e=Si.extend(!0,{},u);return delete e.msie,e},yi.defaultOptions=function(e){g();var t=u.defaultOptions;if(e===li)return Si.extend(!0,{},t);u.defaultOptions=Si.extend(!0,{},t,bi._validate(e,bi._template,!0,t)._default)},yi.valid=function(e){return e instanceof yi&&!e.getState().destroyed},yi.extension=function(e,t,n){var r=vi.type(e)==fi,i=arguments[mi.l],o=0;if(i<1||!r)return Si.extend(!0,{length:h[mi.l]},h);if(r)if(vi.type(t)==ui)h.push({name:e,extensionFactory:t,defaultOptions:n});else for(;o<h[mi.l];o++)if(h[o].name===e){if(!(1<i))return Si.extend(!0,{},h[o]);h.splice(o,1)}},yi);function g(){u=u||new b(bi._defaults),f=f||new w(u)}function b(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h=this,m=Si("body"),g=Si('<div id="os-dummy-scrollbar-size"><div></div></div>'),v=g[0],y=Si(g.children("div").eq(0)),b=(m.append(g),g.hide().show(),C(v)),w={x:0===b.x,y:0===b.y},x=(o=ai.navigator.userAgent,c="substring",a=o[r="indexOf"]("MSIE "),s=o[r]("Trident/"),i=o[r]("Edge/"),l=o[r]("rv:"),n=parseInt,0<a?t=n(o[c](a+5,o[r](".",a)),10):0<s?t=n(o[c](l+3,o[r](".",l)),10):0<i&&(t=n(o[c](i+5,o[r](".",i)),10)),t);function S(){var e=ai.screen.deviceXDPI||0,t=ai.screen.logicalXDPI||1;return ai.devicePixelRatio||e/t}function C(e){return{x:e[mi.oH]-e[mi.cH],y:e[mi.oW]-e[mi.cW]}}Si.extend(h,{defaultOptions:e,msie:x,autoUpdateLoop:!1,autoUpdateRecommended:!vi.mO(),nativeScrollbarSize:b,nativeScrollbarIsOverlaid:w,nativeScrollbarStyling:function(){var e=!1;g.addClass("os-viewport-native-scrollbars-invisible");try{e="none"===g.css("scrollbar-width")&&(9<x||!x)||"none"===ai.getComputedStyle(v,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return e}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:gi._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:(g.css("overflow","hidden"),a=v[mi.sW],s=v[mi.sH],g.css("overflow","visible"),l=v[mi.sW],c=v[mi.sH],a-l!=0||s-c!=0),rtlScrollBehavior:(g.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0),r=g.offset(),i=y.offset(),g.scrollLeft(-999),o=y.offset(),{i:r.left===i.left,n:i.left!==o.left}),supportTransform:!!gi._cssProperty("transform"),supportTransition:!!gi._cssProperty("transition"),supportPassiveEvents:function(){var e=!1;try{ai.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(t){}return e}(),supportResizeObserver:!!vi.rO(),supportMutationObserver:!!vi.mO()}),g.removeAttr(mi.s).remove(),w.x&&w.y||(u=wi.abs,d=vi.wW(),f=vi.wH(),p=S(),Si(ai).on("resize",function(){var e,t,n,r,i,o,a;0<Ci().length&&(e=vi.wW(),r=(t=vi.wH())-f,0==(a=e-d)&&0==r||(i=wi.round(e/(d/100)),o=wi.round(t/(f/100)),a=u(a),r=u(r),i=u(i),o=u(o),n=S(),a=2<a&&2<r,r=!function(e,t){e=u(e),t=u(t);return e!==t&&e+1!==t&&e-1!==t}(i,o),i=n!==p&&0<p,o=h.nativeScrollbarSize,a&&r&&i&&(m.append(g),a=h.nativeScrollbarSize=C(g[0]),g.remove(),o.x===a.x&&o.y===a.y||Si.each(Ci(),function(){Ci(this)&&Ci(this).update("zoom")})),d=e,f=t,p=n))}))}function w(t){var l,n=Si.inArray,c=vi.now,u="autoUpdate",d=u+"Interval",f=mi.l,p=[],h=[],m=!1,g=33,v=g,y=c(),b=function(){if(0<p[f]&&m){l=vi.rAF()(function(){b()});var e,t,n,r,i=c(),o=i-y;if(v<o){y=i-o%v;for(var a=g,s=0;s<p[f];s++)(e=p[s])!==li&&(t=(n=e.options())[u],n=wi.max(1,n[d]),r=c(),(!0===t||null===t)&&r-h[s]>n&&(e.update("auto"),h[s]=new Date(r+=n)),a=wi.max(1,wi.min(a,n)));v=a}}else v=g};this.add=function(e){-1===n(e,p)&&(p.push(e),h.push(c()),0<p[f]&&!m&&(m=!0,t.autoUpdateLoop=m,b()))},this.remove=function(e){e=n(e,p);-1<e&&(h.splice(e,1),p.splice(e,1),0===p[f]&&m&&(m=!1,t.autoUpdateLoop=m,l!==li&&(vi.cAF()(l),l=-1)))}}function x(n,e,t,xe,Je){var Se,Ze,Ce,et,H,tt,nt,rt,y,K,v,N,b,Ne,ke,Re,it,w,h,ot,at,st,lt,ct,ut,dt,ft,Me,Te,pt,Y,Q,Ae,ht,r,Ee,mt,gt,Le,De,vt,Pe,yt,bt,Oe,Ie,wt,He,Ge,xt,St,J,Z,C,_e,i,o,a,Ve,We,x,G,S,_,V,W,F,B,z,k,m,R,c,u,d,M,Ct,Nt,kt,Rt,Mt,Tt,T,A,f,At,p,E,Et,Lt,Dt,L,D,P,O,I,s,l,j,$,U,q,ee,Pt,Ot,It,Ht,te,ne,re,Gt,ie,oe,ae,se,Fe,le,_t,Vt,Wt,Ft,ce,ue,de,fe,pe,he,Be,ze,Bt,zt,jt,je,$e,$t,Ue,Ut,qe,me,ge,ve,ye,be,we,qt,Xt,Kt,Yt,Qt,Jt,Zt,en,tn,nn,rn,on,an,sn,ln,cn,un,dn,fn,pn,hn,mn,gn,vn,yn,bn,wn,xn,Sn,Cn,Nn,kn,Rn,Mn,Tn,An,En,Ln,Dn,Pn,On,In,Hn,Gn,_n,Vn,Wn,Fn,Bn,zn,jn,$n,Un,qn,Xn,Kn,Yn,Qn,Jn,Zn,er,tr,nr,rr,ir,or,ar,sr,lr,X=vi.type,cr=Si.inArray,g=Si.each,Xe=new yi,ur=Si[mi.p];if(qr(n))return Ci(n)?((i=Ci(n)).options(e),i):(pt={},Y={},Q={},Ae={},ht={},Ee="margin-",mt="padding-",gt="border-",Le="top",De="right",vt="bottom",Pe="left",yt="min-",bt="max-",Oe="width",Ie="height",wt="float",He="",St="100%",J="x",Z="y",C=".",_e=" ",Ve=(xt="scroll")+"Left",We=xt+"Top",x="mousedown touchstart",G="mouseup touchend touchcancel",S="mousemove touchmove",_="mouseenter",V="mouseleave",W="keydown",F="keyup",B="selectstart",z="transitionend webkitTransitionEnd oTransitionEnd",k="__overlayScrollbarsRO__",R=(m="os-host")+"-foreign",c=m+"-textarea",u=m+"-"+(i="scrollbar")+(o="-horizontal")+(r="-hidden"),d=m+"-"+i+(a="-vertical")+r,M=m+"-transition",Ct=m+"-rtl",Nt=m+"-resize-disabled",kt=m+"-scrolling",Mt=(Rt=Rt=m+"-overflow")+"-x",Tt=Rt+"-y",T="os-textarea",A="os-padding",E="os-content",Et="os-content-arrange",Lt="os-content-glue",Dt="os-size-auto-observer",L="os-resize-observer",P=(D="os-resize-observer-item")+"-final",O="os-text-inherit",te=(I="os-"+i)+o,ne=I+a,Gt="os-theme-none",ie=[At=(f="os-viewport")+"-native-scrollbars-invisible",p=f+"-native-scrollbars-overlaid",l=(s=I+"-track")+"-off",$=(j=I+"-handle")+"-off",U=I+"-unusable",q=I+"-"+(Ge="auto")+r,Pt=(ee=I+"-corner")+"-resize",Ot=Pt+"-both",It=Pt+o,Ht=Pt+a,re="os-dragging"].join(_e),oe=[],ae=[mi.ti],le={},Vt={},Ft=42,ce="load",ue=[],Wn={},Un=["wrap","cols","rows"],qn=[mi.i,mi.c,mi.s,"open"].concat(ae),Xn=[],Xe.sleep=function(){Te=!0},Xe.update=function(e){var t,n,r,i,o,a,s,l;if(!ke)return X(e)==fi?e===Ge?(t=function(){var n,r,i,o,e;if(!Te&&!$n)return o=[],e=[{_elem:ze,_attrs:qn.concat(":visible")},{_elem:Re?Be:li,_attrs:Un}],g(e,function(e,t){(n=t._elem)&&g(t._attrs,function(e,t){r=":"===t.charAt(0)?n.is(t):n.attr(t),i=Wn[t],ti(r,i)&&o.push(t),Wn[t]=r})}),Rr(o),0<o[mi.l]}(),o=!Te&&(l=Yr(),a=Re&&ln&&!On?Be.val().length:0,i={},(s=!$n&&ln&&!Re)&&(o=$e.css(wt),i[wt]=Me?De:Pe,i[Oe]=Ge,$e.css(i)),l={w:l[mi.sW]+a,h:l[mi.sH]+a},s&&(i[wt]=o,i[Oe]=St,$e.css(i)),a=Nr(),s=ti(l,Nn),Nn=l,s||a),(i=t||o)&&Tr({_contentSizeChanged:o,_changedOptions:Ne?li:Fe})):"sync"===e?$n?(n=zn(Fn.takeRecords()),r=jn(Bn.takeRecords())):n=Xe.update(Ge):"zoom"===e&&Tr({_hostSizeChanged:!0,_contentSizeChanged:!0}):(e=Te||e,Te=!1,Xe.update("sync")&&!e||Tr({_force:e})),Ar(),i||n||r},Xe.options=function(e,t){var n={};if(Si.isEmptyObject(e)||!Si.isPlainObject(e)){if(X(e)!=fi)return se;if(!(1<arguments.length))return Zr(se,e);for(var r=n,i=e,o=t,a=i.split(C),s=a.length,l=0,c={},i=c;l<s;l++)c=c[a[l]]=l+1<s?{}:o;Si.extend(r,i,!0),r=Er(n)}else r=Er(e);Si.isEmptyObject(r)||Tr({_changedOptions:r})},Xe.destroy=function(){if(!ke){for(var e in Je.remove(Xe),gr(),pr(zt),pr(Bt),le)Xe.removeExt(e);for(;0<Xn[mi.l];)Xn.pop()();Cr(!0),Ue&&ri(Ue),$t&&ri($t),at&&ri(Bt),Pr(!0),Fr(!0),Lr(!0);for(var t=0;t<ue[mi.l];t++)Si(ue[t]).off(ce,Sr);ue=li,Te=ke=!0,Ci(n,0),Br("onDestroyed")}},Xe.scroll=function(e,t,n,H){if(0===arguments.length||e===li)return E=Y,L=Q,p=Ln&&Me&&Ce.i,T=Ln&&Me&&Ce.n,d=E._currentScroll,S=E._currentScrollRatio,A=E._maxScroll,d=p?A-d:d,{position:{x:d*=T?-1:1,y:L._currentScroll},ratio:{x:S=p?1-S:S,y:L._currentScrollRatio},max:{x:A*=T?-1:1,y:L._maxScroll},handleOffset:{x:E._handleOffset,y:L._handleOffset},handleLength:{x:E._handleLength,y:L._handleLength},handleLengthRatio:{x:E._handleLengthRatio,y:L._handleLengthRatio},trackLength:{x:E._trackLength,y:L._trackLength},snappedHandleOffset:{x:E._snappedHandleOffset,y:L._snappedHandleOffset},isRTL:Me,isRTLNormalized:Ln};Xe.update("sync");var l,r,i,h,m,o,a,g,v,y,b,s,w,c,u,x=Ln,G=[J,Pe,"l"],_=[Z,Le,"t"],V=["+=","-=","*=","/="],d=X(t)==ci,f=d?t.complete:H,p={},S={},C="end",N="begin",W="center",F="nearest",k="never",R="ifneeded",M=mi.l,T=[J,Z,"xy","yx"],A=[N,C,W,F],E=["always",k,R],L=e[mi.hOP]("el"),D=L?e.el:e,P=!!(D instanceof Si||xi)&&D instanceof xi,O=!P&&qr(D),B=function(){r&&_r(!0),i&&_r(!1)},z=X(f)!=ui?li:function(){B(),f()};function j(e,t){for(l=0;l<t[M];l++)if(e===t[l])return 1}function $(e,t){var n=e?G:_;if(t=X(t)==fi||X(t)==hi?[t,t]:t,vi.isA(t))return e?t[0]:t[1];if(X(t)==ci)for(l=0;l<n[M];l++)if(n[l]in t)return t[n[l]]}function U(e,t){var n,r,i=X(t)==fi,o=e?Y:Q,a=o._currentScroll,o=o._maxScroll,e=Me&&e,s=e&&Ce.n&&!x,l="replace",c=eval,u=i?(2<t[M]&&(i=t.substr(0,2),-1<cr(i,V)&&(n=i)),t=(t=n?t.substr(2):t)[l](/min/g,0)[l](/</g,0)[l](/max/g,(s?"-":He)+St)[l](/>/g,(s?"-":He)+St)[l](/px/g,He)[l](/%/g," * "+o*(e&&Ce.n?-1:1)/100)[l](/vw/g," * "+Ae.w)[l](/vh/g," * "+Ae.h),Xr(isNaN(t)?Xr(c(t),!0).toFixed():t)):t;if(u!==li&&!isNaN(u)&&X(u)==hi){var i=x&&e,d=a*(i&&Ce.n?-1:1),s=i&&Ce.i,l=i&&Ce.n,d=s?o-d:d;switch(n){case"+=":r=d+u;break;case"-=":r=d-u;break;case"*=":r=d*u;break;case"/=":r=d/u;break;default:r=u}r=s?o-r:r,r*=l?-1:1,r=e&&Ce.n?wi.min(0,wi.max(o,r)):wi.max(0,wi.min(o,r))}return r===a?li:r}function q(e,t,n,r){var i,o,a=[n,n],s=X(e);if(s==t)e=[e,e];else if(s==di){if(2<(i=e[M])||i<1)e=a;else for(1===i&&(e[1]=n),l=0;l<i;l++)if(o=e[l],X(o)!=t||!j(o,r)){e=a;break}}else e=s==ci?[e[J]||n,e[Z]||n]:a;return{x:e[0],y:e[1]}}function I(e){var t,n,r=[],i=[Le,De,vt,Pe];for(l=0;l<e[M]&&l!==i[M];l++)t=e[l],n=X(t),r.push(n==pi?t?Xr(u.css(Ee+i[l])):0:n==hi?t:0);return r}(P||O)&&(O=L?e.margin:0,s=L?e.axis:0,c=L?e.scroll:0,L=L?e.block:0,a=[0,0,0,0],o=X(O),0<(u=P?D:Si(D))[M]&&(O=o==hi||o==pi?I([O,O,O,O]):o==di?2===(P=O[M])?I([O[0],O[1],O[0],O[1]]):4<=P?I(O):a:o==ci?I([O[Le],O[De],O[vt],O[Pe]]):a,D=j(s,T)?s:"xy",h=q(c,fi,"always",E),m=q(L,fi,N,A),P=O,o=Y._currentScroll,a=Q._currentScroll,g=jt.offset(),v=u.offset(),y={x:h.x==k||D==Z,y:h.y==k||D==J},v[Le]-=P[0],v[Pe]-=P[3],b={x:wi.round(v[Pe]-g[Pe]+o),y:wi.round(v[Le]-g[Le]+a)},Me&&(Ce.n||Ce.i||(b.x=wi.round(g[Pe]-v[Pe]+o)),Ce.n&&x&&(b.x*=-1),Ce.i&&x&&(b.x=wi.round(g[Pe]-v[Pe]+(Y._maxScroll-o)))),m.x==N&&m.y==N&&h.x!=R&&h.y!=R&&!Me||(T=u[0],s=K?T[mi.bCR]():{width:T[mi.oW],height:T[mi.oH]},w={w:s[Oe]+P[3]+P[1],h:s[Ie]+P[0]+P[2]},(c=function(e){var t=Wr(e),n=t._w_h,r=t._left_top,t=t._x_y,i=m[t]==(e&&Me?N:C),o=m[t]==W,a=m[t]==F,s=h[t]==k,l=h[t]==R,c=Ae[n],u=g[r],n=w[n],r=v[r],d=o?2:1,f=r+n/2,p=u+c/2,r=n<=c&&u<=r&&r+n<=u+c;s?y[t]=!0:y[t]||((a||l)&&(y[t]=l&&r,i=n<c?p<f:f<p),b[t]-=i||o?(c/d-n/d)*(e&&Me&&x?-1:1):0)})(!0),c(!1)),y.y&&delete b.y,y.x&&delete b.x,e=b)),p[Ve]=U(!0,$(!0,e)),p[We]=U(!1,$(!1,e)),r=p[Ve]!==li,i=p[We]!==li,(r||i)&&(0<t||d)?d?(t.complete=z,je.animate(p,t)):(E={duration:t,complete:z},vi.isA(n)||Si.isPlainObject(n)?(S[Ve]=n[0]||n.x,S[We]=n[1]||n.y,E.specialEasing=S):E.easing=n,je.animate(p,E)):(r&&je[Ve](p[Ve]),i&&je[We](p[We]),B())},Xe.scrollStop=function(e,t,n){return je.stop(e,t,n),Xe},Xe.getElements=function(e){var t={target:Kt,host:Yt,padding:Zt,viewport:en,content:tn,scrollbarHorizontal:{scrollbar:me[0],track:ge[0],handle:ve[0]},scrollbarVertical:{scrollbar:ye[0],track:be[0],handle:we[0]},scrollbarCorner:qe[0]};return X(e)==fi?Zr(t,e):t},Xe.getState=function(e){function t(e){var n,t;return Si.isPlainObject(e)?(n=Ke({},e),(t=function(e,t){n[mi.hOP](e)&&(n[t]=n[e],delete n[e])})("w",Oe),t("h",Ie),delete n.c,n):e}var n={destroyed:!!t(ke),sleeping:!!t(Te),autoUpdate:t(!$n),widthAuto:t(ln),heightAuto:t(cn),padding:t(dn),overflowAmount:t(wn),hideOverflow:t(sn),hasOverflow:t(an),contentScrollSize:t(rn),viewportSize:t(Ae),hostSize:t(nn),documentMixed:t(w)};return X(e)==fi?Zr(n,e):n},Xe.ext=function(e){var t,n="added removed on contract".split(" "),r=0;if(X(e)==fi){if(le[mi.hOP](e))for(t=Ke({},le[e]);r<n.length;r++)delete t[n[r]]}else for(r in t={},le)t[r]=Ke({},Xe.ext(r));return t},Xe.addExt=function(e,t){var n,r=yi.extension(e),i=!0;if(r)return le[mi.hOP](e)?Xe.ext(e):(r=r.extensionFactory.call(Xe,Ke({},r.defaultOptions),Si,vi))&&(n=r.contract,X(n)==ui&&(n=n(ai),i=X(n)==pi?n:i),i)?(n=(le[e]=r).added,X(n)==ui&&n(t),Xe.ext(e)):void 0;console.warn('A extension with the name "'+e+"\" isn't registered.")},Xe.removeExt=function(e){var t=le[e];return!!t&&(delete le[e],e=t.removed,X(e)==ui&&e(),!0)},yi.valid(oi(n,e,t))&&Ci(n,Xe),Xe);function dr(e,t,n,r,i){var o=vi.isA(t)&&vi.isA(n),a=r?"removeEventListener":"addEventListener",s=r?"off":"on",l=!o&&t.split(_e),c=0,u=Si.isPlainObject(i),d=v&&(u?i._passive:i)||!1,u=u&&(i._capture||!1),f=v?{passive:d,capture:u}:u;if(o)for(;c<t[mi.l];c++)dr(e,t[c],n[c],r,i);else for(;c<l[mi.l];c++)v?e[0][a](l[c],n,f):e[s](l[c],n)}function fr(e,t,n,r){dr(e,t,n,!1,r),Xn.push(vi.bind(dr,0,e,t,n,!0,r))}function pr(e,t){var n,i,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,S;e&&(S=vi.rO(),n="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",v="childNodes",i=3333333,r=function(){e[We](i)[Ve](Me?Ce.n?-i:Ce.i?0:i:i),t()},t?(N?((x=e.addClass("observed").append(Qr(L)).contents()[0])[k]=new S(r)).observe(x):9<H||!et?(e.prepend(Qr(L,Qr({c:D,dir:"ltr"},Qr(D,Qr(P))+Qr(D,Qr({c:P,style:"width: 200%; height: 200%"}))))),o=e[0][v][0][v][0],a=Si(o[v][1]),s=Si(o[v][0]),S=Si(s[0][v][0]),l=o[mi.oW],c=o[mi.oH],v=xe.nativeScrollbarSize,h=function(){s[Ve](i)[We](i),a[Ve](i)[We](i)},m=function(){d=0,u&&(l=f,c=p,r())},g=function(e){return f=o[mi.oW],p=o[mi.oH],u=f!=l||p!=c,e&&u&&!d?(vi.cAF()(d),d=vi.rAF()(m)):e||m(),h(),e&&(vi.prvD(e),vi.stpP(e)),!1},b={},zr(y={},He,[-2*(v.y+1),-2*v.x,-2*v.y,-2*(v.x+1)]),Si(o).css(y),s.on(xt,g),a.on(xt,g),e.on(n,function(){g(!1)}),b[Oe]=i,b[Ie]=i,S.css(b),h()):(v=Xt.attachEvent,y=H!==li,v?(e.prepend(Qr(L)),ii(e,C+L)[0].attachEvent("onresize",r)):((b=Xt.createElement(ci)).setAttribute(mi.ti,"-1"),b.setAttribute(mi.c,L),b.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",r),e.document.documentElement.style.display="none"},b.type="text/html",y&&e.prepend(b),b.data="about:blank",y||e.prepend(b),e.on(n,r))),e[0]===Jt&&((w=function(){var e=ze.css("direction"),t={},n=0,r=!1;return e!==mn&&(n="ltr"===e?(t[Pe]=0,t[De]=Ge,i):(t[Pe]=Ge,t[De]=0,Ce.n?-i:Ce.i?0:i),zt.children().eq(0).css(t),zt[Ve](n)[We](i),mn=e,r=!0),r})(),fr(e,xt,function(e){return w()&&Tr(),vi.prvD(e),vi.stpP(e),!1}))):N?(S=(x=e.contents()[0])[k])&&(S.disconnect(),delete x[k]):ri(e.children(C+L).eq(0)))}function hr(){var n,e,r,o,a,s,l,c,u,i,d,f,p;b&&(n=11,e=vi.mO(),r=vi.now(),jn=function(e){var t=!1;return Ne&&!Te&&(g(e,function(){return!(t=function(e){var t=e.attributeName,n=e.target,r=e.type,i="closest";if(n===tn)return null===t;if("attributes"===r&&(t===mi.c||t===mi.s)&&!Re){if(t===mi.c&&Si(n).hasClass(m))return kr(e.oldValue,n.className);if(typeof n[i]!=ui)return!0;if(null!==n[i](C+L)||null!==n[i](C+I)||null!==n[i](C+ee))return!1}return!0}(this))}),t&&(d=vi.now(),f=cn||ln,p=function(){ke||(r=d,Re&&Mr(),f?Tr():Xe.update(Ge))},clearTimeout(i),n<=0||n<d-r||!f?p():i=setTimeout(p,n))),t},Fn=new e(zn=function(e){var t,n=!1,r=!1,i=[];return Ne&&!Te&&(g(e,function(){o=(t=this).target,a=t.attributeName,s=a===mi.c,l=t.oldValue,c=o.className,h&&s&&!r&&-1<l.indexOf(R)&&c.indexOf(R)<0&&(u=$r(!0),Yt.className=c.split(_e).concat(l.split(_e).filter(function(e){return e.match(u)})).join(_e),n=r=!0),n=n||(s?kr(l,c):a!==mi.s||l!==o[mi.s].cssText),i.push(a)}),Rr(i),n&&Xe.update(r||Ge)),n}),Bn=new e(jn))}function mr(){b&&!$n&&(Fn.observe(Yt,{attributes:!0,attributeOldValue:!0,attributeFilter:qn}),Bn.observe(Re?Kt:tn,{attributes:!0,attributeOldValue:!0,subtree:!Re,childList:!Re,characterData:!Re,attributeFilter:Re?Un:qn}),$n=!0)}function gr(){b&&$n&&(Fn.disconnect(),Bn.disconnect(),$n=!1)}function vr(){var e,t;Te||(t=ti(e={w:Jt[mi.sW],h:Jt[mi.sH]},kn),kn=e,t&&Tr({_hostSizeChanged:!0}))}function yr(){nr&&Hr(!0)}function br(){nr&&!he.hasClass(re)&&Hr(!1)}function wr(){tr&&(Hr(!0),clearTimeout(Qn),Qn=setTimeout(function(){tr&&!ke&&Hr(!1)},100))}function xr(e){return vi.prvD(e),!1}function Sr(e){var t,n;ke||(t=e.target,n=Si(e.target),-1<(e=Si.inArray(t,ue))&&ue.splice(e,1),ei(function(e,t){n.is(t)&&Tr({_contentSizeChanged:!0})}))}function Cr(e){e||Cr(!0),dr(ze,S.split(_e)[0],wr,!tr||e,!0),dr(ze,[_,V],[yr,br],!nr||e,!0),Ne||e||ze.one("mouseover",yr)}function Nr(){var e={};return it&&$t&&(e.w=Xr($t.css(yt+Oe)),e.h=Xr($t.css(yt+Ie)),e.c=ti(e,Vn),e.f=!0),!!(Vn=e).c}function kr(e,t){var n,r,t=typeof t==fi?t.split(_e):[],i=function(e,t){var n,r,i=[],o=[];for(n=0;n<e.length;n++)i[e[n]]=!0;for(n=0;n<t.length;n++)i[t[n]]?delete i[t[n]]:i[t[n]]=!0;for(r in i)o.push(r);return o}(typeof e==fi?e.split(_e):[],t),e=cr(Gt,i);if(-1<e&&i.splice(e,1),0<i[mi.l])for(r=$r(!0,!0),n=0;n<i.length;n++)if(!i[n].match(r))return!0;return!1}function Rr(e){g(e=e||ae,function(e,t){var n;-1<vi.inA(t,ae)&&(n=Be.attr(t),X(n)==fi?je.attr(t,n):je.removeAttr(t))})}function Mr(){var e,t,n,r,i,o,a;if(!Te)return i=!On,e=Ae.w,t=Ae.h,i=ln||i,(n={})[yt+Oe]=He,n[yt+Ie]=He,n[Oe]=Ge,Be.css(n),r=Kt[mi.oW],i=i?wi.max(r,Kt[mi.sW]-1):1,n[Oe]=ln?Ge:St,n[yt+Oe]=St,n[Ie]=Ge,Be.css(n),o=Kt[mi.oH],a=wi.max(o,Kt[mi.sH]-1),n[Oe]=i,n[Ie]=a,Ut.css(n),n[yt+Oe]=e,n[yt+Ie]=t,Be.css(n),{_originalWidth:r,_originalHeight:o,_dynamicWidth:i,_dynamicHeight:a}}function Tr(e){clearTimeout(Wt),Vt._hostSizeChanged|=(e=e||{})._hostSizeChanged,Vt._contentSizeChanged|=e._contentSizeChanged,Vt._force|=e._force;var t=vi.now(),H=!!Vt._hostSizeChanged,G=!!Vt._contentSizeChanged,n=!!Vt._force,e=e._changedOptions,r=Ne&&!ke&&!n&&!e&&t-_t<Ft&&!cn&&!ln;if(r&&(Wt=setTimeout(Tr,Ft)),!(ke||r||Te&&!e||Ne&&!n&&(L=ze.is(":hidden"))||"inline"===ze.css("display"))){_t=t,Vt={},!tt||Se.x&&Se.y?rt=Ke({},xe.nativeScrollbarSize):(rt.x=0,rt.y=0),ht={x:3*(rt.x+(Se.x?0:3)),y:3*(rt.y+(Se.y?0:3))};var _,e=e||{},r=function(){return ti.apply(this,[].slice.call(arguments).concat([n]))},t={x:je[Ve](),y:je[We]()},i=Fe.scrollbars,o=Fe.textarea,V=i.visibility,W=r(V,Rn),a=i.autoHide,F=r(a,Mn),B=i.clickScrolling,z=r(B,Tn),j=i.dragScrolling,$=r(j,An),s=Fe.className,l=r(s,Dn),c=Fe.resize,U=r(c,En)&&!it,u=Fe.paddingAbsolute,d=r(u,gn),q=Fe.clipAlways,X=r(q,vn),f=Fe.sizeAutoCapable&&!it,p=r(f,Cn),h=Fe.nativeScrollbarsOverlaid.showNativeScrollbars,m=r(h,xn),g=Fe.autoUpdate,v=r(g,Sn),K=Fe.overflowBehavior,Y=r(K,bn,n),Q=o.dynWidth,J=r(_n,Q),o=o.dynHeight,Z=r(Gn,o),ee=(Zn="n"===a,er="s"===a,tr="m"===a,nr="l"===a,Jn=i.autoHideDelay,Pn=Dn,or="n"===c,ar="b"===c,sr="h"===c,lr="v"===c,Ln=Fe.normalizeRTL,h=h&&Se.x&&Se.y,Rn=V,Mn=a,Tn=B,An=j,Dn=s,En=c,gn=u,vn=q,Cn=f,xn=h,Sn=g,bn=Ke({},K),_n=Q,Gn=o,an=an||{x:!1,y:!1},l&&(Qe(ze,Pn+_e+Gt),Ye(ze,s!==li&&null!==s&&0<s.length?s:Gt)),v&&(!0===g||null===g&&et?(gr(),Je.add(Xe)):(Je.remove(Xe),mr())),p&&(f?(Ue?Ue.show():(Ue=Si(Qr(Lt)),jt.before(Ue)),at?Bt.show():(Bt=Si(Qr(Dt)),Qt=Bt[0],Ue.before(Bt),_={w:-1,h:-1},pr(Bt,function(){var e={w:Qt[mi.oW],h:Qt[mi.oH]};ti(e,_)&&(Ne&&cn&&0<e.h||ln&&0<e.w||Ne&&!cn&&0===e.h||!ln&&0===e.w)&&Tr(),_=e}),at=!0,null!==nt&&Bt.css(Ie,nt+"(100% + 1px)"))):(at&&Bt.hide(),Ue&&Ue.hide())),n&&(zt.find("*").trigger(xt),at&&Bt.find("*").trigger(xt)),L=L===li?ze.is(":hidden"):L,!!Re&&"off"!==Be.attr("wrap")),i=r(ee,On),a=ze.css("direction"),c=r(a,hn),l=ze.css("box-sizing"),s=r(l,un),v=jr(mt);try{O=at?Qt[mi.bCR]():null}catch(we){return}ot="border-box"===l;var te,ne,re,ie,y,oe,ae,se,le,ce,b,w,x,ue,de,S,fe,C,N,pe,he,k,me=(Me="rtl"===a)?Pe:De,g=Me?De:Pe,R=!1,ge=!(!at||"none"===ze.css(wt))&&(0===wi.round(O.right-O.left)&&(!!u||0<Yt[mi.cW]-st)),M=(f&&!ge&&(ve=Yt[mi.oW],T=Ue.css(Oe),Ue.css(Oe,Ge),E=Yt[mi.oW],Ue.css(Oe,T),(R=ve!==E)||(Ue.css(Oe,ve+1),E=Yt[mi.oW],Ue.css(Oe,T),R=ve!==E)),(ge||R)&&f&&!L),T=r(M,ln),ve=!M&&ln,A=!(!at||!f||L)&&0===wi.round(O.bottom-O.top),E=r(A,cn),ge=!A&&cn,R=jr(gt,"-"+Oe,!(M&&ot||!ot),!(A&&ot||!ot)),L=jr(Ee),D={},P={},O=function(){return{w:Yt[mi.cW],h:Yt[mi.cH]}},I=function(){return{w:Zt[mi.oW]+wi.max(0,tn[mi.cW]-tn[mi.sW]),h:Zt[mi.oH]+wi.max(0,tn[mi.cH]-tn[mi.sH])}},ye=st=v.l+v.r,be=lt=v.t+v.b,p=(ye*=u?1:0,be*=u?1:0,v.c=r(v,dn),ct=R.l+R.r,ut=R.t+R.b,R.c=r(R,fn),dt=L.l+L.r,ft=L.t+L.b,L.c=r(L,pn),On=ee,hn=a,un=l,ln=M,cn=A,dn=v,fn=R,pn=L,c&&at&&Bt.css(wt,g),(v.c||c||d||T||E||s||p)&&(N={},l={},L=[v.t,v.r,v.b,v.l],zr(P,Ee,[-v.t,-v.r,-v.b,-v.l]),u?(zr(N,He,L),zr(Re?l:D,mt)):(zr(N,He),zr(Re?l:D,mt,L)),jt.css(N),Be.css(l)),Ae=I(),!!Re&&Mr()),u=Re&&r(p,Hn),L=Re&&p?{w:Q?p._dynamicWidth:p._originalWidth,h:o?p._dynamicHeight:p._originalHeight}:{};Hn=p,A&&(E||d||s||v.c||R.c)?D[Ie]=Ge:(E||d)&&(D[Ie]=St),M&&(T||d||s||v.c||R.c||c)?(D[Oe]=Ge,P[bt+Oe]=St):(T||d)&&(D[Oe]=St,D[wt]=He,P[bt+Oe]=He),M?(P[Oe]=Ge,D[Oe]=gi._cssPropertyValue(Oe,"max-content intrinsic")||Ge,D[wt]=g):P[Oe]=He,P[Ie]=A?L.h||tn[mi.cH]:He,f&&Ue.css(P),$e.css(D),D={},P={},(H||G||u||c||s||d||T||M||E||A||m||Y||X||U||W||F||$||z||J||Z||i)&&(l=(te="overflow")+"-x",Q=te+"-y",tt||(k={},he=an.y&&sn.ys&&!h?Se.y?je.css(me):-rt.y:0,pe=an.x&&sn.xs&&!h?Se.x?je.css(vt):-rt.x:0,zr(k,He),je.css(k)),o=Yr(),ne={w:L.w||o[mi.cW],h:L.h||o[mi.cH]},p=o[mi.sW],v=o[mi.sH],tt||(k[vt]=ge?He:pe,k[me]=ve?He:he,je.css(k)),Ae=I(),R=O(),re={w:R.w-dt-ct-(ot?0:st),h:R.h-ft-ut-(ot?0:lt)},(u={w:wi.max((M?ne.w:p)+ye,re.w),h:wi.max((A?ne.h:v)+be,re.h)}).c=r(u,yn),yn=u,f&&((u.c||A||M)&&(P[Oe]=u.w,P[Ie]=u.h,Re||(ne={w:o[mi.cW],h:o[mi.cH]})),ie={},(J=function(e){var t=Wr(e),n=t._w_h,t=t._width_height,r=e?M:A,i=e?ct:ut,o=e?st:lt,a=e?dt:ft,i=Ae[n]-i-a-(ot?0:o);r||(P[t]=re[n]-1),r&&ne[n]<i&&!(e&&Re&&ee)&&(Re&&(ie[t]=Xr(Ut.css(t))-1),--P[t]),0<ne[n]&&(P[t]=wi.max(1,P[t]))})(!0),J(!1),Re&&Ut.css(ie),Ue.css(P)),M&&(D[Oe]=St),!M||ot||$n||(D[wt]="none"),$e.css(D),D={},(y={w:o[mi.sW],h:o[mi.sH]}).c=G=r(y,rn),rn=y,Ae=I(),H=r(R=O(),nn),nn=R,oe=Re&&(0===Ae.w||0===Ae.h),ae=wn,se={},le={},ce={},b={},w={},x={},ue={},de=Zt[mi.bCR](),(Z=function(e){var t=Wr(e),e=Wr(!e)._x_y,n=t._x_y,r=t._w_h,i=t._width_height,t=xt+t._Left_Top+"Max",i=de[i]?wi.abs(de[i]-Ae[r]):0,t=ae&&0<ae[n]&&0===en[t];se[n]="v-s"===K[n],le[n]="v-h"===K[n],ce[n]="s"===K[n],b[n]=wi.max(0,wi.round(100*(y[r]-Ae[r]))/100),b[n]*=oe||t&&0<i&&i<1?0:1,w[n]=0<b[n],x[n]=se[n]||le[n]?w[e]&&!se[e]&&!le[e]:w[n],x[n+"s"]=!!x[n]&&(ce[n]||se[n]),ue[n]=w[n]&&x[n+"s"]})(!0),Z(!1),b.c=r(b,wn),wn=b,w.c=r(w,an),an=w,x.c=r(x,sn),sn=x,(Se.x||Se.y)&&(i={},S={},fe=n,(w.x||w.y)&&(S.w=Se.y&&w.y?y.w+Ze.y:He,S.h=Se.x&&w.x?y.h+Ze.x:He,fe=r(S,on),on=S),(w.c||x.c||y.c||c||T||E||M||A||m)&&(D[Ee+g]=D[gt+g]=He,L=function(e){var t=Wr(e),n=Wr(!e),t=t._x_y,r=e?vt:me,i=e?A:M;Se[t]&&w[t]&&x[t+"s"]?(D[Ee+r]=!i||h?He:Ze[t],D[gt+r]=e&&i||h?He:Ze[t]+"px solid transparent"):(S[n._w_h]=D[Ee+r]=D[gt+r]=He,fe=!0)},tt?ni(je,At,!h):(L(!0),L(!1))),h&&(S.w=S.h=He,fe=!0),fe&&!tt&&(i[Oe]=x.y?S.w:He,i[Ie]=x.x?S.h:He,$t||($t=Si(Qr(Et)),je.prepend($t)),$t.css(i)),$e.css(D)),C={},N={},(H||w.c||x.c||y.c||Y||s||m||c||X||E)&&(C[g]=He,(ge=function(e){var t=Wr(e),n=Wr(!e),r=t._x_y,t=t._X_Y,i=e?vt:me,e=function(){C[i]=He,pt[n._w_h]=0};w[r]&&x[r+"s"]?(C[te+t]=xt,h||tt?e():(C[i]=-(Se[r]?Ze:rt)[r],pt[n._w_h]=Se[r]?Ze[n._x_y]:0)):(C[te+t]=He,e())})(!0),ge(!1),!tt&&(Ae.h<ht.x||Ae.w<ht.y)&&(w.x&&x.x&&!Se.x||w.y&&x.y&&!Se.y)?(C[mt+Le]=ht.x,C[Ee+Le]=-ht.x,C[mt+g]=ht.y,C[Ee+g]=-ht.y):C[mt+Le]=C[Ee+Le]=C[mt+g]=C[Ee+g]=He,C[mt+me]=C[Ee+me]=He,w.x&&x.x||w.y&&x.y||oe?Re&&oe&&(N[l]=N[Q]="hidden"):(!q||le.x||se.x||le.y||se.y)&&(Re&&(N[l]=N[Q]=He),C[l]=C[Q]="visible"),jt.css(N),je.css(C),C={},!(w.c||s||T||E)||Se.x&&Se.y||((pe=tn[mi.s]).webkitTransform="scale(1)",pe.display="run-in",tn[mi.oH],pe.display=He,pe.webkitTransform=He)),D={},(c||T||E)&&(Me&&M?(ve=$e.css(wt),he=wi.round($e.css(wt,He).css(Pe,He).position().left),$e.css(wt,ve),he!==wi.round($e.position().left)&&(D[Pe]=he)):D[Pe]=He),$e.css(D),Re&&G&&((k=function(){var e=Kt.selectionStart;if(e!==li){var t,n,r=Be.val(),i=r[mi.l],o=r.split("\n"),a=o[mi.l],r=r.substr(0,e).split("\n"),s=0,l=0,c=r[mi.l],r=r[r[mi.l]-1][mi.l];for(n=0;n<o[mi.l];n++)t=o[n][mi.l],l<t&&(s=n+1,l=t);return{_cursorRow:c,_cursorColumn:r,_rows:a,_columns:l,_widestRow:s,_cursorPosition:e,_cursorMax:i}}}())&&(p=In===li||k._rows!==In._rows,ye=k._cursorRow,v=k._cursorColumn,be=k._widestRow,f=k._rows,u=k._columns,J=k._cursorPosition,o=k._cursorMax<=J&&Kn,I={x:ee||v!==u||ye!==be?-1:wn.x,y:(ee?o||p&&ae&&t.y===ae.y:(o||p)&&ye===f)?wn.y:-1},t.x=-1<I.x?Me&&Ln&&Ce.i?0:I.x:t.x,t.y=(-1<I.y?I:t).y),In=k),Me&&Ce.i&&Se.y&&w.x&&Ln&&(t.x+=pt.w||0),M&&ze[Ve](0),A&&ze[We](0),je[Ve](t.x)[We](t.y),O="v"===V,R="h"===V,Z="a"===V,r=function(e,t){t=t===li?e:t,Ir(!0,e,ue.x),Ir(!1,t,ue.y)},ni(ze,Rt,x.x||x.y),ni(ze,Mt,x.x),ni(ze,Tt,x.y),c&&!it&&ni(ze,Ct,Me),it&&Ye(ze,Nt),U&&(ni(ze,Nt,or),ni(qe,Pt,!or),ni(qe,Ot,ar),ni(qe,It,sr),ni(qe,Ht,lr)),(W||Y||x.c||w.c||m)&&(h?m&&(Qe(ze,kt),h&&r(!1)):Z?r(ue.x,ue.y):O?r(!0):R&&r(!1)),(F||m)&&(Cr(!nr&&!tr),Hr(Zn,!Zn)),(H||b.c||E||T||U||s||d||m||c)&&(Gr(!0),_r(!0),Gr(!1),_r(!1)),z&&Vr(!0,B),$&&Vr(!1,j),Br("onDirectionChanged",{isRTL:Me,dir:a},c),Br("onHostSizeChanged",{width:nn.w,height:nn.h},H),Br("onContentSizeChanged",{width:rn.w,height:rn.h},G),Br("onOverflowChanged",{x:w.x,y:w.y,xScrollable:x.xs,yScrollable:x.ys,clipped:x.x||x.y},w.c||x.c),Br("onOverflowAmountChanged",{x:b.x,y:b.y},b.c)),it&&Vn&&(an.c||Vn.c)&&(Vn.f||Nr(),Se.y&&an.x&&$e.css(yt+Oe,Vn.w+Ze.y),Se.x&&an.y&&$e.css(yt+Ie,Vn.h+Ze.x),Vn.c=!1),Ne&&e.updateOnLoad&&Ar(),Br("onUpdated",{forced:n})}}function Ar(){Re||ei(function(e,t){$e.find(t).each(function(e,t){vi.inA(t,ue)<0&&(ue.push(t),Si(t).off(ce,Sr).on(ce,Sr))})})}function Er(e){e=bi._validate(e,bi._template,!0,se);return se=Ke({},se,e._default),Fe=Ke({},Fe,e._prepared),e._prepared}function Lr(r){var e="parent",t=T+_e+O,n=Re?_e+O:He,i=Fe.textarea.inheritedAttrs,o={},a=function(){var n=r?Be:ze;g(o,function(e,t){X(t)==fi&&(e==mi.c?n.addClass(t):n.attr(e,t))})},s=[m,R,c,Nt,Ct,u,d,M,kt,Rt,Mt,Tt,Gt,T,O,Dn].join(_e),l={};ze=ze||(Re?h?Be[e]()[e]()[e]()[e]():Si(Qr(c)):Be),$e=$e||Jr(E+n),je=je||Jr(f+n),jt=jt||Jr(A+n),zt=zt||Jr("os-resize-observer-host"),Ut=Ut||(Re?Jr("os-textarea-cover"):li),h&&Ye(ze,R),r&&Qe(ze,s),i=X(i)==fi?i.split(_e):i,vi.isA(i)&&Re&&g(i,function(e,t){X(t)==fi&&(o[t]=(r?ze:Be).attr(t))}),r?(h&&Ne?(zt.children().remove(),g([jt,je,$e,Ut],function(e,t){t&&Qe(t.removeAttr(mi.s),ie)}),Ye(ze,Re?c:m)):(ri(zt),$e.contents().unwrap().unwrap().unwrap(),Re&&(Be.unwrap(),ri(ze),ri(Ut),a())),Re&&Be.removeAttr(mi.s),it&&Qe(pe,"os-html")):(Re&&(Fe.sizeAutoCapable||(l[Oe]=Be.css(Oe),l[Ie]=Be.css(Ie)),h||Be.addClass(O).wrap(ze),ze=Be[e]().css(l)),h||(Ye(Be,Re?t:m),ze.wrapInner($e).wrapInner(je).wrapInner(jt).prepend(zt),$e=ii(ze,C+E),je=ii(ze,C+f),jt=ii(ze,C+A),Re&&($e.prepend(Ut),a())),tt&&Ye(je,At),Se.x&&Se.y&&Ye(je,p),it&&Ye(pe,"os-html"),Jt=zt[0],Yt=ze[0],Zt=jt[0],en=je[0],tn=$e[0],Rr())}function Dr(){var t,n,r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],e="focus";function o(e){Mr(),Xe.update(Ge),e&&et&&clearInterval(t)}function a(e){var t,n,r,i,o,a,s,l;!0!==Sn&&(e=e.originalEvent||e,e=e.propertyName,Ne&&(r=[Oe,yt+Oe,bt+Oe,Ee+Pe,Ee+De,Pe,De,"font-weight","word-spacing","flex-grow",t="flex-shrink",n="flex-basis"],i=[mt+Pe,mt+De,gt+Pe+Oe,gt+De+Oe],o=[mt+Le,mt+vt,gt+Le+Oe,gt+vt+Oe],a="s"===bn.x||"v-s"===bn.x,s=!"v-s",l=function(e,t){for(var n=0;n<e[mi.l];n++)if(e[n]===t)return!0;return!1},!("s"===bn.y||"v-s"===bn.y)||(s=l([Ie,yt+Ie,bt+Ie,Ee+Le,Ee+vt,Le,vt,"line-height","flex-grow",t,n],e))||ot||(s=l(o,e)),!a||(s=s||l(r,e))||ot?!s:!l(i,e))||Xe.update(Ge))}Re?(9<H||!et?fr(Be,"input",o):fr(Be,[W,F],[function(e){e=e.keyCode,cr(e,r)<0&&(i[mi.l]||(o(),t=setInterval(o,1e3/60)),cr(e,i)<0&&i.push(e))},function(e){var e=e.keyCode,t=cr(e,i);cr(e,r)<0&&(-1<t&&i.splice(t,1),i[mi.l]||o(!0))}]),fr(Be,[xt,"drop",e,e+"out"],[function(e){return Be[Ve](Ce.i&&Ln?9999999:0),Be[We](0),vi.prvD(e),vi.stpP(e),!1},function(e){setTimeout(function(){ke||o()},50)},function(){Kn=!0,Ye(ze,e)},function(){Kn=!1,i=[],Qe(ze,e),o(!0)}])):fr($e,z,a),fr(je,xt,function(e){Te||(n!==li?clearTimeout(n):((er||tr)&&Hr(!0),Kr()||Ye(ze,kt),Br("onScrollStart",e)),ir||(_r(!0),_r(!1)),Br("onScroll",e),n=setTimeout(function(){ke||(clearTimeout(n),n=li,(er||tr)&&Hr(!1),Kr()||Qe(ze,kt),Br("onScrollStop",e))},175))},!0)}function Pr(r){var e,t,i=function(e){var e=Jr(I+_e+(e?te:ne),!0),t=Jr(s,e),n=Jr(j,e);return h||r||(e.append(t),t.append(n)),{_scrollbar:e,_track:t,_handle:n}};function n(e){var t=Wr(e),n=t._scrollbar,r=t._track,t=t._handle;h&&Ne?g([n,r,t],function(e,t){Qe(t.removeAttr(mi.s),ie)}):ri(n||i(e)._scrollbar)}r?(n(!0),n()):(e=i(!0),t=i(),me=e._scrollbar,ge=e._track,ve=e._handle,ye=t._scrollbar,be=t._track,we=t._handle,h||(jt.after(ye),jt.after(me)))}function Or(C){var N,r,k,R,n=Wr(C),M=n._info,t=qt.top!==qt,T=n._x_y,i=n._X_Y,A=xt+n._Left_Top,o="active",a="snapHandle",s="click",E=1,l=[16,17];function c(e){return H&&t?e["screen"+i]:vi.page(e)[T]}function u(e){return Fe.scrollbars[e]}function d(){E=.5}function f(){E=1}function p(e){vi.stpP(e)}function L(e){-1<cr(e.keyCode,l)&&d()}function D(e){-1<cr(e.keyCode,l)&&f()}function P(e){var t=(e.originalEvent||e).touches!==li;return!(Te||ke||Kr()||!An||t&&!u("touchSupport"))&&(1===vi.mBtn(e)||t)}function h(e){var t,n;P(e)?(n=M._trackLength,t=M._handleLength,n=M._maxScroll*((c(e)-k)*R/(n-t)),n=isFinite(n)?n:0,Me&&C&&!Ce.i&&(n*=-1),je[A](wi.round(r+n)),ir&&_r(C,r+n),v||vi.prvD(e)):O(e)}function O(e){var t;e=e||e.originalEvent,dr(fe,[S,G,W,F,B],[h,O,L,D,xr],!0),vi.rAF()(function(){dr(fe,s,p,!0,{_capture:!0})}),ir&&_r(C,!0),ir=!1,Qe(he,re),Qe(n._handle,o),Qe(n._track,o),Qe(n._scrollbar,o),R=1,f(),N!==(k=r=li)&&(Xe.scrollStop(),clearTimeout(N),N=li),e&&(t=Yt[mi.bCR](),e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom||br(),(er||tr)&&Hr(!1))}function I(e){r=je[A](),r=isNaN(r)?0:r,(Me&&C&&!Ce.n||!Me)&&(r=r<0?0:r),R=Ur()[T],k=c(e),ir=!u(a),Ye(he,re),Ye(n._handle,o),Ye(n._scrollbar,o),dr(fe,[S,G,B],[h,O,xr]),vi.rAF()(function(){dr(fe,s,p,!1,{_capture:!0})}),!H&&w||vi.prvD(e),vi.stpP(e)}fr(n._handle,x,function(e){P(e)&&I(e)}),fr(n._track,[x,_,V],[function(e){var f,p,h,m,t,g,v,y,b,w,x,S;P(e)&&(t=n._info._handleLength/Math.round(wi.min(1,Ae[n._w_h]/rn[n._w_h])*n._info._trackLength),f=wi.round(Ae[n._w_h]*t),p=270*t,h=400*t,m=n._track.offset()[n._left_top],t=e.ctrlKey,g=e.shiftKey,v=g&&t,y=!0,w=function(e){ir&&_r(C,e)},x=function(){w(),I(e)},S=function(){var e,t,n,r,i,o,a,s,l,c,u,d;ke||(e=(k-m)*R,t=M._handleOffset,d=M._trackLength,n=M._handleLength,r=M._maxScroll,i=M._currentScroll,o=p*E,a=y?wi.max(h,o):o,d=r*((e-n/2)/(d-n)),l=(s=Me&&C&&(!Ce.i&&!Ce.n||Ln))?t<e:e<t,c={},u={easing:"linear",step:function(e){ir&&(je[A](e),_r(C,e))}},d=isFinite(d)?d:0,d=Me&&C&&!Ce.i?r-d:d,g?(je[A](d),v?(d=je[A](),je[A](i),d=s&&Ce.i?r-d:d,d=s&&Ce.n?-d:d,c[T]=d,Xe.scroll(c,Ke(u,{duration:130,complete:x}))):x()):(b=y?l:b,(s?b?e<=t+n:t<=e:b?t<=e:e<=t+n)?(clearTimeout(N),Xe.scrollStop(),N=li,w(!0)):(N=setTimeout(S,a),c[T]=(b?"-=":"+=")+f,Xe.scroll(c,Ke(u,{duration:o}))),y=!1))},t&&d(),R=Ur()[T],k=vi.page(e)[T],ir=!u(a),Ye(he,re),Ye(n._track,o),Ye(n._scrollbar,o),dr(fe,[G,W,F,B],[O,L,D,xr]),S(),vi.prvD(e),vi.stpP(e))},function(e){rr=!0,(er||tr)&&Hr(!0)},function(e){rr=!1,(er||tr)&&Hr(!1)}]),fr(n._scrollbar,x,function(e){vi.stpP(e)}),y&&fr(n._scrollbar,z,function(e){e.target===n._scrollbar[0]&&(Gr(C),_r(C))})}function Ir(e,t,n){var r=e?me:ye;ni(ze,e?u:d,!t),ni(r,U,!n)}function Hr(e,t){var n;clearTimeout(Yn),e?(Qe(me,q),Qe(ye,q)):(e=function(){rr||ke||(!(n=ve.hasClass("active")||we.hasClass("active"))&&(er||tr||nr)&&Ye(me,q),!n&&(er||tr||nr)&&Ye(ye,q))},0<Jn&&!0!==t?Yn=setTimeout(e,Jn):e())}function Gr(e){var t={},e=Wr(e),n=e._info,r=wi.min(1,Ae[e._w_h]/rn[e._w_h]);t[e._width_height]=wi.floor(100*r*1e6)/1e6+"%",Kr()||e._handle.css(t),n._handleLength=e._handle[0]["offset"+e._Width_Height],n._handleLengthRatio=r}function _r(e,t){var n=X(t)==pi,r=Me&&e,i=Wr(e),o=i._info,a="translate(",s=gi._cssProperty("transform"),l=gi._cssProperty("transition"),c=e?je[Ve]():je[We](),t=t===li||n?c:t,u=o._handleLength,d=i._track[0]["offset"+i._Width_Height],f=d-u,p={},h=(en[xt+i._Width_Height]-en["client"+i._Width_Height])*(Ce.n&&r?-1:1),m=function(e){return isNaN(e/h)?0:wi.max(0,wi.min(1,e/h))},g=function(e){e*=f,e=isNaN(e)?0:e;return e=r&&!Ce.i?d-u-e:e,wi.max(0,e)},v=m(c),t=g(m(t)),m=g(v);o._maxScroll=h,o._currentScroll=c,o._currentScrollRatio=v,K?(g=r?-(d-u-t):t,p[s]=e?a+g+"px, 0)":a+"0, "+g+"px)",y&&(p[l]=n&&1<wi.abs(t-o._handleOffset)?function(e){var t=gi._cssProperty("transition"),n=e.css(t);if(n)return n;for(var r,i,o,n="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",a=new RegExp(n),s=new RegExp("^("+n+")+$"),l="property duration timing-function delay".split(" "),c=[],u=0;u<l[mi.l];u++)for(i=function(e){if(r=[],!e.match(s))return e;for(;e.match(a);)r.push(RegExp.$1),e=e.replace(a,He);return r}(e.css(t+"-"+l[u])),o=0;o<i[mi.l];o++)c[o]=(c[o]?c[o]+_e:He)+i[o];return c.join(", ")}(i._handle)+", "+(s+_e+250)+"ms":He)):p[i._left_top]=t,Kr()||(i._handle.css(p),K&&y&&n&&i._handle.one(z,function(){ke||i._handle.css(l,He)})),o._handleOffset=t,o._snappedHandleOffset=m,o._trackLength=d}function Vr(e,t){var t=t?"removeClass":"addClass",n=e?be:we,r=e?l:$;(e?ge:ve)[t](r),n[t](r)}function Wr(e){return{_width_height:e?Oe:Ie,_Width_Height:e?"Width":"Height",_left_top:e?Pe:Le,_Left_Top:e?"Left":"Top",_x_y:e?J:Z,_X_Y:e?"X":"Y",_w_h:e?"w":"h",_l_t:e?"l":"t",_track:e?ge:be,_handle:e?ve:we,_scrollbar:e?me:ye,_info:e?Y:Q}}function Fr(e){qe=qe||Jr(ee,!0),e?h&&Ne?Qe(qe.removeAttr(mi.s),ie):ri(qe):h||ze.append(qe)}function Br(e,t,n){var r,i;!1!==n&&(Ne?(n=Fe.callbacks[e],"on"===(r=e).substr(0,2)&&(r=r.substr(2,1).toLowerCase()+r.substr(3)),X(n)==ui&&n.call(Xe,t),g(le,function(){X((i=this).on)==ui&&i.on(r,t)})):ke||oe.push({n:e,a:t}))}function zr(e,t,n){e[(t=t||He)+Le]=(n=n||[He,He,He,He])[0],e[t+De]=n[1],e[t+vt]=n[2],e[t+Pe]=n[3]}function jr(e,t,n,r){return t=t||He,e=e||He,{t:r?0:Xr(ze.css(e+Le+t)),r:n?0:Xr(ze.css(e+De+t)),b:r?0:Xr(ze.css(e+vt+t)),l:n?0:Xr(ze.css(e+Pe+t))}}function $r(e,t){var n,r,i,o=function(e,t){if(i="",t&&typeof e==fi)for(r=e.split(_e),n=0;n<r[mi.l];n++)i+="|"+r[n]+"$";return i};return new RegExp("(^"+m+"([-_].+|)$)"+o(Dn,e)+o(Pn,t),"g")}function Ur(){var e=Zt[mi.bCR]();return{x:K&&1/(wi.round(e.width)/Zt[mi.oW])||1,y:K&&1/(wi.round(e.height)/Zt[mi.oH])||1}}function qr(e){var t="ownerDocument",n="HTMLElement",t=e&&e[t]&&e[t].parentWindow||ai;return typeof t[n]==ci?e instanceof t[n]:e&&typeof e==ci&&null!==e&&1===e.nodeType&&typeof e.nodeName==fi}function Xr(e,t){t=t?parseFloat(e):parseInt(e,10);return isNaN(t)?0:t}function Kr(){return xn&&Se.x&&Se.y}function Yr(){return Re?Ut[0]:tn}function Qr(n,e){return"<div "+(n?X(n)==fi?'class="'+n+'"':function(){var e,t=He;if(Si.isPlainObject(n))for(e in n)t+=("c"===e?"class":e)+'="'+n[e]+'" ';return t}():He)+">"+(e||He)+"</div>"}function Jr(e,t){var n=X(t)==pi,t=!n&&t||ze;return h&&!t[mi.l]?null:h?t[n?"children":"find"](C+e.replace(/\s/g,C)).eq(0):Si(Qr(e))}function Zr(e,t){for(var n,r=t.split(C),i=0;i<r.length;i++){if(!e[mi.hOP](r[i]))return;n=e[r[i]],i<r.length&&X(n)==ci&&(e=n)}return n}function ei(e){var t=Fe.updateOnLoad,t=X(t)==fi?t.split(_e):t;vi.isA(t)&&!ke&&g(t,e)}function ti(e,t,n){if(n)return n;if(X(e)!=ci||X(t)!=ci)return e!==t;for(var r in e)if("c"!==r){if(!e[mi.hOP](r)||!t[mi.hOP](r))return!0;if(ti(e[r],t[r]))return!0}return!1}function Ke(){return Si.extend.apply(this,[!0].concat([].slice.call(arguments)))}function Ye(e,t){return ur.addClass.call(e,t)}function Qe(e,t){return ur.removeClass.call(e,t)}function ni(e,t,n){(n?Ye:Qe)(e,t)}function ri(e){ur.remove.call(e)}function ii(e,t){return ur.find.call(e,t).eq(0)}function oi(e,t,n){var r,i,o,a,s,l,c;return de=xe.defaultOptions,tt=xe.nativeScrollbarStyling,rt=Ke({},xe.nativeScrollbarSize),Se=Ke({},xe.nativeScrollbarIsOverlaid),Ze=Ke({},xe.overlayScrollbarDummySize),Ce=Ke({},xe.rtlScrollBehavior),Er(Ke({},de,t)),nt=xe.cssCalc,H=xe.msie,et=xe.autoUpdateRecommended,y=xe.supportTransition,K=xe.supportTransform,v=xe.supportPassiveEvents,N=xe.supportResizeObserver,b=xe.supportMutationObserver,xe.restrictedMeasuring,fe=Si(e.ownerDocument),Xt=fe[0],de=Si(Xt.defaultView||Xt.parentWindow),qt=de[0],pe=ii(fe,"html"),he=ii(pe,"body"),Be=Si(e),Kt=Be[0],Re=Be.is("textarea"),it=Be.is("body"),w=Xt!==si,h=Re?Be.hasClass(T)&&Be.parent().hasClass(E):Be.hasClass(m)&&Be.children(C+A)[mi.l],Se.x&&Se.y&&!Fe.nativeScrollbarsOverlaid.initialize?(Ne=!0,Br("onInitializationWithdrawn"),h&&(Lr(!0),Pr(!0),Fr(!0)),Te=ke=!(Ne=!1)):(it&&((r={}).l=wi.max(Be[Ve](),pe[Ve](),de[Ve]()),r.t=wi.max(Be[We](),pe[We](),de[We]()),i=function(){je.removeAttr(mi.ti),dr(je,x,i,!0,!0)}),Lr(),Pr(),Fr(),Dr(),Or(!0),Or(!1),a=qt.top!==qt,s={},l={},c={},fr(qe,x,function(e){f(e)&&!or&&($n&&(o=!0,gr()),s=p(e),l.w=Yt[mi.oW]-(ot?0:st),l.h=Yt[mi.oH]-(ot?0:lt),c=Ur(),dr(fe,[B,S,G],[xr,u,d]),Ye(he,re),qe.setCapture&&qe.setCapture(),vi.prvD(e),vi.stpP(e))}),hr(),pr(zt,vr),it&&(je[Ve](r.l)[We](r.t),si.activeElement==e&&en.focus&&(je.attr(mi.ti,"-1"),en.focus(),dr(je,x,i,!1,!0))),Xe.update(Ge),Ne=!0,Br("onInitialized"),g(oe,function(e,t){Br(t.n,t.a)}),oe=[],X(n)==fi&&(n=[n]),vi.isA(n)?g(n,function(e,t){Xe.addExt(t)}):Si.isPlainObject(n)&&g(n,function(e,t){Xe.addExt(e,t)}),setTimeout(function(){y&&!ke&&Ye(ze,M)},333)),Xe;function u(e){var t,n;f(e)?(t=p(e),n={},(sr||ar)&&(n[Oe]=l.w+(t.x-s.x)*c.x),(lr||ar)&&(n[Ie]=l.h+(t.y-s.y)*c.y),ze.css(n),vi.stpP(e)):d(e)}function d(e){e=e!==li;dr(fe,[B,S,G],[xr,u,d],!0),Qe(he,re),qe.releaseCapture&&qe.releaseCapture(),e&&(o&&mr(),Xe.update(Ge)),o=!1}function f(e){var t=(e.originalEvent||e).touches!==li;return!Te&&!ke&&(1===vi.mBtn(e)||t)}function p(e){return H&&a?{x:e.screenX,y:e.screenY}:vi.page(e)}}}return xi&&xi.fn&&(xi.fn.overlayScrollbars=function(e,t){return xi.isPlainObject(e)?(xi.each(this,function(){m(this,e,t)}),this):m(this,e)}),m}),$(function(){window._framework.buildPage({defaultHash:"overview"})}); |