olelo 0.9.3 → 0.9.4
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/.travis.yml +4 -0
- data/Rakefile +6 -12
- data/bin/olelo +13 -8
- data/config.ru +21 -15
- data/config/aspects.rb +45 -32
- data/config/config.yml.default +1 -0
- data/config/initializers/00-mime_types.rb +22 -17
- data/config/initializers/01-slim.rb +2 -2
- data/lib/olelo.rb +1 -8
- data/lib/olelo/application.rb +33 -34
- data/lib/olelo/attributes.rb +4 -4
- data/lib/olelo/extensions.rb +0 -7
- data/lib/olelo/helper.rb +13 -25
- data/lib/olelo/html_safe.rb +0 -4
- data/lib/olelo/locale.yml +6 -3
- data/lib/olelo/menu.rb +1 -1
- data/lib/olelo/page.rb +21 -18
- data/lib/olelo/version.rb +1 -1
- data/olelo.gemspec +5 -3
- data/plugins/aspects/changelog.rb +5 -5
- data/plugins/aspects/documentbrowser.rb +5 -5
- data/plugins/{gallery → aspects/gallery}/gallery.css +0 -0
- data/plugins/{gallery → aspects/gallery}/gallery.scss +0 -0
- data/plugins/{gallery → aspects/gallery}/main.rb +3 -3
- data/plugins/aspects/highlight.rb +1 -1
- data/plugins/aspects/image.rb +1 -1
- data/plugins/aspects/imageinfo.rb +3 -3
- data/plugins/aspects/main.rb +21 -21
- data/plugins/aspects/pageinfo.rb +2 -2
- data/plugins/aspects/source.rb +1 -1
- data/plugins/aspects/subpages.rb +7 -7
- data/plugins/aspects/text.rb +1 -1
- data/plugins/authentication/portal.rb +2 -2
- data/plugins/authentication/yamlfile.rb +1 -1
- data/plugins/blog/main.rb +10 -10
- data/plugins/editor/preview.rb +3 -3
- data/plugins/filters/creole.rb +1 -1
- data/plugins/filters/editsection.rb +2 -2
- data/plugins/filters/html2xml.rb +6 -0
- data/plugins/filters/main.rb +1 -1
- data/plugins/filters/remind/main.rb +15 -0
- data/plugins/filters/remind/rem2html +562 -0
- data/plugins/filters/s5/main.rb +1 -1
- data/plugins/login/persistent.rb +1 -1
- data/plugins/misc/system.rb +4 -0
- data/plugins/misc/variables.rb +1 -1
- data/plugins/misc/webdav.rb +10 -10
- data/plugins/repositories/git_grep.rb +2 -2
- data/plugins/repositories/gitrb_repository.rb +10 -10
- data/plugins/repositories/rugged_repository.rb +7 -7
- data/plugins/tags/code.rb +1 -1
- data/plugins/tags/footnotes.rb +4 -3
- data/plugins/tags/gist.rb +2 -2
- data/plugins/tags/html.rb +11 -11
- data/plugins/tags/include.rb +6 -6
- data/plugins/tags/main.rb +10 -10
- data/plugins/tags/math.rb +2 -2
- data/plugins/tags/redirect.rb +3 -3
- data/plugins/tags/scripting.rb +12 -12
- data/plugins/tags/sort.rb +1 -1
- data/plugins/tags/tabs.rb +1 -1
- data/plugins/treeview/main.rb +3 -3
- data/plugins/treeview/script.js +5 -5
- data/plugins/treeview/script/00-jquery.treeview.js +6 -6
- data/plugins/treeview/script/init.js +1 -1
- data/plugins/utils/assets.rb +4 -4
- data/plugins/utils/cache.rb +10 -6
- data/plugins/utils/store.rb +4 -4
- data/static/script.js +124 -126
- data/static/script/{02-jquery.js → 01-jquery.js} +0 -0
- data/static/script/02-olelo.storage.js +54 -0
- data/static/script/10-olelo.historytable.js +2 -2
- data/static/script/13-olelo.tabwidget.js +2 -2
- data/test/helper.rb +5 -4
- data/test/page_test.rb +1 -1
- data/test/request_test.rb +42 -38
- data/test/string_extensions_test.rb +0 -6
- data/test/templates_test.rb +1 -1
- data/test/util_test.rb +1 -1
- data/views/changes.slim +2 -2
- data/views/compare.slim +4 -4
- data/views/delete.slim +2 -2
- data/views/deleted.slim +1 -1
- data/views/edit.slim +31 -26
- data/views/history.slim +5 -5
- data/views/layout.slim +1 -1
- data/views/login.slim +30 -32
- data/views/move.slim +3 -3
- data/views/profile.slim +2 -2
- data/views/show.slim +1 -1
- metadata +43 -104
- data/static/script/01-jstorage.js +0 -217
data/plugins/tags/sort.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
description 'Tag which creates sorted list'
|
2
2
|
|
3
|
-
Tag.define :sort, :
|
3
|
+
Tag.define :sort, optional: %w(ordered descending) do |context, attrs, content|
|
4
4
|
type = attrs['ordered'] == 'ordered' ? 'ol' : 'ul'
|
5
5
|
order = attrs['descending'] == 'descending' ? -1 : 1
|
6
6
|
%{<#{type}>#{content.strip.split(/\n/).sort {|a,b| (a <=> b) * order }.map {|x| "<li>#{escape_html x}</li>"}.join}</#{type}>}
|
data/plugins/tags/tabs.rb
CHANGED
@@ -13,7 +13,7 @@ Tag.define :tabs do |context, attrs, content|
|
|
13
13
|
%{<ul class="tabs">#{li.join}</ul>} + content
|
14
14
|
end
|
15
15
|
|
16
|
-
Tag.define :tab, :
|
16
|
+
Tag.define :tab, requires: 'name' do |context, attrs, content|
|
17
17
|
raise '<tab> can only be used in <tabs>' if !context[:tabs]
|
18
18
|
context[:tabs] << attrs['name']
|
19
19
|
%{<div class="tab" id="tab-#{context[:tabs_prefix]}-#{context[:tabs].size - 1}">#{subfilter(context, content)}</div>}
|
data/plugins/treeview/main.rb
CHANGED
@@ -3,14 +3,14 @@ dependencies 'aspects', 'utils/assets', 'misc/variables'
|
|
3
3
|
export_scripts '*.js', '*.css'
|
4
4
|
export_assets 'images/*'
|
5
5
|
|
6
|
-
Aspects::Aspect.create(
|
6
|
+
Aspects::Aspect.create(:treeview, hidden: true, cacheable: true, mime: 'application/json; charset=utf-8') do
|
7
7
|
def call(context, page)
|
8
8
|
# Format [[has-children, classes, path, name], ...]
|
9
9
|
# Example: [[0, 'file-type-pdf', '/a/b.pdf', 'b.pdf'], ...]
|
10
|
-
page.children.map do |child|
|
10
|
+
MultiJson.dump(page.children.map do |child|
|
11
11
|
classes = child.children.empty? ? 'page' : 'folder'
|
12
12
|
classes << " file-type-#{child.extension.downcase}" if !child.extension.empty?
|
13
13
|
[child.children.empty? ? 0 : 1, classes, build_path(child), child.name]
|
14
|
-
end
|
14
|
+
end)
|
15
15
|
end
|
16
16
|
end
|
data/plugins/treeview/script.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
(function(
|
2
|
-
f.removeClass("expanded").addClass("collapsed")}l(e,f.hasClass("expanded"));return false});if(a.stateStore&&
|
3
|
-
if(j[h])delete j[h];else k.remove();o.push(
|
4
|
-
d(i);g&&
|
5
|
-
$("#treeview").treeView({stateStore:"treeview-state",cacheStore:"treeview-cache",root:Olelo.base_path,ajax:function(
|
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
|
+
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
|
+
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>");$("#sidebar-tab-menu, #sidebar-tab-tree").tabWidget({store:"sidebar-tab"});
|
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"})}})});
|
@@ -25,19 +25,19 @@
|
|
25
25
|
// Store if node is expanded
|
26
26
|
function setExpanded(path, expanded) {
|
27
27
|
if (options.stateStore) {
|
28
|
-
var state =
|
28
|
+
var state = $.storage.get(options.stateStore, []);
|
29
29
|
if (!expanded) {
|
30
30
|
state = $.grep(state, function(n, i) { return n != path; });
|
31
31
|
} else if ($.inArray(path, state) < 0) {
|
32
32
|
state.push(path);
|
33
33
|
}
|
34
|
-
|
34
|
+
$.storage.set(options.stateStore, state);
|
35
35
|
}
|
36
36
|
}
|
37
37
|
|
38
38
|
// Check if node is expanded
|
39
39
|
function isExpanded(path) {
|
40
|
-
return options.stateStore && $.inArray(path,
|
40
|
+
return options.stateStore && $.inArray(path, $.storage.get(options.stateStore, [])) >= 0;
|
41
41
|
}
|
42
42
|
|
43
43
|
// Create child element.
|
@@ -74,7 +74,7 @@
|
|
74
74
|
// Store json in cache
|
75
75
|
function store(data) {
|
76
76
|
if (cacheKey) {
|
77
|
-
|
77
|
+
$.storage.set(cacheKey, data);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
@@ -126,7 +126,7 @@
|
|
126
126
|
setTimeout(function() {
|
127
127
|
options.ajax(path, dataUpdated, function() {
|
128
128
|
if (cacheKey) {
|
129
|
-
|
129
|
+
$.storage.remove(cacheKey);
|
130
130
|
}
|
131
131
|
});
|
132
132
|
}, options.delay);
|
@@ -138,7 +138,7 @@
|
|
138
138
|
update();
|
139
139
|
} else {
|
140
140
|
// Try to load from cache
|
141
|
-
var data = cacheKey ?
|
141
|
+
var data = cacheKey ? $.storage.get(cacheKey) : null;
|
142
142
|
if (data) {
|
143
143
|
dataLoaded(data);
|
144
144
|
update();
|
@@ -22,6 +22,6 @@ $(function() {
|
|
22
22
|
'</a></li><li id="sidebar-tab-tree"><a href="#sidebar-tree">' + $.t('tree') + '</a></li></ul>');
|
23
23
|
$('#sidebar-tab-menu, #sidebar-tab-tree').tabWidget({store: 'sidebar-tab'});
|
24
24
|
$('#treeview').treeView({stateStore: 'treeview-state', cacheStore: 'treeview-cache', root: Olelo.base_path, ajax: function(path, success, error) {
|
25
|
-
$.ajax({url: path, data: { aspect: 'treeview
|
25
|
+
$.ajax({url: path, data: { aspect: 'treeview' }, success: success, error: error, dataType: 'json'});
|
26
26
|
}});
|
27
27
|
});
|
data/plugins/utils/assets.rb
CHANGED
@@ -26,9 +26,9 @@ class ::Olelo::Application
|
|
26
26
|
result
|
27
27
|
end
|
28
28
|
|
29
|
-
get "/_/assets/assets.:type", :
|
29
|
+
get "/_/assets/assets.:type", type: 'js|css' do
|
30
30
|
if script = Application.scripts[params[:type]]
|
31
|
-
cache_control :
|
31
|
+
cache_control last_modified: script.first, max_age: :static
|
32
32
|
response['Content-Type'] = MimeMagic.by_extension(params[:type]).to_s
|
33
33
|
response['Content-Length'] = script.last.bytesize.to_s
|
34
34
|
script.last
|
@@ -37,14 +37,14 @@ class ::Olelo::Application
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
get "/_/assets/:name", :
|
40
|
+
get "/_/assets/:name", name: '.*' do
|
41
41
|
if asset = Application.assets[params[:name]]
|
42
42
|
if path = asset.real_path
|
43
43
|
file = Rack::File.new(nil)
|
44
44
|
file.path = path
|
45
45
|
file.serving(env)
|
46
46
|
else
|
47
|
-
cache_control :
|
47
|
+
cache_control last_modified: asset.mtime, max_age: :static
|
48
48
|
response['Content-Type'] = (MimeMagic.by_path(asset.name) || 'application/octet-stream').to_s
|
49
49
|
response['Content-Length'] = asset.size.to_s
|
50
50
|
asset.read
|
data/plugins/utils/cache.rb
CHANGED
@@ -17,14 +17,18 @@ class Cache
|
|
17
17
|
# * :update Force cache update
|
18
18
|
# * :defer Deferred cache update
|
19
19
|
def cache(key, options = {}, &block)
|
20
|
-
if options[:disable] || !Config['production']
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
@store[key]
|
20
|
+
return yield(self) if options[:disable] || !Config['production']
|
21
|
+
|
22
|
+
# Warning: don't change this. This must be thread safe!
|
23
|
+
if options[:update]
|
24
|
+
if options[:defer] && ((value = @store[key]) || @store.key?(key)) # Check key? because value could be nil
|
25
|
+
Worker.defer { update(key, options, &block) }
|
26
|
+
return value
|
27
|
+
end
|
25
28
|
else
|
26
|
-
|
29
|
+
return value if (value = @store[key]) || @store.key?(key) # Check key? because value could be nil
|
27
30
|
end
|
31
|
+
update(key, options, &block)
|
28
32
|
end
|
29
33
|
|
30
34
|
def clear
|
data/plugins/utils/store.rb
CHANGED
@@ -133,7 +133,7 @@ class Store
|
|
133
133
|
|
134
134
|
def initialize(config)
|
135
135
|
require 'memcached'
|
136
|
-
@server = ::Memcached.new(config[:server], :
|
136
|
+
@server = ::Memcached.new(config[:server], prefix_key: (config[:prefix] rescue nil))
|
137
137
|
end
|
138
138
|
|
139
139
|
# @override
|
@@ -177,7 +177,7 @@ class Store
|
|
177
177
|
|
178
178
|
def initialize(config)
|
179
179
|
require 'dalli'
|
180
|
-
@server = ::Dalli::Client.new(config[:server], :
|
180
|
+
@server = ::Dalli::Client.new(config[:server], namespace: (config[:prefix] rescue nil))
|
181
181
|
end
|
182
182
|
|
183
183
|
# @override
|
@@ -278,7 +278,7 @@ class Store
|
|
278
278
|
path = store_path(key)
|
279
279
|
FileUtils.mkpath(::File.dirname(path))
|
280
280
|
::File.unlink(path) if ::File.exist?(path)
|
281
|
-
|
281
|
+
::File.rename(temp_file, path)
|
282
282
|
rescue
|
283
283
|
::File.unlink(temp_file) rescue nil
|
284
284
|
ensure
|
@@ -296,7 +296,7 @@ class Store
|
|
296
296
|
# @override
|
297
297
|
def clear
|
298
298
|
temp_dir = "#{@root}-#{$$}-#{Thread.current.object_id}"
|
299
|
-
|
299
|
+
::File.rename(@root, temp_dir)
|
300
300
|
FileUtils.rm_rf(temp_dir)
|
301
301
|
rescue Errno::ENOENT
|
302
302
|
end
|
data/static/script.js
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
if(typeof JSON!=="object")JSON={};
|
2
|
-
(function(){function i(F){return F<10?"0"+F:F}function s(F){A.lastIndex=0;return A.test(F)?'"'+F.replace(A,function(M){var O=
|
2
|
+
(function(){function i(F){return F<10?"0"+F:F}function s(F){A.lastIndex=0;return A.test(F)?'"'+F.replace(A,function(M){var O=v[M];return typeof O==="string"?O:"\\u"+("0000"+M.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+F+'"'}function l(F,M){var O,N,R,y,D=o,B,E=M[F];if(E&&typeof E==="object"&&typeof E.toJSON==="function")E=E.toJSON(F);if(typeof z==="function")E=z.call(M,F,E);switch(typeof E){case "string":return s(E);case "number":return isFinite(E)?String(E):"null";case "boolean":case "null":return String(E);
|
3
3
|
case "object":if(!E)return"null";o+=m;B=[];if(Object.prototype.toString.apply(E)==="[object Array]"){y=E.length;for(O=0;O<y;O+=1)B[O]=l(O,E)||"null";R=B.length===0?"[]":o?"[\n"+o+B.join(",\n"+o)+"\n"+D+"]":"["+B.join(",")+"]";o=D;return R}if(z&&typeof z==="object"){y=z.length;for(O=0;O<y;O+=1)if(typeof z[O]==="string"){N=z[O];if(R=l(N,E))B.push(s(N)+(o?": ":":")+R)}}else for(N in E)if(Object.prototype.hasOwnProperty.call(E,N))if(R=l(N,E))B.push(s(N)+(o?": ":":")+R);R=B.length===0?"{}":o?"{\n"+o+B.join(",\n"+
|
4
|
-
o)+"\n"+D+"}":"{"+B.join(",")+"}";o=D;return R}}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
|
5
|
-
A=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,m,
|
6
|
-
{"":F})};if(typeof JSON.parse!=="function")JSON.parse=function(F,M){function O(R,y){var D,B,E=R[y];if(E&&typeof E==="object")for(D in E)if(Object.prototype.hasOwnProperty.call(E,D)){B=O(E,D);if(B!==undefined)E[D]=B;else delete E[D]}return M.call(R,y,E)}var N;F=String(F);
|
7
|
-
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){N=eval("("+F+")");return typeof M==="function"?O({"":N},""):N}throw new SyntaxError("JSON.parse");}})();(function(){function
|
8
|
-
|
9
|
-
JSON.parse(q.jStorage)}catch(F){q.jStorage="{}"}else q.jStorage="{}"})();window.jStorage=o})();(function(i,s){function l(a){var b=Hb[a]={};d.each(a.split(Pa),function(c,e){b[e]=true});return b}function q(a,b,c){if(c===s&&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=s}return c}function A(a){var b;for(b in a)if(!(b==="data"&&d.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function o(){return false}
|
10
|
-
function m(){return true}function u(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function z(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function F(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,function(f,g){return!!b.call(f,g,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,
|
4
|
+
o)+"\n"+D+"}":"{"+B.join(",")+"}";o=D;return R}}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 r=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
5
|
+
A=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,m,v={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},z;if(typeof JSON.stringify!=="function")JSON.stringify=function(F,M,O){var N;m=o="";if(typeof O==="number")for(N=0;N<O;N+=1)m+=" ";else if(typeof O==="string")m=O;if((z=M)&&typeof M!=="function"&&(typeof M!=="object"||typeof M.length!=="number"))throw Error("JSON.stringify");return l("",
|
6
|
+
{"":F})};if(typeof JSON.parse!=="function")JSON.parse=function(F,M){function O(R,y){var D,B,E=R[y];if(E&&typeof E==="object")for(D in E)if(Object.prototype.hasOwnProperty.call(E,D)){B=O(E,D);if(B!==undefined)E[D]=B;else delete E[D]}return M.call(R,y,E)}var N;F=String(F);r.lastIndex=0;if(r.test(F))F=F.replace(r,function(R){return"\\u"+("0000"+R.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(F.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
7
|
+
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){N=eval("("+F+")");return typeof M==="function"?O({"":N},""):N}throw new SyntaxError("JSON.parse");}})();(function(i,s){function l(a){var b=Hb[a]={};d.each(a.split(Pa),function(c,e){b[e]=true});return b}function r(a,b,c){if(c===s&&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=s}return c}function A(a){var b;for(b in a)if(!(b==="data"&&d.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function o(){return false}
|
8
|
+
function m(){return true}function v(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function z(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function F(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,function(f,g){return!!b.call(f,g,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,
|
11
9
|
b)>=0===c})}function M(a){var b=Ib.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function O(a,b){if(!(b.nodeType!==1||!d.hasData(a))){var c,e,f;e=d._data(a);var g=d._data(b,e),h=e.events;if(h){delete g.handle;g.events={};for(c in h){e=0;for(f=h[c].length;e<f;e++)d.event.add(b,c,h[c][e])}}if(g.data)g.data=d.extend({},g.data)}}function N(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);
|
12
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 R(a){return typeof a.getElementsByTagName!==
|
13
11
|
"undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function y(a){if(Jb.test(a.type))a.defaultChecked=a.checked}function D(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 B(a,b){a=b||a;return d.css(a,"display")==="none"||!d.contains(a.ownerDocument,a)}function E(a,b){for(var c,e,f=[],g=0,h=a.length;g<h;g++){c=a[g];if(c.style){f[g]=d._data(c,"olddisplay");
|
@@ -15,49 +13,49 @@ if(b){if(!f[g]&&c.style.display==="none")c.style.display="";if(c.style.display==
|
|
15
13
|
"margin")f+=d.css(a,c+Qa[b],true);if(e){if(c==="content")f-=parseFloat(xa(a,"padding"+Qa[b]))||0;if(c!=="margin")f-=parseFloat(xa(a,"border"+Qa[b]+"Width"))||0}else{f+=parseFloat(xa(a,"padding"+Qa[b]))||0;if(c!=="padding")f+=parseFloat(xa(a,"border"+Qa[b]+"Width"))||0}}return f}function Q(a,b,c){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=true,g=d.support.boxSizing&&d.css(a,"boxSizing")==="border-box";if(e<=0||e==null){e=xa(a,b);if(e<0||e==null)e=a.style[b];if(kb.test(e))return e;f=g&&(d.support.boxSizingReliable||
|
16
14
|
e===a.style[b]);e=parseFloat(e)||0}return e+W(a,b,c||(g?"border":"content"),f)+"px"}function Fa(a){if(wb[a])return wb[a];var b=d("<"+a+">").appendTo(L.body),c=b.css("display");b.remove();if(c==="none"||c===""){Wa=L.body.appendChild(Wa||d.extend(L.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=xa(b,"display");L.body.removeChild(Wa)}return wb[a]=
|
17
15
|
c}function na(a,b,c,e){var f;if(d.isArray(b))d.each(b,function(g,h){c||qc.test(a)?e(a,h):na(a+"["+(typeof h==="object"?g:"")+"]",h,c,e)});else if(!c&&d.type(b)==="object")for(f in b)na(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,g=b.toLowerCase().split(Pa),h=0,k=g.length;if(d.isFunction(c))for(;h<k;h++){e=g[h];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,g){f=f||b.dataTypes[0];
|
18
|
-
g=g||{};g[f]=true;var h;f=a[f];for(var k=0,
|
19
|
-
function(c,e){for(var f=(gb[c]||[]).concat(gb["*"]),g=0,h=f.length;g<h;g++)if(f[g].call(a,c,e))return})}function Ia(a,b,c){var e=0,f=mb.length,g=d.Deferred().always(function(){delete h.elem}),h=function(){var
|
20
|
-
c),originalProperties:b,originalOptions:c,startTime:lb||Ja(),duration:c.duration,tweens:[],createTween:function(
|
16
|
+
g=g||{};g[f]=true;var h;f=a[f];for(var k=0,q=f?f.length:0,u=a===xb;k<q&&(u||!h);k++){h=f[k](b,c,e);if(typeof h==="string")if(!u||g[h])h=s;else{b.dataTypes.unshift(h);h=Ha(a,b,c,e,h,g)}}if((u||!h)&&!g["*"])h=Ha(a,b,c,e,"*",g);return h}function Ya(a,b){var c,e,f=d.ajaxSettings.flatOptions||{};for(c in b)if(b[c]!==s)(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=s},0);return lb=d.now()}function Aa(a,b){d.each(b,
|
17
|
+
function(c,e){for(var f=(gb[c]||[]).concat(gb["*"]),g=0,h=f.length;g<h;g++)if(f[g].call(a,c,e))return})}function Ia(a,b,c){var e=0,f=mb.length,g=d.Deferred().always(function(){delete h.elem}),h=function(){var q=lb||Ja();q=Math.max(0,k.startTime+k.duration-q);for(var u=1-(q/k.duration||0),w=0,t=k.tweens.length;w<t;w++)k.tweens[w].run(u);g.notifyWith(a,[k,u,q]);if(u<1&&t)return q;else{g.resolveWith(a,[k]);return false}},k=g.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(q,u){var w=d.Tween(a,k.opts,q,u,k.opts.specialEasing[q]||k.opts.easing);k.tweens.push(w);return w},stop:function(q){for(var u=0,w=q?k.tweens.length:0;u<w;u++)k.tweens[u].run(1);q?g.resolveWith(a,[k,q]):g.rejectWith(a,[k,q]);return this}});c=k.props;for(Ka(c,k.opts.specialEasing);e<f;e++)if(b=mb[e].call(k,a,c,k.opts))return b;Aa(k,c);d.isFunction(k.opts.start)&&k.opts.start.call(a,k);d.fx.timer(d.extend(h,
|
21
19
|
{anim:k,queue:k.opts.queue,elem:a}));return k.progress(k.opts.progress).done(k.opts.done,k.opts.complete).fail(k.opts.fail).always(k.opts.always)}function Ka(a,b){var c,e,f,g,h;for(c in a){e=d.camelCase(c);f=b[e];g=a[c];if(d.isArray(g)){f=g[1];g=a[c]=g[0]}if(c!==e){a[e]=g;delete a[c]}if((h=d.cssHooks[e])&&"expand"in h){g=h.expand(g);delete a[e];for(c in g)if(!(c in a)){a[c]=g[c];b[c]=f}}else b[e]=f}}function ra(a,b,c,e,f){return new ra.prototype.init(a,b,c,e,f)}function Ra(a,b){var c,e={height:a},
|
22
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,L=i.document,Za=i.location,La=i.navigator,hb=i.jQuery,$a=i.$,ab=Array.prototype.push,Ba=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,
|
23
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(L.addEventListener){L.removeEventListener("DOMContentLoaded",qb,false);d.ready()}else if(L.readyState==="complete"){L.detachEvent("onreadystatechange",
|
24
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:L;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=L.getElementById(e[2]))&&
|
25
23
|
b.parentNode){if(b.id!==e[2])return c.find(a);this.length=1;this[0]=b}this.context=L;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!==s){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 Ba.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},
|
26
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(Ba.apply(this,
|
27
|
-
arguments),"slice",Ba.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,g=arguments[0]||{},h=1,k=arguments.length,
|
28
|
-
null)for(b in a){c=g[b];e=a[b];if(g!==e)if(
|
25
|
+
arguments),"slice",Ba.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,g=arguments[0]||{},h=1,k=arguments.length,q=false;if(typeof g==="boolean"){q=g;g=arguments[1]||{};h=2}if(typeof g!=="object"&&!d.isFunction(g))g={};if(k===h){g=this;--h}for(;h<k;h++)if((a=arguments[h])!=
|
26
|
+
null)for(b in a){c=g[b];e=a[b];if(g!==e)if(q&&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:{};g[b]=d.extend(q,c,e)}else if(e!==s)g[b]=e}return g};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(!L.body)return setTimeout(d.ready,1);d.isReady=true;
|
29
27
|
if(!(a!==true&&--d.readyWait>0)){ja.resolveWith(L,[d]);d.fn.trigger&&d(L).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&&
|
30
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===s||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||L;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):
|
31
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=s}if(!b||
|
32
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,g=a.length,h=g===s||d.isFunction(a);if(c)if(h)for(e in a){if(b.apply(a[e],c)===false)break}else for(;f<g;){if(b.apply(a[f++],
|
33
31
|
c)===false)break}else if(h)for(e in a){if(b.call(a[e],e,a[e])===false)break}else for(;f<g;)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,
|
34
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]!==s;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,c){var e,f=[],g=0,h=a.length;for(c=!!c;g<h;g++){e=!!b(a[g],g);c!==e&&f.push(a[g])}return f},map:function(a,b,c){var e,f,g=[],h=0,k=a.length;if(a instanceof d||k!==s&&typeof k==="number"&&(k>0&&a[0]&&a[k-1]||k===0||d.isArray(a)))for(;h<k;h++){e=
|
35
|
-
b(a[h],h,c);if(e!=null)g[g.length]=e}else for(f in a){e=b(a[f],f,c);if(e!=null)g[g.length]=e}return g.concat.apply([],g)},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 s;e=Ba.call(arguments,2);c=function(){return a.apply(b,e.concat(Ba.call(arguments)))};c.guid=a.guid=a.guid||d.guid++;return c},access:function(a,b,c,e,f,g,h){var k,
|
36
|
-
s&&d.isFunction(e);if(
|
37
|
-
qb);i.attachEvent("onload",d.ready);var b=false;try{b=i.frameElement==null&&L.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(L);var Hb={};d.Callbacks=function(a){a=typeof a==="string"?Hb[a]||l(a):d.extend({},a);var b,c,e,f,g,h,k=[],
|
38
|
-
a.memory&&t;c=true;h=f||0;f=0;g=k.length;for(e=true;k&&h<g;h++)if(k[h].apply(t[0],t[1])===false&&a.stopOnFalse){b=false;break}e=false;if(k)if(
|
39
|
-
I){for(var P;(P=d.inArray(I,k,P))>-1;){k.splice(P,1);if(e){P<=g&&g--;P<=h&&h--}}});return this},has:function(t){return d.inArray(t,k)>-1},empty:function(){k=[];return this},disable:function(){k=
|
40
|
-
return w};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 g=arguments;return d.Deferred(function(h){d.each(b,function(k,
|
41
|
-
t.promise().done(h.resolve).fail(h.reject).progress(h.notify):h[
|
42
|
-
h=function(w,t,I){return function(P){t[w]=this;I[w]=arguments.length>1?Ba.call(arguments):P;if(I===k)g.notifyWith(t,I);else--f||g.resolveWith(t,I)}},k,
|
33
|
+
b(a[h],h,c);if(e!=null)g[g.length]=e}else for(f in a){e=b(a[f],f,c);if(e!=null)g[g.length]=e}return g.concat.apply([],g)},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 s;e=Ba.call(arguments,2);c=function(){return a.apply(b,e.concat(Ba.call(arguments)))};c.guid=a.guid=a.guid||d.guid++;return c},access:function(a,b,c,e,f,g,h){var k,q=c==null,u=0,w=a.length;if(c&&typeof c==="object"){for(u in c)d.access(a,b,u,c[u],1,g,e);f=1}else if(e!==s){k=h===
|
34
|
+
s&&d.isFunction(e);if(q)if(k){k=b;b=function(t,I,P){return k.call(d(t),P)}}else{b.call(a,e);b=null}if(b)for(;u<w;u++)b(a[u],c,k?e.call(a[u],u,b(a[u],c)):e,h);f=1}return f?a:q?b.call(a):w?b(a[0],c):g},now:function(){return(new Date).getTime()}});d.ready.promise=function(a){if(!ja){ja=d.Deferred();if(L.readyState==="complete")setTimeout(d.ready,1);else if(L.addEventListener){L.addEventListener("DOMContentLoaded",qb,false);i.addEventListener("load",d.ready,false)}else{L.attachEvent("onreadystatechange",
|
35
|
+
qb);i.attachEvent("onload",d.ready);var b=false;try{b=i.frameElement==null&&L.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(L);var Hb={};d.Callbacks=function(a){a=typeof a==="string"?Hb[a]||l(a):d.extend({},a);var b,c,e,f,g,h,k=[],q=!a.once&&[],u=function(t){b=
|
36
|
+
a.memory&&t;c=true;h=f||0;f=0;g=k.length;for(e=true;k&&h<g;h++)if(k[h].apply(t[0],t[1])===false&&a.stopOnFalse){b=false;break}e=false;if(k)if(q)q.length&&u(q.shift());else if(b)k=[];else w.disable()},w={add:function(){if(k){var t=k.length;(function I(P){d.each(P,function(Z,ma){var Ga=d.type(ma);if(Ga==="function"&&(!a.unique||!w.has(ma)))k.push(ma);else ma&&ma.length&&Ga!=="string"&&I(ma)})})(arguments);if(e)g=k.length;else if(b){f=t;u(b)}}return this},remove:function(){k&&d.each(arguments,function(t,
|
37
|
+
I){for(var P;(P=d.inArray(I,k,P))>-1;){k.splice(P,1);if(e){P<=g&&g--;P<=h&&h--}}});return this},has:function(t){return d.inArray(t,k)>-1},empty:function(){k=[];return this},disable:function(){k=q=b=s;return this},disabled:function(){return!k},lock:function(){q=s;b||w.disable();return this},locked:function(){return!q},fireWith:function(t,I){I=I||[];I=[t,I.slice?I.slice():I];if(k&&(!c||q))e?q.push(I):u(I);return this},fire:function(){w.fireWith(this,arguments);return this},fired:function(){return!!c}};
|
38
|
+
return w};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 g=arguments;return d.Deferred(function(h){d.each(b,function(k,q){var u=q[0],w=g[k];f[q[1]](d.isFunction(w)?function(){var t=w.apply(this,arguments);t&&d.isFunction(t.promise)?
|
39
|
+
t.promise().done(h.resolve).fail(h.reject).progress(h.notify):h[u+"With"](this===f?h:this,[t])}:h[u])});g=null}).promise()},promise:function(g){return g!=null?d.extend(g,e):e}},f={};e.pipe=e.then;d.each(b,function(g,h){var k=h[2],q=h[3];e[h[1]]=k.add;q&&k.add(function(){c=q},b[g^1][2].disable,b[2][2].lock);f[h[0]]=k.fire;f[h[0]+"With"]=k.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=0,c=Ba.call(arguments),e=c.length,f=e!==1||a&&d.isFunction(a.promise)?e:0,g=f===1?a:d.Deferred(),
|
40
|
+
h=function(w,t,I){return function(P){t[w]=this;I[w]=arguments.length>1?Ba.call(arguments):P;if(I===k)g.notifyWith(t,I);else--f||g.resolveWith(t,I)}},k,q,u;if(e>1){k=Array(e);q=Array(e);for(u=Array(e);b<e;b++)if(c[b]&&d.isFunction(c[b].promise))c[b].promise().done(h(b,u,c)).fail(g.reject).progress(h(b,q,k));else--f}f||g.resolveWith(u,c);return g.promise()}});d.support=function(){var a,b,c,e,f,g,h,k=L.createElement("div");k.setAttribute("className","t");k.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
|
43
41
|
b=k.getElementsByTagName("*");c=k.getElementsByTagName("a")[0];c.style.cssText="top:1px;float:left;opacity:.5";if(!b||!b.length)return{};e=L.createElement("select");f=e.appendChild(L.createElement("option"));b=k.getElementsByTagName("input")[0];a={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/top/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:/^0.5/.test(c.style.opacity),
|
44
42
|
cssFloat:!!c.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:k.className!=="t",enctype:!!L.createElement("form").enctype,html5Clone:L.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:L.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=
|
45
|
-
b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete k.test}catch(
|
46
|
-
c.appendChild(k.lastChild);a.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;c.removeChild(b);c.appendChild(k);if(k.attachEvent)for(g in{submit:true,change:true,focusin:true}){b="on"+g;h=b in k;if(!h){k.setAttribute(b,"return;");h=typeof k[b]==="function"}a[g+"Bubbles"]=h}d(function(){var
|
47
|
-
I.insertBefore(
|
43
|
+
b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete k.test}catch(q){a.deleteExpando=false}if(!k.addEventListener&&k.attachEvent&&k.fireEvent){k.attachEvent("onclick",c=function(){a.noCloneEvent=false});k.cloneNode(true).fireEvent("onclick");k.detachEvent("onclick",c)}b=L.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");b.setAttribute("name","t");k.appendChild(b);c=L.createDocumentFragment();
|
44
|
+
c.appendChild(k.lastChild);a.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;c.removeChild(b);c.appendChild(k);if(k.attachEvent)for(g in{submit:true,change:true,focusin:true}){b="on"+g;h=b in k;if(!h){k.setAttribute(b,"return;");h=typeof k[b]==="function"}a[g+"Bubbles"]=h}d(function(){var u,w,t,I=L.getElementsByTagName("body")[0];if(I){u=L.createElement("div");u.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
|
45
|
+
I.insertBefore(u,I.firstChild);w=L.createElement("div");u.appendChild(w);w.innerHTML="<table><tr><td></td><td>t</td></tr></table>";t=w.getElementsByTagName("td");t[0].style.cssText="padding:0;margin:0;border:0;display:none";h=t[0].offsetHeight===0;t[0].style.display="";t[1].style.display="none";a.reliableHiddenOffsets=h&&t[0].offsetHeight===0;w.innerHTML="";w.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%;";
|
48
46
|
a.boxSizing=w.offsetWidth===4;a.doesNotIncludeMarginInBodyOffset=I.offsetTop!==1;if(i.getComputedStyle){a.pixelPosition=(i.getComputedStyle(w,null)||{}).top!=="1%";a.boxSizingReliable=(i.getComputedStyle(w,null)||{width:"4px"}).width==="4px";t=L.createElement("div");t.style.cssText=w.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;";t.style.marginRight=t.style.width="0";w.style.width="1px";w.appendChild(t);a.reliableMarginRight=!parseFloat((i.getComputedStyle(t,null)||{}).marginRight)}if(typeof w.style.zoom!==
|
49
|
-
"undefined"){w.innerHTML="";w.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1";a.inlineBlockNeedsLayout=w.offsetWidth===3;w.style.display="block";w.style.overflow="visible";w.innerHTML="<div></div>";w.firstChild.style.width="5px";a.shrinkWrapBlocks=w.offsetWidth!==3;
|
50
|
-
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&&!A(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f=d.expando,g=typeof b==="string",h=a.nodeType,k=h?d.cache:a,
|
51
|
-
d.noop}if(typeof b==="object"||typeof b==="function")if(e)k[
|
52
|
-
g;f++)delete e[b[f]];if(!(c?A:d.isEmptyObject)(e))return}if(!c){delete k[
|
53
|
-
1&&!d._data(k,"parsedAttrs")){f=k.attributes;for(h=f.length;
|
47
|
+
"undefined"){w.innerHTML="";w.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1";a.inlineBlockNeedsLayout=w.offsetWidth===3;w.style.display="block";w.style.overflow="visible";w.innerHTML="<div></div>";w.firstChild.style.width="5px";a.shrinkWrapBlocks=w.offsetWidth!==3;u.style.zoom=1}I.removeChild(u)}});c.removeChild(k);b=c=e=f=b=c=k=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&&!A(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f=d.expando,g=typeof b==="string",h=a.nodeType,k=h?d.cache:a,q=h?a[f]:a[f]&&f;if(!((!q||!k[q]||!e&&!k[q].data)&&g&&c===s)){if(!q)if(h)a[f]=q=d.deletedIds.pop()||d.guid++;else q=f;if(!k[q]){k[q]={};if(!h)k[q].toJSON=
|
49
|
+
d.noop}if(typeof b==="object"||typeof b==="function")if(e)k[q]=d.extend(k[q],b);else k[q].data=d.extend(k[q].data,b);a=k[q];if(!e){if(!a.data)a.data={};a=a.data}if(c!==s)a[d.camelCase(b)]=c;if(g){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,g,h=a.nodeType,k=h?d.cache:a,q=h?a[d.expando]:d.expando;if(k[q]){if(b)if(e=c?k[q]:k[q].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(g=b.length;f<
|
50
|
+
g;f++)delete e[b[f]];if(!(c?A:d.isEmptyObject)(e))return}if(!c){delete k[q].data;if(!A(k[q]))return}if(h)d.cleanData([a],true);else if(d.support.deleteExpando||k!=k.window)delete k[q];else k[q]=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,g,h,k=this[0],q=0,u=null;if(a===s){if(this.length){u=d.data(k);if(k.nodeType===
|
51
|
+
1&&!d._data(k,"parsedAttrs")){f=k.attributes;for(h=f.length;q<h;q++){g=f[q].name;if(!g.indexOf("data-")){g=d.camelCase(g.substring(5));r(k,g,u[g])}}d._data(k,"parsedAttrs",true)}}return u}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(w){if(w===s){u=this.triggerHandler("getData"+e,[c[0]]);if(u===s&&k){u=d.data(k,a);u=r(k,a,u)}return u===s&&c[1]?this.data(c[0]):u}c[1]=w;this.each(function(){var t=d(this);
|
54
52
|
t.triggerHandler("setData"+e,c);d.data(this,a,w);t.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(),g=d._queueHooks(a,b),h=function(){d.dequeue(a,b)};if(f==="inprogress"){f=
|
55
53
|
c.shift();e--}if(f){b==="fx"&&c.unshift("inprogress");delete g.stop;f.call(a,h,g)}!e&&g&&g.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===s?this:this.each(function(){var e=d.queue(this,a,b);d._queueHooks(this,
|
56
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(),g=this,h=this.length,k=function(){--e||f.resolveWith(g,[g])};if(typeof a!=="string"){b=a;a=s}for(a=a||"fx";h--;)if((c=d._data(g[h],
|
57
55
|
a+"queueHooks"))&&c.empty){e++;c.empty.add(k)}k();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,
|
58
|
-
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]=s;delete this[a]}catch(b){}})},addClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(
|
59
|
-
for(k=b.length;h<k;h++)if(g.indexOf(" "+b[h]+" ")<0)g+=b[h]+" ";f.className=d.trim(g)}}}return this},removeClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(
|
60
|
-
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,g=0,h=d(this),k=b,
|
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]=s;delete this[a]}catch(b){}})},addClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(q){d(this).addClass(a.call(this,q,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{g=" "+f.className+" ";h=0;
|
57
|
+
for(k=b.length;h<k;h++)if(g.indexOf(" "+b[h]+" ")<0)g+=b[h]+" ";f.className=d.trim(g)}}}return this},removeClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(q){d(this).removeClass(a.call(this,q,this.className))});if(a&&typeof a==="string"||a===s){b=(a||"").split(Pa);h=0;for(k=this.length;h<k;h++){e=this[h];if(e.nodeType===1&&e.className){c=(" "+e.className+" ").replace(Qb," ");f=0;for(g=b.length;f<g;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,g=0,h=d(this),k=b,q=a.split(Pa);f=q[g++];){k=e?k:!h.hasClass(f);h[k?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean"){this.className&&d._data(this,"__className__",this.className);this.className=this.className||a===false?
|
61
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(g){var h=d(this);if(this.nodeType===1){g=e?a.call(this,g,h.val()):a;if(g==null)g="";else if(typeof g==="number")g+="";else if(d.isArray(g))g=d.map(g,function(k){return k==null?"":k+""});
|
62
60
|
b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,g,"value")===s)this.value=g}})}else if(f){if((b=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(c=b.get(f,"value"))!==s)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=[],g=a.options,h=a.type===
|
63
61
|
"select-one";if(e<0)return null;a=h?e:0;for(c=h?e+1:g.length;a<c;a++){b=g[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(h)return b;f.push(b)}}if(h&&!f.length&&g.length)return d(g[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,
|
@@ -68,16 +66,16 @@ b;f=d.propHooks[b]}return c!==s?f&&"set"in f&&(e=f.set(a,c,b))!==s?e:a[b]=c:f&&"
|
|
68
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:s},set:function(a,b,c){var e=a.getAttributeNode(c);if(!e){e=L.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");
|
69
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?s:c}})});if(!d.support.style)d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||s},set:function(a,b){return a.style.cssText=b+""}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,
|
70
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=
|
71
|
-
/^(?: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 g,h,k,
|
72
|
-
arguments):s};h.elem=a}b=d.trim(Vb(b)).split(" ");for(g=0;g<b.length;g++){
|
73
|
-
else a.attachEvent&&a.attachEvent("on"+
|
74
|
-
"(\\.|$)"):null;for(w=0;w<P.length;w++){Z=P[w];if((f||
|
75
|
-
setData:true,changeData:true},trigger:function(a,b,c,e){if(!(c&&(c.nodeType===3||c.nodeType===8))){var f,g,h,k,
|
76
|
-
h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;h=w.indexOf(":")<0?"on"+w:"";if(c){a.result=s;if(!a.target)a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);k=d.event.special[w]||{};if(!(k.trigger&&k.trigger.apply(c,b)===false)){
|
77
|
-
|
78
|
-
d.cache;for(g in c)c[g].events&&c[g].events[w]&&d.event.trigger(a,b,c[g].handle.elem,true)}}}}},dispatch:function(a){a=d.event.fix(a||i.event);var b,c,e,f,g,h,k=(d._data(this,"events")||{})[a.type]||[],
|
79
|
-
"click"){f={};g=[];for(b=0;b<
|
80
|
-
a.handleObj=e;e=((d.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,
|
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 g,h,k,q,u,w,t,I,P;if(!(a.nodeType===3||a.nodeType===8||!b||!c||!(g=d._data(a)))){if(c.handler){t=c;c=t.handler;f=t.selector}if(!c.guid)c.guid=d.guid++;k=g.events;if(!k)g.events=k={};h=g.handle;if(!h){g.handle=h=function(Z){return typeof d!=="undefined"&&(!Z||d.event.triggered!==Z.type)?d.event.dispatch.apply(h.elem,
|
70
|
+
arguments):s};h.elem=a}b=d.trim(Vb(b)).split(" ");for(g=0;g<b.length;g++){q=Tb.exec(b[g])||[];u=q[1];w=(q[2]||"").split(".").sort();P=d.event.special[u]||{};u=(f?P.delegateType:P.bindType)||u;P=d.event.special[u]||{};q=d.extend({type:u,origType:q[1],data:e,handler:c,guid:c.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:w.join(".")},t);I=k[u];if(!I){I=k[u]=[];I.delegateCount=0;if(!P.setup||P.setup.call(a,e,w,h)===false)if(a.addEventListener)a.addEventListener(u,h,false);
|
71
|
+
else a.attachEvent&&a.attachEvent("on"+u,h)}if(P.add){P.add.call(a,q);if(!q.handler.guid)q.handler.guid=c.guid}f?I.splice(I.delegateCount++,0,q):I.push(q);d.event.global[u]=true}a=null}},global:{},remove:function(a,b,c,e,f){var g,h,k,q,u,w,t,I,P,Z,ma=d.hasData(a)&&d._data(a);if(ma&&(t=ma.events)){b=d.trim(Vb(b||"")).split(" ");for(g=0;g<b.length;g++){h=Tb.exec(b[g])||[];k=q=h[1];h=h[2];if(k){I=d.event.special[k]||{};k=(e?I.delegateType:I.bindType)||k;P=t[k]||[];u=P.length;h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.|)")+
|
72
|
+
"(\\.|$)"):null;for(w=0;w<P.length;w++){Z=P[w];if((f||q===Z.origType)&&(!c||c.guid===Z.guid)&&(!h||h.test(Z.namespace))&&(!e||e===Z.selector||e==="**"&&Z.selector)){P.splice(w--,1);Z.selector&&P.delegateCount--;I.remove&&I.remove.call(a,Z)}}if(P.length===0&&u!==P.length){if(!I.teardown||I.teardown.call(a,h,ma.handle)===false)d.removeEvent(a,k,ma.handle);delete t[k]}}else for(k in t)d.event.remove(a,k+b[g],c,e,true)}if(d.isEmptyObject(t)){delete ma.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,g,h,k,q,u,w=a.type||a;h=[];if(!Ub.test(w+d.event.triggered)){if(w.indexOf("!")>=0){w=w.slice(0,-1);f=true}if(w.indexOf(".")>=0){h=w.split(".");w=h.shift();h.sort()}if(!((!c||d.event.customEvent[w])&&!d.event.global[w])){a=typeof a==="object"?a[d.expando]?a:new d.Event(w,a):new d.Event(w);a.type=w;a.isTrigger=true;a.exclusive=f;a.namespace=h.join(".");a.namespace_re=a.namespace?RegExp("(^|\\.)"+
|
74
|
+
h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;h=w.indexOf(":")<0?"on"+w:"";if(c){a.result=s;if(!a.target)a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);k=d.event.special[w]||{};if(!(k.trigger&&k.trigger.apply(c,b)===false)){u=[[c,k.bindType||w]];if(!e&&!k.noBubble&&!d.isWindow(c)){q=k.delegateType||w;f=Ub.test(q+w)?c:c.parentNode;for(g=c;f;f=f.parentNode){u.push([f,q]);g=f}if(g===(c.ownerDocument||L))u.push([g.defaultView||g.parentWindow||i,q])}for(g=0;g<u.length&&!a.isPropagationStopped();g++){f=
|
75
|
+
u[g][0];a.type=u[g][1];(q=(d._data(f,"events")||{})[a.type]&&d._data(f,"handle"))&&q.apply(f,b);(q=h&&f[h])&&d.acceptData(f)&&q.apply&&q.apply(f,b)===false&&a.preventDefault()}a.type=w;if(!e&&!a.isDefaultPrevented())if((!k._default||k._default.apply(c.ownerDocument,b)===false)&&!(w==="click"&&d.nodeName(c,"a"))&&d.acceptData(c))if(h&&c[w]&&(w!=="focus"&&w!=="blur"||a.target.offsetWidth!==0)&&!d.isWindow(c)){if(g=c[h])c[h]=null;d.event.triggered=w;c[w]();d.event.triggered=s;if(g)c[h]=g}return a.result}}else{c=
|
76
|
+
d.cache;for(g in c)c[g].events&&c[g].events[w]&&d.event.trigger(a,b,c[g].handle.elem,true)}}}}},dispatch:function(a){a=d.event.fix(a||i.event);var b,c,e,f,g,h,k=(d._data(this,"events")||{})[a.type]||[],q=k.delegateCount,u=Ba.call(arguments),w=!a.exclusive&&!a.namespace,t=d.event.special[a.type]||{},I=[];u[0]=a;a.delegateTarget=this;if(!(t.preDispatch&&t.preDispatch.call(this,a)===false)){if(q&&!(a.button&&a.type==="click"))for(c=a.target;c!=this;c=c.parentNode||this)if(c.disabled!==true||a.type!==
|
77
|
+
"click"){f={};g=[];for(b=0;b<q;b++){e=k[b];h=e.selector;if(f[h]===s)f[h]=e.needsContext?d(h,this).index(c)>=0:d.find(h,this,null,[c]).length;f[h]&&g.push(e)}g.length&&I.push({elem:c,matches:g})}k.length>q&&I.push({elem:this,matches:k.slice(q)});for(b=0;b<I.length&&!a.isPropagationStopped();b++){f=I[b];a.currentTarget=f.elem;for(c=0;c<f.matches.length&&!a.isImmediatePropagationStopped();c++){e=f.matches[c];if(w||!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,u);if(e!==s){a.result=e;if(e===false){a.preventDefault();a.stopPropagation()}}}}}t.postDispatch&&t.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==
|
81
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,g=b.fromElement;if(a.pageX==null&&b.clientX!=null){c=a.target.ownerDocument||L;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||
|
82
80
|
c&&c.clientTop||0)}if(!a.relatedTarget&&g)a.relatedTarget=g===a.target?b.toElement:g;if(!a.which&&f!==s)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]||{},g=f.props?this.props.concat(f.props):this.props;a=d.Event(e);for(b=g.length;b;){c=g[--b];a[c]=e[c]}if(!a.target)a.target=e.srcElement||L;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},
|
83
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=L.removeEventListener?function(a,b,c){a.removeEventListener&&
|
@@ -94,10 +92,10 @@ c=a.guid||d.guid++,e=0,f=function(g){var h=(d._data(this,"lastToggle"+a.guid)||0
|
|
94
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(j,n,p,C){p=p||[];n=n||ga;var G,H,x,K,J=n.nodeType;if(!j||typeof j!=="string")return p;if(J!==1&&J!==9)return[];x=Sa(n);if(!x&&!C)if(G=Jc.exec(j))if(K=G[1])if(J===9)if((H=n.getElementById(K))&&H.parentNode){if(H.id===K){p.push(H);return p}}else return p;
|
95
93
|
else{if(n.ownerDocument&&(H=n.ownerDocument.getElementById(K))&&T(n,H)&&H.id===K){p.push(H);return p}}else if(G[2]){aa.apply(p,oa.call(n.getElementsByTagName(j),0));return p}else if((K=G[3])&&Wb&&n.getElementsByClassName){aa.apply(p,oa.call(n.getElementsByClassName(K),0));return p}return Z(j.replace(rb,"$1"),n,p,C,x)}function e(j){return function(n){return n.nodeName.toLowerCase()==="input"&&n.type===j}}function f(j){return function(n){var p=n.nodeName.toLowerCase();return(p==="input"||p==="button")&&
|
96
94
|
n.type===j}}function g(j){return ya(function(n){n=+n;return ya(function(p,C){for(var G,H=j([],p.length,n),x=H.length;x--;)if(p[G=H[x]])p[G]=!(C[G]=p[G])})})}function h(j,n,p){if(j===n)return p;for(j=j.nextSibling;j;){if(j===n)return-1;j=j.nextSibling}return 1}function k(j,n){var p,C,G,H,x,K,J;if(x=ua[fa][j])return n?0:x.slice(0);x=j;K=[];for(J=ba.preFilter;x;){if(!p||(C=Kc.exec(x))){if(C)x=x.slice(C[0].length);K.push(G=[])}p=false;if(C=Lc.exec(x)){G.push(p=new pa(C.shift()));x=x.slice(p.length);p.type=
|
97
|
-
C[0].replace(rb," ")}for(H in ba.filter)if((C=sb[H].exec(x))&&(!J[H]||(C=J[H](C,ga,true)))){G.push(p=new pa(C.shift()));x=x.slice(p.length);p.type=H;p.matches=C}if(!p)break}return n?x.length:x?c.error(j):ua(j,K).slice(0)}function
|
98
|
-
1)if((U=x[fa])===Y)return x.sizset;else if(typeof U==="string"&&U.indexOf(X)===0){if(x.sizset)return x}else{x[fa]=Y;if(j(x,K,J)){x.sizset=true;return x}x.sizset=false}}}function
|
95
|
+
C[0].replace(rb," ")}for(H in ba.filter)if((C=sb[H].exec(x))&&(!J[H]||(C=J[H](C,ga,true)))){G.push(p=new pa(C.shift()));x=x.slice(p.length);p.type=H;p.matches=C}if(!p)break}return n?x.length:x?c.error(j):ua(j,K).slice(0)}function q(j,n,p){var C=n.dir,G=p&&n.dir==="parentNode",H=va++;return n.first?function(x,K,J){for(;x=x[C];)if(G||x.nodeType===1)return j(x,K,J)}:function(x,K,J){if(J)for(;x=x[C];){if(G||x.nodeType===1)if(j(x,K,J))return x}else for(var U,X=Ca+" "+H+" ",Y=X+Ga;x=x[C];)if(G||x.nodeType===
|
96
|
+
1)if((U=x[fa])===Y)return x.sizset;else if(typeof U==="string"&&U.indexOf(X)===0){if(x.sizset)return x}else{x[fa]=Y;if(j(x,K,J)){x.sizset=true;return x}x.sizset=false}}}function u(j){return j.length>1?function(n,p,C){for(var G=j.length;G--;)if(!j[G](n,p,C))return false;return true}:j[0]}function w(j,n,p,C,G){for(var H,x=[],K=0,J=j.length,U=n!=null;K<J;K++)if(H=j[K])if(!p||p(H,C,G)){x.push(H);U&&n.push(K)}return x}function t(j,n,p,C,G,H){if(C&&!C[fa])C=t(C);if(G&&!G[fa])G=t(G,H);return ya(function(x,
|
99
97
|
K,J,U){if(!(x&&G)){var X,Y,ea=[],sa=[],za=K.length;if(!(Y=x)){Y=n||"*";var ta=J.nodeType?[J]:J,ka=[];X=0;for(var tb=ta.length;X<tb;X++)c(Y,ta[X],ka,x);Y=ka}Y=Y;ta=j&&(x||!n)?w(Y,ea,j,J,U):Y;ka=p?G||(x?j:za||C)?[]:K:ta;p&&p(ta,ka,J,U);if(C){Y=w(ka,sa);C(Y,[],J,U);for(J=Y.length;J--;)if(X=Y[J])ka[sa[J]]=!(ta[sa[J]]=X)}if(x)for(J=j&&ka.length;J--;){if(X=ka[J])x[ea[J]]=!(K[ea[J]]=X)}else{ka=w(ka===K?ka.splice(za,ka.length):ka);G?G(null,K,ka,U):aa.apply(K,ka)}}})}function I(j){var n,p,C,G=j.length,H=ba.relative[j[0].type];
|
100
|
-
p=H||ba.relative[" "];for(var x=H?1:0,K=
|
98
|
+
p=H||ba.relative[" "];for(var x=H?1:0,K=q(function(X){return X===n},p,true),J=q(function(X){return bb.call(n,X)>-1},p,true),U=[function(X,Y,ea){return!H&&(ea||Y!==ha)||((n=Y).nodeType?K(X,Y,ea):J(X,Y,ea))}];x<G;x++)if(p=ba.relative[j[x].type])U=[q(u(U),p)];else{p=ba.filter[j[x].type].apply(null,j[x].matches);if(p[fa]){for(C=++x;C<G;C++)if(ba.relative[j[C].type])break;return t(x>1&&u(U),x>1&&j.slice(0,x-1).join("").replace(rb,"$1"),p,x<C&&I(j.slice(x,C)),C<G&&I(j=j.slice(C)),C<G&&j.join(""))}U.push(p)}return u(U)}
|
101
99
|
function P(j,n){var p=n.length>0,C=j.length>0,G=function(H,x,K,J,U){var X,Y,ea=[],sa=0,za="0",ta=H&&[],ka=U!=null,tb=ha,Mc=H||C&&ba.find.TAG("*",U&&x.parentNode||x),Xb=Ca+=tb==null?1:Math.E;if(ka){ha=x!==ga&&x;Ga=G.el}for(;(U=Mc[za])!=null;za++){if(C&&U){for(X=0;Y=j[X];X++)if(Y(U,x,K)){J.push(U);break}if(ka){Ca=Xb;Ga=++G.el}}if(p){if(U=!Y&&U)sa--;H&&ta.push(U)}}sa+=za;if(p&&za!==sa){for(X=0;Y=n[X];X++)Y(ta,ea,x,K);if(H){if(sa>0)for(;za--;)ta[za]||ea[za]||(ea[za]=Da.call(J));ea=w(ea)}aa.apply(J,ea);
|
102
100
|
ka&&!H&&ea.length>0&&sa+n.length>1&&c.uniqueSort(J)}if(ka){Ca=Xb;ha=tb}return ta};G.el=0;return p?ya(G):G}function Z(j,n,p,C,G){var H,x,K,J,U=k(j);if(!C)if(U.length===1){x=U[0]=U[0].slice(0);if(x.length>2&&(K=x[0]).type==="ID"&&n.nodeType===9&&!G&&ba.relative[x[1].type]){n=ba.find.ID(K.matches[0].replace(Ta,""),n,G)[0];if(!n)return p;j=j.slice(x.shift().length)}for(H=sb.POS.test(j)?-1:x.length-1;H>=0;H--){K=x[H];if(ba.relative[J=K.type])break;if(J=ba.find[J])if(C=J(K.matches[0].replace(Ta,""),Bb.test(x[0].type)&&
|
103
101
|
n.parentNode||n,G)){x.splice(H,1);j=C.length&&x.join("");if(!j){aa.apply(p,oa.call(C,0));return p}break}}}cb(j,U)(C,n,G,p,Bb.test(j));return p}function ma(){}var Ga,Na,ba,wa,Sa,T,cb,db,V,ha,ca=true,fa=("sizcache"+Math.random()).replace(".",""),pa=String,ga=a.document,da=ga.documentElement,Ca=0,va=0,Da=[].pop,aa=[].push,oa=[].slice,bb=[].indexOf||function(j){for(var n=0,p=this.length;n<p;n++)if(this[n]===j)return n;return-1},ya=function(j,n){j[fa]=n==null||n;return j},qa=function(){var j={},n=[];return ya(function(p,
|
@@ -126,7 +124,7 @@ else J.setAttribute("id",ta);ta="[id='"+ta+"'] ";for(sa=ea.length;sa--;)ea[sa]=t
|
|
126
124
|
x.call(K,J);if(U||j||K.document&&K.document.nodeType!==11)return U}catch(X){}return c(J,null,null,[K]).length>0}}}();ba.pseudos.nth=ba.pseudos.eq;ba.filters=ma.prototype=ba.pseudos;ba.setFilters=new ma;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};
|
127
125
|
d.fn.extend({find:function(a){var b,c,e,f,g,h,k=this;if(typeof a!=="string")return d(a).filter(function(){b=0;for(c=k.length;b<c;b++)if(d.contains(k[b],this))return true});h=this.pushStack("","find",a);b=0;for(c=this.length;b<c;b++){e=h.length;d.find(a,this[b],h);if(b>0)for(f=e;f<h.length;f++)for(g=0;g<e;g++)if(h[g]===h[f]){h.splice(f--,1);break}}return h},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(F(this,
|
128
126
|
a,false),"not",a)},filter:function(a){return this.pushStack(F(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,g=[],h=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(h?h.index(c)>-1:d.find.matchesSelector(c,a)){g.push(c);break}c=c.parentNode}g=g.length>
|
129
|
-
1?d.unique(g):g;return this.pushStack(g,"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(
|
127
|
+
1?d.unique(g):g;return this.pushStack(g,"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(v(c[0])||v(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;
|
130
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 z(a,"nextSibling")},prev:function(a){return z(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",
|
131
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,Ba.call(arguments).join(","))}});
|
132
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===s||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",
|
@@ -134,23 +132,23 @@ Wc=/ jQuery\d+="(?:null|\d+)"/g,Cb=/^\s+/,Zb=/<(?!area|br|col|embed|hr|img|input
|
|
134
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=M(L),Eb=bc.appendChild(L.createElement("div"));Ea.optgroup=Ea.option;Ea.tbody=Ea.tfoot=Ea.colgroup=Ea.caption=Ea.thead;Ea.th=Ea.td;if(!d.support.htmlSerialize)Ea._default=[1,"X<div>","</div>"];d.fn.extend({text:function(a){return d.access(this,function(b){return b===
|
135
133
|
s?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||L).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,
|
136
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,
|
137
|
-
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(!v(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(!v(this[0]))return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});if(arguments.length){var a=d.clean(arguments);
|
138
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?
|
139
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===s)return c.nodeType===1?c.innerHTML.replace(Wc,""):s;if(typeof b==="string"&&!Zc.test(b)&&(d.support.htmlSerialize||!Db.test(b))&&(d.support.leadingWhitespace||!Cb.test(b))&&!Ea[($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=
|
140
|
-
b}}c=0}catch(g){}}c&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(a){if(!
|
141
|
-
domManip:function(a,b,c){a=[].concat.apply([],a);var e,f,g,h=0,k=a[0],
|
142
|
-
"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h],h===e?g:d.clone(g,true,true))}g=f=null;
|
138
|
+
b}}c=0}catch(g){}}c&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(a){if(!v(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,g,h=0,k=a[0],q=[],u=this.length;if(!d.support.checkClone&&u>1&&typeof k==="string"&&ac.test(k))return this.each(function(){d(this).domManip(a,b,c)});if(d.isFunction(k))return this.each(function(w){var t=d(this);a[0]=k.call(this,w,b?t.html():s);t.domManip(a,b,c)});if(this[0]){e=d.buildFragment(a,this,q);g=e.fragment;f=g.firstChild;if(g.childNodes.length===1)g=f;if(f){b=b&&d.nodeName(f,"tr");for(e=e.cacheable||u-1;h<u;h++)c.call(b&&d.nodeName(this[h],
|
140
|
+
"table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h],h===e?g:d.clone(g,true,true))}g=f=null;q.length&&d.each(q,function(w,t){if(t.src)d.ajax?d.ajax({url:t.src,type:"GET",dataType:"script",async:false,global:false,"throws":true}):d.error("no ajax");else d.globalEval((t.text||t.textContent||t.innerHTML||"").replace(bd,""));t.parentNode&&t.parentNode.removeChild(t)})}return this}});d.buildFragment=function(a,b,c){var e,f,g,h=a[0];
|
143
141
|
b=b||L;b=!b.nodeType&&b[0]||b;b=b.ownerDocument||b;if(a.length===1&&typeof h==="string"&&h.length<512&&b===L&&h.charAt(0)==="<"&&!$c.test(h)&&(d.support.checkClone||!ac.test(h))&&(d.support.html5Clone||!Db.test(h))){f=true;e=d.fragments[h];g=e!==s}if(!e){e=b.createDocumentFragment();d.clean(a,b,e,c);if(f)d.fragments[h]=g&&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]=
|
144
142
|
function(c){var e,f=0,g=[];c=d(c);var h=c.length;e=this.length===1&&this[0].parentNode;if((e==null||e&&e.nodeType===11&&e.childNodes.length===1)&&h===1){c[b](this[0]);return this}else{for(;f<h;f++){e=(f>0?this.clone(true):this).get();d(c[f])[b](e);g=g.concat(e)}return this.pushStack(g,a,c.selector)}}});d.extend({clone:function(a,b,c){var e,f,g,h;if(d.support.html5Clone||d.isXMLDoc(a)||!Db.test("<"+a.nodeName+">"))h=a.cloneNode(true);else{Eb.innerHTML=a.outerHTML;Eb.removeChild(h=Eb.firstChild)}if((!d.support.noCloneEvent||
|
145
|
-
!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){N(a,h);e=R(a);f=R(h);for(g=0;e[g];++g)f[g]&&N(e[g],f[g])}if(b){O(a,h);if(c){e=R(a);f=R(h);for(g=0;e[g];++g)O(e[g],f[g])}}return h},clean:function(a,b,c,e){var f,g,h,k,
|
146
|
-
g=($b.exec(h)||["",""])[1].toLowerCase();k=Ea[g]||Ea._default;
|
147
|
-
b.createTextNode(h);h.nodeType?t.push(h):d.merge(t,h)}}if(
|
148
|
-
d.grep(d.merge([],h.getElementsByTagName("script")),a);t.splice.apply(t,[f+1,0].concat(h));f+=h.length}}}return t},cleanData:function(a,b){for(var c,e,f,g,h=0,k=d.expando,
|
143
|
+
!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){N(a,h);e=R(a);f=R(h);for(g=0;e[g];++g)f[g]&&N(e[g],f[g])}if(b){O(a,h);if(c){e=R(a);f=R(h);for(g=0;e[g];++g)O(e[g],f[g])}}return h},clean:function(a,b,c,e){var f,g,h,k,q,u,w=b===L&&bc,t=[];if(!b||typeof b.createDocumentFragment==="undefined")b=L;for(f=0;(h=a[f])!=null;f++){if(typeof h==="number")h+="";if(h){if(typeof h==="string")if(Yc.test(h)){w=w||M(b);u=b.createElement("div");w.appendChild(u);h=h.replace(Zb,"<$1></$2>");
|
144
|
+
g=($b.exec(h)||["",""])[1].toLowerCase();k=Ea[g]||Ea._default;q=k[0];for(u.innerHTML=k[1]+h+k[2];q--;)u=u.lastChild;if(!d.support.tbody){q=Xc.test(h);k=g==="table"&&!q?u.firstChild&&u.firstChild.childNodes:k[1]==="<table>"&&!q?u.childNodes:[];for(g=k.length-1;g>=0;--g)d.nodeName(k[g],"tbody")&&!k[g].childNodes.length&&k[g].parentNode.removeChild(k[g])}!d.support.leadingWhitespace&&Cb.test(h)&&u.insertBefore(b.createTextNode(Cb.exec(h)[0]),u.firstChild);h=u.childNodes;u.parentNode.removeChild(u)}else h=
|
145
|
+
b.createTextNode(h);h.nodeType?t.push(h):d.merge(t,h)}}if(u)h=u=w=null;if(!d.support.appendChecked)for(f=0;(h=t[f])!=null;f++)if(d.nodeName(h,"input"))y(h);else typeof h.getElementsByTagName!=="undefined"&&d.grep(h.getElementsByTagName("input"),y);if(c){a=function(I){if(!I.type||ad.test(I.type))return e?e.push(I.parentNode?I.parentNode.removeChild(I):I):c.appendChild(I)};for(f=0;(h=t[f])!=null;f++)if(!(d.nodeName(h,"script")&&a(h))){c.appendChild(h);if(typeof h.getElementsByTagName!=="undefined"){h=
|
146
|
+
d.grep(d.merge([],h.getElementsByTagName("script")),a);t.splice.apply(t,[f+1,0].concat(h));f+=h.length}}}return t},cleanData:function(a,b){for(var c,e,f,g,h=0,k=d.expando,q=d.cache,u=d.support.deleteExpando,w=d.event.special;(f=a[h])!=null;h++)if(b||d.acceptData(f))if(c=(e=f[k])&&q[e]){if(c.events)for(g in c.events)w[g]?d.event.remove(f,g):d.removeEvent(f,g,c.handle);if(q[e]){delete q[e];if(u)delete f[k];else if(f.removeAttribute)f.removeAttribute(k);else f[k]=null;d.deletedIds.push(e)}}}});(function(){var a,
|
149
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,g){return new c.fn.init(f,
|
150
148
|
g)}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,g){if(g&&g instanceof d&&!(g instanceof c))g=c(g);return d.fn.init.call(this,f,g,e)};c.fn.init.prototype=c.fn;var e=c(L);return c}})();var xa,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=
|
151
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!==s?d.style(c,e,f):d.css(c,e)},a,b,arguments.length>1)},show:function(){return E(this,true)},hide:function(){return E(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?
|
152
|
-
a:B(this))?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(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,g,h,k=d.camelCase(b),
|
153
|
-
if(c!==s){g=typeof c;if(g==="string"&&(f=fd.exec(c))){c=(f[1]+1)*f[2]+parseFloat(d.css(a,b));g="number"}if(!(c==null||g==="number"&&isNaN(c))){if(g==="number"&&!d.cssNumber[k])c+="px";if(!h||!("set"in h)||(c=h.set(a,c,e))!==s)try{
|
150
|
+
a:B(this))?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(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,g,h,k=d.camelCase(b),q=a.style;b=d.cssProps[k]||(d.cssProps[k]=D(q,k));h=d.cssHooks[b]||d.cssHooks[k];
|
151
|
+
if(c!==s){g=typeof c;if(g==="string"&&(f=fd.exec(c))){c=(f[1]+1)*f[2]+parseFloat(d.css(a,b));g="number"}if(!(c==null||g==="number"&&isNaN(c))){if(g==="number"&&!d.cssNumber[k])c+="px";if(!h||!("set"in h)||(c=h.set(a,c,e))!==s)try{q[b]=c}catch(u){}}}else{if(h&&"get"in h&&(f=h.get(a,false,e))!==s)return f;return q[b]}}},css:function(a,b,c,e){var f,g;g=d.camelCase(b);b=d.cssProps[g]||(d.cssProps[g]=D(a.style,g));if((g=d.cssHooks[b]||d.cssHooks[g])&&"get"in g)f=g.get(a,true,e);if(f===s)f=xa(a,b);if(f===
|
154
152
|
"normal"&&b in dc)f=dc[b];if(c||e!==s){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)xa=function(a,b){var c,e,f,g,h=i.getComputedStyle(a,null),k=a.style;if(h){c=h[b];if(c===""&&!d.contains(a.ownerDocument,a))c=d.style(a,b);if(kb.test(c)&&cc.test(b)){e=k.width;f=k.minWidth;g=k.maxWidth;k.minWidth=k.maxWidth=k.width=c;c=h.width;k.width=e;k.minWidth=
|
155
153
|
f;k.maxWidth=g}}return c};else if(L.documentElement.currentStyle)xa=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f==null&&g&&g[b])f=g[b];if(kb.test(f)&&!dd.test(b)){c=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":f;f=g.pixelLeft+"px";g.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(xa(c,
|
156
154
|
"display"))?d.swap(c,gd,function(){return Q(c,b,f)}):Q(c,b,f)},set:function(c,e,f){return S(c,e,f?W(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+")":"",g=e&&e.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(g.replace(Fb,
|
@@ -159,27 +157,27 @@ function(a){return a.offsetWidth===0&&a.offsetHeight===0||!d.support.reliableHid
|
|
159
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()}});
|
160
158
|
d.param=function(a,b){var c,e=[],f=function(g,h){h=d.isFunction(h)?h():h==null?"":h;e[e.length]=encodeURIComponent(g)+"="+encodeURIComponent(h)};if(b===s)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)na(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,
|
161
159
|
qd=/([?&])_=[^&]*/,gc=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,hc=d.fn.load,xb={},ic={},jc=["*/"]+["*"];try{Va=Za.href}catch(yd){Va=L.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,g,h=this,k=a.indexOf(" ");if(k>=0){e=a.slice(k,a.length);a=a.slice(0,k)}if(d.isFunction(b)){c=b;b=s}else if(b&&typeof b==="object")f="POST";d.ajax({url:a,type:f,dataType:"html",
|
162
|
-
data:b,complete:function(
|
160
|
+
data:b,complete:function(q,u){if(c)h.each(c,g||[q.responseText,u,q])}}).done(function(q){g=arguments;h.html(e?d("<div>").append(q.replace(pd,"")).find(e):q)});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,g){if(d.isFunction(e)){g=g||f;f=e;e=s}return d.ajax({type:b,url:c,data:e,success:f,dataType:g})}});d.extend({getScript:function(a,b){return d.get(a,
|
163
161
|
s,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},
|
164
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(V,ha,ca,fa){var pa,ga,da,Ca,va=ha;if(wa!==2){wa=2;k&&clearTimeout(k);h=s;f=fa||"";T.readyState=V>0?4:0;if(ca){Ca=t;fa=T;var Da,aa,oa,bb,ya=Ca.contents,qa=Ca.dataTypes,ib=Ca.responseFields;for(aa in ib)if(aa in
|
165
163
|
ca)fa[ib[aa]]=ca[aa];for(;qa[0]==="*";){qa.shift();if(Da===s)Da=Ca.mimeType||fa.getResponseHeader("content-type")}if(Da)for(aa in ya)if(ya[aa]&&ya[aa].test(Da)){qa.unshift(aa);break}if(qa[0]in ca)oa=qa[0];else{for(aa in ca){if(!qa[0]||Ca.converters[aa+" "+qa[0]]){oa=aa;break}bb||(bb=aa)}oa=oa||bb}if(oa){oa!==qa[0]&&qa.unshift(oa);Ca=ca[oa]}else Ca=void 0}if(V>=200&&V<300||V===304){if(t.ifModified){if(ca=T.getResponseHeader("Last-Modified"))d.lastModified[e]=ca;if(ca=T.getResponseHeader("Etag"))d.etag[e]=
|
166
164
|
ca}if(V===304){va="notmodified";pa=true}else{a:{ga=t;da=Ca;var ua,Ua;va=ga.dataTypes.slice();Da=va[0];aa={};oa=0;if(ga.dataFilter)da=ga.dataFilter(da,ga.dataType);if(va[1])for(ua in ga.converters)aa[ua.toLowerCase()]=ga.converters[ua];for(;ca=va[++oa];)if(ca!=="*"){if(Da!=="*"&&Da!==ca){ua=aa[Da+" "+ca]||aa["* "+ca];if(!ua)for(Ua in aa){pa=Ua.split(" ");if(pa[1]===ca)if(ua=aa[Da+" "+pa[0]]||aa["* "+pa[0]]){if(ua===true)ua=aa[Ua];else if(aa[Ua]!==true){ca=pa[0];va.splice(oa--,0,ca)}break}}if(ua!==
|
167
|
-
true)if(ua&&ga["throws"])da=ua(da);else try{da=ua(da)}catch(jb){pa={state:"parsererror",error:ua?jb:"No conversion from "+Da+" to "+ca};break a}}Da=ca}pa={state:"success",data:da}}va=pa.state;ga=pa.data;da=pa.error;pa=!da}}else{da=va;if(!va||V){va="error";if(V<0)V=0}}T.status=V;T.statusText=(ha||va)+"";pa?Z.resolveWith(I,[ga,va,T]):Z.rejectWith(I,[T,va,da]);T.statusCode(Ga);Ga=s;if(
|
168
|
-
--d.active||d.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=s}b=b||{};var e,f,g,h,k,
|
165
|
+
true)if(ua&&ga["throws"])da=ua(da);else try{da=ua(da)}catch(jb){pa={state:"parsererror",error:ua?jb:"No conversion from "+Da+" to "+ca};break a}}Da=ca}pa={state:"success",data:da}}va=pa.state;ga=pa.data;da=pa.error;pa=!da}}else{da=va;if(!va||V){va="error";if(V<0)V=0}}T.status=V;T.statusText=(ha||va)+"";pa?Z.resolveWith(I,[ga,va,T]):Z.rejectWith(I,[T,va,da]);T.statusCode(Ga);Ga=s;if(u)P.trigger("ajax"+(pa?"Success":"Error"),[T,t,pa?ga:da]);ma.fireWith(I,[T,va]);if(u){P.trigger("ajaxComplete",[T,t]);
|
166
|
+
--d.active||d.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=s}b=b||{};var e,f,g,h,k,q,u,w,t=d.ajaxSetup({},b),I=t.context||t,P=I!==t&&(I.nodeType||I instanceof d)?d(I):d.event,Z=d.Deferred(),ma=d.Callbacks("once memory"),Ga=t.statusCode||{},Na={},ba={},wa=0,Sa="canceled",T={readyState:0,setRequestHeader:function(V,ha){if(!wa){var ca=V.toLowerCase();V=ba[ca]=ba[ca]||V;Na[V]=ha}return this},getAllResponseHeaders:function(){return wa===2?f:null},getResponseHeader:function(V){var ha;if(wa===
|
169
167
|
2){if(!g)for(g={};ha=md.exec(f);)g[ha[1].toLowerCase()]=ha[2];ha=g[V.toLowerCase()]}return ha===s?null:ha},overrideMimeType:function(V){if(!wa)t.mimeType=V;return this},abort:function(V){V=V||Sa;h&&h.abort(V);c(0,V);return this}};Z.promise(T);T.success=T.done;T.error=T.fail;T.complete=ma.add;T.statusCode=function(V){if(V){var ha;if(wa<2)for(ha in V)Ga[ha]=[Ga[ha],V[ha]];else{ha=V[T.status];T.always(ha)}}return this};t.url=((a||t.url)+"").replace(ld,"").replace(od,eb[1]+"//");t.dataTypes=d.trim(t.dataType||
|
170
|
-
"*").toLowerCase().split(Pa);if(t.crossDomain==null){
|
171
|
-
delete t.data}e=t.url;if(t.cache===false){
|
172
|
-
(t.dataTypes[0]!=="*"?", "+jc+"; q=0.01":""):t.accepts["*"]);for(w in t.headers)T.setRequestHeader(w,t.headers[w]);if(t.beforeSend&&(t.beforeSend.call(I,T,t)===false||wa===2))return T.abort();Sa="abort";for(w in{success:1,error:1,complete:1})T[w](t[w]);if(h=Ha(ic,t,b,T)){T.readyState=1;
|
173
|
-
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,g,h=a.data,k=a.url,
|
174
|
-
a.jsonpCallback;f=i[e];if(
|
168
|
+
"*").toLowerCase().split(Pa);if(t.crossDomain==null){q=gc.exec(t.url.toLowerCase())||false;t.crossDomain=q&&q.join(":")+(q[3]?"":q[1]==="http:"?80:443)!==eb.join(":")+(eb[3]?"":eb[1]==="http:"?80:443)}if(t.data&&t.processData&&typeof t.data!=="string")t.data=d.param(t.data,t.traditional);Ha(xb,t,b,T);if(wa===2)return T;u=t.global;t.type=t.type.toUpperCase();t.hasContent=!nd.test(t.type);u&&d.active++===0&&d.event.trigger("ajaxStart");if(!t.hasContent){if(t.data){t.url+=(fc.test(t.url)?"&":"?")+t.data;
|
169
|
+
delete t.data}e=t.url;if(t.cache===false){q=d.now();var cb=t.url.replace(qd,"$1_="+q);t.url=cb+(cb===t.url?(fc.test(t.url)?"&":"?")+"_="+q:"")}}if(t.data&&t.hasContent&&t.contentType!==false||b.contentType)T.setRequestHeader("Content-Type",t.contentType);if(t.ifModified){e=e||t.url;d.lastModified[e]&&T.setRequestHeader("If-Modified-Since",d.lastModified[e]);d.etag[e]&&T.setRequestHeader("If-None-Match",d.etag[e])}T.setRequestHeader("Accept",t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+
|
170
|
+
(t.dataTypes[0]!=="*"?", "+jc+"; q=0.01":""):t.accepts["*"]);for(w in t.headers)T.setRequestHeader(w,t.headers[w]);if(t.beforeSend&&(t.beforeSend.call(I,T,t)===false||wa===2))return T.abort();Sa="abort";for(w in{success:1,error:1,complete:1})T[w](t[w]);if(h=Ha(ic,t,b,T)){T.readyState=1;u&&P.trigger("ajaxSend",[T,t]);if(t.async&&t.timeout>0)k=setTimeout(function(){T.abort("timeout")},t.timeout);try{wa=1;h.send(Na,c)}catch(db){if(wa<2)c(-1,db);else throw db;}}else c(-1,"No Transport");return T},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,g,h=a.data,k=a.url,q=a.jsonp!==false,u=q&&ub.test(k),w=q&&!u&&typeof h==="string"&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&ub.test(h);if(a.dataTypes[0]==="jsonp"||u||w){e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():
|
172
|
+
a.jsonpCallback;f=i[e];if(u)a.url=k.replace(ub,"$1"+e);else if(w)a.data=h.replace(ub,"$1"+e);else if(q)a.url+=(rd.test(k)?"&":"?")+a.jsonp+"="+e;a.converters["script json"]=function(){g||d.error(e+" was not called");return g[0]};a.dataTypes[0]="json";i[e]=function(){g=arguments};c.always(function(){i[e]=f;if(a[e]){a.jsonpCallback=b.jsonpCallback;kc.push(e)}g&&d.isFunction(f)&&f(g[0]);g=f=s});return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
|
175
173
|
contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache===s)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=L.head||L.getElementsByTagName("head")[0]||L.documentElement;return{send:function(e,f){b=L.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=
|
176
174
|
function(g,h){if(h||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;c&&b.parentNode&&c.removeChild(b);b=s;h||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,
|
177
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,g,h=a.xhr();a.username?h.open(a.type,a.url,a.async,a.username,a.password):h.open(a.type,a.url,a.async);if(a.xhrFields)for(g in a.xhrFields)h[g]=a.xhrFields[g];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType);if(!a.crossDomain&&!c["X-Requested-With"])c["X-Requested-With"]="XMLHttpRequest";try{for(g in c)h.setRequestHeader(g,
|
178
|
-
c[g])}catch(k){}h.send(a.hasContent&&a.data||null);b=function(
|
179
|
-
4)setTimeout(b,0);else{f=++td;if(Gb){if(!fb){fb={};d(i).unload(Gb)}fb[f]=b}h.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,g,h,k,
|
180
|
-
d.queue(a,"fx").length||k.empty.fire()})})}if(a.nodeType===1&&("height"in b||"width"in b)){c.overflow=[w.overflow,w.overflowX,w.overflowY];if(d.css(a,"display")==="inline"&&d.css(a,"float")==="none")if(!d.support.inlineBlockNeedsLayout||Fa(a.nodeName)==="inline")w.display="inline-block";else w.zoom=1}if(c.overflow){w.overflow="hidden";d.support.shrinkWrapBlocks||
|
181
|
-
if(f!==(P?"hide":"show"))I.push(e)}}if(f=I.length){g=d._data(a,"fxshow")||d._data(a,"fxshow",{});P?d(a).show():
|
182
|
-
e=g[3]||(d.cssNumber[a]?"":"px");if(e!=="px"&&k){k=d.css(f.elem,a,true)||c||1;do{
|
176
|
+
c[g])}catch(k){}h.send(a.hasContent&&a.data||null);b=function(q,u){var w,t,I,P,Z;try{if(b&&(u||h.readyState===4)){b=s;if(f){h.onreadystatechange=d.noop;Gb&&delete fb[f]}if(u)h.readyState!==4&&h.abort();else{w=h.status;I=h.getAllResponseHeaders();P={};if((Z=h.responseXML)&&Z.documentElement)P.xml=Z;try{P.text=h.responseText}catch(ma){}try{t=h.statusText}catch(Ga){t=""}if(!w&&a.isLocal&&!a.crossDomain)w=P.text?200:404;else if(w===1223)w=204}}}catch(Na){u||e(-1,Na)}P&&e(w,t,P,I)};if(a.async)if(h.readyState===
|
177
|
+
4)setTimeout(b,0);else{f=++td;if(Gb){if(!fb){fb={};d(i).unload(Gb)}fb[f]=b}h.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,g,h,k,q,u=this,w=a.style,t={},I=[],P=a.nodeType&&B(a);if(!c.queue){k=d._queueHooks(a,"fx");if(k.unqueued==null){k.unqueued=0;q=k.empty.fire;k.empty.fire=function(){k.unqueued||q()}}k.unqueued++;u.always(function(){u.always(function(){k.unqueued--;
|
178
|
+
d.queue(a,"fx").length||k.empty.fire()})})}if(a.nodeType===1&&("height"in b||"width"in b)){c.overflow=[w.overflow,w.overflowX,w.overflowY];if(d.css(a,"display")==="inline"&&d.css(a,"float")==="none")if(!d.support.inlineBlockNeedsLayout||Fa(a.nodeName)==="inline")w.display="inline-block";else w.zoom=1}if(c.overflow){w.overflow="hidden";d.support.shrinkWrapBlocks||u.done(function(){w.overflow=c.overflow[0];w.overflowX=c.overflow[1];w.overflowY=c.overflow[2]})}for(e in b){f=b[e];if(ud.exec(f)){delete b[e];
|
179
|
+
if(f!==(P?"hide":"show"))I.push(e)}}if(f=I.length){g=d._data(a,"fxshow")||d._data(a,"fxshow",{});P?d(a).show():u.done(function(){d(a).hide()});u.done(function(){var Z;d.removeData(a,"fxshow",true);for(Z in t)d.style(a,Z,t[Z])});for(e=0;e<f;e++){b=I[e];h=u.createTween(b,P?g[b]:0);t[b]=g[b]||d.style(a,b);if(!(b in g)){g[b]=h.start;if(P){h.end=h.start;h.start=b==="width"||b==="height"?1:0}}}}}],gb={"*":[function(a,b){var c,e,f=this.createTween(a,b),g=vd.exec(b),h=f.cur(),k=+h||0,q=1,u=20;if(g){c=+g[2];
|
180
|
+
e=g[3]||(d.cssNumber[a]?"":"px");if(e!=="px"&&k){k=d.css(f.elem,a,true)||c||1;do{q=q||".5";k/=q;d.style(f.elem,a,k+e)}while(q!==(q=f.cur()/h)&&q!==1&&--u)}f.unit=e;f.start=k;f.end=g[1]?k+(g[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=ra;ra.prototype={constructor:ra,init:function(a,b,c,
|
183
181
|
e,f,g){this.elem=a;this.prop=c;this.easing=f||"swing";this.options=b;this.start=this.now=this.cur();this.end=e;this.unit=g||(d.cssNumber[c]?"":"px")},cur:function(){var a=ra.propHooks[this.prop];return a&&a.get?a.get(this):ra.propHooks._default.get(this)},run:function(a){var b,c=ra.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,
|
184
182
|
this.now,this);c&&c.set?c.set(this):ra.propHooks._default.set(this);return this}};ra.prototype.init.prototype=ra.prototype;ra.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]=
|
185
183
|
a.now}}};ra.propHooks.scrollTop=ra.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,g){return e==null||typeof e==="boolean"||!a&&d.isFunction(e)&&d.isFunction(f)?c.apply(this,arguments):this.animate(Ra(b,true),e,f,g)}});d.fn.extend({fadeTo:function(a,b,c,e){return this.filter(B).css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,c,e){var f=
|
@@ -188,36 +186,36 @@ this&&(a==null||h[g].queue===a)){h[g].anim.stop(c);f=false;h.splice(g,1)}if(f||!
|
|
188
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=ra.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--,
|
189
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===s?this:this.each(function(k){d.offset.setOffset(this,
|
190
188
|
a,k)});var b,c,e,f,g,h={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 h;if(typeof e.getBoundingClientRect!=="undefined")h=e.getBoundingClientRect();e=nb(f);f=b.clientTop||c.clientTop||0;c=b.clientLeft||c.clientLeft||0;g=e.pageYOffset||b.scrollTop;return{top:h.top+g-f,left:h.left+(e.pageXOffset||b.scrollLeft)-c}}};d.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;if(d.support.doesNotIncludeMarginInBodyOffset){b+=
|
191
|
-
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),g=f.offset(),h=d.css(a,"top"),k=d.css(a,"left"),
|
192
|
-
k;"using"in b?b.using.call(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),g=f.offset(),h=d.css(a,"top"),k=d.css(a,"left"),q={},u={};if((e==="absolute"||e==="fixed")&&d.inArray("auto",[h,k])>-1){u=f.position();e=u.top;k=u.left}else{e=parseFloat(h)||0;k=parseFloat(k)||0}if(d.isFunction(b))b=b.call(a,c,g);if(b.top!=null)q.top=b.top-g.top+e;if(b.left!=null)q.left=b.left-g.left+
|
190
|
+
k;"using"in b?b.using.call(a,q):f.css(q)}};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||
|
193
191
|
L.body;a&&!lc.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a||L.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,g,h){var k=nb(f);if(h===s)return k?b in k?k[b]:k.document.documentElement[g]:f[g];if(k)k.scrollTo(!c?h:d(k).scrollLeft(),c?h:d(k).scrollTop());else f[g]=h},a,e,arguments.length,null)}});d.each({Height:"height",Width:"width"},function(a,b){d.each({padding:"inner"+
|
194
|
-
a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,g){var h=arguments.length&&(c||typeof f!=="boolean"),k=c||(f===true||g===true?"margin":"border");return d.access(this,function(
|
195
|
-
define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);(function(i,s){function l(m,
|
196
|
-
{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(m,
|
192
|
+
a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,g){var h=arguments.length&&(c||typeof f!=="boolean"),k=c||(f===true||g===true?"margin":"border");return d.access(this,function(q,u,w){if(d.isWindow(q))return q.document.documentElement["client"+a];if(q.nodeType===9){u=q.documentElement;return Math.max(q.body["scroll"+a],u["scroll"+a],q.body["offset"+a],u["offset"+a],u["client"+a])}return w===s?d.css(q,u,w,k):d.style(q,u,w,k)},b,h?f:s,h,null)}})});i.jQuery=i.$=d;typeof define==="function"&&
|
193
|
+
define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);(function(i){function s(m){if(typeof m!="string"&&typeof m!="number")throw new TypeError("Key name must be string or numeric");}function l(){try{r.oleloStorage=JSON.stringify(A)}catch(m){}}var r={},A={};try{if(window.localStorage)r=window.localStorage;if(r.oleloStorage)A=JSON.parse(r.oleloStorage)}catch(o){}i.storage={set:function(m,v){s(m);A[m]=v;l();return v},get:function(m,v){s(m);if(m in A)return A[m];return typeof v=="undefined"?null:v},remove:function(m){s(m);if(m in A){delete A[m];l();return true}return false}}})(jQuery);(function(i,s){function l(m,v){var z,F;z=m.nodeName.toLowerCase();if("area"===z){z=m.parentNode;F=z.name;if(!m.href||!F||z.nodeName.toLowerCase()!=="map")return false;z=i("img[usemap=#"+F+"]")[0];return!!z&&r(z)}return(/input|select|textarea|button|object/.test(z)?!m.disabled:"a"===z?m.href||v:v)&&r(m)}function r(m){return!i(m).parents().andSelf().filter(function(){return i.css(this,"visibility")==="hidden"||i.expr.filters.hidden(this)}).length}var A=0,o=/^ui-id-\d+$/;i.ui=i.ui||{};if(!i.ui.version){i.extend(i.ui,
|
194
|
+
{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(m,v){return typeof m==="number"?this.each(function(){var z=this;setTimeout(function(){i(z).focus();v&&v.call(z)},m)}):this._focus.apply(this,arguments)},scrollParent:function(){var m;
|
197
195
|
m=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"))||!m.length?i(document):
|
198
|
-
m},zIndex:function(m){if(m!==s)return this.css("zIndex",m);if(this.length){m=i(this[0]);for(var
|
199
|
-
"Height"],function(m,
|
200
|
-
z(this,N)+"px")})};i.fn["outer"+
|
201
|
-
document.body,
|
202
|
-
{plugin:{add:function(m,
|
203
|
-
0;return F},isOverAxis:function(m,
|
204
|
-
|
205
|
-
widgetBaseClass:z,widgetFullName:z});if(F){i.each(F._childConstructors,function(R,y){var D=y.prototype;i.widget(D.namespace+"."+D.widgetName,M,y._proto)});delete F._childConstructors}else m._childConstructors.push(M);i.widget.bridge(o,M)};i.widget.extend=function(o){for(var m=
|
206
|
-
i.fn[o]=function(z){var F=typeof z==="string",M=
|
207
|
-
i.data(this,
|
196
|
+
m},zIndex:function(m){if(m!==s)return this.css("zIndex",m);if(this.length){m=i(this[0]);for(var v;m.length&&m[0]!==document;){v=m.css("position");if(v==="absolute"||v==="relative"||v==="fixed"){v=parseInt(m.css("zIndex"),10);if(!isNaN(v)&&v!==0)return v}m=m.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id)this.id="ui-id-"+ ++A})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&i(this).removeAttr("id")})}});i("<a>").outerWidth(1).jquery||i.each(["Width",
|
197
|
+
"Height"],function(m,v){function z(N,R,y,D){i.each(F,function(){R-=parseFloat(i.css(N,"padding"+this))||0;if(y)R-=parseFloat(i.css(N,"border"+this+"Width"))||0;if(D)R-=parseFloat(i.css(N,"margin"+this))||0});return R}var F=v==="Width"?["Left","Right"]:["Top","Bottom"],M=v.toLowerCase(),O={innerWidth:i.fn.innerWidth,innerHeight:i.fn.innerHeight,outerWidth:i.fn.outerWidth,outerHeight:i.fn.outerHeight};i.fn["inner"+v]=function(N){if(N===s)return O["inner"+v].call(this);return this.each(function(){i(this).css(M,
|
198
|
+
z(this,N)+"px")})};i.fn["outer"+v]=function(N,R){if(typeof N!=="number")return O["outer"+v].call(this,N);return this.each(function(){i(this).css(M,z(this,N,true,R)+"px")})}});i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(m){return function(v){return!!i.data(v,m)}}):function(m,v,z){return!!i.data(m,z[3])},focusable:function(m){return l(m,!isNaN(i.attr(m,"tabindex")))},tabbable:function(m){var v=i.attr(m,"tabindex"),z=isNaN(v);return(z||v>=0)&&l(m,!z)}});i(function(){var m=
|
199
|
+
document.body,v=m.appendChild(v=document.createElement("div"));i.extend(v.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});i.support.minHeight=v.offsetHeight===100;i.support.selectstart="onselectstart"in v;m.removeChild(v).style.display="none"});i.fn.extend({disableSelection:function(){return this.bind((i.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(m){m.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});i.extend(i.ui,
|
200
|
+
{plugin:{add:function(m,v,z){var F;m=i.ui[m].prototype;for(F in z){m.plugins[F]=m.plugins[F]||[];m.plugins[F].push([v,z[F]])}},call:function(m,v,z){var F=m.plugins[v];if(!(!F||!m.element[0].parentNode||m.element[0].parentNode.nodeType===11))for(v=0;v<F.length;v++)m.options[F[v][0]]&&F[v][1].apply(m.element,z)}},contains:i.contains,hasScroll:function(m,v){if(i(m).css("overflow")==="hidden")return false;var z=v&&v==="left"?"scrollLeft":"scrollTop",F=false;if(m[z]>0)return true;m[z]=1;F=m[z]>0;m[z]=
|
201
|
+
0;return F},isOverAxis:function(m,v,z){return m>v&&m<v+z},isOver:function(m,v,z,F,M,O){return i.ui.isOverAxis(m,z,M)&&i.ui.isOverAxis(v,F,O)}})}})(jQuery);(function(i,s){var l=0,r=Array.prototype.slice,A=i.cleanData;i.cleanData=function(o){for(var m=0,v;(v=o[m])!=null;m++)try{i(v).triggerHandler("remove")}catch(z){}A(o)};i.widget=function(o,m,v){var z,F,M,O,N=o.split(".")[0];o=o.split(".")[1];z=N+"-"+o;if(!v){v=m;m=i.Widget}i.expr[":"][z.toLowerCase()]=function(R){return!!i.data(R,z)};i[N]=i[N]||{};F=i[N][o];M=i[N][o]=function(R,y){if(!this._createWidget)return new M(R,y);arguments.length&&this._createWidget(R,y)};i.extend(M,F,{version:v.version,_proto:i.extend({},
|
202
|
+
v),_childConstructors:[]});O=new m;O.options=i.widget.extend({},O.options);i.each(v,function(R,y){if(i.isFunction(y))v[R]=function(){var D=function(){return m.prototype[R].apply(this,arguments)},B=function(E){return m.prototype[R].apply(this,E)};return function(){var E=this._super,S=this._superApply,W;this._super=D;this._superApply=B;W=y.apply(this,arguments);this._super=E;this._superApply=S;return W}}()});M.prototype=i.widget.extend(O,{widgetEventPrefix:o},v,{constructor:M,namespace:N,widgetName:o,
|
203
|
+
widgetBaseClass:z,widgetFullName:z});if(F){i.each(F._childConstructors,function(R,y){var D=y.prototype;i.widget(D.namespace+"."+D.widgetName,M,y._proto)});delete F._childConstructors}else m._childConstructors.push(M);i.widget.bridge(o,M)};i.widget.extend=function(o){for(var m=r.call(arguments,1),v=0,z=m.length,F,M;v<z;v++)for(F in m[v]){M=m[v][F];if(m[v].hasOwnProperty(F)&&M!==s)o[F]=i.isPlainObject(M)?i.widget.extend({},o[F],M):M}return o};i.widget.bridge=function(o,m){var v=m.prototype.widgetFullName;
|
204
|
+
i.fn[o]=function(z){var F=typeof z==="string",M=r.call(arguments,1),O=this;z=!F&&M.length?i.widget.extend.apply(null,[z].concat(M)):z;F?this.each(function(){var N,R=i.data(this,v);if(!R)return i.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+z+"'");if(!i.isFunction(R[z])||z.charAt(0)==="_")return i.error("no such method '"+z+"' for "+o+" widget instance");N=R[z].apply(R,M);if(N!==R&&N!==s){O=N&&N.jquery?O.pushStack(N.get()):N;return false}}):this.each(function(){var N=
|
205
|
+
i.data(this,v);if(N)N.option(z||{})._init();else new m(z,this)});return O}};i.Widget=function(){};i.Widget._childConstructors=[];i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(o,m){m=i(m||this.defaultElement||this)[0];this.element=i(m);this.uuid=l++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=i.widget.extend({},this.options,this._getCreateOptions(),o);this.bindings=i();this.hoverable=
|
208
206
|
i();this.focusable=i();if(m!==this){i.data(m,this.widgetName,this);i.data(m,this.widgetFullName,this);this._on({remove:"destroy"});this.document=i(m.style?m.ownerDocument:m.document||m);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));
|
209
|
-
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(o,m){var
|
210
|
-
this.options[o]);for(M=0;M<z.length-1;M++){F[z[M]]=F[z[M]]||{};F=F[z[M]]}o=z.pop();if(m===s)return F[o]===s?null:F[o];F[o]=m}else{if(m===s)return this.options[o]===s?null:this.options[o];
|
211
|
-
this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(o,m){if(m){o=i(o);this.bindings=this.bindings.add(o)}else{m=o;o=this.element}var
|
212
|
-
var O=z.match(/^(\w+)\s*(.*)$/),N=O[1]+
|
213
|
-
_focusable:function(o){this.focusable=this.focusable.add(o);this._on(o,{focusin:function(m){i(m.currentTarget).addClass("ui-state-focus")},focusout:function(m){i(m.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(o,m,
|
214
|
-
[m].concat(
|
215
|
-
F&&F.call(
|
207
|
+
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(o,m){var v=o,z,F,M;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof o==="string"){v={};z=o.split(".");o=z.shift();if(z.length){F=v[o]=i.widget.extend({},
|
208
|
+
this.options[o]);for(M=0;M<z.length-1;M++){F[z[M]]=F[z[M]]||{};F=F[z[M]]}o=z.pop();if(m===s)return F[o]===s?null:F[o];F[o]=m}else{if(m===s)return this.options[o]===s?null:this.options[o];v[o]=m}}this._setOptions(v);return this},_setOptions:function(o){var m;for(m in o)this._setOption(m,o[m]);return this},_setOption:function(o,m){this.options[o]=m;if(o==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!m).attr("aria-disabled",m);this.hoverable.removeClass("ui-state-hover");
|
209
|
+
this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(o,m){if(m){o=i(o);this.bindings=this.bindings.add(o)}else{m=o;o=this.element}var v=this;i.each(m,function(z,F){function M(){if(!(v.options.disabled===true||i(this).hasClass("ui-state-disabled")))return(typeof F==="string"?v[F]:F).apply(v,arguments)}if(typeof F!=="string")M.guid=F.guid=F.guid||M.guid||i.guid++;
|
210
|
+
var O=z.match(/^(\w+)\s*(.*)$/),N=O[1]+v.eventNamespace;(O=O[2])?v.widget().delegate(O,N,M):o.bind(N,M)})},_off:function(o,m){m=(m||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;o.unbind(m).undelegate(m)},_delay:function(o,m){var v=this;return setTimeout(function(){return(typeof o==="string"?v[o]:o).apply(v,arguments)},m||0)},_hoverable:function(o){this.hoverable=this.hoverable.add(o);this._on(o,{mouseenter:function(m){i(m.currentTarget).addClass("ui-state-hover")},mouseleave:function(m){i(m.currentTarget).removeClass("ui-state-hover")}})},
|
211
|
+
_focusable:function(o){this.focusable=this.focusable.add(o);this._on(o,{focusin:function(m){i(m.currentTarget).addClass("ui-state-focus")},focusout:function(m){i(m.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(o,m,v){var z,F=this.options[o];v=v||{};m=i.Event(m);m.type=(o===this.widgetEventPrefix?o:this.widgetEventPrefix+o).toLowerCase();m.target=this.element[0];if(o=m.originalEvent)for(z in o)z in m||(m[z]=o[z]);this.element.trigger(m,v);return!(i.isFunction(F)&&F.apply(this.element[0],
|
212
|
+
[m].concat(v))===false||m.isDefaultPrevented())}};i.each({show:"fadeIn",hide:"fadeOut"},function(o,m){i.Widget.prototype["_"+o]=function(v,z,F){if(typeof z==="string")z={effect:z};var M,O=!z?o:z===true||typeof z==="number"?m:z.effect||m;z=z||{};if(typeof z==="number")z={duration:z};M=!i.isEmptyObject(z);z.complete=F;z.delay&&v.delay(z.delay);if(M&&i.effects&&(i.effects.effect[O]||i.uiBackCompat!==false&&i.effects[O]))v[o](z);else O!==o&&v[O]?v[O](z.duration,z.easing,F):v.queue(function(N){i(this)[o]();
|
213
|
+
F&&F.call(v[0]);N()})}});if(i.uiBackCompat!==false)i.Widget.prototype._getCreateOptions=function(){return i.metadata&&i.metadata.get(this.element[0])[this.widgetName]}})(jQuery);(function(i,s){function l(y,D,B){return[parseInt(y[0],10)*(N.test(y[0])?D/100:1),parseInt(y[1],10)*(N.test(y[1])?B/100:1)]}function r(y,D){return parseInt(i.css(y,D),10)||0}i.ui=i.ui||{};var A,o=Math.max,m=Math.abs,v=Math.round,z=/left|center|right/,F=/top|center|bottom/,M=/[\+\-]\d+%?/,O=/^\w+/,N=/%$/,R=i.fn.position;i.position={scrollbarWidth:function(){if(A!==s)return A;var y,D,B=i("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");
|
216
214
|
D=B.children()[0];i("body").append(B);y=D.offsetWidth;B.css("overflow","scroll");D=D.offsetWidth;if(y===D)D=B[0].clientWidth;B.remove();return A=y-D},getScrollInfo:function(y){var D=y.isWindow?"":y.element.css("overflow-x"),B=y.isWindow?"":y.element.css("overflow-y");B=B==="scroll"||B==="auto"&&y.height<y.element[0].scrollHeight;return{width:D==="scroll"||D==="auto"&&y.width<y.element[0].scrollWidth?i.position.scrollbarWidth():0,height:B?i.position.scrollbarWidth():0}},getWithinInfo:function(y){y=
|
217
215
|
i(y||window);var D=i.isWindow(y[0]);return{element:y,isWindow:D,offset:y.offset()||{left:0,top:0},scrollLeft:y.scrollLeft(),scrollTop:y.scrollTop(),width:D?y.width():y.outerWidth(),height:D?y.height():y.outerHeight()}}};i.fn.position=function(y){if(!y||!y.of)return R.apply(this,arguments);y=i.extend({},y);var D,B,E,S,W,Q=i(y.of),Fa=i.position.getWithinInfo(y.within),na=i.position.getScrollInfo(Fa),la=Q[0],Ha=(y.collision||"flip").split(" "),Ya={};if(la.nodeType===9){B=Q.width();E=Q.height();S={top:0,
|
218
216
|
left:0}}else if(i.isWindow(la)){B=Q.width();E=Q.height();S={top:Q.scrollTop(),left:Q.scrollLeft()}}else if(la.preventDefault){y.at="left top";B=E=0;S={top:la.pageY,left:la.pageX}}else{B=Q.outerWidth();E=Q.outerHeight();S=Q.offset()}W=i.extend({},S);i.each(["my","at"],function(){var ia=(y[this]||"").split(" "),Ja,Aa;if(ia.length===1)ia=z.test(ia[0])?ia.concat(["center"]):F.test(ia[0])?["center"].concat(ia):["center","center"];ia[0]=z.test(ia[0])?ia[0]:"center";ia[1]=F.test(ia[1])?ia[1]:"center";Ja=
|
219
|
-
M.exec(ia[0]);Aa=M.exec(ia[1]);Ya[this]=[Ja?Ja[0]:0,Aa?Aa[0]:0];y[this]=[O.exec(ia[0])[0],O.exec(ia[1])[0]]});if(Ha.length===1)Ha[1]=Ha[0];if(y.at[0]==="right")W.left+=B;else if(y.at[0]==="center")W.left+=B/2;if(y.at[1]==="bottom")W.top+=E;else if(y.at[1]==="center")W.top+=E/2;D=l(Ya.at,B,E);W.left+=D[0];W.top+=D[1];return this.each(function(){var ia,Ja,Aa=i(this),Ia=Aa.outerWidth(),Ka=Aa.outerHeight(),ra=
|
220
|
-
|
217
|
+
M.exec(ia[0]);Aa=M.exec(ia[1]);Ya[this]=[Ja?Ja[0]:0,Aa?Aa[0]:0];y[this]=[O.exec(ia[0])[0],O.exec(ia[1])[0]]});if(Ha.length===1)Ha[1]=Ha[0];if(y.at[0]==="right")W.left+=B;else if(y.at[0]==="center")W.left+=B/2;if(y.at[1]==="bottom")W.top+=E;else if(y.at[1]==="center")W.top+=E/2;D=l(Ya.at,B,E);W.left+=D[0];W.top+=D[1];return this.each(function(){var ia,Ja,Aa=i(this),Ia=Aa.outerWidth(),Ka=Aa.outerHeight(),ra=r(this,"marginLeft"),Ra=r(this,"marginTop"),nb=Ia+ra+r(this,"marginRight")+na.width,ob=Ka+Ra+
|
218
|
+
r(this,"marginBottom")+na.height,ja=i.extend({},W),L=l(Ya.my,Aa.outerWidth(),Aa.outerHeight());if(y.my[0]==="right")ja.left-=Ia;else if(y.my[0]==="center")ja.left-=Ia/2;if(y.my[1]==="bottom")ja.top-=Ka;else if(y.my[1]==="center")ja.top-=Ka/2;ja.left+=L[0];ja.top+=L[1];if(!i.support.offsetFractions){ja.left=v(ja.left);ja.top=v(ja.top)}ia={marginLeft:ra,marginTop:Ra};i.each(["left","top"],function(Za,La){i.ui.position[Ha[Za]]&&i.ui.position[Ha[Za]][La](ja,{targetWidth:B,targetHeight:E,elemWidth:Ia,
|
221
219
|
elemHeight:Ka,collisionPosition:ia,collisionWidth:nb,collisionHeight:ob,offset:[D[0]+L[0],D[1]+L[1]],my:y.my,at:y.at,within:Fa,elem:Aa})});i.fn.bgiframe&&Aa.bgiframe();if(y.using)Ja=function(Za){var La=S.left-ja.left,hb=La+B-Ia,$a=S.top-ja.top,ab=$a+E-Ka,Ba={target:{element:Q,left:S.left,top:S.top,width:B,height:E},element:{element:Aa,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(B<Ia&&m(La+hb)<B)Ba.horizontal=
|
222
220
|
"center";if(E<Ka&&m($a+ab)<E)Ba.vertical="middle";Ba.important=o(m(La),m(hb))>o(m($a),m(ab))?"horizontal":"vertical";y.using.call(this,Za,Ba)};Aa.offset(i.extend(ja,{using:Ja}))})};i.ui.position={fit:{left:function(y,D){var B=D.within,E=B.isWindow?B.scrollLeft:B.offset.left,S=B.width,W=y.left-D.collisionPosition.marginLeft;B=E-W;var Q=W+D.collisionWidth-S-E;if(D.collisionWidth>S)if(B>0&&Q<=0){E=y.left+B+D.collisionWidth-S-E;y.left+=B-E}else y.left=Q>0&&B<=0?E:B>Q?E+S-D.collisionWidth:E;else if(B>
|
223
221
|
0)y.left+=B;else if(Q>0)y.left-=Q;else y.left=o(y.left-W,y.left)},top:function(y,D){var B=D.within,E=B.isWindow?B.scrollTop:B.offset.top,S=D.within.height,W=y.top-D.collisionPosition.marginTop;B=E-W;var Q=W+D.collisionHeight-S-E;if(D.collisionHeight>S)if(B>0&&Q<=0){E=y.top+B+D.collisionHeight-S-E;y.top+=B-E}else y.top=Q>0&&B<=0?E:B>Q?E+S-D.collisionHeight:E;else if(B>0)y.top+=B;else if(Q>0)y.top-=Q;else y.top=o(y.top-W,y.top)}},flip:{left:function(y,D){var B=D.within,E=B.offset.left+B.scrollLeft,
|
@@ -226,42 +224,42 @@ B.scrollTop,S=B.height,W=B.isWindow?B.scrollTop:B.offset.top,Q=y.top-D.collision
|
|
226
224
|
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 y,D,B,E,S=document.getElementsByTagName("body")[0];B=document.createElement("div");y=document.createElement(S?"div":"body");D={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};S&&i.extend(D,{position:"absolute",left:"-1000px",top:"-1000px"});
|
227
225
|
for(E in D)y.style[E]=D[E];y.appendChild(B);D=S||document.documentElement;D.insertBefore(y,D.firstChild);B.style.cssText="position: absolute; left: 10.7432222px;";B=i(B).offset().left;i.support.offsetFractions=B>10&&B<11;y.innerHTML="";D.removeChild(y)})();i.uiBackCompat!==false&&function(y){var D=y.fn.position;y.fn.position=function(B){if(!B||!B.offset)return D.call(this,B);var E=B.offset.split(" "),S=B.at.split(" ");if(E.length===1)E[1]=E[0];if(/^\d/.test(E[0]))E[0]="+"+E[0];if(/^\d/.test(E[1]))E[1]=
|
228
226
|
"+"+E[1];if(S.length===1)if(/left|center|right/.test(S[0]))S[1]="center";else{S[1]=S[0];S[0]="center"}return D.call(this,y.extend(B,{at:S[0]+E[0]+" "+S[1]+E[1],offset:s}))}}(jQuery)})(jQuery);(function(i){var s=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,
|
229
|
-
i.proxy(function(l){this.options.disabled&&l.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(l){l.preventDefault()},"click .ui-state-disabled > a":function(l){l.preventDefault()},"click .ui-menu-item:has(a)":function(l){var
|
230
|
-
[true]);this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(l){var
|
227
|
+
i.proxy(function(l){this.options.disabled&&l.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(l){l.preventDefault()},"click .ui-state-disabled > a":function(l){l.preventDefault()},"click .ui-menu-item:has(a)":function(l){var r=i(l.target).closest(".ui-menu-item");if(!s&&r.not(".ui-state-disabled").length){s=true;this.select(l);if(r.has(".ui-menu").length)this.expand(l);else if(!this.element.is(":focus")){this.element.trigger("focus",
|
228
|
+
[true]);this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(l){var r=i(l.currentTarget);r.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(l,r)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(l,r){var A=this.active||this.element.children(".ui-menu-item").eq(0);r||this.focus(l,A)},blur:function(l){this._delay(function(){i.contains(this.element[0],this.document[0].activeElement)||
|
231
229
|
this.collapseAll(l)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(l){i(l.target).closest(".ui-menu").length||this.collapseAll(l);s=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();
|
232
|
-
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 l=i(this);l.data("ui-menu-submenu-carat")&&l.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(l){function
|
233
|
-
"\\$&")}var A,o,m,
|
234
|
-
break;case i.ui.keyCode.ESCAPE:this.collapse(l);break;default:z=false;A=this.previousFilter||"";o=String.fromCharCode(l.keyCode);m=false;clearTimeout(this.filterTimer);if(o===A)m=true;else o=A+o;
|
235
|
-
A);if(A.length>1){this.previousFilter=o;this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)}else delete this.previousFilter}else delete this.previousFilter}z&&l.preventDefault()},_activate:function(l){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(l):this.select(l))},refresh:function(){var l,
|
230
|
+
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 l=i(this);l.data("ui-menu-submenu-carat")&&l.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(l){function r(F){return F.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
|
231
|
+
"\\$&")}var A,o,m,v,z=true;switch(l.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(l);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(l);break;case i.ui.keyCode.HOME:this._move("first","first",l);break;case i.ui.keyCode.END:this._move("last","last",l);break;case i.ui.keyCode.UP:this.previous(l);break;case i.ui.keyCode.DOWN:this.next(l);break;case i.ui.keyCode.LEFT:this.collapse(l);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(l);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(l);
|
232
|
+
break;case i.ui.keyCode.ESCAPE:this.collapse(l);break;default:z=false;A=this.previousFilter||"";o=String.fromCharCode(l.keyCode);m=false;clearTimeout(this.filterTimer);if(o===A)m=true;else o=A+o;v=RegExp("^"+r(o),"i");A=this.activeMenu.children(".ui-menu-item").filter(function(){return v.test(i(this).children("a").text())});A=m&&A.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):A;if(!A.length){o=String.fromCharCode(l.keyCode);v=RegExp("^"+r(o),"i");A=this.activeMenu.children(".ui-menu-item").filter(function(){return v.test(i(this).children("a").text())})}if(A.length){this.focus(l,
|
233
|
+
A);if(A.length>1){this.previousFilter=o;this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)}else delete this.previousFilter}else delete this.previousFilter}z&&l.preventDefault()},_activate:function(l){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(l):this.select(l))},refresh:function(){var l,r=this.options.icons.submenu,A=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,
|
236
234
|
"aria-hidden":"true","aria-expanded":"false"});l=A.add(this.element);l.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()});l.children(":not(.ui-menu-item)").each(function(){var o=i(this);/[^\-\u2014\u2013\s]/.test(o.text())||o.addClass("ui-widget-content ui-menu-divider")});l.children(".ui-state-disabled").attr("aria-disabled","true");A.each(function(){var o=i(this),
|
237
|
-
m=o.prev("a"),
|
238
|
-
this.element.attr("aria-activedescendant",A.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(l&&l.type==="keydown")this._close();else this.timer=this._delay(function(){this._close()},this.delay);A=
|
239
|
-
0;A=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0;
|
240
|
-
"true")this.timer=this._delay(function(){this._close();this._open(l)},this.delay)},_open:function(l){var
|
241
|
-
if(!A.length)A=this.element;this._close(A);this.blur(l);this.activeMenu=A},this.delay)},_close:function(l){l||(l=this.active?this.active.parent():this.element);l.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(l){var
|
242
|
-
if(
|
243
|
-
"All"](".ui-menu-item").eq(0);if(!o||!o.length||!this.active)o=this.activeMenu.children(".ui-menu-item")[
|
244
|
-
A,o;if(this.active){if(!this.isFirstItem())if(this._hasScroll()){A=this.active.offset().top;o=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){
|
245
|
-
this.active.has(".ui-menu").length||this.collapseAll(l,true);this._trigger("select",l,
|
246
|
-
"off");this._on({keydown:function(o){if(this.element.prop("readOnly"))
|
247
|
-
break;case m.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(o);o.preventDefault()}break;default:
|
235
|
+
m=o.prev("a"),v=i("<span>").addClass("ui-menu-icon ui-icon "+r).data("ui-menu-submenu-carat",true);m.attr("aria-haspopup","true").prepend(v);o.attr("aria-labelledby",m.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(l,r){var A;this.blur(l,l&&l.type==="focus");this._scrollIntoView(r);this.active=r.first();A=this.active.children("a").addClass("ui-state-focus");this.options.role&&
|
236
|
+
this.element.attr("aria-activedescendant",A.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(l&&l.type==="keydown")this._close();else this.timer=this._delay(function(){this._close()},this.delay);A=r.children(".ui-menu");A.length&&/^mouse/.test(l.type)&&this._startOpening(A);this.activeMenu=r.parent();this._trigger("focus",l,{item:r})},_scrollIntoView:function(l){var r,A,o;if(this._hasScroll()){r=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||
|
237
|
+
0;A=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0;r=l.offset().top-this.activeMenu.offset().top-r-A;A=this.activeMenu.scrollTop();o=this.activeMenu.height();l=l.height();if(r<0)this.activeMenu.scrollTop(A+r);else r+l>o&&this.activeMenu.scrollTop(A+r-o+l)}},blur:function(l,r){r||clearTimeout(this.timer);if(this.active){this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",l,{item:this.active})}},_startOpening:function(l){clearTimeout(this.timer);if(l.attr("aria-hidden")===
|
238
|
+
"true")this.timer=this._delay(function(){this._close();this._open(l)},this.delay)},_open:function(l){var r=i.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(l.parents(".ui-menu")).hide().attr("aria-hidden","true");l.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(r)},collapseAll:function(l,r){clearTimeout(this.timer);this.timer=this._delay(function(){var A=r?this.element:i(l&&l.target).closest(this.element.find(".ui-menu"));
|
239
|
+
if(!A.length)A=this.element;this._close(A);this.blur(l);this.activeMenu=A},this.delay)},_close:function(l){l||(l=this.active?this.active.parent():this.element);l.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(l){var r=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(r&&r.length){this._close();this.focus(l,r)}},expand:function(l){var r=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
|
240
|
+
if(r&&r.length){this._open(r.parent());this._delay(function(){this.focus(l,r)})}},next:function(l){this._move("next","first",l)},previous:function(l){this._move("prev","last",l)},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(l,r,A){var o;if(this.active)o=l==="first"||l==="last"?this.active[l==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[l+
|
241
|
+
"All"](".ui-menu-item").eq(0);if(!o||!o.length||!this.active)o=this.activeMenu.children(".ui-menu-item")[r]();this.focus(A,o)},nextPage:function(l){var r,A,o;if(this.active){if(!this.isLastItem())if(this._hasScroll()){A=this.active.offset().top;o=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){r=i(this);return r.offset().top-A-o<0});this.focus(l,r)}else this.focus(l,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())}else this.next(l)},previousPage:function(l){var r,
|
242
|
+
A,o;if(this.active){if(!this.isFirstItem())if(this._hasScroll()){A=this.active.offset().top;o=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){r=i(this);return r.offset().top-A+o>0});this.focus(l,r)}else this.focus(l,this.activeMenu.children(".ui-menu-item").first())}else this.next(l)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(l){this.active=this.active||i(l.target).closest(".ui-menu-item");var r={item:this.active};
|
243
|
+
this.active.has(".ui-menu").length||this.collapseAll(l,true);this._trigger("select",l,r)}})})(jQuery);(function(i){var s=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 l,r,A;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",
|
244
|
+
"off");this._on({keydown:function(o){if(this.element.prop("readOnly"))r=A=l=true;else{r=A=l=false;var m=i.ui.keyCode;switch(o.keyCode){case m.PAGE_UP:l=true;this._move("previousPage",o);break;case m.PAGE_DOWN:l=true;this._move("nextPage",o);break;case m.UP:l=true;this._keyEvent("previous",o);break;case m.DOWN:l=true;this._keyEvent("next",o);break;case m.ENTER:case m.NUMPAD_ENTER:if(this.menu.active){l=true;o.preventDefault();this.menu.select(o)}break;case m.TAB:this.menu.active&&this.menu.select(o);
|
245
|
+
break;case m.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(o);o.preventDefault()}break;default:r=true;this._searchTimeout(o);break}}},keypress:function(o){if(l){l=false;o.preventDefault()}else if(!r){var m=i.ui.keyCode;switch(o.keyCode){case m.PAGE_UP:this._move("previousPage",o);break;case m.PAGE_DOWN:this._move("nextPage",o);break;case m.UP:this._keyEvent("previous",o);break;case m.DOWN:this._keyEvent("next",o);break}}},input:function(o){if(A){A=false;o.preventDefault()}else this._searchTimeout(o)},
|
248
246
|
focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(o){if(this.cancelBlur)delete this.cancelBlur;else{clearTimeout(this.searching);this.close(o);this._change(o)}}});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(o){o.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});
|
249
|
-
var m=this.menu.element[0];i(o.target).closest(".ui-menu-item").length||this._delay(function(){var
|
250
|
-
if(false!==this._trigger("focus",o,{item:
|
251
|
-
this.close(o);this.selectedItem=
|
252
|
-
|
253
|
-
"string"){
|
254
|
-
if(this._trigger("search",
|
255
|
-
this._trigger("open")}else this._close()},close:function(l){this.cancelSearch=true;this._close(l)},_close:function(l){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",l)}},_change:function(l){this.previous!==this._value()&&this._trigger("change",l,{item:this.selectedItem})},_normalize:function(l){if(l.length&&l[0].label&&l[0].value)return l;return i.map(l,function(
|
256
|
-
|
257
|
-
m)})},_renderItemData:function(l,
|
258
|
-
arguments)},_keyEvent:function(l,
|
259
|
-
(l>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(l){this._superApply(arguments);this.options.disabled||this.cancelSearch||this.liveRegion.text(l&&l.length?this.options.messages.results(l.length):this.options.messages.noResults)}})})(jQuery);(function(i){function s(A,o){var m=
|
247
|
+
var m=this.menu.element[0];i(o.target).closest(".ui-menu-item").length||this._delay(function(){var v=this;this.document.one("mousedown",function(z){z.target!==v.element[0]&&z.target!==m&&!i.contains(m,z.target)&&v.close()})})},menufocus:function(o,m){if(this.isNewMenu){this.isNewMenu=false;if(o.originalEvent&&/^mouse/.test(o.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){i(o.target).trigger(o.originalEvent)});return}}var v=m.item.data("ui-autocomplete-item")||m.item.data("item.autocomplete");
|
248
|
+
if(false!==this._trigger("focus",o,{item:v}))o.originalEvent&&/^key/.test(o.originalEvent.type)&&this._value(v.value);else this.liveRegion.text(v.value)},menuselect:function(o,m){var v=m.item.data("ui-autocomplete-item")||m.item.data("item.autocomplete"),z=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=z;this._delay(function(){this.previous=z;this.selectedItem=v})}false!==this._trigger("select",o,{item:v})&&this._value(v.value);this.term=this._value();
|
249
|
+
this.close(o);this.selectedItem=v}});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(l,
|
250
|
+
r){this._super(l,r);l==="source"&&this._initSource();if(l==="appendTo")this.menu.element.appendTo(this.document.find(r||"body")[0]);l==="disabled"&&r&&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 l,r,A=this;if(i.isArray(this.options.source)){l=this.options.source;this.source=function(o,m){m(i.ui.autocomplete.filter(l,o.term))}}else if(typeof this.options.source===
|
251
|
+
"string"){r=this.options.source;this.source=function(o,m){A.xhr&&A.xhr.abort();A.xhr=i.ajax({url:r,data:o,dataType:"json",success:function(v){m(v)},error:function(){m([])}})}}else this.source=this.options.source},_searchTimeout:function(l){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value()){this.selectedItem=null;this.search(null,l)}},this.options.delay)},search:function(l,r){l=l!=null?l:this._value();this.term=this._value();if(l.length<this.options.minLength)return this.close(r);
|
252
|
+
if(this._trigger("search",r)!==false)return this._search(l)},_search:function(l){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:l},this._response())},_response:function(){var l=this,r=++s;return function(A){r===s&&l.__response(A);l.pending--;l.pending||l.element.removeClass("ui-autocomplete-loading")}},__response:function(l){if(l)l=this._normalize(l);this._trigger("response",null,{content:l});if(!this.options.disabled&&l&&l.length&&!this.cancelSearch){this._suggest(l);
|
253
|
+
this._trigger("open")}else this._close()},close:function(l){this.cancelSearch=true;this._close(l)},_close:function(l){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",l)}},_change:function(l){this.previous!==this._value()&&this._trigger("change",l,{item:this.selectedItem})},_normalize:function(l){if(l.length&&l[0].label&&l[0].value)return l;return i.map(l,function(r){if(typeof r==="string")return{label:r,value:r};return i.extend({label:r.label||
|
254
|
+
r.value,value:r.value||r.label},r)})},_suggest:function(l){var r=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(r,l);this.menu.refresh();r.show();this._resizeMenu();r.position(i.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var l=this.menu.element;l.outerWidth(Math.max(l.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(l,r){var A=this;i.each(r,function(o,m){A._renderItemData(l,
|
255
|
+
m)})},_renderItemData:function(l,r){return this._renderItem(l,r).data("ui-autocomplete-item",r)},_renderItem:function(l,r){return i("<li>").append(i("<a>").text(r.label)).appendTo(l)},_move:function(l,r){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(l)||this.menu.isLastItem()&&/^next/.test(l)){this._value(this.term);this.menu.blur()}else this.menu[l](r);else this.search(null,r)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,
|
256
|
+
arguments)},_keyEvent:function(l,r){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(l,r);r.preventDefault()}}});i.extend(i.ui.autocomplete,{escapeRegex:function(l){return l.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(l,r){var A=RegExp(i.ui.autocomplete.escapeRegex(r),"i");return i.grep(l,function(o){return A.test(o.label||o.value||o)})}});i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(l){return l+
|
257
|
+
(l>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(l){this._superApply(arguments);this.options.disabled||this.cancelSearch||this.liveRegion.text(l&&l.length?this.options.messages.results(l.length):this.options.messages.noResults)}})})(jQuery);(function(i){function s(A,o){var m=r[A];return m&&m[o]}var l=null,r={};i.translations=function(A){for(var o in A)if(r[o])for(var m in A[o])r[o][m]=A[o][m];else r[o]=A[o]};i.t=function(A,o){if(!l){var m=i("html");l=m.attr("lang")||m.attr("xml:lang")||"en"}var v;m=s(l,A);if(!m&&(v=l.indexOf("-")))m=s(l.substr(0,v),A);if(m){for(var z in o)m=m.replace(RegExp("#{"+z+"}","g"),o[z]);return m}return"#"+A}})(jQuery);(function(i){function s(){var A=false;switch(this.type){case "checkbox":case "radio":A=this.checked!=this.defaultChecked;break;case "hidden":case "password":case "text":case "textarea":case "file":A=this.value!=this.defaultValue;break;case "select-one":case "select-multiple":for(var o=0;o<this.options.length&&!A;++o)A=this.options[o].selected!=this.options[o].defaultSelected;break}i("label[for="+this.id+"]").toggleClass("unsaved",A);i(this).toggleClass("unsaved",A)}function l(A){i("input.observe, textarea.observe, select.observe").each(function(){s.call(this)});
|
260
258
|
return i(".unsaved",A).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."}});i.fn.confirmUnsaved=function(){return!l(this)||confirm(i.t("confirmUnsaved"))};i("input.observe, textarea.observe, select.observe").live("change autocompletechange",
|
261
|
-
s);var
|
262
|
-
o=i("th button",this);o.click(function(){var m=s();
|
263
|
-
if(!
|
259
|
+
s);var r=false;i("form").live("submit",function(){r=true}).bind("reset",function(){i(".unsaved",this).removeClass("unsaved")});i(window).bind("beforeunload",function(){if(!r&&l(document))return i.t("pageUnsaved")})})(jQuery);(function(i){i.fn.historyTable=function(){function s(){var m=[];A.each(function(){this.checked&&m.push(this.name)});return m}i("thead tr",this).prepend('<th class="compare"><button>±</button></th>');i("tbody tr",this).each(function(){var m=i(this).attr("id").substr(8);i(this).prepend('<td class="compare"><input type="checkbox" name="'+m+'"/></td>')});var l=i.storage.get("historyTable");if(l)for(var r=0;r<l.length;++r)i("input[name="+l[r]+"]").attr("checked","checked");var A=i("tbody input",this),
|
260
|
+
o=i("th button",this);o.click(function(){var m=s();i.storage.set("historyTable",m);location.href=location.pathname.replace("/history","/compare/"+m[m.length-1]+"..."+m[0])});i("td input",this).change(function(){s().length>1?o.removeAttr("disabled"):o.attr("disabled","disabled")}).change()}})(jQuery);(function(i){i.fn.pagination=function(s){s=i(s);this.live("click",function(){i(this).addClass("loading");var l=this.href;l+=(l.indexOf("?")<0?"?":"&")+"no_layout=1";s.load(l,function(){s.trigger("pageLoaded",[l])});return false})}})(jQuery);(function(i){i.fn.tabWidget=function(s){var l=s&&s.store,r=null;i("> a[href^='#']",this).click(function(){if(r.data("tab")==i(this).data("tab"))return false;if(!r.data("tab").confirmUnsaved())return false;r.data("tab").hide();r.parent().removeClass("selected");r=i(this);r.data("tab").show();r.parent().addClass("selected");l&&i.storage.set(l,r.data("tab").attr("id"));return false});if(l)if(s=i.storage.get(l))r=i("> a[href='#"+s+"']",this);if(!r||r.size()===0)r=i(this).filter(".selected").find("> a[href^='#']");
|
261
|
+
if(!r||r.size()===0)r=i(this).filter(":first").find("> a[href^='#']");i("> a[href^='#']",this).each(function(){var A=i(this.href.match(/(#.*)$/)[1]);A.hide();i(this).data("tab",A)});this.removeClass("selected");r.parent().addClass("selected");r.data("tab").show()}})(jQuery);(function(i){function s(l){l=Math.floor(((new Date).getTime()-new Date(l*1E3))/6E4);if(l<=0)return i.t("less_than_a_minute_ago");if(l==1)return i.t("a_minute_ago");if(l<45)return i.t("n_minutes_ago",{n:l});if(l<90)return i.t("one_hour_ago");if(l<1440)return i.t("n_hours_ago",{n:Math.round(l/60)});if(l<2880)return i.t("one_day_ago");if(l<43200)return i.t("n_days_ago",{n:Math.round(l/1440)});if(l<86400)return i.t("one_month_ago");if(l<525960)return i.t("n_months_ago",{n:Math.round(l/43200)});if(l<1051920)return i.t("one_year_ago");
|
264
262
|
return i.t("over_n_years_ago",{n:Math.round(l/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",
|
265
263
|
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",
|
266
|
-
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"}});i.fn.timeAgo=function(){this.each(function(){var l=i(this),
|
267
|
-
$("#content").bind("pageLoaded",function(){i(this)});i();$("button[data-target]").live("click",function(){var s=$(this),l=$(this.form);s.addClass("loading");$.ajax({type:l.attr("method")||"get",url:l.attr("action")||window.location.href,data:l.serialize()+"&"+s.attr("name")+"="+s.attr("value")+"&no_layout=1",success:function(
|
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"}});i.fn.timeAgo=function(){this.each(function(){var l=i(this),r=l.data("epoch");r&&l.attr("title",l.text()).html(s(r))})}})(jQuery);(function(i){i.extend(i.fn,{underlineText:function(s){this.each(function(){var l=i(this),r,A;if(l.children().size()===0){r=l.text();A=r.toLowerCase().indexOf(s.toLowerCase());A>=0&&l.html(r.substr(0,A)+'<span style="text-decoration: underline">'+r.substr(A,s.length)+"</span>"+r.substr(A+s.length))}else l.children().underlineText(s)})},underlineAccessKey:function(){this.each(function(){var s=i(this).attr("accesskey");s&&i(this).underlineText(s)})}})})(jQuery);(function(i){i.widget("ui.combobox",{_create:function(){var s=this.element;s.autocomplete({delay:0,minLength:0,source:this.options.source}).click(function(){s.autocomplete("widget").is(":visible")?s.autocomplete("close"):s.autocomplete("search",this.value)});i('<button class="ui-combo-button"/>').attr("tabIndex",-1).insertAfter(s).click(function(l){l.preventDefault();if(s.autocomplete("widget").is(":visible"))s.autocomplete("close");else{s.autocomplete("search","");s.focus()}})}})})(jQuery);$(function(){function i(s){$("#upload-path",s).each(function(){var l=this,r=l.value,A=l.value;if(A.length===0||A.match(/\/$/))$("#upload-file").change(function(){if(l.value==r){l.value=A+this.value;r=l.value}})});$("label, #menu, .tabhead, .pagination, .button-bar",s).disableSelection();$("#history-table",s).historyTable();$(".date",s).timeAgo();$(".tabs",s).each(function(){$("> li",this).tabWidget()});$("*[accesskey]",s).underlineAccessKey()}$("html").removeClass("no-js").addClass("js");$(".pagination a").pagination("#content");
|
265
|
+
$("#content").bind("pageLoaded",function(){i(this)});i();$("button[data-target]").live("click",function(){var s=$(this),l=$(this.form);s.addClass("loading");$.ajax({type:l.attr("method")||"get",url:l.attr("action")||window.location.href,data:l.serialize()+"&"+s.attr("name")+"="+s.attr("value")+"&no_layout=1",success:function(r){$("#"+s.data("target")).html(r);s.removeClass("loading");window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,s.data("target")])}});return false})});
|