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