diff --git a/client/galaxy/scripts/libs/jquery/jquery.migrate.js b/client/galaxy/scripts/libs/jquery/jquery.migrate.js
index e3538e9c8a3..6fc343c44e4 100644
--- a/client/galaxy/scripts/libs/jquery/jquery.migrate.js
+++ b/client/galaxy/scripts/libs/jquery/jquery.migrate.js
@@ -1,14 +1,14 @@
-/*!
- * jQuery Migrate - v1.4.0 - 2016-02-26
- * Copyright jQuery Foundation and other contributors
- */
+/*!
+ * jQuery Migrate - v1.4.1 - 2016-05-19
+ * Copyright jQuery Foundation and other contributors
+ */
(function( jQuery, window, undefined ) {
// See http://bugs.jquery.com/ticket/13335
// "use strict";
+
-
-jQuery.migrateVersion = "1.4.0";
-
+jQuery.migrateVersion = "1.4.1";
+
var warnedAbout = {};
@@ -82,7 +82,7 @@ if ( document.compatMode === "BackCompat" ) {
// jQuery has never supported or tested Quirks Mode
migrateWarn( "jQuery is not compatible with Quirks Mode" );
}
-
+
var attrFn = jQuery( "", { size: 1 } ).attr("size") && jQuery.attrFn,
oldAttr = jQuery.attr,
@@ -189,13 +189,15 @@ jQuery.attrHooks.value = {
elem.value = value;
}
};
-
+
var matched, browser,
oldInit = jQuery.fn.init,
+ oldFind = jQuery.find,
oldParseJSON = jQuery.parseJSON,
rspaceAngle = /^\s*,
- rattrHash = /\[\s*\w+\s*[~|^$*]?=\s*(?![\s'"])[^#\]]*#/,
+ rattrHashTest = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,
+ rattrHashGlob = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,
// Note: XSS check is done below after string is trimmed
rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/;
@@ -203,45 +205,37 @@ var matched, browser,
jQuery.fn.init = function( selector, context, rootjQuery ) {
var match, ret;
- if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
- (match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
- // This is an HTML string according to the "old" rules; is it still?
- if ( !rspaceAngle.test( selector ) ) {
- migrateWarn("$(html) HTML strings must start with '<' character");
- }
- if ( match[ 3 ] ) {
- migrateWarn("$(html) HTML text after last tag is ignored");
- }
+ if ( selector && typeof selector === "string" ) {
+ if ( !jQuery.isPlainObject( context ) &&
+ (match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
- // Consistently reject any HTML-like string starting with a hash (#9521)
- // Note that this may break jQuery 1.6.x code that otherwise would work.
- if ( match[ 0 ].charAt( 0 ) === "#" ) {
- migrateWarn("HTML string cannot start with a '#' character");
- jQuery.error("JQMIGRATE: Invalid selector string (XSS)");
+ // This is an HTML string according to the "old" rules; is it still?
+ if ( !rspaceAngle.test( selector ) ) {
+ migrateWarn("$(html) HTML strings must start with '<' character");
+ }
+ if ( match[ 3 ] ) {
+ migrateWarn("$(html) HTML text after last tag is ignored");
+ }
+
+ // Consistently reject any HTML-like string starting with a hash (gh-9521)
+ // Note that this may break jQuery 1.6.x code that otherwise would work.
+ if ( match[ 0 ].charAt( 0 ) === "#" ) {
+ migrateWarn("HTML string cannot start with a '#' character");
+ jQuery.error("JQMIGRATE: Invalid selector string (XSS)");
+ }
+
+ // Now process using loose rules; let pre-1.8 play too
+ // Is this a jQuery context? parseHTML expects a DOM element (#178)
+ if ( context && context.context && context.context.nodeType ) {
+ context = context.context;
+ }
+
+ if ( jQuery.parseHTML ) {
+ return oldInit.call( this,
+ jQuery.parseHTML( match[ 2 ], context && context.ownerDocument ||
+ context || document, true ), context, rootjQuery );
+ }
}
- // Now process using loose rules; let pre-1.8 play too
- if ( context && context.context ) {
- // jQuery object as context; parseHTML expects a DOM object
- context = context.context;
- }
- if ( jQuery.parseHTML ) {
- return oldInit.call( this,
- jQuery.parseHTML( match[ 2 ], context && context.ownerDocument ||
- context || document, true ), context, rootjQuery );
- }
- }
-
- if ( selector === "#" ) {
-
- // jQuery( "#" ) is a bogus ID selector, but it returned an empty set before jQuery 3.0
- migrateWarn( "jQuery( '#' ) is not a valid selector" );
- selector = [];
-
- } else if ( rattrHash.test( selector ) ) {
-
- // The nonstandard and undocumented unquoted-hash was removed in jQuery 1.12.0
- // Note that this doesn't actually fix the selector due to potential false positives
- migrateWarn( "Attribute selectors with '#' must be quoted: '" + selector + "'" );
}
ret = oldInit.apply( this, arguments );
@@ -263,6 +257,47 @@ jQuery.fn.init = function( selector, context, rootjQuery ) {
};
jQuery.fn.init.prototype = jQuery.fn;
+jQuery.find = function( selector ) {
+ var args = Array.prototype.slice.call( arguments );
+
+ // Support: PhantomJS 1.x
+ // String#match fails to match when used with a //g RegExp, only on some strings
+ if ( typeof selector === "string" && rattrHashTest.test( selector ) ) {
+
+ // The nonstandard and undocumented unquoted-hash was removed in jQuery 1.12.0
+ // First see if qS thinks it's a valid selector, if so avoid a false positive
+ try {
+ document.querySelector( selector );
+ } catch ( err1 ) {
+
+ // Didn't *look* valid to qSA, warn and try quoting what we think is the value
+ selector = selector.replace( rattrHashGlob, function( _, attr, op, value ) {
+ return "[" + attr + op + "\"" + value + "\"]";
+ } );
+
+ // If the regexp *may* have created an invalid selector, don't update it
+ // Note that there may be false alarms if selector uses jQuery extensions
+ try {
+ document.querySelector( selector );
+ migrateWarn( "Attribute selector with '#' must be quoted: " + args[ 0 ] );
+ args[ 0 ] = selector;
+ } catch ( err2 ) {
+ migrateWarn( "Attribute selector with '#' was not fixed: " + args[ 0 ] );
+ }
+ }
+ }
+
+ return oldFind.apply( this, args );
+};
+
+// Copy properties attached to original jQuery.find method (e.g. .attr, .isXML)
+var findProp;
+for ( findProp in oldFind ) {
+ if ( Object.prototype.hasOwnProperty.call( oldFind, findProp ) ) {
+ jQuery.find[ findProp ] = oldFind[ findProp ];
+ }
+}
+
// Let $.parseJSON(falsy_value) return null
jQuery.parseJSON = function( json ) {
if ( !json ) {
@@ -342,7 +377,7 @@ jQuery.fn.size = function() {
migrateWarn( "jQuery.fn.size() is deprecated; use the .length property" );
return this.length;
};
-
+
var internalSwapCall = false;
@@ -387,7 +422,7 @@ jQuery.swap = function( elem, options, callback, args ) {
return ret;
};
-
+
// Ensure that $.ajax gets the new parseJSON defined in core.js
jQuery.ajaxSetup({
@@ -395,7 +430,7 @@ jQuery.ajaxSetup({
"text json": jQuery.parseJSON
}
});
-
+
var oldFnData = jQuery.fn.data;
@@ -414,7 +449,7 @@ jQuery.fn.data = function( name ) {
}
return oldFnData.apply( this, arguments );
};
-
+
var rscriptType = /\/(java|ecma)script/i;
@@ -467,7 +502,7 @@ if ( !jQuery.clean ) {
return ret;
};
}
-
+
var eventAdd = jQuery.event.add,
eventRemove = jQuery.event.remove,
eventTrigger = jQuery.event.trigger,
@@ -629,9 +664,9 @@ jQuery.event.special.ready = {
}
}
};
-
+
var oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack,
- oldFind = jQuery.fn.find;
+ oldFnFind = jQuery.fn.find;
jQuery.fn.andSelf = function() {
migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
@@ -639,12 +674,12 @@ jQuery.fn.andSelf = function() {
};
jQuery.fn.find = function( selector ) {
- var ret = oldFind.apply( this, arguments );
+ var ret = oldFnFind.apply( this, arguments );
ret.context = this.context;
ret.selector = this.selector ? this.selector + " " + selector : selector;
return ret;
};
-
+
// jQuery 1.6 did not support Callbacks, do not warn there
if ( jQuery.Callbacks ) {
@@ -712,6 +747,6 @@ if ( jQuery.Callbacks ) {
return deferred;
};
-}
-
-})( jQuery, window );
+}
+
+})( jQuery, window );
diff --git a/client/grunt-tasks/install-libs.js b/client/grunt-tasks/install-libs.js
index fe988b1e854..52a991c3246 100644
--- a/client/grunt-tasks/install-libs.js
+++ b/client/grunt-tasks/install-libs.js
@@ -10,9 +10,6 @@ module.exports = function( grunt ){
// where to move fetched bower components into the build structure (libName: [ bower-location, libs-location ])
libraryLocations = {
- 'jquery': [ 'dist/jquery.js', 'jquery/jquery.js' ],
- 'jquery-migrate': [ 'jquery-migrate.js', 'jquery/jquery.migrate.js' ],
- 'underscore': [ 'underscore.js', 'underscore.js' ],
'backbone': [ 'backbone.js', 'backbone.js' ],
'requirejs': [ 'require.js', 'require.js' ],
'd3': [ 'd3.js', 'd3.js' ],
diff --git a/client/gulpfile.js b/client/gulpfile.js
index 529c7af66c3..4f4508b3667 100644
--- a/client/gulpfile.js
+++ b/client/gulpfile.js
@@ -17,7 +17,11 @@ var paths = {
'!galaxy/scripts/libs/**/*.js'
],
lib_locs: {
+ // This is a stepping stone towards having all this staged
+ // automatically. Eventually, this dictionary and staging step will
+ // not be necessary.
'jquery':['dist/jquery.js', 'jquery/jquery.js'],
+ 'jquery-migrate': [ 'dist/jquery-migrate.js', 'jquery/jquery.migrate.js' ],
'raven-js': ['dist/raven.js', 'raven.js'],
'underscore': [ 'underscore.js', 'underscore.js' ],
},
@@ -42,6 +46,8 @@ gulp.task('stage-libs', function(){
console.log(p1 + " -> " + p2);
del.sync(p2);
fs.createReadStream(p1).pipe(fs.createWriteStream(p2));
+ } else {
+ console.log(p1 + " does not exist, this is an error.");
}
});
});
diff --git a/client/package.json b/client/package.json
index 116d1972f69..93e94b99ff6 100644
--- a/client/package.json
+++ b/client/package.json
@@ -34,6 +34,7 @@
"gulp-uglify": "^3.0.0",
"gulp-watch": "^4.3.11",
"jquery": "1.12",
+ "jquery-migrate": "~1.4",
"jshint": "^2.9.4",
"raven-js": "^3.17.0",
"underscore": "^1.8.3",
diff --git a/client/yarn.lock b/client/yarn.lock
index 6f4135a87c1..9e9b8b6adf1 100644
--- a/client/yarn.lock
+++ b/client/yarn.lock
@@ -2634,6 +2634,10 @@ jpeg-js@^0.1.1:
version "0.1.2"
resolved "https://registry.yarnpkg.com/jpeg-js/-/jpeg-js-0.1.2.tgz#135b992c0575c985cfa0f494a3227ed238583ece"
+jquery-migrate@~1.4:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/jquery-migrate/-/jquery-migrate-1.4.1.tgz#85152f3ec99a95625f4f7d0bcf62e9b8638f5a76"
+
jquery@1.12:
version "1.12.4"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-1.12.4.tgz#01e1dfba290fe73deba77ceeacb0f9ba2fec9e0c"
diff --git a/static/scripts/bundled/libs.bundled.js b/static/scripts/bundled/libs.bundled.js
index ea7cc18b343..cdddccc8660 100644
--- a/static/scripts/bundled/libs.bundled.js
+++ b/static/scripts/bundled/libs.bundled.js
@@ -11,7 +11,7 @@
*
* Date: 2016-05-20T17:17Z
*/
-!function(e,i){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,o){function r(t){var e=!!t&&"length"in t&&t.length,i=mt.type(t);return"function"!==i&&!mt.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function a(t,e,i){if(mt.isFunction(e))return mt.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return mt.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(Tt.test(e))return mt.filter(e,t,i);e=mt.filter(e,t)}return mt.grep(t,function(t){return mt.inArray(t,e)>-1!==i})}function l(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function u(t){var e={};return mt.each(t.match(Pt)||[],function(t,i){e[i]=!0}),e}function c(){at.addEventListener?(at.removeEventListener("DOMContentLoaded",h),i.removeEventListener("load",h)):(at.detachEvent("onreadystatechange",h),i.detachEvent("onload",h))}function h(){(at.addEventListener||"load"===i.event.type||"complete"===at.readyState)&&(c(),mt.ready())}function d(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(It,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:jt.test(i)?mt.parseJSON(i):i)}catch(t){}mt.data(t,e,i)}else i=void 0}return i}function p(t){var e;for(e in t)if(("data"!==e||!mt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function f(t,e,i,n){if(Mt(t)){var s,o,r=mt.expando,a=t.nodeType,l=a?mt.cache:t,u=a?t[r]:t[r]&&r;if(u&&l[u]&&(n||l[u].data)||void 0!==i||"string"!=typeof e)return u||(u=a?t[r]=rt.pop()||mt.guid++:r),l[u]||(l[u]=a?{}:{toJSON:mt.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[u]=mt.extend(l[u],e):l[u].data=mt.extend(l[u].data,e)),o=l[u],n||(o.data||(o.data={}),o=o.data),void 0!==i&&(o[mt.camelCase(e)]=i),"string"==typeof e?null==(s=o[e])&&(s=o[mt.camelCase(e)]):s=o,s}}function g(t,e,i){if(Mt(t)){var n,s,o=t.nodeType,r=o?mt.cache:t,a=o?t[mt.expando]:mt.expando;if(r[a]){if(e&&(n=i?r[a]:r[a].data)){mt.isArray(e)?e=e.concat(mt.map(e,mt.camelCase)):e in n?e=[e]:(e=mt.camelCase(e),e=e in n?[e]:e.split(" ")),s=e.length;for(;s--;)delete n[e[s]];if(i?!p(n):!mt.isEmptyObject(n))return}(i||(delete r[a].data,p(r[a])))&&(o?mt.cleanData([t],!0):gt.deleteExpando||r!=r.window?delete r[a]:r[a]=void 0)}}}function m(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return mt.css(t,e,"")},l=a(),u=i&&i[3]||(mt.cssNumber[e]?"":"px"),c=(mt.cssNumber[e]||"px"!==u&&+l)&&Ht.exec(mt.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do{o=o||".5",c/=o,mt.style(t,e,c+u)}while(o!==(o=a()/l)&&1!==o&&--r)}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=s)),s}function v(t){var e=Vt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function y(t,e){var i,n,s=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],i=t.childNodes||t;null!=(n=i[s]);s++)!e||mt.nodeName(n,e)?o.push(n):mt.merge(o,y(n,e));return void 0===e||e&&mt.nodeName(t,e)?mt.merge([t],o):o}function b(t,e){for(var i,n=0;null!=(i=t[n]);n++)mt._data(i,"globalEval",!e||mt._data(e[n],"globalEval"))}function w(t){Wt.test(t.type)&&(t.defaultChecked=t.checked)}function _(t,e,i,n,s){for(var o,r,a,l,u,c,h,d=t.length,p=v(e),f=[],g=0;g"!==h[1]||Yt.test(r)?0:l:l.firstChild,o=r&&r.childNodes.length;o--;)mt.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(mt.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else f.push(e.createTextNode(r));for(l&&p.removeChild(l),gt.appendChecked||mt.grep(y(f,"input"),w),g=0;r=f[g++];)if(n&&mt.inArray(r,n)>-1)s&&s.push(r);else if(a=mt.contains(r.ownerDocument,r),l=y(p.appendChild(r),"script"),a&&b(l),i)for(o=0;r=l[o++];)Bt.test(r.type||"")&&i.push(r);return l=null,p}function x(){return!0}function C(){return!1}function S(){try{return at.activeElement}catch(t){}}function k(t,e,i,n,s,o){var r,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)k(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=C;else if(!s)return t;return 1===o&&(r=s,s=function(t){return mt().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=mt.guid++)),t.each(function(){mt.event.add(this,e,s,n,i)})}function T(t,e){return mt.nodeName(t,"table")&&mt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function E(t){return t.type=(null!==mt.find.attr(t,"type"))+"/"+t.type,t}function A(t){var e=re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function D(t,e){if(1===e.nodeType&&mt.hasData(t)){var i,n,s,o=mt._data(t),r=mt._data(e,o),a=o.events;if(a){delete r.handle,r.events={};for(i in a)for(n=0,s=a[i].length;n1&&"string"==typeof p&&!gt.checkClone&&oe.test(p))return t.each(function(s){var o=t.eq(s);f&&(e[0]=p.call(this,s,o.html())),P(o,e,i,n)});if(h&&(u=_(e,t[0].ownerDocument,!1,t,n),s=u.firstChild,1===u.childNodes.length&&(u=s),s||n)){for(a=mt.map(y(u,"script"),E),r=a.length;c")).appendTo(e.documentElement),e=(ce[0].contentWindow||ce[0].contentDocument).document,e.write(),e.close(),i=R(t,e),ce.detach()),he[t]=i),i}function j(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function I(t){if(t in Te)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=ke.length;i--;)if((t=ke[i]+e)in Te)return t}function L(t,e){for(var i,n,s,o=[],r=0,a=t.length;r=0&&i=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==mt.type(t)||t.nodeType||mt.isWindow(t))return!1;try{if(t.constructor&&!ft.call(t,"constructor")&&!ft.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!gt.ownFirst)for(e in t)return ft.call(t,e);for(e in t);return void 0===e||ft.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?dt[pt.call(t)]||"object":typeof t},globalEval:function(t){t&&mt.trim(t)&&(i.execScript||function(t){i.eval.call(i,t)})(t)},camelCase:function(t){return t.replace(yt,"ms-").replace(bt,wt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(r(t))for(i=t.length;n0&&e-1 in t)}function a(t,e,i){if(mt.isFunction(e))return mt.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return mt.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(Tt.test(e))return mt.filter(e,t,i);e=mt.filter(e,t)}return mt.grep(t,function(t){return mt.inArray(t,e)>-1!==i})}function l(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function u(t){var e={};return mt.each(t.match(Ot)||[],function(t,i){e[i]=!0}),e}function c(){at.addEventListener?(at.removeEventListener("DOMContentLoaded",h),i.removeEventListener("load",h)):(at.detachEvent("onreadystatechange",h),i.detachEvent("onload",h))}function h(){(at.addEventListener||"load"===i.event.type||"complete"===at.readyState)&&(c(),mt.ready())}function d(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(It,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:jt.test(i)?mt.parseJSON(i):i)}catch(t){}mt.data(t,e,i)}else i=void 0}return i}function p(t){var e;for(e in t)if(("data"!==e||!mt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function f(t,e,i,n){if(Mt(t)){var s,o,r=mt.expando,a=t.nodeType,l=a?mt.cache:t,u=a?t[r]:t[r]&&r;if(u&&l[u]&&(n||l[u].data)||void 0!==i||"string"!=typeof e)return u||(u=a?t[r]=rt.pop()||mt.guid++:r),l[u]||(l[u]=a?{}:{toJSON:mt.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[u]=mt.extend(l[u],e):l[u].data=mt.extend(l[u].data,e)),o=l[u],n||(o.data||(o.data={}),o=o.data),void 0!==i&&(o[mt.camelCase(e)]=i),"string"==typeof e?null==(s=o[e])&&(s=o[mt.camelCase(e)]):s=o,s}}function g(t,e,i){if(Mt(t)){var n,s,o=t.nodeType,r=o?mt.cache:t,a=o?t[mt.expando]:mt.expando;if(r[a]){if(e&&(n=i?r[a]:r[a].data)){mt.isArray(e)?e=e.concat(mt.map(e,mt.camelCase)):e in n?e=[e]:(e=mt.camelCase(e),e=e in n?[e]:e.split(" ")),s=e.length;for(;s--;)delete n[e[s]];if(i?!p(n):!mt.isEmptyObject(n))return}(i||(delete r[a].data,p(r[a])))&&(o?mt.cleanData([t],!0):gt.deleteExpando||r!=r.window?delete r[a]:r[a]=void 0)}}}function m(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return mt.css(t,e,"")},l=a(),u=i&&i[3]||(mt.cssNumber[e]?"":"px"),c=(mt.cssNumber[e]||"px"!==u&&+l)&&Ht.exec(mt.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do{o=o||".5",c/=o,mt.style(t,e,c+u)}while(o!==(o=a()/l)&&1!==o&&--r)}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=s)),s}function v(t){var e=Vt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function y(t,e){var i,n,s=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],i=t.childNodes||t;null!=(n=i[s]);s++)!e||mt.nodeName(n,e)?o.push(n):mt.merge(o,y(n,e));return void 0===e||e&&mt.nodeName(t,e)?mt.merge([t],o):o}function b(t,e){for(var i,n=0;null!=(i=t[n]);n++)mt._data(i,"globalEval",!e||mt._data(e[n],"globalEval"))}function w(t){Wt.test(t.type)&&(t.defaultChecked=t.checked)}function _(t,e,i,n,s){for(var o,r,a,l,u,c,h,d=t.length,p=v(e),f=[],g=0;g"!==h[1]||Yt.test(r)?0:l:l.firstChild,o=r&&r.childNodes.length;o--;)mt.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(mt.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else f.push(e.createTextNode(r));for(l&&p.removeChild(l),gt.appendChecked||mt.grep(y(f,"input"),w),g=0;r=f[g++];)if(n&&mt.inArray(r,n)>-1)s&&s.push(r);else if(a=mt.contains(r.ownerDocument,r),l=y(p.appendChild(r),"script"),a&&b(l),i)for(o=0;r=l[o++];)Bt.test(r.type||"")&&i.push(r);return l=null,p}function x(){return!0}function C(){return!1}function S(){try{return at.activeElement}catch(t){}}function k(t,e,i,n,s,o){var r,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)k(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=C;else if(!s)return t;return 1===o&&(r=s,s=function(t){return mt().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=mt.guid++)),t.each(function(){mt.event.add(this,e,s,n,i)})}function T(t,e){return mt.nodeName(t,"table")&&mt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function E(t){return t.type=(null!==mt.find.attr(t,"type"))+"/"+t.type,t}function A(t){var e=re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function D(t,e){if(1===e.nodeType&&mt.hasData(t)){var i,n,s,o=mt._data(t),r=mt._data(e,o),a=o.events;if(a){delete r.handle,r.events={};for(i in a)for(n=0,s=a[i].length;n1&&"string"==typeof p&&!gt.checkClone&&oe.test(p))return t.each(function(s){var o=t.eq(s);f&&(e[0]=p.call(this,s,o.html())),O(o,e,i,n)});if(h&&(u=_(e,t[0].ownerDocument,!1,t,n),s=u.firstChild,1===u.childNodes.length&&(u=s),s||n)){for(a=mt.map(y(u,"script"),E),r=a.length;c")).appendTo(e.documentElement),e=(ce[0].contentWindow||ce[0].contentDocument).document,e.write(),e.close(),i=R(t,e),ce.detach()),he[t]=i),i}function j(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function I(t){if(t in Te)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=ke.length;i--;)if((t=ke[i]+e)in Te)return t}function L(t,e){for(var i,n,s,o=[],r=0,a=t.length;r=0&&i=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==mt.type(t)||t.nodeType||mt.isWindow(t))return!1;try{if(t.constructor&&!ft.call(t,"constructor")&&!ft.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!gt.ownFirst)for(e in t)return ft.call(t,e);for(e in t);return void 0===e||ft.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?dt[pt.call(t)]||"object":typeof t},globalEval:function(t){t&&mt.trim(t)&&(i.execScript||function(t){i.eval.call(i,t)})(t)},camelCase:function(t){return t.replace(yt,"ms-").replace(bt,wt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(r(t))for(i=t.length;nw.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[L]=!0,t}function s(t){var e=N.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return n(function(e){return e=+e,n(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function c(t){for(var e=0,i=t.length,n="";e1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function p(t,i,n){for(var s=0,o=i.length;s-1&&(n[u]=!(r[u]=h))}}else b=f(b===r?b.splice(m,b.length):b),o?o(null,r,b,l):J.apply(r,b)})}function m(t){for(var e,i,n,s=t.length,o=w.relative[t[0].type],r=o||w.relative[" "],a=o?1:0,l=h(function(t){return t===e},r,!0),u=h(function(t){return Q(e,t)>-1},r,!0),p=[function(t,i,n){var s=!o&&(n||i!==T)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,s}];a1&&d(p),a>1&&c(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ot,"$1"),i,a0,o=t.length>0,r=function(n,r,a,l,u){var c,h,d,p=0,g="0",m=n&&[],v=[],y=T,b=n||o&&w.find.TAG("*",u),_=$+=null==y?1:Math.random()||.1,x=b.length;for(u&&(T=r===N||r||u);g!==x&&null!=(c=b[g]);g++){if(o&&c){for(h=0,r||c.ownerDocument===N||(D(c),a=!O);d=t[h++];)if(d(c,r||N,a)){l.push(c);break}u&&($=_)}s&&((c=!d&&c)&&p--,n&&m.push(c))}if(p+=g,s&&g!==p){for(h=0;d=i[h++];)d(m,v,r,a);if(n){if(p>0)for(;g--;)m[g]||v[g]||(v[g]=X.call(l));v=f(v)}J.apply(l,v),u&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return u&&($=_,T=y),m};return s?n(r):r}var y,b,w,_,x,C,S,k,T,E,A,D,N,P,O,R,M,j,I,L="sizzle"+1*new Date,H=t.document,$=0,F=0,q=i(),W=i(),z=i(),B=function(t,e){return t===e&&(A=!0),0},U=1<<31,V={}.hasOwnProperty,G=[],X=G.pop,Y=G.push,J=G.push,K=G.slice,Q=function(t,e){for(var i=0,n=t.length;i+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ut=new RegExp(nt),ct=new RegExp("^"+et+"$"),ht={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,ft=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=/'|\\/g,yt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),bt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},wt=function(){D()};try{J.apply(G=K.call(H.childNodes),H.childNodes),G[H.childNodes.length].nodeType}catch(t){J={apply:G.length?function(t,e){Y.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}b=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},D=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:H;return n!==N&&9===n.nodeType&&n.documentElement?(N=n,P=N.documentElement,O=!x(N),(i=N.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",wt,!1):i.attachEvent&&i.attachEvent("onunload",wt)),b.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=s(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=ft.test(N.getElementsByClassName),b.getById=s(function(t){return P.appendChild(t).id=L,!N.getElementsByName||!N.getElementsByName(L).length}),b.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var i=e.getElementById(t);return i?[i]:[]}},w.filter.ID=function(t){var e=t.replace(yt,bt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(yt,bt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&O)return e.getElementsByClassName(t)},M=[],R=[],(b.qsa=ft.test(N.querySelectorAll))&&(s(function(t){P.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+L+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||R.push(".#.+[+~]")}),s(function(t){var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(b.matchesSelector=ft.test(j=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&s(function(t){b.disconnectedMatch=j.call(t,"div"),j.call(t,"[s!='']:x"),M.push("!=",nt)}),R=R.length&&new RegExp(R.join("|")),M=M.length&&new RegExp(M.join("|")),e=ft.test(P.compareDocumentPosition),I=e||ft.test(P.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return A=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!b.sortDetached&&e.compareDocumentPosition(t)===i?t===N||t.ownerDocument===H&&I(H,t)?-1:e===N||e.ownerDocument===H&&I(H,e)?1:E?Q(E,t)-Q(E,e):0:4&i?-1:1)}:function(t,e){if(t===e)return A=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],l=[e];if(!s||!o)return t===N?-1:e===N?1:s?-1:o?1:E?Q(E,t)-Q(E,e):0;if(s===o)return r(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?r(a[n],l[n]):a[n]===H?-1:l[n]===H?1:0},N):N},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==N&&D(t),i=i.replace(lt,"='$1']"),b.matchesSelector&&O&&!z[i+" "]&&(!M||!M.test(i))&&(!R||!R.test(i)))try{var n=j.call(t,i);if(n||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&D(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&D(t);var i=w.attrHandle[e.toLowerCase()],n=i&&V.call(w.attrHandle,e.toLowerCase())?i(t,e,!O):void 0;return void 0!==n?n:b.attributes||!O?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(A=!b.detectDuplicates,E=!b.sortStable&&t.slice(0),t.sort(B),A){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return E=null,t},_=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=_(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=_(e);return i},w=e.selectors={cacheLength:50,createPseudo:n,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(yt,bt),t[3]=(t[3]||t[4]||t[5]||"").replace(yt,bt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ut.test(i)&&(e=C(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(yt,bt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var o=e.attr(s,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(st," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,d,p,f,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(d=m,h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===$&&u[1],b=p&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[$,p,b];break}}else if(y&&(d=e,h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],p=u[0]===$&&u[1],b=p),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&(h=d[L]||(d[L]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[t]=[$,b]),d!==e)););return(b-=s)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,i){var s,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(i):o.length>1?(s=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=o(t,i),r=s.length;r--;)n=Q(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return o(t,0,s)}):o}},pseudos:{not:n(function(t){var e=[],i=[],s=S(t.replace(ot,"$1"));return s[L]?n(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(yt,bt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:n(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(yt,bt).toLowerCase(),function(e){var i;do{if(i=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:a(function(){return[0]}),last:a(function(t,e){return[e-1]}),eq:a(function(t,e,i){return[i<0?i+e:i]}),even:a(function(t,e){for(var i=0;i=0;)t.push(n);return t}),gt:a(function(t,e,i){for(var n=i<0?i+e:i;++n2&&"ID"===(r=o[0]).type&&b.getById&&9===e.nodeType&&O&&w.relative[o[1].type]){if(!(e=(w.find.ID(r.matches[0].replace(yt,bt),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=ht.needsContext.test(t)?0:o.length;s--&&(r=o[s],!w.relative[a=r.type]);)if((u=w.find[a])&&(n=u(r.matches[0].replace(yt,bt),mt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&c(o)))return J.apply(i,n),i;break}}return(h||S(t,d))(n,e,!O,i,!e||mt.test(t)&&l(e.parentNode)||e),i},b.sortStable=L.split("").sort(B).join("")===L,b.detectDuplicates=!!A,D(),b.sortDetached=s(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),s(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&s(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||o(Z,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(i);mt.find=_t,mt.expr=_t.selectors,mt.expr[":"]=mt.expr.pseudos,mt.uniqueSort=mt.unique=_t.uniqueSort,mt.text=_t.getText,mt.isXMLDoc=_t.isXML,mt.contains=_t.contains;var xt=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&mt(t).is(i))break;n.push(t)}return n},Ct=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},St=mt.expr.match.needsContext,kt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Tt=/^.[^:#\[\.,]*$/;mt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?mt.find.matchesSelector(n,t)?[n]:[]:mt.find.matches(t,mt.grep(e,function(t){return 1===t.nodeType}))},mt.fn.extend({find:function(t){var e,i=[],n=this,s=n.length;if("string"!=typeof t)return this.pushStack(mt(t).filter(function(){for(e=0;e1?mt.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&St.test(t)?mt(t):t||[],!1).length}});var Et,At=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(mt.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||Et,"string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:At.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:at,!0)),kt.test(n[1])&&mt.isPlainObject(e))for(n in e)mt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=at.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return Et.find(t);this.length=1,this[0]=s}return this.context=at,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):mt.isFunction(t)?void 0!==i.ready?i.ready(t):t(mt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),mt.makeArray(t,this))}).prototype=mt.fn,Et=mt(at);var Dt=/^(?:parents|prev(?:Until|All))/,Nt={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e,i=mt(t,this),n=i.length;return this.filter(function(){for(e=0;e-1:1===i.nodeType&&mt.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?mt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?mt.inArray(this[0],mt(t)):mt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return xt(t,"parentNode")},parentsUntil:function(t,e,i){return xt(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return xt(t,"nextSibling")},prevAll:function(t){return xt(t,"previousSibling")},nextUntil:function(t,e,i){return xt(t,"nextSibling",i)},prevUntil:function(t,e,i){return xt(t,"previousSibling",i)},siblings:function(t){return Ct((t.parentNode||{}).firstChild,t)},children:function(t){return Ct(t.firstChild)},contents:function(t){return mt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:mt.merge([],t.childNodes)}},function(t,e){mt.fn[t]=function(i,n){var s=mt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=mt.filter(n,s)),this.length>1&&(Nt[t]||(s=mt.uniqueSort(s)),Dt.test(t)&&(s=s.reverse())),this.pushStack(s)}});var Pt=/\S+/g;mt.Callbacks=function(t){t="string"==typeof t?u(t):mt.extend({},t);var e,i,n,s,o=[],r=[],a=-1,l=function(){for(s=t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a-1;)o.splice(i,1),i<=a&&a--}),this},has:function(t){return t?mt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=!0,i||c.disable(),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=i||[],i=[t,i.slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},mt.extend({Deferred:function(t){var e=[["resolve","done",mt.Callbacks("once memory"),"resolved"],["reject","fail",mt.Callbacks("once memory"),"rejected"],["notify","progress",mt.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return mt.Deferred(function(i){mt.each(e,function(e,o){var r=mt.isFunction(t[e])&&t[e];s[o[1]](function(){var t=r&&r.apply(this,arguments);t&&mt.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?mt.extend(t,n):n}},s={};return n.pipe=n.then,mt.each(e,function(t,o){var r=o[2],a=o[3];n[o[1]]=r.add,a&&r.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,o=lt.call(arguments),r=o.length,a=1!==r||t&&mt.isFunction(t.promise)?r:0,l=1===a?t:mt.Deferred(),u=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?lt.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);s0||(Ot.resolveWith(at,[mt]),mt.fn.triggerHandler&&(mt(at).triggerHandler("ready"),mt(at).off("ready"))))}}),mt.ready.promise=function(t){if(!Ot)if(Ot=mt.Deferred(),"complete"===at.readyState||"loading"!==at.readyState&&!at.documentElement.doScroll)i.setTimeout(mt.ready);else if(at.addEventListener)at.addEventListener("DOMContentLoaded",h),i.addEventListener("load",h);else{at.attachEvent("onreadystatechange",h),i.attachEvent("onload",h);var e=!1;try{e=null==i.frameElement&&at.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!mt.isReady){try{e.doScroll("left")}catch(e){return i.setTimeout(t,50)}c(),mt.ready()}}()}return Ot.promise(t)},mt.ready.promise();var Rt;for(Rt in mt(gt))break;gt.ownFirst="0"===Rt,gt.inlineBlockNeedsLayout=!1,mt(function(){var t,e,i,n;(i=at.getElementsByTagName("body")[0])&&i.style&&(e=at.createElement("div"),n=at.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",gt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=at.createElement("div");gt.deleteExpando=!0;try{delete t.test}catch(t){gt.deleteExpando=!1}t=null}();var Mt=function(t){var e=mt.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)},jt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,It=/([A-Z])/g;mt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?mt.cache[t[mt.expando]]:t[mt.expando])&&!p(t)},data:function(t,e,i){return f(t,e,i)},removeData:function(t,e){return g(t,e)},_data:function(t,e,i){return f(t,e,i,!0)},_removeData:function(t,e){return g(t,e,!0)}}),mt.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=mt.data(o),1===o.nodeType&&!mt._data(o,"parsedAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=mt.camelCase(n.slice(5)),d(o,n,s[n])));mt._data(o,"parsedAttrs",!0)}return s}return"object"==typeof t?this.each(function(){mt.data(this,t)}):arguments.length>1?this.each(function(){mt.data(this,t,e)}):o?d(o,t,mt.data(o,t)):void 0},removeData:function(t){return this.each(function(){mt.removeData(this,t)})}}),mt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=mt._data(t,e),i&&(!n||mt.isArray(i)?n=mt._data(t,e,mt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=mt.queue(t,e),n=i.length,s=i.shift(),o=mt._queueHooks(t,e),r=function(){mt.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,r,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return mt._data(t,i)||mt._data(t,i,{empty:mt.Callbacks("once memory").add(function(){mt._removeData(t,e+"queue"),mt._removeData(t,i)})})}}),mt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.lengtha",gt.leadingWhitespace=3===t.firstChild.nodeType,gt.tbody=!t.getElementsByTagName("tbody").length,gt.htmlSerialize=!!t.getElementsByTagName("link").length,gt.html5Clone="<:nav>"!==at.createElement("nav").cloneNode(!0).outerHTML,i.type="checkbox",i.checked=!0,e.appendChild(i),gt.appendChecked=i.checked,t.innerHTML="",gt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),i=at.createElement("input"),i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),gt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,gt.noCloneEvent=!!t.addEventListener,t[mt.expando]=1,gt.attributes=!t.getAttribute(mt.expando)}();var Gt={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:gt.htmlSerialize?[0,"",""]:[1,"X","
"]};Gt.optgroup=Gt.option,Gt.tbody=Gt.tfoot=Gt.colgroup=Gt.caption=Gt.thead,Gt.th=Gt.td;var Xt=/<|?\w+;/,Yt=/-1&&(f=p.split("."),p=f.shift(),f.sort()),r=p.indexOf(":")<0&&"on"+p,t=t[mt.expando]?t:new mt.Event(p,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:mt.makeArray(e,[t]),u=mt.event.special[p]||{},s||!u.trigger||!1!==u.trigger.apply(n,e))){if(!s&&!u.noBubble&&!mt.isWindow(n)){for(l=u.delegateType||p,Zt.test(l+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),c=a;c===(n.ownerDocument||at)&&d.push(c.defaultView||c.parentWindow||i)}for(h=0;(a=d[h++])&&!t.isPropagationStopped();)t.type=h>1?l:u.bindType||p,o=(mt._data(a,"events")||{})[t.type]&&mt._data(a,"handle"),o&&o.apply(a,e),(o=r&&a[r])&&o.apply&&Mt(a)&&(t.result=o.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!s&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),e))&&Mt(n)&&r&&n[p]&&!mt.isWindow(n)){c=n[r],c&&(n[r]=null),mt.event.triggered=p;try{n[p]()}catch(t){}mt.event.triggered=void 0,c&&(n[r]=c)}return t.result}},dispatch:function(t){t=mt.event.fix(t);var e,i,n,s,o,r=[],a=lt.call(arguments),l=(mt._data(this,"events")||{})[t.type]||[],u=mt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(r=mt.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((mt.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i-1:mt.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a]","i"),ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,se=/