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