/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(c,Z){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=c.document?Z(c,!0):function(c){if(!c.document)throw new Error("jQuery requires a window with a document");return Z(c)}:Z(c)}("undefined"!=typeof window?window:this,function(c,Z){"use strict";var e=[],X=Object.getPrototypeOf,eN=e.slice,g=e.flat?function(c){return e.flat.call(c)}:function(c){return e.concat.apply([],c)},Xc=e.push,Zc=e.indexOf,B={},cb=B.toString,eY=B.hasOwnProperty,cV=eY.toString,f=cV.call(Object),T={},cE=function(c){return"function"==typeof c&&"number"!=typeof c.nodeType},a=function(c){return null!=c&&c===c.window},J=c.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function L(c,Z,e){var X,eN,g=(e=e||J).createElement("script");if(g.text=c,Z)for(X in b)(eN=Z[X]||Z.getAttribute&&Z.getAttribute(X))&&g.setAttribute(X,eN);e.head.appendChild(g).parentNode.removeChild(g)}function eF(c){return null==c?c+"":"object"==typeof c||"function"==typeof c?B[cb.call(c)]||"object":typeof c}var ec="3.5.1",h=function(c,Z){return new h.fn.init(c,Z)};function d(c){var Z=!!c&&"length"in c&&c.length,e=eF(c);return!cE(c)&&!a(c)&&("array"===e||0===Z||"number"==typeof Z&&0+~]|"+i+")"+i+"*"),q=new RegExp(i+"|>"),r=new RegExp(l),s=new RegExp("^"+j+"$"),t={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+k),PSEUDO:new RegExp("^"+l),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+aN+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},u=/HTML$/i,v=/^(?:input|select|textarea|button)$/i,w=/^h\d$/i,x=/^[^{]+\{\s*\[native \w/,y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,z=/[+~]/,A=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),C=function(c,Z){var e="0x"+c.slice(1)-65536;return Z||(e<0?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320))},D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,E=function(c,Z){return Z?"\0"===c?"ï¿?:c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c},F=function(){f()},G=$(function(c){return!0===c.disabled&&"fieldset"===c.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{eNe.apply(bS=P.call(h.childNodes),h.childNodes),bS[h.childNodes.length].nodeType}catch(Z){eNe={apply:bS.length?function(c,Z){fj.apply(c,P.call(Z))}:function(c,Z){var e=c.length,X=0;while(c[e++]=Z[X++]);c.length=e-1}}}function H(c,Z,X,eN){var g,Zc,cb,eY,cV,cE,b,L=Z&&Z.ownerDocument,h=Z?Z.nodeType:9;if(X=X||[],"string"!=typeof c||!c||1!==h&&9!==h&&11!==h)return X;if(!eN&&(f(Z),Z=Z||T,a)){if(11!==h&&(cV=y.exec(c)))if(g=cV[1]){if(9===h){if(!(cb=Z.getElementById(g)))return X;if(cb.id===g)return X.push(cb),X}else if(L&&(cb=L.getElementById(g))&&eF(Z,cb)&&cb.id===g)return X.push(cb),X}else{if(cV[2])return eNe.apply(X,Z.getElementsByTagName(c)),X;if((g=cV[3])&&e.getElementsByClassName&&Z.getElementsByClassName)return eNe.apply(X,Z.getElementsByClassName(g)),X}if(e.qsa&&!gF[c+" "]&&(!J||!J.test(c))&&(1!==h||"object"!==Z.nodeName.toLowerCase())){if(b=c,L=Z,1===h&&(q.test(c)||p.test(c))){(L=z.test(c)&&V(Z.parentNode)||Z)===Z&&e.scope||((eY=Z.getAttribute("id"))?eY=eY.replace(D,E):Z.setAttribute("id",eY=ec)),Zc=(cE=Xc(c)).length;while(Zc--)cE[Zc]=(eY?"#"+eY:":scope")+" "+Y(cE[Zc]);b=cE.join(",")}try{return eNe.apply(X,L.querySelectorAll(b)),X}catch(Z){gF(c,!0)}finally{eY===ec&&Z.removeAttribute("id")}}}return B(c.replace(n,"$1"),Z,X,eN)}function I(){var c=[];return function Z(e,eN){return c.push(e+" ")>X.cacheLength&&delete Z[c.shift()],Z[e+" "]=eN}}function K(c){return c[ec]=!0,c}function M(c){var Z=T.createElement("fieldset");try{return!!c(Z)}catch(c){return!1}finally{Z.parentNode&&Z.parentNode.removeChild(Z),Z=null}}function N(c,Z){var e=c.split("|"),eN=e.length;while(eN--)X.attrHandle[e[eN]]=Z}function O(c,Z){var e=Z&&c,X=e&&1===c.nodeType&&1===Z.nodeType&&c.sourceIndex-Z.sourceIndex;if(X)return X;if(e)while(e=e.nextSibling)if(e===Z)return-1;return c?1:-1}function Q(c){return function(Z){return"input"===Z.nodeName.toLowerCase()&&Z.type===c}}function R(c){return function(Z){var e=Z.nodeName.toLowerCase();return("input"===e||"button"===e)&&Z.type===c}}function S(c){return function(Z){return"form"in Z?Z.parentNode&&!1===Z.disabled?"label"in Z?"label"in Z.parentNode?Z.parentNode.disabled===c:Z.disabled===c:Z.isDisabled===c||Z.isDisabled!==!c&&G(Z)===c:Z.disabled===c:"label"in Z&&Z.disabled===c}}function U(c){return K(function(Z){return Z=+Z,K(function(e,X){var eN,g=c([],e.length,Z),Xc=g.length;while(Xc--)e[eN=g[Xc]]&&(e[eN]=!(X[eN]=e[eN]))})})}function V(c){return c&&"undefined"!=typeof c.getElementsByTagName&&c}for(Z in e=H.support={},g=H.isXML=function(c){var Z=c.namespaceURI,e=(c.ownerDocument||c).documentElement;return!u.test(Z||e&&e.nodeName||"HTML")},f=H.setDocument=function(c){var Z,eN,Xc=c?c.ownerDocument||c:h;return Xc!=T&&9===Xc.nodeType&&Xc.documentElement&&(cE=(T=Xc).documentElement,a=!g(T),h!=T&&(eN=T.defaultView)&&eN.top!==eN&&(eN.addEventListener?eN.addEventListener("unload",F,!1):eN.attachEvent&&eN.attachEvent("onunload",F)),e.scope=M(function(c){return cE.appendChild(c).appendChild(T.createElement("div")),"undefined"!=typeof c.querySelectorAll&&!c.querySelectorAll(":scope fieldset div").length}),e.attributes=M(function(c){return c.className="i",!c.getAttribute("className")}),e.getElementsByTagName=M(function(c){return c.appendChild(T.createComment("")),!c.getElementsByTagName("*").length}),e.getElementsByClassName=x.test(T.getElementsByClassName),e.getById=M(function(c){return cE.appendChild(c).id=ec,!T.getElementsByName||!T.getElementsByName(ec).length}),e.getById?(X.filter.ID=function(c){var Z=c.replace(A,C);return function(c){return c.getAttribute("id")===Z}},X.find.ID=function(c,Z){if("undefined"!=typeof Z.getElementById&&a){var e=Z.getElementById(c);return e?[e]:[]}}):(X.filter.ID=function(c){var Z=c.replace(A,C);return function(c){var e="undefined"!=typeof c.getAttributeNode&&c.getAttributeNode("id");return e&&e.value===Z}},X.find.ID=function(c,Z){if("undefined"!=typeof Z.getElementById&&a){var e,X,eN,g=Z.getElementById(c);if(g){if((e=g.getAttributeNode("id"))&&e.value===c)return[g];eN=Z.getElementsByName(c),X=0;while(g=eN[X++])if((e=g.getAttributeNode("id"))&&e.value===c)return[g]}return[]}}),X.find.TAG=e.getElementsByTagName?function(c,Z){return"undefined"!=typeof Z.getElementsByTagName?Z.getElementsByTagName(c):e.qsa?Z.querySelectorAll(c):void 0}:function(c,Z){var e,X=[],eN=0,g=Z.getElementsByTagName(c);if("*"===c){while(e=g[eN++])1===e.nodeType&&X.push(e);return X}return g},X.find.CLASS=e.getElementsByClassName&&function(c,Z){if("undefined"!=typeof Z.getElementsByClassName&&a)return Z.getElementsByClassName(c)},b=[],J=[],(e.qsa=x.test(T.querySelectorAll))&&(M(function(c){var Z;cE.appendChild(c).innerHTML="",c.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+i+"*(?:''|\"\")"),c.querySelectorAll("[selected]").length||J.push("\\["+i+"*(?:value|"+aN+")"),c.querySelectorAll("[id~="+ec+"-]").length||J.push("~="),(Z=T.createElement("input")).setAttribute("name",""),c.appendChild(Z),c.querySelectorAll("[name='']").length||J.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")"),c.querySelectorAll(":checked").length||J.push(":checked"),c.querySelectorAll("a#"+ec+"+*").length||J.push(".#.+[+~]"),c.querySelectorAll("\\\f"),J.push("[\\r\\n\\f]")}),M(function(c){c.innerHTML="";var Z=T.createElement("input");Z.setAttribute("type","hidden"),c.appendChild(Z).setAttribute("name","D"),c.querySelectorAll("[name=d]").length&&J.push("name"+i+"*[*^$|!~]?="),2!==c.querySelectorAll(":enabled").length&&J.push(":enabled",":disabled"),cE.appendChild(c).disabled=!0,2!==c.querySelectorAll(":disabled").length&&J.push(":enabled",":disabled"),c.querySelectorAll("*,:x"),J.push(",.*:")})),(e.matchesSelector=x.test(L=cE.matches||cE.webkitMatchesSelector||cE.mozMatchesSelector||cE.oMatchesSelector||cE.msMatchesSelector))&&M(function(c){e.disconnectedMatch=L.call(c,"*"),L.call(c,"[s!='']:x"),b.push("!=",l)}),J=J.length&&new RegExp(J.join("|")),b=b.length&&new RegExp(b.join("|")),Z=x.test(cE.compareDocumentPosition),eF=Z||x.test(cE.contains)?function(c,Z){var e=9===c.nodeType?c.documentElement:c,X=Z&&Z.parentNode;return c===X||!(!X||1!==X.nodeType||!(e.contains?e.contains(X):c.compareDocumentPosition&&16&c.compareDocumentPosition(X)))}:function(c,Z){if(Z)while(Z=Z.parentNode)if(Z===c)return!0;return!1},bW=Z?function(c,Z){if(c===Z)return cV=!0,0;var X=!c.compareDocumentPosition-!Z.compareDocumentPosition;return X||(1&(X=(c.ownerDocument||c)==(Z.ownerDocument||Z)?c.compareDocumentPosition(Z):1)||!e.sortDetached&&Z.compareDocumentPosition(c)===X?c==T||c.ownerDocument==h&&eF(h,c)?-1:Z==T||Z.ownerDocument==h&&eF(h,Z)?1:eY?dX(eY,c)-dX(eY,Z):0:4&X?-1:1)}:function(c,Z){if(c===Z)return cV=!0,0;var e,X=0,eN=c.parentNode,g=Z.parentNode,Xc=[c],Zc=[Z];if(!eN||!g)return c==T?-1:Z==T?1:eN?-1:g?1:eY?dX(eY,c)-dX(eY,Z):0;if(eN===g)return O(c,Z);e=c;while(e=e.parentNode)Xc.unshift(e);e=Z;while(e=e.parentNode)Zc.unshift(e);while(Xc[X]===Zc[X])X++;return X?O(Xc[X],Zc[X]):Xc[X]==h?-1:Zc[X]==h?1:0}),T},H.matches=function(c,Z){return H(c,null,null,Z)},H.matchesSelector=function(c,Z){if(f(c),e.matchesSelector&&a&&!gF[Z+" "]&&(!b||!b.test(Z))&&(!J||!J.test(Z)))try{var X=L.call(c,Z);if(X||e.disconnectedMatch||c.document&&11!==c.document.nodeType)return X}catch(c){gF(Z,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(c){return c[1]=c[1].replace(A,C),c[3]=(c[3]||c[4]||c[5]||"").replace(A,C),"~="===c[2]&&(c[3]=" "+c[3]+" "),c.slice(0,4)},CHILD:function(c){return c[1]=c[1].toLowerCase(),"nth"===c[1].slice(0,3)?(c[3]||H.error(c[0]),c[4]=+(c[4]?c[5]+(c[6]||1):2*("even"===c[3]||"odd"===c[3])),c[5]=+(c[7]+c[8]||"odd"===c[3])):c[3]&&H.error(c[0]),c},PSEUDO:function(c){var Z,e=!c[6]&&c[2];return t.CHILD.test(c[0])?null:(c[3]?c[2]=c[4]||c[5]||"":e&&r.test(e)&&(Z=Xc(e,!0))&&(Z=e.indexOf(")",e.length-Z)-e.length)&&(c[0]=c[0].slice(0,Z),c[2]=e.slice(0,Z)),c.slice(0,3))}},filter:{TAG:function(c){var Z=c.replace(A,C).toLowerCase();return"*"===c?function(){return!0}:function(c){return c.nodeName&&c.nodeName.toLowerCase()===Z}},CLASS:function(c){var Z=cR[c+" "];return Z||(Z=new RegExp("(^|"+i+")"+c+"("+i+"|$)"))&&cR(c,function(c){return Z.test("string"==typeof c.className&&c.className||"undefined"!=typeof c.getAttribute&&c.getAttribute("class")||"")})},ATTR:function(c,Z,e){return function(X){var eN=H.attr(X,c);return null==eN?"!="===Z:!Z||(eN+="","="===Z?eN===e:"!="===Z?eN!==e:"^="===Z?e&&0===eN.indexOf(e):"*="===Z?e&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function fF(c,Z,e){return cE(Z)?h.grep(c,function(c,X){return!!Z.call(c,X,c)!==e}):Z.nodeType?h.grep(c,function(c){return c===Z!==e}):"string"!=typeof Z?h.grep(c,function(c){return-1)[^>]*|#([\w-]+))$/;(h.fn.init=function(c,Z,e){var X,eN;if(!c)return this;if(e=e||bS,"string"==typeof c){if(!(X="<"===c[0]&&">"===c[c.length-1]&&3<=c.length?[null,c,null]:cC.exec(c))||!X[1]&&Z)return!Z||Z.jquery?(Z||e).find(c):this.constructor(Z).find(c);if(X[1]){if(Z=Z instanceof h?Z[0]:Z,h.merge(this,h.parseHTML(X[1],Z&&Z.nodeType?Z.ownerDocument||Z:J,!0)),bW.test(X[1])&&h.isPlainObject(Z))for(X in Z)cE(this[X])?this[X](Z[X]):this.attr(X,Z[X]);return this}return(eN=J.getElementById(X[2]))&&(this[0]=eN,this.length=1),this}return c.nodeType?(this[0]=c,this.length=1,this):cE(c)?void 0!==e.ready?e.ready(c):c(h):h.makeArray(c,this)}).prototype=h.fn,bS=h(J);var fj=/^(?:parents|prev(?:Until|All))/,eNe={children:!0,contents:!0,next:!0,prev:!0};function P(c,Z){while((c=c[Z])&&1!==c.nodeType);return c}h.fn.extend({has:function(c){var Z=h(c,this),e=Z.length;return this.filter(function(){for(var c=0;c\x20\t\r\n\f]*)/i,R=/^$|^module$|\/(?:java|ecma)script/i;M=J.createDocumentFragment().appendChild(J.createElement("div")),(N=J.createElement("input")).setAttribute("type","radio"),N.setAttribute("checked","checked"),N.setAttribute("name","t"),M.appendChild(N),T.checkClone=M.cloneNode(!0).cloneNode(!0).lastChild.checked,M.innerHTML="",T.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue,M.innerHTML="",T.option=!!M.lastChild;var S={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function U(c,Z){var e;return e="undefined"!=typeof c.getElementsByTagName?c.getElementsByTagName(Z||"*"):"undefined"!=typeof c.querySelectorAll?c.querySelectorAll(Z||"*"):[],void 0===Z||Z&&gF(c,Z)?h.merge([c],e):e}function V(c,Z){for(var e=0,X=c.length;e",""]);var W=/<|&#?\w+;/;function Y(c,Z,e,X,eN){for(var g,Xc,Zc,B,cb,eY,cV=Z.createDocumentFragment(),f=[],T=0,cE=c.length;T\s*$/g;function fc(c,Z){return gF(c,"table")&&gF(11!==Z.nodeType?Z:Z.firstChild,"tr")&&h(c).children("tbody")[0]||c}function Tc(c){return c.type=(null!==c.getAttribute("type"))+"/"+c.type,c}function cEc(c){return"true/"===(c.type||"").slice(0,5)?c.type=c.type.slice(5):c.removeAttribute("type"),c}function ac(c,Z){var e,X,eN,g,Xc,Zc;if(1===Z.nodeType){if(u.hasData(c)&&(Zc=u.get(c).events))for(eN in u.remove(Z,"handle events"),Zc)for(e=0,X=Zc[eN].length;e").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",e=function(c){Z.remove(),e=null,c&&eN("error"===c.type?404:200,c.type)}),J.head.appendChild(Z[0])},abort:function(){e&&e()}}});var eNZ,gZ=[],XcZ=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=gZ.pop()||h.expando+"_"+Ec.guid++;return this[c]=!0,c}}),h.ajaxPrefilter("json jsonp",function(Z,e,X){var eN,g,Xc,Zc=!1!==Z.jsonp&&(XcZ.test(Z.url)?"url":"string"==typeof Z.data&&0===(Z.contentType||"").indexOf("application/x-www-form-urlencoded")&&XcZ.test(Z.data)&&"data");if(Zc||"jsonp"===Z.dataTypes[0])return eN=Z.jsonpCallback=cE(Z.jsonpCallback)?Z.jsonpCallback():Z.jsonpCallback,Zc?Z[Zc]=Z[Zc].replace(XcZ,"$1"+eN):!1!==Z.jsonp&&(Z.url+=(Fc.test(Z.url)?"&":"?")+Z.jsonp+"="+eN),Z.converters["script json"]=function(){return Xc||h.error(eN+" was not called"),Xc[0]},Z.dataTypes[0]="json",g=c[eN],c[eN]=function(){Xc=arguments},X.always(function(){void 0===g?h(c).removeProp(eN):c[eN]=g,Z[eN]&&(Z.jsonpCallback=e.jsonpCallback,gZ.push(eN)),Xc&&cE(g)&&g(Xc[0]),Xc=g=void 0}),"script"}),T.createHTMLDocument=((eNZ=J.implementation.createHTMLDocument("").body).innerHTML="
",2===eNZ.childNodes.length),h.parseHTML=function(c,Z,e){return"string"!=typeof c?[]:("boolean"==typeof Z&&(e=Z,Z=!1),Z||(T.createHTMLDocument?((X=(Z=J.implementation.createHTMLDocument("")).createElement("base")).href=J.location.href,Z.head.appendChild(X)):Z=J),g=!e&&[],(eN=bW.exec(c))?[Z.createElement(eN[1])]:(eN=Y([c],Z,g),g&&g.length&&h(g).remove(),h.merge([],eN.childNodes)));var X,eN,g},h.fn.load=function(c,Z,e){var X,eN,g,Xc=this,Zc=c.indexOf(" ");return-1").append(h.parseHTML(c)).find(X):c)}).always(e&&function(c,Z){Xc.each(function(){e.apply(this,g||[c.responseText,Z,c])})}),this},h.expr.pseudos.animated=function(c){return h.grep(h.timers,function(Z){return c===Z.elem}).length},h.offset={setOffset:function(c,Z,e){var X,eN,g,Xc,Zc,B,cb=h.css(c,"position"),eY=h(c),cV={};"static"===cb&&(c.style.position="relative"),Zc=eY.offset(),g=h.css(c,"top"),B=h.css(c,"left"),("absolute"===cb||"fixed"===cb)&&-1<(g+B).indexOf("auto")?(Xc=(X=eY.position()).top,eN=X.left):(Xc=parseFloat(g)||0,eN=parseFloat(B)||0),cE(Z)&&(Z=Z.call(c,e,h.extend({},Zc))),null!=Z.top&&(cV.top=Z.top-Zc.top+Xc),null!=Z.left&&(cV.left=Z.left-Zc.left+eN),"using"in Z?Z.using.call(c,cV):("number"==typeof cV.top&&(cV.top+="px"),"number"==typeof cV.left&&(cV.left+="px"),eY.css(cV))}},h.fn.extend({offset:function(c){if(arguments.length)return void 0===c?this:this.each(function(Z){h.offset.setOffset(this,c,Z)});var Z,e,X=this[0];return X?X.getClientRects().length?(Z=X.getBoundingClientRect(),e=X.ownerDocument.defaultView,{top:Z.top+e.pageYOffset,left:Z.left+e.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var c,Z,e,X=this[0],eN={top:0,left:0};if("fixed"===h.css(X,"position"))Z=X.getBoundingClientRect();else{Z=this.offset(),e=X.ownerDocument,c=X.offsetParent||e.documentElement;while(c&&(c===e.body||c===e.documentElement)&&"static"===h.css(c,"position"))c=c.parentNode;c&&c!==X&&1===c.nodeType&&((eN=h(c).offset()).top+=h.css(c,"borderTopWidth",!0),eN.left+=h.css(c,"borderLeftWidth",!0))}return{top:Z.top-eN.top-h.css(X,"marginTop",!0),left:Z.left-eN.left-h.css(X,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var c=this.offsetParent;while(c&&"static"===h.css(c,"position"))c=c.offsetParent;return c||D})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,Z){var e="pageYOffset"===Z;h.fn[c]=function(X){return n(this,function(c,X,eN){var g;if(a(c)?g=c:9===c.nodeType&&(g=c.defaultView),void 0===eN)return g?g[Z]:c[X];g?g.scrollTo(e?g.pageXOffset:eN,e?eN:g.pageYOffset):c[X]=eN},c,X,arguments.length)}}),h.each(["top","left"],function(c,Z){h.cssHooks[Z]=cNc(T.pixelPosition,function(c,e){if(e)return e=dc(c,Z),Lc.test(e)?h(c).position()[Z]+"px":e})}),h.each({Height:"height",Width:"width"},function(c,Z){h.each({padding:"inner"+c,content:Z,"":"outer"+c},function(e,X){h.fn[X]=function(eN,g){var Xc=arguments.length&&(e||"boolean"!=typeof eN),Zc=e||(!0===eN||!0===g?"margin":"border");return n(this,function(Z,e,eN){var g;return a(Z)?0===X.indexOf("outer")?Z["inner"+c]:Z.document.documentElement["client"+c]:9===Z.nodeType?(g=Z.documentElement,Math.max(Z.body["scroll"+c],g["scroll"+c],Z.body["offset"+c],g["offset"+c],g["client"+c])):void 0===eN?h.css(Z,e,Zc):h.style(Z,e,eN,Zc)},Z,Xc?eN:void 0,Xc)}})}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,Z){h.fn[Z]=function(c){return this.on(Z,c)}}),h.fn.extend({bind:function(c,Z,e){return this.on(c,null,Z,e)},unbind:function(c,Z){return this.off(c,null,Z)},delegate:function(c,Z,e,X){return this.on(Z,c,e,X)},undelegate:function(c,Z,e){return 1===arguments.length?this.off(c,"**"):this.off(Z,c||"**",e)},hover:function(c,Z){return this.mouseenter(c).mouseleave(Z||c)}}),h.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,Z){h.fn[Z]=function(c,e){return 0",{size:1}).attr("size")&&f.attrFn,g=f.attr,U=f.attrHooks.value&&f.attrHooks.value.get||function(){return null},fe=f.attrHooks.value&&f.attrHooks.value.set||function(){return e},gi=/^(?:input|button)$/i,a=/^[238]$/,ab=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Ob=/^(?:checked|selected)$/i;d(f,"attrFn",X||{},"jQuery.attrFn is deprecated"),f.attr=function(H,d,db,U){var fe=d.toLowerCase(),c=H&&H.nodeType;return U&&(g.length<4&&O("jQuery.fn.attr( props, pass ) is deprecated"),H&&!a.test(c)&&(X?d in X:f.isFunction(f.fn[d])))?f(H)[d](db):("type"===d&&db!==e&&gi.test(H.nodeName)&&H.parentNode&&O("Can't change the 'type' of an input or button in IE 6/7/8"),!f.attrHooks[fe]&&ab.test(fe)&&(f.attrHooks[fe]={get:function(H,O){var d,db=f.prop(H,O);return db===!0||"boolean"!=typeof db&&(d=H.getAttributeNode(O))&&d.nodeValue!==!1?O.toLowerCase():e},set:function(H,e,O){var d;return e===!1?f.removeAttr(H,O):(d=f.propFix[O]||O,d in H&&(H[d]=!0),H.setAttribute(O,O.toLowerCase())),O}},Ob.test(fe)&&O("jQuery.fn.attr('"+fe+"') might use property instead of attribute")),g.call(f,H,d,db))},f.attrHooks.value={get:function(f,H){var e=(f.nodeName||"").toLowerCase();return"button"===e?U.apply(this,arguments):("input"!==e&&"option"!==e&&O("jQuery.fn.attr('value') no longer gets properties"),H in f?f.value:null)},set:function(f,H){var e=(f.nodeName||"").toLowerCase();return"button"===e?fe.apply(this,arguments):("input"!==e&&"option"!==e&&O("jQuery.fn.attr('value', val) no longer sets properties"),void(f.value=H))}};var c,eU,eP=f.fn.init,fO=f.find,gJ=f.parseJSON,ed=/^\s*)([^>]*)$/;f.fn.init=function(H,d,db){var X,g;return H&&"string"==typeof H&&!f.isPlainObject(d)&&(X=Hb.exec(f.trim(H)))&&X[0]&&(ed.test(H)||O("$(html) HTML strings must start with '<' character"),X[3]&&O("$(html) HTML text after last tag is ignored"),"#"===X[0].charAt(0)&&(O("HTML string cannot start with a '#' character"),f.error("JQMIGRATE: Invalid selector string (XSS)")),d&&d.context&&d.context.nodeType&&(d=d.context),f.parseHTML)?eP.call(this,f.parseHTML(X[2],d&&d.ownerDocument||d||document,!0),d,db):(g=eP.apply(this,arguments),H&&H.selector!==e?(g.selector=H.selector,g.context=H.context):(g.selector="string"==typeof H?H:"",H&&(g.context=H.nodeType?H:d||document)),g)},f.fn.init.prototype=f.fn,f.find=function(f){var H=Array.prototype.slice.call(arguments);if("string"==typeof f&&b.test(f))try{document.querySelector(f)}catch(e){f=f.replace(Uf,function(f,H,e,O){return"["+H+e+'"'+O+'"]'});try{document.querySelector(f),O("Attribute selector with '#' must be quoted: "+H[0]),H[0]=f}catch(f){O("Attribute selector with '#' was not fixed: "+H[0])}}return fO.apply(this,H)};var P;for(P in fO)Object.prototype.hasOwnProperty.call(fO,P)&&(f.find[P]=fO[P]);f.parseJSON=function(f){return f?gJ.apply(this,arguments):(O("jQuery.parseJSON requires a valid JSON string"),null)},f.uaMatch=function(f){f=f.toLowerCase();var H=/(chrome)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+)/.exec(f)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(f)||/(msie) ([\w.]+)/.exec(f)||f.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[];return{browser:H[1]||"",version:H[2]||"0"}},f.browser||(c=f.uaMatch(navigator.userAgent),eU={},c.browser&&(eU[c.browser]=!0,eU.version=c.version),eU.chrome?eU.webkit=!0:eU.webkit&&(eU.safari=!0),f.browser=eU),d(f,"browser",f.browser,"jQuery.browser is deprecated"),f.boxModel=f.support.boxModel="CSS1Compat"===document.compatMode,d(f,"boxModel",f.boxModel,"jQuery.boxModel is deprecated"),d(f.support,"boxModel",f.support.boxModel,"jQuery.support.boxModel is deprecated"),f.sub=function(){function H(f,e){return new H.fn.init(f,e)}f.extend(!0,H,this),H.superclass=this,H.fn=H.prototype=this(),H.fn.constructor=H,H.sub=this.sub,H.fn.init=function(O,d){var db=f.fn.init.call(this,O,d,e);return db instanceof H?db:H(db)},H.fn.init.prototype=H.fn;var e=H(document);return O("jQuery.sub() is deprecated"),H},f.fn.size=function(){return O("jQuery.fn.size() is deprecated; use the .length property"),this.length};var cb=!1;f.swap&&f.each(["height","width","reliableMarginRight"],function(H,e){var O=f.cssHooks[e]&&f.cssHooks[e].get;O&&(f.cssHooks[e].get=function(){var f;return cb=!0,f=O.apply(this,arguments),cb=!1,f})}),f.swap=function(f,H,e,d){var db,X,g={};cb||O("jQuery.swap() is undocumented and deprecated");for(X in H)g[X]=f.style[X],f.style[X]=H[X];db=e.apply(f,d||[]);for(X in H)f.style[X]=g[X];return db},f.ajaxSetup({converters:{"text json":f.parseJSON}});var aL=f.fn.data;f.fn.data=function(H){var d,db,X=this[0];return!X||"events"!==H||1!==arguments.length||(d=f.data(X,H),db=f._data(X,H),d!==e&&d!==db||db===e)?aL.apply(this,arguments):(O("Use of jQuery.fn.data('events') is deprecated"),db)};var ah=/\/(java|ecma)script/i;f.clean||(f.clean=function(H,e,d,db){e=e||document,e=!e.nodeType&&e[0]||e,e=e.ownerDocument||e,O("jQuery.clean() is deprecated");var X,g,U,fe,gi=[];if(f.merge(gi,f.buildFragment(H,e).childNodes),d)for(U=function(f){return!f.type||ah.test(f.type)?db?db.push(f.parentNode?f.parentNode.removeChild(f):f):d.appendChild(f):void 0},X=0;null!=(g=gi[X]);X++)f.nodeName(g,"script")&&U(g)||(d.appendChild(g),"undefined"!=typeof g.getElementsByTagName&&(fe=f.grep(f.merge([],g.getElementsByTagName("script")),U),gi.splice.apply(gi,[X+1,0].concat(fe)),X+=fe.length));return gi});var eM=f.event.add,eK=f.event.remove,dB=f.event.trigger,aG=f.fn.toggle,gM=f.fn.live,dJ=f.fn.die,dT=f.fn.load,fee="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",I=new RegExp("\\b(?:"+fee+")\\b"),h=/(?:^|\s)hover(\.\S+|)\b/,i=function(H){return"string"!=typeof H||f.event.special.hover?H:(h.test(H)&&O("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),H&&H.replace(h,"mouseenter$1 mouseleave$1"))};f.event.props&&"attrChange"!==f.event.props[0]&&f.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),f.event.dispatch&&d(f.event,"handle",f.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),f.event.add=function(f,H,e,d,db){f!==document&&I.test(H)&&O("AJAX events should be attached to document: "+H),eM.call(this,f,i(H||""),e,d,db)},f.event.remove=function(f,H,e,O,d){eK.call(this,f,i(H)||"",e,O,d)},f.each(["load","unload","error"],function(H,e){f.fn[e]=function(){var f=Array.prototype.slice.call(arguments,0);return"load"===e&&"string"==typeof f[0]?dT.apply(this,f):(O("jQuery.fn."+e+"() is deprecated"),f.splice(0,0,e),arguments.length?this.bind.apply(this,f):(this.triggerHandler.apply(this,f),this))}}),f.fn.toggle=function(H,e){if(!f.isFunction(H)||!f.isFunction(e))return aG.apply(this,arguments);O("jQuery.fn.toggle(handler, handler...) is deprecated");var d=arguments,db=H.guid||f.guid++,X=0,g=function(e){var O=(f._data(this,"lastToggle"+H.guid)||0)%X;return f._data(this,"lastToggle"+H.guid,O+1),e.preventDefault(),d[O].apply(this,arguments)||!1};for(g.guid=db;X dwh) ? dwh - scrollTop : 0; for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i], elementTop = s.stickyWrapper.offset().top, etse = elementTop - s.topSpacing - extra; //update height in case of dynamic content s.stickyWrapper.css('height', s.stickyElement.outerHeight()); if (scrollTop <= etse) { if (s.currentTop !== null) { s.stickyElement .css({ 'width': '', 'position': '', 'top': '', 'z-index': '' }); s.stickyElement.parent().removeClass(s.className); s.stickyElement.trigger('sticky-end', [s]); s.currentTop = null; } } else { var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; if (newTop < 0) { newTop = newTop + s.topSpacing; } else { newTop = s.topSpacing; } if (s.currentTop !== newTop) { var newWidth; if (s.getWidthFrom) { newWidth = $(s.getWidthFrom).width() || null; } else if (s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth == null) { newWidth = s.stickyElement.width(); } s.stickyElement .css('width', newWidth) .css('position', 'fixed') .css('top', newTop) .css('z-index', s.zIndex); s.stickyElement.parent().addClass(s.className); if (s.currentTop === null) { s.stickyElement.trigger('sticky-start', [s]); } else { // sticky is started but it have to be repositioned s.stickyElement.trigger('sticky-update', [s]); } if (s.currentTop === s.topSpacing && s.currentTop > newTop || s.currentTop === null && newTop < s.topSpacing) { // just reached bottom || just started to stick but bottom is already reached s.stickyElement.trigger('sticky-bottom-reached', [s]); } else if(s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { // sticky is started && sticked at topSpacing && overflowing from top just finished s.stickyElement.trigger('sticky-bottom-unreached', [s]); } s.currentTop = newTop; } // Check if sticky has reached end of container and stop sticking var stickyWrapperContainer = s.stickyWrapper.parent(); var unstick = (s.stickyElement.offset().top + s.stickyElement.outerHeight() >= stickyWrapperContainer.offset().top + stickyWrapperContainer.outerHeight()) && (s.stickyElement.offset().top <= s.topSpacing); if( unstick ) { s.stickyElement .css('position', 'absolute') .css('top', '') .css('bottom', 0) .css('z-index', ''); } else { s.stickyElement .css('position', 'fixed') .css('top', newTop) .css('bottom', '') .css('z-index', s.zIndex); } } } }, resizer = function() { windowHeight = $window.height(); for (var i = 0, l = sticked.length; i < l; i++) { var s = sticked[i]; var newWidth = null; if (s.getWidthFrom) { if (s.responsiveWidth) { newWidth = $(s.getWidthFrom).width(); } } else if(s.widthFromWrapper) { newWidth = s.stickyWrapper.width(); } if (newWidth != null) { s.stickyElement.css('width', newWidth); } } }, methods = { init: function(options) { return this.each(function() { var o = $.extend({}, defaults, options); var stickyElement = $(this); var stickyId = stickyElement.attr('id'); var wrapperId = stickyId ? stickyId + '-' + defaults.wrapperClassName : defaults.wrapperClassName; var wrapper = $('
') .attr('id', wrapperId) .addClass(o.wrapperClassName); stickyElement.wrapAll(function() { if ($(this).parent("#" + wrapperId).length == 0) { return wrapper; } }); var stickyWrapper = stickyElement.parent(); if (o.center) { stickyWrapper.css({width:stickyElement.outerWidth(),marginLeft:"auto",marginRight:"auto"}); } if (stickyElement.css("float") === "right") { stickyElement.css({"float":"none"}).parent().css({"float":"right"}); } o.stickyElement = stickyElement; o.stickyWrapper = stickyWrapper; o.currentTop = null; sticked.push(o); methods.setWrapperHeight(this); methods.setupChangeListeners(this); }); }, setWrapperHeight: function(stickyElement) { var element = $(stickyElement); var stickyWrapper = element.parent(); if (stickyWrapper) { stickyWrapper.css('height', element.outerHeight()); } }, setupChangeListeners: function(stickyElement) { if (window.MutationObserver) { var mutationObserver = new window.MutationObserver(function(mutations) { if (mutations[0].addedNodes.length || mutations[0].removedNodes.length) { methods.setWrapperHeight(stickyElement); } }); mutationObserver.observe(stickyElement, {subtree: true, childList: true}); } else { if (window.addEventListener) { stickyElement.addEventListener('DOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }, false); stickyElement.addEventListener('DOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }, false); } else if (window.attachEvent) { stickyElement.attachEvent('onDOMNodeInserted', function() { methods.setWrapperHeight(stickyElement); }); stickyElement.attachEvent('onDOMNodeRemoved', function() { methods.setWrapperHeight(stickyElement); }); } } }, update: scroller, unstick: function(options) { return this.each(function() { var that = this; var unstickyElement = $(that); var removeIdx = -1; var i = sticked.length; while (i-- > 0) { if (sticked[i].stickyElement.get(0) === that) { splice.call(sticked,i,1); removeIdx = i; } } if(removeIdx !== -1) { unstickyElement.unwrap(); unstickyElement .css({ 'width': '', 'position': '', 'top': '', 'float': '', 'z-index': '' }) ; } }); } }; // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): if (window.addEventListener) { window.addEventListener('scroll', scroller, false); window.addEventListener('resize', resizer, false); } else if (window.attachEvent) { window.attachEvent('onscroll', scroller); window.attachEvent('onresize', resizer); } $.fn.sticky = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.init.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $.fn.unstick = function(method) { if (methods[method]) { return methods[method].apply(this, slice.call(arguments, 1)); } else if (typeof method === 'object' || !method ) { return methods.unstick.apply( this, arguments ); } else { $.error('Method ' + method + ' does not exist on jQuery.sticky'); } }; $(function() { setTimeout(scroller, 0); }); }));