Comparing version 3.3.1 to 3.4.0
@@ -314,1 +314,9 @@ Authors ordered by first contribution. | ||
basil.belokon <basil.belokon@gmail.com> | ||
tmybr11 <tomas.perone@gmail.com> | ||
Luis Emilio Velasco Sanchez <emibloque@gmail.com> | ||
Ed S <ejsanders@gmail.com> | ||
Bert Zhang <enbo@users.noreply.github.com> | ||
Andrei Fangli <andrei_fangli@outlook.com> | ||
Marja Hölttä <marja.holtta@gmail.com> | ||
abnud1 <ahmad13932013@hotmail.com> | ||
buddh4 <mail@jharrer.de> |
@@ -30,3 +30,3 @@ /* global Symbol */ | ||
var | ||
version = "3.3.1", | ||
version = "3.4.0", | ||
@@ -160,7 +160,7 @@ // Define a local copy of jQuery | ||
for ( name in options ) { | ||
src = target[ name ]; | ||
copy = options[ name ]; | ||
// Prevent Object.prototype pollution | ||
// Prevent never-ending loop | ||
if ( target === copy ) { | ||
if ( name === "__proto__" || target === copy ) { | ||
continue; | ||
@@ -172,10 +172,13 @@ } | ||
( copyIsArray = Array.isArray( copy ) ) ) ) { | ||
src = target[ name ]; | ||
if ( copyIsArray ) { | ||
copyIsArray = false; | ||
clone = src && Array.isArray( src ) ? src : []; | ||
// Ensure proper type for the source value | ||
if ( copyIsArray && !Array.isArray( src ) ) { | ||
clone = []; | ||
} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { | ||
clone = {}; | ||
} else { | ||
clone = src && jQuery.isPlainObject( src ) ? src : {}; | ||
clone = src; | ||
} | ||
copyIsArray = false; | ||
@@ -233,5 +236,2 @@ // Never move original objects, clone them | ||
isEmptyObject: function( obj ) { | ||
/* eslint-disable no-unused-vars */ | ||
// See https://github.com/eslint/eslint/issues/6125 | ||
var name; | ||
@@ -246,4 +246,4 @@ | ||
// Evaluates a script in a global context | ||
globalEval: function( code ) { | ||
DOMEval( code ); | ||
globalEval: function( code, options ) { | ||
DOMEval( code, { nonce: options && options.nonce } ); | ||
}, | ||
@@ -250,0 +250,0 @@ |
@@ -1,3 +0,3 @@ | ||
/*! Sizzle v2.3.3 | (c) jQuery Foundation, Inc. | jquery.org/license */ | ||
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});var Aa=a.Sizzle;ga.noConflict=function(){return a.Sizzle===ga&&(a.Sizzle=Aa),ga},"function"==typeof define&&define.amd?define(function(){return ga}):"undefined"!=typeof module&&module.exports?module.exports=ga:a.Sizzle=ga}(window); | ||
/*! Sizzle v2.3.4 | (c) JS Foundation and other contributors | js.foundation */ | ||
!function(e){var t,n,r,i,o,u,l,a,c,s,f,d,p,h,g,m,y,w,v,b="sizzle"+1*new Date,N=e.document,x=0,C=0,E=ae(),D=ae(),S=ae(),A=ae(),T=function(e,t){return e===t&&(f=!0),0},L={}.hasOwnProperty,I=[],q=I.pop,B=I.push,R=I.push,$=I.slice,k=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",z="\\["+M+"*("+P+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+M+"*\\]",F=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",O=new RegExp(M+"+","g"),j=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),G=new RegExp("^"+M+"*,"+M+"*"),U=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),V=new RegExp(M+"|>"),X=new RegExp(F),J=new RegExp("^"+P+"$"),K={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,W=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ue=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{R.apply(I=$.call(N.childNodes),N.childNodes),I[N.childNodes.length].nodeType}catch(e){R={apply:I.length?function(e,t){B.apply(e,$.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function le(e,t,r,i){var o,l,c,s,f,h,y,w=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&((t?t.ownerDocument||t:N)!==p&&d(t),t=t||p,g)){if(11!==x&&(f=_.exec(e)))if(o=f[1]){if(9===x){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(w&&(c=w.getElementById(o))&&v(t,c)&&c.id===o)return r.push(c),r}else{if(f[2])return R.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(y=e,w=t,1===x&&V.test(e)){(s=t.getAttribute("id"))?s=s.replace(re,ie):t.setAttribute("id",s=b),l=(h=u(e)).length;while(l--)h[l]="#"+s+" "+ye(h[l]);y=h.join(","),w=ee.test(e)&&ge(t.parentNode)||t}try{return R.apply(r,w.querySelectorAll(y)),r}catch(t){A(e,!0)}finally{s===b&&t.removeAttribute("id")}}}return a(e.replace(j,"$1"),t,r,i)}function ae(){var e=[];function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function ce(e){return e[b]=!0,e}function se(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ue(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ce(function(t){return t=+t,ce(function(n,r){var i,o=e([],n.length,t),u=o.length;while(u--)n[i=o[u]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}n=le.support={},o=le.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},d=le.setDocument=function(e){var t,i,u=e?e.ownerDocument||e:N;return u!==p&&9===u.nodeType&&u.documentElement?(p=u,h=p.documentElement,g=!o(p),N!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=Z.test(p.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),se(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Z.test(w=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=w.call(e,"*"),w.call(e,"[s!='']:x"),y.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(h.compareDocumentPosition),v=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===N&&v(N,e)?-1:t===p||t.ownerDocument===N&&v(N,t)?1:s?k(s,e)-k(s,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,u=[e],l=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:s?k(s,e)-k(s,t):0;if(i===o)return de(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)l.unshift(n);while(u[r]===l[r])r++;return r?de(u[r],l[r]):u[r]===N?-1:l[r]===N?1:0},p):p},le.matches=function(e,t){return le(e,null,null,t)},le.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&d(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=w.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return le(t,p,null,[e]).length>0},le.contains=function(e,t){return(e.ownerDocument||e)!==p&&d(e),v(e,t)},le.attr=function(e,t){(e.ownerDocument||e)!==p&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},le.escape=function(e){return(e+"").replace(re,ie)},le.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},le.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,s=!n.sortStable&&e.slice(0),e.sort(T),f){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return s=null,e},i=le.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},(r=le.selectors={cacheLength:50,createPseudo:ce,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||le.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&le.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=u(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=le.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(O," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),u="last"!==e.slice(-4),l="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,a){var c,s,f,d,p,h,g=o!==u?"nextSibling":"previousSibling",m=t.parentNode,y=l&&t.nodeName.toLowerCase(),w=!a&&!l,v=!1;if(m){if(o){while(g){d=t;while(d=d[g])if(l?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[u?m.firstChild:m.lastChild],u&&w){v=(p=(c=(s=(f=(d=m)[b]||(d[b]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],d=p&&m.childNodes[p];while(d=++p&&d&&d[g]||(v=p=0)||h.pop())if(1===d.nodeType&&++v&&d===t){s[e]=[x,p,v];break}}else if(w&&(v=p=(c=(s=(f=(d=t)[b]||(d[b]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===v)while(d=++p&&d&&d[g]||(v=p=0)||h.pop())if((l?d.nodeName.toLowerCase()===y:1===d.nodeType)&&++v&&(w&&((s=(f=d[b]||(d[b]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[x,v]),d===t))break;return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||le.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){var r,o=i(e,t),u=o.length;while(u--)e[r=k(e,o[u])]=!(n[r]=o[u])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ce(function(e){var t=[],n=[],r=l(e.replace(j,"$1"));return r[b]?ce(function(e,t,n,i){var o,u=r(e,null,i,[]),l=e.length;while(l--)(o=u[l])&&(e[l]=!(t[l]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return le(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ce(function(e){return J.test(e||"")||le.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(t);function me(){}me.prototype=r.filters=r.pseudos,r.setFilters=new me,u=le.tokenize=function(e,t){var n,i,o,u,l,a,c,s=D[e+" "];if(s)return t?0:s.slice(0);l=e,a=[],c=r.preFilter;while(l){n&&!(i=G.exec(l))||(i&&(l=l.slice(i[0].length)||l),a.push(o=[])),n=!1,(i=U.exec(l))&&(n=i.shift(),o.push({value:n,type:i[0].replace(j," ")}),l=l.slice(n.length));for(u in r.filter)!(i=K[u].exec(l))||c[u]&&!(i=c[u](i))||(n=i.shift(),o.push({value:n,type:u,matches:i}),l=l.slice(n.length));if(!n)break}return t?l.length:l?le.error(e):D(e,a).slice(0)};function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,i=t.next,o=i||r,u=n&&"parentNode"===o,l=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||u)return e(t,n,i);return!1}:function(t,n,a){var c,s,f,d=[x,l];if(a){while(t=t[r])if((1===t.nodeType||u)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||u)if(f=t[b]||(t[b]={}),s=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=s[o])&&c[0]===x&&c[1]===l)return d[2]=c[2];if(s[o]=d,d[2]=e(t,n,a))return!0}return!1}}function ve(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n){for(var r=0,i=t.length;r<i;r++)le(e,t[r],n);return n}function Ne(e,t,n,r,i){for(var o,u=[],l=0,a=e.length,c=null!=t;l<a;l++)(o=e[l])&&(n&&!n(o,r,i)||(u.push(o),c&&t.push(l)));return u}function xe(e,t,n,r,i,o){return r&&!r[b]&&(r=xe(r)),i&&!i[b]&&(i=xe(i,o)),ce(function(o,u,l,a){var c,s,f,d=[],p=[],h=u.length,g=o||be(t||"*",l.nodeType?[l]:l,[]),m=!e||!o&&t?g:Ne(g,d,e,l,a),y=n?i||(o?e:h||r)?[]:u:m;if(n&&n(m,y,l,a),r){c=Ne(y,p),r(c,[],l,a),s=c.length;while(s--)(f=c[s])&&(y[p[s]]=!(m[p[s]]=f))}if(o){if(i||e){if(i){c=[],s=y.length;while(s--)(f=y[s])&&c.push(m[s]=f);i(null,y=[],c,a)}s=y.length;while(s--)(f=y[s])&&(c=i?k(o,f):d[s])>-1&&(o[c]=!(u[c]=f))}}else y=Ne(y===u?y.splice(h,y.length):y),i?i(null,u,y,a):R.apply(u,y)})}function Ce(e){for(var t,n,i,o=e.length,u=r.relative[e[0].type],l=u||r.relative[" "],a=u?1:0,s=we(function(e){return e===t},l,!0),f=we(function(e){return k(t,e)>-1},l,!0),d=[function(e,n,r){var i=!u&&(r||n!==c)||((t=n).nodeType?s(e,n,r):f(e,n,r));return t=null,i}];a<o;a++)if(n=r.relative[e[a].type])d=[we(ve(d),n)];else{if((n=r.filter[e[a].type].apply(null,e[a].matches))[b]){for(i=++a;i<o;i++)if(r.relative[e[i].type])break;return xe(a>1&&ve(d),a>1&&ye(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(j,"$1"),n,a<i&&Ce(e.slice(a,i)),i<o&&Ce(e=e.slice(i)),i<o&&ye(e))}d.push(n)}return ve(d)}function Ee(e,t){var n=t.length>0,i=e.length>0,o=function(o,u,l,a,s){var f,h,m,y=0,w="0",v=o&&[],b=[],N=c,C=o||i&&r.find.TAG("*",s),E=x+=null==N?1:Math.random()||.1,D=C.length;for(s&&(c=u===p||u||s);w!==D&&null!=(f=C[w]);w++){if(i&&f){h=0,u||f.ownerDocument===p||(d(f),l=!g);while(m=e[h++])if(m(f,u||p,l)){a.push(f);break}s&&(x=E)}n&&((f=!m&&f)&&y--,o&&v.push(f))}if(y+=w,n&&w!==y){h=0;while(m=t[h++])m(v,b,u,l);if(o){if(y>0)while(w--)v[w]||b[w]||(b[w]=q.call(a));b=Ne(b)}R.apply(a,b),s&&!o&&b.length>0&&y+t.length>1&&le.uniqueSort(a)}return s&&(x=E,c=N),v};return n?ce(o):o}l=le.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=u(e)),n=t.length;while(n--)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},a=le.select=function(e,t,n,i){var o,a,c,s,f,d="function"==typeof e&&e,p=!i&&u(e=d.selector||e);if(n=n||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(c=a[0]).type&&9===t.nodeType&&g&&r.relative[a[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(a.shift().value.length)}o=K.needsContext.test(e)?0:a.length;while(o--){if(c=a[o],r.relative[s=c.type])break;if((f=r.find[s])&&(i=f(c.matches[0].replace(te,ne),ee.test(a[0].type)&&ge(t.parentNode)||t))){if(a.splice(o,1),!(e=i.length&&ye(a)))return R.apply(n,i),n;break}}}return(d||l(e,p))(i,t,!g,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(T).join("")===b,n.detectDuplicates=!!f,d(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||fe(H,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null});var De=e.Sizzle;le.noConflict=function(){return e.Sizzle===le&&(e.Sizzle=De),le},"function"==typeof define&&define.amd?define(function(){return le}):"undefined"!=typeof module&&module.exports?module.exports=le:e.Sizzle=le}(window); | ||
//# sourceMappingURL=sizzle.min.map |
@@ -1,2 +0,2 @@ | ||
Copyright jQuery Foundation and other contributors, https://jquery.org/ | ||
Copyright JS Foundation and other contributors, https://js.foundation/ | ||
@@ -3,0 +3,0 @@ This software consists of voluntary contributions made by many |
Copyright JS Foundation and other contributors, https://js.foundation/ | ||
This software consists of voluntary contributions made by many | ||
individuals. For exact contribution history, see the revision history | ||
available at https://github.com/jquery/jquery | ||
The following license applies to all parts of this software except as | ||
documented below: | ||
==== | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
@@ -30,8 +21,1 @@ a copy of this software and associated documentation files (the | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
==== | ||
All files located in the node_modules and external directories are | ||
externally maintained libraries used by this software which have their | ||
own licenses; we recommend you read them, as their terms may differ from | ||
the terms above. |
@@ -5,3 +5,3 @@ { | ||
"description": "JavaScript library for DOM operations", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"main": "dist/jquery.js", | ||
@@ -11,3 +11,3 @@ "homepage": "https://jquery.com", | ||
"name": "JS Foundation and other contributors", | ||
"url": "https://github.com/jquery/jquery/blob/3.3.1/AUTHORS.txt" | ||
"url": "https://github.com/jquery/jquery/blob/3.4.0/AUTHORS.txt" | ||
}, | ||
@@ -30,41 +30,42 @@ "repository": { | ||
"devDependencies": { | ||
"babel-core": "7.0.0-beta.0", | ||
"babel-plugin-transform-es2015-for-of": "7.0.0-beta.0", | ||
"commitplease": "2.7.10", | ||
"core-js": "2.4.1", | ||
"@babel/core": "7.3.3", | ||
"@babel/plugin-transform-for-of": "7.2.0", | ||
"commitplease": "3.2.0", | ||
"core-js": "2.6.5", | ||
"eslint-config-jquery": "1.0.1", | ||
"grunt": "1.0.1", | ||
"grunt-babel": "7.0.0", | ||
"grunt-cli": "1.2.0", | ||
"grunt": "1.0.3", | ||
"grunt-babel": "8.0.0", | ||
"grunt-cli": "1.3.2", | ||
"grunt-compare-size": "0.4.2", | ||
"grunt-contrib-uglify": "3.0.1", | ||
"grunt-contrib-watch": "1.0.0", | ||
"grunt-eslint": "20.0.0", | ||
"grunt-contrib-uglify": "3.4.0", | ||
"grunt-contrib-watch": "1.1.0", | ||
"grunt-eslint": "21.0.0", | ||
"grunt-git-authors": "3.2.0", | ||
"grunt-jsonlint": "1.1.0", | ||
"grunt-karma": "2.0.0", | ||
"grunt-karma": "3.0.1", | ||
"grunt-newer": "1.3.0", | ||
"grunt-npmcopy": "0.1.0", | ||
"gzip-js": "0.3.2", | ||
"husky": "0.14.3", | ||
"insight": "0.8.4", | ||
"jsdom": "5.6.1", | ||
"karma": "1.7.0", | ||
"karma-browserstack-launcher": "1.3.0", | ||
"husky": "1.3.1", | ||
"insight": "0.10.1", | ||
"jsdom": "13.2.0", | ||
"karma": "4.0.1", | ||
"karma-browserstack-launcher": "1.4.0", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-firefox-launcher": "1.0.1", | ||
"karma-qunit": "1.2.1", | ||
"load-grunt-tasks": "3.5.2", | ||
"karma-firefox-launcher": "1.1.0", | ||
"karma-ie-launcher": "1.0.0", | ||
"karma-jsdom-launcher": "7.1.0", | ||
"karma-qunit": "3.0.0", | ||
"load-grunt-tasks": "4.0.0", | ||
"native-promise-only": "0.8.1", | ||
"promises-aplus-tests": "2.1.2", | ||
"q": "1.5.0", | ||
"qunit-assert-step": "1.0.3", | ||
"qunitjs": "1.23.1", | ||
"raw-body": "2.2.0", | ||
"requirejs": "2.3.3", | ||
"q": "1.5.1", | ||
"qunit": "2.9.2", | ||
"raw-body": "2.3.3", | ||
"requirejs": "2.3.6", | ||
"sinon": "2.3.7", | ||
"sizzle": "2.3.3", | ||
"sizzle": "2.3.4", | ||
"strip-json-comments": "2.0.1", | ||
"testswarm": "1.1.0", | ||
"uglify-js": "3.3.4" | ||
"uglify-js": "3.4.7" | ||
}, | ||
@@ -77,5 +78,3 @@ "scripts": { | ||
"test": "grunt && grunt test:slow && grunt karma:main", | ||
"jenkins": "npm run test:browserless", | ||
"precommit": "grunt lint:newer qunit_fixture", | ||
"commitmsg": "node node_modules/commitplease" | ||
"jenkins": "npm run test:browserless" | ||
}, | ||
@@ -111,3 +110,9 @@ "commitplease": { | ||
"ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|^(Refs? [^#])" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "node node_modules/commitplease", | ||
"pre-commit": "grunt lint:newer qunit_fixture" | ||
} | ||
} | ||
} |
@@ -8,3 +8,3 @@ # jQuery | ||
If upgrading, please see the [blog post for 3.3.1](https://blog.jquery.com/2017/03/20/jquery-3.3.1-now-available/). This includes notable differences from the previous version and a more readable changelog. | ||
If upgrading, please see the [blog post for 3.4.0](https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/). This includes notable differences from the previous version and a more readable changelog. | ||
@@ -20,3 +20,3 @@ ## Including jQuery | ||
```html | ||
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.4.0.min.js"></script> | ||
``` | ||
@@ -23,0 +23,0 @@ |
{ | ||
"root": true, | ||
"extends": "../.eslintrc-browser.json" | ||
"extends": "../.eslintrc-browser.json", | ||
"globals": { | ||
"jQuery": true | ||
} | ||
} |
@@ -462,8 +462,10 @@ define( [ | ||
while ( ( match = rheaders.exec( responseHeadersString ) ) ) { | ||
responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; | ||
responseHeaders[ match[ 1 ].toLowerCase() + " " ] = | ||
( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) | ||
.concat( match[ 2 ] ); | ||
} | ||
} | ||
match = responseHeaders[ key.toLowerCase() ]; | ||
match = responseHeaders[ key.toLowerCase() + " " ]; | ||
} | ||
return match == null ? null : match; | ||
return match == null ? null : match.join( ", " ); | ||
}, | ||
@@ -470,0 +472,0 @@ |
@@ -46,13 +46,11 @@ define( [ | ||
// This transport only deals with cross domain requests | ||
if ( s.crossDomain ) { | ||
// This transport only deals with cross domain or forced-by-attrs requests | ||
if ( s.crossDomain || s.scriptAttrs ) { | ||
var script, callback; | ||
return { | ||
send: function( _, complete ) { | ||
script = jQuery( "<script>" ).prop( { | ||
charset: s.scriptCharset, | ||
src: s.url | ||
} ).on( | ||
"load error", | ||
callback = function( evt ) { | ||
script = jQuery( "<script>" ) | ||
.attr( s.scriptAttrs || {} ) | ||
.prop( { charset: s.scriptCharset, src: s.url } ) | ||
.on( "load error", callback = function( evt ) { | ||
script.remove(); | ||
@@ -63,4 +61,3 @@ callback = null; | ||
} | ||
} | ||
); | ||
} ); | ||
@@ -67,0 +64,0 @@ // Use native DOM manipulation to avoid our domManip AJAX trickery |
@@ -30,3 +30,3 @@ /* global Symbol */ | ||
var | ||
version = "3.3.1", | ||
version = "3.4.0", | ||
@@ -160,7 +160,7 @@ // Define a local copy of jQuery | ||
for ( name in options ) { | ||
src = target[ name ]; | ||
copy = options[ name ]; | ||
// Prevent Object.prototype pollution | ||
// Prevent never-ending loop | ||
if ( target === copy ) { | ||
if ( name === "__proto__" || target === copy ) { | ||
continue; | ||
@@ -172,10 +172,13 @@ } | ||
( copyIsArray = Array.isArray( copy ) ) ) ) { | ||
src = target[ name ]; | ||
if ( copyIsArray ) { | ||
copyIsArray = false; | ||
clone = src && Array.isArray( src ) ? src : []; | ||
// Ensure proper type for the source value | ||
if ( copyIsArray && !Array.isArray( src ) ) { | ||
clone = []; | ||
} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { | ||
clone = {}; | ||
} else { | ||
clone = src && jQuery.isPlainObject( src ) ? src : {}; | ||
clone = src; | ||
} | ||
copyIsArray = false; | ||
@@ -233,5 +236,2 @@ // Never move original objects, clone them | ||
isEmptyObject: function( obj ) { | ||
/* eslint-disable no-unused-vars */ | ||
// See https://github.com/eslint/eslint/issues/6125 | ||
var name; | ||
@@ -246,4 +246,4 @@ | ||
// Evaluates a script in a global context | ||
globalEval: function( code ) { | ||
DOMEval( code ); | ||
globalEval: function( code, options ) { | ||
DOMEval( code, { nonce: options && options.nonce } ); | ||
}, | ||
@@ -250,0 +250,0 @@ |
@@ -9,9 +9,10 @@ define( [ | ||
src: true, | ||
nonce: true, | ||
noModule: true | ||
}; | ||
function DOMEval( code, doc, node ) { | ||
function DOMEval( code, node, doc ) { | ||
doc = doc || document; | ||
var i, | ||
var i, val, | ||
script = doc.createElement( "script" ); | ||
@@ -22,4 +23,16 @@ | ||
for ( i in preservedScriptAttributes ) { | ||
if ( node[ i ] ) { | ||
script[ i ] = node[ i ]; | ||
// Support: Firefox 64+, Edge 18+ | ||
// Some browsers don't support the "nonce" property on scripts. | ||
// On the other hand, just using `getAttribute` is not enough as | ||
// the `nonce` attribute is reset to an empty string whenever it | ||
// becomes browsing-context connected. | ||
// See https://github.com/whatwg/html/issues/2369 | ||
// See https://html.spec.whatwg.org/#nonce-attributes | ||
// The `node.getAttribute` check was added for the sake of | ||
// `jQuery.globalEval` so that it can fake a nonce-containing node | ||
// via an object. | ||
val = node[ i ] || node.getAttribute && node.getAttribute( i ); | ||
if ( val ) { | ||
script.setAttribute( i, val ); | ||
} | ||
@@ -26,0 +39,0 @@ } |
define( function() { | ||
"use strict"; | ||
// Match a standalone tag | ||
// rsingleTag matches a string consisting of a single HTML element with no attributes | ||
// and captures the element's name | ||
return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); | ||
} ); |
123
src/css.js
define( [ | ||
"./core", | ||
"./var/pnum", | ||
"./core/access", | ||
"./core/camelCase", | ||
"./var/document", | ||
"./var/rcssNum", | ||
@@ -16,2 +14,3 @@ "./css/var/rnumnonpx", | ||
"./css/support", | ||
"./css/finalPropName", | ||
@@ -21,4 +20,4 @@ "./core/init", | ||
"./selector" // contains | ||
], function( jQuery, pnum, access, camelCase, document, rcssNum, rnumnonpx, cssExpand, | ||
getStyles, swap, curCSS, adjustCSS, addGetHookIf, support ) { | ||
], function( jQuery, access, camelCase, rcssNum, rnumnonpx, cssExpand, | ||
getStyles, swap, curCSS, adjustCSS, addGetHookIf, support, finalPropName ) { | ||
@@ -38,37 +37,4 @@ "use strict"; | ||
fontWeight: "400" | ||
}, | ||
}; | ||
cssPrefixes = [ "Webkit", "Moz", "ms" ], | ||
emptyStyle = document.createElement( "div" ).style; | ||
// Return a css property mapped to a potentially vendor prefixed property | ||
function vendorPropName( name ) { | ||
// Shortcut for names that are not vendor prefixed | ||
if ( name in emptyStyle ) { | ||
return name; | ||
} | ||
// Check for vendor prefixed names | ||
var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), | ||
i = cssPrefixes.length; | ||
while ( i-- ) { | ||
name = cssPrefixes[ i ] + capName; | ||
if ( name in emptyStyle ) { | ||
return name; | ||
} | ||
} | ||
} | ||
// Return a property mapped along what jQuery.cssProps suggests or to | ||
// a vendor prefixed property. | ||
function finalPropName( name ) { | ||
var ret = jQuery.cssProps[ name ]; | ||
if ( !ret ) { | ||
ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; | ||
} | ||
return ret; | ||
} | ||
function setPositiveNumber( elem, value, subtract ) { | ||
@@ -145,3 +111,6 @@ | ||
0.5 | ||
) ); | ||
// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter | ||
// Use an explicit zero to avoid NaN (gh-3964) | ||
) ) || 0; | ||
} | ||
@@ -156,5 +125,12 @@ | ||
var styles = getStyles( elem ), | ||
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). | ||
// Fake content-box until we know it's needed to know the true value. | ||
boxSizingNeeded = !support.boxSizingReliable() || extra, | ||
isBorderBox = boxSizingNeeded && | ||
jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
valueIsBorderBox = isBorderBox, | ||
val = curCSS( elem, dimension, styles ), | ||
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
valueIsBorderBox = isBorderBox; | ||
offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); | ||
@@ -170,6 +146,2 @@ // Support: Firefox <=54 | ||
// Check for style in case a browser which returns unreliable values | ||
// for getComputedStyle silently falls back to the reliable elem.style | ||
valueIsBorderBox = valueIsBorderBox && | ||
( support.boxSizingReliable() || val === elem.style[ dimension ] ); | ||
@@ -180,9 +152,20 @@ // Fall back to offsetWidth/offsetHeight when value is "auto" | ||
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) | ||
if ( val === "auto" || | ||
!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) { | ||
// Support: IE 9-11 only | ||
// Also use offsetWidth/offsetHeight for when box sizing is unreliable | ||
// We use getClientRects() to check for hidden/disconnected. | ||
// In those cases, the computed value can be trusted to be border-box | ||
if ( ( !support.boxSizingReliable() && isBorderBox || | ||
val === "auto" || | ||
!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && | ||
elem.getClientRects().length ) { | ||
val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ]; | ||
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; | ||
// offsetWidth/offsetHeight provide border-box values | ||
valueIsBorderBox = true; | ||
// Where available, offsetWidth/offsetHeight approximate border box dimensions. | ||
// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the | ||
// retrieved value as a content box dimension. | ||
valueIsBorderBox = offsetProp in elem; | ||
if ( valueIsBorderBox ) { | ||
val = elem[ offsetProp ]; | ||
} | ||
} | ||
@@ -233,2 +216,9 @@ | ||
"fontWeight": true, | ||
"gridArea": true, | ||
"gridColumn": true, | ||
"gridColumnEnd": true, | ||
"gridColumnStart": true, | ||
"gridRow": true, | ||
"gridRowEnd": true, | ||
"gridRowStart": true, | ||
"lineHeight": true, | ||
@@ -289,3 +279,5 @@ "opacity": true, | ||
// If a number was passed in, add the unit (except for certain CSS properties) | ||
if ( type === "number" ) { | ||
// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append | ||
// "px" to a few hardcoded values. | ||
if ( type === "number" && !isCustomProp ) { | ||
value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); | ||
@@ -390,14 +382,25 @@ } | ||
styles = getStyles( elem ), | ||
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
subtract = extra && boxModelAdjustment( | ||
elem, | ||
dimension, | ||
extra, | ||
isBorderBox, | ||
styles | ||
); | ||
// Only read styles.position if the test has a chance to fail | ||
// to avoid forcing a reflow. | ||
scrollboxSizeBuggy = !support.scrollboxSize() && | ||
styles.position === "absolute", | ||
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) | ||
boxSizingNeeded = scrollboxSizeBuggy || extra, | ||
isBorderBox = boxSizingNeeded && | ||
jQuery.css( elem, "boxSizing", false, styles ) === "border-box", | ||
subtract = extra ? | ||
boxModelAdjustment( | ||
elem, | ||
dimension, | ||
extra, | ||
isBorderBox, | ||
styles | ||
) : | ||
0; | ||
// Account for unreliable border-box dimensions by comparing offset* to computed and | ||
// faking a content-box to get border and padding (gh-3699) | ||
if ( isBorderBox && support.scrollboxSize() === styles.position ) { | ||
if ( isBorderBox && scrollboxSizeBuggy ) { | ||
subtract -= Math.ceil( | ||
@@ -404,0 +407,0 @@ elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - |
@@ -22,3 +22,4 @@ define( [ | ||
// Starting value computation is required for potential unit mismatches | ||
initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && | ||
initialInUnit = elem.nodeType && | ||
( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && | ||
rcssNum.exec( jQuery.css( elem, prop ) ); | ||
@@ -25,0 +26,0 @@ |
define( [ | ||
"../core", | ||
"../core/isAttached", | ||
"./var/rboxStyle", | ||
"./var/rnumnonpx", | ||
"./var/getStyles", | ||
"./support", | ||
"../selector" // Get jQuery.contains | ||
], function( jQuery, rboxStyle, rnumnonpx, getStyles, support ) { | ||
"./support" | ||
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles, support ) { | ||
@@ -29,3 +29,3 @@ "use strict"; | ||
if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { | ||
if ( ret === "" && !isAttached( elem ) ) { | ||
ret = jQuery.style( elem, name ); | ||
@@ -32,0 +32,0 @@ } |
@@ -46,4 +46,6 @@ define( [ | ||
// Detect overflow:scroll screwiness (gh-3699) | ||
// Support: Chrome <=64 | ||
// Don't get tricked when zoom affects offsetWidth (gh-4029) | ||
div.style.position = "absolute"; | ||
scrollboxSizeVal = div.offsetWidth === 36 || "absolute"; | ||
scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; | ||
@@ -50,0 +52,0 @@ documentElement.removeChild( container ); |
define( [ | ||
"../../core", | ||
"../../selector" | ||
"../../core/isAttached" | ||
// css is assumed | ||
], function( jQuery ) { | ||
], function( jQuery, isAttached ) { | ||
"use strict"; | ||
@@ -30,3 +30,3 @@ | ||
// in the document. | ||
jQuery.contains( elem.ownerDocument, elem ) && | ||
isAttached( elem ) && | ||
@@ -33,0 +33,0 @@ jQuery.css( elem, "display" ) === "none"; |
define( [ | ||
"../core", | ||
"../css/finalPropName", | ||
"../css" | ||
], function( jQuery ) { | ||
], function( jQuery, finalPropName ) { | ||
@@ -87,5 +89,5 @@ "use strict"; | ||
jQuery.fx.step[ tween.prop ]( tween ); | ||
} else if ( tween.elem.nodeType === 1 && | ||
( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || | ||
jQuery.cssHooks[ tween.prop ] ) ) { | ||
} else if ( tween.elem.nodeType === 1 && ( | ||
jQuery.cssHooks[ tween.prop ] || | ||
tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { | ||
jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); | ||
@@ -92,0 +94,0 @@ } else { |
194
src/event.js
@@ -7,2 +7,3 @@ define( [ | ||
"./var/rnothtmlwhite", | ||
"./var/rcheckableType", | ||
"./var/slice", | ||
@@ -15,3 +16,3 @@ "./data/var/dataPriv", | ||
], function( jQuery, document, documentElement, isFunction, rnothtmlwhite, | ||
slice, dataPriv, nodeName ) { | ||
rcheckableType, slice, dataPriv, nodeName ) { | ||
@@ -33,4 +34,15 @@ "use strict"; | ||
// Support: IE <=9 - 11+ | ||
// focus() and blur() are asynchronous, except when they are no-op. | ||
// So expect focus to be synchronous when the element is already active, | ||
// and blur to be synchronous when the element is not already active. | ||
// (focus and blur are always synchronous in other supported browsers, | ||
// this just defines when we can count on it). | ||
function expectSync( elem, type ) { | ||
return ( elem === safeActiveElement() ) === ( type === "focus" ); | ||
} | ||
// Support: IE <=9 only | ||
// See #13393 for more info | ||
// Accessing document.activeElement can throw unexpectedly | ||
// https://bugs.jquery.com/ticket/13393 | ||
function safeActiveElement() { | ||
@@ -335,5 +347,6 @@ try { | ||
// Triggered event must either 1) have no namespace, or 2) have namespace(s) | ||
// a subset or equal to those in the bound event (both can have no namespace). | ||
if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { | ||
// If the event is namespaced, then each handler is only invoked if it is | ||
// specially universal or its namespaces are a superset of the event's. | ||
if ( !event.rnamespace || handleObj.namespace === false || | ||
event.rnamespace.test( handleObj.namespace ) ) { | ||
@@ -462,35 +475,49 @@ event.handleObj = handleObj; | ||
}, | ||
focus: { | ||
click: { | ||
// Fire native event if possible so blur/focus sequence is correct | ||
trigger: function() { | ||
if ( this !== safeActiveElement() && this.focus ) { | ||
this.focus(); | ||
return false; | ||
// Utilize native event to ensure correct state for checkable inputs | ||
setup: function( data ) { | ||
// For mutual compressibility with _default, replace `this` access with a local var. | ||
// `|| data` is dead code meant only to preserve the variable through minification. | ||
var el = this || data; | ||
// Claim the first handler | ||
if ( rcheckableType.test( el.type ) && | ||
el.click && nodeName( el, "input" ) && | ||
dataPriv.get( el, "click" ) === undefined ) { | ||
// dataPriv.set( el, "click", ... ) | ||
leverageNative( el, "click", returnTrue ); | ||
} | ||
// Return false to allow normal processing in the caller | ||
return false; | ||
}, | ||
delegateType: "focusin" | ||
}, | ||
blur: { | ||
trigger: function() { | ||
if ( this === safeActiveElement() && this.blur ) { | ||
this.blur(); | ||
return false; | ||
trigger: function( data ) { | ||
// For mutual compressibility with _default, replace `this` access with a local var. | ||
// `|| data` is dead code meant only to preserve the variable through minification. | ||
var el = this || data; | ||
// Force setup before triggering a click | ||
if ( rcheckableType.test( el.type ) && | ||
el.click && nodeName( el, "input" ) && | ||
dataPriv.get( el, "click" ) === undefined ) { | ||
leverageNative( el, "click" ); | ||
} | ||
}, | ||
delegateType: "focusout" | ||
}, | ||
click: { | ||
// For checkbox, fire native event so checked state will be right | ||
trigger: function() { | ||
if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { | ||
this.click(); | ||
return false; | ||
} | ||
// Return non-false to allow normal event-path propagation | ||
return true; | ||
}, | ||
// For cross-browser consistency, don't fire native .click() on links | ||
// For cross-browser consistency, suppress native .click() on links | ||
// Also prevent it if we're currently inside a leveraged native-event stack | ||
_default: function( event ) { | ||
return nodeName( event.target, "a" ); | ||
var target = event.target; | ||
return rcheckableType.test( target.type ) && | ||
target.click && nodeName( target, "input" ) && | ||
dataPriv.get( target, "click" ) || | ||
nodeName( target, "a" ); | ||
} | ||
@@ -512,2 +539,81 @@ }, | ||
// Ensure the presence of an event listener that handles manually-triggered | ||
// synthetic events by interrupting progress until reinvoked in response to | ||
// *native* events that it fires directly, ensuring that state changes have | ||
// already occurred before other listeners are invoked. | ||
function leverageNative( el, type, expectSync ) { | ||
// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add | ||
if ( !expectSync ) { | ||
jQuery.event.add( el, type, returnTrue ); | ||
return; | ||
} | ||
// Register the controller as a special universal handler for all event namespaces | ||
dataPriv.set( el, type, false ); | ||
jQuery.event.add( el, type, { | ||
namespace: false, | ||
handler: function( event ) { | ||
var notAsync, result, | ||
saved = dataPriv.get( this, type ); | ||
if ( ( event.isTrigger & 1 ) && this[ type ] ) { | ||
// Interrupt processing of the outer synthetic .trigger()ed event | ||
if ( !saved ) { | ||
// Store arguments for use when handling the inner native event | ||
saved = slice.call( arguments ); | ||
dataPriv.set( this, type, saved ); | ||
// Trigger the native event and capture its result | ||
// Support: IE <=9 - 11+ | ||
// focus() and blur() are asynchronous | ||
notAsync = expectSync( this, type ); | ||
this[ type ](); | ||
result = dataPriv.get( this, type ); | ||
if ( saved !== result || notAsync ) { | ||
dataPriv.set( this, type, false ); | ||
} else { | ||
result = undefined; | ||
} | ||
if ( saved !== result ) { | ||
// Cancel the outer synthetic event | ||
event.stopImmediatePropagation(); | ||
event.preventDefault(); | ||
return result; | ||
} | ||
// If this is an inner synthetic event for an event with a bubbling surrogate | ||
// (focus or blur), assume that the surrogate already propagated from triggering the | ||
// native event and prevent that from happening again here. | ||
// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the | ||
// bubbling surrogate propagates *after* the non-bubbling base), but that seems | ||
// less bad than duplication. | ||
} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { | ||
event.stopPropagation(); | ||
} | ||
// If this is a native event triggered above, everything is now in order | ||
// Fire an inner synthetic event with the original arguments | ||
} else if ( saved ) { | ||
// ...and capture the result | ||
dataPriv.set( this, type, jQuery.event.trigger( | ||
// Support: IE <=9 - 11+ | ||
// Extend with the prototype to reset the above stopImmediatePropagation() | ||
jQuery.extend( saved.shift(), jQuery.Event.prototype ), | ||
saved, | ||
this | ||
) ); | ||
// Abort handling of the native event | ||
event.stopImmediatePropagation(); | ||
} | ||
} | ||
} ); | ||
} | ||
jQuery.removeEvent = function( elem, type, handle ) { | ||
@@ -625,2 +731,3 @@ | ||
"char": true, | ||
code: true, | ||
charCode: true, | ||
@@ -672,2 +779,29 @@ key: true, | ||
jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { | ||
jQuery.event.special[ type ] = { | ||
// Utilize native event if possible so blur/focus sequence is correct | ||
setup: function() { | ||
// Claim the first handler | ||
// dataPriv.set( this, "focus", ... ) | ||
// dataPriv.set( this, "blur", ... ) | ||
leverageNative( this, type, expectSync ); | ||
// Return false to allow normal processing in the caller | ||
return false; | ||
}, | ||
trigger: function() { | ||
// Force setup before trigger | ||
leverageNative( this, type ); | ||
// Return non-false to allow normal event-path propagation | ||
return true; | ||
}, | ||
delegateType: delegateType | ||
}; | ||
} ); | ||
// Create mouseenter/leave events using mouseover/out and event-time checks | ||
@@ -674,0 +808,0 @@ // so that event delegation works in jQuery. |
define( [ | ||
"./core", | ||
"./core/isAttached", | ||
"./var/concat", | ||
"./var/isFunction", | ||
"./var/push", | ||
"./var/rcheckableType", | ||
"./core/access", | ||
"./manipulation/var/rcheckableType", | ||
"./manipulation/var/rtagName", | ||
@@ -26,4 +27,4 @@ "./manipulation/var/rscriptType", | ||
"./event" | ||
], function( jQuery, concat, isFunction, push, access, | ||
rcheckableType, rtagName, rscriptType, | ||
], function( jQuery, isAttached, concat, isFunction, push, rcheckableType, | ||
access, rtagName, rscriptType, | ||
wrapMap, getAll, setGlobalEval, buildFragment, support, | ||
@@ -201,7 +202,9 @@ dataPriv, dataUser, acceptData, DOMEval, nodeName ) { | ||
// Optional AJAX dependency, but won't run scripts if not present | ||
if ( jQuery._evalUrl ) { | ||
jQuery._evalUrl( node.src ); | ||
if ( jQuery._evalUrl && !node.noModule ) { | ||
jQuery._evalUrl( node.src, { | ||
nonce: node.nonce || node.getAttribute( "nonce" ) | ||
} ); | ||
} | ||
} else { | ||
DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node ); | ||
DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); | ||
} | ||
@@ -228,3 +231,3 @@ } | ||
if ( node.parentNode ) { | ||
if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { | ||
if ( keepData && isAttached( node ) ) { | ||
setGlobalEval( getAll( node, "script" ) ); | ||
@@ -247,3 +250,3 @@ } | ||
clone = elem.cloneNode( true ), | ||
inPage = jQuery.contains( elem.ownerDocument, elem ); | ||
inPage = isAttached( elem ); | ||
@@ -250,0 +253,0 @@ // Fix IE cloning issues |
@@ -7,3 +7,3 @@ define( [ | ||
jQuery._evalUrl = function( url ) { | ||
jQuery._evalUrl = function( url, options ) { | ||
return jQuery.ajax( { | ||
@@ -18,3 +18,12 @@ url: url, | ||
global: false, | ||
"throws": true | ||
// Only evaluate the response if it is successful (gh-4126) | ||
// dataFilter is not invoked for failure responses, so using it instead | ||
// of the default converter is kludgy but it works. | ||
converters: { | ||
"text script": function() {} | ||
}, | ||
dataFilter: function( response ) { | ||
jQuery.globalEval( response, options ); | ||
} | ||
} ); | ||
@@ -21,0 +30,0 @@ }; |
define( [ | ||
"../core", | ||
"../core/toType", | ||
"../core/isAttached", | ||
"./var/rtagName", | ||
@@ -9,3 +10,3 @@ "./var/rscriptType", | ||
"./setGlobalEval" | ||
], function( jQuery, toType, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) { | ||
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) { | ||
@@ -17,3 +18,3 @@ "use strict"; | ||
function buildFragment( elems, context, scripts, selection, ignored ) { | ||
var elem, tmp, tag, wrap, contains, j, | ||
var elem, tmp, tag, wrap, attached, j, | ||
fragment = context.createDocumentFragment(), | ||
@@ -82,3 +83,3 @@ nodes = [], | ||
contains = jQuery.contains( elem.ownerDocument, elem ); | ||
attached = isAttached( elem ); | ||
@@ -89,3 +90,3 @@ // Append to fragment | ||
// Preserve script evaluation history | ||
if ( contains ) { | ||
if ( attached ) { | ||
setGlobalEval( tmp ); | ||
@@ -92,0 +93,0 @@ } |
define( function() { | ||
"use strict"; | ||
return ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); | ||
// rtagName captures the name from the first start tag in a string of HTML | ||
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state | ||
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state | ||
return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); | ||
} ); |
define( [ | ||
"./core", | ||
"./core/toType", | ||
"./manipulation/var/rcheckableType", | ||
"./var/rcheckableType", | ||
"./var/isFunction", | ||
@@ -73,2 +73,6 @@ "./core/init", | ||
if ( a == null ) { | ||
return ""; | ||
} | ||
// If an array was passed in, assume that it is an array of form elements. | ||
@@ -75,0 +79,0 @@ if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { |
@@ -148,14 +148,14 @@ define( [ | ||
contents: function( elem ) { | ||
if ( nodeName( elem, "iframe" ) ) { | ||
return elem.contentDocument; | ||
} | ||
if ( typeof elem.contentDocument !== "undefined" ) { | ||
return elem.contentDocument; | ||
} | ||
// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only | ||
// Treat the template element as a regular one in browsers that | ||
// don't support it. | ||
if ( nodeName( elem, "template" ) ) { | ||
elem = elem.content || elem; | ||
} | ||
// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only | ||
// Treat the template element as a regular one in browsers that | ||
// don't support it. | ||
if ( nodeName( elem, "template" ) ) { | ||
elem = elem.content || elem; | ||
} | ||
return jQuery.merge( [], elem.childNodes ); | ||
return jQuery.merge( [], elem.childNodes ); | ||
} | ||
@@ -162,0 +162,0 @@ }, function( name, fn ) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1293692
125
26193
40