olelo 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +0 -1
- data/.travis.yml +8 -0
- data/README.creole +31 -11
- data/Rakefile +46 -21
- data/config/aspects.rb +19 -15
- data/lib/olelo/application.rb +2 -3
- data/lib/olelo/extensions.rb +3 -0
- data/lib/olelo/helper.rb +7 -5
- data/lib/olelo/locale.rb +1 -1
- data/lib/olelo/locale.yml +298 -204
- data/lib/olelo/page.rb +9 -1
- data/lib/olelo/plugin.rb +1 -1
- data/lib/olelo/repository.rb +1 -1
- data/lib/olelo/util.rb +3 -0
- data/lib/olelo/version.rb +1 -1
- data/olelo.gemspec +1 -1
- data/plugins/aspects/changelog.rb +7 -4
- data/plugins/aspects/locale.yml +69 -47
- data/plugins/blog/locale.yml +13 -9
- data/plugins/editor/locale.yml +16 -11
- data/plugins/filters/creole.rb +3 -6
- data/plugins/filters/fix_image_links.rb +20 -0
- data/plugins/filters/locale.yml +18 -13
- data/plugins/filters/s5/main.rb +2 -0
- data/plugins/login/locale.yml +6 -4
- data/plugins/repositories/gitrb_repository.rb +1 -1
- data/plugins/repositories/locale.yml +14 -10
- data/plugins/repositories/rugged_repository.rb +2 -3
- data/plugins/security/locale.yml +19 -13
- data/plugins/tags/math.rb +2 -1
- data/plugins/treeview/script.js +2 -2
- data/plugins/treeview/script/init.js +4 -0
- data/plugins/utils/xml.rb +14 -0
- data/static/script.js +296 -256
- data/static/script/02-history.js +1943 -0
- data/static/script/03-history.adapter.jquery.js +77 -0
- data/static/script/{03-jquery.ui.core.js → 04-jquery.ui.core.js} +0 -0
- data/static/script/{04-jquery.ui.widget.js → 05-jquery.ui.widget.js} +0 -0
- data/static/script/{05-jquery.ui.position.js → 06-jquery.ui.position.js} +0 -0
- data/static/script/{06-jquery.ui.menu.js → 07-jquery.ui.menu.js} +0 -0
- data/static/script/{07-jquery.ui.autocomplete.js → 08-jquery.ui.autocomplete.js} +0 -0
- data/static/script/{02-olelo.storage.js → 09-olelo.storage.js} +0 -0
- data/static/script/{08-olelo.i18n.js → 10-olelo.i18n.js} +0 -0
- data/static/script/{09-olelo.unsaved.js → 11-olelo.unsaved.js} +6 -2
- data/static/script/{10-olelo.historytable.js → 12-olelo.historytable.js} +0 -0
- data/static/script/13-olelo.pagination.js +30 -0
- data/static/script/{13-olelo.tabwidget.js → 14-olelo.tabwidget.js} +0 -0
- data/static/script/{14-olelo.timeago.js → 15-olelo.timeago.js} +14 -1
- data/static/script/{15-olelo.underliner.js → 16-olelo.underliner.js} +0 -0
- data/static/script/{16-olelo.ui.combobox.js → 17-olelo.ui.combobox.js} +0 -0
- data/static/script/init.js +10 -10
- data/static/themes/atlantis/screen.scss +11 -10
- data/static/themes/atlantis/style.css +1 -1
- data/test/config_test.rb +9 -0
- data/test/factory_test.rb +1 -1
- data/test/hash_extensions_test.rb +1 -1
- data/test/helper.rb +0 -1
- data/test/hooks_test.rb +1 -2
- data/test/object_extensions_test.rb +1 -2
- data/test/run.rb +12 -0
- data/test/string_extensions_test.rb +1 -1
- data/test/templates_test.rb +1 -3
- data/test/util_test.rb +1 -6
- data/views/compare.slim +4 -5
- data/views/edit.slim +2 -2
- data/views/history.slim +1 -1
- data/views/layout.slim +1 -2
- data/views/not_found.slim +2 -2
- data/views/show.slim +3 -4
- metadata +47 -44
- data/plugins/filters/fix_img_tag.rb +0 -16
- data/static/script/11-olelo.pagination.js +0 -18
@@ -253,8 +253,7 @@ class RuggedRepository < Repository
|
|
253
253
|
end
|
254
254
|
end
|
255
255
|
|
256
|
-
def get_history(path, skip
|
257
|
-
skip ||= 0
|
256
|
+
def get_history(path, skip, limit)
|
258
257
|
commits = []
|
259
258
|
walker = Rugged::Walker.new(@git)
|
260
259
|
walker.sorting(Rugged::SORT_TOPO)
|
@@ -265,7 +264,7 @@ class RuggedRepository < Repository
|
|
265
264
|
skip -= 1
|
266
265
|
else
|
267
266
|
commits << c
|
268
|
-
break if
|
267
|
+
break if commits.size >= limit
|
269
268
|
end
|
270
269
|
end
|
271
270
|
end
|
data/plugins/security/locale.yml
CHANGED
@@ -1,18 +1,24 @@
|
|
1
|
-
en:
|
2
|
-
attribute_acl_write: 'Write access'
|
3
|
-
attribute_acl_create: 'Create subpages'
|
4
|
-
attribute_acl_delete: 'Delete subpages'
|
5
|
-
group_acl: 'Access control lists'
|
6
|
-
login_first: 'You have to login first'
|
7
|
-
de:
|
8
|
-
attribute_acl_write: 'Schreibzugriff'
|
9
|
-
attribute_acl_create: 'Unterseiten anlegen'
|
10
|
-
attribute_acl_delete: 'Unterseiten löschen'
|
11
|
-
group_acl: 'Zugriffslisten'
|
12
|
-
login_first: 'Sie müssen sich zuerst anmelden'
|
13
1
|
cs_CZ:
|
14
|
-
attribute_acl_write: 'Právo zápisu'
|
15
2
|
attribute_acl_create: 'Vytvářet podstránky'
|
16
3
|
attribute_acl_delete: 'Mazat podstránky'
|
4
|
+
attribute_acl_write: 'Právo zápisu'
|
17
5
|
group_acl: 'Řízení přístupů (ACL)'
|
18
6
|
login_first: 'Musíte se nejprve přihlásit'
|
7
|
+
de:
|
8
|
+
attribute_acl_create: 'Unterseiten anlegen'
|
9
|
+
attribute_acl_delete: 'Unterseiten löschen'
|
10
|
+
attribute_acl_write: 'Schreibzugriff'
|
11
|
+
group_acl: 'Zugriffslisten'
|
12
|
+
login_first: 'Sie müssen sich zuerst anmelden'
|
13
|
+
en:
|
14
|
+
attribute_acl_create: 'Create subpages'
|
15
|
+
attribute_acl_delete: 'Delete subpages'
|
16
|
+
attribute_acl_write: 'Write access'
|
17
|
+
group_acl: 'Access control lists'
|
18
|
+
login_first: 'You have to login first'
|
19
|
+
fr:
|
20
|
+
attribute_acl_create: "Créer sous-pages"
|
21
|
+
attribute_acl_delete: "Supprimer sous-pages"
|
22
|
+
attribute_acl_write: "Accès en écriture"
|
23
|
+
group_acl: "Liste de contrôle des accès"
|
24
|
+
login_first: "Vous devez d'abord vous connecter"
|
data/plugins/tags/math.rb
CHANGED
@@ -100,7 +100,8 @@ end
|
|
100
100
|
class ::Olelo::Application
|
101
101
|
hook :head do
|
102
102
|
if page && Config['math_renderer'] == 'mathjax'
|
103
|
-
%{<script type="text/
|
103
|
+
%{<script type="text/x-mathjax-config">MathJax.Hub.Config({ TeX: { extensions: ['autoload-all.js'] } });</script>
|
104
|
+
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"/>}
|
104
105
|
end
|
105
106
|
end
|
106
107
|
|
data/plugins/treeview/script.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
(function(b){b.fn.treeView=function(a){function l(c,e){if(a.stateStore){var d=b.storage.get(a.stateStore,[]);if(e)b.inArray(c,d)<0&&d.push(c);else d=b.grep(d,function(f){return f!=c});b.storage.set(a.stateStore,d)}}function m(c){var e=c[2],d=b('<li><div class="'+(c[0]?"hitarea collapsed":"placeholder")+'"><div class="arrow"/><div class="'+c[1]+'"/></div><a href="'+e+'">'+c[3]+"</a></li>"),f=d.children(".hitarea");d.data("name",c[3]);f.click(function(){if(f.hasClass("collapsed")){n(d,e);f.removeClass("collapsed").addClass("expanded")}else{d.children("ul").hide();
|
2
2
|
f.removeClass("expanded").addClass("collapsed")}l(e,f.hasClass("expanded"));return false});if(a.stateStore&&b.inArray(e,b.storage.get(a.stateStore,[]))>=0){n(d,e);f.removeClass("collapsed").addClass("expanded")}return d}function n(c,e){function d(i){var j=b("<ul/>");b.each(i,function(o,k){j.append(m(k))});e==a.root&&c.empty();c.children("ul").remove();c.append(j)}function f(i){g&&b.storage.set(g,i);var j={},o=[];b.each(i,function(k,h){j[h[3]]=h});b("> ul > li",c).each(function(){var k=b(this),h=k.data("name");
|
3
3
|
if(j[h])delete j[h];else k.remove();o.push(b(this))});b.each(j,function(k,h){var p=false;b.each(o,function(t,q){if(k<q.data("name")){p=true;q.before(m(h));return false}});p||c.children("ul").append(m(h))})}function r(){setTimeout(function(){a.ajax(e,f,function(){g&&b.storage.remove(g)})},a.delay)}var g=a.cacheStore?a.cacheStore+":"+e:null;if(c.children("ul").length!==0){c.children("ul").show();r()}else{var s=g?b.storage.get(g):null;if(s){d(s);r()}else{c.addClass("wait");a.ajax(e,function(i){c.removeClass("wait");
|
4
|
-
d(i);g&&b.storage.set(g,i)},function(){c.removeClass("wait")})}}}a||(a={});if(!a.root)a.root="/";if(!a.url)a.url="/treeview.json";if(!a.delay)a.delay=2E3;if(!a.ajax)a.ajax=function(c,e,d){b.ajax({url:a.url,data:{dir:c},success:e,error:d,dataType:"json"})};this.each(function(){n(b(this),a.root)})}})(jQuery);$(function(){$.translations({en:{menu:"Menu",tree:"Tree"},de:{menu:"Men\u00fc",tree:"Baumansicht"},cs:{menu:"Menu",tree:"Strom"}});$("#sidebar").wrapInner('<div id="sidebar-menu"/>').prepend('<div id="sidebar-tree" style="display: none"><h1>'+$.t("tree")+'</h1><div id="treeview"/></div>');$("#menu").prepend('<ul><li class="selected" id="sidebar-tab-menu"><a href="#sidebar-menu">'+$.t("menu")+'</a></li><li id="sidebar-tab-tree"><a href="#sidebar-tree">'+$.t("tree")+"</a></li></ul>")
|
5
|
-
$("#treeview").treeView({stateStore:"treeview-state",cacheStore:"treeview-cache",root:Olelo.base_path,ajax:function(b,a,l){$.ajax({url:b,data:{aspect:"treeview"},success:a,error:l,dataType:"json"})}})});
|
4
|
+
d(i);g&&b.storage.set(g,i)},function(){c.removeClass("wait")})}}}a||(a={});if(!a.root)a.root="/";if(!a.url)a.url="/treeview.json";if(!a.delay)a.delay=2E3;if(!a.ajax)a.ajax=function(c,e,d){b.ajax({url:a.url,data:{dir:c},success:e,error:d,dataType:"json"})};this.each(function(){n(b(this),a.root)})}})(jQuery);$(function(){$.translations({en:{menu:"Menu",tree:"Tree"},de:{menu:"Men\u00fc",tree:"Baumansicht"},cs:{menu:"Menu",tree:"Strom"},fr:{menu:"Menu",tree:"Arbre"}});$("#sidebar").wrapInner('<div id="sidebar-menu"/>').prepend('<div id="sidebar-tree" style="display: none"><h1>'+$.t("tree")+'</h1><div id="treeview"/></div>');$("#menu").prepend('<ul><li class="selected" id="sidebar-tab-menu"><a href="#sidebar-menu">'+$.t("menu")+'</a></li><li id="sidebar-tab-tree"><a href="#sidebar-tree">'+$.t("tree")+"</a></li></ul>");
|
5
|
+
$("#sidebar-tab-menu, #sidebar-tab-tree").tabWidget({store:"sidebar-tab"});$("#treeview").treeView({stateStore:"treeview-state",cacheStore:"treeview-cache",root:Olelo.base_path,ajax:function(b,a,l){$.ajax({url:b,data:{aspect:"treeview"},success:a,error:l,dataType:"json"})}})});
|
data/plugins/utils/xml.rb
CHANGED
@@ -6,6 +6,20 @@ require 'nokogiri'
|
|
6
6
|
# FIXME: Remove this check as soon as nokogiri works correctly.
|
7
7
|
raise 'The libxml version used by nokogiri is broken, upgrade to 2.7' if Nokogiri.uses_libxml? && %w[2 6] === Nokogiri::LIBXML_VERSION.split('.')[0..1]
|
8
8
|
|
9
|
+
class Nokogiri::XML::Node
|
10
|
+
OLELO_DEFAULT_XHTML = SaveOptions::FORMAT |
|
11
|
+
SaveOptions::NO_DECLARATION |
|
12
|
+
SaveOptions::NO_EMPTY_TAGS |
|
13
|
+
SaveOptions::AS_XML
|
14
|
+
|
15
|
+
# HACK: Issue https://github.com/sparklemotion/nokogiri/issues/339
|
16
|
+
def to_xhtml options = {}
|
17
|
+
options[:save_with] |= OLELO_DEFAULT_XHTML if options[:save_with]
|
18
|
+
options[:save_with] = OLELO_DEFAULT_XHTML unless options[:save_with]
|
19
|
+
serialize(options)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
9
23
|
module XML
|
10
24
|
extend self
|
11
25
|
|
data/static/script.js
CHANGED
@@ -1,265 +1,305 @@
|
|
1
1
|
if(typeof JSON!=="object")JSON={};
|
2
|
-
(function(){function i(
|
3
|
-
case "object":if(!
|
4
|
-
|
5
|
-
|
6
|
-
{"":
|
7
|
-
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){
|
8
|
-
function
|
9
|
-
b)>=0===c})}function
|
10
|
-
c=b.nodeName.toLowerCase();if(c==="object"){if(b.parentNode)b.outerHTML=a.outerHTML;if(d.support.html5Clone&&a.innerHTML&&!d.trim(b.innerHTML))b.innerHTML=a.innerHTML}else if(c==="input"&&Jb.test(a.type)){b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue;else if(c==="script"&&b.text!==a.text)b.text=a.text;b.removeAttribute(d.expando)}}function
|
11
|
-
"undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function
|
12
|
-
if(b){if(!f[
|
13
|
-
"margin")f+=d.css(a,c+Qa[b],true);if(e){if(c==="content")f-=parseFloat(
|
14
|
-
e===a.style[b]);e=parseFloat(e)||0}return e+
|
15
|
-
c}function
|
16
|
-
|
17
|
-
function(c,e){for(var f=(gb[c]||[]).concat(gb["*"]),
|
18
|
-
c),originalProperties:b,originalOptions:c,startTime:lb||Ja(),duration:c.duration,tweens:[],createTween:function(
|
19
|
-
{anim:
|
20
|
-
f=0;for(b=b?1:0;f<4;f+=2-b){c=Qa[f];e["margin"+c]=e["padding"+c]=a}if(b)e.opacity=e.width=a;return e}function nb(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var ob,ja,
|
21
|
-
sc=/\S/,Pa=/\s+/,tc=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,uc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Mb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,vc=/^[\],:{}\s]*$/,wc=/(?:^|:|,)(?:\s*\[)+/g,xc=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,yc=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,zc=/^-ms-/,Ac=/-([\da-z])/gi,Bc=function(a,b){return(b+"").toUpperCase()},qb=function(){if(
|
22
|
-
qb);d.ready()}},Nb={};d.fn=d.prototype={constructor:d,init:function(a,b,c){var e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?[null,a,null]:uc.exec(a))&&(e[1]||!b))if(e[1]){a=(b=b instanceof d?b[0]:b)&&b.nodeType?b.ownerDocument||b:
|
23
|
-
b.parentNode){if(b.id!==e[2])return c.find(a);this.length=1;this[0]=b}this.context=
|
24
|
-
pushStack:function(a,b,c){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+c;else if(b)a.selector=this.selector+"."+b+"("+c+")";return a},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.ready.promise().done(a);return this},eq:function(a){a=+a;return a===-1?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(
|
25
|
-
arguments),"slice",
|
26
|
-
null)for(b in a){c=
|
27
|
-
if(!(a!==true&&--d.readyWait>0)){ja.resolveWith(
|
28
|
-
!yb.call(a,"constructor")&&!yb.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(b){return false}var c;for(c in a);return c===
|
29
|
-
e.fragment).childNodes)},parseJSON:function(a){if(!a||typeof a!=="string")return null;a=d.trim(a);if(i.JSON&&i.JSON.parse)return i.JSON.parse(a);if(vc.test(a.replace(xc,"@").replace(yc,"]").replace(wc,"")))return(new Function("return "+a))();d.error("Invalid JSON: "+a)},parseXML:function(a){var b,c;if(!a||typeof a!=="string")return null;try{if(i.DOMParser){c=new DOMParser;b=c.parseFromString(a,"text/xml")}else{b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}}catch(e){b=
|
30
|
-
!b.documentElement||b.getElementsByTagName("parsererror").length)d.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){if(a&&sc.test(a))(i.execScript||function(b){i.eval.call(i,b)})(a)},camelCase:function(a){return a.replace(zc,"ms-").replace(Ac,Bc)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var e,f=0,
|
31
|
-
c)===false)break}else if(
|
32
|
-
c);e=b.length;for(c=c?c<0?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=b.length,e=a.length,f=0;if(typeof c==="number")for(;f<c;f++)a[e++]=b[f];else for(;b[f]!==
|
33
|
-
b(a[
|
34
|
-
|
35
|
-
qb);i.attachEvent("onload",d.ready);var b=false;try{b=i.frameElement==null&&
|
36
|
-
a.memory&&
|
37
|
-
|
38
|
-
return
|
39
|
-
|
40
|
-
|
41
|
-
b=
|
42
|
-
cssFloat:!!c.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:
|
43
|
-
b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete
|
44
|
-
c.appendChild(
|
45
|
-
|
46
|
-
a.boxSizing=
|
47
|
-
"undefined"){
|
48
|
-
uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!
|
49
|
-
d.noop}if(typeof b==="object"||typeof b==="function")if(e)
|
50
|
-
|
51
|
-
1&&!d._data(
|
52
|
-
|
53
|
-
c.shift();e--}if(f){b==="fx"&&c.unshift("inprogress");delete
|
54
|
-
a);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(c,e){var f=setTimeout(c,a);e.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,e=1,f=d.Deferred(),
|
55
|
-
a+"queueHooks"))&&c.empty){e++;c.empty.add(
|
56
|
-
a)})},prop:function(a,b){return d.access(this,d.prop,a,b,arguments.length>1)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=
|
57
|
-
for(
|
58
|
-
e.className=a?d.trim(c):""}}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(f){d(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(c==="string")for(var f,
|
59
|
-
"":d._data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Qb," ").indexOf(a)>=0)return true;return false},val:function(a){var b,c,e,f=this[0];if(arguments.length){e=d.isFunction(a);return this.each(function(
|
60
|
-
b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,
|
61
|
-
"select-one";if(e<0)return null;a=
|
62
|
-
b,c,e){var f,
|
63
|
-
b){var c,e,f,
|
64
|
-
b);return b in a?a.value:null},set:function(a,b,c){if(Ma&&d.nodeName(a,"button"))return Ma.set(a,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,
|
65
|
-
b;f=d.propHooks[b]}return c!==
|
66
|
-
d.propFix[c]||c;if(b in a)a[b]=true;a.setAttribute(c,c.toLowerCase())}return c}};if(!Sb){Pb={name:true,id:true,coords:true};Ma=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(Pb[b]?c.value!=="":c.specified)?c.value:
|
67
|
-
return e}}})});d.attrHooks.contenteditable={get:Ma.get,set:function(a,b,c){if(b==="")b="false";Ma.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(c){c=c.getAttribute(b,2);return c===null?
|
2
|
+
(function(){function i(H){return H<10?"0"+H:H}function v(H){z.lastIndex=0;return z.test(H)?'"'+H.replace(z,function(K){var R=x[K];return typeof R==="string"?R:"\\u"+("0000"+K.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+H+'"'}function n(H,K){var R,g,S,D,G=r,k,p=K[H];if(p&&typeof p==="object"&&typeof p.toJSON==="function")p=p.toJSON(H);if(typeof E==="function")p=E.call(K,H,p);switch(typeof p){case "string":return v(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);
|
3
|
+
case "object":if(!p)return"null";r+=o;k=[];if(Object.prototype.toString.apply(p)==="[object Array]"){D=p.length;for(R=0;R<D;R+=1)k[R]=n(R,p)||"null";S=k.length===0?"[]":r?"[\n"+r+k.join(",\n"+r)+"\n"+G+"]":"["+k.join(",")+"]";r=G;return S}if(E&&typeof E==="object"){D=E.length;for(R=0;R<D;R+=1)if(typeof E[R]==="string"){g=E[R];if(S=n(g,p))k.push(v(g)+(r?": ":":")+S)}}else for(g in p)if(Object.prototype.hasOwnProperty.call(p,g))if(S=n(g,p))k.push(v(g)+(r?": ":":")+S);S=k.length===0?"{}":r?"{\n"+r+k.join(",\n"+
|
4
|
+
r)+"\n"+G+"}":"{"+k.join(",")+"}";r=G;return S}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var s=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
5
|
+
z=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,x={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},E;if(typeof JSON.stringify!=="function")JSON.stringify=function(H,K,R){var g;o=r="";if(typeof R==="number")for(g=0;g<R;g+=1)o+=" ";else if(typeof R==="string")o=R;if((E=K)&&typeof K!=="function"&&(typeof K!=="object"||typeof K.length!=="number"))throw Error("JSON.stringify");return n("",
|
6
|
+
{"":H})};if(typeof JSON.parse!=="function")JSON.parse=function(H,K){function R(S,D){var G,k,p=S[D];if(p&&typeof p==="object")for(G in p)if(Object.prototype.hasOwnProperty.call(p,G)){k=R(p,G);if(k!==undefined)p[G]=k;else delete p[G]}return K.call(S,D,p)}var g;H=String(H);s.lastIndex=0;if(s.test(H))H=H.replace(s,function(S){return"\\u"+("0000"+S.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(H.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
7
|
+
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){g=eval("("+H+")");return typeof K==="function"?R({"":g},""):g}throw new SyntaxError("JSON.parse");}})();(function(i,v){function n(a){var b=Hb[a]={};d.each(a.split(Pa),function(c,e){b[e]=true});return b}function s(a,b,c){if(c===v&&a.nodeType===1){c="data-"+b.replace(mc,"-$1").toLowerCase();c=a.getAttribute(c);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:+c+""===c?+c:nc.test(c)?d.parseJSON(c):c}catch(e){}d.data(a,b,c)}else c=v}return c}function z(a){var b;for(b in a)if(!(b==="data"&&d.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function r(){return false}
|
8
|
+
function o(){return true}function x(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function E(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function H(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,function(f,h){return!!b.call(f,h,f)===c});else if(b.nodeType)return d.grep(a,function(f){return f===b===c});else if(typeof b==="string"){var e=d.grep(a,function(f){return f.nodeType===1});if(oc.test(b))return d.filter(b,e,!c);else b=d.filter(b,e)}return d.grep(a,function(f){return d.inArray(f,
|
9
|
+
b)>=0===c})}function K(a){var b=Ib.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function R(a,b){if(!(b.nodeType!==1||!d.hasData(a))){var c,e,f;e=d._data(a);var h=d._data(b,e),j=e.events;if(j){delete h.handle;h.events={};for(c in j){e=0;for(f=j[c].length;e<f;e++)d.event.add(b,c,j[c][e])}}if(h.data)h.data=d.extend({},h.data)}}function g(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);
|
10
|
+
c=b.nodeName.toLowerCase();if(c==="object"){if(b.parentNode)b.outerHTML=a.outerHTML;if(d.support.html5Clone&&a.innerHTML&&!d.trim(b.innerHTML))b.innerHTML=a.innerHTML}else if(c==="input"&&Jb.test(a.type)){b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue;else if(c==="script"&&b.text!==a.text)b.text=a.text;b.removeAttribute(d.expando)}}function S(a){return typeof a.getElementsByTagName!==
|
11
|
+
"undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function D(a){if(Jb.test(a.type))a.defaultChecked=a.checked}function G(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),e=b,f=Kb.length;f--;){b=Kb[f]+c;if(b in a)return b}return e}function k(a,b){a=b||a;return d.css(a,"display")==="none"||!d.contains(a.ownerDocument,a)}function p(a,b){for(var c,e,f=[],h=0,j=a.length;h<j;h++){c=a[h];if(c.style){f[h]=d._data(c,"olddisplay");
|
12
|
+
if(b){if(!f[h]&&c.style.display==="none")c.style.display="";if(c.style.display===""&&k(c))f[h]=d._data(c,"olddisplay",oa(c.nodeName))}else{e=ya(c,"display");!f[h]&&e!=="none"&&d._data(c,"olddisplay",e)}}}for(h=0;h<j;h++){c=a[h];if(c.style)if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?f[h]||"":"none"}return a}function C(a,b,c){return(a=pc.exec(b))?Math.max(0,a[1]-(c||0))+(a[2]||"px"):b}function O(a,b,c,e){b=c===(e?"border":"content")?4:b==="width"?1:0;for(var f=0;b<4;b+=2){if(c===
|
13
|
+
"margin")f+=d.css(a,c+Qa[b],true);if(e){if(c==="content")f-=parseFloat(ya(a,"padding"+Qa[b]))||0;if(c!=="margin")f-=parseFloat(ya(a,"border"+Qa[b]+"Width"))||0}else{f+=parseFloat(ya(a,"padding"+Qa[b]))||0;if(c!=="padding")f+=parseFloat(ya(a,"border"+Qa[b]+"Width"))||0}}return f}function P(a,b,c){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=true,h=d.support.boxSizing&&d.css(a,"boxSizing")==="border-box";if(e<=0||e==null){e=ya(a,b);if(e<0||e==null)e=a.style[b];if(kb.test(e))return e;f=h&&(d.support.boxSizingReliable||
|
14
|
+
e===a.style[b]);e=parseFloat(e)||0}return e+O(a,b,c||(h?"border":"content"),f)+"px"}function oa(a){if(wb[a])return wb[a];var b=d("<"+a+">").appendTo(Q.body),c=b.css("display");b.remove();if(c==="none"||c===""){Wa=Q.body.appendChild(Wa||d.extend(Q.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Xa||!Wa.createElement){Xa=(Wa.contentWindow||Wa.contentDocument).document;Xa.write("<!doctype html><html><body>");Xa.close()}b=Xa.body.appendChild(Xa.createElement(a));c=ya(b,"display");Q.body.removeChild(Wa)}return wb[a]=
|
15
|
+
c}function ma(a,b,c,e){var f;if(d.isArray(b))d.each(b,function(h,j){c||qc.test(a)?e(a,j):ma(a+"["+(typeof j==="object"?h:"")+"]",j,c,e)});else if(!c&&d.type(b)==="object")for(f in b)ma(a+"["+f+"]",b[f],c,e);else e(a,b)}function la(a){return function(b,c){if(typeof b!=="string"){c=b;b="*"}var e,f,h=b.toLowerCase().split(Pa),j=0,m=h.length;if(d.isFunction(c))for(;j<m;j++){e=h[j];if(f=/^\+/.test(e))e=e.substr(1)||"*";e=a[e]=a[e]||[];e[f?"unshift":"push"](c)}}}function Ha(a,b,c,e,f,h){f=f||b.dataTypes[0];
|
16
|
+
h=h||{};h[f]=true;var j;f=a[f];for(var m=0,u=f?f.length:0,y=a===xb;m<u&&(y||!j);m++){j=f[m](b,c,e);if(typeof j==="string")if(!y||h[j])j=v;else{b.dataTypes.unshift(j);j=Ha(a,b,c,e,j,h)}}if((y||!j)&&!h["*"])j=Ha(a,b,c,e,"*",h);return j}function Ya(a,b){var c,e,f=d.ajaxSettings.flatOptions||{};for(c in b)if(b[c]!==v)(f[c]?a:e||(e={}))[c]=b[c];e&&d.extend(true,a,e)}function ia(){try{return new i.XMLHttpRequest}catch(a){}}function Ja(){setTimeout(function(){lb=v},0);return lb=d.now()}function Ba(a,b){d.each(b,
|
17
|
+
function(c,e){for(var f=(gb[c]||[]).concat(gb["*"]),h=0,j=f.length;h<j;h++)if(f[h].call(a,c,e))return})}function Ia(a,b,c){var e=0,f=mb.length,h=d.Deferred().always(function(){delete j.elem}),j=function(){var u=lb||Ja();u=Math.max(0,m.startTime+m.duration-u);for(var y=1-(u/m.duration||0),A=0,w=m.tweens.length;A<w;A++)m.tweens[A].run(y);h.notifyWith(a,[m,y,u]);if(y<1&&w)return u;else{h.resolveWith(a,[m]);return false}},m=h.promise({elem:a,props:d.extend({},b),opts:d.extend(true,{specialEasing:{}},
|
18
|
+
c),originalProperties:b,originalOptions:c,startTime:lb||Ja(),duration:c.duration,tweens:[],createTween:function(u,y){var A=d.Tween(a,m.opts,u,y,m.opts.specialEasing[u]||m.opts.easing);m.tweens.push(A);return A},stop:function(u){for(var y=0,A=u?m.tweens.length:0;y<A;y++)m.tweens[y].run(1);u?h.resolveWith(a,[m,u]):h.rejectWith(a,[m,u]);return this}});c=m.props;for(Ka(c,m.opts.specialEasing);e<f;e++)if(b=mb[e].call(m,a,c,m.opts))return b;Ba(m,c);d.isFunction(m.opts.start)&&m.opts.start.call(a,m);d.fx.timer(d.extend(j,
|
19
|
+
{anim:m,queue:m.opts.queue,elem:a}));return m.progress(m.opts.progress).done(m.opts.done,m.opts.complete).fail(m.opts.fail).always(m.opts.always)}function Ka(a,b){var c,e,f,h,j;for(c in a){e=d.camelCase(c);f=b[e];h=a[c];if(d.isArray(h)){f=h[1];h=a[c]=h[0]}if(c!==e){a[e]=h;delete a[c]}if((j=d.cssHooks[e])&&"expand"in j){h=j.expand(h);delete a[e];for(c in h)if(!(c in a)){a[c]=h[c];b[c]=f}}else b[e]=f}}function sa(a,b,c,e,f){return new sa.prototype.init(a,b,c,e,f)}function Ra(a,b){var c,e={height:a},
|
20
|
+
f=0;for(b=b?1:0;f<4;f+=2-b){c=Qa[f];e["margin"+c]=e["padding"+c]=a}if(b)e.opacity=e.width=a;return e}function nb(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var ob,ja,Q=i.document,Za=i.location,La=i.navigator,hb=i.jQuery,$a=i.$,ab=Array.prototype.push,Ca=Array.prototype.slice,Lb=Array.prototype.indexOf,rc=Object.prototype.toString,yb=Object.prototype.hasOwnProperty,zb=String.prototype.trim,d=function(a,b){return new d.fn.init(a,b,ob)},pb=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
|
21
|
+
sc=/\S/,Pa=/\s+/,tc=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,uc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Mb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,vc=/^[\],:{}\s]*$/,wc=/(?:^|:|,)(?:\s*\[)+/g,xc=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,yc=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,zc=/^-ms-/,Ac=/-([\da-z])/gi,Bc=function(a,b){return(b+"").toUpperCase()},qb=function(){if(Q.addEventListener){Q.removeEventListener("DOMContentLoaded",qb,false);d.ready()}else if(Q.readyState==="complete"){Q.detachEvent("onreadystatechange",
|
22
|
+
qb);d.ready()}},Nb={};d.fn=d.prototype={constructor:d,init:function(a,b,c){var e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?[null,a,null]:uc.exec(a))&&(e[1]||!b))if(e[1]){a=(b=b instanceof d?b[0]:b)&&b.nodeType?b.ownerDocument||b:Q;a=d.parseHTML(e[1],a,true);Mb.test(e[1])&&d.isPlainObject(b)&&this.attr.call(a,b,true);return d.merge(this,a)}else{if((b=Q.getElementById(e[2]))&&
|
23
|
+
b.parentNode){if(b.id!==e[2])return c.find(a);this.length=1;this[0]=b}this.context=Q;this.selector=a;return this}else return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);else if(d.isFunction(a))return c.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return Ca.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},
|
24
|
+
pushStack:function(a,b,c){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+c;else if(b)a.selector=this.selector+"."+b+"("+c+")";return a},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.ready.promise().done(a);return this},eq:function(a){a=+a;return a===-1?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(Ca.apply(this,
|
25
|
+
arguments),"slice",Ca.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ab,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,b,c,e,f,h=arguments[0]||{},j=1,m=arguments.length,u=false;if(typeof h==="boolean"){u=h;h=arguments[1]||{};j=2}if(typeof h!=="object"&&!d.isFunction(h))h={};if(m===j){h=this;--j}for(;j<m;j++)if((a=arguments[j])!=
|
26
|
+
null)for(b in a){c=h[b];e=a[b];if(h!==e)if(u&&e&&(d.isPlainObject(e)||(f=d.isArray(e)))){if(f){f=false;c=c&&d.isArray(c)?c:[]}else c=c&&d.isPlainObject(c)?c:{};h[b]=d.extend(u,c,e)}else if(e!==v)h[b]=e}return h};d.extend({noConflict:function(a){if(i.$===d)i.$=$a;if(a&&i.jQuery===d)i.jQuery=hb;return d},isReady:false,readyWait:1,holdReady:function(a){if(a)d.readyWait++;else d.ready(true)},ready:function(a){if(!(a===true?--d.readyWait:d.isReady)){if(!Q.body)return setTimeout(d.ready,1);d.isReady=true;
|
27
|
+
if(!(a!==true&&--d.readyWait>0)){ja.resolveWith(Q,[d]);d.fn.trigger&&d(Q).trigger("ready").off("ready")}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):Nb[rc.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return false;try{if(a.constructor&&
|
28
|
+
!yb.call(a,"constructor")&&!yb.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(b){return false}var c;for(c in a);return c===v||yb.call(a,c)},isEmptyObject:function(a){var b;for(b in a)return false;return true},error:function(a){throw Error(a);},parseHTML:function(a,b,c){var e;if(!a||typeof a!=="string")return null;if(typeof b==="boolean"){c=b;b=0}b=b||Q;if(e=Mb.exec(a))return[b.createElement(e[1])];e=d.buildFragment([a],b,c?null:[]);return d.merge([],(e.cacheable?d.clone(e.fragment):
|
29
|
+
e.fragment).childNodes)},parseJSON:function(a){if(!a||typeof a!=="string")return null;a=d.trim(a);if(i.JSON&&i.JSON.parse)return i.JSON.parse(a);if(vc.test(a.replace(xc,"@").replace(yc,"]").replace(wc,"")))return(new Function("return "+a))();d.error("Invalid JSON: "+a)},parseXML:function(a){var b,c;if(!a||typeof a!=="string")return null;try{if(i.DOMParser){c=new DOMParser;b=c.parseFromString(a,"text/xml")}else{b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}}catch(e){b=v}if(!b||
|
30
|
+
!b.documentElement||b.getElementsByTagName("parsererror").length)d.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){if(a&&sc.test(a))(i.execScript||function(b){i.eval.call(i,b)})(a)},camelCase:function(a){return a.replace(zc,"ms-").replace(Ac,Bc)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var e,f=0,h=a.length,j=h===v||d.isFunction(a);if(c)if(j)for(e in a){if(b.apply(a[e],c)===false)break}else for(;f<h;){if(b.apply(a[f++],
|
31
|
+
c)===false)break}else if(j)for(e in a){if(b.call(a[e],e,a[e])===false)break}else for(;f<h;)if(b.call(a[f],f,a[f++])===false)break;return a},trim:zb&&!zb.call("\ufeff\u00a0")?function(a){return a==null?"":zb.call(a)}:function(a){return a==null?"":(a+"").replace(tc,"")},makeArray:function(a,b){var c,e=b||[];if(a!=null){c=d.type(a);a.length==null||c==="string"||c==="function"||c==="regexp"||d.isWindow(a)?ab.call(e,a):d.merge(e,a)}return e},inArray:function(a,b,c){var e;if(b){if(Lb)return Lb.call(b,a,
|
32
|
+
c);e=b.length;for(c=c?c<0?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=b.length,e=a.length,f=0;if(typeof c==="number")for(;f<c;f++)a[e++]=b[f];else for(;b[f]!==v;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,c){var e,f=[],h=0,j=a.length;for(c=!!c;h<j;h++){e=!!b(a[h],h);c!==e&&f.push(a[h])}return f},map:function(a,b,c){var e,f,h=[],j=0,m=a.length;if(a instanceof d||m!==v&&typeof m==="number"&&(m>0&&a[0]&&a[m-1]||m===0||d.isArray(a)))for(;j<m;j++){e=
|
33
|
+
b(a[j],j,c);if(e!=null)h[h.length]=e}else for(f in a){e=b(a[f],f,c);if(e!=null)h[h.length]=e}return h.concat.apply([],h)},guid:1,proxy:function(a,b){var c,e;if(typeof b==="string"){c=a[b];b=a;a=c}if(!d.isFunction(a))return v;e=Ca.call(arguments,2);c=function(){return a.apply(b,e.concat(Ca.call(arguments)))};c.guid=a.guid=a.guid||d.guid++;return c},access:function(a,b,c,e,f,h,j){var m,u=c==null,y=0,A=a.length;if(c&&typeof c==="object"){for(y in c)d.access(a,b,y,c[y],1,h,e);f=1}else if(e!==v){m=j===
|
34
|
+
v&&d.isFunction(e);if(u)if(m){m=b;b=function(w,L,T){return m.call(d(w),T)}}else{b.call(a,e);b=null}if(b)for(;y<A;y++)b(a[y],c,m?e.call(a[y],y,b(a[y],c)):e,j);f=1}return f?a:u?b.call(a):A?b(a[0],c):h},now:function(){return(new Date).getTime()}});d.ready.promise=function(a){if(!ja){ja=d.Deferred();if(Q.readyState==="complete")setTimeout(d.ready,1);else if(Q.addEventListener){Q.addEventListener("DOMContentLoaded",qb,false);i.addEventListener("load",d.ready,false)}else{Q.attachEvent("onreadystatechange",
|
35
|
+
qb);i.attachEvent("onload",d.ready);var b=false;try{b=i.frameElement==null&&Q.documentElement}catch(c){}b&&b.doScroll&&function e(){if(!d.isReady){try{b.doScroll("left")}catch(f){return setTimeout(e,50)}d.ready()}}()}}return ja.promise(a)};d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Nb["[object "+b+"]"]=b.toLowerCase()});ob=d(Q);var Hb={};d.Callbacks=function(a){a=typeof a==="string"?Hb[a]||n(a):d.extend({},a);var b,c,e,f,h,j,m=[],u=!a.once&&[],y=function(w){b=
|
36
|
+
a.memory&&w;c=true;j=f||0;f=0;h=m.length;for(e=true;m&&j<h;j++)if(m[j].apply(w[0],w[1])===false&&a.stopOnFalse){b=false;break}e=false;if(m)if(u)u.length&&y(u.shift());else if(b)m=[];else A.disable()},A={add:function(){if(m){var w=m.length;(function L(T){d.each(T,function(Z,na){var Ga=d.type(na);if(Ga==="function"&&(!a.unique||!A.has(na)))m.push(na);else na&&na.length&&Ga!=="string"&&L(na)})})(arguments);if(e)h=m.length;else if(b){f=w;y(b)}}return this},remove:function(){m&&d.each(arguments,function(w,
|
37
|
+
L){for(var T;(T=d.inArray(L,m,T))>-1;){m.splice(T,1);if(e){T<=h&&h--;T<=j&&j--}}});return this},has:function(w){return d.inArray(w,m)>-1},empty:function(){m=[];return this},disable:function(){m=u=b=v;return this},disabled:function(){return!m},lock:function(){u=v;b||A.disable();return this},locked:function(){return!u},fireWith:function(w,L){L=L||[];L=[w,L.slice?L.slice():L];if(m&&(!c||u))e?u.push(L):y(L);return this},fire:function(){A.fireWith(this,arguments);return this},fired:function(){return!!c}};
|
38
|
+
return A};d.extend({Deferred:function(a){var b=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],c="pending",e={state:function(){return c},always:function(){f.done(arguments).fail(arguments);return this},then:function(){var h=arguments;return d.Deferred(function(j){d.each(b,function(m,u){var y=u[0],A=h[m];f[u[1]](d.isFunction(A)?function(){var w=A.apply(this,arguments);w&&d.isFunction(w.promise)?
|
39
|
+
w.promise().done(j.resolve).fail(j.reject).progress(j.notify):j[y+"With"](this===f?j:this,[w])}:j[y])});h=null}).promise()},promise:function(h){return h!=null?d.extend(h,e):e}},f={};e.pipe=e.then;d.each(b,function(h,j){var m=j[2],u=j[3];e[j[1]]=m.add;u&&m.add(function(){c=u},b[h^1][2].disable,b[2][2].lock);f[j[0]]=m.fire;f[j[0]+"With"]=m.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=0,c=Ca.call(arguments),e=c.length,f=e!==1||a&&d.isFunction(a.promise)?e:0,h=f===1?a:d.Deferred(),
|
40
|
+
j=function(A,w,L){return function(T){w[A]=this;L[A]=arguments.length>1?Ca.call(arguments):T;if(L===m)h.notifyWith(w,L);else--f||h.resolveWith(w,L)}},m,u,y;if(e>1){m=Array(e);u=Array(e);for(y=Array(e);b<e;b++)if(c[b]&&d.isFunction(c[b].promise))c[b].promise().done(j(b,y,c)).fail(h.reject).progress(j(b,u,m));else--f}f||h.resolveWith(y,c);return h.promise()}});d.support=function(){var a,b,c,e,f,h,j,m=Q.createElement("div");m.setAttribute("className","t");m.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
|
41
|
+
b=m.getElementsByTagName("*");c=m.getElementsByTagName("a")[0];c.style.cssText="top:1px;float:left;opacity:.5";if(!b||!b.length)return{};e=Q.createElement("select");f=e.appendChild(Q.createElement("option"));b=m.getElementsByTagName("input")[0];a={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:/^0.5/.test(c.style.opacity),
|
42
|
+
cssFloat:!!c.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:m.className!=="t",enctype:!!Q.createElement("form").enctype,html5Clone:Q.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:Q.compatMode==="CSS1Compat",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};b.checked=true;a.noCloneChecked=
|
43
|
+
b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete m.test}catch(u){a.deleteExpando=false}if(!m.addEventListener&&m.attachEvent&&m.fireEvent){m.attachEvent("onclick",c=function(){a.noCloneEvent=false});m.cloneNode(true).fireEvent("onclick");m.detachEvent("onclick",c)}b=Q.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");b.setAttribute("name","t");m.appendChild(b);c=Q.createDocumentFragment();
|
44
|
+
c.appendChild(m.lastChild);a.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;c.removeChild(b);c.appendChild(m);if(m.attachEvent)for(h in{submit:true,change:true,focusin:true}){b="on"+h;j=b in m;if(!j){m.setAttribute(b,"return;");j=typeof m[b]==="function"}a[h+"Bubbles"]=j}d(function(){var y,A,w,L=Q.getElementsByTagName("body")[0];if(L){y=Q.createElement("div");y.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
|
45
|
+
L.insertBefore(y,L.firstChild);A=Q.createElement("div");y.appendChild(A);A.innerHTML="<table><tr><td></td><td>t</td></tr></table>";w=A.getElementsByTagName("td");w[0].style.cssText="padding:0;margin:0;border:0;display:none";j=w[0].offsetHeight===0;w[0].style.display="";w[1].style.display="none";a.reliableHiddenOffsets=j&&w[0].offsetHeight===0;A.innerHTML="";A.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
|
46
|
+
a.boxSizing=A.offsetWidth===4;a.doesNotIncludeMarginInBodyOffset=L.offsetTop!==1;if(i.getComputedStyle){a.pixelPosition=(i.getComputedStyle(A,null)||{}).top!=="1%";a.boxSizingReliable=(i.getComputedStyle(A,null)||{width:"4px"}).width==="4px";w=Q.createElement("div");w.style.cssText=A.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;";w.style.marginRight=w.style.width="0";A.style.width="1px";A.appendChild(w);a.reliableMarginRight=!parseFloat((i.getComputedStyle(w,null)||{}).marginRight)}if(typeof A.style.zoom!==
|
47
|
+
"undefined"){A.innerHTML="";A.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1";a.inlineBlockNeedsLayout=A.offsetWidth===3;A.style.display="block";A.style.overflow="visible";A.innerHTML="<div></div>";A.firstChild.style.width="5px";a.shrinkWrapBlocks=A.offsetWidth!==3;y.style.zoom=1}L.removeChild(y)}});c.removeChild(m);b=c=e=f=b=c=m=null;return a}();var nc=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,mc=/([A-Z])/g;d.extend({cache:{},deletedIds:[],
|
48
|
+
uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!z(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f=d.expando,h=typeof b==="string",j=a.nodeType,m=j?d.cache:a,u=j?a[f]:a[f]&&f;if(!((!u||!m[u]||!e&&!m[u].data)&&h&&c===v)){if(!u)if(j)a[f]=u=d.deletedIds.pop()||d.guid++;else u=f;if(!m[u]){m[u]={};if(!j)m[u].toJSON=
|
49
|
+
d.noop}if(typeof b==="object"||typeof b==="function")if(e)m[u]=d.extend(m[u],b);else m[u].data=d.extend(m[u].data,b);a=m[u];if(!e){if(!a.data)a.data={};a=a.data}if(c!==v)a[d.camelCase(b)]=c;if(h){c=a[b];if(c==null)c=a[d.camelCase(b)]}else c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var e,f,h,j=a.nodeType,m=j?d.cache:a,u=j?a[d.expando]:d.expando;if(m[u]){if(b)if(e=c?m[u]:m[u].data){if(!d.isArray(b))if(b in e)b=[b];else{b=d.camelCase(b);b=b in e?[b]:b.split(" ")}f=0;for(h=b.length;f<
|
50
|
+
h;f++)delete e[b[f]];if(!(c?z:d.isEmptyObject)(e))return}if(!c){delete m[u].data;if(!z(m[u]))return}if(j)d.cleanData([a],true);else if(d.support.deleteExpando||m!=m.window)delete m[u];else m[u]=null}}},_data:function(a,b,c){return d.data(a,b,c,true)},acceptData:function(a){var b=a.nodeName&&d.noData[a.nodeName.toLowerCase()];return!b||b!==true&&a.getAttribute("classid")===b}});d.fn.extend({data:function(a,b){var c,e,f,h,j,m=this[0],u=0,y=null;if(a===v){if(this.length){y=d.data(m);if(m.nodeType===
|
51
|
+
1&&!d._data(m,"parsedAttrs")){f=m.attributes;for(j=f.length;u<j;u++){h=f[u].name;if(!h.indexOf("data-")){h=d.camelCase(h.substring(5));s(m,h,y[h])}}d._data(m,"parsedAttrs",true)}}return y}if(typeof a==="object")return this.each(function(){d.data(this,a)});c=a.split(".",2);c[1]=c[1]?"."+c[1]:"";e=c[1]+"!";return d.access(this,function(A){if(A===v){y=this.triggerHandler("getData"+e,[c[0]]);if(y===v&&m){y=d.data(m,a);y=s(m,a,y)}return y===v&&c[1]?this.data(c[0]):y}c[1]=A;this.each(function(){var w=d(this);
|
52
|
+
w.triggerHandler("setData"+e,c);d.data(this,a,A);w.triggerHandler("changeData"+e,c)})},null,b,arguments.length>1,null,false)},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,b,c){var e;if(a){b=(b||"fx")+"queue";e=d._data(a,b);if(c)if(!e||d.isArray(c))e=d._data(a,b,d.makeArray(c));else e.push(c);return e||[]}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.length,f=c.shift(),h=d._queueHooks(a,b),j=function(){d.dequeue(a,b)};if(f==="inprogress"){f=
|
53
|
+
c.shift();e--}if(f){b==="fx"&&c.unshift("inprogress");delete h.stop;f.call(a,j,h)}!e&&h&&h.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return d._data(a,c)||d._data(a,c,{empty:d.Callbacks("once memory").add(function(){d.removeData(a,b+"queue",true);d.removeData(a,c,true)})})}});d.fn.extend({queue:function(a,b){var c=2;if(typeof a!=="string"){b=a;a="fx";c--}if(arguments.length<c)return d.queue(this[0],a);return b===v?this:this.each(function(){var e=d.queue(this,a,b);d._queueHooks(this,
|
54
|
+
a);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(c,e){var f=setTimeout(c,a);e.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,e=1,f=d.Deferred(),h=this,j=this.length,m=function(){--e||f.resolveWith(h,[h])};if(typeof a!=="string"){b=a;a=v}for(a=a||"fx";j--;)if((c=d._data(h[j],
|
55
|
+
a+"queueHooks"))&&c.empty){e++;c.empty.add(m)}m();return f.promise(b)}});var Ma,Ob,Pb,Qb=/[\t\r\n]/g,Cc=/\r/g,Dc=/^(?:button|input)$/i,Ec=/^(?:button|input|object|select|textarea)$/i,Fc=/^a(?:rea|)$/i,Rb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Sb=d.support.getSetAttribute;d.fn.extend({attr:function(a,b){return d.access(this,d.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,
|
56
|
+
a)})},prop:function(a,b){return d.access(this,d.prop,a,b,arguments.length>1)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=v;delete this[a]}catch(b){}})},addClass:function(a){var b,c,e,f,h,j,m;if(d.isFunction(a))return this.each(function(u){d(this).addClass(a.call(this,u,this.className))});if(a&&typeof a==="string"){b=a.split(Pa);c=0;for(e=this.length;c<e;c++){f=this[c];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{h=" "+f.className+" ";j=0;
|
57
|
+
for(m=b.length;j<m;j++)if(h.indexOf(" "+b[j]+" ")<0)h+=b[j]+" ";f.className=d.trim(h)}}}return this},removeClass:function(a){var b,c,e,f,h,j,m;if(d.isFunction(a))return this.each(function(u){d(this).removeClass(a.call(this,u,this.className))});if(a&&typeof a==="string"||a===v){b=(a||"").split(Pa);j=0;for(m=this.length;j<m;j++){e=this[j];if(e.nodeType===1&&e.className){c=(" "+e.className+" ").replace(Qb," ");f=0;for(h=b.length;f<h;f++)for(;c.indexOf(" "+b[f]+" ")>=0;)c=c.replace(" "+b[f]+" "," ");
|
58
|
+
e.className=a?d.trim(c):""}}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(f){d(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(c==="string")for(var f,h=0,j=d(this),m=b,u=a.split(Pa);f=u[h++];){m=e?m:!j.hasClass(f);j[m?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean"){this.className&&d._data(this,"__className__",this.className);this.className=this.className||a===false?
|
59
|
+
"":d._data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Qb," ").indexOf(a)>=0)return true;return false},val:function(a){var b,c,e,f=this[0];if(arguments.length){e=d.isFunction(a);return this.each(function(h){var j=d(this);if(this.nodeType===1){h=e?a.call(this,h,j.val()):a;if(h==null)h="";else if(typeof h==="number")h+="";else if(d.isArray(h))h=d.map(h,function(m){return m==null?"":m+""});
|
60
|
+
b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,h,"value")===v)this.value=h}})}else if(f){if((b=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(c=b.get(f,"value"))!==v)return c;c=f.value;return typeof c==="string"?c.replace(Cc,""):c==null?"":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=[],h=a.options,j=a.type===
|
61
|
+
"select-one";if(e<0)return null;a=j?e:0;for(c=j?e+1:h.length;a<c;a++){b=h[a];if(b.selected&&(d.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(j)return b;f.push(b)}}if(j&&!f.length&&h.length)return d(h[e]).val();return f},set:function(a,b){var c=d.makeArray(b);d(a).find("option").each(function(){this.selected=d.inArray(d(this).val(),c)>=0});if(!c.length)a.selectedIndex=-1;return c}}},attrFn:{},attr:function(a,
|
62
|
+
b,c,e){var f,h,j=a.nodeType;if(!(!a||j===3||j===8||j===2)){if(e&&d.isFunction(d.fn[b]))return d(a)[b](c);if(typeof a.getAttribute==="undefined")return d.prop(a,b,c);if(e=j!==1||!d.isXMLDoc(a)){b=b.toLowerCase();h=d.attrHooks[b]||(Rb.test(b)?Ob:Ma)}if(c!==v)if(c===null)d.removeAttr(a,b);else if(h&&"set"in h&&e&&(f=h.set(a,c,b))!==v)return f;else{a.setAttribute(b,c+"");return c}else if(h&&"get"in h&&e&&(f=h.get(a,b))!==null)return f;else{f=a.getAttribute(b);return f===null?v:f}}},removeAttr:function(a,
|
63
|
+
b){var c,e,f,h,j=0;if(b&&a.nodeType===1)for(e=b.split(Pa);j<e.length;j++)if(f=e[j]){c=d.propFix[f]||f;(h=Rb.test(f))||d.attr(a,f,"");a.removeAttribute(Sb?f:c);if(h&&c in a)a[c]=false}},attrHooks:{type:{set:function(a,b){if(Dc.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);if(c)a.value=c;return b}}},value:{get:function(a,b){if(Ma&&d.nodeName(a,"button"))return Ma.get(a,
|
64
|
+
b);return b in a?a.value:null},set:function(a,b,c){if(Ma&&d.nodeName(a,"button"))return Ma.set(a,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,h=a.nodeType;if(!(!a||h===3||h===8||h===2)){if(h!==1||!d.isXMLDoc(a)){b=d.propFix[b]||
|
65
|
+
b;f=d.propHooks[b]}return c!==v?f&&"set"in f&&(e=f.set(a,c,b))!==v?e:a[b]=c:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Ec.test(a.nodeName)||Fc.test(a.nodeName)&&a.href?0:v}}}});Ob={get:function(a,b){var c,e=d.prop(a,b);return e===true||typeof e!=="boolean"&&(c=a.getAttributeNode(b))&&c.nodeValue!==false?b.toLowerCase():v},set:function(a,b,c){if(b===false)d.removeAttr(a,c);else{b=
|
66
|
+
d.propFix[c]||c;if(b in a)a[b]=true;a.setAttribute(c,c.toLowerCase())}return c}};if(!Sb){Pb={name:true,id:true,coords:true};Ma=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(Pb[b]?c.value!=="":c.specified)?c.value:v},set:function(a,b,c){var e=a.getAttributeNode(c);if(!e){e=Q.createAttribute(c);a.setAttributeNode(e)}return e.value=b+""}};d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{set:function(c,e){if(e===""){c.setAttribute(b,"auto");
|
67
|
+
return e}}})});d.attrHooks.contenteditable={get:Ma.get,set:function(a,b,c){if(b==="")b="false";Ma.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(c){c=c.getAttribute(b,2);return c===null?v:c}})});if(!d.support.style)d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||v},set:function(a,b){return a.style.cssText=b+""}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,
|
68
68
|
{get:function(){return null}});if(!d.support.enctype)d.propFix.enctype="encoding";d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"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=d.inArray(d(a).val(),b)>=0}})});var Ab=/^(?:textarea|input|select)$/i,Tb=/^([^\.]*|)(?:\.(.+)|)$/,Gc=/(?:^|\s)hover(\.\S+|)\b/,Hc=/^key/,Ic=
|
69
|
-
/^(?:mouse|contextmenu)|click/,Ub=/^(?:focusinfocus|focusoutblur)$/,Vb=function(a){return d.event.special.hover?a:a.replace(Gc,"mouseenter$1 mouseleave$1")};d.event={add:function(a,b,c,e,f){var
|
70
|
-
arguments):
|
71
|
-
else a.attachEvent&&a.attachEvent("on"+
|
72
|
-
"(\\.|$)"):null;for(
|
73
|
-
setData:true,changeData:true},trigger:function(a,b,c,e){if(!(c&&(c.nodeType===3||c.nodeType===8))){var f,
|
74
|
-
|
75
|
-
|
76
|
-
d.cache;for(
|
77
|
-
"click"){f={};
|
78
|
-
a.handleObj=e;e=((d.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,
|
79
|
-
null)a.which=b.charCode!=null?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,f=b.button,
|
80
|
-
c&&c.clientTop||0)}if(!a.relatedTarget&&
|
81
|
-
focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){if(d.isWindow(this))this.onbeforeunload=c},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}},simulate:function(a,b,c,e){a=d.extend(new d.Event,c,{type:a,isSimulated:true,originalEvent:{}});e?d.event.trigger(a,null,b):d.event.dispatch.call(b,a);a.isDefaultPrevented()&&c.preventDefault()}};d.event.handle=d.event.dispatch;d.removeEvent=
|
82
|
-
a.removeEventListener(b,c,false)}:function(a,b,c){b="on"+b;if(a.detachEvent){if(typeof a[b]==="undefined")a[b]=null;a.detachEvent(b,c)}};d.Event=function(a,b){if(!(this instanceof d.Event))return new d.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?
|
83
|
-
|
84
|
-
{delegateType:b,bindType:b,handle:function(c){var e,f=c.relatedTarget,
|
69
|
+
/^(?:mouse|contextmenu)|click/,Ub=/^(?:focusinfocus|focusoutblur)$/,Vb=function(a){return d.event.special.hover?a:a.replace(Gc,"mouseenter$1 mouseleave$1")};d.event={add:function(a,b,c,e,f){var h,j,m,u,y,A,w,L,T;if(!(a.nodeType===3||a.nodeType===8||!b||!c||!(h=d._data(a)))){if(c.handler){w=c;c=w.handler;f=w.selector}if(!c.guid)c.guid=d.guid++;m=h.events;if(!m)h.events=m={};j=h.handle;if(!j){h.handle=j=function(Z){return typeof d!=="undefined"&&(!Z||d.event.triggered!==Z.type)?d.event.dispatch.apply(j.elem,
|
70
|
+
arguments):v};j.elem=a}b=d.trim(Vb(b)).split(" ");for(h=0;h<b.length;h++){u=Tb.exec(b[h])||[];y=u[1];A=(u[2]||"").split(".").sort();T=d.event.special[y]||{};y=(f?T.delegateType:T.bindType)||y;T=d.event.special[y]||{};u=d.extend({type:y,origType:u[1],data:e,handler:c,guid:c.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:A.join(".")},w);L=m[y];if(!L){L=m[y]=[];L.delegateCount=0;if(!T.setup||T.setup.call(a,e,A,j)===false)if(a.addEventListener)a.addEventListener(y,j,false);
|
71
|
+
else a.attachEvent&&a.attachEvent("on"+y,j)}if(T.add){T.add.call(a,u);if(!u.handler.guid)u.handler.guid=c.guid}f?L.splice(L.delegateCount++,0,u):L.push(u);d.event.global[y]=true}a=null}},global:{},remove:function(a,b,c,e,f){var h,j,m,u,y,A,w,L,T,Z,na=d.hasData(a)&&d._data(a);if(na&&(w=na.events)){b=d.trim(Vb(b||"")).split(" ");for(h=0;h<b.length;h++){j=Tb.exec(b[h])||[];m=u=j[1];j=j[2];if(m){L=d.event.special[m]||{};m=(e?L.delegateType:L.bindType)||m;T=w[m]||[];y=T.length;j=j?RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+
|
72
|
+
"(\\.|$)"):null;for(A=0;A<T.length;A++){Z=T[A];if((f||u===Z.origType)&&(!c||c.guid===Z.guid)&&(!j||j.test(Z.namespace))&&(!e||e===Z.selector||e==="**"&&Z.selector)){T.splice(A--,1);Z.selector&&T.delegateCount--;L.remove&&L.remove.call(a,Z)}}if(T.length===0&&y!==T.length){if(!L.teardown||L.teardown.call(a,j,na.handle)===false)d.removeEvent(a,m,na.handle);delete w[m]}}else for(m in w)d.event.remove(a,m+b[h],c,e,true)}if(d.isEmptyObject(w)){delete na.handle;d.removeData(a,"events",true)}}},customEvent:{getData:true,
|
73
|
+
setData:true,changeData:true},trigger:function(a,b,c,e){if(!(c&&(c.nodeType===3||c.nodeType===8))){var f,h,j,m,u,y,A=a.type||a;j=[];if(!Ub.test(A+d.event.triggered)){if(A.indexOf("!")>=0){A=A.slice(0,-1);f=true}if(A.indexOf(".")>=0){j=A.split(".");A=j.shift();j.sort()}if(!((!c||d.event.customEvent[A])&&!d.event.global[A])){a=typeof a==="object"?a[d.expando]?a:new d.Event(A,a):new d.Event(A);a.type=A;a.isTrigger=true;a.exclusive=f;a.namespace=j.join(".");a.namespace_re=a.namespace?RegExp("(^|\\.)"+
|
74
|
+
j.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;j=A.indexOf(":")<0?"on"+A:"";if(c){a.result=v;if(!a.target)a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);m=d.event.special[A]||{};if(!(m.trigger&&m.trigger.apply(c,b)===false)){y=[[c,m.bindType||A]];if(!e&&!m.noBubble&&!d.isWindow(c)){u=m.delegateType||A;f=Ub.test(u+A)?c:c.parentNode;for(h=c;f;f=f.parentNode){y.push([f,u]);h=f}if(h===(c.ownerDocument||Q))y.push([h.defaultView||h.parentWindow||i,u])}for(h=0;h<y.length&&!a.isPropagationStopped();h++){f=
|
75
|
+
y[h][0];a.type=y[h][1];(u=(d._data(f,"events")||{})[a.type]&&d._data(f,"handle"))&&u.apply(f,b);(u=j&&f[j])&&d.acceptData(f)&&u.apply&&u.apply(f,b)===false&&a.preventDefault()}a.type=A;if(!e&&!a.isDefaultPrevented())if((!m._default||m._default.apply(c.ownerDocument,b)===false)&&!(A==="click"&&d.nodeName(c,"a"))&&d.acceptData(c))if(j&&c[A]&&(A!=="focus"&&A!=="blur"||a.target.offsetWidth!==0)&&!d.isWindow(c)){if(h=c[j])c[j]=null;d.event.triggered=A;c[A]();d.event.triggered=v;if(h)c[j]=h}return a.result}}else{c=
|
76
|
+
d.cache;for(h in c)c[h].events&&c[h].events[A]&&d.event.trigger(a,b,c[h].handle.elem,true)}}}}},dispatch:function(a){a=d.event.fix(a||i.event);var b,c,e,f,h,j,m=(d._data(this,"events")||{})[a.type]||[],u=m.delegateCount,y=Ca.call(arguments),A=!a.exclusive&&!a.namespace,w=d.event.special[a.type]||{},L=[];y[0]=a;a.delegateTarget=this;if(!(w.preDispatch&&w.preDispatch.call(this,a)===false)){if(u&&!(a.button&&a.type==="click"))for(c=a.target;c!=this;c=c.parentNode||this)if(c.disabled!==true||a.type!==
|
77
|
+
"click"){f={};h=[];for(b=0;b<u;b++){e=m[b];j=e.selector;if(f[j]===v)f[j]=e.needsContext?d(j,this).index(c)>=0:d.find(j,this,null,[c]).length;f[j]&&h.push(e)}h.length&&L.push({elem:c,matches:h})}m.length>u&&L.push({elem:this,matches:m.slice(u)});for(b=0;b<L.length&&!a.isPropagationStopped();b++){f=L[b];a.currentTarget=f.elem;for(c=0;c<f.matches.length&&!a.isImmediatePropagationStopped();c++){e=f.matches[c];if(A||!a.namespace&&!e.namespace||a.namespace_re&&a.namespace_re.test(e.namespace)){a.data=e.data;
|
78
|
+
a.handleObj=e;e=((d.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,y);if(e!==v){a.result=e;if(e===false){a.preventDefault();a.stopPropagation()}}}}}w.postDispatch&&w.postDispatch.call(this,a);return a.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){if(a.which==
|
79
|
+
null)a.which=b.charCode!=null?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,f=b.button,h=b.fromElement;if(a.pageX==null&&b.clientX!=null){c=a.target.ownerDocument||Q;e=c.documentElement;c=c.body;a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0);a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||
|
80
|
+
c&&c.clientTop||0)}if(!a.relatedTarget&&h)a.relatedTarget=h===a.target?b.toElement:h;if(!a.which&&f!==v)a.which=f&1?1:f&2?3:f&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]||{},h=f.props?this.props.concat(f.props):this.props;a=d.Event(e);for(b=h.length;b;){c=h[--b];a[c]=e[c]}if(!a.target)a.target=e.srcElement||Q;if(a.target.nodeType===3)a.target=a.target.parentNode;a.metaKey=!!a.metaKey;return f.filter?f.filter(a,e):a},special:{load:{noBubble:true},
|
81
|
+
focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){if(d.isWindow(this))this.onbeforeunload=c},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}},simulate:function(a,b,c,e){a=d.extend(new d.Event,c,{type:a,isSimulated:true,originalEvent:{}});e?d.event.trigger(a,null,b):d.event.dispatch.call(b,a);a.isDefaultPrevented()&&c.preventDefault()}};d.event.handle=d.event.dispatch;d.removeEvent=Q.removeEventListener?function(a,b,c){a.removeEventListener&&
|
82
|
+
a.removeEventListener(b,c,false)}:function(a,b,c){b="on"+b;if(a.detachEvent){if(typeof a[b]==="undefined")a[b]=null;a.detachEvent(b,c)}};d.Event=function(a,b){if(!(this instanceof d.Event))return new d.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?o:r}else this.type=a;b&&d.extend(this,b);this.timeStamp=a&&a.timeStamp||d.now();this[d.expando]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=
|
83
|
+
o;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=o;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o;this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]=
|
84
|
+
{delegateType:b,bindType:b,handle:function(c){var e,f=c.relatedTarget,h=c.handleObj;if(!f||f!==this&&!d.contains(this,f)){c.type=h.origType;e=h.handler.apply(this,arguments);c.type=b}return e}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return false;d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,"button")?a.form:v)&&!d._data(a,"_submit_attached")){d.event.add(a,"submit._submit",
|
85
85
|
function(b){b._submit_bubble=true});d._data(a,"_submit_attached",true)}})},postDispatch:function(a){if(a._submit_bubble){delete a._submit_bubble;this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,true)}},teardown:function(){if(d.nodeName(this,"form"))return false;d.event.remove(this,"._submit")}};if(!d.support.changeBubbles)d.event.special.change={setup:function(){if(Ab.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){d.event.add(this,"propertychange._change",
|
86
86
|
function(a){if(a.originalEvent.propertyName==="checked")this._just_changed=true});d.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger)this._just_changed=false;d.event.simulate("change",this,a,true)})}return false}d.event.add(this,"beforeactivate._change",function(a){a=a.target;if(Ab.test(a.nodeName)&&!d._data(a,"_change_attached")){d.event.add(a,"change._change",function(b){this.parentNode&&!b.isSimulated&&!b.isTrigger&&d.event.simulate("change",this.parentNode,b,true)});
|
87
|
-
d._data(a,"_change_attached",true)}})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Ab.test(this.nodeName)}};d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,e=function(f){d.event.simulate(b,f.target,d.event.fix(f),true)};d.event.special[b]={setup:function(){c++===0&&
|
88
|
-
e,true)},teardown:function(){--c===0&&
|
89
|
-
a,e,c,b)})},one:function(a,b,c,e){return this.on(a,b,c,e,1)},off:function(a,b,c){var e;if(a&&a.preventDefault&&a.handleObj){e=a.handleObj;d(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b==="function"){c=b;b=
|
87
|
+
d._data(a,"_change_attached",true)}})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Ab.test(this.nodeName)}};d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,e=function(f){d.event.simulate(b,f.target,d.event.fix(f),true)};d.event.special[b]={setup:function(){c++===0&&Q.addEventListener(a,
|
88
|
+
e,true)},teardown:function(){--c===0&&Q.removeEventListener(a,e,true)}}});d.fn.extend({on:function(a,b,c,e,f){var h,j;if(typeof a==="object"){if(typeof b!=="string"){c=c||b;b=v}for(j in a)this.on(j,b,c,a[j],f);return this}if(c==null&&e==null){e=b;c=b=v}else if(e==null)if(typeof b==="string"){e=c;c=v}else{e=c;c=b;b=v}if(e===false)e=r;else if(!e)return this;if(f===1){h=e;e=function(m){d().off(m);return h.apply(this,arguments)};e.guid=h.guid||(h.guid=d.guid++)}return this.each(function(){d.event.add(this,
|
89
|
+
a,e,c,b)})},one:function(a,b,c,e){return this.on(a,b,c,e,1)},off:function(a,b,c){var e;if(a&&a.preventDefault&&a.handleObj){e=a.handleObj;d(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b==="function"){c=b;b=v}if(c===false)c=r;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,
|
90
90
|
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,this.selector||"**",b);return this},delegate:function(a,b,c,e){return this.on(b,a,c,e)},undelegate:function(a,b,c){return arguments.length===1?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],true)},toggle:function(a){var b=arguments,
|
91
|
-
c=a.guid||d.guid++,e=0,f=function(
|
92
|
-
function(a,b){d.fn[b]=function(c,e){if(e==null){e=c;c=null}return arguments.length>0?this.on(b,null,c,e):this.trigger(b)};if(Hc.test(b))d.event.fixHooks[b]=d.event.keyHooks;if(Ic.test(b))d.event.fixHooks[b]=d.event.mouseHooks});(function(a,b){function c(
|
93
|
-
else{if(
|
94
|
-
|
95
|
-
|
96
|
-
1)if((
|
97
|
-
|
98
|
-
|
99
|
-
function
|
100
|
-
ka&&!
|
101
|
-
|
102
|
-
|
103
|
-
"g"),Kc=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Lc=/^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,Nc=RegExp(jb),Jc=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Bb=/[\x20\t\r\n\f]*[+~]/,Oc=/h\d/i,Pc=/input|select|textarea|button/i,Ta=/\\(?!\\)/g,sb={ID:/^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/,TAG:RegExp("^("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+
|
104
|
-
CHILD:RegExp("^:(only|nth|first|last)-child(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Oa=function(
|
105
|
-
return!
|
106
|
-
|
107
|
-
c.matchesSelector=function(
|
108
|
-
|
109
|
-
match:sb,attrHandle:Qc?{}:{href:function(
|
110
|
-
function(
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
"nth")return function(
|
115
|
-
c.error("unsupported pseudo: "+
|
116
|
-
|
117
|
-
|
118
|
-
focus:function(
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
else
|
124
|
-
|
125
|
-
d.fn.extend({find:function(a){var b,c,e,f,
|
126
|
-
a,false),"not",a)},filter:function(a){return this.pushStack(
|
127
|
-
1?d.unique(
|
128
|
-
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?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
|
129
|
-
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.merge([],a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c);Tc.test(a)||(e=c);if(e&&typeof e==="string")f=d.filter(e,f);f=this.length>1&&!Vc[a]?d.unique(f):f;if(this.length>1&&Uc.test(a))f=f.reverse();return this.pushStack(f,a,
|
130
|
-
d.extend({filter:function(a,b,c){if(c)a=":not("+a+")";return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){var e=[];for(a=a[b];a&&a.nodeType!==9&&(c===
|
131
|
-
Wc=/ jQuery\d+="(?:null|\d+)"/g,Cb=/^\s+/,Zb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$b=/<([\w:]+)/,Xc=/<tbody/i,Yc=/<|&#?\w+;/,Zc=/<(?:script|style|link)/i,$c=/<(?:script|object|embed|option|style)/i,Db=RegExp("<(?:"+Ib+")[\\s/>]","i"),Jb=/^(?:checkbox|radio)$/,ac=/checked\s*(?:[^=]|=\s*.checked.)/i,ad=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,
|
132
|
-
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,"",""]},bc=
|
133
|
-
|
91
|
+
c=a.guid||d.guid++,e=0,f=function(h){var j=(d._data(this,"lastToggle"+a.guid)||0)%e;d._data(this,"lastToggle"+a.guid,j+1);h.preventDefault();return b[j].apply(this,arguments)||false};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(" "),
|
92
|
+
function(a,b){d.fn[b]=function(c,e){if(e==null){e=c;c=null}return arguments.length>0?this.on(b,null,c,e):this.trigger(b)};if(Hc.test(b))d.event.fixHooks[b]=d.event.keyHooks;if(Ic.test(b))d.event.fixHooks[b]=d.event.mouseHooks});(function(a,b){function c(l,q,t,F){t=t||[];q=q||ga;var I,J,B,N,M=q.nodeType;if(!l||typeof l!=="string")return t;if(M!==1&&M!==9)return[];B=Sa(q);if(!B&&!F)if(I=Jc.exec(l))if(N=I[1])if(M===9)if((J=q.getElementById(N))&&J.parentNode){if(J.id===N){t.push(J);return t}}else return t;
|
93
|
+
else{if(q.ownerDocument&&(J=q.ownerDocument.getElementById(N))&&U(q,J)&&J.id===N){t.push(J);return t}}else if(I[2]){aa.apply(t,pa.call(q.getElementsByTagName(l),0));return t}else if((N=I[3])&&Wb&&q.getElementsByClassName){aa.apply(t,pa.call(q.getElementsByClassName(N),0));return t}return Z(l.replace(rb,"$1"),q,t,F,B)}function e(l){return function(q){return q.nodeName.toLowerCase()==="input"&&q.type===l}}function f(l){return function(q){var t=q.nodeName.toLowerCase();return(t==="input"||t==="button")&&
|
94
|
+
q.type===l}}function h(l){return za(function(q){q=+q;return za(function(t,F){for(var I,J=l([],t.length,q),B=J.length;B--;)if(t[I=J[B]])t[I]=!(F[I]=t[I])})})}function j(l,q,t){if(l===q)return t;for(l=l.nextSibling;l;){if(l===q)return-1;l=l.nextSibling}return 1}function m(l,q){var t,F,I,J,B,N,M;if(B=va[fa][l])return q?0:B.slice(0);B=l;N=[];for(M=ba.preFilter;B;){if(!t||(F=Kc.exec(B))){if(F)B=B.slice(F[0].length);N.push(I=[])}t=false;if(F=Lc.exec(B)){I.push(t=new qa(F.shift()));B=B.slice(t.length);t.type=
|
95
|
+
F[0].replace(rb," ")}for(J in ba.filter)if((F=sb[J].exec(B))&&(!M[J]||(F=M[J](F,ga,true)))){I.push(t=new qa(F.shift()));B=B.slice(t.length);t.type=J;t.matches=F}if(!t)break}return q?B.length:B?c.error(l):va(l,N).slice(0)}function u(l,q,t){var F=q.dir,I=t&&q.dir==="parentNode",J=wa++;return q.first?function(B,N,M){for(;B=B[F];)if(I||B.nodeType===1)return l(B,N,M)}:function(B,N,M){if(M)for(;B=B[F];){if(I||B.nodeType===1)if(l(B,N,M))return B}else for(var V,X=Da+" "+J+" ",Y=X+Ga;B=B[F];)if(I||B.nodeType===
|
96
|
+
1)if((V=B[fa])===Y)return B.sizset;else if(typeof V==="string"&&V.indexOf(X)===0){if(B.sizset)return B}else{B[fa]=Y;if(l(B,N,M)){B.sizset=true;return B}B.sizset=false}}}function y(l){return l.length>1?function(q,t,F){for(var I=l.length;I--;)if(!l[I](q,t,F))return false;return true}:l[0]}function A(l,q,t,F,I){for(var J,B=[],N=0,M=l.length,V=q!=null;N<M;N++)if(J=l[N])if(!t||t(J,F,I)){B.push(J);V&&q.push(N)}return B}function w(l,q,t,F,I,J){if(F&&!F[fa])F=w(F);if(I&&!I[fa])I=w(I,J);return za(function(B,
|
97
|
+
N,M,V){if(!(B&&I)){var X,Y,ea=[],ta=[],Aa=N.length;if(!(Y=B)){Y=q||"*";var ua=M.nodeType?[M]:M,ka=[];X=0;for(var tb=ua.length;X<tb;X++)c(Y,ua[X],ka,B);Y=ka}Y=Y;ua=l&&(B||!q)?A(Y,ea,l,M,V):Y;ka=t?I||(B?l:Aa||F)?[]:N:ua;t&&t(ua,ka,M,V);if(F){Y=A(ka,ta);F(Y,[],M,V);for(M=Y.length;M--;)if(X=Y[M])ka[ta[M]]=!(ua[ta[M]]=X)}if(B)for(M=l&&ka.length;M--;){if(X=ka[M])B[ea[M]]=!(N[ea[M]]=X)}else{ka=A(ka===N?ka.splice(Aa,ka.length):ka);I?I(null,N,ka,V):aa.apply(N,ka)}}})}function L(l){var q,t,F,I=l.length,J=ba.relative[l[0].type];
|
98
|
+
t=J||ba.relative[" "];for(var B=J?1:0,N=u(function(X){return X===q},t,true),M=u(function(X){return bb.call(q,X)>-1},t,true),V=[function(X,Y,ea){return!J&&(ea||Y!==ha)||((q=Y).nodeType?N(X,Y,ea):M(X,Y,ea))}];B<I;B++)if(t=ba.relative[l[B].type])V=[u(y(V),t)];else{t=ba.filter[l[B].type].apply(null,l[B].matches);if(t[fa]){for(F=++B;F<I;F++)if(ba.relative[l[F].type])break;return w(B>1&&y(V),B>1&&l.slice(0,B-1).join("").replace(rb,"$1"),t,B<F&&L(l.slice(B,F)),F<I&&L(l=l.slice(F)),F<I&&l.join(""))}V.push(t)}return y(V)}
|
99
|
+
function T(l,q){var t=q.length>0,F=l.length>0,I=function(J,B,N,M,V){var X,Y,ea=[],ta=0,Aa="0",ua=J&&[],ka=V!=null,tb=ha,Mc=J||F&&ba.find.TAG("*",V&&B.parentNode||B),Xb=Da+=tb==null?1:Math.E;if(ka){ha=B!==ga&&B;Ga=I.el}for(;(V=Mc[Aa])!=null;Aa++){if(F&&V){for(X=0;Y=l[X];X++)if(Y(V,B,N)){M.push(V);break}if(ka){Da=Xb;Ga=++I.el}}if(t){if(V=!Y&&V)ta--;J&&ua.push(V)}}ta+=Aa;if(t&&Aa!==ta){for(X=0;Y=q[X];X++)Y(ua,ea,B,N);if(J){if(ta>0)for(;Aa--;)ua[Aa]||ea[Aa]||(ea[Aa]=Ea.call(M));ea=A(ea)}aa.apply(M,ea);
|
100
|
+
ka&&!J&&ea.length>0&&ta+q.length>1&&c.uniqueSort(M)}if(ka){Da=Xb;ha=tb}return ua};I.el=0;return t?za(I):I}function Z(l,q,t,F,I){var J,B,N,M,V=m(l);if(!F)if(V.length===1){B=V[0]=V[0].slice(0);if(B.length>2&&(N=B[0]).type==="ID"&&q.nodeType===9&&!I&&ba.relative[B[1].type]){q=ba.find.ID(N.matches[0].replace(Ta,""),q,I)[0];if(!q)return t;l=l.slice(B.shift().length)}for(J=sb.POS.test(l)?-1:B.length-1;J>=0;J--){N=B[J];if(ba.relative[M=N.type])break;if(M=ba.find[M])if(F=M(N.matches[0].replace(Ta,""),Bb.test(B[0].type)&&
|
101
|
+
q.parentNode||q,I)){B.splice(J,1);l=F.length&&B.join("");if(!l){aa.apply(t,pa.call(F,0));return t}break}}}cb(l,V)(F,q,I,t,Bb.test(l));return t}function na(){}var Ga,Na,ba,xa,Sa,U,cb,db,W,ha,ca=true,fa=("sizcache"+Math.random()).replace(".",""),qa=String,ga=a.document,da=ga.documentElement,Da=0,wa=0,Ea=[].pop,aa=[].push,pa=[].slice,bb=[].indexOf||function(l){for(var q=0,t=this.length;q<t;q++)if(this[q]===l)return q;return-1},za=function(l,q){l[fa]=q==null||q;return l},ra=function(){var l={},q=[];return za(function(t,
|
102
|
+
F){q.push(t)>ba.cacheLength&&delete l[q.shift()];return l[t]=F},l)},ib=ra(),va=ra(),Ua=ra();ra="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w#")+")|)|)[\\x20\\t\\r\\n\\f]*\\]";var jb=":((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+ra+")|[^:]|\\\\.)*|.*))\\)|)",rb=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$",
|
103
|
+
"g"),Kc=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Lc=/^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,Nc=RegExp(jb),Jc=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Bb=/[\x20\t\r\n\f]*[+~]/,Oc=/h\d/i,Pc=/input|select|textarea|button/i,Ta=/\\(?!\\)/g,sb={ID:/^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/,TAG:RegExp("^("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+ra),PSEUDO:RegExp("^"+jb),POS:/:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i,
|
104
|
+
CHILD:RegExp("^:(only|nth|first|last)-child(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Oa=function(l){var q=ga.createElement("div");try{return l(q)}catch(t){return false}finally{}};ra=Oa(function(l){l.appendChild(ga.createComment(""));
|
105
|
+
return!l.getElementsByTagName("*").length});var Qc=Oa(function(l){l.innerHTML="<a href='#'></a>";return l.firstChild&&typeof l.firstChild.getAttribute!=="undefined"&&l.firstChild.getAttribute("href")==="#"}),Rc=Oa(function(l){l.innerHTML="<select></select>";l=typeof l.lastChild.getAttribute("multiple");return l!=="boolean"&&l!=="string"}),Wb=Oa(function(l){l.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!l.getElementsByClassName||!l.getElementsByClassName("e").length)return false;
|
106
|
+
l.lastChild.className="e";return l.getElementsByClassName("e").length===2}),Sc=Oa(function(l){l.id=fa+0;l.innerHTML="<a name='"+fa+"'></a><div name='"+fa+"'></div>";da.insertBefore(l,da.firstChild);var q=ga.getElementsByName&&ga.getElementsByName(fa).length===2+ga.getElementsByName(fa+0).length;Na=!ga.getElementById(fa);da.removeChild(l);return q});try{pa.call(da.childNodes,0)}catch(xd){pa=function(l){for(var q,t=[];q=this[l];l++)t.push(q);return t}}c.matches=function(l,q){return c(l,null,null,q)};
|
107
|
+
c.matchesSelector=function(l,q){return c(q,null,null,[l]).length>0};xa=c.getText=function(l){var q,t="",F=0;if(q=l.nodeType)if(q===1||q===9||q===11)if(typeof l.textContent==="string")return l.textContent;else for(l=l.firstChild;l;l=l.nextSibling)t+=xa(l);else{if(q===3||q===4)return l.nodeValue}else for(;q=l[F];F++)t+=xa(q);return t};Sa=c.isXML=function(l){return(l=l&&(l.ownerDocument||l).documentElement)?l.nodeName!=="HTML":false};U=c.contains=da.contains?function(l,q){var t=l.nodeType===9?l.documentElement:
|
108
|
+
l,F=q&&q.parentNode;return l===F||!!(F&&F.nodeType===1&&t.contains&&t.contains(F))}:da.compareDocumentPosition?function(l,q){return q&&!!(l.compareDocumentPosition(q)&16)}:function(l,q){for(;q=q.parentNode;)if(q===l)return true;return false};c.attr=function(l,q){var t,F=Sa(l);F||(q=q.toLowerCase());if(t=ba.attrHandle[q])return t(l);if(F||Rc)return l.getAttribute(q);return(t=l.getAttributeNode(q))?typeof l[q]==="boolean"?l[q]?q:null:t.specified?t.value:null:null};ba=c.selectors={cacheLength:50,createPseudo:za,
|
109
|
+
match:sb,attrHandle:Qc?{}:{href:function(l){return l.getAttribute("href",2)},type:function(l){return l.getAttribute("type")}},find:{ID:Na?function(l,q,t){if(typeof q.getElementById!=="undefined"&&!t)return(l=q.getElementById(l))&&l.parentNode?[l]:[]}:function(l,q,t){if(typeof q.getElementById!=="undefined"&&!t)return(q=q.getElementById(l))?q.id===l||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").value===l?[q]:b:[]},TAG:ra?function(l,q){if(typeof q.getElementsByTagName!=="undefined")return q.getElementsByTagName(l)}:
|
110
|
+
function(l,q){var t=q.getElementsByTagName(l);if(l==="*"){for(var F,I=[],J=0;F=t[J];J++)F.nodeType===1&&I.push(F);return I}return t},NAME:Sc&&function(l,q){if(typeof q.getElementsByName!=="undefined")return q.getElementsByName(name)},CLASS:Wb&&function(l,q,t){if(typeof q.getElementsByClassName!=="undefined"&&!t)return q.getElementsByClassName(l)}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(l){l[1]=
|
111
|
+
l[1].replace(Ta,"");l[3]=(l[4]||l[5]||"").replace(Ta,"");if(l[2]==="~=")l[3]=" "+l[3]+" ";return l.slice(0,4)},CHILD:function(l){l[1]=l[1].toLowerCase();if(l[1]==="nth"){l[2]||c.error(l[0]);l[3]=+(l[3]?l[4]+(l[5]||1):2*(l[2]==="even"||l[2]==="odd"));l[4]=+(l[6]+l[7]||l[2]==="odd")}else l[2]&&c.error(l[0]);return l},PSEUDO:function(l){var q,t;if(sb.CHILD.test(l[0]))return null;if(l[3])l[2]=l[3];else if(q=l[4]){if(Nc.test(q)&&(t=m(q,true))&&(t=q.indexOf(")",q.length-t)-q.length)){q=q.slice(0,t);l[0]=
|
112
|
+
l[0].slice(0,t)}l[2]=q}return l.slice(0,3)}},filter:{ID:Na?function(l){l=l.replace(Ta,"");return function(q){return q.getAttribute("id")===l}}:function(l){l=l.replace(Ta,"");return function(q){return(q=typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id"))&&q.value===l}},TAG:function(l){if(l==="*")return function(){return true};l=l.replace(Ta,"").toLowerCase();return function(q){return q.nodeName&&q.nodeName.toLowerCase()===l}},CLASS:function(l){var q=ib[fa][l];q||(q=ib(l,RegExp("(^|[\\x20\\t\\r\\n\\f])"+
|
113
|
+
l+"([\\x20\\t\\r\\n\\f]|$)")));return function(t){return q.test(t.className||typeof t.getAttribute!=="undefined"&&t.getAttribute("class")||"")}},ATTR:function(l,q,t){return function(F){F=c.attr(F,l);if(F==null)return q==="!=";if(!q)return true;F+="";return q==="="?F===t:q==="!="?F!==t:q==="^="?t&&F.indexOf(t)===0:q==="*="?t&&F.indexOf(t)>-1:q==="$="?t&&F.substr(F.length-t.length)===t:q==="~="?(" "+F+" ").indexOf(t)>-1:q==="|="?F===t||F.substr(0,t.length+1)===t+"-":false}},CHILD:function(l,q,t,F){if(l===
|
114
|
+
"nth")return function(I){var J,B;J=I.parentNode;if(t===1&&F===0)return true;if(J){B=0;for(J=J.firstChild;J;J=J.nextSibling)if(J.nodeType===1){B++;if(I===J)break}}B-=F;return B===t||B%t===0&&B/t>=0};return function(I){var J=I;switch(l){case "only":case "first":for(;J=J.previousSibling;)if(J.nodeType===1)return false;if(l==="first")return true;J=I;case "last":for(;J=J.nextSibling;)if(J.nodeType===1)return false;return true}}},PSEUDO:function(l,q){var t,F=ba.pseudos[l]||ba.setFilters[l.toLowerCase()]||
|
115
|
+
c.error("unsupported pseudo: "+l);if(F[fa])return F(q);if(F.length>1){t=[l,l,"",q];return ba.setFilters.hasOwnProperty(l.toLowerCase())?za(function(I,J){for(var B,N=F(I,q),M=N.length;M--;){B=bb.call(I,N[M]);I[B]=!(J[B]=N[M])}}):function(I){return F(I,0,t)}}return F}},pseudos:{not:za(function(l){var q=[],t=[],F=cb(l.replace(rb,"$1"));return F[fa]?za(function(I,J,B,N){N=F(I,null,N,[]);for(var M=I.length;M--;)if(B=N[M])I[M]=!(J[M]=B)}):function(I,J,B){q[0]=I;F(q,null,B,t);return!t.pop()}}),has:za(function(l){return function(q){return c(l,
|
116
|
+
q).length>0}}),contains:za(function(l){return function(q){return(q.textContent||q.innerText||xa(q)).indexOf(l)>-1}}),enabled:function(l){return l.disabled===false},disabled:function(l){return l.disabled===true},checked:function(l){var q=l.nodeName.toLowerCase();return q==="input"&&!!l.checked||q==="option"&&!!l.selected},selected:function(l){return l.selected===true},parent:function(l){return!ba.pseudos.empty(l)},empty:function(l){var q;for(l=l.firstChild;l;){if(l.nodeName>"@"||(q=l.nodeType)===3||
|
117
|
+
q===4)return false;l=l.nextSibling}return true},header:function(l){return Oc.test(l.nodeName)},text:function(l){var q,t;return l.nodeName.toLowerCase()==="input"&&(q=l.type)==="text"&&((t=l.getAttribute("type"))==null||t.toLowerCase()===q)},radio:e("radio"),checkbox:e("checkbox"),file:e("file"),password:e("password"),image:e("image"),submit:f("submit"),reset:f("reset"),button:function(l){var q=l.nodeName.toLowerCase();return q==="input"&&l.type==="button"||q==="button"},input:function(l){return Pc.test(l.nodeName)},
|
118
|
+
focus:function(l){var q=l.ownerDocument;return l===q.activeElement&&(!q.hasFocus||q.hasFocus())&&!!(l.type||l.href)},active:function(l){return l===l.ownerDocument.activeElement},first:h(function(){return[0]}),last:h(function(l,q){return[q-1]}),eq:h(function(l,q,t){return[t<0?t+q:t]}),even:h(function(l,q){for(var t=0;t<q;t+=2)l.push(t);return l}),odd:h(function(l,q){for(var t=1;t<q;t+=2)l.push(t);return l}),lt:h(function(l,q,t){for(q=t<0?t+q:t;--q>=0;)l.push(q);return l}),gt:h(function(l,q,t){for(t=
|
119
|
+
t<0?t+q:t;++t<q;)l.push(t);return l})}};db=da.compareDocumentPosition?function(l,q){if(l===q){W=true;return 0}return(!l.compareDocumentPosition||!q.compareDocumentPosition?l.compareDocumentPosition:l.compareDocumentPosition(q)&4)?-1:1}:function(l,q){if(l===q){W=true;return 0}else if(l.sourceIndex&&q.sourceIndex)return l.sourceIndex-q.sourceIndex;var t,F,I=[],J=[];t=l.parentNode;F=q.parentNode;var B=t;if(t===F)return j(l,q);else if(t){if(!F)return 1}else return-1;for(;B;){I.unshift(B);B=B.parentNode}for(B=
|
120
|
+
F;B;){J.unshift(B);B=B.parentNode}t=I.length;F=J.length;for(B=0;B<t&&B<F;B++)if(I[B]!==J[B])return j(I[B],J[B]);return B===t?j(l,J[B],-1):j(I[B],q,1)};[0,0].sort(db);ca=!W;c.uniqueSort=function(l){var q,t=1;W=ca;l.sort(db);if(W)for(;q=l[t];t++)q===l[t-1]&&l.splice(t--,1);return l};c.error=function(l){throw Error("Syntax error, unrecognized expression: "+l);};cb=c.compile=function(l,q){var t,F=[],I=[],J=Ua[fa][l];if(!J){q||(q=m(l));for(t=q.length;t--;){J=L(q[t]);J[fa]?F.push(J):I.push(J)}J=Ua(l,T(I,
|
121
|
+
F))}return J};ga.querySelectorAll&&function(){var l,q=Z,t=/'|\\/g,F=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,I=[":focus"],J=[":active",":focus"],B=da.matchesSelector||da.mozMatchesSelector||da.webkitMatchesSelector||da.oMatchesSelector||da.msMatchesSelector;Oa(function(N){N.innerHTML="<select><option selected=''></option></select>";N.querySelectorAll("[selected]").length||I.push("\\[[\\x20\\t\\r\\n\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)");N.querySelectorAll(":checked").length||
|
122
|
+
I.push(":checked")});Oa(function(N){N.innerHTML="<p test=''></p>";N.querySelectorAll("[test^='']").length&&I.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");N.innerHTML="<input type='hidden'/>";N.querySelectorAll(":enabled").length||I.push(":enabled",":disabled")});I=RegExp(I.join("|"));Z=function(N,M,V,X,Y){if(!X&&!Y&&(!I||!I.test(N))){var ea,ta,Aa=true,ua=fa;ta=M;ea=M.nodeType===9&&N;if(M.nodeType===1&&M.nodeName.toLowerCase()!=="object"){ea=m(N);if(Aa=M.getAttribute("id"))ua=Aa.replace(t,"\\$&");
|
123
|
+
else M.setAttribute("id",ua);ua="[id='"+ua+"'] ";for(ta=ea.length;ta--;)ea[ta]=ua+ea[ta].join("");ta=Bb.test(N)&&M.parentNode||M;ea=ea.join(",")}if(ea)try{aa.apply(V,pa.call(ta.querySelectorAll(ea),0));return V}catch(ka){}finally{Aa||M.removeAttribute("id")}}return q(N,M,V,X,Y)};if(B){Oa(function(N){l=B.call(N,"div");try{B.call(N,"[test!='']:sizzle");J.push("!=",jb)}catch(M){}});J=RegExp(J.join("|"));c.matchesSelector=function(N,M){M=M.replace(F,"='$1']");if(!Sa(N)&&!J.test(M)&&(!I||!I.test(M)))try{var V=
|
124
|
+
B.call(N,M);if(V||l||N.document&&N.document.nodeType!==11)return V}catch(X){}return c(M,null,null,[N]).length>0}}}();ba.pseudos.nth=ba.pseudos.eq;ba.filters=na.prototype=ba.pseudos;ba.setFilters=new na;c.attr=d.attr;d.find=c;d.expr=c.selectors;d.expr[":"]=d.expr.pseudos;d.unique=c.uniqueSort;d.text=c.getText;d.isXMLDoc=c.isXML;d.contains=c.contains})(i);var Tc=/Until$/,Uc=/^(?:parents|prev(?:Until|All))/,oc=/^.[^:#\[\.,]*$/,Yb=d.expr.match.needsContext,Vc={children:true,contents:true,next:true,prev:true};
|
125
|
+
d.fn.extend({find:function(a){var b,c,e,f,h,j,m=this;if(typeof a!=="string")return d(a).filter(function(){b=0;for(c=m.length;b<c;b++)if(d.contains(m[b],this))return true});j=this.pushStack("","find",a);b=0;for(c=this.length;b<c;b++){e=j.length;d.find(a,this[b],j);if(b>0)for(f=e;f<j.length;f++)for(h=0;h<e;h++)if(j[h]===j[f]){j.splice(f--,1);break}}return j},has:function(a){var b,c=d(a,this),e=c.length;return this.filter(function(){for(b=0;b<e;b++)if(d.contains(this,c[b]))return true})},not:function(a){return this.pushStack(H(this,
|
126
|
+
a,false),"not",a)},filter:function(a){return this.pushStack(H(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?Yb.test(a)?d(a,this.context).index(this[0])>=0:d.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){for(var c,e=0,f=this.length,h=[],j=Yb.test(a)||typeof a!=="string"?d(a,b||this.context):0;e<f;e++)for(c=this[e];c&&c.ownerDocument&&c!==b&&c.nodeType!==11;){if(j?j.index(c)>-1:d.find.matchesSelector(c,a)){h.push(c);break}c=c.parentNode}h=h.length>
|
127
|
+
1?d.unique(h):h;return this.pushStack(h,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a==="string")return d.inArray(this[0],d(a));return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),e=d.merge(this.get(),c);return this.pushStack(x(c[0])||x(e[0])?e:d.unique(e))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});d.fn.andSelf=d.fn.addBack;
|
128
|
+
d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?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 E(a,"nextSibling")},prev:function(a){return E(a,"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,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",
|
129
|
+
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.merge([],a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c);Tc.test(a)||(e=c);if(e&&typeof e==="string")f=d.filter(e,f);f=this.length>1&&!Vc[a]?d.unique(f):f;if(this.length>1&&Uc.test(a))f=f.reverse();return this.pushStack(f,a,Ca.call(arguments).join(","))}});
|
130
|
+
d.extend({filter:function(a,b,c){if(c)a=":not("+a+")";return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){var e=[];for(a=a[b];a&&a.nodeType!==9&&(c===v||a.nodeType!==1||!d(a).is(c));){a.nodeType===1&&e.push(a);a=a[b]}return e},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Ib="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
|
131
|
+
Wc=/ jQuery\d+="(?:null|\d+)"/g,Cb=/^\s+/,Zb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$b=/<([\w:]+)/,Xc=/<tbody/i,Yc=/<|&#?\w+;/,Zc=/<(?:script|style|link)/i,$c=/<(?:script|object|embed|option|style)/i,Db=RegExp("<(?:"+Ib+")[\\s/>]","i"),Jb=/^(?:checkbox|radio)$/,ac=/checked\s*(?:[^=]|=\s*.checked.)/i,ad=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Fa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],
|
132
|
+
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,"",""]},bc=K(Q),Eb=bc.appendChild(Q.createElement("div"));Fa.optgroup=Fa.option;Fa.tbody=Fa.tfoot=Fa.colgroup=Fa.caption=Fa.thead;Fa.th=Fa.td;if(!d.support.htmlSerialize)Fa._default=[1,"X<div>","</div>"];d.fn.extend({text:function(a){return d.access(this,function(b){return b===
|
133
|
+
v?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||Q).createTextNode(b))},null,a,arguments.length)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapAll(a.call(this,c))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,
|
134
134
|
b))});return 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,true,function(a){if(this.nodeType===1||this.nodeType===11)this.appendChild(a)})},prepend:function(){return this.domManip(arguments,
|
135
|
-
true,function(a){if(this.nodeType===1||this.nodeType===11)this.insertBefore(a,this.firstChild)})},before:function(){if(!
|
135
|
+
true,function(a){if(this.nodeType===1||this.nodeType===11)this.insertBefore(a,this.firstChild)})},before:function(){if(!x(this[0]))return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});if(arguments.length){var a=d.clean(arguments);return this.pushStack(d.merge(a,this),"before",this.selector)}},after:function(){if(!x(this[0]))return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});if(arguments.length){var a=d.clean(arguments);
|
136
136
|
return this.pushStack(d.merge(this,a),"after",this.selector)}},remove:function(a,b){for(var c,e=0;(c=this[e])!=null;e++)if(!a||d.filter(a,[c]).length){if(!b&&c.nodeType===1){d.cleanData(c.getElementsByTagName("*"));d.cleanData([c])}c.parentNode&&c.parentNode.removeChild(c)}return this},empty:function(){for(var a,b=0;(a=this[b])!=null;b++)for(a.nodeType===1&&d.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?
|
137
|
-
a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){return d.access(this,function(b){var c=this[0]||{},e=0,f=this.length;if(b===
|
138
|
-
b}}c=0}catch(
|
139
|
-
domManip:function(a,b,c){a=[].concat.apply([],a);var e,f,
|
140
|
-
"table")?this[
|
141
|
-
b=b||
|
142
|
-
function(c){var e,f=0,
|
143
|
-
!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){
|
144
|
-
|
145
|
-
b.createTextNode(
|
146
|
-
d.grep(d.merge([],
|
147
|
-
b;d.uaMatch=function(c){c=c.toLowerCase();c=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||c.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}};a=d.uaMatch(La.userAgent);b={};if(a.browser){b[a.browser]=true;b.version=a.version}if(b.chrome)b.webkit=true;else if(b.webkit)b.safari=true;d.browser=b;d.sub=function(){function c(f,
|
148
|
-
|
149
|
-
{position:"absolute",visibility:"hidden",display:"block"},dc={letterSpacing:0,fontWeight:400},Qa=["Top","Right","Bottom","Left"],Kb=["Webkit","O","Moz","ms"],hd=d.fn.toggle;d.fn.extend({css:function(a,b){return d.access(this,function(c,e,f){return f!==
|
150
|
-
a:
|
151
|
-
if(c!==
|
152
|
-
"normal"&&b in dc)f=dc[b];if(c||e!==
|
153
|
-
f;
|
154
|
-
"display"))?d.swap(c,gd,function(){return
|
155
|
-
""))===""&&c.removeAttribute){c.removeAttribute("filter");if(e&&!e.filter)return}c.filter=Fb.test(
|
156
|
-
function(a){return a.offsetWidth===0&&a.offsetHeight===0||!d.support.reliableHiddenOffsets&&(a.style&&a.style.display||
|
137
|
+
a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){return d.access(this,function(b){var c=this[0]||{},e=0,f=this.length;if(b===v)return c.nodeType===1?c.innerHTML.replace(Wc,""):v;if(typeof b==="string"&&!Zc.test(b)&&(d.support.htmlSerialize||!Db.test(b))&&(d.support.leadingWhitespace||!Cb.test(b))&&!Fa[($b.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(Zb,"<$1></$2>");try{for(;e<f;e++){c=this[e]||{};if(c.nodeType===1){d.cleanData(c.getElementsByTagName("*"));c.innerHTML=
|
138
|
+
b}}c=0}catch(h){}}c&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(a){if(!x(this[0])){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});if(typeof a!=="string")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",a):this},detach:function(a){return this.remove(a,true)},
|
139
|
+
domManip:function(a,b,c){a=[].concat.apply([],a);var e,f,h,j=0,m=a[0],u=[],y=this.length;if(!d.support.checkClone&&y>1&&typeof m==="string"&&ac.test(m))return this.each(function(){d(this).domManip(a,b,c)});if(d.isFunction(m))return this.each(function(A){var w=d(this);a[0]=m.call(this,A,b?w.html():v);w.domManip(a,b,c)});if(this[0]){e=d.buildFragment(a,this,u);h=e.fragment;f=h.firstChild;if(h.childNodes.length===1)h=f;if(f){b=b&&d.nodeName(f,"tr");for(e=e.cacheable||y-1;j<y;j++)c.call(b&&d.nodeName(this[j],
|
140
|
+
"table")?this[j].getElementsByTagName("tbody")[0]||this[j].appendChild(this[j].ownerDocument.createElement("tbody")):this[j],j===e?h:d.clone(h,true,true))}h=f=null;u.length&&d.each(u,function(A,w){if(w.src)d.ajax?d.ajax({url:w.src,type:"GET",dataType:"script",async:false,global:false,"throws":true}):d.error("no ajax");else d.globalEval((w.text||w.textContent||w.innerHTML||"").replace(bd,""));w.parentNode&&w.parentNode.removeChild(w)})}return this}});d.buildFragment=function(a,b,c){var e,f,h,j=a[0];
|
141
|
+
b=b||Q;b=!b.nodeType&&b[0]||b;b=b.ownerDocument||b;if(a.length===1&&typeof j==="string"&&j.length<512&&b===Q&&j.charAt(0)==="<"&&!$c.test(j)&&(d.support.checkClone||!ac.test(j))&&(d.support.html5Clone||!Db.test(j))){f=true;e=d.fragments[j];h=e!==v}if(!e){e=b.createDocumentFragment();d.clean(a,b,e,c);if(f)d.fragments[j]=h&&e}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]=
|
142
|
+
function(c){var e,f=0,h=[];c=d(c);var j=c.length;e=this.length===1&&this[0].parentNode;if((e==null||e&&e.nodeType===11&&e.childNodes.length===1)&&j===1){c[b](this[0]);return this}else{for(;f<j;f++){e=(f>0?this.clone(true):this).get();d(c[f])[b](e);h=h.concat(e)}return this.pushStack(h,a,c.selector)}}});d.extend({clone:function(a,b,c){var e,f,h,j;if(d.support.html5Clone||d.isXMLDoc(a)||!Db.test("<"+a.nodeName+">"))j=a.cloneNode(true);else{Eb.innerHTML=a.outerHTML;Eb.removeChild(j=Eb.firstChild)}if((!d.support.noCloneEvent||
|
143
|
+
!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){g(a,j);e=S(a);f=S(j);for(h=0;e[h];++h)f[h]&&g(e[h],f[h])}if(b){R(a,j);if(c){e=S(a);f=S(j);for(h=0;e[h];++h)R(e[h],f[h])}}return j},clean:function(a,b,c,e){var f,h,j,m,u,y,A=b===Q&&bc,w=[];if(!b||typeof b.createDocumentFragment==="undefined")b=Q;for(f=0;(j=a[f])!=null;f++){if(typeof j==="number")j+="";if(j){if(typeof j==="string")if(Yc.test(j)){A=A||K(b);y=b.createElement("div");A.appendChild(y);j=j.replace(Zb,"<$1></$2>");
|
144
|
+
h=($b.exec(j)||["",""])[1].toLowerCase();m=Fa[h]||Fa._default;u=m[0];for(y.innerHTML=m[1]+j+m[2];u--;)y=y.lastChild;if(!d.support.tbody){u=Xc.test(j);m=h==="table"&&!u?y.firstChild&&y.firstChild.childNodes:m[1]==="<table>"&&!u?y.childNodes:[];for(h=m.length-1;h>=0;--h)d.nodeName(m[h],"tbody")&&!m[h].childNodes.length&&m[h].parentNode.removeChild(m[h])}!d.support.leadingWhitespace&&Cb.test(j)&&y.insertBefore(b.createTextNode(Cb.exec(j)[0]),y.firstChild);j=y.childNodes;y.parentNode.removeChild(y)}else j=
|
145
|
+
b.createTextNode(j);j.nodeType?w.push(j):d.merge(w,j)}}if(y)j=y=A=null;if(!d.support.appendChecked)for(f=0;(j=w[f])!=null;f++)if(d.nodeName(j,"input"))D(j);else typeof j.getElementsByTagName!=="undefined"&&d.grep(j.getElementsByTagName("input"),D);if(c){a=function(L){if(!L.type||ad.test(L.type))return e?e.push(L.parentNode?L.parentNode.removeChild(L):L):c.appendChild(L)};for(f=0;(j=w[f])!=null;f++)if(!(d.nodeName(j,"script")&&a(j))){c.appendChild(j);if(typeof j.getElementsByTagName!=="undefined"){j=
|
146
|
+
d.grep(d.merge([],j.getElementsByTagName("script")),a);w.splice.apply(w,[f+1,0].concat(j));f+=j.length}}}return w},cleanData:function(a,b){for(var c,e,f,h,j=0,m=d.expando,u=d.cache,y=d.support.deleteExpando,A=d.event.special;(f=a[j])!=null;j++)if(b||d.acceptData(f))if(c=(e=f[m])&&u[e]){if(c.events)for(h in c.events)A[h]?d.event.remove(f,h):d.removeEvent(f,h,c.handle);if(u[e]){delete u[e];if(y)delete f[m];else if(f.removeAttribute)f.removeAttribute(m);else f[m]=null;d.deletedIds.push(e)}}}});(function(){var a,
|
147
|
+
b;d.uaMatch=function(c){c=c.toLowerCase();c=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||c.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}};a=d.uaMatch(La.userAgent);b={};if(a.browser){b[a.browser]=true;b.version=a.version}if(b.chrome)b.webkit=true;else if(b.webkit)b.safari=true;d.browser=b;d.sub=function(){function c(f,h){return new c.fn.init(f,
|
148
|
+
h)}d.extend(true,c,this);c.superclass=this;c.fn=c.prototype=this();c.fn.constructor=c;c.sub=this.sub;c.fn.init=function(f,h){if(h&&h instanceof d&&!(h instanceof c))h=c(h);return d.fn.init.call(this,f,h,e)};c.fn.init.prototype=c.fn;var e=c(Q);return c}})();var ya,Wa,Xa,Fb=/alpha\([^)]*\)/i,cd=/opacity=([^)]*)/,dd=/^(top|right|bottom|left)$/,ed=/^(none|table(?!-c[ea]).+)/,cc=/^margin/,pc=RegExp("^("+pb+")(.*)$","i"),kb=RegExp("^("+pb+")(?!px)[a-z%]+$","i"),fd=RegExp("^([-+])=("+pb+")","i"),wb={},gd=
|
149
|
+
{position:"absolute",visibility:"hidden",display:"block"},dc={letterSpacing:0,fontWeight:400},Qa=["Top","Right","Bottom","Left"],Kb=["Webkit","O","Moz","ms"],hd=d.fn.toggle;d.fn.extend({css:function(a,b){return d.access(this,function(c,e,f){return f!==v?d.style(c,e,f):d.css(c,e)},a,b,arguments.length>1)},show:function(){return p(this,true)},hide:function(){return p(this)},toggle:function(a,b){var c=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(b))return hd.apply(this,arguments);return this.each(function(){(c?
|
150
|
+
a:k(this))?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ya(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h,j,m=d.camelCase(b),u=a.style;b=d.cssProps[m]||(d.cssProps[m]=G(u,m));j=d.cssHooks[b]||d.cssHooks[m];
|
151
|
+
if(c!==v){h=typeof c;if(h==="string"&&(f=fd.exec(c))){c=(f[1]+1)*f[2]+parseFloat(d.css(a,b));h="number"}if(!(c==null||h==="number"&&isNaN(c))){if(h==="number"&&!d.cssNumber[m])c+="px";if(!j||!("set"in j)||(c=j.set(a,c,e))!==v)try{u[b]=c}catch(y){}}}else{if(j&&"get"in j&&(f=j.get(a,false,e))!==v)return f;return u[b]}}},css:function(a,b,c,e){var f,h;h=d.camelCase(b);b=d.cssProps[h]||(d.cssProps[h]=G(a.style,h));if((h=d.cssHooks[b]||d.cssHooks[h])&&"get"in h)f=h.get(a,true,e);if(f===v)f=ya(a,b);if(f===
|
152
|
+
"normal"&&b in dc)f=dc[b];if(c||e!==v){a=parseFloat(f);return c||d.isNumeric(a)?a||0:f}return f},swap:function(a,b,c){var e,f={};for(e in b){f[e]=a.style[e];a.style[e]=b[e]}c=c.call(a);for(e in b)a.style[e]=f[e];return c}});if(i.getComputedStyle)ya=function(a,b){var c,e,f,h,j=i.getComputedStyle(a,null),m=a.style;if(j){c=j[b];if(c===""&&!d.contains(a.ownerDocument,a))c=d.style(a,b);if(kb.test(c)&&cc.test(b)){e=m.width;f=m.minWidth;h=m.maxWidth;m.minWidth=m.maxWidth=m.width=c;c=j.width;m.width=e;m.minWidth=
|
153
|
+
f;m.maxWidth=h}}return c};else if(Q.documentElement.currentStyle)ya=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(f==null&&h&&h[b])f=h[b];if(kb.test(f)&&!dd.test(b)){c=h.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f;f=h.pixelLeft+"px";h.left=c;if(e)a.runtimeStyle.left=e}return f===""?"auto":f};d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(c,e,f){if(e)return c.offsetWidth===0&&ed.test(ya(c,
|
154
|
+
"display"))?d.swap(c,gd,function(){return P(c,b,f)}):P(c,b,f)},set:function(c,e,f){return C(c,e,f?O(c,b,f,d.support.boxSizing&&d.css(c,"boxSizing")==="border-box"):0)}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(a,b){return cd.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle,f=d.isNumeric(b)?"alpha(opacity="+b*100+")":"",h=e&&e.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(h.replace(Fb,
|
155
|
+
""))===""&&c.removeAttribute){c.removeAttribute("filter");if(e&&!e.filter)return}c.filter=Fb.test(h)?h.replace(Fb,f):h+" "+f}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight={get:function(a,b){return d.swap(a,{display:"inline-block"},function(){if(b)return ya(a,"marginRight")})}};!d.support.pixelPosition&&d.fn.position&&d.each(["top","left"],function(a,b){d.cssHooks[b]={get:function(c,e){if(e){var f=ya(c,b);return kb.test(f)?d(c).position()[b]+"px":f}}}})});if(d.expr&&d.expr.filters){d.expr.filters.hidden=
|
156
|
+
function(a){return a.offsetWidth===0&&a.offsetHeight===0||!d.support.reliableHiddenOffsets&&(a.style&&a.style.display||ya(a,"display"))==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var e=typeof c==="string"?c.split(" "):[c],f={};for(c=0;c<4;c++)f[a+Qa[c]+b]=e[c]||e[c-2]||e[0];return f}};if(!cc.test(a))d.cssHooks[a+b].set=C});var id=/%20/g,qc=/\[\]$/,ec=/\r?\n/g,jd=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
157
157
|
kd=/^(?:select|textarea)/i;d.fn.extend({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||kd.test(this.nodeName)||jd.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(e){return{name:b.name,value:e.replace(ec,"\r\n")}}):{name:b.name,value:c.replace(ec,"\r\n")}}).get()}});
|
158
|
-
d.param=function(a,b){var c,e=[],f=function(
|
159
|
-
qd=/([?&])_=[^&]*/,gc=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,hc=d.fn.load,xb={},ic={},jc=["*/"]+["*"];try{Va=Za.href}catch(yd){Va=
|
160
|
-
data:b,complete:function(
|
161
|
-
|
162
|
-
contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":true,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:la(xb),ajaxTransport:la(ic),ajax:function(a,b){function c(
|
163
|
-
ca)fa[ib[aa]]=ca[aa];for(;
|
164
|
-
ca}if(
|
165
|
-
true)if(
|
166
|
-
--d.active||d.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=
|
167
|
-
2){if(!
|
168
|
-
"*").toLowerCase().split(Pa);if(
|
169
|
-
delete
|
170
|
-
(
|
171
|
-
lastModified:{},etag:{}});var kc=[],rd=/\?/,ub=/(=)\?(?=&|$)|\?\?/,sd=d.now();d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=kc.pop()||d.expando+"_"+sd++;this[a]=true;return a}});d.ajaxPrefilter("json jsonp",function(a,b,c){var e,f,
|
172
|
-
a.jsonpCallback;f=i[e];if(
|
173
|
-
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache===
|
174
|
-
function(
|
175
|
-
{ajax:!!a,cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var b;return{send:function(c,e){var f,
|
176
|
-
c[
|
177
|
-
4)setTimeout(b,0);else{f=++td;if(Gb){if(!fb){fb={};d(i).unload(Gb)}fb[f]=b}
|
178
|
-
d.queue(a,"fx").length||
|
179
|
-
if(f!==(
|
180
|
-
e=
|
181
|
-
e,f,
|
182
|
-
this.now,this);c&&c.set?c.set(this):
|
183
|
-
a.now}}};
|
184
|
-
d.isEmptyObject(a),
|
185
|
-
this&&(a==null||h
|
186
|
-
0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(){d.isFunction(e.old)&&e.old.call(this);e.queue&&d.dequeue(this,e.queue)};return e};d.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.timers=[];d.fx=
|
187
|
-
1)}b.length||d.fx.stop()};d.fx.timer=function(a){if(a()&&d.timers.push(a)&&!vb)vb=setInterval(d.fx.tick,d.fx.interval)};d.fx.interval=13;d.fx.stop=function(){clearInterval(vb);vb=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fx.step={};if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var lc=/^(?:body|html)$/i;d.fn.offset=function(a){if(arguments.length)return a===
|
188
|
-
a,
|
189
|
-
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");if(e==="static")a.style.position="relative";var f=d(a),
|
190
|
-
|
191
|
-
|
192
|
-
a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,
|
193
|
-
define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window)
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
S
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
"
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
this
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
158
|
+
d.param=function(a,b){var c,e=[],f=function(h,j){j=d.isFunction(j)?j():j==null?"":j;e[e.length]=encodeURIComponent(h)+"="+encodeURIComponent(j)};if(b===v)b=d.ajaxSettings&&d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(c in a)ma(c,a[c],b,f);return e.join("&").replace(id,"+")};var eb,Va,ld=/#.*$/,md=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,nd=/^(?:GET|HEAD)$/,od=/^\/\//,fc=/\?/,pd=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
|
159
|
+
qd=/([?&])_=[^&]*/,gc=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,hc=d.fn.load,xb={},ic={},jc=["*/"]+["*"];try{Va=Za.href}catch(yd){Va=Q.createElement("a");Va.href="";Va=Va.href}eb=gc.exec(Va.toLowerCase())||[];d.fn.load=function(a,b,c){if(typeof a!=="string"&&hc)return hc.apply(this,arguments);if(!this.length)return this;var e,f,h,j=this,m=a.indexOf(" ");if(m>=0){e=a.slice(m,a.length);a=a.slice(0,m)}if(d.isFunction(b)){c=b;b=v}else if(b&&typeof b==="object")f="POST";d.ajax({url:a,type:f,dataType:"html",
|
160
|
+
data:b,complete:function(u,y){if(c)j.each(c,h||[u.responseText,y,u])}}).done(function(u){h=arguments;j.html(e?d("<div>").append(u.replace(pd,"")).find(e):u)});return this};d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(c){return this.on(b,c)}});d.each(["get","post"],function(a,b){d[b]=function(c,e,f,h){if(d.isFunction(e)){h=h||f;f=e;e=v}return d.ajax({type:b,url:c,data:e,success:f,dataType:h})}});d.extend({getScript:function(a,b){return d.get(a,
|
161
|
+
v,b,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){if(b)Ya(a,d.ajaxSettings);else{b=a;a=d.ajaxSettings}Ya(a,b);return a},ajaxSettings:{url:Va,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(eb[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":jc},
|
162
|
+
contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":true,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:la(xb),ajaxTransport:la(ic),ajax:function(a,b){function c(W,ha,ca,fa){var qa,ga,da,Da,wa=ha;if(xa!==2){xa=2;m&&clearTimeout(m);j=v;f=fa||"";U.readyState=W>0?4:0;if(ca){Da=w;fa=U;var Ea,aa,pa,bb,za=Da.contents,ra=Da.dataTypes,ib=Da.responseFields;for(aa in ib)if(aa in
|
163
|
+
ca)fa[ib[aa]]=ca[aa];for(;ra[0]==="*";){ra.shift();if(Ea===v)Ea=Da.mimeType||fa.getResponseHeader("content-type")}if(Ea)for(aa in za)if(za[aa]&&za[aa].test(Ea)){ra.unshift(aa);break}if(ra[0]in ca)pa=ra[0];else{for(aa in ca){if(!ra[0]||Da.converters[aa+" "+ra[0]]){pa=aa;break}bb||(bb=aa)}pa=pa||bb}if(pa){pa!==ra[0]&&ra.unshift(pa);Da=ca[pa]}else Da=void 0}if(W>=200&&W<300||W===304){if(w.ifModified){if(ca=U.getResponseHeader("Last-Modified"))d.lastModified[e]=ca;if(ca=U.getResponseHeader("Etag"))d.etag[e]=
|
164
|
+
ca}if(W===304){wa="notmodified";qa=true}else{a:{ga=w;da=Da;var va,Ua;wa=ga.dataTypes.slice();Ea=wa[0];aa={};pa=0;if(ga.dataFilter)da=ga.dataFilter(da,ga.dataType);if(wa[1])for(va in ga.converters)aa[va.toLowerCase()]=ga.converters[va];for(;ca=wa[++pa];)if(ca!=="*"){if(Ea!=="*"&&Ea!==ca){va=aa[Ea+" "+ca]||aa["* "+ca];if(!va)for(Ua in aa){qa=Ua.split(" ");if(qa[1]===ca)if(va=aa[Ea+" "+qa[0]]||aa["* "+qa[0]]){if(va===true)va=aa[Ua];else if(aa[Ua]!==true){ca=qa[0];wa.splice(pa--,0,ca)}break}}if(va!==
|
165
|
+
true)if(va&&ga["throws"])da=va(da);else try{da=va(da)}catch(jb){qa={state:"parsererror",error:va?jb:"No conversion from "+Ea+" to "+ca};break a}}Ea=ca}qa={state:"success",data:da}}wa=qa.state;ga=qa.data;da=qa.error;qa=!da}}else{da=wa;if(!wa||W){wa="error";if(W<0)W=0}}U.status=W;U.statusText=(ha||wa)+"";qa?Z.resolveWith(L,[ga,wa,U]):Z.rejectWith(L,[U,wa,da]);U.statusCode(Ga);Ga=v;if(y)T.trigger("ajax"+(qa?"Success":"Error"),[U,w,qa?ga:da]);na.fireWith(L,[U,wa]);if(y){T.trigger("ajaxComplete",[U,w]);
|
166
|
+
--d.active||d.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=v}b=b||{};var e,f,h,j,m,u,y,A,w=d.ajaxSetup({},b),L=w.context||w,T=L!==w&&(L.nodeType||L instanceof d)?d(L):d.event,Z=d.Deferred(),na=d.Callbacks("once memory"),Ga=w.statusCode||{},Na={},ba={},xa=0,Sa="canceled",U={readyState:0,setRequestHeader:function(W,ha){if(!xa){var ca=W.toLowerCase();W=ba[ca]=ba[ca]||W;Na[W]=ha}return this},getAllResponseHeaders:function(){return xa===2?f:null},getResponseHeader:function(W){var ha;if(xa===
|
167
|
+
2){if(!h)for(h={};ha=md.exec(f);)h[ha[1].toLowerCase()]=ha[2];ha=h[W.toLowerCase()]}return ha===v?null:ha},overrideMimeType:function(W){if(!xa)w.mimeType=W;return this},abort:function(W){W=W||Sa;j&&j.abort(W);c(0,W);return this}};Z.promise(U);U.success=U.done;U.error=U.fail;U.complete=na.add;U.statusCode=function(W){if(W){var ha;if(xa<2)for(ha in W)Ga[ha]=[Ga[ha],W[ha]];else{ha=W[U.status];U.always(ha)}}return this};w.url=((a||w.url)+"").replace(ld,"").replace(od,eb[1]+"//");w.dataTypes=d.trim(w.dataType||
|
168
|
+
"*").toLowerCase().split(Pa);if(w.crossDomain==null){u=gc.exec(w.url.toLowerCase())||false;w.crossDomain=u&&u.join(":")+(u[3]?"":u[1]==="http:"?80:443)!==eb.join(":")+(eb[3]?"":eb[1]==="http:"?80:443)}if(w.data&&w.processData&&typeof w.data!=="string")w.data=d.param(w.data,w.traditional);Ha(xb,w,b,U);if(xa===2)return U;y=w.global;w.type=w.type.toUpperCase();w.hasContent=!nd.test(w.type);y&&d.active++===0&&d.event.trigger("ajaxStart");if(!w.hasContent){if(w.data){w.url+=(fc.test(w.url)?"&":"?")+w.data;
|
169
|
+
delete w.data}e=w.url;if(w.cache===false){u=d.now();var cb=w.url.replace(qd,"$1_="+u);w.url=cb+(cb===w.url?(fc.test(w.url)?"&":"?")+"_="+u:"")}}if(w.data&&w.hasContent&&w.contentType!==false||b.contentType)U.setRequestHeader("Content-Type",w.contentType);if(w.ifModified){e=e||w.url;d.lastModified[e]&&U.setRequestHeader("If-Modified-Since",d.lastModified[e]);d.etag[e]&&U.setRequestHeader("If-None-Match",d.etag[e])}U.setRequestHeader("Accept",w.dataTypes[0]&&w.accepts[w.dataTypes[0]]?w.accepts[w.dataTypes[0]]+
|
170
|
+
(w.dataTypes[0]!=="*"?", "+jc+"; q=0.01":""):w.accepts["*"]);for(A in w.headers)U.setRequestHeader(A,w.headers[A]);if(w.beforeSend&&(w.beforeSend.call(L,U,w)===false||xa===2))return U.abort();Sa="abort";for(A in{success:1,error:1,complete:1})U[A](w[A]);if(j=Ha(ic,w,b,U)){U.readyState=1;y&&T.trigger("ajaxSend",[U,w]);if(w.async&&w.timeout>0)m=setTimeout(function(){U.abort("timeout")},w.timeout);try{xa=1;j.send(Na,c)}catch(db){if(xa<2)c(-1,db);else throw db;}}else c(-1,"No Transport");return U},active:0,
|
171
|
+
lastModified:{},etag:{}});var kc=[],rd=/\?/,ub=/(=)\?(?=&|$)|\?\?/,sd=d.now();d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=kc.pop()||d.expando+"_"+sd++;this[a]=true;return a}});d.ajaxPrefilter("json jsonp",function(a,b,c){var e,f,h,j=a.data,m=a.url,u=a.jsonp!==false,y=u&&ub.test(m),A=u&&!y&&typeof j==="string"&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&ub.test(j);if(a.dataTypes[0]==="jsonp"||y||A){e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():
|
172
|
+
a.jsonpCallback;f=i[e];if(y)a.url=m.replace(ub,"$1"+e);else if(A)a.data=j.replace(ub,"$1"+e);else if(u)a.url+=(rd.test(m)?"&":"?")+a.jsonp+"="+e;a.converters["script json"]=function(){h||d.error(e+" was not called");return h[0]};a.dataTypes[0]="json";i[e]=function(){h=arguments};c.always(function(){i[e]=f;if(a[e]){a.jsonpCallback=b.jsonpCallback;kc.push(e)}h&&d.isFunction(f)&&f(h[0]);h=f=v});return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
|
173
|
+
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache===v)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=Q.head||Q.getElementsByTagName("head")[0]||Q.documentElement;return{send:function(e,f){b=Q.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=
|
174
|
+
function(h,j){if(j||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;c&&b.parentNode&&c.removeChild(b);b=v;j||f(200,"success")}};c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var fb,Gb=i.ActiveXObject?function(){for(var a in fb)fb[a](0,1)}:false,td=0;d.ajaxSettings.xhr=i.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ia()))a:{try{a=new i.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ia;(function(a){d.extend(d.support,
|
175
|
+
{ajax:!!a,cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var b;return{send:function(c,e){var f,h,j=a.xhr();a.username?j.open(a.type,a.url,a.async,a.username,a.password):j.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)j[h]=a.xhrFields[h];a.mimeType&&j.overrideMimeType&&j.overrideMimeType(a.mimeType);if(!a.crossDomain&&!c["X-Requested-With"])c["X-Requested-With"]="XMLHttpRequest";try{for(h in c)j.setRequestHeader(h,
|
176
|
+
c[h])}catch(m){}j.send(a.hasContent&&a.data||null);b=function(u,y){var A,w,L,T,Z;try{if(b&&(y||j.readyState===4)){b=v;if(f){j.onreadystatechange=d.noop;Gb&&delete fb[f]}if(y)j.readyState!==4&&j.abort();else{A=j.status;L=j.getAllResponseHeaders();T={};if((Z=j.responseXML)&&Z.documentElement)T.xml=Z;try{T.text=j.responseText}catch(na){}try{w=j.statusText}catch(Ga){w=""}if(!A&&a.isLocal&&!a.crossDomain)A=T.text?200:404;else if(A===1223)A=204}}}catch(Na){y||e(-1,Na)}T&&e(A,w,T,L)};if(a.async)if(j.readyState===
|
177
|
+
4)setTimeout(b,0);else{f=++td;if(Gb){if(!fb){fb={};d(i).unload(Gb)}fb[f]=b}j.onreadystatechange=b}else b()},abort:function(){b&&b(0,1)}}}});var lb,vb,ud=/^(?:toggle|show|hide)$/,vd=RegExp("^(?:([-+])=|)("+pb+")([a-z%]*)$","i"),wd=/queueHooks$/,mb=[function(a,b,c){var e,f,h,j,m,u,y=this,A=a.style,w={},L=[],T=a.nodeType&&k(a);if(!c.queue){m=d._queueHooks(a,"fx");if(m.unqueued==null){m.unqueued=0;u=m.empty.fire;m.empty.fire=function(){m.unqueued||u()}}m.unqueued++;y.always(function(){y.always(function(){m.unqueued--;
|
178
|
+
d.queue(a,"fx").length||m.empty.fire()})})}if(a.nodeType===1&&("height"in b||"width"in b)){c.overflow=[A.overflow,A.overflowX,A.overflowY];if(d.css(a,"display")==="inline"&&d.css(a,"float")==="none")if(!d.support.inlineBlockNeedsLayout||oa(a.nodeName)==="inline")A.display="inline-block";else A.zoom=1}if(c.overflow){A.overflow="hidden";d.support.shrinkWrapBlocks||y.done(function(){A.overflow=c.overflow[0];A.overflowX=c.overflow[1];A.overflowY=c.overflow[2]})}for(e in b){f=b[e];if(ud.exec(f)){delete b[e];
|
179
|
+
if(f!==(T?"hide":"show"))L.push(e)}}if(f=L.length){h=d._data(a,"fxshow")||d._data(a,"fxshow",{});T?d(a).show():y.done(function(){d(a).hide()});y.done(function(){var Z;d.removeData(a,"fxshow",true);for(Z in w)d.style(a,Z,w[Z])});for(e=0;e<f;e++){b=L[e];j=y.createTween(b,T?h[b]:0);w[b]=h[b]||d.style(a,b);if(!(b in h)){h[b]=j.start;if(T){j.end=j.start;j.start=b==="width"||b==="height"?1:0}}}}}],gb={"*":[function(a,b){var c,e,f=this.createTween(a,b),h=vd.exec(b),j=f.cur(),m=+j||0,u=1,y=20;if(h){c=+h[2];
|
180
|
+
e=h[3]||(d.cssNumber[a]?"":"px");if(e!=="px"&&m){m=d.css(f.elem,a,true)||c||1;do{u=u||".5";m/=u;d.style(f.elem,a,m+e)}while(u!==(u=f.cur()/j)&&u!==1&&--y)}f.unit=e;f.start=m;f.end=h[1]?m+(h[1]+1)*c:c}return f}]};d.Animation=d.extend(Ia,{tweener:function(a,b){if(d.isFunction(a)){b=a;a=["*"]}else a=a.split(" ");for(var c,e=0,f=a.length;e<f;e++){c=a[e];gb[c]=gb[c]||[];gb[c].unshift(b)}},prefilter:function(a,b){b?mb.unshift(a):mb.push(a)}});d.Tween=sa;sa.prototype={constructor:sa,init:function(a,b,c,
|
181
|
+
e,f,h){this.elem=a;this.prop=c;this.easing=f||"swing";this.options=b;this.start=this.now=this.cur();this.end=e;this.unit=h||(d.cssNumber[c]?"":"px")},cur:function(){var a=sa.propHooks[this.prop];return a&&a.get?a.get(this):sa.propHooks._default.get(this)},run:function(a){var b,c=sa.propHooks[this.prop];this.pos=this.options.duration?b=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,
|
182
|
+
this.now,this);c&&c.set?c.set(this):sa.propHooks._default.set(this);return this}};sa.prototype.init.prototype=sa.prototype;sa.propHooks={_default:{get:function(a){if(a.elem[a.prop]!=null&&(!a.elem.style||a.elem.style[a.prop]==null))return a.elem[a.prop];a=d.css(a.elem,a.prop,false,"");return!a||a==="auto"?0:a},set:function(a){if(d.fx.step[a.prop])d.fx.step[a.prop](a);else if(a.elem.style&&(a.elem.style[d.cssProps[a.prop]]!=null||d.cssHooks[a.prop]))d.style(a.elem,a.prop,a.now+a.unit);else a.elem[a.prop]=
|
183
|
+
a.now}}};sa.propHooks.scrollTop=sa.propHooks.scrollLeft={set:function(a){if(a.elem.nodeType&&a.elem.parentNode)a.elem[a.prop]=a.now}};d.each(["toggle","show","hide"],function(a,b){var c=d.fn[b];d.fn[b]=function(e,f,h){return e==null||typeof e==="boolean"||!a&&d.isFunction(e)&&d.isFunction(f)?c.apply(this,arguments):this.animate(Ra(b,true),e,f,h)}});d.fn.extend({fadeTo:function(a,b,c,e){return this.filter(k).css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,c,e){var f=
|
184
|
+
d.isEmptyObject(a),h=d.speed(b,c,e);b=function(){var j=Ia(this,d.extend({},a),h);f&&j.stop(true)};return f||h.queue===false?this.each(b):this.queue(h.queue,b)},stop:function(a,b,c){var e=function(f){var h=f.stop;delete f.stop;h(c)};if(typeof a!=="string"){c=b;b=a;a=v}if(b&&a!==false)this.queue(a||"fx",[]);return this.each(function(){var f=true,h=a!=null&&a+"queueHooks",j=d.timers,m=d._data(this);if(h)m[h]&&m[h].stop&&e(m[h]);else for(h in m)m[h]&&m[h].stop&&wd.test(h)&&e(m[h]);for(h=j.length;h--;)if(j[h].elem===
|
185
|
+
this&&(a==null||j[h].queue===a)){j[h].anim.stop(c);f=false;j.splice(h,1)}if(f||!c)d.dequeue(this,a)})}});d.each({slideDown:Ra("show"),slideUp:Ra("hide"),slideToggle:Ra("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(c,e,f){return this.animate(b,c,e,f)}});d.speed=function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?
|
186
|
+
0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(){d.isFunction(e.old)&&e.old.call(this);e.queue&&d.dequeue(this,e.queue)};return e};d.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.timers=[];d.fx=sa.prototype.init;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--,
|
187
|
+
1)}b.length||d.fx.stop()};d.fx.timer=function(a){if(a()&&d.timers.push(a)&&!vb)vb=setInterval(d.fx.tick,d.fx.interval)};d.fx.interval=13;d.fx.stop=function(){clearInterval(vb);vb=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fx.step={};if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var lc=/^(?:body|html)$/i;d.fn.offset=function(a){if(arguments.length)return a===v?this:this.each(function(m){d.offset.setOffset(this,
|
188
|
+
a,m)});var b,c,e,f,h,j={top:0,left:0};if(f=(e=this[0])&&e.ownerDocument){if((c=f.body)===e)return d.offset.bodyOffset(e);b=f.documentElement;if(!d.contains(b,e))return j;if(typeof e.getBoundingClientRect!=="undefined")j=e.getBoundingClientRect();e=nb(f);f=b.clientTop||c.clientTop||0;c=b.clientLeft||c.clientLeft||0;h=e.pageYOffset||b.scrollTop;return{top:j.top+h-f,left:j.left+(e.pageXOffset||b.scrollLeft)-c}}};d.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;if(d.support.doesNotIncludeMarginInBodyOffset){b+=
|
189
|
+
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");if(e==="static")a.style.position="relative";var f=d(a),h=f.offset(),j=d.css(a,"top"),m=d.css(a,"left"),u={},y={};if((e==="absolute"||e==="fixed")&&d.inArray("auto",[j,m])>-1){y=f.position();e=y.top;m=y.left}else{e=parseFloat(j)||0;m=parseFloat(m)||0}if(d.isFunction(b))b=b.call(a,c,h);if(b.top!=null)u.top=b.top-h.top+e;if(b.left!=null)u.left=b.left-h.left+
|
190
|
+
m;"using"in b?b.using.call(a,u):f.css(u)}};d.fn.extend({position:function(){if(this[0]){var a=this[0],b=this.offsetParent(),c=this.offset(),e=lc.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=this.offsetParent||
|
191
|
+
Q.body;a&&!lc.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a||Q.body})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);d.fn[a]=function(e){return d.access(this,function(f,h,j){var m=nb(f);if(j===v)return m?b in m?m[b]:m.document.documentElement[h]:f[h];if(m)m.scrollTo(!c?j:d(m).scrollLeft(),c?j:d(m).scrollTop());else f[h]=j},a,e,arguments.length,null)}});d.each({Height:"height",Width:"width"},function(a,b){d.each({padding:"inner"+
|
192
|
+
a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,h){var j=arguments.length&&(c||typeof f!=="boolean"),m=c||(f===true||h===true?"margin":"border");return d.access(this,function(u,y,A){if(d.isWindow(u))return u.document.documentElement["client"+a];if(u.nodeType===9){y=u.documentElement;return Math.max(u.body["scroll"+a],y["scroll"+a],u.body["offset"+a],y["offset"+a],y["client"+a])}return A===v?d.css(u,y,A,m):d.style(u,y,A,m)},b,j?f:v,j,null)}})});i.jQuery=i.$=d;typeof define==="function"&&
|
193
|
+
define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);/*
|
194
|
+
New BSD License <http://creativecommons.org/licenses/BSD/>
|
195
|
+
Public Domain
|
196
|
+
@author Benjamin Arthur Lupton <contact@balupton.com>
|
197
|
+
@author James Padolsey <https://gist.github.com/527683>
|
198
|
+
Public Domain
|
199
|
+
@author Benjamin Arthur Lupton <contact@balupton.com>
|
200
|
+
*/
|
201
|
+
(function(i,v){var n=i.console||v,s=i.document,z=i.navigator,r=i.sessionStorage||false,o=i.setTimeout,x=i.clearTimeout,E=i.setInterval,H=i.clearInterval,K=i.JSON,R=i.alert,g=i.History=i.History||{},S=i.history;K.stringify=K.stringify||K.encode;K.parse=K.parse||K.decode;if(typeof g.init!=="undefined")throw Error("History.js Core has already been loaded...");g.init=function(){if(typeof g.Adapter==="undefined")return false;typeof g.initCore!=="undefined"&&g.initCore();typeof g.initHtml4!=="undefined"&&
|
202
|
+
g.initHtml4();return true};g.initCore=function(){if(typeof g.initCore.initialized!=="undefined")return false;else g.initCore.initialized=true;g.options=g.options||{};g.options.hashChangeInterval=g.options.hashChangeInterval||100;g.options.safariPollInterval=g.options.safariPollInterval||500;g.options.doubleCheckInterval=g.options.doubleCheckInterval||500;g.options.storeInterval=g.options.storeInterval||1E3;g.options.busyDelay=g.options.busyDelay||250;g.options.debug=g.options.debug||false;g.options.initialTitle=
|
203
|
+
g.options.initialTitle||s.title;g.intervalList=[];g.clearAllIntervals=function(){var k,p=g.intervalList;if(typeof p!=="undefined"&&p!==null){for(k=0;k<p.length;k++)H(p[k]);g.intervalList=null}};g.debug=function(){g.options.debug&&g.log.apply(g,arguments)};g.log=function(){var k=!(typeof n==="undefined"||typeof n.log==="undefined"||typeof n.log.apply==="undefined"),p=s.getElementById("log"),C,O,P,oa;if(k){O=Array.prototype.slice.call(arguments);C=O.shift();typeof n.debug!=="undefined"?n.debug.apply(n,
|
204
|
+
[C,O]):n.log.apply(n,[C,O])}else C="\n"+arguments[0]+"\n";O=1;for(P=arguments.length;O<P;++O){oa=arguments[O];if(typeof oa==="object"&&typeof K!=="undefined")try{oa=K.stringify(oa)}catch(ma){}C+="\n"+oa+"\n"}if(p){p.value+=C+"\n-----\n";p.scrollTop=p.scrollHeight-p.clientHeight}else k||R(C);return true};g.getInternetExplorerMajorVersion=function(){return g.getInternetExplorerMajorVersion.cached=typeof g.getInternetExplorerMajorVersion.cached!=="undefined"?g.getInternetExplorerMajorVersion.cached:
|
205
|
+
function(){for(var k=3,p=s.createElement("div"),C=p.getElementsByTagName("i");(p.innerHTML="<!--[if gt IE "+ ++k+"]><i></i><![endif]--\>")&&C[0];);return k>4?k:false}()};g.isInternetExplorer=function(){return g.isInternetExplorer.cached=typeof g.isInternetExplorer.cached!=="undefined"?g.isInternetExplorer.cached:Boolean(g.getInternetExplorerMajorVersion())};g.emulated={pushState:!Boolean(i.history&&i.history.pushState&&i.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(z.userAgent)||
|
206
|
+
/AppleWebKit\/5([0-2]|3[0-2])/i.test(z.userAgent))),hashChange:Boolean(!("onhashchange"in i||"onhashchange"in s)||g.isInternetExplorer()&&g.getInternetExplorerMajorVersion()<8)};g.enabled=!g.emulated.pushState;g.bugs={setHash:Boolean(!g.emulated.pushState&&z.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(z.userAgent)),safariPoll:Boolean(!g.emulated.pushState&&z.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(z.userAgent)),ieDoubleCheck:Boolean(g.isInternetExplorer()&&
|
207
|
+
g.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(g.isInternetExplorer()&&g.getInternetExplorerMajorVersion()<7)};g.isEmptyObject=function(k){for(var p in k)return false;return true};g.cloneObject=function(k){if(k){k=K.stringify(k);k=K.parse(k)}else k={};return k};g.getRootUrl=function(){var k=s.location.protocol+"//"+(s.location.hostname||s.location.host);if(s.location.port)k+=":"+s.location.port;k+="/";return k};g.getBaseHref=function(){var k=s.getElementsByTagName("base"),p=null;p="";if(k.length===
|
208
|
+
1){p=k[0];p=p.href.replace(/[^\/]+$/,"")}if(p=p.replace(/\/+$/,""))p+="/";return p};g.getBaseUrl=function(){return g.getBaseHref()||g.getBasePageUrl()||g.getRootUrl()};g.getPageUrl=function(){return((g.getState(false,false)||{}).url||s.location.href).replace(/\/+$/,"").replace(/[^\/]+$/,function(k){return/\./.test(k)?k:k+"/"})};g.getBasePageUrl=function(){return s.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(k){return/[^\/]$/.test(k)?"":k}).replace(/\/+$/,"")+"/"};g.getFullUrl=function(k,
|
209
|
+
p){var C=k,O=k.substring(0,1);p=typeof p==="undefined"?true:p;/[a-z]+\:\/\//.test(k)||(C=O==="/"?g.getRootUrl()+k.replace(/^\/+/,""):O==="#"?g.getPageUrl().replace(/#.*/,"")+k:O==="?"?g.getPageUrl().replace(/[\?#].*/,"")+k:p?g.getBaseUrl()+k.replace(/^(\.\/)+/,""):g.getBasePageUrl()+k.replace(/^(\.\/)+/,""));return C.replace(/\#$/,"")};g.getShortUrl=function(k){k=k;var p=g.getBaseUrl(),C=g.getRootUrl();if(g.emulated.pushState)k=k.replace(p,"");k=k.replace(C,"/");if(g.isTraditionalAnchor(k))k="./"+
|
210
|
+
k;return k=k.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")};g.store={};g.idToState=g.idToState||{};g.stateToId=g.stateToId||{};g.urlToId=g.urlToId||{};g.storedStates=g.storedStates||[];g.savedStates=g.savedStates||[];g.normalizeStore=function(){g.store.idToState=g.store.idToState||{};g.store.urlToId=g.store.urlToId||{};g.store.stateToId=g.store.stateToId||{}};g.getState=function(k,p){if(typeof k==="undefined")k=true;if(typeof p==="undefined")p=true;var C=g.getLastSavedState();if(!C&&p)C=g.createStateObject();
|
211
|
+
if(k){C=g.cloneObject(C);C.url=C.cleanUrl||C.url}return C};g.getIdByState=function(k){var p=g.extractId(k.url),C;if(!p){C=g.getStateString(k);if(typeof g.stateToId[C]!=="undefined")p=g.stateToId[C];else if(typeof g.store.stateToId[C]!=="undefined")p=g.store.stateToId[C];else{for(;;){p=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof g.idToState[p]==="undefined"&&typeof g.store.idToState[p]==="undefined")break}g.stateToId[C]=p;g.idToState[p]=k}}return p};g.normalizeState=function(k){var p;
|
212
|
+
if(!k||typeof k!=="object")k={};if(typeof k.normalized!=="undefined")return k;if(!k.data||typeof k.data!=="object")k.data={};p={};p.normalized=true;p.title=k.title||"";p.url=g.getFullUrl(g.unescapeString(k.url||s.location.href));p.hash=g.getShortUrl(p.url);p.data=g.cloneObject(k.data);p.id=g.getIdByState(p);p.cleanUrl=p.url.replace(/\??\&_suid.*/,"");p.url=p.cleanUrl;k=!g.isEmptyObject(p.data);if(p.title||k){p.hash=g.getShortUrl(p.url).replace(/\??\&_suid.*/,"");/\?/.test(p.hash)||(p.hash+="?");p.hash+=
|
213
|
+
"&_suid="+p.id}p.hashedUrl=g.getFullUrl(p.hash);if((g.emulated.pushState||g.bugs.safariPoll)&&g.hasUrlDuplicate(p))p.url=p.hashedUrl;return p};g.createStateObject=function(k,p,C){k={data:k,title:p,url:C};return k=g.normalizeState(k)};g.getStateById=function(k){k=String(k);return g.idToState[k]||g.store.idToState[k]||v};g.getStateString=function(k){k={data:g.normalizeState(k).data,title:k.title,url:k.url};return K.stringify(k)};g.getStateId=function(k){return g.normalizeState(k).id};g.getHashByState=
|
214
|
+
function(k){return g.normalizeState(k).hash};g.extractId=function(k){return((k=/(.*)\&_suid=([0-9]+)$/.exec(k))?String(k[2]||""):"")||false};g.isTraditionalAnchor=function(k){return!/[\/\?\.]/.test(k)};g.extractState=function(k,p){var C=null,O,P;p=p||false;if(O=g.extractId(k))C=g.getStateById(O);if(!C){P=g.getFullUrl(k);if(O=g.getIdByUrl(P)||false)C=g.getStateById(O);if(!C&&p&&!g.isTraditionalAnchor(k))C=g.createStateObject(null,null,P)}return C};g.getIdByUrl=function(k){return g.urlToId[k]||g.store.urlToId[k]||
|
215
|
+
v};g.getLastSavedState=function(){return g.savedStates[g.savedStates.length-1]||v};g.getLastStoredState=function(){return g.storedStates[g.storedStates.length-1]||v};g.hasUrlDuplicate=function(k){var p=false;return p=(p=g.extractState(k.url))&&p.id!==k.id};g.storeState=function(k){g.urlToId[k.url]=k.id;g.storedStates.push(g.cloneObject(k));return k};g.isLastSavedState=function(k){var p=false;if(g.savedStates.length){k=k.id;p=g.getLastSavedState();p=p.id;p=k===p}return p};g.saveState=function(k){if(g.isLastSavedState(k))return false;
|
216
|
+
g.savedStates.push(g.cloneObject(k));return true};g.getStateByIndex=function(k){var p=null;return p=typeof k==="undefined"?g.savedStates[g.savedStates.length-1]:k<0?g.savedStates[g.savedStates.length+k]:g.savedStates[k]};g.getHash=function(){return g.unescapeHash(s.location.hash)};g.unescapeString=function(k){k=k;for(var p;;){p=i.unescape(k);if(p===k)break;k=p}return k};g.unescapeHash=function(k){k=g.normalizeHash(k);return k=g.unescapeString(k)};g.normalizeHash=function(k){return k.replace(/[^#]*#/,
|
217
|
+
"").replace(/#.*/,"")};g.setHash=function(k,p){var C,O;if(p!==false&&g.busy()){g.pushQueue({scope:g,callback:g.setHash,args:arguments,queue:p});return false}C=g.escapeHash(k);g.busy(true);if((O=g.extractState(k,true))&&!g.emulated.pushState)g.pushState(O.data,O.title,O.url,false);else if(s.location.hash!==C)if(g.bugs.setHash){O=g.getPageUrl();g.pushState(null,null,O+"#"+C,false)}else s.location.hash=C;return g};g.escapeHash=function(k){k=g.normalizeHash(k);k=i.escape(k);g.bugs.hashEscape||(k=k.replace(/\%21/g,
|
218
|
+
"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?"));return k};g.getHashByUrl=function(k){k=String(k).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return k=g.unescapeHash(k)};g.setTitle=function(k){var p=k.title,C;if(!p)if((C=g.getStateByIndex(0))&&C.url===k.url)p=C.title||g.options.initialTitle;try{s.getElementsByTagName("title")[0].innerHTML=p.replace("<","<").replace(">",">").replace(" & "," & ")}catch(O){}s.title=p;return g};g.queues=[];g.busy=function(k){if(typeof k!=="undefined")g.busy.flag=
|
219
|
+
k;else if(typeof g.busy.flag==="undefined")g.busy.flag=false;if(!g.busy.flag){x(g.busy.timeout);var p=function(){var C,O;if(!g.busy.flag)for(C=g.queues.length-1;C>=0;--C){O=g.queues[C];if(O.length!==0){O=O.shift();g.fireQueueItem(O);g.busy.timeout=o(p,g.options.busyDelay)}}};g.busy.timeout=o(p,g.options.busyDelay)}return g.busy.flag};g.busy.flag=false;g.fireQueueItem=function(k){return k.callback.apply(k.scope||g,k.args||[])};g.pushQueue=function(k){g.queues[k.queue||0]=g.queues[k.queue||0]||[];g.queues[k.queue||
|
220
|
+
0].push(k);return g};g.queue=function(k,p){if(typeof k==="function")k={callback:k};if(typeof p!=="undefined")k.queue=p;g.busy()?g.pushQueue(k):g.fireQueueItem(k);return g};g.clearQueue=function(){g.busy.flag=false;g.queues=[];return g};g.stateChanged=false;g.doubleChecker=false;g.doubleCheckComplete=function(){g.stateChanged=true;g.doubleCheckClear();return g};g.doubleCheckClear=function(){if(g.doubleChecker){x(g.doubleChecker);g.doubleChecker=false}return g};g.doubleCheck=function(k){g.stateChanged=
|
221
|
+
false;g.doubleCheckClear();if(g.bugs.ieDoubleCheck)g.doubleChecker=o(function(){g.doubleCheckClear();g.stateChanged||k();return true},g.options.doubleCheckInterval);return g};g.safariStatePoll=function(){var k=g.extractState(s.location.href);if(!g.isLastSavedState(k)){k||g.createStateObject();g.Adapter.trigger(i,"popstate");return g}};g.back=function(k){if(k!==false&&g.busy()){g.pushQueue({scope:g,callback:g.back,args:arguments,queue:k});return false}g.busy(true);g.doubleCheck(function(){g.back(false)});
|
222
|
+
S.go(-1);return true};g.forward=function(k){if(k!==false&&g.busy()){g.pushQueue({scope:g,callback:g.forward,args:arguments,queue:k});return false}g.busy(true);g.doubleCheck(function(){g.forward(false)});S.go(1);return true};g.go=function(k,p){var C;if(k>0)for(C=1;C<=k;++C)g.forward(p);else if(k<0)for(C=-1;C>=k;--C)g.back(p);else throw Error("History.go: History.go requires a positive or negative integer passed.");return g};if(g.emulated.pushState){var D=function(){};g.pushState=g.pushState||D;g.replaceState=
|
223
|
+
g.replaceState||D}else{g.onPopState=function(k,p){var C=false;C=false;g.doubleCheckComplete();if(C=g.getHash()){if(C=g.extractState(C||s.location.href,true))g.replaceState(C.data,C.title,C.url,false);else{g.Adapter.trigger(i,"anchorchange");g.busy(false)}return g.expectedStateId=false}(C=(C=g.Adapter.extractEventData("state",k,p)||false)?g.getStateById(C):g.expectedStateId?g.getStateById(g.expectedStateId):g.extractState(s.location.href))||(C=g.createStateObject(null,null,s.location.href));g.expectedStateId=
|
224
|
+
false;if(g.isLastSavedState(C)){g.busy(false);return false}g.storeState(C);g.saveState(C);g.setTitle(C);g.Adapter.trigger(i,"statechange");g.busy(false);return true};g.Adapter.bind(i,"popstate",g.onPopState);g.pushState=function(k,p,C,O){if(g.getHashByUrl(C)&&g.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(O!==false&&g.busy()){g.pushQueue({scope:g,callback:g.pushState,args:arguments,queue:O});return false}g.busy(true);var P=g.createStateObject(k,
|
225
|
+
p,C);if(g.isLastSavedState(P))g.busy(false);else{g.storeState(P);g.expectedStateId=P.id;S.pushState(P.id,P.title,P.url);g.Adapter.trigger(i,"popstate")}return true};g.replaceState=function(k,p,C,O){if(g.getHashByUrl(C)&&g.emulated.pushState)throw Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(O!==false&&g.busy()){g.pushQueue({scope:g,callback:g.replaceState,args:arguments,queue:O});return false}g.busy(true);var P=g.createStateObject(k,p,C);if(g.isLastSavedState(P))g.busy(false);
|
226
|
+
else{g.storeState(P);g.expectedStateId=P.id;S.replaceState(P.id,P.title,P.url);g.Adapter.trigger(i,"popstate")}return true}}if(r)try{g.store=K.parse(r.getItem("History.store"))||{}}catch(G){g.store={}}else g.store={};g.normalizeStore();g.Adapter.bind(i,"beforeunload",g.clearAllIntervals);g.Adapter.bind(i,"unload",g.clearAllIntervals);g.saveState(g.storeState(g.extractState(s.location.href,true)));if(r){g.onUnload=function(){var k,p;try{k=K.parse(r.getItem("History.store"))||{}}catch(C){k={}}k.idToState=
|
227
|
+
k.idToState||{};k.urlToId=k.urlToId||{};k.stateToId=k.stateToId||{};for(p in g.idToState)if(g.idToState.hasOwnProperty(p))k.idToState[p]=g.idToState[p];for(p in g.urlToId)if(g.urlToId.hasOwnProperty(p))k.urlToId[p]=g.urlToId[p];for(p in g.stateToId)if(g.stateToId.hasOwnProperty(p))k.stateToId[p]=g.stateToId[p];g.store=k;g.normalizeStore();r.setItem("History.store",K.stringify(k))};g.intervalList.push(E(g.onUnload,g.options.storeInterval));g.Adapter.bind(i,"beforeunload",g.onUnload);g.Adapter.bind(i,
|
228
|
+
"unload",g.onUnload)}if(!g.emulated.pushState){g.bugs.safariPoll&&g.intervalList.push(E(g.safariStatePoll,g.options.safariPollInterval));if(z.vendor==="Apple Computer, Inc."||(z.appCodeName||"")==="Mozilla"){g.Adapter.bind(i,"hashchange",function(){g.Adapter.trigger(i,"popstate")});g.getHash()&&g.Adapter.onDomLoad(function(){g.Adapter.trigger(i,"hashchange")})}}};g.init()})(window);/*
|
229
|
+
New BSD License <http://creativecommons.org/licenses/BSD/>
|
230
|
+
*/
|
231
|
+
(function(i,v){var n=i.History=i.History||{},s=i.jQuery;if(typeof n.Adapter!=="undefined")throw Error("History.js Adapter has already been loaded...");n.Adapter={bind:function(z,r,o){s(z).bind(r,o)},trigger:function(z,r,o){s(z).trigger(r,o)},extractEventData:function(z,r,o){return r&&r.originalEvent&&r.originalEvent[z]||o&&o[z]||v},onDomLoad:function(z){s(z)}};typeof n.init!=="undefined"&&n.init()})(window);(function(i,v){function n(o,x){var E,H;E=o.nodeName.toLowerCase();if("area"===E){E=o.parentNode;H=E.name;if(!o.href||!H||E.nodeName.toLowerCase()!=="map")return false;E=i("img[usemap=#"+H+"]")[0];return!!E&&s(E)}return(/input|select|textarea|button|object/.test(E)?!o.disabled:"a"===E?o.href||x:x)&&s(o)}function s(o){return!i(o).parents().andSelf().filter(function(){return i.css(this,"visibility")==="hidden"||i.expr.filters.hidden(this)}).length}var z=0,r=/^ui-id-\d+$/;i.ui=i.ui||{};if(!i.ui.version){i.extend(i.ui,
|
232
|
+
{version:"1.9.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});i.fn.extend({_focus:i.fn.focus,focus:function(o,x){return typeof o==="number"?this.each(function(){var E=this;setTimeout(function(){i(E).focus();x&&x.call(E)},o)}):this._focus.apply(this,arguments)},scrollParent:function(){var o;
|
233
|
+
o=i.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(i.css(this,"position"))&&/(auto|scroll)/.test(i.css(this,"overflow")+i.css(this,"overflow-y")+i.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(i.css(this,"overflow")+i.css(this,"overflow-y")+i.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!o.length?i(document):
|
234
|
+
o},zIndex:function(o){if(o!==v)return this.css("zIndex",o);if(this.length){o=i(this[0]);for(var x;o.length&&o[0]!==document;){x=o.css("position");if(x==="absolute"||x==="relative"||x==="fixed"){x=parseInt(o.css("zIndex"),10);if(!isNaN(x)&&x!==0)return x}o=o.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id)this.id="ui-id-"+ ++z})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&i(this).removeAttr("id")})}});i("<a>").outerWidth(1).jquery||i.each(["Width",
|
235
|
+
"Height"],function(o,x){function E(g,S,D,G){i.each(H,function(){S-=parseFloat(i.css(g,"padding"+this))||0;if(D)S-=parseFloat(i.css(g,"border"+this+"Width"))||0;if(G)S-=parseFloat(i.css(g,"margin"+this))||0});return S}var H=x==="Width"?["Left","Right"]:["Top","Bottom"],K=x.toLowerCase(),R={innerWidth:i.fn.innerWidth,innerHeight:i.fn.innerHeight,outerWidth:i.fn.outerWidth,outerHeight:i.fn.outerHeight};i.fn["inner"+x]=function(g){if(g===v)return R["inner"+x].call(this);return this.each(function(){i(this).css(K,
|
236
|
+
E(this,g)+"px")})};i.fn["outer"+x]=function(g,S){if(typeof g!=="number")return R["outer"+x].call(this,g);return this.each(function(){i(this).css(K,E(this,g,true,S)+"px")})}});i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(o){return function(x){return!!i.data(x,o)}}):function(o,x,E){return!!i.data(o,E[3])},focusable:function(o){return n(o,!isNaN(i.attr(o,"tabindex")))},tabbable:function(o){var x=i.attr(o,"tabindex"),E=isNaN(x);return(E||x>=0)&&n(o,!E)}});i(function(){var o=
|
237
|
+
document.body,x=o.appendChild(x=document.createElement("div"));i.extend(x.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});i.support.minHeight=x.offsetHeight===100;i.support.selectstart="onselectstart"in x;o.removeChild(x).style.display="none"});i.fn.extend({disableSelection:function(){return this.bind((i.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(o){o.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});i.extend(i.ui,
|
238
|
+
{plugin:{add:function(o,x,E){var H;o=i.ui[o].prototype;for(H in E){o.plugins[H]=o.plugins[H]||[];o.plugins[H].push([x,E[H]])}},call:function(o,x,E){var H=o.plugins[x];if(!(!H||!o.element[0].parentNode||o.element[0].parentNode.nodeType===11))for(x=0;x<H.length;x++)o.options[H[x][0]]&&H[x][1].apply(o.element,E)}},contains:i.contains,hasScroll:function(o,x){if(i(o).css("overflow")==="hidden")return false;var E=x&&x==="left"?"scrollLeft":"scrollTop",H=false;if(o[E]>0)return true;o[E]=1;H=o[E]>0;o[E]=
|
239
|
+
0;return H},isOverAxis:function(o,x,E){return o>x&&o<x+E},isOver:function(o,x,E,H,K,R){return i.ui.isOverAxis(o,E,K)&&i.ui.isOverAxis(x,H,R)}})}})(jQuery);(function(i,v){var n=0,s=Array.prototype.slice,z=i.cleanData;i.cleanData=function(r){for(var o=0,x;(x=r[o])!=null;o++)try{i(x).triggerHandler("remove")}catch(E){}z(r)};i.widget=function(r,o,x){var E,H,K,R,g=r.split(".")[0];r=r.split(".")[1];E=g+"-"+r;if(!x){x=o;o=i.Widget}i.expr[":"][E.toLowerCase()]=function(S){return!!i.data(S,E)};i[g]=i[g]||{};H=i[g][r];K=i[g][r]=function(S,D){if(!this._createWidget)return new K(S,D);arguments.length&&this._createWidget(S,D)};i.extend(K,H,{version:x.version,_proto:i.extend({},
|
240
|
+
x),_childConstructors:[]});R=new o;R.options=i.widget.extend({},R.options);i.each(x,function(S,D){if(i.isFunction(D))x[S]=function(){var G=function(){return o.prototype[S].apply(this,arguments)},k=function(p){return o.prototype[S].apply(this,p)};return function(){var p=this._super,C=this._superApply,O;this._super=G;this._superApply=k;O=D.apply(this,arguments);this._super=p;this._superApply=C;return O}}()});K.prototype=i.widget.extend(R,{widgetEventPrefix:r},x,{constructor:K,namespace:g,widgetName:r,
|
241
|
+
widgetBaseClass:E,widgetFullName:E});if(H){i.each(H._childConstructors,function(S,D){var G=D.prototype;i.widget(G.namespace+"."+G.widgetName,K,D._proto)});delete H._childConstructors}else o._childConstructors.push(K);i.widget.bridge(r,K)};i.widget.extend=function(r){for(var o=s.call(arguments,1),x=0,E=o.length,H,K;x<E;x++)for(H in o[x]){K=o[x][H];if(o[x].hasOwnProperty(H)&&K!==v)r[H]=i.isPlainObject(K)?i.widget.extend({},r[H],K):K}return r};i.widget.bridge=function(r,o){var x=o.prototype.widgetFullName;
|
242
|
+
i.fn[r]=function(E){var H=typeof E==="string",K=s.call(arguments,1),R=this;E=!H&&K.length?i.widget.extend.apply(null,[E].concat(K)):E;H?this.each(function(){var g,S=i.data(this,x);if(!S)return i.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+E+"'");if(!i.isFunction(S[E])||E.charAt(0)==="_")return i.error("no such method '"+E+"' for "+r+" widget instance");g=S[E].apply(S,K);if(g!==S&&g!==v){R=g&&g.jquery?R.pushStack(g.get()):g;return false}}):this.each(function(){var g=
|
243
|
+
i.data(this,x);if(g)g.option(E||{})._init();else new o(E,this)});return R}};i.Widget=function(){};i.Widget._childConstructors=[];i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(r,o){o=i(o||this.defaultElement||this)[0];this.element=i(o);this.uuid=n++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=i.widget.extend({},this.options,this._getCreateOptions(),r);this.bindings=i();this.hoverable=
|
244
|
+
i();this.focusable=i();if(o!==this){i.data(o,this.widgetName,this);i.data(o,this.widgetFullName,this);this._on({remove:"destroy"});this.document=i(o.style?o.ownerDocument:o.document||o);this.window=i(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:i.noop,_getCreateEventData:i.noop,_create:i.noop,_init:i.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(i.camelCase(this.widgetFullName));
|
245
|
+
this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:i.noop,widget:function(){return this.element},option:function(r,o){var x=r,E,H,K;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof r==="string"){x={};E=r.split(".");r=E.shift();if(E.length){H=x[r]=i.widget.extend({},
|
246
|
+
this.options[r]);for(K=0;K<E.length-1;K++){H[E[K]]=H[E[K]]||{};H=H[E[K]]}r=E.pop();if(o===v)return H[r]===v?null:H[r];H[r]=o}else{if(o===v)return this.options[r]===v?null:this.options[r];x[r]=o}}this._setOptions(x);return this},_setOptions:function(r){var o;for(o in r)this._setOption(o,r[o]);return this},_setOption:function(r,o){this.options[r]=o;if(r==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!o).attr("aria-disabled",o);this.hoverable.removeClass("ui-state-hover");
|
247
|
+
this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(r,o){if(o){r=i(r);this.bindings=this.bindings.add(r)}else{o=r;r=this.element}var x=this;i.each(o,function(E,H){function K(){if(!(x.options.disabled===true||i(this).hasClass("ui-state-disabled")))return(typeof H==="string"?x[H]:H).apply(x,arguments)}if(typeof H!=="string")K.guid=H.guid=H.guid||K.guid||i.guid++;
|
248
|
+
var R=E.match(/^(\w+)\s*(.*)$/),g=R[1]+x.eventNamespace;(R=R[2])?x.widget().delegate(R,g,K):r.bind(g,K)})},_off:function(r,o){o=(o||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;r.unbind(o).undelegate(o)},_delay:function(r,o){var x=this;return setTimeout(function(){return(typeof r==="string"?x[r]:r).apply(x,arguments)},o||0)},_hoverable:function(r){this.hoverable=this.hoverable.add(r);this._on(r,{mouseenter:function(o){i(o.currentTarget).addClass("ui-state-hover")},mouseleave:function(o){i(o.currentTarget).removeClass("ui-state-hover")}})},
|
249
|
+
_focusable:function(r){this.focusable=this.focusable.add(r);this._on(r,{focusin:function(o){i(o.currentTarget).addClass("ui-state-focus")},focusout:function(o){i(o.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(r,o,x){var E,H=this.options[r];x=x||{};o=i.Event(o);o.type=(r===this.widgetEventPrefix?r:this.widgetEventPrefix+r).toLowerCase();o.target=this.element[0];if(r=o.originalEvent)for(E in r)E in o||(o[E]=r[E]);this.element.trigger(o,x);return!(i.isFunction(H)&&H.apply(this.element[0],
|
250
|
+
[o].concat(x))===false||o.isDefaultPrevented())}};i.each({show:"fadeIn",hide:"fadeOut"},function(r,o){i.Widget.prototype["_"+r]=function(x,E,H){if(typeof E==="string")E={effect:E};var K,R=!E?r:E===true||typeof E==="number"?o:E.effect||o;E=E||{};if(typeof E==="number")E={duration:E};K=!i.isEmptyObject(E);E.complete=H;E.delay&&x.delay(E.delay);if(K&&i.effects&&(i.effects.effect[R]||i.uiBackCompat!==false&&i.effects[R]))x[r](E);else R!==r&&x[R]?x[R](E.duration,E.easing,H):x.queue(function(g){i(this)[r]();
|
251
|
+
H&&H.call(x[0]);g()})}});if(i.uiBackCompat!==false)i.Widget.prototype._getCreateOptions=function(){return i.metadata&&i.metadata.get(this.element[0])[this.widgetName]}})(jQuery);(function(i,v){function n(D,G,k){return[parseInt(D[0],10)*(g.test(D[0])?G/100:1),parseInt(D[1],10)*(g.test(D[1])?k/100:1)]}function s(D,G){return parseInt(i.css(D,G),10)||0}i.ui=i.ui||{};var z,r=Math.max,o=Math.abs,x=Math.round,E=/left|center|right/,H=/top|center|bottom/,K=/[\+\-]\d+%?/,R=/^\w+/,g=/%$/,S=i.fn.position;i.position={scrollbarWidth:function(){if(z!==v)return z;var D,G,k=i("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");
|
252
|
+
G=k.children()[0];i("body").append(k);D=G.offsetWidth;k.css("overflow","scroll");G=G.offsetWidth;if(D===G)G=k[0].clientWidth;k.remove();return z=D-G},getScrollInfo:function(D){var G=D.isWindow?"":D.element.css("overflow-x"),k=D.isWindow?"":D.element.css("overflow-y");k=k==="scroll"||k==="auto"&&D.height<D.element[0].scrollHeight;return{width:G==="scroll"||G==="auto"&&D.width<D.element[0].scrollWidth?i.position.scrollbarWidth():0,height:k?i.position.scrollbarWidth():0}},getWithinInfo:function(D){D=
|
253
|
+
i(D||window);var G=i.isWindow(D[0]);return{element:D,isWindow:G,offset:D.offset()||{left:0,top:0},scrollLeft:D.scrollLeft(),scrollTop:D.scrollTop(),width:G?D.width():D.outerWidth(),height:G?D.height():D.outerHeight()}}};i.fn.position=function(D){if(!D||!D.of)return S.apply(this,arguments);D=i.extend({},D);var G,k,p,C,O,P=i(D.of),oa=i.position.getWithinInfo(D.within),ma=i.position.getScrollInfo(oa),la=P[0],Ha=(D.collision||"flip").split(" "),Ya={};if(la.nodeType===9){k=P.width();p=P.height();C={top:0,
|
254
|
+
left:0}}else if(i.isWindow(la)){k=P.width();p=P.height();C={top:P.scrollTop(),left:P.scrollLeft()}}else if(la.preventDefault){D.at="left top";k=p=0;C={top:la.pageY,left:la.pageX}}else{k=P.outerWidth();p=P.outerHeight();C=P.offset()}O=i.extend({},C);i.each(["my","at"],function(){var ia=(D[this]||"").split(" "),Ja,Ba;if(ia.length===1)ia=E.test(ia[0])?ia.concat(["center"]):H.test(ia[0])?["center"].concat(ia):["center","center"];ia[0]=E.test(ia[0])?ia[0]:"center";ia[1]=H.test(ia[1])?ia[1]:"center";Ja=
|
255
|
+
K.exec(ia[0]);Ba=K.exec(ia[1]);Ya[this]=[Ja?Ja[0]:0,Ba?Ba[0]:0];D[this]=[R.exec(ia[0])[0],R.exec(ia[1])[0]]});if(Ha.length===1)Ha[1]=Ha[0];if(D.at[0]==="right")O.left+=k;else if(D.at[0]==="center")O.left+=k/2;if(D.at[1]==="bottom")O.top+=p;else if(D.at[1]==="center")O.top+=p/2;G=n(Ya.at,k,p);O.left+=G[0];O.top+=G[1];return this.each(function(){var ia,Ja,Ba=i(this),Ia=Ba.outerWidth(),Ka=Ba.outerHeight(),sa=s(this,"marginLeft"),Ra=s(this,"marginTop"),nb=Ia+sa+s(this,"marginRight")+ma.width,ob=Ka+Ra+
|
256
|
+
s(this,"marginBottom")+ma.height,ja=i.extend({},O),Q=n(Ya.my,Ba.outerWidth(),Ba.outerHeight());if(D.my[0]==="right")ja.left-=Ia;else if(D.my[0]==="center")ja.left-=Ia/2;if(D.my[1]==="bottom")ja.top-=Ka;else if(D.my[1]==="center")ja.top-=Ka/2;ja.left+=Q[0];ja.top+=Q[1];if(!i.support.offsetFractions){ja.left=x(ja.left);ja.top=x(ja.top)}ia={marginLeft:sa,marginTop:Ra};i.each(["left","top"],function(Za,La){i.ui.position[Ha[Za]]&&i.ui.position[Ha[Za]][La](ja,{targetWidth:k,targetHeight:p,elemWidth:Ia,
|
257
|
+
elemHeight:Ka,collisionPosition:ia,collisionWidth:nb,collisionHeight:ob,offset:[G[0]+Q[0],G[1]+Q[1]],my:D.my,at:D.at,within:oa,elem:Ba})});i.fn.bgiframe&&Ba.bgiframe();if(D.using)Ja=function(Za){var La=C.left-ja.left,hb=La+k-Ia,$a=C.top-ja.top,ab=$a+p-Ka,Ca={target:{element:P,left:C.left,top:C.top,width:k,height:p},element:{element:Ba,left:ja.left,top:ja.top,width:Ia,height:Ka},horizontal:hb<0?"left":La>0?"right":"center",vertical:ab<0?"top":$a>0?"bottom":"middle"};if(k<Ia&&o(La+hb)<k)Ca.horizontal=
|
258
|
+
"center";if(p<Ka&&o($a+ab)<p)Ca.vertical="middle";Ca.important=r(o(La),o(hb))>r(o($a),o(ab))?"horizontal":"vertical";D.using.call(this,Za,Ca)};Ba.offset(i.extend(ja,{using:Ja}))})};i.ui.position={fit:{left:function(D,G){var k=G.within,p=k.isWindow?k.scrollLeft:k.offset.left,C=k.width,O=D.left-G.collisionPosition.marginLeft;k=p-O;var P=O+G.collisionWidth-C-p;if(G.collisionWidth>C)if(k>0&&P<=0){p=D.left+k+G.collisionWidth-C-p;D.left+=k-p}else D.left=P>0&&k<=0?p:k>P?p+C-G.collisionWidth:p;else if(k>
|
259
|
+
0)D.left+=k;else if(P>0)D.left-=P;else D.left=r(D.left-O,D.left)},top:function(D,G){var k=G.within,p=k.isWindow?k.scrollTop:k.offset.top,C=G.within.height,O=D.top-G.collisionPosition.marginTop;k=p-O;var P=O+G.collisionHeight-C-p;if(G.collisionHeight>C)if(k>0&&P<=0){p=D.top+k+G.collisionHeight-C-p;D.top+=k-p}else D.top=P>0&&k<=0?p:k>P?p+C-G.collisionHeight:p;else if(k>0)D.top+=k;else if(P>0)D.top-=P;else D.top=r(D.top-O,D.top)}},flip:{left:function(D,G){var k=G.within,p=k.offset.left+k.scrollLeft,
|
260
|
+
C=k.width,O=k.isWindow?k.scrollLeft:k.offset.left,P=D.left-G.collisionPosition.marginLeft;k=P-O;var oa=P+G.collisionWidth-C-O;P=G.my[0]==="left"?-G.elemWidth:G.my[0]==="right"?G.elemWidth:0;var ma=G.at[0]==="left"?G.targetWidth:G.at[0]==="right"?-G.targetWidth:0,la=-2*G.offset[0];if(k<0){p=D.left+P+ma+la+G.collisionWidth-C-p;if(p<0||p<o(k))D.left+=P+ma+la}else if(oa>0){p=D.left-G.collisionPosition.marginLeft+P+ma+la-O;if(p>0||o(p)<oa)D.left+=P+ma+la}},top:function(D,G){var k=G.within,p=k.offset.top+
|
261
|
+
k.scrollTop,C=k.height,O=k.isWindow?k.scrollTop:k.offset.top,P=D.top-G.collisionPosition.marginTop;k=P-O;var oa=P+G.collisionHeight-C-O;P=G.my[1]==="top"?-G.elemHeight:G.my[1]==="bottom"?G.elemHeight:0;var ma=G.at[1]==="top"?G.targetHeight:G.at[1]==="bottom"?-G.targetHeight:0,la=-2*G.offset[1];if(k<0){p=D.top+P+ma+la+G.collisionHeight-C-p;if(D.top+P+ma+la>k&&(p<0||p<o(k)))D.top+=P+ma+la}else if(oa>0){p=D.top-G.collisionPosition.marginTop+P+ma+la-O;if(D.top+P+ma+la>oa&&(p>0||o(p)<oa))D.top+=P+ma+la}}},
|
262
|
+
flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments);i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments);i.ui.position.fit.top.apply(this,arguments)}}};(function(){var D,G,k,p,C=document.getElementsByTagName("body")[0];k=document.createElement("div");D=document.createElement(C?"div":"body");G={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};C&&i.extend(G,{position:"absolute",left:"-1000px",top:"-1000px"});
|
263
|
+
for(p in G)D.style[p]=G[p];D.appendChild(k);G=C||document.documentElement;G.insertBefore(D,G.firstChild);k.style.cssText="position: absolute; left: 10.7432222px;";k=i(k).offset().left;i.support.offsetFractions=k>10&&k<11;D.innerHTML="";G.removeChild(D)})();i.uiBackCompat!==false&&function(D){var G=D.fn.position;D.fn.position=function(k){if(!k||!k.offset)return G.call(this,k);var p=k.offset.split(" "),C=k.at.split(" ");if(p.length===1)p[1]=p[0];if(/^\d/.test(p[0]))p[0]="+"+p[0];if(/^\d/.test(p[1]))p[1]=
|
264
|
+
"+"+p[1];if(C.length===1)if(/left|center|right/.test(C[0]))C[1]="center";else{C[1]=C[0];C[0]="center"}return G.call(this,D.extend(k,{at:C[0]+p[0]+" "+C[1]+p[1],offset:v}))}}(jQuery)})(jQuery);(function(i){var v=false;i.widget("ui.menu",{version:"1.9.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,
|
265
|
+
i.proxy(function(n){this.options.disabled&&n.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(n){n.preventDefault()},"click .ui-state-disabled > a":function(n){n.preventDefault()},"click .ui-menu-item:has(a)":function(n){var s=i(n.target).closest(".ui-menu-item");if(!v&&s.not(".ui-state-disabled").length){v=true;this.select(n);if(s.has(".ui-menu").length)this.expand(n);else if(!this.element.is(":focus")){this.element.trigger("focus",
|
266
|
+
[true]);this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(n){var s=i(n.currentTarget);s.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(n,s)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,s){var z=this.active||this.element.children(".ui-menu-item").eq(0);s||this.focus(n,z)},blur:function(n){this._delay(function(){i.contains(this.element[0],this.document[0].activeElement)||
|
267
|
+
this.collapseAll(n)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){i(n.target).closest(".ui-menu").length||this.collapseAll(n);v=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
|
268
|
+
this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var n=i(this);n.data("ui-menu-submenu-carat")&&n.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(n){function s(H){return H.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
|
269
|
+
"\\$&")}var z,r,o,x,E=true;switch(n.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(n);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(n);break;case i.ui.keyCode.HOME:this._move("first","first",n);break;case i.ui.keyCode.END:this._move("last","last",n);break;case i.ui.keyCode.UP:this.previous(n);break;case i.ui.keyCode.DOWN:this.next(n);break;case i.ui.keyCode.LEFT:this.collapse(n);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(n);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(n);
|
270
|
+
break;case i.ui.keyCode.ESCAPE:this.collapse(n);break;default:E=false;z=this.previousFilter||"";r=String.fromCharCode(n.keyCode);o=false;clearTimeout(this.filterTimer);if(r===z)o=true;else r=z+r;x=RegExp("^"+s(r),"i");z=this.activeMenu.children(".ui-menu-item").filter(function(){return x.test(i(this).children("a").text())});z=o&&z.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):z;if(!z.length){r=String.fromCharCode(n.keyCode);x=RegExp("^"+s(r),"i");z=this.activeMenu.children(".ui-menu-item").filter(function(){return x.test(i(this).children("a").text())})}if(z.length){this.focus(n,
|
271
|
+
z);if(z.length>1){this.previousFilter=r;this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)}else delete this.previousFilter}else delete this.previousFilter}E&&n.preventDefault()},_activate:function(n){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var n,s=this.options.icons.submenu,z=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
|
272
|
+
"aria-hidden":"true","aria-expanded":"false"});n=z.add(this.element);n.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});n.children(":not(.ui-menu-item)").each(function(){var r=i(this);/[^\-\u2014\u2013\s]/.test(r.text())||r.addClass("ui-widget-content ui-menu-divider")});n.children(".ui-state-disabled").attr("aria-disabled","true");z.each(function(){var r=i(this),
|
273
|
+
o=r.prev("a"),x=i("<span>").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",true);o.attr("aria-haspopup","true").prepend(x);r.attr("aria-labelledby",o.attr("id"))});this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(n,s){var z;this.blur(n,n&&n.type==="focus");this._scrollIntoView(s);this.active=s.first();z=this.active.children("a").addClass("ui-state-focus");this.options.role&&
|
274
|
+
this.element.attr("aria-activedescendant",z.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(n&&n.type==="keydown")this._close();else this.timer=this._delay(function(){this._close()},this.delay);z=s.children(".ui-menu");z.length&&/^mouse/.test(n.type)&&this._startOpening(z);this.activeMenu=s.parent();this._trigger("focus",n,{item:s})},_scrollIntoView:function(n){var s,z,r;if(this._hasScroll()){s=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||
|
275
|
+
0;z=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0;s=n.offset().top-this.activeMenu.offset().top-s-z;z=this.activeMenu.scrollTop();r=this.activeMenu.height();n=n.height();if(s<0)this.activeMenu.scrollTop(z+s);else s+n>r&&this.activeMenu.scrollTop(z+s-r+n)}},blur:function(n,s){s||clearTimeout(this.timer);if(this.active){this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",n,{item:this.active})}},_startOpening:function(n){clearTimeout(this.timer);if(n.attr("aria-hidden")===
|
276
|
+
"true")this.timer=this._delay(function(){this._close();this._open(n)},this.delay)},_open:function(n){var s=i.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(n.parents(".ui-menu")).hide().attr("aria-hidden","true");n.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(s)},collapseAll:function(n,s){clearTimeout(this.timer);this.timer=this._delay(function(){var z=s?this.element:i(n&&n.target).closest(this.element.find(".ui-menu"));
|
277
|
+
if(!z.length)z=this.element;this._close(z);this.blur(n);this.activeMenu=z},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(n){var s=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(s&&s.length){this._close();this.focus(n,s)}},expand:function(n){var s=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
|
278
|
+
if(s&&s.length){this._open(s.parent());this._delay(function(){this.focus(n,s)})}},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,s,z){var r;if(this.active)r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+
|
279
|
+
"All"](".ui-menu-item").eq(0);if(!r||!r.length||!this.active)r=this.activeMenu.children(".ui-menu-item")[s]();this.focus(z,r)},nextPage:function(n){var s,z,r;if(this.active){if(!this.isLastItem())if(this._hasScroll()){z=this.active.offset().top;r=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){s=i(this);return s.offset().top-z-r<0});this.focus(n,s)}else this.focus(n,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())}else this.next(n)},previousPage:function(n){var s,
|
280
|
+
z,r;if(this.active){if(!this.isFirstItem())if(this._hasScroll()){z=this.active.offset().top;r=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){s=i(this);return s.offset().top-z+r>0});this.focus(n,s)}else this.focus(n,this.activeMenu.children(".ui-menu-item").first())}else this.next(n)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(n){this.active=this.active||i(n.target).closest(".ui-menu-item");var s={item:this.active};
|
281
|
+
this.active.has(".ui-menu").length||this.collapseAll(n,true);this._trigger("select",n,s)}})})(jQuery);(function(i){var v=0;i.widget("ui.autocomplete",{version:"1.9.0",defaultElement:"<input>",options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var n,s,z;this.isMultiLine=this._isMultiLine();this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete",
|
282
|
+
"off");this._on({keydown:function(r){if(this.element.prop("readOnly"))s=z=n=true;else{s=z=n=false;var o=i.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:n=true;this._move("previousPage",r);break;case o.PAGE_DOWN:n=true;this._move("nextPage",r);break;case o.UP:n=true;this._keyEvent("previous",r);break;case o.DOWN:n=true;this._keyEvent("next",r);break;case o.ENTER:case o.NUMPAD_ENTER:if(this.menu.active){n=true;r.preventDefault();this.menu.select(r)}break;case o.TAB:this.menu.active&&this.menu.select(r);
|
283
|
+
break;case o.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(r);r.preventDefault()}break;default:s=true;this._searchTimeout(r);break}}},keypress:function(r){if(n){n=false;r.preventDefault()}else if(!s){var o=i.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:this._move("previousPage",r);break;case o.PAGE_DOWN:this._move("nextPage",r);break;case o.UP:this._keyEvent("previous",r);break;case o.DOWN:this._keyEvent("next",r);break}}},input:function(r){if(z){z=false;r.preventDefault()}else this._searchTimeout(r)},
|
284
|
+
focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(r){if(this.cancelBlur)delete this.cancelBlur;else{clearTimeout(this.searching);this.close(r);this._change(r)}}});this._initSource();this.menu=i("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:i(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu");this._on(this.menu.element,{mousedown:function(r){r.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});
|
285
|
+
var o=this.menu.element[0];i(r.target).closest(".ui-menu-item").length||this._delay(function(){var x=this;this.document.one("mousedown",function(E){E.target!==x.element[0]&&E.target!==o&&!i.contains(o,E.target)&&x.close()})})},menufocus:function(r,o){if(this.isNewMenu){this.isNewMenu=false;if(r.originalEvent&&/^mouse/.test(r.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){i(r.target).trigger(r.originalEvent)});return}}var x=o.item.data("ui-autocomplete-item")||o.item.data("item.autocomplete");
|
286
|
+
if(false!==this._trigger("focus",r,{item:x}))r.originalEvent&&/^key/.test(r.originalEvent.type)&&this._value(x.value);else this.liveRegion.text(x.value)},menuselect:function(r,o){var x=o.item.data("ui-autocomplete-item")||o.item.data("item.autocomplete"),E=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=E;this._delay(function(){this.previous=E;this.selectedItem=x})}false!==this._trigger("select",r,{item:x})&&this._value(x.value);this.term=this._value();
|
287
|
+
this.close(r);this.selectedItem=x}});this.liveRegion=i("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element);i.fn.bgiframe&&this.menu.element.bgiframe();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,
|
288
|
+
s){this._super(n,s);n==="source"&&this._initSource();if(n==="appendTo")this.menu.element.appendTo(this.document.find(s||"body")[0]);n==="disabled"&&s&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){if(this.element.is("textarea"))return true;if(this.element.is("input"))return false;return this.element.prop("isContentEditable")},_initSource:function(){var n,s,z=this;if(i.isArray(this.options.source)){n=this.options.source;this.source=function(r,o){o(i.ui.autocomplete.filter(n,r.term))}}else if(typeof this.options.source===
|
289
|
+
"string"){s=this.options.source;this.source=function(r,o){z.xhr&&z.xhr.abort();z.xhr=i.ajax({url:s,data:r,dataType:"json",success:function(x){o(x)},error:function(){o([])}})}}else this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value()){this.selectedItem=null;this.search(null,n)}},this.options.delay)},search:function(n,s){n=n!=null?n:this._value();this.term=this._value();if(n.length<this.options.minLength)return this.close(s);
|
290
|
+
if(this._trigger("search",s)!==false)return this._search(n)},_search:function(n){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:n},this._response())},_response:function(){var n=this,s=++v;return function(z){s===v&&n.__response(z);n.pending--;n.pending||n.element.removeClass("ui-autocomplete-loading")}},__response:function(n){if(n)n=this._normalize(n);this._trigger("response",null,{content:n});if(!this.options.disabled&&n&&n.length&&!this.cancelSearch){this._suggest(n);
|
291
|
+
this._trigger("open")}else this._close()},close:function(n){this.cancelSearch=true;this._close(n)},_close:function(n){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",n)}},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(n){if(n.length&&n[0].label&&n[0].value)return n;return i.map(n,function(s){if(typeof s==="string")return{label:s,value:s};return i.extend({label:s.label||
|
292
|
+
s.value,value:s.value||s.label},s)})},_suggest:function(n){var s=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(s,n);this.menu.refresh();s.show();this._resizeMenu();s.position(i.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,s){var z=this;i.each(s,function(r,o){z._renderItemData(n,
|
293
|
+
o)})},_renderItemData:function(n,s){return this._renderItem(n,s).data("ui-autocomplete-item",s)},_renderItem:function(n,s){return i("<li>").append(i("<a>").text(s.label)).appendTo(n)},_move:function(n,s){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this._value(this.term);this.menu.blur()}else this.menu[n](s);else this.search(null,s)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,
|
294
|
+
arguments)},_keyEvent:function(n,s){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(n,s);s.preventDefault()}}});i.extend(i.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(n,s){var z=RegExp(i.ui.autocomplete.escapeRegex(s),"i");return i.grep(n,function(r){return z.test(r.label||r.value||r)})}});i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+
|
295
|
+
(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(n){this._superApply(arguments);this.options.disabled||this.cancelSearch||this.liveRegion.text(n&&n.length?this.options.messages.results(n.length):this.options.messages.noResults)}})})(jQuery);(function(i){function v(o){if(typeof o!="string"&&typeof o!="number")throw new TypeError("Key name must be string or numeric");}function n(){try{s.oleloStorage=JSON.stringify(z)}catch(o){}}var s={},z={};try{if(window.localStorage)s=window.localStorage;if(s.oleloStorage)z=JSON.parse(s.oleloStorage)}catch(r){}i.storage={set:function(o,x){v(o);z[o]=x;n();return x},get:function(o,x){v(o);if(o in z)return z[o];return typeof x=="undefined"?null:x},remove:function(o){v(o);if(o in z){delete z[o];n();return true}return false}}})(jQuery);(function(i){function v(z,r){var o=s[z];return o&&o[r]}var n=null,s={};i.translations=function(z){for(var r in z)if(s[r])for(var o in z[r])s[r][o]=z[r][o];else s[r]=z[r]};i.t=function(z,r){if(!n){var o=i("html");n=o.attr("lang")||o.attr("xml:lang")||"en"}var x;o=v(n,z);if(!o&&(x=n.indexOf("-")))o=v(n.substr(0,x),z);if(o){for(var E in r)o=o.replace(RegExp("#{"+E+"}","g"),r[E]);return o}return"#"+z}})(jQuery);(function(i){function v(){var z=false;switch(this.type){case "checkbox":case "radio":z=this.checked!=this.defaultChecked;break;case "hidden":case "password":case "text":case "textarea":case "file":z=this.value!=this.defaultValue;break;case "select-one":case "select-multiple":for(var r=0;r<this.options.length&&!z;++r)z=this.options[r].selected!=this.options[r].defaultSelected;break}i("label[for="+this.id+"]").toggleClass("unsaved",z);i(this).toggleClass("unsaved",z)}function n(z){i("input.observe, textarea.observe, select.observe").each(function(){v.call(this)});
|
296
|
+
return i(".unsaved",z).size()!==0}i.translations({en:{confirmUnsaved:"The page was not saved. Continue?",pageUnsaved:"The page was not saved."},de:{confirmUnsaved:"Die Seite wurde nicht gespeichert. Fortsetzen?",pageUnsaved:"Die Seite wurde nicht gespeichert."},cs:{confirmUnsaved:"Str\u00e1nka nebyla ulo\u017eena. Pokra\u010dovat?",pageUnsaved:"Str\u00e1nka nebyla ulo\u017eena."},fr:{confirmUnsaved:"La page n'a pas \u00e9t\u00e9 enregistr\u00e9e. Voulez vous continuer ?",pageUnsaved:"La page n'a pas \u00e9t\u00e9 enregistr\u00e9e."}});
|
297
|
+
i.fn.confirmUnsaved=function(){return!n(this)||confirm(i.t("confirmUnsaved"))};i(document).on("change autocompletechange","input.observe, textarea.observe, select.observe",v);var s=false;i(document).on("submit","form",function(){s=true}).bind("reset",function(){i(".unsaved",this).removeClass("unsaved")});i(window).bind("beforeunload",function(){if(!s&&n(document))return i.t("pageUnsaved")})})(jQuery);(function(i){i.fn.historyTable=function(){function v(){var o=[];z.each(function(){this.checked&&o.push(this.name)});return o}i("thead tr",this).prepend('<th class="compare"><button>±</button></th>');i("tbody tr",this).each(function(){var o=i(this).attr("id").substr(8);i(this).prepend('<td class="compare"><input type="checkbox" name="'+o+'"/></td>')});var n=i.storage.get("historyTable");if(n)for(var s=0;s<n.length;++s)i("input[name="+n[s]+"]").attr("checked","checked");var z=i("tbody input",this),
|
298
|
+
r=i("th button",this);r.click(function(){var o=v();i.storage.set("historyTable",o);location.href=location.pathname.replace("/history","/compare/"+o[o.length-1]+"..."+o[0])});i("td input",this).change(function(){v().length>1?r.removeAttr("disabled"):r.attr("disabled","disabled")}).change()}})(jQuery);(function(i){i.fn.pagination=function(v){function n(z){s.load(z+(z.indexOf("?")<0?"?":"&")+"no_layout=1",function(){s.trigger("pageLoaded",[z])})}var s=this;i(document).on("click",v,function(){i(this).addClass("loading");History.enabled?History.pushState(null,document.title,this.href):n(this.href);return false});i(window).bind("statechange",function(){var z=History.getState();n(z.url)})}})(jQuery);(function(i){i.fn.tabWidget=function(v){var n=v&&v.store,s=null;i("> a[href^='#']",this).click(function(){if(s.data("tab")==i(this).data("tab"))return false;if(!s.data("tab").confirmUnsaved())return false;s.data("tab").hide();s.parent().removeClass("selected");s=i(this);s.data("tab").show();s.parent().addClass("selected");n&&i.storage.set(n,s.data("tab").attr("id"));return false});if(n)if(v=i.storage.get(n))s=i("> a[href='#"+v+"']",this);if(!s||s.size()===0)s=i(this).filter(".selected").find("> a[href^='#']");
|
299
|
+
if(!s||s.size()===0)s=i(this).filter(":first").find("> a[href^='#']");i("> a[href^='#']",this).each(function(){var z=i(this.href.match(/(#.*)$/)[1]);z.hide();i(this).data("tab",z)});this.removeClass("selected");s.parent().addClass("selected");s.data("tab").show()}})(jQuery);(function(i){function v(n){n=Math.floor(((new Date).getTime()-new Date(n*1E3))/6E4);if(n<=0)return i.t("less_than_a_minute_ago");if(n==1)return i.t("a_minute_ago");if(n<45)return i.t("n_minutes_ago",{n:n});if(n<90)return i.t("one_hour_ago");if(n<1440)return i.t("n_hours_ago",{n:Math.round(n/60)});if(n<2880)return i.t("one_day_ago");if(n<43200)return i.t("n_days_ago",{n:Math.round(n/1440)});if(n<86400)return i.t("one_month_ago");if(n<525960)return i.t("n_months_ago",{n:Math.round(n/43200)});if(n<1051920)return i.t("one_year_ago");
|
300
|
+
return i.t("over_n_years_ago",{n:Math.round(n/525960)})}i.translations({en:{less_than_a_minute_ago:"less than a minute ago",a_minute_ago:"a minute ago",n_minutes_ago:"#{n} minutes ago",one_hour_ago:"1 hour ago",n_hours_ago:"#{n} hours ago",one_day_ago:"1 day ago",n_days_ago:"#{n} days ago",one_month_ago:"1 month ago",n_months_ago:"#{n} months ago",one_year_ago:"1 year ago",over_n_years_ago:"over #{n} years ago"},de:{less_than_a_minute_ago:"vor weniger als einer Minute",a_minute_ago:"vor einer Minute",
|
263
301
|
n_minutes_ago:"vor #{n} Minuten",one_hour_ago:"vor einer Stunde",n_hours_ago:"vor #{n} Stunden",one_day_ago:"vor einem Tag",n_days_ago:"vor #{n} Tagen",one_month_ago:"vor einem Monat",n_months_ago:"vor #{n} Monaten",one_year_ago:"vor einem Jahr",over_n_years_ago:"vor \u00fcber #{n} Jahren"},cs:{less_than_a_minute_ago:"m\u00e9n\u011b ne\u017e 1 minuta",a_minute_ago:"p\u0159ed minutou",n_minutes_ago:"p\u0159ed #{n} minutami",one_hour_ago:"p\u0159ed hodinou",n_hours_ago:"p\u0159ed #{n} hodinami",one_day_ago:"jeden den",
|
264
|
-
n_days_ago:"p\u0159ed #{n} dny",one_month_ago:"jeden m\u011bs\u00edc",n_months_ago:"p\u0159ed #{n} m\u011bs\u00edci",one_year_ago:"1 rok",over_n_years_ago:"p\u0159ed #{n} lety"}
|
265
|
-
|
302
|
+
n_days_ago:"p\u0159ed #{n} dny",one_month_ago:"jeden m\u011bs\u00edc",n_months_ago:"p\u0159ed #{n} m\u011bs\u00edci",one_year_ago:"1 rok",over_n_years_ago:"p\u0159ed #{n} lety"},fr:{less_than_a_minute_ago:"il y a moins d'une minute",a_minute_ago:"il y a une minute",n_minutes_ago:"il y a #{n} minutes",one_hour_ago:"il y a 1 heure",n_hours_ago:"il y a #{n} heures",one_day_ago:"il y a 1 jour",n_days_ago:"il y a #{n} jours",one_month_ago:"il y a 1 mois",n_months_ago:"il y a #{n} mois",one_year_ago:"il y a 1 an",
|
303
|
+
over_n_years_ago:"il y a plus de #{n} ans"}});i.fn.timeAgo=function(){this.each(function(){var n=i(this),s=n.data("epoch");s&&n.attr("title",n.text()).html(v(s))})}})(jQuery);(function(i){i.extend(i.fn,{underlineText:function(v){this.each(function(){var n=i(this),s,z;if(n.children().size()===0){s=n.text();z=s.toLowerCase().indexOf(v.toLowerCase());z>=0&&n.html(s.substr(0,z)+'<span style="text-decoration: underline">'+s.substr(z,v.length)+"</span>"+s.substr(z+v.length))}else n.children().underlineText(v)})},underlineAccessKey:function(){this.each(function(){var v=i(this).attr("accesskey");v&&i(this).underlineText(v)})}})})(jQuery);(function(i){i.widget("ui.combobox",{_create:function(){var v=this.element;v.autocomplete({delay:0,minLength:0,source:this.options.source}).click(function(){v.autocomplete("widget").is(":visible")?v.autocomplete("close"):v.autocomplete("search",this.value)});i('<button class="ui-combo-button"/>').attr("tabIndex",-1).insertAfter(v).click(function(n){n.preventDefault();if(v.autocomplete("widget").is(":visible"))v.autocomplete("close");else{v.autocomplete("search","");v.focus()}})}})})(jQuery);$(function(){function i(){$("#upload-path",this).each(function(){var v=this,n=v.value,s=v.value;if(s.length===0||s.match(/\/$/))$("#upload-file").change(function(){if(v.value==n){v.value=s+this.value;n=v.value}})});$("label, #menu, .tabhead, .pagination, .button-bar",this).disableSelection();$("#history-table",this).historyTable();$(".date",this).timeAgo();$(".tabs",this).each(function(){$("> li",this).tabWidget()});$("*[accesskey]",this).underlineAccessKey()}$("html").removeClass("no-js").addClass("js");
|
304
|
+
$("#content").pagination(".pagination a");$("#content").bind("pageLoaded",i);i.apply($(document));$("button[data-target]").live("click",function(){var v=$(this),n=$(this.form);v.addClass("loading");$.ajax({type:n.attr("method")||"get",url:n.attr("action")||window.location.href,data:n.serialize()+"&"+v.attr("name")+"="+v.attr("value")+"&no_layout=1",success:function(s){$("#"+v.data("target")).html(s);v.removeClass("loading");window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,v.data("target")])}});
|
305
|
+
return false})});
|