4 lines
95 KiB
JavaScript
4 lines
95 KiB
JavaScript
|
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */(function(S,Fe){typeof module=="object"&&typeof module.exports=="object"?module.exports=S.document?Fe(S,!0):function(b){if(!b.document)throw new Error("jQuery requires a window with a document");return Fe(b)}:Fe(S)})(typeof window!="undefined"?window:this,function(S,Fe){var b=[],k=S.document,ae=b.slice,Pt=b.concat,nt=b.push,Bt=b.indexOf,$e={},Un=$e.toString,je=$e.hasOwnProperty,E={},Wt="1.12.4",r=function(e,t){return new r.fn.init(e,t)},Vn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Yn=/^-ms-/,Jn=/-([\da-z])/gi,Gn=function(e,t){return t.toUpperCase()};r.fn=r.prototype={jquery:Wt,constructor:r,selector:"",length:0,toArray:function(){return ae.call(this)},get:function(e){return e!=null?0>e?this[e+this.length]:this[e]:ae.call(this)},pushStack:function(e){var t=r.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return r.each(this,e)},map:function(e){return this.pushStack(r.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:nt,sort:b.sort,splice:b.splice},r.extend=r.fn.extend=function(){var e,t,n,i,o,s,l=arguments[0]||{},a=1,h=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[a]||{},a++),typeof l=="object"||r.isFunction(l)||(l={}),a===h&&(l=this,a--);h>a;a++)if((o=arguments[a])!=null)for(i in o)e=l[i],n=o[i],l!==n&&(f&&n&&(r.isPlainObject(n)||(t=r.isArray(n)))?(t?(t=!1,s=e&&r.isArray(e)?e:[]):s=e&&r.isPlainObject(e)?e:{},l[i]=r.extend(f,s,n)):n!==void 0&&(l[i]=n));return l},r.extend({expando:"jQuery"+(Wt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return r.type(e)==="function"},isArray:Array.isArray||function(e){return r.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!r.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||r.type(e)!=="object"||e.nodeType||r.isWindow(e))return!1;try{if(e.constructor&&!je.call(e,"constructor")&&!je.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!E.ownFirst)for(t in e)return je.call(e,t);for(t in e);return t===void 0||je.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?$e[Un.call(e)]||"object":typeof e},globalEval:function(e){e&&r.trim(e)&&(S.execScript||function(t){S.eval.call(S,t)})(e)},camelCase:function(e){return e.replace(Yn,"ms-").replace(Jn,Gn)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(rt(e))for(n=e.length;n>i&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return e==null?"":(e+"").replace(Vn,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(rt(Object(e))?r.merge(n,typeof e=="string"?[e]:e):nt.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(Bt)return Bt.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;)e[o++]=t[i++];if(n!==n)for(;t[i]!==void 0;)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i,o=[],s=0,l=e.length,a=!n;l>s;s++)i=!t(e[s],s),i!==a&&o.push(e[s]);return o},map:function(e,t,n){var i,o,s=0,l=[];if(rt(e))for(i=e.length;i>s;s++)o=t(e[s],s,n),o!=null&&l.push(o);else for(s in e)o=t(e[s],s,n),o!=null&&l.push(o);return Pt.apply([],l)},guid:1,proxy:function(e,t){var n,i,o;return typeof t=="string"&&(o=e[t],t=e,e=o),r.isFunction(e)?(n=ae.call(arguments,2),i=function(){return e.apply(t||this,n.concat(ae.call(arguments)))},i.guid=e.guid=e.guid||r.guid++,i):void 0},now:function(){return+new Date},support:E}),typeo
|
||
|
`)}}):{name:t.name,value:n.replace(Fn,`\r
|
||
|
`)}}).get()}}),r.ajaxSettings.xhr=S.ActiveXObject!==void 0?function(){return this.isLocal?Mn():k.documentMode>8?St():/^(get|post|head|put|delete|options)$/i.test(this.type)&&St()||Mn()}:St;var Xr=0,Qe={},Pe=r.ajaxSettings.xhr();S.attachEvent&&S.attachEvent("onunload",function(){for(var e in Qe)Qe[e](void 0,!0)}),E.cors=!!Pe&&"withCredentials"in Pe,Pe=E.ajax=!!Pe,Pe&&r.ajaxTransport(function(e){if(!e.crossDomain||E.cors){var t;return{send:function(n,i){var o,s=e.xhr(),l=++Xr;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)n[o]!==void 0&&s.setRequestHeader(o,n[o]+"");s.send(e.hasContent&&e.data||null),t=function(a,h){var f,p,y;if(t&&(h||s.readyState===4))if(delete Qe[l],t=void 0,s.onreadystatechange=r.noop,h)s.readyState!==4&&s.abort();else{y={},f=s.status,typeof s.responseText=="string"&&(y.text=s.responseText);try{p=s.statusText}catch(T){p=""}f||!e.isLocal||e.crossDomain?f===1223&&(f=204):f=y.text?200:404}y&&i(f,p,y,s.getAllResponseHeaders())},e.async?s.readyState===4?S.setTimeout(t):s.onreadystatechange=Qe[l]=t:t()},abort:function(){t&&t(void 0,!0)}}}});function St(){try{return new S.XMLHttpRequest}catch(e){}}function Mn(){try{return new S.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return r.globalEval(e),e}}}),r.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),r.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=k.head||r("head")[0]||k.documentElement;return{send:function(i,o){t=k.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(s,l){(l||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,l||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var On=[],jt=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||r.expando+"_"+wt++;return this[e]=!0,e}}),r.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,s,l=e.jsonp!==!1&&(jt.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&jt.test(e.data)&&"data");return l||e.dataTypes[0]==="jsonp"?(i=e.jsonpCallback=r.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(jt,"$1"+i):e.jsonp!==!1&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||r.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=S[i],S[i]=function(){s=arguments},n.always(function(){o===void 0?r(S).removeProp(i):S[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,On.push(i)),s&&r.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),r.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||k;var i=zt.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=nn([e],t,o),o&&o.length&&r(o).remove(),r.merge([],i.childNodes))};var Rn=r.fn.load;r.fn.load=function(e,t,n){if(typeof e!="string"&&Rn)return Rn.apply(this,arguments);var i,o,s,l=this,a=e.indexOf(" ");return a>-1&&(i=r.trim(e.slice(a,e.length)),e=e.slice(0,a)),r.isFunction(t)?(n=t,t=void 0):t&&typeof t=="object"&&(o="POST"),l.length>0&&r.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(h){s=arguments,l.html(i?r("<div>").append(r.parseHTML(h)).find(i):h)}).always(n&&function(h,f){l.each(function(){n.apply(this,s||[h.responseText,f,h])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){r.fn[t]=function(n){return this.on(t,n)}}),r.expr.filters.animated=function(e){return r.grep(r.timers,function(
|