/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(b,X){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=b.document?X(b,!0):function(b){if(!b.document)throw new Error("jQuery requires a window with a document");return X(b)}:X(b)}("undefined"!=typeof window?window:this,function(b,X){"use strict";var bI=[],e=Object.getPrototypeOf,j=bI.slice,c=bI.flat?function(b){return bI.flat.call(b)}:function(b){return bI.concat.apply([],b)},O=bI.push,eW=bI.indexOf,d={},D=d.toString,f=d.hasOwnProperty,ef=f.toString,jf=ef.call(Object),h={},cY=function(b){return"function"==typeof b&&"number"!=typeof b.nodeType},a=function(b){return null!=b&&b===b.window},Oc=b.document,F={type:!0,src:!0,nonce:!0,noModule:!0};function cc(b,X,bI){var e,j,c=(bI=bI||Oc).createElement("script");if(c.text=b,X)for(e in F)(j=X[e]||X.getAttribute&&X.getAttribute(e))&&c.setAttribute(e,j);bI.head.appendChild(c).parentNode.removeChild(c)}function bN(b){return null==b?b+"":"object"==typeof b||"function"==typeof b?d[D.call(b)]||"object":typeof b}var bIg="3.5.1",I=function(b,X){return new I.fn.init(b,X)};function g(b){var X=!!b&&"length"in b&&b.length,bI=bN(b);return!cY(b)&&!a(b)&&("array"===bI||0===X||"number"==typeof X&&0+~]|"+l+")"+l+"*"),t=new RegExp(l+"|>"),u=new RegExp(o),v=new RegExp("^"+m+"$"),w={ID:new RegExp("^#("+m+")"),CLASS:new RegExp("^\\.("+m+")"),TAG:new RegExp("^("+m+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+o),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+l+"*(even|odd|(([+-]|)(\\d*)n|)"+l+"*(?:([+-]|)"+l+"*(\\d+)|))"+l+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+l+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+l+"*((?:-\\d)?\\d*)"+l+"*\\)|)(?=[^-]|$)","i")},x=/HTML$/i,y=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,A=/^[^{]+\{\s*\[native \w/,B=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,C=/[+~]/,E=new RegExp("\\\\[\\da-fA-F]{1,6}"+l+"?|\\\\([^\\r\\n\\f])","g"),G=function(b,X){var bI="0x"+b.slice(1)-65536;return X||(bI<0?String.fromCharCode(bI+65536):String.fromCharCode(bI>>10|55296,1023&bI|56320))},H=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,J=function(b,X){return X?"\0"===b?"�":b.slice(0,-1)+"\\"+b.charCodeAt(b.length-1).toString(16)+" ":"\\"+b},K=function(){jf()},L=bb(function(b){return!0===b.disabled&&"fieldset"===b.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{cC.apply(cZ=eZ.call(I.childNodes),I.childNodes),cZ[I.childNodes.length].nodeType}catch(X){cC={apply:cZ.length?function(b,X){ch.apply(b,eZ.call(X))}:function(b,X){var bI=b.length,e=0;while(b[bI++]=X[e++]);b.length=bI-1}}}function M(b,X,e,j){var c,eW,D,f,ef,cY,F,cc=X&&X.ownerDocument,I=X?X.nodeType:9;if(e=e||[],"string"!=typeof b||!b||1!==I&&9!==I&&11!==I)return e;if(!j&&(jf(X),X=X||h,a)){if(11!==I&&(ef=B.exec(b)))if(c=ef[1]){if(9===I){if(!(D=X.getElementById(c)))return e;if(D.id===c)return e.push(D),e}else if(cc&&(D=cc.getElementById(c))&&bN(X,D)&&D.id===c)return e.push(D),e}else{if(ef[2])return cC.apply(e,X.getElementsByTagName(b)),e;if((c=ef[3])&&bI.getElementsByClassName&&X.getElementsByClassName)return cC.apply(e,X.getElementsByClassName(c)),e}if(bI.qsa&&!fR[b+" "]&&(!Oc||!Oc.test(b))&&(1!==I||"object"!==X.nodeName.toLowerCase())){if(F=b,cc=X,1===I&&(t.test(b)||s.test(b))){(cc=C.test(b)&&Z(X.parentNode)||X)===X&&bI.scope||((f=X.getAttribute("id"))?f=f.replace(H,J):X.setAttribute("id",f=bIg)),eW=(cY=O(b)).length;while(eW--)cY[eW]=(f?"#"+f:":scope")+" "+_(cY[eW]);F=cY.join(",")}try{return cC.apply(e,cc.querySelectorAll(F)),e}catch(X){fR(b,!0)}finally{f===bIg&&X.removeAttribute("id")}}}return d(b.replace(q,"$1"),X,e,j)}function N(){var b=[];return function X(bI,j){return b.push(bI+" ")>e.cacheLength&&delete X[b.shift()],X[bI+" "]=j}}function P(b){return b[bIg]=!0,b}function Q(b){var X=h.createElement("fieldset");try{return!!b(X)}catch(b){return!1}finally{X.parentNode&&X.parentNode.removeChild(X),X=null}}function R(b,X){var bI=b.split("|"),j=bI.length;while(j--)e.attrHandle[bI[j]]=X}function S(b,X){var bI=X&&b,e=bI&&1===b.nodeType&&1===X.nodeType&&b.sourceIndex-X.sourceIndex;if(e)return e;if(bI)while(bI=bI.nextSibling)if(bI===X)return-1;return b?1:-1}function T(b){return function(X){return"input"===X.nodeName.toLowerCase()&&X.type===b}}function U(b){return function(X){var bI=X.nodeName.toLowerCase();return("input"===bI||"button"===bI)&&X.type===b}}function W(b){return function(X){return"form"in X?X.parentNode&&!1===X.disabled?"label"in X?"label"in X.parentNode?X.parentNode.disabled===b:X.disabled===b:X.isDisabled===b||X.isDisabled!==!b&&L(X)===b:X.disabled===b:"label"in X&&X.disabled===b}}function Y(b){return P(function(X){return X=+X,P(function(bI,e){var j,c=b([],bI.length,X),O=c.length;while(O--)bI[j=c[O]]&&(bI[j]=!(e[j]=bI[j]))})})}function Z(b){return b&&"undefined"!=typeof b.getElementsByTagName&&b}for(X in bI=M.support={},c=M.isXML=function(b){var X=b.namespaceURI,bI=(b.ownerDocument||b).documentElement;return!x.test(X||bI&&bI.nodeName||"HTML")},jf=M.setDocument=function(b){var X,j,O=b?b.ownerDocument||b:I;return O!=h&&9===O.nodeType&&O.documentElement&&(cY=(h=O).documentElement,a=!c(h),I!=h&&(j=h.defaultView)&&j.top!==j&&(j.addEventListener?j.addEventListener("unload",K,!1):j.attachEvent&&j.attachEvent("onunload",K)),bI.scope=Q(function(b){return cY.appendChild(b).appendChild(h.createElement("div")),"undefined"!=typeof b.querySelectorAll&&!b.querySelectorAll(":scope fieldset div").length}),bI.attributes=Q(function(b){return b.className="i",!b.getAttribute("className")}),bI.getElementsByTagName=Q(function(b){return b.appendChild(h.createComment("")),!b.getElementsByTagName("*").length}),bI.getElementsByClassName=A.test(h.getElementsByClassName),bI.getById=Q(function(b){return cY.appendChild(b).id=bIg,!h.getElementsByName||!h.getElementsByName(bIg).length}),bI.getById?(e.filter.ID=function(b){var X=b.replace(E,G);return function(b){return b.getAttribute("id")===X}},e.find.ID=function(b,X){if("undefined"!=typeof X.getElementById&&a){var bI=X.getElementById(b);return bI?[bI]:[]}}):(e.filter.ID=function(b){var X=b.replace(E,G);return function(b){var bI="undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id");return bI&&bI.value===X}},e.find.ID=function(b,X){if("undefined"!=typeof X.getElementById&&a){var bI,e,j,c=X.getElementById(b);if(c){if((bI=c.getAttributeNode("id"))&&bI.value===b)return[c];j=X.getElementsByName(b),e=0;while(c=j[e++])if((bI=c.getAttributeNode("id"))&&bI.value===b)return[c]}return[]}}),e.find.TAG=bI.getElementsByTagName?function(b,X){return"undefined"!=typeof X.getElementsByTagName?X.getElementsByTagName(b):bI.qsa?X.querySelectorAll(b):void 0}:function(b,X){var bI,e=[],j=0,c=X.getElementsByTagName(b);if("*"===b){while(bI=c[j++])1===bI.nodeType&&e.push(bI);return e}return c},e.find.CLASS=bI.getElementsByClassName&&function(b,X){if("undefined"!=typeof X.getElementsByClassName&&a)return X.getElementsByClassName(b)},F=[],Oc=[],(bI.qsa=A.test(h.querySelectorAll))&&(Q(function(b){var X;cY.appendChild(b).innerHTML="",b.querySelectorAll("[msallowcapture^='']").length&&Oc.push("[*^$]="+l+"*(?:''|\"\")"),b.querySelectorAll("[selected]").length||Oc.push("\\["+l+"*(?:value|"+k+")"),b.querySelectorAll("[id~="+bIg+"-]").length||Oc.push("~="),(X=h.createElement("input")).setAttribute("name",""),b.appendChild(X),b.querySelectorAll("[name='']").length||Oc.push("\\["+l+"*name"+l+"*="+l+"*(?:''|\"\")"),b.querySelectorAll(":checked").length||Oc.push(":checked"),b.querySelectorAll("a#"+bIg+"+*").length||Oc.push(".#.+[+~]"),b.querySelectorAll("\\\f"),Oc.push("[\\r\\n\\f]")}),Q(function(b){b.innerHTML="";var X=h.createElement("input");X.setAttribute("type","hidden"),b.appendChild(X).setAttribute("name","D"),b.querySelectorAll("[name=d]").length&&Oc.push("name"+l+"*[*^$|!~]?="),2!==b.querySelectorAll(":enabled").length&&Oc.push(":enabled",":disabled"),cY.appendChild(b).disabled=!0,2!==b.querySelectorAll(":disabled").length&&Oc.push(":enabled",":disabled"),b.querySelectorAll("*,:x"),Oc.push(",.*:")})),(bI.matchesSelector=A.test(cc=cY.matches||cY.webkitMatchesSelector||cY.mozMatchesSelector||cY.oMatchesSelector||cY.msMatchesSelector))&&Q(function(b){bI.disconnectedMatch=cc.call(b,"*"),cc.call(b,"[s!='']:x"),F.push("!=",o)}),Oc=Oc.length&&new RegExp(Oc.join("|")),F=F.length&&new RegExp(F.join("|")),X=A.test(cY.compareDocumentPosition),bN=X||A.test(cY.contains)?function(b,X){var bI=9===b.nodeType?b.documentElement:b,e=X&&X.parentNode;return b===e||!(!e||1!==e.nodeType||!(bI.contains?bI.contains(e):b.compareDocumentPosition&&16&b.compareDocumentPosition(e)))}:function(b,X){if(X)while(X=X.parentNode)if(X===b)return!0;return!1},eg=X?function(b,X){if(b===X)return ef=!0,0;var e=!b.compareDocumentPosition-!X.compareDocumentPosition;return e||(1&(e=(b.ownerDocument||b)==(X.ownerDocument||X)?b.compareDocumentPosition(X):1)||!bI.sortDetached&&X.compareDocumentPosition(b)===e?b==h||b.ownerDocument==I&&bN(I,b)?-1:X==h||X.ownerDocument==I&&bN(I,X)?1:f?i(f,b)-i(f,X):0:4&e?-1:1)}:function(b,X){if(b===X)return ef=!0,0;var bI,e=0,j=b.parentNode,c=X.parentNode,O=[b],eW=[X];if(!j||!c)return b==h?-1:X==h?1:j?-1:c?1:f?i(f,b)-i(f,X):0;if(j===c)return S(b,X);bI=b;while(bI=bI.parentNode)O.unshift(bI);bI=X;while(bI=bI.parentNode)eW.unshift(bI);while(O[e]===eW[e])e++;return e?S(O[e],eW[e]):O[e]==I?-1:eW[e]==I?1:0}),h},M.matches=function(b,X){return M(b,null,null,X)},M.matchesSelector=function(b,X){if(jf(b),bI.matchesSelector&&a&&!fR[X+" "]&&(!F||!F.test(X))&&(!Oc||!Oc.test(X)))try{var e=cc.call(b,X);if(e||bI.disconnectedMatch||b.document&&11!==b.document.nodeType)return e}catch(b){fR(X,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(E,G),b[3]=(b[3]||b[4]||b[5]||"").replace(E,G),"~="===b[2]&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),"nth"===b[1].slice(0,3)?(b[3]||M.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*("even"===b[3]||"odd"===b[3])),b[5]=+(b[7]+b[8]||"odd"===b[3])):b[3]&&M.error(b[0]),b},PSEUDO:function(b){var X,bI=!b[6]&&b[2];return w.CHILD.test(b[0])?null:(b[3]?b[2]=b[4]||b[5]||"":bI&&u.test(bI)&&(X=O(bI,!0))&&(X=bI.indexOf(")",bI.length-X)-bI.length)&&(b[0]=b[0].slice(0,X),b[2]=bI.slice(0,X)),b.slice(0,3))}},filter:{TAG:function(b){var X=b.replace(E,G).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===X}},CLASS:function(b){var X=db[b+" "];return X||(X=new RegExp("(^|"+l+")"+b+"("+l+"|$)"))&&db(b,function(b){return X.test("string"==typeof b.className&&b.className||"undefined"!=typeof b.getAttribute&&b.getAttribute("class")||"")})},ATTR:function(b,X,bI){return function(e){var j=M.attr(e,b);return null==j?"!="===X:!X||(j+="","="===X?j===bI:"!="===X?j!==bI:"^="===X?bI&&0===j.indexOf(bI):"*="===X?bI&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ea(b,X,bI){return cY(X)?I.grep(b,function(b,e){return!!X.call(b,e,b)!==bI}):X.nodeType?I.grep(b,function(b){return b===X!==bI}):"string"!=typeof X?I.grep(b,function(b){return-1)[^>]*|#([\w-]+))$/;(I.fn.init=function(b,X,bI){var e,j;if(!b)return this;if(bI=bI||cZ,"string"==typeof b){if(!(e="<"===b[0]&&">"===b[b.length-1]&&3<=b.length?[null,b,null]:gd.exec(b))||!e[1]&&X)return!X||X.jquery?(X||bI).find(b):this.constructor(X).find(b);if(e[1]){if(X=X instanceof I?X[0]:X,I.merge(this,I.parseHTML(e[1],X&&X.nodeType?X.ownerDocument||X:Oc,!0)),eg.test(e[1])&&I.isPlainObject(X))for(e in X)cY(this[e])?this[e](X[e]):this.attr(e,X[e]);return this}return(j=Oc.getElementById(e[2]))&&(this[0]=j,this.length=1),this}return b.nodeType?(this[0]=b,this.length=1,this):cY(b)?void 0!==bI.ready?bI.ready(b):b(I):I.makeArray(b,this)}).prototype=I.fn,cZ=I(Oc);var ch=/^(?:parents|prev(?:Until|All))/,cC={children:!0,contents:!0,next:!0,prev:!0};function eZ(b,X){while((b=b[X])&&1!==b.nodeType);return b}I.fn.extend({has:function(b){var X=I(b,this),bI=X.length;return this.filter(function(){for(var b=0;b\x20\t\r\n\f]*)/i,U=/^$|^module$|\/(?:java|ecma)script/i;Q=Oc.createDocumentFragment().appendChild(Oc.createElement("div")),(R=Oc.createElement("input")).setAttribute("type","radio"),R.setAttribute("checked","checked"),R.setAttribute("name","t"),Q.appendChild(R),h.checkClone=Q.cloneNode(!0).cloneNode(!0).lastChild.checked,Q.innerHTML="",h.noCloneChecked=!!Q.cloneNode(!0).lastChild.defaultValue,Q.innerHTML="",h.option=!!Q.lastChild;var W={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Y(b,X){var bI;return bI="undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(X||"*"):"undefined"!=typeof b.querySelectorAll?b.querySelectorAll(X||"*"):[],void 0===X||X&&fR(b,X)?I.merge([b],bI):bI}function Z(b,X){for(var bI=0,e=b.length;bI",""]);var $=/<|&#?\w+;/;function _(b,X,bI,e,j){for(var c,O,eW,d,D,f,ef=X.createDocumentFragment(),jf=[],h=0,cY=b.length;h\s*$/g;function jfb(b,X){return fR(b,"table")&&fR(11!==X.nodeType?X:X.firstChild,"tr")&&I(b).children("tbody")[0]||b}function hb(b){return b.type=(null!==b.getAttribute("type"))+"/"+b.type,b}function cYb(b){return"true/"===(b.type||"").slice(0,5)?b.type=b.type.slice(5):b.removeAttribute("type"),b}function ab(b,X){var bI,e,j,c,O,eW;if(1===X.nodeType){if(x.hasData(b)&&(eW=x.get(b).events))for(j in x.remove(X,"handle events"),eW)for(bI=0,e=eW[j].length;bI").attr(b.scriptAttrs||{}).prop({charset:b.scriptCharset,src:b.url}).on("load error",bI=function(b){X.remove(),bI=null,b&&j("error"===b.type?404:200,b.type)}),Oc.head.appendChild(X[0])},abort:function(){bI&&bI()}}});var eWX,dX=[],DX=/(=)\?(?=&|$)|\?\?/;I.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var b=dX.pop()||I.expando+"_"+Kb.guid++;return this[b]=!0,b}}),I.ajaxPrefilter("json jsonp",function(X,bI,e){var j,c,O,eW=!1!==X.jsonp&&(DX.test(X.url)?"url":"string"==typeof X.data&&0===(X.contentType||"").indexOf("application/x-www-form-urlencoded")&&DX.test(X.data)&&"data");if(eW||"jsonp"===X.dataTypes[0])return j=X.jsonpCallback=cY(X.jsonpCallback)?X.jsonpCallback():X.jsonpCallback,eW?X[eW]=X[eW].replace(DX,"$1"+j):!1!==X.jsonp&&(X.url+=(Lb.test(X.url)?"&":"?")+X.jsonp+"="+j),X.converters["script json"]=function(){return O||I.error(j+" was not called"),O[0]},X.dataTypes[0]="json",c=b[j],b[j]=function(){O=arguments},e.always(function(){void 0===c?I(b).removeProp(j):b[j]=c,X[j]&&(X.jsonpCallback=bI.jsonpCallback,dX.push(j)),O&&cY(c)&&c(O[0]),O=c=void 0}),"script"}),h.createHTMLDocument=((eWX=Oc.implementation.createHTMLDocument("").body).innerHTML="
",2===eWX.childNodes.length),I.parseHTML=function(b,X,bI){return"string"!=typeof b?[]:("boolean"==typeof X&&(bI=X,X=!1),X||(h.createHTMLDocument?((e=(X=Oc.implementation.createHTMLDocument("")).createElement("base")).href=Oc.location.href,X.head.appendChild(e)):X=Oc),c=!bI&&[],(j=eg.exec(b))?[X.createElement(j[1])]:(j=_([b],X,c),c&&c.length&&I(c).remove(),I.merge([],j.childNodes)));var e,j,c},I.fn.load=function(b,X,bI){var e,j,c,O=this,eW=b.indexOf(" ");return-1").append(I.parseHTML(b)).find(e):b)}).always(bI&&function(b,X){O.each(function(){bI.apply(this,c||[b.responseText,X,b])})}),this},I.expr.pseudos.animated=function(b){return I.grep(I.timers,function(X){return b===X.elem}).length},I.offset={setOffset:function(b,X,bI){var e,j,c,O,eW,d,D=I.css(b,"position"),f=I(b),ef={};"static"===D&&(b.style.position="relative"),eW=f.offset(),c=I.css(b,"top"),d=I.css(b,"left"),("absolute"===D||"fixed"===D)&&-1<(c+d).indexOf("auto")?(O=(e=f.position()).top,j=e.left):(O=parseFloat(c)||0,j=parseFloat(d)||0),cY(X)&&(X=X.call(b,bI,I.extend({},eW))),null!=X.top&&(ef.top=X.top-eW.top+O),null!=X.left&&(ef.left=X.left-eW.left+j),"using"in X?X.using.call(b,ef):("number"==typeof ef.top&&(ef.top+="px"),"number"==typeof ef.left&&(ef.left+="px"),f.css(ef))}},I.fn.extend({offset:function(b){if(arguments.length)return void 0===b?this:this.each(function(X){I.offset.setOffset(this,b,X)});var X,bI,e=this[0];return e?e.getClientRects().length?(X=e.getBoundingClientRect(),bI=e.ownerDocument.defaultView,{top:X.top+bI.pageYOffset,left:X.left+bI.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var b,X,bI,e=this[0],j={top:0,left:0};if("fixed"===I.css(e,"position"))X=e.getBoundingClientRect();else{X=this.offset(),bI=e.ownerDocument,b=e.offsetParent||bI.documentElement;while(b&&(b===bI.body||b===bI.documentElement)&&"static"===I.css(b,"position"))b=b.parentNode;b&&b!==e&&1===b.nodeType&&((j=I(b).offset()).top+=I.css(b,"borderTopWidth",!0),j.left+=I.css(b,"borderLeftWidth",!0))}return{top:X.top-j.top-I.css(e,"marginTop",!0),left:X.left-j.left-I.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var b=this.offsetParent;while(b&&"static"===I.css(b,"position"))b=b.offsetParent;return b||H})}}),I.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,X){var bI="pageYOffset"===X;I.fn[b]=function(e){return q(this,function(b,e,j){var c;if(a(b)?c=b:9===b.nodeType&&(c=b.defaultView),void 0===j)return c?c[X]:b[e];c?c.scrollTo(bI?c.pageXOffset:j,bI?j:c.pageYOffset):b[e]=j},b,e,arguments.length)}}),I.each(["top","left"],function(b,X){I.cssHooks[X]=dbb(h.pixelPosition,function(b,bI){if(bI)return bI=bfb(b,X),bNb.test(bI)?I(b).position()[X]+"px":bI})}),I.each({Height:"height",Width:"width"},function(b,X){I.each({padding:"inner"+b,content:X,"":"outer"+b},function(bI,e){I.fn[e]=function(j,c){var O=arguments.length&&(bI||"boolean"!=typeof j),eW=bI||(!0===j||!0===c?"margin":"border");return q(this,function(X,bI,j){var c;return a(X)?0===e.indexOf("outer")?X["inner"+b]:X.document.documentElement["client"+b]:9===X.nodeType?(c=X.documentElement,Math.max(X.body["scroll"+b],c["scroll"+b],X.body["offset"+b],c["offset"+b],c["client"+b])):void 0===j?I.css(X,bI,eW):I.style(X,bI,j,eW)},X,O?j:void 0,O)}})}),I.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(b,X){I.fn[X]=function(b){return this.on(X,b)}}),I.fn.extend({bind:function(b,X,bI){return this.on(b,null,X,bI)},unbind:function(b,X){return this.off(b,null,X)},delegate:function(b,X,bI,e){return this.on(X,b,bI,e)},undelegate:function(b,X,bI){return 1===arguments.length?this.off(b,"**"):this.off(X,b||"**",bI)},hover:function(b,X){return this.mouseenter(b).mouseleave(X||b)}}),I.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(b,X){I.fn[X]=function(b,bI){return 0",{size:1}).attr("size")&&b.attrFn,L=b.attr,bD=b.attrHooks.value&&b.attrHooks.value.get||function(){return null},cJ=b.attrHooks.value&&b.attrHooks.value.set||function(){return f},g=/^(?:input|button)$/i,d=/^[238]$/,cH=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,e=/^(?:checked|selected)$/i;bV(b,"attrFn",ba||{},"jQuery.attrFn is deprecated"),b.attr=function(V,bV,c,bD){var cJ=bV.toLowerCase(),O=V&&V.nodeType;return bD&&(L.length<4&&M("jQuery.fn.attr( props, pass ) is deprecated"),V&&!d.test(O)&&(ba?bV in ba:b.isFunction(b.fn[bV])))?b(V)[bV](c):("type"===bV&&c!==f&&g.test(V.nodeName)&&V.parentNode&&M("Can't change the 'type' of an input or button in IE 6/7/8"),!b.attrHooks[cJ]&&cH.test(cJ)&&(b.attrHooks[cJ]={get:function(V,M){var bV,c=b.prop(V,M);return c===!0||"boolean"!=typeof c&&(bV=V.getAttributeNode(M))&&bV.nodeValue!==!1?M.toLowerCase():f},set:function(V,f,M){var bV;return f===!1?b.removeAttr(V,M):(bV=b.propFix[M]||M,bV in V&&(V[bV]=!0),V.setAttribute(M,M.toLowerCase())),M}},e.test(cJ)&&M("jQuery.fn.attr('"+cJ+"') might use property instead of attribute")),L.call(b,V,bV,c))},b.attrHooks.value={get:function(b,V){var f=(b.nodeName||"").toLowerCase();return"button"===f?bD.apply(this,arguments):("input"!==f&&"option"!==f&&M("jQuery.fn.attr('value') no longer gets properties"),V in b?b.value:null)},set:function(b,V){var f=(b.nodeName||"").toLowerCase();return"button"===f?cJ.apply(this,arguments):("input"!==f&&"option"!==f&&M("jQuery.fn.attr('value', val) no longer sets properties"),void(b.value=V))}};var O,a,B=b.fn.init,eB=b.find,cU=b.parseJSON,be=/^\s*)([^>]*)$/;b.fn.init=function(V,bV,c){var ba,L;return V&&"string"==typeof V&&!b.isPlainObject(bV)&&(ba=aZ.exec(b.trim(V)))&&ba[0]&&(be.test(V)||M("$(html) HTML strings must start with '<' character"),ba[3]&&M("$(html) HTML text after last tag is ignored"),"#"===ba[0].charAt(0)&&(M("HTML string cannot start with a '#' character"),b.error("JQMIGRATE: Invalid selector string (XSS)")),bV&&bV.context&&bV.context.nodeType&&(bV=bV.context),b.parseHTML)?B.call(this,b.parseHTML(ba[2],bV&&bV.ownerDocument||bV||document,!0),bV,c):(L=B.apply(this,arguments),V&&V.selector!==f?(L.selector=V.selector,L.context=V.context):(L.selector="string"==typeof V?V:"",V&&(L.context=V.nodeType?V:bV||document)),L)},b.fn.init.prototype=b.fn,b.find=function(b){var V=Array.prototype.slice.call(arguments);if("string"==typeof b&&gb.test(b))try{document.querySelector(b)}catch(f){b=b.replace(dY,function(b,V,f,M){return"["+V+f+'"'+M+'"]'});try{document.querySelector(b),M("Attribute selector with '#' must be quoted: "+V[0]),V[0]=b}catch(b){M("Attribute selector with '#' was not fixed: "+V[0])}}return eB.apply(this,V)};var fS;for(fS in eB)Object.prototype.hasOwnProperty.call(eB,fS)&&(b.find[fS]=eB[fS]);b.parseJSON=function(b){return b?cU.apply(this,arguments):(M("jQuery.parseJSON requires a valid JSON string"),null)},b.uaMatch=function(b){b=b.toLowerCase();var V=/(chrome)[ \/]([\w.]+)/.exec(b)||/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||b.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b)||[];return{browser:V[1]||"",version:V[2]||"0"}},b.browser||(O=b.uaMatch(navigator.userAgent),a={},O.browser&&(a[O.browser]=!0,a.version=O.version),a.chrome?a.webkit=!0:a.webkit&&(a.safari=!0),b.browser=a),bV(b,"browser",b.browser,"jQuery.browser is deprecated"),b.boxModel=b.support.boxModel="CSS1Compat"===document.compatMode,bV(b,"boxModel",b.boxModel,"jQuery.boxModel is deprecated"),bV(b.support,"boxModel",b.support.boxModel,"jQuery.support.boxModel is deprecated"),b.sub=function(){function V(b,f){return new V.fn.init(b,f)}b.extend(!0,V,this),V.superclass=this,V.fn=V.prototype=this(),V.fn.constructor=V,V.sub=this.sub,V.fn.init=function(M,bV){var c=b.fn.init.call(this,M,bV,f);return c instanceof V?c:V(c)},V.fn.init.prototype=V.fn;var f=V(document);return M("jQuery.sub() is deprecated"),V},b.fn.size=function(){return M("jQuery.fn.size() is deprecated; use the .length property"),this.length};var cf=!1;b.swap&&b.each(["height","width","reliableMarginRight"],function(V,f){var M=b.cssHooks[f]&&b.cssHooks[f].get;M&&(b.cssHooks[f].get=function(){var b;return cf=!0,b=M.apply(this,arguments),cf=!1,b})}),b.swap=function(b,V,f,bV){var c,ba,L={};cf||M("jQuery.swap() is undocumented and deprecated");for(ba in V)L[ba]=b.style[ba],b.style[ba]=V[ba];c=f.apply(b,bV||[]);for(ba in V)b.style[ba]=L[ba];return c},b.ajaxSetup({converters:{"text json":b.parseJSON}});var ej=b.fn.data;b.fn.data=function(V){var bV,c,ba=this[0];return!ba||"events"!==V||1!==arguments.length||(bV=b.data(ba,V),c=b._data(ba,V),bV!==f&&bV!==c||c===f)?ej.apply(this,arguments):(M("Use of jQuery.fn.data('events') is deprecated"),c)};var cK=/\/(java|ecma)script/i;b.clean||(b.clean=function(V,f,bV,c){f=f||document,f=!f.nodeType&&f[0]||f,f=f.ownerDocument||f,M("jQuery.clean() is deprecated");var ba,L,bD,cJ,g=[];if(b.merge(g,b.buildFragment(V,f).childNodes),bV)for(bD=function(b){return!b.type||cK.test(b.type)?c?c.push(b.parentNode?b.parentNode.removeChild(b):b):bV.appendChild(b):void 0},ba=0;null!=(L=g[ba]);ba++)b.nodeName(L,"script")&&bD(L)||(bV.appendChild(L),"undefined"!=typeof L.getElementsByTagName&&(cJ=b.grep(b.merge([],L.getElementsByTagName("script")),bD),g.splice.apply(g,[ba+1,0].concat(cJ)),ba+=cJ.length));return g});var gY=b.event.add,aN=b.event.remove,bC=b.event.trigger,ae=b.fn.toggle,bO=b.fn.live,dA=b.fn.die,cV=b.fn.load,h="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",i=new RegExp("\\b(?:"+h+")\\b"),j=/(?:^|\s)hover(\.\S+|)\b/,k=function(V){return"string"!=typeof V||b.event.special.hover?V:(j.test(V)&&M("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),V&&V.replace(j,"mouseenter$1 mouseleave$1"))};b.event.props&&"attrChange"!==b.event.props[0]&&b.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),b.event.dispatch&&bV(b.event,"handle",b.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),b.event.add=function(b,V,f,bV,c){b!==document&&i.test(V)&&M("AJAX events should be attached to document: "+V),gY.call(this,b,k(V||""),f,bV,c)},b.event.remove=function(b,V,f,M,bV){aN.call(this,b,k(V)||"",f,M,bV)},b.each(["load","unload","error"],function(V,f){b.fn[f]=function(){var b=Array.prototype.slice.call(arguments,0);return"load"===f&&"string"==typeof b[0]?cV.apply(this,b):(M("jQuery.fn."+f+"() is deprecated"),b.splice(0,0,f),arguments.length?this.bind.apply(this,b):(this.triggerHandler.apply(this,b),this))}}),b.fn.toggle=function(V,f){if(!b.isFunction(V)||!b.isFunction(f))return ae.apply(this,arguments);M("jQuery.fn.toggle(handler, handler...) is deprecated");var bV=arguments,c=V.guid||b.guid++,ba=0,L=function(f){var M=(b._data(this,"lastToggle"+V.guid)||0)%ba;return b._data(this,"lastToggle"+V.guid,M+1),f.preventDefault(),bV[M].apply(this,arguments)||!1};for(L.guid=c;ba 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); }); }));