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