Advertisement
tedr56

Untitled

Mar 2nd, 2014
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";if(function(t,e){function n(t){var e=t.length,n=ue.type(t);return ue.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){var e=_e[t]={};return ue.each(t.match(he)||[],function(t,n){e[n]=!0}),e}function o(t,n,i,o){if(ue.acceptData(t)){var r,s,a=ue.expando,l=t.nodeType,c=l?ue.cache:t,u=l?t[a]:t[a]&&a;if(u&&c[u]&&(o||c[u].data)||i!==e||"string"!=typeof n)return u||(u=l?t[a]=ee.pop()||ue.guid++:a),c[u]||(c[u]=l?{}:{toJSON:ue.noop}),("object"==typeof n||"function"==typeof n)&&(o?c[u]=ue.extend(c[u],n):c[u].data=ue.extend(c[u].data,n)),s=c[u],o||(s.data||(s.data={}),s=s.data),i!==e&&(s[ue.camelCase(n)]=i),"string"==typeof n?(r=s[n],null==r&&(r=s[ue.camelCase(n)])):r=s,r}}function r(t,e,n){if(ue.acceptData(t)){var i,o,r=t.nodeType,s=r?ue.cache:t,l=r?t[ue.expando]:ue.expando;if(s[l]){if(e&&(i=n?s[l]:s[l].data)){ue.isArray(e)?e=e.concat(ue.map(e,ue.camelCase)):e in i?e=[e]:(e=ue.camelCase(e),e=e in i?[e]:e.split(" ")),o=e.length;for(;o--;)delete i[e[o]];if(n?!a(i):!ue.isEmptyObject(i))return}(n||(delete s[l].data,a(s[l])))&&(r?ue.cleanData([t],!0):ue.support.deleteExpando||s!=s.window?delete s[l]:s[l]=null)}}}function s(t,n,i){if(i===e&&1===t.nodeType){var o="data-"+n.replace(Se,"-$1").toLowerCase();if(i=t.getAttribute(o),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:Ee.test(i)?ue.parseJSON(i):i}catch(r){}ue.data(t,n,i)}else i=e}return i}function a(t){var e;for(e in t)if(("data"!==e||!ue.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function l(){return!0}function c(){return!1}function u(){try{return Y.activeElement}catch(t){}}function p(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function h(t,e,n){if(ue.isFunction(e))return ue.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ue.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(qe.test(e))return ue.filter(e,t,n);e=ue.filter(e,t)}return ue.grep(t,function(t){return ue.inArray(t,e)>=0!==n})}function f(t){var e=Xe.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function d(t,e){return ue.nodeName(t,"table")&&ue.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function m(t){return t.type=(null!==ue.find.attr(t,"type"))+"/"+t.type,t}function g(t){var e=rn.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function v(t,e){for(var n,i=0;null!=(n=t[i]);i++)ue._data(n,"globalEval",!e||ue._data(e[i],"globalEval"))}function y(t,e){if(1===e.nodeType&&ue.hasData(t)){var n,i,o,r=ue._data(t),s=ue._data(e,r),a=r.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,o=a[n].length;o>i;i++)ue.event.add(e,n,a[n][i])}s.data&&(s.data=ue.extend({},s.data))}}function b(t,e){var n,i,o;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!ue.support.noCloneEvent&&e[ue.expando]){o=ue._data(e);for(i in o.events)ue.removeEvent(e,i,o.handle);e.removeAttribute(ue.expando)}"script"===n&&e.text!==t.text?(m(e).text=t.text,g(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),ue.support.html5Clone&&t.innerHTML&&!ue.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&en.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 x(t,n){var i,o,r=0,s=typeof t.getElementsByTagName!==K?t.getElementsByTagName(n||"*"):typeof t.querySelectorAll!==K?t.querySelectorAll(n||"*"):e;if(!s)for(s=[],i=t.childNodes||t;null!=(o=i[r]);r++)!n||ue.nodeName(o,n)?s.push(o):ue.merge(s,x(o,n));return n===e||n&&ue.nodeName(t,n)?ue.merge([t],s):s}function w(t){en.test(t.type)&&(t.defaultChecked=t.checked)}function k(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=_n.length;o--;)if(e=_n[o]+n,e in t)return e;return i}function T(t,e){return t=e||t,"none"===ue.css(t,"display")||!ue.contains(t.ownerDocument,t)}function C(t,e){for(var n,i,o,r=[],s=0,a=t.length;a>s;s++)i=t[s],i.style&&(r[s]=ue._data(i,"olddisplay"),n=i.style.display,e?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&T(i)&&(r[s]=ue._data(i,"olddisplay",N(i.nodeName)))):r[s]||(o=T(i),(n&&"none"!==n||!o)&&ue._data(i,"olddisplay",o?n:ue.css(i,"display"))));for(s=0;a>s;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?r[s]||"":"none"));return t}function _(t,e,n){var i=yn.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function E(t,e,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===e?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=ue.css(t,n+Cn[r],!0,o)),i?("content"===n&&(s-=ue.css(t,"padding"+Cn[r],!0,o)),"margin"!==n&&(s-=ue.css(t,"border"+Cn[r]+"Width",!0,o))):(s+=ue.css(t,"padding"+Cn[r],!0,o),"padding"!==n&&(s+=ue.css(t,"border"+Cn[r]+"Width",!0,o)));return s}function S(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,r=pn(t),s=ue.support.boxSizing&&"border-box"===ue.css(t,"boxSizing",!1,r);if(0>=o||null==o){if(o=hn(t,e,r),(0>o||null==o)&&(o=t.style[e]),bn.test(o))return o;i=s&&(ue.support.boxSizingReliable||o===t.style[e]),o=parseFloat(o)||0}return o+E(t,e,n||(s?"border":"content"),i,r)+"px"}function N(t){var e=Y,n=wn[t];return n||(n=A(t,e),"none"!==n&&n||(un=(un||ue("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement),e=(un[0].contentWindow||un[0].contentDocument).document,e.write("<!doctype html><html><body>"),e.close(),n=A(t,e),un.detach()),wn[t]=n),n}function A(t,e){var n=ue(e.createElement(t)).appendTo(e.body),i=ue.css(n[0],"display");return n.remove(),i}function P(t,e,n,i){var o;if(ue.isArray(e))ue.each(e,function(e,o){n||Sn.test(t)?i(t,o):P(t+"["+("object"==typeof o?e:"")+"]",o,n,i)});else if(n||"object"!==ue.type(e))i(t,e);else for(o in e)P(t+"["+o+"]",e[o],n,i)}function D(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(he)||[];if(ue.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function j(t,e,n,i){function o(a){var l;return r[a]=!0,ue.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var r={},s=t===Un;return o(e.dataTypes[0])||!r["*"]&&o("*")}function $(t,n){var i,o,r=ue.ajaxSettings.flatOptions||{};for(o in n)n[o]!==e&&((r[o]?t:i||(i={}))[o]=n[o]);return i&&ue.extend(!0,t,i),t}function I(t,n,i){for(var o,r,s,a,l=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),r===e&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(a in l)if(l[a]&&l[a].test(r)){c.unshift(a);break}if(c[0]in i)s=c[0];else{for(a in i){if(!c[0]||t.converters[a+" "+c[0]]){s=a;break}o||(o=a)}s=s||o}return s?(s!==c[0]&&c.unshift(s),i[s]):void 0}function L(t,e,n,i){var o,r,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(s=c[l+" "+r]||c["* "+r],!s)for(o in c)if(a=o.split(" "),a[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[o]:c[o]!==!0&&(r=a[0],u.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}function O(){try{return new t.XMLHttpRequest}catch(e){}}function H(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function M(){return setTimeout(function(){Zn=e}),Zn=ue.now()}function F(t,e,n){for(var i,o=(ri[e]||[]).concat(ri["*"]),r=0,s=o.length;s>r;r++)if(i=o[r].call(n,e,t))return i}function W(t,e,n){var i,o,r=0,s=oi.length,a=ue.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=Zn||M(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,r=1-i,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(r);return a.notifyWith(t,[c,r,n]),1>r&&l?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ue.extend({},e),opts:ue.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Zn||M(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ue.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),u=c.props;for(R(u,c.opts.specialEasing);s>r;r++)if(i=oi[r].call(c,t,u,c.opts))return i;return ue.map(u,F,c),ue.isFunction(c.opts.start)&&c.opts.start.call(t,c),ue.fx.timer(ue.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function R(t,e){var n,i,o,r,s;for(n in t)if(i=ue.camelCase(n),o=e[i],r=t[n],ue.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),s=ue.cssHooks[i],s&&"expand"in s){r=s.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=o)}else e[i]=o}function q(t,e,n){var i,o,r,s,a,l,c=this,u={},p=t.style,h=t.nodeType&&T(t),f=ue._data(t,"fxshow");n.queue||(a=ue._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,ue.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===ue.css(t,"display")&&"none"===ue.css(t,"float")&&(ue.support.inlineBlockNeedsLayout&&"inline"!==N(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ue.support.shrinkWrapBlocks||c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in e)if(o=e[i],ei.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(h?"hide":"show"))continue;u[i]=f&&f[i]||ue.style(t,i)}if(!ue.isEmptyObject(u)){f?"hidden"in f&&(h=f.hidden):f=ue._data(t,"fxshow",{}),r&&(f.hidden=!h),h?ue(t).show():c.done(function(){ue(t).hide()}),c.done(function(){var e;ue._removeData(t,"fxshow");for(e in u)ue.style(t,e,u[e])});for(i in u)s=F(h?f[i]:0,i,c),i in f||(f[i]=s.start,h&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function B(t,e,n,i,o){return new B.prototype.init(t,e,n,i,o)}function U(t,e){var n,i={height:t},o=0;for(e=e?1:0;4>o;o+=2-e)n=Cn[o],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function z(t){return ue.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var X,V,K=typeof e,G=t.location,Y=t.document,Q=Y.documentElement,J=t.jQuery,Z=t.$,te={},ee=[],ne="1.10.2",ie=ee.concat,oe=ee.push,re=ee.slice,se=ee.indexOf,ae=te.toString,le=te.hasOwnProperty,ce=ne.trim,ue=function(t,e){return new ue.fn.init(t,e,V)},pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=/\S+/g,fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,de=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,me=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ge=/^[\],:{}\s]*$/,ve=/(?:^|:|,)(?:\s*\[)+/g,ye=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,be=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,xe=/^-ms-/,we=/-([\da-z])/gi,ke=function(t,e){return e.toUpperCase()},Te=function(t){(Y.addEventListener||"load"===t.type||"complete"===Y.readyState)&&(Ce(),ue.ready())},Ce=function(){Y.addEventListener?(Y.removeEventListener("DOMContentLoaded",Te,!1),t.removeEventListener("load",Te,!1)):(Y.detachEvent("onreadystatechange",Te),t.detachEvent("onload",Te))};ue.fn=ue.prototype={jquery:ne,constructor:ue,init:function(t,n,i){var o,r;if(!t)return this;if("string"==typeof t){if(o="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:de.exec(t),!o||!o[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(o[1]){if(n=n instanceof ue?n[0]:n,ue.merge(this,ue.parseHTML(o[1],n&&n.nodeType?n.ownerDocument||n:Y,!0)),me.test(o[1])&&ue.isPlainObject(n))for(o in n)ue.isFunction(this[o])?this[o](n[o]):this.attr(o,n[o]);return this}if(r=Y.getElementById(o[2]),r&&r.parentNode){if(r.id!==o[2])return i.find(t);this.length=1,this[0]=r}return this.context=Y,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ue.isFunction(t)?i.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),ue.makeArray(t,this))},selector:"",length:0,toArray:function(){return re.call(this)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t){var e=ue.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ue.each(this,t,e)},ready:function(t){return ue.ready.promise().done(t),this},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},map:function(t){return this.pushStack(ue.map(this,function(e,n){return t.call(e,n,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:oe,sort:[].sort,splice:[].splice},ue.fn.init.prototype=ue.fn,ue.extend=ue.fn.extend=function(){var t,n,i,o,r,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),"object"==typeof a||ue.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(r=arguments[l]))for(o in r)t=a[o],i=r[o],a!==i&&(u&&i&&(ue.isPlainObject(i)||(n=ue.isArray(i)))?(n?(n=!1,s=t&&ue.isArray(t)?t:[]):s=t&&ue.isPlainObject(t)?t:{},a[o]=ue.extend(u,s,i)):i!==e&&(a[o]=i));return a},ue.extend({expando:"jQuery"+(ne+Math.random()).replace(/\D/g,""),noConflict:function(e){return t.$===ue&&(t.$=Z),e&&t.jQuery===ue&&(t.jQuery=J),ue},isReady:!1,readyWait:1,holdReady:function(t){t?ue.readyWait++:ue.ready(!0)},ready:function(t){if(t===!0?!--ue.readyWait:!ue.isReady){if(!Y.body)return setTimeout(ue.ready);ue.isReady=!0,t!==!0&&--ue.readyWait>0||(X.resolveWith(Y,[ue]),ue.fn.trigger&&ue(Y).trigger("ready").off("ready"))}},isFunction:function(t){return"function"===ue.type(t)},isArray:Array.isArray||function(t){return"array"===ue.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?te[ae.call(t)]||"object":typeof t},isPlainObject:function(t){var n;if(!t||"object"!==ue.type(t)||t.nodeType||ue.isWindow(t))return!1;try{if(t.constructor&&!le.call(t,"constructor")&&!le.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}if(ue.support.ownLast)for(n in t)return le.call(t,n);for(n in t);return n===e||le.call(t,n)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||Y;var i=me.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=ue.buildFragment([t],e,o),o&&ue(o).remove(),ue.merge([],i.childNodes))},parseJSON:function(e){return t.JSON&&t.JSON.parse?t.JSON.parse(e):null===e?e:"string"==typeof e&&(e=ue.trim(e),e&&ge.test(e.replace(ye,"@").replace(be,"]").replace(ve,"")))?new Function("return "+e)():void ue.error("Invalid JSON: "+e)},parseXML:function(n){var i,o;if(!n||"string"!=typeof n)return null;try{t.DOMParser?(o=new DOMParser,i=o.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(r){i=e}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||ue.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(e){e&&ue.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(xe,"ms-").replace(we,ke)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var o,r=0,s=t.length,a=n(t);if(i){if(a)for(;s>r&&(o=e.apply(t[r],i),o!==!1);r++);else for(r in t)if(o=e.apply(t[r],i),o===!1)break}else if(a)for(;s>r&&(o=e.call(t[r],r,t[r]),o!==!1);r++);else for(r in t)if(o=e.call(t[r],r,t[r]),o===!1)break;return t},trim:ce&&!ce.call(" ")?function(t){return null==t?"":ce.call(t)}:function(t){return null==t?"":(t+"").replace(fe,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ue.merge(i,"string"==typeof t?[t]:t):oe.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(se)return se.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,n){var i=n.length,o=t.length,r=0;if("number"==typeof i)for(;i>r;r++)t[o++]=n[r];else for(;n[r]!==e;)t[o++]=n[r++];return t.length=o,t},grep:function(t,e,n){var i,o=[],r=0,s=t.length;for(n=!!n;s>r;r++)i=!!e(t[r],r),n!==i&&o.push(t[r]);return o},map:function(t,e,i){var o,r=0,s=t.length,a=n(t),l=[];if(a)for(;s>r;r++)o=e(t[r],r,i),null!=o&&(l[l.length]=o);else for(r in t)o=e(t[r],r,i),null!=o&&(l[l.length]=o);return ie.apply([],l)},guid:1,proxy:function(t,n){var i,o,r;return"string"==typeof n&&(r=t[n],n=t,t=r),ue.isFunction(t)?(i=re.call(arguments,2),o=function(){return t.apply(n||this,i.concat(re.call(arguments)))},o.guid=t.guid=t.guid||ue.guid++,o):e},access:function(t,n,i,o,r,s,a){var l=0,c=t.length,u=null==i;if("object"===ue.type(i)){r=!0;for(l in i)ue.access(t,n,l,i[l],!0,s,a)}else if(o!==e&&(r=!0,ue.isFunction(o)||(a=!0),u&&(a?(n.call(t,o),n=null):(u=n,n=function(t,e,n){return u.call(ue(t),n)})),n))for(;c>l;l++)n(t[l],i,a?o:o.call(t[l],l,n(t[l],i)));return r?t:u?n.call(t):c?n(t[0],i):s},now:function(){return(new Date).getTime()},swap:function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];o=n.apply(t,i||[]);for(r in e)t.style[r]=s[r];return o}}),ue.ready.promise=function(e){if(!X)if(X=ue.Deferred(),"complete"===Y.readyState)setTimeout(ue.ready);else if(Y.addEventListener)Y.addEventListener("DOMContentLoaded",Te,!1),t.addEventListener("load",Te,!1);else{Y.attachEvent("onreadystatechange",Te),t.attachEvent("onload",Te);var n=!1;try{n=null==t.frameElement&&Y.documentElement}catch(i){}n&&n.doScroll&&!function o(){if(!ue.isReady){try{n.doScroll("left")}catch(t){return setTimeout(o,50)}Ce(),ue.ready()}}()}return X.promise(e)},ue.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){te["[object "+e+"]"]=e.toLowerCase()}),V=ue(Y),function(t,e){function n(t,e,n,i){var o,r,s,a,l,c,u,p,d,m;if((e?e.ownerDocument||e:W)!==j&&D(e),e=e||j,n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=e.nodeType)&&9!==a)return[];if(I&&!i){if(o=be.exec(t))if(s=o[1]){if(9===a){if(r=e.getElementById(s),!r||!r.parentNode)return n;if(r.id===s)return n.push(r),n}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(s))&&M(e,r)&&r.id===s)return n.push(r),n}else{if(o[2])return te.apply(n,e.getElementsByTagName(t)),n;if((s=o[3])&&T.getElementsByClassName&&e.getElementsByClassName)return te.apply(n,e.getElementsByClassName(s)),n}if(T.qsa&&(!L||!L.test(t))){if(p=u=F,d=e,m=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=h(t),(u=e.getAttribute("id"))?p=u.replace(ke,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=c.length;l--;)c[l]=p+f(c[l]);d=fe.test(t)&&e.parentNode||e,m=c.join(",")}if(m)try{return te.apply(n,d.querySelectorAll(m)),n}catch(g){}finally{u||e.removeAttribute("id")}}}return w(t.replace(ce,"$1"),e,n,i)}function i(){function t(n,i){return e.push(n+=" ")>_.cacheLength&&delete t[e.shift()],t[n]=i}var e=[];return t}function o(t){return t[F]=!0,t}function r(t){var e=j.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)_.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function l(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function c(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return o(function(e){return e=+e,o(function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function p(){}function h(t,e){var i,o,r,s,a,l,c,u=U[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=_.preFilter;a;){(!i||(o=pe.exec(a)))&&(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=he.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(ce," ")}),a=a.slice(i.length));for(s in _.filter)!(o=ve[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return e?a.length:a?n.error(t):U(t,l).slice(0)}function f(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,o=n&&"parentNode"===i,r=q++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r)}:function(e,n,s){var a,l,c,u=R+" "+r;if(s){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(c=e[F]||(e[F]={}),(l=c[i])&&l[0]===u){if((a=l[1])===!0||a===C)return a===!0}else if(l=c[i]=[u],l[1]=t(e,n,s)||C,l[1]===!0)return!0}}function m(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function g(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,c=null!=e;l>a;a++)(r=t[a])&&(!n||n(r,i,o))&&(s.push(r),c&&e.push(a));return s}function v(t,e,n,i,r,s){return i&&!i[F]&&(i=v(i)),r&&!r[F]&&(r=v(r,s)),o(function(o,s,a,l){var c,u,p,h=[],f=[],d=s.length,m=o||x(e||"*",a.nodeType?[a]:a,[]),v=!t||!o&&e?m:g(m,h,t,a,l),y=n?r||(o?t:d||i)?[]:s:v;if(n&&n(v,y,a,l),i)for(c=g(y,f),i(c,[],a,l),u=c.length;u--;)(p=c[u])&&(y[f[u]]=!(v[f[u]]=p));if(o){if(r||t){if(r){for(c=[],u=y.length;u--;)(p=y[u])&&c.push(v[u]=p);r(null,y=[],c,l)}for(u=y.length;u--;)(p=y[u])&&(c=r?ne.call(o,p):h[u])>-1&&(o[c]=!(s[c]=p))}}else y=g(y===s?y.splice(d,y.length):y),r?r(null,s,y,l):te.apply(s,y)})}function y(t){for(var e,n,i,o=t.length,r=_.relative[t[0].type],s=r||_.relative[" "],a=r?1:0,l=d(function(t){return t===e},s,!0),c=d(function(t){return ne.call(e,t)>-1},s,!0),u=[function(t,n,i){return!r&&(i||n!==A)||((e=n).nodeType?l(t,n,i):c(t,n,i))}];o>a;a++)if(n=_.relative[t[a].type])u=[d(m(u),n)];else{if(n=_.filter[t[a].type].apply(null,t[a].matches),n[F]){for(i=++a;o>i&&!_.relative[t[i].type];i++);return v(a>1&&m(u),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ce,"$1"),n,i>a&&y(t.slice(a,i)),o>i&&y(t=t.slice(i)),o>i&&f(t))}u.push(n)}return m(u)}function b(t,e){var i=0,r=e.length>0,s=t.length>0,a=function(o,a,l,c,u){var p,h,f,d=[],m=0,v="0",y=o&&[],b=null!=u,x=A,w=o||s&&_.find.TAG("*",u&&a.parentNode||a),k=R+=null==x?1:Math.random()||.1;for(b&&(A=a!==j&&a,C=i);null!=(p=w[v]);v++){if(s&&p){for(h=0;f=t[h++];)if(f(p,a,l)){c.push(p);break}b&&(R=k,C=++i)}r&&((p=!f&&p)&&m--,o&&y.push(p))}if(m+=v,r&&v!==m){for(h=0;f=e[h++];)f(y,d,a,l);if(o){if(m>0)for(;v--;)y[v]||d[v]||(d[v]=J.call(c));d=g(d)}te.apply(c,d),b&&!o&&d.length>0&&m+e.length>1&&n.uniqueSort(c)}return b&&(R=k,A=x),y};return r?o(a):a}function x(t,e,i){for(var o=0,r=e.length;r>o;o++)n(t,e[o],i);return i}function w(t,e,n,i){var o,r,s,a,l,c=h(t);if(!i&&1===c.length){if(r=c[0]=c[0].slice(0),r.length>2&&"ID"===(s=r[0]).type&&T.getById&&9===e.nodeType&&I&&_.relative[r[1].type]){if(e=(_.find.ID(s.matches[0].replace(Te,Ce),e)||[])[0],!e)return n;t=t.slice(r.shift().value.length)}for(o=ve.needsContext.test(t)?0:r.length;o--&&(s=r[o],!_.relative[a=s.type]);)if((l=_.find[a])&&(i=l(s.matches[0].replace(Te,Ce),fe.test(r[0].type)&&e.parentNode||e))){if(r.splice(o,1),t=i.length&&f(r),!t)return te.apply(n,i),n;break}}return N(t,c)(i,e,!I,n,fe.test(t)),n}var k,T,C,_,E,S,N,A,P,D,j,$,I,L,O,H,M,F="sizzle"+-new Date,W=t.document,R=0,q=0,B=i(),U=i(),z=i(),X=!1,V=function(t,e){return t===e?(X=!0,0):0},K=typeof e,G=1<<31,Y={}.hasOwnProperty,Q=[],J=Q.pop,Z=Q.push,te=Q.push,ee=Q.slice,ne=Q.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},ie="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",oe="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se=re.replace("w","w#"),ae="\\["+oe+"*("+re+")"+oe+"*(?:([*^$|!~]?=)"+oe+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+se+")|)|)"+oe+"*\\]",le=":("+re+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ae.replace(3,8)+")*)|.*)\\)|)",ce=new RegExp("^"+oe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+oe+"+$","g"),pe=new RegExp("^"+oe+"*,"+oe+"*"),he=new RegExp("^"+oe+"*([>+~]|"+oe+")"+oe+"*"),fe=new RegExp(oe+"*[+~]"),de=new RegExp("="+oe+"*([^\\]'\"]*)"+oe+"*\\]","g"),me=new RegExp(le),ge=new RegExp("^"+se+"$"),ve={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+le),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+oe+"*(even|odd|(([+-]|)(\\d*)n|)"+oe+"*(?:([+-]|)"+oe+"*(\\d+)|))"+oe+"*\\)|)","i"),bool:new RegExp("^(?:"+ie+")$","i"),needsContext:new RegExp("^"+oe+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+oe+"*((?:-\\d)?\\d*)"+oe+"*\\)|)(?=[^-]|$)","i")},ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/^(?:input|select|textarea|button)$/i,we=/^h\d$/i,ke=/'|\\/g,Te=new RegExp("\\\\([\\da-f]{1,6}"+oe+"?|("+oe+")|.)","ig"),Ce=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{te.apply(Q=ee.call(W.childNodes),W.childNodes),Q[W.childNodes.length].nodeType}catch(_e){te={apply:Q.length?function(t,e){Z.apply(t,ee.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}S=n.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},T=n.support={},D=n.setDocument=function(t){var e=t?t.ownerDocument||t:W,n=e.defaultView;return e!==j&&9===e.nodeType&&e.documentElement?(j=e,$=e.documentElement,I=!S(e),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){D()}),T.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),T.getElementsByTagName=r(function(t){return t.appendChild(e.createComment("")),!t.getElementsByTagName("*").length}),T.getElementsByClassName=r(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),T.getById=r(function(t){return $.appendChild(t).id=F,!e.getElementsByName||!e.getElementsByName(F).length}),T.getById?(_.find.ID=function(t,e){if(typeof e.getElementById!==K&&I){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(t){var e=t.replace(Te,Ce);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(Te,Ce);return function(t){var n=typeof t.getAttributeNode!==K&&t.getAttributeNode("id");return n&&n.value===e}}),_.find.TAG=T.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==K?e.getElementsByTagName(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},_.find.CLASS=T.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==K&&I?e.getElementsByClassName(t):void 0},O=[],L=[],(T.qsa=ye.test(e.querySelectorAll))&&(r(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||L.push("\\["+oe+"*(?:value|"+ie+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),r(function(t){var n=e.createElement("input");n.setAttribute("type","hidden"),t.appendChild(n).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&L.push("[*^$]="+oe+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(T.matchesSelector=ye.test(H=$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector))&&r(function(t){T.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),O.push("!=",le)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),M=ye.test($.contains)||$.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=$.compareDocumentPosition?function(t,n){if(t===n)return X=!0,0;var i=n.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(n);return i?1&i||!T.sortDetached&&n.compareDocumentPosition(t)===i?t===e||M(W,t)?-1:n===e||M(W,n)?1:P?ne.call(P,t)-ne.call(P,n):0:4&i?-1:1:t.compareDocumentPosition?-1:1}:function(t,n){var i,o=0,r=t.parentNode,s=n.parentNode,l=[t],c=[n];if(t===n)return X=!0,0;if(!r||!s)return t===e?-1:n===e?1:r?-1:s?1:P?ne.call(P,t)-ne.call(P,n):0;if(r===s)return a(t,n);for(i=t;i=i.parentNode;)l.unshift(i);for(i=n;i=i.parentNode;)c.unshift(i);for(;l[o]===c[o];)o++;return o?a(l[o],c[o]):l[o]===W?-1:c[o]===W?1:0},e):j},n.matches=function(t,e){return n(t,null,null,e)},n.matchesSelector=function(t,e){if((t.ownerDocument||t)!==j&&D(t),e=e.replace(de,"='$1']"),!(!T.matchesSelector||!I||O&&O.test(e)||L&&L.test(e)))try{var i=H.call(t,e);if(i||T.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(o){}return n(e,j,null,[t]).length>0},n.contains=function(t,e){return(t.ownerDocument||t)!==j&&D(t),M(t,e)},n.attr=function(t,n){(t.ownerDocument||t)!==j&&D(t);var i=_.attrHandle[n.toLowerCase()],o=i&&Y.call(_.attrHandle,n.toLowerCase())?i(t,n,!I):e;return o===e?T.attributes||!I?t.getAttribute(n):(o=t.getAttributeNode(n))&&o.specified?o.value:null:o},n.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},n.uniqueSort=function(t){var e,n=[],i=0,o=0;if(X=!T.detectDuplicates,P=!T.sortStable&&t.slice(0),t.sort(V),X){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return t},E=n.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=E(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i];i++)n+=E(e);return n},_=n.selectors={cacheLength:50,createPseudo:o,match:ve,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Te,Ce),t[3]=(t[4]||t[5]||"").replace(Te,Ce),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||n.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&n.error(t[0]),t},PSEUDO:function(t){var n,i=!t[5]&&t[2];return ve.CHILD.test(t[0])?null:(t[3]&&t[4]!==e?t[2]=t[4]:i&&me.test(i)&&(n=h(i,!0))&&(n=i.indexOf(")",i.length-n)-i.length)&&(t[0]=t[0].slice(0,n),t[2]=i.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Te,Ce).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("(^|"+oe+")"+t+"("+oe+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==K&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(o){var r=n.attr(o,t);return null==r?"!="===e:e?(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r+" ").indexOf(i)>-1:"|="===e?r===i||r.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;
  2. return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,p,h,f,d,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(r){for(;m;){for(p=e;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;d=m="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(u=g[F]||(g[F]={}),c=u[t]||[],f=c[0]===R&&c[1],h=c[0]===R&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(h=f=0)||d.pop();)if(1===p.nodeType&&++h&&p===e){u[t]=[R,f,h];break}}else if(y&&(c=(e[F]||(e[F]={}))[t])&&c[0]===R)h=c[1];else for(;(p=++f&&p&&p[m]||(h=f=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++h||(y&&((p[F]||(p[F]={}))[t]=[R,h]),p!==e)););return h-=o,h===i||h%i===0&&h/i>=0}}},PSEUDO:function(t,e){var i,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return r[F]?r(e):r.length>1?(i=[t,t,"",e],_.setFilters.hasOwnProperty(t.toLowerCase())?o(function(t,n){for(var i,o=r(t,e),s=o.length;s--;)i=ne.call(t,o[s]),t[i]=!(n[i]=o[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:o(function(t){var e=[],n=[],i=N(t.replace(ce,"$1"));return i[F]?o(function(t,e,n,o){for(var r,s=i(t,null,o,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,o,r){return e[0]=t,i(e,null,r,n),!n.pop()}}),has:o(function(t){return function(e){return n(t,e).length>0}}),contains:o(function(t){return function(e){return(e.textContent||e.innerText||E(e)).indexOf(t)>-1}}),lang:o(function(t){return ge.test(t||"")||n.error("unsupported lang: "+t),t=t.replace(Te,Ce).toLowerCase(),function(e){var n;do if(n=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===$},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeName>"@"||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return we.test(t.nodeName)},input:function(t){return xe.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[k]=l(k);for(k in{submit:!0,reset:!0})_.pseudos[k]=c(k);p.prototype=_.filters=_.pseudos,_.setFilters=new p,N=n.compile=function(t,e){var n,i=[],o=[],r=z[t+" "];if(!r){for(e||(e=h(t)),n=e.length;n--;)r=y(e[n]),r[F]?i.push(r):o.push(r);r=z(t,b(o,i))}return r},T.sortStable=F.split("").sort(V).join("")===F,T.detectDuplicates=X,D(),T.sortDetached=r(function(t){return 1&t.compareDocumentPosition(j.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),T.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(ie,function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&i.specified?i.value:t[e]===!0?e.toLowerCase():null}),ue.find=n,ue.expr=n.selectors,ue.expr[":"]=ue.expr.pseudos,ue.unique=n.uniqueSort,ue.text=n.getText,ue.isXMLDoc=n.isXML,ue.contains=n.contains}(t);var _e={};ue.Callbacks=function(t){t="string"==typeof t?_e[t]||i(t):ue.extend({},t);var n,o,r,s,a,l,c=[],u=!t.once&&[],p=function(e){for(o=t.memory&&e,r=!0,a=l||0,l=0,s=c.length,n=!0;c&&s>a;a++)if(c[a].apply(e[0],e[1])===!1&&t.stopOnFalse){o=!1;break}n=!1,c&&(u?u.length&&p(u.shift()):o?c=[]:h.disable())},h={add:function(){if(c){var e=c.length;!function i(e){ue.each(e,function(e,n){var o=ue.type(n);"function"===o?t.unique&&h.has(n)||c.push(n):n&&n.length&&"string"!==o&&i(n)})}(arguments),n?s=c.length:o&&(l=e,p(o))}return this},remove:function(){return c&&ue.each(arguments,function(t,e){for(var i;(i=ue.inArray(e,c,i))>-1;)c.splice(i,1),n&&(s>=i&&s--,a>=i&&a--)}),this},has:function(t){return t?ue.inArray(t,c)>-1:!(!c||!c.length)},empty:function(){return c=[],s=0,this},disable:function(){return c=u=o=e,this},disabled:function(){return!c},lock:function(){return u=e,o||h.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!c||r&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):p(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},ue.extend({Deferred:function(t){var e=[["resolve","done",ue.Callbacks("once memory"),"resolved"],["reject","fail",ue.Callbacks("once memory"),"rejected"],["notify","progress",ue.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ue.Deferred(function(n){ue.each(e,function(e,r){var s=r[0],a=ue.isFunction(t[e])&&t[e];o[r[1]](function(){var t=a&&a.apply(this,arguments);t&&ue.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ue.extend(t,i):i}},o={};return i.pipe=i.then,ue.each(e,function(t,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add(function(){n=a},e[1^t][2].disable,e[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,r=re.call(arguments),s=r.length,a=1!==s||t&&ue.isFunction(t.promise)?s:0,l=1===a?t:ue.Deferred(),c=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?re.call(arguments):o,i===e?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);s>o;o++)r[o]&&ue.isFunction(r[o].promise)?r[o].promise().done(c(o,i,r)).fail(l.reject).progress(c(o,n,e)):--a;return a||l.resolveWith(i,r),l.promise()}}),ue.support=function(e){var n,i,o,r,s,a,l,c,u,p=Y.createElement("div");if(p.setAttribute("className","t"),p.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*")||[],i=p.getElementsByTagName("a")[0],!i||!i.style||!n.length)return e;r=Y.createElement("select"),a=r.appendChild(Y.createElement("option")),o=p.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute="t"!==p.className,e.leadingWhitespace=3===p.firstChild.nodeType,e.tbody=!p.getElementsByTagName("tbody").length,e.htmlSerialize=!!p.getElementsByTagName("link").length,e.style=/top/.test(i.getAttribute("style")),e.hrefNormalized="/a"===i.getAttribute("href"),e.opacity=/^0.5/.test(i.style.opacity),e.cssFloat=!!i.style.cssFloat,e.checkOn=!!o.value,e.optSelected=a.selected,e.enctype=!!Y.createElement("form").enctype,e.html5Clone="<:nav></:nav>"!==Y.createElement("nav").cloneNode(!0).outerHTML,e.inlineBlockNeedsLayout=!1,e.shrinkWrapBlocks=!1,e.pixelPosition=!1,e.deleteExpando=!0,e.noCloneEvent=!0,e.reliableMarginRight=!0,e.boxSizingReliable=!0,o.checked=!0,e.noCloneChecked=o.cloneNode(!0).checked,r.disabled=!0,e.optDisabled=!a.disabled;try{delete p.test}catch(h){e.deleteExpando=!1}o=Y.createElement("input"),o.setAttribute("value",""),e.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),e.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),s=Y.createDocumentFragment(),s.appendChild(o),e.appendChecked=o.checked,e.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).click());for(u in{submit:!0,change:!0,focusin:!0})p.setAttribute(l="on"+u,"t"),e[u+"Bubbles"]=l in t||p.attributes[l].expando===!1;p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===p.style.backgroundClip;for(u in ue(e))break;return e.ownLast="0"!==u,ue(function(){var n,i,o,r="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=Y.getElementsByTagName("body")[0];s&&(n=Y.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(n).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=p.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",e.reliableHiddenOffsets=c&&0===o[0].offsetHeight,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",ue.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){e.boxSizing=4===p.offsetWidth}),t.getComputedStyle&&(e.pixelPosition="1%"!==(t.getComputedStyle(p,null)||{}).top,e.boxSizingReliable="4px"===(t.getComputedStyle(p,null)||{width:"4px"}).width,i=p.appendChild(Y.createElement("div")),i.style.cssText=p.style.cssText=r,i.style.marginRight=i.style.width="0",p.style.width="1px",e.reliableMarginRight=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),typeof p.style.zoom!==K&&(p.innerHTML="",p.style.cssText=r+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",e.shrinkWrapBlocks=3!==p.offsetWidth,e.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(n),n=p=o=i=null)}),n=r=s=a=i=o=null,e}({});var Ee=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Se=/([A-Z])/g;ue.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ue.cache[t[ue.expando]]:t[ue.expando],!!t&&!a(t)},data:function(t,e,n){return o(t,e,n)},removeData:function(t,e){return r(t,e)},_data:function(t,e,n){return o(t,e,n,!0)},_removeData:function(t,e){return r(t,e,!0)},acceptData:function(t){if(t.nodeType&&1!==t.nodeType&&9!==t.nodeType)return!1;var e=t.nodeName&&ue.noData[t.nodeName.toLowerCase()];return!e||e!==!0&&t.getAttribute("classid")===e}}),ue.fn.extend({data:function(t,n){var i,o,r=null,a=0,l=this[0];if(t===e){if(this.length&&(r=ue.data(l),1===l.nodeType&&!ue._data(l,"parsedAttrs"))){for(i=l.attributes;a<i.length;a++)o=i[a].name,0===o.indexOf("data-")&&(o=ue.camelCase(o.slice(5)),s(l,o,r[o]));ue._data(l,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){ue.data(this,t)}):arguments.length>1?this.each(function(){ue.data(this,t,n)}):l?s(l,t,ue.data(l,t)):null},removeData:function(t){return this.each(function(){ue.removeData(this,t)})}}),ue.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ue._data(t,e),n&&(!i||ue.isArray(n)?i=ue._data(t,e,ue.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ue.queue(t,e),i=n.length,o=n.shift(),r=ue._queueHooks(t,e),s=function(){ue.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ue._data(t,n)||ue._data(t,n,{empty:ue.Callbacks("once memory").add(function(){ue._removeData(t,e+"queue"),ue._removeData(t,n)})})}}),ue.fn.extend({queue:function(t,n){var i=2;return"string"!=typeof t&&(n=t,t="fx",i--),arguments.length<i?ue.queue(this[0],t):n===e?this:this.each(function(){var e=ue.queue(this,t,n);ue._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ue.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ue.dequeue(this,t)})},delay:function(t,e){return t=ue.fx?ue.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,n){var i,o=1,r=ue.Deferred(),s=this,a=this.length,l=function(){--o||r.resolveWith(s,[s])};for("string"!=typeof t&&(n=t,t=e),t=t||"fx";a--;)i=ue._data(s[a],t+"queueHooks"),i&&i.empty&&(o++,i.empty.add(l));return l(),r.promise(n)}});var Ne,Ae,Pe=/[\t\r\n\f]/g,De=/\r/g,je=/^(?:input|select|textarea|button|object)$/i,$e=/^(?:a|area)$/i,Ie=/^(?:checked|selected)$/i,Le=ue.support.getSetAttribute,Oe=ue.support.input;ue.fn.extend({attr:function(t,e){return ue.access(this,ue.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ue.removeAttr(this,t)})},prop:function(t,e){return ue.access(this,ue.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ue.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(n){}})},addClass:function(t){var e,n,i,o,r,s=0,a=this.length,l="string"==typeof t&&t;if(ue.isFunction(t))return this.each(function(e){ue(this).addClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(he)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Pe," "):" ")){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");n.className=ue.trim(i)}return this},removeClass:function(t){var e,n,i,o,r,s=0,a=this.length,l=0===arguments.length||"string"==typeof t&&t;if(ue.isFunction(t))return this.each(function(e){ue(this).removeClass(t.call(this,e,this.className))});if(l)for(e=(t||"").match(he)||[];a>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Pe," "):"")){for(r=0;o=e[r++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");n.className=t?ue.trim(i):""}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(ue.isFunction(t)?function(n){ue(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,o=ue(this),r=t.match(he)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else(n===K||"boolean"===n)&&(this.className&&ue._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ue._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Pe," ").indexOf(e)>=0)return!0;return!1},val:function(t){var n,i,o,r=this[0];{if(arguments.length)return o=ue.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=o?t.call(this,n,ue(this).val()):t,null==r?r="":"number"==typeof r?r+="":ue.isArray(r)&&(r=ue.map(r,function(t){return null==t?"":t+""})),i=ue.valHooks[this.type]||ue.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&i.set(this,r,"value")!==e||(this.value=r))});if(r)return i=ue.valHooks[r.type]||ue.valHooks[r.nodeName.toLowerCase()],i&&"get"in i&&(n=i.get(r,"value"))!==e?n:(n=r.value,"string"==typeof n?n.replace(De,""):null==n?"":n)}}}),ue.extend({valHooks:{option:{get:function(t){var e=ue.find.attr(t,"value");return null!=e?e:t.text}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||0>o,s=r?null:[],a=r?o+1:i.length,l=0>o?a:r?o:0;a>l;l++)if(n=i[l],!(!n.selected&&l!==o||(ue.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ue.nodeName(n.parentNode,"optgroup"))){if(e=ue(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=ue.makeArray(e),s=o.length;s--;)i=o[s],(i.selected=ue.inArray(ue(i).val(),r)>=0)&&(n=!0);return n||(t.selectedIndex=-1),r}}},attr:function(t,n,i){var o,r,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===K?ue.prop(t,n,i):(1===s&&ue.isXMLDoc(t)||(n=n.toLowerCase(),o=ue.attrHooks[n]||(ue.expr.match.bool.test(n)?Ae:Ne)),i===e?o&&"get"in o&&null!==(r=o.get(t,n))?r:(r=ue.find.attr(t,n),null==r?e:r):null!==i?o&&"set"in o&&(r=o.set(t,i,n))!==e?r:(t.setAttribute(n,i+""),i):void ue.removeAttr(t,n))},removeAttr:function(t,e){var n,i,o=0,r=e&&e.match(he);if(r&&1===t.nodeType)for(;n=r[o++];)i=ue.propFix[n]||n,ue.expr.match.bool.test(n)?Oe&&Le||!Ie.test(n)?t[i]=!1:t[ue.camelCase("default-"+n)]=t[i]=!1:ue.attr(t,n,""),t.removeAttribute(Le?n:i)},attrHooks:{type:{set:function(t,e){if(!ue.support.radioValue&&"radio"===e&&ue.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(t,n,i){var o,r,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!ue.isXMLDoc(t),s&&(n=ue.propFix[n]||n,r=ue.propHooks[n]),i!==e?r&&"set"in r&&(o=r.set(t,i,n))!==e?o:t[n]=i:r&&"get"in r&&null!==(o=r.get(t,n))?o:t[n]},propHooks:{tabIndex:{get:function(t){var e=ue.find.attr(t,"tabindex");return e?parseInt(e,10):je.test(t.nodeName)||$e.test(t.nodeName)&&t.href?0:-1}}}}),Ae={set:function(t,e,n){return e===!1?ue.removeAttr(t,n):Oe&&Le||!Ie.test(n)?t.setAttribute(!Le&&ue.propFix[n]||n,n):t[ue.camelCase("default-"+n)]=t[n]=!0,n}},ue.each(ue.expr.match.bool.source.match(/\w+/g),function(t,n){var i=ue.expr.attrHandle[n]||ue.find.attr;ue.expr.attrHandle[n]=Oe&&Le||!Ie.test(n)?function(t,n,o){var r=ue.expr.attrHandle[n],s=o?e:(ue.expr.attrHandle[n]=e)!=i(t,n,o)?n.toLowerCase():null;return ue.expr.attrHandle[n]=r,s}:function(t,n,i){return i?e:t[ue.camelCase("default-"+n)]?n.toLowerCase():null}}),Oe&&Le||(ue.attrHooks.value={set:function(t,e,n){return ue.nodeName(t,"input")?void(t.defaultValue=e):Ne&&Ne.set(t,e,n)}}),Le||(Ne={set:function(t,n,i){var o=t.getAttributeNode(i);return o||t.setAttributeNode(o=t.ownerDocument.createAttribute(i)),o.value=n+="","value"===i||n===t.getAttribute(i)?n:e}},ue.expr.attrHandle.id=ue.expr.attrHandle.name=ue.expr.attrHandle.coords=function(t,n,i){var o;return i?e:(o=t.getAttributeNode(n))&&""!==o.value?o.value:null},ue.valHooks.button={get:function(t,n){var i=t.getAttributeNode(n);return i&&i.specified?i.value:e},set:Ne.set},ue.attrHooks.contenteditable={set:function(t,e,n){Ne.set(t,""===e?!1:e,n)}},ue.each(["width","height"],function(t,e){ue.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),ue.support.hrefNormalized||ue.each(["href","src"],function(t,e){ue.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ue.support.style||(ue.attrHooks.style={get:function(t){return t.style.cssText||e},set:function(t,e){return t.style.cssText=e+""}}),ue.support.optSelected||(ue.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ue.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ue.propFix[this.toLowerCase()]=this}),ue.support.enctype||(ue.propFix.enctype="encoding"),ue.each(["radio","checkbox"],function(){ue.valHooks[this]={set:function(t,e){return ue.isArray(e)?t.checked=ue.inArray(ue(t).val(),e)>=0:void 0}},ue.support.checkOn||(ue.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var He=/^(?:input|select|textarea)$/i,Me=/^key/,Fe=/^(?:mouse|contextmenu)|click/,We=/^(?:focusinfocus|focusoutblur)$/,Re=/^([^.]*)(?:\.(.+)|)$/;ue.event={global:{},add:function(t,n,i,o,r){var s,a,l,c,u,p,h,f,d,m,g,v=ue._data(t);if(v){for(i.handler&&(c=i,i=c.handler,r=c.selector),i.guid||(i.guid=ue.guid++),(a=v.events)||(a=v.events={}),(p=v.handle)||(p=v.handle=function(t){return typeof ue===K||t&&ue.event.triggered===t.type?e:ue.event.dispatch.apply(p.elem,arguments)},p.elem=t),n=(n||"").match(he)||[""],l=n.length;l--;)s=Re.exec(n[l])||[],d=g=s[1],m=(s[2]||"").split(".").sort(),d&&(u=ue.event.special[d]||{},d=(r?u.delegateType:u.bindType)||d,u=ue.event.special[d]||{},h=ue.extend({type:d,origType:g,data:o,handler:i,guid:i.guid,selector:r,needsContext:r&&ue.expr.match.needsContext.test(r),namespace:m.join(".")},c),(f=a[d])||(f=a[d]=[],f.delegateCount=0,u.setup&&u.setup.call(t,o,m,p)!==!1||(t.addEventListener?t.addEventListener(d,p,!1):t.attachEvent&&t.attachEvent("on"+d,p))),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,h):f.push(h),ue.event.global[d]=!0);t=null}},remove:function(t,e,n,i,o){var r,s,a,l,c,u,p,h,f,d,m,g=ue.hasData(t)&&ue._data(t);if(g&&(u=g.events)){for(e=(e||"").match(he)||[""],c=e.length;c--;)if(a=Re.exec(e[c])||[],f=m=a[1],d=(a[2]||"").split(".").sort(),f){for(p=ue.event.special[f]||{},f=(i?p.delegateType:p.bindType)||f,h=u[f]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)s=h[r],!o&&m!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(h.splice(r,1),s.selector&&h.delegateCount--,p.remove&&p.remove.call(t,s));l&&!h.length&&(p.teardown&&p.teardown.call(t,d,g.handle)!==!1||ue.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)ue.event.remove(t,f+e[c],n,i,!0);ue.isEmptyObject(u)&&(delete g.handle,ue._removeData(t,"events"))}},trigger:function(n,i,o,r){var s,a,l,c,u,p,h,f=[o||Y],d=le.call(n,"type")?n.type:n,m=le.call(n,"namespace")?n.namespace.split("."):[];if(l=p=o=o||Y,3!==o.nodeType&&8!==o.nodeType&&!We.test(d+ue.event.triggered)&&(d.indexOf(".")>=0&&(m=d.split("."),d=m.shift(),m.sort()),a=d.indexOf(":")<0&&"on"+d,n=n[ue.expando]?n:new ue.Event(d,"object"==typeof n&&n),n.isTrigger=r?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=e,n.target||(n.target=o),i=null==i?[n]:ue.makeArray(i,[n]),u=ue.event.special[d]||{},r||!u.trigger||u.trigger.apply(o,i)!==!1)){if(!r&&!u.noBubble&&!ue.isWindow(o)){for(c=u.delegateType||d,We.test(c+d)||(l=l.parentNode);l;l=l.parentNode)f.push(l),p=l;p===(o.ownerDocument||Y)&&f.push(p.defaultView||p.parentWindow||t)}for(h=0;(l=f[h++])&&!n.isPropagationStopped();)n.type=h>1?c:u.bindType||d,s=(ue._data(l,"events")||{})[n.type]&&ue._data(l,"handle"),s&&s.apply(l,i),s=a&&l[a],s&&ue.acceptData(l)&&s.apply&&s.apply(l,i)===!1&&n.preventDefault();if(n.type=d,!r&&!n.isDefaultPrevented()&&(!u._default||u._default.apply(f.pop(),i)===!1)&&ue.acceptData(o)&&a&&o[d]&&!ue.isWindow(o)){p=o[a],p&&(o[a]=null),ue.event.triggered=d;try{o[d]()}catch(g){}ue.event.triggered=e,p&&(o[a]=p)}return n.result}},dispatch:function(t){t=ue.event.fix(t);var n,i,o,r,s,a=[],l=re.call(arguments),c=(ue._data(this,"events")||{})[t.type]||[],u=ue.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(a=ue.event.handlers.call(this,t,c),n=0;(r=a[n++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,s=0;(o=r.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,i=((ue.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l),i!==e&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,n){var i,o,r,s,a=[],l=n.delegateCount,c=t.target;if(l&&c.nodeType&&(!t.button||"click"!==t.type))for(;c!=this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==t.type)){for(r=[],s=0;l>s;s++)o=n[s],i=o.selector+" ",r[i]===e&&(r[i]=o.needsContext?ue(i,this).index(c)>=0:ue.find(i,this,null,[c]).length),r[i]&&r.push(o);r.length&&a.push({elem:c,handlers:r})}return l<n.length&&a.push({elem:this,handlers:n.slice(l)}),a},fix:function(t){if(t[ue.expando])return t;var e,n,i,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Fe.test(o)?this.mouseHooks:Me.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new ue.Event(r),e=i.length;e--;)n=i[e],t[n]=r[n];return t.target||(t.target=r.srcElement||Y),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var i,o,r,s=n.button,a=n.fromElement;return null==t.pageX&&null!=n.clientX&&(o=t.target.ownerDocument||Y,r=o.documentElement,i=o.body,t.pageX=n.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=n.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?n.toElement:a),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==u()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ue.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return ue.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==e&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var o=ue.extend(new ue.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?ue.event.trigger(o,null,e):ue.event.dispatch.call(e,o),o.isDefaultPrevented()&&n.preventDefault()}},ue.removeEvent=Y.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===K&&(t[i]=null),t.detachEvent(i,n))},ue.Event=function(t,e){return this instanceof ue.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?l:c):this.type=t,e&&ue.extend(this,e),this.timeStamp=t&&t.timeStamp||ue.now(),void(this[ue.expando]=!0)):new ue.Event(t,e)},ue.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=l,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=l,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=l,this.stopPropagation()}},ue.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){ue.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return(!o||o!==i&&!ue.contains(i,o))&&(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),ue.support.submitBubbles||(ue.event.special.submit={setup:function(){return ue.nodeName(this,"form")?!1:void ue.event.add(this,"click._submit keypress._submit",function(t){var n=t.target,i=ue.nodeName(n,"input")||ue.nodeName(n,"button")?n.form:e;i&&!ue._data(i,"submitBubbles")&&(ue.event.add(i,"submit._submit",function(t){t._submit_bubble=!0}),ue._data(i,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&ue.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return ue.nodeName(this,"form")?!1:void ue.event.remove(this,"._submit")}}),ue.support.changeBubbles||(ue.event.special.change={setup:function(){return He.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ue.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),ue.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),ue.event.simulate("change",this,t,!0)})),!1):void ue.event.add(this,"beforeactivate._change",function(t){var e=t.target;He.test(e.nodeName)&&!ue._data(e,"changeBubbles")&&(ue.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ue.event.simulate("change",this.parentNode,t,!0)}),ue._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ue.event.remove(this,"._change"),!He.test(this.nodeName)}}),ue.support.focusinBubbles||ue.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,i=function(t){ue.event.simulate(e,t.target,ue.event.fix(t),!0)};ue.event.special[e]={setup:function(){0===n++&&Y.addEventListener(t,i,!0)},teardown:function(){0===--n&&Y.removeEventListener(t,i,!0)}}}),ue.fn.extend({on:function(t,n,i,o,r){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=e);for(s in t)this.on(s,n,i,t[s],r);return this}if(null==i&&null==o?(o=n,i=n=e):null==o&&("string"==typeof n?(o=i,i=e):(o=i,i=n,n=e)),o===!1)o=c;else if(!o)return this;return 1===r&&(a=o,o=function(t){return ue().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=ue.guid++)),this.each(function(){ue.event.add(this,t,o,i,n)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,n,i){var o,r;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,ue(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof t){for(r in t)this.off(r,n,t[r]);return this}return(n===!1||"function"==typeof n)&&(i=n,n=e),i===!1&&(i=c),this.each(function(){ue.event.remove(this,t,i,n)})},trigger:function(t,e){return this.each(function(){ue.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?ue.event.trigger(t,e,n,!0):void 0}});var qe=/^.[^:#\[\.,]*$/,Be=/^(?:parents|prev(?:Until|All))/,Ue=ue.expr.match.needsContext,ze={children:!0,contents:!0,next:!0,prev:!0};ue.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(ue(t).filter(function(){for(e=0;o>e;e++)if(ue.contains(i[e],this))return!0}));for(e=0;o>e;e++)ue.find(t,i[e],n);return n=this.pushStack(o>1?ue.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e,n=ue(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(ue.contains(this,n[e]))return!0})},not:function(t){return this.pushStack(h(this,t||[],!0))},filter:function(t){return this.pushStack(h(this,t||[],!1))},is:function(t){return!!h(this,"string"==typeof t&&Ue.test(t)?ue(t):t||[],!1).length},closest:function(t,e){for(var n,i=0,o=this.length,r=[],s=Ue.test(t)||"string"!=typeof t?ue(t,e||this.context):0;o>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ue.find.matchesSelector(n,t))){n=r.push(n);break}return this.pushStack(r.length>1?ue.unique(r):r)},index:function(t){return t?"string"==typeof t?ue.inArray(this[0],ue(t)):ue.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?ue(t,e):ue.makeArray(t&&t.nodeType?[t]:t),i=ue.merge(this.get(),n);return this.pushStack(ue.unique(i))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ue.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null
  3. },parents:function(t){return ue.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ue.dir(t,"parentNode",n)},next:function(t){return p(t,"nextSibling")},prev:function(t){return p(t,"previousSibling")},nextAll:function(t){return ue.dir(t,"nextSibling")},prevAll:function(t){return ue.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ue.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ue.dir(t,"previousSibling",n)},siblings:function(t){return ue.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ue.sibling(t.firstChild)},contents:function(t){return ue.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ue.merge([],t.childNodes)}},function(t,e){ue.fn[t]=function(n,i){var o=ue.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ue.filter(i,o)),this.length>1&&(ze[t]||(o=ue.unique(o)),Be.test(t)&&(o=o.reverse())),this.pushStack(o)}}),ue.extend({filter:function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ue.find.matchesSelector(i,t)?[i]:[]:ue.find.matches(t,ue.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,n,i){for(var o=[],r=t[n];r&&9!==r.nodeType&&(i===e||1!==r.nodeType||!ue(r).is(i));)1===r.nodeType&&o.push(r),r=r[n];return o},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Xe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ve=/ jQuery\d+="(?:null|\d+)"/g,Ke=new RegExp("<(?:"+Xe+")[\\s/>]","i"),Ge=/^\s+/,Ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Qe=/<([\w:]+)/,Je=/<tbody/i,Ze=/<|&#?\w+;/,tn=/<(?:script|style|link)/i,en=/^(?:checkbox|radio)$/i,nn=/checked\s*(?:[^=]|=\s*.checked.)/i,on=/^$|\/(?:java|ecma)script/i,rn=/^true\/(.*)/,sn=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,an={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:ue.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},ln=f(Y),cn=ln.appendChild(Y.createElement("div"));an.optgroup=an.option,an.tbody=an.tfoot=an.colgroup=an.caption=an.thead,an.th=an.td,ue.fn.extend({text:function(t){return ue.access(this,function(t){return t===e?ue.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Y).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ue.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||ue.cleanData(x(n)),n.parentNode&&(e&&ue.contains(n.ownerDocument,n)&&v(x(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ue.cleanData(x(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ue.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return ue.clone(this,t,e)})},html:function(t){return ue.access(this,function(t){var n=this[0]||{},i=0,o=this.length;if(t===e)return 1===n.nodeType?n.innerHTML.replace(Ve,""):e;if(!("string"!=typeof t||tn.test(t)||!ue.support.htmlSerialize&&Ke.test(t)||!ue.support.leadingWhitespace&&Ge.test(t)||an[(Qe.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Ye,"<$1></$2>");try{for(;o>i;i++)n=this[i]||{},1===n.nodeType&&(ue.cleanData(x(n,!1)),n.innerHTML=t);n=0}catch(r){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=ue.map(this,function(t){return[t.nextSibling,t.parentNode]}),e=0;return this.domManip(arguments,function(n){var i=t[e++],o=t[e++];o&&(i&&i.parentNode!==o&&(i=this.nextSibling),ue(this).remove(),o.insertBefore(n,i))},!0),e?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e,n){t=ie.apply([],t);var i,o,r,s,a,l,c=0,u=this.length,p=this,h=u-1,f=t[0],d=ue.isFunction(f);if(d||!(1>=u||"string"!=typeof f||ue.support.checkClone)&&nn.test(f))return this.each(function(i){var o=p.eq(i);d&&(t[0]=f.call(this,i,o.html())),o.domManip(t,e,n)});if(u&&(l=ue.buildFragment(t,this[0].ownerDocument,!1,!n&&this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(s=ue.map(x(l,"script"),m),r=s.length;u>c;c++)o=l,c!==h&&(o=ue.clone(o,!0,!0),r&&ue.merge(s,x(o,"script"))),e.call(this[c],o,c);if(r)for(a=s[s.length-1].ownerDocument,ue.map(s,g),c=0;r>c;c++)o=s[c],on.test(o.type||"")&&!ue._data(o,"globalEval")&&ue.contains(a,o)&&(o.src?ue._evalUrl(o.src):ue.globalEval((o.text||o.textContent||o.innerHTML||"").replace(sn,"")));l=i=null}return this}}),ue.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ue.fn[t]=function(t){for(var n,i=0,o=[],r=ue(t),s=r.length-1;s>=i;i++)n=i===s?this:this.clone(!0),ue(r[i])[e](n),oe.apply(o,n.get());return this.pushStack(o)}}),ue.extend({clone:function(t,e,n){var i,o,r,s,a,l=ue.contains(t.ownerDocument,t);if(ue.support.html5Clone||ue.isXMLDoc(t)||!Ke.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(cn.innerHTML=t.outerHTML,cn.removeChild(r=cn.firstChild)),!(ue.support.noCloneEvent&&ue.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ue.isXMLDoc(t)))for(i=x(r),a=x(t),s=0;null!=(o=a[s]);++s)i[s]&&b(o,i[s]);if(e)if(n)for(a=a||x(t),i=i||x(r),s=0;null!=(o=a[s]);s++)y(o,i[s]);else y(t,r);return i=x(r,"script"),i.length>0&&v(i,!l&&x(t,"script")),i=a=o=null,r},buildFragment:function(t,e,n,i){for(var o,r,s,a,l,c,u,p=t.length,h=f(e),d=[],m=0;p>m;m++)if(r=t[m],r||0===r)if("object"===ue.type(r))ue.merge(d,r.nodeType?[r]:r);else if(Ze.test(r)){for(a=a||h.appendChild(e.createElement("div")),l=(Qe.exec(r)||["",""])[1].toLowerCase(),u=an[l]||an._default,a.innerHTML=u[1]+r.replace(Ye,"<$1></$2>")+u[2],o=u[0];o--;)a=a.lastChild;if(!ue.support.leadingWhitespace&&Ge.test(r)&&d.push(e.createTextNode(Ge.exec(r)[0])),!ue.support.tbody)for(r="table"!==l||Je.test(r)?"<table>"!==u[1]||Je.test(r)?0:a:a.firstChild,o=r&&r.childNodes.length;o--;)ue.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(ue.merge(d,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=h.lastChild}else d.push(e.createTextNode(r));for(a&&h.removeChild(a),ue.support.appendChecked||ue.grep(x(d,"input"),w),m=0;r=d[m++];)if((!i||-1===ue.inArray(r,i))&&(s=ue.contains(r.ownerDocument,r),a=x(h.appendChild(r),"script"),s&&v(a),n))for(o=0;r=a[o++];)on.test(r.type||"")&&n.push(r);return a=null,h},cleanData:function(t,e){for(var n,i,o,r,s=0,a=ue.expando,l=ue.cache,c=ue.support.deleteExpando,u=ue.event.special;null!=(n=t[s]);s++)if((e||ue.acceptData(n))&&(o=n[a],r=o&&l[o])){if(r.events)for(i in r.events)u[i]?ue.event.remove(n,i):ue.removeEvent(n,i,r.handle);l[o]&&(delete l[o],c?delete n[a]:typeof n.removeAttribute!==K?n.removeAttribute(a):n[a]=null,ee.push(o))}},_evalUrl:function(t){return ue.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ue.fn.extend({wrapAll:function(t){if(ue.isFunction(t))return this.each(function(e){ue(this).wrapAll(t.call(this,e))});if(this[0]){var e=ue(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(ue.isFunction(t)?function(e){ue(this).wrapInner(t.call(this,e))}:function(){var e=ue(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ue.isFunction(t);return this.each(function(n){ue(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ue.nodeName(this,"body")||ue(this).replaceWith(this.childNodes)}).end()}});var un,pn,hn,fn=/alpha\([^)]*\)/i,dn=/opacity\s*=\s*([^)]*)/,mn=/^(top|right|bottom|left)$/,gn=/^(none|table(?!-c[ea]).+)/,vn=/^margin/,yn=new RegExp("^("+pe+")(.*)$","i"),bn=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),xn=new RegExp("^([+-])=("+pe+")","i"),wn={BODY:"block"},kn={position:"absolute",visibility:"hidden",display:"block"},Tn={letterSpacing:0,fontWeight:400},Cn=["Top","Right","Bottom","Left"],_n=["Webkit","O","Moz","ms"];ue.fn.extend({css:function(t,n){return ue.access(this,function(t,n,i){var o,r,s={},a=0;if(ue.isArray(n)){for(r=pn(t),o=n.length;o>a;a++)s[n[a]]=ue.css(t,n[a],!1,r);return s}return i!==e?ue.style(t,n,i):ue.css(t,n)},t,n,arguments.length>1)},show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){T(this)?ue(this).show():ue(this).hide()})}}),ue.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=hn(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ue.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,n,i,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,a,l=ue.camelCase(n),c=t.style;if(n=ue.cssProps[l]||(ue.cssProps[l]=k(c,l)),a=ue.cssHooks[n]||ue.cssHooks[l],i===e)return a&&"get"in a&&(r=a.get(t,!1,o))!==e?r:c[n];if(s=typeof i,"string"===s&&(r=xn.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(ue.css(t,n)),s="number"),!(null==i||"number"===s&&isNaN(i)||("number"!==s||ue.cssNumber[l]||(i+="px"),ue.support.clearCloneStyle||""!==i||0!==n.indexOf("background")||(c[n]="inherit"),a&&"set"in a&&(i=a.set(t,i,o))===e)))try{c[n]=i}catch(u){}}},css:function(t,n,i,o){var r,s,a,l=ue.camelCase(n);return n=ue.cssProps[l]||(ue.cssProps[l]=k(t.style,l)),a=ue.cssHooks[n]||ue.cssHooks[l],a&&"get"in a&&(s=a.get(t,!0,i)),s===e&&(s=hn(t,n,o)),"normal"===s&&n in Tn&&(s=Tn[n]),""===i||i?(r=parseFloat(s),i===!0||ue.isNumeric(r)?r||0:s):s}}),t.getComputedStyle?(pn=function(e){return t.getComputedStyle(e,null)},hn=function(t,n,i){var o,r,s,a=i||pn(t),l=a?a.getPropertyValue(n)||a[n]:e,c=t.style;return a&&(""!==l||ue.contains(t.ownerDocument,t)||(l=ue.style(t,n)),bn.test(l)&&vn.test(n)&&(o=c.width,r=c.minWidth,s=c.maxWidth,c.minWidth=c.maxWidth=c.width=l,l=a.width,c.width=o,c.minWidth=r,c.maxWidth=s)),l}):Y.documentElement.currentStyle&&(pn=function(t){return t.currentStyle},hn=function(t,n,i){var o,r,s,a=i||pn(t),l=a?a[n]:e,c=t.style;return null==l&&c&&c[n]&&(l=c[n]),bn.test(l)&&!mn.test(n)&&(o=c.left,r=t.runtimeStyle,s=r&&r.left,s&&(r.left=t.currentStyle.left),c.left="fontSize"===n?"1em":l,l=c.pixelLeft+"px",c.left=o,s&&(r.left=s)),""===l?"auto":l}),ue.each(["height","width"],function(t,e){ue.cssHooks[e]={get:function(t,n,i){return n?0===t.offsetWidth&&gn.test(ue.css(t,"display"))?ue.swap(t,kn,function(){return S(t,e,i)}):S(t,e,i):void 0},set:function(t,n,i){var o=i&&pn(t);return _(t,n,i?E(t,e,i,ue.support.boxSizing&&"border-box"===ue.css(t,"boxSizing",!1,o),o):0)}}}),ue.support.opacity||(ue.cssHooks.opacity={get:function(t,e){return dn.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,o=ue.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ue.trim(r.replace(fn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=fn.test(r)?r.replace(fn,o):r+" "+o)}}),ue(function(){ue.support.reliableMarginRight||(ue.cssHooks.marginRight={get:function(t,e){return e?ue.swap(t,{display:"inline-block"},hn,[t,"marginRight"]):void 0}}),!ue.support.pixelPosition&&ue.fn.position&&ue.each(["top","left"],function(t,e){ue.cssHooks[e]={get:function(t,n){return n?(n=hn(t,e),bn.test(n)?ue(t).position()[e]+"px":n):void 0}}})}),ue.expr&&ue.expr.filters&&(ue.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!ue.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||ue.css(t,"display"))},ue.expr.filters.visible=function(t){return!ue.expr.filters.hidden(t)}),ue.each({margin:"",padding:"",border:"Width"},function(t,e){ue.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+Cn[i]+e]=r[i]||r[i-2]||r[0];return o}},vn.test(t)||(ue.cssHooks[t+e].set=_)});var En=/%20/g,Sn=/\[\]$/,Nn=/\r?\n/g,An=/^(?:submit|button|image|reset|file)$/i,Pn=/^(?:input|select|textarea|keygen)/i;ue.fn.extend({serialize:function(){return ue.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ue.prop(this,"elements");return t?ue.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ue(this).is(":disabled")&&Pn.test(this.nodeName)&&!An.test(t)&&(this.checked||!en.test(t))}).map(function(t,e){var n=ue(this).val();return null==n?null:ue.isArray(n)?ue.map(n,function(t){return{name:e.name,value:t.replace(Nn,"\r\n")}}):{name:e.name,value:n.replace(Nn,"\r\n")}}).get()}}),ue.param=function(t,n){var i,o=[],r=function(t,e){e=ue.isFunction(e)?e():null==e?"":e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(n===e&&(n=ue.ajaxSettings&&ue.ajaxSettings.traditional),ue.isArray(t)||t.jquery&&!ue.isPlainObject(t))ue.each(t,function(){r(this.name,this.value)});else for(i in t)P(i,t[i],n,r);return o.join("&").replace(En,"+")},ue.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ue.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ue.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Dn,jn,$n=ue.now(),In=/\?/,Ln=/#.*$/,On=/([?&])_=[^&]*/,Hn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fn=/^(?:GET|HEAD)$/,Wn=/^\/\//,Rn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,qn=ue.fn.load,Bn={},Un={},zn="*/".concat("*");try{jn=G.href}catch(Xn){jn=Y.createElement("a"),jn.href="",jn=jn.href}Dn=Rn.exec(jn.toLowerCase())||[],ue.fn.load=function(t,n,i){if("string"!=typeof t&&qn)return qn.apply(this,arguments);var o,r,s,a=this,l=t.indexOf(" ");return l>=0&&(o=t.slice(l,t.length),t=t.slice(0,l)),ue.isFunction(n)?(i=n,n=e):n&&"object"==typeof n&&(s="POST"),a.length>0&&ue.ajax({url:t,type:s,dataType:"html",data:n}).done(function(t){r=arguments,a.html(o?ue("<div>").append(ue.parseHTML(t)).find(o):t)}).complete(i&&function(t,e){a.each(i,r||[t.responseText,e,t])}),this},ue.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ue.fn[e]=function(t){return this.on(e,t)}}),ue.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jn,type:"GET",isLocal:Mn.test(Dn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ue.parseJSON,"text xml":ue.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$($(t,ue.ajaxSettings),e):$(ue.ajaxSettings,t)},ajaxPrefilter:D(Bn),ajaxTransport:D(Un),ajax:function(t,n){function i(t,n,i,o){var r,p,y,b,w,T=n;2!==x&&(x=2,l&&clearTimeout(l),u=e,a=o||"",k.readyState=t>0?4:0,r=t>=200&&300>t||304===t,i&&(b=I(h,k,i)),b=L(h,b,k,r),r?(h.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(ue.lastModified[s]=w),w=k.getResponseHeader("etag"),w&&(ue.etag[s]=w)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=b.state,p=b.data,y=b.error,r=!y)):(y=T,(t||!T)&&(T="error",0>t&&(t=0))),k.status=t,k.statusText=(n||T)+"",r?m.resolveWith(f,[p,T,k]):m.rejectWith(f,[k,T,y]),k.statusCode(v),v=e,c&&d.trigger(r?"ajaxSuccess":"ajaxError",[k,h,r?p:y]),g.fireWith(f,[k,T]),c&&(d.trigger("ajaxComplete",[k,h]),--ue.active||ue.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var o,r,s,a,l,c,u,p,h=ue.ajaxSetup({},n),f=h.context||h,d=h.context&&(f.nodeType||f.jquery)?ue(f):ue.event,m=ue.Deferred(),g=ue.Callbacks("once memory"),v=h.statusCode||{},y={},b={},x=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!p)for(p={};e=Hn.exec(a);)p[e[1].toLowerCase()]=e[2];e=p[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return x||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)v[e]=[v[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return u&&u.abort(e),i(0,e),this}};if(m.promise(k).complete=g.add,k.success=k.done,k.error=k.fail,h.url=((t||h.url||jn)+"").replace(Ln,"").replace(Wn,Dn[1]+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ue.trim(h.dataType||"*").toLowerCase().match(he)||[""],null==h.crossDomain&&(o=Rn.exec(h.url.toLowerCase()),h.crossDomain=!(!o||o[1]===Dn[1]&&o[2]===Dn[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(Dn[3]||("http:"===Dn[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ue.param(h.data,h.traditional)),j(Bn,h,n,k),2===x)return k;c=h.global,c&&0===ue.active++&&ue.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Fn.test(h.type),s=h.url,h.hasContent||(h.data&&(s=h.url+=(In.test(s)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=On.test(s)?s.replace(On,"$1_="+$n++):s+(In.test(s)?"&":"?")+"_="+$n++)),h.ifModified&&(ue.lastModified[s]&&k.setRequestHeader("If-Modified-Since",ue.lastModified[s]),ue.etag[s]&&k.setRequestHeader("If-None-Match",ue.etag[s])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zn+"; q=0.01":""):h.accepts["*"]);for(r in h.headers)k.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(h.beforeSend.call(f,k,h)===!1||2===x))return k.abort();w="abort";for(r in{success:1,error:1,complete:1})k[r](h[r]);if(u=j(Un,h,n,k)){k.readyState=1,c&&d.trigger("ajaxSend",[k,h]),h.async&&h.timeout>0&&(l=setTimeout(function(){k.abort("timeout")},h.timeout));try{x=1,u.send(y,i)}catch(T){if(!(2>x))throw T;i(-1,T)}}else i(-1,"No Transport");return k},getJSON:function(t,e,n){return ue.get(t,e,n,"json")},getScript:function(t,n){return ue.get(t,e,n,"script")}}),ue.each(["get","post"],function(t,n){ue[n]=function(t,i,o,r){return ue.isFunction(i)&&(r=r||o,o=i,i=e),ue.ajax({url:t,type:n,dataType:r,data:i,success:o})}}),ue.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ue.globalEval(t),t}}}),ue.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ue.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=Y.head||ue("head")[0]||Y.documentElement;return{send:function(e,o){n=Y.createElement("script"),n.async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(e,!0)}}}});var Vn=[],Kn=/(=)\?(?=&|$)|\?\?/;ue.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Vn.pop()||ue.expando+"_"+$n++;return this[t]=!0,t}}),ue.ajaxPrefilter("json jsonp",function(n,i,o){var r,s,a,l=n.jsonp!==!1&&(Kn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(r=n.jsonpCallback=ue.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Kn,"$1"+r):n.jsonp!==!1&&(n.url+=(In.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return a||ue.error(r+" was not called"),a[0]},n.dataTypes[0]="json",s=t[r],t[r]=function(){a=arguments},o.always(function(){t[r]=s,n[r]&&(n.jsonpCallback=i.jsonpCallback,Vn.push(r)),a&&ue.isFunction(s)&&s(a[0]),a=s=e}),"script"):void 0});var Gn,Yn,Qn=0,Jn=t.ActiveXObject&&function(){var t;for(t in Gn)Gn[t](e,!0)};ue.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&O()||H()}:O,Yn=ue.ajaxSettings.xhr(),ue.support.cors=!!Yn&&"withCredentials"in Yn,Yn=ue.support.ajax=!!Yn,Yn&&ue.ajaxTransport(function(n){if(!n.crossDomain||ue.support.cors){var i;return{send:function(o,r){var s,a,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(a in o)l.setRequestHeader(a,o[a])}catch(c){}l.send(n.hasContent&&n.data||null),i=function(t,o){var a,c,u,p;try{if(i&&(o||4===l.readyState))if(i=e,s&&(l.onreadystatechange=ue.noop,Jn&&delete Gn[s]),o)4!==l.readyState&&l.abort();else{p={},a=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{u=l.statusText}catch(h){u=""}a||!n.isLocal||n.crossDomain?1223===a&&(a=204):a=p.text?200:404}}catch(f){o||r(-1,f)}p&&r(a,u,p,c)},n.async?4===l.readyState?setTimeout(i):(s=++Qn,Jn&&(Gn||(Gn={},ue(t).unload(Jn)),Gn[s]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(e,!0)}}}});var Zn,ti,ei=/^(?:toggle|show|hide)$/,ni=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),ii=/queueHooks$/,oi=[q],ri={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=ni.exec(e),r=o&&o[3]||(ue.cssNumber[t]?"":"px"),s=(ue.cssNumber[t]||"px"!==r&&+i)&&ni.exec(ue.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],o=o||[],s=+i||1;do a=a||".5",s/=a,ue.style(n.elem,t,s+r);while(a!==(a=n.cur()/i)&&1!==a&&--l)}return o&&(s=n.start=+s||+i||0,n.unit=r,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};ue.Animation=ue.extend(W,{tweener:function(t,e){ue.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;o>i;i++)n=t[i],ri[n]=ri[n]||[],ri[n].unshift(e)},prefilter:function(t,e){e?oi.unshift(t):oi.push(t)}}),ue.Tween=B,B.prototype={constructor:B,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ue.cssNumber[n]?"":"px")},cur:function(){var t=B.propHooks[this.prop];return t&&t.get?t.get(this):B.propHooks._default.get(this)},run:function(t){var e,n=B.propHooks[this.prop];return this.pos=e=this.options.duration?ue.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ue.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ue.fx.step[t.prop]?ue.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ue.cssProps[t.prop]]||ue.cssHooks[t.prop])?ue.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ue.each(["toggle","show","hide"],function(t,e){var n=ue.fn[e];ue.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(U(e,!0),t,i,o)}}),ue.fn.extend({fadeTo:function(t,e,n,i){return this.filter(T).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=ue.isEmptyObject(t),r=ue.speed(e,n,i),s=function(){var e=W(this,ue.extend({},t),r);(o||ue._data(this,"finish"))&&e.stop(!0)};return s.finish=s,o||r.queue===!1?this.each(s):this.queue(r.queue,s)},stop:function(t,n,i){var o=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",r=ue.timers,s=ue._data(this);if(n)s[n]&&s[n].stop&&o(s[n]);else for(n in s)s[n]&&s[n].stop&&ii.test(n)&&o(s[n]);for(n=r.length;n--;)r[n].elem!==this||null!=t&&r[n].queue!==t||(r[n].anim.stop(i),e=!1,r.splice(n,1));(e||!i)&&ue.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ue._data(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=ue.timers,s=i?i.length:0;for(n.finish=!0,ue.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ue.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ue.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ue.speed=function(t,e,n){var i=t&&"object"==typeof t?ue.extend({},t):{complete:n||!n&&e||ue.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ue.isFunction(e)&&e};return i.duration=ue.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ue.fx.speeds?ue.fx.speeds[i.duration]:ue.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ue.isFunction(i.old)&&i.old.call(this),i.queue&&ue.dequeue(this,i.queue)},i},ue.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ue.timers=[],ue.fx=B.prototype.init,ue.fx.tick=function(){var t,n=ue.timers,i=0;for(Zn=ue.now();i<n.length;i++)t=n[i],t()||n[i]!==t||n.splice(i--,1);n.length||ue.fx.stop(),Zn=e},ue.fx.timer=function(t){t()&&ue.timers.push(t)&&ue.fx.start()},ue.fx.interval=13,ue.fx.start=function(){ti||(ti=setInterval(ue.fx.tick,ue.fx.interval))},ue.fx.stop=function(){clearInterval(ti),ti=null},ue.fx.speeds={slow:600,fast:200,_default:400},ue.fx.step={},ue.expr&&ue.expr.filters&&(ue.expr.filters.animated=function(t){return ue.grep(ue.timers,function(e){return t===e.elem}).length}),ue.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){ue.offset.setOffset(this,t,e)});var n,i,o={top:0,left:0},r=this[0],s=r&&r.ownerDocument;if(s)return n=s.documentElement,ue.contains(n,r)?(typeof r.getBoundingClientRect!==K&&(o=r.getBoundingClientRect()),i=z(s),{top:o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},ue.offset={setOffset:function(t,e,n){var i=ue.css(t,"position");"static"===i&&(t.style.position="relative");var o,r,s=ue(t),a=s.offset(),l=ue.css(t,"top"),c=ue.css(t,"left"),u=("absolute"===i||"fixed"===i)&&ue.inArray("auto",[l,c])>-1,p={},h={};u?(h=s.position(),o=h.top,r=h.left):(o=parseFloat(l)||0,r=parseFloat(c)||0),ue.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(p.top=e.top-a.top+o),null!=e.left&&(p.left=e.left-a.left+r),"using"in e?e.using.call(t,p):s.css(p)}},ue.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ue.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ue.nodeName(t[0],"html")||(n=t.offset()),n.top+=ue.css(t[0],"borderTopWidth",!0),n.left+=ue.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ue.css(i,"marginTop",!0),left:e.left-n.left-ue.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Q;t&&!ue.nodeName(t,"html")&&"static"===ue.css(t,"position");)t=t.offsetParent;return t||Q})}}),ue.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);ue.fn[t]=function(o){return ue.access(this,function(t,o,r){var s=z(t);return r===e?s?n in s?s[n]:s.document.documentElement[o]:t[o]:void(s?s.scrollTo(i?ue(s).scrollLeft():r,i?r:ue(s).scrollTop()):t[o]=r)},t,o,arguments.length,null)}}),ue.each({Height:"height",Width:"width"},function(t,n){ue.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,o){ue.fn[o]=function(o,r){var s=arguments.length&&(i||"boolean"!=typeof o),a=i||(o===!0||r===!0?"margin":"border");return ue.access(this,function(n,i,o){var r;return ue.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+t],r["scroll"+t],n.body["offset"+t],r["offset"+t],r["client"+t])):o===e?ue.css(n,i,a):ue.style(n,i,o,a)},n,s?o:e,s,null)}})}),ue.fn.size=function(){return this.length},ue.fn.andSelf=ue.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ue:(t.jQuery=t.$=ue,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ue}))}(window),function(t,e){function n(e,n){var o,r,s,a=e.nodeName.toLowerCase();return"area"===a?(o=e.parentNode,r=o.name,e.href&&r&&"map"===o.nodeName.toLowerCase()?(s=t("img[usemap=#"+r+"]")[0],!!s&&i(s)):!1):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||n:n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var o=0,r=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(n,i){return"number"==typeof n?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),i&&i.call(e)},n)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(n){if(n!==e)return this.css("zIndex",n);if(this.length)for(var i,o,r=t(this[0]);r.length&&r[0]!==document;){if(i=r.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(o=parseInt(r.css("zIndex"),10),!isNaN(o)&&0!==o))return o;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,i){return!!t.data(e,i[3])},focusable:function(e){return n(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var i=t.attr(e,"tabindex"),o=isNaN(i);
  4. return(o||i>=0)&&n(e,!o)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(n,i){function o(e,n,i,o){return t.each(r,function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var r="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(n){return n===e?a["inner"+i].call(this):this.each(function(){t(this).css(s,o(this,n)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(s,o(this,e,!0,n)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(n){return arguments.length?e.call(this,t.camelCase(n)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,n,i){var o,r=t.ui[e].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(t,e,n){var i,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(i=0;o.length>i;i++)t.options[o[i][0]]&&o[i][1].apply(t.element,n)}},hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",o=!1;return e[i]>0?!0:(e[i]=1,o=e[i]>0,e[i]=0,o)}})}(jQuery),function(t,e){var n=0,i=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var n,i=0;null!=(n=e[i]);i++)try{t(n).triggerHandler("remove")}catch(r){}o(e)},t.widget=function(n,i,o){var r,s,a,l,c={},u=n.split(".")[0];n=n.split(".")[1],r=u+"-"+n,o||(o=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[u]=t[u]||{},s=t[u][n],a=t[u][n]=function(t,n){return this._createWidget?(arguments.length&&this._createWidget(t,n),e):new a(t,n)},t.extend(a,s,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),l=new i,l.options=t.widget.extend({},l.options),t.each(o,function(n,o){return t.isFunction(o)?(c[n]=function(){var t=function(){return i.prototype[n].apply(this,arguments)},e=function(t){return i.prototype[n].apply(this,t)};return function(){var n,i=this._super,r=this._superApply;return this._super=t,this._superApply=e,n=o.apply(this,arguments),this._super=i,this._superApply=r,n}}(),e):(c[n]=o,e)}),a.prototype=t.widget.extend(l,{widgetEventPrefix:s?l.widgetEventPrefix||n:n},c,{constructor:a,namespace:u,widgetName:n,widgetFullName:r}),s?(t.each(s._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete s._childConstructors):i._childConstructors.push(a),t.widget.bridge(n,a)},t.widget.extend=function(n){for(var o,r,s=i.call(arguments,1),a=0,l=s.length;l>a;a++)for(o in s[a])r=s[a][o],s[a].hasOwnProperty(o)&&r!==e&&(n[o]=t.isPlainObject(r)?t.isPlainObject(n[o])?t.widget.extend({},n[o],r):t.widget.extend({},r):r);return n},t.widget.bridge=function(n,o){var r=o.prototype.widgetFullName||n;t.fn[n]=function(s){var a="string"==typeof s,l=i.call(arguments,1),c=this;return s=!a&&l.length?t.widget.extend.apply(null,[s].concat(l)):s,this.each(a?function(){var i,o=t.data(this,r);return o?t.isFunction(o[s])&&"_"!==s.charAt(0)?(i=o[s].apply(o,l),i!==o&&i!==e?(c=i&&i.jquery?c.pushStack(i.get()):i,!1):e):t.error("no such method '"+s+"' for "+n+" widget instance"):t.error("cannot call methods on "+n+" prior to initialization; attempted to call method '"+s+"'")}:function(){var e=t.data(this,r);e?e.option(s||{})._init():t.data(this,r,new o(s,this))}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(n,i){var o,r,s,a=n;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof n)if(a={},o=n.split("."),n=o.shift(),o.length){for(r=a[n]=t.widget.extend({},this.options[n]),s=0;o.length-1>s;s++)r[o[s]]=r[o[s]]||{},r=r[o[s]];if(n=o.pop(),1===arguments.length)return r[n]===e?null:r[n];r[n]=i}else{if(1===arguments.length)return this.options[n]===e?null:this.options[n];a[n]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(n,i,o){var r,s=this;"boolean"!=typeof n&&(o=i,i=n,n=!1),o?(i=r=t(i),this.bindings=this.bindings.add(i)):(o=i,i=this.element,r=this.widget()),t.each(o,function(o,a){function l(){return n||s.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):e}"string"!=typeof a&&(l.guid=a.guid=a.guid||l.guid||t.guid++);var c=o.match(/^(\w+)\s*(.*)$/),u=c[1]+s.eventNamespace,p=c[2];p?r.delegate(p,u,l):i.bind(u,l)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,i){var o,r,s=this.options[e];if(i=i||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(t.isFunction(s)&&s.apply(this.element[0],[n].concat(i))===!1||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,o,r){"string"==typeof o&&(o={effect:o});var s,a=o?o===!0||"number"==typeof o?n:o.effect||n:e;o=o||{},"number"==typeof o&&(o={duration:o}),s=!t.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&t.effects&&t.effects.effect[a]?i[e](o):a!==e&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){t(this)[e](),r&&r.call(i[0]),n()})}})}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,o=1===n.which,r="string"==typeof this.options.cancel&&n.target.nodeName?t(n.target).closest(this.options.cancel).length:!1;return o&&!r&&this._mouseCapture(n)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=this._mouseStart(n)!==!1,!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function n(t,e,n){return[parseFloat(t[0])*(f.test(t[0])?e/100:1),parseFloat(t[1])*(f.test(t[1])?n/100:1)]}function i(e,n){return parseInt(t.css(e,n),10)||0}function o(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var r,s=Math.max,a=Math.abs,l=Math.round,c=/left|center|right/,u=/top|center|bottom/,p=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,f=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(r!==e)return r;var n,i,o=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=o.children()[0];return t("body").append(o),n=s.offsetWidth,o.css("overflow","scroll"),i=s.offsetWidth,n===i&&(i=o[0].clientWidth),o.remove(),r=n-i},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth,r="scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight;return{width:r?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=t.isWindow(n[0]),o=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:o,offset:n.offset()||{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:i?n.width():n.outerWidth(),height:i?n.height():n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=t.extend({},e);var r,f,m,g,v,y,b=t(e.of),x=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(x),k=(e.collision||"flip").split(" "),T={};return y=o(b),b[0].preventDefault&&(e.at="left top"),f=y.width,m=y.height,g=y.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,n,i=(e[this]||"").split(" ");1===i.length&&(i=c.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=c.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",t=p.exec(i[0]),n=p.exec(i[1]),T[this]=[t?t[0]:0,n?n[0]:0],e[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===e.at[0]?v.left+=f:"center"===e.at[0]&&(v.left+=f/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),r=n(T.at,f,m),v.left+=r[0],v.top+=r[1],this.each(function(){var o,c,u=t(this),p=u.outerWidth(),h=u.outerHeight(),d=i(this,"marginLeft"),y=i(this,"marginTop"),C=p+d+i(this,"marginRight")+w.width,_=h+y+i(this,"marginBottom")+w.height,E=t.extend({},v),S=n(T.my,u.outerWidth(),u.outerHeight());"right"===e.my[0]?E.left-=p:"center"===e.my[0]&&(E.left-=p/2),"bottom"===e.my[1]?E.top-=h:"center"===e.my[1]&&(E.top-=h/2),E.left+=S[0],E.top+=S[1],t.support.offsetFractions||(E.left=l(E.left),E.top=l(E.top)),o={marginLeft:d,marginTop:y},t.each(["left","top"],function(n,i){t.ui.position[k[n]]&&t.ui.position[k[n]][i](E,{targetWidth:f,targetHeight:m,elemWidth:p,elemHeight:h,collisionPosition:o,collisionWidth:C,collisionHeight:_,offset:[r[0]+S[0],r[1]+S[1]],my:e.my,at:e.at,within:x,elem:u})}),e.using&&(c=function(t){var n=g.left-E.left,i=n+f-p,o=g.top-E.top,r=o+m-h,l={target:{element:b,left:g.left,top:g.top,width:f,height:m},element:{element:u,left:E.left,top:E.top,width:p,height:h},horizontal:0>i?"left":n>0?"right":"center",vertical:0>r?"top":o>0?"bottom":"middle"};p>f&&f>a(n+i)&&(l.horizontal="center"),h>m&&m>a(o+r)&&(l.vertical="middle"),l.important=s(a(n),a(i))>s(a(o),a(r))?"horizontal":"vertical",e.using.call(this,t,l)}),u.offset(t.extend(E,{using:c}))})},t.ui.position={fit:{left:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,r=i.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-r-o;e.collisionWidth>r?l>0&&0>=c?(n=t.left+l+e.collisionWidth-r-o,t.left+=l-n):t.left=c>0&&0>=l?o:l>c?o+r-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=s(t.left-a,t.left)},top:function(t,e){var n,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-r-o;e.collisionHeight>r?l>0&&0>=c?(n=t.top+l+e.collisionHeight-r-o,t.top+=l-n):t.top=c>0&&0>=l?o:l>c?o+r-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=s(t.top-a,t.top)}},flip:{left:function(t,e){var n,i,o=e.within,r=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,p=c+e.collisionWidth-s-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];0>u?(n=t.left+h+f+d+e.collisionWidth-s-r,(0>n||a(u)>n)&&(t.left+=h+f+d)):p>0&&(i=t.left-e.collisionPosition.marginLeft+h+f+d-l,(i>0||p>a(i))&&(t.left+=h+f+d))},top:function(t,e){var n,i,o=e.within,r=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,p=c+e.collisionHeight-s-l,h="top"===e.my[1],f=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,d="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>u?(i=t.top+f+d+m+e.collisionHeight-s-r,t.top+f+d+m>u&&(0>i||a(u)>i)&&(t.top+=f+d+m)):p>0&&(n=t.top-e.collisionPosition.marginTop+f+d+m-l,t.top+f+d+m>p&&(n>0||p>a(n))&&(t.top+=f+d+m))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,n,i,o,r,s=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(s?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&t.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"});for(r in i)e.style[r]=i[r];e.appendChild(a),n=s||document.documentElement,n.insertBefore(e,n.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",o=t(a).offset().left,t.support.offsetFractions=o>10&&11>o,e.innerHTML="",n.removeChild(e)}()}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var n=this.options;return this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(t(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(this._trigger("drag",e,i)===!1)return this._mouseUp({}),!1;this.position=i.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",e)!==!1&&n._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,o=this.options;return o.containment?"window"===o.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),n=t(o.containment),i=n[0],void(i&&(e="hidden"!==n.css("overflow"),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n))):void(this.containment=null)},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*i}},_generatePosition:function(e){var n,i,o,r,s=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,c=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(i=this.relative_container.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-s.grid[0]:r+s.grid[0]:r)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n){var i=t(this).data("ui-draggable"),o=i.options,r=t.extend({},n,{item:i.element});i.sortables=[],t(o.connectToSortable).each(function(){var n=t.data(this,"ui-sortable");n&&!n.options.disabled&&(i.sortables.push({instance:n,shouldRevert:n.options.revert}),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n){var i=t(this).data("ui-draggable"),o=t.extend({},n,{item:i.element});t.each(i.sortables,function(){this.instance.isOver?(this.instance.isOver=0,i.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===i.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))})},drag:function(e,n){var i=t(this).data("ui-draggable"),o=this;t.each(i.sortables,function(){var r=!1,s=this;this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,t.each(i.sortables,function(){return this.instance.positionAbs=i.positionAbs,this.instance.helperProportions=i.helperProportions,this.instance.offset.click=i.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(s.instance.element[0],this.instance.element[0])&&(r=!1),r})),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=i.offset.click.top,this.instance.offset.click.left=i.offset.click.left,this.instance.offset.parent.left-=i.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=i.offset.parent.top-this.instance.offset.parent.top,i._trigger("toSortable",e),i.dropped=this.instance.element,i.currentItem=i.element,this.instance.fromOutside=i),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),i._trigger("fromSortable",e),i.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),n=t(this).data("ui-draggable").options;e.css("cursor")&&(n._cursor=e.css("cursor")),e.css("cursor",n.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n){var i=t(n.helper),o=t(this).data("ui-draggable").options;i.css("opacity")&&(o._opacity=i.css("opacity")),i.css("opacity",o.opacity)},stop:function(e,n){var i=t(this).data("ui-draggable").options;i._opacity&&t(n.helper).css("opacity",i._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var n=t(this).data("ui-draggable"),i=n.options,o=!1;n.scrollParent[0]!==document&&"HTML"!==n.scrollParent[0].tagName?(i.axis&&"x"===i.axis||(n.overflowOffset.top+n.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?n.scrollParent[0].scrollTop=o=n.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-n.overflowOffset.top<i.scrollSensitivity&&(n.scrollParent[0].scrollTop=o=n.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(n.overflowOffset.left+n.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?n.scrollParent[0].scrollLeft=o=n.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-n.overflowOffset.left<i.scrollSensitivity&&(n.scrollParent[0].scrollLeft=o=n.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(e.pageY-t(document).scrollTop()<i.scrollSensitivity?o=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity&&(o=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(e.pageX-t(document).scrollLeft()<i.scrollSensitivity?o=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity&&(o=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)
  5. }}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),n=e.options;e.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var n=t(this),i=n.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:n.outerWidth(),height:n.outerHeight(),top:i.top,left:i.left})})},drag:function(e,n){var i,o,r,s,a,l,c,u,p,h,f=t(this).data("ui-draggable"),d=f.options,m=d.snapTolerance,g=n.offset.left,v=g+f.helperProportions.width,y=n.offset.top,b=y+f.helperProportions.height;for(p=f.snapElements.length-1;p>=0;p--)a=f.snapElements[p].left,l=a+f.snapElements[p].width,c=f.snapElements[p].top,u=c+f.snapElements[p].height,a-m>v||g>l+m||c-m>b||y>u+m||!t.contains(f.snapElements[p].item.ownerDocument,f.snapElements[p].item)?(f.snapElements[p].snapping&&f.options.snap.release&&f.options.snap.release.call(f.element,e,t.extend(f._uiHash(),{snapItem:f.snapElements[p].item})),f.snapElements[p].snapping=!1):("inner"!==d.snapMode&&(i=m>=Math.abs(c-b),o=m>=Math.abs(u-y),r=m>=Math.abs(a-v),s=m>=Math.abs(l-g),i&&(n.position.top=f._convertPositionTo("relative",{top:c-f.helperProportions.height,left:0}).top-f.margins.top),o&&(n.position.top=f._convertPositionTo("relative",{top:u,left:0}).top-f.margins.top),r&&(n.position.left=f._convertPositionTo("relative",{top:0,left:a-f.helperProportions.width}).left-f.margins.left),s&&(n.position.left=f._convertPositionTo("relative",{top:0,left:l}).left-f.margins.left)),h=i||o||r||s,"outer"!==d.snapMode&&(i=m>=Math.abs(c-y),o=m>=Math.abs(u-b),r=m>=Math.abs(a-g),s=m>=Math.abs(l-v),i&&(n.position.top=f._convertPositionTo("relative",{top:c,left:0}).top-f.margins.top),o&&(n.position.top=f._convertPositionTo("relative",{top:u-f.helperProportions.height,left:0}).top-f.margins.top),r&&(n.position.left=f._convertPositionTo("relative",{top:0,left:a}).left-f.margins.left),s&&(n.position.left=f._convertPositionTo("relative",{top:0,left:l-f.helperProportions.width}).left-f.margins.left)),!f.snapElements[p].snapping&&(i||o||r||s||h)&&f.options.snap.snap&&f.options.snap.snap.call(f.element,e,t.extend(f._uiHash(),{snapItem:f.snapElements[p].item})),f.snapElements[p].snapping=i||o||r||s||h)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,n=this.data("ui-draggable").options,i=t.makeArray(t(n.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});i.length&&(e=parseInt(t(i[0]).css("zIndex"),10)||0,t(i).each(function(n){t(this).css("zIndex",e+n)}),this.css("zIndex",e+i.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n){var i=t(n.helper),o=t(this).data("ui-draggable").options;i.css("zIndex")&&(o._zIndex=i.css("zIndex")),i.css("zIndex",o.zIndex)},stop:function(e,n){var i=t(this).data("ui-draggable").options;i._zIndex&&t(n.helper).css("zIndex",i._zIndex)}})}(jQuery),function(t){function e(t,e,n){return t>e&&e+n>t}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},t.ui.ddmanager.droppables[n.scope]=t.ui.ddmanager.droppables[n.scope]||[],t.ui.ddmanager.droppables[n.scope].push(this),n.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,n=t.ui.ddmanager.droppables[this.options.scope];n.length>e;e++)n[e]===this&&n.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,n){"accept"===e&&(this.accept=t.isFunction(n)?n:function(t){return t.is(n)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var i=n||t.ui.ddmanager.current,o=!1;return i&&(i.currentItem||i.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&t.ui.intersect(i,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(o=!0,!1):void 0}),o?!1:this.accept.call(this.element[0],i.currentItem||i.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(i)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,n,i){if(!n.offset)return!1;var o,r,s=(t.positionAbs||t.position.absolute).left,a=(t.positionAbs||t.position.absolute).top,l=s+t.helperProportions.width,c=a+t.helperProportions.height,u=n.offset.left,p=n.offset.top,h=u+n.proportions().width,f=p+n.proportions().height;switch(i){case"fit":return s>=u&&h>=l&&a>=p&&f>=c;case"intersect":return s+t.helperProportions.width/2>u&&h>l-t.helperProportions.width/2&&a+t.helperProportions.height/2>p&&f>c-t.helperProportions.height/2;case"pointer":return o=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,r=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,e(r,p,n.proportions().height)&&e(o,u,n.proportions().width);case"touch":return(a>=p&&f>=a||c>=p&&f>=c||p>a&&c>f)&&(s>=u&&h>=s||l>=u&&h>=l||u>s&&l>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var i,o,r=t.ui.ddmanager.droppables[e.options.scope]||[],s=n?n.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(i=0;r.length>i;i++)if(!(r[i].options.disabled||e&&!r[i].accept.call(r[i].element[0],e.currentItem||e.element))){for(o=0;a.length>o;o++)if(a[o]===r[i].element[0]){r[i].proportions().height=0;continue t}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],n),r[i].offset=r[i].element.offset(),r[i].proportions({width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight}))}},drop:function(e,n){var i=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(e,n){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,r,s=t.ui.intersect(e,this,this.options.tolerance),a=!s&&this.isover?"isout":s&&!this.isover?"isover":null;a&&(this.options.greedy&&(o=this.options.scope,r=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===o}),r.length&&(i=t.data(r[0],"ui-droppable"),i.greedyChild="isover"===a)),i&&"isover"===a&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,n),i&&"isout"===a&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}}}(jQuery),function(t){function e(t,e,n){return t>e&&e+n>t}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||n(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,n){"disabled"===e?(this.options[e]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,n){var i=null,o=!1,r=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,r.widgetName+"-item")===r?(i=t(this),!1):void 0}),t.data(e.target,r.widgetName+"-item")===r&&(i=t(e.target)),i?!this.options.handle||n||(t(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(o=!0)}),o)?(this.currentItem=i,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,n,i){var o,r,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",s.cursor),this.storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(r)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,i,o,r,s=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<s.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+s.scrollSpeed:e.pageY-this.overflowOffset.top<s.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-s.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<s.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+s.scrollSpeed:e.pageX-this.overflowOffset.left<s.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-s.scrollSpeed)):(e.pageY-t(document).scrollTop()<s.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<s.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+s.scrollSpeed)),e.pageX-t(document).scrollLeft()<s.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<s.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+s.scrollSpeed))),a!==!1&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=this.items[n],o=i.item[0],r=this._intersectsWithPointer(i),r&&i.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],o):!0)){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,o=this.placeholder.offset(),r=this.options.axis,s={};r&&"x"!==r||(s.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(s.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,r=t.left,s=r+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left,p="x"===this.options.axis||i+c>a&&l>i+c,h="y"===this.options.axis||e+u>r&&s>e+u,f=p&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:e+this.helperProportions.width/2>r&&s>n-this.helperProportions.width/2&&i+this.helperProportions.height/2>a&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var n="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=n&&i,r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return o?this.floating?s&&"right"===s||"down"===r?2:1:r&&("down"===r?2:1):!1},_intersectsWithSides:function(t){var n=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:o&&("down"===o&&n||"up"===o&&!n)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function n(){a.push(this)}var i,o,r,s,a=[],l=[],c=this._connectWith();if(c&&e)for(i=c.length-1;i>=0;i--)for(r=t(c[i]),o=r.length-1;o>=0;o--)s=t.data(r[o],this.widgetFullName),s&&s!==this&&!s.options.disabled&&l.push([t.isFunction(s.options.items)?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=l.length-1;i>=0;i--)l[i][0].each(n);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;e.length>n;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,o,r,s,a,l,c,u=this.items,p=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(o=t(h[n]),i=o.length-1;i>=0;i--)r=t.data(o[i],this.widgetFullName),r&&r!==this&&!r.options.disabled&&(p.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(n=p.length-1;n>=0;n--)for(s=p[n][1],a=p[n][0],i=0,c=a.length;c>i;i++)l=t(a[i]),l.data(this.widgetName+"-item",s),u.push({item:l,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,i,o,r;for(n=this.items.length-1;n>=0;n--)i=this.items[n],i.instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=o.outerWidth(),i.height=o.outerHeight()),r=o.offset(),i.left=r.left,i.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)r=this.containers[n].element.offset(),this.containers[n].containerCache.left=r.left,this.containers[n].containerCache.top=r.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var n,i=e.options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+i+">",e.document[0]).addClass(n||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===i?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)}):"img"===i&&o.attr("src",e.currentItem.attr("src")),n||o.css("visibility","hidden"),o},update:function(t,o){(!n||i.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),i.placeholder.update(e,e.placeholder)},_contactContainers:function(i){var o,r,s,a,l,c,u,p,h,f,d=null,m=null;for(o=this.containers.length-1;o>=0;o--)if(!t.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(d&&t.contains(this.containers[o].element[0],d.element[0]))continue;d=this.containers[o],m=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",i,this._uiHash(this)),this.containers[o].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",i,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(s=1e4,a=null,f=d.floating||n(this.currentItem),l=f?"left":"top",c=f?"width":"height",u=this.positionAbs[l]+this.offset.click[l],r=this.items.length-1;r>=0;r--)t.contains(this.containers[m].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(!f||e(this.positionAbs.top+this.offset.click.top,this.items[r].top,this.items[r].height))&&(p=this.items[r].item.offset()[l],h=!1,Math.abs(p-u)>Math.abs(p+this.items[r][c]-u)&&(h=!0,p+=this.items[r][c]),s>Math.abs(p-u)&&(s=Math.abs(p-u),a=this.items[r],this.direction=h?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;a?this._rearrange(i,a,null,!0):this._rearrange(i,null,this.containers[m].element,!0),this._trigger("change",i,this._uiHash()),this.containers[m]._trigger("change",i,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",i,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||t("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||n.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||n.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===o.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===o.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],n=t(o.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())*i}},_generatePosition:function(e){var n,i,o=this.options,r=e.pageX,s=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),o.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/o.grid[1])*o.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-o.grid[1]:n+o.grid[1]:n,i=this.originalPageX+Math.round((r-this.originalPageX)/o.grid[0])*o.grid[0],r=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-o.grid[0]:i+o.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){function n(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}this.reverting=!1;var i,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(o.push(function(t){this._trigger("remove",t,this._uiHash())}),o.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||o.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(o.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;o.length>i;i++)o[i].call(this,t);this._trigger("stop",t,this._uiHash())
  6. }return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;o.length>i;i++)o[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}})}(jQuery),function(t){t.widget("ui.menu",{version:"1.10.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var n=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var n=t(e.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,o,r,s,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,o=this.previousFilter||"",r=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),r===o?s=!0:r=o+r,a=RegExp("^"+n(r),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(r=String.fromCharCode(e.keyCode),a=RegExp("^"+n(r),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),i.length?(this.focus(e,i),i.length>1?(this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev("a"),o=t("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(o),e.attr("aria-labelledby",i.attr("id"))}),e=i.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var n,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,o,r,s,a;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-n-i,r=this.activeMenu.scrollTop(),s=this.activeMenu.height(),a=e.height(),0>o?this.activeMenu.scrollTop(r+o):o+a>s&&this.activeMenu.scrollTop(r+o-s+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(n,i)},nextPage:function(e){var n,i,o;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),0>n.offset().top-i-o}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,i,o;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+o>0}),this.focus(e,n)):this.focus(e,this.activeMenu.children(".ui-menu-item").first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)}})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(){var e=n(this),s=r.settings;return isNaN(e.datetime)||(0==s.cutoff||o(e.datetime)<s.cutoff)&&t(this).text(i(e.datetime)),this}function n(e){if(e=t(e),!e.data("timeago")){e.data("timeago",{datetime:r.datetime(e)});var n=t.trim(e.text());r.settings.localeTitle?e.attr("title",e.data("timeago").datetime.toLocaleString()):!(n.length>0)||r.isTime(e)&&e.attr("title")||e.attr("title",n)}return e.data("timeago")}function i(t){return r.inWords(o(t))}function o(t){return(new Date).getTime()-t.getTime()}t.timeago=function(e){return i(e instanceof Date?e:"string"==typeof e?t.timeago.parse(e):"number"==typeof e?new Date(e):t.timeago.datetime(e))};var r=t.timeago;t.extend(t.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(e){function n(n,o){var r=t.isFunction(n)?n(o,e):n,s=i.numbers&&i.numbers[o]||o;return r.replace(/%d/i,s)}var i=this.settings.strings,o=i.prefixAgo,r=i.suffixAgo;this.settings.allowFuture&&0>e&&(o=i.prefixFromNow,r=i.suffixFromNow);var s=Math.abs(e)/1e3,a=s/60,l=a/60,c=l/24,u=c/365,p=45>s&&n(i.seconds,Math.round(s))||90>s&&n(i.minute,1)||45>a&&n(i.minutes,Math.round(a))||90>a&&n(i.hour,1)||24>l&&n(i.hours,Math.round(l))||42>l&&n(i.day,1)||30>c&&n(i.days,Math.round(c))||45>c&&n(i.month,1)||365>c&&n(i.months,Math.round(c/30))||1.5>u&&n(i.year,1)||n(i.years,Math.round(u)),h=i.wordSeparator||"";return void 0===i.wordSeparator&&(h=" "),t.trim([o,p,r].join(h))},parse:function(e){var n=t.trim(e);return n=n.replace(/\.\d+/,""),n=n.replace(/-/,"/").replace(/-/,"/"),n=n.replace(/T/," ").replace(/Z/," UTC"),n=n.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(n)},datetime:function(e){var n=t(e).attr(r.isTime(e)?"datetime":"title");return r.parse(n)},isTime:function(e){return"time"===t(e).get(0).tagName.toLowerCase()}});var s={init:function(){var n=t.proxy(e,this);n();var i=r.settings;i.refreshMillis>0&&setInterval(n,i.refreshMillis)},update:function(n){t(this).data("timeago",{datetime:r.parse(n)}),e.apply(this)},updateFromDOM:function(){t(this).data("timeago",{datetime:r.parse(t(this).attr(r.isTime(this)?"datetime":"title"))}),e.apply(this)}};t.fn.timeago=function(t,e){var n=t?s[t]:s.init;if(!n)throw new Error("Unknown function name '"+t+"' for timeago");return this.each(function(){n.call(this,e)}),this},document.createElement("abbr"),document.createElement("time")}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(t){function e(e){var n=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).ajaxSubmit(n))}function n(e){var n=e.target,i=t(n);if(!i.is("[type=submit],[type=image]")){var o=i.closest("[type=submit]");if(0===o.length)return;n=o[0]}var r=this;if(r.clk=n,"image"==n.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=i.offset();r.clk_x=e.pageX-s.left,r.clk_y=e.pageY-s.top}else r.clk_x=e.pageX-n.offsetLeft,r.clk_y=e.pageY-n.offsetTop;setTimeout(function(){r.clk=r.clk_x=r.clk_y=null},100)}function i(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var o={};o.fileapi=void 0!==t("<input type='file'/>").get(0).files,o.formdata=void 0!==window.FormData;var r=!!t.fn.prop;t.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e){function n(n){var i,o,r=t.param(n,e.traditional).split("&"),s=r.length,a=[];for(i=0;s>i;i++)r[i]=r[i].replace(/\+/g," "),o=r[i].split("="),a.push([decodeURIComponent(o[0]),decodeURIComponent(o[1])]);return a}function s(i){for(var o=new FormData,r=0;r<i.length;r++)o.append(i[r].name,i[r].value);if(e.extraData){var s=n(e.extraData);for(r=0;r<s.length;r++)s[r]&&o.append(s[r][0],s[r][1])}e.data=null;var a=t.extend(!0,{},t.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});e.uploadProgress&&(a.xhr=function(){var n=t.ajaxSettings.xhr();return n.upload&&n.upload.addEventListener("progress",function(t){var n=0,i=t.loaded||t.position,o=t.total;t.lengthComputable&&(n=Math.ceil(i/o*100)),e.uploadProgress(t,i,o,n)},!1),n}),a.data=null;var c=a.beforeSend;return a.beforeSend=function(t,n){n.data=e.formData?e.formData:o,c&&c.call(this,t,n)},t.ajax(a)}function a(n){function o(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(n){i("cannot get iframe.contentWindow document: "+n)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(n){i("cannot get iframe.contentDocument: "+n),e=t.document}return e}function s(){function e(){try{var t=o(v).readyState;i("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(n){i("Server abort: ",n," (",n.name,")"),a(E),k&&clearTimeout(k),k=void 0}}var n=p.attr2("target"),r=p.attr2("action"),s="multipart/form-data",c=p.attr("enctype")||p.attr("encoding")||s;T.setAttribute("target",d),(!l||/post/i.test(l))&&T.setAttribute("method","POST"),r!=h.url&&T.setAttribute("action",h.url),h.skipEncodingOverride||l&&!/post/i.test(l)||p.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(k=setTimeout(function(){w=!0,a(_)},h.timeout));var u=[];try{if(h.extraData)for(var f in h.extraData)h.extraData.hasOwnProperty(f)&&u.push(t.isPlainObject(h.extraData[f])&&h.extraData[f].hasOwnProperty("name")&&h.extraData[f].hasOwnProperty("value")?t('<input type="hidden" name="'+h.extraData[f].name+'">').val(h.extraData[f].value).appendTo(T)[0]:t('<input type="hidden" name="'+f+'">').val(h.extraData[f]).appendTo(T)[0]);h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",a):v.addEventListener("load",a,!1),setTimeout(e,15);try{T.submit()}catch(m){var y=document.createElement("form").submit;y.apply(T)}}finally{T.setAttribute("action",r),T.setAttribute("enctype",c),n?T.setAttribute("target",n):p.removeAttr("target"),t(u).remove()}}function a(e){if(!y.aborted&&!D){if(P=o(v),P||(i("cannot access response document"),e=E),e===_&&y)return y.abort("timeout"),void C.reject(y,"timeout");if(e==E&&y)return y.abort("server abort"),void C.reject(y,"error","server abort");if(P&&P.location.href!=h.iframeSrc||w){v.detachEvent?v.detachEvent("onload",a):v.removeEventListener("load",a,!1);var n,r="success";try{if(w)throw"timeout";var s="xml"==h.dataType||P.XMLDocument||t.isXMLDoc(P);if(i("isXml="+s),!s&&window.opera&&(null===P.body||!P.body.innerHTML)&&--j)return i("requeing onLoad callback, DOM not available"),void setTimeout(a,250);var l=P.body?P.body:P.documentElement;y.responseText=l?l.innerHTML:null,y.responseXML=P.XMLDocument?P.XMLDocument:P,s&&(h.dataType="xml"),y.getResponseHeader=function(t){var e={"content-type":h.dataType};return e[t.toLowerCase()]},l&&(y.status=Number(l.getAttribute("status"))||y.status,y.statusText=l.getAttribute("statusText")||y.statusText);var c=(h.dataType||"").toLowerCase(),u=/(json|script|text)/.test(c);if(u||h.textarea){var p=P.getElementsByTagName("textarea")[0];if(p)y.responseText=p.value,y.status=Number(p.getAttribute("status"))||y.status,y.statusText=p.getAttribute("statusText")||y.statusText;else if(u){var d=P.getElementsByTagName("pre")[0],m=P.getElementsByTagName("body")[0];d?y.responseText=d.textContent?d.textContent:d.innerText:m&&(y.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==c&&!y.responseXML&&y.responseText&&(y.responseXML=$(y.responseText));try{A=L(y,c,h)}catch(b){r="parsererror",y.error=n=b||r}}catch(b){i("error caught: ",b),r="error",y.error=n=b||r}y.aborted&&(i("upload aborted"),r=null),y.status&&(r=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===r?(h.success&&h.success.call(h.context,A,"success",y),C.resolve(y.responseText,"success",y),f&&t.event.trigger("ajaxSuccess",[y,h])):r&&(void 0===n&&(n=y.statusText),h.error&&h.error.call(h.context,y,r,n),C.reject(y,"error",n),f&&t.event.trigger("ajaxError",[y,h,n])),f&&t.event.trigger("ajaxComplete",[y,h]),f&&!--t.active&&t.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,y,r),D=!0,h.timeout&&clearTimeout(k),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),y.responseXML=null},100)}}}var c,u,h,f,d,g,v,y,b,x,w,k,T=p[0],C=t.Deferred();if(C.abort=function(t){y.abort(t)},n)for(u=0;u<m.length;u++)c=t(m[u]),r?c.prop("disabled",!1):c.removeAttr("disabled");if(h=t.extend(!0,{},t.ajaxSettings,e),h.context=h.context||h,d="jqFormIO"+(new Date).getTime(),h.iframeTarget?(g=t(h.iframeTarget),x=g.attr2("name"),x?d=x:g.attr2("name",d)):(g=t('<iframe name="'+d+'" src="'+h.iframeSrc+'" />'),g.css({position:"absolute",top:"-1000px",left:"-1000px"})),v=g[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var n="timeout"===e?"timeout":"aborted";i("aborting upload... "+n),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(o){}g.attr("src",h.iframeSrc),y.error=n,h.error&&h.error.call(h.context,y,n,e),f&&t.event.trigger("ajaxError",[y,h,n]),h.complete&&h.complete.call(h.context,y,n)}},f=h.global,f&&0===t.active++&&t.event.trigger("ajaxStart"),f&&t.event.trigger("ajaxSend",[y,h]),h.beforeSend&&h.beforeSend.call(h.context,y,h)===!1)return h.global&&t.active--,C.reject(),C;if(y.aborted)return C.reject(),C;b=T.clk,b&&(x=b.name,x&&!b.disabled&&(h.extraData=h.extraData||{},h.extraData[x]=b.value,"image"==b.type&&(h.extraData[x+".x"]=T.clk_x,h.extraData[x+".y"]=T.clk_y)));var _=1,E=2,S=t("meta[name=csrf-token]").attr("content"),N=t("meta[name=csrf-param]").attr("content");N&&S&&(h.extraData=h.extraData||{},h.extraData[N]=S),h.forceSync?s():setTimeout(s,10);var A,P,D,j=50,$=t.parseXML||function(t,e){return window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},I=t.parseJSON||function(t){return window.eval("("+t+")")},L=function(e,n,i){var o=e.getResponseHeader("content-type")||"",r="xml"===n||!n&&o.indexOf("xml")>=0,s=r?e.responseXML:e.responseText;return r&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),i&&i.dataFilter&&(s=i.dataFilter(s,n)),"string"==typeof s&&("json"===n||!n&&o.indexOf("json")>=0?s=I(s):("script"===n||!n&&o.indexOf("javascript")>=0)&&t.globalEval(s)),s};return C}if(!this.length)return i("ajaxSubmit: skipping submit process - no element selected"),this;var l,c,u,p=this;"function"==typeof e?e={success:e}:void 0===e&&(e={}),l=e.type||this.attr2("method"),c=e.url||this.attr2("action"),u="string"==typeof c?t.trim(c):"",u=u||window.location.href||"",u&&(u=(u.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:u,success:t.ajaxSettings.success,type:l||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var h={};if(this.trigger("form-pre-serialize",[this,e,h]),h.veto)return i("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&e.beforeSerialize(this,e)===!1)return i("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var f=e.traditional;void 0===f&&(f=t.ajaxSettings.traditional);var d,m=[],g=this.formToArray(e.semantic,m);if(e.data&&(e.extraData=e.data,d=t.param(e.data,f)),e.beforeSubmit&&e.beforeSubmit(g,this,e)===!1)return i("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[g,this,e,h]),h.veto)return i("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var v=t.param(g,f);d&&(v=v?v+"&"+d:d),"GET"==e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+v,e.data=null):e.data=v;var y=[];if(e.resetForm&&y.push(function(){p.resetForm()}),e.clearForm&&y.push(function(){p.clearForm(e.includeHidden)}),!e.dataType&&e.target){var b=e.success||function(){};y.push(function(n){var i=e.replaceTarget?"replaceWith":"html";t(e.target)[i](n).each(b,arguments)})}else e.success&&y.push(e.success);if(e.success=function(t,n,i){for(var o=e.context||this,r=0,s=y.length;s>r;r++)y[r].apply(o,[t,n,i||p,p])},e.error){var x=e.error;e.error=function(t,n,i){var o=e.context||this;x.apply(o,[t,n,i,p])}}if(e.complete){var w=e.complete;e.complete=function(t,n){var i=e.context||this;w.apply(i,[t,n,p])}}var k=t("input[type=file]:enabled",this).filter(function(){return""!==t(this).val()}),T=k.length>0,C="multipart/form-data",_=p.attr("enctype")==C||p.attr("encoding")==C,E=o.fileapi&&o.formdata;i("fileAPI :"+E);var S,N=(T||_)&&!E;e.iframe!==!1&&(e.iframe||N)?e.closeKeepAlive?t.get(e.closeKeepAlive,function(){S=a(g)}):S=a(g):S=(T||_)&&E?s(g):t.ajax(e),p.removeData("jqxhr").data("jqxhr",S);for(var A=0;A<m.length;A++)m[A]=null;return this.trigger("form-submit-notify",[this,e]),this},t.fn.ajaxForm=function(o){if(o=o||{},o.delegation=o.delegation&&t.isFunction(t.fn.on),!o.delegation&&0===this.length){var r={s:this.selector,c:this.context};return!t.isReady&&r.s?(i("DOM not ready, queuing ajaxForm"),t(function(){t(r.s,r.c).ajaxForm(o)}),this):(i("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return o.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("click.form-plugin",this.selector,n).on("submit.form-plugin",this.selector,o,e).on("click.form-plugin",this.selector,o,n),this):this.ajaxFormUnbind().bind("submit.form-plugin",o,e).bind("click.form-plugin",o,n)},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,n){var i=[];if(0===this.length)return i;var r,s=this[0],a=this.attr("id"),l=e?s.getElementsByTagName("*"):s.elements;if(l&&!/MSIE 8/.test(navigator.userAgent)&&(l=t(l).get()),a&&(r=t(":input[form="+a+"]").get(),r.length&&(l=(l||[]).concat(r))),!l||!l.length)return i;var c,u,p,h,f,d,m;for(c=0,d=l.length;d>c;c++)if(f=l[c],p=f.name,p&&!f.disabled)if(e&&s.clk&&"image"==f.type)s.clk==f&&(i.push({name:p,value:t(f).val(),type:f.type}),i.push({name:p+".x",value:s.clk_x},{name:p+".y",value:s.clk_y}));else if(h=t.fieldValue(f,!0),h&&h.constructor==Array)for(n&&n.push(f),u=0,m=h.length;m>u;u++)i.push({name:p,value:h[u]});else if(o.fileapi&&"file"==f.type){n&&n.push(f);var g=f.files;if(g.length)for(u=0;u<g.length;u++)i.push({name:p,value:g[u],type:f.type});else i.push({name:p,value:"",type:f.type})}else null!==h&&"undefined"!=typeof h&&(n&&n.push(f),i.push({name:p,value:h,type:f.type,required:f.required}));if(!e&&s.clk){var v=t(s.clk),y=v[0];p=y.name,p&&!y.disabled&&"image"==y.type&&(i.push({name:p,value:v.val()}),i.push({name:p+".x",value:s.clk_x},{name:p+".y",value:s.clk_y}))}return i},t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var n=[];return this.each(function(){var i=this.name;if(i){var o=t.fieldValue(this,e);if(o&&o.constructor==Array)for(var r=0,s=o.length;s>r;r++)n.push({name:i,value:o[r]});else null!==o&&"undefined"!=typeof o&&n.push({name:this.name,value:o})}}),t.param(n)},t.fn.fieldValue=function(e){for(var n=[],i=0,o=this.length;o>i;i++){var r=this[i],s=t.fieldValue(r,e);null===s||"undefined"==typeof s||s.constructor==Array&&!s.length||(s.constructor==Array?t.merge(n,s):n.push(s))}return n},t.fieldValue=function(e,n){var i=e.name,o=e.type,r=e.tagName.toLowerCase();if(void 0===n&&(n=!0),n&&(!i||e.disabled||"reset"==o||"button"==o||("checkbox"==o||"radio"==o)&&!e.checked||("submit"==o||"image"==o)&&e.form&&e.form.clk!=e||"select"==r&&-1==e.selectedIndex))return null;if("select"==r){var s=e.selectedIndex;if(0>s)return null;for(var a=[],l=e.options,c="select-one"==o,u=c?s+1:l.length,p=c?s:0;u>p;p++){var h=l[p];if(h.selected){var f=h.value;if(f||(f=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),c)return f;a.push(f)}}return a}return t(e).val()},t.fn.clearForm=function(e){return this.each(function(){t("input,select,textarea",this).clearFields(e)})},t.fn.clearFields=t.fn.clearInputs=function(e){var n=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,o=this.tagName.toLowerCase();n.test(i)||"textarea"==o?this.value="":"checkbox"==i||"radio"==i?this.checked=!1:"select"==o?this.selectedIndex=-1:"file"==i?/MSIE/.test(navigator.userAgent)?t(this).replaceWith(t(this).clone(!0)):t(this).val(""):e&&(e===!0&&/hidden/.test(i)||"string"==typeof e&&t(this).is(e))&&(this.value="")})},t.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var n=this.type;if("checkbox"==n||"radio"==n)this.checked=e;else if("option"==this.tagName.toLowerCase()){var i=t(this).parent("select");e&&i[0]&&"select-one"==i[0].type&&i.find("option").selected(!1),this.selected=e}})},t.fn.ajaxSubmit.debug=!1}),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(t){function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]}}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one(t.support.transition.end,function(){n=!0});var o=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e()})}(jQuery),+function(t){var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.prototype.close=function(e){function n(){r.trigger("closed.bs.alert").remove()}var i=t(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=t(o);e&&e.preventDefault(),r.length||(r=i.hasClass("alert")?i:i.parent()),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one(t.support.transition.end,n).emulateTransitionEnd(150):n())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),+function(t){var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i)};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();t+="Text",o.resetText||n.data("resetText",n[i]()),n[i](o[t]||this.options[t]),setTimeout(function(){"loadingText"==t?n.addClass(e).attr(e,e):n.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]'),e=!0;if(t.length){var n=this.$element.find("input");"radio"===n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=function(n){return this.each(function(){var i=t(this),o=i.data("bs.button"),r="object"==typeof n&&n;o||i.data("bs.button",o=new e(this,r)),"toggle"==n?o.toggle():n&&o.setState(n)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),e.preventDefault()})}(jQuery),+function(t){var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var n=this,i=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(e,n){var i=this.$element.find(".item.active"),o=n||i[e](),r=this.interval,s="next"==e?"left":"right",a="next"==e?"first":"last",l=this;
  7. if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[a]()}this.sliding=!0,r&&this.pause();var c=t.Event("slide.bs.carousel",{relatedTarget:o[0],direction:s});if(!o.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(c),c.isDefaultPrevented())return;o.addClass(e),o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one(t.support.transition.end,function(){o.removeClass([e,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(c),c.isDefaultPrevented())return;i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=function(n){return this.each(function(){var i=t(this),o=i.data("bs.carousel"),r=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),s="string"==typeof n?n:r.slide;o||i.data("bs.carousel",o=new e(this,r)),"number"==typeof n?o.to(n):s?o[s]():r.interval&&o.pause().cycle()})},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var n,i=t(this),o=t(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")),r=t.extend({},o.data(),i.data()),s=i.attr("data-slide-to");s&&(r.interval=!1),o.carousel(r),(s=i.attr("data-slide-to"))&&o.data("bs.carousel").to(s),e.preventDefault()}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);e.carousel(e.data())})})}(jQuery),+function(t){var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var i=n.data("bs.collapse");if(i&&i.transitioning)return;n.collapse("hide"),i||n.data("bs.collapse",null)}var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("in")[o]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var s=t.camelCase(["scroll",o].join("-"));this.$element.one(t.support.transition.end,t.proxy(r,this)).emulateTransitionEnd(350)[o](this.$element[0][s])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[n](0).one(t.support.transition.end,t.proxy(i,this)).emulateTransitionEnd(350):i.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=t.fn.collapse;t.fn.collapse=function(n){return this.each(function(){var i=t(this),o=i.data("bs.collapse"),r=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);o||i.data("bs.collapse",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var n,i=t(this),o=i.attr("data-target")||e.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(o),s=r.data("bs.collapse"),a=s?"toggle":i.data(),l=i.attr("data-parent"),c=l&&t(l);s&&s.transitioning||(c&&c.find('[data-toggle=collapse][data-parent="'+l+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(a)})}(jQuery),+function(t){function e(){t(i).remove(),t(o).each(function(e){var i=n(t(this));i.hasClass("open")&&(i.trigger(e=t.Event("hide.bs.dropdown")),e.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function n(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}var i=".dropdown-backdrop",o="[data-toggle=dropdown]",r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var r=n(o),s=r.hasClass("open");if(e(),!s){if("ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e),r.trigger(i=t.Event("show.bs.dropdown")),i.isDefaultPrevented())return;r.toggleClass("open").trigger("shown.bs.dropdown"),o.focus()}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var r=n(i),s=r.hasClass("open");if(!s||s&&27==e.keyCode)return 27==e.which&&r.find(o).focus(),i.click();var a=t("[role=menu] li:not(.divider):visible a",r);if(a.length){var l=a.index(a.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<a.length-1&&l++,~l||(l=0),a.eq(l).focus()}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)})},t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o+", [role=menu]",r.prototype.keydown)}(jQuery),+function(t){var e=function(e,n){this.options=n,this.$element=t(e),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},e.prototype.show=function(e){var n=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var i=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});i?n.$element.find(".modal-dialog").one(t.support.transition.end,function(){n.$element.focus().trigger(o)}).emulateTransitionEnd(300):n.$element.focus().trigger(o)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e).emulateTransitionEnd(150):e()):e&&e()};var n=t.fn.modal;t.fn.modal=function(n,i){return this.each(function(){var o=t(this),r=o.data("bs.modal"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);r||o.data("bs.modal",r=new e(this,s)),"string"==typeof n?r[n](i):s.show&&r.show(i)})},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var n=t(this),i=n.attr("href"),o=t(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),n.data());e.preventDefault(),o.modal(r,this).one("hide",function(){n.is(":visible")&&n.focus()})}),t(document).on("show.bs.modal",".modal",function(){t(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){t(document.body).removeClass("modal-open")})}(jQuery),+function(t){var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i);for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focus",l="hover"==s?"mouseleave":"blur";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show()},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},e.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(e),e.isDefaultPrevented())return;var n=this.tip();this.setContent(),this.options.animation&&n.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,o=/\s?auto?\s?/i,r=o.test(i);r&&(i=i.replace(o,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(i),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var s=this.getPosition(),a=n[0].offsetWidth,l=n[0].offsetHeight;if(r){var c=this.$element.parent(),u=i,p=document.documentElement.scrollTop||document.body.scrollTop,h="body"==this.options.container?window.innerWidth:c.outerWidth(),f="body"==this.options.container?window.innerHeight:c.outerHeight(),d="body"==this.options.container?0:c.offset().left;i="bottom"==i&&s.top+s.height+l-p>f?"top":"top"==i&&s.top-p-l<0?"bottom":"right"==i&&s.right+a>h?"left":"left"==i&&s.left-a<d?"right":i,n.removeClass(u).addClass(i)}var m=this.getCalculatedOffset(i,s,a,l);this.applyPlacement(m,i),this.$element.trigger("shown.bs."+this.type)}},e.prototype.applyPlacement=function(t,e){var n,i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top=t.top+s,t.left=t.left+a,i.offset(t).addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;if("top"==e&&c!=r&&(n=!0,t.top=t.top+r-c),/bottom|top/.test(e)){var u=0;t.left<0&&(u=-2*t.left,t.left=0,i.offset(t),l=i[0].offsetWidth,c=i[0].offsetHeight),this.replaceArrow(u-o+l,l,"left")}else this.replaceArrow(c-r,c,"top");n&&i.offset(t)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(){function e(){"in"!=n.hoverState&&i.detach()}var n=this,i=this.tip(),o=t.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?i.one(t.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this)},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=e?t(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),r="object"==typeof n&&n;o||i.data("bs.tooltip",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),o=i.data("bs.popover"),r="object"==typeof n&&n;o||i.data("bs.popover",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){function e(n,i){var o,r=t.proxy(this.process,this);this.$element=t(t(n).is("body")?window:n),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",r),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||(o=t(n).attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var n=this;this.$body.find(this.selector).map(function(){var i=t(this),o=i.data("target")||i.attr("href"),r=/^#\w/.test(o)&&t(o);return r&&r.length&&[[r[e]().top+(!t.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,i=n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(e>=i)return s!=(t=r.last()[0])&&this.activate(t);for(t=o.length;t--;)s!=r[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parents(".active").removeClass("active");var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")};var n=t.fn.scrollspy;t.fn.scrollspy=function(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),+function(t){var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a")[0],r=t.Event("show.bs.tab",{relatedTarget:o});if(e.trigger(r),!r.isDefaultPrevented()){var s=t(i);this.activate(e.parent("li"),n),this.activate(s,s.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},e.prototype.activate=function(e,n,i){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var r=n.find("> .active"),s=i&&t.support.transition&&r.hasClass("fade");s?r.one(t.support.transition.end,o).emulateTransitionEnd(150):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new e(this)),"string"==typeof n&&o[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(jQuery),+function(t){var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=this.unpin=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=t(document).height(),i=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,s=r.top,a=r.bottom;"object"!=typeof r&&(a=s=r),"function"==typeof s&&(s=r.top()),"function"==typeof a&&(a=r.bottom());var l=null!=this.unpin&&i+this.unpin<=o.top?!1:null!=a&&o.top+this.$element.height()>=n-a?"bottom":null!=s&&s>=i?"top":!1;this.affixed!==l&&(this.unpin&&this.$element.css("top",""),this.affixed=l,this.unpin="bottom"==l?o.top-i:null,this.$element.removeClass(e.RESET).addClass("affix"+(l?"-"+l:"")),"bottom"==l&&this.$element.offset({top:document.body.offsetHeight-a-this.$element.height()}))}};var n=t.fn.affix;t.fn.affix=function(n){return this.each(function(){var i=t(this),o=i.data("bs.affix"),r="object"==typeof n&&n;o||i.data("bs.affix",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),n=e.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.affix(n)})})}(jQuery);var requirejs,require,define;!function(ba){function J(t){return"[object Function]"===N.call(t)}function K(t){return"[object Array]"===N.call(t)}function z(t,e){if(t){var n;for(n=0;n<t.length&&(!t[n]||!e(t[n],n,t));n+=1);}}function O(t,e){if(t){var n;for(n=t.length-1;n>-1&&(!t[n]||!e(t[n],n,t));n-=1);}}function t(t,e){return ha.call(t,e)}function m(e,n){return t(e,n)&&e[n]}function H(e,n){for(var i in e)if(t(e,i)&&n(e[i],i))break}function S(e,n,i,o){return n&&H(n,function(n,r){(i||!t(e,r))&&(o&&"string"!=typeof n?(e[r]||(e[r]={}),S(e[r],n,i,o)):e[r]=n)}),e}function v(t,e){return function(){return e.apply(t,arguments)}}function ca(t){throw t}function da(t){if(!t)return t;var e=ba;return z(t.split("."),function(t){e=e[t]}),e}function B(t,e,n,i){return e=Error(e+"\nhttp://requirejs.org/docs/errors.html#"+t),e.requireType=t,e.requireModules=i,n&&(e.originalError=n),e}function ia(e){function n(t,e,n){var i,o,r,s,a,l,c,u=e&&e.split("/");i=u;var p=_.map,h=p&&p["*"];if(t&&"."===t.charAt(0))if(e){for(i=m(_.pkgs,e)?u=[e]:u.slice(0,u.length-1),e=t=i.concat(t.split("/")),i=0;e[i];i+=1)if(o=e[i],"."===o)e.splice(i,1),i-=1;else if(".."===o){if(1===i&&(".."===e[2]||".."===e[0]))break;i>0&&(e.splice(i-1,2),i-=2)}i=m(_.pkgs,e=t[0]),t=t.join("/"),i&&t===e+"/"+i.main&&(t=e)}else 0===t.indexOf("./")&&(t=t.substring(2));if(n&&p&&(u||h)){for(e=t.split("/"),i=e.length;i>0;i-=1){if(r=e.slice(0,i).join("/"),u)for(o=u.length;o>0;o-=1)if((n=m(p,u.slice(0,o).join("/")))&&(n=m(n,r))){s=n,a=i;break}if(s)break;!l&&h&&m(h,r)&&(l=m(h,r),c=i)}!s&&l&&(s=l,a=c),s&&(e.splice(0,a,s),t=e.join("/"))}return t}function i(t){A&&z(document.getElementsByTagName("script"),function(e){return e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===k.contextName?(e.parentNode.removeChild(e),!0):void 0})}function o(t){var e=m(_.paths,t);return e&&K(e)&&1<e.length?(i(t),e.shift(),k.require.undef(t),k.require([t]),!0):void 0}function r(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function s(t,e,i,o){var s,a,l=null,c=e?e.name:null,u=t,p=!0,h="";return t||(p=!1,t="_@r"+(I+=1)),t=r(t),l=t[0],t=t[1],l&&(l=n(l,c,o),a=m(j,l)),t&&(l?h=a&&a.normalize?a.normalize(t,function(t){return n(t,c,o)}):n(t,c,o):(h=n(t,c,o),t=r(h),l=t[0],h=t[1],i=!0,s=k.nameToUrl(h))),i=!l||a||i?"":"_unnormalized"+(L+=1),{prefix:l,name:h,parentMap:e,unnormalized:!!i,url:s,originalName:u,isDefine:p,id:(l?l+"!"+h:h)+i}}function a(t){var e=t.id,n=m(E,e);return n||(n=E[e]=new k.Module(t)),n}function l(e,n,i){var o=e.id,r=m(E,o);!t(j,o)||r&&!r.defineEmitComplete?(r=a(e),r.error&&"error"===n?i(r.error):r.on(n,i)):"defined"===n&&i(j[o])}function c(t,e){var n=t.requireModules,i=!1;e?e(t):(z(n,function(e){(e=m(E,e))&&(e.error=t,e.events.error&&(i=!0,e.emit("error",t)))}),i||h.onError(t))}function u(){U.length&&(ja.apply(D,[D.length-1,0].concat(U)),U=[])}function p(t){delete E[t],delete N[t]}function f(t,e,n){var i=t.map.id;t.error?t.emit("error",t.error):(e[i]=!0,z(t.depMaps,function(i,o){var r=i.id,s=m(E,r);s&&!t.depMatched[o]&&!n[r]&&(m(e,r)?(t.defineDep(o,j[r]),t.check()):f(s,e,n))}),n[i]=!0)}function d(){var t,e,n,r,s=(n=1e3*_.waitSeconds)&&k.startTime+n<(new Date).getTime(),a=[],l=[],u=!1,p=!0;if(!x){if(x=!0,H(N,function(n){if(t=n.map,e=t.id,n.enabled&&(t.isDefine||l.push(n),!n.error))if(!n.inited&&s)o(e)?u=r=!0:(a.push(e),i(e));else if(!n.inited&&n.fetched&&t.isDefine&&(u=!0,!t.prefix))return p=!1}),s&&a.length)return n=B("timeout","Load timeout for modules: "+a,null,a),n.contextName=k.contextName,c(n);p&&z(l,function(t){f(t,{},{})}),s&&!r||!u||!A&&!ea||C||(C=setTimeout(function(){C=0,d()},50)),x=!1}}function g(e){t(j,e[0])||a(s(e[0],null,!0)).init(e[1],e[2])}function y(t){var t=t.currentTarget||t.srcElement,e=k.onScriptLoad;return t.detachEvent&&!Z?t.detachEvent("onreadystatechange",e):t.removeEventListener("load",e,!1),e=k.onScriptError,(!t.detachEvent||Z)&&t.removeEventListener("error",e,!1),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function b(){var t;for(u();D.length;){if(t=D.shift(),null===t[0])return c(B("mismatch","Mismatched anonymous define() module: "+t[t.length-1]));g(t)}}var x,w,k,T,C,_={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},E={},N={},P={},D=[],j={},$={},I=1,L=1;return T={require:function(t){return t.require?t.require:t.require=k.makeRequire(t.map)},exports:function(t){return t.usingExports=!0,t.map.isDefine?t.exports?t.exports:t.exports=j[t.map.id]={}:void 0},module:function(t){return t.module?t.module:t.module={id:t.map.id,uri:t.map.url,config:function(){var e=m(_.pkgs,t.map.id);return(e?m(_.config,t.map.id+"/"+e.main):m(_.config,t.map.id))||{}},exports:j[t.map.id]}}},w=function(t){this.events=m(P,t.id)||{},this.map=t,this.shim=m(_.shim,t.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},w.prototype={init:function(t,e,n,i){i=i||{},this.inited||(this.factory=e,n?this.on("error",n):this.events.error&&(n=v(this,function(t){this.emit("error",t)})),this.depMaps=t&&t.slice(0),this.errback=n,this.inited=!0,this.ignore=i.ignore,i.enabled||this.enabled?this.enable():this.check())},defineDep:function(t,e){this.depMatched[t]||(this.depMatched[t]=!0,this.depCount-=1,this.depExports[t]=e)},fetch:function(){if(!this.fetched){this.fetched=!0,k.startTime=(new Date).getTime();var t=this.map;if(!this.shim)return t.prefix?this.callPlugin():this.load();k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],v(this,function(){return t.prefix?this.callPlugin():this.load()}))}},load:function(){var t=this.map.url;$[t]||($[t]=!0,k.load(this.map.id,t))},check:function(){if(this.enabled&&!this.enabling){var t,e,n=this.map.id;e=this.depExports;var i=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(J(o)){if(this.events.error&&this.map.isDefine||h.onError!==ca)try{i=k.execCb(n,o,e,i)}catch(r){t=r}else i=k.execCb(n,o,e,i);if(this.map.isDefine&&((e=this.module)&&void 0!==e.exports&&e.exports!==this.exports?i=e.exports:void 0===i&&this.usingExports&&(i=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",c(this.error=t)}else i=o;this.exports=i,this.map.isDefine&&!this.ignore&&(j[n]=i,h.onResourceLoad)&&h.onResourceLoad(k,this.map,this.depMaps),p(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,i=e.id,o=s(e.prefix);this.depMaps.push(o),l(o,"defined",v(this,function(o){var r,u;u=this.map.name;var f=this.map.parentMap?this.map.parentMap.name:null,d=k.makeRequire(e.parentMap,{enableBuildCallback:!0});this.map.unnormalized?(o.normalize&&(u=o.normalize(u,function(t){return n(t,f,!0)})||""),o=s(e.prefix+"!"+u,this.map.parentMap),l(o,"defined",v(this,function(t){this.init([],function(){return t},null,{enabled:!0,ignore:!0})})),(u=m(E,o.id))&&(this.depMaps.push(o),this.events.error&&u.on("error",v(this,function(t){this.emit("error",t)})),u.enable())):(r=v(this,function(t){this.init([],function(){return t},null,{enabled:!0})}),r.error=v(this,function(t){this.inited=!0,this.error=t,t.requireModules=[i],H(E,function(t){0===t.map.id.indexOf(i+"_unnormalized")&&p(t.map.id)}),c(t)}),r.fromText=v(this,function(n,o){var l=e.name,u=s(l),p=Q;o&&(n=o),p&&(Q=!1),a(u),t(_.config,i)&&(_.config[l]=_.config[i]);try{h.exec(n)}catch(f){return c(B("fromtexteval","fromText eval for "+i+" failed: "+f,f,[i]))}p&&(Q=!0),this.depMaps.push(u),k.completeLoad(l),d([l],r)}),o.load(e.name,d,r,_))})),k.enable(o,this),this.pluginMaps[o.id]=o},enable:function(){N[this.map.id]=this,this.enabling=this.enabled=!0,z(this.depMaps,v(this,function(e,n){var i,o;if("string"==typeof e){if(e=s(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[n]=e,i=m(T,e.id))return void(this.depExports[n]=i(this));this.depCount+=1,l(e,"defined",v(this,function(t){this.defineDep(n,t),this.check()})),this.errback&&l(e,"error",v(this,this.errback))}i=e.id,o=E[i],!t(T,i)&&o&&!o.enabled&&k.enable(e,this)})),H(this.pluginMaps,v(this,function(t){var e=m(E,t.id);e&&!e.enabled&&k.enable(t,this)})),this.enabling=!1,this.check()},on:function(t,e){var n=this.events[t];n||(n=this.events[t]=[]),n.push(e)},emit:function(t,e){z(this.events[t],function(t){t(e)}),"error"===t&&delete this.events[t]}},k={config:_,contextName:e,registry:E,defined:j,urlFetched:$,defQueue:D,Module:w,makeModuleMap:s,nextTick:h.nextTick,onError:c,configure:function(t){t.baseUrl&&"/"!==t.baseUrl.charAt(t.baseUrl.length-1)&&(t.baseUrl+="/");var e=_.pkgs,n=_.shim,i={paths:!0,config:!0,map:!0};
  8. H(t,function(t,e){i[e]?"map"===e?(_.map||(_.map={}),S(_[e],t,!0,!0)):S(_[e],t,!0):_[e]=t}),t.shim&&(H(t.shim,function(t,e){K(t)&&(t={deps:t}),!t.exports&&!t.init||t.exportsFn||(t.exportsFn=k.makeShimExports(t)),n[e]=t}),_.shim=n),t.packages&&(z(t.packages,function(t){t="string"==typeof t?{name:t}:t,e[t.name]={name:t.name,location:t.location||t.name,main:(t.main||"main").replace(ka,"").replace(fa,"")}}),_.pkgs=e),H(E,function(t,e){!t.inited&&!t.map.unnormalized&&(t.map=s(e))}),(t.deps||t.callback)&&k.require(t.deps||[],t.callback)},makeShimExports:function(t){return function(){var e;return t.init&&(e=t.init.apply(ba,arguments)),e||t.exports&&da(t.exports)}},makeRequire:function(i,o){function r(n,l,u){var p,f;return o.enableBuildCallback&&l&&J(l)&&(l.__requireJsBuild=!0),"string"==typeof n?J(l)?c(B("requireargs","Invalid require call"),u):i&&t(T,n)?T[n](E[i.id]):h.get?h.get(k,n,i,r):(p=s(n,i,!1,!0),p=p.id,t(j,p)?j[p]:c(B("notloaded",'Module name "'+p+'" has not been loaded yet for context: '+e+(i?"":". Use require([])")))):(b(),k.nextTick(function(){b(),f=a(s(null,i)),f.skipMap=o.skipMap,f.init(n,l,u,{enabled:!0}),d()}),r)}return o=o||{},S(r,{isBrowser:A,toUrl:function(t){var e,o=t.lastIndexOf("."),r=t.split("/")[0];return-1!==o&&("."!==r&&".."!==r||o>1)&&(e=t.substring(o,t.length),t=t.substring(0,o)),k.nameToUrl(n(t,i&&i.id,!0),e,!0)},defined:function(e){return t(j,s(e,i,!1,!0).id)},specified:function(e){return e=s(e,i,!1,!0).id,t(j,e)||t(E,e)}}),i||(r.undef=function(t){u();var e=s(t,i,!0),n=m(E,t);delete j[t],delete $[e.url],delete P[t],n&&(n.events.defined&&(P[t]=n.events),p(t))}),r},enable:function(t){m(E,t.id)&&a(t).enable()},completeLoad:function(e){var n,i,r=m(_.shim,e)||{},s=r.exports;for(u();D.length;){if(i=D.shift(),null===i[0]){if(i[0]=e,n)break;n=!0}else i[0]===e&&(n=!0);g(i)}if(i=m(E,e),!n&&!t(j,e)&&i&&!i.inited){if(_.enforceDefine&&(!s||!da(s)))return o(e)?void 0:c(B("nodefine","No define call for "+e,null,[e]));g([e,r.deps||[],r.exportsFn])}d()},nameToUrl:function(t,e,n){var i,o,r,s,a,l;if(h.jsExtRegExp.test(t))s=t+(e||"");else{for(i=_.paths,o=_.pkgs,s=t.split("/"),a=s.length;a>0;a-=1){if(l=s.slice(0,a).join("/"),r=m(o,l),l=m(i,l)){K(l)&&(l=l[0]),s.splice(0,a,l);break}if(r){t=t===r.name?r.location+"/"+r.main:r.location,s.splice(0,a,t);break}}s=s.join("/"),s+=e||(/\?/.test(s)||n?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":_.baseUrl)+s}return _.urlArgs?s+((-1===s.indexOf("?")?"?":"&")+_.urlArgs):s},load:function(t,e){h.load(k,t,e)},execCb:function(t,e,n,i){return e.apply(i,n)},onScriptLoad:function(t){("load"===t.type||la.test((t.currentTarget||t.srcElement).readyState))&&(R=null,t=y(t),k.completeLoad(t.id))},onScriptError:function(t){var e=y(t);return o(e.id)?void 0:c(B("scripterror","Script error for: "+e.id,t,[e.id]))}},k.require=k.makeRequire(),k}var h,x,y,E,L,F,R,M,s,ga,ma=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,na=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,fa=/\.js$/,ka=/^\.\//;x=Object.prototype;var N=x.toString,ha=x.hasOwnProperty,ja=Array.prototype.splice,A=!("undefined"==typeof window||!navigator||!window.document),ea=!A&&"undefined"!=typeof importScripts,la=A&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Z="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),G={},u={},U=[],Q=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(J(requirejs))return;u=requirejs,requirejs=void 0}"undefined"!=typeof require&&!J(require)&&(u=require,require=void 0),h=requirejs=function(t,e,n,i){var o,r="_";return!K(t)&&"string"!=typeof t&&(o=t,K(e)?(t=e,e=n,n=i):t=[]),o&&o.context&&(r=o.context),(i=m(G,r))||(i=G[r]=h.s.newContext(r)),o&&i.configure(o),i.require(t,e,n)},h.config=function(t){return h(t)},h.nextTick="undefined"!=typeof setTimeout?function(t){setTimeout(t,4)}:function(t){t()},require||(require=h),h.version="2.1.6",h.jsExtRegExp=/^\/|:|\?|\.js$/,h.isBrowser=A,x=h.s={contexts:G,newContext:ia},h({}),z(["toUrl","undef","defined","specified"],function(t){h[t]=function(){var e=G._;return e.require[t].apply(e,arguments)}}),A&&(y=x.head=document.getElementsByTagName("head")[0],E=document.getElementsByTagName("base")[0])&&(y=x.head=E.parentNode),h.onError=ca,h.load=function(t,e,n){var i,o=t&&t.config||{};if(A)return i=o.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),i.type=o.scriptType||"text/javascript",i.charset="utf-8",i.async=!0,i.setAttribute("data-requirecontext",t.contextName),i.setAttribute("data-requiremodule",e),!i.attachEvent||i.attachEvent.toString&&0>i.attachEvent.toString().indexOf("[native code")||Z?(i.addEventListener("load",t.onScriptLoad,!1),i.addEventListener("error",t.onScriptError,!1)):(Q=!0,i.attachEvent("onreadystatechange",t.onScriptLoad)),i.src=n,M=i,E?y.insertBefore(i,E):y.appendChild(i),M=null,i;if(ea)try{importScripts(n),t.completeLoad(e)}catch(r){t.onError(B("importscripts","importScripts failed for "+e+" at "+n,r,[e]))}},A&&O(document.getElementsByTagName("script"),function(t){return y||(y=t.parentNode),(L=t.getAttribute("data-main"))?(s=L,u.baseUrl||(F=s.split("/"),s=F.pop(),ga=F.length?F.join("/")+"/":"./",u.baseUrl=ga),s=s.replace(fa,""),h.jsExtRegExp.test(s)&&(s=L),u.deps=u.deps?u.deps.concat(s):[s],!0):void 0}),define=function(t,e,n){var i,o;"string"!=typeof t&&(n=e,e=t,t=null),K(e)||(n=e,e=null),!e&&J(n)&&(e=[],n.length&&(n.toString().replace(ma,"").replace(na,function(t,n){e.push(n)}),e=(1===n.length?["require"]:["require","exports","module"]).concat(e))),Q&&((i=M)||(R&&"interactive"===R.readyState||O(document.getElementsByTagName("script"),function(t){return"interactive"===t.readyState?R=t:void 0}),i=R),i&&(t||(t=i.getAttribute("data-requiremodule")),o=G[i.getAttribute("data-requirecontext")])),(o?o.defQueue:U).push([t,e,n])},define.amd={jQuery:!0},h.exec=function(b){return eval(b)},h(u)}}(this),window.bootbox=window.bootbox||function t(e,n){function i(t){var e=y[g.locale];return e?e[t]:y.en[t]}function o(t,n,i){t.preventDefault();var o=e.isFunction(i)&&i(t)===!1;o||n.modal("hide")}function r(t){var e,n=0;for(e in t)n++;return n}function s(t,n){var i=0;e.each(t,function(t,e){n(t,e,i++)})}function a(t){var n,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},g,t),t.buttons||(t.buttons={}),t.backdrop=t.backdrop?"static":!1,n=t.buttons,i=r(n),s(n,function(t,o,r){if(e.isFunction(o)&&(o=n[t]={callback:o}),"object"!==e.type(o))throw new Error("button with key "+t+" must be an object");o.label||(o.label=t),o.className||(o.className=2>=i&&r===i-1?"btn-primary":"btn-default")}),t}function l(t,e){var n=t.length,i={};if(1>n||n>2)throw new Error("Invalid argument length");return 2===n||"string"==typeof t[0]?(i[e[0]]=t[0],i[e[1]]=t[1]):i=t[0],i}function c(t,n,i){return e.extend(!0,{},t,l(n,i))}function u(t,e,n){return f(c(h.apply(null,t),e,n),t)}function p(){for(var t={},e=0,n=arguments.length;n>e;e++){var o=arguments[e],r=o.toLowerCase(),s=o.toUpperCase();t[r]={label:i(s)}}return t}function h(){return{buttons:p.apply(null,arguments)}}function f(t,e){var i={};return s(e,function(t,e){i[e]=!0}),s(t.buttons,function(t){if(i[t]===n)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t}var d={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input form-control' autocomplete=off type=text />"}},m=e("body"),g={locale:"en",backdrop:!0,animate:!0,className:null,closeButton:!0,show:!0},v={};v.alert=function(){var t;if(t=u(["ok"],arguments,["message","callback"]),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return e.isFunction(t.callback)?t.callback():!0},v.dialog(t)},v.confirm=function(){var t;if(t=u(["cancel","confirm"],arguments,["message","callback"]),t.buttons.cancel.callback=t.onEscape=function(){return t.callback(!1)},t.buttons.confirm.callback=function(){return t.callback(!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return v.dialog(t)},v.prompt=function(){var t,i,o,r,s,a;if(r=e(d.form),i={buttons:p("cancel","confirm"),value:""},t=f(c(i,arguments,["title","callback"]),["cancel","confirm"]),a=t.show===n?!0:t.show,t.message=r,t.buttons.cancel.callback=t.onEscape=function(){return t.callback(null)},t.buttons.confirm.callback=function(){return t.callback(s.val())},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");return s=e(d.inputs.text),s.val(t.value),r.append(s),r.on("submit",function(t){t.preventDefault(),o.find(".btn-primary").click()}),o=v.dialog(t),o.off("shown.bs.modal"),o.on("shown.bs.modal",function(){s.focus()}),a===!0&&o.modal("show"),o},v.dialog=function(t){t=a(t);var n=e(d.dialog),i=n.find(".modal-body"),r=t.buttons,l="",c={onEscape:t.onEscape};if(s(r,function(t,e){l+="<button data-bb-handler='"+t+"' type='button' class='btn "+e.className+"'>"+e.label+"</button>",c[t]=e.callback}),i.find(".bootbox-body").html(t.message),t.animate===!0&&n.addClass("fade"),t.className&&n.addClass(t.className),t.title&&i.before(d.header),t.closeButton){var u=e(d.closeButton);t.title?n.find(".modal-header").prepend(u):u.css("margin-top","-10px").prependTo(i)}return t.title&&n.find(".modal-title").html(t.title),l.length&&(i.after(d.footer),n.find(".modal-footer").html(l)),n.on("hidden.bs.modal",function(t){t.target===this&&n.remove()}),n.on("shown.bs.modal",function(){n.find(".btn-primary:first").focus()}),n.on("escape.close.bb",function(t){c.onEscape&&o(t,n,c.onEscape)}),n.on("click",".modal-footer button",function(t){var i=e(this).data("bb-handler");o(t,n,c[i])}),n.on("click",".bootbox-close-button",function(t){o(t,n,c.onEscape)}),n.on("keyup",function(t){27===t.which&&n.trigger("escape.close.bb")}),m.append(n),n.modal({backdrop:t.backdrop,keyboard:!1,show:!1}),t.show&&n.modal("show"),n},v.setDefaults=function(t){e.extend(g,t)},v.hideAll=function(){e(".bootbox").modal("hide")};var y={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return v.init=function(n){window.bootbox=t(n||e)},v}(window.jQuery),function(){var t={},e=null,n=null,i=document.title,o=null,r=null,s={},a=window.devicePixelRatio||1,l=16*a,c={width:7,height:9,font:10*a+"px arial",colour:"#ffffff",background:"#F03D25",fallback:!0,crossOrigin:!0,abbreviate:!0},u=function(){var t=navigator.userAgent.toLowerCase();return function(e){return-1!==t.indexOf(e)}}(),p={ie:u("msie"),chrome:u("chrome"),webkit:u("chrome")||u("safari"),safari:u("safari")&&!u("chrome"),mozilla:u("mozilla")&&!u("chrome")&&!u("safari")},h=function(){for(var t=document.getElementsByTagName("link"),e=0,n=t.length;n>e;e++)if((t[e].getAttribute("rel")||"").match(/\bicon\b/))return t[e];return!1},f=function(){for(var t=document.getElementsByTagName("link"),e=document.getElementsByTagName("head")[0],n=0,i=t.length;i>n;n++){var o="undefined"!=typeof t[n];o&&(t[n].getAttribute("rel")||"").match(/\bicon\b/)&&e.removeChild(t[n])}},d=function(){if(!n||!e){var t=h();n=e=t?t.getAttribute("href"):"/favicon.ico"}return e},m=function(){return r||(r=document.createElement("canvas"),r.width=l,r.height=l),r},g=function(t){f();var e=document.createElement("link");e.type="image/x-icon",e.rel="icon",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)},v=function(t,e){if(!m().getContext||p.ie||p.safari||"force"===s.fallback)return y(t);var n=m().getContext("2d"),e=e||"#000000",i=d();o=document.createElement("img"),o.onload=function(){n.clearRect(0,0,l,l),n.drawImage(o,0,0,o.width,o.height,0,0,l,l),(t+"").length>0&&b(n,t,e),x()},!i.match(/^data/)&&s.crossOrigin&&(o.crossOrigin="anonymous"),o.src=i},y=function(t){s.fallback&&(document.title=(t+"").length>0?"("+t+") "+i:i)},b=function(t,e){"number"==typeof e&&e>99&&s.abbreviate&&(e=w(e));var n=(e+"").length-1,i=s.width*a+6*a*n,o=s.height*a,r=l-o,c=l-i-a,u=16*a,h=16*a,f=2*a;t.font=(p.webkit?"bold ":"")+s.font,t.fillStyle=s.background,t.strokeStyle=s.background,t.lineWidth=a,t.beginPath(),t.moveTo(c+f,r),t.quadraticCurveTo(c,r,c,r+f),t.lineTo(c,u-f),t.quadraticCurveTo(c,u,c+f,u),t.lineTo(h-f,u),t.quadraticCurveTo(h,u,h,u-f),t.lineTo(h,r+f),t.quadraticCurveTo(h,r,h-f,r),t.closePath(),t.fill(),t.beginPath(),t.strokeStyle="rgba(0,0,0,0.3)",t.moveTo(c+f/2,u),t.lineTo(h-f/2,u),t.stroke(),t.fillStyle=s.colour,t.textAlign="right",t.textBaseline="top",t.fillText(e,2===a?29:15,p.mozilla?7*a:6*a)},x=function(){m().getContext&&g(m().toDataURL())},w=function(t){for(var e=[["G",1e9],["M",1e6],["k",1e3]],n=0;n<e.length;++n)if(t>=e[n][1]){t=k(t/e[n][1])+e[n][0];break}return t},k=function(t,e){var n=new Number(t);return n.toFixed(e)};t.setOptions=function(t){s={};for(var e in c)s[e]=t.hasOwnProperty(e)?t[e]:c[e];return this},t.setImage=function(t){return e=t,x(),this},t.setBubble=function(t,e){return t=t||"",v(t,e),this},t.reset=function(){g(n)},t.setOptions(c),window.Tinycon=t}();var XRegExp=function(t){function e(t,e,n){var i;if(n)if(t.__proto__)t.__proto__=g.prototype;else for(i in g.prototype)t[i]=g.prototype[i];return t[y]={captureNames:e},t}function n(t){return x.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function i(t,i){if(!g.isRegExp(t))throw new TypeError("Type RegExp expected");var o=x.exec.call(/\/([a-z]*)$/i,String(t))[1];return i=i||{},i.add&&(o=n(o+i.add)),i.remove&&(o=x.replace.call(o,new RegExp("["+i.remove+"]+","g"),"")),t=e(new RegExp(t.source,o),r(t)?t[y].captureNames.slice(0):null,i.addProto)}function o(){return{captureNames:null}}function r(t){return!(!t[y]||!t[y].captureNames)}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e);var n,i=t.length;for(n=0;i>n;++n)if(t[n]===e)return n;return-1}function a(t,e){return j.call(t)==="[object "+e+"]"}function l(t,e,n){return x.test.call(n.indexOf("x")>-1?/^(?:\s+|#.*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,t.slice(e))}function c(t,e){var i;if(n(e)!==e)throw new SyntaxError("Invalid duplicate regex flag "+e);for(t=x.replace.call(t,/^\(\?([\w$]+)\)/,function(t,i){if(x.test.call(/[gy]/,i))throw new SyntaxError("Cannot use flag g or y in mode modifier "+t);return e=n(e+i),""}),i=0;i<e.length;++i)if(!D[e.charAt(i)])throw new SyntaxError("Unknown regex flag "+e.charAt(i));return{pattern:t,flags:e}}function u(t){return t=t||{},a(t,"String")&&(t=g.forEach(t,/[^\s,]+/,function(t){this[t]=!0},{})),t}function p(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");D[t]=!0}function h(t,e,n,i,o){for(var r,s,a=C.length,l=null;a--;)if(s=C[a],(s.scope===i||"all"===s.scope)&&(!s.flag||e.indexOf(s.flag)>-1)&&(r=g.exec(t,s.regex,n,"sticky"))){l={matchLength:r[0].length,output:s.handler.call(o,r,i,e),reparse:s.reparse};break}return l}function f(t){g.cache.flush("patterns"),b.astral=t}function d(t){RegExp.prototype.exec=(t?w:x).exec,RegExp.prototype.test=(t?w:x).test,String.prototype.match=(t?w:x).match,String.prototype.replace=(t?w:x).replace,String.prototype.split=(t?w:x).split,b.natives=t}function m(t){if(null==t)throw new TypeError("Cannot convert null or undefined to object");return t}var g,v,y="xregexp",b={astral:!1,natives:!1},x={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},w={},k={},T={},C=[],_="default",E="class",S={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|[\s\S]/},N=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,A=x.exec.call(/()??/,"")[1]===t,P=RegExp.prototype.sticky!==t,D={g:!0,i:!0,m:!0,y:P},j={}.toString;return g=function(n,o){var r,s,a,l={hasNamedCapture:!1,captureNames:[]},u=_,p="",f=0;if(g.isRegExp(n)){if(o!==t)throw new TypeError("Cannot supply flags when copying a RegExp");return i(n,{addProto:!0})}if(n=n===t?"":String(n),o=o===t?"":String(o),a=n+"***"+o,!T[a]){for(r=c(n,o),n=r.pattern,o=r.flags;f<n.length;){do r=h(n,o,f,u,l),r&&r.reparse&&(n=n.slice(0,f)+r.output+n.slice(f+r.matchLength));while(r&&r.reparse);r?(p+=r.output,f+=r.matchLength||1):(s=g.exec(n,S[u],f,"sticky")[0],p+=s,f+=s.length,"["===s&&u===_?u=E:"]"===s&&u===E&&(u=_))}T[a]={pattern:x.replace.call(p,/\(\?:\)(?=\(\?:\))|^\(\?:\)|\(\?:\)$/g,""),flags:x.replace.call(o,/[^gimy]+/g,""),captures:l.hasNamedCapture?l.captureNames:null}}return a=T[a],e(new RegExp(a.pattern,a.flags),a.captures,!0)},g.prototype=new RegExp,g.version="3.0.0-pre",g.addToken=function(t,e,n){n=n||{};var o,r=n.optionalFlags;if(n.flag&&p(n.flag),r)for(r=x.split.call(r,""),o=0;o<r.length;++o)p(r[o]);C.push({regex:i(t,{add:"g"+(P?"y":"")}),handler:e,scope:n.scope||_,flag:n.flag,reparse:n.reparse}),g.cache.flush("patterns")},g.cache=function(t,e){var n=t+"***"+(e||"");return k[n]||(k[n]=g(t,e))},g.cache.flush=function(t){"patterns"===t?T={}:k={}},g.escape=function(t){return x.replace.call(m(t),/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},g.exec=function(t,e,n,r){var s,a,l="g";return P&&(r||e.sticky&&r!==!1)&&(l+="y"),e[y]=e[y]||o(),a=e[y][l]||(e[y][l]=i(e,{add:l,remove:r===!1?"y":""})),a.lastIndex=n=n||0,s=w.exec.call(a,t),r&&s&&s.index!==n&&(s=null),e.global&&(e.lastIndex=s?a.lastIndex:0),s},g.forEach=function(t,e,n,i){for(var o,r=0,s=-1;o=g.exec(t,e,r);)n.call(i,o,++s,t,e),r=o.index+(o[0].length||1);return i},g.globalize=function(t){return i(t,{add:"g",addProto:!0})},g.install=function(t){t=u(t),!b.astral&&t.astral&&f(!0),!b.natives&&t.natives&&d(!0)},g.isInstalled=function(t){return!!b[t]},g.isRegExp=function(t){return"[object RegExp]"===j.call(t)},g.match=function(t,e,n){var r,s,a=e.global&&"one"!==n||"all"===n,l=(a?"g":"")+(e.sticky?"y":"");return e[y]=e[y]||o(),s=e[y][l||"noGY"]||(e[y][l||"noGY"]=i(e,{add:l,remove:"one"===n?"g":""})),r=x.match.call(m(t),s),e.global&&(e.lastIndex="one"===n&&r?r.index+r[0].length:0),a?r||[]:r&&r[0]},g.matchChain=function(t,e){return function n(t,i){var o,r=e[i].regex?e[i]:{regex:e[i]},s=[],a=function(t){if(r.backref){if(!(t.hasOwnProperty(r.backref)||+r.backref<t.length))throw new ReferenceError("Backreference to undefined group: "+r.backref);s.push(t[r.backref]||"")}else s.push(t[0])};for(o=0;o<t.length;++o)g.forEach(t[o],r.regex,a);return i!==e.length-1&&s.length?n(s,i+1):s}([t],0)},g.replace=function(t,e,n,r){var s,a=g.isRegExp(e),l=e.global&&"one"!==r||"all"===r,c=(l?"g":"")+(e.sticky?"y":""),u=e;return a?(e[y]=e[y]||o(),u=e[y][c||"noGY"]||(e[y][c||"noGY"]=i(e,{add:c,remove:"one"===r?"g":""}))):l&&(u=new RegExp(g.escape(String(e)),"g")),s=w.replace.call(m(t),u,n),a&&e.global&&(e.lastIndex=0),s},g.replaceEach=function(t,e){var n,i;for(n=0;n<e.length;++n)i=e[n],t=g.replace(t,i[0],i[1],i[2]);return t},g.split=function(t,e,n){return w.split.call(m(t),e,n)},g.test=function(t,e,n,i){return!!g.exec(t,e,n,i)},g.uninstall=function(t){t=u(t),b.astral&&t.astral&&f(!1),b.natives&&t.natives&&d(!1)},g.union=function(t,e){var n,i,o,r,s=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g,l=[],c=0,u=function(t,e,o){var r=i[c-n];if(e){if(++c,r)return"(?<"+r+">"}else if(o)return"\\"+(+o+n);return t};if(!a(t,"Array")||!t.length)throw new TypeError("Must provide a nonempty array of patterns to merge");for(r=0;r<t.length;++r)o=t[r],g.isRegExp(o)?(n=c,i=o[y]&&o[y].captureNames||[],l.push(x.replace.call(g(o.source).source,s,u))):l.push(g.escape(o));return g(l.join("|"),e)},w.exec=function(e){var n,o,r,a=this.lastIndex,l=x.exec.apply(this,arguments);if(l){if(!A&&l.length>1&&s(l,"")>-1&&(o=i(this,{remove:"g"}),x.replace.call(String(e).slice(l.index),o,function(){var e,n=arguments.length;for(e=1;n-2>e;++e)arguments[e]===t&&(l[e]=t)})),this[y]&&this[y].captureNames)for(r=1;r<l.length;++r)n=this[y].captureNames[r-1],n&&(l[n]=l[r]);this.global&&!l[0].length&&this.lastIndex>l.index&&(this.lastIndex=l.index)}return this.global||(this.lastIndex=a),l},w.test=function(t){return!!w.exec.call(this,t)},w.match=function(t){var e;if(g.isRegExp(t)){if(t.global)return e=x.match.apply(this,arguments),t.lastIndex=0,e}else t=new RegExp(t);return w.exec.call(t,m(this))},w.replace=function(e,n){var i,o,r,l=g.isRegExp(e);return l?(e[y]&&(o=e[y].captureNames),i=e.lastIndex):e+="",r=a(n,"Function")?x.replace.call(String(this),e,function(){var i,r=arguments;if(o)for(r[0]=new String(r[0]),i=0;i<o.length;++i)o[i]&&(r[0][o[i]]=r[i+1]);return l&&e.global&&(e.lastIndex=r[r.length-2]+r[0].length),n.apply(t,r)}):x.replace.call(null==this?this:String(this),e,function(){var t=arguments;return x.replace.call(String(n),N,function(e,n,i){var r;if(n){if(r=+n,r<=t.length-3)return t[r]||"";if(r=o?s(o,n):-1,0>r)throw new SyntaxError("Backreference to undefined group "+e);return t[r+1]||""}if("$"===i)return"$";if("&"===i||0===+i)return t[0];if("`"===i)return t[t.length-1].slice(0,t[t.length-2]);if("'"===i)return t[t.length-1].slice(t[t.length-2]+t[0].length);if(i=+i,!isNaN(i)){if(i>t.length-3)throw new SyntaxError("Backreference to undefined group "+e);return t[i]||""}throw new SyntaxError("Invalid token "+e)})}),l&&(e.lastIndex=e.global?0:i),r},w.split=function(e,n){if(!g.isRegExp(e))return x.split.apply(this,arguments);var i,o=String(this),r=[],s=e.lastIndex,a=0;return n=(n===t?-1:n)>>>0,g.forEach(o,e,function(t){t.index+t[0].length>a&&(r.push(o.slice(a,t.index)),t.length>1&&t.index<o.length&&Array.prototype.push.apply(r,t.slice(1)),i=t[0].length,a=t.index+i)}),a===o.length?(!x.test.call(e,"")||i)&&r.push(""):r.push(o.slice(a)),e.lastIndex=s,r.length>n?r.slice(0,n):r},v=g.addToken,v(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/,function(t,e){if("B"===t[1]&&e===_)return t[0];throw new SyntaxError("Invalid escape "+t[0])},{scope:"all"}),v(/\[(\^?)]/,function(t){return t[1]?"[\\s\\S]":"\\b\\B"}),v(/\(\?#[^)]*\)/,function(t,e,n){return l(t.input,t.index+t[0].length,n)?"":"(?:)"}),v(/\s+|#.*/,function(t,e,n){return l(t.input,t.index+t[0].length,n)?"":"(?:)"},{flag:"x"}),v(/\./,function(){return"[\\s\\S]"},{flag:"s"}),v(/\\k<([\w$]+)>/,function(t){var e=isNaN(t[1])?s(this.captureNames,t[1])+1:+t[1],n=t.index+t[0].length;if(!e||e>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+t[0]);return"\\"+e+(n===t.input.length||isNaN(t.input.charAt(n))?"":"(?:)")}),v(/\\(\d+)/,function(t,e){if(!(e===_&&/^[1-9]/.test(t[1])&&+t[1]<=this.captureNames.length)&&"0"!==t[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+t[0]);return t[0]},{scope:"all"}),v(/\(\?P?<([\w$]+)>/,function(t){if(!isNaN(t[1]))throw new SyntaxError("Cannot use integer as capture name "+t[0]);if("length"===t[1]||"__proto__"===t[1])throw new SyntaxError("Cannot use reserved word as capture name "+t[0]);if(s(this.captureNames,t[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+t[0]);return this.captureNames.push(t[1]),this.hasNamedCapture=!0,"("}),v(/\((?!\?)/,function(t,e,n){return n.indexOf("n")>-1?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n"}),g}();!function(t){function e(t){return t.replace(/[- _]+/g,"").toLowerCase()}function n(t){for(;t.length<4;)t="0"+t;return t}function i(t){return parseInt(t,16)}function o(t){return parseInt(t,10).toString(16)}function r(t){var e=/^\\[xu](.+)/.exec(t);return e?i(e[1]):t.charCodeAt("\\"===t.charAt(0)?1:0)}function s(e){var i,s="",a=-1;return t.forEach(e,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(t){i=r(t[1]),i>a+1&&(s+="\\u"+n(o(a+1)),i>a+2&&(s+="-\\u"+n(o(i-1)))),a=r(t[2]||t[1])}),65535>a&&(s+="\\u"+n(o(a+1)),65534>a&&(s+="-\\uFFFF")),s}function a(t){var e="b!";return u[t][e]||(u[t][e]=s(u[t].bmp))}function l(t,e){var n=u[t],i="";return n.bmp&&!n.isBmpLast&&(i="["+n.bmp+"]"+(n.astral?"|":"")),n.astral&&(i+=n.astral),n.isBmpLast&&n.bmp&&(i+=(n.astral?"|":"")+"["+n.bmp+"]"),e?"(?:(?!"+i+")(?:[í €-í¯¿][í°€-í¿¿]|[\x00-ï¿¿]))":"(?:"+i+")"}function c(t,e){var n=e?"a!":"a=";return u[t][n]||(u[t][n]=l(t,e))}var u={};t.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(n,i,o){var r="Invalid double negation ",s="Unknown Unicode token ",l="Unicode token missing data ",p="Astral mode required for Unicode token ",h="Astral mode does not support Unicode tokens within character classes",f="P"===n[1]||!!n[2],d=o.indexOf("A")>-1||t.isInstalled("astral"),m=e(n[4]||n[3]),g=u[m];if("P"===n[1]&&n[2])throw new SyntaxError(r+n[0]);if(!u.hasOwnProperty(m))throw new SyntaxError(s+n[0]);if(g.inverseOf){if(m=e(g.inverseOf),!u.hasOwnProperty(m))throw new ReferenceError(l+n[0]+" -> "+g.inverseOf);g=u[m],f=!f}if(!g.bmp&&!d)throw new SyntaxError(p+n[0]);if(d){if("class"===i)throw new SyntaxError(h);return c(m,f)}return"class"===i?f?a(m):g.bmp:(f?"[^":"[")+g.bmp+"]"},{scope:"all",optionalFlags:"A"}),t.addUnicodeData=function(n){var i,o,r="Unicode token requires name",s="Unicode token has no character data ";for(o=0;o<n.length;++o){if(i=n[o],!i.name)throw new Error(r);if(!(i.inverseOf||i.bmp||i.astral))throw new Error(s+i.name);u[e(i.name)]=i,i.alias&&(u[e(i.alias)]=i)}t.cache.flush("patterns")},t.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-Ë‘Ë -ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-Ô§Ô±-Õ–Õ™Õ¡-ևא-תװ-×²Ø -يٮٯٱ-Û“Û•Û¥Û¦Û®Û¯Ûº-ۼۿܐܒ-ܯݍ-ޥޱߊ-ßªß´ßµßºà €-à •à šà ¤à ¨à¡€-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-áššáš -ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-áž³áŸ—áŸœá  -ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-á¿“á¿–-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-â„“â„•â„™-ℝℤΩℨK-ℭℯ-ℹℼ-â„¿â……-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-â·–â·˜-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ã‚Ÿã‚¡-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-êš—êš -ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-êž“êž -Ɦꟸ-ê ê ƒ-ê …ê ‡-ê Šê Œ-ê ¢ê¡€-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ê¥†ê¥ -ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ê©‚ê©„-ê©‹ê© -ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ê«ê« -ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ê¬–ê¬ -ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-ï©­ï©°-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ï¿—ï¿š-ï¿œ",astral:"í ‚[í°€-í°…í°ˆí°Š-í°µí°·í°¸í°¼í°¿-í±•í´€-í´•í´ -í´¹í¶€-í¶·í¶¾í¶¿í¸€í¸-í¸“í¸•-í¸—í¸™-í¸³í¹ -í¹¼í¼€-í¼µí½€-í½•í½ -í½²]|í [í°€-í²]|í €[í°€-í°‹í°-í°¦í°¨-í°ºí°¼í°½í°¿-í±í±-í±í²€-í³ºíº€-íºœíº -í»í¼€-í¼ží¼°-í½€í½‚-í½‰í¾€-í¾í¾ -í¿ƒí¿ˆ-í¿]|í š[í°€-í¸¸]|í „[í°ƒ-í°·í²ƒ-í²¯í³-í³¨í´ƒ-í´¦í¶ƒ-í¶²í·-í·„]|í¡®[í°€-í°]|í¡­[í°€-í¼´í½€-í¿¿]|í ƒ[í°€-í±ˆ]|í [í°€-í°®]|í …[íº€-íºª]|í¡¾[í°€-í¸]|í ›[í¼€-í½„í½í¾“-í¾Ÿ]|í¡©[í°€-í»–í¼€-í¿¿]|í ¬[í°€í°]|[í Œí¡€-í¡¨í¡ª-í¡¬][í°€-í¿¿]|í »[í¸€-í¸ƒí¸…-í¸Ÿí¸¡í¸¢í¸¤í¸§í¸©-í¸²í¸´-í¸·í¸¹í¸»í¹‚í¹‡í¹‰í¹‹í¹-í¹í¹‘í¹’í¹”í¹—í¹™í¹›í¹í¹Ÿí¹¡í¹¢í¹¤í¹§-í¹ªí¹¬-í¹²í¹´-í¹·í¹¹-í¹¼í¹¾íº€-íº‰íº‹-íº›íº¡-íº£íº¥-íº©íº«-íº»]|í µ[í°€-í±”í±–-í²œí²ží²Ÿí²¢í²¥í²¦í²©-í²¬í²®-í²¹í²»í²½-í³ƒí³…-í´…í´‡-í´Ší´-í´”í´–-í´œí´ž-í´¹í´»-í´¾íµ€-íµ„íµ†íµŠ-íµíµ’-íº¥íº¨-í»€í»‚-í»ší»œ-í»ºí»¼-í¼”í¼–-í¼´í¼¶-í½Ží½-í½®í½°-í¾ˆí¾Š-í¾¨í¾ª-í¿‚í¿„-í¿‹]|í ˆ[í°€-í½®]"}])}(XRegExp);var socket,config,app={username:null,uid:null,isFocused:!0,currentRoom:null};!function(){function t(){var t=window.location.pathname,e=t.split("/"),n=e[e.length-1];$("#main-nav li").removeClass("active"),n&&$("#main-nav li a").each(function(){var t=$(this).attr("href");return("sort-posts"==n||"sort-reputation"==n||"search"==n||"latest"==n||"online"==n)&&(n="users"),t&&t.match(n)?($(this.parentNode).addClass("active"),!1):void 0})}function e(t){socket.emit("user.isOnline",t,function(t,e){$("#logged-in-menu #user_label #user-profile-link>i").attr("class","fa fa-circle status "+e.status)})}function n(){$(document).ready(function(){templates.setGlobal("relative_path",RELATIVE_PATH);for(var t in config)templates.setGlobal("config."+t,config[t])})}function i(){$("#header-menu li i[title]").each(function(){$(this).parents("a").tooltip({placement:"bottom",title:$(this).attr("title")})}),$("#search-form").parent().tooltip({placement:"bottom",title:$("#search-button i").attr("title")}),$("#user_dropdown").tooltip({placement:"bottom",title:$("#user_dropdown").attr("title")})}var o=!1;app.loadConfig=function(){$.ajax({url:RELATIVE_PATH+"/api/config",success:function(t){if(config=t,n(),socket)socket.disconnect(),setTimeout(function(){socket.socket.connect()},200);else{var e=5,i=200;socket=io.connect("",{"max reconnection attempts":e,"reconnection delay":i});var o,r=!1;if(socket.on("event:connect",function(t){app.username=t.username,app.uid=t.uid,app.isAdmin=t.isAdmin,templates.setGlobal("loggedIn",0!==parseInt(t.uid,10)),app.showLoginMessage(),socket.emit("meta.updateHeader",{fields:["username","picture","userslug"]},app.updateHeader),$(window).trigger("action:connected")}),socket.on("event:alert",function(t){app.alert(t)}),socket.on("connect",function(){if(r){o.tooltip("destroy"),o.html('<i class="fa fa-check"></i>'),r=!1;var t,e=document.location.pathname.slice(RELATIVE_PATH.length).split("/").slice(1);switch(e[0]){case"user":t="user/"+templates.get("theirid");case"topic":t="topic_"+e[1];break;case"category":t="category_"+e[1];break;case"recent":case"unread":t="recent_posts";break;case"admin":t="admin";break;default:t="global"}app.enterRoom(t,!0),socket.emit("meta.reconnected"),$(window).trigger("action:reconnected"),setTimeout(function(){o.removeClass("active").addClass("hide")},3e3)}socket.emit("meta.updateHeader",{fields:["username","picture","userslug"]},app.updateHeader)}),socket.on("event:disconnect",function(){$(window).trigger("action:disconnected"),socket.socket.connect()}),socket.on("reconnecting",function(t,n){return n==e?(socket.socket.reconnectionAttempts=0,void(socket.socket.reconnectionDelay=i)):(o||(o=$("#reconnect")),r=!0,o.hasClass("active")||o.html('<i class="fa fa-spinner fa-spin"></i>'),o.addClass("active").removeClass("hide"),void o.tooltip({placement:"bottom"}))}),socket.on("event:banned",function(){app.alert({title:"[[global:alert.banned]]",message:"[[global:alert.banned.message]]",type:"warning",timeout:1e3}),setTimeout(app.logout,1e3)}),socket.on("meta.updateHeader",app.updateHeader),app.enterRoom("global"),"development"===config.environment&&console&&console.log){var s=console.log;console.log=function(){s.apply(this,arguments),socket.emit("tools.log",arguments)}}}},async:!1})},app.logout=function(){$.post(RELATIVE_PATH+"/logout",{_csrf:$("#csrf_token").val()},function(){window.location.href=RELATIVE_PATH+"/"})},app.addCommas=function(t){return t.replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},app.alert=function(t){function e(){o.fadeOut(500,function(){$(this).remove()})}function n(t){var n=setTimeout(function(){e()},t);o.attr("timeoutId",n)}var i="alert_button_"+(t.alert_id?t.alert_id:(new Date).getTime()),o=$("#"+i),r=t.title||"";o.length>0?(o.find("strong").html(r),o.find("p").html(t.message),o.attr("class","alert alert-dismissable alert-"+t.type),clearTimeout(o.attr("timeoutId")),n(t.timeout),o.children().fadeOut("100"),translator.translate(o.html(),function(t){o.children().fadeIn("100"),o.html(t)})):(o=$('<div id="'+i+'" class="alert alert-dismissable alert-'+t.type+'"></div>'),o.append($('<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>')).append($("<strong>"+r+"</strong>")).append($("<p>"+t.message+"</p>")),null==t.location&&(t.location="alert_window"),translator.translate(o.html(),function(n){o.html(n),$("#"+t.location).prepend(o.fadeIn("100")),"function"==typeof t.closefn&&o.find("button").on("click",function(){return t.closefn(),e(),!1})}),t.timeout&&n(t.timeout),"function"==typeof t.clickfn&&o.on("click",function(){t.clickfn(),e()
  9. }))},app.removeAlert=function(t){$("#alert_button_"+t).remove()},app.alertSuccess=function(t,e){e||(e=2e3),app.alert({title:"[[global:alert.success]]",message:t,type:"success",timeout:e})},app.alertError=function(t,e){e||(e=2e3),app.alert({title:"[[global:alert.error]]",message:t,type:"danger",timeout:e})},app.enterRoom=function(t,e){if(socket){if(app.currentRoom===t&&!e)return;socket.emit("meta.rooms.enter",{enter:t,leave:app.currentRoom}),app.currentRoom=t}},app.populateOnlineUsers=function(){var t=[];$(".post-row").each(function(){var e=$(this).attr("data-uid");-1===t.indexOf(e)&&t.push(e)}),socket.emit("user.getOnlineUsers",t,function(t,e){$(".username-field").each(function(){var t=$(this),n=t.parents("li").attr("data-uid");n&&e[n]&&translator.translate("[[global:"+e[n].status+"]]",function(i){t.siblings("i").attr("class","fa fa-circle status "+e[n].status).attr("title",i).attr("data-original-title",i)})})})},app.createUserTooltips=function(){$("img[title].teaser-pic,img[title].user-img").each(function(){$(this).tooltip({placement:"top",title:$(this).attr("title")})})},app.createStatusTooltips=function(){$("body").tooltip({selector:".fa-circle.status",placement:"top"})},app.makeNumbersHumanReadable=function(t){t.each(function(){$(this).html(utils.makeNumberHumanReadable($(this).attr("title")))})},app.processPage=function(){app.populateOnlineUsers(),t(),$("span.timeago").timeago(),$(".post-content img").addClass("img-responsive"),app.makeNumbersHumanReadable($(".human-readable-number")),app.createUserTooltips(),app.createStatusTooltips(),setTimeout(function(){window.scrollTo(0,1)},100)},app.showLoginMessage=function(){function t(){app.alert({type:"success",title:"[[global:welcome_back]] "+app.username+"!",message:"[[global:you_have_successfully_logged_in]]",timeout:5e3})}o&&(o=!1,"complete"!==document.readyState?$(document).ready(t):t())},app.addCommasToNumbers=function(){$(".formatted-number").each(function(t,e){$(e).html(app.addCommas($(e).html()))})},app.openChat=function(t,e){return t===app.username?void app.alert({type:"warning",title:"Invalid Chat",message:"You can't chat with yourself!",timeout:5e3}):app.uid?void require(["chat"],function(n){function i(t){n.load(t.attr("UUID")),n.center(t)}n.modalExists(e)?i(n.getModal(e)):n.createModal(t,e,i)}):void app.alert({type:"danger",title:"Not Logged In",message:"Please log in to chat with <strong>"+t+"</strong>",timeout:5e3})},app.scrollToTop=function(){$("body,html").animate({scrollTop:0})},app.scrollToBottom=function(){$("body,html").animate({scrollTop:$("html").height()-100})};var r=0;app.enableInfiniteLoading=function(t){$(window).off("scroll").on("scroll",function(){var e=.1*$(window).height(),n=.9*($(document).height()-$(window).height()),i=$(window).scrollTop();e>i&&r>i?t(-1):i>n&&i>r&&t(1),r=i})};var s={active:!1,interval:void 0,titles:[]};app.alternatingTitle=function(t){"string"==typeof t&&(t.length>0&&!app.isFocused?(s.titles[1]=t,s.interval&&clearInterval(s.interval),s.interval=setInterval(function(){var t=s.titles[1^s.titles.indexOf(window.document.title)];t&&(window.document.title=t)},2e3)):(s.interval&&clearInterval(s.interval),s.titles[0]&&(window.document.title=s.titles[0])))},app.refreshTitle=function(t){if(!t){var e=document.createElement("a");e.href=document.location,t=e.pathname.slice(1)}socket.emit("meta.buildTitle",t,function(t,e,n){s.titles[0]=(n>0?"("+n+") ":"")+e,app.alternatingTitle("")})},app.updateHeader=function(t,n){$("#search-button").off().on("click",function(t){return t.stopPropagation(),$("#search-fields").removeClass("hide").show(),$(this).hide(),$("#search-fields input").focus(),$("#search-form").on("submit",function(){$("#search-fields").hide(),$("#search-button").show()}),$("#search-fields input").on("blur",function(){$("#search-fields").hide(),$("#search-button").show()}),!1});var i=$("#logged-in-menu"),o=n.uid>0,r="1"===(n.config||{}).allowGuestSearching;if(o){$(".nodebb-loggedin").show(),$(".nodebb-loggedout").hide(),$("#logged-out-menu").addClass("hide"),$("#logged-in-menu").removeClass("hide"),$("#search-button").removeClass("hide").show();var s=i.find("#user_label");n.userslug&&s.find("#user-profile-link").attr("href",RELATIVE_PATH+"/user/"+n.userslug),n.picture&&s.find("img").attr("src",n.picture),n.username&&s.find("#user-profile-link>span").html(" "+n.username),$("#logout-link").on("click",app.logout),e(n.uid)}else r?($("#search-button").removeClass("hide").show(),$("#mobile-search-button").removeClass("hide").show()):($("#search-button").addClass("hide").hide(),$("#mobile-search-button").addClass("hide").hide()),$(".nodebb-loggedin").hide(),$(".nodebb-loggedout").show(),$("#logged-out-menu").removeClass("hide"),$("#logged-in-menu").addClass("hide");$("#main-nav a,#user-control-list a,#logged-out-menu li a,#logged-in-menu .visible-xs").off("click").on("click",function(){$(".navbar .navbar-collapse").hasClass("in")&&$(".navbar-header button").click()}),$("#user-control-list .user-status").off("click").on("click",function(t){socket.emit("user.setStatus",$(this).attr("data-status"),function(t,n){return t?app.alertError(t.message):void e(n.uid)}),t.preventDefault()})},$("document").ready(function(){$("#search-form").on("submit",function(){var t=$(this).find("input");return ajaxify.go("search/"+t.val()),t.val(""),!1}),$(window).blur(function(){app.isFocused=!1}),$(window).focus(function(){app.isFocused=!0,app.alternatingTitle("")}),i()}),o=-1!==location.href.indexOf("loggedin"),app.loadConfig(),app.alternatingTitle("")}(),function(t){function e(t,e){function i(){function i(e){for(var i in t)!function(t){function i(e){var i=function(){this.toString=function(){return this.html}};i.prototype.file=t,i.prototype.parse=u,i.prototype.html=String(e),n[t]=new i,o--,0===o&&n.ready()}r.readFile(e+"/"+t+".tpl",function(n,o){n&&e!==s?r.readFile(s+"/"+t+".tpl",function(t,e){i(e)}):i(o)})}(t[i])}var o=t.length,s=__dirname+"/../templates";e?r.exists(e,function(t){var n=t?e:s;i(n)}):i(s)}function s(){$.when($.getJSON(RELATIVE_PATH+"/templates/config.json"),$.getJSON(RELATIVE_PATH+"/api/get_templates_listing")).done(function(t,e){o=t[0],a=e[0],n.ready()})}null===r?s():i()}var n,i,o={},r=null,s=null,a=[],l={};t.exports=n={globals:{}};try{r=require("fs"),s=require("path")}catch(c){}n.force_refresh=function(t){return!!o.force_refresh[t]},n.get_custom_map=function(t){if(o.custom_mapping&&t)for(var e in o.custom_mapping)if(t.match(e))return o.custom_mapping[e];return!1},n.is_available=function(t){return-1!==$.inArray(t,a)},n.ready=function(t){null==t?this.ready_callback?this.ready_callback():this.loaded=!0:1==this.loaded?t():this.ready_callback=t},n.prepare=function(t){var e={};return e.html=t,e.parse=u,e.blocks={},e},n.init=function(t,n){e(t||[],n||!1)},n.render=function(t,e,i){"function"==typeof e&&(i=e,e=!1);var o=t.replace(s.join(__dirname+"/../templates/"),"").replace("."+e.settings["view engine"],"");return n[o]?i(null,n[o].parse(e)):void r.readFile(t,function(t,r){return n[o]=r.toString(),n.prepare(n[o]),i(t,n[o].parse(e))})},n.getTemplateNameFromUrl=function(t){for(var e=t.split("?")[0].split("/"),i=0;i<e.length;++i)if(n.is_available(e[i]))return e[i];return""},n.preload_template=function(t,e){return n[t]?e():void $.get(RELATIVE_PATH+"/templates/"+t+".tpl?v="+Date.now(),function(i){var o=function(){this.toString=function(){return this.html}};o.prototype.parse=u,o.prototype.html=String(i),o.prototype.blocks={},n[t]=new o,e()})},n.load_template=function(t,e){function o(){n[s]&&a&&(a.relative_path="undefined"!=typeof global?nconf.get("relative_path"):RELATIVE_PATH,translator.translate(n[s].parse(a),function(e){$("#content").html(e),$("#content [template-variable]").each(function(t,e){var i=null;switch($(e).attr("template-type")){case"boolean":i="true"===$(e).val()||"1"===$(e).val()?!0:!1;break;case"int":case"integer":i=parseInt($(e).val());break;default:i=$(e).val()}n.set($(e).attr("template-variable"),i)}),t&&t(!0)}))}var r=(document.location||window.location,""===e||"/"===e?"home":e),s=n.get_custom_map(r.split("?")[0]);s||(s=n.getTemplateNameFromUrl(r));var a=null;n[s]?o():n.preload_template(s,function(){o()}),i=$.ajax({url:RELATIVE_PATH+"/api/"+r,cache:!1,success:function(t){return t?(a=t,void o()):void ajaxify.go("404")},error:function(t,e){return $("#content, #footer").stop(!0,!0).removeClass("ajaxifying"),t&&404==t.status?ajaxify.go("404"):t&&403===t.status?ajaxify.go("403"):void("abort"!==e&&app.alertError(t.responseJSON.error))}})},n.cancelRequest=function(){i&&i.abort()},n.flush=function(){l={}},n.get=function(t){return l[t]},n.set=function(t,e){l[t]=e},n.setGlobal=function(t,e){n.globals[t]=e};var u=function(t){function e(t,e,n){var i=new RegExp("{"+t+"}","g");return n.replace(i,e)}function i(t){return new RegExp("<!--[\\s]*BEGIN "+t+"[\\s]*-->[\\s\\S]*?<!--[\\s]*END "+t+"[\\s]*-->","g")}function o(t){return new RegExp("<!--[\\s]*IF "+t+"[\\s]*-->([\\s\\S]*?)<!--[\\s]*ENDIF "+t+"[\\s]*-->","g")}function r(t,e,n){if(r=n.match(t),null!=r){a.blocks&&void 0!==e&&(a.blocks[e]=r[0]);var i=new RegExp("(\r\n)*<!-- BEGIN "+e+" -->(\r\n)*","g"),o=new RegExp("(\r\n)*<!-- END "+e+" -->(\r\n)*","g"),r=r[0].replace(i,"").replace(o,"");return r}}function s(t,e,n){return n.replace(t,e)}var a=this,l=this.html;for(var c in n.globals)n.globals.hasOwnProperty(c)&&(t[c]=t[c]||n.globals[c]);return function u(t,n,a,l){function c(t,e){var n=o(t),i=a.match(n);if(null!==i)for(var r=0,s=i.length;s>r;r++){var l=i[r].split(/<!-- ELSE -->/),c=new RegExp("(<!--[\\s]*IF "+t+"[\\s]*-->)|(<!--[\\s]*ENDIF "+t+"[\\s]*-->)","gi");a=l[1]?e?a.replace(i[r],l[0].replace(c,"")):a.replace(i[r],l[1].replace(c,"")):e?a.replace(i[r],i[r].replace(c,"")):a.replace(i[r],"")}}t&&0!=t.length||(a="");for(var p in t)if(t.hasOwnProperty(p)){if("undefined"==typeof t[p])continue;if(null===t[p])a=e(n+p,"",a);else if(t[p].constructor==Array){c(n+p+".length",t[p].length),c("!"+n+p+".length",!t[p].length),n+=p+".";var h=i(p),f=r(h,n.substring(0,n.length-1),a);if(null==f){n=n.replace(p+".","");continue}var d=t[p].length-1,m=0,g="";do g+=u(t[p][m],n,f,{iterator:m,total:d});while(m++<d);n=n.replace(p+".",""),a=s(h,g,a)}else if(t[p]instanceof Object)a=u(t[p],n+p+".",a);else{var v=n+p,y="string"==typeof t[p]?t[p].replace(/^\s+|\s+$/g,""):t[p];c(v,y),c("!"+v,!y),l&&l.iterator&&(c("@first",0===l.iterator),c("!@first",0!==l.iterator),c("@last",l.iterator===l.total),c("!@last",l.iterator!==l.total)),a=e(v,y,a)}}if(n){var h=new RegExp("{"+n+"[\\s\\S]*?}","g");a=a.replace(h,""),n=""}else a=a.replace(/<!-- ELSE -->/gi,"ENDIF -->").replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi,"").replace(/<!-- ENDIF ([^@]*?)-->/gi,"");return a}(t,"",l)};t.exports.__express=t.exports.render,"undefined"!=typeof window&&(window.templates=t.exports,n.init())}("undefined"==typeof module?{module:{exports:{}}}:module);var ajaxify={};!function(){var t=document.location||window.location,e=t.protocol+"//"+(t.hostname||t.host)+(t.port?":"+t.port:""),n=null,i=[];ajaxify.register_events=function(t){for(var e=0,n=i.length;n>e;e++)socket.removeAllListeners(i[e]);i=t},window.onpopstate=function(t){null!==t&&t.state&&void 0!==t.state.url&&!ajaxify.initialLoad&&ajaxify.go(t.state.url,function(){$(window).trigger("action:popstate",{url:t.state.url})},!0)},ajaxify.currentPage=null,ajaxify.initialLoad=!1,ajaxify.go=function(t,e,n){app.enterRoom("global"),$(window).off("scroll"),$(window).trigger("action:ajaxify.start",{url:t}),$("body").trigger("action:ajaxifying",{url:t}),$("#content").hasClass("ajaxifying")&&templates.cancelRequest(),t=t.replace(/\/$/,""),-1!==t.indexOf(RELATIVE_PATH.slice(1))&&(t=t.slice(RELATIVE_PATH.length));var i=templates.get_custom_map(t.split("?")[0]);0!=i||templates[t]?templates[t]&&(i=t):i=""===t||"/"===t?"home":t.split("/")[0].split("?")[0];var o="";return ajaxify.initialLoad&&(o=window.location.hash?window.location.hash:""),templates.is_available(i)&&!templates.force_refresh(i)?(ajaxify.currentPage=i,window.history&&window.history.pushState&&(window.history[n?"replaceState":"pushState"]({url:t+o},t,RELATIVE_PATH+"/"+t+o),$.ajax(RELATIVE_PATH+"/plugins/fireHook",{type:"PUT",data:{_csrf:$("#csrf_token").val(),hook:"page.load",args:{template:i,url:t,uid:app.uid}}})),translator.load(i),$("#footer, #content").removeClass("hide").addClass("ajaxifying"),templates.flush(),templates.load_template(function(){require(["forum/"+i],function(t){t&&t.init&&t.init()}),"function"==typeof e&&e(),app.processPage();var n=[];require(["vendor/async"],function(e){$("#content [widget-area]").each(function(){n.push($(this).attr("widget-area"))}),e.each(n,function(e,n){var o=$('#content [widget-area="'+e+'"]');socket.emit("widgets.render",{template:i+".tpl",url:t,location:e},function(t,e){o.html(templates.prepare(o.html()).parse({widgets:e})).removeClass("hidden"),e.length||$("body [no-widget-class]").each(function(){var t=$(this);t.removeClass(),t.addClass(t.attr("no-widget-class"))}),n(t)})},function(){$("#content, #footer").stop(!0,!0).removeClass("ajaxifying"),ajaxify.initialLoad=!1,app.refreshTitle(t),$(window).trigger("action:ajaxify.end",{url:t})})})},t),!0):!1},ajaxify.refresh=function(){ajaxify.go(ajaxify.currentPage)},$("document").ready(function(){window.history&&window.history.pushState&&(n=n||document.getElementById("content"),$(document.body).on("click","a",function(t){function n(t){return"javascript:;"===t||t===window.location.href+"#"||"#"===t.slice(-1)}if(!n(this.href)&&""===this.target&&"javascript:"!==this.protocol&&(window.location.pathname.match(/\/(403|404)$/g)||(app.previousUrl=window.location.href),"false"!==$(this).attr("data-ajaxify")&&!t.ctrlKey&&!t.shiftKey&&1===t.which))if(this.host===window.location.host){var i=this.href.replace(e+"/","");ajaxify.go(i)&&t.preventDefault()}else"/outgoing"!==window.location.pathname&&config.useOutgoingLinksPage&&(ajaxify.go("outgoing?url="+encodeURIComponent(this.href)),t.preventDefault())}))})}(),function(t){var e={},n={loaded:{},loading:{},callbacks:{}},i=!1;t.exports=e,e.addTranslation=function(t,e){n.loaded[t]=e},e.getLanguage=function(){return config.defaultLang},e.prepareDOM=function(){if("en_GB"!==config.defaultLang){var t;switch(config.defaultLang){case"cs":t="cz";break;case"zh_TW":t="zh-TW";break;case"zh_CN":t="zh-CN";break;case"pt_BR":t="pt-br";break;default:t=config.defaultLang}$.getScript(RELATIVE_PATH+"/vendor/jquery/timeago/locales/jquery.timeago."+t+".js").fail(function(){$.getScript(RELATIVE_PATH+"/vendor/jquery/timeago/locales/jquery.timeago.en.js")}),e.get("language:dir",function(t){t&&$("html").css("direction",t)})}},e.get=function(t,n){var i=t.split(":"),o=i[0];i=i[1],e.load(o,function(t){return n&&n(t[i]),t[i]})},e.mget=function(t,n){function i(t,n){e.get(t,function(t){n(null,t)})}var o=require("async");o.map(t,i,n)},e.translate=function(t,i){function o(t,e,n,i){if(n){for(var o=1,r=i.length;r>o;o++){var s=i[o].replace("]]","");n=(""+n).replace("%"+o,s)}t=t.replace(e,n)}else{var a=e.split(":");t=t.replace(e,a[a.length-1].replace(/\]+$/,""))}return t}function r(){0===a&&i(t)}var s=t.match(/\[\[.*?\]\]/g),a=0;for(var l in s)if(s.hasOwnProperty(l)){s[l]=""+s[l];var c=s[l].split(/[,][?\s+]/),u=s[l].replace("[[","").replace("]]","").split(":");if(!u[0]||!u[1])continue;var p=u[0];u=(""+u[1]).split(",")[0],n.loaded[p]?t=o(t,s[l],n.loaded[p][u],c):(a++,function(n,i,s,l){e.load(s,function(e){t=o(t,n,e[i],l),a--,r()})}(s[l],u,p,c))}r()},e.load=function(t,e){if(i===!0)return e&&e(n.loaded[t]),n.loaded[t];if(n.loaded[t]&&!n.loading[t])e&&e(n.loaded[t]);else if(n.loading[t])e&&(n.callbacks[t]=n.callbacks[t]||[],n.callbacks[t].push(e));else{var o=(new Date).getTime();n.loading[t]=!0,$.getJSON(RELATIVE_PATH+"/language/"+config.defaultLang+"/"+t+".json?v="+o,function(i){for(n.loaded[t]=i,e&&e(i);n.callbacks[t]&&n.callbacks[t].length;)n.callbacks[t].pop()(i);n.loading[t]=!1})}},e.loadServer=function(){i=!0;var t=require("./utils.js"),e=require("../../src/meta"),o=require("path"),r=require("fs"),s=require("winston"),a=e.config.defaultLang||"en_GB";r.existsSync(o.join(__dirname,"../language",a))||(s.warn("[translator] Language '"+e.config.defaultLang+"' not found. Defaulting to 'en_GB'"),a="en_GB"),t.walk(o.join(__dirname,"../language",a),function(t,e){for(var i in e)e.hasOwnProperty(i)&&(".json"===o.extname(e[i])?n.loaded[o.basename(e[i]).replace(".json","")]=require(e[i]):"development"===process.env.NODE_ENV&&s.warn("[translator] Skipping language file: "+o.relative(o.join(__dirname,"../language"),e[i])))})},"undefined"!=typeof window&&(window.translator=t.exports)}("undefined"==typeof module?{module:{exports:{}}}:module),"undefined"!=typeof window&&!function(t){t.fn.getCursorPosition=function(){var e=t(this).get(0),n=0;if("selectionStart"in e)n=e.selectionStart;else if("selection"in document){e.focus();var i=document.selection.createRange(),o=document.selection.createRange().text.length;i.moveStart("character",-e.value.length),n=i.text.length-o}return n},t.fn.selectRange=function(t,e){return e||(e=t),this.each(function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(t,e);else if(this.createTextRange){var n=this.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",t),n.select()}})},t.fn.putCursorAtEnd=function(){return this.each(function(){if(t(this).focus(),this.setSelectionRange){var e=2*t(this).val().length;this.setSelectionRange(e,e)}else t(this).val(t(this).val());this.scrollTop=999999})}}(jQuery||{fn:{}}),function(t){var e,n,i;"undefined"==typeof window?(n=require("fs"),i=require("xregexp").XRegExp,process.profile=function(t,e){var n=process.hrtime(e);console.log("%s took %d milliseconds",t,1e3*n[0]+n[1]/1e6)}):i=window.XRegExp,t.exports=e={generateUUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)})},walk:function(t,i){var o=[],r=require("path"),s=r.join(__dirname,"..","templates");n.readdir(t,function(r,a){if(r)return i(r);var l=a.length;return l?void a.forEach(function(r){r=t+"/"+r,n.stat(r,function(t,n){n&&n.isDirectory()?e.walk(r,function(t,e){o=o.concat(e),--l||i(null,o)}):(o.push(r.replace(s+"/","").replace(".tpl","")),--l||i(null,o))})}):i(null,o)})},relativeTime:function(t,e){var n=+new Date,i=n-Math.floor(parseFloat(t));return 0>i&&(i=0),i=Math.floor(i/1e3),60>i?i+(e?"s":" second")+(1===i||e?"":"s"):(i=Math.floor(i/60),60>i?i+(e?"m":" minute")+(1===i||e?"":"s"):(i=Math.floor(i/60),24>i?i+(e?"h":" hour")+(1===i||e?"":"s"):(i=Math.floor(i/24),30>i?i+(e?"d":" day")+(1===i||e?"":"s"):(i=Math.floor(i/30),12>i?i+(e?"mon":" month")+(1===i||e?"":"s"):(i=Math.floor(i/12),i+(e?"y":" year")+(1===i||e?"":"s"))))))},invalidUnicodeChars:i("[^\\p{L}\\s\\d\\-_]","g"),invalidLatinChars:/[^\w\s\d\-_]/g,trimRegex:/^\s+|\s+$/g,collapseWhitespace:/\s+/g,collapseDash:/-+/g,trimTrailingDash:/-$/g,trimLeadingDash:/^-/g,isLatin:/^[\w]+$/,slugify:function(t){return t=t.replace(e.trimRegex,""),t=t.toLowerCase(),t=e.isLatin.test(t)?t.replace(e.invalidLatinChars,"-"):i.replace(t,e.invalidUnicodeChars,"-"),t=t.replace(e.collapseWhitespace,"-"),t=t.replace(e.collapseDash,"-"),t=t.replace(e.trimTrailingDash,""),t=t.replace(e.trimLeadingDash,"")},isEmailValid:function(t){return-1!==t.indexOf("@")},isUserNameValid:function(t){return t&&""!==t&&/^['"\s\-.*0-9\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(t)},isPasswordValid:function(t){return t&&-1===t.indexOf(" ")},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},merge:function(){for(var t,e,n={},i=0;i<arguments.length;i++){t=arguments[i]||{},e=Object.keys(t);for(var o=0;o<e.length;o++)n[e[o]]=t[e[o]]}return n},fileExtension:function(t){return(""+t).split(".").pop()},fileMimeType:function(){var t={bmp:"image/bmp",cmx:"image/x-cmx",cod:"image/cis-cod",gif:"image/gif",ico:"image/x-icon",ief:"image/ief",jfif:"image/pipeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",pbm:"image/x-portable-bitmap",pgm:"image/x-portable-graymap",pnm:"image/x-portable-anymap",ppm:"image/x-portable-pixmap",ras:"image/x-cmu-raster",rgb:"image/x-rgb",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",xbm:"image/x-xbitmap",xpm:"image/x-xpixmap",xwd:"image/x-xwindowdump"};return function(n){var i=e.fileExtension(n);return t[i]||"*"}}(),isRelativeUrl:function(t){var e=t.slice(0,1);return"."===e||"/"===e},makeNumberHumanReadable:function(t){var e=parseInt(t,10);return e?e>999999?(e/1e6).toFixed(1)+"m":e>999?(e/1e3).toFixed(1)+"k":e:t},toISOString:function(t){if(!t)return"";try{return new Date(parseInt(t,10)).toISOString()}catch(e){console.log(t,e.stack)}return""},tags:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr"],getTagsExcept:function(t){var n=e.tags.slice();return t.forEach(function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}),n}},"undefined"!=typeof window&&(window.utils=t.exports)}("undefined"==typeof module?{module:{exports:{}}}:module);var io="undefined"==typeof module?{}:module.exports;!function(){if(function(t,e){var n=t;n.version="0.9.16",n.protocol=1,n.transports=[],n.j=[],n.sockets={},n.connect=function(t,i){var o,r,s=n.util.parseUri(t);e&&e.location&&(s.protocol=s.protocol||e.location.protocol.slice(0,-1),s.host=s.host||(e.document?e.document.domain:e.location.hostname),s.port=s.port||e.location.port),o=n.util.uniqueUri(s);var a={host:s.host,secure:"https"==s.protocol,port:s.port||("https"==s.protocol?443:80),query:s.query||""};return n.util.merge(a,i),(a["force new connection"]||!n.sockets[o])&&(r=new n.Socket(a)),!a["force new connection"]&&r&&(n.sockets[o]=r),r=r||n.sockets[o],r.of(s.path.length>1?s.path:"")}}("object"==typeof module?module.exports:this.io={},this),function(t,e){var n=t.util={},i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];n.parseUri=function(t){for(var e=i.exec(t||""),n={},r=14;r--;)n[o[r]]=e[r]||"";return n},n.uniqueUri=function(t){var n=t.protocol,i=t.host,o=t.port;return"document"in e?(i=i||document.domain,o=o||("https"==n&&"https:"!==document.location.protocol?443:document.location.port)):(i=i||"localhost",o||"https"!=n||(o=443)),(n||"http")+"://"+i+":"+(o||80)},n.query=function(t,e){var i=n.chunkQuery(t||""),o=[];n.merge(i,n.chunkQuery(e||""));for(var r in i)i.hasOwnProperty(r)&&o.push(r+"="+i[r]);return o.length?"?"+o.join("&"):""},n.chunkQuery=function(t){for(var e,n={},i=t.split("&"),o=0,r=i.length;r>o;++o)e=i[o].split("="),e[0]&&(n[e[0]]=e[1]);return n};var r=!1;n.load=function(t){return"document"in e&&"complete"===document.readyState||r?t():void n.on(e,"load",t,!1)},n.on=function(t,e,n,i){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener&&t.addEventListener(e,n,i)},n.request=function(t){if(t&&"undefined"!=typeof XDomainRequest&&!n.ua.hasCORS)return new XDomainRequest;if("undefined"!=typeof XMLHttpRequest&&(!t||n.ua.hasCORS))return new XMLHttpRequest;if(!t)try{return new(window[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}return null},"undefined"!=typeof window&&n.load(function(){r=!0}),n.defer=function(t){return n.ua.webkit&&"undefined"==typeof importScripts?void n.load(function(){setTimeout(t,100)}):t()},n.merge=function(t,e,i,o){var r,s=o||[],a="undefined"==typeof i?2:i;for(r in e)e.hasOwnProperty(r)&&n.indexOf(s,r)<0&&("object"==typeof t[r]&&a?n.merge(t[r],e[r],a-1,s):(t[r]=e[r],s.push(e[r])));return t},n.mixin=function(t,e){n.merge(t.prototype,e.prototype)},n.inherit=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.intersect=function(t,e){for(var i=[],o=t.length>e.length?t:e,r=t.length>e.length?e:t,s=0,a=r.length;a>s;s++)~n.indexOf(o,r[s])&&i.push(r[s]);return i},n.indexOf=function(t,e,n){for(var i=t.length,n=0>n?0>n+i?0:n+i:n||0;i>n&&t[n]!==e;n++);return n>=i?-1:n},n.toArray=function(t){for(var e=[],n=0,i=t.length;i>n;n++)e.push(t[n]);return e},n.ua={},n.ua.hasCORS="undefined"!=typeof XMLHttpRequest&&function(){try{var t=new XMLHttpRequest}catch(e){return!1}return void 0!=t.withCredentials}(),n.ua.webkit="undefined"!=typeof navigator&&/webkit/i.test(navigator.userAgent),n.ua.iDevice="undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)}("undefined"!=typeof io?io:module.exports,this),function(t,e){function n(){}t.EventEmitter=n,n.prototype.on=function(t,n){return this.$events||(this.$events={}),this.$events[t]?e.util.isArray(this.$events[t])?this.$events[t].push(n):this.$events[t]=[this.$events[t],n]:this.$events[t]=n,this},n.prototype.addListener=n.prototype.on,n.prototype.once=function(t,e){function n(){i.removeListener(t,n),e.apply(this,arguments)}var i=this;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,n){if(this.$events&&this.$events[t]){var i=this.$events[t];if(e.util.isArray(i)){for(var o=-1,r=0,s=i.length;s>r;r++)if(i[r]===n||i[r].listener&&i[r].listener===n){o=r;break}if(0>o)return this;i.splice(o,1),i.length||delete this.$events[t]}else(i===n||i.listener&&i.listener===n)&&delete this.$events[t]}return this},n.prototype.removeAllListeners=function(t){return void 0===t?(this.$events={},this):(this.$events&&this.$events[t]&&(this.$events[t]=null),this)},n.prototype.listeners=function(t){return this.$events||(this.$events={}),this.$events[t]||(this.$events[t]=[]),e.util.isArray(this.$events[t])||(this.$events[t]=[this.$events[t]]),this.$events[t]},n.prototype.emit=function(t){if(!this.$events)return!1;var n=this.$events[t];if(!n)return!1;var i=Array.prototype.slice.call(arguments,1);if("function"==typeof n)n.apply(this,i);else{if(!e.util.isArray(n))return!1;for(var o=n.slice(),r=0,s=o.length;s>r;r++)o[r].apply(this,i)}return!0}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(exports,nativeJSON){function f(t){return 10>t?"0"+t:t}function date(t){return isFinite(t.valueOf())?t.getUTCFullYear()+"-"+f(t.getUTCMonth()+1)+"-"+f(t.getUTCDate())+"T"+f(t.getUTCHours())+":"+f(t.getUTCMinutes())+":"+f(t.getUTCSeconds())+"Z":null}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,o,r,s,a=gap,l=e[t];switch(l instanceof Date&&(l=date(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(r=l.length,n=0;r>n;n+=1)s[n]=str(n,l)||"null";return o=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,o}if(rep&&"object"==typeof rep)for(r=rep.length,n=0;r>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],o=str(i,l),o&&s.push(quote(i)+(gap?": ":":")+o));else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(o=str(i,l),o&&s.push(quote(i)+(gap?": ":":")+o));return o=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,o}}if(nativeJSON&&nativeJSON.parse)return exports.JSON={parse:nativeJSON.parse,stringify:nativeJSON.stringify};var JSON=exports.JSON={},cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","    ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})},JSON.parse=function(text,reviver){function walk(t,e){var n,i,o=t[e];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i=walk(o,n),void 0!==i?o[n]=i:delete o[n]);return reviver.call(t,e,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof JSON?JSON:void 0),function(t,e){var n=t.parser={},i=n.packets=["disconnect","connect","heartbeat","message","json","event","ack","error","noop"],o=n.reasons=["transport not supported","client not handshaken","unauthorized"],r=n.advice=["reconnect"],s=e.JSON,a=e.util.indexOf;n.encodePacket=function(t){var e=a(i,t.type),n=t.id||"",l=t.endpoint||"",c=t.ack,u=null;switch(t.type){case"error":var p=t.reason?a(o,t.reason):"",h=t.advice?a(r,t.advice):"";(""!==p||""!==h)&&(u=p+(""!==h?"+"+h:""));break;case"message":""!==t.data&&(u=t.data);break;case"event":var f={name:t.name};t.args&&t.args.length&&(f.args=t.args),u=s.stringify(f);break;case"json":u=s.stringify(t.data);break;case"connect":t.qs&&(u=t.qs);break;case"ack":u=t.ackId+(t.args&&t.args.length?"+"+s.stringify(t.args):"")}var d=[e,n+("data"==c?"+":""),l];return null!==u&&void 0!==u&&d.push(u),d.join(":")},n.encodePayload=function(t){var e="";if(1==t.length)return t[0];for(var n=0,i=t.length;i>n;n++){var o=t[n];e+="�"+o.length+"�"+t[n]}return e};var l=/([^:]+):([0-9]+)?(\+)?:([^:]+)?:?([\s\S]*)?/;n.decodePacket=function(t){var e=t.match(l);if(!e)return{};var n=e[2]||"",t=e[5]||"",a={type:i[e[1]],endpoint:e[4]||""};switch(n&&(a.id=n,a.ack=e[3]?"data":!0),a.type){case"error":var e=t.split("+");a.reason=o[e[0]]||"",a.advice=r[e[1]]||"";break;case"message":a.data=t||"";break;case"event":try{var c=s.parse(t);a.name=c.name,a.args=c.args}catch(u){}a.args=a.args||[];break;case"json":try{a.data=s.parse(t)}catch(u){}break;case"connect":a.qs=t||"";break;case"ack":var e=t.match(/^([0-9]+)(\+)?(.*)/);if(e&&(a.ackId=e[1],a.args=[],e[3]))try{a.args=e[3]?s.parse(e[3]):[]}catch(u){}break;case"disconnect":case"heartbeat":}return a},n.decodePayload=function(t){if("�"==t.charAt(0)){for(var e=[],i=1,o="";i<t.length;i++)"�"==t.charAt(i)?(e.push(n.decodePacket(t.substr(i+1).substr(0,o))),i+=Number(o)+1,o=""):o+=t.charAt(i);return e}return[n.decodePacket(t)]}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(t,e){function n(t,e){this.socket=t,this.sessid=e}t.Transport=n,e.util.mixin(n,e.EventEmitter),n.prototype.heartbeats=function(){return!0},n.prototype.onData=function(t){if(this.clearCloseTimeout(),(this.socket.connected||this.socket.connecting||this.socket.reconnecting)&&this.setCloseTimeout(),""!==t){var n=e.parser.decodePayload(t);if(n&&n.length)for(var i=0,o=n.length;o>i;i++)this.onPacket(n[i])
  10. }return this},n.prototype.onPacket=function(t){return this.socket.setHeartbeatTimeout(),"heartbeat"==t.type?this.onHeartbeat():("connect"==t.type&&""==t.endpoint&&this.onConnect(),"error"==t.type&&"reconnect"==t.advice&&(this.isOpen=!1),this.socket.onPacket(t),this)},n.prototype.setCloseTimeout=function(){if(!this.closeTimeout){var t=this;this.closeTimeout=setTimeout(function(){t.onDisconnect()},this.socket.closeTimeout)}},n.prototype.onDisconnect=function(){return this.isOpen&&this.close(),this.clearTimeouts(),this.socket.onDisconnect(),this},n.prototype.onConnect=function(){return this.socket.onConnect(),this},n.prototype.clearCloseTimeout=function(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)},n.prototype.clearTimeouts=function(){this.clearCloseTimeout(),this.reopenTimeout&&clearTimeout(this.reopenTimeout)},n.prototype.packet=function(t){this.send(e.parser.encodePacket(t))},n.prototype.onHeartbeat=function(){this.packet({type:"heartbeat"})},n.prototype.onOpen=function(){this.isOpen=!0,this.clearCloseTimeout(),this.socket.onOpen()},n.prototype.onClose=function(){this.isOpen=!1,this.socket.onClose(),this.onDisconnect()},n.prototype.prepareUrl=function(){var t=this.socket.options;return this.scheme()+"://"+t.host+":"+t.port+"/"+t.resource+"/"+e.protocol+"/"+this.name+"/"+this.sessid},n.prototype.ready=function(t,e){e.call(this)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(t,e,n){function i(t){if(this.options={port:80,secure:!1,document:"document"in n?document:!1,resource:"socket.io",transports:e.transports,"connect timeout":1e4,"try multiple transports":!0,reconnect:!0,"reconnection delay":500,"reconnection limit":1/0,"reopen delay":3e3,"max reconnection attempts":10,"sync disconnect on unload":!1,"auto connect":!0,"flash policy port":10843,manualFlush:!1},e.util.merge(this.options,t),this.connected=!1,this.open=!1,this.connecting=!1,this.reconnecting=!1,this.namespaces={},this.buffer=[],this.doBuffer=!1,this.options["sync disconnect on unload"]&&(!this.isXDomain()||e.util.ua.hasCORS)){var i=this;e.util.on(n,"beforeunload",function(){i.disconnectSync()},!1)}this.options["auto connect"]&&this.connect()}function o(){}t.Socket=i,e.util.mixin(i,e.EventEmitter),i.prototype.of=function(t){return this.namespaces[t]||(this.namespaces[t]=new e.SocketNamespace(this,t),""!==t&&this.namespaces[t].packet({type:"connect"})),this.namespaces[t]},i.prototype.publish=function(){this.emit.apply(this,arguments);var t;for(var e in this.namespaces)this.namespaces.hasOwnProperty(e)&&(t=this.of(e),t.$emit.apply(t,arguments))},i.prototype.handshake=function(t){function n(e){e instanceof Error?(i.connecting=!1,i.onError(e.message)):t.apply(null,e.split(":"))}var i=this,r=this.options,s=["http"+(r.secure?"s":"")+":/",r.host+":"+r.port,r.resource,e.protocol,e.util.query(this.options.query,"t="+ +new Date)].join("/");if(this.isXDomain()&&!e.util.ua.hasCORS){var a=document.getElementsByTagName("script")[0],l=document.createElement("script");l.src=s+"&jsonp="+e.j.length,a.parentNode.insertBefore(l,a),e.j.push(function(t){n(t),l.parentNode.removeChild(l)})}else{var c=e.util.request();c.open("GET",s,!0),this.isXDomain()&&(c.withCredentials=!0),c.onreadystatechange=function(){4==c.readyState&&(c.onreadystatechange=o,200==c.status?n(c.responseText):403==c.status?i.onError(c.responseText):(i.connecting=!1,!i.reconnecting&&i.onError(c.responseText)))},c.send(null)}},i.prototype.getTransport=function(t){for(var n,i=t||this.transports,o=0;n=i[o];o++)if(e.Transport[n]&&e.Transport[n].check(this)&&(!this.isXDomain()||e.Transport[n].xdomainCheck(this)))return new e.Transport[n](this,this.sessionid);return null},i.prototype.connect=function(t){if(this.connecting)return this;var n=this;return n.connecting=!0,this.handshake(function(i,o,r,s){function a(t){return n.transport&&n.transport.clearTimeouts(),n.transport=n.getTransport(t),n.transport?void n.transport.ready(n,function(){n.connecting=!0,n.publish("connecting",n.transport.name),n.transport.open(),n.options["connect timeout"]&&(n.connectTimeoutTimer=setTimeout(function(){if(!n.connected&&(n.connecting=!1,n.options["try multiple transports"])){for(var t=n.transports;t.length>0&&t.splice(0,1)[0]!=n.transport.name;);t.length?a(t):n.publish("connect_failed")}},n.options["connect timeout"]))}):n.publish("connect_failed")}n.sessionid=i,n.closeTimeout=1e3*r,n.heartbeatTimeout=1e3*o,n.transports||(n.transports=n.origTransports=s?e.util.intersect(s.split(","),n.options.transports):n.options.transports),n.setHeartbeatTimeout(),a(n.transports),n.once("connect",function(){clearTimeout(n.connectTimeoutTimer),t&&"function"==typeof t&&t()})}),this},i.prototype.setHeartbeatTimeout=function(){if(clearTimeout(this.heartbeatTimeoutTimer),!this.transport||this.transport.heartbeats()){var t=this;this.heartbeatTimeoutTimer=setTimeout(function(){t.transport.onClose()},this.heartbeatTimeout)}},i.prototype.packet=function(t){return this.connected&&!this.doBuffer?this.transport.packet(t):this.buffer.push(t),this},i.prototype.setBuffer=function(t){this.doBuffer=t,!t&&this.connected&&this.buffer.length&&(this.options.manualFlush||this.flushBuffer())},i.prototype.flushBuffer=function(){this.transport.payload(this.buffer),this.buffer=[]},i.prototype.disconnect=function(){return(this.connected||this.connecting)&&(this.open&&this.of("").packet({type:"disconnect"}),this.onDisconnect("booted")),this},i.prototype.disconnectSync=function(){var t=e.util.request(),n=["http"+(this.options.secure?"s":"")+":/",this.options.host+":"+this.options.port,this.options.resource,e.protocol,"",this.sessionid].join("/")+"/?disconnect=1";t.open("GET",n,!1),t.send(null),this.onDisconnect("booted")},i.prototype.isXDomain=function(){var t=n.location.port||("https:"==n.location.protocol?443:80);return this.options.host!==n.location.hostname||this.options.port!=t},i.prototype.onConnect=function(){this.connected||(this.connected=!0,this.connecting=!1,this.doBuffer||this.setBuffer(!1),this.emit("connect"))},i.prototype.onOpen=function(){this.open=!0},i.prototype.onClose=function(){this.open=!1,clearTimeout(this.heartbeatTimeoutTimer)},i.prototype.onPacket=function(t){this.of(t.endpoint).onPacket(t)},i.prototype.onError=function(t){t&&t.advice&&"reconnect"===t.advice&&(this.connected||this.connecting)&&(this.disconnect(),this.options.reconnect&&this.reconnect()),this.publish("error",t&&t.reason?t.reason:t)},i.prototype.onDisconnect=function(t){var e=this.connected,n=this.connecting;this.connected=!1,this.connecting=!1,this.open=!1,(e||n)&&(this.transport.close(),this.transport.clearTimeouts(),e&&(this.publish("disconnect",t),"booted"!=t&&this.options.reconnect&&!this.reconnecting&&this.reconnect()))},i.prototype.reconnect=function(){function t(){if(n.connected){for(var t in n.namespaces)n.namespaces.hasOwnProperty(t)&&""!==t&&n.namespaces[t].packet({type:"connect"});n.publish("reconnect",n.transport.name,n.reconnectionAttempts)}clearTimeout(n.reconnectionTimer),n.removeListener("connect_failed",e),n.removeListener("connect",e),n.reconnecting=!1,delete n.reconnectionAttempts,delete n.reconnectionDelay,delete n.reconnectionTimer,delete n.redoTransports,n.options["try multiple transports"]=o}function e(){return n.reconnecting?n.connected?t():n.connecting&&n.reconnecting?n.reconnectionTimer=setTimeout(e,1e3):void(n.reconnectionAttempts++>=i?n.redoTransports?(n.publish("reconnect_failed"),t()):(n.on("connect_failed",e),n.options["try multiple transports"]=!0,n.transports=n.origTransports,n.transport=n.getTransport(),n.redoTransports=!0,n.connect()):(n.reconnectionDelay<r&&(n.reconnectionDelay*=2),n.connect(),n.publish("reconnecting",n.reconnectionDelay,n.reconnectionAttempts),n.reconnectionTimer=setTimeout(e,n.reconnectionDelay))):void 0}this.reconnecting=!0,this.reconnectionAttempts=0,this.reconnectionDelay=this.options["reconnection delay"];var n=this,i=this.options["max reconnection attempts"],o=this.options["try multiple transports"],r=this.options["reconnection limit"];this.options["try multiple transports"]=!1,this.reconnectionTimer=setTimeout(e,this.reconnectionDelay),this.on("connect",e)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(t,e){function n(t,e){this.socket=t,this.name=e||"",this.flags={},this.json=new i(this,"json"),this.ackPackets=0,this.acks={}}function i(t,e){this.namespace=t,this.name=e}t.SocketNamespace=n,e.util.mixin(n,e.EventEmitter),n.prototype.$emit=e.EventEmitter.prototype.emit,n.prototype.of=function(){return this.socket.of.apply(this.socket,arguments)},n.prototype.packet=function(t){return t.endpoint=this.name,this.socket.packet(t),this.flags={},this},n.prototype.send=function(t,e){var n={type:this.flags.json?"json":"message",data:t};return"function"==typeof e&&(n.id=++this.ackPackets,n.ack=!0,this.acks[n.id]=e),this.packet(n)},n.prototype.emit=function(t){var e=Array.prototype.slice.call(arguments,1),n=e[e.length-1],i={type:"event",name:t};return"function"==typeof n&&(i.id=++this.ackPackets,i.ack="data",this.acks[i.id]=n,e=e.slice(0,e.length-1)),i.args=e,this.packet(i)},n.prototype.disconnect=function(){return""===this.name?this.socket.disconnect():(this.packet({type:"disconnect"}),this.$emit("disconnect")),this},n.prototype.onPacket=function(t){function n(){i.packet({type:"ack",args:e.util.toArray(arguments),ackId:t.id})}var i=this;switch(t.type){case"connect":this.$emit("connect");break;case"disconnect":""===this.name?this.socket.onDisconnect(t.reason||"booted"):this.$emit("disconnect",t.reason);break;case"message":case"json":var o=["message",t.data];"data"==t.ack?o.push(n):t.ack&&this.packet({type:"ack",ackId:t.id}),this.$emit.apply(this,o);break;case"event":var o=[t.name].concat(t.args);"data"==t.ack&&o.push(n),this.$emit.apply(this,o);break;case"ack":this.acks[t.ackId]&&(this.acks[t.ackId].apply(this,t.args),delete this.acks[t.ackId]);break;case"error":t.advice?this.socket.onError(t):"unauthorized"==t.reason?this.$emit("connect_failed",t.reason):this.$emit("error",t.reason)}},i.prototype.send=function(){this.namespace.flags[this.name]=!0,this.namespace.send.apply(this.namespace,arguments)},i.prototype.emit=function(){this.namespace.flags[this.name]=!0,this.namespace.emit.apply(this.namespace,arguments)}}("undefined"!=typeof io?io:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(t,e,n){function i(){e.Transport.apply(this,arguments)}t.websocket=i,e.util.inherit(i,e.Transport),i.prototype.name="websocket",i.prototype.open=function(){var t,i=e.util.query(this.socket.options.query),o=this;return t||(t=n.MozWebSocket||n.WebSocket),this.websocket=new t(this.prepareUrl()+i),this.websocket.onopen=function(){o.onOpen(),o.socket.setBuffer(!1)},this.websocket.onmessage=function(t){o.onData(t.data)},this.websocket.onclose=function(){o.onClose(),o.socket.setBuffer(!0)},this.websocket.onerror=function(t){o.onError(t)},this},i.prototype.send=e.util.ua.iDevice?function(t){var e=this;return setTimeout(function(){e.websocket.send(t)},0),this}:function(t){return this.websocket.send(t),this},i.prototype.payload=function(t){for(var e=0,n=t.length;n>e;e++)this.packet(t[e]);return this},i.prototype.close=function(){return this.websocket.close(),this},i.prototype.onError=function(t){this.socket.onError(t)},i.prototype.scheme=function(){return this.socket.options.secure?"wss":"ws"},i.check=function(){return"WebSocket"in n&&!("__addTask"in WebSocket)||"MozWebSocket"in n},i.xdomainCheck=function(){return!0},e.transports.push("websocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(t,e){function n(){e.Transport.websocket.apply(this,arguments)}t.flashsocket=n,e.util.inherit(n,e.Transport.websocket),n.prototype.name="flashsocket",n.prototype.open=function(){var t=this,n=arguments;return WebSocket.__addTask(function(){e.Transport.websocket.prototype.open.apply(t,n)}),this},n.prototype.send=function(){var t=this,n=arguments;return WebSocket.__addTask(function(){e.Transport.websocket.prototype.send.apply(t,n)}),this},n.prototype.close=function(){return WebSocket.__tasks.length=0,e.Transport.websocket.prototype.close.call(this),this},n.prototype.ready=function(t,i){function o(){var e=t.options,o=e["flash policy port"],s=["http"+(e.secure?"s":"")+":/",e.host+":"+e.port,e.resource,"static/flashsocket","WebSocketMain"+(t.isXDomain()?"Insecure":"")+".swf"];n.loaded||("undefined"==typeof WEB_SOCKET_SWF_LOCATION&&(WEB_SOCKET_SWF_LOCATION=s.join("/")),843!==o&&WebSocket.loadFlashPolicyFile("xmlsocket://"+e.host+":"+o),WebSocket.__initialize(),n.loaded=!0),i.call(r)}var r=this;return document.body?o():void e.util.load(o)},n.check=function(){return"undefined"!=typeof WebSocket&&"__initialize"in WebSocket&&swfobject?swfobject.getFlashPlayerVersion().major>=10:!1},n.xdomainCheck=function(){return!0},"undefined"!=typeof window&&(WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=!0),e.transports.push("flashsocket")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),"undefined"!=typeof window)var swfobject=function(){function t(){if(!B){try{var t=O.getElementsByTagName("body")[0].appendChild(g("span"));t.parentNode.removeChild(t)}catch(e){return}B=!0;for(var n=F.length,i=0;n>i;i++)F[i]()}}function e(t){B?t():F[F.length]=t}function n(t){if(typeof L.addEventListener!=N)L.addEventListener("load",t,!1);else if(typeof O.addEventListener!=N)O.addEventListener("load",t,!1);else if(typeof L.attachEvent!=N)v(L,"onload",t);else if("function"==typeof L.onload){var e=L.onload;L.onload=function(){e(),t()}}else L.onload=t}function i(){M?o():r()}function o(){var t=O.getElementsByTagName("body")[0],e=g(A);e.setAttribute("type",j);var n=t.appendChild(e);if(n){var i=0;!function(){if(typeof n.GetVariable!=N){var o=n.GetVariable("$version");o&&(o=o.split(" ")[1].split(","),X.pv=[parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10)])}else if(10>i)return i++,void setTimeout(arguments.callee,10);t.removeChild(e),n=null,r()}()}else r()}function r(){var t=W.length;if(t>0)for(var e=0;t>e;e++){var n=W[e].id,i=W[e].callbackFn,o={success:!1,id:n};if(X.pv[0]>0){var r=m(n);if(r)if(!y(W[e].swfVersion)||X.wk&&X.wk<312)if(W[e].expressInstall&&a()){var u={};u.data=W[e].expressInstall,u.width=r.getAttribute("width")||"0",u.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(u.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(u.align=r.getAttribute("align"));for(var p={},h=r.getElementsByTagName("param"),f=h.length,d=0;f>d;d++)"movie"!=h[d].getAttribute("name").toLowerCase()&&(p[h[d].getAttribute("name")]=h[d].getAttribute("value"));l(u,p,n,i)}else c(r),i&&i(o);else x(n,!0),i&&(o.success=!0,o.ref=s(n),i(o))}else if(x(n,!0),i){var g=s(n);g&&typeof g.SetVariable!=N&&(o.success=!0,o.ref=g),i(o)}}}function s(t){var e=null,n=m(t);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=N)e=n;else{var i=n.getElementsByTagName(A)[0];i&&(e=i)}return e}function a(){return!U&&y("6.0.65")&&(X.win||X.mac)&&!(X.wk&&X.wk<312)}function l(t,e,n,i){U=!0,C=i||null,_={success:!1,id:n};var o=m(n);if(o){"OBJECT"==o.nodeName?(k=u(o),T=null):(k=o,T=n),t.id=$,(typeof t.width==N||!/%$/.test(t.width)&&parseInt(t.width,10)<310)&&(t.width="310"),(typeof t.height==N||!/%$/.test(t.height)&&parseInt(t.height,10)<137)&&(t.height="137"),O.title=O.title.slice(0,47)+" - Flash Player Installation";var r=X.ie&&X.win?["Active"].concat("").join("X"):"PlugIn",s="MMredirectURL="+L.location.toString().replace(/&/g,"%26")+"&MMplayerType="+r+"&MMdoctitle="+O.title;if(typeof e.flashvars!=N?e.flashvars+="&"+s:e.flashvars=s,X.ie&&X.win&&4!=o.readyState){var a=g("div");n+="SWFObjectNew",a.setAttribute("id",n),o.parentNode.insertBefore(a,o),o.style.display="none",function(){4==o.readyState?o.parentNode.removeChild(o):setTimeout(arguments.callee,10)}()}p(t,e,n)}}function c(t){if(X.ie&&X.win&&4!=t.readyState){var e=g("div");t.parentNode.insertBefore(e,t),e.parentNode.replaceChild(u(t),e),t.style.display="none",function(){4==t.readyState?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(u(t),t)}function u(t){var e=g("div");if(X.win&&X.ie)e.innerHTML=t.innerHTML;else{var n=t.getElementsByTagName(A)[0];if(n){var i=n.childNodes;if(i)for(var o=i.length,r=0;o>r;r++)1==i[r].nodeType&&"PARAM"==i[r].nodeName||8==i[r].nodeType||e.appendChild(i[r].cloneNode(!0))}}return e}function p(t,e,n){var i,o=m(n);if(X.wk&&X.wk<312)return i;if(o)if(typeof t.id==N&&(t.id=n),X.ie&&X.win){var r="";for(var s in t)t[s]!=Object.prototype[s]&&("data"==s.toLowerCase()?e.movie=t[s]:"styleclass"==s.toLowerCase()?r+=' class="'+t[s]+'"':"classid"!=s.toLowerCase()&&(r+=" "+s+'="'+t[s]+'"'));var a="";for(var l in e)e[l]!=Object.prototype[l]&&(a+='<param name="'+l+'" value="'+e[l]+'" />');o.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+r+">"+a+"</object>",R[R.length]=t.id,i=m(t.id)}else{var c=g(A);c.setAttribute("type",j);for(var u in t)t[u]!=Object.prototype[u]&&("styleclass"==u.toLowerCase()?c.setAttribute("class",t[u]):"classid"!=u.toLowerCase()&&c.setAttribute(u,t[u]));for(var p in e)e[p]!=Object.prototype[p]&&"movie"!=p.toLowerCase()&&h(c,p,e[p]);o.parentNode.replaceChild(c,o),i=c}return i}function h(t,e,n){var i=g("param");i.setAttribute("name",e),i.setAttribute("value",n),t.appendChild(i)}function f(t){var e=m(t);e&&"OBJECT"==e.nodeName&&(X.ie&&X.win?(e.style.display="none",function(){4==e.readyState?d(t):setTimeout(arguments.callee,10)}()):e.parentNode.removeChild(e))}function d(t){var e=m(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}function m(t){var e=null;try{e=O.getElementById(t)}catch(n){}return e}function g(t){return O.createElement(t)}function v(t,e,n){t.attachEvent(e,n),q[q.length]=[t,e,n]}function y(t){var e=X.pv,n=t.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,e[0]>n[0]||e[0]==n[0]&&e[1]>n[1]||e[0]==n[0]&&e[1]==n[1]&&e[2]>=n[2]?!0:!1}function b(t,e,n,i){if(!X.ie||!X.mac){var o=O.getElementsByTagName("head")[0];if(o){var r=n&&"string"==typeof n?n:"screen";if(i&&(E=null,S=null),!E||S!=r){var s=g("style");s.setAttribute("type","text/css"),s.setAttribute("media",r),E=o.appendChild(s),X.ie&&X.win&&typeof O.styleSheets!=N&&O.styleSheets.length>0&&(E=O.styleSheets[O.styleSheets.length-1]),S=r}X.ie&&X.win?E&&typeof E.addRule==A&&E.addRule(t,e):E&&typeof O.createTextNode!=N&&E.appendChild(O.createTextNode(t+" {"+e+"}"))}}}function x(t,e){if(z){var n=e?"visible":"hidden";B&&m(t)?m(t).style.visibility=n:b("#"+t,"visibility:"+n)}}function w(t){var e=/[\\\"<>\.;]/,n=null!=e.exec(t);return n&&typeof encodeURIComponent!=N?encodeURIComponent(t):t}{var k,T,C,_,E,S,N="undefined",A="object",P="Shockwave Flash",D="ShockwaveFlash.ShockwaveFlash",j="application/x-shockwave-flash",$="SWFObjectExprInst",I="onreadystatechange",L=window,O=document,H=navigator,M=!1,F=[i],W=[],R=[],q=[],B=!1,U=!1,z=!0,X=function(){var t=typeof O.getElementById!=N&&typeof O.getElementsByTagName!=N&&typeof O.createElement!=N,e=H.userAgent.toLowerCase(),n=H.platform.toLowerCase(),i=/win/.test(n?n:e),o=/mac/.test(n?n:e),r=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,s=!1,a=[0,0,0],l=null;if(typeof H.plugins!=N&&typeof H.plugins[P]==A)l=H.plugins[P].description,!l||typeof H.mimeTypes!=N&&H.mimeTypes[j]&&!H.mimeTypes[j].enabledPlugin||(M=!0,s=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),a[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),a[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),a[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof L[["Active"].concat("Object").join("X")]!=N)try{var c=new(window[["Active"].concat("Object").join("X")])(D);c&&(l=c.GetVariable("$version"),l&&(s=!0,l=l.split(" ")[1].split(","),a=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]))}catch(u){}return{w3:t,pv:a,wk:r,ie:s,win:i,mac:o}}();!function(){X.w3&&((typeof O.readyState!=N&&"complete"==O.readyState||typeof O.readyState==N&&(O.getElementsByTagName("body")[0]||O.body))&&t(),B||(typeof O.addEventListener!=N&&O.addEventListener("DOMContentLoaded",t,!1),X.ie&&X.win&&(O.attachEvent(I,function(){"complete"==O.readyState&&(O.detachEvent(I,arguments.callee),t())}),L==top&&!function(){if(!B){try{O.documentElement.doScroll("left")}catch(e){return void setTimeout(arguments.callee,0)}t()}}()),X.wk&&!function(){return B?void 0:/loaded|complete/.test(O.readyState)?void t():void setTimeout(arguments.callee,0)}(),n(t)))}(),function(){X.ie&&X.win&&window.attachEvent("onunload",function(){for(var t=q.length,e=0;t>e;e++)q[e][0].detachEvent(q[e][1],q[e][2]);for(var n=R.length,i=0;n>i;i++)f(R[i]);for(var o in X)X[o]=null;X=null;for(var r in swfobject)swfobject[r]=null;swfobject=null})}()}return{registerObject:function(t,e,n,i){if(X.w3&&t&&e){var o={};o.id=t,o.swfVersion=e,o.expressInstall=n,o.callbackFn=i,W[W.length]=o,x(t,!1)}else i&&i({success:!1,id:t})},getObjectById:function(t){return X.w3?s(t):void 0},embedSWF:function(t,n,i,o,r,s,c,u,h,f){var d={success:!1,id:n};X.w3&&!(X.wk&&X.wk<312)&&t&&n&&i&&o&&r?(x(n,!1),e(function(){i+="",o+="";var e={};if(h&&typeof h===A)for(var m in h)e[m]=h[m];e.data=t,e.width=i,e.height=o;var g={};if(u&&typeof u===A)for(var v in u)g[v]=u[v];if(c&&typeof c===A)for(var b in c)typeof g.flashvars!=N?g.flashvars+="&"+b+"="+c[b]:g.flashvars=b+"="+c[b];if(y(r)){var w=p(e,g,n);e.id==n&&x(n,!0),d.success=!0,d.ref=w}else{if(s&&a())return e.data=s,void l(e,g,n,f);x(n,!0)}f&&f(d)})):f&&f(d)},switchOffAutoHideShow:function(){z=!1},ua:X,getFlashPlayerVersion:function(){return{major:X.pv[0],minor:X.pv[1],release:X.pv[2]}},hasFlashPlayerVersion:y,createSWF:function(t,e,n){return X.w3?p(t,e,n):void 0},showExpressInstall:function(t,e,n,i){X.w3&&a()&&l(t,e,n,i)},removeSWF:function(t){X.w3&&f(t)},createCSS:function(t,e,n,i){X.w3&&b(t,e,n,i)},addDomLoadEvent:e,addLoadEvent:n,getQueryParamValue:function(t){var e=O.location.search||O.location.hash;if(e){if(/\?/.test(e)&&(e=e.split("?")[1]),null==t)return w(e);for(var n=e.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==t)return w(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(U){var t=m($);t&&k&&(t.parentNode.replaceChild(k,t),T&&(x(T,!0),X.ie&&X.win&&(k.style.display="block")),C&&C(_)),U=!1}}}}();!function(){if("undefined"!=typeof window&&!window.WebSocket){var t=window.console;if(t&&t.log&&t.error||(t={log:function(){},error:function(){}}),!swfobject.hasFlashPlayerVersion("10.0.0"))return void t.error("Flash Player >= 10.0.0 is required.");"file:"==location.protocol&&t.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),WebSocket=function(t,e,n,i,o){var r=this;r.__id=WebSocket.__nextId++,WebSocket.__instances[r.__id]=r,r.readyState=WebSocket.CONNECTING,r.bufferedAmount=0,r.__events={},e?"string"==typeof e&&(e=[e]):e=[],setTimeout(function(){WebSocket.__addTask(function(){WebSocket.__flash.create(r.__id,t,e,n||null,i||0,o||null)})},0)},WebSocket.prototype.send=function(t){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";var e=WebSocket.__flash.send(this.__id,encodeURIComponent(t));return 0>e?!0:(this.bufferedAmount+=e,!1)},WebSocket.prototype.close=function(){this.readyState!=WebSocket.CLOSED&&this.readyState!=WebSocket.CLOSING&&(this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id))},WebSocket.prototype.addEventListener=function(t,e){t in this.__events||(this.__events[t]=[]),this.__events[t].push(e)},WebSocket.prototype.removeEventListener=function(t,e){if(t in this.__events)for(var n=this.__events[t],i=n.length-1;i>=0;--i)if(n[i]===e){n.splice(i,1);break}},WebSocket.prototype.dispatchEvent=function(t){for(var e=this.__events[t.type]||[],n=0;n<e.length;++n)e[n](t);var i=this["on"+t.type];i&&i(t)},WebSocket.prototype.__handleEvent=function(t){"readyState"in t&&(this.readyState=t.readyState),"protocol"in t&&(this.protocol=t.protocol);var e;if("open"==t.type||"error"==t.type)e=this.__createSimpleEvent(t.type);else if("close"==t.type)e=this.__createSimpleEvent("close");else{if("message"!=t.type)throw"unknown event type: "+t.type;var n=decodeURIComponent(t.message);e=this.__createMessageEvent("message",n)}this.dispatchEvent(e)},WebSocket.prototype.__createSimpleEvent=function(t){if(document.createEvent&&window.Event){var e=document.createEvent("Event");return e.initEvent(t,!1,!1),e}return{type:t,bubbles:!1,cancelable:!1}},WebSocket.prototype.__createMessageEvent=function(t,e){if(document.createEvent&&window.MessageEvent&&!window.opera){var n=document.createEvent("MessageEvent");return n.initMessageEvent("message",!1,!1,e,null,null,window,null),n}return{type:t,data:e,bubbles:!1,cancelable:!1}},WebSocket.CONNECTING=0,WebSocket.OPEN=1,WebSocket.CLOSING=2,WebSocket.CLOSED=3,WebSocket.__flash=null,WebSocket.__instances={},WebSocket.__tasks=[],WebSocket.__nextId=0,WebSocket.loadFlashPolicyFile=function(t){WebSocket.__addTask(function(){WebSocket.__flash.loadManualPolicyFile(t)})},WebSocket.__initialize=function(){if(!WebSocket.__flash){if(WebSocket.__swfLocation&&(window.WEB_SOCKET_SWF_LOCATION=WebSocket.__swfLocation),!window.WEB_SOCKET_SWF_LOCATION)return void t.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf");var e=document.createElement("div");e.id="webSocketContainer",e.style.position="absolute",WebSocket.__isFlashLite()?(e.style.left="0px",e.style.top="0px"):(e.style.left="-100px",e.style.top="-100px");var n=document.createElement("div");n.id="webSocketFlash",e.appendChild(n),document.body.appendChild(e),swfobject.embedSWF(WEB_SOCKET_SWF_LOCATION,"webSocketFlash","1","1","10.0.0",null,null,{hasPriority:!0,swliveconnect:!0,allowScriptAccess:"always"},null,function(e){e.success||t.error("[WebSocket] swfobject.embedSWF failed")})}},WebSocket.__onFlashInitialized=function(){setTimeout(function(){WebSocket.__flash=document.getElementById("webSocketFlash"),WebSocket.__flash.setCallerUrl(location.href),WebSocket.__flash.setDebug(!!window.WEB_SOCKET_DEBUG);for(var t=0;t<WebSocket.__tasks.length;++t)WebSocket.__tasks[t]();WebSocket.__tasks=[]},0)},WebSocket.__onFlashEvent=function(){return setTimeout(function(){try{for(var e=WebSocket.__flash.receiveEvents(),n=0;n<e.length;++n)WebSocket.__instances[e[n].webSocketId].__handleEvent(e[n])}catch(i){t.error(i)}},0),!0},WebSocket.__log=function(e){t.log(decodeURIComponent(e))},WebSocket.__error=function(e){t.error(decodeURIComponent(e))},WebSocket.__addTask=function(t){WebSocket.__flash?t():WebSocket.__tasks.push(t)},WebSocket.__isFlashLite=function(){if(!window.navigator||!window.navigator.mimeTypes)return!1;var t=window.navigator.mimeTypes["application/x-shockwave-flash"];return t&&t.enabledPlugin&&t.enabledPlugin.filename?t.enabledPlugin.filename.match(/flashlite/i)?!0:!1:!1},window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION||(window.addEventListener?window.addEventListener("load",function(){WebSocket.__initialize()},!1):window.attachEvent("onload",function(){WebSocket.__initialize()}))}}(),function(t,e,n){function i(t){t&&(e.Transport.apply(this,arguments),this.sendBuffer=[])}function o(){}t.XHR=i,e.util.inherit(i,e.Transport),i.prototype.open=function(){return this.socket.setBuffer(!1),this.onOpen(),this.get(),this.setCloseTimeout(),this},i.prototype.payload=function(t){for(var n=[],i=0,o=t.length;o>i;i++)n.push(e.parser.encodePacket(t[i]));this.send(e.parser.encodePayload(n))},i.prototype.send=function(t){return this.post(t),this},i.prototype.post=function(t){function e(){4==this.readyState&&(this.onreadystatechange=o,r.posting=!1,200==this.status?r.socket.setBuffer(!1):r.onClose())}function i(){this.onload=o,r.socket.setBuffer(!1)}var r=this;this.socket.setBuffer(!0),this.sendXHR=this.request("POST"),n.XDomainRequest&&this.sendXHR instanceof XDomainRequest?this.sendXHR.onload=this.sendXHR.onerror=i:this.sendXHR.onreadystatechange=e,this.sendXHR.send(t)},i.prototype.close=function(){return this.onClose(),this},i.prototype.request=function(t){var n=e.util.request(this.socket.isXDomain()),i=e.util.query(this.socket.options.query,"t="+ +new Date);if(n.open(t||"GET",this.prepareUrl()+i,!0),"POST"==t)try{n.setRequestHeader?n.setRequestHeader("Content-type","text/plain;charset=UTF-8"):n.contentType="text/plain"}catch(o){}return n},i.prototype.scheme=function(){return this.socket.options.secure?"https":"http"},i.check=function(t,i){try{var o=e.util.request(i),r=n.XDomainRequest&&o instanceof XDomainRequest,s=t&&t.options&&t.options.secure?"https:":"http:",a=n.location&&s!=n.location.protocol;if(o&&(!r||!a))return!0}catch(l){}return!1},i.xdomainCheck=function(t){return i.check(t,!0)}}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(t,e){function n(){e.Transport.XHR.apply(this,arguments)}t.htmlfile=n,e.util.inherit(n,e.Transport.XHR),n.prototype.name="htmlfile",n.prototype.get=function(){this.doc=new(window[["Active"].concat("Object").join("X")])("htmlfile"),this.doc.open(),this.doc.write("<html></html>"),this.doc.close(),this.doc.parentWindow.s=this;var t=this.doc.createElement("div");t.className="socketio",this.doc.body.appendChild(t),this.iframe=this.doc.createElement("iframe"),t.appendChild(this.iframe);var n=this,i=e.util.query(this.socket.options.query,"t="+ +new Date);this.iframe.src=this.prepareUrl()+i,e.util.on(window,"unload",function(){n.destroy()})},n.prototype._=function(t,e){t=t.replace(/\\\//g,"/"),this.onData(t);try{var n=e.getElementsByTagName("script")[0];n.parentNode.removeChild(n)}catch(i){}},n.prototype.destroy=function(){if(this.iframe){try{this.iframe.src="about:blank"}catch(t){}this.doc=null,this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,CollectGarbage()}},n.prototype.close=function(){return this.destroy(),e.Transport.XHR.prototype.close.call(this)},n.check=function(t){if("undefined"!=typeof window&&["Active"].concat("Object").join("X")in window)try{var n=new(window[["Active"].concat("Object").join("X")])("htmlfile");return n&&e.Transport.XHR.check(t)}catch(i){}return!1},n.xdomainCheck=function(){return!1},e.transports.push("htmlfile")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports),function(t,e,n){function i(){e.Transport.XHR.apply(this,arguments)}function o(){}t["xhr-polling"]=i,e.util.inherit(i,e.Transport.XHR),e.util.merge(i,e.Transport.XHR),i.prototype.name="xhr-polling",i.prototype.heartbeats=function(){return!1},i.prototype.open=function(){var t=this;return e.Transport.XHR.prototype.open.call(t),!1},i.prototype.get=function(){function t(){4==this.readyState&&(this.onreadystatechange=o,200==this.status?(r.onData(this.responseText),r.get()):r.onClose())}function e(){this.onload=o,this.onerror=o,r.retryCounter=1,r.onData(this.responseText),r.get()}function i(){r.retryCounter++,!r.retryCounter||r.retryCounter>3?r.onClose():r.get()}if(this.isOpen){var r=this;this.xhr=this.request(),n.XDomainRequest&&this.xhr instanceof XDomainRequest?(this.xhr.onload=e,this.xhr.onerror=i):this.xhr.onreadystatechange=t,this.xhr.send(null)}},i.prototype.onClose=function(){if(e.Transport.XHR.prototype.onClose.call(this),this.xhr){this.xhr.onreadystatechange=this.xhr.onload=this.xhr.onerror=o;try{this.xhr.abort()}catch(t){}this.xhr=null}},i.prototype.ready=function(t,n){var i=this;e.util.defer(function(){n.call(i)})},e.transports.push("xhr-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),function(t,e,n){function i(){e.Transport["xhr-polling"].apply(this,arguments),this.index=e.j.length;var t=this;e.j.push(function(e){t._(e)})}var o=n.document&&"MozAppearance"in n.document.documentElement.style;t["jsonp-polling"]=i,e.util.inherit(i,e.Transport["xhr-polling"]),i.prototype.name="jsonp-polling",i.prototype.post=function(t){function n(){i(),o.socket.setBuffer(!1)
  11. }function i(){o.iframe&&o.form.removeChild(o.iframe);try{s=document.createElement('<iframe name="'+o.iframeId+'">')}catch(t){s=document.createElement("iframe"),s.name=o.iframeId}s.id=o.iframeId,o.form.appendChild(s),o.iframe=s}var o=this,r=e.util.query(this.socket.options.query,"t="+ +new Date+"&i="+this.index);if(!this.form){var s,a=document.createElement("form"),l=document.createElement("textarea"),c=this.iframeId="socketio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.display="none",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),l.name="d",a.appendChild(l),document.body.appendChild(a),this.form=a,this.area=l}this.form.action=this.prepareUrl()+r,i(),this.area.value=e.JSON.stringify(t);try{this.form.submit()}catch(u){}this.iframe.attachEvent?s.onreadystatechange=function(){"complete"==o.iframe.readyState&&n()}:this.iframe.onload=n,this.socket.setBuffer(!0)},i.prototype.get=function(){var t=this,n=document.createElement("script"),i=e.util.query(this.socket.options.query,"t="+ +new Date+"&i="+this.index);this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.prepareUrl()+i,n.onerror=function(){t.onClose()};var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r),this.script=n,o&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype._=function(t){return this.onData(t),this.isOpen&&this.get(),this},i.prototype.ready=function(t,n){var i=this;return o?void e.util.load(function(){n.call(i)}):n.call(this)},i.check=function(){return"document"in n},i.xdomainCheck=function(){return!0},e.transports.push("jsonp-polling")}("undefined"!=typeof io?io.Transport:module.exports,"undefined"!=typeof io?io:module.parent.exports,this),"function"==typeof define&&define.amd&&define([],function(){return io})}();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement