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