Newer
Older
Mitchell Moore
committed
function joinRoot(t){var e=[];e.push(ROOT_PATH),e.push(t);var n="/",r=new RegExp(n+"{1,}","g");return e.join(n).replace(r,n)}function start_joyride(){$("#joyride").length&&$("#joyride").joyride()}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(S,t){function s(t){var e=!!t&&"length"in t&&t.length,n=pt.type(t);return"function"!==n&&!pt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function e(t,n,r){if(pt.isFunction(n))return pt.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return pt.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(St.test(n))return pt.filter(n,t,r);n=pt.filter(n,t)}return pt.grep(t,function(t){return-1<pt.inArray(t,n)!==r})}function n(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var n={};return pt.each(t.match(At)||[],function(t,e){n[e]=!0}),n}function i(){rt.addEventListener?(rt.removeEventListener("DOMContentLoaded",o),S.removeEventListener("load",o)):(rt.detachEvent("onreadystatechange",o),S.detachEvent("onload",o))}function o(){(rt.addEventListener||"load"===S.event.type||"complete"===rt.readyState)&&(i(),pt.ready())}function l(t,e,n){if(n===undefined&&1===t.nodeType){var r="data-"+e.replace(Lt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Nt.test(n)?pt.parseJSON(n):n)}catch(i){}pt.data(t,e,n)}else n=undefined}return n}function u(t){var e;for(e in t)if(("data"!==e||!pt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function r(t,e,n,r){if(It(t)){var i,o,a=pt.expando,s=t.nodeType,l=s?pt.cache:t,u=s?t[a]:t[a]&&a;if(u&&l[u]&&(r||l[u].data)||n!==undefined||"string"!=typeof e)return u||(u=s?t[a]=nt.pop()||pt.guid++:a),l[u]||(l[u]=s?{}:{toJSON:pt.noop}),"object"!=typeof e&&"function"!=typeof e||(r?l[u]=pt.extend(l[u],e):l[u].data=pt.extend(l[u].data,e)),o=l[u],r||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[pt.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[pt.camelCase(e)]):i=o,i}}function a(t,e,n){if(It(t)){var r,i,o=t.nodeType,a=o?pt.cache:t,s=o?t[pt.expando]:pt.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){i=(e=pt.isArray(e)?e.concat(pt.map(e,pt.camelCase)):e in r?[e]:(e=pt.camelCase(e))in r?[e]:e.split(" ")).length;for(;i--;)delete r[e[i]];if(n?!u(r):!pt.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?pt.cleanData([t],!0):dt.deleteExpando||a!=a.window?delete a[s]:a[s]=undefined)}}}function d(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pt.css(t,e,"")},l=s(),u=n&&n[3]||(pt.cssNumber[e]?"":"px"),c=(pt.cssNumber[e]||"px"!==u&&+l)&&Ht.exec(pt.css(t,e));if(c&&c[3]!==u)for(u=u||c[3],n=n||[],c=+l||1;c/=o=o||".5",pt.style(t,e,c+u),o!==(o=s()/l)&&1!==o&&--a;);return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function g(t){var e=Jt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function b(t,e){var n,r,i=0,o="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):undefined;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||pt.nodeName(r,e)?o.push(r):pt.merge(o,b(r,e));return e===undefined||e&&pt.nodeName(t,e)?pt.merge([t],o):o}function v(t,e){for(var n,r=0;null!=(n=t[r]);r++)pt._data(n,"globalEval",!e||pt._data(e[r],"globalEval"))}function y(t){Bt.test(t.type)&&(t.defaultChecked=t.checked)}function m(t,e,n,r,i){for(var o,a,s,l,u,c,d,f=t.length,p=g(e),h=[],m=0;m<f;m++)if((a=t[m])||0===a)if("object"===pt.type(a))pt.merge(h,a.nodeType?[a]:a);else if(Qt.test(a)){for(l=l||p.appendChild(e.createElement("div")),u=(Ut.exec(a)||["",""])[1].toLowerCase(),d=Vt[u]||Vt._default,l.innerHTML=d[1]+pt.htmlPrefilter(a)+d[2],o=d[0];o--;)l=l.lastChild;if(!dt.leadingWhitespace&&Xt.test(a)&&h.push(e.createTextNode(Xt.exec(a)[0])),!dt.tbody)for(o=(a="table"!==u||Yt.test(a)?"<table>"!==d[1]||Yt.test(a)?0:l:l.firstChild)&&a.childNodes.length;o--;)pt.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pt.merge(h,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else h.push(e.createTextNode(a));for(l&&p.removeChild(l),dt.appendChecked||pt.grep(b(h,"input"),y),m=0;a=h[m++];)if(r&&-1<pt.inArray(a,r))i&&i.push(a);else if(s=pt.contains(a.ownerDocument,a),l=b(p.appendChild(a),"script"),s&&v(l),n)for(o=0;a=l[o++];)zt.test(a.type||"")&&n.push(a);return l=null,p}function f(){return!0}function p(){return!1}function h(){try{return rt.activeElement}catch(t){}}function _(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=undefined),e)_(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=undefined):null==i&&("string"==typeof n?(i=r,r=undefined):(i=r,r=n,n=undefined)),!1===i)i=p;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return pt().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=pt.guid++)),t.each(function(){pt.event.add(this,e,i,r,n)})}function x(t,e){return pt.nodeName(t,"table")&&pt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function w(t){return t.type=(null!==pt.find.attr(t,"type"))+"/"+t.type,t}function T(t){var e=se.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function C(t,e){if(1===e.nodeType&&pt.hasData(t)){var n,r,i,o=pt._data(t),a=pt._data(e,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)pt.event.add(e,n,s[n][r]);a.data&&(a.data=pt.extend({},a.data))}}function D(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!dt.noCloneEvent&&e[pt.expando]){for(r in(i=pt._data(e)).events)pt.removeEvent(e,r,i.handle);e.removeAttribute(pt.expando)}"script"===n&&e.text!==t.text?(w(e).text=t.text,T(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),dt.html5Clone&&t.innerHTML&&!pt.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Bt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function $(n,r,i,o){r=ot.apply([],r);var t,e,a,s,l,u,c=0,d=n.length,f=d-1,p=r[0],h=pt.isFunction(p);if(h||1<d&&"string"==typeof p&&!dt.checkClone&&ae.test(p))return n.each(function(t){var e=n.eq(t);h&&(r[0]=p.call(this,t,e.html())),$(e,r,i,o)});if(d&&(t=(u=m(r,n[0].ownerDocument,!1,n,o)).firstChild,1===u.childNodes.length&&(u=t),t||o)){for(a=(s=pt.map(b(u,"script"),w)).length;c<d;c++)e=u,c!==f&&(e=pt.clone(e,!0,!0),a&&pt.merge(s,b(e,"script"))),i.call(n[c],e,c);if(a)for(l=s[s.length-1].ownerDocument,pt.map(s,T),c=0;c<a;c++)e=s[c],zt.test(e.type||"")&&!pt._data(e,"globalEval")&&pt.contains(l,e)&&(e.src?pt._evalUrl&&pt._evalUrl(e.src):pt.globalEval((e.text||e.textContent||e.innerHTML||"").replace(le,"")));u=t=null}return n}function j(t,e,n){for(var r,i=e?pt.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pt.cleanData(b(r)),r.parentNode&&(n&&pt.contains(r.ownerDocument,r)&&v(b(r,"script")),r.parentNode.removeChild(r));return t}function k(t,e){var n=pt(e.createElement(t)).appendTo(e.body),r=pt.css(n[0],"display");return n.detach(),r}function A(t){var e=rt,n=de[t];return n||("none"!==(n=k(t,e))&&n||((e=((ce=(ce||pt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||ce[0].contentDocument).document).write(),e.close(),n=k(t,e),ce.detach()),de[t]=n),n}function E(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function I(t){if(t in De)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=Ce.length;n--;)if((t=Ce[n]+e)in De)return t}function N(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=pt._data(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Wt(r)&&(o[a]=pt._data(r,"olddisplay",A(r.nodeName)))):(i=Wt(r),(n&&"none"!==n||!i)&&pt._data(r,"olddisplay",i?n:pt.css(r,"display"))));for(a=0;a<s;a++)(r=t[a]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function L(t,e,n){var r=we.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function R(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=pt.css(t,n+Mt[o],!0,i)),r?("content"===n&&(a-=pt.css(t,"padding"+Mt[o],!0,i)),"margin"!==n&&(a-=pt.css(t,"border"+Mt[o]+"Width",!0,i))):(a+=pt.css(t,"padding"+Mt[o],!0,i),"padding"!==n&&(a+=pt.css(t,"border"+Mt[o]+"Width",!0,i)));return a}function F(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=ge(t),a=dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=be(t,e,o))<0||null==i)&&(i=t.style[e]),pe.test(i))return i;r=a&&(dt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+R(t,e,n||(a?"border":"content"),r,o)+"px"}function P(t,e,n,r,i){return new P.prototype.init(t,e,n,r,i)}function O(){return S.setTimeout(function(){$e=undefined}),$e=pt.now()}function H(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=Mt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function M(t,e,n){for(var r,i=(B.tweeners[e]||[]).concat(B.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function W(e,t,n){var r,i,o,a,s,l,u,c=this,d={},f=e.style,p=e.nodeType&&Wt(e),h=pt._data(e,"fxshow");for(r in n.queue||(null==(s=pt._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,pt.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(u=pt.css(e,"display"))?pt._data(e,"olddisplay")||A(e.nodeName):u)&&"none"===pt.css(e,"float")&&(dt.inlineBlockNeedsLayout&&"inline"!==A(e.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",dt.shrinkWrapBlocks()||c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),t)if(i=t[r],Le.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||h[r]===undefined)continue;p=!0}d[r]=h&&h[r]||pt.style(e,r)}else u=undefined;if(pt.isEmptyObject(d))"inline"===("none"===u?A(e.nodeName):u)&&(f.display=u);else for(r in h?"hidden"in h&&(p=h.hidden):h=pt._data(e,"fxshow",{}),o&&(h.hidden=!p),p?pt(e).show():c.done(function(){pt(e).hide()}),c.done(function(){var t;for(t in pt._removeData(e,"fxshow"),d)pt.style(e,t,d[t])}),d)a=M(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}function q(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=pt.camelCase(n)],o=t[n],pt.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=pt.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}function B(o,t,e){var n,a,r=0,i=B.prefilters.length,s=pt.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=$e||O(),e=Math.max(0,u.startTime+u.duration-t),n=1-(e/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return s.notifyWith(o,[u,n,e]),n<1&&i?e:(s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:pt.extend({},t),opts:pt.extend(!0,{specialEasing:{},easing:pt.easing._default},e),originalProperties:t,originalOptions:e,startTime:$e||O(),duration:e.duration,tweens:[],createTween:function(t,e){var n=pt.Tween(o,u.opts,t,e,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(n),n},stop:function(t){var e=0,n=t?u.tweens.length:0;if(a)return this;for(a=!0;e<n;e++)u.tweens[e].run(1);return t?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,t])):s.rejectWith(o,[u,t]),this}}),c=u.props;for(q(c,u.opts.specialEasing);r<i;r++)if(n=B.prefilters[r].call(u,o,c,u.opts))return pt.isFunction(n.stop)&&(pt._queueHooks(u.elem,u.opts.queue).stop=pt.proxy(n.stop,n)),n;return pt.map(c,M,u),pt.isFunction(u.opts.start)&&u.opts.start.call(o,u),pt.fx.timer(pt.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function U(t){return pt.attr(t,"class")||""}function z(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match(At)||[];if(pt.isFunction(e))for(;n=i[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function X(e,i,o,a){function s(t){var r;return l[t]=!0,pt.each(e[t]||[],function(t,e){var n=e(i,o,a);return"string"!=typeof n||u||l[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),s(n),!1)}),r}var l={},u=e===an;return s(i.dataTypes[0])||!l["*"]&&s("*")}function J(t,e){var n,r,i=pt.ajaxSettings.flatOptions||{};for(r in e)e[r]!==undefined&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&pt.extend(!0,t,n),t}function V(t,e,n){for(var r,i,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),i===undefined&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Q(t,e,n,r){var i,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function Y(t){return t.style&&t.style.display||pt.css(t,"display")}function G(t){if(!pt.contains(t.ownerDocument||rt,t))return!0;for(;t&&1===t.nodeType;){if("none"===Y(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function K(n,t,r,i){var e;if(pt.isArray(t))pt.each(t,function(t,e){r||dn.test(n)?i(n,e):K(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,i)});else if(r||"object"!==pt.type(t))i(n,t);else for(e in t)K(n+"["+e+"]",t[e],r,i)}function Z(){try{return new S.XMLHttpRequest}catch(t){}}function tt(){try{return new S.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function et(t){return pt.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var nt=[],rt=S.document,it=nt.slice,ot=nt.concat,at=nt.push,st=nt.indexOf,lt={},ut=lt.toString,ct=lt.hasOwnProperty,dt={},ft="1.12.4",pt=function(t,e){return new pt.fn.init(t,e)},ht=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,mt=/^-ms-/,gt=/-([\da-z])/gi,bt=function(t,e){return e.toUpperCase()};pt.fn=pt.prototype={jquery:ft,constructor:pt,selector:"",length:0,toArray:function(){return it.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:it.call(this)},pushStack:function(t){var e=pt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return pt.each(this,t)},map:function(n){return this.pushStack(pt.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(it.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:at,sort:nt.sort,splice:nt.splice},pt.extend=pt.fn.extend=function(t){var e,n,r,i,o,a,s=t||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"==typeof s||pt.isFunction(s)||(s={}),l===u&&(s=this,l--);l<u;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],s!==(r=o[i])&&(c&&r&&(pt.isPlainObject(r)||(n=pt.isArray(r)))?(n?(n=!1,a=e&&pt.isArray(e)?e:[]):a=e&&pt.isPlainObject(e)?e:{},s[i]=pt.extend(c,a,r)):r!==undefined&&(s[i]=r));return s},pt.extend({expando:"jQuery"+(ft+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===pt.type(t)},isArray:Array.isArray||function(t){return"array"===pt.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!pt.isArray(t)&&0<=e-parseFloat(e)+1},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==pt.type(t)||t.nodeType||pt.isWindow(t))return!1;try{if(t.constructor&&!ct.call(t,"constructor")&&!ct.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!dt.ownFirst)for(e in t)return ct.call(t,e);for(e in t);return e===undefined||ct.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?lt[ut.call(t)]||"object":typeof t},globalEval:function(t){t&&pt.trim(t)&&(S.execScript||function(t){S.eval.call(S,t)})(t)},camelCase:function(t){return t.replace(mt,"ms-").replace(gt,bt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(s(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(ht,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(s(Object(t))?pt.merge(n,"string"==typeof t?[t]:t):at.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(st)return st.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;e[r]!==undefined;)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(s(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return ot.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(i=t[e],e=t,t=i),pt.isFunction(t)?(n=it.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(it.call(arguments)))}).guid=t.guid=t.guid||pt.guid++,r):undefined},now:function(){return+new Date},support:dt}),"function"==typeof Symbol&&(pt.fn[Symbol.iterator]=nt[Symbol.iterator]),pt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){lt["[object "+e+"]"]=e.toLowerCase()});var vt=function(n){function _(t,e,n,r){var i,o,a,s,l,u,c,d,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:M)!==I&&E(e),e=e||I,L)){if(11!==p&&(u=bt.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&O(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return K.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&b.getElementsByClassName&&e.getElementsByClassName)return K.apply(n,e.getElementsByClassName(i)),n}if(b.qsa&&!z[t+" "]&&(!R||!R.test(t))){if(1!==p)f=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(yt,"\\$&"):e.setAttribute("id",s=H),o=(c=C(t)).length,l=ft.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=l+" "+g(c[o]);d=c.join(","),f=vt.test(t)&&m(e.parentNode)||e}if(d)try{return K.apply(n,f.querySelectorAll(d)),n}catch(h){}finally{s===H&&e.removeAttribute("id")}}}return $(t.replace(st,"$1"),e,n,r)}function t(){function n(t,e){return r.push(t+" ")>w.cacheLength&&delete n[r.shift()],n[t+" "]=e}var r=[];return n}function l(t){return t[H]=!0,t}function i(t){var e=I.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function e(t,e){for(var n=t.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=e}function u(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||J)-(~t.sourceIndex||J);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function r(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function o(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function a(a){return l(function(o){return o=+o,l(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function m(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function s(){}function g(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function d(s,t,e){var l=t.dir,u=e&&"parentNode"===l,c=q++;return t.first?function(t,e,n){for(;t=t[l];)if(1===t.nodeType||u)return s(t,e,n)}:function(t,e,n){var r,i,o,a=[W,c];if(n){for(;t=t[l];)if((1===t.nodeType||u)&&s(t,e,n))return!0}else for(;t=t[l];)if(1===t.nodeType||u){if((r=(i=(o=t[H]||(t[H]={}))[t.uniqueID]||(o[t.uniqueID]={}))[l])&&r[0]===W&&r[1]===c)return a[2]=r[2];if((i[l]=a)[2]=s(t,e,n))return!0}}}function f(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function v(t,e,n){for(var r=0,i=e.length;r<i;r++)_(t,e[r],n);return n}function x(t,e,n,r,i){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),u&&e.push(s)));return a}function y(p,h,m,g,b,t){return g&&!g[H]&&(g=y(g)),b&&!b[H]&&(b=y(b,t)),l(function(t,e,n,r){var i,o,a,s=[],l=[],u=e.length,c=t||v(h||"*",n.nodeType?[n]:n,[]),d=!p||!t&&h?c:x(c,s,p,n,r),f=m?b||(t?p:u||g)?[]:e:d;if(m&&m(d,f,n,r),g)for(i=x(f,l),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(f[l[o]]=!(d[l[o]]=a));if(t){if(b||p){if(b){for(i=[],o=f.length;o--;)(a=f[o])&&i.push(d[o]=a);b(null,f=[],i,r)}for(o=f.length;o--;)(a=f[o])&&-1<(i=b?tt(t,a):s[o])&&(t[i]=!(e[i]=a))}}else f=x(f===e?f.splice(u,f.length):f),b?b(null,e,f,r):K.apply(e,f)})}function p(t){for(var i,e,n,r=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,l=d(function(t){return t===i},a,!0),u=d(function(t){return-1<tt(i,t)},a,!0),c=[function(t,e,n){var r=!o&&(n||e!==j)||((i=e).nodeType?l(t,e,n):u(t,e,n));return i=null,r}];s<r;s++)if(e=w.relative[t[s].type])c=[d(f(c),e)];else{if((e=w.filter[t[s].type].apply(null,t[s].matches))[H]){for(n=++s;n<r&&!w.relative[t[n].type];n++);return y(1<s&&f(c),1<s&&g(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),e,s<n&&p(t.slice(s,n)),n<r&&p(t=t.slice(n)),n<r&&g(t))}c.push(e)}return f(c)}function c(g,b){var v=0<b.length,y=0<g.length,t=function(t,e,n,r,i){var o,a,s,l=0,u="0",c=t&&[],d=[],f=j,p=t||y&&w.find.TAG("*",i),h=W+=null==f?1:Math.random()||.1,m=p.length;for(i&&(j=e===I||e||i);u!==m&&null!=(o=p[u]);u++){if(y&&o){for(a=0,e||o.ownerDocument===I||(E(o),n=!L);s=g[a++];)if(s(o,e||I,n)){r.push(o);break}i&&(W=h)}v&&((o=!s&&o)&&l--,t&&c.push(o))}if(l+=u,v&&u!==l){for(a=0;s=b[a++];)s(c,d,e,n);if(t){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=Y.call(r));d=x(d)}K.apply(r,d),i&&!t&&0<d.length&&1<l+b.length&&_.uniqueSort(r)}return i&&(W=h,j=f),c};return v?l(t):t}var h,b,w,S,T,C,D,$,j,k,A,E,I,N,L,R,F,P,O,H="sizzle"+1*new Date,M=n.document,W=0,q=0,B=t(),U=t(),z=t(),X=function(t,e){return t===e&&(A=!0),0},J=1<<31,V={}.hasOwnProperty,Q=[],Y=Q.pop,G=Q.push,K=Q.push,Z=Q.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ut=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),ft=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,yt=/'|\\/g,_t=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},wt=function(){E()};try{K.apply(Q=Z.call(M.childNodes),M.childNodes),Q[M.childNodes.length].nodeType}catch(St){K={apply:Q.length?function(t,e){G.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}for(h in b=_.support={},T=_.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},E=_.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:M;return r!==I&&9===r.nodeType&&r.documentElement&&(N=(I=r).documentElement,L=!T(I),(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),b.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=i(function(t){return t.appendChild(I.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=gt.test(I.getElementsByClassName),b.getById=i(function(t){return N.appendChild(t).id=H,!I.getElementsByName||!I.getElementsByName(H).length}),b.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&L){var n=e.getElementById(t);return n?[n]:[]}},w.filter.ID=function(t){var e=t.replace(_t,xt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var n=t.replace(_t,xt);return function(t){var e="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),w.find.TAG=b.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=b.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&L)return e.getElementsByClassName(t)},F=[],R=[],(b.qsa=gt.test(I.querySelectorAll))&&(i(function(t){N.appendChild(t).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+H+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+H+"+*").length||R.push(".#.+[+~]")}),i(function(t){var e=I.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(b.matchesSelector=gt.test(P=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){b.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),F.push("!=",ot)}),R=R.length&&new RegExp(R.join("|")),F=F.length&&new RegExp(F.join("|")),e=gt.test(N.compareDocumentPosition),O=e||gt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return A=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===I||t.ownerDocument===M&&O(M,t)?-1:e===I||e.ownerDocument===M&&O(M,e)?1:k?tt(k,t)-tt(k,e):0:4&n?-1:1)}:function(t,e){if(t===e)return A=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===I?-1:e===I?1:i?-1:o?1:k?tt(k,t)-tt(k,e):0;if(i===o)return u(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?u(a[r],s[r]):a[r]===M?-1:s[r]===M?1:0}),I},_.matches=function(t,e){return _(t,null,null,e)},_.matchesSelector=function(t,e){if((t.ownerDocument||t)!==I&&E(t),e=e.replace(ct,"='$1']"),b.matchesSelector&&L&&!z[e+" "]&&(!F||!F.test(e))&&(!R||!R.test(e)))try{var n=P.call(t,e);if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(St){}return 0<_(e,I,null,[t]).length},_.contains=function(t,e){return(t.ownerDocument||t)!==I&&E(t),O(t,e)},_.attr=function(t,e){(t.ownerDocument||t)!==I&&E(t);var n=w.attrHandle[e.toLowerCase()],r=n&&V.call(w.attrHandle,e.toLowerCase())?n(t,e,!L):undefined;return r!==undefined?r:b.attributes||!L?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},_.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],r=0,i=0;if(A=!b.detectDuplicates,k=!b.sortStable&&t.slice(0),t.sort(X),A){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return k=null,t},S=_.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=S(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=S(e);return n},(w=_.selectors={cacheLength:50,createPseudo:l,match:pt,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(_t,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,xt),"~="===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]||_.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]&&_.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,xt).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("(^|"+nt+")"+t+"("+nt+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=_.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e.replace(at," ")+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,t,e,m,g){var b="nth"!==h.slice(0,3),v="last"!==h.slice(-4),y="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,a,s,l,u=b!==v?"nextSibling":"previousSibling",c=t.parentNode,d=y&&t.nodeName.toLowerCase(),f=!n&&!y,p=!1;if(c){if(b){for(;u;){for(a=t;a=a[u];)if(y?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=u="only"===h&&!l&&"nextSibling"}return!0}if(l=[v?c.firstChild:c.lastChild],v&&f){for(p=(s=(r=(i=(o=(a=c)[H]||(a[H]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===W&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(p=s=0)||l.pop();)if(1===a.nodeType&&++p&&a===t){i[h]=[W,s,p];break}}else if(f&&(p=s=(r=(i=(o=(a=t)[H]||(a[H]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===W&&r[1]),!1===p)for(;(a=++s&&a&&a[u]||(p=s=0)||l.pop())&&((y?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(f&&((i=(o=a[H]||(a[H]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[W,p]),a!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,a=w.pseudos[t]||w.setFilters[t.toLowerCase()]||_.error("unsupported pseudo: "+t);return a[H]?a(o
):1<a.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?l(function(t,e){for(var n,r=a(t,o),i=r.length;i--;)t[n=tt(t,r[i])]=!(e[n]=r[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:l(function(t){var r=[],i=[],s=D(t.replace(st,"$1"));return s[H]?l(function(t,e,n,r){for(var i,o=s(t,null,r,[]),a=t.length;a--;)(i=o[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return r[0]=t,s(r,null,n,i),r[0]=null,!i.pop()}}),has:l(function(e){return function(t){return 0<_(e,t).length}}),contains:l(function(e){return e=e.replace(_t,xt),function(t){return-1<(t.textContent||t.innerText||S(t)).indexOf(e)}}),lang:l(function(n){return ft.test(n||"")||_.error("unsupported lang: "+n),n=n.replace(_t,xt).toLowerCase(),function(t){var e;do{if(e=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===N},focus:function(t){return t===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},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,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return ht.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"))||"text"===e.toLowerCase())},first:a(function(){return[0]}),last:a(function(t,e){return[e-1]}),eq:a(function(t,e,n){return[n<0?n+e:n]}),even:a(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:a(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:a(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:a(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[h]=r(h);for(h in{submit:!0,reset:!0})w.pseudos[h]=o(h);return s.prototype=w.filters=w.pseudos,w.setFilters=new s,C=_.tokenize=function(t,e){var n,r,i,o,a,s,l,u=U[t+" "];if(u)return e?0:u.slice(0);for(a=t,s=[],l=w.preFilter;a;){for(o in n&&!(r=lt.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=ut.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(st," ")}),a=a.slice(n.length)),w.filter)!(r=pt[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?_.error(t):U(t,s).slice(0)},D=_.compile=function(t,e){var n,r=[],i=[],o=z[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)(o=p(e[n]))[H]?r.push(o):i.push(o);(o=z(t,c(i,r))).selector=t}return o},$=_.select=function(t,e,n,r){var i,o,a,s,l,u="function"==typeof t&&t,c=!r&&C(t=u.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&b.getById&&9===e.nodeType&&L&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(_t,xt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((l=w.find[s])&&(r=l(a.matches[0].replace(_t,xt),vt.test(o[0].type)&&m(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&g(o)))return K.apply(n,r),n;break}}return(u||D(t,c))(r,e,!L,n,!e||vt.test(t)&&m(e.parentNode)||e),n},b.sortStable=H.split("").sort(X).join("")===H,b.detectDuplicates=!!A,E(),b.sortDetached=i(function(t){return 1&t.compareDocumentPosition(I.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||e("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||e("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||e(et,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),_}(S);pt.find=vt,pt.expr=vt.selectors,pt.expr[":"]=pt.expr.pseudos,pt.uniqueSort=pt.unique=vt.uniqueSort,pt.text=vt.getText,pt.isXMLDoc=vt.isXML,pt.contains=vt.contains;var yt=function(t,e,n){for(var r=[],i=n!==undefined;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&pt(t).is(n))break;r.push(t)}return r},_t=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},xt=pt.expr.match.needsContext,wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,St=/^.[^:#\[\.,]*$/;pt.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?pt.find.matchesSelector(r,t)?[r]:[]:pt.find.matches(t,pt.grep(e,function(t){return 1===t.nodeType}))},pt.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(pt(t).filter(function(){for(e=0;e<i;e++)if(pt.contains(r[e],this))return!0}));for(e=0;e<i;e++)pt.find(t,r[e],n);return(n=this.pushStack(1<i?pt.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(e(this,t||[],!1))},not:function(t){return this.pushStack(e(this,t||[],!0))},is:function(t){return!!e(this,"string"==typeof t&&xt.test(t)?pt(t):t||[],!1).length}});var Tt,Ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(pt.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||Tt,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):pt.isFunction(t)?"undefined"!=typeof n.ready?n.ready(t):t(pt):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),pt.makeArray(t,this));if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:Ct.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof pt?e[0]:e,pt.merge(this,pt.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:rt,!0)),wt.test(r[1])&&pt.isPlainObject(e))for(r in e)pt.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}if((i=rt.getElementById(r[2]))&&i.parentNode){if(i.id!==r[2])return Tt.find(t);this.length=1,this[0]=i}return this.context=rt,this.selector=t,this}).prototype=pt.fn,Tt=pt(rt);var Dt=/^(?:parents|prev(?:Until|All))/,$t={children:!0,contents:!0,next:!0,prev:!0};pt.fn.extend({has:function(t){var e,n=pt(t,this),r=n.length;return this.filter(function(){for(e=0;e<r;e++)if(pt.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=xt.test(t)||"string"!=typeof t?pt(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&pt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?pt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?pt.inArray(this[0],pt(t)):pt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(pt.uniqueSort(pt.merge(this.get(),pt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),pt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,n){return yt(t,"parentNode",n)},next:function(t){return n(t,"nextSibling")},prev:function(t){return n(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,n){return yt(t,"nextSibling",n)},prevUntil:function(t,e,n){return yt(t,"previousSibling",n)},siblings:function(t){return _t((t.parentNode||{}).firstChild,t)},children:function(t){return _t(t.firstChild)},contents:function(t){return pt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:pt.merge([],t.childNodes)}},function(r,i){pt.fn[r]=function(t,e){var n=pt.map(this,i,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=pt.filter(e,n)),1<this.length&&($t[r]||(n=pt.uniqueSort(n)),Dt.test(r)&&(n=n.reverse())),this.pushStack(n)}});var jt,kt,At=/\S+/g;for(kt in pt.Callbacks=function(r){r="string"==typeof r?c(r):pt.extend({},r);var i,t,e,n,o=[],a=[],s=-1,l=function(){for(n=r.once,e=i=!0;a.length;s=-1)for(t=a.shift();++s<o.length;)!1===o[s].apply(t[0],t[1])&&r.stopOnFalse&&(s=o.length,t=!1);r.memory||(t=!1),i=!1,n&&(o=t?[]:"")},u={add:function(){return o&&(t&&!i&&(s=o.length-1,a.push(t)),function n(t){pt.each(t,function(t,e){pt.isFunction(e)?r.unique&&u.has(e)||o.push(e):e&&e.length&&"string"!==pt.type(e)&&n(e)})}(arguments),t&&!i&&l()),this},remove:function(){return pt.each(arguments,function(t,e){for(var n;-1<(n=pt.inArray(e,o,n));)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?-1<pt.inArray(t,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return n=a=[],o=t="",this},disabled:function(){return!o},lock:function(){return n=!0,t||u.disable(),this},locked:function(){return!!n},fireWith:function(t,e){return n||(e=[t,(e=e||[]).slice?e.slice():e],a.push(e),i||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!e}};return u},pt.extend({Deferred:function(t){var o=[["resolve","done",pt.Callbacks("once memory"),"resolved"],["reject","fail",pt.Callbacks("once memory"),"rejected"],["notify","progress",pt.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return pt.Deferred(function(r){pt.each(o,function(t,e){var n=pt.isFunction(i[t])&&i[t];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&pt.isFunction(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[e[0]+"With"](this===a?r.promise():this,n?[t]:arguments)})}),i=null}).promise()},promise:function(t){return null!=t?pt.extend(t,a):a}},s={};return a.pipe=a.then,pt.each(o,function(t,e){var n=e[2],r=e[3];a[e[1]]=n.add,r&&n.add(function(){i=r},o[1^t][2].disable,o[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?a:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){var i,e,n,r=0,o=it.call(arguments),a=o.length,s=1!==a||t&&pt.isFunction(t.promise)?a:0,l=1===s?t:pt.Deferred(),u=function(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?it.call(arguments):t,r===i?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(1<a)for(i=new Array(a),e=new Array(a),n=new Array(a);r<a;r++)o[r]&&pt.isFunction(o[r].promise)?o[r].promise().progress(u(r,e,i)).done(u(r,n,o)).fail(l.reject):--s;return s||l.resolveWith(n,o),l.promise()}}),pt.fn.ready=function(t){return pt.ready.promise().done(t),this},pt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?pt.readyWait++:pt.ready(!0)},ready:function(t){(!0===t?--pt.readyWait:pt.isReady)||(pt.isReady=!0)!==t&&0<--pt.readyWait||(jt.resolveWith(rt,[pt]),pt.fn.triggerHandler&&(pt(rt).triggerHandler("ready"),pt(rt).off("ready")))}}),pt.ready.promise=function(t){if(!jt)if(jt=pt.Deferred(),"complete"===rt.readyState||"loading"!==rt.readyState&&!rt.documentElement.doScroll)S.setTimeout(pt.ready);else if(rt.addEventListener)rt.addEventListener("DOMContentLoaded",o),S.addEventListener("load",o);else{rt.attachEvent("onreadystatechange",o),S.attachEvent("onload",o);var e=!1;try{e=null==S.frameElement&&rt.documentElement}catch(n){}e&&e.doScroll&&function r(){if(!pt.isReady){try{e.doScroll("left")}catch(n){return S.setTimeout(r,50)}i(),pt.ready()}}()}return jt.promise(t)},pt.ready.promise(),pt(dt))break;dt.ownFirst="0"===kt,dt.inlineBlockNeedsLayout=!1,pt(function(){var t,e,n,r;(n=rt.getElementsByTagName("body")[0])&&n.style&&(e=rt.createElement("div"),(r=rt.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",dt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=rt.createElement("div");dt.deleteExpando=!0;try{delete t.test}catch(e){dt.deleteExpando=!1}t=null}();var Et,It=function(t){var e=pt.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},Nt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Lt=/([A-Z])/g;pt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?pt.cache[t[pt.expando]]:t[pt.expando])&&!u(t)},data:function(t,e,n){return r(t,e,n)},removeData:function(t,e){return a(t,e)},_data:function(t,e,n){return r(t,e,n,!0)},_removeData:function(t,e){return a(t,e,!0)}}),pt.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(t!==undefined)return"object"==typeof t?this.each(function(){pt.data(this,t)}):1<arguments.length?this.each(function(){pt.data(this,t,e)}):o?l(o,t,pt.data(o,t)):undefined;if(this.length&&(i=pt.data(o),1===o.nodeType&&!pt._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&l(o,r=pt.camelCase(r.slice(5)),i[r]);pt._data(o,"parsedAttrs",!0)}return i},removeData:function(t){return this.each(function(){pt.removeData(this,t)})}}),pt.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=pt._data(t,e),n&&(!r||pt.isArray(n)?r=pt._data(t,e,pt.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=pt.queue(t,e),r=n.length,i=n.shift(),o=pt._queueHooks(t,e),a=function(){pt.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return pt._data(t,n)||pt._data(t,n,{empty:pt.Callbacks("once memory").add(function(){pt._removeData(t,e+"queue"),pt._removeData(t,n)})})}}),pt.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?pt.queue(this[0],e):n===undefined?this:this.each(function(){var t=pt.queue(this,e,n);pt._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&pt.dequeue(this,e)})},dequeue:function(t){return this.each(function(){pt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=pt.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=undefined),t=t||"fx";a--;)(n=pt._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}}),dt.shrinkWrapBlocks=function(){return null!=Et?Et:(Et=!1,(e=rt.getElementsByTagName("body")[0])&&e.style?(t=rt.createElement("div"),(n=rt.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(rt.createElement("div")).style.width="5px",Et=3!==t.offsetWidth),e.removeChild(n),Et):void 0);var t,e,n};var Rt,Ft,Pt,Ot=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ht=new RegExp("^(?:([+-])=|)("+Ot+")([a-z%]*)$","i"),Mt=["Top","Right","Bottom","Left"],Wt=function(t,e){return t=e||t,"none"===pt.css(t,"display")||!pt.contains(t.ownerDocument,t)},qt=function(t,e,n,r,i,o,a){var s=0,l=t.length,u=null==n;if("object"===pt.type(n))for(s in i=!0,n)qt(t,e,s,n[s],!0,o,a);else if(r!==undefined&&(i=!0,pt.isFunction(r)||(a=!0),u&&(a?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(pt(t),n)})),e))for(;s<l;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:u?e.call(t):l?e(t[0],n):o},Bt=/^(?:checkbox|radio)$/i,Ut=/<([\w:-]+)/,zt=/^$|\/(?:java|ecma)script/i,Xt=/^\s+/,Jt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Rt=rt.createElement("div"),Ft=rt.createDocumentFragment(),Pt=rt.createElement("input"),Rt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",dt.leadingWhitespace=3===Rt.firstChild.nodeType,dt.tbody=!Rt.getElementsByTagName("tbody").length,dt.htmlSerialize=!!Rt.getElementsByTagName("link").length,dt.html5Clone="<:nav></:nav>"!==rt.createElement("nav").cloneNode(!0).outerHTML,Pt.type="checkbox",Pt.checked=!0,Ft.appendChild(Pt),dt.appendChecked=Pt.checked,Rt.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!Rt.cloneNode(!0).lastChild.defaultValue,Ft.appendChild(Rt),(Pt=rt.createElement("input")).setAttribute("type","radio"),Pt.setAttribute("checked","checked"),Pt.setAttribute("name","t"),Rt.appendChild(Pt),dt.checkClone=Rt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.noCloneEvent=!!Rt.addEventListener,Rt[pt.expando]=1,dt.attributes=!Rt.getAttribute(pt.expando);var Vt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:dt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Vt.optgroup=Vt.option,Vt.tbody=Vt.tfoot=Vt.colgroup=Vt.caption=Vt.thead,Vt.th=Vt.td;var Qt=/<|&#?\w+;/,Yt=/<tbody/i;!function(){var t,e,n=rt.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(dt[t]=e in S)||(n.setAttribute(e,"t"),dt[t]=!1===n.attributes[e].expando);n=null}();var Gt=/^(?:input|select|textarea)$/i,Kt=/^key/,Zt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,te=/^(?:focusinfocus|focusoutblur)$/,ee=/^([^.]*)(?:\.(.+)|)/;pt.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=pt._data(t);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=pt.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(t){return void 0===pt||t&&pt.event.triggered===t.type?undefined:pt.event.dispatch.apply(c.elem,arguments)}).elem=t),s=(e=(e||"").match(At)||[""]).length;s--;)p=m=(o=ee.exec(e[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=pt.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=pt.event.special[p]||{},d=pt.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pt.expr.match.needsContext.test(i),namespace:h.join(".")},l),(f=a[p])||((f=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,r,h,c)||(t.addEventListener?t.addEventListener(p,c,!1):t.attachEvent&&t.attachEvent("on"+p,c))),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),pt.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=pt.hasData(t)&&pt._data(t);if(g&&(c=g.events)){for(u=(e=(e||"").match(At)||[""]).length;u--;)if(p=m=(s=ee.exec(e[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=pt.event.special[p]||{},f=c[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(t,a));l&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,h,g.handle)||pt.removeEvent(t,p,g.handle),delete c[p])}else for(p in c)pt.event.remove(t,p+e[u],n,r,!0);pt.isEmptyObject(c)&&(delete g.handle,pt._removeData(t,"events"))}},trigger:function(t,e,n,r){var i,o,a,s,l,u,c,d=[n||rt],f=ct.call(t,"type")?t.type:t,p=ct.call(t,"namespace")?t.namespace.split("."):[];if(a=u=n=n||rt,3!==n.nodeType&&8!==n.nodeType&&!te.test(f+pt.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),o=f.indexOf(":")<0&&"on"+f,(t=t[pt.expando]?t:new pt.Event(f,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=n),e=null==e?[t]:pt.makeArray(e,[t]),l=pt.event.special[f]||{},r||!l.trigger||!1!==l.trigger.apply(n,e))){if(!r&&!l.noBubble&&!pt.isWindow(n)){for(s=l.delegateType||f,te.test(s+f)||(a=a.parentNode);a;a=a.parentNode)d.push(a),u=a;u===(n.ownerDocument||rt)&&d.push(u.defaultView||u.parentWindow||S)}for(c=0;(a=d[c++])&&!t.isPropagationStopped();)t.type=1<c?s:l.bindType||f,(i=(pt._data(a,"events")||{})[t.type]&&pt._data(a,"handle"))&&i.apply(a,e),(i=o&&a[o])&&i.apply&&It(a)&&(t.result=i.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=f,!r&&!t.isDefaultPrevented()&&(!l._default||!1===l._default.apply(d.pop(),e))&&It(n)&&o&&n[f]&&!pt.isWindow(n)){(u=n[o])&&(n[o]=null),pt.event.triggered=f;try{n[f]()}catch(h){}pt.event.triggered=undefined,u&&(n[o]=u)}return t.result}},dispatch:function(t){t=pt.event.fix(t);var e,n,r,i,o,a=[],s=it.call(arguments),l=(pt._data(this,"events")||{})[t.type]||[],u=pt.event.special[t.type]||{};if((s[0]=t).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(a=pt.event.handlers.call(this,t,l),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,(r=((pt.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))!==undefined&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(r=[],n=0;n<s;n++)r[i=(o=e[n]).selector+" "]===undefined&&(r[i]=o.needsContext?-1<pt(i,this).index(l):pt.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&a.push({elem:l,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[pt.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Zt.test(i)?this.mouseHooks:Kt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new pt.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=o.srcElement||rt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(r=t.target.ownerDocument||rt).documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||o===undefined||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===h()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pt.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return pt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==undefined&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var r=pt.extend(new pt.Event,n,{type:t,isSimulated:!0});pt.event.trigger(r,null,e),r.isDefaultPrevented()&&n.preventDefault()}},pt.removeEvent=rt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var r="on"+e;t.detachEvent&&("undefined"==typeof t[r]&&(t[r]=null),t.detachEvent(r,n))},pt.Event=function(t,e){if(!(this instanceof pt.Event))return new pt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===undefined&&!1===t.returnValue?f:p):this.type=t,e&&pt.extend(this,e),this.timeStamp=t&&t.timeStamp||pt.now(),this[pt.expando]=!0},pt.Event.prototype={constructor:pt.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},pt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){pt.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=this,r=t.relatedTarget,i=t.handleObj;return r&&(r===n||pt.contains(n,r))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),dt.submit||(pt.event.special.submit={setup:function(){if(pt.nodeName(this,"form"))return!1;pt.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=pt.nodeName(e,"input")||pt.nodeName(e,"button")?pt.prop(e,"form"):undefined;n&&!pt._data(n,"submit")&&(pt.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),pt._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&pt.event.simulate("submit",this.parentNode,t))},teardown:function(){if(pt.nodeName(this,"form"))return!1;pt.event.remove(this,"._submit")}}),dt.change||(pt.event.special.change={setup:function(){if(Gt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(pt.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),pt.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),pt.event.simulate("change",this,t)})),!1;pt.event.add(this,"beforeactivate._change",function(t){var e=t.target;Gt.test(e.nodeName)&&!pt._data(e,"change")&&(pt.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||pt.event.simulate("change",this.parentNode,t)}),pt._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return pt.event.remove(this,"._change"),!Gt.test(this.nodeName)}}),dt.focusin||pt.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(t){pt.event.simulate(r,t.target,pt.event.fix(t))};pt.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=pt._data(t,r);e||t.addEventListener(n,i,!0),pt._data(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=pt._data(t,r)-1;e?pt._data(t,r,e):(t.removeEventListener(n,i,!0),pt._removeData(t,r))}}}),pt.fn.extend({on:function(t,e,n,r){return _(this,t,e,n,r)},one:function(t,e,n,r){return _(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,pt(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=undefined),!1===n&&(n=p),this.each(function(){pt.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this},trigger:function(t,e){return this.each(function(){pt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return pt.event.trigger(t,e,n,!0)}});var ne=/ jQuery\d+="(?:null|\d+)"/g,re=new RegExp("<(?:"+Jt+")[\\s/>]","i"),ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,oe=/<script|<style|<link/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,se=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ue=g(rt).appendChild(rt.createElement("div"));pt.extend({htmlPrefilter:function(t){return t.replace(ie,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s,l=pt.contains(t.ownerDocument,t);if(dt.html5Clone||pt.isXMLDoc(t)||!re.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(ue.innerHTML=t.outerHTML,ue.removeChild(o=ue.firstChild)),!(dt.noCloneEvent&&dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||pt.isXMLDoc(t)))for(r=b(o),s=b(t),a=0;null!=(i=s[a]);++a)r[a]&&D(i,r[a]);if(e)if(n)for(s=s||b(t),r=r||b(o),a=0;null!=(i=s[a]);a++)C(i,r[a]);else C(t,o);return 0<(r=b(o,"script")).length&&v(r,!l&&b(t,"script")),r=s=i=null,o},cleanData:function(t,e){for(var n,r,i,o,a=0,s=pt.expando,l=pt.cache,u=dt.attributes,c=pt.event.special;null!=(n=t[a]);a++)if((e||It(n))&&(o=(i=n[s])&&l[i])){if(o.events)for(r in o.events)c[r]?pt.event.remove(n,r):pt.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),nt.push(i))}}}),pt.fn.extend({domManip:$,detach:function(t){return j(this,t,!0)},remove:function(t){return j(this,t)},text:function(t){return qt(this,function(t){return t===undefined?pt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||rt).createTextNode(t))},null,t,arguments.length)},append:function(){return $(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,t).appendChild(t)})},prepend:function(){return $(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return $(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return $(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&pt.cleanData(b(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&pt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return pt.clone(this,t,e)})},html:function(t){return qt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(t===undefined)return 1===e.nodeType?e.innerHTML.replace(ne,""):undefined;if("string"==typeof t&&!oe.test(t)&&(dt.htmlSerialize||!re.test(t))&&(dt.leadingWhitespace||!Xt.test(t))&&!Vt[(Ut.exec(t)||["",""])[1].toLowerCase()]){t=pt.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(pt.cleanData(b(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return $(this,arguments,function(t){var e=this.parentNode;pt.inArray(this,n)<0&&(pt.cleanData(b(this)),e&&e.replaceChild(t,this))},n)}}),pt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){pt.fn[t]=function(t){for(var e,n=0,r=[],i=pt(t),o=i.length-1;n<=o;n++)e=n===o?this:this.clone(!0),pt(i[n])[a](e),at.apply(r,e.get());return this.pushStack(r)}});var ce,de={HTML:"block",BODY:"block"},fe=/^margin/,pe=new RegExp("^("+Ot+")(?!px)[a-z%]+$","i"),he=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i},me=rt.documentElement;!function(){function t(){var t,e,n=rt.documentElement;n.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r=o=l=!1,i=s=!0,S.getComputedStyle&&(e=S.getComputedStyle(c),r="1%"!==(e||{}).top,l="2px"===(e||{}).marginLeft,o="4px"===(e||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(e||{marginRight:"4px"}).marginRight,(t=c.appendChild(rt.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",c.style.width="1px",s=!parseFloat((S.getComputedStyle(t)||{}).marginRight),c.removeChild(t)),
c.style.display="none",(a=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(t=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",a=0===t[0].offsetHeight)),n.removeChild(u)}var r,i,o,a,s,l,u=rt.createElement("div"),c=rt.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",dt.opacity="0.5"===c.style.opacity,dt.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===c.style.backgroundClip,(u=rt.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),dt.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,pt.extend(dt,{reliableHiddenOffsets:function(){return null==r&&t(),a},boxSizingReliable:function(){return null==r&&t(),o},pixelMarginRight:function(){return null==r&&t(),i},pixelPosition:function(){return null==r&&t(),r},reliableMarginRight:function(){return null==r&&t(),s},reliableMarginLeft:function(){return null==r&&t(),l}}))}();var ge,be,ve=/^(top|right|bottom|left)$/;S.getComputedStyle?(ge=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=S),e.getComputedStyle(t)},be=function(t,e,n){var r,i,o,a,s=t.style;return""!==(a=(n=n||ge(t))?n.getPropertyValue(e)||n[e]:undefined)&&a!==undefined||pt.contains(t.ownerDocument,t)||(a=pt.style(t,e)),n&&!dt.pixelMarginRight()&&pe.test(a)&&fe.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),a===undefined?a:a+""}):me.currentStyle&&(ge=function(t){return t.currentStyle},be=function(t,e,n){var r,i,o,a,s=t.style;return null==(a=(n=n||ge(t))?n[e]:undefined)&&s&&s[e]&&(a=s[e]),pe.test(a)&&!ve.test(e)&&(r=s.left,(o=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),a===undefined?a:a+""||"auto"});var ye=/alpha\([^)]*\)/i,_e=/opacity\s*=\s*([^)]*)/i,xe=/^(none|table(?!-c[ea]).+)/,we=new RegExp("^("+Ot+")(.*)$","i"),Se={position:"absolute",visibility:"hidden",display:"block"},Te={letterSpacing:"0",fontWeight:"400"},Ce=["Webkit","O","Moz","ms"],De=rt.createElement("div").style;pt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=be(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":dt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=pt.camelCase(e),l=t.style;if(e=pt.cssProps[s]||(pt.cssProps[s]=I(s)||s),a=pt.cssHooks[e]||pt.cssHooks[s],n===undefined)return a&&"get"in a&&(i=a.get(t,!1,r))!==undefined?i:l[e];if("string"===(o=typeof n)&&(i=Ht.exec(n))&&i[1]&&(n=d(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(pt.cssNumber[s]?"":"px")),dt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(a&&"set"in a&&(n=a.set(t,n,r))===undefined)))try{l[e]=n}catch(u){}}},css:function(t,e,n,r){var i,o,a,s=pt.camelCase(e);return e=pt.cssProps[s]||(pt.cssProps[s]=I(s)||s),(a=pt.cssHooks[e]||pt.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),o===undefined&&(o=be(t,e,r)),"normal"===o&&e in Te&&(o=Te[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),pt.each(["height","width"],function(t,i){pt.cssHooks[i]={get:function(t,e,n){if(e)return xe.test(pt.css(t,"display"))&&0===t.offsetWidth?he(t,Se,function(){return F(t,i,n)}):F(t,i,n)},set:function(t,e,n){var r=n&&ge(t);return L(t,e,n?R(t,i,n,dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,r),r):0)}}}),dt.opacity||(pt.cssHooks.opacity={get:function(t,e){return _e.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=pt.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";((n.zoom=1)<=e||""===e)&&""===pt.trim(o.replace(ye,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=ye.test(o)?o.replace(ye,i):o+" "+i)}}),pt.cssHooks.marginRight=E(dt.reliableMarginRight,function(t,e){if(e)return he(t,{display:"inline-block"},be,[t,"marginRight"])}),pt.cssHooks.marginLeft=E(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(be(t,"marginLeft"))||(pt.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-he(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),pt.each({margin:"",padding:"",border:"Width"},function(i,o){pt.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+Mt[e]+o]=r[e]||r[e-2]||r[0];return n}},fe.test(i)||(pt.cssHooks[i+o].set=L)}),pt.fn.extend({css:function(t,e){return qt(this,function(t,e,n){var r,i,o={},a=0;if(pt.isArray(e)){for(r=ge(t),i=e.length;a<i;a++)o[e[a]]=pt.css(t,e[a],!1,r);return o}return n!==undefined?pt.style(t,e,n):pt.css(t,e)},t,e,1<arguments.length)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Wt(this)?pt(this).show():pt(this).hide()})}}),(pt.Tween=P).prototype={constructor:P,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||pt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pt.cssNumber[n]?"":"px")},cur:function(){var t=P.propHooks[this.prop];return t&&t.get?t.get(this):P.propHooks._default.get(this)},run:function(t){var e,n=P.propHooks[this.prop];return this.options.duration?this.pos=e=pt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=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):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=pt.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){pt.fx.step[t.prop]?pt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[pt.cssProps[t.prop]]&&!pt.cssHooks[t.prop]?t.elem[t.prop]=t.now:pt.style(t.elem,t.prop,t.now+t.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},pt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},pt.fx=P.prototype.init,pt.fx.step={};var $e,je,ke,Ae,Ee,Ie,Ne,Le=/^(?:toggle|show|hide)$/,Re=/queueHooks$/;pt.Animation=pt.extend(B,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return d(n.elem,t,Ht.exec(e),n),n}]},tweener:function(t,e){pt.isFunction(t)?(e=t,t=["*"]):t=t.match(At);for(var n,r=0,i=t.length;r<i;r++)n=t[r],B.tweeners[n]=B.tweeners[n]||[],B.tweeners[n].unshift(e)},prefilters:[W],prefilter:function(t,e){e?B.prefilters.unshift(t):B.prefilters.push(t)}}),pt.speed=function(t,e,n){var r=t&&"object"==typeof t?pt.extend({},t):{complete:n||!n&&e||pt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!pt.isFunction(e)&&e};return r.duration=pt.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in pt.fx.speeds?pt.fx.speeds[r.duration]:pt.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){pt.isFunction(r.old)&&r.old.call(this),r.queue&&pt.dequeue(this,r.queue)},r},pt.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Wt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){var i=pt.isEmptyObject(e),o=pt.speed(t,n,r),a=function(){var t=B(this,pt.extend({},e),o);(i||pt._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,t,o){var a=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof i&&(o=t,t=i,i=undefined),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=pt.timers,r=pt._data(this);if(e)r[e]&&r[e].stop&&a(r[e]);else for(e in r)r[e]&&r[e].stop&&Re.test(e)&&a(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||pt.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=pt._data(this),n=e[a+"queue"],r=e[a+"queueHooks"],i=pt.timers,o=n?n.length:0;for(e.finish=!0,pt.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),pt.each(["toggle","show","hide"],function(t,r){var i=pt.fn[r];pt.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(H(r,!0),t,e,n)}}),pt.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){pt.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),pt.timers=[],pt.fx.tick=function(){var t,e=pt.timers,n=0;for($e=pt.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||pt.fx.stop(),$e=undefined},pt.fx.timer=function(t){pt.timers.push(t),t()?pt.fx.start():pt.timers.pop()},pt.fx.interval=13,pt.fx.start=function(){je||(je=S.setInterval(pt.fx.tick,pt.fx.interval))},pt.fx.stop=function(){S.clearInterval(je),je=null},pt.fx.speeds={slow:600,fast:200,_default:400},pt.fn.delay=function(r,t){return r=pt.fx&&pt.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var n=S.setTimeout(t,r);e.stop=function(){S.clearTimeout(n)}})},Ae=rt.createElement("input"),Ee=rt.createElement("div"),Ie=rt.createElement("select"),Ne=Ie.appendChild(rt.createElement("option")),(Ee=rt.createElement("div")).setAttribute("className","t"),Ee.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ke=Ee.getElementsByTagName("a")[0],Ae.setAttribute("type","checkbox"),Ee.appendChild(Ae),(ke=Ee.getElementsByTagName("a")[0]).style.cssText="top:1px",dt.getSetAttribute="t"!==Ee.className,dt.style=/top/.test(ke.getAttribute("style")),dt.hrefNormalized="/a"===ke.getAttribute("href"),dt.checkOn=!!Ae.value,dt.optSelected=Ne.selected,dt.enctype=!!rt.createElement("form").enctype,Ie.disabled=!0,dt.optDisabled=!Ne.disabled,(Ae=rt.createElement("input")).setAttribute("value",""),dt.input=""===Ae.getAttribute("value"),Ae.value="t",Ae.setAttribute("type","radio"),dt.radioValue="t"===Ae.value;var Fe=/\r/g,Pe=/[\x20\t\r\n\f]+/g;pt.fn.extend({val:function(n){var r,t,i,e=this[0];return arguments.length?(i=pt.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=i?n.call(this,t,pt(this).val()):n)?e="":"number"==typeof e?e+="":pt.isArray(e)&&(e=pt.map(e,function(t){return null==t?"":t+""})),(r=pt.valHooks[this.type]||pt.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,e,"value")!==undefined||(this.value=e))})):e?(r=pt.valHooks[e.type]||pt.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&(t=r.get(e,"value"))!==undefined?t:"string"==typeof(t=e.value)?t.replace(Fe,""):null==t?"":t:void 0}}),pt.extend({valHooks:{option:{get:function(t){var e=pt.find.attr(t,"value");return null!=e?e:pt.trim(pt.text(t)).replace(Pe," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(dt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pt.nodeName(n.parentNode,"optgroup"))){if(e=pt(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=pt.makeArray(e),a=i.length;a--;)if(r=i[a],-1<pt.inArray(pt.valHooks.option.get(r),o))try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),pt.each(["radio","checkbox"],function(){pt.valHooks[this]={set:function(t,e){if(pt.isArray(e))return t.checked=-1<pt.inArray(pt(t).val(),e)}},dt.checkOn||(pt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Oe,He,Me=pt.expr.attrHandle,We=/^(?:checked|selected)$/i,qe=dt.getSetAttribute,Be=dt.input;pt.fn.extend({attr:function(t,e){return qt(this,pt.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){pt.removeAttr(this,t)})}}),pt.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?pt.prop(t,e,n):(1===o&&pt.isXMLDoc(t)||(e=e.toLowerCase(),i=pt.attrHooks[e]||(pt.expr.match.bool.test(e)?He:Oe)),n!==undefined?null===n?void pt.removeAttr(t,e):i&&"set"in i&&(r=i.set(t,n,e))!==undefined?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=pt.find.attr(t,e))?undefined:r)},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&pt.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(At);if(o&&1===t.nodeType)for(;n=o[i++];)r=pt.propFix[n]||n,pt.expr.match.bool.test(n)?Be&&qe||!We.test(n)?t[r]=!1:t[pt.camelCase("default-"+n)]=t[r]=!1:pt.attr(t,n,""),t.removeAttribute(qe?n:r)}}),He={set:function(t,e,n){return!1===e?pt.removeAttr(t,n):Be&&qe||!We.test(n)?t.setAttribute(!qe&&pt.propFix[n]||n,n):t[pt.camelCase("default-"+n)]=t[n]=!0,n}},pt.each(pt.expr.match.bool.source.match(/\w+/g),function(t,e){var o=Me[e]||pt.find.attr;Be&&qe||!We.test(e)?Me[e]=function(t,e,n){var r,i;return n||(i=Me[e],Me[e]=r,r=null!=o(t,e,n)?e.toLowerCase():null,Me[e]=i),r}:Me[e]=function(t,e,n){if(!n)return t[pt.camelCase("default-"+e)]?e.toLowerCase():null}}),Be&&qe||(pt.attrHooks.value={set:function(t,e,n){if(!pt.nodeName(t,"input"))return Oe&&Oe.set(t,e,n);t.defaultValue=e}}),qe||(Oe={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},Me.id=Me.name=Me.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},pt.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Oe.set},pt.attrHooks.contenteditable={set:function(t,e,n){Oe.set(t,""!==e&&e,n)}},pt.each(["width","height"],function(t,n){pt.attrHooks[n]={set:function(t,e){if(""===e)return t.setAttribute(n,"auto"),e}}})),dt.style||(pt.attrHooks.style={get:function(t){return t.style.cssText||undefined},set:function(t,e){return t.style.cssText=e+""}});var Ue=/^(?:input|select|textarea|button|object)$/i,ze=/^(?:a|area)$/i;pt.fn.extend({prop:function(t,e){return qt(this,pt.prop,t,e,1<arguments.length)},removeProp:function(e){return e=pt.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(t){}})}}),pt.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pt.isXMLDoc(t)||(e=pt.propFix[e]||e,i=pt.propHooks[e]),n!==undefined?i&&"set"in i&&(r=i.set(t,n,e))!==undefined?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=pt.find.attr(t,"tabindex");return e?parseInt(e,10):Ue.test(t.nodeName)||ze.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),dt.hrefNormalized||pt.each(["href","src"],function(t,e){pt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),dt.optSelected||(pt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),pt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pt.propFix[this.toLowerCase()]=this}),dt.enctype||(pt.propFix.enctype="encoding");var Xe=/[\t\r\n\f]/g;pt.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(pt.isFunction(e))return this.each(function(t){pt(this).addClass(e.call(this,t,U(this)))});if("string"==typeof e&&e)for(t=e.match(At)||[];n=this[l++];)if(i=U(n),r=1===n.nodeType&&(" "+i+" ").replace(Xe," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=pt.trim(r))&&pt.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(pt.isFunction(e))return this.each(function(t){pt(this).removeClass(e.call(this,t,U(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(At)||[];n=this[l++];)if(i=U(n),r=1===n.nodeType&&(" "+i+" ").replace(Xe," ")){for(a=0;o=t[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=pt.trim(r))&&pt.attr(n,"class",s)}return this},toggleClass:function(i,e){var o=typeof i;return"boolean"==typeof e&&"string"===o?e?this.addClass(i):this.removeClass(i):pt.isFunction(i)?this.each(function(t){pt(this).toggleClass(i.call(this,t,U(this),e),e)}):this.each(function(){var t,e,n,r;if("string"===o)for(e=0,n=pt(this),r=i.match(At)||[];t=r[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else i!==undefined&&"boolean"!==o||((t=U(this))&&pt._data(this,"__className__",t),pt.attr(this,"class",t||!1===i?"":pt._data(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+U(n)+" ").replace(Xe," ").indexOf(e))return!0;return!1}}),pt.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,n){pt.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),pt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Je=S.location,Ve=pt.now(),Qe=/\?/,Ye=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pt.parseJSON=function(t){if(S.JSON&&S.JSON.parse)return S.JSON.parse(t+"");var i,o=null,e=pt.trim(t+"");return e&&!pt.trim(e.replace(Ye,function(t,e,n,r){return i&&e&&(o=0),0===o?t:(i=n||e,o+=!r-!n,"")}))?Function("return "+e)():pt.error("Invalid JSON: "+t)},pt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{S.DOMParser?e=(new S.DOMParser).parseFromString(t,"text/xml"):((e=new S.ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(n){e=undefined}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||pt.error("Invalid XML: "+t),e};var Ge=/#.*$/,Ke=/([?&])_=[^&]*/,Ze=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,tn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,en=/^(?:GET|HEAD)$/,nn=/^\/\//,rn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,on={},an={},sn="*/".concat("*"),ln=Je.href,un=rn.exec(ln.toLowerCase())||[];pt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ln,type:"GET",isLocal:tn.test(un[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pt.parseJSON,"text xml":pt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?J(J(t,pt.ajaxSettings),e):J(pt.ajaxSettings,t)},ajaxPrefilter:z(on),ajaxTransport:z(an),ajax:function(t,e){function n(t,e,n,r){var i,o,a,s,l,u=e;2!==x&&(x=2,f&&S.clearTimeout(f),h=undefined,d=r||"",w.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=V(m,w,n)),s=Q(m,s,w,i),i?(m.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(pt.lastModified[c]=l),(l=w.getResponseHeader("etag"))&&(pt.etag[c]=l)),204===t||"HEAD"===m.type?u="nocontent":304===t?u="notmodified":(u=s.state,o=s.data,i=!(a=s.error))):(a=u,!t&&u||(u="error",t<0&&(t=0))),w.status=t,w.statusText=(e||u)+"",i?v.resolveWith(g,[o,u,w]):v.rejectWith(g,[w,u,a]),w.statusCode(_),_=undefined,p&&b.trigger(i?"ajaxSuccess":"ajaxError",[w,m,i?o:a]),y.fireWith(g,[w,u]),p&&(b.trigger("ajaxComplete",[w,m]),--pt.active||pt.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=undefined),e=e||{};var r,i,c,d,f,p,h,o,m=pt.ajaxSetup({},e),g=m.context||m,b=m.context&&(g.nodeType||g.jquery)?pt(g):pt.event,v=pt.Deferred(),y=pt.Callbacks("once memory"),_=m.statusCode||{},a={},s={},x=0,l="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!o)for(o={};e=Ze.exec(d);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?d:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=s[n]=s[n]||t,a[t]=e),this},overrideMimeType:function(t){return x||(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)_[e]=[_[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||l;return h&&h.abort(e),n(0,e),this}};if(v.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,m.url=((t||m.url||ln)+"").replace(Ge,"").replace(nn,un[1]+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=pt.trim(m.dataType||"*").toLowerCase().match(At)||[""],null==m.crossDomain&&(r=rn.exec(m.url.toLowerCase()),m.crossDomain=!(!r||r[1]===un[1]&&r[2]===un[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(un[3]||("http:"===un[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=pt.param(m.data,m.traditional)),X(on,m,e,w),2===x)return w;for(i in(p=pt.event&&m.global)&&0==pt.active++&&pt.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!en.test(m.type),c=m.url,m.hasContent||(m.data&&(c=m.url+=(Qe.test(c)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Ke.test(c)?c.replace(Ke,"$1_="+Ve++):c+(Qe.test(c)?"&":"?")+"_="+Ve++)),m.ifModified&&(pt.lastModified[c]&&w.setRequestHeader("If-Modified-Since",pt.lastModified[c]),pt.etag[c]&&w.setRequestHeader("If-None-Match",pt.etag[c])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+sn+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(!1===m.beforeSend.call(g,w,m)||2===x))return w.abort();for(i in l="abort",{success:1,error:1,complete:1})w[i](m[i]);if(h=X(an,m,e,w)){if(w.readyState=1,p&&b.trigger("ajaxSend",[w,m]),2===x)return w;m.async&&0<m.timeout&&(f=S.setTimeout(function(){w.abort("timeout")},m.timeout));try{x=1,h.send(a,n)}catch(u){if(!(x<2))throw u;n(-1,u)}}else n(-1,"No Transport");return w},getJSON:function(t,e,n){return pt.get(t,e,n,"json")},getScript:function(t,e){return pt.get(t,undefined,e,"script")}}),pt.each(["get","post"],function(t,i){pt[i]=function(t,e,n,r){return pt.isFunction(e)&&(r=r||n,n=e,e=undefined),pt.ajax(pt.extend({url:t,type:i,dataType:r,data:e,success:n},pt.isPlainObject(t)&&t))}}),pt._evalUrl=function(t){return pt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pt.fn.extend({wrapAll:function(e){if(pt.isFunction(e))return this.each(function(t){pt(this).wrapAll(e.call(this,t))});if(this[0]){var t=pt(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(n){return pt.isFunction(n)?this.each(function(t){pt(this).wrapInner(n.call(this,t))}):this.each(function(){var t=pt(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=pt.isFunction(e);return this.each(function(t){pt(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){pt.nodeName(this,"body")||pt(this).replaceWith(this.childNodes)}).end()}}),pt.expr.filters.hidden=function(t){return dt.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:G(t)},pt.expr.filters.visible=function(t){return!pt.expr.filters.hidden(t)};var cn=/%20/g,dn=/\[\]$/,fn=/\r?\n/g,pn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;pt.param=function(t,e){var n,r=[],i=function(t,e){e=pt.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=pt.ajaxSettings&&pt.ajaxSettings.traditional),pt.isArray(t)||t.jquery&&!pt.isPlainObject(t))pt.each(t,function(){i(this.name,this.value)});else for(n in t)K(n,t[n],e,i);return r.join("&").replace(cn,"+")},pt.fn.extend({serialize:function(){return pt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=pt.prop(this,"elements");return t?pt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!pt(this).is(":disabled")&&hn.test(this.nodeName)&&!pn.test(t)&&(this.checked||!Bt.test(t))}).map(function(t,e){var n=pt(this).val();return null==n?null:pt.isArray(n)?pt.map(n,function(t){return{name:e.name,value:t.replace(fn,"\r\n")}}):{name:e.name,value:n.replace(fn,"\r\n")}}).get()}}),pt.ajaxSettings.xhr=S.ActiveXObject!==undefined?function(){return this.isLocal?tt():8<rt.documentMode?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||tt()}:Z;var mn=0,gn={},bn=pt.ajaxSettings.xhr();S.attachEvent&&S.attachEvent("onunload",function(){for(var t in gn)gn[t](undefined,!0)}),dt.cors=!!bn&&"withCredentials"in bn,(bn=dt.ajax=!!bn)&&pt.ajaxTransport(function(u){var c;if(!u.crossDomain||dt.cors)return{send:function(t,a){var e,s=u.xhr(),l=++mn;if(s.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(e in u.xhrFields)s[e]=u.xhrFields[e];for(e in u.mimeType&&s.overrideMimeType&&s.overrideMimeType(u.mimeType),u.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)t[e]!==undefined&&s.setRequestHeader(e,t[e]+"");s.send(u.hasContent&&u.data||null),c=function(t,e){var n,r,i;if(c&&(e||4===s.readyState))if(delete gn[l],c=undefined,s.onreadystatechange=pt.noop,e)4!==s.readyState&&s.abort();else{i={},n=s.status,"string"==typeof s.responseText&&(i.text=s.responseText);try{r=s.statusText}catch(o){r=""}n||!u.isLocal||u.crossDomain?1223===n&&(n=204):n=i.text?200:404}i&&a(n,r,i,s.getAllResponseHeaders())},u.async?4===s.readyState?S.setTimeout(c):s.onreadystatechange=gn[l]=c:c()},abort:function(){c&&c(undefined,!0)}}}),pt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return pt.globalEval(t),t}}}),pt.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),pt.ajaxTransport("script",function(e){if(e.crossDomain){var r,i=rt.head||pt("head")[0]||rt.documentElement;return{send:function(t,n){(r=rt.createElement("script")).async=!0,e.scriptCharset&&(r.charset=e.scriptCharset),r.src=e.url,r.onload=r.onreadystatechange=function(t,e){(e||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,e||n(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(undefined,!0)}}}});var vn=[],yn=/(=)\?(?=&|$)|\?\?/;pt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=vn.pop()||pt.expando+"_"+Ve++;return this[t]=!0,t}}),pt.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(yn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&yn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=pt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(yn,"$1"+r):!1!==t.jsonp&&(t.url+=(Qe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||pt.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=S[r],S[r]=function(){o=arguments},n.always(function(){i===undefined?pt(S).removeProp(r):S[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,vn.push(r)),o&&pt.isFunction(i)&&i(o[0]),o=i=undefined}),"script"}),pt.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||rt;var r=wt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=m([t],e,i),i&&i.length&&pt(i).remove(),pt.merge([],r.childNodes))};var _n=pt.fn.load;pt.fn.load=function(t,e,n){if("string"!=typeof t&&_n)return _n.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return-1<s&&(r=pt.trim(t.slice(s,t.length)),t=t.slice(0,s)),pt.isFunction(e)?(n=e,e=undefined):e&&"object"==typeof e&&(i="POST"),0<a.length&&pt.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?pt("<div>").append(pt.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},pt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){pt.fn[e]=function(t){return this.on(e,t)}}),pt.expr.filters.animated=function(e){return pt.grep(pt.timers,function(t){return e===t.elem}).length},pt.offset={setOffset:function(t,e,n){var r,i,o,a,s,l,u=pt.css(t,"position"),c=pt(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=pt.css(t,"top"),l=pt.css(t,"left"),("absolute"===u||"fixed"===u)&&-1<pt.inArray("auto",[o,l])?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),pt.isFunction(e)&&(e=e.call(t,n,pt.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):c.css(d)}},pt.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){pt.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(t=o.documentElement,pt.contains(t,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=et(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===pt.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),pt.nodeName(t[0],"html")||(n=t.offset()),n.top+=pt.css(t[0],"borderTopWidth",!0),n.left+=pt.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-pt.css(r,"marginTop",!0),left:e.left-n.left-pt.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!pt.nodeName(t,"html")&&"static"===pt.css(t,"position");)t=t.offsetParent;return t||me})}}),pt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o=/Y/.test(i);pt.fn[e]=function(t){return qt(this,function(t,e,n){var r=et(t);if(n===undefined)return r?i in r?r[i]:r.document.documentElement[e]:t[e];r?r.scrollTo(o?pt(r).scrollLeft():n,o?n:pt(r).scrollTop()):t[e]=n},e,t,arguments.length,null)}}),pt.each(["top","left"],function(t,n){pt.cssHooks[n]=E(dt.pixelPosition,function(t,e){if(e)return e=be(t,n),pe.test(e)?pt(t).position()[n]+"px":e})}),pt.each({Height:"height",Width:"width"},function(o,a){pt.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){pt.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return qt(this,function(t,e,n){var r;return pt.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):n===undefined?pt.css(t,e,i):pt.style(t,e,n,i)},a,n?t:undefined,n,null)}})}),pt.fn.extend({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,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),pt.fn.size=function(){return this.length},pt.fn.andSelf=pt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pt});var xn=S.jQuery,wn=S.$;return pt.noConflict=function(t){return S.$===pt&&(S.$=wn),t&&S.jQuery===pt&&(S.jQuery=xn),pt},t||(S.jQuery=S.$=pt),pt}),function(c,l){"use strict";var u;c.rails!==l&&c.error("jquery-ujs has already been loaded!");var t=c(document);c.rails=u={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",
buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return c("meta[name=csrf-token]").attr("content")},csrfParam:function(){return c("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=u.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){c('form input[name="'+u.csrfParam()+'"]').val(u.csrfToken())},fire:function(t,e,n){var r=c.Event(e);return t.trigger(r,n),!1!==r.result},confirm:function(t){return confirm(t)},ajax:function(t){return c.ajax(t)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==l&&!1!==t.data("remote")},handleRemote:function(r){var t,e,n,i,o,a;if(u.fire(r,"ajax:before")){if(i=r.data("with-credentials")||null,o=r.data("type")||c.ajaxSettings&&c.ajaxSettings.dataType,r.is("form")){t=r.data("ujs:submit-button-formmethod")||r.attr("method"),e=r.data("ujs:submit-button-formaction")||r.attr("action"),n=c(r[0]).serializeArray();var s=r.data("ujs:submit-button");s&&(n.push(s),r.data("ujs:submit-button",null)),r.data("ujs:submit-button-formmethod",null),r.data("ujs:submit-button-formaction",null)}else r.is(u.inputChangeSelector)?(t=r.data("method"),e=r.data("url"),n=r.serialize(),r.data("params")&&(n=n+"&"+r.data("params"))):r.is(u.buttonClickSelector)?(t=r.data("method")||"get",e=r.data("url"),n=r.serialize(),r.data("params")&&(n=n+"&"+r.data("params"))):(t=r.data("method"),e=u.href(r),n=r.data("params")||null);return a={type:t||"GET",data:n,dataType:o,beforeSend:function(t,e){if(e.dataType===l&&t.setRequestHeader("accept","*/*;q=0.5, "+e.accepts.script),!u.fire(r,"ajax:beforeSend",[t,e]))return!1;r.trigger("ajax:send",t)},success:function(t,e,n){r.trigger("ajax:success",[t,e,n])},complete:function(t,e){r.trigger("ajax:complete",[t,e])},error:function(t,e,n){r.trigger("ajax:error",[t,e,n])},crossDomain:u.isCrossDomain(e)},i&&(a.xhrFields={withCredentials:i}),e&&(a.url=e),u.ajax(a)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(r){return!0}},handleMethod:function(t){var e=u.href(t),n=t.data("method"),r=t.attr("target"),i=u.csrfToken(),o=u.csrfParam(),a=c('<form method="post" action="'+e+'"></form>'),s='<input name="_method" value="'+n+'" type="hidden" />';o===l||i===l||u.isCrossDomain(e)||(s+='<input name="'+o+'" value="'+i+'" type="hidden" />'),r&&a.attr("target",r),a.hide().append(s).appendTo("body"),a.submit()},formElements:function(t,e){return t.is("form")?c(t[0].elements).filter(e):t.find(e)},disableFormElements:function(t){u.formElements(t,u.disableSelector).each(function(){u.disableFormElement(c(this))})},disableFormElement:function(t){var e,n;e=t.is("button")?"html":"val",(n=t.data("disable-with"))!==l&&(t.data("ujs:enable-with",t[e]()),t[e](n)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(t){u.formElements(t,u.enableSelector).each(function(){u.enableFormElement(c(this))})},enableFormElement:function(t){var e=t.is("button")?"html":"val";t.data("ujs:enable-with")!==l&&(t[e](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,n=t.data("confirm"),r=!1;if(!n)return!0;if(u.fire(t,"confirm")){try{r=u.confirm(n)}catch(i){(console.error||console.log).call(console,i.stack||i)}e=u.fire(t,"confirm:complete",[r])}return r&&e},blankInputs:function(t,e,n){var r,i,o,a=c(),s=e||"input,textarea",l=t.find(s),u={};return l.each(function(){(r=c(this)).is("input[type=radio]")?(o=r.attr("name"),u[o]||(0===t.find('input[type=radio]:checked[name="'+o+'"]').length&&(i=t.find('input[type=radio][name="'+o+'"]'),a=a.add(i)),u[o]=o)):(r.is("input[type=checkbox],input[type=radio]")?r.is(":checked"):!!r.val())===n&&(a=a.add(r))}),!!a.length&&a},nonBlankInputs:function(t,e){return u.blankInputs(t,e,!0)},stopEverything:function(t){return c(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(t){var e=t.data("disable-with");e!==l&&(t.data("ujs:enable-with",t.html()),t.html(e)),t.bind("click.railsDisable",function(t){return u.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==l&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},u.fire(t,"rails:attachBindings")&&(c.ajaxPrefilter(function(t,e,n){t.crossDomain||u.CSRFProtection(n)}),c(window).on("pageshow.rails",function(){c(c.rails.enableSelector).each(function(){var t=c(this);t.data("ujs:disabled")&&c.rails.enableFormElement(t)}),c(c.rails.linkDisableSelector).each(function(){var t=c(this);t.data("ujs:disabled")&&c.rails.enableElement(t)})}),t.on("ajax:complete",u.linkDisableSelector,function(){u.enableElement(c(this))}),t.on("ajax:complete",u.buttonDisableSelector,function(){u.enableFormElement(c(this))}),t.on("click.rails",u.linkClickSelector,function(t){var e=c(this),n=e.data("method"),r=e.data("params"),i=t.metaKey||t.ctrlKey;if(!u.allowAction(e))return u.stopEverything(t);if(!i&&e.is(u.linkDisableSelector)&&u.disableElement(e),u.isRemote(e)){if(i&&(!n||"GET"===n)&&!r)return!0;var o=u.handleRemote(e);return!1===o?u.enableElement(e):o.fail(function(){u.enableElement(e)}),!1}return n?(u.handleMethod(e),!1):void 0}),t.on("click.rails",u.buttonClickSelector,function(t){var e=c(this);if(!u.allowAction(e)||!u.isRemote(e))return u.stopEverything(t);e.is(u.buttonDisableSelector)&&u.disableFormElement(e);var n=u.handleRemote(e);return!1===n?u.enableFormElement(e):n.fail(function(){u.enableFormElement(e)}),!1}),t.on("change.rails",u.inputChangeSelector,function(t){var e=c(this);return u.allowAction(e)&&u.isRemote(e)?(u.handleRemote(e),!1):u.stopEverything(t)}),t.on("submit.rails",u.formSubmitSelector,function(t){var e,n,r=c(this),i=u.isRemote(r);if(!u.allowAction(r))return u.stopEverything(t);if(r.attr("novalidate")===l)if(r.data("ujs:formnovalidate-button")===l){if((e=u.blankInputs(r,u.requiredInputSelector,!1))&&u.fire(r,"ajax:aborted:required",[e]))return u.stopEverything(t)}else r.data("ujs:formnovalidate-button",l);if(i){if(n=u.nonBlankInputs(r,u.fileInputSelector)){setTimeout(function(){u.disableFormElements(r)},13);var o=u.fire(r,"ajax:aborted:file",[n]);return o||setTimeout(function(){u.enableFormElements(r)},13),o}return u.handleRemote(r),!1}setTimeout(function(){u.disableFormElements(r)},13)}),t.on("click.rails",u.formInputClickSelector,function(t){var e=c(this);if(!u.allowAction(e))return u.stopEverything(t);var n=e.attr("name"),r=n?{name:n,value:e.val()}:null,i=e.closest("form");0===i.length&&(i=c("#"+e.attr("form"))),i.data("ujs:submit-button",r),i.data("ujs:formnovalidate-button",e.attr("formnovalidate")),i.data("ujs:submit-button-formaction",e.attr("formaction")),i.data("ujs:submit-button-formmethod",e.attr("formmethod"))}),t.on("ajax:send.rails",u.formSubmitSelector,function(t){this===t.target&&u.disableFormElements(c(this))}),t.on("ajax:complete.rails",u.formSubmitSelector,function(t){this===t.target&&u.enableFormElements(c(this))}),c(function(){u.refreshCSRFTokens()}))}(jQuery),function(l){"use strict";function n(r){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof r&&r;e||t.data("bs.affix",e=new u(this,n)),"string"==typeof r&&e[r]()})}var u=function(t,e){this.options=l.extend({},u.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};u.VERSION="3.3.5",u.RESET="affix affix-top affix-bottom",u.DEFAULTS={offset:0,target:window},u.prototype.getState=function(t,e,n,r){var i=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i<n&&"top";if("bottom"==this.affixed)return null!=n?!(i+this.unpin<=o.top)&&"bottom":!(i+a<=t-r)&&"bottom";var s=null==this.affixed,l=s?i:o.top;return null!=n&&i<=n?"top":null!=r&&t-r<=l+(s?a:e)&&"bottom"},u.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(u.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},u.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},u.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,r=e.bottom,i=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(r=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof r&&(r=e.bottom(this.$element));var o=this.getState(i,t,n,r);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var a="affix"+(o?"-"+o:""),s=l.Event(a+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(u.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:i-t-r})}};var t=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=u,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(o){"use strict";function t(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof n&&e[n].call(t)})}var e='[data-dismiss="alert"]',a=function(t){o(t).on("click",e,this.close)};a.VERSION="3.3.5",a.TRANSITION_DURATION=150,a.prototype.close=function(t){function e(){i.detach().trigger("closed.bs.alert").remove()}var n=o(this),r=n.attr("data-target");r||(r=(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var i=o(r);t&&t.preventDefault(),i.length||(i=n.closest(".alert")),i.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(a.TRANSITION_DURATION):e())};var n=o.fn.alert;o.fn.alert=t,o.fn.alert.Constructor=a,o.fn.alert.noConflict=function(){return o.fn.alert=n,this},o(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(o){"use strict";function n(r){return this.each(function(){var t=o(this),e=t.data("bs.button"),n="object"==typeof r&&r;e||t.data("bs.button",e=new i(this,n)),"toggle"==r?e.toggle():r&&e.setState(r)})}var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};i.VERSION="3.3.5",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();t+="Text",null==i.resetText&&n.data("resetText",n[r]()),setTimeout(o.proxy(function(){n[r](null==i[t]?this.options[t]:i[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=i,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),n.call(e,"toggle"),o(t.target).is('input[type="radio"]')||o(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(d){"use strict";function a(i){return this.each(function(){var t=d(this),e=t.data("bs.carousel"),n=d.extend({},f.DEFAULTS,t.data(),"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("bs.carousel",e=new f(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})}var f=function(t,e){this.$element=d(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))};f.VERSION="3.3.5",f.TRANSITION_DURATION=600,f.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},f.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},f.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},f.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},f.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var r=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(r)},f.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},f.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},f.prototype.next=function(){if(!this.sliding)return this.slide("next")},f.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},f.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),r=e||this.getItemForDirection(t,n),i=this.interval,o="next"==t?"left":"right",a=this;if(r.hasClass("active"))return this.sliding=!1;var s=r[0],l=d.Event("slide.bs.carousel",{relatedTarget:s,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,i&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=d(this.$indicators.children()[this.getItemIndex(r)]);u&&u.addClass("active")}var c=d.Event("slid.bs.carousel",{relatedTarget:s,direction:o});return d.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,n.addClass(o),r.addClass(o),n.one("bsTransitionEnd",function(){r.removeClass([t,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(f.TRANSITION_DURATION)):(n.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(c)),i&&this.cycle(),this}};var t=d.fn.carousel;d.fn.carousel=a,d.fn.carousel.Constructor=f,d.fn.carousel.noConflict=function(){return d.fn.carousel=t,this};var e=function(t){var e,n=d(this),r=d(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var i=d.extend({},r.data(),n.data()),o=n.attr("data-slide-to");o&&(i.interval=!1),a.call(r,i),o&&r.data("bs.carousel").to(o),t.preventDefault()}};d(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var t=d(this);a.call(t,t.data())})})}(jQuery),function(a){"use strict";function i(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(n)}function s(r){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),n=a.extend({},l.DEFAULTS,t.data(),"object"==typeof r&&r);!e&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),e||t.data("bs.collapse",e=new l(this,n)),"string"==typeof r&&e[r]()})}var l=function(t,e){this.$element=a(t),this.options=a.extend({},l.DEFAULTS,e),this.$trigger=a('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};l.VERSION="3.3.5",l.TRANSITION_DURATION=350,l.DEFAULTS={toggle:!0},l.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},l.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=a.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(s.call(e,"hide"),t||e.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return i.call(this);var o=a.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",a.proxy(i,this)).emulateTransitionEnd(l.TRANSITION_DURATION)[r](this.$element[0][o])}}}},l.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(l.TRANSITION_DURATION)}}},l.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},l.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var n=a(e);this.addAriaAndCollapsedClass(i(n),n)},this)).end()},l.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=a.fn.collapse;a.fn.collapse=s,a.fn.collapse.Constructor=l,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var n=i(e),r=n.data("bs.collapse")?"toggle":e.data();s.call(n,r)})}(jQuery),function(s){"use strict";function l(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&s(e);return n&&n.length?n:t.parent()}function o(r){r&&3===r.which||(s(e).remove(),s(u).each(function(){var t=s(this),e=l(t),n={relatedTarget:this};e.hasClass("open")&&(r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&s.contains(e[0],r.target)||(e.trigger(r=s.Event("hide.bs.dropdown",n)),r.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",n))))}))}function t(n){return this.each(function(){var t=s(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new r(this)),"string"==typeof n&&e[n].call(t)})}var e=".dropdown-backdrop",u='[data-toggle="dropdown"]',r=function(t){s(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.5",r.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=l(e),r=n.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",o);var i={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger("shown.bs.dropdown",i)}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=l(e),r=n.hasClass("open");if(!r&&27!=t.which||r&&27==t.which)return 27==t.which&&n.find(u).trigger("focus"),e.trigger("click");var i=" li:not(.disabled):visible a",o=n.find(".dropdown-menu"+i);if(o.length){var a=o.index(t.target);38==t.which&&0<a&&a--,40==t.which&&a<o.length-1&&a++,~a||(a=0),o.eq(a).trigger("focus")}}}};var n=s.fn.dropdown;s.fn.dropdown=t,s.fn.dropdown.Constructor=r,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=n,this},s(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",u,r.prototype.toggle).on("keydown.bs.dropdown.data-api",u,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),function(s){"use strict";function e(n){return this.each(function(){var t=s(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof n&&e[n]()})}var a=function(t){this.element=s(t)};a.VERSION="3.3.5",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=e.find(".active:last a"),i=s.Event("hide.bs.tab",{relatedTarget:t[0]}),o=s.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(i),t.trigger(o),!o.isDefaultPrevented()&&!i.isDefaultPrevented()){var a=s(n);this.activate(t.closest("li"),e),this.activate(a,a.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},a.prototype.activate=function(t,e,n){function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var i=e.find("> .active"),o=n&&s.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);i.length&&o?i.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r(),i.removeClass("in")};var t=s.fn.tab;s.fn.tab=e,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=t,this};var n=function(t){t.preventDefault(),e.call(s(this),"show")};s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(r){"use strict";function t(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(t.style[n]!==undefined)return{end:e[n]};return!1}r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;return r(this).one("bsTransitionEnd",function(){e=!0}),setTimeout(function(){e||r(n).trigger(r.support.transition.end)},t),this},r(function(){r.support.transition=t(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(t){if(r(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(o){"use strict";function i(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(r){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof r&&r;e||t.data("bs.scrollspy",e=new i(this,n)),"string"==typeof r&&e[r]()})}i.VERSION="3.3.5",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var t=this,r="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(r="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[r]().top+i,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(i[t+1]===undefined||e<i[t+1])&&this.activate(o[t])},i.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=o(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},i.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(o){"use strict";function a(r,i){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},s.DEFAULTS,t.data(),"object"==typeof r&&r);e||t.data("bs.modal",e=new s(this,n)),"string"==typeof r?e[r](i):n.show&&e.show(i)})}var s=function(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};s.VERSION="3.3.5",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(n){var r=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),t&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:n});t?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):r.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=o.support.transition&&n;if(this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):i()}else t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({
paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=a,o.fn.modal.Constructor=s,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),i=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),a.call(r,i,this)})}(jQuery),function(m){"use strict";function t(r){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),n="object"==typeof r&&r;!e&&/destroy|hide/.test(r)||(e||t.data("bs.tooltip",e=new g(this,n)),"string"==typeof r&&e[r]())})}var g=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};g.VERSION="3.3.5",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o=r[i];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},g.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&m.each(this._options,function(t,e){r[t]!=e&&(n[t]=e)}),n},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,r=this.tip(),i=this.getUID(this.type);this.setContent(),r.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=r[0].offsetWidth,c=r[0].offsetHeight;if(s){var d=o,f=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+c>f.bottom?"top":"top"==o&&l.top-c<f.top?"bottom":"right"==o&&l.right+u>f.width?"left":"left"==o&&l.left-u<f.left?"right":o,r.removeClass(d).addClass(o)}var p=this.getCalculatedOffset(o,l,u,c);this.applyPlacement(p,o);var h=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(g.TRANSITION_DURATION):h()}},g.prototype.applyPlacement=function(t,e){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top+=o,t.left+=a,m.offset.setOffset(n[0],m.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=i&&(t.top=t.top+i-l);var u=this.getViewportAdjustedDelta(e,t,s,l);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(e),d=c?2*u.left-r+s:2*u.top-i+l,f=c?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][f],c)},g.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},g.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")},g.prototype.hide=function(t){function e(){"in"!=n.hoverState&&r.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}var n=this,r=m(this.$tip),i=m.Event("hide.bs."+this.type);if(this.$element.trigger(i),!i.isDefaultPrevented())return r.removeClass("in"),m.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(g.TRANSITION_DURATION):e(),this.hoverState=null,this},g.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","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,r=e.getBoundingClientRect();null==r.width&&(r=m.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var i=n?{top:0,left:0}:t.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},r,o,a,i)},g.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},g.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+r;s<a.top?i.top=a.top-s:l>a.top+a.height&&(i.top=a.top+a.height-l)}else{var u=e.left-o,c=e.left+o+n;u<a.left?i.left=a.left-u:c>a.right&&(i.left=a.left+a.width-c)}return i},g.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var e=m.fn.tooltip;m.fn.tooltip=t,m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(i){"use strict";function t(r){return this.each(function(){var t=i(this),e=t.data("bs.popover"),n="object"==typeof r&&r;!e&&/destroy|hide/.test(r)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof r&&e[r]())})}var o=function(t,e){this.init("popover",t,e)};if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.5",o.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype),(o.prototype.constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.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").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.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)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=i.fn.popover;i.fn.popover=t,i.fn.popover.Constructor=o,i.fn.popover.noConflict=function(){return i.fn.popover=e,this}}(jQuery),function(Ve,Qe,Ye){!function(t){"use strict";"function"==typeof define&&define.amd?define("datatables",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):jQuery&&!jQuery.fn.dataTable&&t(jQuery)}(function(M){"use strict";function a(e){var n,r,i="a aa ai ao as b fn i m o s ",o={};M.each(e,function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!==i.indexOf(n[1]+" ")&&(r=t.replace(n[0],n[2].toLowerCase()),o[r]=t,"o"===n[1]&&a(e[t]))}),e._hungarianMap=o}function E(e,n,r){var i;e._hungarianMap||a(e),M.each(n,function(t){(i=e._hungarianMap[t])===Ye||!r&&n[i]!==Ye||("o"===i.charAt(0)?(n[i]||(n[i]={}),M.extend(!0,n[i],n[t]),E(e[i],n[i],r)):n[i]=n[t])})}function I(t){var e=zt.defaults.oLanguage,n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var r=t.sDecimal;r&&Bt(r)}function N(t){me(t,"ordering","bSort"),me(t,"orderMulti","bSortMulti"),me(t,"orderClasses","bSortClasses"),me(t,"orderCellsTop","bSortCellsTop"),me(t,"order","aaSorting"),me(t,"orderFixed","aaSortingFixed"),me(t,"paging","bPaginate"),me(t,"pagingType","sPaginationType"),me(t,"pageLength","iDisplayLength"),me(t,"searching","bFilter");var e=t.aoSearchCols;if(e)for(var n=0,r=e.length;n<r;n++)e[n]&&E(zt.models.oSearch,e[n])}function L(t){me(t,"orderable","bSortable"),me(t,"orderData","aDataSort"),me(t,"orderSequence","asSorting"),me(t,"orderDataType","sortDataType");var e=t.aDataSort;e&&!M.isArray(e)&&(t.aDataSort=[e])}function R(t){var e=t.oBrowser,n=M("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(M("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(M('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),r=n.find(".test");e.bScrollOversize=100===r[0].offsetWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),n.remove()}function n(t,e,n,r,i,o){var a,s=r,l=!1;for(n!==Ye&&(a=n,l=!0);s!==i;)t.hasOwnProperty(s)&&(a=l?e(a,t[s],s,t):t[s],l=!0,s+=o);return a}function F(t,e){var n=zt.defaults.column,r=t.aoColumns.length,i=M.extend({},zt.models.oColumn,n,{nTh:e||Qe.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[r],mData:n.mData?n.mData:r,idx:r});t.aoColumns.push(i);var o=t.aoPreSearchCols;o[r]=M.extend({},zt.models.oSearch,o[r]),P(t,r,M(e).data())}function P(t,e,n){var r=t.aoColumns[e],i=t.oClasses,o=M(r.nTh);if(!r.sWidthOrig){r.sWidthOrig=o.attr("width")||null;var a=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);a&&(r.sWidthOrig=a[1])}n!==Ye&&null!==n&&(L(n),E(zt.defaults.column,n),n.mDataProp===Ye||n.mData||(n.mData=n.mDataProp),n.sType&&(r._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),M.extend(r,n),Lt(r,n,"sWidth","sWidthOrig"),n.iDataSort!==Ye&&(r.aDataSort=[n.iDataSort]),Lt(r,n,"aDataSort"));var s=r.mData,l=h(s),u=r.mRender?h(r.mRender):null,c=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};r._bAttrSrc=M.isPlainObject(s)&&(c(s.sort)||c(s.type)||c(s.filter)),r.fnGetData=function(t,e,n){var r=l(t,e,Ye,n);return u&&e?u(r,e,t,n):r},r.fnSetData=function(t,e,n){return b(s)(t,e,n)},"number"!=typeof s&&(t._rowReadObject=!0),t.oFeatures.bSort||(r.bSortable=!1,o.addClass(i.sSortableNone));var d=-1!==M.inArray("asc",r.asSorting),f=-1!==M.inArray("desc",r.asSorting);r.bSortable&&(d||f)?d&&!f?(r.sSortingClass=i.sSortableAsc,r.sSortingClassJUI=i.sSortJUIAscAllowed):!d&&f?(r.sSortingClass=i.sSortableDesc,r.sSortingClassJUI=i.sSortJUIDescAllowed):(r.sSortingClass=i.sSortable,r.sSortingClassJUI=i.sSortJUI):(r.sSortingClass=i.sSortableNone,r.sSortingClassJUI="")}function w(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;mt(t);for(var n=0,r=e.length;n<r;n++)e[n].nTh.style.width=e[n].sWidth}var i=t.oScroll;""===i.sY&&""===i.sX||pt(t),Ot(t,null,"column-sizing",[t])}function W(t,e){var n=T(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function c(t,e){var n=T(t,"bVisible"),r=M.inArray(e,n);return-1!==r?r:null}function S(t){return T(t,"bVisible").length}function T(t,n){var r=[];return M.map(t.aoColumns,function(t,e){t[n]&&r.push(e)}),r}function l(t){var e,n,r,i,o,a,s,l,u,c=t.aoColumns,d=t.aoData,f=zt.ext.type.detect;for(e=0,n=c.length;e<n;e++)if(u=[],!(s=c[e]).sType&&s._sManualType)s.sType=s._sManualType;else if(!s.sType){for(r=0,i=f.length;r<i;r++){for(o=0,a=d.length;o<a&&(u[o]===Ye&&(u[o]=m(t,o,e,"type")),(l=f[r](u[o],t))||r===f.length-1)&&"html"!==l;o++);if(l){s.sType=l;break}}s.sType||(s.sType="string")}}function O(t,e,n,r){var i,o,a,s,l,u,c,d=t.aoColumns;if(e)for(i=e.length-1;0<=i;i--){var f=(c=e[i]).targets!==Ye?c.targets:c.aTargets;for(M.isArray(f)||(f=[f]),a=0,s=f.length;a<s;a++)if("number"==typeof f[a]&&0<=f[a]){for(;d.length<=f[a];)F(t);r(f[a],c)}else if("number"==typeof f[a]&&f[a]<0)r(d.length+f[a],c);else if("string"==typeof f[a])for(l=0,u=d.length;l<u;l++)("_all"==f[a]||M(d[l].nTh).hasClass(f[a]))&&r(l,c)}if(n)for(i=0,o=n.length;i<o;i++)r(i,n[i])}function H(t,e,n,r){var i=t.aoData.length,o=M.extend(!0,{},zt.models.oRow,{src:n?"dom":"data"});o._aData=e,t.aoData.push(o);for(var a=t.aoColumns,s=0,l=a.length;s<l;s++)n&&u(t,i,s,m(t,i,s)),a[s].sType=null;return t.aiDisplayMaster.push(i),!n&&t.oFeatures.bDeferRender||C(t,i,n,r),i}function q(n,t){var r;return t instanceof M||(t=M(t)),t.map(function(t,e){return r=B(n,e),H(n,r.data,e,r.cells)})}function t(t,e){return e._DT_RowIndex!==Ye?e._DT_RowIndex:null}function e(t,e,n){return M.inArray(n,t.aoData[e].anCells)}function m(t,e,n,r){var i=t.iDraw,o=t.aoColumns[n],a=t.aoData[e]._aData,s=o.sDefaultContent,l=o.fnGetData(a,r,{settings:t,row:e,col:n});if(l===Ye)return t.iDrawError!=i&&null===s&&(Nt(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e,4),t.iDrawError=i),s;if(l!==a&&null!==l||null===s){if("function"==typeof l)return l.call(a)}else l=s;return null===l&&"display"==r?"":l}function u(t,e,n,r){var i=t.aoColumns[n],o=t.aoData[e]._aData;i.fnSetData(o,r,{settings:t,row:e,col:n})}function g(t){return M.map(t.match(/(\\.|[^\.])+/g),function(t){return t.replace(/\\./g,".")})}function h(i){if(M.isPlainObject(i)){var o={};return M.each(i,function(t,e){e&&(o[t]=h(e))}),function(t,e,n,r){var i=o[e]||o._;return i!==Ye?i(t,e,n,r):t}}if(null===i)return function(t){return t};if("function"==typeof i)return function(t,e,n,r){return i(t,e,n,r)};if("string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("("))return function(t){return t[i]};var p=function(t,e,n){var r,i,o,a;if(""!==n)for(var s=g(n),l=0,u=s.length;l<u;l++){if(r=s[l].match(ge),i=s[l].match(be),r){s[l]=s[l].replace(ge,""),""!==s[l]&&(t=t[s[l]]),o=[],s.splice(0,l+1),a=s.join(".");for(var c=0,d=t.length;c<d;c++)o.push(p(t[c],e,a));var f=r[0].substring(1,r[0].length-1);t=""===f?o:o.join(f);break}if(i)s[l]=s[l].replace(be,""),t=t[s[l]]();else{if(null===t||t[s[l]]===Ye)return Ye;t=t[s[l]]}}return t};return function(t,e){return p(t,e,i)}}function b(r){if(M.isPlainObject(r))return b(r._);if(null===r)return function(){};if("function"==typeof r)return function(t,e,n){r(t,"set",e,n)};if("string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("("))return function(t,e){t[r]=e};var h=function(t,e,n){for(var r,i,o,a,s,l=g(n),u=l[l.length-1],c=0,d=l.length-1;c<d;c++){if(i=l[c].match(ge),o=l[c].match(be),i){l[c]=l[c].replace(ge,""),t[l[c]]=[],(r=l.slice()).splice(0,c+1),s=r.join(".");for(var f=0,p=e.length;f<p;f++)h(a={},e[f],s),t[l[c]].push(a);return}o&&(l[c]=l[c].replace(be,""),t=t[l[c]](e)),null!==t[l[c]]&&t[l[c]]!==Ye||(t[l[c]]={}),t=t[l[c]]}u.match(be)?t=t[u.replace(be,"")](e):t[u.replace(ge,"")]=e};return function(t,e){return h(t,e,r)}}function x(t){return ue(t.aoData,"_aData")}function d(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0}function s(t,e,n){for(var r=-1,i=0,o=t.length;i<o;i++)t[i]==e?r=i:t[i]>e&&t[i]--;-1!=r&&n===Ye&&t.splice(r,1)}function i(n,r,t,e){var i,o,a=n.aoData[r],s=function(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=m(n,r,e,"display")};if("dom"!==t&&(t&&"auto"!==t||"dom"!==a.src)){var l=a.anCells;if(l)if(e!==Ye)s(l[e],e);else for(i=0,o=l.length;i<o;i++)s(l[i],i)}else a._aData=B(n,a,e,e===Ye?Ye:a._aData).data;a._aSortData=null,a._aFilterData=null;var u=n.aoColumns;if(e!==Ye)u[e].sType=null;else{for(i=0,o=u.length;i<o;i++)u[i].sType=null;f(a)}}function B(t,e,n,i){var r,o,a,s=[],l=e.firstChild,u=0,c=t.aoColumns,d=t._rowReadObject;i=i||d?{}:[];var f=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var r=t.substring(n+1);b(t)(i,e.getAttribute(r))}}},p=function(t){n!==Ye&&n!==u||(o=c[u],a=M.trim(t.innerHTML),o&&o._bAttrSrc?(b(o.mData._)(i,a),f(o.mData.sort,t),f(o.mData.type,t),f(o.mData.filter,t)):d?(o._setter||(o._setter=b(o.mData)),o._setter(i,a)):i[u]=a);u++};if(l)for(;l;)"TD"!=(r=l.nodeName.toUpperCase())&&"TH"!=r||(p(l),s.push(l)),l=l.nextSibling;else for(var h=0,m=(s=e.anCells).length;h<m;h++)p(s[h]);return{data:i,cells:s}}function C(t,e,n,r){var i,o,a,s,l,u=t.aoData[e],c=u._aData,d=[];if(null===u.nTr){for(i=n||Qe.createElement("tr"),u.nTr=i,u.anCells=d,i._DT_RowIndex=e,f(u),s=0,l=t.aoColumns.length;s<l;s++)a=t.aoColumns[s],o=n?r[s]:Qe.createElement(a.sCellType),d.push(o),n&&!a.mRender&&a.mData===s||(o.innerHTML=m(t,e,s,"display")),a.sClass&&(o.className+=" "+a.sClass),a.bVisible&&!n?i.appendChild(o):!a.bVisible&&n&&o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(t.oInstance,o,m(t,e,s),c,e,s);Ot(t,"aoRowCreatedCallback",null,[i,c,e])}u.nTr.setAttribute("role","row")}function f(t){var e=t.nTr,n=t._aData;if(e){if(n.DT_RowId&&(e.id=n.DT_RowId),n.DT_RowClass){var r=n.DT_RowClass.split(" ");t.__rowc=t.__rowc?he(t.__rowc.concat(r)):r,M(e).removeClass(t.__rowc.join(" ")).addClass(n.DT_RowClass)}n.DT_RowAttr&&M(e).attr(n.DT_RowAttr),n.DT_RowData&&M(e).data(n.DT_RowData)}}function p(t){var e,n,r,i,o,a=t.nTHead,s=t.nTFoot,l=0===M("th, td",a).length,u=t.oClasses,c=t.aoColumns;for(l&&(i=M("<tr/>").appendTo(a)),e=0,n=c.length;e<n;e++)o=c[e],r=M(o.nTh).addClass(o.sClass),l&&r.appendTo(i),t.oFeatures.bSort&&(r.addClass(o.sSortingClass),!1!==o.bSortable&&(r.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),$t(t,o.nTh,e))),o.sTitle!=r.html()&&r.html(o.sTitle),Mt(t,"header")(t,r,o,u);if(l&&U(t.aoHeader,a),M(a).find(">tr").attr("role","row"),M(a).find(">tr>th, >tr>td").addClass(u.sHeaderTH),M(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s){var d=t.aoFooter[0];for(e=0,n=d.length;e<n;e++)(o=c[e]).nTf=d[e].cell,o.sClass&&M(o.nTf).addClass(o.sClass)}}function v(t,e,n){var r,i,o,a,s,l,u,c,d,f=[],p=[],h=t.aoColumns.length;if(e){for(n===Ye&&(n=!1),r=0,i=e.length;r<i;r++){for(f[r]=e[r].slice(),f[r].nTr=e[r].nTr,o=h-1;0<=o;o--)t.aoColumns[o].bVisible||n||f[r].splice(o,1);p.push([])}for(r=0,i=f.length;r<i;r++){if(u=f[r].nTr)for(;l=u.firstChild;)u.removeChild(l);for(o=0,a=f[r].length;o<a;o++)if(d=c=1,p[r][o]===Ye){for(u.appendChild(f[r][o].cell),p[r][o]=1;f[r+c]!==Ye&&f[r][o].cell==f[r+c][o].cell;)p[r+c][o]=1,c++;for(;f[r][o+d]!==Ye&&f[r][o].cell==f[r][o+d].cell;){for(s=0;s<c;s++)p[r+s][o+d]=1;d++}M(f[r][o].cell).attr("rowspan",c).attr("colspan",d)}}}}function y(t){var e=Ot(t,"aoPreDrawCallback","preDraw",[t]);if(-1===M.inArray(!1,e)){var n=[],r=0,i=t.asStripeClasses,o=i.length,a=(t.aoOpenRows.length,t.oLanguage),s=t.iInitDisplayStart,l="ssp"==Wt(t),u=t.aiDisplay;t.bDrawing=!0,s!==Ye&&-1!==s&&(t._iDisplayStart=l?s:s>=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);var c=t._iDisplayStart,d=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,dt(t,!1);else if(l){if(!t.bDestroying&&!j(t))return}else t.iDraw++;if(0!==u.length)for(var f=l?0:c,p=l?t.aoData.length:d,h=f;h<p;h++){var m=u[h],g=t.aoData[m];null===g.nTr&&C(t,m);var b=g.nTr;if(0!==o){var v=i[r%o];g._sRowStripe!=v&&(M(b).removeClass(g._sRowStripe).addClass(v),g._sRowStripe=v)}Ot(t,"aoRowCallback",null,[b,g._aData,r,h]),n.push(b),r++}else{var y=a.sZeroRecords;1==t.iDraw&&"ajax"==Wt(t)?y=a.sLoadingRecords:a.sEmptyTable&&0===t.fnRecordsTotal()&&(y=a.sEmptyTable),n[0]=M("<tr/>",{"class":o?i[0]:""}).append(M("<td />",{valign:"top",colSpan:S(t),"class":t.oClasses.sRowEmpty}).html(y))[0]}Ot(t,"aoHeaderCallback","header",[M(t.nTHead).children("tr")[0],x(t),c,d,u]),Ot(t,"aoFooterCallback","footer",[M(t.nTFoot).children("tr")[0],x(t),c,d,u]);var _=M(t.nTBody);_.children().detach(),_.append(M(n)),Ot(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else dt(t,!1)}function _(t,e){var n=t.oFeatures,r=n.bSort,i=n.bFilter;r&&Tt(t),i?X(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,y(t),t._drawHold=!1}function D(t){var e=t.oClasses,n=M(t.nTable),r=M("<div/>").insertBefore(n),i=t.oFeatures,o=M("<div/>",{id:t.sTableId+"_wrapper","class":e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=o[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var a,s,l,u,c,d,f=t.sDom.split(""),p=0;p<f.length;p++){if(a=null,"<"==(s=f[p])){if(l=M("<div/>")[0],"'"==(u=f[p+1])||'"'==u){for(c="",d=2;f[p+d]!=u;)c+=f[p+d],d++;if("H"==c?c=e.sJUIHeader:"F"==c&&(c=e.sJUIFooter),-1!=c.indexOf(".")){var h=c.split(".");l.id=h[0].substr(1,h[0].length-1),l.className=h[1]}else"#"==c.charAt(0)?l.id=c.substr(1,c.length-1):l.className=c;p+=d}o.append(l),o=M(l)}else if(">"==s)o=o.parent();else if("l"==s&&i.bPaginate&&i.bLengthChange)a=st(t);else if("f"==s&&i.bFilter)a=A(t);else if("r"==s&&i.bProcessing)a=ct(t);else if("t"==s)a=ft(t);else if("i"==s&&i.bInfo)a=et(t);else if("p"==s&&i.bPaginate)a=lt(t);else if(0!==zt.ext.feature.length)for(var m=zt.ext.feature,g=0,b=m.length;g<b;g++)if(s==m[g].cFeature){a=m[g].fnInit(t);break}if(a){var v=t.aanFeatures;v[s]||(v[s]=[]),v[s].push(a),o.append(a)}}r.replaceWith(o)}function U(t,e){var n,r,i,o,a,s,l,u,c,d,f,p=M(e).children("tr"),h=function(t,e,n){for(var r=t[e];r[n];)n++;return n};for(t.splice(0,t.length),i=0,s=p.length;i<s;i++)t.push([]);for(i=0,s=p.length;i<s;i++)for(u=0,r=(n=p[i]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(c=(c=1*r.getAttribute("colspan"))&&0!==c&&1!==c?c:1,d=(d=1*r.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,l=h(t,i,u),f=1===c,a=0;a<c;a++)for(o=0;o<d;o++)t[i+o][l+a]={cell:r,unique:f},t[i+o].nTr=n;r=r.nextSibling}}function z(t,e,n){var r=[];n||(n=t.aoHeader,e&&U(n=[],e));for(var i=0,o=n.length;i<o;i++)for(var a=0,s=n[i].length;a<s;a++)!n[i][a].unique||r[a]&&t.bSortCellsTop||(r[a]=n[i][a].cell);return r}function $(r,t,e){if(Ot(r,"aoServerParams","serverParams",[t]),t&&M.isArray(t)){var i={},o=/(.*?)\[\]$/;M.each(t,function(t,e){var n=e.name.match(o);if(n){var r=n[0];i[r]||(i[r]=[]),i[r].push(e.value)}else i[e.name]=e.value}),t=i}var n,a=r.ajax,s=r.oInstance,l=function(t){Ot(r,null,"xhr",[r,t]),e(t)};if(M.isPlainObject(a)&&a.data){n=a.data;var u=M.isFunction(n)?n(t,r):n;t=M.isFunction(n)&&u?u:M.extend(!0,t,u),delete a.data}var c={data:t,success:function(t){var e=t.error||t.sError;e&&r.oApi._fnLog(r,0,e),r.json=t,l(t)},dataType:"json",cache:!1,type:r.sServerMethod,error:function(t,e){var n=r.oApi._fnLog;"parsererror"==e?n(r,0,"Invalid JSON response",1):4===t.readyState&&n(r,0,"Ajax error",7),dt(r,!1)}};r.oAjaxData=t,Ot(r,null,"preXhr",[r,t]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,M.map(t,function(t,e){return{name:e,value:t}}),l,r):r.sAjaxSource||"string"==typeof a?r.jqXHR=M.ajax(M.extend(c,{url:a||r.sAjaxSource})):M.isFunction(a)?r.jqXHR=a.call(s,t,l,r):(r.jqXHR=M.ajax(M.extend(c,a)),a.data=n)}function j(e){return!e.bAjaxDataGet||(e.iDraw++,dt(e,!0),$(e,r(e),function(t){o(e,t)}),!1)}function r(t){var e,n,r,i,o=t.aoColumns,a=o.length,s=t.oFeatures,l=t.oPreviousSearch,u=t.aoPreSearchCols,c=[],d=St(t),f=t._iDisplayStart,p=!1!==s.bPaginate?t._iDisplayLength:-1,h=function(t,e){c.push({name:t,value:e})};h("sEcho",t.iDraw),h("iColumns",a),h("sColumns",ue(o,"sName").join(",")),h("iDisplayStart",f),h("iDisplayLength",p);var m={draw:t.iDraw,columns:[],order:[],start:f,length:p,search:{value:l.sSearch,regex:l.bRegex}};for(e=0;e<a;e++)r=o[e],i=u[e],n="function"==typeof r.mData?"function":r.mData,m.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:i.sSearch,regex:i.bRegex}}),h("mDataProp_"+e,n),s.bFilter&&(h("sSearch_"+e,i.sSearch),h("bRegex_"+e,i.bRegex),h("bSearchable_"+e,r.bSearchable)),s.bSort&&h("bSortable_"+e,r.bSortable);s.bFilter&&(h("sSearch",l.sSearch),h("bRegex",l.bRegex)),s.bSort&&(M.each(d,function(t,e){m.order.push({column:e.col,dir:e.dir}),h("iSortCol_"+t,e.col),h("sSortDir_"+t,e.dir)}),h("iSortingCols",d.length));var g=zt.ext.legacy.ajax;return null===g?t.sAjaxSource?c:m:g?c:m}function o(t,n){var e=function(t,e){return n[t]!==Ye?n[t]:n[e]},r=k(t,n),i=e("sEcho","draw"),o=e("iTotalRecords","recordsTotal"),a=e("iTotalDisplayRecords","recordsFiltered");if(i){if(1*i<t.iDraw)return;t.iDraw=1*i}d(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(a,10);for(var s=0,l=r.length;s<l;s++)H(t,r[s]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,y(t),t._bInitComplete||ot(t,n),t.bAjaxDataGet=!0,dt(t,!1)}function k(t,e){var n=M.isPlainObject(t.ajax)&&t.ajax.dataSrc!==Ye?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===n?e.aaData||e[n]:""!==n?h(n)(e):e}function A(r){var t=r.oClasses,e=r.sTableId,n=r.oLanguage,i=r.oPreviousSearch,o=r.aanFeatures,a='<input type="search" class="'+t.sFilterInput+'"/>',s=n.sSearch;s=s.match(/_INPUT_/)?s.replace("_INPUT_",a):s+a;var l=M("<div/>",{id:o.f?null:e+"_filter","class":t.sFilter}).append(M("<label/>").append(s)),u=function(){o.f;var t=this.value?this.value:"";t!=i.sSearch&&(X(r,{sSearch:t,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive}),r._iDisplayStart=0,y(r))},c=null!==r.searchDelay?r.searchDelay:"ssp"===Wt(r)?400:0,d=M("input",l).val(i.sSearch).attr("placeholder",n.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",c?gt(u,c):u).bind("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",e);return M(r.nTable).on("search.dt.DT",function(t,e){if(r===e)try{d[0]!==Qe.activeElement&&d.val(i.sSearch)}catch(n){}}),l[0]}function X(t,e,n){var r=t.oPreviousSearch,i=t.aoPreSearchCols,o=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive},a=function(t){return t.bEscapeRegex!==Ye?!t.bEscapeRegex:t.bRegex};if(l(t),"ssp"!=Wt(t)){Q(t,e.sSearch,n,a(e),e.bSmart,e.bCaseInsensitive),o(e);for(var s=0;s<i.length;s++)V(t,i[s].sSearch,s,a(i[s]),i[s].bSmart,i[s].bCaseInsensitive);J(t)}else o(e);t.bFiltered=!0,Ot(t,null,"search",[t])}function J(t){for(var e,n,r=zt.ext.search,i=t.aiDisplay,o=0,a=r.length;o<a;o++){for(var s=[],l=0,u=i.length;l<u;l++)n=i[l],e=t.aoData[n],r[o](t,e._aFilterData,n,e._aData,l)&&s.push(n);i.length=0,i.push.apply(i,s)}}function V(t,e,n,r,i,o){if(""!==e)for(var a,s=t.aiDisplay,l=Y(e,r,i,o),u=s.length-1;0<=u;u--)a=t.aoData[s[u]]._aFilterData[n],l.test(a)||s.splice(u,1)}function Q(t,e,n,r,i,o){var a,s,l,u=Y(e,r,i,o),c=t.oPreviousSearch.sSearch,d=t.aiDisplayMaster;if(0!==zt.ext.search.length&&(n=!0),s=K(t),e.length<=0)t.aiDisplay=d.slice();else for((s||n||c.length>e.length||0!==e.indexOf(c)||t.bSorted)&&(t.aiDisplay=d.slice()),l=(a=t.aiDisplay).length-1;0<=l;l--)u.test(t.aoData[a[l]]._sFilterRow)||a.splice(l,1)}function Y(t,e,n,r){(t=e?t:G(t),n)&&(t="^(?=.*?"+M.map(t.match(/"[^"]+"|[^ ]+/g)||"",function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(t,r?"i":"")}function G(t){return t.replace(ee,"\\$1")}function K(t){var e,n,r,i,o,a,s,l,u=t.aoColumns,c=zt.ext.type.search,d=!1;for(n=0,i=t.aoData.length;n<i;n++)if(!(l=t.aoData[n])._aFilterData){for(a=[],r=0,o=u.length;r<o;r++)(e=u[r]).bSearchable?(s=m(t,n,r,"filter"),c[e.sType]&&(s=c[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(ve.innerHTML=s,s=ye?ve.textContent:ve.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join(" "),d=!0}return d}function Z(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(t){var e=t.sTableId,n=t.aanFeatures.i,r=M("<div/>",{"class":t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:nt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),M(t.nTable).attr("aria-describedby",e+"_info")),r[0]}function nt(t){var e=t.aanFeatures.i;if(0!==e.length){var n=t.oLanguage
,r=t._iDisplayStart+1,i=t.fnDisplayEnd(),o=t.fnRecordsTotal(),a=t.fnRecordsDisplay(),s=a?n.sInfo:n.sInfoEmpty;a!==o&&(s+=" "+n.sInfoFiltered),s=rt(t,s+=n.sInfoPostFix);var l=n.fnInfoCallback;null!==l&&(s=l.call(t.oInstance,t,r,i,o,a,s)),M(e).html(s)}}function rt(t,e){var n=t.fnFormatNumber,r=t._iDisplayStart+1,i=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===i;return e.replace(/_START_/g,n.call(t,r)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(o/i)))}function it(n){var r,t,e,i=n.iInitDisplayStart,o=n.aoColumns,a=n.oFeatures;if(n.bInitialised){for(D(n),p(n),v(n,n.aoHeader),v(n,n.aoFooter),dt(n,!0),a.bAutoWidth&&mt(n),r=0,t=o.length;r<t;r++)(e=o[r]).sWidth&&(e.nTh.style.width=xt(e.sWidth));_(n);var s=Wt(n);"ssp"!=s&&("ajax"==s?$(n,[],function(t){var e=k(n,t);for(r=0;r<e.length;r++)H(n,e[r]);n.iInitDisplayStart=i,_(n),dt(n,!1),ot(n,t)},n):(dt(n,!1),ot(n)))}else setTimeout(function(){it(n)},200)}function ot(t,e){t._bInitComplete=!0,e&&w(t),Ot(t,"aoInitComplete","init",[t,e])}function at(t,e){var n=parseInt(e,10);t._iDisplayLength=n,Ht(t),Ot(t,null,"length",[t,n])}function st(r){for(var t=r.oClasses,e=r.sTableId,n=r.aLengthMenu,i=M.isArray(n[0]),o=i?n[0]:n,a=i?n[1]:n,s=M("<select/>",{name:e+"_length","aria-controls":e,"class":t.sLengthSelect}),l=0,u=o.length;l<u;l++)s[0][l]=new Option(a[l],o[l]);var c=M("<div><label/></div>").addClass(t.sLength);return r.aanFeatures.l||(c[0].id=e+"_length"),c.children().append(r.oLanguage.sLengthMenu.replace("_MENU_",s[0].outerHTML)),M("select",c).val(r._iDisplayLength).bind("change.DT",function(){at(r,M(this).val()),y(r)}),M(r.nTable).bind("length.dt.DT",function(t,e,n){r===e&&M("select",c).val(n)}),c[0]}function lt(t){var e=t.sPaginationType,c=zt.ext.pager[e],d="function"==typeof c,f=function(t){y(t)},n=M("<div/>").addClass(t.oClasses.sPaging+e)[0],p=t.aanFeatures;return d||c.fnInit(t,n,f),p.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(d){var e,n,r=t._iDisplayStart,i=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===i,s=a?0:Math.ceil(r/i),l=a?1:Math.ceil(o/i),u=c(s,l);for(e=0,n=p.p.length;e<n;e++)Mt(t,"pageButton")(t,p.p[e],e,u,s,l)}else c.fnUpdate(t,f)},sName:"pagination"})),n}function ut(t,e,n){var r=t._iDisplayStart,i=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||-1===i?r=0:"number"==typeof e?o<(r=e*i)&&(r=0):"first"==e?r=0:"previous"==e?(r=0<=i?r-i:0)<0&&(r=0):"next"==e?r+i<o&&(r+=i):"last"==e?r=Math.floor((o-1)/i)*i:Nt(t,0,"Unknown paging action: "+e,5);var a=t._iDisplayStart!==r;return t._iDisplayStart=r,a&&(Ot(t,null,"page",[t]),n&&y(t)),a}function ct(t){return M("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing","class":t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function dt(t,e){t.oFeatures.bProcessing&&M(t.aanFeatures.r).css("display",e?"block":"none"),Ot(t,null,"processing",[t,e])}function ft(t){var e=M(t.nTable);e.attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,i=n.sY,o=t.oClasses,a=e.children("caption"),s=a.length?a[0]._captionSide:null,l=M(e[0].cloneNode(!1)),u=M(e[0].cloneNode(!1)),c=e.children("tfoot"),d="<div/>",f=function(t){return t?xt(t):null};n.sX&&"100%"===e.attr("width")&&e.removeAttr("width"),c.length||(c=null);var p=M(d,{"class":o.sScrollWrapper}).append(M(d,{"class":o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?f(r):"100%"}).append(M(d,{"class":o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(e.children("thead"))))).append(M(d,{"class":o.sScrollBody}).css({overflow:"auto",height:f(i),width:f(r)}).append(e));c&&p.append(M(d,{"class":o.sScrollFoot}).css({overflow:"hidden",border:0,width:r?f(r):"100%"}).append(M(d,{"class":o.sScrollFootInner}).append(u.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(e.children("tfoot")))));var h=p.children(),m=h[0],g=h[1],b=c?h[2]:null;return r&&M(g).on("scroll.DT",function(){var t=this.scrollLeft;m.scrollLeft=t,c&&(b.scrollLeft=t)}),t.nScrollHead=m,t.nScrollBody=g,t.nScrollFoot=b,t.aoDrawCallback.push({fn:pt,sName:"scrolling"}),p[0]}function pt(n){var t,e,r,i,o,a,s,l,u,c=n.oScroll,d=c.sX,f=c.sXInner,p=c.sY,h=c.iBarWidth,m=M(n.nScrollHead),g=m[0].style,b=m.children("div"),v=b[0].style,y=b.children("table"),_=n.nScrollBody,x=M(_),w=_.style,S=M(n.nScrollFoot).children("div"),T=S.children("table"),C=M(n.nTHead),D=M(n.nTable),$=D[0],j=$.style,k=n.nTFoot?M(n.nTFoot):null,A=n.oBrowser,E=A.bScrollOversize,I=[],N=[],L=[],R=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};if(D.children("thead, tfoot").remove(),o=C.clone().prependTo(D),t=C.find("tr"),r=o.find("tr"),o.find("th, td").removeAttr("tabindex"),k&&(a=k.clone().prependTo(D),e=k.find("tr"),i=a.find("tr")),d||(w.width="100%",m[0].style.width="100%"),M.each(z(n,o),function(t,e){s=W(n,t),e.style.width=n.aoColumns[s].sWidth}),k&&ht(function(t){t.style.width=""},i),c.bCollapse&&""!==p&&(w.height=x[0].offsetHeight+C[0].offsetHeight+"px"),u=D.outerWidth(),""===d?(j.width="100%",E&&(D.find("tbody").height()>_.offsetHeight||"scroll"==x.css("overflow-y"))&&(j.width=xt(D.outerWidth()-h))):""!==f?j.width=xt(f):u==x.width()&&x.height()<D.height()?(j.width=xt(u-h),D.outerWidth()>u-h&&(j.width=xt(u))):j.width=xt(u),u=D.outerWidth(),ht(R,r),ht(function(t){L.push(t.innerHTML),I.push(xt(M(t).css("width")))},r),ht(function(t,e){t.style.width=I[e]},t),M(r).height(0),k&&(ht(R,i),ht(function(t){N.push(xt(M(t).css("width")))},i),ht(function(t,e){t.style.width=N[e]},e),M(i).height(0)),ht(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+L[e]+"</div>",t.style.width=I[e]},r),k&&ht(function(t,e){t.innerHTML="",t.style.width=N[e]},i),D.outerWidth()<u?(l=_.scrollHeight>_.offsetHeight||"scroll"==x.css("overflow-y")?u+h:u,E&&(_.scrollHeight>_.offsetHeight||"scroll"==x.css("overflow-y"))&&(j.width=xt(l-h)),""!==d&&""===f||Nt(n,1,"Possible column misalignment",6)):l="100%",w.width=xt(l),g.width=xt(l),k&&(n.nScrollFoot.style.width=xt(l)),p||E&&(w.height=xt($.offsetHeight+h)),p&&c.bCollapse){w.height=xt(p);var F=d&&$.offsetWidth>_.offsetWidth?h:0;$.offsetHeight<_.offsetHeight&&(w.height=xt($.offsetHeight+F))}var P=D.outerWidth();y[0].style.width=xt(P),v.width=xt(P);var O=D.height()>_.clientHeight||"scroll"==x.css("overflow-y"),H="padding"+(A.bScrollbarLeft?"Left":"Right");v[H]=O?h+"px":"0px",k&&(T[0].style.width=xt(P),S[0].style.width=xt(P),S[0].style[H]=O?h+"px":"0px"),x.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(_.scrollTop=0)}function ht(t,e,n){for(var r,i,o=0,a=0,s=e.length;a<s;){for(r=e[a].firstChild,i=n?n[a].firstChild:null;r;)1===r.nodeType&&(n?t(r,i,o):t(r,o),o++),r=r.nextSibling,i=n?i.nextSibling:null;a++}}function mt(t){var e,n,r,i,o,a=t.nTable,s=t.aoColumns,l=t.oScroll,u=l.sY,c=l.sX,d=l.sXInner,f=s.length,p=T(t,"bVisible"),h=M("th",t.nTHead),m=a.getAttribute("width"),g=a.parentNode,b=!1,v=a.style.width;for(v&&-1!==v.indexOf("%")&&(m=v),e=0;e<p.length;e++)null!==(n=s[p[e]]).sWidth&&(n.sWidth=bt(n.sWidthOrig,g),b=!0);if(b||c||u||f!=S(t)||f!=h.length){var y=M(a).clone().empty().css("visibility","hidden").removeAttr("id").append(M(t.nTHead).clone(!1)).append(M(t.nTFoot).clone(!1)).append(M("<tbody><tr/></tbody>"));y.find("tfoot th, tfoot td").css("width","");var _=y.find("tbody tr");for(h=z(t,y.find("thead")[0]),e=0;e<p.length;e++)n=s[p[e]],h[e].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?xt(n.sWidthOrig):"";if(t.aoData.length)for(e=0;e<p.length;e++)n=s[r=p[e]],M(yt(t,r)).clone(!1).append(n.sContentPadding).appendTo(_);if(y.appendTo(g),c&&d?y.width(d):c?(y.css("width","auto"),y.width()<g.offsetWidth&&y.width(g.offsetWidth)):u?y.width(g.offsetWidth):m&&y.width(m),vt(t,y[0]),c){var x=0;for(e=0;e<p.length;e++)n=s[p[e]],o=M(h[e]).outerWidth(),x+=null===n.sWidthOrig?o:parseInt(n.sWidth,10)+o-M(h[e]).width();y.width(xt(x)),a.style.width=xt(x)}for(e=0;e<p.length;e++)n=s[p[e]],(i=M(h[e]).width())&&(n.sWidth=xt(i));a.style.width=xt(y.css("width")),y.remove()}else for(e=0;e<f;e++)s[e].sWidth=xt(h.eq(e).width());m&&(a.style.width=xt(m)),!m&&!c||t._reszEvt||(M(Ve).bind("resize.DT-"+t.sInstance,gt(function(){w(t)})),t._reszEvt=!0)}function gt(r,t){var i,o,a=t!==Ye?t:200;return function(){var t=this,e=+new Date,n=arguments;i&&e<i+a?(clearTimeout(o),o=setTimeout(function(){i=Ye,r.apply(t,n)},a)):(i=e,r.apply(t,n))}}function bt(t,e){if(!t)return 0;var n=M("<div/>").css("width",xt(t)).appendTo(e||Qe.body),r=n[0].offsetWidth;return n.remove(),r}function vt(t,e){var n=t.oScroll;if(n.sX||n.sY){var r=n.sX?0:n.iBarWidth;e.style.width=xt(M(e).outerWidth()-r)}}function yt(t,e){var n=_t(t,e);if(n<0)return null;var r=t.aoData[n];return r.nTr?r.anCells[e]:M("<td/>").html(m(t,n,e,"display"))[0]}function _t(t,e){for(var n,r=-1,i=-1,o=0,a=t.aoData.length;o<a;o++)(n=(n=m(t,o,e,"display")+"").replace(_e,"")).length>r&&(r=n.length,i=o);return i}function xt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function wt(){var t=zt.__scrollbarWidth;if(t===Ye){var e=M("<p/>").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",visibility:"hidden"}).appendTo("body");t=e[0].offsetWidth-e[0].clientWidth,zt.__scrollbarWidth=t,e.remove()}return t}function St(t){var e,n,r,i,o,a,s,l=[],u=t.aoColumns,c=t.aaSortingFixed,d=M.isPlainObject(c),f=[],p=function(t){t.length&&!M.isArray(t[0])?f.push(t):f.push.apply(f,t)};for(M.isArray(c)&&p(c),d&&c.pre&&p(c.pre),p(t.aaSorting),d&&c.post&&p(c.post),e=0;e<f.length;e++)for(n=0,r=(i=u[s=f[e][0]].aDataSort).length;n<r;n++)a=u[o=i[n]].sType||"string",f[e]._idx===Ye&&(f[e]._idx=M.inArray(f[e][1],u[o].asSorting)),l.push({src:s,col:o,dir:f[e][1],index:f[e]._idx,type:a,formatter:zt.ext.type.order[a+"-pre"]});return l}function Tt(t){var e,n,r,i,c,d=[],f=zt.ext.type.order,p=t.aoData,o=(t.aoColumns,0),a=t.aiDisplayMaster;for(l(t),e=0,n=(c=St(t)).length;e<n;e++)(i=c[e]).formatter&&o++,kt(t,i.col);if("ssp"!=Wt(t)&&0!==c.length){for(e=0,r=a.length;e<r;e++)d[a[e]]=e;o===c.length?a.sort(function(t,e){var n,r,i,o,a,s=c.length,l=p[t]._aSortData,u=p[e]._aSortData;for(i=0;i<s;i++)if(0!==(o=(n=l[(a=c[i]).col])<(r=u[a.col])?-1:r<n?1:0))return"asc"===a.dir?o:-o;return(n=d[t])<(r=d[e])?-1:r<n?1:0}):a.sort(function(t,e){var n,r,i,o,a,s=c.length,l=p[t]._aSortData,u=p[e]._aSortData;for(i=0;i<s;i++)if(n=l[(a=c[i]).col],r=u[a.col],0!==(o=(f[a.type+"-"+a.dir]||f["string-"+a.dir])(n,r)))return o;return(n=d[t])<(r=d[e])?-1:r<n?1:0})}t.bSorted=!0}function Ct(t){for(var e,n,r=t.aoColumns,i=St(t),o=t.oLanguage.oAria,a=0,s=r.length;a<s;a++){var l=r[a],u=l.asSorting,c=l.sTitle.replace(/<.*?>/g,""),d=l.nTh;d.removeAttribute("aria-sort"),l.bSortable?(0<i.length&&i[0].col==a?(d.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=u[i[0].index+1]||u[0]):n=u[0],e=c+("asc"===n?o.sSortAscending:o.sSortDescending)):e=c,d.setAttribute("aria-label",e)}}function Dt(t,e,n,r){var i,o=t.aoColumns[e],a=t.aaSorting,s=o.asSorting,l=function(t,e){var n=t._idx;return n===Ye&&(n=M.inArray(t[1],s)),n+1<s.length?n+1:e?null:0};if("number"==typeof a[0]&&(a=t.aaSorting=[a]),n&&t.oFeatures.bSortMulti){var u=M.inArray(e,ue(a,"0"));-1!==u?(null===(i=l(a[u],!0))&&1===a.length&&(i=0),null===i?a.splice(u,1):(a[u][1]=s[i],a[u]._idx=i)):(a.push([e,s[0],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==e?(i=l(a[0]),a.length=1,a[0][1]=s[i],a[0]._idx=i):(a.length=0,a.push([e,s[0]]),a[0]._idx=0);_(t),"function"==typeof r&&r(t)}function $t(e,t,n,r){var i=e.aoColumns[n];Ft(t,{},function(t){!1!==i.bSortable&&(e.oFeatures.bProcessing?(dt(e,!0),setTimeout(function(){Dt(e,n,t.shiftKey,r),"ssp"!==Wt(e)&&dt(e,!1)},0)):Dt(e,n,t.shiftKey,r))})}function jt(t){var e,n,r,i=t.aLastSort,o=t.oClasses.sSortColumn,a=St(t),s=t.oFeatures;if(s.bSort&&s.bSortClasses){for(e=0,n=i.length;e<n;e++)r=i[e].src,M(ue(t.aoData,"anCells",r)).removeClass(o+(e<2?e+1:3));for(e=0,n=a.length;e<n;e++)r=a[e].src,M(ue(t.aoData,"anCells",r)).addClass(o+(e<2?e+1:3))}t.aLastSort=a}function kt(t,e){var n,r,i,o=t.aoColumns[e],a=zt.ext.order[o.sSortDataType];a&&(n=a.call(t.oInstance,t,e,c(t,e)));for(var s=zt.ext.type.order[o.sType+"-pre"],l=0,u=t.aoData.length;l<u;l++)(r=t.aoData[l])._aSortData||(r._aSortData=[]),r._aSortData[e]&&!a||(i=a?n[l]:m(t,l,e,"sort"),r._aSortData[e]=s?s(i):i)}function At(n){if(n.oFeatures.bStateSave&&!n.bDestroying){var t={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:M.extend(!0,[],n.aaSorting),search:Z(n.oPreviousSearch),columns:M.map(n.aoColumns,function(t,e){return{visible:t.bVisible,search:Z(n.aoPreSearchCols[e])}})};Ot(n,"aoStateSaveParams","stateSaveParams",[n,t]),n.oSavedState=t,n.fnStateSaveCallback.call(n.oInstance,n,t)}}function Et(n){var t,e,r=n.aoColumns;if(n.oFeatures.bStateSave){var i=n.fnStateLoadCallback.call(n.oInstance,n);if(i&&i.time){var o=Ot(n,"aoStateLoadParams","stateLoadParams",[n,i]);if(-1===M.inArray(!1,o)){var a=n.iStateDuration;if(!(0<a&&i.time<+new Date-1e3*a)&&r.length===i.columns.length){for(n.oLoadedState=M.extend(!0,{},i),i.start!==Ye&&(n._iDisplayStart=i.start,n.iInitDisplayStart=i.start),i.length!==Ye&&(n._iDisplayLength=i.length),i.order!==Ye&&(n.aaSorting=[],M.each(i.order,function(t,e){n.aaSorting.push(e[0]>=r.length?[0,e[1]]:e)})),i.search!==Ye&&M.extend(n.oPreviousSearch,tt(i.search)),t=0,e=i.columns.length;t<e;t++){var s=i.columns[t];s.visible!==Ye&&(r[t].bVisible=s.visible),s.search!==Ye&&M.extend(n.aoPreSearchCols[t],tt(s.search))}Ot(n,"aoStateLoaded","stateLoaded",[n,i])}}}}}function It(t){var e=zt.settings,n=M.inArray(t,ue(e,"nTable"));return-1!==n?e[n]:null}function Nt(t,e,n,r){if(n="DataTables warning: "+(null!==t?"table id="+t.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see http://datatables.net/tn/"+r),e)Ve.console&&console.log&&console.log(n);else{var i=zt.ext,o=i.sErrMode||i.errMode;if(Ot(t,null,"error",[t,r,n]),"alert"==o)alert(n);else{if("throw"==o)throw new Error(n);"function"==typeof o&&o(t,r,n)}}}function Lt(n,r,t,e){M.isArray(t)?M.each(t,function(t,e){M.isArray(e)?Lt(n,r,e[0],e[1]):Lt(n,r,e)}):(e===Ye&&(e=t),r[t]!==Ye&&(n[e]=r[t]))}function Rt(t,e,n){var r;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],M.isPlainObject(r)?(M.isPlainObject(t[i])||(t[i]={}),M.extend(!0,t[i],r)):n&&"data"!==i&&"aaData"!==i&&M.isArray(r)?t[i]=r.slice():t[i]=r);return t}function Ft(e,t,n){M(e).bind("click.DT",t,function(t){e.blur(),n(t)}).bind("keypress.DT",t,function(t){13===t.which&&(t.preventDefault(),n(t))}).bind("selectstart.DT",function(){return!1})}function Pt(t,e,n,r){n&&t[e].push({fn:n,sName:r})}function Ot(e,t,n,r){var i=[];return t&&(i=M.map(e[t].slice().reverse(),function(t){return t.fn.apply(e.oInstance,r)})),null!==n&&M(e.nTable).trigger(n+".dt",r),i}function Ht(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),r=t._iDisplayLength;n<=e&&(e=n-r),e-=e%r,(-1===r||e<0)&&(e=0),t._iDisplayStart=e}function Mt(t,e){var n=t.renderer,r=zt.ext.renderer[e];return M.isPlainObject(n)&&n[e]?r[n[e]]||r._:"string"==typeof n&&r[n]||r._}function Wt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function qt(t,e){var n=[],r=Xe.numbers_length,i=Math.floor(r/2);return e<=r?n=de(0,e):t<=i?((n=de(0,r-2)).push("ellipsis"),n.push(e-1)):(e-1-i<=t?(n=de(e-(r-2),e)).splice(0,0,"ellipsis"):((n=de(t-i+2,t+i-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis")),n.splice(0,0,0)),n.DT_el="span",n}function Bt(n){M.each({num:function(t){return Je(t,n)},"num-fmt":function(t){return Je(t,n,ne)},"html-num":function(t){return Je(t,n,Kt)},"html-num-fmt":function(t){return Je(t,n,Kt,ne)}},function(t,e){Xt.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(Xt.type.search[t+n]=Xt.type.search.html)})}function Ut(e){return function(){var t=[It(this[zt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return zt.ext.internal[e].apply(this,t)}}var zt,Xt,Jt,Vt,Qt,Yt={},Gt=/[\r\n]/g,Kt=/<.*?>/g,Zt=/^[\w\+\-]/,te=/[\w\+\-]$/,ee=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),ne=/[',$\xa3\u20ac\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,re=function(t){return!t||!0===t||"-"===t},ie=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},oe=function(t,e){return Yt[e]||(Yt[e]=new RegExp(G(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Yt[e],"."):t},ae=function(t,e,n){var r="string"==typeof t;return!!re(t)||(e&&r&&(t=oe(t,e)),n&&r&&(t=t.replace(ne,"")),!isNaN(parseFloat(t))&&isFinite(t))},se=function(t){return re(t)||"string"==typeof t},le=function(t,e,n){return!!re(t)||(se(t)&&!!ae(pe(t),e,n)||null)},ue=function(t,e,n){var r=[],i=0,o=t.length;if(n!==Ye)for(;i<o;i++)t[i]&&t[i][e]&&r.push(t[i][e][n]);else for(;i<o;i++)t[i]&&r.push(t[i][e]);return r},ce=function(t,e,n,r){var i=[],o=0,a=e.length;if(r!==Ye)for(;o<a;o++)t[e[o]][n]&&i.push(t[e[o]][n][r]);else for(;o<a;o++)i.push(t[e[o]][n]);return i},de=function(t,e){var n,r=[];e===Ye?(e=0,n=t):(n=e,e=t);for(var i=e;i<n;i++)r.push(i);return r},fe=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&e.push(t[n]);return e},pe=function(t){return t.replace(Kt,"")},he=function(t){var e,n,r,i=[],o=t.length,a=0;t:for(n=0;n<o;n++){for(e=t[n],r=0;r<a;r++)if(i[r]===e)continue t;i.push(e),a++}return i},me=function(t,e,n){t[e]!==Ye&&(t[n]=t[e])},ge=/\[.*?\]$/,be=/\(\)$/,ve=M("<div>")[0],ye=ve.textContent!==Ye,_e=/<.*?>/g;zt=function($){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Jt(t?It(this[Xt.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),r=M.isArray(t)&&(M.isArray(t[0])||M.isPlainObject(t[0]))?n.rows.add(t):n.row.add(t);return(e===Ye||e)&&n.draw(),r.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;t===Ye||t?e.draw(!1):""===r.sX&&""===r.sY||pt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===Ye||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),i=r.rows(t),o=i.settings()[0],a=o.aoData[i[0][0]];return i.remove(),e&&e.call(this,o,a),(n===Ye||n)&&r.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,i,o){var a=this.api(!0);null===e||e===Ye?a.search(t,n,r,o):a.column(e).search(t,n,r,o),a.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t===Ye)return n.data().toArray();var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==Ye||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null},this.fnGetNodes=function(t){var e=this.api(!0);return t!==Ye?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"!=n&&"TH"!=n)return null;var r=e.cell(t).index();return[r.row,r.columnVisible,r.column]},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===Ye||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var r=this.api(!0).column(t).visible(e);(n===Ye||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return It(this[Xt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,i){var o=this.api(!0);return n===Ye||null===n?o.row(e).data(t):o.cell(e,n).data(t),(i===Ye||i)&&o.columns.adjust(),(r===Ye||r)&&o.draw(),0},this.fnVersionCheck=Xt.fnVersionCheck;var j=this,k=$===Ye,A=this.length;for(var t in k&&($={}),this.oApi=this.internal=Xt.internal,zt.ext.internal)t&&(this[t]=Ut(t));return this.each(function(){var t,e=1<A?Rt({},$,!0):$,n=0,r=this.getAttribute("id"),i=!1,o=zt.defaults,a=M(this);if("table"==this.nodeName.toLowerCase()){N(o),L(o.column),E(o,o,!0),E(o.column,o.column,!0),E(o,M.extend(e,a.data()));var s=zt.settings;for(n=0,t=s.length;n<t;n++){var l=s[n];if(l.nTable==this||l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){var u=e.bRetrieve!==Ye?e.bRetrieve:o.bRetrieve,c=e.bDestroy!==Ye?e.bDestroy:o.bDestroy;if(k||u)return l.oInstance;if(c){l.oInstance.fnDestroy();break}return void Nt(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){s.splice(n,1);break}}null!==r&&""!==r||(r="DataTables_Table_"+zt.ext._unique++,this.id=r);var d=M.extend(!0,{},zt.models.oSettings,{sDestroyWidth:a[0].style.width,sInstance:r,sTableId:r});d.nTable=this,d.oApi=j.internal,d.oInit=e,s.push(d),d.oInstance=1===j.length?j:a.dataTable(),N(e),e.oLanguage&&I(e.oLanguage),e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=M.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:e.aLengthMenu[0]),e=Rt(M.extend(!0,{},o),e),Lt(d.oFeatures,e,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Lt(d,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),Lt(d.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Lt(d.oLanguage,e,"fnInfoCallback"),Pt(d,"aoDrawCallback",e.fnDrawCallback,"user"),Pt(d,"aoServerParams",e.fnServerParams,"user"),Pt(d,"aoStateSaveParams",e.fnStateSaveParams,"user"),Pt(d,"aoStateLoadParams",e.fnStateLoadParams,"user"),Pt(d,"aoStateLoaded",e.fnStateLoaded,"user"),Pt(d,"aoRowCallback",e.fnRowCallback,"user"),Pt(d,"aoRowCreatedCallback",e.fnCreatedRow,"user"),Pt(d,"aoHeaderCallback",e.fnHeaderCallback,"user"),Pt(d,"aoFooterCallback",e.fnFooterCallback,"user"),Pt(d,"aoInitComplete",e.fnInitComplete,"user"),Pt(d,"aoPreDrawCallback",e.fnPreDrawCallback,"user");var f=d.oClasses;if(e.bJQueryUI?(M.extend(f,zt.ext.oJUIClasses,e.oClasses),e.sDom===o.sDom&&"lfrtip"===o.sDom&&(d.sDom='<"H"lfr>t<"F"ip>'),d.renderer?M.isPlainObject(d.renderer)&&!d.renderer.header&&(d.renderer.header="jqueryui"):d.renderer="jqueryui"):M.extend(f,zt.ext.classes,e.oClasses),a.addClass(f.sTable),""===d.oScroll.sX&&""===d.oScroll.sY||(d.oScroll.iBarWidth=wt()),!0===d.oScroll.sX&&(d.oScroll.sX="100%"),d.iInitDisplayStart===Ye&&(d.iInitDisplayStart=e.iDisplayStart,d._iDisplayStart=e.iDisplayStart),null!==e.iDeferLoading){d.bDeferLoading=!0;var p=M.isArray(e.iDeferLoading);d._iRecordsDisplay=p?e.iDeferLoading[0]:e.iDeferLoading,d._iRecordsTotal=p?e.iDeferLoading[1]:e.iDeferLoading}var h=d.oLanguage;M.extend(!0,h,e.oLanguage),""!==h.sUrl&&(M.ajax({dataType:"json",url:h.sUrl,success:function(t){I(t),E(o.oLanguage,t),M.extend(!0,h,t),it(d)},error:function(){it(d)}}),i=!0),null===e.asStripeClasses&&(d.asStripeClasses=[f.sStripeOdd,f.sStripeEven]);var m=d.asStripeClasses,g=a.children("tbody").find("tr").eq(0);-1!==M.inArray(!0,M.map(m,function(t){return g.hasClass(t)}))&&(M("tbody tr",this).removeClass(m.join(" ")),d.asDestroyStripes=m.slice());var b,v=[],y=this.getElementsByTagName("thead");if(0!==y.length&&(U(d.aoHeader,y[0]),v=z(d)),null===e.aoColumns)for(b=[],n=0,t=v.length;n<t;n++)b.push(null);else b=e.aoColumns;for(n=0,t=b.length;n<t;n++)F(d,v?v[n]:null);if(O(d,e.aoColumnDefs,b,function(t,e){P(d,t,e)}),g.length){var _=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};M.each(B(d,g[0]).cells,function(t,e){var n=d.aoColumns[t];if(n.mData===t){var r=_(e,"sort")||_(e,"order"),i=_(e,"filter")||_(e,"search");null===r&&null===i||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:Ye,type:null!==r?t+".@data-"+r:Ye,filter:null!==i?t+".@data-"+i:Ye},P(d,t))}})}var x=d.oFeatures;if(e.bStateSave&&(x.bStateSave=!0,Et(d,e),Pt(d,"aoDrawCallback",At,"state_save")),e.aaSorting===Ye){var w=d.aaSorting;for(n=0,t=w.length;n<t;n++)w[n][1]=d.aoColumns[n].asSorting[0]}jt(d),x.bSort&&Pt(d,"aoDrawCallback",function(){if(d.bSorted){var t=St(d),n={};M.each(t,function(t,e){n[e.src]=e.dir}),Ot(d,null,"order",[d,t,n]),Ct(d)}}),Pt(d,"aoDrawCallback",function(){(d.bSorted||"ssp"===Wt(d)||x.bDeferRender)&&jt(d)},"sc"),R(d);var S=a.children("caption").each(function(){this._captionSide=a.css("caption-side")}),T=a.children("thead");0===T.length&&(T=M("<thead/>").appendTo(this)),d.nTHead=T[0];var C=a.children("tbody");0===C.length&&(C=M("<tbody/>").appendTo(this)),d.nTBody=C[0];var D=a.children("tfoot");if(0===D.length&&0<S.length&&(""!==d.oScroll.sX||""!==d.oScroll.sY)&&(D=M("<tfoot/>").appendTo(this)),0===D.length||0===D.children().length?a.addClass(f.sNoFooter):0<D.length&&(d.nTFoot=D[0],U(d.aoFooter,d.nTFoot)),e.aaData)for(n=0;n<e.aaData.length;n++)H(d,e.aaData[n]);else(d.bDeferLoading||"dom"==Wt(d))&&q(d,M(d.nTBody).children("tr"));d.aiDisplay=d.aiDisplayMaster.slice(),!(d.bInitialised=!0)===i&&it(d)}else Nt(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),j=null,this};var xe=[],we=Array.prototype,Se=function(t){var e,n,r=zt.settings,i=M.map(r,function(t){return t.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=M.inArray(t,i))?[r[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=M(t):t instanceof M&&(n=t),n?n.map(function(){return-1!==(e=M.inArray(this,i))?r[e]:null}).toArray():void 0):[]};Jt=function(t,e){if(!this instanceof Jt)throw"DT API must be constructed as a new object";var n=[],r=function(t){var e=Se(t);e&&n.push.apply(n,e)};if(M.isArray(t))for(var i=0,o=t.length;i<o;i++)r(t[i]);else r(t);this.context=he(n),e&&this.push.apply(this,e.toArray?e.toArray():e),this.selector={rows:null,cols:null,opts:null},Jt.extend(this,this,xe)},(zt.Api=Jt).prototype={concat:we.concat,context:[],each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new Jt(e[t],this[t]):null},filter:function(t){var e=[];if(we.filter)e=we.filter.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new Jt(this.context,e)},flatten:function(){var t=[];return new Jt(this.context,t.concat.apply(t,this.toArray()))},join:we.join,indexOf:we.indexOf||function(t,e){for(var n=e||0,r=this.length;n<r;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var i,o,a,s,l,u,c,d,f=[],p=this.context,h=this.selector;for("string"==typeof t&&(r=n,n=e,e=t,t=!1),o=0,a=p.length;o<a;o++){var m=new Jt(p[o]);if("table"===e)(i=n.call(m,p[o],o))!==Ye&&f.push(i);else if("columns"===e||"rows"===e)(i=n.call(m,p[o],this[o],o))!==Ye&&f.push(i);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(c=this[o],"column-rows"===e&&(u=ke(p[o],h.opts)),s=0,l=c.length;s<l;s++)d=c[s],(i="cell"===e?n.call(m,p[o],d.row,d.column,o,s):n.call(m,p[o],d,o,s,u))!==Ye&&f.push(i)}if(f.length||r){var g=new Jt(p,t?f.concat.apply([],f):f),b=g.selector;return b.rows=h.rows,b.cols=h.cols,b.opts=h.opts,g}return this},lastIndexOf:we.lastIndexOf||function(){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(we.map)e=we.map.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)e.push(t.call(this,this[n],n));return new Jt(this.context,e)},pluck:function(e){return this.map(function(t){return t[e]})},pop:we.pop,push:we.push,reduce:we.reduce||function(t,e){return n(this,t,e,0,this.length,1)},reduceRight:we.reduceRight||function(t,e){return n(this,t,e,this.length-1,-1,-1)},reverse:we.reverse,selector:null,shift:we.shift,sort:we.sort,splice:we.splice,toArray:function(){return we.slice.call(this)},to$:function(){return M(this)},toJQuery:function(){return M(this)},unique:function(){return new Jt(this.context,he(this))},unshift:we.unshift},Jt.extend=function(t,e,n){if(n.length&&e&&(e instanceof Jt||e.__dt_wrapper)){var r,i,o,a=function(e,n,r){return function(){var t=n.apply(e,arguments);return Jt.extend(t,t,r.methodExt),t}};for(r=0,i=n.length;r<i;r++)e[(o=n[r]).name]="function"==typeof o.val?a(t,o.val,o):M.isPlainObject(o.val)?{}:o.val,e[o.name].__dt_wrapper=!0,Jt.extend(t,e[o.name],o.propExt)}},Jt.register=Vt=function(t,e){if(M.isArray(t))for(var n=0,r=t.length;n<r;n++)Jt.register(t[n],e);else{var i,o,a,s,l=t.split("."),u=xe,c=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].name===e)return t[n];return null};for(i=0,o=l.length;i<o;i++){var d=c(u,a=(s=-1!==l[i].indexOf("()"))?l[i].replace("()",""):l[i]);d||(d={name:a,val:{},methodExt:[],propExt:[]},u.push(d)),i===o-1?d.val=e:u=s?d.methodExt:d.propExt}}},Jt.registerPlural=Qt=function(t,e,n){Jt.register(t,n),Jt.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof Jt?t.length?M.isArray(t[0])?new Jt(t.context,t[0]):t[0]:Ye:t})};var Te=function(t,e){if("number"==typeof t)return[e[t]];var n=M.map(e,function(t){return t.nTable});return M(n).filter(t).map(function(){var t=M.inArray(this,n);return e[t]}).toArray()};Vt("tables()",function(t){return t?new Jt(Te(t,this.context)):this}),Vt("table()",function(t){var e=this.tables(t),n=e.context;return n.length?new Jt(n[0]):e}),Qt("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Qt("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Qt("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Qt("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Qt("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),Vt("draw()",function(e){return this.iterator("table",function(t){_(t,!1===e)})}),Vt("page()",function(e){return e===Ye?this.page.info().page:this.iterator("table",function(t){ut(t,e)})}),Vt("page.info()",function(){if(0===this.context.length)return Ye;var t=this.context[0],e=t._iDisplayStart,n=t._iDisplayLength,r=t.fnRecordsDisplay(),i=-1===n;return{page:i?0:Math.floor(e/n),pages:i?1:Math.ceil(r/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:r}}),Vt("page.len()",function(e){return e===Ye?0!==this.context.length?this.context[0]._iDisplayLength:Ye:this.iterator("table",function(t){at(t,e)})});var Ce=function(i,o,t){if(t){var e=new Jt(i);e.one("draw",function(){t(e.ajax.json())})}"ssp"==Wt(i)?_(i,o):(dt(i,!0),$(i,[],function(t){d(i);for(var e=k(i,t),n=0,r=e.length;n<r;n++)H(i,e[n]);_(i,o),dt(i,!1)}))};Vt("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),Vt("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),Vt("ajax.reload()",function(e,n){return this.iterator("table",function(t){Ce(t,!1===n,e)})}),Vt("ajax.url()",function(e){var t=this.context;return e===Ye?0===t.length?Ye:(t=t[0]).ajax?M.isPlainObject(t.ajax)?t.ajax.url:t.ajax:t.sAjaxSource:this.iterator("table",function(t){M.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e})}),Vt("ajax.url().load()",function(e,n){return this.iterator("table",function(t){Ce(t,!1===n,e)})});var De=function(t,e){var n,r,i,o,a,s,l=[],u=typeof t;for(t&&"string"!==u&&"function"!==u&&t.length!==Ye||(t=[t]),i=0,o=t.length;i<o;i++)for(a=0,s=(r=t[i]&&t[i].split?t[i].split(","):[t[i]]).length;a<s;a++)(n=e("string"==typeof r[a]?M.trim(r[a]):r[a]))&&n.length&&l.push.apply(l,n);return l},$e=function(t){return t||(t={}),t.filter&&!t.search&&(t.search=t.filter),{search:t.search||"none",order:t.order||"current",page:t.page||"all"}},je=function(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t.length=1,t.context=[t.context[e]],t;return t.length=0,t},ke=function(t,e){var n,r,i,o=[],a=t.aiDisplay,s=t.aiDisplayMaster,l=e.search,u=e.order,c=e.page;if("ssp"==Wt(t))return"removed"===l?[]:de(0,s.length);if("current"==c)for(n=t._iDisplayStart,r=t.fnDisplayEnd();n<r;n++)o.push(a[n]);else if("current"==u||"applied"==u)o="none"==l?s.slice():"applied"==l?a.slice():M.map(s,function(t){return-1===M.inArray(t,a)?t:null});else if("index"==u||"original"==u)for(n=0,r=t.aoData.length;n<r;n++)"none"==l?o.push(n):(-1===(i=M.inArray(n,a))&&"removed"==l||0<=i&&"applied"==l)&&o.push(n);return o},
Ae=function(i,t,o){return De(t,function(n){var t=ie(n);if(null!==t&&!o)return[t];var e=ke(i,o);if(null!==t&&-1!==M.inArray(t,e))return[t];if(!n)return e;if("function"==typeof n)return M.map(e,function(t){var e=i.aoData[t];return n(t,e._aData,e.nTr)?t:null});var r=fe(ce(i.aoData,e,"nTr"));return n.nodeName&&-1!==M.inArray(n,r)?[n._DT_RowIndex]:M(r).filter(n).map(function(){return this._DT_RowIndex}).toArray()})};Vt("rows()",function(e,n){e===Ye?e="":M.isPlainObject(e)&&(n=e,e=""),n=$e(n);var t=this.iterator("table",function(t){return Ae(t,e,n)},1);return t.selector.rows=e,t.selector.opts=n,t}),Vt("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||Ye},1)}),Vt("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return ce(t.aoData,e,"_aData")},1)}),Qt("rows().cache()","row().cache()",function(r){return this.iterator("row",function(t,e){var n=t.aoData[e];return"search"===r?n._aFilterData:n._aSortData},1)}),Qt("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(t,e){i(t,e,n)})}),Qt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Qt("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(t,e,n){var r=t.aoData;r.splice(e,1);for(var i=0,o=r.length;i<o;i++)null!==r[i].nTr&&(r[i].nTr._DT_RowIndex=i);M.inArray(e,t.aiDisplay);s(t.aiDisplayMaster,e),s(t.aiDisplay,e),s(a[n],e,!1),Ht(t)})}),Vt("rows.add()",function(o){var t=this.iterator("table",function(t){var e,n,r,i=[];for(n=0,r=o.length;n<r;n++)(e=o[n]).nodeName&&"TR"===e.nodeName.toUpperCase()?i.push(q(t,e)[0]):i.push(H(t,e));return i},1),e=this.rows(-1);return e.pop(),e.push.apply(e,t.toArray()),e}),Vt("row()",function(t,e){return je(this.rows(t,e))}),Vt("row().data()",function(t){var e=this.context;return t===Ye?e.length&&this.length?e[0].aoData[this[0]]._aData:Ye:(e[0].aoData[this[0]]._aData=t,i(e[0],this[0],"data"),this)}),Vt("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),Vt("row.add()",function(e){e instanceof M&&e.length&&(e=e[0]);var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?q(t,e)[0]:H(t,e)});return this.row(t[0])});var Ee=function(o,t,e,n){var a=[],s=function(t,e){if(M.isArray(t)||t instanceof M)for(var n=0,r=t.length;n<r;n++)s(t[n],e);else if(t.nodeName&&"tr"===t.nodeName.toLowerCase())a.push(t);else{var i=M("<tr><td/></tr>").addClass(e);M("td",i).addClass(e).html(t)[0].colSpan=S(o),a.push(i[0])}};s(e,n),t._details&&t._details.remove(),t._details=M(a),t._detailsShow&&t._details.insertAfter(t.nTr)},Ie=function(t,e){var n=t.context;if(n.length){var r=n[0].aoData[e!==Ye?e:t[0]];r._details&&(r._details.remove(),r._detailsShow=Ye,r._details=Ye)}},Ne=function(t,e){var n=t.context;if(n.length&&t.length){var r=n[0].aoData[t[0]];r._details&&((r._detailsShow=e)?r._details.insertAfter(r.nTr):r._details.detach(),Le(n[0]))}},Le=function(a){var i=new Jt(a),t=".dt.DT_details",e="draw"+t,n="column-visibility"+t,r="destroy"+t,s=a.aoData;i.off(e+" "+n+" "+r),0<ue(s,"_details").length&&(i.on(e,function(t,e){a===e&&i.rows({page:"current"}).eq(0).each(function(t){var e=s[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),i.on(n,function(t,e){if(a===e)for(var n,r=S(e),i=0,o=s.length;i<o;i++)(n=s[i])._details&&n._details.children("td[colspan]").attr("colspan",r)}),i.on(r,function(t,e){if(a===e)for(var n=0,r=s.length;n<r;n++)s[n]._details&&Ie(i,n)}))},Re=""+"row().child",Fe=Re+"()";Vt(Fe,function(t,e){var n=this.context;return t===Ye?n.length&&this.length?n[0].aoData[this[0]]._details:Ye:(!0===t?this.child.show():!1===t?Ie(this):n.length&&this.length&&Ee(n[0],n[0].aoData[this[0]],t,e),this)}),Vt([Re+".show()",Fe+".show()"],function(){return Ne(this,!0),this}),Vt([Re+".hide()",Fe+".hide()"],function(){return Ne(this,!1),this}),Vt([Re+".remove()",Fe+".remove()"],function(){return Ie(this),this}),Vt(Re+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});var Pe=/^(.+):(name|visIdx|visible)$/,Oe=function(t,e,n,r,i){for(var o=[],a=0,s=i.length;a<s;a++)o.push(m(t,i[a],e));return o},He=function(a,t,s){var l=a.aoColumns,u=ue(l,"sName"),c=ue(l,"nTh");return De(t,function(n){var t=ie(n);if(""===n)return de(l.length);if(null!==t)return[0<=t?t:l.length+t];if("function"==typeof n){var r=ke(a,s);return M.map(l,function(t,e){return n(e,Oe(a,e,0,0,r),c[e])?e:null})}var i="string"==typeof n?n.match(Pe):"";if(!i)return M(c).filter(n).map(function(){return M.inArray(this,c)}).toArray();switch(i[2]){case"visIdx":case"visible":var e=parseInt(i[1],10);if(e<0){var o=M.map(l,function(t,e){return t.bVisible?e:null});return[o[o.length+e]]}return[W(a,e)];case"name":return M.map(u,function(t,e){return t===i[1]?e:null})}})},Me=function(t,e,n,r){var i,o,a,s,l=t.aoColumns,u=l[e],c=t.aoData;if(n===Ye)return u.bVisible;if(u.bVisible!==n){if(n){var d=M.inArray(!0,ue(l,"bVisible"),e+1);for(o=0,a=c.length;o<a;o++)s=c[o].nTr,i=c[o].anCells,s&&s.insertBefore(i[e],i[d]||null)}else M(ue(t.aoData,"anCells",e)).detach();u.bVisible=n,v(t,t.aoHeader),v(t,t.aoFooter),(r===Ye||r)&&(w(t),(t.oScroll.sX||t.oScroll.sY)&&pt(t)),Ot(t,null,"column-visibility",[t,e,n]),At(t)}};Vt("columns()",function(e,n){e===Ye?e="":M.isPlainObject(e)&&(n=e,e=""),n=$e(n);var t=this.iterator("table",function(t){return He(t,e,n)},1);return t.selector.cols=e,t.selector.opts=n,t}),Qt("columns().header()","column().header()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Qt("columns().footer()","column().footer()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Qt("columns().data()","column().data()",function(){return this.iterator("column-rows",Oe,1)}),Qt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Qt("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(t,e,n,r,i){return ce(t.aoData,i,"search"===o?"_aFilterData":"_aSortData",e)},1)}),Qt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,r,i){return ce(t.aoData,i,"anCells",e)},1)}),Qt("columns().visible()","column().visible()",function(n,r){return this.iterator("column",function(t,e){if(n===Ye)return t.aoColumns[e].bVisible;Me(t,e,n,r)})}),Qt("columns().indexes()","column().index()",function(n){return this.iterator("column",function(t,e){return"visible"===n?c(t,e):e},1)}),Vt("columns.adjust()",function(){return this.iterator("table",function(t){w(t)},1)}),Vt("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return W(n,e);if("fromData"===t||"toVisible"===t)return c(n,e)}}),Vt("column()",function(t,e){return je(this.columns(t,e))});var We,qe,Be,Ue,ze=function(n,t,e){var r,i,o,a,s,l,u,c=n.aoData,d=ke(n,e),f=fe(ce(c,d,"anCells")),p=M([].concat.apply([],f)),h=n.aoColumns.length;return De(t,function(t){var e="function"==typeof t;if(null===t||t===Ye||e){for(i=[],o=0,a=d.length;o<a;o++)for(r=d[o],s=0;s<h;s++)l={row:r,column:s},e?(u=n.aoData[r],t(l,m(n,r,s),u.anCells[s])&&i.push(l)):i.push(l);return i}return M.isPlainObject(t)?[t]:p.filter(t).map(function(t,e){return{row:r=e.parentNode._DT_RowIndex,column:M.inArray(e,c[r].anCells)}}).toArray()})};Vt("cells()",function(e,t,n){if(M.isPlainObject(e)&&(e.row===Ye?(n=e,e=null):(n=t,t=null)),M.isPlainObject(t)&&(n=t,t=null),null===t||t===Ye)return this.iterator("table",function(t){return ze(t,e,$e(n))});var r,i,o,a,s,l=this.columns(t,n),u=this.rows(e,n),c=this.iterator("table",function(t,e){for(r=[],i=0,o=u[e].length;i<o;i++)for(a=0,s=l[e].length;a<s;a++)r.push({row:u[e][i],column:l[e][a]});return r},1);return M.extend(c.selector,{cols:t,rows:e,opts:n}),c}),Qt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var r=t.aoData[e].anCells;return r?r[n]:Ye},1)}),Vt("cells().data()",function(){return this.iterator("cell",function(t,e,n){return m(t,e,n)},1)}),Qt("cells().cache()","cell().cache()",function(r){return r="search"===r?"_aFilterData":"_aSortData",this.iterator("cell",function(t,e,n){return t.aoData[e][r][n]},1)}),Qt("cells().render()","cell().render()",function(r){return this.iterator("cell",function(t,e,n){return m(t,e,n,r)},1)}),Qt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:c(t,n)}},1)}),Qt("cells().invalidate()","cell().invalidate()",function(r){return this.iterator("cell",function(t,e,n){i(t,e,r,n)})}),Vt("cell()",function(t,e,n){return je(this.cells(t,e,n))}),Vt("cell().data()",function(t){var e=this.context,n=this[0];return t===Ye?e.length&&n.length?m(e[0],n[0].row,n[0].column):Ye:(u(e[0],n[0].row,n[0].column,t),i(e[0],n[0].row,"data",n[0].column),this)}),Vt("order()",function(e,t){var n=this.context;return e===Ye?0!==n.length?n[0].aaSorting:Ye:("number"==typeof e?e=[[e,t]]:M.isArray(e[0])||(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),Vt("order.listener()",function(e,n,r){return this.iterator("table",function(t){$t(t,e,n,r)})}),Vt(["columns().order()","column().order()"],function(r){var i=this;return this.iterator("table",function(t,e){var n=[];M.each(i[e],function(t,e){n.push([e,r])}),t.aaSorting=n})}),Vt("search()",function(e,n,r,i){var t=this.context;return e===Ye?0!==t.length?t[0].oPreviousSearch.sSearch:Ye:this.iterator("table",function(t){t.oFeatures.bFilter&&X(t,M.extend({},t.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===i||i}),1)})}),Qt("columns().search()","column().search()",function(r,i,o,a){return this.iterator("column",function(t,e){var n=t.aoPreSearchCols;if(r===Ye)return n[e].sSearch;t.oFeatures.bFilter&&(M.extend(n[e],{sSearch:r+"",bRegex:null!==i&&i,bSmart:null===o||o,bCaseInsensitive:null===a||a}),X(t,t.oPreviousSearch,1))})}),Vt("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Vt("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),Vt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Vt("state.save()",function(){return this.iterator("table",function(t){At(t)})}),zt.versionCheck=zt.fnVersionCheck=function(t){for(var e,n,r=zt.version.split("."),i=t.split("."),o=0,a=i.length;o<a;o++)if((e=parseInt(r[o],10)||0)!==(n=parseInt(i[o],10)||0))return n<e;return!0},zt.isDataTable=zt.fnIsDataTable=function(t){var i=M(t).get(0),o=!1;return M.each(zt.settings,function(t,e){var n=e.nScrollHead?M("table",e.nScrollHead)[0]:null,r=e.nScrollFoot?M("table",e.nScrollFoot)[0]:null;e.nTable!==i&&n!==i&&r!==i||(o=!0)}),o},zt.tables=zt.fnTables=function(e){return M.map(zt.settings,function(t){if(!e||e&&M(t.nTable).is(":visible"))return t.nTable})},zt.util={throttle:gt,escapeRegex:G},zt.camelToHungarian=E,Vt("$()",function(t,e){var n=this.rows(e).nodes(),r=M(n);return M([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),M.each(["on","one","off"],function(t,n){Vt(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0].match(/\.dt\b/)||(t[0]+=".dt");var e=M(this.tables().nodes());return e[n].apply(e,t),this})}),Vt("clear()",function(){return this.iterator("table",function(t){d(t)})}),Vt("settings()",function(){return new Jt(this.context,this.context)}),Vt("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),Vt("data()",function(){return this.iterator("table",function(t){return ue(t.aoData,"_aData")}).flatten()}),Vt("destroy()",function(p){return p=p||!1,this.iterator("table",function(e){var n,t=e.nTableWrapper.parentNode,r=e.oClasses,i=e.nTable,o=e.nTBody,a=e.nTHead,s=e.nTFoot,l=M(i),u=M(o),c=M(e.nTableWrapper),d=M.map(e.aoData,function(t){return t.nTr});e.bDestroying=!0,Ot(e,"aoDestroyCallback","destroy",[e]),p||new Jt(e).columns().visible(!0),c.unbind(".DT").find(":not(tbody *)").unbind(".DT"),M(Ve).unbind(".DT-"+e.sInstance),i!=a.parentNode&&(l.children("thead").detach(),l.append(a)),s&&i!=s.parentNode&&(l.children("tfoot").detach(),l.append(s)),l.detach(),c.detach(),e.aaSorting=[],e.aaSortingFixed=[],jt(e),M(d).removeClass(e.asStripeClasses.join(" ")),M("th, td",a).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),e.bJUI&&(M("th span."+r.sSortIcon+", td span."+r.sSortIcon,a).detach(),M("th, td",a).each(function(){var t=M("div."+r.sSortJUIWrapper,this);M(this).append(t.contents()),t.detach()})),!p&&t&&t.insertBefore(i,e.nTableReinsertBefore),u.children().detach(),u.append(d),l.css("width",e.sDestroyWidth).removeClass(r.sTable),(n=e.asDestroyStripes.length)&&u.children().each(function(t){M(this).addClass(e.asDestroyStripes[t%n])});var f=M.inArray(e,zt.settings);-1!==f&&zt.settings.splice(f,1)})}),M.each(["column","row","cell"],function(t,i){Vt(i+"s().every()",function(r){return this.iterator(i,function(t,e,n){r.call(new Jt(t)[i](e,n))})})}),zt.version="1.10.6",zt.settings=[],zt.models={},zt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},zt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null},zt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},zt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:M.extend({},zt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null},a(zt.defaults),zt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},a(zt.defaults.column),zt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:Ye,oAjaxData:Ye,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Wt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Wt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===t?e+r:Math.min(e+t,this._iRecordsDisplay):!o||r<n||-1===t?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}},zt.ext=Xt={buttons:{},classes:{},errMode:"alert",feature:[],search:[],internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:zt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:zt.version},M.extend(Xt,{afnFiltering:Xt.search,aTypes:Xt.type.detect,ofnSearch:Xt.type.search,oSort:Xt.type.order,afnSortData:Xt.order,aoFeatures:Xt.feature,oApi:Xt.internal,oStdClasses:Xt.classes,oPagination:Xt.pager}),M.extend(zt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),qe=(We=We="")+"ui-state-default",Be=We+"css_right ui-icon ui-icon-",Ue=We+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix",M.extend(zt.ext.oJUIClasses,zt.ext.classes,{sPageButton:"fg-button ui-button "+qe,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:qe+" sorting_asc",sSortDesc:qe+" sorting_desc",sSortable:qe+" sorting",sSortableAsc:qe+" sorting_asc_disabled",sSortableDesc:qe+" sorting_desc_disabled",sSortableNone:qe+" sorting_disabled",sSortJUIAsc:Be+"triangle-1-n",sSortJUIDesc:Be+"triangle-1-s",sSortJUI:Be+"carat-2-n-s",sSortJUIAscAllowed:Be+"carat-1-n",sSortJUIDescAllowed:Be+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+qe,sScrollFoot:"dataTables_scrollFoot "+qe,sHeaderTH:qe,sFooterTH:qe,sJUIHeader:Ue+" ui-corner-tl ui-corner-tr",sJUIFooter:Ue+" ui-corner-bl ui-corner-br"});var Xe=zt.ext.pager;M.extend(Xe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},simple_numbers:function(t,e){return["previous",qt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",qt(t,e),"next","last"]},_numbers:qt,numbers_length:7}),M.extend(!0,zt.ext.renderer,{pageButton:{_:function(s,t,l,e,u,c){var d,f,n,p=s.oClasses,h=s.oLanguage.oPaginate,m=0,g=function(t,e){var n,r,i,o=function(t){ut(s,t.data.action,!0)};for(n=0,r=e.length;n<r;n++)if(i=e[n],M.isArray(i)){var a=M("<"+(i.DT_el||"div")+"/>").appendTo(t);g(a,i)}else{switch(f=d="",i){case"ellipsis":t.append('<span class="ellipsis">…</span>');break;case"first":d=h.sFirst,f=i+(0<u?"":" "+p.sPageButtonDisabled);break;case"previous":d=h.sPrevious,f=i+(0<u?"":" "+p.sPageButtonDisabled);break;case"next":d=h.sNext,f=i+(u<c-1?"":" "+p.sPageButtonDisabled);break;case"last":d=h.sLast,f=i+(u<c-1?"":" "+p.sPageButtonDisabled);break;default:d=i+1,f=u===i?p.sPageButtonActive:""}d&&(Ft(M("<a>",{"class":p.sPageButton+" "+f,"aria-controls":s.sTableId,"data-dt-idx":m,tabindex:s.iTabIndex,id:0===l&&"string"==typeof i?s.sTableId+"_"+i:null}).html(d).appendTo(t),{action:i},o),m++)}};try{n=M(Qe.activeElement).data("dt-idx")}catch(r){}g(M(t).empty(),e),n&&M(t).find("[data-dt-idx="+n+"]").focus()}}}),M.extend(zt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return ae(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&(!Zt.test(t)||!te.test(t)))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||re(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return ae(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return le(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return le(t,n,!0)?"html-num-fmt"+n:null},function(t){return re(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),M.extend(zt.ext.type.search,{html:function(t){return re(t)?t:"string"==typeof t?t.replace(Gt," ").replace(Kt,""):""},string:function(t){return re(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var Je=function(t,e,n,r){return 0===t||t&&"-"!==t?(e&&(t=oe(t,e)),t.replace&&(n&&(t=t.replace(n,"")),r&&(t=t.replace(r,""))),1*t):-Infinity};return M.extend(Xt.type.order,{"date-pre":function(t){return Date.parse(t)||0},"html-pre":function(t){return re(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return re(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0}}),Bt(""),M.extend(!0,zt.ext.renderer,{header:{_:function(o,a,s,l){M(o.nTable).on("order.dt.DT",function(t,e,n,r){if(o===e){var i=s.idx;a.removeClass(s.sSortingClass+" "+l.sSortAsc+" "+l.sSortDesc).addClass("asc"==r[i]?l.sSortAsc:"desc"==r[i]?l.sSortDesc:s.sSortingClass)}})},jqueryui:function(o,a,s,l){M("<div/>").addClass(l.sSortJUIWrapper).append(a.contents()).append(M("<span/>").addClass(l.sSortIcon+" "+s.sSortingClassJUI)).appendTo(a),M(o.nTable).on("order.dt.DT",function(t,e,n,r){if(o===e){var i=s.idx;a.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==r[i]?l.sSortAsc:"desc"==r[i]?l.sSortDesc:s.sSortingClass),a.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==r[i]?l.sSortJUIAsc:"desc"==r[i]?l.sSortJUIDesc:s.sSortingClassJUI)}})}}}),zt.render={number:function(i,o,a,s){return{display:function(t){if("number"!=typeof t&&"string"!=typeof t)return t;var e=t<0?"-":"";t=Math.abs(parseFloat(t));var n=parseInt(t,10),r=a?o+(t-n).toFixed(a).substring(2):"";return e+(s||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+r}}}},M.extend(zt.ext.internal,{_fnExternApiFunc:Ut,_fnBuildAjax:$,_fnAjaxUpdate:j,_fnAjaxParameters:r,_fnAjaxUpdateDraw:o,_fnAjaxDataSrc:k,_fnAddColumn:F,_fnColumnOptions:P,_fnAdjustColumnSizing:w,_fnVisibleToColumnIndex:W,_fnColumnIndexToVisible:c,_fnVisbleColumns:S,_fnGetColumns:T,_fnColumnTypes:l,_fnApplyColumnDefs:O,_fnHungarianMap:a,_fnCamelToHungarian:E,_fnLanguageCompat:I,_fnBrowserDetect:R,_fnAddData:H,_fnAddTr:q,_fnNodeToDataIndex:t,_fnNodeToColumnIndex:e,_fnGetCellData:m,_fnSetCellData:u,_fnSplitObjNotation:g,_fnGetObjectDataFn:h,_fnSetObjectDataFn:b,_fnGetDataMaster:x,_fnClearTable:d,_fnDeleteIndex:s,_fnInvalidate:i,_fnGetRowElements:B,_fnCreateTr:C,_fnBuildHead:p,_fnDrawHead:v,_fnDraw:y,_fnReDraw:_,_fnAddOptionsHtml:D,_fnDetectHeader:U,_fnGetUniqueThs:z,_fnFeatureHtmlFilter:A,_fnFilterComplete:X,_fnFilterCustom:J,_fnFilterColumn:V,_fnFilter:Q,_fnFilterCreateSearch:Y,_fnEscapeRegex:G,_fnFilterData:K,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:rt,_fnInitialise:it,_fnInitComplete:ot,_fnLengthChange:at,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ut,_fnFeatureHtmlProcessing:ct,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ft,_fnScrollDraw:pt,_fnApplyToChildren:ht,_fnCalculateColumnWidths:mt,_fnThrottle:gt,_fnConvertToWidth:bt,_fnScrollingWidthAdjust:vt,_fnGetWidestNode:yt,_fnGetMaxLenString:_t,_fnStringToCss:xt,_fnScrollBarWidth:wt,_fnSortFlatten:St,_fnSort:Tt,_fnSortAria:Ct,_fnSortListener:Dt,_fnSortAttachListener:$t,_fnSortingClasses:jt,_fnSortData:kt,_fnSaveState:At,_fnLoadState:Et,_fnSettingsFromNode:It,_fnLog:Nt,_fnMap:Lt,_fnBindAction:Ft,_fnCallbackReg:Pt,_fnCallbackFire:Ot,_fnLengthOverflow:Ht,_fnRenderer:Mt,_fnDataSource:Wt,_fnRowAttributes:f,_fnCalculateEnd:function(){}}),M.fn.dataTable=zt,M.fn.dataTableSettings=zt.settings,M.fn.dataTableExt=zt.ext,M.fn.DataTable=function(t){return M(this).dataTable(t).api()},M.each(zt,function(t,e){M.fn.DataTable[t]=e}),M.fn.dataTable})}(window,document),function(){var t=function(b,n){"use strict";b.extend(!0,n.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),b.extend(n.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"}),n.ext.renderer.pageButton.bootstrap=function(s,t,l,e,u,c){var d,f,p=new n.Api(s),h=s.oClasses,m=s.oLanguage.oPaginate,g=function(t,e){var n,r,i,o,a=function(t){t.preventDefault(),b(t.currentTarget).hasClass("disabled")||p.page(t.data.action).draw(!1)};for(n=0,r=e.length;n<r;n++)if(o=e[n],b.isArray(o))g(t,o);else{switch(f=d="",o){case"ellipsis":d="…",f="disabled";break;case"first":d=m.sFirst,f=o+(0<u?"":" disabled");break;case"previous":d=m.sPrevious,f=o+(0<u?"":" disabled");break;case"next":d=m.sNext,f=o+(u<c-1?"":" disabled");break;case"last":d=m.sLast,f=o+(u<c-1?"":" disabled");break;default:d=o+1,f=u===o?"active":""}d&&(i=b("<li>",{"class":h.sPageButton+" "+f,"aria-controls":s.sTableId,tabindex:s.iTabIndex,id:0===l&&"string"==typeof o?s.sTableId+"_"+o:null}).append(b("<a>",{href:"#"}).html(d)).appendTo(t),s.oApi._fnBindAction(i,{action:o},a))}};g(b(t).empty().html('<ul class="pagination"/>').children("ul"),e)},n.TableTools&&(b.extend(!0,n.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,n.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"==typeof define&&define.amd?define(["jquery","datatables"],t):"object"==typeof exports?t(require("jquery"),require("datatables")):jQuery&&t(jQuery,jQuery.fn.dataTable)}(window,document),function(){var u,c,f,d,t,p,e,h={}.hasOwnProperty,n=[].slice;e="undefined"!=typeof exports&&null!==exports?exports:this,(c=function(t){this.message=t}).prototype=new Error,p={prefix:"/pun/sys/myjobs",default_url_options:{}},u={GROUP:1,CAT:2,SYMBOL:3,OR:4,STAR:5,LITERAL:6,SLASH:7,DOT:8},f=["anchor","trailing_slash","host","port","protocol"],d={default_serializer:function(t,e){var n,r,i,o,a,s,l;if(null==e&&(e=null),null==t)return"";if(!e&&"object"!==this.get_object_type(t))throw new Error("Url parameters should be a javascript hash");switch(l=[],this.get_object_type(t)){case"array":for(r=i=0,a=t.length;i<a;r=++i)n=t[r],l.push(this.default_serializer(n,e+"[]"));break;case"object":for(o in t)h.call(t,o)&&(null==(s=t[o])&&null!=e&&(s=""),null!=s&&(null!=e&&(o=e+"["+o+"]"),l.push(this.default_serializer(s,o))));break;default:null!=t&&l.push(encodeURIComponent(e.toString())+"="+encodeURIComponent(t.toString()))}return l.length?l.join("&"):""},custom_serializer:null,serialize:function(t){return null!=this.custom_serializer&&"function"===this.get_object_type(this.custom_serializer)?this.custom_serializer(t):this.default_serializer(t)},clean_path:function(t){var e;return(t=t.split("://"))[e=t.length-1]=t[e].replace(/\/+/g,"/"),t.join("://")},extract_options:function(t,e){var n;return n=e[e.length-1],(e.length>t&&void 0===n||null!=n&&"object"===this.get_object_type(n)&&!this.looks_like_serialized_model(n))&&e.pop()||{}},looks_like_serialized_model:function(t){return"id"in t||"to_param"in t},path_identifier:function(t){var e;return 0===t?"0":t?(e=t,"object"===this.get_object_type(t)&&(e="to_param"in t?t.to_param:"id"in t?t.id:t,"function"===this.get_object_type(e)&&(e=e.call(t))),e.toString()):""},clone:function(t){var e,n,r;if(null==t||"object"!==this.get_object_type(t))return t;for(r in n=t.constructor(),t)h.call(t,r)&&(e=t[r],n[r]=e);return n},merge:function(){var t,s;if(t=function(t,e){return e(t),t},0<(null!=(s=1<=arguments.length?n.call(arguments,0):[])?s.length:void 0))return t({},function(e){var t,n,r,i,o,a;for(i=[],t=0,r=s.length;t<r;t++)a=s[t],i.push(function(){var t;for(n in t=[],a)o=a[n],t.push(e[n]=o);return t}());return i})},normalize_options:function(t,e,n,r){var i,o,a,s,l,u,c,d;if(l=this.extract_options(e.length,r),r.length>e.length)throw new Error("Too many parameters provided for path");for(a in l=this.merge(p.default_url_options,t,l),c={},(u={}).url_parameters=c,l)h.call(l,a)&&(d=l[a],0<=this.indexOf(f,a)?u[a]=d:c[a]=d);for(i=o=0,s=e.length;o<s;i=++o)d=e[i],i<r.length&&(c[d]=r[i]);return u},build_route:function(t,e,n,r,i,o){var a,s,l,u,c;return o=Array.prototype.slice.call(o),s=(a=this.normalize_options(r,t,e,o)).url_parameters,l=""+this.get_prefix()+this.visit(n,s),u=d.clean_path(l),!0===a.trailing_slash&&(u=u.replace(/(.*?)[\/]?$/,"$1/")),(c=this.serialize(s)).length&&(u+="?"+c),u+=a.anchor?"#"+a.anchor:"",i&&(u=this.route_url(a)+u),u},visit:function(t,e,n){var r,i,o,a,s,l;switch(null==n&&(n=!1),s=t[0],r=t[1],o=t[2],s){case u.GROUP:return this.visit(r,e,!0);case u.STAR:return this.visit_globbing(r,e,!0);case u.LITERAL:case u.SLASH:case u.DOT:return r;case u.CAT:return i=this.visit(r,e,n),a=this.visit(o,e,n),n&&(this.is_optional_node(r[0])&&!i||this.is_optional_node(o[0])&&!a)?"":""+i+a;case u.SYMBOL:if(null!=(l=e[r]))return delete e[r],this.path_identifier(l);if(n)return"";throw new c("Route parameter missing: "+r);default:throw new Error("Unknown Rails node type")}},is_optional_node:function(t){return 0<=this.indexOf([u.STAR,u.SYMBOL,u.CAT],t)},build_path_spec:function(t,e){var n,r,i;switch(null==e&&(e=!1),i=t[0],n=t[1],r=t[2],i){case u.GROUP:return"("+this.build_path_spec(n)+")";case u.CAT:return""+this.build_path_spec(n)+this.build_path_spec(r);case u.STAR:return this.build_path_spec(n,!0);case u.SYMBOL:return!0===e?("*"===n[0]?"":"*")+n:":"+n;case u.SLASH:case u.DOT:case u.LITERAL:return n;default:throw new Error("Unknown Rails node type")}},visit_globbing:function(t,e,n){var r,i;return t[0],r=t[1],t[2],r.replace(/^\*/i,"")!==r&&(t[1]=r=r.replace(/^\*/i,"")),null==(i=e[r])||(e[r]=function(){switch(this.get_object_type(i)){case"array":return i.join("/");default:return i}}.call(this)),this.visit(t,e,n)},get_prefix:function(){var t;return""!==(t=p.prefix)&&(t=t.match("/$")?t:t+"/"),t},route:function(t,e,n,r,i){var o;return(o=function(){return d.build_route(t,e,n,r,i,arguments)}).required_params=t,o.toString=function(){return d.build_path_spec(n)},o},route_url:function(t){var e;return"string"==typeof t?t:(t.protocol||d.current_protocol()
)+"://"+(t.host||window.location.hostname)+(e=(e=t.port||(t.host?void 0:d.current_port()))?":"+e:"")},has_location:function(){return"undefined"!=typeof window&&"undefined"!=typeof window.location},current_host:function(){return this.has_location()?window.location.hostname:null},current_protocol:function(){return this.has_location()&&""!==window.location.protocol?window.location.protocol.replace(/:$/,""):"http"},current_port:function(){return this.has_location()&&""!==window.location.port?window.location.port:""},_classToTypeCache:null,_classToType:function(){var t,e,n,r;if(null!=this._classToTypeCache)return this._classToTypeCache;for(this._classToTypeCache={},t=0,e=(r="Boolean Number String Function Array Date RegExp Object Error".split(" ")).length;t<e;t++)n=r[t],this._classToTypeCache["[object "+n+"]"]=n.toLowerCase();return this._classToTypeCache},get_object_type:function(t){return e.jQuery&&null!=e.jQuery.type?e.jQuery.type(t):null==t?""+t:"object"==typeof t||"function"==typeof t?this._classToType()[Object.prototype.toString.call(t)]||"object":typeof t},indexOf:function(t,e){return Array.prototype.indexOf?t.indexOf(e):this.indexOfImplementation(t,e)},indexOfImplementation:function(t,e){var n,r,i,o;for(o=-1,n=r=0,i=t.length;r<i;n=++r)t[n]===e&&(o=n);return o}},t=function(){var i;return(i=function(t,e){var n,r;if((r=e?e.split("."):[]).length)return t[n=r.shift()]=t[n]||{},i(t[n],r.join("."))})(e,"Routes"),e.Routes={copy_workflow_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[3,"id",!1],[2,[7,"/",!1],[2,[6,"copy",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]]]],{}),create_default_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"create_default",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]],{}),create_from_path_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"create_from_path",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]],{}),edit_workflow_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[3,"id",!1],[2,[7,"/",!1],[2,[6,"edit",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]]]],{}),files_path:d.route([],[],[2,[7,"/",!1],[6,"files",!1]],{}),new_from_path_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"new_from_path",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]],{}),new_template_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"templates",!1],[2,[7,"/",!1],[2,[6,"new",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]],{}),new_workflow_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[6,"new",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]],{}),root_path:d.route([],[],[7,"/",!1],{}),stop_workflow_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[3,"id",!1],[2,[7,"/",!1],[2,[6,"stop",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]]]],{}),submit_workflow_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[3,"id",!1],[2,[7,"/",!1],[2,[6,"submit",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]]]],{}),template_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"templates",!1],[2,[7,"/",!1],[2,[3,"id",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]],{}),templates_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"templates",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]],{}),wiki_path:d.route(["page"],["format"],[2,[7,"/",!1],[2,[6,"wiki",!1],[2,[7,"/",!1],[2,[5,[3,"*page",!1],!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]],{}),workflow_path:d.route(["id"],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[2,[7,"/",!1],[2,[3,"id",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]]]],{}),workflows_path:d.route([],["format"],[2,[7,"/",!1],[2,[6,"workflows",!1],[1,[2,[8,".",!1],[3,"format",!1]],!1]]],{})},e.Routes.options=p,e.Routes.default_serializer=function(t,e){return d.default_serializer(t,e)},e.Routes},"function"==typeof define&&define.amd?define([],function(){return t()}):t()}.call(this),function(){var e,n,t,c,u,d,f,p,r,a,s,l,h,i,m,g,b;(function(){return document.querySelectorAll&&document.addEventListener})()&&(isNaN(Date.parse("2011-01-01T12:00:00-05:00"))&&(f=Date.parse,c=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|[-+]?[\d:]+)$/,Date.parse=function(t){var e,n,r,i,o,a,s,l,u;return(r=(t=t.toString()).match(c))&&(r[0],l=r[1],o=r[2],e=r[3],n=r[4],i=r[5],s=r[6],"Z"!==(u=r[7])&&(a=u.replace(":","")),t=l+"/"+o+"/"+e+" "+n+":"+i+":"+s+" GMT"+[a]),f(t)}),b="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),u="January February March April May June July August September October November December".split(" "),d=function(t){return("0"+t).slice(-2)},p=function(t){var e,n,r,i,o;return(e=null!=(n=(o=t.toString()).match(/\(([\w\s]+)\)$/))?n[1]:void 0)?/\s/.test(e)?e.match(/\b(\w)/g).join(""):e:(e=null!=(r=o.match(/(\w{3,4})\s\d{4}$/))?r[1]:void 0)?e:(e=null!=(i=o.match(/(UTC[\+\-]\d+)/))?i[1]:void 0)?e:""},m=function(e,t){var n,r,i,o,a,s,l;return r=e.getDay(),n=e.getDate(),a=e.getMonth(),l=e.getFullYear(),i=e.getHours(),o=e.getMinutes(),s=e.getSeconds(),t.replace(/%([%aAbBcdeHIlmMpPSwyYZ])/g,function(t){switch(t[0],t[1]){case"%":return"%";case"a":return b[r].slice(0,3);case"A":return b[r];case"b":return u[a].slice(0,3);case"B":return u[a];case"c":return e.toString();case"d":return d(n);case"e":return n;case"H":return d(i);case"I":return d(m(e,"%l"));case"l":return 0===i||12===i?12:(i+12)%12;case"m":return d(a+1);case"M":return d(o);case"p":return 11<i?"PM":"AM";case"P":return 11<i?"pm":"am";case"S":return d(s);case"w":return r;case"y":return d(l%100);case"Y":return l;case"Z":return p(e)}})},e=function(){function t(t,e,n){this.date=new Date(Date.UTC(t,e-1)),this.date.setUTCDate(n),this.year=this.date.getUTCFullYear(),this.month=this.date.getUTCMonth()+1,this.day=this.date.getUTCDate(),this.value=this.date.getTime()}return t.fromDate=function(t){return new this(t.getFullYear(),t.getMonth()+1,t.getDate())},t.today=function(){return this.fromDate(new Date)},t.prototype.equals=function(t){return(null!=t?t.value:void 0)===this.value},t.prototype.is=function(t){return this.equals(t)},t.prototype.isToday=function(){return this.is(this.constructor.today())},t.prototype.occursOnSameYearAs=function(t){return this.year===(null!=t?t.year:void 0)},t.prototype.occursThisYear=function(){return this.occursOnSameYearAs(this.constructor.today())},t.prototype.daysSince=function(t){if(t)return(this.date-t.date)/864e5},t.prototype.daysPassed=function(){return this.constructor.today().daysSince(this)},t}(),n=function(){function t(t){this.date=t,this.calendarDate=e.fromDate(this.date)}return t.prototype.toString=function(){var t,e;return(t=this.timeElapsed())?t+" ago":(e=this.relativeWeekday())?e+" at "+this.formatTime():"on "+this.formatDate()},t.prototype.toTimeOrDateString=function(){return this.calendarDate.isToday()?this.formatTime():this.formatDate()},t.prototype.timeElapsed=function(){var t,e,n,r;return n=(new Date).getTime()-this.date.getTime(),r=Math.round(n/1e3),e=Math.round(r/60),t=Math.round(e/60),n<0?null:r<10?"a second":r<45?r+" seconds":r<90?"a minute":e<45?e+" minutes":e<90?"an hour":t<24?t+" hours":null},t.prototype.relativeWeekday=function(){switch(this.calendarDate.daysPassed()){case 0:return"today";case 1:return"yesterday";case 2:case 3:case 4:case 5:case 6:return m(this.date,"%A")}},t.prototype.formatDate=function(){var t;return t="%b %e",this.calendarDate.occursThisYear()||(t+=", %Y"),m(this.date,t)},t.prototype.formatTime=function(){return m(this.date,"%l:%M%P")},t}(),a=function(t){return new n(t).formatDate()},s=function(t){return new n(t).toString()},l=function(t){return new n(t).toTimeOrDateString()},t=!(h=function(t){var e;if(e=new n(t).relativeWeekday())return e.charAt(0).toUpperCase()+e.substring(1)}),g=function(n){return t&&n(),document.addEventListener("time:elapse",n),("undefined"!=typeof Turbolinks&&null!==Turbolinks?Turbolinks.supported:void 0)?document.addEventListener("page:update",n):"function"==typeof jQuery?jQuery(document).on("ajaxSuccess",function(t,e){if(jQuery.trim(e.responseText))return n()}):void 0},r=function(o,a){return g(function(){var t,e,n,r,i;for(i=[],e=0,n=(r=document.querySelectorAll(o)).length;e<n;e++)t=r[e],i.push(a(t));return i})},document.addEventListener("DOMContentLoaded",function(){var e;return t=!0,e="textContent"in document.body?"textContent":"innerText",r("time[data-local]:not([data-localized])",function(n){var t,r,i,o;if(t=n.getAttribute("datetime"),r=n.getAttribute("data-format"),i=n.getAttribute("data-local"),o=new Date(Date.parse(t)),!isNaN(o))return n.hasAttribute("title")||n.setAttribute("title",m(o,"%B %e, %Y at %l:%M%P %Z")),n[e]=function(){var t,e;switch(i){case"date":return n.setAttribute("data-localized",!0),a(o);case"time":return n.setAttribute("data-localized",!0),m(o,r);case"time-ago":return s(o);case"time-or-date":return l(o);case"weekday":return null!=(t=h(o))?t:"";case"weekday-or-date":return null!=(e=h(o))?e:a(o)}}()})}),i=function(){var t;return(t=document.createEvent("Events")).initEvent("time:elapse",!0,!0),document.dispatchEvent(t)},setInterval(i,6e4),this.LocalTime={relativeDate:a,relativeTimeAgo:s,relativeTimeOrDate:l,relativeWeekday:h,run:i,strftime:m})}.call(this),function(){jQuery(function(){return $('[data-toggle="tooltip"]').tooltip({container:"body"})})}.call(this),function(){jQuery(function(){return $(".data-table").DataTable({order:[0,"desc"],stateSave:!0,columnDefs:[{orderable:!1,targets:"no-sort"}],iDisplayLength:25})}),jQuery(function(){return $(".data-table-new-job").DataTable({order:[2,"asc"],stateSave:!0,columnDefs:[{orderable:!1,targets:"no-sort"}],iDisplayLength:10})}),jQuery(function(){return $(".data-table-templates").DataTable({order:[0,"desc"],columnDefs:[{orderable:!1,targets:"no-sort"}]})})}.call(this),function(s,l,a){"use strict";var e={version:"2.1",tipLocation:"bottom",nubPosition:"auto",scroll:!0,scrollSpeed:300,timer:0,autoStart:!1,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookiePath:!1,localStorage:!1,localStorageKey:"joyride",tipContainer:"body",modal:!1,expose:!1,postExposeCallback:s.noop,preRideCallback:s.noop,postRideCallback:s.noop,preStepCallback:s.noop,postStepCallback:s.noop,template:{link:'<a href="#close" class="joyride-close-tip">X</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper" role="dialog"></div>',button:'<a href="#" class="joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',exposeCover:'<div class="joyride-expose-cover"></div>'}},t=t||!1,u={},c={init:function(t){return this.each(function(){s.isEmptyObject(u)?((u=s.extend(!0,e,t)).document=l.document,u.$document=s(u.document),u.$window=s(l),u.$content_el=s(this),u.$body=s(u.tipContainer),u.body_offset=s(u.tipContainer).position(),u.$tip_content=s("> li",u.$content_el),u.paused=!1,u.attempts=0,u.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},c.jquery_check(),s.isFunction(s.cookie)||(u.cookieMonster=!1),u.cookieMonster&&s.cookie(u.cookieName)||u.localStorage&&c.support_localstorage()&&localStorage.getItem(u.localStorageKey)||(u.$tip_content.each(function(t){c.create({$li:s(this),index:t})}),u.autoStart&&(!u.startTimerOnClick&&0<u.timer?(c.show("init"),c.startTimer()):c.show("init"))),u.$document.on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),u.$li.next().length<1?c.end():0<u.timer?(clearTimeout(u.automate),c.hide(),c.show(),c.startTimer()):(c.hide(),c.show())}),u.$document.on("click.joyride",".joyride-close-tip",function(t){t.preventDefault(),c.end(!0)}),u.$window.bind("resize.joyride",function(){if(u.$li){if(u.exposed&&0<u.exposed.length)s(u.exposed).each(function(){var t=s(this);c.un_expose(t),c.expose(t)});c.is_phone()?c.pos_phone():c.pos_default()}})):c.restart()})},resume:function(){c.set_li(),c.show()},nextTip:function(){u.$li.next().length<1?c.end():0<u.timer?(clearTimeout(u.automate),c.hide(),c.show(),c.startTimer()):(c.hide(),c.show())},tip_template:function(t){var e,n,r;return t.tip_class=t.tip_class||"",e=s(u.template.tip).addClass(t.tip_class),n=s.trim(s(t.li).html())+c.button_text(t.button_text)+u.template.link+c.timer_instance(t.index),r=s(u.template.wrapper),t.li.attr("data-aria-labelledby")&&r.attr("aria-labelledby",t.li.attr("data-aria-labelledby")),t.li.attr("data-aria-describedby")&&r.attr("aria-describedby",t.li.attr("data-aria-describedby")),e.append(r),e.first().attr("data-index",t.index),s(".joyride-content-wrapper",e).append(n),e[0]},timer_instance:function(t){return 0===t&&u.startTimerOnClick&&0<u.timer||0===u.timer?"":c.outerHTML(s(u.template.timer)[0])},button_text:function(t){return u.nextButton?(t=s.trim(t)||"Next",t=c.outerHTML(s(u.template.button).append(t)[0])):t="",t},create:function(t){var e=t.$li.attr("data-button")||t.$li.attr("data-text"),n=t.$li.attr("class"),r=s(c.tip_template({tip_class:n,index:t.index,button_text:e,li:t.$li}));s(u.tipContainer).append(r)},show:function(t){var e,n,r={},i=[],o=null;if(u.$li===a||-1===s.inArray(u.$li.index(),u.pauseAfter))if(u.paused?u.paused=!1:c.set_li(t),u.attempts=0,u.$li.length&&0<u.$target.length){for(t&&(u.preRideCallback(u.$li.index(),u.$next_tip),u.modal&&c.show_modal()),u.preStepCallback(u.$li.index(),u.$next_tip),e=(i=(u.$li.data("options")||":").split(";")).length-1;0<=e;e--)2===(n=i[e].split(":")).length&&(r[s.trim(n[0])]=s.trim(n[1]));u.tipSettings=s.extend({},u,r),u.tipSettings.tipLocationPattern=u.tipLocationPatterns[u.tipSettings.tipLocation],u.modal&&u.expose&&c.expose(),!/body/i.test(u.$target.selector)&&u.scroll&&c.scroll_to(),c.is_phone()?c.pos_phone(!0):c.pos_default(!0),o=s(".joyride-timer-indicator",u.$next_tip),/pop/i.test(u.tipAnimation)?(o.outerWidth(0),0<u.timer?(u.$next_tip.show(),o.animate({width:s(".joyride-timer-indicator-wrap",u.$next_tip).outerWidth()},u.timer)):u.$next_tip.show()):/fade/i.test(u.tipAnimation)&&(o.outerWidth(0),0<u.timer?(u.$next_tip.fadeIn(u.tipAnimationFadeSpeed),u.$next_tip.show(),o.animate({width:s(".joyride-timer-indicator-wrap",u.$next_tip).outerWidth()},u.timer)):u.$next_tip.fadeIn(u.tipAnimationFadeSpeed)),u.$current_tip=u.$next_tip,s(".joyride-next-tip",u.$current_tip).focus(),c.tabbable(u.$current_tip)}else u.$li&&u.$target.length<1?c.show():c.end();else u.paused=!0},is_phone:function(){return t?t.mq("only screen and (max-width: 767px)"):u.$window.width()<767},support_localstorage:function(){return t?t.localstorage:!!l.localStorage},hide:function(){u.modal&&u.expose&&c.un_expose(),u.modal||s(".joyride-modal-bg").hide(),u.$current_tip.hide(),u.postStepCallback(u.$li.index(),u.$current_tip)},set_li:function(t){t?(u.$li=u.$tip_content.eq(u.startOffset),c.set_next_tip(),u.$current_tip=u.$next_tip):(u.$li=u.$li.next(),c.set_next_tip()),c.set_target()},set_next_tip:function(){u.$next_tip=s(".joyride-tip-guide[data-index="+u.$li.index()+"]")},set_target:function(){var t=u.$li.attr("data-class"),e=u.$li.attr("data-id"),n=function(){return e?s(u.document.getElementById(e)):t?s("."+t).filter(":visible").first():s("body")};u.$target=n()},scroll_to:function(){var t,e;t=u.$window.height()/2,e=Math.ceil(u.$target.offset().top-t+u.$next_tip.outerHeight()),s("html, body").stop().animate({scrollTop:e},u.scrollSpeed)},paused:function(){return-1===s.inArray(u.$li.index()+1,u.pauseAfter)},destroy:function(){s.isEmptyObject(u)||u.$document.off(".joyride"),s(l).off(".joyride"),s(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),s(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(u.automate),u={}},restart:function(){u.autoStart?(c.hide(),u.$li=a,c.show("init")):(!u.startTimerOnClick&&0<u.timer?(c.show("init"),c.startTimer()):c.show("init"),u.autoStart=!0)},pos_default:function(t){Math.ceil(u.$window.height()/2),u.$next_tip.offset();var e=s(".joyride-nub",u.$next_tip),n=Math.ceil(e.outerWidth()/2),r=Math.ceil(e.outerHeight()/2),i=t||!1;if(i&&(u.$next_tip.css("visibility","hidden"),u.$next_tip.show()),/body/i.test(u.$target.selector))u.$li.length&&c.pos_modal(e);else{var o=u.tipSettings.tipAdjustmentY?parseInt(u.tipSettings.tipAdjustmentY):0,a=u.tipSettings.tipAdjustmentX?parseInt(u.tipSettings.tipAdjustmentX):0;c.bottom()?(u.$next_tip.css({top:u.$target.offset().top+r+u.$target.outerHeight()+o,left:u.$target.offset().left+a}),/right/i.test(u.tipSettings.nubPosition)&&u.$next_tip.css("left",u.$target.offset().left-u.$next_tip.outerWidth()+u.$target.outerWidth()),c.nub_position(e,u.tipSettings.nubPosition,"top")):c.top()?(u.$next_tip.css({top:u.$target.offset().top-u.$next_tip.outerHeight()-r+o,left:u.$target.offset().left+a}),c.nub_position(e,u.tipSettings.nubPosition,"bottom")):c.right()?(u.$next_tip.css({top:u.$target.offset().top+o,left:u.$target.outerWidth()+u.$target.offset().left+n+a}),c.nub_position(e,u.tipSettings.nubPosition,"left")):c.left()&&(u.$next_tip.css({top:u.$target.offset().top+o,left:u.$target.offset().left-u.$next_tip.outerWidth()-n+a}),c.nub_position(e,u.tipSettings.nubPosition,"right")),!c.visible(c.corners(u.$next_tip))&&u.attempts<u.tipSettings.tipLocationPattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),u.tipSettings.tipLocation=u.tipSettings.tipLocationPattern[u.attempts],u.attempts++,c.pos_default(!0))}i&&(u.$next_tip.hide(),u.$next_tip.css("visibility","visible"))},pos_phone:function(t){var e=u.$next_tip.outerHeight(),n=(u.$next_tip.offset(),u.$target.outerHeight()),r=s(".joyride-nub",u.$next_tip),i=Math.ceil(r.outerHeight()/2),o=t||!1;r.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),o&&(u.$next_tip.css("visibility","hidden"),u.$next_tip.show()),/body/i.test(u.$target.selector)?u.$li.length&&c.pos_modal(r):c.top()?(u.$next_tip.offset({top:u.$target.offset().top-e-i}),r.addClass("bottom")):(u.$next_tip.offset({top:u.$target.offset().top+n+i}),r.addClass("top")),o&&(u.$next_tip.hide(),u.$next_tip.css("visibility","visible"))},pos_modal:function(t){c.center(),t.hide(),c.show_modal()},show_modal:function(){s(".joyride-modal-bg").length<1&&s("body").append(u.template.modal).show(),/pop/i.test(u.tipAnimation)?s(".joyride-modal-bg").show():s(".joyride-modal-bg").fadeIn(u.tipAnimationFadeSpeed)},expose:function(t){var e,n,r,i,o="expose-"+Math.floor(1e4*Math.random());if(0<arguments.length&&t instanceof s)r=arguments[0];else{if(!u.$target||/body/i.test(u.$target.selector))return!1;r=u.$target}if(r.length<1)return l.console&&console.error("element not valid",r),!1;e=s(u.template.expose),u.$body.append(e),e.css({top:r.offset().top,left:r.offset().left,width:r.outerWidth(!0),height:r.outerHeight(!0)}),n=s(u.template.exposeCover),i={zIndex:r.css("z-index"),position:r.css("position")},r.css("z-index",1*e.css("z-index")+1),"static"==i.position&&r.css("position","relative"),r.data("expose-css",i),n.css({top:r.offset().top,left:r.offset().left,width:r.outerWidth(!0),height:r.outerHeight(!0)}),u.$body.append(n),e.addClass(o),n.addClass(o),u.tipSettings.exposeClass&&(e.addClass(u.tipSettings.exposeClass),n.addClass(u.tipSettings.exposeClass)),r.data("expose",o),u.postExposeCallback(u.$li.index(),u.$next_tip,r),c.add_exposed(r)},un_expose:function(t,e){var n,r,i,o,a=!1;if(0<arguments.length&&t instanceof s)r=arguments[0];else{if(!u.$target||/body/i.test(u.$target.selector))return!1;r=u.$target}if(r.length<1)return l.console&&console.error("element not valid",r),!1;n=r.data("expose"),i=s("."+n),1<arguments.length&&(a=e),!0===a?s(".joyride-expose-wrapper,.joyride-expose-cover").remove():i.remove(),"auto"==(o=r.data("expose-css")).zIndex?r.css("z-index",""):r.css("z-index",o.zIndex),o.position!=r.css("position")&&("static"==o.position?r.css("position",""):r.css("position",o.position)),r.removeData("expose"),r.removeData("expose-z-index"),c.remove_exposed(r)},add_exposed:function(t){u.exposed=u.exposed||[],t instanceof s?u.exposed.push(t[0]):"string"==typeof t&&u.exposed.push(t)},remove_exposed:function(t){var e;t instanceof s?e=t[0]:"string"==typeof t&&(e=t),u.exposed=u.exposed||[];for(var n=0;n<u.exposed.length;n++)if(u.exposed[n]==e)return void u.exposed.splice(n,1)},center:function(){var t=u.$window;return u.$next_tip.css({top:(t.height()-u.$next_tip.outerHeight())/2+t.scrollTop(),left:(t.width()-u.$next_tip.outerWidth())/2+t.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(u.tipSettings.tipLocation)},top:function(){return/top/i.test(u.tipSettings.tipLocation)},right:function(){return/right/i.test(u.tipSettings.tipLocation)},left:function(){return/left/i.test(u.tipSettings.tipLocation)},corners:function(t){var e=u.$window,n=e.height()/2,r=Math.ceil(u.$target.offset().top-n+u.$next_tip.outerHeight()),i=e.width()+e.scrollLeft(),o=e.height()+r,a=e.height()+e.scrollTop(),s=e.scrollTop();return r<s&&(s=r<0?0:r),a<o&&(a=o),[t.offset().top<s,i<t.offset().left+t.outerWidth(),a<t.offset().top+t.outerHeight(),e.scrollLeft()>t.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,n){"auto"===e?t.addClass(n):t.addClass(e)},startTimer:function(){u.$li.length?u.automate=setTimeout(function(){c.hide(),c.show(),c.startTimer()},u.timer):clearTimeout(u.automate)},end:function(t){(t=t||!1)&&u.$window.unbind("resize.joyride"),u.cookieMonster&&s.cookie(u.cookieName,"ridden",{expires:365,domain:u.cookieDomain,path:u.cookiePath}),u.localStorage&&localStorage.setItem(u.localStorageKey,!0),0<u.timer&&clearTimeout(u.automate),u.modal&&u.expose&&c.un_expose(),u.$current_tip&&u.$current_tip.hide(),u.$li&&(u.postStepCallback(u.$li.index(),u.$current_tip,t),u.postRideCallback(u.$li.index(),u.$current_tip,t)),s(".joyride-modal-bg").hide()},jquery_check:function(){return!!s.isFunction(s.fn.on)||(s.fn.on=function(t,e,n){return this.delegate(e,t,n)},!(s.fn.off=function(t,e,n){return this.undelegate(e,t,n)}))},outerHTML:function(t){return t.outerHTML||(new XMLSerializer).serializeToString(t)},version:function(){return u.version},tabbable:function(i){s(i).on("keydown",function(t){if(!t.isDefaultPrevented()&&t.keyCode&&27===t.keyCode)return t.preventDefault(),void c.end(!0);if(9===t.keyCode){var e=s(i).find(":tabbable"),n=e.filter(":first"),r=e.filter(":last");t.target!==r[0]||t.shiftKey?t.target===n[0]&&t.shiftKey&&(r.focus(1),t.preventDefault()):(n.focus(1),t.preventDefault())}})}};s.fn.joyride=function(t){return c[t]?c[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void s.error("Method "+t+" does not exist on jQuery.joyride"):c.init.apply(this,arguments)}}(jQuery,this),function(u,c,d){function f(t){return t}function p(t){return decodeURIComponent(t.replace(e," "))}var e=/\+/g;u.cookie=function(t,e,n){if(e!==d&&!/Object/.test(Object.prototype.toString.call(e))){if(n=u.extend({},u.cookie.defaults,n),null===e&&(n.expires=-1),"number"==typeof n.expires){var r=n.expires,i=n.expires=new Date;i.setDate(i.getDate()+r)}return e=String(e),c.cookie=[encodeURIComponent(t),"=",n.raw?e:encodeURIComponent(e),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,a=(n=e||u.cookie.defaults||{}).raw?f:p,s=c.cookie.split("; "),l=0;o=s[l]&&s[l].split("=");l++)if(a(o.shift())===t)return a(o.join("="));return null},u.cookie.defaults={},u.removeCookie=function(t,e){return null!==u.cookie(t,e)&&(u.cookie(t,null,e),!0)}}(jQuery,document),window.Modernizr=function(r,c,i){function t(t){u.cssText=t}function n(t,e){return typeof t===e}var e,o,a="2.6.1",s={},d=c.documentElement,f="modernizr",l=c.createElement(f),u=l.style,p=({}.toString,{}),h=[],m=h.slice,g=function(t,e,n,r){var i,o,a,s=c.createElement("div"),l=c.body,u=l||c.createElement("body");if(parseInt(n,10))for(;n--;)(a=c.createElement("div")).id=r?r[n]:f+(n+1),s.appendChild(a);return i=["­",'<style id="s',f,'">',t,"</style>"].join(""),s.id=f,(l?s:u).innerHTML+=i,u.appendChild(s),l||(u.style.background="",d.appendChild(u)),o=e(s,t),l?s.parentNode.removeChild(s):u.parentNode.removeChild(u),!!o},b=function(t){var e,n=r.matchMedia||r.msMatchMedia;return n?n(t).matches:(g("@media "+t+" { #"+f+" { position: absolute; } }",function(t){e="absolute"==(r.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),e)},v={}.hasOwnProperty;for(var y in o=n(v,"undefined")||n(v.call,"undefined")?function(t,e){return e in t&&n(t.constructor.prototype[e],"undefined")}:function(t,e){return v.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function _(r){var i=this;if("function"!=typeof i)throw new TypeError;var o=m.call(arguments,1),a=function(){if(this instanceof a){var t=function(){};t.prototype=i.prototype;var e=new t,n=i.apply(e,o.concat(m.call(arguments)));return Object(n)===n?n:e}return i.apply(r,o.concat(m.call(arguments)))};return a}),p)o(p,y)&&(e=y.toLowerCase(),s[e]=p[y](),h.push((s[e]?"":"no-")+e));return s.addTest=function(t,e){if("object"==typeof t)for(var n in t)o(t,n)&&s.addTest(n,t[n]);else{if(t=t.toLowerCase(),s[t]!==i)return s;e="function"==typeof e?e():e,enableClasses&&(d.className+=" "+(e?"":"no-")+t),s[t]=e}return s},t(""),l=null,s._version=a,s.mq=b,s.testStyles=g,s}(this,this.document),function(){}.call(this),function(){}.call(this),function(){$(window).focus(function(){active_var()&&request_job_data(active_var())}),this.update_display=function(t){return disable_all_buttons(),update_script_details_panel(),request_job_data(t),update_destroy_button(t)},this.request_job_data=function(e){return show_loading_button(),null!=e?$.ajax({type:"GET",url:Routes.workflow_path(e),contentType:"application/json; charset=utf-8",dataType:"json",error:function(t){return show_job_panel(),console.log(t)},success:function(t){return show_job_panel(),update_job_panel(e,t)},complete:function(){return hide_loading_button()}}):(show_job_panel(),hide_loading_button())},this.update_job_panel=function(t,e){if(update_status_label(t,e.status_label),update_job_details_panel(e),update_open_dir_button(e.fs_root),update_edit_button(t),update_copy_button(t),update_submit_button(t,e.active),update_stop_button(t,e.active),update_template_button(t),list_folder_contents(e),missing_data_path()&&(update_open_dir_button(),update_terminal_button(),update_edit_button(),update_submit_button(),update_copy_button()),missing_data_cluster())return update_submit_button()},this.disable_all_buttons=function(){return update_open_dir_button(),update_edit_button(),update_terminal_button(),update_submit_button(),update_stop_button(),update_template_button(),update_copy_button(),update_destroy_button(),list_folder_contents()},this.hide_loading_button=function(){return $("#loading_button").invisible()},this.show_loading_button=function(){return $("#loading_button").visible()},this.show_job_panel=function(t){return null!=t?$("#job-details-panel").show():$("#job-details-panel").hide()},this.show_script_details_panel=function(t){return null!=t?$("#script-details-panel").show():$("#script-details-panel").hide()},this.show_job_array_request=function(t){return t?($("#job-details-job-array-request").show(),$("#job-details-job-array-request").prev().show()):($("#job-details-job-array-request").hide(),$("#job-details-job-array-request").prev().hide())},this.update_status_label=function(t,e){if(null!=e&&null!=t)return $("#status_label_"+t).html(e)},this.update_job_details_panel=function(t){if(show_job_panel(),null!=t)return update_missing_data_cluster_view(),update_missing_data_path_view(),update_missing_data_script_view(),$("#job-details-name").text(t.name),$("#job-details-server").val(t.host_title),$("#job-details-staged-dir").text(t.staged_dir),$("#job-details-script-name").text(t.staged_script_name||" "),$("#job-details-job-array-request").val(t.job_array_request||""),show_job_array_request(!(null===t.job_array_request||""===t.job_array_request)),null===t.account||""===t.account?($("#job-details-account").addClass("text-muted"),$("#job-details-account").text("Not specified")):($("#job-details-account").removeClass("text-muted"),$("#job-details-account").text(t.account)),show_job_panel(!0)},this.update_script_details_panel=function(t){return null!=t?($("#script-name").text(t.name),$("#open-script-dir-button").attr("href",""+t.fs_base),$("#open-terminal-dir-button").attr("href",""+t.terminal_base),$("#open-editor-button").attr("href",""+t.editor_url),update_terminal_button(t.terminal_base),$.ajax({type:"GET",url:t.apiurl,contentType:"application/json; charset=utf-8",dataType:"text",error:function(t){return show_script_details_panel(),console.log(t)},success:function(t){return show_script_details_panel(),$("#script-text-data").text(t),show_script_details_panel(!0)}})):show_script_details_panel()},this.update_open_dir_button=function(t){return null!=t?($("#open_dir_button").attr("href",t),$("#open_dir_button").removeAttr("disabled"),$("#open_dir_button").unbind("click",!1)):($("#open_dir_button").attr("href","#"),$("#open_dir_button").attr("disabled",!0),$("#open_dir_button").bind("click",!1))},this.update_copy_button=function(t){return null!=t?($("#copy_button").attr("href",Routes.copy_workflow_path(t)),$("#copy_button").data("method","POST"),$("#copy_button").removeAttr("disabled"),$("#copy_button").unbind("click",!1)):($("#copy_button").attr("href","#"),$("#copy_button").attr("disabled",!0),$("#copy_button").bind("click",!1))},this.update_copy_template_button=function(t){return null!=t?($("#copy_template_button").attr("href",Routes.new_template_path({path:t})),$("#copy_template_button").data("method","GET"),$("#copy_template_button").removeAttr("disabled"),$("#copy_template_button").unbind("click",!1)):($("#copy_template_button").attr("href","#"),$("#copy_template_button").attr("disabled",!0),$("#copy_template_button").bind("click",!1))},this.update_edit_button=function(t){return null!=t?($("#edit_button").attr("href",Routes.edit_workflow_path(t)),$("#edit_button").removeAttr("disabled"),$("#edit_button").unbind("click",!1)):($("#edit_button").removeAttr("href"),$("#edit_button").attr("disabled",!0),$("#edit_button").bind("click",!1))},this.update_terminal_button=function(t){return null!=t?($("#terminal_button").attr("href",t),$("#terminal_button").removeAttr("disabled"),$("#terminal_button").unbind("click",!1)):($("#terminal_button").removeAttr("href"),$("#terminal_button").attr("disabled",!0),$("#terminal_button").bind("click",!1))},this.update_submit_button=function(t,e){return null==t||e?($("#submit_button").removeAttr("href"),$("#submit_button").attr("disabled",!0),$("#submit_button").bind("click",!1)):($("#submit_button").attr("href",Routes.submit_workflow_path(t)),$("#submit_button").data("method","PUT"),$("#submit_button").removeAttr("disabled"),$("#submit_button").unbind("click",!1))},this.update_stop_button=function(t,e){return null!=t&&e?($("#stop_button").attr("href",Routes.stop_workflow_path(t)),$("#stop_button").data("method","PUT"),$("#stop_button").removeAttr("disabled"),$("#stop_button").unbind("click",!1)):($("#stop_button").removeAttr("href"),$("#stop_button").attr("disabled",!0),$("#stop_button").bind("click",!1))},this.update_template_button=function(t){var e;return null!=t?(e={jobid:""+t},$("#template_button").attr("href",Routes.new_template_path(e)),$("#template_button").removeAttr("disabled"),$("#template_button").unbind("click",!1)):($("#template_button").removeAttr("href"),$("#template_button").attr("disabled",!0),$("#template_button").bind("click",!1))},this.update_destroy_button=function(t){return null!=t?($("#destroy_button").attr("href",Routes.workflow_path(t)),$("#destroy_button").data("method","DELETE"),$("#destroy_button").removeAttr("disabled"),$("#destroy_button").unbind("click",!1)):($("#destroy_button").removeAttr("href"),$("#destroy_button").attr("disabled",!0),$("#destroy_button").bind("click",!1))},this.update_destroy_template_button=function(t){return null!=t?($("#destroy_template_button").attr("href",Routes.template_path("delete",{path:t})),$("#destroy_template_button").data("method","DELETE"),$("#destroy_template_button").removeAttr("disabled"),$("#destroy_template_button").unbind("click",!1)):($("#destroy_template_button").removeAttr("href"),$("#destroy_template_button").attr("disabled",!0),$("#destroy_template_button").bind("click",!1))},this.list_folder_contents=function(t){var e,n,r,i,o,a,s;if((s=null)!=t){for(o="<ul class='list-group'>",r=0,i=(a=t.folder_contents).length;r<i;r++)n=(e=a[r]).path.replace(t.staged_dir,""),e.name===t.staged_script_name&&(n="<strong>"+n+"</strong>",s=e),o+="<li class='list-group-item'>"+(n="<a href='"+(
"dir"===e.type?e.fsurl:e.editor_url)+"' target='_blank'>"+n+"</a>")+"</li>";o+="</ul>",$("#job-details-staged-dir-contents").html(o)}else $("#job-details-staged-dir-contents").html("");return update_script_details_panel(s)},$(function(){$("#new_job_template_selectpicker").on("change",function(){var t;t=JSON.parse($(this).find("option:selected").val()),$("#script_path_field").val(""+t.path),$("#name_field").val(""+t.name),$("#batch_host_select").val(""+t.host)})}),this.update_new_job_display=function(t){if(null!=t)return update_script_label(t.data("name")),update_notes(t.data("notes")),update_name(t.data("name")),update_host(t.data("host")),update_script(t.data("script")),update_staging_template_dir(t.data("path")),update_open_template_button(t.data("fs")),get_folder_contents_from_api(t.data("api")),update_copy_template_button(t.data("path")),update_open_dir_button(t.data("fs")),update_terminal_button(t.data("shell")),update_destroy_template_button(t.data("delete"))},this.update_script_label=function(t){return null!=t?$("#script-name-label").text(""+t):$("#script-name-label").text("")},this.update_notes=function(t){return null!=t?$("#notes-field").text(""+t):$("#notes-field").text("")},this.update_name=function(t){return null!=t?$("#name-field").val(""+t):$("#name-field").val("")},this.update_host=function(t){return $("#batch_host_select").val(""+t)},this.update_script=function(t){return null!=t?$("#script-path-field").val(""+t):$("#script-path-field").val("")},this.update_staging_template_dir=function(t){return null!=t?$("#staging-template-dir").val(""+t):$("#staging-template-dir").val("")},this.update_open_template_button=function(t){return null!=t?($("#open-template-dir-button").attr("href",t),$("#open-template-dir-button").removeAttr("disabled"),$("#open-template-dir-button").unbind("click",!1)):($("#open-template-dir-button").attr("href","#"),$("#open-template-dir-button").attr("disabled",!0),$("#open-template-dir-button").bind("click",!1))},this.get_folder_contents_from_api=function(t){if(update_folder_contents(),null!=t)return $.ajax({type:"GET",url:t,contentType:"application/json; charset=utf-8",dataType:"json",error:function(t){return console.log(t)},success:function(t){return update_folder_contents(t)}})},this.update_folder_contents=function(t){if($("#template-details-view").attr("hidden",!0),null!=t)return $("#template-location").html(""+t.path),format_files_from_json(t.path,t.files),$("#template-details-view").removeAttr("hidden")},this.format_files_from_json=function(t,e){var n,r,i;for(i="<ul class='list-group'>",n=0,r=e.length;n<r;n++)i+="<li class='list-group-item'>"+e[n].name+"</li>";return i+="</ul>",$("#template-folder-contents").html(""+i)},this.missing_data_cluster=function(){return active_row().hasClass("missing-cluster")},this.missing_data_path=function(){return active_row().hasClass("missing-dir")},this.missing_data_script=function(){return active_row().hasClass("missing-script")},this.update_missing_data_cluster_view=function(){return $("#job-details-submit-to").toggleClass("missing-cluster",missing_data_cluster()),$("#edit-job-options-script-link").attr("href",Routes.edit_workflow_path(active_var()))},this.update_missing_data_path_view=function(){return $("#script-details-view").toggleClass("missing-dir",missing_data_path())},this.update_missing_data_script_view=function(){return $("#script-details-name-view").toggle(!missing_data_path()),$("#script-details-name-view").toggleClass("missing-script",missing_data_script()),$("#edit-job-options-link").attr("href",Routes.edit_workflow_path(active_var()))},$(function(){return $("#reset-template-data").on("click",function(){return update_new_job_display(active_row())})})}.call(this),jQuery.fn.visible=function(){return this.css("visibility","visible")},jQuery.fn.invisible=function(){return this.css("visibility","hidden")};var active_var=function(){return active_row().attr("id")},active_row=function(){return $("tr.active")};$(document).ready(function(){var t;start_joyride(),$('[data-toggle="tooltip"]').tooltip(),$("#job-list-table").length&&(t=$("#job-list-table").DataTable(),0==$(".job-row").length&&(update_display(),start_joyride()),$("#job-list-table tbody").on("click","tr",function(){$(this).hasClass("active")?$(this).removeClass("active"):(t.$("tr.active").removeClass("active"),$(this).addClass("active")),update_job_details_panel(),update_display(active_var())})),$("#new-job-template-table").length&&(t=$("#new-job-template-table").DataTable(),$("#new-job-template-table tbody").on("click","tr",function(){$(this).hasClass("active")||(t.$("tr.active").removeClass("active"),$(this).addClass("active")),update_new_job_display(active_row())})),t&&(0<t.$("#"+selected_id).length?t.$("#"+selected_id).click():t.$("tr:first").click())});