Advertisement
TheConcernedEUMember

EU-KSC Javascript

Apr 7th, 2015
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=Z.type(e);return"function"===n||Z.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return U.call(t,e)>=0!==n})}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function i(e){var t=ht[e]={};return Z.each(e.match(ft)||[],function(e,n){t[n]=!0}),t}function a(){K.removeEventListener("DOMContentLoaded",a,!1),e.removeEventListener("load",a,!1),Z.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+s.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(xt,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:bt.test(n)?Z.parseJSON(n):n}catch(o){}vt.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function d(){try{return K.activeElement}catch(e){}}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function f(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,r=e.length;r>n;n++)yt.set(e[n],"globalEval",!t||yt.get(t[n],"globalEval"))}function m(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(yt.hasData(e)&&(i=yt.access(e),a=yt.set(t,i),l=i.events)){delete a.handle,a.events={};for(o in l)for(n=0,r=l[o].length;r>n;n++)Z.event.add(t,o,l[o][n])}vt.hasData(e)&&(s=vt.access(e),u=Z.extend({},s),vt.set(t,u))}}function y(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&kt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function b(t,n){var r,o=Z(n.createElement(t)).appendTo(n.body),i=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(o[0]))?r.display:Z.css(o[0],"display");return o.detach(),i}function x(e){var t=K,n=Bt[e];return n||(n=b(e,t),"none"!==n&&n||(Pt=(Pt||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Pt[0].contentDocument,t.write(),t.close(),n=b(e,t),Pt.detach()),Bt[e]=n),n}function w(e,t,n){var r,o,i,a,s=e.style;return n=n||$t(e),n&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||Z.contains(e.ownerDocument,e)||(a=Z.style(e,t)),Wt.test(a)&&Mt.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function T(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function j(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,o=Gt.length;o--;)if(t=Gt[o]+n,t in e)return t;return r}function k(e,t,n){var r=zt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function C(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>i;i+=2)"margin"===n&&(a+=Z.css(e,n+Tt[i],!0,o)),r?("content"===n&&(a-=Z.css(e,"padding"+Tt[i],!0,o)),"margin"!==n&&(a-=Z.css(e,"border"+Tt[i]+"Width",!0,o))):(a+=Z.css(e,"padding"+Tt[i],!0,o),"padding"!==n&&(a+=Z.css(e,"border"+Tt[i]+"Width",!0,o)));return a}function N(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=$t(e),a="border-box"===Z.css(e,"boxSizing",!1,i);if(0>=o||null==o){if(o=w(e,t,i),(0>o||null==o)&&(o=e.style[t]),Wt.test(o))return o;r=a&&(J.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+C(e,t,n||(a?"border":"content"),r,i)+"px"}function S(e,t){for(var n,r,o,i=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(i[a]=yt.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&jt(r)&&(i[a]=yt.access(r,"olddisplay",x(r.nodeName)))):(o=jt(r),"none"===n&&o||yt.set(r,"olddisplay",o?n:Z.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function E(e,t,n,r,o){return new E.prototype.init(e,t,n,r,o)}function D(){return setTimeout(function(){Jt=void 0}),Jt=Z.now()}function q(e,t){var n,r=0,o={height:e};for(t=t?1:0;4>r;r+=2-t)n=Tt[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Q(e,t,n){for(var r,o=(nn[t]||[]).concat(nn["*"]),i=0,a=o.length;a>i;i++)if(r=o[i].call(n,t,e))return r}function A(e,t,n){var r,o,i,a,s,u,l,c,d=this,p={},f=e.style,h=e.nodeType&&jt(e),g=yt.get(e,"fxshow");n.queue||(s=Z._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,Z.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],l=Z.css(e,"display"),c="none"===l?yt.get(e,"olddisplay")||x(e.nodeName):l,"inline"===c&&"none"===Z.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(r in t)if(o=t[r],Yt.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(h?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;h=!0}p[r]=g&&g[r]||Z.style(e,r)}else l=void 0;if(Z.isEmptyObject(p))"inline"===("none"===l?x(e.nodeName):l)&&(f.display=l);else{g?"hidden"in g&&(h=g.hidden):g=yt.access(e,"fxshow",{}),i&&(g.hidden=!h),h?Z(e).show():d.done(function(){Z(e).hide()}),d.done(function(){var t;yt.remove(e,"fxshow");for(t in p)Z.style(e,t,p[t])});for(r in p)a=Q(h?g[r]:0,r,d),r in g||(g[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function L(e,t){var n,r,o,i,a;for(n in e)if(r=Z.camelCase(n),o=t[r],i=e[n],Z.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),a=Z.cssHooks[r],a&&"expand"in a){i=a.expand(i),delete e[r];for(n in i)n in e||(e[n]=i[n],t[n]=o)}else t[r]=o}function H(e,t,n){var r,o,i=0,a=tn.length,s=Z.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=Jt||D(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,i=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(i);return s.notifyWith(e,[l,i,n]),1>i&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Jt||D(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Z.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(L(c,l.opts.specialEasing);a>i;i++)if(r=tn[i].call(l,e,c,l.opts))return r;return Z.map(c,Q,l),Z.isFunction(l.opts.start)&&l.opts.start.call(e,l),Z.fx.timer(Z.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function I(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(ft)||[];if(Z.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function O(e,t,n,r){function o(s){var u;return i[s]=!0,Z.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||i[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),o(l),!1)}),u}var i={},a=e===xn;return o(t.dataTypes[0])||!i["*"]&&o("*")}function R(e,t){var n,r,o=Z.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&Z.extend(!0,e,r),e}function F(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}return i?(i!==u[0]&&u.unshift(i),n[i]):void 0}function P(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(a=l[u+" "+i]||l["* "+i],!a)for(o in l)if(s=o.split(" "),s[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[o]:l[o]!==!0&&(i=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function B(e,t,n,r){var o;if(Z.isArray(t))Z.each(t,function(t,o){n||Cn.test(e)?r(e,o):B(e+"["+("object"==typeof o?t:"")+"]",o,n,r)});else if(n||"object"!==Z.type(t))r(e,t);else for(o in t)B(e+"["+o+"]",t[o],n,r)}function M(e){return Z.isWindow(e)?e:9===e.nodeType&&e.defaultView}var W=[],$=W.slice,_=W.concat,z=W.push,U=W.indexOf,X={},V=X.toString,G=X.hasOwnProperty,J={},K=e.document,Y="2.1.3",Z=function(e,t){return new Z.fn.init(e,t)},et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,tt=/^-ms-/,nt=/-([\da-z])/gi,rt=function(e,t){return t.toUpperCase()};Z.fn=Z.prototype={jquery:Y,constructor:Z,selector:"",length:0,toArray:function(){return $.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:$.call(this)},pushStack:function(e){var t=Z.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Z.each(this,e,t)},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack($.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:z,sort:W.sort,splice:W.splice},Z.extend=Z.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||Z.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(l&&r&&(Z.isPlainObject(r)||(o=Z.isArray(r)))?(o?(o=!1,i=n&&Z.isArray(n)?n:[]):i=n&&Z.isPlainObject(n)?n:{},a[t]=Z.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},Z.extend({expando:"jQuery"+(Y+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Z.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==Z.type(e)||e.nodeType||Z.isWindow(e)?!1:e.constructor&&!G.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?X[V.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Z.trim(e),e&&(1===e.indexOf("use strict")?(t=K.createElement("script"),t.text=e,K.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(tt,"ms-").replace(nt,rt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var o,i=0,a=e.length,s=n(e);if(r){if(s)for(;a>i&&(o=t.apply(e[i],r),o!==!1);i++);else for(i in e)if(o=t.apply(e[i],r),o===!1)break}else if(s)for(;a>i&&(o=t.call(e[i],i,e[i]),o!==!1);i++);else for(i in e)if(o=t.call(e[i],i,e[i]),o===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(et,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?Z.merge(r,"string"==typeof e?[e]:e):z.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:U.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;n>r;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],i=0,a=e.length,s=!n;a>i;i++)r=!t(e[i],i),r!==s&&o.push(e[i]);return o},map:function(e,t,r){var o,i=0,a=e.length,s=n(e),u=[];if(s)for(;a>i;i++)o=t(e[i],i,r),null!=o&&u.push(o);else for(i in e)o=t(e[i],i,r),null!=o&&u.push(o);return _.apply([],u)},guid:1,proxy:function(e,t){var n,r,o;return"string"==typeof t&&(n=e[t],t=e,e=n),Z.isFunction(e)?(r=$.call(arguments,2),o=function(){return e.apply(t||this,r.concat($.call(arguments)))},o.guid=e.guid=e.guid||Z.guid++,o):void 0},now:Date.now,support:J}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){X["[object "+t+"]"]=t.toLowerCase()});var ot=function(e){function t(e,t,n,r){var o,i,a,s,u,l,d,f,h,g;if((t?t.ownerDocument||t:B)!==A&&Q(t),t=t||A,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&H){if(11!==s&&(o=vt.exec(e)))if(a=o[1]){if(9===s){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&F(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Y.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&w.getElementsByClassName)return Y.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!I||!I.test(e))){if(f=d=P,h=t,g=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=C(e),(d=t.getAttribute("id"))?f=d.replace(xt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+p(l[u]);h=bt.test(e)&&c(t.parentNode)||t,g=l.join(",")}if(g)try{return Y.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{d||t.removeAttribute("id")}}}return S(e.replace(ut,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function o(e){var t=A.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),r=e.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=W++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,u,l=[M,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if(u=t[P]||(t[P]={}),(s=u[r])&&s[0]===M&&s[1]===i)return l[2]=s[2];if(u[r]=l,l[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var o=0,i=n.length;i>o;o++)t(e,n[o],r);return r}function m(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(i=e[s])&&(!n||n(i,r,o))&&(a.push(i),l&&t.push(s));return a}function y(e,t,n,o,i,a){return o&&!o[P]&&(o=y(o)),i&&!i[P]&&(i=y(i,a)),r(function(r,a,s,u){var l,c,d,p=[],f=[],h=a.length,y=r||g(t||"*",s.nodeType?[s]:s,[]),v=!e||!r&&t?y:m(y,p,e,s,u),b=n?i||(r?e:h||o)?[]:a:v;if(n&&n(v,b,s,u),o)for(l=m(b,f),o(l,[],s,u),c=l.length;c--;)(d=l[c])&&(b[f[c]]=!(v[f[c]]=d));if(r){if(i||e){if(i){for(l=[],c=b.length;c--;)(d=b[c])&&l.push(v[c]=d);i(null,b=[],l,u)}for(c=b.length;c--;)(d=b[c])&&(l=i?et(r,d):p[c])>-1&&(r[l]=!(a[l]=d))}}else b=m(b===a?b.splice(h,b.length):b),i?i(null,a,b,u):Y.apply(a,b)})}function v(e){for(var t,n,r,o=e.length,i=T.relative[e[0].type],a=i||T.relative[" "],s=i?1:0,u=f(function(e){return e===t},a,!0),l=f(function(e){return et(t,e)>-1},a,!0),c=[function(e,n,r){var o=!i&&(r||n!==E)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,o}];o>s;s++)if(n=T.relative[e[s].type])c=[f(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;o>r&&!T.relative[e[r].type];r++);return y(s>1&&h(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&v(e.slice(s,r)),o>r&&v(e=e.slice(r)),o>r&&p(e))}c.push(n)}return h(c)}function b(e,n){var o=n.length>0,i=e.length>0,a=function(r,a,s,u,l){var c,d,p,f=0,h="0",g=r&&[],y=[],v=E,b=r||i&&T.find.TAG("*",l),x=M+=null==v?1:Math.random()||.1,w=b.length;for(l&&(E=a!==A&&a);h!==w&&null!=(c=b[h]);h++){if(i&&c){for(d=0;p=e[d++];)if(p(c,a,s)){u.push(c);break}l&&(M=x)}o&&((c=!p&&c)&&f--,r&&g.push(c))}if(f+=h,o&&h!==f){for(d=0;p=n[d++];)p(g,y,a,s);if(r){if(f>0)for(;h--;)g[h]||y[h]||(y[h]=J.call(u));y=m(y)}Y.apply(u,y),l&&!r&&y.length>0&&f+n.length>1&&t.uniqueSort(u)}return l&&(M=x,E=v),g};return o?r(a):a}var x,w,T,j,k,C,N,S,E,D,q,Q,A,L,H,I,O,R,F,P="sizzle"+1*new Date,B=e.document,M=0,W=0,$=n(),_=n(),z=n(),U=function(e,t){return e===t&&(q=!0),0},X=1<<31,V={}.hasOwnProperty,G=[],J=G.pop,K=G.push,Y=G.push,Z=G.slice,et=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=rt.replace("w","w#"),it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),dt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(at),ft=new RegExp("^"+ot+"$"),ht={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Tt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},jt=function(){Q()};try{Y.apply(G=Z.call(B.childNodes),B.childNodes),G[B.childNodes.length].nodeType}catch(kt){Y={apply:G.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},Q=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,L=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",jt,!1):n.attachEvent&&n.attachEvent("onunload",jt)),H=!k(r),w.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=o(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=yt.test(r.getElementsByClassName),w.getById=o(function(e){return L.appendChild(e).id=P,!r.getElementsByName||!r.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},T.find.CLASS=w.getElementsByClassName&&function(e,t){return H?t.getElementsByClassName(e):void 0},O=[],I=[],(w.qsa=yt.test(r.querySelectorAll))&&(o(function(e){L.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+nt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||I.push("\\["+nt+"*(?:value|"+tt+")"),e.querySelectorAll("[id~="+P+"-]").length||I.push("~="),e.querySelectorAll(":checked").length||I.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||I.push(".#.+[+~]")}),o(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&I.push("name"+nt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),I.push(",.*:")})),(w.matchesSelector=yt.test(R=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(e){w.disconnectedMatch=R.call(e,"div"),R.call(e,"[s!='']:x"),O.push("!=",at)}),I=I.length&&new RegExp(I.join("|")),O=O.length&&new RegExp(O.join("|")),t=yt.test(L.compareDocumentPosition),F=t||yt.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return q=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===B&&F(B,e)?-1:t===r||t.ownerDocument===B&&F(B,t)?1:D?et(D,e)-et(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return q=!0,0;var n,o=0,i=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!i||!s)return e===r?-1:t===r?1:i?-1:s?1:D?et(D,e)-et(D,t):0;if(i===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[o]===l[o];)o++;return o?a(u[o],l[o]):u[o]===B?-1:l[o]===B?1:0},r):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&Q(e),n=n.replace(dt,"='$1']"),!(!w.matchesSelector||!H||O&&O.test(n)||I&&I.test(n)))try{var r=R.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(o){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&Q(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&Q(e);var n=T.attrHandle[t.toLowerCase()],r=n&&V.call(T.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==r?r:w.attributes||!H?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,o=0;if(q=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),q){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return D=null,e},j=t.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=j(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=j(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(wt,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pt.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(wt,Tt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+nt+")"+e+"("+nt+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(o){var i=t.attr(o,e);return null==i?"!="===n:n?(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(st," ")+" ").indexOf(r)>-1:"|="===n?i===r||i.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,p,f,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(i){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(c=m[P]||(m[P]={}),l=c[e]||[],f=l[0]===M&&l[1],p=l[0]===M&&l[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===t){c[e]=[M,f,p];break}}else if(v&&(l=(t[P]||(t[P]={}))[e])&&l[0]===M)p=l[1];else for(;(d=++f&&d&&d[g]||(p=f=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++p||(v&&((d[P]||(d[P]={}))[e]=[M,p]),d!==t)););return p-=o,p===r||p%r===0&&p/r>=0}}},PSEUDO:function(e,n){var o,i=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[P]?i(n):i.length>1?(o=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,o=i(e,n),a=o.length;a--;)r=et(e,o[a]),e[r]=!(t[r]=o[a])}):function(e){return i(e,0,o)}):i}},pseudos:{not:r(function(e){var t=[],n=[],o=N(e.replace(ut,"$1"));return o[P]?r(function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(wt,Tt),function(t){return(t.textContent||t.innerText||j(t)).indexOf(e)>-1}}),lang:r(function(e){return ft.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,Tt).toLowerCase(),function(t){var n;do if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return mt.test(e.nodeName)},input:function(e){return gt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=u(x);return d.prototype=T.filters=T.pseudos,T.setFilters=new d,C=t.tokenize=function(e,n){var r,o,i,a,s,u,l,c=_[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=T.preFilter;s;){(!r||(o=lt.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),r=!1,(o=ct.exec(s))&&(r=o.shift(),i.push({value:r,type:o[0].replace(ut," ")}),s=s.slice(r.length));for(a in T.filter)!(o=ht[a].exec(s))||l[a]&&!(o=l[a](o))||(r=o.shift(),i.push({value:r,type:a,matches:o}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):_(e,u).slice(0)},N=t.compile=function(e,t){var n,r=[],o=[],i=z[e+" "];if(!i){for(t||(t=C(e)),n=t.length;n--;)i=v(t[n]),i[P]?r.push(i):o.push(i);i=z(e,b(o,r)),i.selector=e}return i},S=t.select=function(e,t,n,r){var o,i,a,s,u,l="function"==typeof e&&e,d=!r&&C(e=l.selector||e);if(n=n||[],1===d.length){if(i=d[0]=d[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&w.getById&&9===t.nodeType&&H&&T.relative[i[1].type]){if(t=(T.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=ht.needsContext.test(e)?0:i.length;o--&&(a=i[o],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(wt,Tt),bt.test(i[0].type)&&c(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&p(i),!e)return Y.apply(n,r),n;break}}return(l||N(e,d))(r,t,!H,n,bt.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!q,Q(),w.sortDetached=o(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||i(tt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Z.find=ot,Z.expr=ot.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=ot.uniqueSort,Z.text=ot.getText,Z.isXMLDoc=ot.isXML,Z.contains=ot.contains;var it=Z.expr.match.needsContext,at=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;Z.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Z.find.matchesSelector(r,e)?[r]:[]:Z.find.matches(e,Z.grep(t,function(e){return 1===e.nodeType}))},Z.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(Z(e).filter(function(){for(t=0;n>t;t++)if(Z.contains(o[t],this))return!0
  2. }));for(t=0;n>t;t++)Z.find(e,o[t],r);return r=this.pushStack(n>1?Z.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&it.test(e)?Z(e):e||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=Z.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:lt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ut).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Z?t[0]:t,Z.merge(this,Z.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:K,!0)),at.test(n[1])&&Z.isPlainObject(t))for(n in t)Z.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=K.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=K,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Z.isFunction(e)?"undefined"!=typeof ut.ready?ut.ready(e):e(Z):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))};ct.prototype=Z.fn,ut=Z(K);var dt=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&Z(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Z.fn.extend({has:function(e){var t=Z(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Z.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=it.test(e)||"string"!=typeof e?Z(e,t||this.context):0;o>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?Z.unique(i):i)},index:function(e){return e?"string"==typeof e?U.call(Z(e),this[0]):U.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Z.unique(Z.merge(this.get(),Z(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(n,r){var o=Z.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=Z.filter(r,o)),this.length>1&&(pt[e]||Z.unique(o),dt.test(e)&&o.reverse()),this.pushStack(o)}});var ft=/\S+/g,ht={};Z.Callbacks=function(e){e="string"==typeof e?ht[e]||i(e):Z.extend({},e);var t,n,r,o,a,s,u=[],l=!e.once&&[],c=function(i){for(t=e.memory&&i,n=!0,s=o||0,o=0,a=u.length,r=!0;u&&a>s;s++)if(u[s].apply(i[0],i[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,u&&(l?l.length&&c(l.shift()):t?u=[]:d.disable())},d={add:function(){if(u){var n=u.length;!function i(t){Z.each(t,function(t,n){var r=Z.type(n);"function"===r?e.unique&&d.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})}(arguments),r?a=u.length:t&&(o=n,c(t))}return this},remove:function(){return u&&Z.each(arguments,function(e,t){for(var n;(n=Z.inArray(t,u,n))>-1;)u.splice(n,1),r&&(a>=n&&a--,s>=n&&s--)}),this},has:function(e){return e?Z.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=l=t=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,t||d.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!u||n&&!l||(t=t||[],t=[e,t.slice?t.slice():t],r?l.push(t):c(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(n){Z.each(t,function(t,i){var a=Z.isFunction(e[t])&&e[t];o[i[1]](function(){var e=a&&a.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,r):r}},o={};return r.pipe=r.then,Z.each(t,function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=$.call(arguments),a=i.length,s=1!==a||e&&Z.isFunction(e.promise)?a:0,u=1===s?e:Z.Deferred(),l=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?$.call(arguments):o,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>o;o++)i[o]&&Z.isFunction(i[o].promise)?i[o].promise().done(l(o,r,i)).fail(u.reject).progress(l(o,n,t)):--s;return s||u.resolveWith(r,i),u.promise()}});var gt;Z.fn.ready=function(e){return Z.ready.promise().done(e),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){(e===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,e!==!0&&--Z.readyWait>0||(gt.resolveWith(K,[Z]),Z.fn.triggerHandler&&(Z(K).triggerHandler("ready"),Z(K).off("ready"))))}}),Z.ready.promise=function(t){return gt||(gt=Z.Deferred(),"complete"===K.readyState?setTimeout(Z.ready):(K.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",a,!1))),gt.promise(t)},Z.ready.promise();var mt=Z.access=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===Z.type(n)){o=!0;for(s in n)Z.access(e,t,s,n[s],!0,i,a)}else if(void 0!==r&&(o=!0,Z.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(Z(e),n)})),t))for(;u>s;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i};Z.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},s.uid=1,s.accepts=Z.acceptData,s.prototype={key:function(e){if(!s.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=s.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,Z.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,o=this.key(e),i=this.cache[o];if("string"==typeof t)i[t]=n;else if(Z.isEmptyObject(i))Z.extend(this.cache[o],t);else for(r in t)i[r]=t[r];return i},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,Z.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=this.key(e),a=this.cache[i];if(void 0===t)this.cache[i]={};else{Z.isArray(t)?r=t.concat(t.map(Z.camelCase)):(o=Z.camelCase(t),t in a?r=[t,o]:(r=o,r=r in a?[r]:r.match(ft)||[])),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!Z.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var yt=new s,vt=new s,bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;Z.extend({hasData:function(e){return vt.hasData(e)||yt.hasData(e)},data:function(e,t,n){return vt.access(e,t,n)},removeData:function(e,t){vt.remove(e,t)},_data:function(e,t,n){return yt.access(e,t,n)},_removeData:function(e,t){yt.remove(e,t)}}),Z.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=vt.get(i),1===i.nodeType&&!yt.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=Z.camelCase(r.slice(5)),u(i,r,o[r])));yt.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){vt.set(this,e)}):mt(this,function(t){var n,r=Z.camelCase(e);if(i&&void 0===t){if(n=vt.get(i,e),void 0!==n)return n;if(n=vt.get(i,r),void 0!==n)return n;if(n=u(i,r,void 0),void 0!==n)return n}else this.each(function(){var n=vt.get(this,r);vt.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&vt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){vt.remove(this,e)})}}),Z.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=yt.get(e,t),n&&(!r||Z.isArray(n)?r=yt.access(e,t,Z.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),r=n.length,o=n.shift(),i=Z._queueHooks(e,t),a=function(){Z.dequeue(e,t)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return yt.get(e,n)||yt.access(e,n,{empty:Z.Callbacks("once memory").add(function(){yt.remove(e,[t+"queue",n])})})}}),Z.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):void 0===t?this:this.each(function(){var n=Z.queue(this,e,t);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=Z.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=yt.get(i[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Tt=["Top","Right","Bottom","Left"],jt=function(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)},kt=/^(?:checkbox|radio)$/i;!function(){var e=K.createDocumentFragment(),t=e.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),J.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",J.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";J.focusinBubbles="onfocusin"in e;var Nt=/^key/,St=/^(?:mouse|pointer|contextmenu)|click/,Et=/^(?:focusinfocus|focusoutblur)$/,Dt=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,d,p,f,h,g,m=yt.get(e);if(m)for(n.handler&&(i=n,n=i.handler,o=i.selector),n.guid||(n.guid=Z.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof Z!==Ct&&Z.event.triggered!==t.type?Z.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(ft)||[""],l=t.length;l--;)s=Dt.exec(t[l])||[],f=g=s[1],h=(s[2]||"").split(".").sort(),f&&(d=Z.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=Z.event.special[f]||{},c=Z.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&Z.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[f])||(p=u[f]=[],p.delegateCount=0,d.setup&&d.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(f,a,!1)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),Z.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,d,p,f,h,g,m=yt.hasData(e)&&yt.get(e);if(m&&(u=m.events)){for(t=(t||"").match(ft)||[""],l=t.length;l--;)if(s=Dt.exec(t[l])||[],f=g=s[1],h=(s[2]||"").split(".").sort(),f){for(d=Z.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,p=u[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!o&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&d.teardown.call(e,h,m.handle)!==!1||Z.removeEvent(e,f,m.handle),delete u[f])}else for(f in u)Z.event.remove(e,f+t[l],n,r,!0);Z.isEmptyObject(u)&&(delete m.handle,yt.remove(e,"events"))}},trigger:function(t,n,r,o){var i,a,s,u,l,c,d,p=[r||K],f=G.call(t,"type")?t.type:t,h=G.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Et.test(f+Z.event.triggered)&&(f.indexOf(".")>=0&&(h=f.split("."),f=h.shift(),h.sort()),l=f.indexOf(":")<0&&"on"+f,t=t[Z.expando]?t:new Z.Event(f,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Z.makeArray(n,[t]),d=Z.event.special[f]||{},o||!d.trigger||d.trigger.apply(r,n)!==!1)){if(!o&&!d.noBubble&&!Z.isWindow(r)){for(u=d.delegateType||f,Et.test(u+f)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||K)&&p.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=p[i++])&&!t.isPropagationStopped();)t.type=i>1?u:d.bindType||f,c=(yt.get(a,"events")||{})[t.type]&&yt.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&Z.acceptData(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=f,o||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!Z.acceptData(r)||l&&Z.isFunction(r[f])&&!Z.isWindow(r)&&(s=r[l],s&&(r[l]=null),Z.event.triggered=f,r[f](),Z.event.triggered=void 0,s&&(r[l]=s)),t.result}},dispatch:function(e){e=Z.event.fix(e);var t,n,r,o,i,a=[],s=$.call(arguments),u=(yt.get(this,"events")||{})[e.type]||[],l=Z.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=Z.event.handlers.call(this,e,u),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((Z.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;s>n;n++)i=t[n],o=i.selector+" ",void 0===r[o]&&(r[o]=i.needsContext?Z(o,this).index(u)>=0:Z.find(o,this,null,[u]).length),r[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||K,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,n,r,o=e.type,i=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=St.test(o)?this.mouseHooks:Nt.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new Z.Event(i),t=r.length;t--;)n=r[t],e[n]=i[n];return e.target||(e.target=K),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==d()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===d()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return Z.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var o=Z.extend(new Z.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?Z.event.trigger(o,null,t):Z.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?l:c):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(e,t)},Z.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=l,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return(!o||o!==r&&!Z.contains(r,o))&&(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),J.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=yt.access(r,t);o||r.addEventListener(e,n,!0),yt.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=yt.access(r,t)-1;o?yt.access(r,t,o):(r.removeEventListener(e,n,!0),yt.remove(r,t))}}}),Z.fn.extend({on:function(e,t,n,r,o){var i,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],o);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=c;else if(!r)return this;return 1===o&&(i=r,r=function(e){return Z().off(e),i.apply(this,arguments)},r.guid=i.guid||(i.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Z(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=c),this.each(function(){Z.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Z.event.trigger(e,t,n,!0):void 0}});var qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Qt=/<([\w:]+)/,At=/<|&#?\w+;/,Lt=/<(?:script|style|link)/i,Ht=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^$|\/(?:java|ecma)script/i,Ot=/^true\/(.*)/,Rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ft={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,Z.extend({clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=Z.contains(e.ownerDocument,e);if(!(J.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(a=y(s),i=y(e),r=0,o=i.length;o>r;r++)v(i[r],a[r]);if(t)if(n)for(i=i||y(e),a=a||y(s),r=0,o=i.length;o>r;r++)m(i[r],a[r]);else m(e,s);return a=y(s,"script"),a.length>0&&g(a,!u&&y(e,"script")),s},buildFragment:function(e,t,n,r){for(var o,i,a,s,u,l,c=t.createDocumentFragment(),d=[],p=0,f=e.length;f>p;p++)if(o=e[p],o||0===o)if("object"===Z.type(o))Z.merge(d,o.nodeType?[o]:o);else if(At.test(o)){for(i=i||c.appendChild(t.createElement("div")),a=(Qt.exec(o)||["",""])[1].toLowerCase(),s=Ft[a]||Ft._default,i.innerHTML=s[1]+o.replace(qt,"<$1></$2>")+s[2],l=s[0];l--;)i=i.lastChild;Z.merge(d,i.childNodes),i=c.firstChild,i.textContent=""}else d.push(t.createTextNode(o));for(c.textContent="",p=0;o=d[p++];)if((!r||-1===Z.inArray(o,r))&&(u=Z.contains(o.ownerDocument,o),i=y(c.appendChild(o),"script"),u&&g(i),n))for(l=0;o=i[l++];)It.test(o.type||"")&&n.push(o);return c},cleanData:function(e){for(var t,n,r,o,i=Z.event.special,a=0;void 0!==(n=e[a]);a++){if(Z.acceptData(n)&&(o=n[yt.expando],o&&(t=yt.cache[o]))){if(t.events)for(r in t.events)i[r]?Z.event.remove(n,r):Z.removeEvent(n,r,t.handle);yt.cache[o]&&delete yt.cache[o]}delete vt.cache[n[vt.expando]]}}}),Z.fn.extend({text:function(e){return mt(this,function(e){return void 0===e?Z.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Z.filter(e,this):this,o=0;null!=(n=r[o]);o++)t||1!==n.nodeType||Z.cleanData(y(n)),n.parentNode&&(t&&Z.contains(n.ownerDocument,n)&&g(y(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Z.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return mt(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Lt.test(e)&&!Ft[(Qt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(qt,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(Z.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(o){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Z.cleanData(y(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=_.apply([],e);var n,r,o,i,a,s,u=0,l=this.length,c=this,d=l-1,p=e[0],g=Z.isFunction(p);if(g||l>1&&"string"==typeof p&&!J.checkClone&&Ht.test(p))return this.each(function(n){var r=c.eq(n);g&&(e[0]=p.call(this,n,r.html())),r.domManip(e,t)});if(l&&(n=Z.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(o=Z.map(y(n,"script"),f),i=o.length;l>u;u++)a=n,u!==d&&(a=Z.clone(a,!0,!0),i&&Z.merge(o,y(a,"script"))),t.call(this[u],a,u);if(i)for(s=o[o.length-1].ownerDocument,Z.map(o,h),u=0;i>u;u++)a=o[u],It.test(a.type||"")&&!yt.access(a,"globalEval")&&Z.contains(s,a)&&(a.src?Z._evalUrl&&Z._evalUrl(a.src):Z.globalEval(a.textContent.replace(Rt,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(e){for(var n,r=[],o=Z(e),i=o.length-1,a=0;i>=a;a++)n=a===i?this:this.clone(!0),Z(o[a])[t](n),z.apply(r,n.get());return this.pushStack(r)}});var Pt,Bt={},Mt=/^margin/,Wt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),$t=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",o.appendChild(i);var t=e.getComputedStyle(a,null);n="1%"!==t.top,r="4px"===t.width,o.removeChild(i)}var n,r,o=K.documentElement,i=K.createElement("div"),a=K.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",J.clearCloneStyle="content-box"===a.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(a),e.getComputedStyle&&Z.extend(J,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,n=a.appendChild(K.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",o.appendChild(i),t=!parseFloat(e.getComputedStyle(n,null).marginRight),o.removeChild(i),a.removeChild(n),t}}))}(),Z.swap=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];o=n.apply(e,r||[]);for(i in t)e.style[i]=a[i];return o};var _t=/^(none|table(?!-c[ea]).+)/,zt=new RegExp("^("+wt+")(.*)$","i"),Ut=new RegExp("^([+-])=("+wt+")","i"),Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"},Gt=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=w(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=Z.camelCase(t),u=e.style;return t=Z.cssProps[s]||(Z.cssProps[s]=j(u,s)),a=Z.cssHooks[t]||Z.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t]:(i=typeof n,"string"===i&&(o=Ut.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(Z.css(e,t)),i="number"),void(null!=n&&n===n&&("number"!==i||Z.cssNumber[s]||(n+="px"),J.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))))}},css:function(e,t,n,r){var o,i,a,s=Z.camelCase(t);return t=Z.cssProps[s]||(Z.cssProps[s]=j(e.style,s)),a=Z.cssHooks[t]||Z.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=w(e,t,r)),"normal"===o&&t in Vt&&(o=Vt[t]),""===n||n?(i=parseFloat(o),n===!0||Z.isNumeric(i)?i||0:o):o}}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,n,r){return n?_t.test(Z.css(e,"display"))&&0===e.offsetWidth?Z.swap(e,Xt,function(){return N(e,t,r)}):N(e,t,r):void 0},set:function(e,n,r){var o=r&&$t(e);return k(e,n,r?C(e,t,r,"border-box"===Z.css(e,"boxSizing",!1,o),o):0)}}}),Z.cssHooks.marginRight=T(J.reliableMarginRight,function(e,t){return t?Z.swap(e,{display:"inline-block"},w,[e,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];4>r;r++)o[e+Tt[r]+t]=i[r]||i[r-2]||i[0];return o}},Mt.test(e)||(Z.cssHooks[e+t].set=k)}),Z.fn.extend({css:function(e,t){return mt(this,function(e,t,n){var r,o,i={},a=0;if(Z.isArray(t)){for(r=$t(e),o=t.length;o>a;a++)i[t[a]]=Z.css(e,t[a],!1,r);return i}return void 0!==n?Z.style(e,t,n):Z.css(e,t)},e,t,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){jt(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=E,E.prototype={constructor:E,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(Z.cssNumber[n]?"":"px")},cur:function(){var e=E.propHooks[this.prop];return e&&e.get?e.get(this):E.propHooks._default.get(this)},run:function(e){var t,n=E.propHooks[this.prop];return this.pos=t=this.options.duration?Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.fx=E.prototype.init,Z.fx.step={};var Jt,Kt,Yt=/^(?:toggle|show|hide)$/,Zt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),en=/queueHooks$/,tn=[A],nn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),o=Zt.exec(t),i=o&&o[3]||(Z.cssNumber[e]?"":"px"),a=(Z.cssNumber[e]||"px"!==i&&+r)&&Zt.exec(Z.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==i){i=i||a[3],o=o||[],a=+r||1;do s=s||".5",a/=s,Z.style(n.elem,e,a+i);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return o&&(a=n.start=+a||+r||0,n.unit=i,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};Z.Animation=Z.extend(H,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;o>r;r++)n=e[r],nn[n]=nn[n]||[],nn[n].unshift(t)},prefilter:function(e,t){t?tn.unshift(e):tn.push(e)}}),Z.speed=function(e,t,n){var r=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&t};return r.duration=Z.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Z.fx.speeds?Z.fx.speeds[r.duration]:Z.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Z.isFunction(r.old)&&r.old.call(this),r.queue&&Z.dequeue(this,r.queue)},r},Z.fn.extend({fadeTo:function(e,t,n,r){return this.filter(jt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=Z.isEmptyObject(e),i=Z.speed(t,n,r),a=function(){var t=H(this,Z.extend({},e),i);(o||yt.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||i.queue===!1?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=Z.timers,a=yt.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&en.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));(t||!n)&&Z.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=yt.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=Z.timers,a=r?r.length:0;for(n.finish=!0,Z.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);
  3. delete n.finish})}}),Z.each(["toggle","show","hide"],function(e,t){var n=Z.fn[t];Z.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(q(t,!0),e,r,o)}}),Z.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Z.timers=[],Z.fx.tick=function(){var e,t=0,n=Z.timers;for(Jt=Z.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Z.fx.stop(),Jt=void 0},Z.fx.timer=function(e){Z.timers.push(e),e()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Kt||(Kt=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Kt),Kt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=K.createElement("input"),t=K.createElement("select"),n=t.appendChild(K.createElement("option"));e.type="checkbox",J.checkOn=""!==e.value,J.optSelected=n.selected,t.disabled=!0,J.optDisabled=!n.disabled,e=K.createElement("input"),e.value="t",e.type="radio",J.radioValue="t"===e.value}();var rn,on,an=Z.expr.attrHandle;Z.fn.extend({attr:function(e,t){return mt(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})}}),Z.extend({attr:function(e,t,n){var r,o,i=e.nodeType;return e&&3!==i&&8!==i&&2!==i?typeof e.getAttribute===Ct?Z.prop(e,t,n):(1===i&&Z.isXMLDoc(e)||(t=t.toLowerCase(),r=Z.attrHooks[t]||(Z.expr.match.bool.test(t)?on:rn)),void 0===n?r&&"get"in r&&null!==(o=r.get(e,t))?o:(o=Z.find.attr(e,t),null==o?void 0:o):null!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void Z.removeAttr(e,t)):void 0},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(ft);if(i&&1===e.nodeType)for(;n=i[o++];)r=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!J.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),on={set:function(e,t,n){return t===!1?Z.removeAttr(e,n):e.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(e,t){var n=an[t]||Z.find.attr;an[t]=function(e,t,r){var o,i;return r||(i=an[t],an[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,an[t]=i),o}});var sn=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(e,t){return mt(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Z.propFix[e]||e]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,o,i,a=e.nodeType;return e&&3!==a&&8!==a&&2!==a?(i=1!==a||!Z.isXMLDoc(e),i&&(t=Z.propFix[t]||t,o=Z.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]):void 0},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||sn.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),J.optSelected||(Z.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var un=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(e){var t,n,r,o,i,a,s="string"==typeof e&&e,u=0,l=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(ft)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):" ")){for(i=0;o=t[i++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=Z.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,o,i,a,s=0===arguments.length||"string"==typeof e&&e,u=0,l=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(s)for(t=(e||"").match(ft)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):"")){for(i=0;o=t[i++];)for(;r.indexOf(" "+o+" ")>=0;)r=r.replace(" "+o+" "," ");a=e?Z.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(Z.isFunction(e)?function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,o=Z(this),i=e.match(ft)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===Ct||"boolean"===n)&&(this.className&&yt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":yt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(un," ").indexOf(t)>=0)return!0;return!1}});var ln=/\r/g;Z.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=Z.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=r?e.call(this,n,Z(this).val()):e,null==o?o="":"number"==typeof o?o+="":Z.isArray(o)&&(o=Z.map(o,function(e){return null==e?"":e+""})),t=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=Z.valHooks[o.type]||Z.valHooks[o.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(ln,""):null==n?"":n)):void 0}}),Z.extend({valHooks:{option:{get:function(e){var t=Z.find.attr(e,"value");return null!=t?t:Z.trim(Z.text(e))}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||0>o,a=i?null:[],s=i?o+1:r.length,u=0>o?s:i?o:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==o||(J.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Z.nodeName(n.parentNode,"optgroup"))){if(t=Z(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,r,o=e.options,i=Z.makeArray(t),a=o.length;a--;)r=o[a],(r.selected=Z.inArray(r.value,i)>=0)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(e,t){return Z.isArray(t)?e.checked=Z.inArray(Z(e).val(),t)>=0:void 0}},J.checkOn||(Z.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Z.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Z.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var cn=Z.now(),dn=/\?/;Z.parseJSON=function(e){return JSON.parse(e+"")},Z.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+e),t};var pn=/#.*$/,fn=/([?&])_=[^&]*/,hn=/^(.*?):[ \t]*([^\r\n]*)$/gm,gn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,mn=/^(?:GET|HEAD)$/,yn=/^\/\//,vn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,bn={},xn={},wn="*/".concat("*"),Tn=e.location.href,jn=vn.exec(Tn.toLowerCase())||[];Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tn,type:"GET",isLocal:gn.test(jn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wn,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":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?R(R(e,Z.ajaxSettings),t):R(Z.ajaxSettings,e)},ajaxPrefilter:I(bn),ajaxTransport:I(xn),ajax:function(e,t){function n(e,t,n,a){var u,c,y,v,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),r=void 0,i=a||"",w.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(v=F(d,w,n)),v=P(d,v,w,u),u?(d.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(Z.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(Z.etag[o]=x)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=v.state,c=v.data,y=v.error,u=!y)):(y=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",u?h.resolveWith(p,[c,T,w]):h.rejectWith(p,[w,T,y]),w.statusCode(m),m=void 0,l&&f.trigger(u?"ajaxSuccess":"ajaxError",[w,d,u?c:y]),g.fireWith(p,[w,T]),l&&(f.trigger("ajaxComplete",[w,d]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,a,s,u,l,c,d=Z.ajaxSetup({},t),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?Z(p):Z.event,h=Z.Deferred(),g=Z.Callbacks("once memory"),m=d.statusCode||{},y={},v={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=hn.exec(i);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return r&&r.abort(t),n(0,t),this}};if(h.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||Tn)+"").replace(pn,"").replace(yn,jn[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=Z.trim(d.dataType||"*").toLowerCase().match(ft)||[""],null==d.crossDomain&&(u=vn.exec(d.url.toLowerCase()),d.crossDomain=!(!u||u[1]===jn[1]&&u[2]===jn[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(jn[3]||("http:"===jn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Z.param(d.data,d.traditional)),O(bn,d,t,w),2===b)return w;l=Z.event&&d.global,l&&0===Z.active++&&Z.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!mn.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(dn.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=fn.test(o)?o.replace(fn,"$1_="+cn++):o+(dn.test(o)?"&":"?")+"_="+cn++)),d.ifModified&&(Z.lastModified[o]&&w.setRequestHeader("If-Modified-Since",Z.lastModified[o]),Z.etag[o]&&w.setRequestHeader("If-None-Match",Z.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+wn+"; q=0.01":""):d.accepts["*"]);for(c in d.headers)w.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(d.beforeSend.call(p,w,d)===!1||2===b))return w.abort();x="abort";for(c in{success:1,error:1,complete:1})w[c](d[c]);if(r=O(xn,d,t,w)){w.readyState=1,l&&f.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},d.timeout));try{b=1,r.send(y,n)}catch(T){if(!(2>b))throw T;n(-1,T)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},getScript:function(e,t){return Z.get(e,void 0,t,"script")}}),Z.each(["get","post"],function(e,t){Z[t]=function(e,n,r,o){return Z.isFunction(n)&&(o=o||r,r=n,n=void 0),Z.ajax({url:e,type:t,dataType:o,data:n,success:r})}}),Z._evalUrl=function(e){return Z.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(e){var t;return Z.isFunction(e)?this.each(function(t){Z(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Z(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(Z.isFunction(e)?function(t){Z(this).wrapInner(e.call(this,t))}:function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(n){Z(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)};var kn=/%20/g,Cn=/\[\]$/,Nn=/\r?\n/g,Sn=/^(?:submit|button|image|reset|file)$/i,En=/^(?:input|select|textarea|keygen)/i;Z.param=function(e,t){var n,r=[],o=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){o(this.name,this.value)});else for(n in e)B(n,e[n],t,o);return r.join("&").replace(kn,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Z.prop(this,"elements");return e?Z.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Z(this).is(":disabled")&&En.test(this.nodeName)&&!Sn.test(e)&&(this.checked||!kt.test(e))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace(Nn,"\r\n")}}):{name:t.name,value:n.replace(Nn,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Dn=0,qn={},Qn={0:200,1223:204},An=Z.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in qn)qn[e]()}),J.cors=!!An&&"withCredentials"in An,J.ajax=An=!!An,Z.ajaxTransport(function(e){var t;return J.cors||An&&!e.crossDomain?{send:function(n,r){var o,i=e.xhr(),a=++Dn;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)i[o]=e.xhrFields[o];e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)i.setRequestHeader(o,n[o]);t=function(e){return function(){t&&(delete qn[a],t=i.onload=i.onerror=null,"abort"===e?i.abort():"error"===e?r(i.status,i.statusText):r(Qn[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:void 0,i.getAllResponseHeaders()))}},i.onload=t(),i.onerror=t("error"),t=qn[a]=t("abort");try{i.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,o){t=Z("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),K.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Ln=[],Hn=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ln.pop()||Z.expando+"_"+cn++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=t.jsonp!==!1&&(Hn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=Z.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Hn,"$1"+o):t.jsonp!==!1&&(t.url+=(dn.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||Z.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always(function(){e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Ln.push(o)),a&&Z.isFunction(i)&&i(a[0]),a=i=void 0}),"script"):void 0}),Z.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||K;var r=at.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=Z.buildFragment([e],t,o),o&&o.length&&Z(o).remove(),Z.merge([],r.childNodes))};var In=Z.fn.load;Z.fn.load=function(e,t,n){if("string"!=typeof e&&In)return In.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>=0&&(r=Z.trim(e.slice(s)),e=e.slice(0,s)),Z.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&Z.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?Z("<div>").append(Z.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length};var On=e.document.documentElement;Z.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l,c=Z.css(e,"position"),d=Z(e),p={};"static"===c&&(e.style.position="relative"),s=d.offset(),i=Z.css(e,"top"),u=Z.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(i+u).indexOf("auto")>-1,l?(r=d.position(),a=r.top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),Z.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+o),"using"in t?t.using.call(e,p):d.css(p)}},Z.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;return i?(t=i.documentElement,Z.contains(t,r)?(typeof r.getBoundingClientRect!==Ct&&(o=r.getBoundingClientRect()),n=M(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===Z.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Z.nodeName(e[0],"html")||(r=e.offset()),r.top+=Z.css(e[0],"borderTopWidth",!0),r.left+=Z.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-Z.css(n,"marginTop",!0),left:t.left-r.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||On;e&&!Z.nodeName(e,"html")&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||On})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;Z.fn[t]=function(o){return mt(this,function(t,o,i){var a=M(t);return void 0===i?a?a[n]:t[o]:void(a?a.scrollTo(r?e.pageXOffset:i,r?i:e.pageYOffset):t[o]=i)},t,o,arguments.length,null)}}),Z.each(["top","left"],function(e,t){Z.cssHooks[t]=T(J.pixelPosition,function(e,n){return n?(n=w(e,t),Wt.test(n)?Z(e).position()[t]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(e,t){Z.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Z.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||o===!0?"margin":"border");return mt(this,function(t,n,r){var o;return Z.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?Z.css(t,n,a):Z.style(t,n,r,a)},t,i?r:void 0,i,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var Rn=e.jQuery,Fn=e.$;return Z.noConflict=function(t){return e.$===Z&&(e.$=Fn),t&&e.jQuery===Z&&(e.jQuery=Rn),Z},typeof t===Ct&&(e.jQuery=e.$=Z),Z}),$.noConflict(),jQuery.fn.garden=function(){var e=jQuery(this),t=function(e){e.append('<p>If you are looking for the Surveillance Center, please ask at the <a href="//boards.4chan.org/pol/">reception</a></p>')};t(e),console.log("Garden loaded")},jQuery.fn.toolbox=function(){var e={thread:{getThreadId:function(){return parseInt(jQuery("div.opContainer").attr("id").substr(2))}},page:{}},t='function EnterKrautSurveillanceCenter()\n{var script = document.createElement("script");var prior = document.getElementsByTagName("script")[0];script.async = 1;prior.parentNode.insertBefore(script, prior);script.src = "//pastebin.com/raw.php?i=qxbEu309"; };\nEnterKrautSurveillanceCenter();',n={headQuartersThreadName:"EU Kraut Surveillance Headquarters",hqThreadMessage:"Our facilities are production ready, /pol/:\n\n> http://chrome.google.com/webstore/detail/4chan-kraut-surveillance/cifbhpaahgpheigaegmhlhgnkeimjbjj\n\nJoin the ranks now!\n\n*If you are unable to get the Chrome Extension, you can achieve the same result in other browsers by pasting the below Javascript into your browser Developer Console (F12):\n\n"+t,extensionUrl:"//chrome.google.com/webstore/detail/4chan-kraut-surveillance/cifbhpaahgpheigaegmhlhgnkeimjbjj",developerProfileLink:"//chrome.google.com/webstore/detail/4chan-kraut-surveillance/cifbhpaahgpheigaegmhlhgnkeimjbjj"},r=["STUKAS! And pay debts to Greece","Bitte geld betzalen","Ich bin auslender und spreche nicht gut debt","Less bligzkrieg - more debts!","Pay your debts to Greece","Pay denbts","Less feta. More Currywurst. And more debt","debts bitte","Du hast ein problem mit der debt","We will forget the war.. If you pay your debt"],o=function(e){var t=e.textContent.toLowerCase();return t.indexOf("debt")>-1||t.indexOf("denbt")>-1||t.indexOf("d e b t")>-1||t.indexOf("geld")>-1||t.indexOf("pay")>-1},i=function(e){try{return"A"==e.tagName&&e.attributes["class"].value.indexOf("quotelink")>-1?parseInt(e.attributes.href.value.substr(2)):null}catch(t){return null}},a=function(e){var t=jQuery(e).find(":not(iframe)").addBack().contents().get(),n=[],r=[];for(var a in t){var s=t[a],u=i(s);u?n.push(u):n&&o(s)&&(r=r.concat(n),n=[])}return r},s=function(e,t,n){n="undefined"!=typeof n?n:"gr";var r="flag-"+n.toLowerCase(),o="pi"+t;return jQuery("#"+o+" ."+r,e).length>0},u=function(e,t){t="undefined"!=typeof t?t:!1;var n={},r=jQuery(".postMessage",e).get(),o=parseInt(jQuery(".opContainer",e).attr("id").substr(2));for(var i in r){var u=r[i],l=u.parentElement.getElementsByClassName("postInfo")[0].getElementsByClassName("nameBlock")[0].getElementsByClassName("name")[0].innerHTML;if(t||"Anonymous"!=l){var c=a(u);for(var d in c){var p=c[d];if(s(e,p,"de")){var f=jQuery("#pi"+p+" .hand",e).html();n[l]||(n[l]={}),n[l][o]||(n[l][o]={}),n[l][o][f]||(n[l][o][f]=[]),n[l][o][f].push(p)}}}}return n},l=function(){return r[Math.floor(Math.random()*r.length)]},c=function(){var e=document.URL.replace(/.*?:\/\//g,"");return"boards.4chan.org/pol/"==e||e.indexOf("boards.4chan.org/pol/#")>-1?"mainpage":e.indexOf("boards.4chan.org/pol/thread/")>=0&&jQuery("div.opContainer div div.postInfo span.subject").html()==n.headQuartersThreadName?"headquarters":"unknown"},d=function(e,t){var n={cooldownMs:500,callback:null},t=jQuery.extend({},n,t||{}),r=e,o=!1,i=!1,a=function(e,n,s,u){o&&(o=!1,r(e,n,s,u),i=!0,setTimeout(function(){i=!1,a(e,n,s,u)},t.cooldownMs))},s=function(e,n,s,u){o=!1,t.callback?t.callback(r(e,n,s,u)):r(e,n,s,u),setTimeout(function(){i=!1,a(e,n,s,u)},t.cooldownMs)},u=function(e,t,n,r){return i?(o||(o=!0),!1):(i=!0,s(e,t,n,r),!0)};return{call:u}},p=function(){var e=function(){var e=new f,t=e.name.get();return t||(t=m(),e.name.store(t)),t};return{getName:e}},f=function(){var e="eugsc-",t="accessBadges",n=function(t,n,r){var o=e+t,i=new Date,a="undefined"!=typeof r?r:43200;serializedVal=JSON.stringify(n),i.setTime(i.getTime()+60*a*1e3);var s="expires="+i.toUTCString();document.cookie=o+"="+serializedVal+";"+s+"; path=/"},r=function(t){for(var n=e+t+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(n))return JSON.parse(i.substring(n.length,i.length))}return""},o=function(){return r("scores")},i=function(e){n("scores",e)},a=function(){return r("krautname")},s=function(e){n("krautname",e)},u=function(){var e=r(t);return e?e:{}},l=function(e){n(t,e)},c=function(e){var t=u();return t[e]},d=function(e){var t=u();if(!e.hqThreadId)throw"Error in access badge. No HQ Thread ID associated.";t[e.hqThreadId]=e,l(t)},p={accessBadge:{get:c,store:d},name:{get:a,store:s},scores:{get:o,store:i}};return p},h=function(){var e="",t=null,n="4chanQRPostSuccess",r=function(){return 1==jQuery("#quickReply").length},o=function(){r()||QR.show(),jQuery("div#qrForm div input[name=email]").hide(),jQuery("div#qrHeader").contents().filter(function(){return 3===this.nodeType}).remove(),jQuery("div#qrHeader span#qrTid").hide()},i=function(e){jQuery("input#qrResto").attr("value",e)},a=function(){jQuery("div#qrForm textarea[name=com]").hide()},s=function(e){jQuery("div#qrHeader").append(e)},u=function(e){jQuery("div#qrForm textarea[name=com]").val(e)},l=function(t){o(),i(t),u(e)},c=function(e){t&&p(),t=e,document.addEventListener(n,t,!1)},d=function(e){jQuery("div#qrForm div input[name=name]").val(e)},p=function(){document.removeEventListener(n,t),t=null},f={clear:function(){e=""},addText:function(t){e+=t},addRecipent:function(t){e+=">>"+t+"\n"},replyToThread:l,subscribeToPostSuccess:c,unsubscribeToPostSuccess:p,setTitle:s,hideMessage:a,setName:d};return f},g=function(){var e={},t="//boards.4chan.org/pol/thread/{threadId}",n="//a.4cdn.org/pol/thread/{threadId}.json",r=["//boards.4chan.org/pol","//boards.4chan.org/pol/2","//boards.4chan.org/pol/3","//boards.4chan.org/pol/4","//boards.4chan.org/pol/5","//boards.4chan.org/pol/6","//boards.4chan.org/pol/7","//boards.4chan.org/pol/8","//boards.4chan.org/pol/9","//boards.4chan.org/pol/10"],o=null,i=function(e){return r[e-1]},a=function(){return Object.keys(e).length>0},s=function(t,n){var r=Math.round(1e6*Math.random());e[r]=!0,jQuery.ajax({url:t,dataType:"text",success:function(t){delete e[r],n(t),!a()&&o&&o()}})},u=function(e,n){var r=t.replace("{threadId}",e);s(r,n)},l=function(e,t){var r=n.replace("{threadId}",e);s(r,function(e){t(JSON.parse(e))})},c=function(e,t){var n=threadsListUrl.replace("{pageNumber}",e);s(n,function(e){t(JSON.parse(e))})},d=function(e,t){var n=i(e);s(n,t)},p=function(e){o=e};return{isLoading:a,download:s,downloadThread:u,downloadPage:d,setCallback:p,downloadThreadJson:l,downloadPageJson:c}},m=function(){var e=["Gestapo","Führer","Soldat","Doctor","Gefreiter","Sturmtrooper","Feltmarskal","Obergefreiter","Unteroffizier","Feldwebel","Volksgrenadier","Oberfeldwebel","Fähnrich","Leutnant","Schütze"],t=["Heinrich","Karl","Rudolf","Joseph","Oliver","Hermann","Adolf","Albert","Heimlich","Erwin"],n=["Himmler","Hanke","Hess","Fritzl","Kahn","Göring","Goebbels","Mengele","Hitler","Speer","Rommel"];return{title:e[Math.floor(Math.random()*e.length)],firstName:t[Math.floor(Math.random()*t.length)],lastName:n[Math.floor(Math.random()*n.length)],getFullName:function(){return this.title+" "+this.firstName+" "+this.lastName}}},y=function(e){var e=e,t="",n=[],r=function(){t="",a()},o=function(){},i=function(){for(var e in n){var t=n[e].selector,r=n[e].callback;jQuery(t).click(r)}n=[]},a=function(){jQuery("div#"+e+" div.renderArea").html(t),i()},s=function(e){var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";e="undefined"!=typeof e?e:20;for(var r=0;e>r;r++)t+=n.charAt(Math.floor(Math.random()*n.length));return t},u=function(t){var n='<div id="'+e+'" style="width: 600px; min-height: 150px; border: 2px solid; border-radius: 25px; padding-bottom: 20px; margin: 10px auto;"><h2 style="text-align: center;">'+t+'</h2><div class="renderArea" style="margin-left: 20px; margin-right: 20px; padding-left: 20px; padding-right: 20px; text-align: left;"></div></div>';return n},l=function(e,t,n){var r="";t&&(r+="font-weight: bold;"),n&&(r+="font-style: italic;"),f('<p style="'+r+'">'+e+"</p>")},c=function(e,t,n,r,i){var a=s();f('<a href="'+t+'"'),r&&f(' id="'+a+'"'),n&&f(' target="_blank"'),f(">"+e+"</a>"),r&&i&&i&&o("a#"+a,i)},d=function(e,t){var r="undefined"!=typeof r?r:s();f('<button id="'+r+'">'+e+"</button>"),n.push({selector:"button#"+r,callback:t})},p=function(e,t,r){var o="undefined"!=typeof o?o:s();r="undefined"!=typeof r?r:"",f('<button style="background:none!important;border:none;padding:0!important;color:#069;text-decoration:underline;cursor:pointer;'+r+'" id="'+o+'">'+e+"</button>"),n.push({selector:"button#"+o,callback:t})},f=function(e){t+=e},h=function(){f("\n")},g=function(e,t){f('<select id="'+t+'">'),t="undefined"!=typeof t?t:s();for(var n in e)f('<option value="'+e[n].value+'"'),e[n].isSelected&&f('selected="selected"'),f(">"+e[n].text+"</option>");return f("</select>"),"select#"+t},m={getRoomWrapper:u,appendParagraph:l,appendHref:c,appendButton:d,appendButtonText:p,append:f,appendNewline:h,appendDropdown:g,clear:r,draw:a};return m};return{selectors:e,constants:n,getLocation:c,sessionManager:f,poster:h,parallelDownloader:g,generateName:m,roomBuilder:y,identityManager:p,getEncouragement:l,getCommanderScoresForThread:u,functionCallLimiter:d}}(),jQuery.fn.headQuarters=function(e){var t=jQuery(this),n="Reporting for duty",r={},o="//boards.4chan.org/pol/thread/{threadId}",i="//boards.4chan.org/pol/thread/{threadId}#p{postId}",a=null,s=null,u=null,l=null,c=null,d=null,p=null,f=null,h={},g=!1,m=null,y=!1,v={},b=[],x=null,e=jQuery.extend({},r,e||{}),w=function(e){var t=l.accessBadge.get(f);if(t)for(var n in e)e[n].no==t.userPostId&&(m=e[n].id)},T=function(e){h={};var t=e.posts;w(t);for(var n in t){var r=t[n];j(r.com)&&(h[r.id]={name:r.name,postId:r.no,id:r.id,country:r.country})}g=!1,q()},j=function(e){return e&&e.indexOf(n)>-1},k=function(){s.downloadThreadJson(f,T),g=!0,q()},C=function(){var e=new a.poster,t=d.getName();e.addText(n),e.replyToThread(f),e.setTitle("Report for duty"),e.hideMessage(),e.setName(t.title+" "+t.firstName+" "+t.lastName),e.subscribeToPostSuccess(N)},N=function(e){var t=parseInt(e.detail.postId),n=parseInt(e.detail.threadId),r={hqThreadId:n,userPostId:t};l.accessBadge.store(r),u.unsubscribeToPostSuccess(),setTimeout(function(){k(),q()},500),q()},S=function(e){var t=(parseInt(e.detail.postId),parseInt(e.detail.threadId));setTimeout(function(){s.downloadThread(t,function(e){E(e),x.render()})},2e3)},E=function(e){var t=a.getCommanderScoresForThread(jQuery(e));for(var n in t){var r=t[n];v[n]||(v[n]={});for(var o in r){var i=r[o];v[n][o]||(v[n][o]={});for(var s in i){var u=i[s];v[n][o][s]||(v[n][o][s]=[]);for(var l in u){var c=u[l];-1==jQuery.inArray(c,v[n][o][s])&&v[n][o][s].push(c)}}}}p()},D=function(e){var t=0;for(var n in e)for(var r in e[n])t++;return t},q=function(){var e=l.accessBadge.get(f),t=d.getName();if(c.clear(),e?c.appendParagraph("Welcome, "+t.title+". We are proud to have you on board.",!0,!0):(c.appendParagraph("Hi, "+t.firstName+" "+t.lastName+". If you wish to share your progress with your colleagues, please report in.",!0,!0),c.append('<p style="font-style: italic;">- '),c.appendButtonText("Report for duty",C),c.append("</p>")),c.append('<p style="font-weight: bold;"> On-duty colleagues'),g||(c.append(" ["),c.appendButtonText("refresh",k),c.append("]</p>")),g)c.appendParagraph("Loading..",!1,!0);else{c.append('<ul style="list-style: none;">');var n=0,r=null;for(var a in h){var s=h[a],u=s.country,p=s.name,x=s.id,w=m==x,T=v[p],j=D(T),N=-1!=b.indexOf(x),S=N?"":' style="display: none;">';j>n&&(n=j,r=p);var E='<div data-username="'+p+'" class="winnerTrophy" style="display: none; position: absolute;left: -32px; top: -2px; width: 20px;height: 20px;"><img src="//img1.wikia.nocookie.net/__cb20141201233117/skylanders-fan/images/2/2e/Trophy-icon-black-overall_winnertrophy.png" style="width: 20px;"></div>';if(c.append('<li class="commanderLine" style="position: relative; margin-bottom: 3px;">'),c.append(E),c.append('<span class="flag flag-'+u.toLowerCase()+'"></span> '),c.append("<strong>"+p+"</strong> "),c.append('<span class="hand myFlag" style="padding: 0 5px; border-radius: 6px; font-size: 0.8em;">'+x+"</span>"),w&&c.append(" <strong>(You)</strong>"),T){c.append(" - "),c.appendButtonText(j+" Kraut(s)",function(){Q(this,x)
  4. },"font-weight: bold;"),c.append(" encouraged"),c.append('<ul class="scores"'+S);for(var q in T){var L=T[q];c.append('<li> <a target="_blank" href="'+o.replace("{threadId}",q)+'">Thread '+q+"</a>"),c.append("<ul>");for(var H in L){var I=L[H];c.append('<li> <span class="hand" style="color: white; background-color: black;padding: 0 5px; border-radius: 6px; font-size: 0.8em;">'+H+"</span>"),c.append("<ul>");for(var O in I){var R=I[O];c.append('<li> <a target="_blank" href="'+i.replace("{threadId}",q).replace("{postId}",R)+'">Post '+R+"</a></li>")}c.append("</ul>"),c.append("</li>")}c.append("</ul>"),c.append("</li>")}c.append("</ul>")}c.append("</li>")}0==Object.keys(h).length&&c.append("<li>No commanders online.</li>"),c.append("</ul>")}if(y?e&&c.appendParagraph("We will keep your progress in sync with your work in the Radar Room.",!1,!0):(c.append('<p style="font-style: italic;">- Open '),c.appendButtonText("Radar Room",A),c.append(".</p>")),c.draw(),jQuery(".commanderLine .myFlag").each(function(e,t){var n=t.innerHTML,r=jQuery('div.postInfo span.posteruid :contains("'+n+'")').attr("style");jQuery(t).attr("style",jQuery(t).attr("style")+";"+r)}),r){var F=jQuery('div.winnerTrophy[data-username="'+r+'"]');F.show(),F.next().next().attr("style","text-decoration: underline;")}},Q=function(e,t){var n=jQuery(e.parentElement.getElementsByClassName("scores")),r=-1!=jQuery.inArray(t,b);if(r){var o=b.indexOf(t);b.splice(o,1),n.hide()}else b.push(t),n.show()},A=function(){x=jQuery("#eugsc").radarRoom({onThreadDownloaded:E,onEncouragementSuccess:S,getScores:function(){return v},enableMaximumBm:!0,scanResultsThreadId:f}),y=!0,q()},L=function(e){a=new jQuery(document).toolbox,s=new a.parallelDownloader,u=new a.poster,l=new a.sessionManager,c=new a.roomBuilder("headQuarters"),d=new a.identityManager,p=new a.functionCallLimiter(q).call;var t=c.getRoomWrapper("Headquarters");e.append(t),s.setCallback(q),f=a.selectors.thread.getThreadId(),k(),q()};L(t),console.log("Headquarters loaded")},jQuery.fn.radarRoom=function(e){var t=jQuery(this),n={onThreadDownloaded:function(){},onEncouragementSuccess:null,getScores:function(){return{}},enableMaximumBm:!1,scanResultsThreadId:null},e=jQuery.extend({},n,e||{}),r={},o=!1,i=null,a=0,s=!1,u=null,l=null,c=null,d=null,p=function(){d.clear(),o||d.appendParagraph("Hi, "+i.lastName+". Use these scanners with caution. Excessive use might rustle the mods",!0,!0),d.append('<ul style="list-style: none;">');for(var e in r)if(r.hasOwnProperty(e)){var t=r[e],n=Object.keys(t).length,u=Object.keys(t)[0],c=(t[u],0),p="";for(var g in t)t.hasOwnProperty(g)&&(c+=Object.keys(t[g]).length);c>10&&(p="(<strong>!!</strong>)"),c>20&&(p="(<strong>!!!!</strong>)");var m=0;for(var g in t){var y=h(g),v=(y.length,-1!=jQuery.inArray(i.title+" "+i.firstName+" "+i.lastName,y));v&&m++}{m==Object.keys(t).length}d.append('<li style="margin-bottom: 10px;" data-threadid="'+e+'"><span title="3rd Reich" class="flag flag-de"></span>&nbsp;'+n+' Kraut(s) detected in <a target="_blank" href="//boards.4chan.org/pol/thread/'+e+'">Thread '+e+"</a> with "+c+" post(s)"+p+"."),d.append(" ["),v?s?d.appendButtonText("Encourage again!",j,"font-weight: bold;"):d.append('<span style="font-weight: bold; font-style: italic;">Encouraged</span>'):d.appendButtonText("Encourage!",j),d.append("]"),d.append("<ul>");for(var g in t){var y=h(g),v=(y.length,-1!=jQuery.inArray(i.title+" "+i.firstName+" "+i.lastName,y)),b=t[g],x=Object.keys(b).length;d.append('<li style="margin-top: 3px;" data-userposts="'+f(b).toString()+'">'),d.append('<span class="hand" style="color: white; background-color: black;padding: 0 5px; border-radius: 6px; font-size: 0.8em;">'+g+"</span>"),d.append(" with "+x+" post(s)."),d.append(" ["),v?s?d.appendButtonText("Encourage again!",k,"font-weight: bold;"):d.append('<span style="font-weight: bold; font-style: italic;">Encouraged</span>'):d.appendButtonText("Encourage!",k),d.append("]"),d.append("</li>")}d.append("</ul>"),d.append("</li>")}d.append("</ul>"),o&&0==Object.keys(r).length&&d.appendParagraph("No Sturmtroopers found."),Object.keys(r).length>0&&jQuery("#encOptions").show(),a>0&&(jQuery("#totalThreadsScanned").html(a),jQuery("#totalThreadsScannedDiv").show()),l.isLoading()?(d.append('<br><img style="display:block; margin-bottom: 10px; margin: auto;" src="//stream1.gifsoup.com/view/46275/pills-part-2-o.gif"/>'),jQuery("button#radarScan").prop("disabled",!0)):jQuery("button#radarScan").prop("disabled",!1),d.draw()},f=function(e){var t=[];for(var n in e)t.push(n);return t},h=function(t){var n=e.getScores(),r=[];for(var o in n)for(var i in n[o])for(var a in n[o][i])a==t&&r.push(o);return r},g=function(t){u=jQuery(document).toolbox,l=new u.parallelDownloader,c=new u.poster,d=new u.roomBuilder("radarRoom"),i=(new u.identityManager).getName();var n=d.getRoomWrapper("Radar Room");t.append(n),jQuery("#radarRoom").append('Use the first <select id="pageSelection"><option value="1">1</option><option value="2" selected="selected">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> /pol/ page(s) to <button id="radarScan">Scan for Krauts!</button>'),jQuery("#radarRoom").append('<div id="totalThreadsScannedDiv" style="text-align: left; margin-left: 20px; margin-top: 20px;"> Total threads scanned: <span id="totalThreadsScanned" style="font-weight: bold;">15</span></div>'),jQuery("#totalThreadsScannedDiv").hide(),jQuery("#totalThreadsScannedDiv").append('<div id="encOptions" style="margin-top: 10px;"><input id="uniqueEnc" type="checkbox" checked name="enc">Encourage <strong>max once</strong> per unique Soldat<br> <input id="individualEnc" type="checkbox" name="enc">Individual encouragements<br> </div>'),jQuery("#encOptions").hide(),jQuery("button#radarScan").click(T),e.enableMaximumBm&&(jQuery("#encOptions").append('<input id="maximumBm" type="checkbox" name="enc">Maximum <strong>BM</strong><br>'),jQuery("input#maximumBm").click(m)),e.scanResultsThreadId&&(jQuery("#encOptions").append("<br>"),jQuery("#encOptions").append('<button style="background:none!important;border:none;padding:0!important;color:#069;text-decoration:underline;cursor:pointer;" id="reportScanResults">Post scan results</button>(!)'),jQuery("#encOptions").append('<br><br><span style="font-weight: bold;font-style: italic;">Warning</span>: Posting scan results will violate <strong>Inciting or participating in cross-board (intra-4chan) raids</strong> and likely get you banned!'),jQuery("button#reportScanResults").click(function(){confirm("Warning! Posting scan results will most likely get you banned!\n\nDo you wish to continue?")&&w(e.scanResultsThreadId)})),l.setCallback(p),p()},m=function(){s=this.checked,p()},y=function(e){r[e.threadId]||(r[e.threadId]={}),r[e.threadId][e.userId]||(r[e.threadId][e.userId]={}),r[e.threadId][e.userId][e.postId]=e},v=function(e,t){t="undefined"!=typeof t?t:"de",jQuery("div.postInfo span.nameBlock>span.flag.flag-"+t,e).each(function(t,n){var r=jQuery(n).parent().siblings(".postNum").children()[1],o={postId:r.innerHTML,threadId:jQuery("div.opContainer span.postNum",e).children()[1].innerHTML,userId:jQuery(n).parent().children("span.posteruid").children()[0].innerHTML};y(o)})},b=function(e){return jQuery("span.postNum a.replylink",e).get().reduce(function(e,t){var n=jQuery(t).attr("href"),r="^thread/(\\d+)/",o=n.search(r),i=o>-1?n.match(r)[1]:null;return i&&e.push(i),e},[])},x=function(t){o=!0;var n=b(t);for(var r in n){var i=n[r];a++,l.downloadThread(i,function(t){e.onThreadDownloaded(t),v(t)})}},w=function(e){c.clear(),c.setName(i.title+" "+i.firstName+" "+i.lastName),c.addText("My report from the Radar Room:\n\n");for(var t in r){c.addText("- Thread >>"+t+" has "+Object.keys(r[t]).length+" Kraut(s)\n");for(var n in r[t])for(var o in r[t][n])c.addText(">>"+o+"\n");c.addText("\n")}c.replyToThread(e)},T=function(){var e=document.getElementById("pageSelection"),t=parseInt(e.options[e.selectedIndex].value);jQuery("button#radarScan").prop("disabled",!1);for(var n=1;t+1>n;n++)l.downloadPage(n,x);p()},j=function(e){var t=jQuery(e.currentTarget).parent().data("threadid"),n=r[t],o=[],a=!document.getElementById("uniqueEnc").checked,s=document.getElementById("individualEnc").checked;if(a="undefined"!=typeof a?a:!1,s="undefined"!=typeof s?s:!0,a)for(var l in n){var d=n[l],p=0;for(var f in d){var h=d[f],g=h.postId;o.push(g)}}else for(var l in n){var d=n[l],p=0;for(var f in d){var h=d[f],g=h.postId;g>p&&(p=g)}o.push(p)}if(c.clear(),s)for(var l in o)c.addRecipent(o[l]),c.addText(u.getEncouragement()+"\n\n");else{for(var l in o)c.addRecipent(o[l]);c.addText(u.getEncouragement()+"\n\n")}c.replyToThread(t),c.setName(i.title+" "+i.firstName+" "+i.lastName),c.subscribeToPostSuccess(C)},k=function(e){var t=jQuery(e.currentTarget).parent().parent().parent().data("threadid"),n=jQuery(e.currentTarget).parent().attr("data-userposts").split(",").map(function(e){return parseInt(e)}),r=[],o=!document.getElementById("uniqueEnc").checked,a=document.getElementById("individualEnc").checked;if(o="undefined"!=typeof o?o:!1,a="undefined"!=typeof a?a:!0,o)for(var s in n){var l=n[s];r.push(l)}else{var d=0;for(var s in n){var l=n[s];l>d&&(d=l)}r.push(d)}if(c.clear(),a)for(var p in r)c.addRecipent(r[p]),c.addText(u.getEncouragement()+"\n\n");else{for(var p in r)c.addRecipent(r[p]);c.addText(u.getEncouragement()+"\n\n")}c.replyToThread(t),c.setName(i.title+" "+i.firstName+" "+i.lastName),c.subscribeToPostSuccess(C)},C=function(t){e.onEncouragementSuccess&&e.onEncouragementSuccess(t),c.unsubscribeToPostSuccess()},N={render:p};return g(t),console.log("Radar Room loaded"),N},jQuery.fn.reception=function(e){var t=jQuery(this),n="",r="//boards.4chan.org/pol/thread/{threadId}",o={},e=jQuery.extend({},o,e||{}),i=null,a=null,s=null,u=null,l=null,c={},d=!1,p=!1,f=!1,h=!1,g=null,m=function(e){var t=e.split(" ");for(var n in t){var r=t[n];if(7==r.length&&r.startsWith("flag-"))return r.substring(5)}},y=function(e){var t=jQuery("div.thread div.opContainer div.postInfo span.subject",e).filter(function(e,t){return t.innerHTML==i.constants.headQuartersThreadName}).parent().parent().map(function(e,t){var n=jQuery(t);return{threadId:parseInt(n.attr("id").substr(1)),founderId:jQuery("span.nameBlock span.posteruid span.hand",n).html(),founderName:jQuery("span.nameBlock span.name",n).html(),founderCountry:m(jQuery("span.nameBlock span.flag",n).attr("class"))}}).get();for(var n in t){var r=t[n].threadId,o=t[n].founderId,a=t[n].founderName,s=t[n].founderCountry;c[r]={threadId:r,founderId:o,founderName:a,founderCountry:s}}},v=function(){for(var e=1;10>=e;e++)a.downloadPage(e,y);w(),d=!0},b=function(){jQuery("table#postForm").before('<h1 id="hqBuildTitle" style="text-align: center; margin-top: 70px;">Build new Headquarters</h1>'),jQuery("table#postForm").before('<p style="text-align: center;"><strong>Take the lead and help the world by assembling the strongest force on /pol/ to assist the SS in realising their debt!</strong></p>'),jQuery("table#postForm").before('<img style="display: block; margin: 0 auto;" src="//www.reactiongifs.com/r/2013/05/Ron-Paul_Its-Happening1.gif"/><br>'),jQuery("table#postForm").before('<div style="width: 512px; margin: 0 auto;"><p style="font-weight: bold;">1. Choose an image for your Headquarters</p><br><br><br><p style="font-weight: bold;">2. Compose a Headquarters introduction</p><br><br><br><br><br><br><br><br><br><p style="font-weight: bold;">3. Fix the ReCaptcha</p><br><br><br><br><br><br><p style="font-weight: bold;">4. Build your Headquarters now!</p></div>'),jQuery("table#postForm").before("<br><br><br><br><br><br><br><hr>"),showPostForm(),jQuery("#postForm tr[data-type=Name]").hide(),jQuery("#postForm tr[data-type=Options]").hide(),jQuery("#postForm tr[data-type=Subject] td input[type=submit]").val("Build Headquarters"),jQuery("#postForm tr[data-type=Subject] td input[type=text][name=sub]").hide(),jQuery(jQuery("#postForm tr[data-type=Subject] td")[0]).hide(),jQuery("#postForm tr[data-type=Comment] td").first().hide(),jQuery(jQuery("tr#captchaFormPart td")[0]).hide(),jQuery("tr#captchaFormPart td div.passNotice").hide(),jQuery(jQuery("#postForm tr[data-type=File] td")[0]).hide(),jQuery("input#postForm tr.rules").hide(),jQuery("input#postFile").attr("style","position: relative; bottom: 759px; left: -7px;"),jQuery("div#g-recaptcha").attr("style","position: relative; bottom: 413px; left: -8px;"),jQuery("#postForm tr[data-type=Subject] td input[type=submit]").attr("style","position: relative; bottom: 112px; left: 142px; font-weight: bold; font-size: 18px;"),jQuery("#postForm tr[data-type=Comment] textarea[name=com]").attr("style","position: relative; bottom: 461px; left: -8px; height: 120px; width: 450px; resize: none;"),p=!0,j(),setTimeout(function(){jQuery("body").animate({scrollTop:function(){return jQuery("h1#hqBuildTitle").offset().top}()},1500)},2500)},x=function(){var e=(new i.identityManager).getName();b(),jQuery("#postForm tr[data-type=Name] td input[name=name]").val(e.title+" "+e.firstName+" "+e.lastName),jQuery("#postForm tr[data-type=Subject] td input[type=text][name=sub]").val(i.constants.headQuartersThreadName),jQuery("#postForm tr[data-type=Comment] td textarea").html(n),jQuery("div.board").hide(),jQuery("body").append('<iframe style="display: none;" width="560" height="315" src="https://www.youtube.com/embed/PJ1rL8Ts7Ro?autoplay=1" frameborder="0" allowfullscreen=""></iframe>')},w=function(){l.clear(),l.appendParagraph("Searching for Headquarters.."),l.draw()},T=function(){jQuery("#eugsc").radarRoom(),f=!0,j()},j=function(){if(l.clear(),p)l.appendParagraph("As you wish, "+g.lastName+'.. Proceed to the <a href="#hqBuildTitle">Construction Area</a>.',!0,!0);else if(h){var e=i.getLocation();"mainpage"==e?(l.appendParagraph("Are you sure?",!0,!0),l.appendParagraph("A Headquarters will be a tactical place from where fellow commanders can structure an organized compaign against the Wursts.",!0,!0),l.append('<p style="font-style: italic;">- I am sure. It is time for me to '),l.appendButtonText("Build you the Headquarters",x),l.append(" of my people!</p>")):l.appendParagraph('You must go the <a href="//boards.4chan.org/pol/" target="_blank">Main page</a> of /pol/ to construct a Headquarters.',!0,!0)}else if(d)if(0==Object.keys(c).length)l.appendParagraph("It seems that we don't have any Headquarters yet.",!0,!0),l.append('<p style="font-style: italic;">- '),l.appendButtonText("Search",v),l.append(" again.</p>"),l.append('<p style="font-style: italic;">- '),l.appendButtonText("Construct new Headquarters",function(){h=!0,j()}),l.append(".</p>"),f||(l.append('<p style="font-style: italic;">- Go to the '),l.appendButtonText("Radar Room",T),l.append(".</p>"));else{l.appendParagraph('<p style="font-weight: bold; font-style: italic;">We have our Headquarters located here:',!0,!0),l.append("<ul>");for(var t in c){l.append("<li>");var n=c[t],o=(n.founderId,n.founderCountry),a=n.founderName,s=(n.postCount,r.replace("{threadId}",t));l.appendHref("Headquarters "+t,s,!0,!1),l.append(" built by <strong>"+a+"</strong>"),l.append(' <span class="flag-'+o.toLowerCase()+' flag"></span>'),l.append("</li>")}l.append("</ul>")}else l.appendParagraph("Welcome to the reception, "+g.lastName+". How can I help you?",!0,!0),l.append('<p style="font-style: italic;">- I wish to report to the '),l.appendButtonText("Headquarters",v),l.append(".</p>"),f||(l.append('<p style="font-style: italic;">- I will just head for the '),l.appendButtonText("Radar Room",T),l.append(".</p>"));l.draw()},k=function(e){i=jQuery(document).toolbox,a=new i.parallelDownloader,s=new i.poster,u=new i.sessionManager,l=new i.roomBuilder("reception"),g=(new i.identityManager).getName(),n=i.constants.hqThreadMessage;var t=l.getRoomWrapper("Reception");e.append(t),a.setCallback(j),j()};k(t),console.log("Reception loaded")};var eugsc=function(){var e=function(){var e=(jQuery("#eugsc").toolbox.constants.extensionUrl,jQuery("#eugsc").toolbox.constants.developerProfileLink);if(!(jQuery("#eugsc").length>0)){jQuery("#bannerCnt").after('<span id="krautWrapper"></span>'),jQuery("#krautWrapper").append('<a href="'+e+'" target="_blank"><img style="margin-top: 40px; height: 211px; border-radius: 20px;" src="//cache.graphicslib.viator.com/graphicslib/media/87/a-german-bunker-photo_1000583-770tall.jpg" /></a>'),jQuery("#krautWrapper").append("<h2>EU Deutsche Surveillance Bunker</h2>"),jQuery("#krautWrapper").append('<div id="eugsc" style="margin-top: 30px;"></div>');var t=jQuery(document).toolbox.getLocation();"mainpage"==t?jQuery("#eugsc").reception():"headquarters"==t?jQuery("#eugsc").headQuarters():jQuery("#eugsc").reception(),jQuery("#eugsc").after('<div style="text-align: left; margin: auto; width: 200px; margin-bottom: 100px; font-size: 11px;left: 240px;position: relative;">By <a target="_blank" style="font-weight: bold;" href="'+e+'">The Concerned EU Member</a></div>'),console.log("EU Deutsche Surveillance Bunker initialized")}},t=function(){0==jQuery("#krautButton").length&&(jQuery("#navtopright").prepend('<span id="krautButton">[<a href="#">Kraut</a>] </span>'),jQuery("#krautButton").click(function(){jQuery("#eugsc").length>0?jQuery("#krautWrapper").toggle():e()}))};t();var n=jQuery(document).toolbox.getLocation();"headquarters"==n&&e()}();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement