forked from veensun/docs-ru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
document.min.js
13 lines (12 loc) · 221 KB
/
document.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
var $DOC,$ENV,$OPT = {
userjs: "",
icon: "",
editable: true
};
if(function(t,e){function n(t){var e=t.length,n=oe.type(t);return oe.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){var e=he[t]={};return oe.each(t.match(ae)||[],function(t,n){e[n]=!0}),e}function r(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=oe.expando+Math.random()}function o(t,n,i){var r;if(i===e&&1===t.nodeType)if(r="data-"+n.replace(ye,"-$1").toLowerCase(),i=t.getAttribute(r),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:ve.test(i)?JSON.parse(i):i}catch(o){}me.set(t,n,i)}else i=e;return i}function s(){return!0}function a(){return!1}function l(){try{return V.activeElement}catch(t){}}function c(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function u(t,e,n){if(oe.isFunction(e))return oe.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return oe.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(Oe.test(e))return oe.filter(e,t,n);e=oe.filter(e,t)}return oe.grep(t,function(t){return ee.call(e,t)>=0!==n})}function p(t,e){return oe.nodeName(t,"table")&&oe.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=Ie.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function h(t,e){for(var n=t.length,i=0;n>i;i++)ge.set(t[i],"globalEval",!e||ge.get(e[i],"globalEval"))}function m(t,e){var n,i,r,o,s,a,l,c;if(1===e.nodeType){if(ge.hasData(t)&&(o=ge.access(t),s=ge.set(e,o),c=o.events)){delete s.handle,s.events={};for(r in c)for(n=0,i=c[r].length;i>n;n++)oe.event.add(e,r,c[r][n])}me.hasData(t)&&(a=me.access(t),l=oe.extend({},a),me.set(e,l))}}function g(t,n){var i=t.getElementsByTagName?t.getElementsByTagName(n||"*"):t.querySelectorAll?t.querySelectorAll(n||"*"):[];return n===e||n&&oe.nodeName(t,n)?oe.merge([t],i):i}function v(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Pe.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function y(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,r=Ze.length;r--;)if(e=Ze[r]+n,e in t)return e;return i}function b(t,e){return t=e||t,"none"===oe.css(t,"display")||!oe.contains(t.ownerDocument,t)}function x(e){return t.getComputedStyle(e,null)}function w(t,e){for(var n,i,r,o=[],s=0,a=t.length;a>s;s++)i=t[s],i.style&&(o[s]=ge.get(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&b(i)&&(o[s]=ge.access(i,"olddisplay",k(i.nodeName)))):o[s]||(r=b(i),(n&&"none"!==n||!r)&&ge.set(i,"olddisplay",r?n:oe.css(i,"display"))));for(s=0;a>s;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function C(t,e,n){var i=Ue.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function _(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===n&&(s+=oe.css(t,n+Ke[o],!0,r)),i?("content"===n&&(s-=oe.css(t,"padding"+Ke[o],!0,r)),"margin"!==n&&(s-=oe.css(t,"border"+Ke[o]+"Width",!0,r))):(s+=oe.css(t,"padding"+Ke[o],!0,r),"padding"!==n&&(s+=oe.css(t,"border"+Ke[o]+"Width",!0,r)));return s}function $(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=x(t),s=oe.support.boxSizing&&"border-box"===oe.css(t,"boxSizing",!1,o);if(0>=r||null==r){if(r=ze(t,e,o),(0>r||null==r)&&(r=t.style[e]),Ge.test(r))return r;i=s&&(oe.support.boxSizingReliable||r===t.style[e]),r=parseFloat(r)||0}return r+_(t,e,n||(s?"border":"content"),i,o)+"px"}function k(t){var e=V,n=Xe[t];return n||(n=T(t,e),"none"!==n&&n||(Be=(Be||oe("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(Be[0].contentWindow||Be[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=T(t,e),Be.detach()),Xe[t]=n),n}function T(t,e){var n=oe(e.createElement(t)).appendTo(e.body),i=oe.css(n[0],"display");return n.remove(),i}function S(t,e,n,i){var r;if(oe.isArray(e))oe.each(e,function(e,r){n||en.test(t)?i(t,r):S(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==oe.type(e))i(t,e);else for(r in e)S(t+"["+r+"]",e[r],n,i)}function O(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(ae)||[];if(oe.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function E(t,e,n,i){function r(a){var l;return o[a]=!0,oe.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},s=t===bn;return r(e.dataTypes[0])||!o["*"]&&r("*")}function D(t,n){var i,r,o=oe.ajaxSettings.flatOptions||{};for(i in n)n[i]!==e&&((o[i]?t:r||(r={}))[i]=n[i]);return r&&oe.extend(!0,t,r),t}function N(t,n,i){for(var r,o,s,a,l=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),r===e&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){c.unshift(o);break}if(c[0]in i)s=c[0];else{for(o in i){if(!c[0]||t.converters[o+" "+c[0]]){s=o;break}a||(a=o)}s=s||a}return s?(s!==c[0]&&c.unshift(s),i[s]):void 0}function L(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=c[l+" "+o]||c["* "+o],!s)for(r in c)if(a=r.split(" "),a[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[r]:c[r]!==!0&&(o=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function j(){return setTimeout(function(){On=e}),On=oe.now()}function A(t,e,n){for(var i,r=(An[e]||[]).concat(An["*"]),o=0,s=r.length;s>o;o++)if(i=r[o].call(n,e,t))return i}function H(t,e,n){var i,r,o=0,s=jn.length,a=oe.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=On||j(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,n]),1>o&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:oe.extend({},e),opts:oe.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:On||j(),duration:n.duration,tweens:[],createTween:function(e,n){var i=oe.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(P(u,c.opts.specialEasing);s>o;o++)if(i=jn[o].call(c,t,u,c.opts))return i;return oe.map(u,A,c),oe.isFunction(c.opts.start)&&c.opts.start.call(t,c),oe.fx.timer(oe.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function P(t,e){var n,i,r,o,s;for(n in t)if(i=oe.camelCase(n),r=e[i],o=t[n],oe.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),s=oe.cssHooks[i],s&&"expand"in s){o=s.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function R(t,n,i){var r,o,s,a,l,c,u=this,p={},d=t.style,f=t.nodeType&&b(t),h=ge.get(t,"fxshow");i.queue||(l=oe._queueHooks(t,"fx"),null==l.unqueued&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,u.always(function(){u.always(function(){l.unqueued--,oe.queue(t,"fx").length||l.empty.fire()})})),1===t.nodeType&&("height"in n||"width"in n)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===oe.css(t,"display")&&"none"===oe.css(t,"float")&&(d.display="inline-block")),i.overflow&&(d.overflow="hidden",u.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(r in n)if(o=n[r],Dn.exec(o)){if(delete n[r],s=s||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!h||h[r]===e)continue;f=!0}p[r]=h&&h[r]||oe.style(t,r)}if(!oe.isEmptyObject(p)){h?"hidden"in h&&(f=h.hidden):h=ge.access(t,"fxshow",{}),s&&(h.hidden=!f),f?oe(t).show():u.done(function(){oe(t).hide()}),u.done(function(){var e;ge.remove(t,"fxshow");for(e in p)oe.style(t,e,p[e])});for(r in p)a=A(f?h[r]:0,r,u),r in h||(h[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function M(t,e,n,i,r){return new M.prototype.init(t,e,n,i,r)}function I(t,e){var n,i={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)n=Ke[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function q(t){return oe.isWindow(t)?t:9===t.nodeType&&t.defaultView}var F,z,B=typeof e,W=t.location,V=t.document,U=V.documentElement,G=t.jQuery,J=t.$,X={},Y=[],Q="2.0.3",K=Y.concat,Z=Y.push,te=Y.slice,ee=Y.indexOf,ne=X.toString,ie=X.hasOwnProperty,re=Q.trim,oe=function(t,e){return new oe.fn.init(t,e,F)},se=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=/\S+/g,le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ce=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^-ms-/,pe=/-([\da-z])/gi,de=function(t,e){return e.toUpperCase()},fe=function(){V.removeEventListener("DOMContentLoaded",fe,!1),t.removeEventListener("load",fe,!1),oe.ready()};oe.fn=oe.prototype={jquery:Q,constructor:oe,init:function(t,n,i){var r,o;if(!t)return this;if("string"==typeof t){if(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:le.exec(t),!r||!r[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(r[1]){if(n=n instanceof oe?n[0]:n,oe.merge(this,oe.parseHTML(r[1],n&&n.nodeType?n.ownerDocument||n:V,!0)),ce.test(r[1])&&oe.isPlainObject(n))for(r in n)oe.isFunction(this[r])?this[r](n[r]):this.attr(r,n[r]);return this}return o=V.getElementById(r[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=V,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):oe.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),oe.makeArray(t,this))},selector:"",length:0,toArray:function(){return te.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=oe.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return oe.each(this,t,e)},ready:function(t){return oe.ready.promise().done(t),this},slice:function(){return this.pushStack(te.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(oe.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:[].sort,splice:[].splice},oe.fn.init.prototype=oe.fn,oe.extend=oe.fn.extend=function(){var t,n,i,r,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||oe.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(t=arguments[l]))for(n in t)i=a[n],r=t[n],a!==r&&(u&&r&&(oe.isPlainObject(r)||(o=oe.isArray(r)))?(o?(o=!1,s=i&&oe.isArray(i)?i:[]):s=i&&oe.isPlainObject(i)?i:{},a[n]=oe.extend(u,s,r)):r!==e&&(a[n]=r));return a},oe.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===oe&&(t.$=J),e&&t.jQuery===oe&&(t.jQuery=G),oe},isReady:!1,readyWait:1,holdReady:function(t){t?oe.readyWait++:oe.ready(!0)},ready:function(t){(t===!0?--oe.readyWait:oe.isReady)||(oe.isReady=!0,t!==!0&&--oe.readyWait>0||(z.resolveWith(V,[oe]),oe.fn.trigger&&oe(V).trigger("ready").off("ready")))},isFunction:function(t){return"function"===oe.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?X[ne.call(t)]||"object":typeof t},isPlainObject:function(t){if("object"!==oe.type(t)||t.nodeType||oe.isWindow(t))return!1;try{if(t.constructor&&!ie.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||V;var i=ce.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=oe.buildFragment([t],e,r),r&&oe(r).remove(),oe.merge([],i.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var n,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,n=i.parseFromString(t,"text/xml")}catch(r){n=e}return(!n||n.getElementsByTagName("parsererror").length)&&oe.error("Invalid XML: "+t),n},noop:function(){},globalEval:function(t){var e,n=eval;t=oe.trim(t),t&&(1===t.indexOf("use strict")?(e=V.createElement("script"),e.text=t,V.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(ue,"ms-").replace(pe,de)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,o=0,s=t.length,a=n(t);if(i){if(a)for(;s>o&&(r=e.apply(t[o],i),r!==!1);o++);else for(o in t)if(r=e.apply(t[o],i),r===!1)break}else if(a)for(;s>o&&(r=e.call(t[o],o,t[o]),r!==!1);o++);else for(o in t)if(r=e.call(t[o],o,t[o]),r===!1)break;return t},trim:function(t){return null==t?"":re.call(t)},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?oe.merge(i,"string"==typeof t?[t]:t):Z.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:ee.call(e,t,n)},merge:function(t,n){var i=n.length,r=t.length,o=0;if("number"==typeof i)for(;i>o;o++)t[r++]=n[o];else for(;n[o]!==e;)t[r++]=n[o++];return t.length=r,t},grep:function(t,e,n){var i,r=[],o=0,s=t.length;for(n=!!n;s>o;o++)i=!!e(t[o],o),n!==i&&r.push(t[o]);return r},map:function(t,e,i){var r,o=0,s=t.length,a=n(t),l=[];if(a)for(;s>o;o++)r=e(t[o],o,i),null!=r&&(l[l.length]=r);else for(o in t)r=e(t[o],o,i),null!=r&&(l[l.length]=r);return K.apply([],l)},guid:1,proxy:function(t,n){var i,r,o;return"string"==typeof n&&(i=t[n],n=t,t=i),oe.isFunction(t)?(r=te.call(arguments,2),o=function(){return t.apply(n||this,r.concat(te.call(arguments)))},o.guid=t.guid=t.guid||oe.guid++,o):e},access:function(t,n,i,r,o,s,a){var l=0,c=t.length,u=null==i;if("object"===oe.type(i)){o=!0;for(l in i)oe.access(t,n,l,i[l],!0,s,a)}else if(r!==e&&(o=!0,oe.isFunction(r)||(a=!0),u&&(a?(n.call(t,r),n=null):(u=n,n=function(t,e,n){return u.call(oe(t),n)})),n))for(;c>l;l++)n(t[l],i,a?r:r.call(t[l],l,n(t[l],i)));return o?t:u?n.call(t):c?n(t[0],i):s},now:Date.now,swap:function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=s[o];return r}}),oe.ready.promise=function(e){return z||(z=oe.Deferred(),"complete"===V.readyState?setTimeout(oe.ready):(V.addEventListener("DOMContentLoaded",fe,!1),t.addEventListener("load",fe,!1))),z.promise(e)},oe.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){X["[object "+e+"]"]=e.toLowerCase()}),F=oe(V),function(t,e){function n(t,e,n,i){var r,o,s,a,l,c,u,p,h,m;if((e?e.ownerDocument||e:q)!==L&&N(e),e=e||L,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(A&&!i){if(r=be.exec(t))if(s=r[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&M(e,o)&&o.id===s)return n.push(o),n}else{if(r[2])return te.apply(n,e.getElementsByTagName(t)),n;if((s=r[3])&&_.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(s)),n}if(_.qsa&&(!H||!H.test(t))){if(p=u=I,h=e,m=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=d(t),(u=e.getAttribute("id"))?p=u.replace(Ce,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=c.length;l--;)c[l]=p+f(c[l]);h=fe.test(t)&&e.parentNode||e,m=c.join(",")}if(m)try{return te.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{u||e.removeAttribute("id")}}}return w(t.replace(ue,"$1"),e,n,i)}function i(){function t(n,i){return e.push(n+=" ")>k.cacheLength&&delete t[e.shift()],t[n]=i}var e=[];return t}function r(t){return t[I]=!0,t}function o(t){var e=L.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)k.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||X)-(~t.sourceIndex||X);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return r(function(e){return e=+e,r(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function p(){}function d(t,e){var i,r,o,s,a,l,c,u=W[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=k.preFilter;a;){(!i||(r=pe.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=de.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ue," ")}),a=a.slice(i.length));for(s in k.filter)!(r=ve[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?n.error(t):W(t,l).slice(0)}function f(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function h(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=z++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var a,l,c,u=F+" "+o;if(s){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||r)if(c=e[I]||(e[I]={}),(l=c[i])&&l[0]===u){if((a=l[1])===!0||a===$)return a===!0}else if(l=c[i]=[u],l[1]=t(e,n,s)||$,l[1]===!0)return!0}}function m(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;l>a;a++)(o=t[a])&&(!n||n(o,i,r))&&(s.push(o),c&&e.push(a));return s}function v(t,e,n,i,o,s){return i&&!i[I]&&(i=v(i)),o&&!o[I]&&(o=v(o,s)),r(function(r,s,a,l){var c,u,p,d=[],f=[],h=s.length,m=r||x(e||"*",a.nodeType?[a]:a,[]),v=!t||!r&&e?m:g(m,d,t,a,l),y=n?o||(r?t:h||i)?[]:s:v;if(n&&n(v,y,a,l),i)for(c=g(y,f),i(c,[],a,l),u=c.length;u--;)(p=c[u])&&(y[f[u]]=!(v[f[u]]=p));if(r){if(o||t){if(o){for(c=[],u=y.length;u--;)(p=y[u])&&c.push(v[u]=p);o(null,y=[],c,l)}for(u=y.length;u--;)(p=y[u])&&(c=o?ne.call(r,p):d[u])>-1&&(r[c]=!(s[c]=p))}}else y=g(y===s?y.splice(h,y.length):y),o?o(null,s,y,l):te.apply(s,y)})}function y(t){for(var e,n,i,r=t.length,o=k.relative[t[0].type],s=o||k.relative[" "],a=o?1:0,l=h(function(t){return t===e},s,!0),c=h(function(t){return ne.call(e,t)>-1},s,!0),u=[function(t,n,i){return!o&&(i||n!==E)||((e=n).nodeType?l(t,n,i):c(t,n,i))}];r>a;a++)if(n=k.relative[t[a].type])u=[h(m(u),n)];else{if(n=k.filter[t[a].type].apply(null,t[a].matches),n[I]){for(i=++a;r>i&&!k.relative[t[i].type];i++);return v(a>1&&m(u),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ue,"$1"),n,i>a&&y(t.slice(a,i)),r>i&&y(t=t.slice(i)),r>i&&f(t))}u.push(n)}return m(u)}function b(t,e){var i=0,o=e.length>0,s=t.length>0,a=function(r,a,l,c,u){var p,d,f,h=[],m=0,v="0",y=r&&[],b=null!=u,x=E,w=r||s&&k.find.TAG("*",u&&a.parentNode||a),C=F+=null==x?1:Math.random()||.1;for(b&&(E=a!==L&&a,$=i);null!=(p=w[v]);v++){if(s&&p){for(d=0;f=t[d++];)if(f(p,a,l)){c.push(p);break}b&&(F=C,$=++i)}o&&((p=!f&&p)&&m--,r&&y.push(p))}if(m+=v,o&&v!==m){for(d=0;f=e[d++];)f(y,h,a,l);if(r){if(m>0)for(;v--;)y[v]||h[v]||(h[v]=K.call(c));h=g(h)}te.apply(c,h),b&&!r&&h.length>0&&m+e.length>1&&n.uniqueSort(c)}return b&&(F=C,E=x),y};return o?r(a):a}function x(t,e,i){for(var r=0,o=e.length;o>r;r++)n(t,e[r],i);return i}function w(t,e,n,i){var r,o,s,a,l,c=d(t);if(!i&&1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&_.getById&&9===e.nodeType&&A&&k.relative[o[1].type]){if(e=(k.find.ID(s.matches[0].replace(_e,$e),e)||[])[0],!e)return n;t=t.slice(o.shift().value.length)}for(r=ve.needsContext.test(t)?0:o.length;r--&&(s=o[r],!k.relative[a=s.type]);)if((l=k.find[a])&&(i=l(s.matches[0].replace(_e,$e),fe.test(o[0].type)&&e.parentNode||e))){if(o.splice(r,1),t=i.length&&f(o),!t)return te.apply(n,i),n;break}}return O(t,c)(i,e,!A,n,fe.test(t)),n}var C,_,$,k,T,S,O,E,D,N,L,j,A,H,P,R,M,I="sizzle"+-new Date,q=t.document,F=0,z=0,B=i(),W=i(),V=i(),U=!1,G=function(t,e){return t===e?(U=!0,0):0},J=typeof e,X=1<<31,Y={}.hasOwnProperty,Q=[],K=Q.pop,Z=Q.push,te=Q.push,ee=Q.slice,ne=Q.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ie="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",se="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ae=se.replace("w","w#"),le="\\["+re+"*("+se+")"+re+"*(?:([*^$|!~]?=)"+re+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ae+")|)|)"+re+"*\\]",ce=":("+se+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+le.replace(3,8)+")*)|.*)\\)|)",ue=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),pe=new RegExp("^"+re+"*,"+re+"*"),de=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),fe=new RegExp(re+"*[+~]"),he=new RegExp("="+re+"*([^\\]'\"]*)"+re+"*\\]","g"),me=new RegExp(ce),ge=new RegExp("^"+ae+"$"),ve={ID:new RegExp("^#("+se+")"),CLASS:new RegExp("^\\.("+se+")"),TAG:new RegExp("^("+se.replace("w","w*")+")"),ATTR:new RegExp("^"+le),PSEUDO:new RegExp("^"+ce),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ie+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/^(?:input|select|textarea|button)$/i,we=/^h\d$/i,Ce=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),$e=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{te.apply(Q=ee.call(q.childNodes),q.childNodes),Q[q.childNodes.length].nodeType}catch(ke){te={apply:Q.length?function(t,e){Z.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}S=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},_=n.support={},N=n.setDocument=function(t){var e=t?t.ownerDocument||t:q,n=e.defaultView;return e!==L&&9===e.nodeType&&e.documentElement?(L=e,j=e.documentElement,A=!S(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){N()}),_.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=o(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=o(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),_.getById=o(function(t){return j.appendChild(t).id=I,!e.getElementsByName||!e.getElementsByName(I).length}),_.getById?(k.find.ID=function(t,e){if(typeof e.getElementById!==J&&A){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(t){var e=t.replace(_e,$e);return function(t){return t.getAttribute("id")===e}}):(delete k.find.ID,k.filter.ID=function(t){var e=t.replace(_e,$e);return function(t){var n=typeof t.getAttributeNode!==J&&t.getAttributeNode("id");return n&&n.value===e}}),k.find.TAG=_.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==J?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},k.find.CLASS=_.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==J&&A?e.getElementsByClassName(t):void 0},P=[],H=[],(_.qsa=ye.test(e.querySelectorAll))&&(o(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||H.push("\\["+re+"*(?:value|"+ie+")"),t.querySelectorAll(":checked").length||H.push(":checked")}),o(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&H.push("[*^$]="+re+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),H.push(",.*:")})),(_.matchesSelector=ye.test(R=j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&o(function(t){_.disconnectedMatch=R.call(t,"div"),R.call(t,"[s!='']:x"),P.push("!=",ce)}),H=H.length&&new RegExp(H.join("|")),P=P.length&&new RegExp(P.join("|")),M=ye.test(j.contains)||j.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=j.compareDocumentPosition?function(t,n){if(t===n)return U=!0,0;var i=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return i?1&i||!_.sortDetached&&n.compareDocumentPosition(t)===i?t===e||M(q,t)?-1:n===e||M(q,n)?1:D?ne.call(D,t)-ne.call(D,n):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,r=0,o=t.parentNode,s=n.parentNode,l=[t],c=[n];if(t===n)return U=!0,0;if(!o||!s)return t===e?-1:n===e?1:o?-1:s?1:D?ne.call(D,t)-ne.call(D,n):0;if(o===s)return a(t,n);for(i=t;i=i.parentNode;)l.unshift(i);for(i=n;i=i.parentNode;)c.unshift(i);for(;l[r]===c[r];)r++;return r?a(l[r],c[r]):l[r]===q?-1:c[r]===q?1:0},e):L},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==L&&N(t),e=e.replace(he,"='$1']"),!(!_.matchesSelector||!A||P&&P.test(e)||H&&H.test(e)))try{var i=R.call(t,e);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return n(e,L,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==L&&N(t),M(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==L&&N(t);var i=k.attrHandle[n.toLowerCase()],r=i&&Y.call(k.attrHandle,n.toLowerCase())?i(t,n,!A):e;return r===e?_.attributes||!A?t.getAttribute(n):(r=t.getAttributeNode(n))&&r.specified?r.value:null:r},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var e,n=[],i=0,r=0;if(U=!_.detectDuplicates,D=!_.sortStable&&t.slice(0),t.sort(G),U){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return t},T=n.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i];i++)n+=T(e);return n},k=n.selectors={cacheLength:50,createPseudo:r,match:ve,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_e,$e),t[3]=(t[4]||t[5]||"").replace(_e,$e),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,i=!t[5]&&t[2];return ve.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:i&&me.test(i)&&(n=d(i,!0))&&(n=i.indexOf(")",i.length-n)-i.length)&&(t[0]=t[0].slice(0,n),t[2]=i.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_e,$e).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+re+")"+t+"("+re+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==J&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(r){var o=n.attr(r,t);return null==o?"!="===e:e?(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&o.indexOf(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o+" ").indexOf(i)>-1:"|="===e?o===i||o.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,p,d,f,h,m=o!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(o){for(;m;){for(p=e;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===t&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&y){for(u=g[I]||(g[I]={}),c=u[t]||[],f=c[0]===F&&c[1],d=c[0]===F&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(d=f=0)||h.pop();)if(1===p.nodeType&&++d&&p===e){u[t]=[F,f,d];break}}else if(y&&(c=(e[I]||(e[I]={}))[t])&&c[0]===F)d=c[1];else for(;(p=++f&&p&&p[m]||(d=f=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++d||(y&&((p[I]||(p[I]={}))[t]=[F,d]),p!==e)););return d-=r,d===i||d%i===0&&d/i>=0}}},PSEUDO:function(t,e){var i,o=k.pseudos[t]||k.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return o[I]?o(e):o.length>1?(i=[t,t,"",e],k.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,n){for(var i,r=o(t,e),s=r.length;s--;)i=ne.call(t,r[s]),t[i]=!(n[i]=r[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=O(t.replace(ue,"$1"));return i[I]?r(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:r(function(t){return function(e){return n(t,e).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:r(function(t){return ge.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(_e,$e).toLowerCase(),function(e){var n;do if(n=A?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!k.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return xe.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},k.pseudos.nth=k.pseudos.eq;for(C in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[C]=l(C);
for(C in{submit:!0,reset:!0})k.pseudos[C]=c(C);p.prototype=k.filters=k.pseudos,k.setFilters=new p,O=n.compile=function(t,e){var n,i=[],r=[],o=V[t+" "];if(!o){for(e||(e=d(t)),n=e.length;n--;)o=y(e[n]),o[I]?i.push(o):r.push(o);o=V(t,b(r,i))}return o},_.sortStable=I.split("").sort(G).join("")===I,_.detectDuplicates=U,N(),_.sortDetached=o(function(t){return 1&t.compareDocumentPosition(L.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||s(ie,function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&i.specified?i.value:t[e]===!0?e.toLowerCase():null}),oe.find=n,oe.expr=n.selectors,oe.expr[":"]=oe.expr.pseudos,oe.unique=n.uniqueSort,oe.text=n.getText,oe.isXMLDoc=n.isXML,oe.contains=n.contains}(t);var he={};oe.Callbacks=function(t){t="string"==typeof t?he[t]||i(t):oe.extend({},t);var n,r,o,s,a,l,c=[],u=!t.once&&[],p=function(e){for(n=t.memory&&e,r=!0,l=s||0,s=0,a=c.length,o=!0;c&&a>l;l++)if(c[l].apply(e[0],e[1])===!1&&t.stopOnFalse){n=!1;break}o=!1,c&&(u?u.length&&p(u.shift()):n?c=[]:d.disable())},d={add:function(){if(c){var e=c.length;!function i(e){oe.each(e,function(e,n){var r=oe.type(n);"function"===r?t.unique&&d.has(n)||c.push(n):n&&n.length&&"string"!==r&&i(n)})}(arguments),o?a=c.length:n&&(s=e,p(n))}return this},remove:function(){return c&&oe.each(arguments,function(t,e){for(var n;(n=oe.inArray(e,c,n))>-1;)c.splice(n,1),o&&(a>=n&&a--,l>=n&&l--)}),this},has:function(t){return t?oe.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],a=0,this},disable:function(){return c=u=n=e,this},disabled:function(){return!c},lock:function(){return u=e,n||d.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||r&&!u||(e=e||[],e=[t,e.slice?e.slice():e],o?u.push(e):p(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},oe.extend({Deferred:function(t){var e=[["resolve","done",oe.Callbacks("once memory"),"resolved"],["reject","fail",oe.Callbacks("once memory"),"rejected"],["notify","progress",oe.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return oe.Deferred(function(n){oe.each(e,function(e,o){var s=o[0],a=oe.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&oe.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?oe.extend(t,i):i}},r={};return i.pipe=i.then,oe.each(e,function(t,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=te.call(arguments),s=o.length,a=1!==s||t&&oe.isFunction(t.promise)?s:0,l=1===a?t:oe.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?te.call(arguments):r,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);s>r;r++)o[r]&&oe.isFunction(o[r].promise)?o[r].promise().done(c(r,i,o)).fail(l.reject).progress(c(r,n,e)):--a;return a||l.resolveWith(i,o),l.promise()}}),oe.support=function(e){var n=V.createElement("input"),i=V.createDocumentFragment(),r=V.createElement("div"),o=V.createElement("select"),s=o.appendChild(V.createElement("option"));return n.type?(n.type="checkbox",e.checkOn=""!==n.value,e.optSelected=s.selected,e.reliableMarginRight=!0,e.boxSizingReliable=!0,e.pixelPosition=!1,n.checked=!0,e.noCloneChecked=n.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled,n=V.createElement("input"),n.value="t",n.type="radio",e.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),i.appendChild(n),e.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,e.focusinBubbles="onfocusin"in t,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===r.style.backgroundClip,oe(function(){var n,i,o="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",s=V.getElementsByTagName("body")[0];s&&(n=V.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(n).appendChild(r),r.innerHTML="",r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",oe.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===r.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(r,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(r,null)||{width:"4px"}).width,i=r.appendChild(V.createElement("div")),i.style.cssText=r.style.cssText=o,i.style.marginRight=i.style.width="0",r.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),s.removeChild(n))}),e):e}({});var me,ge,ve=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ye=/([A-Z])/g;r.uid=1,r.accepts=function(t){return t.nodeType?1===t.nodeType||9===t.nodeType:!0},r.prototype={key:function(t){if(!r.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=r.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(i){e[this.expando]=n,oe.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),o=this.cache[r];if("string"==typeof e)o[e]=n;else if(oe.isEmptyObject(o))oe.extend(this.cache[r],e);else for(i in e)o[i]=e[i];return o},get:function(t,n){var i=this.cache[this.key(t)];return n===e?i:i[n]},access:function(t,n,i){var r;return n===e||n&&"string"==typeof n&&i===e?(r=this.get(t,n),r!==e?r:this.get(t,oe.camelCase(n))):(this.set(t,n,i),i!==e?i:n)},remove:function(t,n){var i,r,o,s=this.key(t),a=this.cache[s];if(n===e)this.cache[s]={};else{oe.isArray(n)?r=n.concat(n.map(oe.camelCase)):(o=oe.camelCase(n),n in a?r=[n,o]:(r=o,r=r in a?[r]:r.match(ae)||[])),i=r.length;for(;i--;)delete a[r[i]]}},hasData:function(t){return!oe.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},me=new r,ge=new r,oe.extend({acceptData:r.accepts,hasData:function(t){return me.hasData(t)||ge.hasData(t)},data:function(t,e,n){return me.access(t,e,n)},removeData:function(t,e){me.remove(t,e)},_data:function(t,e,n){return ge.access(t,e,n)},_removeData:function(t,e){ge.remove(t,e)}}),oe.fn.extend({data:function(t,n){var i,r,s=this[0],a=0,l=null;if(t===e){if(this.length&&(l=me.get(s),1===s.nodeType&&!ge.get(s,"hasDataAttrs"))){for(i=s.attributes;a<i.length;a++)r=i[a].name,0===r.indexOf("data-")&&(r=oe.camelCase(r.slice(5)),o(s,r,l[r]));ge.set(s,"hasDataAttrs",!0)}return l}return"object"==typeof t?this.each(function(){me.set(this,t)}):oe.access(this,function(n){var i,r=oe.camelCase(t);if(s&&n===e){if(i=me.get(s,t),i!==e)return i;if(i=me.get(s,r),i!==e)return i;if(i=o(s,r,e),i!==e)return i}else this.each(function(){var i=me.get(this,r);me.set(this,r,n),-1!==t.indexOf("-")&&i!==e&&me.set(this,t,n)})},null,n,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){me.remove(this,t)})}}),oe.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ge.get(t,e),n&&(!i||oe.isArray(n)?i=ge.access(t,e,oe.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=oe.queue(t,e),i=n.length,r=n.shift(),o=oe._queueHooks(t,e),s=function(){oe.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ge.get(t,n)||ge.access(t,n,{empty:oe.Callbacks("once memory").add(function(){ge.remove(t,[e+"queue",n])})})}}),oe.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length<i?oe.queue(this[0],t):n===e?this:this.each(function(){var e=oe.queue(this,t,n);oe._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&oe.dequeue(this,t)})},dequeue:function(t){return this.each(function(){oe.dequeue(this,t)})},delay:function(t,e){return t=oe.fx?oe.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var i,r=1,o=oe.Deferred(),s=this,a=this.length,l=function(){--r||o.resolveWith(s,[s])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";a--;)i=ge.get(s[a],t+"queueHooks"),i&&i.empty&&(r++,i.empty.add(l));return l(),o.promise(n)}});var be,xe,we=/[\t\r\n\f]/g,Ce=/\r/g,_e=/^(?:input|select|textarea|button)$/i;oe.fn.extend({attr:function(t,e){return oe.access(this,oe.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){oe.removeAttr(this,t)})},prop:function(t,e){return oe.access(this,oe.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[oe.propFix[t]||t]})},addClass:function(t){var e,n,i,r,o,s=0,a=this.length,l="string"==typeof t&&t;if(oe.isFunction(t))return this.each(function(e){oe(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(ae)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(we," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");n.className=oe.trim(i)}return this},removeClass:function(t){var e,n,i,r,o,s=0,a=this.length,l=0===arguments.length||"string"==typeof t&&t;if(oe.isFunction(t))return this.each(function(e){oe(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(ae)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(we," "):"")){for(o=0;r=e[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");n.className=t?oe.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):oe.isFunction(t)?this.each(function(n){oe(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,r=oe(this),o=t.match(ae)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===B||"boolean"===n)&&(this.className&&ge.set(this,"__className__",this.className),this.className=this.className||t===!1?"":ge.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(we," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,r,o=this[0];{if(arguments.length)return r=oe.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(o=r?t.call(this,i,oe(this).val()):t,null==o?o="":"number"==typeof o?o+="":oe.isArray(o)&&(o=oe.map(o,function(t){return null==t?"":t+""})),n=oe.valHooks[this.type]||oe.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==e||(this.value=o))});if(o)return n=oe.valHooks[o.type]||oe.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(i=n.get(o,"value"))!==e?i:(i=o.value,"string"==typeof i?i.replace(Ce,""):null==i?"":i)}}}),oe.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,s=o?null:[],a=o?r+1:i.length,l=0>r?a:o?r:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==r||(oe.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&oe.nodeName(n.parentNode,"optgroup"))){if(e=oe(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=oe.makeArray(e),s=r.length;s--;)i=r[s],(i.selected=oe.inArray(oe(i).val(),o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,n,i){var r,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===B?oe.prop(t,n,i):(1===s&&oe.isXMLDoc(t)||(n=n.toLowerCase(),r=oe.attrHooks[n]||(oe.expr.match.bool.test(n)?xe:be)),i===e?r&&"get"in r&&null!==(o=r.get(t,n))?o:(o=oe.find.attr(t,n),null==o?e:o):null!==i?r&&"set"in r&&(o=r.set(t,i,n))!==e?o:(t.setAttribute(n,i+""),i):(oe.removeAttr(t,n),void 0))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(ae);if(o&&1===t.nodeType)for(;n=o[r++];)i=oe.propFix[n]||n,oe.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!oe.support.radioValue&&"radio"===e&&oe.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(t,n,i){var r,o,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!oe.isXMLDoc(t),s&&(n=oe.propFix[n]||n,o=oe.propHooks[n]),i!==e?o&&"set"in o&&(r=o.set(t,i,n))!==e?r:t[n]=i:o&&"get"in o&&null!==(r=o.get(t,n))?r:t[n]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||_e.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),xe={set:function(t,e,n){return e===!1?oe.removeAttr(t,n):t.setAttribute(n,n),n}},oe.each(oe.expr.match.bool.source.match(/\w+/g),function(t,n){var i=oe.expr.attrHandle[n]||oe.find.attr;oe.expr.attrHandle[n]=function(t,n,r){var o=oe.expr.attrHandle[n],s=r?e:(oe.expr.attrHandle[n]=e)!=i(t,n,r)?n.toLowerCase():null;return oe.expr.attrHandle[n]=o,s}}),oe.support.optSelected||(oe.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),oe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){oe.propFix[this.toLowerCase()]=this}),oe.each(["radio","checkbox"],function(){oe.valHooks[this]={set:function(t,e){return oe.isArray(e)?t.checked=oe.inArray(oe(t).val(),e)>=0:void 0}},oe.support.checkOn||(oe.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var $e=/^key/,ke=/^(?:mouse|contextmenu)|click/,Te=/^(?:focusinfocus|focusoutblur)$/,Se=/^([^.]*)(?:\.(.+)|)$/;oe.event={global:{},add:function(t,n,i,r,o){var s,a,l,c,u,p,d,f,h,m,g,v=ge.get(t);if(v){for(i.handler&&(s=i,i=s.handler,o=s.selector),i.guid||(i.guid=oe.guid++),(c=v.events)||(c=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof oe===B||t&&oe.event.triggered===t.type?e:oe.event.dispatch.apply(a.elem,arguments)},a.elem=t),n=(n||"").match(ae)||[""],u=n.length;u--;)l=Se.exec(n[u])||[],h=g=l[1],m=(l[2]||"").split(".").sort(),h&&(d=oe.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=oe.event.special[h]||{},p=oe.extend({type:h,origType:g,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&oe.expr.match.needsContext.test(o),namespace:m.join(".")},s),(f=c[h])||(f=c[h]=[],f.delegateCount=0,d.setup&&d.setup.call(t,r,m,a)!==!1||t.addEventListener&&t.addEventListener(h,a,!1)),d.add&&(d.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),o?f.splice(f.delegateCount++,0,p):f.push(p),oe.event.global[h]=!0);t=null}},remove:function(t,e,n,i,r){var o,s,a,l,c,u,p,d,f,h,m,g=ge.hasData(t)&&ge.get(t);if(g&&(l=g.events)){for(e=(e||"").match(ae)||[""],c=e.length;c--;)if(a=Se.exec(e[c])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f){for(p=oe.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,d=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(t,u));s&&!d.length&&(p.teardown&&p.teardown.call(t,h,g.handle)!==!1||oe.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)oe.event.remove(t,f+e[c],n,i,!0);oe.isEmptyObject(l)&&(delete g.handle,ge.remove(t,"events"))}},trigger:function(n,i,r,o){var s,a,l,c,u,p,d,f=[r||V],h=ie.call(n,"type")?n.type:n,m=ie.call(n,"namespace")?n.namespace.split("."):[];if(a=l=r=r||V,3!==r.nodeType&&8!==r.nodeType&&!Te.test(h+oe.event.triggered)&&(h.indexOf(".")>=0&&(m=h.split("."),h=m.shift(),m.sort()),u=h.indexOf(":")<0&&"on"+h,n=n[oe.expando]?n:new oe.Event(h,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=r),i=null==i?[n]:oe.makeArray(i,[n]),d=oe.event.special[h]||{},o||!d.trigger||d.trigger.apply(r,i)!==!1)){if(!o&&!d.noBubble&&!oe.isWindow(r)){for(c=d.delegateType||h,Te.test(c+h)||(a=a.parentNode);a;a=a.parentNode)f.push(a),l=a;l===(r.ownerDocument||V)&&f.push(l.defaultView||l.parentWindow||t)}for(s=0;(a=f[s++])&&!n.isPropagationStopped();)n.type=s>1?c:d.bindType||h,p=(ge.get(a,"events")||{})[n.type]&&ge.get(a,"handle"),p&&p.apply(a,i),p=u&&a[u],p&&oe.acceptData(a)&&p.apply&&p.apply(a,i)===!1&&n.preventDefault();return n.type=h,o||n.isDefaultPrevented()||d._default&&d._default.apply(f.pop(),i)!==!1||!oe.acceptData(r)||u&&oe.isFunction(r[h])&&!oe.isWindow(r)&&(l=r[u],l&&(r[u]=null),oe.event.triggered=h,r[h](),oe.event.triggered=e,l&&(r[u]=l)),n.result}},dispatch:function(t){t=oe.event.fix(t);var n,i,r,o,s,a=[],l=te.call(arguments),c=(ge.get(this,"events")||{})[t.type]||[],u=oe.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(a=oe.event.handlers.call(this,t,c),n=0;(o=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,r=((oe.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),r!==e&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,r,o,s,a=[],l=n.delegateCount,c=t.target;if(l&&c.nodeType&&(!t.button||"click"!==t.type))for(;c!==this;c=c.parentNode||this)if(c.disabled!==!0||"click"!==t.type){for(r=[],i=0;l>i;i++)s=n[i],o=s.selector+" ",r[o]===e&&(r[o]=s.needsContext?oe(o,this).index(c)>=0:oe.find(o,this,null,[c]).length),r[o]&&r.push(s);r.length&&a.push({elem:c,handlers:r})}return l<n.length&&a.push({elem:this,handlers:n.slice(l)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,r,o,s=n.button;return null==t.pageX&&null!=n.clientX&&(i=t.target.ownerDocument||V,r=i.documentElement,o=i.body,t.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[oe.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=ke.test(r)?this.mouseHooks:$e.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new oe.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=V),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==l()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&oe.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return oe.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=oe.extend(new oe.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?oe.event.trigger(r,null,e):oe.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},oe.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},oe.Event=function(t,e){return this instanceof oe.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?s:a):this.type=t,e&&oe.extend(this,e),this.timeStamp=t&&t.timeStamp||oe.now(),this[oe.expando]=!0,void 0):new oe.Event(t,e)},oe.Event.prototype={isDefaultPrevented:a,isPropagationStopped:a,isImmediatePropagationStopped:a,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=s,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=s,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=s,this.stopPropagation()}},oe.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){oe.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return(!r||r!==i&&!oe.contains(i,r))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),oe.support.focusinBubbles||oe.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){oe.event.simulate(e,t.target,oe.event.fix(t),!0)};oe.event.special[e]={setup:function(){0===n++&&V.addEventListener(t,i,!0)},teardown:function(){0===--n&&V.removeEventListener(t,i,!0)}}}),oe.fn.extend({on:function(t,n,i,r,o){var s,l;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=e);for(l in t)this.on(l,n,i,t[l],o);return this}if(null==i&&null==r?(r=n,i=n=e):null==r&&("string"==typeof n?(r=i,i=e):(r=i,i=n,n=e)),r===!1)r=a;else if(!r)return this;return 1===o&&(s=r,r=function(t){return oe().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=oe.guid++)),this.each(function(){oe.event.add(this,t,r,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,oe(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(o in t)this.off(o,n,t[o]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=a),this.each(function(){oe.event.remove(this,t,i,n)})},trigger:function(t,e){return this.each(function(){oe.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?oe.event.trigger(t,e,n,!0):void 0}});var Oe=/^.[^:#\[\.,]*$/,Ee=/^(?:parents|prev(?:Until|All))/,De=oe.expr.match.needsContext,Ne={children:!0,contents:!0,next:!0,prev:!0};oe.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(oe(t).filter(function(){for(e=0;r>e;e++)if(oe.contains(i[e],this))return!0}));for(e=0;r>e;e++)oe.find(t,i[e],n);return n=this.pushStack(r>1?oe.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e=oe(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(oe.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(u(this,t||[],!0))},filter:function(t){return this.pushStack(u(this,t||[],!1))},is:function(t){return!!u(this,"string"==typeof t&&De.test(t)?oe(t):t||[],!1).length},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=De.test(t)||"string"!=typeof t?oe(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&oe.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(o.length>1?oe.unique(o):o)},index:function(t){return t?"string"==typeof t?ee.call(oe(t),this[0]):ee.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?oe(t,e):oe.makeArray(t&&t.nodeType?[t]:t),i=oe.merge(this.get(),n);return this.pushStack(oe.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),oe.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return oe.dir(t,"parentNode")},parentsUntil:function(t,e,n){return oe.dir(t,"parentNode",n)},next:function(t){return c(t,"nextSibling")},prev:function(t){return c(t,"previousSibling")},nextAll:function(t){return oe.dir(t,"nextSibling")},prevAll:function(t){return oe.dir(t,"previousSibling")},nextUntil:function(t,e,n){return oe.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return oe.dir(t,"previousSibling",n)},siblings:function(t){return oe.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return oe.sibling(t.firstChild)},contents:function(t){return t.contentDocument||oe.merge([],t.childNodes)}},function(t,e){oe.fn[t]=function(n,i){var r=oe.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=oe.filter(i,r)),this.length>1&&(Ne[t]||oe.unique(r),Ee.test(t)&&r.reverse()),this.pushStack(r)}}),oe.extend({filter:function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?oe.find.matchesSelector(i,t)?[i]:[]:oe.find.matches(t,oe.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var r=[],o=i!==e;(t=t[n])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&oe(t).is(i))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,je=/<([\w:]+)/,Ae=/<|&#?\w+;/,He=/<(?:script|style|link)/i,Pe=/^(?:checkbox|radio)$/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^$|\/(?:java|ecma)script/i,Ie=/^true\/(.*)/,qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Fe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Fe.optgroup=Fe.option,Fe.tbody=Fe.tfoot=Fe.colgroup=Fe.caption=Fe.thead,Fe.th=Fe.td,oe.fn.extend({text:function(t){return oe.access(this,function(t){return t===e?oe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||V).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?oe.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||oe.cleanData(g(n)),n.parentNode&&(e&&oe.contains(n.ownerDocument,n)&&h(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(oe.cleanData(g(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return oe.clone(this,t,e)})},html:function(t){return oe.access(this,function(t){var n=this[0]||{},i=0,r=this.length;if(t===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!He.test(t)&&!Fe[(je.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Le,"<$1></$2>");try{for(;r>i;i++)n=this[i]||{},1===n.nodeType&&(oe.cleanData(g(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=oe.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var i=t[e++],r=t[e++];r&&(i&&i.parentNode!==r&&(i=this.nextSibling),oe(this).remove(),r.insertBefore(n,i))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=K.apply([],t);var i,r,o,s,a,l,c=0,u=this.length,p=this,h=u-1,m=t[0],v=oe.isFunction(m);if(v||!(1>=u||"string"!=typeof m||oe.support.checkClone)&&Re.test(m))return this.each(function(i){var r=p.eq(i);v&&(t[0]=m.call(this,i,r.html())),r.domManip(t,e,n)});if(u&&(i=oe.buildFragment(t,this[0].ownerDocument,!1,!n&&this),r=i.firstChild,1===i.childNodes.length&&(i=r),r)){for(o=oe.map(g(i,"script"),d),s=o.length;u>c;c++)a=i,c!==h&&(a=oe.clone(a,!0,!0),s&&oe.merge(o,g(a,"script"))),e.call(this[c],a,c);if(s)for(l=o[o.length-1].ownerDocument,oe.map(o,f),c=0;s>c;c++)a=o[c],Me.test(a.type||"")&&!ge.access(a,"globalEval")&&oe.contains(l,a)&&(a.src?oe._evalUrl(a.src):oe.globalEval(a.textContent.replace(qe,"")))}return this}}),oe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){oe.fn[t]=function(t){for(var n,i=[],r=oe(t),o=r.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),oe(r[s])[e](n),Z.apply(i,n.get());return this.pushStack(i)}}),oe.extend({clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=oe.contains(t.ownerDocument,t);if(!(oe.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||oe.isXMLDoc(t)))for(s=g(a),o=g(t),i=0,r=o.length;r>i;i++)v(o[i],s[i]);if(e)if(n)for(o=o||g(t),s=s||g(a),i=0,r=o.length;r>i;i++)m(o[i],s[i]);else m(t,a);return s=g(a,"script"),s.length>0&&h(s,!l&&g(t,"script")),a},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,c,u=0,p=t.length,d=e.createDocumentFragment(),f=[];p>u;u++)if(r=t[u],r||0===r)if("object"===oe.type(r))oe.merge(f,r.nodeType?[r]:r);else if(Ae.test(r)){for(o=o||d.appendChild(e.createElement("div")),s=(je.exec(r)||["",""])[1].toLowerCase(),a=Fe[s]||Fe._default,o.innerHTML=a[1]+r.replace(Le,"<$1></$2>")+a[2],c=a[0];c--;)o=o.lastChild;oe.merge(f,o.childNodes),o=d.firstChild,o.textContent=""}else f.push(e.createTextNode(r));for(d.textContent="",u=0;r=f[u++];)if((!i||-1===oe.inArray(r,i))&&(l=oe.contains(r.ownerDocument,r),o=g(d.appendChild(r),"script"),l&&h(o),n))for(c=0;r=o[c++];)Me.test(r.type||"")&&n.push(r);return d},cleanData:function(t){for(var n,i,o,s,a,l,c=oe.event.special,u=0;(i=t[u])!==e;u++){if(r.accepts(i)&&(a=i[ge.expando],a&&(n=ge.cache[a]))){if(o=Object.keys(n.events||{}),o.length)for(l=0;(s=o[l])!==e;l++)c[s]?oe.event.remove(i,s):oe.removeEvent(i,s,n.handle);ge.cache[a]&&delete ge.cache[a]}delete me.cache[i[me.expando]]}},_evalUrl:function(t){return oe.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),oe.fn.extend({wrapAll:function(t){var e;return oe.isFunction(t)?this.each(function(e){oe(this).wrapAll(t.call(this,e))}):(this[0]&&(e=oe(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return oe.isFunction(t)?this.each(function(e){oe(this).wrapInner(t.call(this,e))}):this.each(function(){var e=oe(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=oe.isFunction(t);return this.each(function(n){oe(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){oe.nodeName(this,"body")||oe(this).replaceWith(this.childNodes)}).end()}});var ze,Be,We=/^(none|table(?!-c[ea]).+)/,Ve=/^margin/,Ue=new RegExp("^("+se+")(.*)$","i"),Ge=new RegExp("^("+se+")(?!px)[a-z%]+$","i"),Je=new RegExp("^([+-])=("+se+")","i"),Xe={BODY:"block"},Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:0,fontWeight:400},Ke=["Top","Right","Bottom","Left"],Ze=["Webkit","O","Moz","ms"];oe.fn.extend({css:function(t,n){return oe.access(this,function(t,n,i){var r,o,s={},a=0;
if(oe.isArray(n)){for(r=x(t),o=n.length;o>a;a++)s[n[a]]=oe.css(t,n[a],!1,r);return s}return i!==e?oe.style(t,n,i):oe.css(t,n)},t,n,arguments.length>1)},show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){b(this)?oe(this).show():oe(this).hide()})}}),oe.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ze(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,n,i,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,l=oe.camelCase(n),c=t.style;return n=oe.cssProps[l]||(oe.cssProps[l]=y(c,l)),a=oe.cssHooks[n]||oe.cssHooks[l],i===e?a&&"get"in a&&(o=a.get(t,!1,r))!==e?o:c[n]:(s=typeof i,"string"===s&&(o=Je.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(oe.css(t,n)),s="number"),null==i||"number"===s&&isNaN(i)||("number"!==s||oe.cssNumber[l]||(i+="px"),oe.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(i=a.set(t,i,r))===e||(c[n]=i)),void 0)}},css:function(t,n,i,r){var o,s,a,l=oe.camelCase(n);return n=oe.cssProps[l]||(oe.cssProps[l]=y(t.style,l)),a=oe.cssHooks[n]||oe.cssHooks[l],a&&"get"in a&&(o=a.get(t,!0,i)),o===e&&(o=ze(t,n,r)),"normal"===o&&n in Qe&&(o=Qe[n]),""===i||i?(s=parseFloat(o),i===!0||oe.isNumeric(s)?s||0:o):o}}),ze=function(t,n,i){var r,o,s,a=i||x(t),l=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(""!==l||oe.contains(t.ownerDocument,t)||(l=oe.style(t,n)),Ge.test(l)&&Ve.test(n)&&(r=c.width,o=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=r,c.minWidth=o,c.maxWidth=s)),l},oe.each(["height","width"],function(t,e){oe.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&We.test(oe.css(t,"display"))?oe.swap(t,Ye,function(){return $(t,e,i)}):$(t,e,i):void 0},set:function(t,n,i){var r=i&&x(t);return C(t,n,i?_(t,e,i,oe.support.boxSizing&&"border-box"===oe.css(t,"boxSizing",!1,r),r):0)}}}),oe(function(){oe.support.reliableMarginRight||(oe.cssHooks.marginRight={get:function(t,e){return e?oe.swap(t,{display:"inline-block"},ze,[t,"marginRight"]):void 0}}),!oe.support.pixelPosition&&oe.fn.position&&oe.each(["top","left"],function(t,e){oe.cssHooks[e]={get:function(t,n){return n?(n=ze(t,e),Ge.test(n)?oe(t).position()[e]+"px":n):void 0}}})}),oe.expr&&oe.expr.filters&&(oe.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},oe.expr.filters.visible=function(t){return!oe.expr.filters.hidden(t)}),oe.each({margin:"",padding:"",border:"Width"},function(t,e){oe.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[t+Ke[i]+e]=o[i]||o[i-2]||o[0];return r}},Ve.test(t)||(oe.cssHooks[t+e].set=C)});var tn=/%20/g,en=/\[\]$/,nn=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,on=/^(?:input|select|textarea|keygen)/i;oe.fn.extend({serialize:function(){return oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=oe.prop(this,"elements");return t?oe.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!oe(this).is(":disabled")&&on.test(this.nodeName)&&!rn.test(t)&&(this.checked||!Pe.test(t))}).map(function(t,e){var n=oe(this).val();return null==n?null:oe.isArray(n)?oe.map(n,function(t){return{name:e.name,value:t.replace(nn,"\r\n")}}):{name:e.name,value:n.replace(nn,"\r\n")}}).get()}}),oe.param=function(t,n){var i,r=[],o=function(t,e){e=oe.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=oe.ajaxSettings&&oe.ajaxSettings.traditional),oe.isArray(t)||t.jquery&&!oe.isPlainObject(t))oe.each(t,function(){o(this.name,this.value)});else for(i in t)S(i,t[i],n,o);return r.join("&").replace(tn,"+")},oe.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(t,e){oe.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),oe.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var sn,an,ln=oe.now(),cn=/\?/,un=/#.*$/,pn=/([?&])_=[^&]*/,dn=/^(.*?):[ \t]*([^\r\n]*)$/gm,fn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,hn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,vn=oe.fn.load,yn={},bn={},xn="*/".concat("*");try{an=W.href}catch(wn){an=V.createElement("a"),an.href="",an=an.href}sn=gn.exec(an.toLowerCase())||[],oe.fn.load=function(t,n,i){if("string"!=typeof t&&vn)return vn.apply(this,arguments);var r,o,s,a=this,l=t.indexOf(" ");return l>=0&&(r=t.slice(l),t=t.slice(0,l)),oe.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(o="POST"),a.length>0&&oe.ajax({url:t,type:o,dataType:"html",data:n}).done(function(t){s=arguments,a.html(r?oe("<div>").append(oe.parseHTML(t)).find(r):t)}).complete(i&&function(t,e){a.each(i,s||[t.responseText,e,t])}),this},oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){oe.fn[e]=function(t){return this.on(e,t)}}),oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:an,type:"GET",isLocal:fn.test(sn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":oe.parseJSON,"text xml":oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?D(D(t,oe.ajaxSettings),e):D(oe.ajaxSettings,t)},ajaxPrefilter:O(yn),ajaxTransport:O(bn),ajax:function(t,n){function i(t,n,i,a){var c,p,y,b,w,_=n;2!==x&&(x=2,l&&clearTimeout(l),r=e,s=a||"",C.readyState=t>0?4:0,c=t>=200&&300>t||304===t,i&&(b=N(d,C,i)),b=L(d,b,C,c),c?(d.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(oe.lastModified[o]=w),w=C.getResponseHeader("etag"),w&&(oe.etag[o]=w)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=b.state,p=b.data,y=b.error,c=!y)):(y=_,(t||!_)&&(_="error",0>t&&(t=0))),C.status=t,C.statusText=(n||_)+"",c?m.resolveWith(f,[p,_,C]):m.rejectWith(f,[C,_,y]),C.statusCode(v),v=e,u&&h.trigger(c?"ajaxSuccess":"ajaxError",[C,d,c?p:y]),g.fireWith(f,[C,_]),u&&(h.trigger("ajaxComplete",[C,d]),--oe.active||oe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var r,o,s,a,l,c,u,p,d=oe.ajaxSetup({},n),f=d.context||d,h=d.context&&(f.nodeType||f.jquery)?oe(f):oe.event,m=oe.Deferred(),g=oe.Callbacks("once memory"),v=d.statusCode||{},y={},b={},x=0,w="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!a)for(a={};e=dn.exec(s);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return x||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)v[e]=[v[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||w;return r&&r.abort(e),i(0,e),this}};if(m.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,d.url=((t||d.url||an)+"").replace(un,"").replace(mn,sn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=oe.trim(d.dataType||"*").toLowerCase().match(ae)||[""],null==d.crossDomain&&(c=gn.exec(d.url.toLowerCase()),d.crossDomain=!(!c||c[1]===sn[1]&&c[2]===sn[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(sn[3]||("http:"===sn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=oe.param(d.data,d.traditional)),E(yn,d,n,C),2===x)return C;u=d.global,u&&0===oe.active++&&oe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!hn.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(cn.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=pn.test(o)?o.replace(pn,"$1_="+ln++):o+(cn.test(o)?"&":"?")+"_="+ln++)),d.ifModified&&(oe.lastModified[o]&&C.setRequestHeader("If-Modified-Since",oe.lastModified[o]),oe.etag[o]&&C.setRequestHeader("If-None-Match",oe.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+xn+"; q=0.01":""):d.accepts["*"]);for(p in d.headers)C.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(d.beforeSend.call(f,C,d)===!1||2===x))return C.abort();w="abort";for(p in{success:1,error:1,complete:1})C[p](d[p]);if(r=E(bn,d,n,C)){C.readyState=1,u&&h.trigger("ajaxSend",[C,d]),d.async&&d.timeout>0&&(l=setTimeout(function(){C.abort("timeout")},d.timeout));try{x=1,r.send(y,i)}catch(_){if(!(2>x))throw _;i(-1,_)}}else i(-1,"No Transport");return C},getJSON:function(t,e,n){return oe.get(t,e,n,"json")},getScript:function(t,n){return oe.get(t,e,n,"script")}}),oe.each(["get","post"],function(t,n){oe[n]=function(t,i,r,o){return oe.isFunction(i)&&(o=o||r,r=i,i=e),oe.ajax({url:t,type:n,dataType:o,data:i,success:r})}}),oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return oe.globalEval(t),t}}}),oe.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),oe.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=oe("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),V.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Cn=[],_n=/(=)\?(?=&|$)|\?\?/;oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Cn.pop()||oe.expando+"_"+ln++;return this[t]=!0,t}}),oe.ajaxPrefilter("json jsonp",function(n,i,r){var o,s,a,l=n.jsonp!==!1&&(_n.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&_n.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=oe.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(_n,"$1"+o):n.jsonp!==!1&&(n.url+=(cn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return a||oe.error(o+" was not called"),a[0]},n.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},r.always(function(){t[o]=s,n[o]&&(n.jsonpCallback=i.jsonpCallback,Cn.push(o)),a&&oe.isFunction(s)&&s(a[0]),a=s=e}),"script"):void 0}),oe.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var $n=oe.ajaxSettings.xhr(),kn={0:200,1223:204},Tn=0,Sn={};t.ActiveXObject&&oe(t).on("unload",function(){for(var t in Sn)Sn[t]();Sn=e}),oe.support.cors=!!$n&&"withCredentials"in $n,oe.support.ajax=$n=!!$n,oe.ajaxTransport(function(t){var n;return oe.support.cors||$n&&!t.crossDomain?{send:function(i,r){var o,s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)a.setRequestHeader(o,i[o]);n=function(t){return function(){n&&(delete Sn[s],n=a.onload=a.onerror=null,"abort"===t?a.abort():"error"===t?r(a.status||404,a.statusText):r(kn[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:e,a.getAllResponseHeaders()))}},a.onload=n(),a.onerror=n("error"),n=Sn[s=Tn++]=n("abort"),a.send(t.hasContent&&t.data||null)},abort:function(){n&&n()}}:void 0});var On,En,Dn=/^(?:toggle|show|hide)$/,Nn=new RegExp("^(?:([+-])=|)("+se+")([a-z%]*)$","i"),Ln=/queueHooks$/,jn=[R],An={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=Nn.exec(e),o=r&&r[3]||(oe.cssNumber[t]?"":"px"),s=(oe.cssNumber[t]||"px"!==o&&+i)&&Nn.exec(oe.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o){o=o||s[3],r=r||[],s=+i||1;do a=a||".5",s/=a,oe.style(n.elem,t,s+o);while(a!==(a=n.cur()/i)&&1!==a&&--l)}return r&&(s=n.start=+s||+i||0,n.unit=o,n.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),n}]};oe.Animation=oe.extend(H,{tweener:function(t,e){oe.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],An[n]=An[n]||[],An[n].unshift(e)},prefilter:function(t,e){e?jn.unshift(t):jn.push(t)}}),oe.Tween=M,M.prototype={constructor:M,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(oe.cssNumber[n]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return t&&t.get?t.get(this):M.propHooks._default.get(this)},run:function(t){var e,n=M.propHooks[this.prop];return this.pos=e=this.options.duration?oe.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=oe.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){oe.fx.step[t.prop]?oe.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[oe.cssProps[t.prop]]||oe.cssHooks[t.prop])?oe.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},oe.each(["toggle","show","hide"],function(t,e){var n=oe.fn[e];oe.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(I(e,!0),t,i,r)}}),oe.fn.extend({fadeTo:function(t,e,n,i){return this.filter(b).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=oe.isEmptyObject(t),o=oe.speed(e,n,i),s=function(){var e=H(this,oe.extend({},t),o);(r||ge.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,n,i){var r=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",o=oe.timers,s=ge.get(this);if(n)s[n]&&s[n].stop&&r(s[n]);else for(n in s)s[n]&&s[n].stop&&Ln.test(n)&&r(s[n]);for(n=o.length;n--;)o[n].elem!==this||null!=t&&o[n].queue!==t||(o[n].anim.stop(i),e=!1,o.splice(n,1));(e||!i)&&oe.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ge.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=oe.timers,s=i?i.length:0;for(n.finish=!0,oe.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),oe.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){oe.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),oe.speed=function(t,e,n){var i=t&&"object"==typeof t?oe.extend({},t):{complete:n||!n&&e||oe.isFunction(t)&&t,duration:t,easing:n&&e||e&&!oe.isFunction(e)&&e};return i.duration=oe.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in oe.fx.speeds?oe.fx.speeds[i.duration]:oe.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){oe.isFunction(i.old)&&i.old.call(this),i.queue&&oe.dequeue(this,i.queue)},i},oe.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},oe.timers=[],oe.fx=M.prototype.init,oe.fx.tick=function(){var t,n=oe.timers,i=0;for(On=oe.now();i<n.length;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||oe.fx.stop(),On=e},oe.fx.timer=function(t){t()&&oe.timers.push(t)&&oe.fx.start()},oe.fx.interval=13,oe.fx.start=function(){En||(En=setInterval(oe.fx.tick,oe.fx.interval))},oe.fx.stop=function(){clearInterval(En),En=null},oe.fx.speeds={slow:600,fast:200,_default:400},oe.fx.step={},oe.expr&&oe.expr.filters&&(oe.expr.filters.animated=function(t){return oe.grep(oe.timers,function(e){return t===e.elem}).length}),oe.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){oe.offset.setOffset(this,t,e)});var n,i,r=this[0],o={top:0,left:0},s=r&&r.ownerDocument;if(s)return n=s.documentElement,oe.contains(n,r)?(typeof r.getBoundingClientRect!==B&&(o=r.getBoundingClientRect()),i=q(s),{top:o.top+i.pageYOffset-n.clientTop,left:o.left+i.pageXOffset-n.clientLeft}):o},oe.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c,u=oe.css(t,"position"),p=oe(t),d={};"static"===u&&(t.style.position="relative"),a=p.offset(),o=oe.css(t,"top"),l=oe.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(i=p.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),oe.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):p.css(d)}},oe.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===oe.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),oe.nodeName(t[0],"html")||(i=t.offset()),i.top+=oe.css(t[0],"borderTopWidth",!0),i.left+=oe.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-oe.css(n,"marginTop",!0),left:e.left-i.left-oe.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||U;t&&!oe.nodeName(t,"html")&&"static"===oe.css(t,"position");)t=t.offsetParent;return t||U})}}),oe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,i){var r="pageYOffset"===i;oe.fn[n]=function(o){return oe.access(this,function(n,o,s){var a=q(n);return s===e?a?a[i]:n[o]:(a?a.scrollTo(r?t.pageXOffset:s,r?s:t.pageYOffset):n[o]=s,void 0)},n,o,arguments.length,null)}}),oe.each({Height:"height",Width:"width"},function(t,n){oe.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,r){oe.fn[r]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(r===!0||o===!0?"margin":"border");return oe.access(this,function(n,i,r){var o;return oe.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+t],o["scroll"+t],n.body["offset"+t],o["offset"+t],o["client"+t])):r===e?oe.css(n,i,a):oe.style(n,i,r,a)},n,s?r:e,s,null)}})}),oe.fn.size=function(){return this.length},oe.fn.andSelf=oe.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=oe:"function"==typeof define&&define.amd&&define("jquery",[],function(){return oe}),"object"==typeof t&&"object"==typeof t.document&&(t.jQuery=t.$=oe)}(window),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]}}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one(t.support.transition.end,function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e()})}(jQuery),+function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.prototype.close=function(e){function n(){o.trigger("closed.bs.alert").remove()}var i=t(this),r=i.attr("data-target");r||(r=i.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var o=t(r);e&&e.preventDefault(),o.length||(o=i.hasClass("alert")?i:i.parent()),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one(t.support.transition.end,n).emulateTransitionEnd(150):n())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),+function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i)};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();t+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[t]||this.options[t]),setTimeout(function(){"loadingText"==t?n.addClass(e).attr(e,e):n.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]'),e=!0;if(t.length){var n=this.$element.find("input");"radio"===n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=function(n){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof n&&n;r||i.data("bs.button",r=new e(this,o)),"toggle"==n?r.toggle():n&&r.setState(n)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),e.preventDefault()})}(jQuery),+function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var n=this,i=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(e,n){var i=this.$element.find(".item.active"),r=n||i[e](),o=this.interval,s="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[a]()}this.sliding=!0,o&&this.pause();var c=t.Event("slide.bs.carousel",{relatedTarget:r[0],direction:s});if(!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(c),c.isDefaultPrevented())return;r.addClass(e),r[0].offsetWidth,i.addClass(s),r.addClass(s),i.one(t.support.transition.end,function(){r.removeClass([e,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(c),c.isDefaultPrevented())return;i.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return o&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=function(n){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;r||i.data("bs.carousel",r=new e(this,o)),"number"==typeof n?r.to(n):s?r[s]():o.interval&&r.pause().cycle()})},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var n,i=t(this),r=t(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},r.data(),i.data()),s=i.attr("data-slide-to");s&&(o.interval=!1),r.carousel(o),(s=i.attr("data-slide-to"))&&r.data("bs.carousel").to(s),e.preventDefault()}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);e.carousel(e.data())})})}(jQuery),+function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var i=n.data("bs.collapse");if(i&&i.transitioning)return;n.collapse("hide"),i||n.data("bs.collapse",null)}var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("in")[r]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return o.call(this);var s=t.camelCase(["scroll",r].join("-"));this.$element.one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350)[r](this.$element[0][s])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?(this.$element[n](0).one(t.support.transition.end,t.proxy(i,this)).emulateTransitionEnd(350),void 0):i.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=t.fn.collapse;t.fn.collapse=function(n){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);r||i.data("bs.collapse",r=new e(this,o)),"string"==typeof n&&r[n]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var n,i=t(this),r=i.attr("data-target")||e.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),o=t(r),s=o.data("bs.collapse"),a=s?"toggle":i.data(),l=i.attr("data-parent"),c=l&&t(l);s&&s.transitioning||(c&&c.find('[data-toggle=collapse][data-parent="'+l+'"]').not(i).addClass("collapsed"),i[o.hasClass("in")?"addClass":"removeClass"]("collapsed")),o.collapse(a)})}(jQuery),+function(t){"use strict";function e(){t(i).remove(),t(r).each(function(e){var i=n(t(this));i.hasClass("open")&&(i.trigger(e=t.Event("hide.bs.dropdown")),e.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}var i=".dropdown-backdrop",r="[data-toggle=dropdown]",o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=n(r),s=o.hasClass("open");if(e(),!s){if("ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e),o.trigger(i=t.Event("show.bs.dropdown")),i.isDefaultPrevented())return;o.toggleClass("open").trigger("shown.bs.dropdown"),r.focus()}return!1}},o.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=n(i),s=o.hasClass("open");if(!s||s&&27==e.keyCode)return 27==e.which&&o.find(r).focus(),i.click();var a=t("[role=menu] li:not(.divider):visible a",o);if(a.length){var l=a.index(a.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<a.length-1&&l++,~l||(l=0),a.eq(l).focus()}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r+", [role=menu]",o.prototype.keydown)}(jQuery),+function(t){"use strict";var e=function(e,n){this.options=n,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},e.prototype.show=function(e){var n=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var i=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});i?n.$element.find(".modal-dialog").one(t.support.transition.end,function(){n.$element.focus().trigger(r)}).emulateTransitionEnd(300):n.$element.focus().trigger(r)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;
this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var n=t.fn.modal;t.fn.modal=function(n,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),s=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);o||r.data("bs.modal",o=new e(this,s)),"string"==typeof n?o[n](i):s.show&&o.show(i)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var n=t(this),i=n.attr("href"),r=t(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),o=r.data("modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},r.data(),n.data());e.preventDefault(),r.modal(o,this).one("hide",function(){n.is(":visible")&&n.focus()})}),t(document).on("show.bs.modal",".modal",function(){t(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){t(document.body).removeClass("modal-open")})}(jQuery),+function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i);for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focus",l="hover"==s?"mouseleave":"blur";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show),void 0):n.show()},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide),void 0):n.hide()},e.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var n=this.tip();this.setContent(),this.options.animation&&n.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,o=r.test(i);o&&(i=i.replace(r,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(i),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var s=this.getPosition(),a=n[0].offsetWidth,l=n[0].offsetHeight;if(o){var c=this.$element.parent(),u=i,p=document.documentElement.scrollTop||document.body.scrollTop,d="body"==this.options.container?window.innerWidth:c.outerWidth(),f="body"==this.options.container?window.innerHeight:c.outerHeight(),h="body"==this.options.container?0:c.offset().left;i="bottom"==i&&s.top+s.height+l-p>f?"top":"top"==i&&s.top-p-l<0?"bottom":"right"==i&&s.right+a>d?"left":"left"==i&&s.left-a<h?"right":i,n.removeClass(u).addClass(i)}var m=this.getCalculatedOffset(i,s,a,l);this.applyPlacement(m,i),this.$element.trigger("shown.bs."+this.type)}},e.prototype.applyPlacement=function(t,e){var n,i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,i.offset(t).addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;if("top"==e&&c!=o&&(n=!0,t.top=t.top+o-c),/bottom|top/.test(e)){var u=0;t.left<0&&(u=-2*t.left,t.left=0,i.offset(t),l=i[0].offsetWidth,c=i[0].offsetHeight),this.replaceArrow(u-r+l,l,"left")}else this.replaceArrow(c-o,c,"top");n&&i.offset(t)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(){function e(){"in"!=n.hoverState&&i.detach()}var n=this,i=this.tip(),r=t.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?i.one(t.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this)},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=e?t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof n&&n;r||i.data("bs.tooltip",r=new e(this,o)),"string"==typeof n&&r[n]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof n&&n;r||i.data("bs.popover",r=new e(this,o)),"string"==typeof n&&r[n]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(n,i){var r,o=t.proxy(this.process,this);this.$element=t(n).is("body")?t(window):t(n),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",o),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||(r=t(n).attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);{var n=this;this.$body.find(this.selector).map(function(){var i=t(this),r=i.data("target")||i.attr("href"),o=/^#\w/.test(r)&&t(r);return o&&o.length&&[[o[e]().top+(!t.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})}},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,i=n-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(e>=i)return s!=(t=o.last()[0])&&this.activate(t);for(t=r.length;t--;)s!=o[t]&&e>=r[t]&&(!r[t+1]||e<=r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parents(".active").removeClass("active");var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")};var n=t.fn.scrollspy;t.fn.scrollspy=function(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),+function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a")[0],o=t.Event("show.bs.tab",{relatedTarget:r});if(e.trigger(o),!o.isDefaultPrevented()){var s=t(i);this.activate(e.parent("li"),n),this.activate(s,s.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:r})})}}},e.prototype.activate=function(e,n,i){function r(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var o=n.find("> .active"),s=i&&t.support.transition&&o.hasClass("fade");s?o.one(t.support.transition.end,r).emulateTransitionEnd(150):r(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new e(this)),"string"==typeof n&&r[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(jQuery),+function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=this.unpin=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=t(document).height(),i=this.$window.scrollTop(),r=this.$element.offset(),o=this.options.offset,s=o.top,a=o.bottom;"object"!=typeof o&&(a=s=o),"function"==typeof s&&(s=o.top()),"function"==typeof a&&(a=o.bottom());var l=null!=this.unpin&&i+this.unpin<=r.top?!1:null!=a&&r.top+this.$element.height()>=n-a?"bottom":null!=s&&s>=i?"top":!1;this.affixed!==l&&(this.unpin&&this.$element.css("top",""),this.affixed=l,this.unpin="bottom"==l?r.top-i:null,this.$element.removeClass(e.RESET).addClass("affix"+(l?"-"+l:"")),"bottom"==l&&this.$element.offset({top:document.body.offsetHeight-a-this.$element.height()}))}};var n=t.fn.affix;t.fn.affix=function(n){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof n&&n;r||i.data("bs.affix",r=new e(this,o)),"string"==typeof n&&r[n]()})},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),n=e.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.affix(n)})})}(jQuery),function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return r(n?n:t)},c,c.exports,t,e,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(require,module,exports){!function(){"use strict";$ENV={dot:require("dot"),controls:require("controls"),marked:require("./temp/marked"),"bootstrap.controls":require("./temp/bootstrap.controls.js")},$ENV.controls.template=$ENV.dot.template;var extend=$ENV.controls.extend;$ENV.marked.setOptions({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1,langPrefix:"lang-"}),$ENV.default_template=function(t){return"<div"+t.printAttributes()+">"+$ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))+"</div>"},$ENV.default_inline_template=function(t){return"<span"+t.printAttributes()+">"+$ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))+"</span>"},$ENV.default_inner_template=function(t){return $ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))};var url_params={};window.location.search.substring(1).split("&").forEach(function(t){if(t){var e=t.indexOf("=");0>e?url_params[t]=!0:url_params[t.slice(0,e)]=decodeURIComponent(t.slice(e+1).replace(/\+/g," "))}});var scripts_count=0,scripts_stated=0;$DOC={initialize:function(){this.urlParams=extend({},url_params);var t="",e=document.getElementById("DOC");if(e){var n=e.attributes;if(n.hasOwnProperty("root"))t=e.getAttribute("root");else{var i=e.getAttribute("src");if(i){var r=i.split("/");t=r.slice(0,r.length-1).join("/"),t&&(t+="/")}}}this.root=t;var o=document.currentScript;if(!o)for(var s=document.getElementsByTagName("script"),a=s.length-1;a>=0;a--){var l=s[a];l.src.indexOf("document.")>=0&&(!l.readyState||" complete interactive".indexOf(l.readyState)>0)&&(o=l)}if(o){var i=o.getAttribute("src");if(i){var c=i.split("/").slice(0,-1).join("/");this.codebase=c,this.components=c+(c?"/":"")+"components/"}$OPT.userjs=o.getAttribute("userjs")||$OPT.userjs,$OPT.icon=o.getAttribute("icon")||$OPT.icon;var u=o.getAttribute("editable")||$OPT.editable;$OPT.editable="false"===u||"0"===u?!1:!!u}$OPT.editable&&(url_params.edit&&window.self===window.top&&($OPT.edit_mode=1),url_params.preview&&($OPT.edit_mode=2,controls.id_generator=2e5)),this.state=0,this.events={},this.sections={},this.order=["fixed-top-bar","fixed-top-panel","header-bar","header-panel","left-side-bar","left-side-panel","content-bar","content-panel","right-side-panel","right-side-bar","footer-panel","footer-bar","fixed-bottom-panel","fixed-bottom-bar"],this.columns=["left-side-bar","left-side-panel","content-bar","content-panel","right-side-panel","right-side-bar"],this.vars={},this.filters=[],this.mods={},this.chead&&this.chead.detachAll(),this.chead=controls.create("head"),this.chead.attach(),this.cbody&&this.cbody.detachAll(),this.cbody=controls.create("body")},forceEvent:function(t){var e=this.events;return e[t]||(e[t]=new controls.Event)},onready:function(t){2===this.state||void 0===document.readyState||" interactive complete".indexOf(document.readyState)>0?t():this.forceEvent("ready").addListener(t)},onload:function(t){2===this.state?t():this.forceEvent("load").addListener(t)},listen:function(t,e){this.forceEvent(t).addListener(e)},raise:function(t){var e=this.events[t];e&&e.raise()},addSection:function(t,e){var n=this.sections,i=n[t];i&&i._element&&i.deleteElement(),n[t]=e},removeSection:function(t){var e=this.sections,n=e[t];n&&(n._element&&n.deleteElement(),e[t]=void 0)},sectionPlaceholder:function(t,e){var n=this.sections,i=n[t];if(i)if(i.__type){var r=i.element;r&&document.insertBefore(r,e)}else i.nodeType&&document.insertBefore(i,e);n[t]={placeholder:e,content:i}},sectionMover:function(t,e,n){var i=this.sections,r=i[e];if("string"==typeof r)i[n]=r,delete i[e];else if(r)if(r.__type){r.class(n,e);var o=r.element;o&&document.insertBefore(o,t)}else r.nodeType&&document.insertBefore(r,t)},parseContent:function(t){if(t)for(var e=t.toString().split(/(<!--\S+\s+)|(-->)/gm),n=0,i=e.length;i>n;n+=1){var r=e[n];if(r&&"<!--"===r.substr(0,4)){if("$"===r[4]){var o=r.substr(4).trim();this.vars[o]=e[n+2]}else{var s=r.substr(4).trim();this.addSection(s,e[n+2])}n+=2}}},appendElement:function(t,e,n){try{arguments.length<3&&(n=e,e=t,t=void 0);var i=document.head;if(t){var r=document.getElementById(t);if(r&&r.parentNode===i)return}return i.insertAdjacentHTML("beforeend","<"+e+(t?' id="'+t+'"':"")+Object.keys(n).map(function(t){return" "+t+'="'+n[t]+'"'}).join("")+"></"+e+">"),i.lastChild}catch(o){console.log(o)}},removeElement:function(t){var e=document.getElementById(t);e&&e.parentNode===document.head&&document.head.removeChild(e)},appendScript:function(t,e,n){if((1===arguments.length||"function"==typeof e)&&(n=e,e=t,t=void 0),t&&document.getElementById(t))return n&&n(1),void 0;var i=document.createElement("script");t&&(i.id=t),e.indexOf("(")>=0?i.innerHTML=e:(i.src=e,scripts_count++,i.src=e,i.async=!0,i.addEventListener("load",function(){n&&n(1),scripts_stated++,$DOC.checkAllScriptsReady()}),i.addEventListener("error",function(){n&&n(-1),scripts_stated++,$DOC.checkAllScriptsReady()})),document.head.appendChild(i)},getRootUrl:function(t){return"/"===t[0]?"/"!==t[1]&&(t=this.root+t):t.indexOf(":")<0&&"."!==t[0]&&(t=this.root+t),t.replace("{{=$DOC.root}}",this.root)},loadUserJS:function(){var t=$OPT.userjs;if(t){t=t.split(",");for(var e=0,n=t.length;n>e;e++)this.appendScript("user.js/"+e,this.getRootUrl(t[e]))}},checkAllScriptsReady:function(){scripts_count===scripts_stated&&!$DOC.state&&$DOC.finalTransformation&&$DOC.finalTransformation()},appendCSS:function(t,e,n,i){(1===arguments.length||"function"==typeof e)&&(i=n,n=e,e=t,t="");var r=document.head,o=document.getElementById(t),s=e.indexOf("{")>=0;if(o)s?o.innerHTML!==e&&(o.innerHTML=e):o.href!==e&&(o.href=e);else if(s)r.insertAdjacentHTML(i||"beforeend",'<style id="'+t+'" auto="true">'+e+"</style>");else{var a=document.createElement("link");switch(a.rel="stylesheet",a.type="text/css",t&&(a.id=t),a.auto=!0,a.href=e,n&&(a.addEventListener("load",function(){n(1)}),a.addEventListener("error",function(){n(-1)})),i){case"afterbegin":r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a);break;default:r.appendChild(a)}}},mod:function(t,e){1===arguments.length&&(e=t);var n=$DOC.mods[t];n||(n=[],$DOC.mods[t]=n),e.split(/ ,;/g).forEach(function(e){if(n.indexOf(e)<0){var i=$DOC.getRootUrl("mods/"+e+"/"+e);$DOC.appendCSS(t+"-"+e+"-css",i+".css"),$DOC.appendScript(t+"-"+e+"-js",i+".js"),n.push(e)}})},removeMod:function(t,e){var n=$DOC.mods[t];n&&(1===arguments.length?n:e.split(/ ,;/g)).forEach(function(e){var i=n.indexOf(e);i>=0&&($DOC.removeElement(t+"-"+e+"-css"),$DOC.removeElement(t+"-"+e+"-js"),n.splice(i,1))})}},$DOC.initialize();var theme="",theme_confirmed;if("undefined"!=typeof localStorage){theme=localStorage.getItem("primary-theme"),theme_confirmed=localStorage.getItem("primary-theme-confirmed");var params_theme=url_params.theme;params_theme&¶ms_theme!==theme&&(theme=params_theme,theme_confirmed="");var params_settheme=url_params.settheme;params_settheme&&(params_settheme!==theme&&(theme_confirmed="",localStorage.setItem("primary-theme-confirmed","")),localStorage.setItem("primary-theme",params_settheme),theme=params_settheme)}Object.defineProperty($DOC,"theme",{get:function(){return theme},set:function(t){t=t||"",t!==theme&&"undefined"!=typeof localStorage&&(t?localStorage.setItem("primary-theme",t):(localStorage.removeItem("primary-theme"),localStorage.removeItem("primary-theme-confirmed")),window.location.reload())}}),$DOC.headTransformation=function(){if(!($DOC.auto=document.head.hasAttribute("generator"))&&(document.head.setAttribute("generator","markdown webdocs"),this.appendElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),$OPT.icon&&this.appendElement("link",{rel:"shortcut icon",href:this.getRootUrl($OPT.icon)}),this.appendCSS("document.css",'.fixed-top-bar, .fixed-top-panel { display: block; margin: 0; padding: 0; position: fixed; top: 0; left: 0; right: 0; z-index: 1030; }.fixed-top-panel { background-color: inherit; padding: 25px 37px 0px 37px; margin-bottom: 25px; }.fixed-top-panel > .navbar { margin: 0; }.header-bar, .header-panel { display: block; margin: 0; padding: 0; }.header-panel { padding: 25px 37px; }.footer-bar, .footer-panel { display: block; margin: 0; padding: 0; }.footer-panel { padding: 25px 37px; }.fixed-bottom-bar, .fixed-bottom-panel { display: block; margin: 0; padding: 0; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; }.fixed-bottom-panel { padding: 0px 37px 0px 37px; margin-top: 25px; }.fixed-bottom-panel > .navbar { margin: 0; }.text-box { width:50%; padding:25px 37px 25px 37px; display: inline-block; }.fixed-left-side-bar, .fixed-left-side-panel { display: table-cell; margin: 0; padding: 0; vertical-align: top; width: auto; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1030; }.fixed-left-side-panel\n { width: auto; padding:25px 20px; }.left-side-bar, .left-side-panel { display: table-cell; margin: 0; padding: 0; vertical-align: top; width: 26%; min-width: 240px; }.left-side-panel { padding:25px 9px 25px 37px; }.content-bar, .content-panel { display: table-cell; margin: 0; padding: 0; vertical-align: top; width: 60%; min-width: 250px; max-width: 73%; }.content-panel { padding:25px 37px 25px 37px; }.fixed-right-side-bar, .fixed-right-side-panel { display: table-cell; margin: 0; padding: 0; vertical-align: top; width: auto; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1030;}.fixed-right-side-panel { width: auto; padding:25px 20px;}.right-side-bar, .right-side-panel { display: table-cell; margin: 0; padding: 0; vertical-align: top; min-width: 240px; width: 28%;}.right-side-panel { padding:25px 25px 25px 9px;}@media (max-width: 1024px) {.right-side-bar, .right-side-panel { display: block; padding:25px 25px 25px 37px; width: 50%; }.right-side-panel { padding:25px 25px 25px 37px; }}@media (max-width: 768px) {.left-side-bar, .left-side-panel { display: block; margin: 0; padding: 0; width: auto; }.left-side-panel { padding:25px 25px 25px 25px; }.content-bar, .content-panel { display: block; margin: 0; padding: 0; max-width: 100%; width: auto; }.content-panel { padding:25px 25px 25px 25px; }.right-side-bar, .right-side-panel { display: block; margin: 0; padding: 0; width: auto; }.right-side-panel { padding:25px 25px 25px 25px; }}.table-bordered {display:table-cell;}.stub {display:inline-block;}.stub-error {width:18px; height:18px; border:silver dotted 1px; border-radius:2px;}.stub-error:before {content:"?"; font-size:small; color:silver; margin:4px; position:relative; top:-2px;}.tabpanel-body {padding-bottom:5px; border-left:#DDD solid 1px; border-right:#DDD solid 1px; border-bottom:#DDD solid 1px;}.nav-tabs > li > a:focus {outline-color:silver;}.transparent {background-color:transparent;border-color:transparent;} .transparent:hover {text-decoration:none;}.rel {position:relative;} .abs {position:absolute;}.hidden {display:none;} .block {display:block;} .inline {display:inline;} .inlineblock {display:inline-block;} .tabcell {display:table-cell;} .tabcol {display:table-column;} .tabrow {display:table-row;}.bold {font-weight:bold;} .justify {text-align:justify;} .nowrap {white-space:nowrap;} .l {font-size:90%;} .ll {font-size:80%;}.fleft {float:left;} .fright {float:right;} .fnone {float:none;}.left {text-align:left;} .right {text-align:right;} .clear {clear:both;} .clearleft {clear:left;} .clearright {clear:right;}.center {text-align:center;vertical-align:middle;} .hcenter {text-align:center;} .vcenter {vertical-align:middle;} .bottom {vertical-align:bottom;}'+["0","5","10","15","20"].map(function(t){return".mar"+t+"{margin:"+t+"px}.martop"+t+"{margin-top:"+t+"px}.marright"+t+"{margin-right:"+t+"px}.marbottom"+t+"{margin-bottom:"+t+"px}.marleft"+t+"{margin-left:"+t+"px}.pad"+t+"{padding:"+t+"px}.padtop"+t+"{padding-top:"+t+"px}.padright"+t+"{padding-right:"+t+"px}.padbottom"+t+"{padding-bottom:"+t+"px}.padleft"+t+"{padding-left:"+t+"px}"}).join("")),theme&&1!==$OPT.edit_mode&&(this.appendCSS("theme.css",this.getRootUrl("mods/"+theme+"/"+theme+".css"),function(t){0>t&&theme_confirmed?localStorage.setItem("primary-theme-confirmed",""):t>0&&!theme_confirmed&&localStorage.setItem("primary-theme-confirmed",!0)},"afterbegin"),this.appendScript("theme.js",this.getRootUrl("mods/"+theme+"/"+theme+".js"))),!theme||!theme_confirmed||1===$OPT.edit_mode)){var t=document.getElementById("bootstrap.css");if(!t){for(var e=document.getElementsByTagName("link"),n=e.length-1;n>=0;n--){var i=e[n].href;if(i.indexOf("bootstrap.css")>=0||i.indexOf("bootstrap.min.css")>=0){t=!0;break}}if(!t){var r=("file:"===window.location.protocol?"http:":"")+"//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css";this.appendCSS("bootstrap.css",this.codebase.indexOf("aplib.github.io")>=0?r:this.codebase+(this.codebase?"/":"")+"bootstrap.css",function(t){0>t&&$DOC.appendCSS("bootstrap.css",r,null,"afterbegin")},"afterbegin")}}}},$DOC.headTransformation(),window.addEventListener("DOMContentLoaded",function(){var t=$DOC.events.ready;t&&(t.raise(),t.clear()),0===scripts_count&&window.addEventListener("load",function(){$DOC.finalTransformation()})}),$OPT.editable&&(1===$OPT.edit_mode&&window.top===window.self&&eval('!function(){"use strict";function e(){function e(){m=new c,$DOC.cbody.attachAll(),$DOC.appendCSS("document.editor.css",".tooltip, .popover { z-index:1200; }"),S=new r,$DOC.cbody.add(x=new i),x.createElement(),b=$DOC.cbody.add("div",{style:"overflow:hidden; border-radius:4px; position:fixed; top:20px;bottom:20px;right:20px; height:50%; width:50%; z-index:1101; border: silver solid 1px; background-color:white;"}),v=b.add("toolbar:div`clearfix",{style:"z-index:1111; background-color:#f0f0f0; line-height:32px; padding:0;"}).listen("element",function(e){e&&$(e).find("button,li,a").tooltip({placement:"bottom",container:"body",toggle:"tooltip"})}),v.add("save_group:bootstrap.BtnGroup`mar5",function(e){function t(){g.save(),e.download.element.href=(window.navigator.appName.indexOf("etscape")>0?"data:unknown":"data:application")+"/octet-stream;charset=utf-8,"+encodeURIComponent(g.buildHTML())}e.add("revert:bootstrap.Button",{$icon:"backward","data-original-title":"Revert"}).listen("click",function(){g.revert()});var n=m.fileName||"document.html";".html"!==n.toLowerCase().slice(-5)&&(n+=".html"),e.add("download:a`btn btn-default",\'<b class="glyphicon glyphicon-save"></b>\',{download:n,"data-original-title":"Download"}).listen("mousedown",t).listen("focus",t).listen("click",function(e){try{var t=new Blob([g.buildHTML()]);return window.navigator.msSaveOrOpenBlob(t,n),e.preventDefault(),void 0}catch(o){}}),e.add("save:bootstrap.SplitButton",{$icon:"floppy-disk","data-original-title":"Save"},function(e){e.button._class("disabled").listen("click",function(){g.write()}),e.toggle._class("disabled"),e.items.add("bootstrap.DropdownItem",{$icon:"resize-small"}).listen("click",function(){g.write(0)}).text(".html"),e.items.add("bootstrap.DropdownItem",{$icon:"resize-full"}).listen("click",function(){g.write(1)}).text(".html + .mw.html"),e.items.add("bootstrap.DropdownItem",{$icon:"share-alt"}).listen("click",function(){g.copy()}).text("Copy")}),v.add("cpanel:bootstrap.Button`hide fleft martop5 marbottom5 marleft5 padleft15 padright15",{$icon:"cog","data-original-title":"Control panel"}).listen("click",function(){})}),v.add("bootstrap.Button`mar5 fright",{$icon:"remove","data-original-title":"Close editor (Ctrl-F12)"}).listen("click",function(){var e=location.href,t=e.indexOf("?edit");0>t&&(t=e.indexOf("&edit")),t>=0&&(window.location=e.slice(0,t)+e.slice(t+5))});var e=v.add("bootstrap.Splitbutton`martop5 fright",{$icon:"fullscreen"});e.button.listen("click",function(){g.mode=g.mode?0:1});var l=e.items;l.add("bootstrap.DropdownItem",{$icon:"chevron-left"}).listen("click",function(){g.position=1}),l.add("bootstrap.DropdownItem",{$icon:"chevron-right"}).listen("click",function(){g.position=0}),l.add("bootstrap.DropdownItem",{$icon:"chevron-up"}).listen("click",function(){g.position=2}),l.add("bootstrap.DropdownItem",{$icon:"chevron-down"}).listen("click",function(){g.position=3}),v.add("export_group:bootstrap.BtnGroup`mar5",function(e){e.add("github:bootstrap.Button",{"data-original-title":"Publish"})._icon("export")._text("GitHub").listen("click",function(){k.getSettings(!1,function(e){e&&k.publish()})})}),v.add(w=new o),b.add(T=new n),b.add(y=new t),b.createElement(),g=new a,k=new s,setInterval(function(){for(var e=0,t=O.length;t>e;e++)O[e]()},25),setInterval(function(){for(var e=0,t=N.length;t>e;e++)N[e]()},1e3)}function t(){var e=controls.create("div",{"class":"pad20"}),t=!0;Object.defineProperty(e,"visible",{get:function(){return t},set:function(n){t=n,e.element&&(e.element.style.display=t?"block":"none")}}),e.listen("element",function(e){e&&(e.style.display=t?"block":"none")});var n=e.add("bootstrap.FormGroup");return n.add("bootstrap.ControlLabel",{$text:"Title:"}),n.add("title_edit:bootstrap.ControlInput",{value:""}).listen("change",function(){S.title=n.title_edit.value}),S.listen(function(){S.title!==n.title_edit.value&&(n.title_edit.value=S.title)}),e.save=function(){},e}function n(){function e(){if(t.mode){var e=t._element;e&&e.value!==o&&(t.modified=25,o=e.value)}}var t=controls.create("textarea",{"class":"form-control",style:"font-family:Consolas,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace; display:none; border:0; border-radius:0; border-left:#f9f9f9 solid 6px; box-shadow:none; width:100%; height:100%; resize:none; "});t.code_edit_resize=function(){var e=t.element;e&&(e.style.height=$(b.element).height()-$(v.element).height()+"px")},$(window).on("resize",t.code_edit_resize),N.push(t.code_edit_resize);var n=0;Object.defineProperty(t,"mode",{get:function(){return n},set:function(e){e>2&&(e=2),e!==n&&(n=e,this.element&&(t.element.style.display=n?"block":"none"),t.code_edit_resize())}});var o;return t.listen("element",function(e){e&&(e.value=o),t.code_edit_resize()}),Object.defineProperty(t,"text",{get:function(){return this.element?this.element.value:o},set:function(e){o=e||"",this.element&&(this.element.value=o),this.modified=0}}),t.save=function(){e(),this.modified&&(this.modified=0,this.raise("text",o))},t.listen("change",e,!0),O.push(function(){e(),t.modified&&--t.modified<2&&(t.modified=0,t.raise("text",o))}),t}function o(){function e(){o.selectedIndex=o.controls.indexOf(this)}var t,n=-1,o=v.add("tabs_header:bootstrap.TabPanelHeader");return o.bind(controls.create("dataarray")),o.data.push({isoptions:!0,text:"",hint:"Page options",icon:"list-alt"},{ishtml:!0,text:"HTML",hint:"Edit as HTML"}),o.setTabs=function(e){var t=w.data;e.length+2<t.length&&t.splice(1,t.length-e.length-2);for(var n=t.length,o=e.length+2;o>n;n++)t.splice(1,0,{});for(var n=1,i=t.length-1;i>n;n++)t[n].text=e[n-1];t.raise()},o.listen("data",function(){for(var n=o.controls,i=this.data,r=n.length,a=i.length;a>r;r++)o.add("bootstrap.TabHeader").listen("click",e);for(var r=n.length-1,a=i.length;r>=a;r--){var s=n[r];s.deleteAll(),s.removeListener("click",e),o.remove(s)}for(var r=0,a=i.length;a>r;r++){var l=i[r];l.id=n[r].id;var s=n[r];s.attributes["data-original-title"]=l.hint,s.attributes.$icon=l.icon,s.text(l.text),l===t?s.class("active"):s.class(null,"active")}o.checkSelection(),o.element&&o.refresh()}),Object.defineProperty(o,"selectedIndex",{get:function(){return n},set:function(e){this.selected=e}}),Object.defineProperty(o,"selected",{get:function(){return t},set:function(e){var o=this.data;if("string"!=typeof e){if("number"==typeof e)return e>=0&&e<o.length&&e!==n?this.selected=o[e]:-1===e&&(this.selected=void 0),void 0;var i=o.indexOf(e);if(i>=0){var r=o[i];r!==t&&t&&(this.lastSelected=t)}if(e!==t||i!==n){for(var a=this.controls,s=0,l=a.length;l>s;s++)s===i?a[s].class("active"):a[s].class(null,"active");this.raise("selected",t=e?e:void 0,n=i)}}else{for(var s=0,l=o.length;l>s;s++){var r=o[s];if(r.id===e)return this.selected=r,void 0}for(var s=0,l=o.length;l>s;s++){var r=o[s];if(r.text===e)return this.selected=r,void 0}}}}),o.checkSelection=function(){var e=this.data;if(e.length){var n=e.indexOf(t);0>n&&(this.selected=this.lastSelected),this.selected||(this.selected=0)}else this.selected=-1},o}function i(){function e(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}var t,n,o=location.href;return o=o.slice(0,o.length-location.hash.length),o+=o.indexOf("?")>0?"&preview":"?preview",x=controls.create("iframe",{sandbox:"",src:o,style:"position:fixed; left:0; top:0; width:100%; height:100%; z-index:1100; border:none;"}),x.updateInnerHtml=function(e,o){t=e,n=o;var i=this.element,r=this.$DOC;if(i&&r){var a=i.contentDocument,s=i.contentWindow,l=a.getElementsByTagName("html")[0];l&&(r.initialize(),l.innerHTML=e,r.headTransformation(),s.$OPT.userjs?r.loadUserJS():setTimeout(function(){r.finalTransformation()},0))}},x.reload=function(){this.element&&this.deleteAll(),this.createElement()},x.listen("load",function(){setTimeout(function(){try{this.element.contentWindow.location.pathname!==window.location.pathname&&this.reload()}catch(e){this.reload()}this.$DOC=this.element&&x.element.contentWindow.$DOC,void 0!==t&&this.updateInnerHtml(t,n)}.bind(x),0)}),x.updateNamedSection=function(e,n,o){t=o;var i=this.$DOC,r=i.sections[e];"object"==typeof r&&r.source_node&&i.processTextNode(r.source_node,e+"\\n"+n)},x.grabHTML=function(){for(var t=this.element&&this.element.contentDocument,n=this.$DOC,o=t.documentElement.cloneNode(),i=t.createNodeIterator(o,128,null,!1),r=i.nextNode();r;)r.parentNode.removeChild(r),r=i.nextNode();var a="<!DOCTYPE html>"+o.outerHTML.replace(/<noscript>([\\s\\S]*?)<\\/noscript>/g,function(t,n){return"<noscript>"+e(n)+"</noscript>"}),s=a.lastIndexOf("</body>"),l=\'<script>$DOC.onload(function(){ if ($OPT.edit_mode) return;($DOC.chead = JSON.parse(unescape("\'+escape(JSON.stringify(n.chead))+\'"), controls.reviverJSON)).attachAll();($DOC.cbody = JSON.parse(unescape("\'+escape(JSON.stringify(n.cbody))+\'"), controls.reviverJSON)).attachAll();$DOC.vars = JSON.parse(unescape("\'+escape(JSON.stringify(n.vars))+\'"), controls.reviverJSON);for(var prop in $DOC.vars) { var v = $DOC.vars[prop]; if (v.__type) v.attachAll(); }});</script>\';return a.slice(0,s)+l+a.slice(s)},x}function r(){function e(){return(this.opentag||"")+(this.attributes.$text||"")+this.controls.map(function(e){return e.outerHTML()}).join("")+(this.closetag||"")}var t,n,o,i;Object.defineProperty(this,"title",{get:function(){return o},set:function(r){if(o=r,!i){if(!n)return;i=n.add("div"),i.template(e)}i.controls.length=0,i.opentag="<title>"+r+"</title>",i.closetag="",t=this.buildHTML(),this.raise()}}),Object.defineProperty(this,"html",{get:function(){return t},set:function(r){if(r!==t){t=r;var a={},s={},l=document.implementation.createHTMLDocument(""),c=l.documentElement,d=/<html[\\s\\S]*?>([\\s\\S]*)<\\/html>/im.exec(t);d&&(c.innerHTML=d[1]);for(var u=controls.create("div"),h=[],f=[],p=l.createNodeIterator(c,65535,null,!1),m=p.nextNode();m;){var g=m===c?u:controls.create("div");g.template(e),h.push(m),f.push(g);var b=h.indexOf(m.parentNode);if(b>=0&&f[b].add(g),8===m.nodeType){var v=m.nodeValue,w=v[0];if(g.opentag="<!--"+m.nodeValue+"-->","%"===w);else if("!"===w);else{var y=v.indexOf(" "),T=v.indexOf("\\n"),S=v.indexOf("->");if(0>y&&0>T&&0>S);else if(0>y&&S>0);else if(T>0&&(0>y||y>T)&&(y=T),y>0&&128>y){var x=v.slice(0,y);a[x]=v.slice(y+1),s[x]=g}}}else if(m===c){var d=/(<html[\\s\\S]*?>)[\\s\\S]*?<head/im.exec(t);g.opentag="<!DOCTYPE html>\\n"+(d?d[1]:"<html>")+"\\n",g.closetag="\\n</html>"}else{var k=m.outerHTML,O=m.innerHTML;if(O){var N=k.lastIndexOf(O);0>N?g.opentag=k:(g.opentag=k.slice(0,N),g.closetag=k.slice(N+O.length))}else g.opentag=k?k:m.nodeValue}m=p.nextNode()}var C=l.getElementsByTagName("head")[0];n=C&&f[h.indexOf(C)];var E=l.getElementsByTagName("title")[0];E?(o=E.textContent,i=f[h.indexOf(E)]):(o="",i=null),this.chtml=u,this.sections=a,this.seccontrols=s,this.raise()}}}),this.updateNamedSection=function(e,n){var o=this.seccontrols[e];o&&(this.sections[e]=n,o.opentag="<!--"+e+"\\n"+n+"-->\\n",t=this.chtml.outerHTML())},this.buildHTML=function(){return this.chtml.outerHTML()}}function a(){function e(e,t,n,o,i,r,a,s,l,c,d,u){if(x.element){var h=x.element.style;h.top=e,h.right=t,h.bottom=n,h.left=o,h.width=i,h.height=r,h=b.element.style,h.top=a,h.right=s,h.bottom=l,h.left=c,h.width=d,h.height=u}}function t(){if(i)switch(r){case 1:e("0","0","0","0","100%","100%","auto","auto","20px","20px","50%","50%");break;case 2:e("0","0","0","0","100%","100%","20px","auto","auto","20px","50%","50%");break;case 3:e("0","0","0","0","100%","100%","auto","20px","20px","auto","50%","50%");break;default:e("0","0","0","0","100%","100%","20px","20px","auto","auto","50%","50%")}else switch(r){case 1:e("0","0","0","auto","50%","100%","0","auto","0","0","50%","100%");break;case 2:e("auto","0","0","0","100%","50%","0","0","auto","0","100%","50%");break;case 3:e("0","0","auto","0","100%","50%","auto","0","0","0","100%","50%");break;default:e("0","auto","0","0","50%","100%","0","0","0","auto","50%","100%")}T.code_edit_resize()}var n=this;S.listen(function(){n.edit_html=S.html,w.setTabs(Object.keys(S.sections)),x.updateInnerHtml(S.chtml.innerHTML(),Object.keys(S.sections))});var o;Object.defineProperty(this,"edit_html",{get:function(){return o},set:function(e){e!==o&&(o=e,S.html=o)}}),this.checkEdits=function(){var e=w.selected;e&&e.isoptions?y.save():e&&T.save()},w.listen("selected",this,function(){this.checkEdits(),this.updateCodeEdit(),this.modified=5,y.visible=0===w.selectedIndex}),this.updateCodeEdit=function(){var e=w.selected;switch(T.mode=!e||e.isoptions?0:e.ishtml?1:2,T.mode){case 1:T.text=n.edit_html;break;case 2:var t=w.selected;t?(T.section=t.text,T.text=S.sections[t.text]):T.text="";break;default:T.text=""}},T.listen("text",function(e){switch(T.mode){case 1:n.edit_html=e,n.modified=25;break;case 2:n.updateNamedSection(T.section,T.text),n.modified=25}}),this.updateNamedSection=function(e,t){S.updateNamedSection(e,t),o=S.buildHTML(),x.updateNamedSection(e,t,S.chtml.innerHTML())},this.save=function(){this.checkEdits(),f.selected=w.selected&&w.selected.text,f.editMw=this.edit_html,f.html===m.mwHtml&&(f.delete=!0),f.raise(),this.modified=0},this.write=function(){this.save(),arguments.length&&(m.fileMode=arguments[0]),m.fileMode?m.write(n.buildHTML(),x.grabHTML())&&h.onReady(function(){location.reload()}):m.write(n.buildHTML())&&h.onReady(function(){location.reload()})},this.copy=function(){this.save();var e=window.prompt("Enter file name",m.fileName);if(e&&e!==m.fileName)if(m.fileMode){var t=m.writeTo(e,n.buildHTML(),x.grabHTML());t&&h.onReady(function(){window.location=t})}else{var t=m.writeTo(e,n.buildHTML());t&&h.onReady(function(){window.location=t})}},this.revert=function(){this.edit_html=m.mwHtml,this.updateCodeEdit(),this.modified=2,setTimeout(function(){window.location.reload()},300)},this.buildHTML=function(){return T.save(),S.buildHTML()};var i=0,r=0,a=600,s=500;if(Object.defineProperty(this,"mode",{get:function(){return i},set:function(e){i=e,t(),n.saveLayout()}}),Object.defineProperty(this,"position",{get:function(){return r},set:function(e){r=e,t(),n.saveLayout()}}),this.saveLayout=function(){"undefined"!=typeof localStorage&&localStorage.setItem("editor layout",[i,r,a,s].join(";"))},"undefined"!=typeof localStorage){try{var l=localStorage.getItem("editor layout").split(";");i=parseInt(l[0]),r=parseInt(l[1]),a=parseInt(l[2]),s=parseInt(l[3])}catch(c){}t()}var d=localStorage&&localStorage.getItem("default selected page");w.lastSelected=f.selected||d||w.data[0],this.edit_html=f.editMw||m.mwHtml||"",w.checkSelection(),m.writable&&(v.save_group.save.button.class(null,"disabled"),v.save_group.save.toggle.class(null,"disabled")),O.push(function(){this.modified&&--this.modified<2&&(this.modified=0,this.save())}.bind(this))}function s(){function e(){var e=controls.create("bootstrap.modal",{style:"z-index:1200;",disabled:!0});e.close=e.header.add("button`close","×",{type:"button"}),e.header.add("h4`modal-title","Publish on GitHub");var t=e.body.add("form:bootstrap.Form");return t._add("bootstrap.FormGroup",function(t){t.add("bootstrap.ControlLabel","Username:"),e.user=t.add("bootstrap.ControlInput")})._add("bootstrap.FormGroup",function(t){t._add("bootstrap.ControlLabel","Repository:"),e.repo=t.add("bootstrap.ControlInput")})._add("bootstrap.FormGroup",function(t){t._add("bootstrap.ControlLabel","Branch:"),e.branch=t.add("bootstrap.ControlInput")})._add("bootstrap.FormGroup",function(t){t._add("bootstrap.ControlLabel","Path in repository:"),e.path=t.add("bootstrap.ControlInput")})._add("bootstrap.FormGroup",function(t){t._add("bootstrap.ControlLabel","Personal access token or password:"),e.apikey=t.add("bootstrap.ControlInput")}),e.OK=e.footer.add("bootstrap.Button#primary","OK"),e.Cancel=e.footer.add("bootstrap.Button","Cancel"),e.modeCheckbox=t.add("bootstrap.FormGroup").add("bootstrap.ControlCheckbox`martop20",{$text:"Compile to html"}),e.ref0=t.add("bootstrap.FormGroup").add("a`martop20",{target:"repo"}),setInterval(function(){var t=e.user.value,n=e.repo.value;if(t&&n){var o="https://github.com/"+t+"/"+n;e.ref0._text(o)._attr("href",o)}},977),e}this.getSettings=function(t,n){var o=p.github||(p.github={}),i=o.user,r=o.repo,a=o.branch,s=l({fileName:f.github_path}),c=sessionStorage.getItem("github-apikey")||"";s.fileName||(s=l({fileName:decodeURIComponent(location.pathname).split("/").slice(2).join("/")})),i=i||location.host.split(".")[0],r=r||decodeURIComponent(location.pathname).split("/")[1],a=a||"gh-pages";var d=$DOC.cbody.github_modal;d||(d=$DOC.cbody.github_modal=$DOC.cbody.add(e()),d.createElement(),d.close.listen("click",function(){$(d.element).modal("hide"),n&&n(!1)}),d.OK.listen("click",function(){var e=p.github||(p.github={});e.user=d.user.value||"",sessionStorage.setItem("github-apikey",d.apikey.value||""),e.repo=d.repo.value||"",e.branch=d.branch.value||"gh-pages",p.raise(),f.github_path=d.path.value||"",f.raise(),d.callback&&d.callback(e.user&&e.repo&&e.branch&&f.github_path&&d.apikey.value)}),d.Cancel.listen("click",function(){$(d.element).modal("hide"),d.callback&&d.callback(!1)})),d.user.value=i,d.apikey.value=c,d.repo.value=r,d.branch.value=a,d.path.value=s.fileName,d.modeCheckbox.checked=m.fileMode,d.callback=n,$(d.element).modal("show")},this.publish=function(){var e=p.github||(p.github={}),t=new window.github_api({username:e.user,password:sessionStorage.getItem("github-apikey"),auth:"basic"}),n=t.getRepo(e.user,e.repo),o=g.buildHTML(),i=l({fileName:f.github_path}),r=$DOC.cbody.github_modal;if(r.modeCheckbox.checked){var a=x.grabHTML();n.write(e.branch,i.mwFileName,o,"---",function(t){t?console.log(t):setTimeout(function(){n.write(e.branch,i.fileName,a,"---",function(t){t?setTimeout(function(){n.write(e.branch,i.fileName,a,"---",function(e){e?console.log(e):$(r&&r.element).modal("hide")})},3e3):$(r&&r.element).modal("hide")})},3e3)})}else n.write(e.branch,i.fileName,o,"---",function(t){t?console.log(t):setTimeout(function(){n.removeFile(e.branch,i.mwFileName,function(t){t&&404!==t?setTimeout(function(){n.removeFile(e.branch,i.mwFileName,function(e){e&&404!==e?console.log(e):$(r&&r.element).modal("hide")})},3e3):$(r&&r.element).modal("hide")})},3e3)})}}function l(e){var t=e.fileName,n=e.mwFileName;return t?".html"!==t.slice(-5)?(e.fileName+=".html",l(e)):(".mw.html"===t.slice(-8)?(t=t.slice(0,t.length-8),n=t+".mw.html",t+=".html"):n=t.slice(0,t.length-5)+".mw.html",e.fileName=t,e.mwFileName=n,e):e}function c(){this.environment=0,this.writable=0,this.errorState=-1,this.mwHtml="",this.fileMode=0;var e=location.url,t=e.lastIndexOf("/"),n=e.lastIndexOf("\\\\");t=n>t?n:t,this.path=e.slice(0,t+1),this.fileName=e.slice(t+1),l(this);var o=this;if("undefined"!=typeof nwDispatcher&&"file:"===location.protocol){this.environment=1,this.writable=!0;var i=require("fs"),r=this.path.slice(8)+this.mwFileName,a=this.path.slice(8)+this.fileName;try{i.existsSync(r)?(this.fileMode=1,this.mwHtml=i.readFileSync(r).toString().replace(/\\r/g,"")):this.mwHtml=i.readFileSync(a).toString().replace(/\\r/g,""),this.errorState=0}catch(s){this.errorState=1}this.write=function(e,t){if(this.writable&&!this.errorState)try{if(this.fileMode)i.writeFileSync(r,e),i.writeFileSync(a,t);else{i.writeFileSync(a,e);try{i.unlinkSync(r)}catch(n){}}return a}catch(n){console.log(n)}},this.writeTo=function(e,t,n){if(this.writable&&!this.errorState)try{var o=l({fileName:e}),r=this.path.slice(8)+o.mwFileName,a=this.path.slice(8)+o.fileName;if(this.fileMode)i.writeFileSync(r,t),i.writeFileSync(a,n);else{i.writeFileSync(a,t);try{i.unlinkSync(r)}catch(s){}}return a}catch(s){console.log(s)}}}else{"file:"===location.protocol&&(this.errorState=1);var c=this;$.ajax({url:o.path+o.mwFileName,type:"GET",dataType:"html",async:0}).done(function(e){c.mwHtml=e.replace(/\\r/g,""),c.fileMode=1}).fail(function(){$.ajax({url:o.path+o.fileName,type:"GET",dataType:"html",async:0}).done(function(e){c.mwHtml=e.replace(/\\r/g,"")}).fail(function(){this.errorState=1})})}}function d(e,t){function n(){u(\'<h4><b class="glyphicon glyphicon-warning-sign"> </b>Editor loading error</h4>Your browser does not supported and can not be used to edit documents. Please use Firefox, Chrome, Opera or Safari.\')}var o,i,r=this;this.errorState=-1;for(var a in e){var s=e[a];s.listen(function(){this.modified=!0})}if(O.push(function(){for(var t in e){var n=e[t];n.modified&&r.write()}}),window.indexedDB){try{var l=window.indexedDB.open("markdown-webdocs.editor.db.1",1);l.onsuccess=function(e){o=e.target.result,t()},l.onupgradeneeded=function(n){o=n.target.result;for(var i in e)o.createObjectStore(i,{keyPath:"key"});t()},l.onerror=function(e){u(\'<h4><b class="glyphicon glyphicon-warning-sign"> </b>Editor loading error</h4>Database error. Please try using another browser for editing the document.\'),console.log(e)},l.onblocked=function(e){u(\'<h4><b class="glyphicon glyphicon-warning-sign"> </b>Editor loading error</h4>Database blocked\'),console.log(e)}}catch(c){return n(),void 0}r.restore=function(t){try{var n=o.transaction(Object.keys(e),"readonly"),i=0,a=0;for(var s in e){var l=e[s],c=n.objectStore(s).get(l.key);i++,c.onsuccess=function(n){l=e[n.target.source.name],l.fromJSON(n.target.result),l.modified=!1,a++,a===i&&(r.errorState=0,t&&t())},c.onerror=function(e){console.log(e),this.errorState=1}}}catch(d){console.log(d),this.errorState=1}},r.write=function(){if(!this.errorState)try{var t=o.transaction(Object.keys(e),"readwrite");for(var n in e){var i=e[n];if(i.modified){var r=t.objectStore(n);if(i.delete)delete i.delete,r.delete(i.key);else{var a=r.put(i.toJSON());a.onsuccess=function(){},a.onerror=function(e){console.log(e)}}i.modified=!1,i.selected&&localStorage&&localStorage.setItem("default selected page",i.selected)}}}catch(s){console.log(s)}}}else{if(!window.openDatabase)return n(),void 0;try{var i=window.openDatabase("markdown-webdocs.editor.db.1","1.0","markdow webdocs editor",0);if(!i)return n(),void 0;i.transaction(function(t){for(var o in e)t.executeSql("CREATE TABLE IF NOT EXISTS "+o+" (key TEXT NOT NULL PRIMARY KEY, value TEXT)",[],null,n)},n,t)}catch(c){return n(),void 0}r.restore=function(t){try{i.transaction(function(n){var o=0,i=0;for(var a in e){var s=e[a];n.executeSql("SELECT value FROM "+a+" WHERE key = ? LIMIT 1",[s.key],function(e,n){if(n.rows.length){try{s.fromJSON(JSON.parse(n.rows.item(0).value))}catch(a){s.fromJSON({})}s.modified=!1}i++,i===o&&(r.errorState=0,t&&t())},function(e){console.log(e)})}},function(){console.log(event)},function(){})}catch(n){}},r.write=function(){if(!errorState)try{i.transaction(function(t){for(var n in e){var o=e[n];o.delete?(delete o.delete,t.executeSql("DELETE FROM "+n+" WHERE key = ?",[o.key],function(){},function(e){console.log(e)})):t.executeSql("INSERT OR REPLACE INTO "+n+" (key, value) VALUES (?, ?)",[o.key,JSON.stringify(o)],function(){},function(e){console.log(e)})}},function(){console.log(event)},function(){}),modified=!1}catch(t){console.log(t)}}}r.onReady=function(e){setTimeout(function(){e()},400)}}function u(e){$DOC.cbody.attachAll().add("div",{style:"position:fixed; left:0; top:0; width:100%; height:100%; background-color:white; opacity:0.9; z-index:1201;"}).createElement(),$DOC.cbody.add("alert:div.mar20 alert alert-warning col1-sm-offset-3 col-sm-6",{$text:e,style:"position:fixed; left:25px; top:25px; z-index:1202;"}).createElement()}var h,f,p,m,g,b,v,w,y,T,S,x,k,O=[],N=[];$(window).load(function(){location.url=decodeURI(location.href.split("?")[0]),f=controls.create("DataObject"),f.key=location.url,f.fromJSON=function(e){this.selected=e&&e.selected,this.sourceMw=e&&e.sourceMw,this.editMw=e&&e.editMw,this.history=e&&e.history,this.github_path=e&&e.github_path,Array.isArray(this.history)||(this.history=[])},f.toJSON=function(){return{key:this.key,selected:this.selected,sourceMw:this.sourceMw,editMw:this.editMw,history:this.history,github_path:this.github_path}},p=controls.create("DataObject");var t=document.createElement("script");t.setAttribute("src",$DOC.root),p.key=t.src.split("?")[0],p.fromJSON=function(e){this.github=e&&e.github},p.toJSON=function(){return{key:this.key,github:this.github}},h=new d({drafts:f,settings:p},function(){h.restore(e)})}),r.prototype=controls.create("DataObject")}window.top!==window.self||window["mw-document-editor"]||(window["mw-document-editor"]=!0,"undefined"!=typeof $ENV?e():(window.defercqueue||(window.defercqueue=[]),window.defercqueue.push(e)))}(),function(){function e(e){var t,n,o,i,r,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",d=0;do t=e.charCodeAt(d++),n=e.charCodeAt(d++),o=e.charCodeAt(d++),i=t>>2,r=(3&t)<<4|n>>4,a=(15&n)<<2|o>>6,s=63&o,isNaN(n)?a=s=64:isNaN(o)&&(s=64),c=c+l.charAt(i)+l.charAt(r)+l.charAt(a)+l.charAt(s);while(d<e.length);return c}var t="https://api.github.com",n=function(o){function i(n,i,r,a,s,l){function c(){var e=i.indexOf("//")>=0?i:t+i;return e+(/\\?/.test(e)?"&":"?")+(new Date).getTime()}var d=new XMLHttpRequest;return s||(d.dataType="json"),d.open(n,c(),!l),l||(d.onreadystatechange=function(){4===this.readyState&&(this.status>=200&&this.status<300||304===this.status?a(null,s?this.responseText:this.responseText?JSON.parse(this.responseText):!0,this):a({path:i,request:this,error:this.status}))}),d.setRequestHeader("Accept","application/vnd.github.raw+json"),d.setRequestHeader("Content-Type","application/json;charset=UTF-8"),(o.token||o.username&&o.password)&&d.setRequestHeader("Authorization",o.token?"token "+o.token:"Basic "+e(o.username+":"+o.password)),r?d.send(JSON.stringify(r)):d.send(),l?d.response:void 0}function r(e,t){var n=[];!function o(){i("GET",e,null,function(i,r,a){if(i)return t(i);n.push.apply(n,r);var s=(a.getResponseHeader("link")||"").split(/\\s*,\\s*/g),l=_.find(s,function(e){return/rel="next"/.test(e)});l&&(l=(/<(.*)>/.exec(l)||[])[1]),l?(e=l,o()):t(i,n)})}()}n.User=function(){this.repos=function(e){r("/user/repos?type=all&per_page=1000&sort=updated",function(t,n){e(t,n)})},this.userRepos=function(e,t){r("/users/"+e+"/repos?type=all&per_page=1000&sort=updated",function(e,n){t(e,n)})},this.orgRepos=function(e,t){r("/orgs/"+e+"/repos?type=all&&page_num=1000&sort=updated&direction=desc",function(e,n){t(e,n)})}},n.Repository=function(e){function t(e,t){return e===s.branch&&s.sha?t(null,s.sha):(r.getRef("heads/"+e,function(n,o){s.branch=e,s.sha=o,t(n,o)}),void 0)}var n=e.name,o=e.user,r=this,a="/repos/"+o+"/"+n,s={branch:null,sha:null};this.getRef=function(e,t){i("GET",a+"/git/refs/"+e,null,function(e,n){return e?t(e):(t(null,n.object.sha),void 0)})},this.createRef=function(e,t){i("POST",a+"/git/refs",e,t)},this.deleteRef=function(t,n){i("DELETE",a+"/git/refs/"+t,e,n)},this.compare=function(e,t,n){i("GET",a+"/compare/"+e+"..."+t,null,function(e,t){return e?n(e):(n(null,t),void 0)})},this.listBranches=function(e){i("GET",a+"/git/refs/heads",null,function(t,n){return t?e(t):(e(null,_.map(n,function(e){return _.last(e.ref.split("/"))})),void 0)})},this.getBlob=function(e,t){i("GET",a+"/git/blobs/"+e,null,t,"raw")},this.getSha=function(e,t,n){return""===t?r.getRef("heads/"+e,n):(r.getTree(e+"?recursive=true",function(e,o){if(e)return n(e);var i=_.select(o,function(e){return e.path===t})[0];n(null,i?i.sha:null)}),void 0)},this.getTree=function(e,t){i("GET",a+"/git/trees/"+e,null,function(e,n){return e?t(e):(t(null,n.tree),void 0)})},this.postBlob=function(e,t){"string"==typeof e&&(e={content:e,encoding:"utf-8"}),i("POST",a+"/git/blobs",e,function(e,n){return e?t(e):(t(null,n.sha),void 0)})},this.updateTree=function(e,t,n,o){var r={base_tree:e,tree:[{path:t,mode:"100644",type:"blob",sha:n}]};i("POST",a+"/git/trees",r,function(e,t){return e?o(e):(o(null,t.sha),void 0)})},this.postTree=function(e,t){i("POST",a+"/git/trees",{tree:e},function(e,n){return e?t(e):(t(null,n.sha),void 0)})},this.commit=function(t,n,o,r){var l={message:o,author:{name:e.username},parents:[t],tree:n};i("POST",a+"/git/commits",l,function(e,t){return s.sha=t&&t.sha,e?r(e):(r(null,t&&t.sha),void 0)})},this.updateHead=function(e,t,n){i("PATCH",a+"/git/refs/heads/"+e,{sha:t},function(e){n(e)})},this.show=function(e){i("GET",a,null,e)},this.contents=function(e,t,n,o){return i("GET",a+"/contents?ref="+e+(t?"&path="+t:""),null,n,"raw",o)},this.fork=function(e){i("POST",a+"/forks",null,e)},this.branch=function(e,t,n){2===arguments.length&&"function"==typeof arguments[1]&&(n=t,t=e,e="master"),this.getRef("heads/"+e,function(e,o){return e&&n?n(e):(r.createRef({ref:"refs/heads/"+t,sha:o},n),void 0)})},this.createPullRequest=function(e,t){i("POST",a+"/pulls",e,t)},this.listHooks=function(e){i("GET",a+"/hooks",null,e)},this.getHook=function(e,t){i("GET",a+"/hooks/"+e,null,t)},this.createHook=function(e,t){i("POST",a+"/hooks",e,t)},this.editHook=function(e,t,n){i("PATCH",a+"/hooks/"+e,t,n)},this.deleteHook=function(e,t){i("DELETE",a+"/hooks/"+e,null,t)},this.read=function(e,t,n){r.getSha(e,t,function(e,t){return t?(r.getBlob(t,function(e,o){n(e,o,t)}),void 0):n("not found",null)})},this.remove=function(e,n,o){t(e,function(t,i){r.getTree(i+"?recursive=true",function(t,a){var s=a.filter(function(e){return e.path!==n});s.forEach(function(e){"tree"===e.type&&delete e.sha}),a.length===s.length&&o(404),r.postTree(s,function(t,a){r.commit(i,a,"Deleted "+n,function(t,n){r.updateHead(e,n,function(e){o(e)})})})})})},this.removeFile=function(e,n,o){t(e,function(t,s){r.getTree(s+"?recursive=true",function(t,r){r&&r.some(function(t){if(t.path===n&&"blob"===t.type){var r={path:t.path,message:"---",sha:t.sha,branch:e};return i("DELETE",a+"/contents/"+n,r,function(e,t){return e?o(e):(o(null,t.sha),void 0)}),!0}})||o(null)})})},this.move=function(e,n,o,i){t(e,function(t,a){r.getTree(a+"?recursive=true",function(t,s){_.each(s,function(e){e.path===n&&(e.path=o),"tree"===e.type&&delete e.sha}),r.postTree(s,function(t,o){r.commit(a,o,"Deleted "+n,function(t,n){r.updateHead(e,n,function(e){i(e)})})})})})},this.write=function(e,n,o,i,a){t(e,function(t,s){return t?a(t):(r.postBlob(o,function(t,o){return t?a(t):(r.updateTree(s,n,o,function(t,n){return t?a(t):(r.commit(s,n,i,function(t,n){return t?a(t):(r.updateHead(e,n,a),void 0)}),void 0)}),void 0)}),void 0)})},this.getCommits=function(e,t){e=e||{};var n=a+"/commits",o=[];if(e.sha&&o.push("sha="+encodeURIComponent(e.sha)),e.path&&o.push("path="+encodeURIComponent(e.path)),e.since){var r=e.since;r.constructor===Date&&(r=r.toISOString()),o.push("since="+encodeURIComponent(r))}if(e.until){var s=e.until;s.constructor===Date&&(s=s.toISOString()),o.push("until="+encodeURIComponent(s))}o.length>0&&(n+="?"+o.join("&")),i("GET",n,null,t)}},this.getRepo=function(e,t){return new n.Repository({user:e,name:t})},this.getUser=function(){return new n.User}};window.github_api=n}();'),window.addEventListener("keydown",function(t){if(123===t.keyCode&&!t.altKey&&t.ctrlKey)if($OPT.edit_mode){var e=location.href,n=e.indexOf("?edit");
0>n&&(n=e.indexOf("&edit")),n>=0&&(window.location=e.slice(0,n)+e.slice(n+5))}else window.location=(window.location.protocol||"")+"//"+window.location.host+window.location.pathname+"?"+window.location.search+(window.location.search?"&edit":"edit")}))}()},{"./temp/bootstrap.controls.js":4,"./temp/marked":5,controls:6,dot:3}],2:[function(t,e){!function(){"use strict";function t(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},e=/&(?!#?\w+;)|<|>|"|'|\//g;return function(){return this?this.replace(e,function(e){return t[e]||e}):this}}function n(t,e,i){return("string"==typeof e?e:e.toString()).replace(t.define||s,function(e,n,r,o){return 0===n.indexOf("def.")&&(n=n.substring(4)),n in i||(":"===r?(t.defineParams&&o.replace(t.defineParams,function(t,e,r){i[n]={arg:e,text:r}}),n in i||(i[n]=o)):new Function("def","def['"+n+"']="+o)(i)),""}).replace(t.use||s,function(e,r){t.useParams&&(r=r.replace(t.useParams,function(t,e,n,r){if(i[n]&&i[n].arg&&r){var o=(n+":"+r).replace(/'|\\/g,"_");return i.__exp=i.__exp||{},i.__exp[o]=i[n].text.replace(new RegExp("(^|[^\\w$])"+i[n].arg+"([^\\w$])","g"),"$1"+r+"$2"),e+"def.__exp['"+o+"']"}}));var o=new Function("def","return "+r)(i);return o?n(t,o,i):o})}function i(t){return t.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var r={version:"1.0.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:0,append:!0,selfcontained:!1},template:void 0,compile:void 0};"undefined"!=typeof e&&e.exports?e.exports=r:"function"==typeof define&&define.amd?define(function(){return r}):this.doT=r,String.prototype.encodeHTML=t();var o={append:{start:"'+(",end:")+'",endencode:"||'').toString().encodeHTML()+'"},split:{start:"';out+=(",end:");out+='",endencode:"||'').toString().encodeHTML();out+='"}},s=/$^/;r.template=function(e,a,l){a=a||r.templateSettings;var c,u,p=a.append?o.append:o.split,d=0,f=a.use||a.define?n(a,e,l||{}):e;f=("var out='"+(a.strip?f.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):f).replace(/'|\\/g,"\\$&").replace(a.interpolate||s,function(t,e){return p.start+i(e)+p.end}).replace(a.encode||s,function(t,e){return c=!0,p.start+i(e)+p.endencode}).replace(a.conditional||s,function(t,e,n){return e?n?"';}else if("+i(n)+"){out+='":"';}else{out+='":n?"';if("+i(n)+"){out+='":"';}out+='"}).replace(a.iterate||s,function(t,e,n,r){return e?(d+=1,u=r||"i"+d,e=i(e),"';var arr"+d+"="+e+";if(arr"+d+"){var "+n+","+u+"=-1,l"+d+"=arr"+d+".length-1;while("+u+"<l"+d+"){"+n+"=arr"+d+"["+u+"+=1];out+='"):"';} } out+='"}).replace(a.evaluate||s,function(t,e){return"';"+i(e)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|\}|^|\{)out\+='';/g,"$1").replace(/\+''/g,"").replace(/(\s|;|\}|^|\{)out\+=''\+/g,"$1out+="),c&&a.selfcontained&&(f="String.prototype.encodeHTML=("+t.toString()+"());"+f);try{return new Function(a.varname,f)}catch(h){throw"undefined"!=typeof console&&console.log("Could not create a template function: "+f),h}},r.compile=function(t,e){return r.template(t,null,e)}}()},{}],3:[function(t,e){function n(t){this.__path=t.path||"./","/"!==this.__path[this.__path.length-1]&&(this.__path+="/"),this.__destination=t.destination||this.__path,"/"!==this.__destination[this.__destination.length-1]&&(this.__destination+="/"),this.__global=t.global||"window.render",this.__rendermodule=t.rendermodule||{},this.__settings=t.templateSettings?r(t.templateSettings,r(a.templateSettings)):void 0,this.__includes={}}function i(t){for(var e="",n=0;n<t.length;n++)e+="itself."+t[n]+"="+t[n]+";";return e}function r(t,e){e=e||{};for(var n in t)e[n]=t[n];return e}function o(t){var e=s.readFileSync(t);return e?e.toString():(console.log("problems with "+t),void 0)}var s=t("fs"),a=e.exports=t("./doT");a.process=function(t){return new n(t).compileAll()},n.prototype.compileToFile=function(t,e,n){n=n||{};var o,l=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf(".")),c=r(this.__includes,r(n)),u=this.__settings||a.templateSettings,p=r(u),d=a.template(e,u,c),f=[],h="";for(var m in c)c[m]!==n[m]&&c[m]!==this.__includes[m]&&(o=void 0,"string"==typeof c[m]?o=a.template(c[m],u,c):"function"==typeof c[m]?o=c[m]:c[m].arg&&(p.varname=c[m].arg,o=a.template(c[m].text,p,c)),o&&(h+=o.toString().replace("anonymous",m),f.push(m)));h+=d.toString().replace("anonymous",l),s.writeFileSync(t,"(function(){"+h+"var itself="+l+";"+i(f)+"if(typeof module!=='undefined' && module.exports) module.exports=itself;else if(typeof define==='function')define(function(){return itself;});else {"+this.__global+"="+this.__global+"||{};"+this.__global+"['"+l+"']=itself;}}());")},n.prototype.compilePath=function(t){var e=o(t);return e?a.template(e,this.__settings||a.templateSettings,r(this.__includes)):void 0},n.prototype.compileAll=function(){console.log("Compiling all doT templates...");var t,e,n,i=this.__path,r=s.readdirSync(i);for(t=0,e=r.length;e>t;t++)n=r[t],/\.def(\.dot|\.jst)?$/.test(n)&&(console.log("Loaded def "+n),this.__includes[n.substring(0,n.indexOf("."))]=o(i+n));for(t=0,e=r.length;e>t;t++)n=r[t],/\.dot(\.def|\.jst)?$/.test(n)&&(console.log("Compiling "+n+" to function"),this.__rendermodule[n.substring(0,n.indexOf("."))]=this.compilePath(i+n)),/\.jst(\.dot|\.def)?$/.test(n)&&(console.log("Compiling "+n+" to file"),this.compileToFile(this.__destination+n.substring(0,n.indexOf("."))+".js",o(i+n)));return this.__rendermodule}},{"./doT":2,fs:7}],4:[function(t,e){!function(){"use strict";function n(t){function e(t,n){this.initialize("bootstrap.Label",t,n,e.template).listen_("type",function(){this.class("label label-"+this.getControlStyle(),"label-default label-link label-primary label-success label-info label-warning label-danger")})}function n(t,e){this.initialize("bootstrap.Panel",t,e),this.body=this.add("div",{"class":"panel-body"}),Object.defineProperty(this,"header",{enumerable:!0,get:function(){var t=this._header;return t||(t=this.insert(0,"div",{"class":"panel-heading panel-title"}),t._name="header",this._header=t),t}}),Object.defineProperty(this,"footer",{enumerable:!0,get:function(){var t=this._footer;return t||(t=this.add("div",{"class":"panel-footer"}),t._name="header",this._footer=t),t}}),this.listen_("type",function(){this.class("panel panel-"+this.getControlStyle(),"panel-default panel-link panel-primary panel-success panel-info panel-warning panel-danger")}),this.text=function(t){return this.body.text(t)},e.$text&&(this.body.text(e.$text),e.$text=void 0)}function i(t,e){this.initialize("bootstrap.DropdownItem",t,e,i.template)}function r(t,e){this.initialize("bootstrap.DividerItem",t,e,r.template).class("divider")}function o(t,e){this.initialize("bootstrap.DropdownLink",t,e,o.template).class("dropdown")}function s(t,e){this.initialize("bootstrap.ToggleBtn",t,e,s.template).class("btn dropdown-toggle")}function a(){this.class("btn btn-"+((this.getControlStyle()||"")+" "+(k[this.getControlSize()]||"")).trim(),this.attributes.class?"btn-default btn-primary btn-success btn-info btn-warning btn-danger btn-link btn-xs btn-sm btn-lg":null)}function l(t,e){this.initialize("bootstrap.Button",t,e,l.template).listen_("type",a)}function c(t,e){this.initialize("bootstrap.SplitButton",t,e,c.template)._class("btn-group")._add("button:bootstrap.Button",{$icon:e.$icon})._add("toggle:bootstrap.Button",{"class":"dropdown-toggle","data-toggle":"dropdown",$text:'<span class="caret"></span>'})._add("items:ul",{"class":"dropdown-menu"}).listen_("type",function(){var t="btn btn-"+((this.getControlStyle()||"")+" "+(k[this.getControlStyle()]||"")).trim();this.button.class(t),this.toggle.class(t)})}function u(t,e){this.initialize("bootstrap.BtnGroup",t,e,u.template).class("btn-group")}function p(t,e){this.initialize("bootstrap.TabPanelHeader",t,e,p.template).class("nav nav-tabs tabpanel-header")}function d(t,e){this.initialize("bootstrap.TabHeader",t,e,d.template).class("tab-header")}function f(t,e){this.initialize("bootstrap.TabPanelBody",t,e).class("tab-content tabpanel-body")}function h(t,e){this.initialize("bootstrap.TabPage",t,e).class("tab-pane fade")}function m(t,e){this.initialize("bootstrap.Form",t,e,m.template).attr("role","form")}function g(t,e){this.initialize("bootstrap.FormGroup",t,e).class("form-group")}function v(t,e){this.initialize("bootstrap.Modal",t,e,v.template)._class("modal fade")._attr("role","dialog")._add("header:div",{"class":"modal-header"})._add("body:div",{"class":"modal-body"})._add("footer:div",{"class":"modal-footer"}),e.hasOwnProperty("tabindex")||(e.tabindex=-1),e.hasOwnProperty("aria-hidden")||(e["aria-hidden"]=!0)}function y(t,e){this.initialize("bootstrap.ControlLabel",t,e,y.template).class("control-label")}function b(t,e){this.initialize("bootstrap.ControlCheckbox",t,e,b.template)._class("checkbox").add("input:input",e.$text,{type:"checkbox",checked:e.$checked}).listen_("change",function(){this.attributes.checked=this.element.checked},!0).listen_("element",function(t){t&&(t.checked=this.attributes.checked||"")}),Object.defineProperty(this,"checked",{get:function(){return this.input.attributes.checked},set:function(t){t=!!t;var e=this.input._element;this.input.attributes.checked=t,e&&(e.checked=t)}}),e.$checked=void 0,e.$text=void 0}function x(e,n){var i=new t["controls.input"](e,n)._class("form-control");return i.__type="bootstrap.ControlInput",i}function w(e,n){var i=new t["controls.select"](e,n)._class("form-control")._style("display:inline-block;");return i.__type="bootstrap.ControlSelect",i}var C=this;if(C.VERSION="0.6.15",!t)throw new TypeError("controls.bootstrap.js: controls.js not found!");if(t.bootstrap&&t.bootstrap.VERSION>=C.VERSION)return t.bootstrap;t.bootstrap=this;var _=function(){function e(){}return e.prototype=t.control_prototype,new e}();C.control_prototype=_,_.icon=function(t){return 0===arguments.length?this.attributes.$icon:(this.attributes.$icon=t,this._element&&this.refresh(),t)},_._icon=function(t){return this.icon(t),this},_.getControlStyle=function(){var t=this.parameters;return t.style||t["/style"]||t.info&&"info"||t.link&&"link"||t.success&&"success"||t.primary&&"primary"||t.warning&&"warning"||t.danger&&"danger"||"default"};var $={"xtra-small":"xtra-small",xs:"xtra-small","btn-xs":"xtra-small","-2":"xtra-small",small:"small",sm:"small","btn-sm":"small","-1":"small","default":"","":"",0:"",large:"large",lg:"large","btn-lg":"large",1:"large","xtra-large":"xtra-large",xl:"xtra-large",2:"xtra-large"};_.getControlSize=function(){var t=this.parameters,e=$[t.size||t["/size"]];if(!e)for(var n in t)e||(e=$[n]);return e||""},e.prototype=_,e.template=function(t){return"<span"+t.printAttributes()+">"+(t.attributes.$text||"")+"</span>"},t.typeRegister("bootstrap.Label",e),n.prototype=_,t.typeRegister("bootstrap.Panel",n),i.prototype=_,i.template=function(t){var e='<li id="'+t.id+'"><a'+t.printAttributes("-id")+">",n=t.attributes;return n.$icon&&(e+='<span class="glyphicon glyphicon-'+n.$icon+'"></span> '),e+(t.attributes.$text||"")+"</a></li>"},t.typeRegister("bootstrap.DropdownItem",i),r.prototype=_,r.template=function(t){return"<li"+t.printAttributes()+"></li>"},t.typeRegister("bootstrap.DividerItem",r),o.prototype=_,o.template=function(t){var e="<div"+t.printAttributes()+'><a class="dropdown-toggle" data-toggle="dropdown" href="#">',n=t.attributes,i=t.controls;if(n.$icon&&(e+='<span class="glyphicon glyphicon-'+n.$icon+'"></span> '),e+=(t.attributes.$text||"")+"</a>",i.length){e+='<ul class="dropdown-menu">';for(var r=0,o=i.length;o>r;r++)e+=i[r].wrappedHTML();e+="</ul>"}return e+"</div>"},t.typeRegister("bootstrap.DropdownLink",o),s.prototype=_,s.template=function(t){var e="<a"+t.printAttributes()+' data-toggle="dropdown" href="#">',n=t.attributes,i=t.controls;if(n.$icon&&(e+='<span class="glyphicon glyphicon-'+n.$icon+'"></span> '),(n.caret||n.Caret)&&(e+='<span class="caret"></span>'),e+=(t.attributes.$text||"")+"</a>",i.length){e+='<ul class="dropdown-menu">';for(var r=0,o=i.length;o>r;r++)e+=i[r].wrappedHTML();e+="</ul>"}return e},t.typeRegister("bootstrap.ToggleBtn",s);var k={"xtra-small":"btn-xs",small:"btn-sm",large:"btn-lg"};l.prototype=_,l.template=function(t){var e=t.attributes;return'<button type="button"'+t.printAttributes()+">"+(e.$icon?'<span class="glyphicon glyphicon-'+e.$icon+'"></span>':"")+(e.$icon&&e.$text?" ":"")+(e.$text||"")+"</button>"},t.typeRegister("bootstrap.Button",l),c.prototype=_,t.typeRegister("bootstrap.SplitButton",c),u.prototype=_,t.typeRegister("bootstrap.BtnGroup",u),p.prototype=_,p.template=function(t){return"<ul"+t.printAttributes()+">"+(t.attributes.$text||"")+t.printControls()+"</ul>"},t.typeRegister("bootstrap.TabPanelHeader",p),d.prototype=_,d.template=function(t){var e=t.attributes;return"<li"+t.printAttributes()+'><a href="'+(e.$href||"")+'" data-toggle="tab">'+(e.$icon?'<span class="glyphicon glyphicon-'+e.$icon+'"></span>'+(e.$text?" ":""):"")+(e.$text||"")+"</a></li>"},t.typeRegister("bootstrap.TabHeader",d),f.prototype=_,t.typeRegister("bootstrap.TabPanelBody",f),h.prototype=_,t.typeRegister("bootstrap.TabPage",h),m.prototype=_,m.template=function(t){return"<form"+t.printAttributes()+">"+t.printControls()+"</form>"},t.typeRegister("bootstrap.Form",m),g.prototype=_,t.typeRegister("bootstrap.FormGroup",g),v.prototype=_,v.template=function(t){return"<div"+t.printAttributes()+'><div class="modal-dialog"><div class="modal-content">'+t.printControls()+"</div></div></div>"},t.typeRegister("bootstrap.Modal",v),y.prototype=_,y.template=function(t){return"<label"+t.printAttributes()+">"+(t.attributes.$text||"")+"</label>"},t.typeRegister("bootstrap.ControlLabel",y),b.prototype=_,b.template=function(t){return"<div"+t.printAttributes()+"><label>"+t.printControls()+"</label></div>"},t.typeRegister("bootstrap.ControlCheckbox",b),t.factoryRegister("bootstrap.ControlInput",x),t.factoryRegister("bootstrap.ControlSelect",w)}"undefined"!=typeof e&&e.exports&&(e.exports=new n(t("controls"))),"function"==typeof define&&define.amd&&define(["controls"],function(t){return new n(t)}),"undefined"!=typeof window&&new n(window.controls)}()},{controls:6}],5:[function(t,e,n){var i="undefined"!=typeof self?self:"undefined"!=typeof window?window:{};(function(){function t(t){this.tokens=[],this.tokens.links={},this.options=t||c.defaults,this.rules=u.normal,this.options.gfm&&(this.rules=this.options.tables?u.tables:u.gfm)}function i(t,e){if(this.options=e||c.defaults,this.links=t,this.rules=p.normal,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.rules=this.options.breaks?p.breaks:p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function r(t){this.tokens=[],this.token=null,this.options=t||c.defaults}function o(t,e){return t.replace(e?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(t,e){return t=t.source,e=e||"",function n(i,r){return i?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),t=t.replace(i,r),n):new RegExp(t,e)}}function a(){}function l(t){for(var e,n,i=1;i<arguments.length;i++){e=arguments[i];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}function c(e,n,i){if(i||"function"==typeof n){i||(i=n,n=null),n=l({},c.defaults,n||{});var s,a,u=n.highlight,p=0;try{s=t.lex(e,n)}catch(d){return i(d)}a=s.length;var f=function(){var t,e;try{t=r.parse(s,n)}catch(o){e=o}return n.highlight=u,e?i(e):i(null,t)};if(!u||u.length<3)return f();if(delete n.highlight,!a)return f();for(;p<s.length;p++)!function(t){return"code"!==t.type?--a||f():u(t.text,t.lang,function(e,n){return null==n||n===t.text?--a||f():(t.text=n,t.escaped=!0,--a||f(),void 0)})}(s[p])}else try{return n&&(n=l({},c.defaults,n)),r.parse(t.lex(e,n),n)}catch(d){if(d.message+="\nPlease report this to https://github.com/chjj/marked.",(n||c.defaults).silent)return"<p>An error occured:</p><pre>"+o(d.message+"",!0)+"</pre>";throw d}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:a,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:a,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:a,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=s(u.item,"gm")(/bull/g,u.bullet)(),u.list=s(u.list)(/bull/g,u.bullet)("hr",/\n+(?=(?: *[-*_]){3,} *(?:\n+|$))/)(),u._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|@)\\b",u.html=s(u.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,u._tag)(),u.paragraph=s(u.paragraph)("hr",u.hr)("heading",u.heading)("lheading",u.lheading)("blockquote",u.blockquote)("tag","<"+u._tag)("def",u.def)(),u.normal=l({},u),u.gfm=l({},u.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/}),u.gfm.paragraph=s(u.paragraph)("(?!","(?!"+u.gfm.fences.source.replace("\\1","\\2")+"|"+u.list.source.replace("\\1","\\3")+"|")(),u.tables=l({},u.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=u,t.lex=function(e,n){var i=new t(n);return i.lex(e)},t.prototype.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(t,!0)},t.prototype.token=function(t,e){for(var n,i,r,o,s,a,l,c,p,t=t.replace(/^ +$/gm,"");t;)if((r=this.rules.newline.exec(t))&&(t=t.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(t))t=t.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:r.replace(/\n+$/,"")});else if(r=this.rules.fences.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"code",lang:r[2],text:r[3]});else if(r=this.rules.heading.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if(e&&(r=this.rules.nptable.exec(t))){for(t=t.substring(r[0].length),a={type:"table",header:r[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3].replace(/\n$/,"").split("\n")},c=0;c<a.align.length;c++)a.align[c]=/^ *-+: *$/.test(a.align[c])?"right":/^ *:-+: *$/.test(a.align[c])?"center":/^ *:-+ *$/.test(a.align[c])?"left":null;for(c=0;c<a.cells.length;c++)a.cells[c]=a.cells[c].split(/ *\| */);this.tokens.push(a)}else if(r=this.rules.lheading.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"heading",depth:"="===r[2]?1:2,text:r[1]});else if(r=this.rules.hr.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"hr"});else if(r=this.rules.blockquote.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"blockquote_start"}),r=r[0].replace(/^ *> ?/gm,""),this.token(r,e),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(t)){for(t=t.substring(r[0].length),o=r[2],this.tokens.push({type:"list_start",ordered:o.length>1}),r=r[0].match(this.rules.item),n=!1,p=r.length,c=0;p>c;c++)a=r[c],l=a.length,a=a.replace(/^ *([*+-]|\d+\.) +/,""),~a.indexOf("\n ")&&(l-=a.length,a=this.options.pedantic?a.replace(/^ {1,4}/gm,""):a.replace(new RegExp("^ {1,"+l+"}","gm"),"")),this.options.smartLists&&c!==p-1&&(s=u.bullet.exec(r[c+1])[0],o===s||o.length>1&&s.length>1||(t=r.slice(c+1).join("\n")+t,c=p-1)),i=n||/\n\n(?!\s*$)/.test(a),c!==p-1&&(n="\n"===a.charAt(a.length-1),i||(i=n)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(a,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(t))t=t.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:"pre"===r[1]||"script"===r[1]||"style"===r[1],text:r[0]});else if(e&&(r=this.rules.def.exec(t)))t=t.substring(r[0].length),this.tokens.links[r[1].toLowerCase()]={href:r[2],title:r[3]};else if(e&&(r=this.rules.table.exec(t))){for(t=t.substring(r[0].length),a={type:"table",header:r[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c<a.align.length;c++)a.align[c]=/^ *-+: *$/.test(a.align[c])?"right":/^ *:-+: *$/.test(a.align[c])?"center":/^ *:-+ *$/.test(a.align[c])?"left":null;for(c=0;c<a.cells.length;c++)a.cells[c]=a.cells[c].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(a)}else if(e&&(r=this.rules.paragraph.exec(t)))t=t.substring(r[0].length),this.tokens.push({type:"paragraph",text:"\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1]});else if(r=this.rules.text.exec(t))t=t.substring(r[0].length),this.tokens.push({type:"text",text:r[0]});else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return this.tokens};var p={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:a,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:a,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};p._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,p._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=l({},p),p.pedantic=l({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=l({},p.normal,{escape:s(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=l({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),i.rules=p,i.output=function(t,e,n){var r=new i(e,n);return r.output(t)},i.prototype.output=function(t){for(var e,n,i,r,s="";t;)if(r=this.rules.escape.exec(t))t=t.substring(r[0].length),s+=r[1];else if(r=this.rules.autolink.exec(t))t=t.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),i=this.mangle("mailto:")+n):(n=o(r[1]),i=n),s+='<a href="'+i+'">'+n+"</a>";else if(r=this.rules.url.exec(t))t=t.substring(r[0].length),n=o(r[1]),i=n,s+='<a href="'+i+'">'+n+"</a>";else if(r=this.rules.tag.exec(t))t=t.substring(r[0].length),s+=this.options.sanitize?o(r[0]):r[0];else if(r=this.rules.link.exec(t))t=t.substring(r[0].length),s+=this.outputLink(r,{href:r[2],title:r[3]});else if((r=this.rules.reflink.exec(t))||(r=this.rules.nolink.exec(t))){if(t=t.substring(r[0].length),e=(r[2]||r[1]).replace(/\s+/g," "),e=this.links[e.toLowerCase()],!e||!e.href){s+=r[0].charAt(0),t=r[0].substring(1)+t;continue}s+=this.outputLink(r,e)}else if(r=this.rules.strong.exec(t))t=t.substring(r[0].length),s+="<strong>"+this.output(r[2]||r[1])+"</strong>";else if(r=this.rules.em.exec(t))t=t.substring(r[0].length),s+="<em>"+this.output(r[2]||r[1])+"</em>";else if(r=this.rules.code.exec(t))t=t.substring(r[0].length),s+="<code>"+o(r[2],!0)+"</code>";else if(r=this.rules.br.exec(t))t=t.substring(r[0].length),s+="<br>";else if(r=this.rules.del.exec(t))t=t.substring(r[0].length),s+="<del>"+this.output(r[1])+"</del>";else if(r=this.rules.text.exec(t))t=t.substring(r[0].length),s+=o(this.smartypants(r[0]));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0));return s},i.prototype.outputLink=function(t,e){return"!"!==t[0].charAt(0)?'<a href="'+o(e.href)+'"'+(e.title?' title="'+o(e.title)+'"':"")+">"+this.output(t[1])+"</a>":'<img src="'+o(e.href)+'" alt="'+o(t[1])+'"'+(e.title?' title="'+o(e.title)+'"':"")+">"},i.prototype.smartypants=function(t){return this.options.smartypants?t.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):t},i.prototype.mangle=function(t){for(var e,n="",i=t.length,r=0;i>r;r++)e=t.charCodeAt(r),Math.random()>.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n},r.parse=function(t,e){var n=new r(e);return n.parse(t)},r.prototype.parse=function(t){this.inline=new i(t.links,this.options),this.tokens=t.reverse();for(var e="";this.next();)e+=this.tok();return e},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var t=this.token.text;"text"===this.peek().type;)t+="\n"+this.next().text;return this.inline.output(t)},r.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return"<hr>\n";case"heading":return"<h"+this.token.depth+' id="'+this.token.text.toLowerCase().replace(/[^\w]+/g,"-")+'">'+this.inline.output(this.token.text)+"</h"+this.token.depth+">\n";case"code":if(this.options.highlight){var t=this.options.highlight(this.token.text,this.token.lang);null!=t&&t!==this.token.text&&(this.token.escaped=!0,this.token.text=t)}return this.token.escaped||(this.token.text=o(this.token.text,!0)),"<pre><code"+(this.token.lang?' class="'+this.options.langPrefix+this.token.lang+'"':"")+">"+this.token.text+"</code></pre>\n";case"table":var e,n,i,r,s,a="";for(a+="<thead>\n<tr>\n",n=0;n<this.token.header.length;n++)e=this.inline.output(this.token.header[n]),a+="<th",this.token.align[n]&&(a+=' style="text-align:'+this.token.align[n]+'"'),a+=">"+e+"</th>\n";for(a+="</tr>\n</thead>\n",a+="<tbody>\n",n=0;n<this.token.cells.length;n++){for(i=this.token.cells[n],a+="<tr>\n",s=0;s<i.length;s++)r=this.inline.output(i[s]),a+="<td",this.token.align[s]&&(a+=' style="text-align:'+this.token.align[s]+'"'),a+=">"+r+"</td>\n";a+="</tr>\n"}return a+="</tbody>\n","<table>\n"+a+"</table>\n";case"blockquote_start":for(var a="";"blockquote_end"!==this.next().type;)a+=this.tok();return"<blockquote>\n"+a+"</blockquote>\n";case"list_start":for(var l=this.token.ordered?"ol":"ul",a="";"list_end"!==this.next().type;)a+=this.tok();return"<"+l+">\n"+a+"</"+l+">\n";case"list_item_start":for(var a="";"list_item_end"!==this.next().type;)a+="text"===this.token.type?this.parseText():this.tok();return"<li>"+a+"</li>\n";case"loose_item_start":for(var a="";"list_item_end"!==this.next().type;)a+=this.tok();return"<li>"+a+"</li>\n";case"html":return this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);case"paragraph":return"<p>"+this.inline.output(this.token.text)+"</p>\n";case"text":return"<p>"+this.parseText()+"</p>\n"}},a.exec=a,c.options=c.setOptions=function(t){return l(c.defaults,t),c},c.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1},c.Parser=r,c.parser=r.parse,c.Lexer=t,c.lexer=t.lex,c.InlineLexer=i,c.inlineLexer=i.output,c.parse=c,"object"==typeof n?e.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):this.marked=c}).call(function(){return this||("undefined"!=typeof window?window:i)}())},{}],6:[function(t,e){!function(){"use strict";function t(t,e,n){var i=t.events;i||(t.events=i={});var r=n?"#"+e:e,o=i[r];if(!o&&(i[r]=o=new v.Event(t,e,n),o.is_dom_event)){var s=t._element;s&&s.addEventListener(e,o.raise,n)}return o}function n(){this.state_id=Number.MIN_VALUE}function i(){}function r(t,e){var n=[];if(e){var i=e.$data;if(i)for(var r=0,o=i.length;o>r;r++)n[r]=i[r]}for(var s in $)n[s]=$[s];for(var s in k)n[s]=k[s];if(n.state_id=Number.MIN_VALUE,n.last_operation=0,n.last_changed=void 0,t&&t.adapter&&(this.adapter=v.create(t.adapter),!this.adapter))throw new TypeError('Invalid data adapter type "'+t.adapter+'"!');return n}function o(t){if("function"==typeof t){t=t.toString();var e=t.indexOf("("),n=t.indexOf(")"),i=t.indexOf("{"),r=t.lastIndexOf("}");return t.slice(e+1,n)+"@"+t.substr(i+1,r-i-1)}return t}function s(t,e,n){var i=0,r=t.indexOf(":"),o=t.indexOf("."),s=t.indexOf("`"),a=t.indexOf("#"),l=t.indexOf("/"),c=t.indexOf("{");o>=0&&r>o&&(r=-1),s>=0&&(r>s&&(r=-1),o>s&&(o=-1)),a>=0&&(r>a&&(r=-1),o>a&&(o=-1),s>a&&(s=-1)),l>=0&&(r>l&&(r=-1),o>l&&(o=-1),s>l&&(s=-1)),c>=0&&(r>c&&(r=-1),o>c&&(o=-1),s>c&&(s=-1),l>c&&(l=-1)),r>=0&&(n&&(n.$name=t.substr(0,r)),i=r+1);var u;o>=0&&(u=t.substr(i,1+o-i),i=o+1),u||(u="controls.");var p=a;(0>p||l>=0&&p>l)&&(p=l),(0>p||c>=0&&p>c)&&(p=c);var d=u+t.substr(i,(s>=0?s:p>=0?p:t.length)-i);if(n){var f=0>s?"":p>=0?t.substr(s+1,p-s-1):t.substr(s+1);(f||!f.hasOwnProperty("class"))&&(n.class=n.class?n.class+" "+f:f)}if(c>=0){var h=t.lastIndexOf("}");e["#{href}"]=t.substr(c+1,h>=0?h-c-1:t.length-c-1)}if(l>=0)for(var m=t.substr(l+1,(a>l?a:c>l?c:t.length)-l-1).split(";"),g=0,v=m.length;v>g;g++){var y=m[g],b=y.indexOf("=");b>=0?e["/"+y.substr(0,b)]=y.substr(b+1):e["/"+y]=!0}if(a>=0)for(var x=t.substr(a+1,(l>a?l:c>a?c:t.length)-a-1).split(";"),g=0,v=x.length;v>g;g++){var y=x[g],b=y.indexOf("=");b>=0?e[y.substr(0,b)]=y.substr(b+1):e[y]=!0}return d}function a(t,e){var n;t=t.toLowerCase();var i=v.subtypes[t];if(i)for(var r=0,o=i.length;o>r;r++){var s=i[r],l=!0;for(var c in e)if("__ctr,??".indexOf(c)<0&&s[c]!==e[c]){l=!1;break}if(l){n=s.__ctr;break}}if(!n&&(n=v[t],n&&n.isAlias&&n.__type!==t)){var u=n.parameters;for(var c in u)e[c]=u[c];n=a(n.__type,e)}return n}function l(t,e){v.controlInitialize(this,"controls.container",t,e,v.default_inner_template)}function c(t,e){e.$prime&&(e.$template=e.$prime,delete e.$prime),v.controlInitialize(this,"controls.custom",t,e,e.$template||e.$outer_template,e.$inner_template)}function u(t,e){this.isStub=!0,v.controlInitialize(this,"controls.stub",t,e,function(t){return"<div"+t.printAttributes()+">"+t.printControls()+"</div>"}),this.class("stub");var n=0;Object.defineProperty(this,"state",{enumerable:!0,get:function(){return n},set:function(t){t!==n&&(n=t,0===t?this.class(null,"stub-loading stub-error"):0>t?this.class("stub-error","stub-loading"):this.class("stub-loading","stub-error"),this.raise("state"),this.state>0&&this.tryReplace())}}),this.tryReplace=function(){var t=this.parameters,e={},n={},i=this.attributes;for(var r in t)"#"!==r[0]&&"{"!==r[1]&&(e[r]=t[r]);for(var r in i)n[r]=i[r];var o=v.create(t["#{type}"],e,n);o&&(o.class(null,"stub stub-loading stub-error"),this.replaceItself(o),this.raise("control",o))}}function p(t,e){v.controlInitialize(this,"controls.head",t,e,p.outer_template),this.attach=function(){return this.element=document.head,this},this.attachAll=function(){return this.element=document.head,p.prototype.attachAll.call(this)}}function d(t,e){v.controlInitialize(this,"controls.body",t,e,d.outer_template),this.attach=function(){return this.element=document.body,this},this.attachAll=function(){return this.element=document.body,d.prototype.attachAll.call(this)}}function f(t,e){this.initialize("controls.layout",t,e,f.outer_template);var n=!1;this.cellSet=new l,this.cellSet.listen_("attributes",this,function(t){var e=t.name,n=t.value,i=void 0===n||null===n,r=this._element;if(r)for(var o=r.childNodes,s=o.length-1;s>=0;s--){var a=o[s];i?a.removeAttribute(e):a.setAttribute(e,n)}}),this.listen_("type",function(){var t,e=this.parameters;for(var i in e)("float"===i||"/float"===i)&&(t=e[i]);
t&&this.cellSet.style("float:"+t),n=t})}function h(t,e){this.initialize("controls.list",t,e,h.outer_template),this.itemSet=new l,this.itemSet.listen_("attributes",this,function(t){var e=t.name,n=t.value,i=void 0===n||null===n,r=this._element;if(r)for(var o=r.childNodes,s=o.length-1;s>=0;s--){var a=o[s];i?a.removeAttribute(e):a.setAttribute(e,n)}})}function m(t,e){this.initialize("controls.input",t,e,m.outer_template).listen_("change",function(){this.attributes.value=this.element.value},!0).listen_("element",function(t){t&&(t.value=this.attributes.value||"")}),Object.defineProperty(this,"value",{get:function(){return this.attributes.value},set:function(t){var e=this._element;this.attributes.value=t,e&&(e.value=t)}})}function g(t,e){this.initialize("controls.select",t,e,g.outer_template,g.inner_template).bind(e.hasOwnProperty("$data")?v.create("DataArray",{$data:e.$data}):v.create("DataArray")).listen_("data",this.refreshInner).listen_("change",function(){this.attributes.value=this.element.value},!0).listen_("element",function(t){t&&(t.value=this.attributes.value)}),Object.defineProperty(this,"value",{get:function(){return this.attributes.value},set:function(t){var e=this._element;this.attributes.value=t,e&&(e.value=t)}})}var v={VERSION:"0.6.15",id_generator:53504,template:function(t){return new Function("return '"+t.replace(/'/g,"\\'")+"'")},subtypes:{}},y=",add,attach,attributes,class,data,element,first,id,__type,controls,last,name,each,forEach,parameters,parent,remove,style,",b=/&(?!#?\w+;)|<|>|"|'|\//g,x={"<":"<",">":">",'"':""","'":"'","&":"&","/":"/"},w=/&#(\d{1,8});/g;v.controlInitialize=function(t,e,i,o,s,a){if(o){if(t.name=o.$name,t.id=o.id?o.id:o.id=(++v.id_generator).toString(16),"$prime"in o){var l=o.$prime;l instanceof r||l instanceof n?this.bind(l):o.$text=l,delete o.$prime}t.attributes=o}else{var c=t.id=(++v.id_generator).toString(16);t.attributes={id:c}}return t.__type=e,t.parameters=i||{},t.controls=[],s&&(s.no_serialize=!0,Object.defineProperty(t,"outer_template",{enumerable:!0,writable:!0,value:s})),a&&(a.no_serialize=!0,Object.defineProperty(t,"inner_template",{enumerable:!0,writable:!0,value:a})),t},v.typeRegister=function(t,e,n){v.factoryRegister(t,e),e.is_constructor=!0,e.revive=n},v.factoryRegister=function(t,e){var n={},i=s(t,n).toLowerCase();if(i.length<t.length){n.__ctr=e;var r=v.subtypes[i]||(v.subtypes[i]=[]);r.push(n)}else{if(v[i])throw new TypeError("Type "+t+" already registered!");v[i]=e}},v.typeAlias=function(t,e){var n={},i=s(e,n).toLowerCase(),r=a(i,n);if(!r)throw new TypeError("Type "+i+" not registered!");v[t.toLowerCase()]={__type:i,parameters:n,isAlias:!0}},v.parse=function(t){try{return JSON.parse(t)||{}}catch(e){console.log(e)}return{}};var C=",change,DOMActivate,load,unload,abort,error,select,resize,scroll,blur,DOMFocusIn,DOMFocusOut,focus,focusin,focusout,click,dblclick,mousedown,mouseenter,mouseleave,mousemove,mouseover,mouseout,mouseup,wheel,keydown,keypress,keyup,oncontextmenu,compositionstart,compositionupdate,compositionend,DOMAttrModified,DOMCharacterDataModified,DOMNodeInserted,DOMNodeInsertedIntoDocument,DOMNodeRemoved,DOMNodeRemovedFromDocument,DOMSubtreeModified,";v.Event=function(t,e,n,i){var r=this.listeners=[],o=this.call_this=t;if(this.type=e,this.capture=n,this.is_dom_event=C.indexOf(","+e+",")>=0,i)for(var s=0,a=i.length;a>s;s+=2){r.push(i[s]);var l=i[s+1];r.push(l===o?null:o)}this.raise=function(){for(var t=0,e=r.length;e>t;t+=2)r[t].apply(r[t+1]||o,arguments)}},v.Event.prototype={addListener:function(t,e){arguments.length>1?this.listeners.push(e,t===this.call_this?null:t):this.listeners.push(t,null)},removeListener:function(t){var e=this.listeners,n=e.indexOf(t);n>=0&&e.splice(n,2)},clear:function(){this.listeners.length=0},toJSON:function(){for(var t=[],e=this.listeners,n=0,i=e.length;i>n;n+=2){var r=e[n];r.no_serialize||(t.push(o(r)),t.push(null))}return{type:this.type,capture:this.capture,listeners:t}}};var _=[];setInterval(function(){if(_.length>0)for(var t=0,e=_.length;e>t;t++){try{_[t].post_event.raise()}catch(n){console.log(n)}_.length=0}},30);var $={listen:function(){var t=this.event||(this.event=new v.Event(this));return t.addListener.apply(t,arguments),this},listen_:function(t,e){return"function"==typeof e?e.no_serialize=!0:t.no_serialize=!0,this.listen.apply(this,arguments)},removeListener:function(t){var e=this.event;return e&&e.removeListener(t),this},subscribe:function(t,e){if("function"==typeof t&&(e=t,t=this),!e)return this;var n=this.post_event||(this.post_event=new v.Event(this));return n.addListener.apply(n,arguments),this},unsubscribe:function(t){var e=this.post_event;return e&&e.removeListener(t),this},raise:function(){var t=this.event;t&&t.raise.apply(this,arguments);var e=this.post_event;if(e){var n=_.indexOf(this);(0>n||n!==_.length-1)&&(n>=0&&_.splice(n,1),_.push(this))}},set:function(t,e){this.state_id++,this[t]=e,this.last_name=t,this.raise()},setx:function(t){var e;for(var n in t)t.hasOwnProperty(n)&&(e=!0,this.state_id++,this[n]=t[n],this.last_name=t);e&&this.raise()}};n.prototype=$,v.typeRegister("DataObject",n);var k={push:function(){for(var t=Object.getPrototypeOf(this),e=0,n=arguments.length;n>e;e++)t.push.call(this,arguments[e]);this.state_id+=n,this.last_operation=1,this.last_index=this.length-1,this.raise(this)}};i.prototype={raise:function(){}},v.typeRegister("LocalStorage",i),v.factoryRegister("DataArray",r),v.control_prototype=new function(){function e(t,e){var n=this._parent;if(t!==n){this._parent=t;var i=this._name;if(n){var r=n.controls,e=r.indexOf(this);e>=0&&r.splice(e,1),i&&n.hasOwnProperty(i)&&n[i]===this&&delete n[i]}if(t){var o=t.controls;void 0===e?o.push(this):o.splice(e,0,this),i&&(t[i]=this)}this.raise("parent",t)}}function n(){var t=Array.prototype.slice.call(arguments);t.unshift("data"),this.raise.apply(this,t)}this.initialize=function(t,e,n,i,r){return v.controlInitialize(this,t,e,n,i,r)},Object.defineProperty(this,"name",{enumerable:!0,get:function(){return this._name},set:function(t){if(y.indexOf(","+t+",")>=0)throw new SyntaxError('Invalid name "'+t+'"!');var e=this._name;if(t!==e){this._name=t;var n=this._parent;n&&(e&&n.hasOwnProperty(e)&&n[e]===this&&delete n[e],t&&(n[t]=this))}}}),Object.defineProperty(this,"element",{enumerable:!0,get:function(){return this._element},set:function(t){if(0===arguments.length)return this._element;var e=this._element;if(t!==e){this._element=t;var n=this.events;if(n)for(var i in n){var r=n[i];r.is_dom_event&&(e&&e.removeEventListener(r.type,r.raise,r.capture),t&&t.addEventListener(r.type,r.raise,r.capture))}this.raise("element",t)}}}),Object.defineProperties(this,{parent:{enumerable:!0,get:function(){return this._parent},set:e},wrapper:{enumerable:!0,get:function(){return this._wrapper},set:function(t){var e=this._wrapper;if(t!==e){if(this._wrapper=t,e){var n=e.controls,i=n.indexOf(this);i>=0&&n.splice(i,1)}if(t){var r=t.controls;r.push(this)}}}},length:{enumerable:!0,get:function(){return this.controls.length}},first:{enumerable:!0,get:function(){return this.controls[0]}},last:{enumerable:!0,get:function(){return this.controls[this.controls.length-1]}}}),this.outer_template=function(t){return"<div"+t.printAttributes()+">"+(t.attributes.$text||"")+t.printControls()+"</div>"},v.default_outer_template=this.outer_template,this.inner_template=function(t){return(t.attributes.$text||"")+t.printControls()},v.default_inner_template=this.inner_template,this.outer_inline_template=function(t){return"<span"+t.printAttributes()+">"+(t.attributes.$text||"")+t.printControls()+"</span>"},v.default_outer_inline_template=this.outer_inline_template,this.innerHTML=function(){return this.inner_template(this)},this.outerHTML=function(){return this.outer_template(this)},this.wrappedHTML=function(){var t=this._wrapper;return t?t.wrappedHTML():this.outerHTML()},this.template=function(t,e){return t&&("string"==typeof t&&(t=v.template(t)),this.hasOwnProperty("outer_template")?this.outer_template=t:Object.defineProperty(this,"outer_template",{configurable:!0,enumerable:!0,writable:!0,value:t})),e&&("string"==typeof t&&(e=v.template(e)),this.hasOwnProperty("inner_template")?this.inner_template=e:Object.defineProperty(this,"inner_template",{configurable:!0,enumerable:!0,writable:!0,value:e})),this},this.toJSON=function(){var t={__type:this.type(),attributes:this.attributes},e=this.name;e&&(t.name=e);var n=this.controls;if(n.length&&(t.controls=n),this.hasOwnProperty("outer_template")){var i=this.outer_template;i.no_serialize||(t.outer_template=o(this.outer_template))}if(this.hasOwnProperty("inner_template")){var r=this.outer_template;r.no_serialize||(t.inner_template=o(this.inner_template))}var s=this.events;if(s){var a=[];for(var l in s){for(var c=s[l],u=c.listeners,p=!1,d=0,f=u.length;f>d;d+=2)if(!u[d].no_serialize){p=!0;break}p&&a.push(c)}a.length&&(t.events=a)}return t},this.refresh=function(){var t=this._element;if(t)if(t.parentNode)try{var e=this.outerHTML();e!==t.outerHTML&&(this.detachAll(),t.outerHTML=e,this.attachAll())}catch(n){this._element=void 0}else this._element=void 0;return this},this.refreshInner=function(){var t=this._element;return t&&(t.innerHTML=this.innerHTML()),this},this.attach=function(t){return this.element=arguments.length?"string"==typeof t?document.getElementById(t):t&&(t._element||t):document.getElementById(this.id),this},this.attachAll=function(){this._element||(this.element=document.getElementById(this.id));for(var t=this.controls,e=0,n=t.length;n>e;e++)t[e].attachAll();return this},this.detach=function(){return this.element=void 0,this},this.detachAll=function(){this.element=void 0;for(var t=this.controls,e=0,n=t.length;n>e;e++)t[e].detachAll();return this},this.replaceItself=function(t){for(var n=this.controls,i=n.length-1;i>=0;i--)t.add(n.shift());var r=this.parent;if(r){var o=r.controls.indexOf(this);this.parent=void 0,e.call(t,r,o)}else t.parent=void 0;var s=this._element;s?(t.element=s,t.refresh()):t.element=void 0},this.createElement=function(t,e){var n=this._element,i=this.parent;if(n)throw new TypeError("Element already exists!");if(!t&&i&&(t=i.element,e=0),t&&"__type"in t&&(t=t.element),!t)throw new TypeError("Failed to create element!");if(t.insertAdjacentHTML){var r;switch(e){case 1:r="afterbegin";break;case 2:r="beforebegin";break;case 3:r="afterend";break;default:r="beforeend"}t.insertAdjacentHTML(r,this.outerHTML())}else{var o=document.createDocumentFragment(),s=document.createElement("div");s.innerHTML=this.outerHTML();for(var a=Array.prototype.slice.call(s.childNodes),l=0,c=a.length;c>l;l++)o.appendChild(a[l]);switch(e){case 1:0===t.childNodes.length?t.appendChild(o):t.insertBefore(t.firstChild,o);break;case 2:var u=t.parentNode;u&&u.insertBefore(o,t);break;case 3:var u=t.parentNode;if(u){var p=t.nextSibling;p?u.insertBefore(o,p):u.appendChild(o)}break;default:t.appendChild(o)}}return this.attachAll()},this.deleteElement=function(){var t=this._element;if(t){var e=t.parentNode;e&&e.removeChild(t),this._element=void 0}return this},this.deleteAll=function(){this.deleteElement();for(var t=this.controls,e=t.length-1;e>=0;e--)t[e].deleteAll();return this},this.listen=function(e,n,i,r){return"function"==typeof n&&(r=i,i=n,n=null),e&&i&&t(this,e,r).addListener(n,i),this},this.listen_=function(e,n,i,r){return"function"==typeof n&&(r=i,i=n,n=null),e&&i&&(t(this,e,r).addListener(n,i),i.no_serialize=!0),this},this.addListener=function(t,e,n,i){return this.listen(t,e,n,i)},this.removeListener=function(e,n,i){return e&&n&&t(this,e,i).removeListener(n),this},this.raise=function(t){var e=this.events;if(t&&e){var n=e["#"+t],i=e[t],r=Array.prototype.slice.call(arguments,1);n&&n.raise.apply(this,r),i&&i.raise.apply(this,r)}return this},this.parameter=function(t,e){var n=this.parameters;return arguments.length>1?(e!==n[t]&&(n[t]=e,this.refresh()),void 0):n[t]||n["/"+t]},this._parameter=function(t,e){return this.parameter(t,e),this},this.attr=function(t,e){var n=this.attributes;return 0===arguments.length?void 0:1===arguments.length?n[t]:(e!==n[t]&&(n[t]=e,this._element&&this.refresh()),void 0)},this._attr=function(t,e){return this.attr(t,e),this},this.attrs=function(t){var e=this.attributes;if(arguments.length>0){var n=!1;for(var i in t){var r=t[i];r!==e[i]&&(e[i]=r,n=!0)}n&&this._element&&this.refresh()}return e},this._attrs=function(t){return this.attrs(t),this},this.type=function(t,e){if(!arguments.length){var n="",i="",r=this.parameters;for(var o in r)"/"!==o[0]?(i&&(i+=";"),i+=o+"="+r[o]):(n&&(n+=";"),n+=o.substr(1)+"="+r[o]);var t=this.__type;return n&&(t+="/"+n),i.length>0&&(t+="#"+i),t}var r=this.parameters;for(var o in r)delete r[o];if(e&&this.parent){var a=parent.parameters;for(var o in a)"/"===o[0]&&(r[o]=a[o])}this.__type=s(t,r,this.attributes)||this.__type,this.raise("type")},this._type=function(t,e){return this.type(t,e),this},this.printAttributes=function(t){var e="",n=this.attributes;if(t)if(t.indexOf(",")>=0&&console.log("printAttributes() Use a space to separate of identifiers"),"-"===t[0]){var i=t.substr(1).split(" ");for(var r in n)if("$"!==r[0]&&i.indexOf(r)<0){var o=n[r];o&&(e+=" "+r+'="'+o+'"')}}else for(var s=t.split(" "),a=0,l=s.length;l>a;a++){var c=s[a],o=n[c];o&&(e+=" "+c+'="'+o+'"')}else for(var r in n)if("$"!==r[0]){var o=n[r];o&&(e+=" "+r+'="'+o+'"')}return e},this.printControls=function(){for(var t="",e=this.controls,n=0,i=e.length;i>n;n++)t+=e[n].wrappedHTML();return t},this.text=function(t){var e=this.attributes;return arguments.length&&t!==e.$text&&(e.$text=t,this.refresh()),e.$text},this._text=function(t){return this.text(t),this},this.style=function(t){var e=this.attributes;if(arguments.length){if(t!==e.style){e.style=t;var n=this._element;n&&(n.style=t),this.raise("attributes","style",t)}return t}return e.style},this._style=function(t){return this.style(t),this},this.class=function(t,e){var n=this.attributes;if(t||e){var i=n.class,r=i?i.split(" "):[];if(e){e=e.split(" ");for(var o=0,s=e.length;s>o;o++){var a=e[o],l=r.indexOf(a);l>=0&&r.splice(l,1)}}if(t){t=t.split(" ");for(var o=0,s=t.length;s>o;o++){var c=t[o];r.indexOf(c)<0&&r.push(c)}}if(i=r.join(" "),i!==n.class){n.class=i;var u=this._element;u&&(u.className=i),this.raise("attributes","class",i)}}return n.class},this._class=function(t,e){return this.class(t,e),this},this.insert=function(t,n,i,r,o,l){if(n){if("function"==typeof i&&(l=r,o=i,i=void 0,r=void 0),i instanceof Object&&(l=o,o=r,r=i,i=void 0),"function"==typeof r&&(l=o,o=r,r=void 0),Array.isArray(n)){for(var u,p=t,d=t+n.length;d>p;p++)u=this.insert(p,n[p],i,r,o,l);return u}if("object"==typeof n){var f=n;return f.hasOwnProperty("__type")&&e.call(n,this,t),f}var h={"class":""},m={};for(var g in r)h[g]=r[g];var y=this.parameters;for(var g in y)"/"===g[0]&&(m[g]=y[g]);var b,x;if("<"===n[0]?(b="controls.custom",x=c,h.$template=v.template(n),"string"==typeof i&&(h.$text=i,i=void 0)):(b=s(n,m,h),x=a(b,m)),i&&(h.$prime=i),!x){if(!T)throw new TypeError("Type "+b+" not registered!");m["#{type}"]=n,m["#{__type}"]=b,m["#{callback}"]=o,m["#{this_arg}"]=l,x=a("controls.stub",m)}for(var g in m)"$"===g[0]&&(h[g.substr(1)]=m[g]);var w=new x(m,h);return w.raise("type"),e.call(w,this,t),o&&o.call(l||this,w),w}},this.add=function(t,e,n,i,r){return this.insert(this.controls.length,t,e,n,i,r)},this._add=function(t,e,n,i,r){return this.insert(this.controls.length,t,e,n,i,r),this},this.unshift=function(t,e,n,i,r){return this.insert(0,t,e,n,i,r)},this._unshift=function(t,e,n,i,r){return this.insert(0,t,e,n,i,r),this},this.remove=function(t){return arguments.length?(t&&(t.parent=void 0),this):(this.parent=void 0,void 0)},this.removeAll=function(){for(var t=this.controls,e=t.length-1;e>=0;e--)this.remove(t[e]);return this},this.bind=function(t,e){var i=this.data;return t!==i&&(this.data=t,i&&(i.removeListener(n),i.unsubscribe(n)),t&&(e?t.subscribe(this,n):t.listen_(this,n)),n.call(this)),this},this.every=function(t,e){return this.controls.every(t,e||this)},this.filter=function(t,e){return this.controls.filter(t,e||this)},this.each=this.forEach=function(t,e){return this.controls.forEach(t,e||this)},this.map=function(t,e){return this.controls.map(t,e||this)},this.some=function(t,e){return this.controls.some(t,e||this)}},v.resolveType=a;var T=0;v.createOrStub=function(){T=1;try{return v.create.apply(this,arguments)}catch(t){}finally{T=0}},v.create=function(t,e,n,i,r,o){var l=arguments.length;("string"!=typeof e||e instanceof Object)&&(o=r,r=i,i=n,n=e,e=void 0,l++),"function"==typeof n?(o=i,r=n,n={},i={},l+=2):"function"==typeof i&&(o=r,r=i,i=n,n={},l++),3===l&&(i=n,n={}),n=n||{},i=i||{};var u,p;if("<"===t[0]?(u="controls.custom",p=c,i.$template=v.template(t),"string"==typeof e&&(i.$text=e,e=void 0)):(u=s(t,n,i),p=a(u,n)),e&&(i.$prime=e),!p){if(!T)throw new TypeError("Type "+u+" not registered!");n["#{type}"]=t,n["#{__type}"]=u,n["#{callback}"]=r,n["#{this_arg}"]=o,p=a("controls.Stub",n)}for(var d in n)"$"===d[0]&&(i[d.substr(1)]=n[d]);var f=p.is_constructor?new p(n,i):p(n,i);return f.raise("type"),f},v.reviverJSON=function(t,e){if("object"==typeof e&&null!==e&&e.hasOwnProperty("__type")){var n={},i=s(e.__type,n),r=a(i,n);r||(console.log("controls.reviverJSON(): "+i+" constructor not registered!"),n["#{type}"]=e.__type,n["#{__type}"]=i,r=a("controls.stub",n));var o,l=r.revive;return o=l?l(r,n,e):v.reviveControl(r,n,e),o.raise("type"),o}return e},v.revive=function S(t){if(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];(Array.isArray(n)||"object"==typeof n&&n.hasOwnProperty("__type"))&&(t[e]=S(n))}"object"==typeof t&&t.hasOwnProperty("__type")&&(t=reviverJSON(null,t))}return t},v.reviveControl=function(t,e,n){if(n){var i=t.is_constructor?new t(e,n.attributes):t(e,n.attributes);n.controls&&(i.controls=n.controls);var r=n.outer_template;if(r){var o=r.indexOf("@");i.template(new Function(r.substr(0,o),r.substr(o+1)))}var s=n.inner_template;if(s){var o=s.indexOf("@");i.template(null,new Function(s.substr(0,o),s.substr(o+1)))}var a=n.events;if(a)for(var l=i.events={},c=0,u=a.length;u>c;c++){for(var p=a[c],d=p.listeners,c=0,u=d.length;u>c;c+=2){var f=d[c];if("string"==typeof f){var o=f.indexOf("@");d[c]=new Function(f.substr(0,o),f.substr(o+1))}}l[p.capture?"#"+p.type:p.type]=new v.Event(i,p.type,p.capture,d)}return i}},v.decodeHTML=function(t){return t?t.replace(w,function(t){return String.fromCharCode(parseInt(t.slice(2)))}):t},v.encodeHTML=function(t){return t?t.replace(b,function(t){return x[t]||t}):t},v.extend=function(t,e){for(var n in e)t[n]=e[n];return t},v.delay=function(t,e){return setTimeout(function(){return t.apply(null,Array.prototype.slice.call(arguments,2))},e)},function(){function t(t,e){return"\nfunction c"+t+"(p, a) { controls.controlInitialize(this, 'controls."+t+"', p, a, c"+t+".outer_template); }\nc"+t+".prototype = controls.control_prototype;\n"+(e?"c"+t+".outer_template = function(it) { return '<"+t+"' + it.printAttributes() + '>' + (it.attributes.$text || '') + it.printControls() + '</"+t+">'; };\n":"c"+t+".outer_template = function(it) { return '<"+t+"' + it.printAttributes() + '>'; };\n")+"controls.typeRegister('"+t+"', c"+t+");\n"}Function("controls","a,abbr,address,article,aside,b,base,bdi,bdo,blockquote,button,canvas,cite,code,col,colgroup,command,datalist,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,gnome,h1,h2,h3,h4,h5,h6,header,i,iframe,img,ins,kbd,keygen,label,legend,li,link,map,mark,menu,meter,nav,noscript,object,ol,optgroup,option,output,p,pre,progress,ruby,rt,rp,s,samp,script,section,small,span,strong,style,sub,summary,sup,table,tbody,td,textarea,tfoot,th,thead,time,title,tr,u,ul,var,video,wbr".split(",").map(function(e){return t(e.toLowerCase(),!0)}).join(""))(v),Function("controls","area,br,hr,meta,param,source,track".split(",").map(function(e){return t(e.toLowerCase(),!1)}).join(""))(v)}(),l.prototype=v.control_prototype,v.typeRegister("container",l),c.prototype=v.control_prototype,v.typeRegister("custom",c),u.prototype=v.control_prototype,v.typeRegister("stub",u),p.prototype=v.control_prototype,p.outer_template=function(t){return"<head>"+(t.attributes.$text||"")+t.printControls()+"</head>"},v.typeRegister("head",p),d.prototype=v.control_prototype,d.outer_template=function(t){return"<body"+t.printAttributes("-id")+">"+(t.attributes.$text||"")+t.printControls()+"</body>"},v.typeRegister("body",d),f.prototype=v.control_prototype,f.outer_template=function(t){for(var e="<div"+t.printAttributes()+">",n=t.controls,i='<div data-type="layout-item"'+t.cellSet.printAttributes("-id")+">",r=0,o=n.length;o>r;r++)e+=i+n[r].wrappedHTML()+"</div>";return e+t.clearfix?'<div style="clear:both;"></div></div>':"</div>"},v.typeRegister("layout",f),h.prototype=v.control_prototype,h.outer_template=function(t){for(var e="<ul"+t.printAttributes()+">",n=t.controls,i="<li"+t.itemSet.printAttributes("-id")+">",r=0,o=n.length;o>r;r++)e+=i+n[r].wrappedHTML()+"</li>";return e+"</ul>"},v.typeRegister("list",h),m.prototype=v.control_prototype,m.outer_template=function(t){return"<input"+t.printAttributes()+">"+(t.attributes.$text||"")+"</input>"},v.typeRegister("input",m),g.prototype=v.control_prototype,g.outer_template=function(t){return"<select"+t.printAttributes()+">"+(t.attributes.$text||"")+t.data.map(function(t){return"<option value="+t+">"+t+"</option>"}).join("")+"</select>"},g.inner_template=function(t){return(t.attributes.$text||"")+t.data.map(function(t){return"<option value="+t+">"+t+"</option>"}).join("")},v.typeRegister("select",g),"undefined"!=typeof e&&e.exports&&(e.exports=v),"function"==typeof define&&define.amd&&define(v),"undefined"!=typeof window&&(!window.controls||window.controls.VERSION<v.VERSION)&&(window.controls=v)}()},{}],7:[function(){},{}]},{},[1]),function(){"use strict";function t(){function t(t,n){n.role="navigation",this.initialize("controls.navbar",t,n,e,$ENV.default_inner_template).class("navbar navbar-default");var i=(this.text()||"").split(/^\*\*\*/m);this.text(""),this.add("header:div`navbar-header").template(function(t){return"<div"+t.printAttributes()+'><button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>'+$ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join("")).replace(/<a href/gi,'<a class="navbar-brand" href')+"</div>"}),i.length>1&&$DOC.processContent(this.header,i[0]),this.add("collapse:div`collapse navbar-collapse navbar-ex1-collapse").template($ENV.default_template,$ENV.default_inner_template),$DOC.processContent(this.collapse,i.slice(-1)[0]),this.applyPatches=function(){var t=this._element;if(t){var e=$(t);e.find(".navbar-collapse > ul").addClass("nav navbar-nav");var n=e.find("ul ul");n.addClass("dropdown-menu");var i=n.parent();i.addClass("dropdown");var r=i.find("> a");if(r.length){r.addClass("dropdown-toggle"),r.attr("data-toggle","dropdown"),r.attr("href","#"),r.html().indexOf('<b class="caret"></b>')<=0&&r.append('<b class="caret"></b>');var o=window.location.href.toLowerCase();e.find("ul li a").each(function(t,e){var n=(e.href||"").toLowerCase();(n===o||o.split(n).concat(n.split(o)).some(function(t){return t&&"index.htm,index.html".indexOf(t)>=0}))&&$(e).parents("li").addClass("active")})}}},this.listen("element",function(){this.applyPatches()})}function e(t){return"<nav"+t.printAttributes()+">"+$ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))+"</nav>"}t.prototype=controls.control_prototype,controls.typeRegister("navbar",t)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(){function t(t,e,n){var i=controls.create(t,e,n);e=i.parameters;var r=i.attributes.style||"",o="";for(var s in e)"origin"===s||"transform-origin"===s?r+="transform-origin:"+e.origin+";-webkit-transform-origin:"+e.origin+";-moz-transform-origin:"+e.origin+";":f.indexOf(s.trim())>=0?(o&&(o+=" "),o+=s+"("+e[s]+")"):"$"!==s[0]&&(r+=s+":"+e[s]+";");return o&&(r&&";"!==r.slice(-1)&&(r+=";"),r+="transform:"+o+";-webkit-transform:"+o+";-moz-transform:"+o+";"),r&&(i.attributes.style=r),i}function e(t){var e=t.attributes.$text;e&&($DOC.processContent(t,e),t.attributes.$text=void 0)}function n(n,i){var r=t("div",n,i);return r.template($ENV.default_template,$ENV.default_inner_template),e(r),r}function i(t,e){var i=n(t,e);return i.style("display:inline-block;"+i.style()),i}function r(t){return"<span"+t.printAttributes()+">"+$ENV.marked((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))+"</span>"}function o(n,i){var o=t("span",n,i);return o.template(r,$ENV.default_inner_template),e(o),o}function s(t,e){var n=$DOC.components_off;$DOC.components_off=!0;var i=controls.create("container",t,e);return $DOC.components_off=n,i}function a(t,n){var i=controls.create("container",t,n);return i.template(l,l),e(i),i}function l(t){return controls.encodeHTML((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))}function c(t,n){var i=controls.create("container",t,n);return i.template(u,u),e(i),i}function u(t){return controls.decodeHTML((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))}function p(t,n){var i=controls.create("container",t,n);return i.template(d,d),e(i),i}function d(t){return"<span>"+controls.encodeHTML((t.attributes.$text||"")+t.controls.map(function(t){return t.wrappedHTML()}).join(""))+"</span>"}var f=",matrix,translate,translateX,translateY,scale,scaleX,scaleY,rotate,skewX,skewY,matrix3d,translate3d,translateZ,scale3d,scaleZ,rotate3d,rotateX,rotateY,rotateZ,perspective,";controls.factoryRegister("block",n),controls.factoryRegister("iblock",i),controls.factoryRegister("text",o),controls.factoryRegister("off",s),controls.factoryRegister("encode",a),controls.factoryRegister("decode",c),controls.factoryRegister("escape",p)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(){function t(t,e){var n=controls.create("bootstrap.Panel",t,e);for(var i in t)if(c.indexOf(i)<0||"header"===i){n.header.text(i);break}t.footer&&n.footer.text(t.footer);var r=n.body;return $DOC.processContent(r,r.text()),r.text(""),r.template($ENV.default_template,$ENV.default_inner_template),n}function e(e,n){var i=t(e,n);return i.style("display:inline-block;"+i.style()),i}function n(t,e){controls.controlInitialize(this,"collapse",t,e,$ENV.default_template,$ENV.default_inner_template);var n=this.parameter("panel"),i="string"==typeof n?n:void 0,r=t.collapse||t.collapsed;for(var o in t)"panel-"===o.substr(0,6)&&(i=o);this.class("collapse-panel"+(n||i?" panel "+(i||"panel-default"):""));{var s=this.add("collapse:div",{"class":"panel-collapse collapse collapse-body"+(r?"":" in")}),a=s.add("div",{"class":"panel-body"});this.insert(0,"header:div",{"class":"panel-heading collapse-header","data-toggle":"collapse","data-target":"#"+s.id,$text:'<a href="#" class="panel-title">'+(this.parameter("title")||Object.keys(t)[0]||"")+"</a>"})}$DOC.processContent(a,this.text()),this.text(""),a.template($ENV.default_template,$ENV.default_inner_template)}function i(t,e){var i=n(t,e);return i.style("display:inline-block;"+i.style()),i}function r(t,e){controls.controlInitialize(this,"alert",t,e,$ENV.default_template,$ENV.default_inner_template),this.class("alert alert-"+this.getControlStyle()+" fade in");var n=this.text();this.text(""),$DOC.processContent(this,n)}function o(t,e){var n=r(t,e);return n.style("display:inline-block;"+n.style()),n}function s(t,e){controls.controlInitialize(this,"well",t,e,$ENV.default_template,$ENV.default_inner_template),this.class("well");var n=this.getControlSize();"small"===n?this.class("well-sm"):"large"===n&&this.class("well-lg");var i=this.text();this.text(""),$DOC.processContent(this,i)}function a(t,e){var n=r(t,e);return n.style("display:inline-block;"+n.style()),n}var l=controls.bootstrap,c="style header footer default info link success primary warning danger";controls.factoryRegister("panel",t),controls.factoryRegister("ipanel",e),n.prototype=l.control_prototype,controls.typeRegister("collapse",n),controls.factoryRegister("icollapse",i),r.prototype=l.control_prototype,controls.typeRegister("alert",r),controls.factoryRegister("ialert",o),s.prototype=l.control_prototype,controls.typeRegister("well",s),controls.factoryRegister("iwell",a)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(){function t(t,e){controls.controlInitialize(this,"tabpanel",t,e),this.class("tabpanel");var n=this.add("header:bootstrap.TabPanelHeader"),i=this.add("content:bootstrap.TabPanelBody",{"class":"panel-body"});$DOC.processContent(i,this.attributes.$text),this.attributes.$text="";for(var r=!1,o=0,s=i.length;s>o;o++){var a=i.controls[o];if("bootstrap.TabPage"===a.__type){var l=this.header.add("bootstrap.TabHeader",{$href:"#"+a.id,$text:a.Caption});a.parameters.active&&(r=!0,l.class("active"),a.class("active in"))}}!r&&n.length&&(n.first.class("active"),i.first.class("active in"))}function e(t,e){var n=controls.create("bootstrap.TabPage",t,e);n.Caption=Object.keys(t)[0];var i=n.attributes.$text;return n.attributes.$text="",$DOC.processContent(n,i),n.template($ENV.default_template,$ENV.default_inner_template),n}t.prototype=controls.control_prototype,controls.typeRegister("tabpanel",t),controls.factoryRegister("tabpage",e)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(){function t(t,e){function n(){r=[];var t=$DOC.cbody;$DOC.columns.forEach(function(e){var n=t[e];if(n){var i=n._element;(!i||i&&$(i).is(":visible"))&&r.push(e)}});var e=r.join(",");if(e!==o){o=e;for(var n="",i=0,l=r.length;l>i;i++)i<d.length&&(n+="."+r[i]+"{width:"+d[i]+";",0===i?n+="padding-left:"+a+";":i===l-1&&(n+="padding-right:"+a+";"),n+="}");s[1]=n,this.refresh()}}controls.controlInitialize(this,"page-layout",t,e);var i=this.parameter("media"),r=[],o="",s=[],a=this.parameter("padding");switch(this.parameter("scheme")){case"centered":a=a||"16px";var l=this.parameter("width")||"90%",c=this.parameter("min-width")||l,u=this.parameter("max-width")||l,p="";l&&(p+="width:"+l+";"),c&&(p+="min-width:"+c+";"),u&&(p+="max-width:"+u+";"),s.push(i?"@media ("+i+"){":""),s.push("",this.text(),"body{margin:0 auto;",p,"}.header-bar, .header-panel, .footer-bar, .footer-panel { padding-left:"+a+"; padding-right:"+a+"; }.left-side-panel, .left-side-bar, .content-panel, .content-bar, .right-side-panel , .right-side-bar { display: inline-block; }"),i&&s.push("}")}var d=this.parameter("columns");if(d){d=d.split(",");var f=n.bind(this);$(window).on("resize",f),$DOC.onload(f)}this.template(function(t){return"<style"+t.printAttributes()+">"+s.join("")+"</style>"})}t.prototype=controls.control_prototype,controls.typeRegister("page-layout",t)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(){function t(t,e){controls.controlInitialize(this,"footer-layout",t,e,$ENV.default_template,$ENV.default_inner_template);this.parameter("media"),this.parameter("padding"),this.parameter("scheme")||"line";switch($DOC.processContent(this,this.text()),this.text(""),this.parameter("scheme")){case"line":this.listen("element",function(){this.lineParseDOM()}),$DOC.appendCSS("controls.footer-layout.line",".cfl-line-container { margin:0; padding:0; float:left; }.cfl-line-container > li { line-height:32px; list-style:none; float:left; padding:12px 24px 12px 0px; }.cfl-line-item { line-height:32px; list-style:none; float:left; padding:12px 24px 12px 0px; }.cfl-line-container:last-child, .cfl-line-item:last-child { float:right; padding-right:0; }.cfl-line-container:first-child, .cfl-line-item:first-child { float:left; }"),this.lineParseDOM=function(){var t=this._element;
if(t)for(var e=t.childNodes,n=e.length-1;n>=0;n--){var i=e[n];if(1===i.nodeType){var r=i.tagName.toUpperCase();switch(r){case"UL":$(i).addClass("cfl-line-container");break;case"HR":t.removeChild(i);break;default:$(i).addClass("cfl-line-item")}}}}}}t.prototype=controls.control_prototype,controls.typeRegister("footer-layout",t)}"undefined"!=typeof $ENV?t():(window.defercqueue||(window.defercqueue=[])).push(t)}(),function(){"use strict";function t(t){var e=t.parameters["#{__type}"].split("."),n=c[e];n||(n=[],c[e]=n),n.push(t);var i=$DOC.components+e[0]+"/"+e[1]+"/"+e[0]+"."+e[1]+".js",r=document.head,o=$(r).children('script[src*="'+i+'"]:first')[0];if(!o){var o=controls.extend(document.createElement("script"),{src:i,async:!0});o.addEventListener("load",function(){c[e].forEach(function(t){t.state=1}),c[e]=[]}),o.addEventListener("error",function(){c[e].forEach(function(t){t.state=-1}),c[e]=[]}),r.appendChild(o)}}function e(e,n){var i=($DOC.sections,$OPT.edit_mode);if(i)for(var r in $DOC.sections){var o=$DOC.sections[r];"object"==typeof o&&o.deleteAll&&o.source_node===e&&o.deleteAll()}var s,a,l=arguments.length>1?n:e.nodeValue,c=l[0],u=document.body;if(" \n [@$&*#".indexOf(c)<0)try{if("%"===c){var p=l.match(/^(%(?:[^ \t\n\(]{1,128}\.)?[^ \t\n\(]{1,128})(#[^\t\n\(]{1,512})?\(([\S\s]*)\)\1$/);p&&(s=controls.createOrStub(p[1].slice(1)+(p[2]||""),{$text:p[3]}))}else if("!"===c){$DOC.removeSection(l.slice(1));var d=e.parentNode;d&&d.removeChild(e)}else{var f=l.indexOf(" "),h=l.indexOf("\n"),m=l.indexOf("->");if(0>f&&0>h&&0>m)$DOC.sectionPlaceholder(l,e);else if(0>f&&m>0)$DOC.sectionMover(e,l.slice(0,m),l.slice(m+2));else if(h>0&&(0>f||f>h)&&(f=h),f>0&&128>f){a=l.slice(0,f);var g=l.slice(f+1);s=controls.create("div",{"class":a}),s.name=a,$DOC.addSection(a,s),s.template($ENV.default_template,$ENV.default_inner_template),$DOC.processContent(s,g)}}if(s){if(s.createElement(e,2),2===i)s.source_node=e,s.source_section=a;else{var d=e.parentNode;d&&d.removeChild(e)}s._element&&s._element.parentNode===u&&$DOC.cbody.add(s),s.isStub&&new t(s),$DOC.events.section.raise(a,s,e)}}catch(v){console.log(v)}}function n(t,n){var i=document.head,r=document.body;if(t||r){for(var o=$DOC.sections,s=$DOC.order,a=[],l=document.createNodeIterator(t?i:r,128,null,!1),c=l.nextNode();c;)n.indexOf(c)<0&&(n.push(c),a.push(c)),c=l.nextNode();for(var u=0,p=a.length;p>u;u++)e(a[u]);if(!t){var d=$DOC.cbody;if(!d._element&&r&&d.attachAll(),d._element)for(var f in o)if(f)try{var h,m=o[f];if(m&&m.placeholder&&(h=m.placeholder,m=m.content),"string"==typeof m){var g=d.add("div",{"class":f});g.name=f,g.template($ENV.default_template,$ENV.default_inner_template),$DOC.processContent(g,m);var v=!1;if(h)g.createElement(h,2),v=!0;else{var y=s.indexOf(f);if(y>=0){for(var u=y+1,p=s.length;p>u;u++){var b=o[s[u]];if(b&&"string"!=typeof b){g.createElement(b.element,2),v=!0;break}}if(!v)for(var u=y-1;u>=0;u--){var x=o[s[u]];if(x&&"string"!=typeof x){x.source_node?g.createElement(x.source_node,3):g.createElement(x.element,3),v=!0;break}}}}v||g.createElement(document.body,0),o[f]=g}}catch(w){console.log(w)}}}}function i(t,e){if(e){var n=e.element;if(n)$(n).find("table").addClass("table table-bordered table-stripped");else for(var i in e.controls)$(e.controls[i].element).find("table").addClass("table table-bordered table-stripped")}}function r(){function t(t,e){var n=document.querySelector(t);return n?n[e]:0}var e=0,n=0,i=0,r=0;e+=t(".fixed-top-bar","clientHeight"),e+=t(".fixed-top-panel","clientHeight"),n+=t(".fixed-right-side-bar","clientWidth"),n+=t(".fixed-right-side-panel","clientWidth"),i+=t(".fixed-bottom-bar","clientHeight"),i+=t(".fixed-bottom-panel","clientHeight"),r+=t(".fixed-left-side-bar","clientWidth"),r+=t(".fixed-left-side-panel","clientWidth"),$DOC.appendCSS("document#onresize","body{padding: "+e+"px "+n+"px "+i+"px "+r+"px;}")}if(!$DOC.state){if(window.defercqueue){var o=window.defercqueue;delete window.defercqueue;for(var s=0,a=o.length;a>s;s++)try{o[s]()}catch(l){console.log(l)}}$DOC.loadUserJS();var c={},u=function(t){return t.getText()+t.controls.map(function(t){return t.wrappedHTML()}).join("")};$DOC.addTextContainer=function(t,e){var n=t.add("container",{$text:e}),i=e.indexOf("{{");i>=0&&e.indexOf("}}")>i&&(n.getText=controls.template(e),n.template(u))},$DOC.processContent=function(e,n){if(n){if(this.components_off)return this.addTextContainer(e,n),void 0;var i=this.filters;for(var r in i){var o=i[r];n=n.replace(o.regex,o)}for(var n=n.split(/(%\S{1,128})((?:#.*)?\([\S\s]*?\)\1)/gm),s="",r=0,a=n.length;a>r;r++){var l=n[r];if(l){if(a-1>r&&"%"===l[0]){var c=n[r+1];if(c.slice(-l.length-1)===")"+l){var u=c.indexOf("("),p=c.substr(0,u),d=p.indexOf("#"),f=l.substr(1);if(u>=0&&(!p||0===d)){var h=c.substr(u+1,c.length-l.length-u-2);r++;try{var m=controls.createOrStub(f+p,{$text:h});if(m){s&&(this.addTextContainer(e,s),s=""),e.add(m),m.isStub&&(m.listen("control",function(t){var e=$DOC.events.component;e&&e.raise(t)}),new t(m));var g=$DOC.events.component;g&&g.raise(m)}else e.add("p",{$text:"<"+f+"?>"});continue}catch(v){console.log(v)}}}}s+=l}}s&&this.addTextContainer(e,s)}},$DOC.processTextNode=e,$DOC.finalTransformation=function(){if(!$DOC.state){$DOC.state=1,$DOC.cbody.attach(),$DOC.listen("section",i);var t=[];if($DOC.auto){var e=setInterval(function(){r()},25);$DOC.onready(function(){$DOC.cbody.attachAll(),r(),$(window).on("resize",r)});var o=function(){if(window.removeEventListener("load",o),!($DOC.state>1)){$DOC.state=2,clearInterval(e);var t=$DOC.forceEvent("load");t.raise(),t.clear(),r(),setTimeout(r,200)}};"complete"===document.readyState?o():window.addEventListener("load",o)}else if(1!==$OPT.edit_mode){var e=setInterval(function(){n(!1,t),r()},25);$DOC.onready(function(){n(!0,t),n(!1,t),r(),$(window).on("resize",r)});var o=function(){if(window.removeEventListener("load",o),clearInterval(e),!($DOC.state>1)){if(n(!1,t),$DOC.state=2,window.location.hash){window.location=window.location;var i=parseInt(window.getComputedStyle(document.body).paddingTop);i&&window.scrollBy(0,-i)}var s=$DOC.forceEvent("load");s.raise(),s.clear(),r(),setTimeout(r,200)}};"complete"===document.readyState?o():window.addEventListener("load",o)}else{var s=$DOC.forceEvent("load");s.raise(),s.clear()}}},$DOC.onready($DOC.checkAllScriptsReady.bind($DOC))}}();