1 (function(j
,k
){function s(a
,b
,c
){if(c
===k
&&1===a
.nodeType
)if(c
="data-"+b
.replace(Vb
,"-$1").toLowerCase(),c
=a
.getAttribute(c
),"string"===typeof c
){try{c
="true"===c
?!0:"false"===c
?!1:"null"===c
?null:d
.isNumeric(c
)?parseFloat(c
):Wb
.test(c
)?d
.parseJSON(c
):c
}catch(e
){}d
.data(a
,b
,c
)}else c
=k
;return c
}function u(a
){for(var b
in a
)if(!("data"===b
&&d
.isEmptyObject(a
[b
]))&&"toJSON"!==b
)return!1;return!0}function x(a
,b
,c
){var e
=b
+"defer",f
=b
+"queue",g
=b
+"mark",h
=d
._data(a
,e
);h
&&(("queue"===c
||!d
._data(a
,f
))&&
2 ("mark"===c
||!d
._data(a
,g
)))&&setTimeout(function(){!d
._data(a
,f
)&&!d
._data(a
,g
)&&(d
.removeData(a
,e
,!0),h
.fire())},0)}function I(){return!1}function E(){return!0}function L(a
,b
,c
){b
=b
||0;if(d
.isFunction(b
))return d
.grep(a
,function(a
,e
){return!!b
.call(a
,e
,a
)===c
});if(b
.nodeType
)return d
.grep(a
,function(a
){return a
===b
===c
});if("string"===typeof b
){var e
=d
.grep(a
,function(a
){return 1===a
.nodeType
});if(Xb
.test(b
))return d
.filter(b
,e
,!c
);b
=d
.filter(b
,e
)}return d
.grep(a
,function(a
){return 0<=d
.inArray(a
,
3 b
)===c
})}function G(a
){var b
=Va
.split("|"),a
=a
.createDocumentFragment();if(a
.createElement
)for(;b
.length
;)a
.createElement(b
.pop());return a
}function Wa(a
,b
){if(1===b
.nodeType
&&d
.hasData(a
)){var c
,e
,f
;e
=d
._data(a
);var g
=d
._data(b
,e
),h
=e
.events
;if(h
)for(c
in delete g
.handle
,g
.events
={},h
){e
=0;for(f
=h
[c
].length
;e
<f
;e
++)d
.event
.add(b
,c
+(h
[c
][e
].namespace?".":"")+h
[c
][e
].namespace,h
[c
][e
],h
[c
][e
].data
)}g
.data
&&(g
.data
=d
.extend({},g
.data
))}}function Xa(a
,b
){var c
;if(1===b
.nodeType
){b
.clearAttributes
&&b
.clearAttributes();
4 b
.mergeAttributes
&&b
.mergeAttributes(a
);c
=b
.nodeName
.toLowerCase();if("object"===c
)b
.outerHTML
=a
.outerHTML
;else if("input"===c
&&("checkbox"===a
.type
||"radio"===a
.type
))a
.checked
&&(b
.defaultChecked
=b
.checked
=a
.checked
),b
.value
!==a
.value
&&(b
.value
=a
.value
);else if("option"===c
)b
.selected
=a
.defaultSelected
;else if("input"===c
||"textarea"===c
)b
.defaultValue
=a
.defaultValue
;b
.removeAttribute(d
.expando
)}}function ha(a
){return"undefined"!==typeof a
.getElementsByTagName
?a
.getElementsByTagName("*"):"undefined"!==
5 typeof a
.querySelectorAll
?a
.querySelectorAll("*"):[]}function Ya(a
){if("checkbox"===a
.type
||"radio"===a
.type
)a
.defaultChecked
=a
.checked
}function Za(a
){var b
=(a
.nodeName
||"").toLowerCase();"input"===b
?Ya(a
):"script"!==b
&&"undefined"!==typeof a
.getElementsByTagName
&&d
.grep(a
.getElementsByTagName("input"),Ya
)}function Yb(a
,b
){b
.src
?d
.ajax({url:b
.src
,async:!1,dataType:"script"}):d
.globalEval((b
.text
||b
.textContent
||b
.innerHTML
||"").replace(Zb
,"/*$0*/"));b
.parentNode
&&b
.parentNode
.removeChild(b
)}function $a(a
,
6 b
,c
){var e
="width"===b
?a
.offsetWidth:a
.offsetHeight
,f
="width"===b
?$b:ac
,g
=0,h
=f
.length
;if(0<e
){if("border"!==c
)for(;g
<h
;g
++)c
||(e
-=parseFloat(d
.css(a
,"padding"+f
[g
]))||0),e
="margin"===c
?e
+(parseFloat(d
.css(a
,c
+f
[g
]))||0):e
-(parseFloat(d
.css(a
,"border"+f
[g
]+"Width"))||0);return e
+"px"}e
=O(a
,b
,b
);if(0>e
||null==e
)e
=a
.style
[b
]||0;e
=parseFloat(e
)||0;if(c
)for(;g
<h
;g
++)e
+=parseFloat(d
.css(a
,"padding"+f
[g
]))||0,"padding"!==c
&&(e
+=parseFloat(d
.css(a
,"border"+f
[g
]+"Width"))||0),"margin"===c
&&(e
+=parseFloat(d
.css(a
,
7 c
+f
[g
]))||0);return e
+"px"}function ab(a
){return function(b
,c
){"string"!==typeof b
&&(c
=b
,b
="*");if(d
.isFunction(c
))for(var e
=b
.toLowerCase().split(bb
),f
=0,g
=e
.length
,h
,i
;f
<g
;f
++)h
=e
[f
],(i
=/^\+/.test(h
))&&(h
=h
.substr(1)||"*"),h
=a
[h
]=a
[h
]||[],h
[i
?"unshift":"push"](c
)}}function ia(a
,b
,c
,e
,d
,g
){d
=d
||b
.dataTypes
[0];g
=g
||{};g
[d
]=!0;for(var d
=a
[d
],h
=0,i
=d
?d
.length:0,p
=a
===Aa
,j
;h
<i
&&(p
||!j
);h
++)j
=d
[h
](b
,c
,e
),"string"===typeof j
&&(!p
||g
[j
]?j
=k:(b
.dataTypes
.unshift(j
),j
=ia(a
,b
,c
,e
,j
,g
)));if((p
||!j
)&&!g
["*"])j
=
8 ia(a
,b
,c
,e
,"*",g
);return j
}function cb(a
,b
){var c
,e
,f
=d
.ajaxSettings
.flatOptions
||{};for(c
in b
)b
[c
]!==k
&&((f
[c
]?a:e
||(e
={}))[c
]=b
[c
]);e
&&d
.extend(!0,a
,e
)}function Ba(a
,b
,c
,e
){if(d
.isArray(b
))d
.each(b
,function(b
,f
){c
||bc
.test(a
)?e(a
,f
):Ba(a
+"["+("object"===typeof f
||d
.isArray(f
)?b:"")+"]",f
,c
,e
)});else if(!c
&&null!=b
&&"object"===typeof b
)for(var f
in b
)Ba(a
+"["+f
+"]",b
[f
],c
,e
);else e(a
,b
)}function db(){try{return new j
.XMLHttpRequest
}catch(a
){}}function eb(){setTimeout(cc
,0);return ja
=d
.now()}function cc(){ja
=
9 k
}function T(a
,b
){var c
={};d
.each(fb
.concat
.apply([],fb
.slice(0,b
)),function(){c
[this]=a
});return c
}function gb(a
){if(!Ca
[a
]){var b
=m
.body
,c
=d("<"+a
+">").appendTo(b
),e
=c
.css("display");c
.remove();if("none"===e
||""===e
){C
||(C
=m
.createElement("iframe"),C
.frameBorder
=C
.width
=C
.height
=0);b
.appendChild(C
);if(!U
||!C
.createElement
)U
=(C
.contentWindow
||C
.contentDocument
).document
,U
.write(("CSS1Compat"===m
.compatMode
?"<!doctype html>":"")+"<html><body>"),U
.close();c
=U
.createElement(a
);U
.body
.appendChild(c
);
10 e
=d
.css(c
,"display");b
.removeChild(C
)}Ca
[a
]=e
}return Ca
[a
]}function Da(a
){return d
.isWindow(a
)?a:9===a
.nodeType
?a
.defaultView
||a
.parentWindow:!1}var m
=j
.document
,dc
=j
.location
,d
,hb=function(){if(!l
.isReady
){try{m
.documentElement
.doScroll("left")}catch(a
){setTimeout(hb
,1);return}l
.ready()}},l=function(a
,b
){return new l
.fn
.init(a
,b
,ib
)},ec
=j
.jQuery
,fc
=j
.$,ib
,gc
=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,jb
=/\S/,kb
=/^\s+/,lb
=/\s+$/,hc
=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ic
=/^[\],:{}\s]*$/,jc
=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
11 kc
=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,lc
=/(?:^|:|,)(?:\s*\[)+/g,mc
=/(webkit
)[ \/]([\w.]+)/,nc
=/(opera
)(?:.*version
)?[ \/]([\w.]+)/,oc
=/(msie
) ([\w
.]+)/,pc=/(mozilla
)(?:.*? rv:([\w
.]+))?/,qc=/-([a
-z
]|[0-9])/ig,rc=/^-ms
-/,sc=function(a
,b
){return(b
+"").toUpperCase()},tc
=j
.navigator
.userAgent
,ka
,la
,V
,uc
=Object
.prototype.toString
,Ea
=Object
.prototype.hasOwnProperty
,Fa
=Array
.prototype.push
,da
=Array
.prototype.slice
,mb
=String
.prototype.trim
,nb
=Array
.prototype.indexOf
,ob
={};
12 l
.fn
=l
.prototype={constructor:l
,init:function(a
,b
,c
){var e
;if(!a
)return this;if(a
.nodeType
)return this.context
=this[0]=a
,this.length
=1,this;if("body"===a
&&!b
&&m
.body
)return this.context
=m
,this[0]=m
.body
,this.selector
=a
,this.length
=1,this;if("string"===typeof a
){if((e
="<"===a
.charAt(0)&&">"===a
.charAt(a
.length
-1)&&3<=a
.length
?[null,a
,null]:gc
.exec(a
))&&(e
[1]||!b
)){if(e
[1])return c
=(b
=b
instanceof l
?b
[0]:b
)?b
.ownerDocument
||b:m
,(a
=hc
.exec(a
))?l
.isPlainObject(b
)?(a
=[m
.createElement(a
[1])],l
.fn
.attr
.call(a
,
13 b
,!0)):a
=[c
.createElement(a
[1])]:(a
=l
.buildFragment([e
[1]],[c
]),a
=(a
.cacheable
?l
.clone(a
.fragment
):a
.fragment
).childNodes
),l
.merge(this,a
);if((b
=m
.getElementById(e
[2]))&&b
.parentNode
){if(b
.id
!==e
[2])return c
.find(a
);this.length
=1;this[0]=b
}this.context
=m
;this.selector
=a
;return this}return!b
||b
.jquery
?(b
||c
).find(a
):this.constructor(b
).find(a
)}if(l
.isFunction(a
))return c
.ready(a
);a
.selector
!==k
&&(this.selector
=a
.selector
,this.context
=a
.context
);return l
.makeArray(a
,this)},selector:"",jquery:"1.7.1",
14 length:0,size:function(){return this.length
},toArray:function(){return da
.call(this,0)},get:function(a
){return null==a
?this.toArray():0>a
?this[this.length
+a
]:this[a
]},pushStack:function(a
,b
,c
){var e
=this.constructor();l
.isArray(a
)?Fa
.apply(e
,a
):l
.merge(e
,a
);e
.prevObject
=this;e
.context
=this.context
;"find"===b
?e
.selector
=this.selector
+(this.selector
?" ":"")+c:b
&&(e
.selector
=this.selector
+"."+b
+"("+c
+")");return e
},each:function(a
,b
){return l
.each(this,a
,b
)},ready:function(a
){l
.bindReady();la
.add(a
);
15 return this},eq:function(a
){a
=+a
;return-1===a
?this.slice(a
):this.slice(a
,a
+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(da
.apply(this,arguments
),"slice",da
.call(arguments
).join(","))},map:function(a
){return this.pushStack(l
.map(this,function(b
,c
){return a
.call(b
,c
,b
)}))},end:function(){return this.prevObject
||this.constructor(null)},push:Fa
,sort:[].sort
,splice:[].splice
};l
.fn
.init
.prototype=l
.fn
;l
.extend
=l
.fn
.extend=function(){var a
,
16 b
,c
,e
,d
,g
=arguments
[0]||{},h
=1,i
=arguments
.length
,p
=!1;"boolean"===typeof g
&&(p
=g
,g
=arguments
[1]||{},h
=2);"object"!==typeof g
&&!l
.isFunction(g
)&&(g
={});i
===h
&&(g
=this,--h
);for(;h
<i
;h
++)if(null!=(a
=arguments
[h
]))for(b
in a
)c
=g
[b
],e
=a
[b
],g
!==e
&&(p
&&e
&&(l
.isPlainObject(e
)||(d
=l
.isArray(e
)))?(d
?(d
=!1,c
=c
&&l
.isArray(c
)?c:[]):c
=c
&&l
.isPlainObject(c
)?c:{},g
[b
]=l
.extend(p
,c
,e
)):e
!==k
&&(g
[b
]=e
));return g
};l
.extend({noConflict:function(a
){j
.$===l
&&(j
.$=fc
);a
&&j
.jQuery
===l
&&(j
.jQuery
=ec
);return l
},isReady:!1,
17 readyWait:1,holdReady:function(a
){a
?l
.readyWait
++:l
.ready(!0)},ready:function(a
){if(!0===a
&&!--l
.readyWait
||!0!==a
&&!l
.isReady
){if(!m
.body
)return setTimeout(l
.ready
,1);l
.isReady
=!0;!0!==a
&&0<--l
.readyWait
||(la
.fireWith(m
,[l
]),l
.fn
.trigger
&&l(m
).trigger("ready").off("ready"))}},bindReady:function(){if(!la
){la
=l
.Callbacks("once memory");if("complete"===m
.readyState
)return setTimeout(l
.ready
,1);if(m
.addEventListener
)m
.addEventListener("DOMContentLoaded",V
,!1),j
.addEventListener("load",l
.ready
,!1);else if(m
.attachEvent
){m
.attachEvent("onreadystatechange",
18 V
);j
.attachEvent("onload",l
.ready
);var a
=!1;try{a
=null==j
.frameElement
}catch(b
){}m
.documentElement
.doScroll
&&a
&&hb()}}},isFunction:function(a
){return"function"===l
.type(a
)},isArray:Array
.isArray
||function(a
){return"array"===l
.type(a
)},isWindow:function(a
){return a
&&"object"===typeof a
&&"setInterval"in a
},isNumeric:function(a
){return!isNaN(parseFloat(a
))&&isFinite(a
)},type:function(a
){return null==a
?String(a
):ob
[uc
.call(a
)]||"object"},isPlainObject:function(a
){if(!a
||"object"!==l
.type(a
)||a
.nodeType
||
19 l
.isWindow(a
))return!1;try{if(a
.constructor&&!Ea
.call(a
,"constructor")&&!Ea
.call(a
.constructor.prototype,"isPrototypeOf"))return!1}catch(b
){return!1}for(var c
in a
);return c
===k
||Ea
.call(a
,c
)},isEmptyObject:function(a
){for(var b
in a
)return!1;return!0},error:function(a
){throw Error(a
);},parseJSON:function(a
){if("string"!==typeof a
||!a
)return null;a
=l
.trim(a
);if(j
.JSON
&&j
.JSON
.parse
)return j
.JSON
.parse(a
);if(ic
.test(a
.replace(jc
,"@").replace(kc
,"]").replace(lc
,"")))return(new Function("return "+a
))();
20 l
.error("Invalid JSON: "+a
)},parseXML:function(a
){var b
,c
;try{j
.DOMParser
?(c
=new DOMParser
,b
=c
.parseFromString(a
,"text/xml")):(b
=new ActiveXObject("Microsoft.XMLDOM"),b
.async
="false",b
.loadXML(a
))}catch(e
){b
=k
}(!b
||!b
.documentElement
||b
.getElementsByTagName("parsererror").length
)&&l
.error("Invalid XML: "+a
);return b
},noop:function(){},globalEval:function(a
){a
&&jb
.test(a
)&&(j
.execScript
||function(a
){j
.eval
.call(j
,a
)})(a
)},camelCase:function(a
){return a
.replace(rc
,"ms-").replace(qc
,sc
)},nodeName:function(a
,
21 b
){return a
.nodeName
&&a
.nodeName
.toUpperCase()===b
.toUpperCase()},each:function(a
,b
,c
){var e
,d
=0,g
=a
.length
,h
=g
===k
||l
.isFunction(a
);if(c
)if(h
)for(e
in a
){if(!1===b
.apply(a
[e
],c
))break}else for(;d
<g
&&!1!==b
.apply(a
[d
++],c
););else if(h
)for(e
in a
){if(!1===b
.call(a
[e
],e
,a
[e
]))break}else for(;d
<g
&&!1!==b
.call(a
[d
],d
,a
[d
++]););return a
},trim:mb
?function(a
){return null==a
?"":mb
.call(a
)}:function(a
){return null==a
?"":a
.toString().replace(kb
,"").replace(lb
,"")},makeArray:function(a
,b
){var c
=b
||[];if(null!=
22 a
){var e
=l
.type(a
);null==a
.length
||"string"===e
||"function"===e
||"regexp"===e
||l
.isWindow(a
)?Fa
.call(c
,a
):l
.merge(c
,a
)}return c
},inArray:function(a
,b
,c
){var e
;if(b
){if(nb
)return nb
.call(b
,a
,c
);e
=b
.length
;for(c
=c
?0>c
?Math
.max(0,e
+c
):c:0;c
<e
;c
++)if(c
in b
&&b
[c
]===a
)return c
}return-1},merge:function(a
,b
){var c
=a
.length
,e
=0;if("number"===typeof b
.length
)for(var d
=b
.length
;e
<d
;e
++)a
[c
++]=b
[e
];else for(;b
[e
]!==k
;)a
[c
++]=b
[e
++];a
.length
=c
;return a
},grep:function(a
,b
,c
){for(var e
=[],d
,c
=!!c
,g
=0,h
=a
.length
;g
<
23 h
;g
++)d
=!!b(a
[g
],g
),c
!==d
&&e
.push(a
[g
]);return e
},map:function(a
,b
,c
){var e
,d
,g
=[],h
=0,i
=a
.length
;if(a
instanceof l
||i
!==k
&&"number"===typeof i
&&(0<i
&&a
[0]&&a
[i
-1]||0===i
||l
.isArray(a
)))for(;h
<i
;h
++)e
=b(a
[h
],h
,c
),null!=e
&&(g
[g
.length
]=e
);else for(d
in a
)e
=b(a
[d
],d
,c
),null!=e
&&(g
[g
.length
]=e
);return g
.concat
.apply([],g
)},guid:1,proxy:function(a
,b
){if("string"===typeof b
)var c
=a
[b
],b
=a
,a
=c
;if(!l
.isFunction(a
))return k
;var e
=da
.call(arguments
,2),c=function(){return a
.apply(b
,e
.concat(da
.call(arguments
)))};
24 c
.guid
=a
.guid
=a
.guid
||c
.guid
||l
.guid
++;return c
},access:function(a
,b
,c
,e
,d
,g
){var h
=a
.length
;if("object"===typeof b
){for(var i
in b
)l
.access(a
,i
,b
[i
],e
,d
,c
);return a
}if(c
!==k
){e
=!g
&&e
&&l
.isFunction(c
);for(i
=0;i
<h
;i
++)d(a
[i
],b
,e
?c
.call(a
[i
],i
,d(a
[i
],b
)):c
,g
);return a
}return h
?d(a
[0],b
):k
},now:function(){return(new Date
).getTime()},uaMatch:function(a
){a
=a
.toLowerCase();a
=mc
.exec(a
)||nc
.exec(a
)||oc
.exec(a
)||0>a
.indexOf("compatible")&&pc
.exec(a
)||[];return{browser:a
[1]||"",version:a
[2]||"0"}},sub:function(){function a(b
,
25 e
){return new a
.fn
.init(b
,e
)}l
.extend(!0,a
,this);a
.superclass
=this;a
.fn
=a
.prototype=this();a
.fn
.constructor=a
;a
.sub
=this.sub
;a
.fn
.init=function(c
,e
){e
&&(e
instanceof l
&&!(e
instanceof a
))&&(e
=a(e
));return l
.fn
.init
.call(this,c
,e
,b
)};a
.fn
.init
.prototype=a
.fn
;var b
=a(m
);return a
},browser:{}});l
.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a
,b
){ob
["[object "+b
+"]"]=b
.toLowerCase()});ka
=l
.uaMatch(tc
);ka
.browser
&&(l
.browser
[ka
.browser
]=!0,l
.browser
.version
=ka
.version
);
26 l
.browser
.webkit
&&(l
.browser
.safari
=!0);jb
.test("\u00a0")&&(kb
=/^[\s\xA0]+/,lb
=/[\s\xA0]+$/);ib
=l(m
);m
.addEventListener
?V=function(){m
.removeEventListener("DOMContentLoaded",V
,!1);l
.ready()}:m
.attachEvent
&&(V=function(){"complete"===m
.readyState
&&(m
.detachEvent("onreadystatechange",V
),l
.ready())});d
=l
;var pb
={};d
.Callbacks=function(a
){var b
;if(a
){if(!(b
=pb
[a
])){b
=a
;var c
=pb
[b
]={},e
,f
;b
=b
.split(/\s+/);e
=0;for(f
=b
.length
;e
<f
;e
++)c
[b
[e
]]=!0;b
=c
}}else b
={};var a
=b
,g
=[],h
=[],i
,p
,j
,M
,m
,l=function(b
){var c
,
27 e
,f
,h
;c
=0;for(e
=b
.length
;c
<e
;c
++)f
=b
[c
],h
=d
.type(f
),"array"===h
?l(f
):"function"===h
&&(!a
.unique
||!q
.has(f
))&&g
.push(f
)},n=function(b
,c
){c
=c
||[];i
=!a
.memory
||[b
,c
];p
=!0;m
=j
||0;j
=0;for(M
=g
.length
;g
&&m
<M
;m
++)if(!1===g
[m
].apply(b
,c
)&&a
.stopOnFalse
){i
=!0;break}p
=!1;g
&&(a
.once
?!0===i
?q
.disable():g
=[]:h
&&h
.length
&&(i
=h
.shift(),q
.fireWith(i
[0],i
[1])))},q
={add:function(){if(g
){var a
=g
.length
;l(arguments
);p
?M
=g
.length:i
&&!0!==i
&&(j
=a
,n(i
[0],i
[1]))}return this},remove:function(){if(g
)for(var b
=arguments
,c
=0,
28 e
=b
.length
;c
<e
;c
++)for(var d
=0;d
<g
.length
&&!(b
[c
]===g
[d
]&&(p
&&d
<=M
&&(M
--,d
<=m
&&m
--),g
.splice(d
--,1),a
.unique
));d
++);return this},has:function(a
){if(g
)for(var b
=0,c
=g
.length
;b
<c
;b
++)if(a
===g
[b
])return!0;return!1},empty:function(){g
=[];return this},disable:function(){g
=h
=i
=k
;return this},disabled:function(){return!g
},lock:function(){h
=k
;(!i
||!0===i
)&&q
.disable();return this},locked:function(){return!h
},fireWith:function(b
,c
){h
&&(p
?a
.once
||h
.push([b
,c
]):(!a
.once
||!i
)&&n(b
,c
));return this},fire:function(){q
.fireWith(this,
29 arguments
);return this},fired:function(){return!!i
}};return q
};var Ha
=[].slice
;d
.extend({Deferred:function(a
){var b
=d
.Callbacks("once memory"),c
=d
.Callbacks("once memory"),e
=d
.Callbacks("memory"),f
="pending",g
={resolve:b
,reject:c
,notify:e
},h
={done:b
.add
,fail:c
.add
,progress:e
.add
,state:function(){return f
},isResolved:b
.fired
,isRejected:c
.fired
,then:function(a
,b
,c
){i
.done(a
).fail(b
).progress(c
);return this},always:function(){i
.done
.apply(i
,arguments
).fail
.apply(i
,arguments
);return this},pipe:function(a
,
30 b
,c
){return d
.Deferred(function(e
){d
.each({done:[a
,"resolve"],fail:[b
,"reject"],progress:[c
,"notify"]},function(a
,b
){var c
=b
[0],f
=b
[1],g
;if(d
.isFunction(c
))i
[a
](function(){if((g
=c
.apply(this,arguments
))&&d
.isFunction(g
.promise
))g
.promise().then(e
.resolve
,e
.reject
,e
.notify
);else e
[f
+"With"](this===i
?e:this,[g
])});else i
[a
](e
[f
])})}).promise()},promise:function(a
){if(null==a
)a
=h
;else for(var b
in h
)a
[b
]=h
[b
];return a
}},i
=h
.promise({}),p
;for(p
in g
)i
[p
]=g
[p
].fire
,i
[p
+"With"]=g
[p
].fireWith
;i
.done(function(){f
=
31 "resolved"},c
.disable
,e
.lock
).fail(function(){f
="rejected"},b
.disable
,e
.lock
);a
&&a
.call(i
,i
);return i
},when:function(a
){function b(a
){return function(b
){e
[a
]=1<arguments
.length
?Ha
.call(arguments
,0):b
;--i
||p
.resolveWith(p
,e
)}}function c(a
){return function(b
){h
[a
]=1<arguments
.length
?Ha
.call(arguments
,0):b
;p
.notifyWith(j
,h
)}}var e
=Ha
.call(arguments
,0),f
=0,g
=e
.length
,h
=Array(g
),i
=g
,p
=1>=g
&&a
&&d
.isFunction(a
.promise
)?a:d
.Deferred(),j
=p
.promise();if(1<g
){for(;f
<g
;f
++)e
[f
]&&e
[f
].promise
&&d
.isFunction(e
[f
].promise
)?
32 e
[f
].promise().then(b(f
),p
.reject
,c(f
)):--i
;i
||p
.resolveWith(p
,e
)}else p
!==a
&&p
.resolveWith(p
,g
?[a
]:[]);return j
}});var vc
=d
,Ia
;var w
,Ja
,W
,ma
,na
,A
,X
,J
,ea
,oa
,Ka
,Y
,q
=m
.createElement("div");q
.setAttribute("className","t");q
.innerHTML
=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";Ja
=q
.getElementsByTagName("*");W
=q
.getElementsByTagName("a")[0];if(!Ja
||!Ja
.length
||!W
)Ia
={};else{ma
=m
.createElement("select");na
=ma
.appendChild(m
.createElement("option"));
33 A
=q
.getElementsByTagName("input")[0];w
={leadingWhitespace:3===q
.firstChild
.nodeType
,tbody:!q
.getElementsByTagName("tbody").length
,htmlSerialize:!!q
.getElementsByTagName("link").length
,style:/top/.test(W
.getAttribute("style")),hrefNormalized:"/a"===W
.getAttribute("href"),opacity:/^0.55/.test(W.style.opacity),cssFloat:!!W.style.cssFloat,checkOn:"on"===A.value,optSelected:na.selected,getSetAttribute:"t"!==q.className,enctype:!!m.createElement("form").enctype,html5Clone:"<:nav></:nav
>"!==m.createElement("nav
").cloneNode(!0).outerHTML,
34 submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};A.checked=!0;w.noCloneChecked=A.cloneNode(!0).checked;ma.disabled=!0;w.optDisabled=!na.disabled;try{delete q.test}catch(md){w.deleteExpando=!1}!q.addEventListener&&(q.attachEvent&&q.fireEvent)&&(q.attachEvent("onclick
",function(){w.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick
"));A=m.createElement("input
");A.value="t
";A.setAttribute("type
",
35 "radio
");w.radioValue="t
"===A.value;A.setAttribute("checked
","checked
");q.appendChild(A);J=m.createDocumentFragment();J.appendChild(q.lastChild);w.checkClone=J.cloneNode(!0).cloneNode(!0).lastChild.checked;w.appendChecked=A.checked;J.removeChild(A);J.appendChild(q);q.innerHTML="";j.getComputedStyle&&(X=m.createElement("div
"),X.style.width="0",X.style.marginRight="0",q.style.width="2px
",q.appendChild(X),w.reliableMarginRight=0===(parseInt((j.getComputedStyle(X,null)||{marginRight:0}).marginRight,10)||
36 0));if(q.attachEvent)for(Ka in{submit:1,change:1,focusin:1})oa="on
"+Ka,Y=oa in q,Y||(q.setAttribute(oa,"return;"),Y="function"===typeof q[oa]),w[Ka+"Bubbles
"]=Y;J.removeChild(q);J=ma=na=X=q=A=null;d(function(){var a,b,c,e,f=m.getElementsByTagName("body
")[0];f&&(a=m.createElement("div
"),a.style.cssText="visibility:hidden
;border:0;width:0;height:0;position:static;top:0;margin
-top:1px
",f.insertBefore(a,f.firstChild),q=m.createElement("div
"),a.appendChild(q),q.innerHTML="<table
><tr
><td style
='padding:0;border:0;display:none'></td><td>t</td
></tr></table
>",
37 ea=q.getElementsByTagName("td
"),Y=0===ea[0].offsetHeight,ea[0].style.display="",ea[1].style.display="none
",w.reliableHiddenOffsets=Y&&0===ea[0].offsetHeight,q.innerHTML="",q.style.width=q.style.paddingLeft="1px
",d.boxModel=w.boxModel=2===q.offsetWidth,"undefined"!==typeof q.style.zoom&&(q.style.display="inline
",q.style.zoom=1,w.inlineBlockNeedsLayout=2===q.offsetWidth,q.style.display="",q.innerHTML="<div style
='width:4px;'></div
>",w.shrinkWrapBlocks=2!==q.offsetWidth),q.style.cssText="position:absolute
;top:0;left:0;width:1px
;height:1px
;margin:0;visibility:hidden
;border:0;",
38 q.innerHTML="<div style
='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div
></div></div><table style
='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding
='0' cellspacing
='0'><tr
><td
></td></tr
></table
>",b=q.firstChild,c=b.firstChild,e=b.nextSibling.firstChild.firstChild,e={doesNotAddBorder:5!==c.offsetTop,doesAddBorderForTableAndCells:5===e.offsetTop},c.style.position="fixed
",c.style.top="20px
",
39 e.fixedPosition=20===c.offsetTop||15===c.offsetTop,c.style.position=c.style.top="",b.style.overflow="hidden
",b.style.position="relative
",e.subtractsBorderForOverflowNotVisible=-5===c.offsetTop,e.doesNotIncludeMarginInBodyOffset=1!==f.offsetTop,f.removeChild(a),q=null,d.extend(w,e))});Ia=w}vc.support=Ia;var Wb=/^(?:\{.*\}|\[.*\])$/,Vb=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery
"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E
-AE6D
-11cf
-96B8
-444553540000",
40 applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!u(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f;f=d.expando;var g="string
"===typeof b,h=a.nodeType,i=h?d.cache:a,p=h?a[f]:a[f]&&f,j="events
"===b;if(p&&i[p]&&(j||e||i[p].data)||!(g&&c===k)){p||(h?a[f]=p=++d.uuid:p=f);i[p]||(i[p]={},h||(i[p].toJSON=d.noop));if("object
"===typeof b||"function"===typeof b)e?i[p]=d.extend(i[p],b):i[p].data=d.extend(i[p].data,b);f=a=i[p];e||(a.data||(a.data={}),a=a.data);c!==
41 k&&(a[d.camelCase(b)]=c);if(j&&!a[b])return f.events;g?(c=a[b],null==c&&(c=a[d.camelCase(b)])):c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var e,f,g,h=d.expando,i=a.nodeType,p=i?d.cache:a,j=i?a[h]:h;if(p[j]){if(b&&(e=c?p[j]:p[j].data)){d.isArray(b)||(b in e?b=[b]:(b=d.camelCase(b),b=b in e?[b]:b.split(" ")));f=0;for(g=b.length;f<g;f++)delete e[b[f]];if(!(c?u:d.isEmptyObject)(e))return}if(!c&&(delete p[j].data,!u(p[j])))return;d.support.deleteExpando||!p.setInterval?delete p[j]:
42 p[j]=null;i&&(d.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return!(!0===b||a.getAttribute("classid
")!==b)}return!0}});d.fn.extend({data:function(a,b){var c,e,f,g=null;if("undefined"===typeof a){if(this.length&&(g=d.data(this[0]),1===this[0].nodeType&&!d._data(this[0],"parsedAttrs
"))){e=this[0].attributes;for(var h=0,i=e.length;h<
43 i;h++)f=e[h].name,0===f.indexOf("data
-")&&(f=d.camelCase(f.substring(5)),s(this[0],f,g[f]));d._data(this[0],"parsedAttrs
",!0)}return g}if("object
"===typeof a)return this.each(function(){d.data(this,a)});c=a.split(".");c[1]=c[1]?"."+c[1]:"";return b===k?(g=this.triggerHandler("getData
"+c[1]+"!",[c[0]]),g===k&&this.length&&(g=d.data(this[0],a),g=s(this[0],a,g)),g===k&&c[1]?this.data(c[0]):g):this.each(function(){var e=d(this),f=[c[0],b];e.triggerHandler("setData
"+c[1]+"!",f);d.data(this,a,b);e.triggerHandler("changeData
"+
44 c[1]+"!",f)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({_mark:function(a,b){a&&(b=(b||"fx
")+"mark
",d._data(a,b,(d._data(a,b)||0)+1))},_unmark:function(a,b,c){!0!==a&&(c=b,b=a,a=!1);if(b){var c=c||"fx
",e=c+"mark
";(a=a?0:(d._data(b,e)||1)-1)?d._data(b,e,a):(d.removeData(b,e,!0),x(b,c,"mark
"))}},queue:function(a,b,c){var e;if(a)return b=(b||"fx
")+"queue
",e=d._data(a,b),c&&(!e||d.isArray(c)?e=d._data(a,b,d.makeArray(c)):e.push(c)),e||[]},dequeue:function(a,
45 b){var b=b||"fx
",c=d.queue(a,b),e=c.shift(),f={};"inprogress
"===e&&(e=c.shift());e&&("fx
"===b&&c.unshift("inprogress
"),d._data(a,b+".run
",f),e.call(a,function(){d.dequeue(a,b)},f));c.length||(d.removeData(a,b+"queue
"+b+".run
",!0),x(a,b,"queue
"))}});d.fn.extend({queue:function(a,b){"string
"!==typeof a&&(b=a,a="fx
");return b===k?d.queue(this[0],a):this.each(function(){var c=d.queue(this,a,b);"fx
"===a&&"inprogress
"!==c[0]&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,
46 a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;return this.queue(b||"fx
",function(b,e){var d=setTimeout(b,a);e.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx
",[])},promise:function(a){function b(){--g||c.resolveWith(e,[e])}"string
"!==typeof a&&(a=k);for(var a=a||"fx
",c=d.Deferred(),e=this,f=e.length,g=1,h=a+"defer
",i=a+"queue
",a=a+"mark
",p;f--;)if(p=d.data(e[f],h,k,!0)||(d.data(e[f],i,k,!0)||d.data(e[f],a,k,!0))&&d.data(e[f],h,d.Callbacks("once memory
"),
47 !0))g++,p.add(b);b();return c.promise()}});var qb=/[\n\t\r]/g,pa=/\s+/,wc=/\r/g,xc=/^(?:button|input)$/i,yc=/^(?:button|input|object|select|textarea)$/i,zc=/^a(?:rea)?$/i,rb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,sb=d.support.getSetAttribute,H,tb,ub;d.fn.extend({attr:function(a,b){return d.access(this,a,b,!0,d.attr)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})},prop:function(a,b){return d.access(this,
48 a,b,!0,d.prop)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=k,delete this[a]}catch(b){}})},addClass:function(a){var b,c,e,f,g,h,i;if(d.isFunction(a))return this.each(function(b){d(this).addClass(a.call(this,b,this.className))});if(a&&"string
"===typeof a){b=a.split(pa);c=0;for(e=this.length;c<e;c++)if(f=this[c],1===f.nodeType)if(!f.className&&1===b.length)f.className=a;else{g=" "+f.className+" ";h=0;for(i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");
49 f.className=d.trim(g)}}return this},removeClass:function(a){var b,c,e,f,g,h,i;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,b,this.className))});if(a&&"string
"===typeof a||a===k){b=(a||"").split(pa);c=0;for(e=this.length;c<e;c++)if(f=this[c],1===f.nodeType&&f.className)if(a){g=(" "+f.className+" ").replace(qb," ");h=0;for(i=b.length;h<i;h++)g=g.replace(" "+b[h]+" "," ");f.className=d.trim(g)}else f.className=""}return this},toggleClass:function(a,b){var c=typeof a,
50 e="boolean"===typeof b;return d.isFunction(a)?this.each(function(c){d(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if("string
"===c)for(var f,g=0,h=d(this),i=b,p=a.split(pa);f=p[g++];)i=e?i:!h.hasClass(f),h[i?"addClass
":"removeClass
"](f);else if("undefined"===c||"boolean"===c)this.className&&d._data(this,"__className__
",this.className),this.className=this.className||!1===a?"":d._data(this,"__className__
")||""})},hasClass:function(a){for(var a=" "+a+" ",b=0,c=this.length;b<
51 c;b++)if(1===this[b].nodeType&&-1<(" "+this[b].className+" ").replace(qb," ").indexOf(a))return!0;return!1},val:function(a){var b,c,e,f=this[0];if(arguments.length)return e=d.isFunction(a),this.each(function(c){var f=d(this);if(1===this.nodeType&&(c=e?a.call(this,c,f.val()):a,null==c?c="":"number
"===typeof c?c+="":d.isArray(c)&&(c=d.map(c,function(a){return null==a?"":a+""})),b=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!b||!("set"in b)||b.set(this,c,"value
")===k))this.value=c});
52 if(f){if((b=d.valHooks[f.nodeName.toLowerCase()]||d.valHooks[f.type])&&"get"in b&&(c=b.get(f,"value
"))!==k)return c;c=f.value;return"string
"===typeof c?c.replace(wc,""):null==c?"":c}}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,e=a.selectedIndex,f=[],g=a.options,h="select
-one
"===a.type;if(0>e)return null;a=h?e:0;for(c=h?e+1:g.length;a<c;a++)if(b=g[a],b.selected&&(d.support.optDisabled?!b.disabled:null===
53 b.getAttribute("disabled
"))&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup
"))){b=d(b).val();if(h)return b;f.push(b)}return h&&!f.length&&g.length?d(g[e]).val():f},set:function(a,b){var c=d.makeArray(b);d(a).find("option
").each(function(){this.selected=0<=d.inArray(d(this).val(),c)});c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,c,e){var f,g,h=a.nodeType;if(a&&!(3===h||8===h||2===h)){if(e&&b in
54 d.attrFn)return d(a)[b](c);if("undefined"===typeof a.getAttribute)return d.prop(a,b,c);if(e=1!==h||!d.isXMLDoc(a))b=b.toLowerCase(),g=d.attrHooks[b]||(rb.test(b)?tb:H);if(c!==k)if(null===c)d.removeAttr(a,b);else{if(g&&"set"in g&&e&&(f=g.set(a,c,b))!==k)return f;a.setAttribute(b,""+c);return c}else{if(g&&"get"in g&&e&&null!==(f=g.get(a,b)))return f;f=a.getAttribute(b);return null===f?k:f}}},removeAttr:function(a,b){var c,e,f,g,h=0;if(b&&1===a.nodeType){e=b.toLowerCase().split(pa);for(g=e.length;h<
55 g;h++)if(f=e[h])c=d.propFix[f]||f,d.attr(a,f,""),a.removeAttribute(sb?f:c),rb.test(f)&&c in a&&(a[c]=!1)}},attrHooks:{type:{set:function(a,b){if(xc.test(a.nodeName)&&a.parentNode)d.error("type property can
't be changed");else if(!d.support.radioValue&&"radio"===b&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);c&&(a.value=c);return b}}},value:{get:function(a,b){return H&&d.nodeName(a,"button")?H.get(a,b):b in a?a.value:null},set:function(a,b,c){if(H&&d.nodeName(a,"button"))return H.set(a,
56 b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var e,f,g;g=a.nodeType;if(a&&!(3===g||8===g||2===g)){if(g=1!==g||!d.isXMLDoc(a))b=d.propFix[b]||b,f=d.propHooks[b];return c!==k?f&&"set"in f&&(e=f.set(a,c,b))!==k?e:a[b]=c:f&&"get"in f&&null!==
57 (e=f.get(a,b))?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):yc.test(a.nodeName)||zc.test(a.nodeName)&&a.href?0:k}}}});d.attrHooks.tabindex=d.propHooks.tabIndex;tb={get:function(a,b){var c,e=d.prop(a,b);return!0===e||"boolean"!==typeof e&&(c=a.getAttributeNode(b))&&!1!==c.nodeValue?b.toLowerCase():k},set:function(a,b,c){!1===b?d.removeAttr(a,c):(b=d.propFix[c]||c,b in a&&(a[b]=!0),a.setAttribute(c,c.toLowerCase()));return c}};
58 sb||(ub={name:!0,id:!0},H=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(ub[b]?""!==c.nodeValue:c.specified)?c.nodeValue:k},set:function(a,b,c){var e=a.getAttributeNode(c);e||(e=m.createAttribute(c),a.setAttributeNode(e));return e.nodeValue=b+""}},d.attrHooks.tabindex.set=H.set,d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{set:function(a,e){if(""===e)return a.setAttribute(b,"auto"),e}})}),d.attrHooks.contenteditable={get:H.get,set:function(a,
59 b,c){""===b&&(b="false");H.set(a,b,c)}});d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return null===a?k:a}})});d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||k},set:function(a,b){return a.style.cssText=""+b}});d.support.optSelected||(d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&
60 a.parentNode.selectedIndex;return null}}));d.support.enctype||(d.propFix.enctype="encoding");d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return null===a.getAttribute("value")?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=0<=d.inArray(d(a).val(),b)}})});var La=/^(?:textarea|input|select)$/i,vb=/^([^\.]*)?(?:\.(.+))?$/,Ac=/\bhover(\.\S+)?\b/,Bc=/^key/,
61 Cc=/^(?:mouse|contextmenu)|click/,wb=/^(?:focusinfocus|focusoutblur)$/,Dc=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Ec=function(a){if(a=Dc.exec(a))a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)");return a},xb=function(a){return d.event.special.hover?a:a.replace(Ac,"mouseenter$1 mouseleave$1")};d.event={add:function(a,b,c,e,f){var g,h,i,p,j,m,l,t,n;if(!(3===a.nodeType||8===a.nodeType||!b||!c||!(g=d._data(a)))){c.handler&&(l=c,c=l.handler);c.guid||(c.guid=d.guid++);i=g.events;
62 i||(g.events=i={});h=g.handle;h||(g.handle=h=function(a){return"undefined"!==typeof d&&(!a||d.event.triggered!==a.type)?d.event.dispatch.apply(h.elem,arguments):k},h.elem=a);b=d.trim(xb(b)).split(" ");for(g=0;g<b.length;g++){p=vb.exec(b[g])||[];j=p[1];m=(p[2]||"").split(".").sort();n=d.event.special[j]||{};j=(f?n.delegateType:n.bindType)||j;n=d.event.special[j]||{};p=d.extend({type:j,origType:p[1],data:e,handler:c,guid:c.guid,selector:f,quick:Ec(f),namespace:m.join(".")},l);t=i[j];if(!t&&(t=i[j]=
63 [],t.delegateCount=0,!n.setup||!1===n.setup.call(a,e,m,h)))a.addEventListener?a.addEventListener(j,h,!1):a.attachEvent&&a.attachEvent("on"+j,h);n.add&&(n.add.call(a,p),p.handler.guid||(p.handler.guid=c.guid));f?t.splice(t.delegateCount++,0,p):t.push(p);d.event.global[j]=!0}a=null}},global:{},remove:function(a,b,c,e,f){var g=d.hasData(a)&&d._data(a),h,i,j,k,m,l,t,n,q,r;if(g&&(t=g.events)){b=d.trim(xb(b||"")).split(" ");for(h=0;h<b.length;h++)if(i=vb.exec(b[h])||[],j=k=i[1],i=i[2],j){n=d.event.special[j]||
64 {};j=(e?n.delegateType:n.bindType)||j;q=t[j]||[];m=q.length;i=i?RegExp("(^|\\.)"+i.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(l=0;l<q.length;l++)if(r=q[l],(f||k===r.origType)&&(!c||c.guid===r.guid)&&(!i||i.test(r.namespace))&&(!e||e===r.selector||"**"===e&&r.selector))q.splice(l--,1),r.selector&&q.delegateCount--,n.remove&&n.remove.call(a,r);0===q.length&&m!==q.length&&((!n.teardown||!1===n.teardown.call(a,i))&&d.removeEvent(a,j,g.handle),delete t[j])}else for(j in t)d.event.remove(a,
65 j+b[h],c,e,!0);if(d.isEmptyObject(t)){if(b=g.handle)b.elem=null;d.removeData(a,["events","handle"],!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,c,e){if(!c||!(3===c.nodeType||8===c.nodeType)){var f=a.type||a,g=[],h,i,p,m,l;if(!wb.test(f+d.event.triggered)&&(0<=f.indexOf("!")&&(f=f.slice(0,-1),h=!0),0<=f.indexOf(".")&&(g=f.split("."),f=g.shift(),g.sort()),c&&!d.event.customEvent[f]||d.event.global[f]))if(a="object"===typeof a?a[d.expando]?a:new d.Event(f,a):new d.Event(f),
66 a.type=f,a.isTrigger=!0,a.exclusive=h,a.namespace=g.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=0>f.indexOf(":")?"on"+f:"",c){if(a.result=k,a.target||(a.target=c),b=null!=b?d.makeArray(b):[],b.unshift(a),p=d.event.special[f]||{},!(p.trigger&&!1===p.trigger.apply(c,b))){l=[[c,p.bindType||f]];if(!e&&!p.noBubble&&!d.isWindow(c)){m=p.delegateType||f;g=wb.test(m+f)?c:c.parentNode;for(i=null;g;g=g.parentNode)l.push([g,m]),i=g;i&&i===c.ownerDocument&&l.push([i.defaultView||
67 i.parentWindow||j,m])}for(i=0;i<l.length&&!a.isPropagationStopped();i++)g=l[i][0],a.type=l[i][1],(m=(d._data(g,"events")||{})[a.type]&&d._data(g,"handle"))&&m.apply(g,b),(m=h&&g[h])&&(d.acceptData(g)&&!1===m.apply(g,b))&&a.preventDefault();a.type=f;if(!e&&!a.isDefaultPrevented()&&(!p._default||!1===p._default.apply(c.ownerDocument,b))&&!("click"===f&&d.nodeName(c,"a"))&&d.acceptData(c))if(h&&c[f]&&("focus"!==f&&"blur"!==f||0!==a.target.offsetWidth)&&!d.isWindow(c))(i=c[h])&&(c[h]=null),d.event.triggered=
68 f,c[f](),d.event.triggered=k,i&&(c[h]=i);return a.result}}else for(i in c=d.cache,c)c[i].events&&c[i].events[f]&&d.event.trigger(a,b,c[i].handle.elem,!0)}},dispatch:function(a){var a=d.event.fix(a||j.event),b=(d._data(this,"events")||{})[a.type]||[],c=b.delegateCount,e=[].slice.call(arguments,0),f=!a.exclusive&&!a.namespace,g=[],h,i,p,m,l,n,t;e[0]=a;a.delegateTarget=this;if(c&&!a.target.disabled&&!(a.button&&"click"===a.type)){p=d(this);p.context=this.ownerDocument||this;for(i=a.target;i!=this;i=
69 i.parentNode||this){l={};n=[];p[0]=i;for(h=0;h<c;h++){m=b[h];t=m.selector;if(l[t]===k){var q=l,r=t,s;if(m.quick){s=m.quick;var u=i.attributes||{};s=(!s[1]||i.nodeName.toLowerCase()===s[1])&&(!s[2]||(u.id||{}).value===s[2])&&(!s[3]||s[3].test((u["class"]||{}).value))}else s=p.is(t);q[r]=s}l[t]&&n.push(m)}n.length&&g.push({elem:i,matches:n})}}b.length>c&&g.push({elem:this,matches:b.slice(c)});for(h=0;h<g.length&&!a.isPropagationStopped();h++){c=g[h];a.currentTarget=c.elem;for(b=0;b<c.matches.length&&
70 !a.isImmediatePropagationStopped();b++)if(m=c.matches[b],f||!a.namespace&&!m.namespace||a.namespace_re&&a.namespace_re.test(m.namespace))a.data=m.data,a.handleObj=m,m=((d.event.special[m.origType]||{}).handle||m.handler).apply(c.elem,e),m!==k&&(a.result=m,!1===m&&(a.preventDefault(),a.stopPropagation()))}return a.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
71 fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b){null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,d=b.button,g=b.fromElement;null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||m,e=c.documentElement,c=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||
72 c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0));!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g);!a.which&&d!==k&&(a.which=d&1?1:d&2?3:d&4?2:0);return a}},fix:function(a){if(a[d.expando])return a;var b,c,e=a,f=d.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props,a=d.Event(e);for(b=g.length;b;)c=g[--b],a[c]=e[c];a.target||(a.target=e.srcElement||m);3===a.target.nodeType&&(a.target=a.target.parentNode);
73 a.metaKey===k&&(a.metaKey=a.ctrlKey);return f.filter?f.filter(a,e):a},special:{ready:{setup:d.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){d.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,e){a=d.extend(new d.Event,c,{type:a,isSimulated:!0,originalEvent:{}});e?d.event.trigger(a,null,b):d.event.dispatch.call(b,a);a.isDefaultPrevented()&&
74 c.preventDefault()}};d.event.handle=d.event.dispatch;d.removeEvent=m.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};d.Event=function(a,b){if(!(this instanceof d.Event))return new d.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a.getPreventDefault&&a.getPreventDefault()?E:I):this.type=a;b&&d.extend(this,b);this.timeStamp=a&&
75 a.timeStamp||d.now();this[d.expando]=!0};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E;this.stopPropagation()},isDefaultPrevented:I,isPropagationStopped:I,isImmediatePropagationStopped:I};
76 d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]={delegateType:b,bindType:b,handle:function(a){var e=a.relatedTarget,f=a.handleObj,g;if(!e||e!==this&&!d.contains(this,e))a.type=f.origType,g=f.handler.apply(this,arguments),a.type=b;return g}}});d.support.submitBubbles||(d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,"button")?
77 a.form:k)&&!a._submit_attached)d.event.add(a,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,!0)}),a._submit_attached=!0})},teardown:function(){if(d.nodeName(this,"form"))return!1;d.event.remove(this,"._submit")}});d.support.changeBubbles||(d.event.special.change={setup:function(){if(La.test(this.nodeName)){if("checkbox"===this.type||"radio"===this.type)d.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&
78 (this._just_changed=!0)}),d.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,d.event.simulate("change",this,a,!0))});return!1}d.event.add(this,"beforeactivate._change",function(a){a=a.target;La.test(a.nodeName)&&!a._change_attached&&(d.event.add(a,"change._change",function(a){this.parentNode&&(!a.isSimulated&&!a.isTrigger)&&d.event.simulate("change",this.parentNode,a,!0)}),a._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||
79 a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return La.test(this.nodeName)}});d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,e=function(a){d.event.simulate(b,a.target,d.event.fix(a),!0)};d.event.special[b]={setup:function(){0===c++&&m.addEventListener(a,e,!0)},teardown:function(){0===--c&&m.removeEventListener(a,e,!0)}}});d.fn.extend({on:function(a,
80 b,c,e,f){var g,h;if("object"===typeof a){"string"!==typeof b&&(c=b,b=k);for(h in a)this.on(h,b,c,a[h],f);return this}null==c&&null==e?(e=b,c=b=k):null==e&&("string"===typeof b?(e=c,c=k):(e=c,c=b,b=k));if(!1===e)e=I;else if(!e)return this;1===f&&(g=e,e=function(a){d().off(a);return g.apply(this,arguments)},e.guid=g.guid||(g.guid=d.guid++));return this.each(function(){d.event.add(this,a,e,c,b)})},one:function(a,b,c,e){return this.on.call(this,a,b,c,e,1)},off:function(a,b,c){if(a&&a.preventDefault&&
81 a.handleObj){var e=a.handleObj;d(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if("object"===typeof a){for(e in a)this.off(e,b,a[e]);return this}if(!1===b||"function"===typeof b)c=b,b=k;!1===c&&(c=I);return this.each(function(){d.event.remove(this,a,c,b)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){d(this.context).on(a,this.selector,b,c);return this},die:function(a,b){d(this.context).off(a,
82 this.selector||"**",b);return this},delegate:function(a,b,c,e){return this.on(b,a,c,e)},undelegate:function(a,b,c){return 1==arguments.length?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return d.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||d.guid++,e=0,f=function(c){var f=(d._data(this,"lastToggle"+a.guid)||0)%e;d._data(this,"lastToggle"+a.guid,f+1);c.preventDefault();
83 return b[f].apply(this,arguments)||!1};for(f.guid=c;e<b.length;)b[e++].guid=c;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});d.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(a,b){d.fn[b]=function(a,e){null==e&&(e=a,a=null);return 0<arguments.length?this.on(b,null,a,e):this.trigger(b)};
84 d.attrFn&&(d.attrFn[b]=!0);Bc.test(b)&&(d.event.fixHooks[b]=d.event.keyHooks);Cc.test(b)&&(d.event.fixHooks[b]=d.event.mouseHooks)});var yb=function(a,b,c,e,d,g){for(var d=0,h=e.length;d<h;d++){var i=e[d];if(i){for(var j=!1,i=i[a];i;){if(i[Z]===c){j=e[i.sizset];break}1===i.nodeType&&!g&&(i[Z]=c,i.sizset=d);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}e[d]=j}}},zb=function(a,b,c,e,d,g){for(var d=0,h=e.length;d<h;d++){var i=e[d];if(i){for(var j=!1,i=i[a];i;){if(i[Z]===c){j=e[i.sizset];break}if(1===
85 i.nodeType)if(g||(i[Z]=c,i.sizset=d),"string"!==typeof b){if(i===b){j=!0;break}}else if(0<n.filter(b,[i]).length){j=i;break}i=i[a]}e[d]=j}}},Ma=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Z="sizcache
"+(Math.random()+"").replace(".",""),Na=0,Ab=Object.prototype.toString,qa=!1,Bb=!0,aa=/\\/g,Fc=/\r\n/g,ra=/\W/;[0,0].sort(function(){Bb=!1;return 0});var n=function(a,b,c,e){var c=c||[],d=b=b||m;if(1!==b.nodeType&&
86 9!==b.nodeType)return[];if(!a||"string
"!==typeof a)return c;var g,h,i,j,k,l=!0,q=n.isXML(b),t=[],s=a;do if(Ma.exec(""),g=Ma.exec(s))if(s=g[3],t.push(g[1]),g[2]){j=g[3];break}while(g);if(1<t.length&&Gc.exec(a))if(2===t.length&&r.relative[t[0]])h=Cb(t[0]+t[1],b,e);else for(h=r.relative[t[0]]?[b]:n(t.shift(),b);t.length;)a=t.shift(),r.relative[a]&&(a+=t.shift()),h=Cb(a,h,e);else if(!e&&(1<t.length&&9===b.nodeType&&!q&&r.match.ID.test(t[0])&&!r.match.ID.test(t[t.length-1]))&&(g=n.find(t.shift(),b,q),
87 b=g.expr?n.filter(g.expr,g.set)[0]:g.set[0]),b){g=e?{expr:t.pop(),set:y(e)}:n.find(t.pop(),1===t.length&&("~"===t[0]||"+"===t[0])&&b.parentNode?b.parentNode:b,q);h=g.expr?n.filter(g.expr,g.set):g.set;for(0<t.length?i=y(h):l=!1;t.length;)g=k=t.pop(),r.relative[k]?g=t.pop():k="",null==g&&(g=b),r.relative[k](i,g,q)}else i=[];i||(i=h);i||n.error(k||a);if("[object Array
]"===Ab.call(i))if(l)if(b&&1===b.nodeType)for(a=0;null!=i[a];a++)i[a]&&(!0===i[a]||1===i[a].nodeType&&n.contains(b,i[a]))&&c.push(h[a]);
88 else for(a=0;null!=i[a];a++)i[a]&&1===i[a].nodeType&&c.push(h[a]);else c.push.apply(c,i);else y(i,c);j&&(n(j,d,c,e),n.uniqueSort(c));return c};n.uniqueSort=function(a){if(sa&&(qa=Bb,a.sort(sa),qa))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};n.matches=function(a,b){return n(a,null,null,b)};n.matchesSelector=function(a,b){return 0<n(b,null,null,[a]).length};n.find=function(a,b,c){var e,d,g,h,i,j;if(!a)return[];d=0;for(g=r.order.length;d<g;d++)if(i=r.order[d],h=r.leftMatch[i].exec(a))if(j=
89 h[1],h.splice(1,1),"\\"!==j.substr(j.length-1)&&(h[1]=(h[1]||"").replace(aa,""),e=r.find[i](h,b,c),null!=e)){a=a.replace(r.match[i],"");break}e||(e="undefined"!==typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:e,expr:a}};n.filter=function(a,b,c,e){for(var d,g,h,i,j,m,l,q,t=a,s=[],u=b,w=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(h in r.filter)if(null!=(d=r.leftMatch[h].exec(a))&&d[2])if(m=r.filter[h],j=d[1],g=!1,d.splice(1,1),"\\"!==j.substr(j.length-1)){u===s&&(s=[]);if(r.preFilter[h])if(d=
90 r.preFilter[h](d,u,c,s,e,w)){if(!0===d)continue}else g=i=!0;if(d)for(l=0;null!=(j=u[l]);l++)j&&(i=m(j,d,l,u),q=e^i,c&&null!=i?q?g=!0:u[l]=!1:q&&(s.push(j),g=!0));if(i!==k){c||(u=s);a=a.replace(r.match[h],"");if(!g)return[];break}}if(a===t)if(null==g)n.error(a);else break;t=a}return u};n.error=function(a){throw Error("Syntax error
, unrecognized
expression: "+a);};var Oa=n.getText=function(a){var b,c;b=a.nodeType;var d="";if(b)if(1===b||9===b){if("string
"===typeof a.textContent)return a.textContent;
91 if("string
"===typeof a.innerText)return a.innerText.replace(Fc,"");for(a=a.firstChild;a;a=a.nextSibling)d+=Oa(a)}else{if(3===b||4===b)return a.nodeValue}else for(b=0;c=a[b];b++)8!==c.nodeType&&(d+=Oa(c));return d},r=n.selectors={order:["ID
","NAME
","TAG
"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w
\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
92 TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a
){return a
.getAttribute("href")},type:function(a
){return a
.getAttribute("type")}},relative:{"+":function(a
,b
){var c
=
93 "string"===typeof b
,d
=c
&&!ra
.test(b
),c
=c
&&!d
;d
&&(b
=b
.toLowerCase());for(var d
=0,f
=a
.length
,g
;d
<f
;d
++)if(g
=a
[d
]){for(;(g
=g
.previousSibling
)&&1!==g
.nodeType
;);a
[d
]=c
||g
&&g
.nodeName
.toLowerCase()===b
?g
||!1:g
===b
}c
&&n
.filter(b
,a
,!0)},">":function(a
,b
){var c
,d
="string"===typeof b
,f
=0,g
=a
.length
;if(d
&&!ra
.test(b
))for(b
=b
.toLowerCase();f
<g
;f
++){if(c
=a
[f
])c
=c
.parentNode
,a
[f
]=c
.nodeName
.toLowerCase()===b
?c:!1}else{for(;f
<g
;f
++)(c
=a
[f
])&&(a
[f
]=d
?c
.parentNode:c
.parentNode
===b
);d
&&n
.filter(b
,a
,!0)}},"":function(a
,
94 b
,c
){var d
,f
=Na
++,g
=zb
;"string"===typeof b
&&!ra
.test(b
)&&(d
=b
=b
.toLowerCase(),g
=yb
);g("parentNode",b
,f
,a
,d
,c
)},"~":function(a
,b
,c
){var d
,f
=Na
++,g
=zb
;"string"===typeof b
&&!ra
.test(b
)&&(d
=b
=b
.toLowerCase(),g
=yb
);g("previousSibling",b
,f
,a
,d
,c
)}},find:{ID:function(a
,b
,c
){if("undefined"!==typeof b
.getElementById
&&!c
)return(a
=b
.getElementById(a
[1]))&&a
.parentNode
?[a
]:[]},NAME:function(a
,b
){if("undefined"!==typeof b
.getElementsByName
){for(var c
=[],d
=b
.getElementsByName(a
[1]),f
=0,g
=d
.length
;f
<g
;f
++)d
[f
].getAttribute("name")===
95 a
[1]&&c
.push(d
[f
]);return 0===c
.length
?null:c
}},TAG:function(a
,b
){if("undefined"!==typeof b
.getElementsByTagName
)return b
.getElementsByTagName(a
[1])}},preFilter:{CLASS:function(a
,b
,c
,d
,f
,g
){a
=" "+a
[1].replace(aa
,"")+" ";if(g
)return a
;for(var g
=0,h
;null!=(h
=b
[g
]);g
++)h
&&(f
^(h
.className
&&0<=(" "+h
.className
+" ").replace(/[\t\n\r]/g," ").indexOf(a
))?c
||d
.push(h
):c
&&(b
[g
]=!1));return!1},ID:function(a
){return a
[1].replace(aa
,"")},TAG:function(a
){return a
[1].replace(aa
,"").toLowerCase()},CHILD:function(a
){if("nth"===
96 a
[1]){a
[2]||n
.error(a
[0]);a
[2]=a
[2].replace(/^\+|\s*/g,"");var b
=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a
[2]&&"2n"||"odd"===a
[2]&&"2n+1"||!/\D/.test(a
[2])&&"0n+"+a
[2]||a
[2]);a
[2]=b
[1]+(b
[2]||1)-0;a
[3]=b
[3]-0}else a
[2]&&n
.error(a
[0]);a
[0]=Na
++;return a
},ATTR:function(a
,b
,c
,d
,f
,g
){b
=a
[1]=a
[1].replace(aa
,"");!g
&&r
.attrMap
[b
]&&(a
[1]=r
.attrMap
[b
]);a
[4]=(a
[4]||a
[5]||"").replace(aa
,"");"~="===a
[2]&&(a
[4]=" "+a
[4]+" ");return a
},PSEUDO:function(a
,b
,c
,d
,f
){if("not"===a
[1])if(1<(Ma
.exec(a
[3])||"").length
||
97 /^\w/.test(a
[3]))a
[3]=n(a
[3],null,null,b
);else return a
=n
.filter(a
[3],b
,c
,1^f
),c
||d
.push
.apply(d
,a
),!1;else if(r
.match
.POS
.test(a
[0])||r
.match
.CHILD
.test(a
[0]))return!0;return a
},POS:function(a
){a
.unshift(!0);return a
}},filters:{enabled:function(a
){return!1===a
.disabled
&&"hidden"!==a
.type
},disabled:function(a
){return!0===a
.disabled
},checked:function(a
){return!0===a
.checked
},selected:function(a
){a
.parentNode
&&a
.parentNode
.selectedIndex
;return!0===a
.selected
},parent:function(a
){return!!a
.firstChild
},
98 empty:function(a
){return!a
.firstChild
},has:function(a
,b
,c
){return!!n(c
[3],a
).length
},header:function(a
){return/h\d/i.test(a
.nodeName
)},text:function(a
){var b
=a
.getAttribute("type"),c
=a
.type
;return"input"===a
.nodeName
.toLowerCase()&&"text"===c
&&(b
===c
||null===b
)},radio:function(a
){return"input"===a
.nodeName
.toLowerCase()&&"radio"===a
.type
},checkbox:function(a
){return"input"===a
.nodeName
.toLowerCase()&&"checkbox"===a
.type
},file:function(a
){return"input"===a
.nodeName
.toLowerCase()&&"file"===a
.type
},
99 password:function(a
){return"input"===a
.nodeName
.toLowerCase()&&"password"===a
.type
},submit:function(a
){var b
=a
.nodeName
.toLowerCase();return("input"===b
||"button"===b
)&&"submit"===a
.type
},image:function(a
){return"input"===a
.nodeName
.toLowerCase()&&"image"===a
.type
},reset:function(a
){var b
=a
.nodeName
.toLowerCase();return("input"===b
||"button"===b
)&&"reset"===a
.type
},button:function(a
){var b
=a
.nodeName
.toLowerCase();return"input"===b
&&"button"===a
.type
||"button"===b
},input:function(a
){return/input|select|textarea|button/i.test(a
.nodeName
)},
100 focus:function(a
){return a
===a
.ownerDocument
.activeElement
}},setFilters:{first:function(a
,b
){return 0===b
},last:function(a
,b
,c
,d
){return b
===d
.length
-1},even:function(a
,b
){return 0===b
%2},odd:function(a
,b
){return 1===b
%2},lt:function(a
,b
,c
){return b
<c
[3]-0},gt:function(a
,b
,c
){return b
>c
[3]-0},nth:function(a
,b
,c
){return c
[3]-0===b
},eq:function(a
,b
,c
){return c
[3]-0===b
}},filter:{PSEUDO:function(a
,b
,c
,d
){var f
=b
[1],g
=r
.filters
[f
];if(g
)return g(a
,c
,b
,d
);if("contains"===f
)return 0<=(a
.textContent
||a
.innerText
||
101 Oa([a
])||"").indexOf(b
[3]);if("not"===f
){b
=b
[3];c
=0;for(d
=b
.length
;c
<d
;c
++)if(b
[c
]===a
)return!1;return!0}n
.error(f
)},CHILD:function(a
,b
){var c
,d
,f
,g
,h
,i
;c
=b
[1];i
=a
;switch(c
){case "only":case "first":for(;i
=i
.previousSibling
;)if(1===i
.nodeType
)return!1;if("first"===c
)return!0;i
=a
;case "last":for(;i
=i
.nextSibling
;)if(1===i
.nodeType
)return!1;return!0;case "nth":c
=b
[2];d
=b
[3];if(1===c
&&0===d
)return!0;f
=b
[0];if((g
=a
.parentNode
)&&(g
[Z
]!==f
||!a
.nodeIndex
)){h
=0;for(i
=g
.firstChild
;i
;i
=i
.nextSibling
)1===i
.nodeType
&&
102 (i
.nodeIndex
=++h
);g
[Z
]=f
}i
=a
.nodeIndex
-d
;return 0===c
?0===i:0===i
%c
&&0<=i
/c
}},ID:function(a
,b
){return 1===a
.nodeType
&&a
.getAttribute("id")===b
},TAG:function(a
,b
){return"*"===b
&&1===a
.nodeType
||!!a
.nodeName
&&a
.nodeName
.toLowerCase()===b
},CLASS:function(a
,b
){return-1<(" "+(a
.className
||a
.getAttribute("class"))+" ").indexOf(b
)},ATTR:function(a
,b
){var c
=b
[1],c
=n
.attr
?n
.attr(a
,c
):r
.attrHandle
[c
]?r
.attrHandle
[c
](a
):null!=a
[c
]?a
[c
]:a
.getAttribute(c
),d
=c
+"",f
=b
[2],g
=b
[4];return null==c
?"!="===f:!f
&&n
.attr
?
103 null!=c:"="===f
?d
===g:"*="===f
?0<=d
.indexOf(g
):"~="===f
?0<=(" "+d
+" ").indexOf(g
):!g
?d
&&!1!==c:"!="===f
?d
!==g:"^="===f
?0===d
.indexOf(g
):"$="===f
?d
.substr(d
.length
-g
.length
)===g:"|="===f
?d
===g
||d
.substr(0,g
.length
+1)===g
+"-":!1},POS:function(a
,b
,c
,d
){var f
=r
.setFilters
[b
[2]];if(f
)return f(a
,c
,b
,d
)}}},Gc
=r
.match
.POS
,Hc=function(a
,b
){return"\\"+(b
-0+1)},fa
;for(fa
in r
.match
)r
.match
[fa
]=RegExp(r
.match
[fa
].source
+/(?![^\[]*\])(?![^\(]*\))/.source
),r
.leftMatch
[fa
]=RegExp(/(^(?:.|\r|\n)*?)/.source
+r
.match
[fa
].source
.replace(/\\(\d+)/g,
104 Hc
));var y=function(a
,b
){a
=Array
.prototype.slice
.call(a
,0);return b
?(b
.push
.apply(b
,a
),b
):a
};try{Array
.prototype.slice
.call(m
.documentElement
.childNodes
,0)[0].nodeType
}catch(nd
){y=function(a
,b
){var c
=0,d
=b
||[];if("[object Array]"===Ab
.call(a
))Array
.prototype.push
.apply(d
,a
);else if("number"===typeof a
.length
)for(var f
=a
.length
;c
<f
;c
++)d
.push(a
[c
]);else for(;a
[c
];c
++)d
.push(a
[c
]);return d
}}var sa
,ga
;m
.documentElement
.compareDocumentPosition
?sa=function(a
,b
){return a
===b
?(qa
=!0,0):!a
.compareDocumentPosition
||
105 !b
.compareDocumentPosition
?a
.compareDocumentPosition
?-1:1:a
.compareDocumentPosition(b
)&4?-1:1}:(sa=function(a
,b
){if(a
===b
)return qa
=!0,0;if(a
.sourceIndex
&&b
.sourceIndex
)return a
.sourceIndex
-b
.sourceIndex
;var c
,d
,f
=[],g
=[];c
=a
.parentNode
;d
=b
.parentNode
;var h
=c
;if(c
===d
)return ga(a
,b
);if(c
){if(!d
)return 1}else return-1;for(;h
;)f
.unshift(h
),h
=h
.parentNode
;for(h
=d
;h
;)g
.unshift(h
),h
=h
.parentNode
;c
=f
.length
;d
=g
.length
;for(h
=0;h
<c
&&h
<d
;h
++)if(f
[h
]!==g
[h
])return ga(f
[h
],g
[h
]);return h
===c
?ga(a
,g
[h
],-1):ga(f
[h
],
106 b
,1)},ga=function(a
,b
,c
){if(a
===b
)return c
;for(a
=a
.nextSibling
;a
;){if(a
===b
)return-1;a
=a
.nextSibling
}return 1});var ta
=m
.createElement("div"),Db
="script"+(new Date
).getTime(),ua
=m
.documentElement
;ta
.innerHTML
="<a name='"+Db
+"'/>";ua
.insertBefore(ta
,ua
.firstChild
);m
.getElementById(Db
)&&(r
.find
.ID=function(a
,b
,c
){if("undefined"!==typeof b
.getElementById
&&!c
)return(b
=b
.getElementById(a
[1]))?b
.id
===a
[1]||"undefined"!==typeof b
.getAttributeNode
&&b
.getAttributeNode("id").nodeValue
===a
[1]?[b
]:k:[]},r
.filter
.ID
=
107 function(a
,b
){var c
="undefined"!==typeof a
.getAttributeNode
&&a
.getAttributeNode("id");return 1===a
.nodeType
&&c
&&c
.nodeValue
===b
});ua
.removeChild(ta
);var ua
=ta
=null,N
=m
.createElement("div");N
.appendChild(m
.createComment(""));0<N
.getElementsByTagName("*").length
&&(r
.find
.TAG=function(a
,b
){var c
=b
.getElementsByTagName(a
[1]);if("*"===a
[1]){for(var d
=[],f
=0;c
[f
];f
++)1===c
[f
].nodeType
&&d
.push(c
[f
]);c
=d
}return c
});N
.innerHTML
="<a href='#'></a>";N
.firstChild
&&("undefined"!==typeof N
.firstChild
.getAttribute
&&
108 "#"!==N
.firstChild
.getAttribute("href"))&&(r
.attrHandle
.href=function(a
){return a
.getAttribute("href",2)});N
=null;if(m
.querySelectorAll
){var Pa
=n
,va
=m
.createElement("div");va
.innerHTML
="<p class='TEST'></p>";if(!(va
.querySelectorAll
&&0===va
.querySelectorAll(".TEST").length
)){var n=function(a
,b
,c
,d
){b
=b
||m
;if(!d
&&!n
.isXML(b
)){var f
=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a
);if(f
&&(1===b
.nodeType
||9===b
.nodeType
)){if(f
[1])return y(b
.getElementsByTagName(a
),c
);if(f
[2]&&r
.find
.CLASS
&&b
.getElementsByClassName
)return y(b
.getElementsByClassName(f
[2]),
109 c
)}if(9===b
.nodeType
){if("body"===a
&&b
.body
)return y([b
.body
],c
);if(f
&&f
[3]){var g
=b
.getElementById(f
[3]);if(g
&&g
.parentNode
){if(g
.id
===f
[3])return y([g
],c
)}else return y([],c
)}try{return y(b
.querySelectorAll(a
),c
)}catch(h
){}}else if(1===b
.nodeType
&&"object"!==b
.nodeName
.toLowerCase()){var f
=b
,i
=(g
=b
.getAttribute("id"))||"__sizzle__",j
=b
.parentNode
,k
=/^\s*[+~]/.test(a
);g
?i
=i
.replace(/'/g,"\\$&"):b.setAttribute("id",i);k&&j&&(b=b.parentNode);try{if(!k||j)return y(b.querySelectorAll("[id='"+i+"'] "+
110 a),c)}catch(l){}finally{g||f.removeAttribute("id")}}}return Pa(a,b,c,d)},Qa;for(Qa in Pa)n[Qa]=Pa[Qa];va=null}}var wa=m.documentElement,xa=wa.matchesSelector||wa.mozMatchesSelector||wa.webkitMatchesSelector||wa.msMatchesSelector;if(xa){var Ic=!xa.call(m.createElement("div"),"div"),Eb=!1;try{xa.call(m.documentElement,"[test!='']:sizzle")}catch(od){Eb=!0}n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(Eb||!r.match.PSEUDO.test(b)&&!/!=/.test(b)){var c=
111 xa.call(a,b);if(c||!Ic||a.document&&11!==a.document.nodeType)return c}}catch(d){}return 0<n(b,null,null,[a]).length}}var ba=m.createElement("div
");ba.innerHTML="<div
class='test e'></div
><div
class='test'></div
>";ba.getElementsByClassName&&0!==ba.getElementsByClassName("e
").length&&(ba.lastChild.className="e
",1!==ba.getElementsByClassName("e
").length&&(r.order.splice(1,0,"CLASS
"),r.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},
112 ba=null));n.contains=m.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:m.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML
"!==a.nodeName:!1};var Cb=function(a,b,c){for(var d,f=[],g="",b=b.nodeType?[b]:b;d=r.match.PSEUDO.exec(a);)g+=d[0],a=a.replace(r.match.PSEUDO,"");a=r.relative[a]?a+"*":a;d=0;for(var h=b.length;d<h;d++)n(a,
113 b[d],f,c);return n.filter(g,f)};n.attr=d.attr;n.selectors.attrMap={};d.find=n;d.expr=n.selectors;d.expr[":"]=d.expr.filters;d.unique=n.uniqueSort;d.text=n.getText;d.isXMLDoc=n.isXML;d.contains=n.contains;var Jc=/Until$/,Kc=/^(?:parents|prevUntil|prevAll)/,Lc=/,/,Xb=/^.[^:#\[\.,]*$/,Mc=Array.prototype.slice,Fb=d.expr.match.POS,Nc={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(a){var b=this,c,e;if("string
"!==typeof a)return d(a).filter(function(){c=0;for(e=b.length;c<e;c++)if(d.contains(b[c],
114 this))return!0});var f=this.pushStack("","find
",a),g,h,i;c=0;for(e=this.length;c<e;c++)if(g=f.length,d.find(a,this[c],f),0<c)for(h=g;h<f.length;h++)for(i=0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}return f},has:function(a){var b=d(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(d.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(L(this,a,!1),"not
",a)},filter:function(a){return this.pushStack(L(this,a,!0),"filter
",a)},is:function(a){return!!a&&("string
"===
115 typeof a?Fb.test(a)?0<=d(a,this.context).index(this[0]):0<d.filter(a,this).length:0<this.filter(a).length)},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){for(f=1;g&&g.ownerDocument&&g!==b;){for(e=0;e<a.length;e++)d(g).is(a[e])&&c.push({selector:a[e],elem:g,level:f});g=g.parentNode;f++}return c}var h=Fb.test(a)||"string
"!==typeof a?d(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(h?-1<h.index(g):d.find.matchesSelector(g,a)){c.push(g);break}else if(g=g.parentNode,
116 !g||!g.ownerDocument||g===b||11===g.nodeType)break;c=1<c.length?d.unique(c):c;return this.pushStack(c,"closest
",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:"string
"===typeof a?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c="string
"===typeof a?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),e=d.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||11===c[0].parentNode.nodeType||!e[0]||!e[0].parentNode||11===e[0].parentNode.nodeType?
117 e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return d.dir(a,"parentNode
")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode
",c)},next:function(a){return d.nth(a,2,"nextSibling
")},prev:function(a){return d.nth(a,2,"previousSibling
")},nextAll:function(a){return d.dir(a,"nextSibling
")},prevAll:function(a){return d.dir(a,"previousSibling
")},nextUntil:function(a,b,c){return d.dir(a,
118 "nextSibling
",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling
",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe
")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c);Jc.test(a)||(e=c);e&&"string
"===typeof e&&(f=d.filter(e,f));f=1<this.length&&!Nc[a]?d.unique(f):f;if((1<this.length||Lc.test(e))&&
119 Kc.test(a))f=f.reverse();return this.pushStack(f,a,Mc.call(arguments).join(","))}});d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return 1===b.length?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){for(var e=[],a=a[b];a&&9!==a.nodeType&&(c===k||1!==a.nodeType||!d(a).is(c));)1===a.nodeType&&e.push(a),a=a[b];return e},nth:function(a,b,c){for(var b=b||1,d=0;a&&!(1===a.nodeType&&++d===b);a=a[c]);return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===
120 a.nodeType&&a!==b&&c.push(a);return c}});var Va="abbr
|article
|aside
|audio
|canvas
|datalist
|details
|figcaption
|figure
|footer
|header
|hgroup
|mark
|meter
|nav
|output
|progress
|section
|summary
|time
|video
",Oc=/ jQuery\d+="(?:\d
+|null)"/g,Ra=/^\s+/,Gb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Hb=/<([\w:]+)/,Pc=/<tbody/i,Qc=/<|&#?\w+;/,Rc=/<(?:script|style)/i,Sc=/<(?:script|object|embed|option|style)/i,Ib=RegExp("<(?:"+Va+")","i
"),Jb=/checked\s*(?:[^=]|=\s*.checked.)/i,Tc=/\/(java|ecma)script/i,
121 Zb=/^\s*<!(?:\[CDATA\[|\-\-)/,z={option:[1,"<select multiple
='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset
>"],thead:[1,"<table
>","</table>"],tr:[2,"<table><tbody>","</tbody
></table>"],td:[3,"<table><tbody><tr>","</tr
></tbody></table
>"],col:[2,"<table
><tbody
></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Kb=G(m);z.optgroup=z.option;z.tbody=z.tfoot=z.colgroup=z.caption=z.thead;z.th=z.td;d.support.htmlSerialize||(z._default=[1,"div
<div
>","</div
>"]);
122 d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):"object
"!==typeof a&&a!==k?this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=
123 a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body
")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
124 !0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before
",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
125 !1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after
",arguments);a.push.apply(a,d.clean(arguments));return a}},remove:function(a,b){for(var c=0,e;null!=(e=this[c]);c++)if(!a||d.filter(a,[e]).length)!b&&1===e.nodeType&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
126 return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===k)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Oc,""):null;if("string
"===typeof a&&!Rc.test(a)&&(d.support.leadingWhitespace||!Ra.test(a))&&!z[(Hb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Gb,"<$1></$2>");try{for(var b=0,c=this.length;b<c;b++)1===this[b].nodeType&&(d.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(e){this.empty().append(a)}}else d.isFunction(a)?
127 this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});"string
"!==typeof a&&(a=d(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove();b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith
",
128 a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,c){var e,f,g,h=a[0],i=[];if(!d.support.checkClone&&3===arguments.length&&"string
"===typeof h&&Jb.test(h))return this.each(function(){d(this).domManip(a,b,c,!0)});if(d.isFunction(h))return this.each(function(e){var f=d(this);a[0]=h.call(this,e,b?f.html():k);f.domManip(a,b,c)});if(this[0]){e=h&&h.parentNode;e=d.support.parentNode&&e&&11===e.nodeType&&e.childNodes.length===this.length?{fragment:e}:d.buildFragment(a,this,i);g=
129 e.fragment;if(f=1===g.childNodes.length?g=g.firstChild:g.firstChild){b=b&&d.nodeName(f,"tr
");f=0;for(var j=this.length,m=j-1;f<j;f++)c.call(b?d.nodeName(this[f],"table
")?this[f].getElementsByTagName("tbody
")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody
")):this[f]:this[f],e.cacheable||1<j&&f<m?d.clone(g,!0,!0):g)}i.length&&d.each(i,Yb)}return this}});d.buildFragment=function(a,b,c){var e,f,g,h,i=a[0];b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=m);if(1===
130 a.length&&"string
"===typeof i&&512>i.length&&h===m&&"<"===i.charAt(0)&&!Sc.test(i)&&(d.support.checkClone||!Jb.test(i))&&(d.support.html5Clone||!Ib.test(i)))f=!0,(g=d.fragments[i])&&1!==g&&(e=g);e||(e=h.createDocumentFragment(),d.clean(a,h,e,c));f&&(d.fragments[i]=g?e:1);return{fragment:e,cacheable:f}};d.fragments={};d.each({appendTo:"append
",prependTo:"prepend
",insertBefore:"before
",insertAfter:"after
",replaceAll:"replaceWith
"},function(a,b){d.fn[a]=function(c){var e=[],c=d(c),f=1===this.length&&
131 this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===c.length)return c[b](this[0]),this;for(var f=0,g=c.length;f<g;f++){var h=(0<f?this.clone(!0):this).get();d(c[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,c.selector)}});d.extend({clone:function(a,b,c){var e,f,g;d.support.html5Clone||!Ib.test("<"+a.nodeName)?e=a.cloneNode(!0):(e=m.createElement("div
"),Kb.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var h=e;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&
132 (1===a.nodeType||11===a.nodeType)&&!d.isXMLDoc(a)){Xa(a,h);e=ha(a);f=ha(h);for(g=0;e[g];++g)f[g]&&Xa(e[g],f[g])}if(b&&(Wa(a,h),c)){e=ha(a);f=ha(h);for(g=0;e[g];++g)Wa(e[g],f[g])}return h},clean:function(a,b,c,e){b=b||m;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||m);for(var f=[],g,h=0,i;null!=(i=a[h]);h++)if("number
"===typeof i&&(i+=""),i){if("string
"===typeof i)if(Qc.test(i)){i=i.replace(Gb,"<$1></$2>");g=(Hb.exec(i)||["",""])[1].toLowerCase();var j=z[g]||z._default,
133 k=j[0],l=b.createElement("div
");b===m?Kb.appendChild(l):G(b).appendChild(l);for(l.innerHTML=j[1]+i+j[2];k--;)l=l.lastChild;if(!d.support.tbody){k=Pc.test(i);j="table
"===g&&!k?l.firstChild&&l.firstChild.childNodes:"<table
>"===j[1]&&!k?l.childNodes:[];for(g=j.length-1;0<=g;--g)d.nodeName(j[g],"tbody
")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!d.support.leadingWhitespace&&Ra.test(i)&&l.insertBefore(b.createTextNode(Ra.exec(i)[0]),l.firstChild);i=l.childNodes}else i=b.createTextNode(i);
134 var n;if(!d.support.appendChecked)if(i[0]&&"number
"===typeof(n=i.length))for(g=0;g<n;g++)Za(i[g]);else Za(i);i.nodeType?f.push(i):f=d.merge(f,i)}if(c){a=function(a){return!a.type||Tc.test(a.type)};for(h=0;f[h];h++)e&&d.nodeName(f[h],"script
")&&(!f[h].type||"text
/javascript
"===f[h].type.toLowerCase())?e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]):(1===f[h].nodeType&&(b=d.grep(f[h].getElementsByTagName("script
"),a),f.splice.apply(f,[h+1,0].concat(b))),c.appendChild(f[h]))}return f},
135 cleanData:function(a){for(var b,c,e=d.cache,f=d.event.special,g=d.support.deleteExpando,h=0,i;null!=(i=a[h]);h++)if(!i.nodeName||!d.noData[i.nodeName.toLowerCase()])if(c=i[d.expando]){if((b=e[c])&&b.events){for(var j in b.events)f[j]?d.event.remove(i,j):d.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[d.expando]:i.removeAttribute&&i.removeAttribute(d.expando);delete e[c]}}});var Sa=/alpha\([^)]*\)/i,Uc=/opacity=([^)]*)/,Vc=/([A-Z]|^ms)/g,Lb=/^-?\d+(?:px)?$/i,Wc=/^-?\d/,Xc=/^([\-+])=([\-+.\de]+)/,
136 Yc={position:"absolute
",visibility:"hidden
",display:"block
"},$b=["Left
","Right
"],ac=["Top
","Bottom
"],O,Mb,Nb;d.fn.css=function(a,b){return 2===arguments.length&&b===k?this:d.access(this,a,b,!0,function(a,b,f){return f!==k?d.style(a,b,f):d.css(a,b)})};d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=O(a,"opacity
","opacity
");return""===c?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":d.support.cssFloat?
137 "cssFloat
":"styleFloat
"},style:function(a,b,c,e){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,g=d.camelCase(b),h=a.style,i=d.cssHooks[g],b=d.cssProps[g]||g;if(c!==k){e=typeof c;if("string
"===e&&(f=Xc.exec(c)))c=+(f[1]+1)*+f[2]+parseFloat(d.css(a,b)),e="number
";if(!(null==c||"number
"===e&&isNaN(c)))if("number
"===e&&!d.cssNumber[g]&&(c+="px
"),!i||!("set"in i)||(c=i.set(a,c))!==k)try{h[b]=c}catch(j){}}else return i&&"get"in i&&(f=i.get(a,!1,e))!==k?f:h[b]}},css:function(a,b,c){var e,f,b=
138 d.camelCase(b);f=d.cssHooks[b];b=d.cssProps[b]||b;"cssFloat
"===b&&(b="float");if(f&&"get"in f&&(e=f.get(a,!0,c))!==k)return e;if(O)return O(a,b)},swap:function(a,b,c){var d={},f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];c.call(a);for(f in b)a.style[f]=d[f]}});d.curCSS=d.css;d.each(["height
","width
"],function(a,b){d.cssHooks[b]={get:function(a,e,f){var g;if(e){if(0!==a.offsetWidth)return $a(a,b,f);d.swap(a,Yc,function(){g=$a(a,b,f)});return g}},set:function(a,b){if(Lb.test(b)){if(b=parseFloat(b),
139 0<=b)return b+"px
"}else return b}}});d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return Uc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle,f=d.isNumeric(b)?"alpha(opacity
="+100*b+")":"",g=e&&e.filter||c.filter||"";c.zoom=1;if(1<=b&&""===d.trim(g.replace(Sa,""))&&(c.removeAttribute("filter
"),e&&!e.filter))return;c.filter=Sa.test(g)?g.replace(Sa,f):g+" "+f}});d(function(){d.support.reliableMarginRight||
140 (d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline
-block
"},function(){c=b?O(a,"margin
-right
","marginRight
"):a.style.marginRight});return c}})});m.defaultView&&m.defaultView.getComputedStyle&&(Mb=function(a,b){var c,e,f,b=b.replace(Vc,"-$1").toLowerCase();if((e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null)))c=f.getPropertyValue(b),""===c&&!d.contains(a.ownerDocument.documentElement,a)&&(c=d.style(a,b));return c});m.documentElement.currentStyle&&(Nb=function(a,
141 b){var c,d,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(null===f&&g&&(c=g[b]))f=c;if(!Lb.test(f)&&Wc.test(f)){c=g.left;if(d=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left="fontSize
"===b?"1em
":f||0;f=g.pixelLeft+"px
";g.left=c;d&&(a.runtimeStyle.left=d)}return""===f?"auto
":f});O=Mb||Nb;d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetHeight;return 0===a.offsetWidth&&0===b||!d.support.reliableHiddenOffsets&&"none
"===(a.style&&a.style.display||
142 d.css(a,"display
"))},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var Zc=/%20/g,bc=/\[\]$/,Ob=/\r?\n/g,$c=/#.*$/,ad=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bd=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,cd=/^(?:GET|HEAD)$/,dd=/^\/\//,Pb=/\?/,ed=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,fd=/^(?:select|textarea)/i,bb=/\s+/,gd=/([?&])_=[^&]*/,Qb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Rb=d.fn.load,
143 Aa={},Sb={},K,F,Tb=["*/
"]+["*"];try{K=dc.href}catch(pd){K=m.createElement("a
"),K.href="",K=K.href}F=Qb.exec(K.toLowerCase())||[];d.fn.extend({load:function(a,b,c){if("string
"!==typeof a&&Rb)return Rb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET
";b&&(d.isFunction(b)?(c=b,b=k):"object
"===typeof b&&(b=d.param(b,d.ajaxSettings.traditional),e="POST
"));var g=this;d.ajax({url:a,type:e,dataType:"html
",data:b,complete:function(a,
144 b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?d("<div
>").append(e.replace(ed,"")).find(f):e));c&&g.each(c,[e,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||fd.test(this.nodeName)||bd.test(this.type))}).map(function(a,b){var c=d(this).val();return null==c?null:d.isArray(c)?
145 d.map(c,function(a){return{name:b.name,value:a.replace(Ob,"\r\n")}}):{name:b.name,value:c.replace(Ob,"\r\n")}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend
".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b,a)}});d.each(["get","post
"],function(a,b){d[b]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=k);return d.ajax({type:b,url:a,data:e,success:f,dataType:g})}});d.extend({getScript:function(a,b){return d.get(a,k,b,"script
")},getJSON:function(a,b,c){return d.get(a,
146 b,c,"json
")},ajaxSetup:function(a,b){b?cb(a,d.ajaxSettings):(b=a,a=d.ajaxSettings);cb(a,b);return a},ajaxSettings:{url:K,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(F[1]),global:!0,type:"GET
",contentType:"application
/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text
/xml",html:"text/html
",text:"text
/plain",json:"application/json
, text
/javascript","*":Tb},contents:{xml:/xml/,html:/html
/,json:/json
/},responseFields:{xml:"responseXML",text:"responseText"},
147 converters:{"* text":j
.String
,"text html":!0,"text json":d
.parseJSON
,"text xml":d
.parseXML
},flatOptions:{context:!0,url:!0}},ajaxPrefilter:ab(Aa
),ajaxTransport:ab(Sb
),ajax:function(a
,b
){function c(a
,b
,c
,l
){if(2!==x
){x
=2;u
&&clearTimeout(u
);s
=k
;q
=l
||"";v
.readyState
=0<a
?4:0;var n
,r
,M
,l
=b
;if(c
){var w
=e
,z
=v
,Ga
=w
.contents
,y
=w
.dataTypes
,C
=w
.responseFields
,D
,B
,P
,I
;for(B
in C
)B
in c
&&(z
[C
[B
]]=c
[B
]);for(;"*"===y
[0];)y
.shift(),D
===k
&&(D
=w
.mimeType
||z
.getResponseHeader("content-type"));if(D
)for(B
in Ga
)if(Ga
[B
]&&
148 Ga
[B
].test(D
)){y
.unshift(B
);break}if(y
[0]in c
)P
=y
[0];else{for(B
in c
){if(!y
[0]||w
.converters
[B
+" "+y
[0]]){P
=B
;break}I
||(I
=B
)}P
=P
||I
}P
?(P
!==y
[0]&&y
.unshift(P
),c
=c
[P
]):c
=void 0}else c
=k
;if(200<=a
&&300>a
||304===a
){if(e
.ifModified
){if(D
=v
.getResponseHeader("Last-Modified"))d
.lastModified
[m
]=D
;if(D
=v
.getResponseHeader("Etag"))d
.etag
[m
]=D
}if(304===a
)l
="notmodified",n
=!0;else try{D
=e
;D
.dataFilter
&&(c
=D
.dataFilter(c
,D
.dataType
));var H
=D
.dataTypes
;B
={};var E
,J
,N
=H
.length
,K
,Q
=H
[0],F
,L
,R
,S
,G
;for(E
=1;E
<N
;E
++){if(1===
149 E
)for(J
in D
.converters
)"string"===typeof J
&&(B
[J
.toLowerCase()]=D
.converters
[J
]);F
=Q
;Q
=H
[E
];if("*"===Q
)Q
=F
;else if("*"!==F
&&F
!==Q
){L
=F
+" "+Q
;R
=B
[L
]||B
["* "+Q
];if(!R
)for(S
in G
=k
,B
)if(K
=S
.split(" "),K
[0]===F
||"*"===K
[0])if(G
=B
[K
[1]+" "+Q
]){S
=B
[S
];!0===S
?R
=G:!0===G
&&(R
=S
);break}!R
&&!G
&&d
.error("No conversion from "+L
.replace(" "," to "));!0!==R
&&(c
=R
?R(c
):G(S(c
)))}}r
=c
;l
="success";n
=!0}catch(O
){l
="parsererror",M
=O
}}else if(M
=l
,!l
||a
)l
="error",0>a
&&(a
=0);v
.status
=a
;v
.statusText
=""+(b
||l
);n
?h
.resolveWith(f
,
150 [r
,l
,v
]):h
.rejectWith(f
,[v
,l
,M
]);v
.statusCode(j
);j
=k
;A
&&g
.trigger("ajax"+(n
?"Success":"Error"),[v
,e
,n
?r:M
]);i
.fireWith(f
,[v
,l
]);A
&&(g
.trigger("ajaxComplete",[v
,e
]),--d
.active
||d
.event
.trigger("ajaxStop"))}}"object"===typeof a
&&(b
=a
,a
=k
);var b
=b
||{},e
=d
.ajaxSetup({},b
),f
=e
.context
||e
,g
=f
!==e
&&(f
.nodeType
||f
instanceof d
)?d(f
):d
.event
,h
=d
.Deferred(),i
=d
.Callbacks("once memory"),j
=e
.statusCode
||{},m
,l
={},n
={},q
,r
,s
,u
,w
,x
=0,A
,z
,v
={readyState:0,setRequestHeader:function(a
,b
){if(!x
){var c
=a
.toLowerCase(),
151 a
=n
[c
]=n
[c
]||a
;l
[a
]=b
}return this},getAllResponseHeaders:function(){return 2===x
?q:null},getResponseHeader:function(a
){var b
;if(2===x
){if(!r
)for(r
={};b
=ad
.exec(q
);)r
[b
[1].toLowerCase()]=b
[2];b
=r
[a
.toLowerCase()]}return b
===k
?null:b
},overrideMimeType:function(a
){x
||(e
.mimeType
=a
);return this},abort:function(a
){a
=a
||"abort";s
&&s
.abort(a
);c(0,a
);return this}};h
.promise(v
);v
.success
=v
.done
;v
.error
=v
.fail
;v
.complete
=i
.add
;v
.statusCode=function(a
){if(a
){var b
;if(2>x
)for(b
in a
)j
[b
]=[j
[b
],a
[b
]];else b
=a
[v
.status
],
152 v
.then(b
,b
)}return this};e
.url
=((a
||e
.url
)+"").replace($c
,"").replace(dd
,F
[1]+"//");e
.dataTypes
=d
.trim(e
.dataType
||"*").toLowerCase().split(bb
);null==e
.crossDomain
&&(w
=Qb
.exec(e
.url
.toLowerCase()),e
.crossDomain
=!(!w
||!(w
[1]!=F
[1]||w
[2]!=F
[2]||(w
[3]||("http:"===w
[1]?80:443))!=(F
[3]||("http:"===F
[1]?80:443)))));e
.data
&&(e
.processData
&&"string"!==typeof e
.data
)&&(e
.data
=d
.param(e
.data
,e
.traditional
));ia(Aa
,e
,b
,v
);if(2===x
)return!1;A
=e
.global
;e
.type
=e
.type
.toUpperCase();e
.hasContent
=!cd
.test(e
.type
);
153 A
&&0===d
.active
++&&d
.event
.trigger("ajaxStart");if(!e
.hasContent
&&(e
.data
&&(e
.url
+=(Pb
.test(e
.url
)?"&":"?")+e
.data
,delete e
.data
),m
=e
.url
,!1===e
.cache
)){w
=d
.now();var y
=e
.url
.replace(gd
,"$1_="+w
);e
.url
=y
+(y
===e
.url
?(Pb
.test(e
.url
)?"&":"?")+"_="+w:"")}(e
.data
&&e
.hasContent
&&!1!==e
.contentType
||b
.contentType
)&&v
.setRequestHeader("Content-Type",e
.contentType
);e
.ifModified
&&(m
=m
||e
.url
,d
.lastModified
[m
]&&v
.setRequestHeader("If-Modified-Since",d
.lastModified
[m
]),d
.etag
[m
]&&v
.setRequestHeader("If-None-Match",
154 d
.etag
[m
]));v
.setRequestHeader("Accept",e
.dataTypes
[0]&&e
.accepts
[e
.dataTypes
[0]]?e
.accepts
[e
.dataTypes
[0]]+("*"!==e
.dataTypes
[0]?", "+Tb
+"; q=0.01":""):e
.accepts
["*"]);for(z
in e
.headers
)v
.setRequestHeader(z
,e
.headers
[z
]);if(e
.beforeSend
&&(!1===e
.beforeSend
.call(f
,v
,e
)||2===x
))return v
.abort(),!1;for(z
in{success:1,error:1,complete:1})v
[z
](e
[z
]);if(s
=ia(Sb
,e
,b
,v
)){v
.readyState
=1;A
&&g
.trigger("ajaxSend",[v
,e
]);e
.async
&&0<e
.timeout
&&(u
=setTimeout(function(){v
.abort("timeout")},e
.timeout
));try{x
=1,
155 s
.send(l
,c
)}catch(C
){if(2>x
)c(-1,C
);else throw C
;}}else c(-1,"No Transport");return v
},param:function(a
,b
){var c
=[],e=function(a
,b
){b
=d
.isFunction(b
)?b():b
;c
[c
.length
]=encodeURIComponent(a
)+"="+encodeURIComponent(b
)};b
===k
&&(b
=d
.ajaxSettings
.traditional
);if(d
.isArray(a
)||a
.jquery
&&!d
.isPlainObject(a
))d
.each(a
,function(){e(this.name
,this.value
)});else for(var f
in a
)Ba(f
,a
[f
],b
,e
);return c
.join("&").replace(Zc
,"+")}});d
.extend({active:0,lastModified:{},etag:{}});var hd
=d
.now(),ya
=/(\=)\?(&|$)|\?\?/i;
156 d
.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d
.expando
+"_"+hd
++}});d
.ajaxPrefilter("json jsonp",function(a
,b
,c
){b
="application/x-www-form-urlencoded"===a
.contentType
&&"string"===typeof a
.data
;if("jsonp"===a
.dataTypes
[0]||!1!==a
.jsonp
&&(ya
.test(a
.url
)||b
&&ya
.test(a
.data
))){var e
,f
=a
.jsonpCallback
=d
.isFunction(a
.jsonpCallback
)?a
.jsonpCallback():a
.jsonpCallback
,g
=j
[f
],h
=a
.url
,i
=a
.data
,k
="$1"+f
+"$2";!1!==a
.jsonp
&&(h
=h
.replace(ya
,k
),a
.url
===h
&&(b
&&(i
=i
.replace(ya
,k
)),a
.data
===i
&&(h
+=(/\?/.test(h
)?
157 "&":"?")+a
.jsonp
+"="+f
)));a
.url
=h
;a
.data
=i
;j
[f
]=function(a
){e
=[a
]};c
.always(function(){j
[f
]=g
;if(e
&&d
.isFunction(g
))j
[f
](e
[0])});a
.converters
["script json"]=function(){e
||d
.error(f
+" was not called");return e
[0]};a
.dataTypes
[0]="json";return"script"}});d
.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript
|ecmascript
/},converters:{"text script":function(a
){d
.globalEval(a
);return a
}}});d
.ajaxPrefilter("script",
158 function(a
){a
.cache
===k
&&(a
.cache
=!1);a
.crossDomain
&&(a
.type
="GET",a
.global
=!1)});d
.ajaxTransport("script",function(a
){if(a
.crossDomain
){var b
,c
=m
.head
||m
.getElementsByTagName("head")[0]||m
.documentElement
;return{send:function(d
,f
){b
=m
.createElement("script");b
.async
="async";a
.scriptCharset
&&(b
.charset
=a
.scriptCharset
);b
.src
=a
.url
;b
.onload
=b
.onreadystatechange=function(a
,d
){if(d
||!b
.readyState
||/loaded|complete/.test(b
.readyState
))b
.onload
=b
.onreadystatechange
=null,c
&&b
.parentNode
&&c
.removeChild(b
),
159 b
=k
,d
||f(200,"success")};c
.insertBefore(b
,c
.firstChild
)},abort:function(){if(b
)b
.onload(0,1)}}}});var Ta
=j
.ActiveXObject
?function(){for(var a
in ca
)ca
[a
](0,1)}:!1,id
=0,ca
;d
.ajaxSettings
.xhr
=j
.ActiveXObject
?function(){var a
;if(!(a
=!this.isLocal
&&db()))a:{try{a
=new j
.ActiveXObject("Microsoft.XMLHTTP");break a
}catch(b
){}a
=void 0}return a
}:db
;var Ua
=d
.ajaxSettings
.xhr();d
.extend(d
.support
,{ajax:!!Ua
,cors:!!Ua
&&"withCredentials"in Ua
});d
.support
.ajax
&&d
.ajaxTransport(function(a
){if(!a
.crossDomain
||d
.support
.cors
){var b
;
160 return{send:function(c
,e
){var f
=a
.xhr(),g
,h
;a
.username
?f
.open(a
.type
,a
.url
,a
.async
,a
.username
,a
.password
):f
.open(a
.type
,a
.url
,a
.async
);if(a
.xhrFields
)for(h
in a
.xhrFields
)f
[h
]=a
.xhrFields
[h
];a
.mimeType
&&f
.overrideMimeType
&&f
.overrideMimeType(a
.mimeType
);!a
.crossDomain
&&!c
["X-Requested-With"]&&(c
["X-Requested-With"]="XMLHttpRequest");try{for(h
in c
)f
.setRequestHeader(h
,c
[h
])}catch(i
){}f
.send(a
.hasContent
&&a
.data
||null);b=function(c
,h
){var i
,j
,l
,m
,n
;try{if(b
&&(h
||4===f
.readyState
))if(b
=k
,g
&&(f
.onreadystatechange
=
161 d
.noop
,Ta
&&delete ca
[g
]),h
)4!==f
.readyState
&&f
.abort();else{i
=f
.status
;l
=f
.getAllResponseHeaders();m
={};if((n
=f
.responseXML
)&&n
.documentElement
)m
.xml
=n
;m
.text
=f
.responseText
;try{j
=f
.statusText
}catch(q
){j
=""}!i
&&a
.isLocal
&&!a
.crossDomain
?i
=m
.text
?200:404:1223===i
&&(i
=204)}}catch(r
){h
||e(-1,r
)}m
&&e(i
,j
,m
,l
)};!a
.async
||4===f
.readyState
?b():(g
=++id
,Ta
&&(ca
||(ca
={},d(j
).unload(Ta
)),ca
[g
]=b
),f
.onreadystatechange
=b
)},abort:function(){b
&&b(0,1)}}}});var Ca
={},C
,U
,jd
=/^(?:toggle|show|hide)$/,kd
=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
162 za
,fb
=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ja
;d
.fn
.extend({show:function(a
,b
,c
){if(a
||0===a
)return this.animate(T("show",3),a
,b
,c
);for(var c
=0,e
=this.length
;c
<e
;c
++)a
=this[c
],a
.style
&&(b
=a
.style
.display
,!d
._data(a
,"olddisplay")&&"none"===b
&&(b
=a
.style
.display
=""),""===b
&&"none"===d
.css(a
,"display")&&d
._data(a
,"olddisplay",gb(a
.nodeName
)));for(c
=0;c
<e
;c
++)if(a
=this[c
],a
.style
&&(b
=a
.style
.display
,
163 ""===b
||"none"===b
))a
.style
.display
=d
._data(a
,"olddisplay")||"";return this},hide:function(a
,b
,c
){if(a
||0===a
)return this.animate(T("hide",3),a
,b
,c
);for(var c
=0,e
=this.length
;c
<e
;c
++)a
=this[c
],a
.style
&&(b
=d
.css(a
,"display"),"none"!==b
&&!d
._data(a
,"olddisplay")&&d
._data(a
,"olddisplay",b
));for(c
=0;c
<e
;c
++)this[c
].style
&&(this[c
].style
.display
="none");return this},_toggle:d
.fn
.toggle
,toggle:function(a
,b
,c
){var e
="boolean"===typeof a
;d
.isFunction(a
)&&d
.isFunction(b
)?this._toggle
.apply(this,arguments
):
164 null==a
||e
?this.each(function(){var b
=e
?a:d(this).is(":hidden");d(this)[b
?"show":"hide"]()}):this.animate(T("toggle",3),a
,b
,c
);return this},fadeTo:function(a
,b
,c
,d
){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b
},a
,c
,d
)},animate:function(a
,b
,c
,e
){function f(){!1===g
.queue
&&d
._mark(this);var b
=d
.extend({},g
),c
=1===this.nodeType
,e
=c
&&d(this).is(":hidden"),f
,j
,k
,l
,m
;b
.animatedProperties
={};for(k
in a
){f
=d
.camelCase(k
);k
!==f
&&(a
[f
]=a
[k
],delete a
[k
]);j
=a
[f
];d
.isArray(j
)?
165 (b
.animatedProperties
[f
]=j
[1],j
=a
[f
]=j
[0]):b
.animatedProperties
[f
]=b
.specialEasing
&&b
.specialEasing
[f
]||b
.easing
||"swing";if("hide"===j
&&e
||"show"===j
&&!e
)return b
.complete
.call(this);if(c
&&("height"===f
||"width"===f
))b
.overflow
=[this.style
.overflow
,this.style
.overflowX
,this.style
.overflowY
],"inline"===d
.css(this,"display")&&"none"===d
.css(this,"float")&&(!d
.support
.inlineBlockNeedsLayout
||"inline"===gb(this.nodeName
)?this.style
.display
="inline-block":this.style
.zoom
=1)}null!=b
.overflow
&&(this.style
.overflow
=
166 "hidden");for(k
in a
)if(c
=new d
.fx(this,b
,k
),j
=a
[k
],jd
.test(j
))if(f
=d
._data(this,"toggle"+k
)||("toggle"===j
?e
?"show":"hide":0))d
._data(this,"toggle"+k
,"show"===f
?"hide":"show"),c
[f
]();else c
[j
]();else f
=kd
.exec(j
),l
=c
.cur(),f
?(j
=parseFloat(f
[2]),m
=f
[3]||(d
.cssNumber
[k
]?"":"px"),"px"!==m
&&(d
.style(this,k
,(j
||1)+m
),l
*=(j
||1)/c
.cur(),d
.style(this,k
,l
+m
)),f
[1]&&(j
=("-="===f
[1]?-1:1)*j
+l
),c
.custom(l
,j
,m
)):c
.custom(l
,j
,"");return!0}var g
=d
.speed(b
,c
,e
);if(d
.isEmptyObject(a
))return this.each(g
.complete
,
167 [!1]);a
=d
.extend({},a
);return!1===g
.queue
?this.each(f
):this.queue(g
.queue
,f
)},stop:function(a
,b
,c
){"string"!==typeof a
&&(c
=b
,b
=a
,a
=k
);b
&&!1!==a
&&this.queue(a
||"fx",[]);return this.each(function(){var b
,f
=!1,g
=d
.timers
,h
=d
._data(this);c
||d
._unmark(!0,this);if(null==a
)for(b
in h
){if(h
[b
]&&h
[b
].stop
&&b
.indexOf(".run")===b
.length
-4){var i
=h
[b
];d
.removeData(this,b
,!0);i
.stop(c
)}}else if(h
[b
=a
+".run"]&&h
[b
].stop
)h
=h
[b
],d
.removeData(this,b
,!0),h
.stop(c
);for(b
=g
.length
;b
--;)if(g
[b
].elem
===this&&(null==a
||
168 g
[b
].queue
===a
)){if(c
)g
[b
](!0);else g
[b
].saveState();f
=!0;g
.splice(b
,1)}(!c
||!f
)&&d
.dequeue(this,a
)})}});d
.each({slideDown:T("show",1),slideUp:T("hide",1),slideToggle:T("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a
,b
){d
.fn
[a
]=function(a
,d
,f
){return this.animate(b
,a
,d
,f
)}});d
.extend({speed:function(a
,b
,c
){var e
=a
&&"object"===typeof a
?d
.extend({},a
):{complete:c
||!c
&&b
||d
.isFunction(a
)&&a
,duration:a
,easing:c
&&b
||b
&&!d
.isFunction(b
)&&b
};e
.duration
=
169 d
.fx
.off
?0:"number"===typeof e
.duration
?e
.duration:e
.duration
in d
.fx
.speeds
?d
.fx
.speeds
[e
.duration
]:d
.fx
.speeds
._default
;if(null==e
.queue
||!0===e
.queue
)e
.queue
="fx";e
.old
=e
.complete
;e
.complete=function(a
){d
.isFunction(e
.old
)&&e
.old
.call(this);e
.queue
?d
.dequeue(this,e
.queue
):!1!==a
&&d
._unmark(this)};return e
},easing:{linear:function(a
,b
,c
,d
){return c
+d
*a
},swing:function(a
,b
,c
,d
){return(-Math
.cos(a
*Math
.PI
)/2+0.5)*d
+c
}},timers:[],fx:function(a
,b
,c
){this.options
=b
;this.elem
=a
;this.prop
=c
;b
.orig
=b
.orig
||
170 {}}});d
.fx
.prototype={update:function(){this.options
.step
&&this.options
.step
.call(this.elem
,this.now
,this);(d
.fx
.step
[this.prop
]||d
.fx
.step
._default
)(this)},cur:function(){if(null!=this.elem
[this.prop
]&&(!this.elem
.style
||null==this.elem
.style
[this.prop
]))return this.elem
[this.prop
];var a
,b
=d
.css(this.elem
,this.prop
);return isNaN(a
=parseFloat(b
))?!b
||"auto"===b
?0:b:a
},custom:function(a
,b
,c
){function e(a
){return f
.step(a
)}var f
=this,g
=d
.fx
;this.startTime
=ja
||eb();this.end
=b
;this.now
=this.start
=a
;this.pos
=
171 this.state
=0;this.unit
=c
||this.unit
||(d
.cssNumber
[this.prop
]?"":"px");e
.queue
=this.options
.queue
;e
.elem
=this.elem
;e
.saveState=function(){f
.options
.hide
&&d
._data(f
.elem
,"fxshow"+f
.prop
)===k
&&d
._data(f
.elem
,"fxshow"+f
.prop
,f
.start
)};e()&&(d
.timers
.push(e
)&&!za
)&&(za
=setInterval(g
.tick
,g
.interval
))},show:function(){var a
=d
._data(this.elem
,"fxshow"+this.prop
);this.options
.orig
[this.prop
]=a
||d
.style(this.elem
,this.prop
);this.options
.show
=!0;a
!==k
?this.custom(this.cur(),a
):this.custom("width"===this.prop
||
172 "height"===this.prop
?1:0,this.cur());d(this.elem
).show()},hide:function(){this.options
.orig
[this.prop
]=d
._data(this.elem
,"fxshow"+this.prop
)||d
.style(this.elem
,this.prop
);this.options
.hide
=!0;this.custom(this.cur(),0)},step:function(a
){var b
,c
=ja
||eb(),e
=!0,f
=this.elem
,g
=this.options
;if(a
||c
>=g
.duration
+this.startTime
){this.now
=this.end
;this.pos
=this.state
=1;this.update();g
.animatedProperties
[this.prop
]=!0;for(b
in g
.animatedProperties
)!0!==g
.animatedProperties
[b
]&&(e
=!1);if(e
){null!=g
.overflow
&&
173 !d
.support
.shrinkWrapBlocks
&&d
.each(["","X","Y"],function(a
,b
){f
.style
["overflow"+b
]=g
.overflow
[a
]});g
.hide
&&d(f
).hide();if(g
.hide
||g
.show
)for(b
in g
.animatedProperties
)d
.style(f
,b
,g
.orig
[b
]),d
.removeData(f
,"fxshow"+b
,!0),d
.removeData(f
,"toggle"+b
,!0);if(a
=g
.complete
)g
.complete
=!1,a
.call(f
)}return!1}Infinity
==g
.duration
?this.now
=c:(a
=c
-this.startTime
,this.state
=a
/g
.duration
,this.pos
=d
.easing
[g
.animatedProperties
[this.prop
]](this.state
,a
,0,1,g
.duration
),this.now
=this.start
+(this.end
-this.start
)*this.pos
);
174 this.update();return!0}};d
.extend(d
.fx
,{tick:function(){for(var a
,b
=d
.timers
,c
=0;c
<b
.length
;c
++)a
=b
[c
],!a()&&b
[c
]===a
&&b
.splice(c
--,1);b
.length
||d
.fx
.stop()},interval:13,stop:function(){clearInterval(za
);za
=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a
){d
.style(a
.elem
,"opacity",a
.now
)},_default:function(a
){a
.elem
.style
&&null!=a
.elem
.style
[a
.prop
]?a
.elem
.style
[a
.prop
]=a
.now
+a
.unit:a
.elem
[a
.prop
]=a
.now
}}});d
.each(["width","height"],function(a
,b
){d
.fx
.step
[b
]=function(a
){d
.style(a
.elem
,
175 b
,Math
.max(0,a
.now
)+a
.unit
)}});d
.expr
&&d
.expr
.filters
&&(d
.expr
.filters
.animated=function(a
){return d
.grep(d
.timers
,function(b
){return a
===b
.elem
}).length
});var ld
=/^t(?:able|d|h)$/i,Ub
=/^(?:body|html)$/i;d
.fn
.offset
="getBoundingClientRect"in m
.documentElement
?function(a
){var b
=this[0],c
;if(a
)return this.each(function(b
){d
.offset
.setOffset(this,a
,b
)});if(!b
||!b
.ownerDocument
)return null;if(b
===b
.ownerDocument
.body
)return d
.offset
.bodyOffset(b
);try{c
=b
.getBoundingClientRect()}catch(e
){}var f
=b
.ownerDocument
,
176 g
=f
.documentElement
;if(!c
||!d
.contains(g
,b
))return c
?{top:c
.top
,left:c
.left
}:{top:0,left:0};b
=f
.body
;f
=Da(f
);return{top:c
.top
+(f
.pageYOffset
||d
.support
.boxModel
&&g
.scrollTop
||b
.scrollTop
)-(g
.clientTop
||b
.clientTop
||0),left:c
.left
+(f
.pageXOffset
||d
.support
.boxModel
&&g
.scrollLeft
||b
.scrollLeft
)-(g
.clientLeft
||b
.clientLeft
||0)}}:function(a
){var b
=this[0];if(a
)return this.each(function(b
){d
.offset
.setOffset(this,a
,b
)});if(!b
||!b
.ownerDocument
)return null;if(b
===b
.ownerDocument
.body
)return d
.offset
.bodyOffset(b
);
177 var c
,e
=b
.offsetParent
,f
=b
.ownerDocument
,g
=f
.documentElement
,h
=f
.body
;c
=(f
=f
.defaultView
)?f
.getComputedStyle(b
,null):b
.currentStyle
;for(var i
=b
.offsetTop
,j
=b
.offsetLeft
;(b
=b
.parentNode
)&&(b
!==h
&&b
!==g
)&&!(d
.support
.fixedPosition
&&"fixed"===c
.position
);){c
=f
?f
.getComputedStyle(b
,null):b
.currentStyle
;i
-=b
.scrollTop
;j
-=b
.scrollLeft
;if(b
===e
){i
+=b
.offsetTop
;j
+=b
.offsetLeft
;if(d
.support
.doesNotAddBorder
&&(!d
.support
.doesAddBorderForTableAndCells
||!ld
.test(b
.nodeName
)))i
+=parseFloat(c
.borderTopWidth
)||
178 0,j
+=parseFloat(c
.borderLeftWidth
)||0;e
=b
.offsetParent
}d
.support
.subtractsBorderForOverflowNotVisible
&&"visible"!==c
.overflow
&&(i
+=parseFloat(c
.borderTopWidth
)||0,j
+=parseFloat(c
.borderLeftWidth
)||0)}if("relative"===c
.position
||"static"===c
.position
)i
+=h
.offsetTop
,j
+=h
.offsetLeft
;d
.support
.fixedPosition
&&"fixed"===c
.position
&&(i
+=Math
.max(g
.scrollTop
,h
.scrollTop
),j
+=Math
.max(g
.scrollLeft
,h
.scrollLeft
));return{top:i
,left:j
}};d
.offset
={bodyOffset:function(a
){var b
=a
.offsetTop
,c
=a
.offsetLeft
;d
.support
.doesNotIncludeMarginInBodyOffset
&&
179 (b
+=parseFloat(d
.css(a
,"marginTop"))||0,c
+=parseFloat(d
.css(a
,"marginLeft"))||0);return{top:b
,left:c
}},setOffset:function(a
,b
,c
){var e
=d
.css(a
,"position");"static"===e
&&(a
.style
.position
="relative");var f
=d(a
),g
=f
.offset(),h
=d
.css(a
,"top"),i
=d
.css(a
,"left"),j
={},k
={};("absolute"===e
||"fixed"===e
)&&-1<d
.inArray("auto",[h
,i
])?(k
=f
.position(),e
=k
.top
,i
=k
.left
):(e
=parseFloat(h
)||0,i
=parseFloat(i
)||0);d
.isFunction(b
)&&(b
=b
.call(a
,c
,g
));null!=b
.top
&&(j
.top
=b
.top
-g
.top
+e
);null!=b
.left
&&(j
.left
=b
.left
-g
.left
+
180 i
);"using"in b
?b
.using
.call(a
,j
):f
.css(j
)}};d
.fn
.extend({position:function(){if(!this[0])return null;var a
=this[0],b
=this.offsetParent(),c
=this.offset(),e
=Ub
.test(b
[0].nodeName
)?{top:0,left:0}:b
.offset();c
.top
-=parseFloat(d
.css(a
,"marginTop"))||0;c
.left
-=parseFloat(d
.css(a
,"marginLeft"))||0;e
.top
+=parseFloat(d
.css(b
[0],"borderTopWidth"))||0;e
.left
+=parseFloat(d
.css(b
[0],"borderLeftWidth"))||0;return{top:c
.top
-e
.top
,left:c
.left
-e
.left
}},offsetParent:function(){return this.map(function(){for(var a
=
181 this.offsetParent
||m
.body
;a
&&!Ub
.test(a
.nodeName
)&&"static"===d
.css(a
,"position");)a
=a
.offsetParent
;return a
})}});d
.each(["Left","Top"],function(a
,b
){var c
="scroll"+b
;d
.fn
[c
]=function(b
){var f
,g
;return b
===k
?(f
=this[0],!f
?null:(g
=Da(f
))?"pageXOffset"in g
?g
[a
?"pageYOffset":"pageXOffset"]:d
.support
.boxModel
&&g
.document
.documentElement
[c
]||g
.document
.body
[c
]:f
[c
]):this.each(function(){(g
=Da(this))?g
.scrollTo(!a
?b:d(g
).scrollLeft(),a
?b:d(g
).scrollTop()):this[c
]=b
})}});d
.each(["Height","Width"],function(a
,
182 b
){var c
=b
.toLowerCase();d
.fn
["inner"+b
]=function(){var a
=this[0];return a
?a
.style
?parseFloat(d
.css(a
,c
,"padding")):this[c
]():null};d
.fn
["outer"+b
]=function(a
){var b
=this[0];return b
?b
.style
?parseFloat(d
.css(b
,c
,a
?"margin":"border")):this[c
]():null};d
.fn
[c
]=function(a
){var f
=this[0];if(!f
)return null==a
?null:this;if(d
.isFunction(a
))return this.each(function(b
){var f
=d(this);f
[c
](a
.call(this,b
,f
[c
]()))});if(d
.isWindow(f
)){var g
=f
.document
.documentElement
["client"+b
],h
=f
.document
.body
;return"CSS1Compat"===
183 f
.document
.compatMode
&&g
||h
&&h
["client"+b
]||g
}return 9===f
.nodeType
?Math
.max(f
.documentElement
["client"+b
],f
.body
["scroll"+b
],f
.documentElement
["scroll"+b
],f
.body
["offset"+b
],f
.documentElement
["offset"+b
]):a
===k
?(f
=d
.css(f
,c
),g
=parseFloat(f
),d
.isNumeric(g
)?g:f
):this.css(c
,"string"===typeof a
?a:a
+"px")}});j
.jQuery
=j
.$=d
;"function"===typeof define
&&(define
.amd
&&define
.amd
.jQuery
)&&define("jquery",[],function(){return d
})})(window
);$.extend({namespace:function(j
){var k
=window
;this.each(j
.split("."),function(j
,u
){k
[u
]=k
[u
]||{};k
=k
[u
]})},createDom:function(j
){return this(document
.createElement(j
))}});
184 Function
.prototype.bind
||(Function
.prototype.bind=function(j
){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var k
=Array
.prototype.slice
.call(arguments
,1),s
=this,u=function(){},x=function(){return s
.apply(this instanceof u
?this:j
||window
,k
.concat(Array
.prototype.slice
.call(arguments
)))};u
.prototype=this.prototype;x
.prototype=new u
;return x
});$.namespace("armadillo.Version");armadillo
.Version
.MAJOR
=0;armadillo
.Version
.MINOR
=9;armadillo
.Version
.BUILD
=656;armadillo
.Version
.STAMP
=1349621213;$.namespace("armadillo.TVRenamer");armadillo
.TVRenamer=function(j
){this.file_
=j
};armadillo
.TVRenamer
.prototype.run=function(){var j
=this.file_
;app
.sendRequest("tv_rename",{path:this.file_
.getFullPath()},function(k
){k
.error
?app
.showError(k
.message
):(app
.clearError(),j
.move(k
.path
))})};$.namespace("armadillo.PathControl");armadillo
.PathControl=function(j
,k
){this.name_
=this.path_
=null;this.setPath(j
);this.editableLastComponent_
=k
;this.nameControl_
=null};armadillo
.PathControl
.prototype.setPath=function(j
){this.path_
=app
.stripLastPathComponent(j
);this.name_
=j
.substr(this.path_
.length
)};armadillo
.PathControl
.prototype.getPath=function(){return app
.joinPath(this.path_
,this.name_
)};armadillo
.PathControl
.prototype.getNameControl=function(){return this.nameControl_
};
185 armadillo
.PathControl
.prototype.createDom=function(){this.element_
=$.createDom("div");this.createDom_(this.element_
);return this.element_
};
186 armadillo
.PathControl
.prototype.createDom_=function(j
){var k
=this.path_
.split("/");k
[0]="/";""==k
[k
.length
-1]&&k
.splice(-1);var s
="";$.each(k
,function(k
,x
){j
.append(this.createComponentNode_(s
,x
));s
=app
.joinPath(s
,x
)}.bind(this));this.editableLastComponent_
?(this.nameControl_
=$.createDom("input"),this.nameControl_
.attr({type:"text",name:"pathName",value:this.name_
}),this.nameControl_
.bind("change keydown",this.nameChanged_
.bind(this))):this.nameControl_
=$.createDom("span").text(this.name_
);j
.append(this.nameControl_
)};
187 armadillo
.PathControl
.prototype.enterDocument=function(){armadillo
.PathControl
.superClass_
.enterDocument
.call(this);this.nameControl_
.getElement().focus()};armadillo
.PathControl
.prototype.createComponentNode_=function(j
,k
){var s
=$.createDom("select");this.fetchMenuContents_(j
,k
,s
);var u
=$.createDom("option");u
.text("Loading...").attr("selected","selected");s
.append(u
);s
.change(this.componentChanged_
.bind(this));return s
};
188 armadillo
.PathControl
.prototype.fetchMenuContents_=function(j
,k
,s
){var u
=this.path_
;app
.sendRequest("list",{path:app
.joinPath(j
,k
)},function(x
){x
.error
?app
.showError(x
.message
):(x
.unshift("/"),s
.empty(),$.each(x
,function(x
,E
){if(app
.isDirectory(E
)){var L
=$.createDom("option"),G
=app
.joinPath(j
,k
,E
);L
.val(G
).text(E
);s
.append(L
);u
.substr(0,G
.length
)==G
&&L
.attr("selected","selected")}}))})};
189 armadillo
.PathControl
.prototype.componentChanged_=function(j
){this.path_
=$(j
.target
).val();this.element_
.empty();this.createDom_(this.element_
)};armadillo
.PathControl
.prototype.nameChanged_=function(j
){console
.log(j
);this.name_
=j
.target
.value
;j
.stopPropagation();return!0};$.namespace("armadillo.Actor");armadillo
.Actor=function(j
){this.file_
=j
;this.controlContainer_
=this.element_
=null};armadillo
.Actor
.prototype.getElement=function(){return this.element_
};armadillo
.Actor
.options_
={OPEN:"open",MOVE:"move",DELETE:"delete",TV_RENAME:"tv-rename",DOWNLOAD:"download"};armadillo
.Actor
.optionStrings_
={open:"Open",move:"Move","delete":"Delete","tv-rename":"Rename TV Episode",download:"Download"};
190 armadillo
.Actor
.prototype.createDom=function(){this.element_
=$.createDom("div").addClass("actor").empty();for(var j
in armadillo
.Actor
.options_
){var k
=this.createTile_(j
);k
&&this.element_
.append(k
)}this.controlContainer_
=$.createDom("div");this.element_
.append(this.controlContainer_
);return this.element_
};
191 armadillo
.Actor
.prototype.createTile_=function(j
){var j
=armadillo
.Actor
.options_
[j
],k
=$.createDom("span").addClass("title");k
.text(armadillo
.Actor
.optionStrings_
[j
]);var s
=$.createDom("div").addClass("tile");s
.append(k
);if(j
==armadillo
.Actor
.options_
.OPEN
&&!this.file_
.isDirectory())return null;s
.click(this.tileClickHandler_
.bind(this,j
));return s
};
192 armadillo
.Actor
.prototype.tileClickHandler_=function(j
){this.controlContainer_
.empty();this.controlContainer_
.show();j
==armadillo
.Actor
.options_
.OPEN
?app
.navigate(this.file_
.getName()):j
==armadillo
.Actor
.options_
.MOVE
?this.performMove_():j
==armadillo
.Actor
.options_
.DELETE
?this.performDelete_():j
==armadillo
.Actor
.options_
.TV_RENAME
?this.performTVRename_():j
==armadillo
.Actor
.options_
.DOWNLOAD
&&this.performDownload_()};
193 armadillo
.Actor
.prototype.performMove_=function(){var j
=new armadillo
.PathControl(this.file_
.getFullPath(),!0);this.controlContainer_
.append(j
.createDom());this.createOkCancel_(function(){var k
=j
.getPath();this.file_
.move(k
)}.bind(this),null)};armadillo
.Actor
.prototype.performDelete_=function(){var j
=$("<div>Are you sure you want to delete:<br/><strong>"+this.file_
.getName()+"</strong></div>");this.controlContainer_
.append(j
);this.createOkCancel_(function(){this.file_
.remove()}.bind(this),null)};
194 armadillo
.Actor
.prototype.performTVRename_=function(){(new armadillo
.TVRenamer(this.file_
)).run()};armadillo
.Actor
.prototype.performDownload_=function(){window
.location
="download?path="+this.file_
.getFullPath()};armadillo
.Actor
.prototype.createOkCancel_=function(j
,k
){var s
=$.createDom("button").text("OK");j
&&s
.click(j
);var u
=$.createDom("button").text("Cancel");k
||(k
=this.defaultCancelCallback_
.bind(this));u
.click(k
);this.controlContainer_
.append(s
);this.controlContainer_
.append(u
)};
195 armadillo
.Actor
.prototype.defaultCancelCallback_=function(){this.controlContainer_
.empty()};$.namespace("armadillo.File");armadillo
.File=function(j
,k
){this.name_
=j
;this.path_
=k
;this.highlight_
="";this.isDirectory_
=app
.isDirectory(j
);this.actor_
=new armadillo
.Actor(this)};armadillo
.File
.Highlight
={NONE:"",SELECTED:"file-selected",ACTIVE:"file-active"};armadillo
.File
.prototype.getName=function(){return this.name_
};armadillo
.File
.prototype.getParentPath=function(){return this.path_
};armadillo
.File
.prototype.getFullPath=function(){return this.path_
+this.name_
};
196 armadillo
.File
.prototype.isDirectory=function(){return this.isDirectory_
};armadillo
.File
.prototype.getExtension=function(){if(this.isDirectory())return"";var j
=this.getName().lastIndexOf(".");return-1==j
?"":this.getName().substring(j
)};armadillo
.File
.prototype.setHighlight=function(){};
197 armadillo
.File
.prototype.createDom=function(){if(!this.element_
){this.element_
=$.createDom("li");var j
=this.isSpecial_()?this.clickHandler_:this.actorHandler_
}this.element_
.empty();this.title_
=$.createDom("div");this.isDirectory()?(this.link_
=$.createDom("a"),this.link_
.text(this.name_
),this.link_
.click(this.clickHandler_
.bind(this)),this.title_
.append(this.link_
)):this.title_
.text(this.name_
);this.element_
.append(this.title_
);this.title_
.click(j
.bind(this));return this.element_
};
198 armadillo
.File
.prototype.remove=function(){var j
=this;app
.sendRequest("remove",{path:this.path_
+this.name_
},function(k
){k
.error
?app
.showError(k
.message
):(app
.clearError(),app
.list(j
.path_
))})};armadillo
.File
.prototype.move=function(j
){app
.sendRequest("move",{source:this.getFullPath(),target:j
},function(k
){k
.error
?app
.showError(k
.message
):(app
.clearError(),app
.list(app
.stripLastPathComponent(j
)))})};armadillo
.File
.prototype.clickHandler_=function(j
){this.isDirectory_
&&app
.navigate(this.name_
);j
.stopPropagation()};
199 armadillo
.File
.prototype.actorHandler_=function(j
){j
.stopPropagation();this.actor_
.getElement()||(j
=this.actor_
.createDom(),j
.hide(),this.element_
.append(j
));this.actor_
.getElement().slideToggle("fast")};armadillo
.File
.prototype.isSpecial_=function(){return"../"==this.name_
};$.namespace("armadillo.App");$(document
).ready(function(){app
=new armadillo
.App
});armadillo
.App=function(){var j
="/";window
.location
.hash
&&(j
=window
.location
.hash
.substr(1));this.list(j
);$(window
).bind("hashchange",this.hashChanged_
.bind(this));this.clearError(!1);$("#mkdir").click(this.mkdirHandler_
.bind(this));j
="Armadillo "+armadillo
.Version
.MAJOR
+"."+armadillo
.Version
.MINOR
+" ("+armadillo
.Version
.BUILD
+")";$("#footer").text(j
)};
200 armadillo
.App
.prototype.sendRequest=function(j
,k
,s
){k
.action
=j
;return $.ajax({url:"service",type:"POST",data:k
,success:s
})};armadillo
.App
.prototype.list=function(j
){this.sendRequest("list",{path:j
},function(k
){if(k
.error
)app
.showError(k
.message
);else{app
.clearError(!0);$("#pwd").text(j
);app
.currentPath_
=j
;window
.location
.hash
=j
;document
.title
=j
+" - Armadillo";var s
=$("#ls");s
.empty();"/"!=j
&&""!=j
&&k
.unshift("../");$.each(k
,function(k
,x
){var I
=new armadillo
.File(x
,j
);s
.append(I
.createDom())})}})};
201 armadillo
.App
.prototype.navigate=function(j
){"../"==j
?this.list(this.stripLastPathComponent(this.currentPath_
)):this.list(this.currentPath_
+j
)};armadillo
.App
.prototype.hashChanged_=function(){window
.location
.hash
.length
&&this.list(window
.location
.hash
.substr(1))};armadillo
.App
.prototype.isDirectory=function(j
){return"/"==j
[j
.length
-1]};armadillo
.App
.prototype.getCurrentPath=function(){return this.currentPath_
};
202 armadillo
.App
.prototype.stripLastPathComponent=function(j
){for(var k
=j
.length
-1;0<=k
;--k
)if("/"==j
[k
]&&k
!=j
.length
-1)return j
.substring(0,k
+1);return"/"};armadillo
.App
.prototype.joinPath=function(){var j
="",k
=arguments
.length
-1;$.each(arguments
,function(s
,u
){"/"==u
&&0!=s
||(j
+=u
,"/"!=u
[u
.length
-1]&&s
!=k
&&(j
+="/"))});return j
};armadillo
.App
.prototype.clearError=function(j
){var k
=$("#error");!k
.text()||!j
?k
.hide():k
.fadeOut(500,function(){k
.text("")})};armadillo
.App
.prototype.showError=function(j
){$("#error").text(j
).fadeIn(1E3
)};
203 armadillo
.App
.prototype.mkdirHandler_=function(){var j
=prompt("Name the new subdirectory","");null!=j
&&""!=j
&&(j
=this.joinPath(this.getCurrentPath(),j
),this.sendRequest("mkdir",{path:j
},function(j
){j
.error
?app
.showError(j
.message
):(app
.clearError(),app
.list(app
.getCurrentPath()))}))};