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