You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
9.9 KiB
Plaintext
5 lines
9.9 KiB
Plaintext
/*!
|
|
* jQuery Migrate - v1.4.1 - 2016-05-19
|
|
* Copyright jQuery Foundation and other contributors
|
|
*/
|
|
(function(u,I,j){u.migrateVersion="1.4.1";var p={};u.migrateWarnings=[];if(u.migrateTrace===j){u.migrateTrace=true}u.migrateReset=function(){p={};u.migrateWarnings.length=0};function K(R){var Q=I.console;if(!p[R]){p[R]=true;u.migrateWarnings.push(R);if(Q&&Q.warn&&!u.migrateMute){Q.warn("JQMIGRATE: "+R);if(u.migrateTrace&&Q.trace){Q.trace()}}}}function s(S,U,R,T){if(Object.defineProperty){try{Object.defineProperty(S,U,{configurable:true,enumerable:true,get:function(){K(T);return R},set:function(V){K(T);R=V}});return}catch(Q){}}u._definePropertyBroken=true;S[U]=R}if(document.compatMode==="BackCompat"){K("jQuery is not compatible with Quirks Mode")}var G=u("<input/>",{size:1}).attr("size")&&u.attrFn,M=u.attr,H=u.attrHooks.value&&u.attrHooks.value.get||function(){return null},r=u.attrHooks.value&&u.attrHooks.value.set||function(){return j},w=/^(?:input|button)$/i,o=/^[238]$/,O=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;s(u,"attrFn",G||{},"jQuery.attrFn is deprecated");u.attr=function(U,S,V,T){var R=S.toLowerCase(),Q=U&&U.nodeType;if(T){if(M.length<4){K("jQuery.fn.attr( props, pass ) is deprecated")}if(U&&!o.test(Q)&&(G?S in G:u.isFunction(u.fn[S]))){return u(U)[S](V)}}if(S==="type"&&V!==j&&w.test(U.nodeName)&&U.parentNode){K("Can't change the 'type' of an input or button in IE 6/7/8")}if(!u.attrHooks[R]&&O.test(R)){u.attrHooks[R]={get:function(X,W){var Z,Y=u.prop(X,W);return Y===true||typeof Y!=="boolean"&&(Z=X.getAttributeNode(W))&&Z.nodeValue!==false?W.toLowerCase():j},set:function(X,Z,W){var Y;if(Z===false){u.removeAttr(X,W)}else{Y=u.propFix[W]||W;if(Y in X){X[Y]=true}X.setAttribute(W,W.toLowerCase())}return W}};if(f.test(R)){K("jQuery.fn.attr('"+R+"') might use property instead of attribute")}}return M.call(u,U,S,V)};u.attrHooks.value={get:function(R,Q){var S=(R.nodeName||"").toLowerCase();if(S==="button"){return H.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value') no longer gets properties")}return Q in R?R.value:null},set:function(Q,R){var S=(Q.nodeName||"").toLowerCase();if(S==="button"){return r.apply(this,arguments)}if(S!=="input"&&S!=="option"){K("jQuery.fn.attr('value', val) no longer sets properties")}Q.value=R}};var h,b,t=u.fn.init,k=u.find,y=u.parseJSON,v=/^\s*</,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,A=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,F=/^([^<]*)(<[\w\W]+>)([^>]*)$/;u.fn.init=function(Q,U,T){var S,R;if(Q&&typeof Q==="string"){if(!u.isPlainObject(U)&&(S=F.exec(u.trim(Q)))&&S[0]){if(!v.test(Q)){K("$(html) HTML strings must start with '<' character")}if(S[3]){K("$(html) HTML text after last tag is ignored")}if(S[0].charAt(0)==="#"){K("HTML string cannot start with a '#' character");u.error("JQMIGRATE: Invalid selector string (XSS)")}if(U&&U.context&&U.context.nodeType){U=U.context}if(u.parseHTML){return t.call(this,u.parseHTML(S[2],U&&U.ownerDocument||U||document,true),U,T)}}}R=t.apply(this,arguments);if(Q&&Q.selector!==j){R.selector=Q.selector;R.context=Q.context}else{R.selector=typeof Q==="string"?Q:"";if(Q){R.context=Q.nodeType?Q:U||document}}return R};u.fn.init.prototype=u.fn;u.find=function(Q){var T=Array.prototype.slice.call(arguments);if(typeof Q==="string"&&l.test(Q)){try{document.querySelector(Q)}catch(S){Q=Q.replace(A,function(V,U,X,W){return"["+U+X+'"'+W+'"]'});try{document.querySelector(Q);K("Attribute selector with '#' must be quoted: "+T[0]);T[0]=Q}catch(R){K("Attribute selector with '#' was not fixed: "+T[0])}}}return k.apply(this,T)};var N;for(N in k){if(Object.prototype.hasOwnProperty.call(k,N)){u.find[N]=k[N]}}u.parseJSON=function(Q){if(!Q){K("jQuery.parseJSON requires a valid JSON string");return null}return y.apply(this,arguments)};u.uaMatch=function(R){R=R.toLowerCase();var Q=/(chrome)[ \/]([\w.]+)/.exec(R)||/(webkit)[ \/]([\w.]+)/.exec(R)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(R)||/(msie) ([\w.]+)/.exec(R)||R.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(R)||[];return{browser:Q[1]||"",version:Q[2]||"0"}};if(!u.browser){h=u.uaMatch(navigator.userAgent);b={};if(h.browser){b[h.browser]=true;b.version=h.version}if(b.chrome){b.webkit=true}else{if(b.webkit){b.safari=true}}u.browser=b}s(u,"browser",u.browser,"jQuery.browser is deprecated");u.boxModel=u.support.boxModel=(document.compatMode==="CSS1Compat");s(u,"boxModel",u.boxModel,"jQuery.boxModel is deprecated");s(u.support,"boxModel",u.support.boxModel,"jQuery.support.boxModel is deprecated");u.sub=function(){function Q(T,U){return new Q.fn.init(T,U)}u.extend(true,Q,this);Q.superclass=this;Q.fn=Q.prototype=this();Q.fn.constructor=Q;Q.sub=this.sub;Q.fn.init=function S(U,V){var T=u.fn.init.call(this,U,V,R);return T instanceof Q?T:Q(T)};Q.fn.init.prototype=Q.fn;var R=Q(document);K("jQuery.sub() is deprecated");return Q};u.fn.size=function(){K("jQuery.fn.size() is deprecated; use the .length property");return this.length};var n=false;if(u.swap){u.each(["height","width","reliableMarginRight"],function(R,Q){var S=u.cssHooks[Q]&&u.cssHooks[Q].get;if(S){u.cssHooks[Q].get=function(){var T;n=true;T=S.apply(this,arguments);n=false;return T}}})}u.swap=function(V,U,W,T){var S,R,Q={};if(!n){K("jQuery.swap() is undocumented and deprecated")}for(R in U){Q[R]=V.style[R];V.style[R]=U[R]}S=W.apply(V,T||[]);for(R in U){V.style[R]=Q[R]}return S};u.ajaxSetup({converters:{"text json":u.parseJSON}});var L=u.fn.data;u.fn.data=function(S){var R,Q,T=this[0];if(T&&S==="events"&&arguments.length===1){R=u.data(T,S);Q=u._data(T,S);if((R===j||R===Q)&&Q!==j){K("Use of jQuery.fn.data('events') is deprecated");return Q}}return L.apply(this,arguments)};var P=/\/(java|ecma)script/i;if(!u.clean){u.clean=function(Q,R,X,T){R=R||document;R=!R.nodeType&&R[0]||R;R=R.ownerDocument||R;K("jQuery.clean() is deprecated");var U,S,V,Y,W=[];u.merge(W,u.buildFragment(Q,R).childNodes);if(X){V=function(Z){if(!Z.type||P.test(Z.type)){return T?T.push(Z.parentNode?Z.parentNode.removeChild(Z):Z):X.appendChild(Z)}};for(U=0;(S=W[U])!=null;U++){if(!(u.nodeName(S,"script")&&V(S))){X.appendChild(S);if(typeof S.getElementsByTagName!=="undefined"){Y=u.grep(u.merge([],S.getElementsByTagName("script")),V);W.splice.apply(W,[U+1,0].concat(Y));U+=Y.length}}}}return W}}var C=u.event.add,x=u.event.remove,q=u.event.trigger,a=u.fn.toggle,d=u.fn.live,z=u.fn.die,m=u.fn.load,g="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",i=new RegExp("\\b(?:"+g+")\\b"),J=/(?:^|\s)hover(\.\S+|)\b/,c=function(Q){if(typeof(Q)!=="string"||u.event.special.hover){return Q}if(J.test(Q)){K("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'")}return Q&&Q.replace(J,"mouseenter$1 mouseleave$1")};if(u.event.props&&u.event.props[0]!=="attrChange"){u.event.props.unshift("attrChange","attrName","relatedNode","srcElement")}if(u.event.dispatch){s(u.event,"handle",u.event.dispatch,"jQuery.event.handle is undocumented and deprecated")}u.event.add=function(T,R,S,U,Q){if(T!==document&&i.test(R)){K("AJAX events should be attached to document: "+R)}C.call(this,T,c(R||""),S,U,Q)};u.event.remove=function(U,S,T,Q,R){x.call(this,U,c(S)||"",T,Q,R)};u.each(["load","unload","error"],function(R,Q){u.fn[Q]=function(){var S=Array.prototype.slice.call(arguments,0);if(Q==="load"&&typeof S[0]==="string"){return m.apply(this,S)}K("jQuery.fn."+Q+"() is deprecated");S.splice(0,0,Q);if(arguments.length){return this.bind.apply(this,S)}this.triggerHandler.apply(this,S);return this}});u.fn.toggle=function(U,S){if(!u.isFunction(U)||!u.isFunction(S)){return a.apply(this,arguments)}K("jQuery.fn.toggle(handler, handler...) is deprecated");var R=arguments,Q=U.guid||u.guid++,T=0,V=function(W){var X=(u._data(this,"lastToggle"+U.guid)||0)%T;u._data(this,"lastToggle"+U.guid,X+1);W.preventDefault();return R[X].apply(this,arguments)||false};V.guid=Q;while(T<R.length){R[T++].guid=Q}return this.click(V)};u.fn.live=function(Q,S,R){K("jQuery.fn.live() is deprecated");if(d){return d.apply(this,arguments)}u(this.context).on(Q,this.selector,S,R);return this};u.fn.die=function(Q,R){K("jQuery.fn.die() is deprecated");if(z){return z.apply(this,arguments)}u(this.context).off(Q,this.selector||"**",R);return this};u.event.trigger=function(S,T,R,Q){if(!R&&!i.test(S)){K("Global events are undocumented and deprecated")}return q.call(this,S,T,R||document,Q)};u.each(g.split("|"),function(R,Q){u.event.special[Q]={setup:function(){var S=this;if(S!==document){u.event.add(document,Q+"."+u.guid,function(){u.event.trigger(Q,Array.prototype.slice.call(arguments,1),S,true)});u._data(this,Q,u.guid++)}return false},teardown:function(){if(this!==document){u.event.remove(document,Q+"."+u._data(this,Q))}return false}}});u.event.special.ready={setup:function(){if(this===document){K("'ready' event is deprecated")}}};var E=u.fn.andSelf||u.fn.addBack,B=u.fn.find;u.fn.andSelf=function(){K("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");return E.apply(this,arguments)};u.fn.find=function(Q){var R=B.apply(this,arguments);R.context=this.context;R.selector=this.selector?this.selector+" "+Q:Q;return R};if(u.Callbacks){var D=u.Deferred,e=[["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),"rejected"],["notify","progress",u.Callbacks("memory"),u.Callbacks("memory")]];u.Deferred=function(R){var Q=D(),S=Q.promise();Q.pipe=S.pipe=function(){var T=arguments;K("deferred.pipe() is deprecated");return u.Deferred(function(U){u.each(e,function(W,V){var X=u.isFunction(T[W])&&T[W];Q[V[1]](function(){var Y=X&&X.apply(this,arguments);if(Y&&u.isFunction(Y.promise)){Y.promise().done(U.resolve).fail(U.reject).progress(U.notify)}else{U[V[0]+"With"](this===S?U.promise():this,X?[Y]:arguments)}})});T=null}).promise()};Q.isResolved=function(){K("deferred.isResolved is deprecated");return Q.state()==="resolved"};Q.isRejected=function(){K("deferred.isRejected is deprecated");return Q.state()==="rejected"};if(R){R.call(Q,Q)}return Q}}})(jQuery,window); |